=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),kH=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},TH=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?kH():n,o=h(t,["maxScrollSize"]);hi(this,e),c(this,"_cellSizeAndPositionManager",void 0),c(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new _H(o),this._maxScrollSize=r}return fi(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function CH(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&l&&r(o)}}var EH=1;function RH(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,h=e.updateScrollIndexCallback,p=n.getCellCount(),v=c>=0&&c0&&(dn.getTotalSize()-d&&h(p-1)}var OH,PH,IH=!("undefined"===typeof window||!window.document||!window.document.createElement);function AH(e){if((!OH&&0!==OH||e)&&IH){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),OH=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OH}var jH,MH,DH=(PH="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||PH.webkitRequestAnimationFrame||PH.mozRequestAnimationFrame||PH.oRequestAnimationFrame||PH.msRequestAnimationFrame||function(e){return PH.setTimeout(e,1e3/60)},LH=PH.cancelAnimationFrame||PH.webkitCancelAnimationFrame||PH.mozCancelAnimationFrame||PH.oCancelAnimationFrame||PH.msCancelAnimationFrame||function(e){PH.clearTimeout(e)},NH=DH,FH=LH,zH=function(e){return FH(e.id)},VH=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:NH((function o(){Date.now()-n>=t?e.call():r.id=NH(o)}))};return r};function BH(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 HH(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return wt(t,e),fi(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=HH({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,s=i.height,u=i.width,c=this.state.instanceProps,d=c.scrollbarSize,f=c.rowSizeAndPositionManager.getTotalSize(),h=c.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,h-u+d),n),v=Math.min(Math.max(0,f-s+d),o);if(this.state.scrollLeft!==p||this.state.scrollTop!==v){var g={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?EH:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:v!==this.state.scrollTop?v>this.state.scrollTop?EH:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:WH};a||(g.scrollTop=v),l||(g.scrollLeft=p),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:h,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(n),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===EH?n<=a:n>=a),this._recomputeScrollTopFlag=l>=0&&(this.state.scrollDirectionVertical===EH?o<=l:o>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(HH({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(HH({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,s=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState((function(e){var t=HH({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof o&&o>=0||"number"===typeof a&&a>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&s>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,f=r.width,h=this.state,p=h.scrollLeft,v=h.scrollPositionChangeReason,g=h.scrollTop,m=h.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||s>0&&0===e.rowCount;v===UH&&(!i&&p>=0&&(p!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=p),!o&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&l>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):RH({cellSizeAndPositionManager:m.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:u,scrollToIndex:c,size:f,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):RH({cellSizeAndPositionManager:m.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:u,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||g!==t.scrollTop){var x=m.rowSizeAndPositionManager.getTotalSize(),w=m.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:w,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&zH(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,a=e.containerProps,l=e.containerRole,s=e.containerStyle,u=e.height,c=e.id,d=e.noContentRenderer,f=e.role,h=e.style,p=e.tabIndex,v=e.width,g=this.state,m=g.instanceProps,y=g.needToResetStyleCache,b=this._isScrolling(),x={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:r?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=m.columnSizeAndPositionManager.getTotalSize(),S=m.rowSizeAndPositionManager.getTotalSize(),_=S>u?m.scrollbarSize:0,k=w>v?m.scrollbarSize:0;k===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=k,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),x.overflowX=w+_<=v?"hidden":"auto",x.overflowY=S+k<=u?"hidden":"auto";var T=this._childrenToDisplay,C=0===T.length&&u>0&&v>0;return i.createElement("div",me({ref:this._setScrollingContainerRef},a,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:wH("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:f,style:HH({},x,{},h),tabIndex:p}),T.length>0&&i.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:HH({width:t?"auto":w,height:S,maxWidth:w,maxHeight:S,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},s)},T),C&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,f=e.isScrollingOptOut,h=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,v=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,m=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var b=v.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),x=v.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:g}),w=v.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),S=v.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var _=s({direction:"horizontal",cellCount:o,overscanCellsCount:l,scrollDirection:h,startIndex:"number"===typeof b.start?b.start:0,stopIndex:"number"===typeof b.stop?b.stop:-1}),k=s({direction:"vertical",cellCount:c,overscanCellsCount:u,scrollDirection:p,startIndex:"number"===typeof x.start?x.start:0,stopIndex:"number"===typeof x.stop?x.stop:-1}),T=_.overscanStartIndex,C=_.overscanStopIndex,E=k.overscanStartIndex,R=k.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var O=E;O<=R;O++)if(!i.has(O,0)){T=0,C=o-1;break}if(!i.hasFixedWidth())for(var P=T;P<=C;P++)if(!i.has(0,P)){E=0,R=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:v.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:C,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:v.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:R,scrollLeft:m,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:b,visibleRowIndices:x}),this._columnStartIndex=T,this._columnStopIndex=C,this._rowStartIndex=E,this._rowStopIndex=R}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&zH(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=VH(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),SH({cellCount:a.prevColumnCount,cellSize:"number"===typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),SH({cellCount:a.prevRowCount,cellSize:"number"===typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,HH({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:UH};return"number"===typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?EH:-1,o.scrollLeft=n),"number"===typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?EH:-1,o.scrollTop=r),"number"===typeof n&&n>=0&&n!==t.scrollLeft||"number"===typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,s=t.instanceProps;if(n>0){var u=n-1,c=i<0?u:Math.min(u,i),d=s.rowSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>r?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-f,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,s=t.instanceProps;if(r>0){var u=r-1,c=i<0?u:Math.min(u,i),d=s.columnSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>a?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-f,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(i.PureComponent),c(jH,"propTypes",null),MH);c(GH,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,h=e.rowStopIndex,p=e.styleCache,v=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,m=e.visibleRowIndices,y=[],b=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),x=!s&&!b,w=f;w<=h;w++)for(var S=d.getSizeAndPositionOfCell(w),_=o;_<=i;_++){var k=r.getSizeAndPositionOfCell(_),T=_>=g.start&&_<=g.stop&&w>=m.start&&w<=m.stop,C="".concat(w,"-").concat(_),E=void 0;x&&p[C]?E=p[C]:a&&!a.has(w,_)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:S.size,left:k.offset+l,position:"absolute",top:S.offset+v,width:k.size},p[C]=E);var R={columnIndex:_,isScrolling:s,isVisible:T,key:C,parent:c,rowIndex:w,style:E},O=void 0;!u&&!s||l||v?O=n(R):(t[C]||(t[C]=n(R)),O=t[C]),null!=O&&!1!==O&&y.push(O)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:AH,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r===EH?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),bH(GH);var qH=GH,QH=1;function $H(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),r===QH?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}var YH,KH;function XH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var JH=(KH=YH=function(e){function t(){var e,n;hi(this,t);for(var r=arguments.length,o=new Array(r),i=0;i div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var u='';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return u}});t.__resizeTriggers__.innerHTML=c.createHTML("")}else t.__resizeTriggers__.innerHTML=u;t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",s,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&l(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}function nW(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 rW(e){for(var t=1;t=0){var c=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:s,scrollTop:u,width:a});c.scrollLeft===s&&c.scrollTop===u||n._setScrollPosition(c)}})),c(gi(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,a=t.width,l=n._scrollbarSize,s=r.getTotalSize(),u=s.height,c=s.width,d=Math.max(0,Math.min(c-a+l,e.target.scrollLeft)),f=Math.max(0,Math.min(u-o+l,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var h=e.cancelable?cW.OBSERVED:cW.REQUESTED;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:c,totalHeight:u})}})),n._scrollbarSize=AH(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return wt(t,e),fi(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=AH(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===cW.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,f=e.width,h=this.state,p=h.isScrolling,v=h.scrollLeft,g=h.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var m=r.getTotalSize(),y=m.height,b=m.width,x=Math.max(0,v-l),w=Math.max(0,g-d),S=Math.min(b,v+f+l),_=Math.min(y,g+a+d),k=a>0&&f>0?r.cellRenderers({height:_-w,isScrolling:p,width:S-x,x:x,y:w}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},C=y>a?this._scrollbarSize:0,E=b>f?this._scrollbarSize:0;return T.overflowX=b+C<=f?"hidden":"auto",T.overflowY=y+E<=a?"hidden":"auto",i.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:wH("ReactVirtualized__Collection",o),id:s,onScroll:this._onScroll,role:"grid",style:uW({},T,{},c),tabIndex:0},n>0&&i.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:p?"none":"",width:b}},k),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:cW.REQUESTED};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:cW.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:cW.REQUESTED}}}]),t}(i.PureComponent);c(dW,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),dW.propTypes={},bH(dW);var fW=dW,hW=function(){function e(t){var n=t.height,r=t.width,o=t.x,i=t.y;hi(this,e),this.height=n,this.width=r,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return fi(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),pW=100,vW=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pW;hi(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return fi(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),l=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),u=[],c=i;c<=a;c++)for(var d=l;d<=s;d++){var f="".concat(c,".").concat(d);this._sections[f]||(this._sections[f]=new hW({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),u.push(this._sections[f])}return u}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function gW(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,l=r,s=l-i+o;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-o)/2;default:return Math.max(s,Math.min(l,a))}}var mW=function(e){function t(e,n){var r;return hi(this,t),(r=mi(this,pi(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(gi(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(gi(r)),r}return wt(t,e),fi(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=me({},this.props);return i.createElement(fW,me({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new vW(r),a=0,l=0,s=0;s=0&&nn||o1&&void 0!==arguments[1]?arguments[1]:0,n="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,l=o.rowCount,s=o.threshold,u=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,u=o;u<=i;u++){t({index:u})?null!==s&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=u,null===l&&(l=u))}if(null!==s){for(var c=Math.min(Math.max(s,l+n-1),r-1),d=s+1;d<=c&&!t({index:d});d++)s=d;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var f=a[0];f.stopIndex-f.startIndex+10;){var h=f.startIndex-1;if(t({index:h}))break;f.startIndex=h}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-s),stopIndex:Math.min(l-1,t+s)}),c=(n=[]).concat.apply(n,yt(u.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(u)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(i.PureComponent);c(yW,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),yW.propTypes={};var bW,xW,wW=(xW=bW=function(e){function t(){var e,n;hi(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,a=wH("ReactVirtualized__List",t);return i.createElement(qH,me({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:a,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(i.PureComponent),c(bW,"propTypes",null),xW);c(wW,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:$H,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var SW={ge:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]>>1;o(e[a],r)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=o(e[i],r);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}},_W=0,kW=1;function TW(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var CW=TW.prototype;function EW(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function RW(e,t){var n=NW(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function OW(e,t){var n=e.intervals([]);n.push(t),RW(e,n)}function PW(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?_W:(n.splice(r,1),RW(e,n),kW)}function IW(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function jW(e,t){for(var n=0;n>1],o=[],i=[],a=[];for(n=0;n3*(t+1)?OW(this,e):this.left.insert(e):this.left=NW([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?OW(this,e):this.right.insert(e):this.right=NW([e]);else{var n=SW.ge(this.leftPoints,e,DW),r=SW.ge(this.rightPoints,e,LW);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},CW.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?PW(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,kW):(i===kW&&(this.count-=1),i):_W;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?PW(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,kW):(i===kW&&(this.count-=1),i):_W;if(1===this.count)return this.leftPoints[0]===e?2:_W;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}EW(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?EW(this,this.left):EW(this,this.right);return kW}for(o=SW.ge(this.leftPoints,e,DW);othis.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return AW(this.rightPoints,e,t)}return jW(this.leftPoints,t)},CW.queryInterval=function(e,t,n){var r;if(ethis.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return tthis.mid?AW(this.rightPoints,e,n):jW(this.leftPoints,n)};var zW=FW.prototype;zW.insert=function(e){this.root?this.root.insert(e):this.root=new TW(e[0],null,null,[e],[e])},zW.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==_W}return!1},zW.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},zW.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(zW,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(zW,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var VW,BW,HW=function(){function e(){var t;hi(this,e),c(this,"_columnSizeMap",{}),c(this,"_intervalTree",t&&0!==t.length?new FW(NW(t)):new FW(null)),c(this,"_leftMap",{})}return fi(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=lt(e,3),o=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function WW(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 UW(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};hi(this,e),c(this,"_cellMeasurerCache",void 0),c(this,"_columnIndexOffset",void 0),c(this,"_rowIndexOffset",void 0),c(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),c(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,o=n.columnIndexOffset,i=void 0===o?0:o,a=n.rowIndexOffset,l=void 0===a?0:a;this._cellMeasurerCache=r,this._columnIndexOffset=i,this._rowIndexOffset=l}return fi(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function $W(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 YW(e){for(var t=1;t0?new QW({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:l}):o,r._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new QW({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:l}):o,r._deferredMeasurementCacheTopRightGrid=a>0?new QW({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),r}return wt(t,e),fi(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,o-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),a=h(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,u=l.scrollTop;return i.createElement("div",{style:this._containerOuterStyle},i.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(a),this._renderTopRightGrid(YW({},a,{onScroll:t,scrollLeft:s}))),i.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(YW({},a,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(YW({},a,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:o,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof n){for(var r=0,o=0;o=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(i.PureComponent);c(XW,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),XW.propTypes={},bH(XW);var JW=function(e){function t(e,n){var r;return hi(this,t),(r=mi(this,pi(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(gi(r)),r}return wt(t,e),fi(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:a})}}]),t}(i.PureComponent);JW.propTypes={};function ZW(e){var t=e.className,n=e.columns,r=e.style;return i.createElement("div",{className:t,role:"row",style:r},n)}ZW.propTypes=null;var eU={ASC:"ASC",DESC:"DESC"};function tU(e){var t=e.sortDirection,n=wH("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===eU.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===eU.DESC});return i.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===eU.ASC?i.createElement("path",{d:"M7 14l5-5 5 5z"}):i.createElement("path",{d:"M7 10l5 5 5-5z"}),i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function nU(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,a=r===t,l=[i.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof n?n:null},n)];return a&&l.push(i.createElement(tU,{key:"SortIndicator",sortDirection:o})),l}function rU(e){var t=e.className,n=e.columns,r=e.index,o=e.key,a=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,h={"aria-rowindex":r+1};return(a||l||s||u||c)&&(h["aria-label"]="row",h.tabIndex=0,a&&(h.onClick=function(e){return a({event:e,index:r,rowData:d})}),l&&(h.onDoubleClick=function(e){return l({event:e,index:r,rowData:d})}),s&&(h.onMouseOut=function(e){return s({event:e,index:r,rowData:d})}),u&&(h.onMouseOver=function(e){return u({event:e,index:r,rowData:d})}),c&&(h.onContextMenu=function(e){return c({event:e,index:r,rowData:d})})),i.createElement("div",me({},h,{className:t,key:o,role:"row",style:f}),n)}tU.propTypes={},nU.propTypes=null,rU.propTypes=null;var oU=function(e){function t(){return hi(this,t),mi(this,pi(t).apply(this,arguments))}return wt(t,e),t}(i.Component);function iU(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 aU(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,Qx.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,f=t.noRowsRenderer,h=t.rowClassName,p=t.rowStyle,v=t.scrollToIndex,g=t.style,m=t.width,y=this.state.scrollbarWidth,b=o?c:c-s,x="function"===typeof h?h({index:-1}):h,w="function"===typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],i.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=aU({overflow:"hidden"},r)})),i.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":i.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:wH("ReactVirtualized__Table",r),id:d,role:"grid",style:g},!o&&u({className:wH("ReactVirtualized__Table__headerRow",x),columns:this._getHeaderColumns(),style:aU({height:s,overflow:"hidden",paddingRight:y,width:m},w)}),i.createElement(qH,me({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:wH("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:m,columnCount:1,height:b,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:v,style:aU({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,a=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,u=t.props,c=u.cellDataGetter,d=u.cellRenderer,f=u.className,h=u.columnData,p=u.dataKey,v=u.id,g=d({cellData:c({columnData:h,dataKey:p,rowData:a}),columnData:h,columnIndex:n,dataKey:p,isScrolling:r,parent:o,rowData:a,rowIndex:l}),m=this._cachedColumnStyles[n],y="string"===typeof g?g:null;return i.createElement("div",{"aria-colindex":n+1,"aria-describedby":v,className:wH("ReactVirtualized__Table__rowColumn",f),key:"Row"+l+"-Col"+n,onClick:function(e){s&&s({columnData:h,dataKey:p,event:e})},role:"gridcell",style:m,title:y},g)}},{key:"_createHeader",value:function(e){var t,n,r,o,a,l=e.column,s=e.index,u=this.props,c=u.headerClassName,d=u.headerStyle,f=u.onHeaderClick,h=u.sort,p=u.sortBy,v=u.sortDirection,g=l.props,m=g.columnData,y=g.dataKey,b=g.defaultSortDirection,x=g.disableSort,w=g.headerRenderer,S=g.id,_=g.label,k=!x&&h,T=wH("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),C=this._getFlexStyleForColumn(l,aU({},d,{},l.props.headerStyle)),E=w({columnData:m,dataKey:y,disableSort:x,label:_,sortBy:p,sortDirection:v});if(k||f){var R=p!==y?b:v===eU.DESC?eU.ASC:eU.DESC,O=function(e){k&&h({defaultSortDirection:b,event:e,sortBy:y,sortDirection:R}),f&&f({columnData:m,dataKey:y,event:e})};a=l.props["aria-label"]||_||y,o="none",r=0,t=O,n=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return p===y&&(o=v===eU.ASC?"ascending":"descending"),i.createElement("div",{"aria-label":a,"aria-sort":o,className:T,id:S,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:C,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,f=s.onRowRightClick,h=s.onRowMouseOver,p=s.onRowMouseOut,v=s.rowClassName,g=s.rowGetter,m=s.rowRenderer,y=s.rowStyle,b=this.state.scrollbarWidth,x="function"===typeof v?v({index:n}):v,w="function"===typeof y?y({index:n}):y,S=g({index:n}),_=i.Children.toArray(u).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:a,rowData:S,rowIndex:n,scrollbarWidth:b})})),k=wH("ReactVirtualized__Table__row",x),T=aU({},l,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},w);return m({className:k,columns:_,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:d,onRowRightClick:f,onRowMouseOver:h,onRowMouseOut:p,rowData:S,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=aU({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:i.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(i.PureComponent);c(lU,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:$H,overscanRowCount:10,rowRenderer:rU,headerRowRenderer:ZW,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),lU.propTypes={};var sU=[],uU=null,cU=null;function dU(){cU&&(cU=null,document.body&&null!=uU&&(document.body.style.pointerEvents=uU),uU=null)}function fU(){dU(),sU.forEach((function(e){return e.__resetIsScrolling()}))}function hU(e){e.currentTarget===window&&null==uU&&document.body&&(uU=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){cU&&zH(cU);var e=0;sU.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),cU=VH(fU,e)}(),sU.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function pU(e,t){sU.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",hU),sU.push(e)}function vU(e,t){(sU=sU.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",hU),cU&&(zH(cU),dU()))}var gU,mU,yU=function(e){return e===window},bU=function(e){return e.getBoundingClientRect()};function xU(e,t){if(e){if(yU(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"===typeof r?r:0,width:"number"===typeof o?o:0}}return bU(e)}return{height:t.serverHeight,width:t.serverWidth}}function wU(e){return yU(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function SU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _U=function(){return"undefined"!==typeof window?window:void 0},kU=(mU=gU=function(e){function t(){var e,n;hi(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||Qx.findDOMNode(this);if(i instanceof Element&&e){var a=function(e,t){if(yU(t)&&document.documentElement){var n=document.documentElement,r=bU(e),o=bU(n);return{top:r.top-o.top,left:r.left-o.left}}var i=wU(t),a=bU(e),l=bU(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=xU(e,this.props);r===l.height&&o===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=tW(),this.updatePosition(e),e&&(pU(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),vU(this,r),pU(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(vU(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(i.PureComponent),c(gU,"propTypes",null),mU);c(kU,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:_U(),serverHeight:0,serverWidth:0});var TU=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];Math.min,Math.max;var CU=["top","right","bottom","left"];CU.reduce((function(e,t){return e.concat(t,t+"-start",t+"-end")}),[]);function EU(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function RU(e){return EU(e).getComputedStyle(e)}Math.min,Math.max;var OU,PU=Math.round;function IU(e){var t=RU(e),n=parseFloat(t.width),r=parseFloat(t.height),o=e.offsetWidth,i=e.offsetHeight,a=PU(n)!==o||PU(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function AU(e){return LU(e)?(e.nodeName||"").toLowerCase():""}function jU(){if(OU)return OU;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?OU=e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function MU(e){return e instanceof EU(e).HTMLElement}function DU(e){return e instanceof EU(e).Element}function LU(e){return e instanceof EU(e).Node}function NU(e){return"undefined"!=typeof ShadowRoot&&(e instanceof EU(e).ShadowRoot||e instanceof ShadowRoot)}function FU(e){var t=RU(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function zU(){return/^((?!chrome|android).)*safari/i.test(jU())}function VU(e){return["html","body","#document"].includes(AU(e))}function BU(e){return DU(e)?e:e.contextElement}var HU={x:1,y:1};function WU(e){var t=BU(e);if(!MU(t))return HU;var n=t.getBoundingClientRect(),r=IU(t),o=r.width,i=r.height,a=r.fallback,l=(a?PU(n.width):n.width)/o,s=(a?PU(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function UU(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=BU(e),s=HU;t&&(r?DU(r)&&(s=WU(r)):s=WU(e));var u=l?EU(l):window,c=zU()&&n,d=(a.left+(c&&(null==(o=u.visualViewport)?void 0:o.offsetLeft)||0))/s.x,f=(a.top+(c&&(null==(i=u.visualViewport)?void 0:i.offsetTop)||0))/s.y,h=a.width/s.x,p=a.height/s.y;if(l)for(var v=EU(l),g=r&&DU(r)?EU(r):r,m=v.frameElement;m&&r&&g!==v;){var y=WU(m),b=m.getBoundingClientRect(),x=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(x.paddingLeft))*y.x,b.y+=(m.clientTop+parseFloat(x.paddingTop))*y.y,d*=y.x,f*=y.y,h*=y.x,p*=y.y,d+=b.x,f+=b.y,m=EU(m).frameElement}return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function GU(e){return((LU(e)?e.ownerDocument:e.document)||window.document).documentElement}function qU(e){if("html"===AU(e))return e;var t=e.assignedSlot||e.parentNode||NU(e)&&e.host||GU(e);return NU(t)?t.host:t}function QU(e){var t=qU(e);return VU(t)?t.ownerDocument.body:MU(t)&&FU(t)?t:QU(t)}function $U(e,t){var n;void 0===t&&(t=[]);var r=QU(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=EU(r);return o?t.concat(i,i.visualViewport||[],FU(r)?r:[]):t.concat(r,$U(r))}var YU=i.useLayoutEffect,KU=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],XU=function(){};function JU(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ZU(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function oG(e){return rG(e)?window.pageYOffset:e.scrollTop}function iG(e,t){rG(e)?window.scrollTo(0,t):e.scrollTop=t}function aG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:XU,o=oG(e),i=t-o,a=10,l=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(l+=a,o,i,n);iG(e,s),ln.bottom?iG(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?t-1:0),r=1;r=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!a)return i&&aG(s,T,E),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&S>=r)return i&&aG(s,T,E),{placement:"bottom",maxHeight:a?S-b:k-b};if("auto"===o||a){var R=t,O=a?w:_;return O>=r&&(R=Math.min(O-b-l,t)),{placement:"top",maxHeight:R}}if("bottom"===o)return i&&iG(s,T),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(_>=p&&!a)return i&&aG(s,C,E),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&w>=r){var P=t;return(!a&&_>=r||a&&w>=r)&&(P=a?w-x:_-x),i&&aG(s,C,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var mG=function(e){return"auto"===e?"bottom":e},yG=(0,i.createContext)(null),bG=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,u=((0,i.useContext)(yG)||{}).setPortalPlacement,c=(0,i.useRef)(null),d=lt((0,i.useState)(r),2),h=d[0],p=d[1],v=lt((0,i.useState)(null),2),g=v[0],m=v[1],y=s.spacing.controlHeight;return YU((function(){var e=c.current;if(e){var t="fixed"===a,i=gG({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});p(i.maxHeight),m(i.placement),null===u||void 0===u||u(i.placement)}}),[r,o,a,l,n,u,y]),t({ref:c,placerProps:f(f({},e),{},{placement:g||mG(o),maxHeight:h})})},xG=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return f({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},wG=xG,SG=xG,_G=function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};_G.defaultProps={children:"No options"};var kG=function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};kG.defaultProps={children:"Loading..."};var TG,CG=["size"];var EG={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},RG=function(e){var t=e.size,n=h(e,CG);return Ke("svg",me({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:EG},n))},OG=function(e){return Ke(RG,me({size:20},e),Ke("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},PG=function(e){return Ke(RG,me({size:20},e),Ke("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},IG=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return f({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},AG=IG,jG=IG,MG=Ze(TG||(TG=LC(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),DG=function(e){var t=e.delay,n=e.offset;return Ke("span",{css:Je({animation:"".concat(MG," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},LG=function(e){var t=e.innerProps,n=e.isRtl;return Ke("div",me({},nG(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ke(DG,{delay:0,offset:n}),Ke(DG,{delay:160,offset:!0}),Ke(DG,{delay:320,offset:!n}))};LG.defaultProps={size:4};var NG=["data"],FG=["innerRef","isDisabled","isHidden","inputClassName"],zG={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},VG={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":f({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},zG)},BG=function(e){return f({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},zG)},HG=function(e){var t=e.children,n=e.innerProps;return Ke("div",n,t)};var WG={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ke(OG,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ke("div",me({ref:o},nG(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ke(PG,null))},DownChevron:PG,CrossIcon:OG,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,u=e.theme,c=e.selectProps;return Ke("div",me({},nG(e,"group",{group:!0}),l),Ke(i,me({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),s),Ke("div",null,t))},GroupHeading:function(e){var t=tG(e);t.data;var n=h(t,NG);return Ke("div",me({},nG(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ke("span",me({},t,nG(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=tG(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=h(r,FG);return Ke("div",me({},nG(e,"input",{"input-container":!0}),{"data-value":n||""}),Ke("input",me({className:t({input:!0},l),ref:o,style:BG(a),disabled:i},s)))},LoadingIndicator:LG,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Ke("div",me({},nG(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Ke("div",me({},nG(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=(0,i.useRef)(null),u=(0,i.useRef)(null),c=lt((0,i.useState)(mG(a)),2),d=c[0],h=c[1],p=(0,i.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=lt((0,i.useState)(null),2),g=v[0],m=v[1],y=(0,i.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===l?0:window.pageYOffset,n=e[d]+t;n===(null===g||void 0===g?void 0:g.offset)&&e.left===(null===g||void 0===g?void 0:g.rect.left)&&e.width===(null===g||void 0===g?void 0:g.rect.width)||m({offset:n,rect:e})}}),[r,l,d,null===g||void 0===g?void 0:g.offset,null===g||void 0===g?void 0:g.rect.left,null===g||void 0===g?void 0:g.rect.width]);YU((function(){y()}),[y]);var b=(0,i.useCallback)((function(){"function"===typeof u.current&&(u.current(),u.current=null),r&&s.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,a=void 0===i||i,l=o.ancestorResize,s=void 0===l||l,u=o.elementResize,c=void 0===u||u,d=o.animationFrame,f=void 0!==d&&d,h=a&&!f,p=h||s?[].concat(yt(DU(e)?$U(e):e.contextElement?$U(e.contextElement):[]),yt($U(t))):[];p.forEach((function(e){h&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));var v,g=null;if(c){var m=!0;g=new ResizeObserver((function(){m||n(),m=!1})),DU(e)&&!f&&g.observe(e),DU(e)||!e.contextElement||f||g.observe(e.contextElement),g.observe(t)}var y=f?UU(e):null;return f&&function t(){var r=UU(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,v=requestAnimationFrame(t)}(),n(),function(){var e;p.forEach((function(e){h&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(v)}}(r,s.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);YU((function(){b()}),[b]);var x=(0,i.useCallback)((function(e){s.current=e,b()}),[b]);if(!t&&"fixed"!==l||!g)return null;var w=Ke("div",me({ref:x},nG(f(f({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Ke(yG.Provider,{value:p},t?(0,Qx.createPortal)(w,t):w)},LoadingMessage:kG,NoOptionsMessage:_G,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,u=n.Label,c=n.Remove;return Ke(s,{data:r,innerProps:f(f({},nG(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Ke(u,{data:r,innerProps:f({},nG(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Ke(c,{data:r,innerProps:f(f({},nG(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:HG,MultiValueLabel:HG,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ke("div",me({role:"button"},n),t||Ke(OG,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Ke("div",me({},nG(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ke("div",me({},nG(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Ke("div",me({},nG(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Ke("div",me({},nG(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Ke("div",me({},nG(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},UG=function(e){return f(f({},WG),e.components)},GG=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function qG(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=l?" disabled":"",d="".concat(s?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},KG=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=s.ariaLiveMessages,d=s.getOptionLabel,h=s.inputValue,p=s.isMulti,v=s.isOptionDisabled,g=s.isSearchable,m=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,x=s.tabSelectsValue,w=s["aria-label"],S=s["aria-live"],_=(0,i.useMemo)((function(){return f(f({},YG),c||{})}),[c]),k=(0,i.useMemo)((function(){var e,n="";if(t&&_.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,s=t.value,u=i||r||(e=s,Array.isArray(e)?null:e),c=u?d(u):"",h=o||a||void 0,p=h?h.map(d):[],g=f({isDisabled:u&&v(u,l),label:c,labels:p},t);n=_.onChange(g)}return n}),[t,_,v,l,d]),T=(0,i.useMemo)((function(){var e="",t=n||r,i=!!(n&&l&&l.includes(n));if(t&&_.onFocus){var a={focused:t,label:d(t),isDisabled:v(t,l),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:l};e=_.onFocus(a)}return e}),[n,r,d,v,_,o,l]),C=(0,i.useMemo)((function(){var e="";if(m&&y.length&&_.onFilter){var t=b({count:o.length});e=_.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,m,_,y,b]),E=(0,i.useMemo)((function(){var e="";if(_.guidance){var t=r?"value":m?"menu":"input";e=_.guidance({"aria-label":w,context:t,isDisabled:n&&v(n,l),isMulti:p,isSearchable:g,tabSelectsValue:x})}return e}),[w,n,r,p,v,g,m,_,l,x]),R="".concat(T," ").concat(C," ").concat(E),O=Ke(i.Fragment,null,Ke("span",{id:"aria-selection"},k),Ke("span",{id:"aria-context"},R)),P="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return Ke(i.Fragment,null,Ke($G,{id:u},P&&O),Ke($G,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&!P&&O))},XG=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],JG=new RegExp("["+XG.map((function(e){return e.letters})).join("")+"]","g"),ZG={},eq=0;eq-1}},sq=["innerRef"];function uq(e){var t=e.innerRef,n=h(e,sq),r=vG(n,"onExited","in","enter","exit","appear");return Ke("input",me({ref:t},r,{css:Je({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var cq=function(e){e.preventDefault(),e.stopPropagation()};var dq=["boxSizing","height","overflow","paddingRight","position"],fq={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hq(e){e.preventDefault()}function pq(e){e.stopPropagation()}function vq(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function gq(){return"ontouchstart"in window||navigator.maxTouchPoints}var mq=!("undefined"===typeof window||!window.document||!window.document.createElement),yq=0,bq={capture:!1,passive:!1};var xq=function(){return document.activeElement&&document.activeElement.blur()},wq={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Sq(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,l=(0,i.useRef)(!1),s=(0,i.useRef)(!1),u=(0,i.useRef)(0),c=(0,i.useRef)(null),d=(0,i.useCallback)((function(e,t){if(null!==c.current){var i=c.current,u=i.scrollTop,d=i.scrollHeight,f=i.clientHeight,h=c.current,p=t>0,v=d-f-u,g=!1;v>t&&l.current&&(r&&r(e),l.current=!1),p&&s.current&&(a&&a(e),s.current=!1),p&&t>v?(n&&!l.current&&n(e),h.scrollTop=d,g=!0,l.current=!0):!p&&-t>u&&(o&&!s.current&&o(e),h.scrollTop=0,g=!0,s.current=!0),g&&cq(e)}}),[n,r,o,a]),f=(0,i.useCallback)((function(e){d(e,e.deltaY)}),[d]),h=(0,i.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),p=(0,i.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,i.useCallback)((function(e){if(e){var t=!!fG&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}}),[p,h,f]),g=(0,i.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))}),[p,h,f]);return(0,i.useEffect)((function(){if(t){var e=c.current;return v(e),function(){g(e)}}}),[t,v,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,i.useRef)({}),a=(0,i.useRef)(null),l=(0,i.useCallback)((function(e){if(mq){var t=document.body,n=t&&t.style;if(r&&dq.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&yq<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+i||0;Object.keys(fq).forEach((function(e){var t=fq[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&gq()&&(t.addEventListener("touchmove",hq,bq),e&&(e.addEventListener("touchstart",vq,bq),e.addEventListener("touchmove",pq,bq))),yq+=1}}),[r]),s=(0,i.useCallback)((function(e){if(mq){var t=document.body,n=t&&t.style;yq=Math.max(yq-1,0),r&&yq<1&&dq.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&gq()&&(t.removeEventListener("touchmove",hq,bq),e&&(e.removeEventListener("touchstart",vq,bq),e.removeEventListener("touchmove",pq,bq)))}}),[r]);return(0,i.useEffect)((function(){if(t){var e=a.current;return l(e),function(){s(e)}}}),[t,l,s]),function(e){a.current=e}}({isEnabled:n});return Ke(i.Fragment,null,n&&Ke("div",{onClick:xq,css:wq}),t((function(e){o(e),a(e)})))}var _q={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},kq=function(e){var t=e.name,n=e.onFocus;return Ke("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:_q,value:"",onChange:function(){}})},Tq={clearIndicator:jG,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return f({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:AG,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return f({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return f({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return f(f({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},VG),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return f({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:SG,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return f((c(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),c(n,"position","absolute"),c(n,"width","100%"),c(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return f({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return f({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return f({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return f({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:wG,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return f({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return f({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return f({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return f({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Cq={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Eq={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sG(),captureMenuScroll:!sG(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lq(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Rq(e,t,n,r){return{type:"option",data:t,isDisabled:Mq(e,t,n),isSelected:Dq(e,t,n),label:Aq(e,t),value:jq(e,t),index:r}}function Oq(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Rq(e,n,t,r)})).filter((function(t){return Iq(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Rq(e,n,t,r);return Iq(e,i)?i:void 0})).filter(hG)}function Pq(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,yt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Iq(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Nq(e)||!i)&&Lq(e,{label:a,value:l,data:o},r)}var Aq=function(e,t){return e.getOptionLabel(t)},jq=function(e,t){return e.getOptionValue(t)};function Mq(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Dq(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=jq(e,t);return n.some((function(t){return jq(e,t)===r}))}function Lq(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Nq=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Fq=1,zq=function(e){wt(n,e);var t=yi(n);function n(e){var r;if(hi(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,l=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(l){var u=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(yt(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=pG(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(pG(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=pG(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Nq(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,h=r.state,p=h.focusedOption,v=h.focusedValue,g=h.selectValue;if(!s&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)r.removeValue(v);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!p||f&&r.isOptionSelected(p,g))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):l&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Fq),r.state.selectValue=eG(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.buildFocusableOptions(),i=o.indexOf(r.state.selectValue[0]);r.state.focusedOption=o[i]}return r}return fi(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lG(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lG(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(Cq):f(f({},Cq),this.props.theme):Cq}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,u=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Mq(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Dq(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Lq(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,l=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,h=d.inputIsHidden,p=d.ariaSelection,v=this.commonProps,g=r||this.getElementId("input"),m=f(f(f({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===p||void 0===p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(c,me({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:o},m)):i.createElement(uq,me({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:XU,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:l,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,v=c.placeholder,g=this.state,m=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return p?null:i.createElement(s,me({},u,{key:"placeholder",isDisabled:f,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return m.map((function(t,l){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,me({},u,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:f,key:c,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var x=m[0];return i.createElement(l,me({},u,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,me({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return i.createElement(e,me({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return i.createElement(n,me({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,me({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,p=h.captureMenuScroll,v=h.inputValue,g=h.isLoading,m=h.loadingMessage,y=h.minMenuHeight,b=h.maxMenuHeight,x=h.menuIsOpen,w=h.menuPlacement,S=h.menuPosition,_=h.menuPortalTarget,k=h.menuShouldBlockScroll,T=h.menuShouldScrollIntoView,C=h.noOptionsMessage,E=h.onMenuScrollToTop,R=h.onMenuScrollToBottom;if(!x)return null;var O,P=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,l=t.isSelected,s=t.label,u=t.value,h=f===o,p=a?void 0:function(){return e.onOptionHover(o)},v=a?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),m={id:g,onClick:v,onMouseMove:p,onMouseOver:p,tabIndex:-1};return i.createElement(c,me({},d,{innerProps:m,data:o,isDisabled:a,isSelected:l,key:g,label:s,type:r,value:u,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),u="".concat(s,"-heading");return i.createElement(n,me({},d,{key:s,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var I=m({inputValue:v});if(null===I)return null;O=i.createElement(s,d,I)}else{var A=C({inputValue:v});if(null===A)return null;O=i.createElement(u,d,A)}var j={minMenuHeight:y,maxMenuHeight:b,menuPlacement:w,menuPosition:S,menuShouldScrollIntoView:T},M=i.createElement(bG,me({},d,j),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,s=r.maxHeight;return i.createElement(o,me({},d,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:l}),i.createElement(Sq,{captureEnabled:p,onTopArrive:E,onBottomArrive:R,lockEnabled:k},(function(t){return i.createElement(a,me({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:s,focusedOption:f}),O)})))}));return _||"fixed"===S?i.createElement(l,me({},d,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:S}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,l=t.required,s=this.state.selectValue;if(a&&!r){if(l&&!this.hasValue())return i.createElement(kq,{name:a,onFocus:this.onValueInputFocus});if(o){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:a,type:"hidden",value:u})}var c=s.length>0?s.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:a,type:"hidden",value:""});return i.createElement("div",null,c)}var d=s[0]?this.getOptionValue(s[0]):"";return i.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return i.createElement(KG,me({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:l,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,l=a.className,s=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.createElement(r,me({},f,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),i.createElement(t,me({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),i.createElement(o,me({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,me({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=e.options,u=e.value,c=e.menuIsOpen,d=e.inputValue,h=e.isMulti,p=eG(u),v={};if(n&&(u!==n.value||s!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var g=c?function(e,t){return Pq(Oq(e,t))}(e,p):[],m=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);v={selectValue:p,focusedOption:y,focusedValue:m,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,w=a&&l;return a&&!w&&(x={value:pG(h,p,p[0]||null),options:p,action:"initial-input-focus"},w=!l),"initial-input-focus"===(null===i||void 0===i?void 0:i.action)&&(x=null),f(f(f({},v),b),{},{prevProps:e,ariaSelection:x,prevWasFocused:w})}}]),n}(i.Component);zq.defaultProps=Eq;var Vq,Bq=(0,i.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,v=e.onMenuOpen,g=e.value,m=h(e,TU),y=lt((0,i.useState)(void 0!==s?s:n),2),b=y[0],x=y[1],w=lt((0,i.useState)(void 0!==u?u:o),2),S=w[0],_=w[1],k=lt((0,i.useState)(void 0!==g?g:l),2),T=k[0],C=k[1],E=(0,i.useCallback)((function(e,t){"function"===typeof c&&c(e,t),C(e)}),[c]),R=(0,i.useCallback)((function(e,t){var n;"function"===typeof d&&(n=d(e,t)),x(void 0!==n?n:e)}),[d]),O=(0,i.useCallback)((function(){"function"===typeof v&&v(),_(!0)}),[v]),P=(0,i.useCallback)((function(){"function"===typeof p&&p(),_(!1)}),[p]),I=void 0!==s?s:b,A=void 0!==u?u:S,j=void 0!==g?g:T;return f(f({},m),{},{inputValue:I,menuIsOpen:A,onChange:E,onInputChange:R,onMenuClose:P,onMenuOpen:O,value:j})}(e);return i.createElement(zq,me({ref:t},n))})),Hq=Bq,Wq=function(t){var n=t.setFiltersSelected,r=t.beacons,o=t.groups,i=t.services,a=t.hosts,l=Object.values(jC);return(0,e.jsxs)("div",{children:[(0,e.jsx)(SO,{size:"sm",mb:2,children:" Filter by platform, service, group, hosts, and beacon"}),(0,e.jsx)(Hq,{isSearchable:!0,isMulti:!0,options:function(e,t,n,r){return[{label:"Platform",options:l.map((function(e){return{name:e,value:e,label:e,kind:"platform"}}))},{label:"Service",options:n.map((function(e){return f(f({},e),{},{value:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.name,kind:null===e||void 0===e?void 0:e.kind})}))},{label:"Group",options:t.map((function(e){return f(f({},e),{},{value:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.name,kind:null===e||void 0===e?void 0:e.kind})}))},{label:"Host",options:r.map((function(e){return f(f({},e),{},{value:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.name,kind:"host"})}))},{label:"Beacon",options:e.map((function(e){return f(f({},e),{},{value:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.name,kind:"beacon"})}))}]}(r,o,i,a),onChange:n,filterOption:lq({matchFrom:"any",stringify:function(e){return"".concat(e.label)}})})]})},Uq=lt(vt({name:"".concat(Vq="Card","StylesContext"),errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'.concat(Vq,' />" ')}),2),Gq=Uq[0],qq=Uq[1],Qq=["className","children","direction","justify","align"],$q=ux((function(t,n){var r=wr(t),o=r.className,i=r.children,a=r.direction,l=void 0===a?"column":a,s=r.justify,u=r.align,c=h(r,Qq),d=vx("Card",t);return(0,e.jsx)(ax.div,f(f({ref:n,className:_t("chakra-card",o),__css:f({display:"flex",flexDirection:l,justifyContent:s,alignItems:u,position:"relative",minWidth:0,wordWrap:"break-word"},d.container)},c),{},{children:(0,e.jsx)(Gq,{value:d,children:i})}))})),Yq=["className"],Kq=ux((function(t,n){var r=t.className,o=h(t,Yq),i=qq();return(0,e.jsx)(ax.div,f({ref:n,className:_t("chakra-card__body",r),__css:i.body},o))})),Xq=lt(st({name:"CheckboxGroupContext",strict:!1}),2),Jq=(Xq[0],Xq[1]),Zq=["isIndeterminate","isChecked"];function eQ(t){return(0,e.jsx)(ax.svg,f(f({width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},t),{},{children:(0,e.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})}))}function tQ(t){return(0,e.jsx)(ax.svg,f(f({width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4}},t),{},{children:(0,e.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}))}function nQ(t){var n=t.isIndeterminate,r=t.isChecked,o=h(t,Zq),i=n?tQ:eQ;return r||n?(0,e.jsx)(ax.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,e.jsx)(i,f({},o))}):null}var rQ=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],oQ={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},iQ={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},aQ=Ze({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),lQ=Ze({from:{opacity:0},to:{opacity:1}}),sQ=Ze({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),uQ=ux((function(t,n){var r=Jq(),o=vx("Checkbox",f(f({},r),t)),a=wr(t),l=a.spacing,s=void 0===l?"0.5rem":l,u=a.className,c=a.children,d=a.iconColor,p=a.iconSize,v=a.icon,g=void 0===v?(0,e.jsx)(nQ,{}):v,m=a.isChecked,y=a.isDisabled,b=void 0===y?null==r?void 0:r.isDisabled:y,x=a.onChange,w=a.inputProps,S=h(a,rQ),_=m;(null==r?void 0:r.value)&&a.value&&(_=r.value.includes(a.value));var k=x;(null==r?void 0:r.onChange)&&a.value&&(k=function(){for(var e=arguments.length,t=new Array(e),n=0;n0){if(!(t.beacon.indexOf(e.id)>-1))return!1;s=!0}if(t.host.length>0){var u;if(!(t.host.indexOf(null===e||void 0===e||null===(u=e.host)||void 0===u?void 0:u.id)>-1))return!1;s=!0}if(t.service.length>0){if(!(l&&t.service.indexOf(null===l||void 0===l?void 0:l.id)>-1))return!1;s=!0}if(t.group.length>0){if(!(a&&t.group.indexOf(null===a||void 0===a?void 0:a.id)>-1))return!1;s=!0}if(t.platform.length>0){var c;if(!(t.platform.indexOf(null===e||void 0===e||null===(c=e.host)||void 0===c?void 0:c.platform)>-1))return!1;s=!0}return s}))}),[l]),h=(0,i.useCallback)((function(e,t){return c?e.filter((function(e){return t[null===e||void 0===e?void 0:e.id]})):e}),[c]);return(0,i.useEffect)((function(){var n=h(e,t);n=f(n),o(n)}),[e,t,l,c]),{filteredBeacons:r,setTypeFilters:s,viewOnlySelected:c,setViewOnlySelected:d}}(n,l),c=u.filteredBeacons,d=u.setTypeFilters,h=u.setViewOnlySelected,p=(0,i.useCallback)((function(e){s((function(t){var n=f({},t);return n[e]=!t[e],n}))}),[]),v=(0,i.useCallback)((function(){s((function(e){var t=f({},e);return c.map((function(e){t[e.id]=!0})),t}))}),[c]),g=(0,i.useCallback)((function(){s((function(e){var t=f({},e);return c.map((function(e){t[e.id]=!1})),t}))}),[c]);var m=function(){var e=0;for(var t in l)!0===l[t]&&(e+=1);return e}();return(0,e.jsx)("div",{className:"flex flex-col gap-4",children:(0,e.jsxs)(DB,{direction:"column",gap:"4",children:[(0,e.jsx)(IB,{children:(0,e.jsxs)("div",{className:"flex flex-row justify-between gap-8",children:[(0,e.jsx)("div",{className:" flex-1",children:(0,e.jsx)(Wq,{setFiltersSelected:d,groups:r,services:o,beacons:n,hosts:a})}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(TB,{htmlFor:"isSelected",children:(0,e.jsx)(SO,{size:"sm",children:"Filter by selected"})}),(0,e.jsx)(nH,{id:"isSelected",className:"pt-1",colorScheme:"purple",onChange:function(){return h((function(e){return!e}))}})]})]})}),(0,e.jsx)(IB,{children:(0,e.jsx)(jF,{p:2,className:"option-container",borderRadius:"md",children:(0,e.jsxs)(DB,{direction:"column",gap:2,width:"full",height:"full",children:[(0,e.jsxs)(IB,{children:[(0,e.jsx)(IB,{children:(0,e.jsxs)(cH,{leftIcon:(0,e.jsx)(pH,{className:"h-4 w-4"}),size:"sm",onClick:function(){return v()},children:["Select all (",c.length,")"]})}),(0,e.jsx)(IB,{children:(0,e.jsx)(cH,{leftIcon:(0,e.jsx)(vH,{className:" h-4 w-4"}),size:"sm",onClick:function(){return g()},children:"Clear selected"})})]}),0===c.length&&(0,e.jsx)(IB,{children:(0,e.jsxs)(hH,{fontSize:"sm",p:2,textAlign:"center",children:[c.length!==n.length&&"Try adjusting filter. ","No results found."]})}),(0,e.jsx)(IB,{className:"md-scroll-container",children:(0,e.jsx)(vQ,{disableHeight:!0,children:function(t){var n=t.width;return(0,e.jsx)(pQ,{cellRenderer:function(t){return function(t,n){var r=t.columnIndex,o=t.key,i=t.rowIndex,a=t.style,s=1*i+r;return(0,e.jsx)("div",{style:a,children:(0,e.jsx)(hQ,{index:s,style:{width:n,height:100},beaconsToDisplay:c,toggleCheck:p,beaconsSelected:l})},o)}(t,n)},columnCount:1,columnWidth:n,height:100*c.length,rowCount:c.length,rowHeight:100,width:n})}})})]})})}),(0,e.jsx)(IB,{className:"flex flex-row items-end justify-end w-full",children:(0,e.jsxs)(SO,{size:"sm",mb:2,className:" self-end text-right",children:["Total beacons selected (",m,")"]})})]})})},mQ=function(t){var n=t.setCurrStep,r=t.formik,o=lt((0,i.useState)({}),2),a=o[0],l=o[1],s=(0,i.useContext)(QI),u=s.data,c=s.isLoading,d=function(e){var t=new Date;return e.filter((function(e){return bN(new Date(e.lastSeenAt),{seconds:e.interval,minutes:1})>=t}))}((null===u||void 0===u?void 0:u.beacons)||[]),f=function(e){for(var t in e)if(!0===e[t])return!0;return!1}(a);return(0,e.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"Select agent beacons"}),(0,e.jsx)("p",{className:"text-sm text-gray-700 italic",children:"Only active beacons are available for selection"})]}),c||void 0===u?(0,e.jsx)(pO,{type:hO.loading,label:"Loading beacons..."}):(0,e.jsx)(gQ,{beacons:d,groups:(null===u||void 0===u?void 0:u.groupTags)||[],services:(null===u||void 0===u?void 0:u.serviceTags)||[],hosts:(null===u||void 0===u?void 0:u.hosts)||[],selectedBeacons:a,setSelectedBeacons:l}),(0,e.jsx)("div",{className:"flex flex-row gap-2",children:(0,e.jsx)("button",{className:"btn-primary",onClick:function(){return function(e){var t=[];for(var o in e)!0===e[o]&&t.push(o);r.setFieldValue("beacons",t),n(1)}(a)},disabled:!f,children:"Continue"})})]})};var yQ=function(){var e=lt((0,i.useState)(!1),2),t=e[0],n=e[1],r=s_(),o=function(e,t){var n=YR(null===t||void 0===t?void 0:t.client);$R(e,HR.Mutation);var r=(0,i.useState)({called:!1,loading:!1,client:n}),o=r[0],a=r[1],l=(0,i.useRef)({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(l.current,{client:n,options:t,mutation:e});var s=(0,i.useCallback)((function(e){void 0===e&&(e={});var t=l.current,n=t.options,r=t.mutation,o=jd(jd({},n),{mutation:r}),i=e.client||l.current.client;l.current.result.loading||o.ignoreResults||!l.current.isMounted||a(l.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});var s=++l.current.mutationId,u=LR(o,e);return i.mutate(u).then((function(t){var n,r=t.data,o=t.errors,c=o&&o.length>0?new UR({graphQLErrors:o}):void 0;if(s===l.current.mutationId&&!u.ignoreResults){var d={called:!0,loading:!1,data:r,error:c,client:i};l.current.isMounted&&!OR(l.current.result,d)&&a(l.current.result=d)}var f=e.onCompleted||(null===(n=l.current.options)||void 0===n?void 0:n.onCompleted);return null===f||void 0===f||f(t.data,u),t})).catch((function(t){var n;if(s===l.current.mutationId&&l.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:i};OR(l.current.result,r)||a(l.current.result=r)}var o=e.onError||(null===(n=l.current.options)||void 0===n?void 0:n.onError);if(o)return o(t,u),{data:void 0,errors:t};throw t}))}),[]),u=(0,i.useCallback)((function(){l.current.isMounted&&a({called:!1,loading:!1,client:n})}),[]);return(0,i.useEffect)((function(){return l.current.isMounted=!0,function(){l.current.isMounted=!1}}),[]),[s,jd({reset:u},o)]}(UE(dQ||(dQ=LC(["\n mutation CreateQuest ($IDs: [ID!]!, $input: CreateQuestInput!) {\n createQuest(beaconIDs: $IDs, input: $input) {\n id\n name\n tasks{\n id\n lastModifiedAt\n output\n execStartedAt\n execFinishedAt\n }\n tome{\n id\n name\n paramDefs\n }\n }\n }\n "]))),{onCompleted:function(e){var t;r("/results/".concat(null===e||void 0===e||null===(t=e.createQuest)||void 0===t?void 0:t.id))},onError:function(e){e&&n(!0)},refetchQueries:[WI,"GetQuests"]}),a=lt(o,2),l=a[0],s=a[1];return{submitQuest:function(e){var t,n,r={},o=gt(e.params);try{for(o.s();!(n=o.n()).done;){var i=n.value;r=f(f({},c({},i.name,i.value)),r)}}catch(s){o.e(s)}finally{o.f()}var a={variables:{IDs:e.beacons,input:{name:null===e||void 0===e?void 0:e.name,tomeID:null===(t=e.tome)||void 0===t?void 0:t.id,parameters:JSON.stringify(r)}}};l(a)},loading:s.loading,error:t,reset:s.reset}},bQ=["The Lost Tome of Eldoria","Shadows Over Brimstone Village","The Crimson Ritual","Secrets of the Sunken Temple","The Dragon's Hoard Heist","The Cursed Crown of King Maldor","The Whispering Woods Mystery","The Goblins' Hidden Fortress","The Labyrinth of Eternal Echoes","The Ghost Ship of Captain Redbeard","The Siege of Castle Blackthorn","The Enigma of the Arcane Tower","The Plague of Ironvale","The Forgotten Crypt of the Ancient Kings","The Elemental Fury","The Sapphire Phoenix Rebirth","The Ice Queen's Winter Curse","The Siege of the Sky Fortress","The Secret of the Leviathan's Depths","The Necromancer's Dark Army","The Blood Moon Prophecy","The Lost City of Gold","The Revenge of the Fire Witch","The Forbidden Spellbook","The Werewolf's Last Stand","The Treasure of the Sunken Galleon","The Missing Merchant of Silverport","The Haunted Halls of Greyhaven","The Wrath of the Forest Spirits","The Sands of Time Artifact","The Siege of the Undead Citadel","The Pirate King's Hidden Cove","The Cult of the Eclipse","The Guardian of the Crystal Cave","The Ancient Druid's Riddle","The Sorcerer's Stone Legacy","The Beast of the Bitter Peaks","The Relic of the Fallen Paladin","The Enchanted Maze of Mirrors","The Assault on Ogre's Keep","The Demon Lord's Infernal Game","The Mystic Oracle's Vision","The Quest for the Celestial Staff","The Dragonkin Uprising","The Elixir of Eternal Youth","The Conquest of the Shadow Fortress","The Vampire Lord's Masquerade","The Titan's Lost Treasure","The Siege of the Elemental Gates","The Rise of the Lich Emperor","The Orb of Planar Dissonance","The Lost Fleet of the Abyssal Deep","The Shattered Amulet of Prophecy","The Ruins of Skyreach Castle","The Starfallen Meteorite","The Midnight Heist in Shadowgrove","The Banished Warlock's Revenge","The Flames of the Phoenix Forge","The Mirror of Forgotten Dreams","The Serpent's Lair in the Twisted Jungle","The Festival of the Golden Harvest","The Howling Caverns of the Wind Spirits","The Tower of the Timeless Mage","The Eternal Flame of the Fire Temple","The Secret of the Moonstone Monolith","The Unseen Invasion of the Dream Realm","The Siege of the Crystal Spire","The Fallen Star of Eldritch Power","The Hunt for the Dire Wolf Alpha","The Underworld's Dark Bargain","The Trial of the Elemental Champions","The Lost Expedition to the Frozen Wastes","The Enchanted Forest of Eternal Autumn","The Rebellion of the Stone Golems","The Awakening of the Ancient Leviathan","The Curse of the Blood Ruby","The Riddle of the Sphinx Gate","The Wrath of the Storm King","The Sacred Grove of the Moon Druids","The Disappearance of the Silver Swan","The Legend of the Sunken Kingdom","The Quest for the Arcane Codex","The Plight of the Thornwood Dryads","The Invasion of the Shadow Fey","The Secret of the Alchemist's Stone","The Festival of the Lunar Eclipse","The Crypt of the Forgotten Pharaoh","The Siege of the Demon's Bastion","The Battle for the Astral Fortress","The Pursuit of the Chaos Sorcerer","The Hunt for the Sacred Golden Stag","The Return of the Ice Sorceress","The Lost Scrolls of the Celestial Monks","The Nightmare in the Haunted Manor","The Expedition to the Molten Core","The Labyrinth of the Shadow Queen","The Assault on the Goblin King's Lair","The Mystery of the Vanishing Village","The Rise of the Phoenix Cult","The Challenge of the Elemental Lords","The Enigma of the Ebon Orb","The Guardian's Gauntlet","The Gilded Labyrinth","The Forbidden Forest's Heart","The Lost Fleet of the Damned","The Caverns of Echoing Madness","The Siege of the Sunken City","The Ghosts of the Crimson Coast","The Fire Giant's Forge","The Curse of the Blackened Sun","The Rite of the Winter's Warden","The Lost Shrine of the Sea Serpent","The Hidden Temple of the Sky Gods","The Crypts of the Cursed Kings","The Tower of the Mad Alchemist","The Phantom Caravan","The Sunken Ruins of Atlantis","The Desert of Shifting Sands","The Ice Castle of the Frozen King","The Valley of the Lost Titans","The Maze of the Mind Flayer","The Haunting of the Amber Keep","The Wrath of the Red Dragon","The Heist of the Celestial Jewels","The Tomb of the Shadow Pharaoh","The Beast in the Black Bog","The Secret of the Iron Golem","The Siege of the Wraith's Tower","The Lair of the Basilisk","The Festival of the Burning Skies","The Night of the Blood Moon","The Hunt for the Hydra","The Oracle's Prophecy","The Lost City of the Desert Dunes","The Nightmare of the Netherworld","The Forbidden Isle of the Storm Giant","The Treachery of the Dwarven Mines","The Enchantment of the Silver Lake","The War of the Elemental Princes","The Ghost Fleet of the Abyss","The Sorcerer's Secret Sanctum","The Peril of the Poisoned Chalice","The Quest for the Dragon's Heart","The Omen of the Obsidian Tower","The Wrath of the Eldritch Horror","The Harvest of the Haunted Orchard","The Lich's Last Stand","The Awakening of the Sleeping Mountain","The Plague of the Shadowfell","The Jewel of the Jungle King","The Invasion of the Iron Legion","The Mystery of the Moonlit Grove","The Dark Ritual of the Necropolis","The Conclave of the Arcane Order","The Mirage of the Desert Oasis","The Guardian of the Golden Fleece","The Siege of the Celestial Citadel","The Quest for the Crystal Skull","The Rebellion of the Fire Elementals","The Voyage to the Edge of the World","The Return of the Ancient Dragon","The Theft of the Sacred Scepter","The Trial of the Champions","The Pact of the Demon Prince","The Lost Legend of the Silver Sword","The Hunt for the Vampire's Crypt","The Battle of the Sky Pirates","The Ghostly Gallows of the Damned","The Oracle of the Starry Skies","The Awakening of the Stone Giants","The Secret of the Shadowy Depths","The Betrayal of the Royal Court","The Expedition to the Hollow Earth","The Wrath of the Winter Witch","The Curse of the Emerald Eye","The Siege of the Underdark","The Hunt for the Kraken's Lair","The Rescue from the Goblin's Dungeon","The Labyrinth of the Lost Souls","The Disappearance of the Arcane Academy","The Trial by Fire and Ice","The Riddle of the Sphinx's Tomb","The Terror of the Troll King","The Escape from the Enchanted Tower","The Quest for the Phoenix Feather","The Shadow Over the Silver City","The Nightmare of the Nocturnal Forest","The Secret of the Sphinx's Riddle","The Enigma of the Elemental Eye","The Haunting of the Haunted Mansion","The Journey to the Center of the Earth","The Curse of the Crystal Cavern","The Quest for the Golden Dragon","The Secret of the Starlight Grotto","The Plague of the Dark Druids","The Hunt for the Lost Paladin","The Siege of the Serpent's Spire","The Lost Treasures of the Sunken Ship","The Awakening of the Forgotten Gods","The Battle for the Throne of Bones","The Secret of the Sunken Pyramid","The Festival of the Fire Spirits","The Enigma of the Emerald Enclave","The Hunt for the Horned Serpent","The Lost Labyrinth of the Lich Lord","The Ruins of the Ravenous Sphinx","The Ghosts of the Gilded Graveyard","The Curse of the Crystal Dragon","The Siege of the Sapphire City","The Riddle of the Ruby Rose","The Trial of the Thunder Titan","The Wrath of the Winter Wyrm","The Vault of the Voidwalker","The Plague of the Petrified Forest","The Haunting of the Harpy's Haven","The Lair of the Leviathan","The Oracle of the Obsidian Obelisk","The Treasure of the Tidal Temple","The Enchantment of the Eternal Elixir","The Challenge of the Chained Chimeras","The Rebellion of the Runebound Realm","The Nightmare of the Naga Nests","The Secret of the Silver Sarcophagus","The Lost Legacy of the Lunar Lich","The Siege of the Storm Sorcerer's Sanctum","The Quest for the Quicksilver Quill","The Festival of the Frozen Flame","The Awakening of the Ancient Archmage","The Riddle of the Radiant Relic","The Caverns of the Chaos Cult","The Terror of the Twilight Tower","The Hunt for the Hydra's Heart","The Crypt of the Crimson Crown","The Mirage of the Moonlit Mesa","The Enigma of the Enchanted Estate","The Plague of the Primeval Plains","The Mystery of the Mystic Maelstrom","The Rebellion of the Rock Ridge Raiders","The Secret of the Sunfire Sanctuary","The Trial of the Tempest Titan","The Heist of the Heavenly Harp","The Curse of the Celestial Chalice","The Labyrinth of the Lightning Lord","The Assault on the Abyssal Altar","The Quest for the Queen's Quartz","The Wrath of the Warlock's Wraiths","The Enchantment of the Eternal Ember","The Nightmare of the Necromancer's Nook","The Siege of the Sapphire Spire","The Riddle of the Rose Quartz","The Trial of the Twilight Tribunal","The Hunt for the Hollow Hydra","The Crypt of the Crystal Centaur","The Mirage of the Moonstone Monastery","The Enigma of the Enchanted Emerald","The Plague of the Petrified Palace","The Mystery of the Mystic Mirage","The Rebellion of the Rune Raiders","The Secret of the Sunken Sarcophagus","The Trial of the Thunder Throne","The Heist of the Heavenly Horizon","The Curse of the Celestial Comet","The Labyrinth of the Lunar Leviathan","The Assault on the Abyssal Aerie","The Quest for the Queen's Quiver","The Wrath of the Warlock's Wyvern","The Enchantment of the Emerald Eye","The Nightmare of the Netherworld Nexus","The Siege of the Starlight Spire","The Riddle of the Ruby Ring","The Trial of the Tempest Temple","The Hunt for the Haunted Hydra","The Crypt of the Crimson Chimera","The Mirage of the Moonlit Mountain","The Enigma of the Eternal Echelon","The Plague of the Primeval Pyramid","The Mystery of the Mystic Mace","The Rebellion of the Runic Raptor","The Secret of the Sunken Sphinx","The Trial of the Thunder Typhoon","The Heist of the Heavenly Haven","The Curse of the Cosmic Crown","The Labyrinth of the Lunar Lagoon","The Assault on the Arcane Archipelago","The Quest for the Queen's Quasar","The Wrath of the Warlock's Whirlwind","The Enchantment of the Ethereal Eye","The Nightmare of the Netherworld Nymph","The Siege of the Starfall Sanctuary","The Riddle of the Rosewood Relic","The Trial of the Tempest Tyrant","The Hunt for the Helios Hydra","The Crypt of the Celestial Centaur","The Mirage of the Misty Mesa","The Enigma of the Enchanted Elixir","The Plague of the Perilous Pyramid","The Mystery of the Mystic Meteor","The Rebellion of the Rune Revenant","The Secret of the Sunken Statue","The Trial of the Thunderous Titan","The Enigma of the Eternal Eclipse","The Guardian's Gambit","The Gilded Gargoyle's Gauntlet","The Forbidden Fortress's Feud","The Lost Library of the Luminous Lord","The Caverns of the Crimson Cult","The Siege of the Sapphire Sanctum","The Ghosts of the Gloomwood Grove","The Fire Fiend's Folly","The Curse of the Celestial Cyclops","The Rite of the Raging Revenant","The Lost Lagoon of the Leviathan","The Hidden Havens of the Hollow Hills","The Crypts of the Cursed Conclave","The Tower of the Twilight Tyrant","The Phantom Phoenix's Plight","The Sunken Spires of the Silent Sea","The Desert of the Dwindling Dream","The Ice Imp's Icy Incursion","The Valley of the Vanishing Vortex","The Maze of the Mystic Minotaur","The Haunting of the Hollowed Halls","The Wrath of the Withered Wraith","The Heist of the Hallowed Helm","The Tomb of the Twisted Tempest","The Beast in the Blackened Brine","The Secret of the Stone Sentinel","The Siege of the Shadowed Spires","The Lair of the Lurking Lycanthrope","The Festival of the Fiery Fates","The Night of the Nefarious Necromancer","The Hunt for the Hidden Hydra","The Oracle's Ominous Offering","The Lost Legend of the Luminous Lagoon","The Nightmare of the Nether Naiad","The Forbidden Fountain of the Forsaken Forest","The Treachery of the Tumultuous Tides","The Enchantment of the Enshrouded Enclave","The War of the Wandering Warlocks","The Ghostly Gale of the Grim Galleon","The Sorcerer's Secret Sanctum","The Peril of the Prismatic Prism","The Quest for the Quivering Quasar","The Omen of the Opaque Oracle","The Wrath of the Wicked Warlord","The Harvest of the Haunting Harbinger","The Lich's Lurid Legacy","The Awakening of the Abyssal Archon","The Plague of the Petrifying Plague","The Jewel of the Jaded Juggernaut","The Invasion of the Ironclad Imposters","The Mystery of the Moonlit Mirages","The Dark Ritual of the Drowned Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Monolith","The Guardian of the Glowing Grotto","The Siege of the Shimmering Shrine","The Quest for the Quantum Quill","The Rebellion of the Radiant Raiders","The Voyage to the Veiled Vortex","The Return of the Risen Reaver","The Theft of the Timeless Tome","The Trial of the Tempestuous Titans","The Pact of the Perfidious Prince","The Lost Lore of the Languishing Land","The Hunt for the Harrowing Haunt","The Battle of the Baleful Brigands","The Ghostly Guise of the Ghastly Ghouls","The Oracle of the Ominous Oasis","The Awakening of the Ancient Anomaly","The Secret of the Sunken Shadows","The Betrayal of the Blazing Bastion","The Expedition to the Ethereal Expanse","The Wrath of the Withering Witch","The Curse of the Crimson Comet","The Siege of the Subterranean Stronghold","The Hunt for the Horrid Hydra","The Rescue from the Ravenous Raptor","The Labyrinth of the Lost Legion","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resonating Rune","The Terror of the Tyrannical Titan","The Escape from the Ensnaring Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Seraphim","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hallows","The Journey to the Juxtaposed Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctum","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tumultuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Enigma of the Eclipsed Empyrean","The Guardian's Gruesome Game","The Gilded Grotto's Gambit","The Forbidden Fortress's Fable","The Lost Legacy of the Lurid Lich","The Caverns of the Creeping Chimaera","The Siege of the Shrouded Sanctum","The Ghosts of the Grieving Grove","The Fire Fiend's Fable","The Curse of the Cosmic Cyclops","The Rite of the Raging Revenant","The Lost Lighthouse of the Leviathan","The Hidden Havens of the Haunted Hills","The Crypts of the Cursed Cabal","The Tower of the Tenebrous Tyrant","The Phantom Phoenix's Plight","The Sunken Spires of the Silent Sea","The Desert of the Dwindling Dream","The Ice Imp's Icy Incursion","The Valley of the Vanishing Vortex","The Maze of the Mystic Minotaur","The Haunting of the Hollowed Halls","The Wrath of the Withered Wraith","The Heist of the Hallowed Helm","The Tomb of the Twisted Tempest","The Beast in the Blackened Brine","The Secret of the Stone Sentinel","The Siege of the Shadowed Spires","The Lair of the Lurking Lycanthrope","The Festival of the Fiery Fates","The Night of the Nefarious Necromancer","The Hunt for the Hidden Hydra","The Oracle's Ominous Offering","The Lost Legend of the Luminous Lagoon","The Nightmare of the Nether Naiad","The Forbidden Fountain of the Forsaken Forest","The Treachery of the Tumultuous Tides","The Enchantment of the Enshrouded Enclave","The War of the Wandering Warlocks","The Ghostly Gale of the Grim Galleon","The Sorcerer's Secret Sanctum","The Peril of the Prismatic Prism","The Quest for the Quivering Quasar","The Omen of the Opaque Oracle","The Wrath of the Wicked Warlord","The Harvest of the Haunting Harbinger","The Lich's Lurid Legacy","The Awakening of the Abyssal Archon","The Plague of the Petrifying Plague","The Jewel of the Jaded Juggernaut","The Invasion of the Ironclad Imposters","The Mystery of the Moonlit Mirages","The Dark Ritual of the Drowned Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Monolith","The Guardian of the Glowing Grotto","The Siege of the Shimmering Shrine","The Quest for the Quantum Quill","The Rebellion of the Radiant Raiders","The Voyage to the Veiled Vortex","The Return of the Risen Reaver","The Theft of the Timeless Tome","The Trial of the Tempestuous Titans","The Pact of the Perfidious Prince","The Lost Lore of the Languishing Land","The Hunt for the Harrowing Haunt","The Battle of the Baleful Brigands","The Ghostly Guise of the Ghastly Ghouls","The Oracle of the Ominous Oasis","The Awakening of the Ancient Anomaly","The Secret of the Sunken Shadows","The Betrayal of the Blazing Bastion","The Expedition to the Ethereal Expanse","The Wrath of the Withering Witch","The Curse of the Crimson Comet","The Siege of the Subterranean Stronghold","The Hunt for the Horrid Hydra","The Rescue from the Ravenous Raptor","The Labyrinth of the Lost Legion","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resonating Rune","The Terror of the Tyrannical Titan","The Escape from the Ensnaring Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Seraphim","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hallows","The Journey to the Juxtaposed Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctum","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tumultuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Eclipse of the Enchanted Emissary","The Guardian's Grimoire","The Gilded Griffin's Gambit","The Forbidden Fountain's Fury","The Lost Labyrinth of the Lunar Lynx","The Caverns of the Crimson Crown","The Siege of the Starlight Shrine","The Ghosts of the Glistening Glade","The Fire Fissure's Fortune","The Curse of the Crystal Chimera","The Rite of the Roaring Rampart","The Lost Lake of the Luminous Leviathan","The Hidden Haven of the Hallowed Hills","The Crypts of the Cursed Cavalry","The Tower of the Tumultuous Tempest","The Phantom Phoenix's Parade","The Sunken Stones of the Silent Sea","The Desert of the Dancing Dunes","The Ice Idol's Intrigue","The Valley of the Vanquished Vampires","The Maze of the Moonlight Minotaur","The Haunting of the Hollowed Hearth","The Wrath of the Wandering Wisp","The Heist of the Haunted Helm","The Tomb of the Tainted Tempest","The Beast in the Baleful Bog","The Secret of the Silent Sentinel","The Siege of the Shadowed Sanctum","The Lair of the Lethal Lycanthrope","The Festival of the Flickering Flames","The Night of the Nocturnal Nymphs","The Hunt for the Hidden Harpy","The Oracle's Ominous Oath","The Lost Legend of the Lustrous Lagoon","The Nightmare of the Nefarious Naiad","The Forbidden Fountain of the Forsaken Fey","The Treachery of the Tidal Titan","The Enchantment of the Eldritch Enclave","The War of the Wicked Warlords","The Ghostly Galleon of the Grim Grimoire","The Sorcerer's Secret Stronghold","The Peril of the Prismatic Pyramid","The Quest for the Quaking Quill","The Omen of the Obsidian Oracle","The Wrath of the Wrathful Warlock","The Harvest of the Haunting Hydra","The Lich's Lost Legacy","The Awakening of the Abyssal Avenger","The Plague of the Petrified Pagoda","The Jewel of the Jinxed Juggernaut","The Invasion of the Illusory Imposters","The Mystery of the Moonlit Mirage","The Dark Ritual of the Desolate Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Maze","The Guardian of the Glacial Grotto","The Siege of the Shining Spire","The Quest for the Quantum Quasar","The Rebellion of the Radiant Renegades","The Voyage to the Vengeful Vortex","The Return of the Rancorous Reaver","The Theft of the Timeless Tiara","The Trial of the Thunderous Titans","The Pact of the Perilous Prince","The Lost Lore of the Lurking Leviathan","The Hunt for the Haunting Harbinger","The Battle of the Baleful Brutes","The Ghostly Guise of the Ghastly Gargoyle","The Oracle of the Ominous Oubliette","The Awakening of the Ancient Apparition","The Secret of the Submerged Shadows","The Betrayal of the Burning Bastion","The Expedition to the Ethereal Eyrie","The Wrath of the Withered Warlock","The Curse of the Crimson Comet","The Siege of the Sunken Stronghold","The Hunt for the Horrifying Hydra","The Rescue from the Ravenous Ramparts","The Labyrinth of the Lost Legionnaire","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resplendent Rune","The Terror of the Tyrannical Titan","The Escape from the Enchanted Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Sarcophagus","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hall","The Journey to the Jovial Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctuary","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tempestuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Eclipse of the Enchanted Emissary","The Guardian's Grimoire","The Gilded Griffin's Gambit","The Forbidden Fountain's Fury","The Lost Labyrinth of the Lunar Lynx","The Caverns of the Crimson Crown","The Siege of the Starlight Shrine","The Ghosts of the Glistening Glade","The Fire Fissure's Fortune","The Curse of the Crystal Chimera","The Rite of the Roaring Rampart","The Lost Lake of the Luminous Leviathan","The Hidden Haven of the Hallowed Hills","The Crypts of the Cursed Cavalry","The Tower of the Tumultuous Tempest","The Phantom Phoenix's Parade","The Sunken Stones of the Silent Sea","The Desert of the Dancing Dunes","The Ice Idol's Intrigue","The Valley of the Vanquished Vampires","The Maze of the Moonlight Minotaur","The Haunting of the Hollowed Hearth","The Wrath of the Wandering Wisp","The Heist of the Haunted Helm","The Tomb of the Tainted Tempest","The Beast in the Baleful Bog","The Secret of the Silent Sentinel","The Siege of the Shadowed Sanctum","The Lair of the Lethal Lycanthrope","The Festival of the Flickering Flames","The Night of the Nocturnal Nymphs","The Hunt for the Hidden Harpy","The Oracle's Ominous Oath","The Lost Legend of the Lustrous Lagoon","The Nightmare of the Nefarious Naiad","The Forbidden Fountain of the Forsaken Fey","The Treachery of the Tidal Titan","The Enchantment of the Eldritch Enclave","The War of the Wicked Warlords","The Ghostly Galleon of the Grim Grimoire","The Sorcerer's Secret Stronghold","The Peril of the Prismatic Pyramid","The Quest for the Quaking Quill","The Omen of the Obsidian Oracle","The Wrath of the Wrathful Warlock","The Harvest of the Haunting Hydra","The Lich's Lost Legacy","The Awakening of the Abyssal Avenger","The Plague of the Petrified Pagoda","The Jewel of the Jinxed Juggernaut","The Invasion of the Illusory Imposters","The Mystery of the Moonlit Mirage","The Dark Ritual of the Desolate Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Maze","The Guardian of the Glacial Grotto","The Siege of the Shining Spire","The Quest for the Quantum Quasar","The Rebellion of the Radiant Renegades","The Voyage to the Vengeful Vortex","The Return of the Rancorous Reaver","The Theft of the Timeless Tiara","The Trial of the Thunderous Titans","The Pact of the Perilous Prince","The Lost Lore of the Lurking Leviathan","The Hunt for the Haunting Harbinger","The Battle of the Baleful Brutes","The Ghostly Guise of the Ghastly Gargoyle","The Oracle of the Ominous Oubliette","The Awakening of the Ancient Apparition","The Secret of the Submerged Shadows","The Betrayal of the Burning Bastion","The Expedition to the Ethereal Eyrie","The Wrath of the Withered Warlock","The Curse of the Crimson Comet","The Siege of the Sunken Stronghold","The Hunt for the Horrifying Hydra","The Rescue from the Ravenous Ramparts","The Labyrinth of the Lost Legionnaire","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resplendent Rune","The Terror of the Tyrannical Titan","The Escape from the Enchanted Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Sarcophagus","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hall","The Journey to the Jovial Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctuary","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tempestuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Enigma of the Emerald Eye","The Guardian's Glade","The Gilded Golem's Gambit","The Forbidden Forest's Foe","The Lost Legacy of the Labyrinthine Lord","The Caverns of the Crystal Chalice","The Siege of the Sunken Sanctuary","The Ghosts of the Grimwood Grove","The Fire Forge's Folly","The Curse of the Crowned Cobra","The Rite of the Ravenous Rift","The Lost Lighthouse of the Leviathan","The Hidden Hamlet of the Hallowed Hills","The Crypts of the Condemned Cavalry","The Tower of the Tenebrous Tempest","The Phantom Parade of the Phoenix","The Sunken Spires of the Silent Sea","The Desert of the Dreaming Dunes","The Ice Imp's Intrigue","The Valley of the Vanished Vampires","The Maze of the Mystic Minotaur","The Haunting of the Hallowed Hearth","The Wrath of the Wandering Wisp","The Heist of the Haunted Helm","The Tomb of the Tainted Tempest","The Beast in the Baleful Bog","The Secret of the Silent Sentinel","The Siege of the Shadowed Sanctum","The Lair of the Lethal Lycanthrope","The Festival of the Flickering Flames","The Night of the Nocturnal Nymphs","The Hunt for the Hidden Harpy","The Oracle's Ominous Oath","The Lost Legend of the Lustrous Lagoon","The Nightmare of the Nefarious Naiad","The Forbidden Fountain of the Forsaken Fey","The Treachery of the Tidal Titan","The Enchantment of the Eldritch Enclave","The War of the Wicked Warlords","The Ghostly Galleon of the Grim Grimoire","The Sorcerer's Secret Stronghold","The Peril of the Prismatic Pyramid","The Quest for the Quaking Quill","The Omen of the Obsidian Oracle","The Wrath of the Wrathful Warlock","The Harvest of the Haunting Hydra","The Lich's Lost Legacy","The Awakening of the Abyssal Avenger","The Plague of the Petrified Pagoda","The Jewel of the Jinxed Juggernaut","The Invasion of the Illusory Imposters","The Mystery of the Moonlit Mirage","The Dark Ritual of the Desolate Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Maze","The Guardian of the Glacial Grotto","The Siege of the Shining Spire","The Quest for the Quantum Quasar","The Rebellion of the Radiant Renegades","The Voyage to the Vengeful Vortex","The Return of the Rancorous Reaver","The Theft of the Timeless Tiara","The Trial of the Thunderous Titans","The Pact of the Perilous Prince","The Lost Lore of the Lurking Leviathan","The Hunt for the Haunting Harbinger","The Battle of the Baleful Brutes","The Ghostly Guise of the Ghastly Gargoyle","The Oracle of the Ominous Oubliette","The Awakening of the Ancient Apparition","The Secret of the Submerged Shadows","The Betrayal of the Burning Bastion","The Expedition to the Ethereal Eyrie","The Wrath of the Withered Warlock","The Curse of the Crimson Comet","The Siege of the Sunken Stronghold","The Hunt for the Horrifying Hydra","The Rescue from the Ravenous Ramparts","The Labyrinth of the Lost Legionnaire","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resplendent Rune","The Terror of the Tyrannical Titan","The Escape from the Enchanted Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Sarcophagus","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hall","The Journey to the Jovial Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctuary","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tempestuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Enigma of the Emerald Eye","The Guardian's Glade","The Gilded Golem's Gambit","The Forbidden Forest's Foe","The Lost Legacy of the Labyrinthine Lord","The Caverns of the Crystal Chalice","The Siege of the Sunken Sanctuary","The Ghosts of the Grimwood Grove","The Fire Forge's Folly","The Curse of the Crowned Cobra","The Rite of the Ravenous Rift","The Lost Lighthouse of the Leviathan","The Hidden Hamlet of the Hallowed Hills","The Crypts of the Condemned Cavalry","The Tower of the Tenebrous Tempest","The Phantom Parade of the Phoenix","The Sunken Spires of the Silent Sea","The Desert of the Dreaming Dunes","The Ice Idol's Intrigue","The Valley of the Vanished Vampires","The Maze of the Mystic Minotaur","The Haunting of the Hallowed Hearth","The Wrath of the Wandering Wisp","The Heist of the Haunted Helm","The Tomb of the Tainted Tempest","The Beast in the Baleful Bog","The Secret of the Silent Sentinel","The Siege of the Shadowed Sanctum","The Lair of the Lethal Lycanthrope","The Festival of the Flickering Flames","The Night of the Nocturnal Nymphs","The Hunt for the Hidden Harpy","The Oracle's Ominous Oath","The Lost Legend of the Lustrous Lagoon","The Nightmare of the Nefarious Naiad","The Forbidden Fountain of the Forsaken Fey","The Treachery of the Tidal Titan","The Enchantment of the Eldritch Enclave","The War of the Wicked Warlords","The Ghostly Galleon of the Grim Grimoire","The Sorcerer's Secret Stronghold","The Peril of the Prismatic Pyramid","The Quest for the Quaking Quill","The Omen of the Obsidian Oracle","The Wrath of the Wrathful Warlock","The Harvest of the Haunting Hydra","The Lich's Lost Legacy","The Awakening of the Abyssal Avenger","The Plague of the Petrified Pagoda","The Jewel of the Jinxed Juggernaut","The Invasion of the Illusory Imposters","The Mystery of the Moonlit Mirage","The Dark Ritual of the Desolate Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Maze","The Guardian of the Glacial Grotto","The Siege of the Shining Spire","The Quest for the Quantum Quasar","The Rebellion of the Radiant Renegades","The Voyage to the Vengeful Vortex","The Return of the Rancorous Reaver","The Theft of the Timeless Tiara","The Trial of the Thunderous Titans","The Pact of the Perilous Prince","The Lost Lore of the Lurking Leviathan","The Hunt for the Haunting Harbinger","The Battle of the Baleful Brutes","The Ghostly Guise of the Ghastly Gargoyle","The Oracle of the Ominous Oubliette","The Awakening of the Ancient Apparition","The Secret of the Submerged Shadows","The Betrayal of the Burning Bastion","The Expedition to the Ethereal Eyrie","The Wrath of the Withered Warlock","The Curse of the Crimson Comet","The Siege of the Sunken Stronghold","The Hunt for the Horrifying Hydra","The Rescue from the Ravenous Ramparts","The Labyrinth of the Lost Legionnaire","The Disappearance of the Dimensional Druid","The Trial by the Thunderous Tempest","The Riddle of the Resplendent Rune","The Terror of the Tyrannical Titan","The Escape from the Enchanted Enclave","The Quest for the Quixotic Quetzalcoatl","The Shadow Over the Shrouded Sanctuary","The Nightmare of the Numinous Nymph","The Secret of the Sacred Sarcophagus","The Enigma of the Ethereal Eye","The Haunting of the Hallowed Hall","The Journey to the Jovial Jester","The Curse of the Cryptic Crypt","The Quest for the Quintessential Quagmire","The Secret of the Starlit Sanctuary","The Plague of the Pernicious Pixies","The Hunt for the Haunting Harpy","The Siege of the Spectral Spire","The Lost Treasures of the Tempestuous Tides","The Awakening of the Arcane Archmage","The Battle for the Baleful Blade","The Enigma of the Emerald Eye","The Guardian's Glade","The Gilded Golem's Gambit","The Forbidden Forest's Foe","The Lost Legacy of the Labyrinthine Lord","The Caverns of the Crystal Chalice","The Siege of the Sunken Sanctuary","The Ghosts of the Grimwood Grove","The Fire Forge's Folly","The Curse of the Crowned Cobra","The Rite of the Ravenous Rift","The Lost Lighthouse of the Leviathan","The Hidden Hamlet of the Hallowed Hills","The Crypts of the Condemned Cavalry","The Tower of the Tenebrous Tempest","The Phantom Parade of the Phoenix","The Sunken Spires of the Silent Sea","The Desert of the Dreaming Dunes","The Ice Idol's Intrigue","The Valley of the Vanished Vampires","The Maze of the Mystic Minotaur","The Haunting of the Hallowed Hearth","The Wrath of the Wandering Wisp","The Heist of the Haunted Helm","The Tomb of the Tainted Tempest","The Beast in the Baleful Bog","The Secret of the Silent Sentinel","The Siege of the Shadowed Sanctum","The Lair of the Lethal Lycanthrope","The Festival of the Flickering Flames","The Night of the Nocturnal Nymphs","The Hunt for the Hidden Harpy","The Oracle's Ominous Oath","The Lost Legend of the Lustrous Lagoon","The Nightmare of the Nefarious Naiad","The Forbidden Fountain of the Forsaken Fey","The Treachery of the Tidal Titan","The Enchantment of the Eldritch Enclave","The War of the Wicked Warlords","The Ghostly Galleon of the Grim Grimoire","The Sorcerer's Secret Stronghold","The Peril of the Prismatic Pyramid","The Quest for the Quaking Quill","The Omen of the Obsidian Oracle","The Wrath of the Wrathful Warlock","The Harvest of the Haunting Hydra","The Lich's Lost Legacy","The Awakening of the Abyssal Avenger","The Plague of the Petrified Pagoda","The Jewel of the Jinxed Juggernaut","The Invasion of the Illusory Imposters","The Mystery of the Moonlit Mirage","The Dark Ritual of the Desolate Demon","The Conclave of the Celestial Circle","The Mirage of the Mysterious Maze","The Guardian of the Glacial Grotto","The Siege of the Shining Spire","The Quest for the Quantum Quasar","The Rebellion of the Radiant Renegades","The Voyage to the Vengeful Vortex","The Return of the Rancorous Reaver","The Theft of the Timeless Tiara","The Trial of the Thunderous Titans","The Pact of the Perilous Prince","The Lost Lore of the Lurking Leviathan","The Hunt for the Haunting Harbinger","The Battle of the Baleful Brutes","The Ghostly Guise of the Ghastly Gargoyle","The Oracle of the Ominous Oubliette","The Awakening of the Ancient Apparition","The Mystery of the Mystic Monolith","The Gloom of the Ghostly Galleon","The Secret of the Sunken Sphinx","The Quest for the Quicksilver Queen","The Wrath of the Wicked Warlock","The Plague of the Petrified Palace","The Rebellion of the Runic Revenant","The Enigma of the Ethereal Emissary","The Siege of the Sunfire Sanctum","The Labyrinth of the Lost Leviathan","The Heist of the Heavenly Horizon","The Omen of the Obsidian Obelisk","The Riddle of the Radiant Relic","The Curse of the Celestial Chalice","The Haunting of the Harpy's Haven","The Guardian of the Golden Grotto","The Voyage to the Vanishing Vortex","The Awakening of the Ancient Archon","The Crypt of the Crimson Crown","The Hunt for the Hydra's Heart","The Trial of the Tempest Tower","The Festival of the Frozen Flame","The Nightmare in the Netherworld","The Treasure of the Tidal Temple","The Enchantment of the Emerald Eye","The Secret of the Silver Sarcophagus","The Challenge of the Chained Chimeras","The Siege of the Serpent's Spire","The Rite of the Radiant Rune","The Plight of the Phantom Phoenix"];var xQ=function(){var t=lt((0,i.useState)(0),2),n=t[0],r=t[1],o=yQ().submitQuest,a=eN({initialValues:{name:function(){var e=bQ;return e[Math.floor(Math.random()*e.length)]}(),tome:null,params:[],beacons:[]},onSubmit:function(e){return o(e)}});return(0,e.jsx)("form",{id:"create-quest-form",className:"py-6",children:(0,e.jsxs)("div",{className:"grid grid-cols-12",children:[(0,e.jsx)("div",{className:" col-span-3",children:(0,e.jsx)(hN,{currStep:n,steps:[{name:"Select agent beacons",description:"Step 1",href:"#",step:0},{name:"Select a tome",description:"Step 2",href:"#",step:1},{name:"Confirm quest details",description:"Step 3",href:"#",step:2}]})}),(0,e.jsx)("div",{className:"col-span-9",children:function(t){switch(t){case 0:return(0,e.jsx)(mQ,{setCurrStep:r,formik:a});case 1:return(0,e.jsx)(SB,{setCurrStep:r,formik:a});case 2:return(0,e.jsx)(PB,{setCurrStep:r,formik:a});default:return(0,e.jsx)("div",{children:"An error has occured"})}}(n)})]})})},wQ=function(){var t,n=(0,i.useContext)(QI),r=n.data,o=n.isLoading,a=n.error;return(0,e.jsxs)(yO,{currNavItem:AC.createQuest,children:[(0,e.jsx)("div",{className:"border-b border-gray-200 pb-6 sm:flex sm:items-center sm:justify-between",children:(0,e.jsx)("h3",{className:"text-xl font-semibold leading-6 text-gray-900",children:"Create new quest"})}),o?(0,e.jsx)(pO,{type:hO.loading,label:"loading beacon info..."}):a?(0,e.jsx)(pO,{type:hO.error,label:"Error loading beacon info"}):null!==r&&void 0!==r&&r.beacons&&(null===r||void 0===r||null===(t=r.beacons)||void 0===t?void 0:t.length)>0?(0,e.jsx)(xQ,{}):(0,e.jsx)(pO,{type:hO.noData,label:"No beacons found",details:"Get started by deploying an imix agent on your target system.",children:(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-md bg-purple-700 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-purple-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple-700",onClick:function(){return window.open("https://docs.realm.pub/user-guide/getting-started#start-the-agent","_blank")},children:"See imix docs"})})]})},SQ=bO({displayName:"RepeatClockIcon",path:(0,e.jsxs)("g",{fill:"currentColor",children:[(0,e.jsx)("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),(0,e.jsx)("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})}),_Q=bO({displayName:"TimeIcon",path:(0,e.jsxs)("g",{fill:"currentColor",children:[(0,e.jsx)("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),(0,e.jsx)("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})}),kQ=n(1774),TQ=function(t){var n=t.task;return n.execFinishedAt?(0,e.jsx)("div",{children:(0,e.jsx)(rP,{fontSize:"0.8em",size:"large",colorScheme:"green",variant:"solid",children:(0,e.jsxs)("div",{className:"flex flex-row gap-1 justify-center items-center p-1",children:[(0,e.jsx)(kQ,{className:"w-5",color:"white"}),(0,e.jsx)("div",{children:"Finished"})]})})}):n.execStartedAt?(0,e.jsx)("div",{children:(0,e.jsx)(rP,{fontSize:"0.8em",size:"large",colorScheme:"gray",variant:"outline",children:(0,e.jsxs)("div",{className:"flex flex-row gap-1 justify-center items-center p-1",children:[(0,e.jsx)(SQ,{w:4,h:4,color:"gray"}),(0,e.jsx)("div",{children:"In-Progress"})]})})}):(0,e.jsx)("div",{children:(0,e.jsx)(rP,{fontSize:"0.8em",size:"large",colorScheme:"gray",variant:"outline",children:(0,e.jsxs)("div",{className:"flex flex-row gap-1 justify-center items-center p-1",children:[(0,e.jsx)(_Q,{w:4,h:4,color:"gray"}),(0,e.jsx)("div",{children:"Queued"})]})})})},CQ=function(t){var n=t.tome,r=t.params,o=t.paramKeys;return(0,e.jsx)(EF,{allowToggle:!0,className:"w-full",children:(0,e.jsxs)(OF,{children:[(0,e.jsx)("h2",{children:(0,e.jsx)(PF,{children:(0,e.jsxs)("div",{className:"flex flex-row gap-2 w-full items-center",children:[(0,e.jsxs)(jF,{as:"div",flex:"1",textAlign:"left",className:"flex flex-col w-full gap-1",children:[(0,e.jsx)("div",{className:"items-center font-medium text-gray-900",children:n.name}),(0,e.jsxs)("div",{className:"flex flex-col gap- w-full text-sm text-gray-600 gap-2",children:[(0,e.jsx)("p",{children:n.description}),o.length>0&&(0,e.jsx)("div",{className:"flex flex-row gap-8 flex-wrap",children:o.map((function(t){return(0,e.jsxs)("div",{className:"flex flex-col gap-0",children:[(0,e.jsx)("div",{className:"font-semibold",children:t}),(0,e.jsx)("div",{children:r[t]})]},t)}))})]})]}),(0,e.jsxs)("div",{className:"text-sm items-center",children:["Details",(0,e.jsx)(LF,{})]})]})})}),n.eldritch&&(0,e.jsx)(GF,{pb:4,pl:12,children:(0,e.jsx)(eB,{className:"w-full",text:n.eldritch,language:"python",showLineNumbers:!1,theme:yB,codeBlock:!0})})]})})},EQ=function(t){var n,r,o,a,l,s,u,c,d,f,h,p=t.isOpen,v=t.setOpen,g=t.selectedTask,m=new Date((null===g||void 0===g?void 0:g.createdAt)||""),y=new Date((null===g||void 0===g?void 0:g.execFinishedAt)||""),b=new Date((null===g||void 0===g?void 0:g.execStartedAt)||""),x=null!==g&&void 0!==g&&null!==(n=g.quest)&&void 0!==n&&n.parameters?JSON.parse(null===g||void 0===g||null===(r=g.quest)||void 0===r?void 0:r.parameters):{},w=Object.keys(x);return(0,e.jsx)(Lk.Root,{show:p,as:i.Fragment,children:(0,e.jsxs)(wC,{as:"div",className:"relative z-10",onClose:v,children:[(0,e.jsx)("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),(0,e.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,e.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,e.jsx)("div",{className:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10 ",children:(0,e.jsx)(Lk.Child,{as:i.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,e.jsx)(wC.Panel,{className:"pointer-events-auto w-screen max-w-xs md:max-w-md lg:max-w-4xl",children:(0,e.jsxs)("div",{className:"flex h-full flex-col overflow-y-scroll bg-white py-6 shadow-xl",children:[(0,e.jsx)("div",{className:"px-4 sm:px-6",children:(0,e.jsx)("div",{className:"flex w-full justify-end",children:(0,e.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,e.jsxs)("button",{type:"button",className:"relative rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return v(!1)},children:[(0,e.jsx)("span",{className:"absolute -inset-2.5"}),(0,e.jsx)("span",{className:"sr-only",children:"Close panel"}),(0,e.jsx)(RC,{className:"h-6 w-6","aria-hidden":"true"})]})})})}),(0,e.jsxs)("div",{className:"relative mt-6 flex-1 px-4 sm:px-6 flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex flex-row gap-4 items-center",children:[(0,e.jsx)("h2",{className:"text-3xl font-semibold text-gray-900",children:null===g||void 0===g||null===(o=g.quest)||void 0===o?void 0:o.name}),(0,e.jsx)(TQ,{task:g})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h3",{className:"text-2xl",children:"Status"}),(0,e.jsxs)("div",{className:"flex flex-row gap-4 sm:gap-12 text-sm mx-4",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-semibold",children:"Created"}),(0,e.jsx)("span",{children:"".concat(m.toLocaleTimeString())}),(0,e.jsx)("span",{children:"on ".concat(m.toDateString())})]}),(null===g||void 0===g?void 0:g.execStartedAt)&&(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-semibold",children:"Started"}),(0,e.jsx)("span",{children:"".concat(b.toLocaleTimeString())}),(0,e.jsx)("span",{children:"on ".concat(b.toDateString())})]}),(null===g||void 0===g?void 0:g.execFinishedAt)&&(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-semibold",children:"Finished"}),(0,e.jsx)("span",{children:"".concat(y.toLocaleTimeString())}),(0,e.jsx)("span",{children:"on ".concat(y.toDateString())})]})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h3",{className:"text-2xl text-gray-800",children:"Beacon"}),(0,e.jsx)("div",{className:"mx-4",children:(0,e.jsx)(_B,{beaconData:null===g||void 0===g?void 0:g.beacon})})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h3",{className:"text-2xl text-gray-800",children:"Tome"}),(0,e.jsx)(CQ,{tome:null===g||void 0===g||null===(a=g.quest)||void 0===a?void 0:a.tome,params:x,paramKeys:w})]}),(null===g||void 0===g||null===(l=g.quest)||void 0===l?void 0:l.creator)&&(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h3",{className:"text-2xl text-gray-800",children:"Creator"}),(0,e.jsxs)("div",{className:"flex flex-row gap-2 items-center mx-4",children:[(0,e.jsx)(lP,{borderRadius:"full",boxSize:"20px",src:null===g||void 0===g||null===(s=g.quest)||void 0===s||null===(u=s.creator)||void 0===u?void 0:u.photoURL,alt:"Profile of ".concat(null===g||void 0===g||null===(c=g.quest)||void 0===c||null===(d=c.creator)||void 0===d?void 0:d.name)}),(0,e.jsx)("div",{className:"text-sm flex flex-row gap-1 items-center text-gray-600",children:null===g||void 0===g||null===(f=g.quest)||void 0===f||null===(h=f.creator)||void 0===h?void 0:h.name})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h3",{className:"text-2xl text-gray-800",children:"Output"}),(0,e.jsx)("div",{className:"bg-gray-200 rounded-md p-0.5 ",children:(0,e.jsx)(gB,{text:null!==g&&void 0!==g&&g.output?null===g||void 0===g?void 0:g.output:"No output available",language:"",showLineNumbers:!1,theme:yB,codeBlock:!0})})]})]})]})})})})})})]})})},RQ={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function OQ(e,t,n,r){var o=Sd(n);return(0,i.useEffect)((function(){var i="function"===typeof e?e():null!=e?e:document;if(n&&i)return i.addEventListener(t,o,r),function(){i.removeEventListener(t,o,r)}}),[t,e,r,o,n]),function(){var n="function"===typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,o,r)}}var PQ=function(e,t){return{var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}},IQ={arrowShadowColor:PQ("--popper-arrow-shadow-color"),arrowSize:PQ("--popper-arrow-size","8px"),arrowSizeHalf:PQ("--popper-arrow-size-half"),arrowBg:PQ("--popper-arrow-bg"),transformOrigin:PQ("--popper-transform-origin"),arrowOffset:PQ("--popper-arrow-offset")};var AQ={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},jQ={scroll:!0,resize:!0};var MQ={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},DQ={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;LQ(t)},effect:function(e){var t=e.state;return function(){LQ(t)}}},LQ=function(e){var t;e.elements.popper.style.setProperty(IQ.transformOrigin.var,(t=e.placement,AQ[t]))},NQ={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;FQ(t)}},FQ=function(e){var t;if(e.placement){var n=zQ(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){var r,o;Object.assign(e.elements.arrow.style,(c(r={},n.property,n.value),c(r,"width",IQ.arrowSize.varRef),c(r,"height",IQ.arrowSize.varRef),c(r,"zIndex",-1),r));var i=(c(o={},IQ.arrowSizeHalf.var,"calc(".concat(IQ.arrowSize.varRef," / 2)")),c(o,IQ.arrowOffset.var,"calc(".concat(IQ.arrowSizeHalf.varRef," * -1)")),o);for(var a in i)e.elements.arrow.style.setProperty(a,i[a])}}},zQ=function(e){return e.startsWith("top")?{property:"bottom",value:IQ.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:IQ.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:IQ.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:IQ.arrowOffset.varRef}:void 0},VQ={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;BQ(t)},effect:function(e){var t=e.state;return function(){BQ(t)}}},BQ=function(e){if(e.elements.arrow){var t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(t){var n,r=(n=e.placement).includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:IQ.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})}}},HQ={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},WQ={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function UQ(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function GQ(e){return e instanceof UQ(e).Element||e instanceof Element}function qQ(e){return e instanceof UQ(e).HTMLElement||e instanceof HTMLElement}function QQ(e){return"undefined"!==typeof ShadowRoot&&(e instanceof UQ(e).ShadowRoot||e instanceof ShadowRoot)}var $Q=Math.max,YQ=Math.min,KQ=Math.round;function XQ(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function JQ(){return!/^((?!chrome|android).)*safari/i.test(XQ())}function ZQ(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&qQ(e)&&(o=e.offsetWidth>0&&KQ(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&KQ(r.height)/e.offsetHeight||1);var a=(GQ(e)?UQ(e):window).visualViewport,l=!JQ()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function e$(e){var t=UQ(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t$(e){return e?(e.nodeName||"").toLowerCase():null}function n$(e){return((GQ(e)?e.ownerDocument:e.document)||window.document).documentElement}function r$(e){return ZQ(n$(e)).left+e$(e).scrollLeft}function o$(e){return UQ(e).getComputedStyle(e)}function i$(e){var t=o$(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function a$(e,t,n){void 0===n&&(n=!1);var r=qQ(t),o=qQ(t)&&function(e){var t=e.getBoundingClientRect(),n=KQ(t.width)/e.offsetWidth||1,r=KQ(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=n$(t),a=ZQ(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==t$(t)||i$(i))&&(l=function(e){return e!==UQ(e)&&qQ(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:e$(e);var t}(t)),qQ(t)?((s=ZQ(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=r$(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function l$(e){var t=ZQ(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function s$(e){return"html"===t$(e)?e:e.assignedSlot||e.parentNode||(QQ(e)?e.host:null)||n$(e)}function u$(e){return["html","body","#document"].indexOf(t$(e))>=0?e.ownerDocument.body:qQ(e)&&i$(e)?e:u$(s$(e))}function c$(e,t){var n;void 0===t&&(t=[]);var r=u$(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=UQ(r),a=o?[i].concat(i.visualViewport||[],i$(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(c$(s$(a)))}function d$(e){return["table","td","th"].indexOf(t$(e))>=0}function f$(e){return qQ(e)&&"fixed"!==o$(e).position?e.offsetParent:null}function h$(e){for(var t=UQ(e),n=f$(e);n&&d$(n)&&"static"===o$(n).position;)n=f$(n);return n&&("html"===t$(n)||"body"===t$(n)&&"static"===o$(n).position)?t:n||function(e){var t=/firefox/i.test(XQ());if(/Trident/i.test(XQ())&&qQ(e)&&"fixed"===o$(e).position)return null;var n=s$(e);for(QQ(n)&&(n=n.host);qQ(n)&&["html","body"].indexOf(t$(n))<0;){var r=o$(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var p$="top",v$="bottom",g$="right",m$="left",y$="auto",b$=[p$,v$,g$,m$],x$="start",w$="end",S$="clippingParents",_$="viewport",k$="popper",T$="reference",C$=b$.reduce((function(e,t){return e.concat([t+"-"+x$,t+"-"+w$])}),[]),E$=[].concat(b$,[y$]).reduce((function(e,t){return e.concat([t,t+"-"+x$,t+"-"+w$])}),[]),R$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function O$(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function P$(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var I$={placement:"bottom",modifiers:[],strategy:"absolute"};function A$(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function z$(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?L$(o):null,a=o?N$(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case p$:t={x:l,y:n.y-r.height};break;case v$:t={x:l,y:n.y+n.height};break;case g$:t={x:n.x+n.width,y:s};break;case m$:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?F$(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case x$:t[u]=t[u]-(n[c]/2-r[c]/2);break;case w$:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var V$={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=z$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},B$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,v=void 0===p?0:p,g="function"===typeof c?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=m$,x=p$,w=window;if(u){var S=h$(n),_="clientHeight",k="clientWidth";if(S===UQ(n)&&"static"!==o$(S=n$(n)).position&&"absolute"===l&&(_="scrollHeight",k="scrollWidth"),o===p$||(o===m$||o===g$)&&i===w$)x=v$,v-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[_])-r.height,v*=s?1:-1;if(o===m$||(o===p$||o===v$)&&i===w$)b=g$,h-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[k])-r.width,h*=s?1:-1}var T,C=Object.assign({position:l},u&&B$),E=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:KQ(t*r)/r||0,y:KQ(n*r)/r||0}}({x:h,y:v}):{x:h,y:v};return h=E.x,v=E.y,s?Object.assign({},C,((T={})[x]=y?"0":"",T[b]=m?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",T)):Object.assign({},C,((t={})[x]=y?v+"px":"",t[b]=m?h+"px":"",t.transform="",t))}var W$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:L$(t.placement),variation:N$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var U$={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];qQ(o)&&t$(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});qQ(r)&&t$(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var G$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=E$.reduce((function(e,n){return e[n]=function(e,t,n){var r=L$(e),o=[m$,p$].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[m$,g$].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},q$={left:"right",right:"left",bottom:"top",top:"bottom"};function Q$(e){return e.replace(/left|right|bottom|top/g,(function(e){return q$[e]}))}var $$={start:"end",end:"start"};function Y$(e){return e.replace(/start|end/g,(function(e){return $$[e]}))}function K$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&QQ(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function X$(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J$(e,t,n){return t===_$?X$(function(e,t){var n=UQ(e),r=n$(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=JQ();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+r$(e),y:s}}(e,n)):GQ(t)?function(e,t){var n=ZQ(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):X$(function(e){var t,n=n$(e),r=e$(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=$Q(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=$Q(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+r$(e),s=-r.scrollTop;return"rtl"===o$(o||n).direction&&(l+=$Q(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(n$(e)))}function Z$(e,t,n,r){var o="clippingParents"===t?function(e){var t=c$(s$(e)),n=["absolute","fixed"].indexOf(o$(e).position)>=0&&qQ(e)?h$(e):e;return GQ(n)?t.filter((function(e){return GQ(e)&&K$(e,n)&&"body"!==t$(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=J$(e,n,r);return t.top=$Q(o.top,t.top),t.right=YQ(o.right,t.right),t.bottom=YQ(o.bottom,t.bottom),t.left=$Q(o.left,t.left),t}),J$(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function eY(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function tY(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function nY(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?S$:l,u=n.rootBoundary,c=void 0===u?_$:u,d=n.elementContext,f=void 0===d?k$:d,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,g=void 0===v?0:v,m=eY("number"!==typeof g?g:tY(g,b$)),y=f===k$?T$:k$,b=e.rects.popper,x=e.elements[p?y:f],w=Z$(GQ(x)?x:x.contextElement||n$(e.elements.popper),s,c,a),S=ZQ(e.elements.reference),_=z$({reference:S,element:b,strategy:"absolute",placement:o}),k=X$(Object.assign({},b,_)),T=f===k$?k:S,C={top:w.top-T.top+m.top,bottom:T.bottom-w.bottom+m.bottom,left:w.left-T.left+m.left,right:T.right-w.right+m.right},E=e.modifiersData.offset;if(f===k$&&E){var R=E[o];Object.keys(C).forEach((function(e){var t=[g$,v$].indexOf(e)>=0?1:-1,n=[p$,v$].indexOf(e)>=0?"y":"x";C[e]+=R[n]*t}))}return C}var rY={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,g=t.options.placement,m=L$(g),y=s||(m===g||!p?[Q$(g)]:function(e){if(L$(e)===y$)return[];var t=Q$(e);return[Y$(e),t,Y$(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(L$(n)===y$?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?E$:s,c=N$(r),d=c?l?C$:C$.filter((function(e){return N$(e)===c})):b$,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=nY(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[L$(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,_=!0,k=b[0],T=0;T=0,P=O?"width":"height",I=nY(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=O?R?g$:m$:R?v$:p$;x[P]>w[P]&&(A=Q$(A));var j=Q$(A),M=[];if(i&&M.push(I[E]<=0),l&&M.push(I[A]<=0,I[j]<=0),M.every((function(e){return e}))){k=C,_=!1;break}S.set(C,M)}if(_)for(var D=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},L=p?3:1;L>0;L--){if("break"===D(L))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function oY(e,t,n){return $Q(e,YQ(t,n))}var iY={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,v=void 0===p?0:p,g=nY(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),m=L$(t.placement),y=N$(t.placement),b=!y,x=F$(m),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,T="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,C="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(i){var O,P="y"===x?p$:m$,I="y"===x?v$:g$,A="y"===x?"height":"width",j=S[x],M=j+g[P],D=j-g[I],L=h?-k[A]/2:0,N=y===x$?_[A]:k[A],F=y===x$?-k[A]:-_[A],z=t.elements.arrow,V=h&&z?l$(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[P],W=B[I],U=oY(0,_[A],V[A]),G=b?_[A]/2-L-U-H-C.mainAxis:N-U-H-C.mainAxis,q=b?-_[A]/2+L+U+W+C.mainAxis:F+U+W+C.mainAxis,Q=t.elements.arrow&&h$(t.elements.arrow),$=Q?"y"===x?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(O=null==E?void 0:E[x])?O:0,K=j+q-Y,X=oY(h?YQ(M,j+G-Y-$):M,j,h?$Q(D,K):D);S[x]=X,R[x]=X-j}if(l){var J,Z="x"===x?p$:m$,ee="x"===x?v$:g$,te=S[w],ne="y"===w?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[p$,m$].indexOf(m),ae=null!=(J=null==E?void 0:E[w])?J:0,le=ie?re:te-_[ne]-k[ne]-ae+C.altAxis,se=ie?te+_[ne]+k[ne]-ae-C.altAxis:oe,ue=h&&ie?function(e,t,n){var r=oY(e,t,n);return r>n?n:r}(le,te,se):oY(h?le:re,te,h?se:oe);S[w]=ue,R[w]=ue-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]},aY=function(e,t){return eY("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:tY(e,b$))};var lY={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=L$(n.placement),s=F$(l),u=[m$,g$].indexOf(l)>=0?"height":"width";if(i&&a){var c=aY(o.padding,n),d=l$(i),f="y"===s?p$:m$,h="y"===s?v$:g$,p=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],v=a[s]-n.rects.reference[s],g=h$(i),m=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=p/2-v/2,b=c[f],x=m-d[u]-c[h],w=m/2-d[u]/2+y,S=oY(b,w,x),_=s;n.modifiersData[r]=((t={})[_]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&K$(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sY(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uY(e){return[p$,g$,v$,m$].some((function(t){return e[t]>=0}))}var cY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=nY(t,{elementContext:"reference"}),l=nY(t,{altBoundary:!0}),s=sY(a,r),u=sY(l,o,i),c=uY(s),d=uY(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},dY=j$({defaultModifiers:[D$,V$,W$,U$,G$,rY,iY,lY,cY]}),fY=["size","shadowColor","bg","style"];function hY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=void 0===t||t,r=e.modifiers,o=e.placement,a=void 0===o?"bottom":o,l=e.strategy,s=void 0===l?"absolute":l,u=e.arrowPadding,c=void 0===u?8:u,d=e.eventListeners,p=void 0===d||d,v=e.offset,g=e.gutter,m=void 0===g?8:g,y=e.flip,b=void 0===y||y,x=e.boundary,w=void 0===x?"clippingParents":x,S=e.preventOverflow,_=void 0===S||S,k=e.matchWidth,T=e.direction,C=void 0===T?"ltr":T,E=(0,i.useRef)(null),R=(0,i.useRef)(null),O=(0,i.useRef)(null),P=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",o=(null==(t=HQ[e])?void 0:t[r])||e;return"ltr"===r?o:null!=(n=WQ[e])?n:o}(a,C),I=(0,i.useRef)((function(){})),A=(0,i.useCallback)((function(){var e,t;n&&E.current&&R.current&&(null==(e=I.current)||e.call(I),O.current=dY(E.current,R.current,{placement:P,modifiers:[VQ,NQ,DQ,f(f({},MQ),{},{enabled:!!k}),f({name:"eventListeners"},(t=p,"object"===typeof t?{enabled:!0,options:f(f({},jQ),t)}:{enabled:t,options:jQ})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=v?v:[0,m]}},{name:"flip",enabled:!!b,options:{padding:8}},{name:"preventOverflow",enabled:!!_,options:{boundary:w}}].concat(yt(null!=r?r:[])),strategy:s}),O.current.forceUpdate(),I.current=O.current.destroy)}),[P,n,r,k,p,c,v,m,b,_,w,s]);(0,i.useEffect)((function(){return function(){var e;E.current||R.current||(null==(e=O.current)||e.destroy(),O.current=null)}}),[]);var j=(0,i.useCallback)((function(e){E.current=e,A()}),[A]),M=(0,i.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:LO(j,e)})}),[j]),D=(0,i.useCallback)((function(e){R.current=e,A()}),[A]),L=(0,i.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:LO(D,t),style:f(f({},e.style),{},{position:s,minWidth:k?void 0:"max-content",inset:"0 auto auto 0"})})}),[s,D,k]),N=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.size,e.shadowColor,e.bg,e.style;return f(f({},h(e,fY)),{},{ref:t,"data-popper-arrow":"",style:pY(e)})}),[]),F=(0,i.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-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=O.current)||e.update()},forceUpdate:function(){var e;null==(e=O.current)||e.forceUpdate()},transformOrigin:IQ.transformOrigin.varRef,referenceRef:j,popperRef:D,getPopperProps:L,getArrowProps:N,getArrowInnerProps:F,getReferenceProps:M}}function pY(e){var t=e.size,n=e.shadowColor,r=e.bg,o=f(f({},e.style),{},{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}var vY=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","closeOnScroll","closeOnPointerDown","closeOnEsc","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"],gY=function(e){var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},mY=function(e){var t,n;return(null==(n=null==(t=e.current)?void 0:t.ownerDocument)?void 0:n.defaultView)||window};function yY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openDelay,n=void 0===t?0:t,r=e.closeDelay,o=void 0===r?0:r,a=e.closeOnClick,l=void 0===a||a,s=e.closeOnMouseDown,u=e.closeOnScroll,d=e.closeOnPointerDown,p=void 0===d?s:d,v=e.closeOnEsc,g=void 0===v||v,m=e.onOpen,y=e.onClose,b=e.placement,x=e.id,w=e.isOpen,S=e.defaultIsOpen,_=e.arrowSize,k=void 0===_?10:_,T=e.arrowShadowColor,C=e.arrowPadding,E=e.modifiers,R=e.isDisabled,O=e.gutter,P=e.offset,I=e.direction,A=h(e,vY),j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=e.onOpen,r=e.isOpen,o=e.id,a=Sd(n),l=Sd(t),s=lt((0,i.useState)(e.defaultIsOpen||!1),2),u=s[0],c=s[1],d=void 0!==r?r:u,h=void 0!==r,p=(0,i.useId)(),v=null!=o?o:"disclosure-".concat(p),g=(0,i.useCallback)((function(){h||c(!1),null==l||l()}),[h,l]),m=(0,i.useCallback)((function(){h||c(!0),null==a||a()}),[h,a]),y=(0,i.useCallback)((function(){d?g():m()}),[d,m,g]);return{isOpen:d,onOpen:m,onClose:g,onToggle:y,isControlled:h,getButtonProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(f({},e),{},{"aria-expanded":d,"aria-controls":v,onClick:function(t){var n;null==(n=e.onClick)||n.call(e,t),y()}})},getDisclosureProps:function(){return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{hidden:!d,id:v})}}}({isOpen:w,defaultIsOpen:S,onOpen:m,onClose:y}),M=j.isOpen,D=j.onOpen,L=j.onClose,N=hY({enabled:M,placement:b,arrowPadding:C,modifiers:E,gutter:O,offset:P,direction:I}),F=N.referenceRef,z=N.getPopperProps,V=N.getArrowInnerProps,B=N.getArrowProps,H=(0,i.useId)(),W="tooltip-".concat(null!=x?x:H),U=(0,i.useRef)(null),G=(0,i.useRef)(),q=(0,i.useCallback)((function(){G.current&&(clearTimeout(G.current),G.current=void 0)}),[]),Q=(0,i.useRef)(),$=(0,i.useCallback)((function(){Q.current&&(clearTimeout(Q.current),Q.current=void 0)}),[]),Y=(0,i.useCallback)((function(){$(),L()}),[L,$]),K=function(e,t){return(0,i.useEffect)((function(){var n=gY(e);return n.addEventListener(bY,t),function(){return n.removeEventListener(bY,t)}}),[t,e]),function(){var t=gY(e),n=mY(e);t.dispatchEvent(new n.CustomEvent(bY))}}(U,Y),X=(0,i.useCallback)((function(){if(!R&&!G.current){K();var e=mY(U);G.current=e.setTimeout(D,n)}}),[K,R,D,n]),J=(0,i.useCallback)((function(){q();var e=mY(U);Q.current=e.setTimeout(Y,o)}),[o,Y,q]),Z=(0,i.useCallback)((function(){M&&l&&J()}),[l,J,M]),ee=(0,i.useCallback)((function(){M&&p&&J()}),[p,J,M]),te=(0,i.useCallback)((function(e){M&&"Escape"===e.key&&J()}),[M,J]);OQ((function(){return gY(U)}),"keydown",g?te:void 0),OQ((function(){return gY(U)}),"scroll",(function(){M&&u&&Y()})),(0,i.useEffect)((function(){R&&(q(),M&&L())}),[R,M,L,q]),(0,i.useEffect)((function(){return function(){q(),$()}}),[q,$]),OQ((function(){return U.current}),"pointerleave",J);var ne=(0,i.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:LO(U,t,F),onPointerEnter:Pt(e.onPointerEnter,(function(e){"touch"!==e.pointerType&&X()})),onClick:Pt(e.onClick,Z),onPointerDown:Pt(e.onPointerDown,ee),onFocus:Pt(e.onFocus,X),onBlur:Pt(e.onBlur,J),"aria-describedby":M?W:void 0})}),[X,J,ee,M,W,Z,F]),re=(0,i.useCallback)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return z(f(f({},t),{},{style:f(f({},t.style),{},(e={},c(e,IQ.arrowSize.var,k?"".concat(k,"px"):void 0),c(e,IQ.arrowShadowColor.var,T),e))}),n)}),[z,k,T]),oe=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=f(f({},e.style),{},{position:"relative",transformOrigin:IQ.transformOrigin.varRef});return f(f(f({ref:t},A),e),{},{id:W,role:"tooltip",style:n})}),[A,W]);return{isOpen:M,show:X,hide:J,getTriggerProps:ne,getTooltipProps:oe,getTooltipPositionerProps:re,getArrowProps:B,getArrowInnerProps:V}}var bY="chakra-ui:close-tooltip";var xY=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps","background","backgroundColor","bgColor","motionProps"];var wY=ax(zb.div),SY=ux((function(t,n){var r,o,a=px("Tooltip",t),l=wr(t),s=cx(),u=l.children,c=l.label,d=l.shouldWrapChildren,p=l["aria-label"],v=l.hasArrow,g=l.bg,m=l.portalProps,y=l.background,b=l.backgroundColor,x=l.bgColor,w=l.motionProps,S=h(l,xY),_=null!=(o=null!=(r=null!=y?y:b)?r:g)?o:x;if(_){a.bg=_;var k=function(e,t,n){var r,o,i;return null!=(i=null==(o=null==(r=e.__cssMap)?void 0:r["".concat(t,".").concat(n)])?void 0:o.varRef)?i:n}(s,"colors",_);a[IQ.arrowBg.var]=k}var T,C=yY(f(f({},S),{},{direction:s.direction}));if("string"===typeof u||d)T=(0,e.jsx)(ax.span,f(f({display:"inline-block",tabIndex:0},C.getTriggerProps()),{},{children:u}));else{var E=i.Children.only(u);T=(0,i.cloneElement)(E,C.getTriggerProps(E.props,E.ref))}var R=!!p,O=C.getTooltipProps({},n),P=R?function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),o=gt(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in r&&delete r[i]}}catch(a){o.e(a)}finally{o.f()}return r}(O,["role","id"]):O,I=function(e,t){var n,r={},o=gt(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;i in e&&(r[i]=e[i])}}catch(a){o.e(a)}finally{o.f()}return r}(O,["role","id"]);return c?(0,e.jsxs)(e.Fragment,{children:[T,(0,e.jsx)(qx,{children:C.isOpen&&(0,e.jsx)(nw,f(f({},m),{},{children:(0,e.jsx)(ax.div,f(f({},C.getTooltipPositionerProps()),{},{__css:{zIndex:a.zIndex,pointerEvents:"none"},children:(0,e.jsxs)(wY,f(f(f({variants:RQ,initial:"exit",animate:"enter",exit:"exit"},w),P),{},{__css:a,children:[c,R&&(0,e.jsx)(ax.span,f(f({srOnly:!0},I),{},{children:p})),v&&(0,e.jsx)(ax.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,e.jsx)(ax.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:a.bg}})})]}))}))}))})]}):(0,e.jsx)(e.Fragment,{children:u})}));SY.displayName="Tooltip";var _Y=function(t){var n=t.tasks,r=t.onToggle,o=new Date,i=[{id:"name",header:"Quest details",accessorFn:function(e){var t;return null===e||void 0===e||null===(t=e.node)||void 0===t?void 0:t.quest},footer:function(e){return e.column.id},maxSize:110,enableSorting:!1,cell:function(t){var n,r=t.getValue();return(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("div",{children:r.name}),(0,e.jsx)("div",{className:"text-sm flex flex-row gap-1 items-center text-gray-500",children:null===r||void 0===r||null===(n=r.tome)||void 0===n?void 0:n.name})]})}},{id:"beacon",header:"Beacon",accessorFn:function(e){var t;return null===e||void 0===e||null===(t=e.node)||void 0===t?void 0:t.beacon},footer:function(e){return e.column.id},minSize:window.innerWidth/8,enableSorting:!1,cell:function(t){var n=t.getValue();return(0,e.jsx)(_B,{beaconData:n})}},{id:"status",header:"Status",accessorFn:function(e){return null===e||void 0===e?void 0:e.node},minSize:80,maxSize:100,enableSorting:!1,cell:function(t){var n=t.getValue(),r=new Date(null===n||void 0===n?void 0:n.lastModifiedAt),i=(null===n||void 0===n?void 0:n.output.length)>0;return(0,e.jsx)(SY,{label:(null===n||void 0===n?void 0:n.output.length)>500?"Click to see output":null===n||void 0===n?void 0:n.output,"aria-label":"Task output",children:(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsxs)("div",{className:"flex flex-row gap-2 flex-wrap",children:[(0,e.jsx)(TQ,{task:n}),i&&(0,e.jsx)("div",{children:(0,e.jsx)(rP,{fontSize:"0.8em",size:"large",colorScheme:"purple",children:(0,e.jsx)("div",{className:"p-1",children:"Has Output"})})})]}),(0,e.jsxs)("div",{className:"text-sm text-gray-500 flex flex-row flex-wrap",children:["last updated ",NP(r,o)]})]})})},footer:function(e){return e.column.id}}];return(0,e.jsx)(zI,{data:n,columns:i,onRowClick:r})};function kY(t){var n=t.totalCount,r=t.pageInfo,o=t.refetchTable,i=t.page,a=t.setPage,l=t.rowLimit;return(0,e.jsxs)("nav",{className:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-3 sm:px-6","aria-label":"Pagination",children:[(0,e.jsx)("div",{className:"hidden sm:block",children:(0,e.jsxs)("p",{className:"text-sm text-gray-800",children:["Page ",(0,e.jsx)("span",{className:"font-semibold",children:i})," of ",(0,e.jsx)("span",{className:"font-semibold",children:Math.ceil(n/l)})," ","(".concat(n," results)")]})}),(0,e.jsxs)("div",{className:"flex flex-1 justify-between sm:justify-end",children:[(0,e.jsx)("button",{disabled:!r.hasPreviousPage,onClick:function(){o&&r.hasPreviousPage&&(a((function(e){return e-1})),o(void 0,r.startCursor))},className:"relative inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:outline-offset-0 disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),(0,e.jsx)("button",{disabled:!r.hasNextPage,onClick:function(){o&&r.hasNextPage&&(a((function(e){return e+1})),o(r.endCursor,void 0))},className:"relative ml-3 inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:outline-offset-0 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})}var TY,CY,EY,RY=function(t){var n=u_(),r=n.placeholder,o=n.questId,a=r||(o?"Search by output":"Search by tome name, quest name, or output"),l=t.setSearch,s=(0,i.useRef)((0,eP.debounce)(function(){var e=fw(cw().mark((function e(t){return cw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),300)).current;function u(){return(u=fw(cw().mark((function e(t){return cw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(t.target.value);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,i.useEffect)((function(){return function(){s.cancel()}}),[s]),(0,e.jsxs)("div",{className:"flex-1 gap-1",children:[(0,e.jsxs)(SO,{size:"sm",mb:2,children:[" ",a]}),(0,e.jsxs)(RO,{className:" border-gray-300",children:[(0,e.jsx)(MO,{pointerEvents:"none",children:(0,e.jsx)(xO,{color:"gray.300"})}),(0,e.jsx)(ZO,{type:"text",placeholder:a,onChange:function(e){return u.apply(this,arguments)}})]})]})},OY=function(t){var n=t.setSearch,r=t.setFiltersSelected,o=(0,i.useContext)(QI),a=o.data,l=o.isLoading,s=o.error;return(0,e.jsx)("div",{children:!l&&!s&&a&&(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,e.jsx)(RY,{setSearch:n}),(0,e.jsx)(Wq,{beacons:(null===a||void 0===a?void 0:a.beacons)||[],groups:(null===a||void 0===a?void 0:a.groupTags)||[],services:(null===a||void 0===a?void 0:a.serviceTags)||[],hosts:(null===a||void 0===a?void 0:a.hosts)||[],setFiltersSelected:r})]})})},PY=bO({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),IY=function(){var t,n,r,o=u_().questId,i=eO(UE(TY||(TY=LC(["\n query GetQuests($where: QuestWhereInput) {\n quests(where: $where){\n id\n name\n }\n }"]))),{variables:{where:{id:o}}}),a=i.loading,l=i.data,s=i.error;return(0,e.jsx)("div",{className:"flex flex-row justify-between w-full",children:(0,e.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,e.jsx)("h3",{className:"text-xl font-semibold leading-6 text-gray-900",children:"Quest outputs for"}),(null===l||void 0===l||null===(t=l.quests[0])||void 0===t?void 0:t.name)&&(0,e.jsx)(M_,{to:"/results",children:(0,e.jsx)(cH,{rightIcon:(0,e.jsx)(PY,{}),colorScheme:"purple",variant:"outline",size:"xs",children:null===l||void 0===l||null===(n=l.quests[0])||void 0===n?void 0:n.name})}),(s||!(null!==l&&void 0!==l&&null!==(r=l.quests[0])&&void 0!==r&&r.name)&&!a)&&(0,e.jsx)(M_,{to:"/results",children:(0,e.jsx)(cH,{rightIcon:(0,e.jsx)(PY,{}),colorScheme:"purple",variant:"outline",size:"xs",children:o})})]})})},AY=function(){return u_().questId?(0,e.jsx)(IY,{}):(0,e.jsx)("h3",{className:"text-xl font-semibold leading-6 text-gray-900",children:"Quest outputs"})},jY=function(e){return e.hostIDQuery="HOST_ID_QUERY",e.questIdQuery="QUEST_ID_QUERY",e.questDetailsQuery="QUEST_DETAILS_QUERY",e}({}),MY=function(e,t){var n=lt((0,i.useState)(1),2),r=n[0],o=n[1],a=lt((0,i.useState)(""),2),l=a[0],s=a[1],u=lt((0,i.useState)([]),2),c=u[0],d=u[1],f=(0,i.useCallback)((function(n,r,o){var i=MC.TaskRowLimit,a={where:{and:[]},first:o?null:i,last:o?i:null,after:r||null,before:o||null,orderBy:[{direction:"DESC",field:"LAST_MODIFIED_AT"}]};switch(e){case jY.hostIDQuery:var l=[{hasBeaconWith:{hasHostWith:{id:t}}}];n&&l.push({or:[{outputContains:n},{hasQuestWith:{nameContains:n}},{hasQuestWith:{hasTomeWith:{nameContains:n}}}]}),a.where.and=l;break;case jY.questIdQuery:var s=[{hasQuestWith:{id:t}}];n&&s.push({outputContains:n}),a.where.and=s;break;case jY.questDetailsQuery:default:var u=n||"";a.where.and=[{or:[{outputContains:u},{hasQuestWith:{nameContains:u}},{hasQuestWith:{hasTomeWith:{nameContains:u}}}]}]}return a}),[e,t]),h=(0,i.useCallback)((function(e,t){var n=t,r=e.reduce((function(e,t){return"beacon"===t.kind?e.beacon.push(t.name):"platform"===t.kind?e.platform.push(t.name):"service"===t.kind?e.service.push(t.name):"group"===t.kind?e.group.push(t.name):"host"===t.kind&&e.host.push(t.name),e}),{beacon:[],service:[],group:[],host:[],platform:[]}),o=r.beacon,i=r.group,a=r.service,l=r.platform,s=r.hosts,u=void 0===s?[]:s;return o.length>0&&(n.where.and=n.where.and.concat({hasBeaconWith:{nameIn:o}})),i.length>0&&(n.where.and=n.where.and.concat({hasBeaconWith:{hasHostWith:{hasTagsWith:{and:[{kind:"group"},{nameIn:i}]}}}})),a.length>0&&(n.where.and=n.where.and.concat({hasBeaconWith:{hasHostWith:{hasTagsWith:{and:[{kind:"service"},{nameIn:a}]}}}})),u.length>0&&(n.where.and=n.where.and.concat({hasBeaconWith:{hasHostWith:{nameIn:u}}})),l.length>0&&(n.where.and=n.where.and.concat({hasBeaconWith:{hasHostWith:{platformIn:l}}})),n}),[]),p=eO(UI,{variables:f(),notifyOnNetworkStatusChange:!0}),v=p.loading,g=p.error,m=p.data,y=p.refetch,b=(0,i.useCallback)((function(e,t){var n=f(l,e,t),r=h(c,n);y(r)}),[l,c,f,h,y]);return(0,i.useEffect)((function(){b()}),[b]),{data:m,loading:v,error:g,page:r,filtersSelected:c,setPage:o,setSearch:function(e){o(1),s(e)},setFiltersSelected:function(e){o(1),d(e)},updateTaskList:b}},DY=function(){var t,n,r,o,a=u_().questId,l=a?jY.questIdQuery:jY.questDetailsQuery,s=MY(l,a),u=s.data,c=s.loading,d=s.error,f=s.setSearch,h=s.setFiltersSelected,p=s.updateTaskList,v=s.page,g=s.setPage,m=lt((0,i.useState)(!1),2),y=m[0],b=m[1],x=lt((0,i.useState)(null),2),w=x[0],S=x[1];return(0,e.jsxs)(yO,{currNavItem:AC.results,children:[(0,e.jsx)("div",{className:"border-b border-gray-200 pb-5 sm:flex sm:items-center sm:justify-between",children:(0,e.jsx)(AY,{})}),(0,e.jsx)("div",{className:"p-4 bg-white rounded-lg shadow-lg mt-2",children:(0,e.jsx)(OY,{setSearch:f,setFiltersSelected:h})}),c?(0,e.jsx)(pO,{type:hO.loading,label:"Loading quest tasks..."}):d?(0,e.jsx)(pO,{type:hO.error,label:"Error loading tasks..."}):(0,e.jsx)("div",{children:(null===u||void 0===u||null===(t=u.tasks)||void 0===t?void 0:t.edges.length)>0?(0,e.jsxs)("div",{className:"py-4 bg-white rounded-lg shadow-lg mt-2 flex flex-col gap-1",children:[(0,e.jsx)(_Y,{tasks:null===u||void 0===u||null===(n=u.tasks)||void 0===n?void 0:n.edges,onToggle:function(e){var t,n=null===e||void 0===e||null===(t=e.original)||void 0===t?void 0:t.node;S(n),b((function(e){return!e}))}}),(0,e.jsx)(kY,{totalCount:null===u||void 0===u||null===(r=u.tasks)||void 0===r?void 0:r.totalCount,pageInfo:null===u||void 0===u||null===(o=u.tasks)||void 0===o?void 0:o.pageInfo,refetchTable:p,page:v,setPage:g,rowLimit:MC.TaskRowLimit})]}):(0,e.jsx)(pO,{label:"No data found",details:"Try creating a new quest or adjusting filters.",type:hO.noData,children:(0,e.jsx)(M_,{to:"/createQuest",children:(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-md bg-purple-700 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-purple-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple-700",children:"Create new quest"})})})}),(0,e.jsx)(EQ,{isOpen:y,setOpen:b,selectedTask:w})]})},LY=function(t){var n=t.setFiltersSelected,r=(0,i.useContext)(QI),o=r.data,a=r.isLoading,l=r.error;return(0,e.jsx)("div",{children:!a&&!l&&o&&(0,e.jsx)("div",{className:"p-4 bg-white rounded-lg shadow-lg mt-2",children:(0,e.jsx)(Wq,{beacons:(null===o||void 0===o?void 0:o.beacons)||[],groups:(null===o||void 0===o?void 0:o.groupTags)||[],services:(null===o||void 0===o?void 0:o.serviceTags)||[],hosts:(null===o||void 0===o?void 0:o.hosts)||[],setFiltersSelected:n})})})},NY=function(t){var n=t.data;return(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("div",{children:n.name}),(0,e.jsxs)("div",{className:"flex flex-row flex-wrap gap-1",children:[(0,e.jsx)(rP,{children:null===n||void 0===n?void 0:n.primaryIP}),(0,e.jsx)(rP,{children:null===n||void 0===n?void 0:n.platform}),n.tags&&(null===n||void 0===n?void 0:n.tags.map((function(t){return(0,e.jsx)(rP,{children:t.name},t.id)})))]})]})},FY=function(t){var n=t.data,r=new Date,o=s_(),i=Object.values(DC),a=[{id:"name",header:"Host details",accessorFn:function(e){return e},footer:function(e){return e.column.id},enableSorting:!1,cell:function(t){var n=t.getValue();return(0,e.jsx)(NY,{data:n})}},{id:"beaconStatus",header:"Active beacons",accessorFn:function(e){return e.beaconStatus},footer:function(e){return e.column.id},maxSize:100,sortingFn:function(e,t){var n,r,o,i,a,l,s=(null===e||void 0===e||null===(n=e.original)||void 0===n?void 0:n.beaconStatus.online)/((null===e||void 0===e||null===(r=e.original)||void 0===r?void 0:r.beaconStatus.offline)+(null===e||void 0===e||null===(o=e.original)||void 0===o?void 0:o.beaconStatus.online)),u=(null===t||void 0===t||null===(i=t.original)||void 0===i?void 0:i.beaconStatus.online)/((null===t||void 0===t||null===(a=t.original)||void 0===a?void 0:a.beaconStatus.offline)+(null===t||void 0===t||null===(l=t.original)||void 0===l?void 0:l.beaconStatus.online));return su?-1:0},cell:function(t){var n=t.getValue(),r=0===n.online?"red":"gray";return(0,e.jsxs)(rP,{ml:"1",px:"4",colorScheme:r,fontSize:"font-base",children:[n.online,"/",n.offline+n.online]})}},{id:"beaconPrincipals",header:"Beacon principals",accessorFn:function(e){return e.beaconPrincipals},footer:function(e){return e.column.id},sortingFn:function(e,t){var n,r,o,a,l=null!==e&&void 0!==e&&null!==(n=e.original)&&void 0!==n&&n.beaconPrincipals?null===e||void 0===e||null===(r=e.original)||void 0===r?void 0:r.beaconPrincipals.filter((function(e){return-1!==i.indexOf(e)})).length:0,s=null!==e&&void 0!==e&&null!==(o=e.original)&&void 0!==o&&o.beaconPrincipals?null===t||void 0===t||null===(a=t.original)||void 0===a?void 0:a.beaconPrincipals.filter((function(e){return-1!==i.indexOf(e)})).length:0;return ls?-1:0},cell:function(t){var n=t.getValue();return(0,e.jsx)("div",{className:"flex flex-row flex-wrap gap-1",children:n.map((function(t){var n=-1===i.indexOf(t)?"gray":"purple";return(0,e.jsx)(rP,{textTransform:"none",colorScheme:n,children:t},t)}))})}},{id:"lastSeenAt",header:"Last callback",accessorFn:function(e){return NP(new Date(e.lastSeenAt),r)},footer:function(e){return e.column.id},maxSize:100,sortingFn:function(e,t){var n,r,o=new Date(null===e||void 0===e||null===(n=e.original)||void 0===n?void 0:n.lastSeenAt),i=new Date(null===t||void 0===t||null===(r=t.original)||void 0===r?void 0:r.lastSeenAt);return oi?-1:0}}];return(0,e.jsx)("div",{children:(0,e.jsx)(zI,{data:n,columns:a,onRowClick:function(e){var t;o("/hosts/".concat(null===e||void 0===e||null===(t=e.original)||void 0===t?void 0:t.id))}})})},zY=function(){var t=function(){var e=lt((0,i.useState)([]),2),t=e[0],n=e[1],r=eO(BI),o=r.loading,a=r.data,l=r.error,s=r.startPolling,u=r.stopPolling,c=(0,i.useCallback)((function(e){var t=function(e,t){return e.reduce((function(e,n){return e[n[t]]=n,e}),{})}(e.beacons||[],"principal"),n=Object.values(DC),r=[];for(var o in t)-1!==n.indexOf(o)?r.unshift(o):r.push(o);return r}),[]),d=(0,i.useCallback)((function(e){var t,r=new Date;if(e&&e.hosts){var o=null===e||void 0===e||null===(t=e.hosts)||void 0===t?void 0:t.map((function(e){return f(f({},e),{},{beaconPrincipals:c(e),beaconStatus:SN(e.beacons),formattedLastSeenAt:NP(new Date(e.lastSeenAt),r)})}));n(o)}}),[c]);return(0,i.useEffect)((function(){return s(6e4),function(){u()}}),[s,u]),(0,i.useEffect)((function(){a&&d(a)}),[a,d]),{loading:o,hosts:t,error:l}}(),n=t.loading,r=t.hosts,o=t.error,a=function(e){var t=lt((0,i.useState)(!1),2),n=t[0],r=t[1],o=lt((0,i.useState)(e),2),a=o[0],l=o[1],s=lt((0,i.useState)([]),2),u=s[0],c=s[1],d=(0,i.useCallback)((function(e){if(u.length<1)return e;var t=function(e){return e.reduce((function(e,t){return"beacon"===t.kind?e.beacon.push(t.value):"platform"===t.kind?e.platform.push(t.value):"service"===t.kind?e.service.push(t.value):"group"===t.kind?e.group.push(t.value):"host"===t.kind&&e.host.push(t.value),e}),{beacon:[],service:[],host:[],group:[],platform:[]})}(u);return e.filter((function(e){var n=null!==e&&void 0!==e&&e.tags?(null===e||void 0===e?void 0:e.tags).find((function(e){return"group"===(null===e||void 0===e?void 0:e.kind)})):null,r=null!==e&&void 0!==e&&e.tags?(null===e||void 0===e?void 0:e.tags).find((function(e){return"service"===(null===e||void 0===e?void 0:e.kind)})):null,o=!0;if(t.beacon.length>0){var i;if(null===e||void 0===e||null===(i=e.beacons)||void 0===i||!i.some((function(e){return t.beacon.includes(e.id)})))return!1;o=!0}if(t.host.length>0){if(!(t.host.indexOf(null===e||void 0===e?void 0:e.id)>-1))return!1;o=!0}if(t.service.length>0){if(!(r&&t.service.indexOf(null===r||void 0===r?void 0:r.id)>-1))return!1;o=!0}if(t.group.length>0){if(!(n&&t.group.indexOf(null===n||void 0===n?void 0:n.id)>-1))return!1;o=!0}if(t.platform.length>0){if(!(t.platform.indexOf(null===e||void 0===e?void 0:e.platform)>-1))return!1;o=!0}return o}))}),[u]);return(0,i.useEffect)((function(){if(e.length>0){r(!0);var t=d(e);l(t),r(!1)}}),[e,u,d]),{loading:n,filteredHosts:a,setTypeFilters:c}}(r),l=a.loading,s=a.filteredHosts,u=a.setTypeFilters;return(0,e.jsxs)(yO,{currNavItem:AC.hosts,children:[(0,e.jsx)("div",{className:"border-b border-gray-200 pb-5 sm:flex sm:items-center sm:justify-between",children:(0,e.jsx)("h3",{className:"text-xl font-semibold leading-6 text-gray-900",children:"Hosts"})}),(0,e.jsx)(LY,{setFiltersSelected:u}),(0,e.jsx)("div",{className:"flex flex-col justify-center items-center gap-6",children:n||l?(0,e.jsx)(pO,{type:hO.loading,label:"Loading hosts..."}):o?(0,e.jsx)(pO,{type:hO.error,label:"Error hosts..."}):s.length>0?(0,e.jsx)("div",{className:"py-4 bg-white rounded-lg shadow-lg mt-2 flex flex-col gap-1 w-full",children:(0,e.jsx)(FY,{data:s})}):r.length>0?(0,e.jsx)(pO,{type:hO.noMatches,label:"No hosts matching search filters"}):(0,e.jsx)(pO,{type:hO.noData,label:"No hosts data found"})})]})},VY=function(){var t,n,r,o,a=u_().hostId,l=MY(jY.hostIDQuery,a),s=l.data,u=l.loading,c=l.error,d=l.page,f=(l.filtersSelected,l.setPage),h=l.setSearch,p=l.updateTaskList,v=lt((0,i.useState)(!1),2),g=v[0],m=v[1],y=lt((0,i.useState)(null),2),b=y[0],x=y[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"py-4 bg-white rounded-lg shadow-lg mt-2 flex flex-col gap-2",children:[(0,e.jsx)("div",{className:"px-6 pt-2 ",children:(0,e.jsx)(RY,{setSearch:h})}),u?(0,e.jsx)(pO,{type:hO.loading,label:"Loading tasks..."}):c?(0,e.jsx)(pO,{type:hO.error,label:"Error loading tasks..."}):(0,e.jsx)("div",{children:(null===s||void 0===s||null===(t=s.tasks)||void 0===t?void 0:t.edges.length)>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_Y,{tasks:null===s||void 0===s||null===(n=s.tasks)||void 0===n?void 0:n.edges,onToggle:function(e){var t,n=null===e||void 0===e||null===(t=e.original)||void 0===t?void 0:t.node;x(n),m((function(e){return!e}))}}),(0,e.jsx)(kY,{totalCount:null===s||void 0===s||null===(r=s.tasks)||void 0===r?void 0:r.totalCount,pageInfo:null===s||void 0===s||null===(o=s.tasks)||void 0===o?void 0:o.pageInfo,refetchTable:p,page:d,setPage:f,rowLimit:MC.TaskRowLimit})]}):(0,e.jsx)(pO,{label:"No tasks found",type:hO.noData,details:"Get started by creating a new quest.",children:(0,e.jsx)(M_,{to:"/createQuest",children:(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-md bg-purple-700 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-purple-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple-700",children:"Create new quest"})})})})]}),(0,e.jsx)(EQ,{isOpen:g,setOpen:m,selectedTask:b})]})},BY=function(t){var n=t.hostId,r=t.loading,o=t.error,i=t.hostData;return(0,e.jsx)("div",{className:"flex flex-row justify-between w-full",children:(0,e.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,e.jsx)("h3",{className:"text-xl font-semibold leading-6 text-gray-900",children:"Host details for"}),i&&(0,e.jsx)(M_,{to:"/hosts",children:(0,e.jsx)(cH,{rightIcon:(0,e.jsx)(PY,{}),colorScheme:"purple",variant:"outline",size:"xs",children:null===i||void 0===i?void 0:i.name})}),(o||!i&&!r)&&(0,e.jsx)(M_,{to:"/hosts",children:(0,e.jsxs)(cH,{rightIcon:(0,e.jsx)(PY,{}),colorScheme:"purple",variant:"outline",size:"xs",children:["Id: ",n]})})]})})},HY=n(7613),WY=function(t){var n,r,o,i,a,l=t.host,s=t.taskLoading,u=t.taskError,c=t.taskData,d=SN((null===l||void 0===l?void 0:l.beacons)||[]),f=((null===c||void 0===c||null===(n=c.tasks)||void 0===n?void 0:n.edges)||[]).reduce((function(e,t){var n=null===t||void 0===t?void 0:t.node;return n.outputSize>0&&(e.hasOutputCount+=1),n.execFinishedAt&&(e.hasFinishedCount+=1),e}),{hasFinishedCount:0,hasOutputCount:0});return(0,e.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-5 gap-2",children:[(0,e.jsxs)("div",{className:"flex xl:col-span-2 md:col-span-3 col-span-1 flex-row gap-4 rounded-lg bg-white shadow items-center",children:[(0,e.jsx)("div",{className:"rounded-md bg-purple-900 p-6",children:(0,e.jsx)(TC,{className:"text-white w-8 h-8"})}),(0,e.jsx)("div",{className:"flex flex-col gap-2",children:l?(0,e.jsx)(NY,{data:l}):"-"})]}),(0,e.jsxs)("div",{className:"flex flex-row gap-4 rounded-lg bg-white shadow items-center",children:[(0,e.jsx)("div",{className:"rounded-md bg-purple-900 p-6",children:(0,e.jsx)(HY,{className:"text-white w-8 h-8"})}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("p",{className:"truncate text-sm font-medium text-gray-500",children:"Active beacons"}),(0,e.jsx)("p",{className:"text-2xl font-semibold text-gray-900",children:l?"".concat(d.online," / ").concat(d.online+d.offline):"-"})]})]}),(0,e.jsxs)("div",{className:"flex flex-row gap-4 rounded-lg bg-white shadow items-center",children:[(0,e.jsx)("div",{className:"rounded-md bg-purple-900 p-6",children:(0,e.jsx)(kQ,{className:"text-white w-8 h-8"})}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("p",{className:"truncate text-sm font-medium text-gray-500",children:"Tasks finished"}),(0,e.jsx)("p",{className:"text-2xl font-semibold text-gray-900",children:s||u||null===c||void 0===c||null===(r=c.tasks)||void 0===r||!r.edges?"-":"".concat(f.hasFinishedCount," / ").concat(null===c||void 0===c||null===(o=c.tasks)||void 0===o?void 0:o.totalCount)})]})]}),(0,e.jsxs)("div",{className:"flex flex-row gap-4 rounded-lg bg-white shadow items-center",children:[(0,e.jsx)("div",{className:"rounded-md bg-purple-900 p-6",children:(0,e.jsx)(_C,{className:"text-white w-8 h-8"})}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("p",{className:"truncate text-sm font-medium text-gray-500",children:"Tasks with output"}),(0,e.jsx)("p",{className:"text-2xl font-semibold text-gray-900",children:s||u||null===c||void 0===c||null===(i=c.tasks)||void 0===i||!i.edges?"-":"".concat(f.hasOutputCount," / ").concat(null===c||void 0===c||null===(a=c.tasks)||void 0===a?void 0:a.totalCount)})]})]})]})},UY=function(){var t=u_().hostId,n=eO(BI,{variables:{where:{id:t}}}),r=n.loading,o=n.data,i=n.error,a=eO(HI,{variables:{where:{hasBeaconWith:{hasHostWith:{id:t}}}}}),l=a.loading,s=a.data,u=a.error,c=null!==o&&void 0!==o&&o.hosts&&(null===o||void 0===o?void 0:o.hosts.length)>0?o.hosts[0]:null;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"border-b border-gray-200 pb-5 sm:flex sm:items-center sm:justify-between",children:(0,e.jsx)(BY,{hostId:t,loading:r,error:i,hostData:c})}),(0,e.jsx)("div",{className:"my-2",children:(0,e.jsx)(WY,{host:c,taskLoading:l,taskError:u,taskData:s})})]})},GY=function(){return(0,e.jsxs)(yO,{currNavItem:AC.hosts,children:[(0,e.jsx)(UY,{}),(0,e.jsx)(VY,{})]})},qY=(CY=[{path:"/",element:(0,e.jsx)(DY,{})},{path:"/hosts",element:(0,e.jsx)(zY,{})},{path:"/hosts/:hostId",element:(0,e.jsx)(GY,{})},{path:"/quests",element:(0,e.jsx)(GI,{})},{path:"/results/:questId",element:(0,e.jsx)(DY,{})},{path:"/createQuest",element:(0,e.jsx)(wQ,{})},{path:"/results",element:(0,e.jsx)(DY,{})}],dS({basename:null==EY?void 0:EY.basename,history:gw({window:null==EY?void 0:EY.window}),hydrationData:(null==EY?void 0:EY.hydrationData)||P_(),routes:CY,detectErrorBoundary:C_}).initialize()),QY=function(){return(0,e.jsx)(uw,{theme:gd,children:(0,e.jsx)(iO,{children:(0,e.jsx)($I,{children:(0,e.jsx)(x_,{router:qY})})})})},$Y=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,o=t.getFCP,i=t.getLCP,a=t.getTTFB;n(e),r(e),o(e),i(e),a(e)}))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var YY=function(){return Object.create(null)},KY=Array.prototype,XY=KY.forEach,JY=KY.slice,ZY=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=YY),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),cK=new aK,dK=Object.prototype.hasOwnProperty,fK=void 0===(sK=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:sK;function hK(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var pK=[],vK=100;function gK(e,t){if(!e)throw new Error(t||"assertion failure")}function mK(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var yK=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!wK(this))return bK(this),this.value[0]},e.prototype.recompute=function(e){return gK(!this.recomputing,"already recomputing"),bK(this),wK(this)?function(e,t){RK(e),cK.withValue(e,xK,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{hK(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,wK(e))return;_K(e)}(e);return mK(e.value)}(this,e):mK(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,SK(this),hK(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),RK(this),kK(this,(function(t,n){t.setDirty(),OK(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=pK.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(fK(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),pK.push(this.deps),this.deps=null)},e.count=0,e}();function bK(e){var t=cK.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),wK(e)?TK(t,e):CK(t,e),t}function xK(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function wK(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function SK(e){kK(e,TK)}function _K(e){kK(e,CK)}function kK(e,t){var n=e.parents.size;if(n)for(var r=fK(e.parents),o=0;o0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),EK(e,t),wK(e)||_K(e)}function EK(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(pK.length0&&e.childValues.forEach((function(t,n){OK(e,n)})),e.forgetDeps(),gK(null===e.dirtyChildren)}function OK(e,t){t.parents.delete(e),e.childValues.delete(t),EK(e,t)}var PK={setDirty:!0,dispose:!0,forget:!0};function IK(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=cK.getValue();if(r){var o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"===typeof n&&(hK(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var o=n&&dK.call(PK,n)?n:"setDirty";fK(r).forEach((function(e){return e[o]()})),t.delete(e),hK(r)}},r}function AK(){var e=new ZY("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}AK();var jK=new Set;function MK(e,t){void 0===t&&(t=Object.create(null));var n=new uK(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,o=t.makeCacheKey||AK(),i=function(){var i=o.apply(null,r?r.apply(null,arguments):arguments);if(void 0===i)return e.apply(null,arguments);var a=n.get(i);a||(n.set(i,a=new yK(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(i)});var l=a.recompute(Array.prototype.slice.call(arguments));return n.set(i,a),jK.add(n),cK.hasValue()||(jK.forEach((function(e){return e.clean()})),jK.clear()),l};function a(e){var t=n.get(e);t&&t.setDirty()}function l(e){var t=n.get(e);if(t)return t.peek()}function s(e){return n.delete(e)}return Object.defineProperty(i,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),i.dirtyKey=a,i.dirty=function(){a(o.apply(null,arguments))},i.peekKey=l,i.peek=function(){return l(o.apply(null,arguments))},i.forgetKey=s,i.forget=function(){return s(o.apply(null,arguments))},i.makeCacheKey=o,i.getKey=r?function(){return o.apply(null,r.apply(null,arguments))}:o,Object.freeze(i)}function DK(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new eR("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new eR(44);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(__DEV__?tR(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):tR(1===r.length,45),n=r[0].name.value),jd(jd({},e),{definitions:zd([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function LK(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function NK(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"===typeof t)return t(n);var r=t&&t[n];return __DEV__?tR(r,"No fragment named ".concat(n)):tR(r,46),r||null;default:return null}}var FK=function(){function e(){this.getFragmentDoc=MK(DK)}return e.prototype.batch=function(e){var t,n=this,r="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(jd(jd({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(jd(jd({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Md(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,o=e.fragmentName,i=Md(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(i,{query:this.getFragmentDoc(r,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),o=t(r);return void 0===o||null===o?r:(n.writeQuery(jd(jd({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),o=t(r);return void 0===o||null===o?r:(n.writeFragment(jd(jd({},e),{data:o})),o)}})},e}(),zK=function(e){function t(n,r,o,i){var a,l=e.call(this,n)||this;if(l.message=n,l.path=r,l.query=o,l.variables=i,Array.isArray(l.path)){l.missing=l.message;for(var s=l.path.length-1;s>=0;--s)l.missing=((a={})[l.path[s]]=l.missing,a)}else l.missing=l.path;return l.__proto__=t.prototype,l}return Ad(t,e),t}(Error);function VK(e){return{__ref:String(e)}}function BK(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function HK(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return HK(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var i=(r||{})[n.name.value];e[t.value]=i}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return HK(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new eR('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new eR(55);e[t.value]=null}}var WK=["connection","include","skip","client","rest","export"],UK=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),"".concat(n.connection.key,"(").concat(GK(o),")")}return n.connection.key}var i=e;if(t){var a=GK(t);i+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===WK.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(GK(n[e]),")"):i+="@".concat(e))})),i}),{setStringify:function(e){var t=GK;return GK=e,t}}),GK=function(e){return JSON.stringify(e,qK)};function qK(e,t){return KR(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function QK(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return HK(n,r,o,t)})),n}return null}function $K(e){return e.alias?e.alias.value:e.name.value}function YK(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r2&&void 0!==arguments[2]?arguments[2]:JC,r=new Map,o=0,i=Object.values($C);o=0;--a)t.definitions[a].kind===$C.OPERATION_DEFINITION&&++i;var l=cX(e),s=e.some((function(e){return e.remove})),u=function(e){return s&&e&&e.some(l)},c=new Map,d=!1,f={enter:function(e){if(u(e.directives))return d=!0,null}},h=JK(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(u(e.directives))return d=!0,null;var a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){c.set(JSON.stringify(r),e)},leave:function(e,t,n,o){return e===c.get(JSON.stringify(o))?e:i>0&&e.selectionSet.selections.every((function(e){return e.kind===$C.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,d=!0,null):void 0}},Directive:{leave:function(e){if(l(e))return d=!0,null}}});if(!d)return t;var p=function e(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach((function(n){e(r(n)).transitiveVars.forEach((function(e){t.transitiveVars.add(e)}))}))),t},v=new Set;h.definitions.forEach((function(e){e.kind===$C.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){v.add(e)})):e.kind!==$C.FRAGMENT_DEFINITION||0!==i||r(e.name.value).removed||v.add(e.name.value)})),v.forEach((function(e){p(r(e)).fragmentSpreads.forEach((function(e){v.add(e)}))}));var g={enter:function(e){if(t=e.name.value,!v.has(t)||r(t).removed)return null;var t}};return uX(JK(h,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size1)for(var r=new xX,o=1;o0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof BX?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){kX.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var o=this;o instanceof BX;)o=o.parent;r.forEach((function(e){return o.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!kX.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){BK(e)&&(t[e.__ref]=!0),KR(e)&&Object.keys(e).forEach((function(t){var n=e[t];KR(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),FX=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?IK():null,this.keyMaker=new ZY(pR)},e.prototype.depend=function(e,t){if(this.d){this.d(zX(e,t));var n=PX(t);n!==t&&this.d(zX(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(zX(e,t),"__exists"===t?"forget":"setDirty")},e}();function zX(e,t){return t+"#"+e}function VX(e,t){UX(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,i=t.seed,a=e.call(this,n,new FX(o))||this;return a.stump=new HX(a),a.storageTrie=new ZY(pR),i&&a.replace(i),a}return Ad(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(NX||(NX={}));var BX=function(e){function t(t,n,r,o){var i=e.call(this,n.policies,o)||this;return i.id=t,i.parent=n,i.replay=r,i.group=o,r(i),i}return Ad(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],o=n.lookup(e);o?r?r!==o&&Object.keys(r).forEach((function(n){OR(r[n],o[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(o).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return jd(jd({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return kX.call(this.data,t)?jd(jd({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(NX),HX=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new FX(t.group.caching,t.group))||this}return Ad(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(BX);function WX(e,t,n){var r=e[n],o=t[n];return OR(r,o)?r:o}function UX(e){return!!(e instanceof NX&&e.group.caching)}var GX,qX,QX=function(){function e(){this.known=new(vR?WeakSet:Set),this.pool=new ZY(pR),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return KR(e)&&this.known.has(e)},e.prototype.pass=function(e){if(KR(e)){var t=function(e){return KR(e)?zR(e)?e.slice(0):jd({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(KR(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(l=this.pool.lookupArray(r)).array||(this.known.add(l.array=r),__DEV__&&Object.freeze(r)),l.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),i=[o],a=this.sortedKeys(e);i.push(a.json);var l,s=i.length;if(a.sorted.forEach((function(n){i.push(t.admit(e[n]))})),!(l=this.pool.lookupArray(i)).object){var u=l.object=Object.create(o);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=i[s+t]})),__DEV__&&Object.freeze(u)}return l.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),$X=Object.assign((function(e){if(KR(e)){void 0===GX&&YX();var t=GX.admit(e),n=qX.get(t);return void 0===n&&qX.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:YX});function YX(){GX=new QX,qX=new(pR?WeakMap:Map)}function KX(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var XX=function(){function e(e){var t=this;this.knownResults=new(pR?WeakMap:Map),this.config=DR(e,{addTypename:!1!==e.addTypename,canonizeResults:RX(e)}),this.canon=e.canon||new QX,this.executeSelectionSet=MK((function(e){var n,r=e.context.canonizeResults,o=KX(e);o[3]=!r;var i=(n=t.executeSelectionSet).peek.apply(n,o);return i?r?jd(jd({},i),{result:t.canon.admit(i.result)}):i:(VX(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:KX,makeCacheKey:function(e,t,n,r){if(UX(n.store))return n.store.makeCacheKey(e,BK(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=MK((function(e){return VX(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(UX(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new QX},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,o=void 0===r?"ROOT_QUERY":r,i=e.variables,a=e.returnPartialData,l=void 0===a||a,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;i=jd(jd({},aX(oX(n))),i);var d,f=VK(o),h=this.executeSelectionSet({selectionSet:iX(n).selectionSet,objectOrReference:f,enclosingRef:f,context:jd({store:t,query:n,policies:c,variables:i,varString:$X(i),canonizeResults:u},jX(n,this.config.fragments))});if(h.missing&&(d=[new zK(JX(h.missing),h.missing,n,i)],!l))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(UX(r.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,i=e.context;if(BK(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,l=i.variables,s=i.policies,u=i.store.getFieldValue(r,"__typename"),c=[],d=new xX;function f(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof u&&!s.rootIdsByTypename[u]&&c.push({__typename:u});var h=new Set(n.selections);h.forEach((function(e){var n,p;if(wX(e,l))if(KK(e)){var v=s.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),g=$K(e);void 0===v?hX.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(BK(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):zR(v)?v=f(t.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:i}),g):e.selectionSet?null!=v&&(v=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:BK(v)?v:o,context:i}),g)):i.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&c.push(((p={})[g]=v,p))}else{var m=NK(e,i.lookupFragment);if(!m&&e.kind===$C.FRAGMENT_SPREAD)throw __DEV__?new eR("No fragment named ".concat(e.name.value)):new eR(5);m&&s.fragmentMatches(m,u)&&m.selectionSet.selections.forEach(h.add,h)}}));var p={result:yX(c),missing:a},v=i.canonizeResults?this.canon.admit(p):JR(p);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,i=e.enclosingRef,a=e.context,l=new xX;function s(e,n){var r;return e.missing&&(t=l.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:zR(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:i,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:BK(e)?e:i,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){KR(n)&&(__DEV__?tR(!BK(n),"Missing selection set for object of type ".concat(function(e,t){return BK(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):tR(!BK(n),6),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function JX(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var ZX=Object.prototype.toString;function eJ(e){return tJ(e)}function tJ(e,t){switch(ZX.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=tJ(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=tJ(e[n],t)})),r;default:return e}}var nJ=new Map;function rJ(e){var t=nJ.get(e)||1;return nJ.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}var oJ=new aK,iJ=new WeakMap;function aJ(e){var t=iJ.get(e);return t||iJ.set(e,t={vars:new Set,dep:IK()}),t}function lJ(e){aJ(e).vars.forEach((function(t){return t.forgetCache(e)}))}function sJ(e){var t=new Set,n=new Set,r=function r(i){if(arguments.length>0){if(e!==i){e=i,t.forEach((function(e){aJ(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var l=oJ.getValue();l&&(o(l),aJ(l).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),aJ(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var uJ=Object.create(null);function cJ(e){var t=JSON.stringify(e);return uJ[t]||(uJ[t]=Object.create(null))}function dJ(e){var t=cJ(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=hJ(e,(function(e){var o=gJ(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&kX.call(t,e[0])&&(o=gJ(t,e,vJ)),__DEV__?tR(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):tR(void 0!==o,2),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function fJ(e){var t=cJ(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,o=n.variables,i=n.fieldName,a=hJ(e,(function(e){var n=e[0],i=n.charAt(0);if("@"!==i)if("$"!==i){if(t)return gJ(t,e)}else{var a=n.slice(1);if(o&&kX.call(o,a)){var l=e.slice(0);return l[0]=a,gJ(o,l)}}else if(r&&VR(r.directives)){var s=n.slice(1),u=r.directives.find((function(e){return e.name.value===s})),c=u&&QK(u,o);return c&&gJ(c,e.slice(1))}})),l=JSON.stringify(a);return(t||"{}"!==l)&&(i+=":"+l),i})}function hJ(e,t){var n=new xX;return pJ(e).reduce((function(e,r){var o,i=t(r);if(void 0!==i){for(var a=r.length-1;a>=0;--a)(o={})[r[a]]=i,i=o;e=n.merge(e,i)}return e}),Object.create(null))}function pJ(e){var t=cJ(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,o){zR(t)?(pJ(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),zR(e[o+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function vJ(e,t){return e[t]}function gJ(e,t,n){return n=n||vJ,mJ(t.reduce((function e(t,r){return zR(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function mJ(e){return KR(e)?zR(e)?e.map(mJ):hJ(Object.keys(e).sort(),(function(t){return gJ(e,t)})):e}function yJ(e){return void 0!==e.args?e.args:e.field?QK(e.field,e.variables):null}UK.setStringify($X);var bJ=function(){},xJ=function(e,t){return t.fieldName},wJ=function(e,t,n){return(0,n.mergeObjects)(e,t)},SJ=function(e,t){return t},_J=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=jd({dataIdFromObject:CX},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,a=t&&t.storeObject||e,l=jd(jd({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=TJ(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),s=o&&this.getTypePolicy(o),u=s&&s.keyFn||this.config.dataIdFromObject;u;){var c=u(e,l);if(!zR(c)){i=c;break}u=dJ(c)}return i=i?String(i):void 0,l.keyObject?[i,l.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],o=r.queryType,i=r.mutationType,a=r.subscriptionType,l=Md(r,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),i&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),kX.call(t.toBeAdded,n)?t.toBeAdded[n].push(l):t.toBeAdded[n]=[l]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),o=t.keyFields,i=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?wJ:!1===t?SJ:e.merge}a(r,t.merge),r.keyFn=!1===o?bJ:zR(o)?dJ(o):"function"===typeof o?o:r.keyFn,i&&Object.keys(i).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),o=i[t];if("function"===typeof o)r.read=o;else{var l=o.keyArgs,s=o.read,u=o.merge;r.keyFn=!1===l?xJ:zR(l)?fJ(l):"function"===typeof l?l:r.keyFn,"function"===typeof s&&(r.read=s),a(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||xJ)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?tR(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):tR(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(OX);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!kX.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),o=r.fields,i=Md(r,["fields"]);Object.assign(n,i),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var a=this.getSupertypeSet(t,!0),l=[a],s=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&l.indexOf(t)<0&&l.push(t)},u=!(!n||!this.fuzzySubtypes.size),c=!1,d=0;d1?i:t}:(r=jd({},o),kX.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&tR.warn("Undefined 'from' passed to readField with arguments ".concat(function(e){var t=rJ("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("")}(Array.from(e)))),void 0===r.variables&&(r.variables=n),r}function CJ(e){return function(t,n){if(zR(t)||zR(n))throw __DEV__?new eR("Cannot automatically merge arrays"):new eR(4);if(KR(t)&&KR(n)){var r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(BK(t)&&AX(n))return e.merge(t.__ref,n),t;if(AX(t)&&BK(n))return e.merge(t,n.__ref),n;if(AX(t)&&AX(n))return jd(jd({},t),n)}return n}}function EJ(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:jd(jd({},e),{clientOnly:t,deferred:n})),o}var RJ=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,o=t.result,i=t.dataId,a=t.variables,l=t.overwrite,s=tX(r),u=new xX;a=jd(jd({},aX(s)),a);var c=jd(jd({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:a,varString:$X(a)},jX(r,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:i,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:c});if(!BK(d))throw __DEV__?new eR("Could not identify object ".concat(JSON.stringify(o))):new eR(7);return c.incomingById.forEach((function(t,r){var o=t.storeObject,i=t.mergeTree,a=t.fieldNodeSet,l=VK(r);if(i&&i.map.size){var s=n.applyMerges(i,l,o,c);if(BK(s))return;o=s}if(__DEV__&&!c.overwrite){var u=Object.create(null);a.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===u[PX(e)]})(e)&&!function(e){var t=i&&i.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},i=o(e);if(!i)return;var a=o(t);if(!a)return;if(BK(i))return;if(OR(i,a))return;if(Object.keys(i).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var l=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),s=PX(n),u="".concat(l,".").concat(s);if(MJ.has(u))return;MJ.add(u);var c=[];zR(i)||zR(a)||[i,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||c.includes(t)||c.push(t)}));__DEV__&&tR.warn("Cache data may be lost when replacing the ".concat(s," field of a ").concat(l," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(i).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(l,o,e,c.store)}))}e.merge(r,o)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,o=e.selectionSet,i=e.context,a=e.mergeTree,l=this.cache.policies,s=Object.create(null),u=n&&l.rootTypenamesById[n]||YK(r,o,i.fragmentMap)||n&&i.store.get(n,"__typename");"string"===typeof u&&(s.__typename=u);var c=function(){var e=TJ(arguments,s,i.variables);if(BK(e.from)){var t=i.incomingById.get(e.from.__ref);if(t){var n=l.readField(jd(jd({},e),{from:t.storeObject}),i);if(void 0!==n)return n}}return l.readField(e,i)},d=new Set;this.flattenFields(o,r,i,u).forEach((function(e,n){var o,i=$K(n),f=r[i];if(d.add(n),void 0!==f){var h=l.getStoreFieldName({typename:u,fieldName:n.name.value,field:n,variables:e.variables}),p=PJ(a,h),v=t.processFieldValue(f,n,n.selectionSet?EJ(e,!1,!1):e,p),g=void 0;n.selectionSet&&(BK(v)||AX(v))&&(g=c("__typename",v));var m=l.getMergeFunction(u,n.name.value,g);m?p.info={field:n,typename:u,merge:m}:jJ(a,h),s=e.merge(s,((o={})[h]=v,o))}else!__DEV__||e.clientOnly||e.deferred||hX.added(n)||l.getReadFunction(u,n.name.value)||__DEV__&&tR.error("Missing field '".concat($K(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var f=l.identify(r,{typename:u,selectionSet:o,fragmentMap:i.fragmentMap,storeObject:s,readField:c}),h=f[0],p=f[1];n=n||h,p&&(s=i.merge(s,p))}catch(y){if(!n)throw y}if("string"===typeof n){var v=VK(n),g=i.written[n]||(i.written[n]=[]);if(g.indexOf(o)>=0)return v;if(g.push(o),this.reader&&this.reader.isFresh(r,v,o,i))return v;var m=i.incomingById.get(n);return m?(m.storeObject=i.merge(m.storeObject,s),m.mergeTree=IJ(m.mergeTree,a),d.forEach((function(e){return m.fieldNodeSet.add(e)}))):i.incomingById.set(n,{storeObject:s,mergeTree:AJ(a)?void 0:a,fieldNodeSet:d}),v}return s},e.prototype.processFieldValue=function(e,t,n,r){var o=this;return t.selectionSet&&null!==e?zR(e)?e.map((function(e,i){var a=o.processFieldValue(e,t,n,PJ(r,i));return jJ(r,i),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?eJ(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=YK(t,e,n.fragmentMap));var o=new Map,i=this.cache.policies,a=new ZY(!1);return function e(l,s){var u=a.lookup(l,s.clientOnly,s.deferred);u.visited||(u.visited=!0,l.selections.forEach((function(a){if(wX(a,n.variables)){var l=s.clientOnly,u=s.deferred;if(l&&u||!VR(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var r=QK(e,n.variables);r&&!1===r.if||(u=!0)}})),KK(a)){var c=o.get(a);c&&(l=l&&c.clientOnly,u=u&&c.deferred),o.set(a,EJ(n,l,u))}else{var d=NK(a,n.lookupFragment);if(!d&&a.kind===$C.FRAGMENT_SPREAD)throw __DEV__?new eR("No fragment named ".concat(a.name.value)):new eR(8);d&&i.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,EJ(n,l,u))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,r,o){var i,a=this;if(e.map.size&&!BK(n)){var l,s=zR(n)||!BK(t)&&!AX(t)?void 0:t,u=n;s&&!o&&(o=[BK(s)?s.__ref:s]);var c=function(e,t){return zR(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(s,t),i=c(u,t);if(void 0!==i){o&&o.push(t);var d=a.applyMerges(e,n,i,r,o);d!==i&&(l=l||new Map).set(t,d),o&&tR(o.pop()===t)}})),l&&(n=zR(u)?u.slice(0):jd({},u),l.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&(i=r.store).getStorage.apply(i,o)):n},e}(),OJ=[];function PJ(e,t){var n=e.map;return n.has(t)||n.set(t,OJ.pop()||{map:new Map}),n.get(t)}function IJ(e,t){if(e===t||!t||AJ(t))return e;if(!e||AJ(e))return t;var n=e.info&&t.info?jd(jd({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var i=new Set(t.map.keys());e.map.forEach((function(e,n){o.map.set(n,IJ(e,t.map.get(n))),i.delete(n)})),i.forEach((function(n){o.map.set(n,IJ(t.map.get(n),e.map.get(n)))}))}return o}function AJ(e){return!e||!(e.info||e.map.size)}function jJ(e,t){var n=e.map,r=n.get(t);r&&AJ(r)&&(OJ.push(r),n.delete(t))}var MJ=new Set;var DJ=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=sJ,n.txCount=0,n.config=function(e){return DR(EX,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new _J({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Ad(t,e),t.prototype.init=function(){var e=this.data=new NX.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new RJ(this,this.storeReader=new XX({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:RX(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=MK((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(UX(n)){var r=e.optimistic,o=e.id,i=e.variables;return n.makeCacheKey(e.query,e.callback,$X({optimistic:r,id:o,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(jd(jd({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof zK)return null;throw r}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(kX.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(jd(jd({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){aJ(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&lJ(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){$X.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(BK(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&tR.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(kX.call(e,"id"))return!1;e=jd(jd({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),$X.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),lJ(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,o=e.optimistic,i=void 0===o||o,a=e.removeOptimistic,l=e.onWatchUpdated,s=function(e){var o=n,i=o.data,a=o.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=a}},u=new Set;return l&&!this.txCount&&this.broadcastWatches(jd(jd({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"===typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),l&&u.size?(this.broadcastWatches(jd(jd({},e),{onWatchUpdated:function(e,t){var n=l.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=hX(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&OR(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(FK);function LJ(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return NJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NJ(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function NJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,o=!1,i=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!o;if(o=!0,!a||r)try{i=e(i,t)}catch(l){return n.error(l)}else i=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(i),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){r.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach((function(e){return e.unsubscribe()})),i.unsubscribe()}}))},t[UJ]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=qJ(t,UJ);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return $J(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(BJ("iterator")&&(r=qJ(t,WJ)))return new n((function(e){KJ((function(){if(!e.closed){for(var n,o=LJ(r.call(t));!(n=o()).done;){var i=n.value;if(e.next(i),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){KJ((function(){if(!e.closed){for(var n=0;n-1){var r=e.slice(0,n).trim().toLowerCase(),o=e.slice(n+1).trim();t[r]=o}})),t}function yZ(e,t){if(e.status>=300){vZ(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function bZ(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}function xZ(e,t,n){var r;(r=t,function(e){return e.text().then((function(t){return yZ(e,t)})).then((function(t){return e.status>=300&&vZ(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||gZ.call(t,"data")||gZ.call(t,"errors")||vZ(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(e).then((function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)})).catch((function(e){return bZ(e,n)}))}var wZ=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function SZ(e){return _Z[e.charCodeAt(0)]}var _Z=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function kZ(e){return JK(e,TZ)}var TZ={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return CZ(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=RZ("(",CZ(e.variableDefinitions,", "),")"),n=CZ([e.operation,CZ([e.name,t]),CZ(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+RZ(" = ",r)+RZ(" ",CZ(o," "))}},SelectionSet:{leave:function(e){return EZ(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=RZ("",t,": ")+n,l=a+RZ("(",CZ(r,", "),")");return l.length>80&&(l=a+RZ("(\n",OZ(CZ(r,"\n")),"\n)")),CZ([l,CZ(o," "),i]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+RZ(" ",CZ(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return CZ(["...",RZ("on ",t),CZ(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(RZ("(",CZ(r,", "),")")," ")+"on ".concat(n," ").concat(RZ("",CZ(o," ")," "))+i}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,i=r.length>1&&r.slice(1).every((function(e){return 0===e.length||tE(e.charCodeAt(0))})),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,s=e.endsWith("\\"),u=l||s,c=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||u||i||a),d="",f=o&&tE(e.charCodeAt(0));return(c&&!f||i)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}(t):'"'.concat(t.replace(wZ,SZ),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+CZ(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+CZ(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+RZ("(",CZ(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return RZ("",t,"\n")+CZ(["schema",CZ(n," "),EZ(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return RZ("",t,"\n")+CZ(["scalar",n,CZ(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,o=e.directives,i=e.fields;return RZ("",t,"\n")+CZ(["type",n,RZ("implements ",CZ(r," & ")),CZ(o," "),EZ(i)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,o=e.type,i=e.directives;return RZ("",t,"\n")+n+(PZ(r)?RZ("(\n",OZ(CZ(r,"\n")),"\n)"):RZ("(",CZ(r,", "),")"))+": "+o+RZ(" ",CZ(i," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,o=e.defaultValue,i=e.directives;return RZ("",t,"\n")+CZ([n+": "+r,RZ("= ",o),CZ(i," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,o=e.directives,i=e.fields;return RZ("",t,"\n")+CZ(["interface",n,RZ("implements ",CZ(r," & ")),CZ(o," "),EZ(i)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,o=e.types;return RZ("",t,"\n")+CZ(["union",n,CZ(r," "),RZ("= ",CZ(o," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,o=e.values;return RZ("",t,"\n")+CZ(["enum",n,CZ(r," "),EZ(o)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return RZ("",t,"\n")+CZ([n,CZ(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,o=e.fields;return RZ("",t,"\n")+CZ(["input",n,CZ(r," "),EZ(o)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,o=e.repeatable,i=e.locations;return RZ("",t,"\n")+"directive @"+n+(PZ(r)?RZ("(\n",OZ(CZ(r,"\n")),"\n)"):RZ("(",CZ(r,", "),")"))+(o?" repeatable":"")+" on "+CZ(i," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return CZ(["extend schema",CZ(t," "),EZ(n)]," ")}},ScalarTypeExtension:{leave:function(e){return CZ(["extend scalar",e.name,CZ(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return CZ(["extend type",t,RZ("implements ",CZ(n," & ")),CZ(r," "),EZ(o)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return CZ(["extend interface",t,RZ("implements ",CZ(n," & ")),CZ(r," "),EZ(o)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return CZ(["extend union",t,CZ(n," "),RZ("= ",CZ(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return CZ(["extend enum",t,CZ(n," "),EZ(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return CZ(["extend input",t,CZ(n," "),EZ(r)]," ")}}};function CZ(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function EZ(e){return RZ("{\n",OZ(CZ(e,"\n")),"\n}")}function RZ(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function OZ(e){return RZ(" ",e.replace(/\n/g,"\n "))}function PZ(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var IZ={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},AZ=function(e,t){return t(e)};function jZ(e,t){for(var n=[],r=2;r-1;){if(y=void 0,k=[c.slice(0,m),c.slice(m+u.length)],c=k[1],(y=k[0]).trim()){if(b=y.indexOf("\r\n\r\n"),x=mZ(y.slice(0,b)),(w=x["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");S=y.slice(b);try{_=yZ(e,S.replace("\r\n","")),(Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _)&&(null===(r=t.next)||void 0===r||r.call(t,_))}catch(C){bZ(C,t)}}m=c.indexOf(u)}return[3,1];case 3:return null===(o=t.complete)||void 0===o||o.call(t),[2]}}))}))}(t,n):xZ(t,e,n)})).catch((function(e){return bZ(e,n)})),function(){h&&h.abort()}}))}))},NZ=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,LZ(t).request)||this;return n.options=t,n}return Ad(t,e),t}(sZ);function FZ(e){return"incremental"in e}function zZ(e,t){var n=e,r=new xX;return FZ(t)&&VR(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,o=e.path,i=o.length-1;i>=0;--i){var a=o[i],l=!isNaN(+a)?[]:{};l[a]=t,t=l}n=r.merge(n,t)})),n}function VZ(e,t,n){return new rZ((function(r){var o=r.next,i=r.error,a=r.complete,l=0,s=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function c(e,t){return e?function(t){++l;var n=function(){return e(t)};u=u.then(n,n).then((function(e){--l,o&&o.call(r,e),s&&d.complete()}),(function(e){throw--l,e})).catch((function(e){i&&i.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:c(t,o),error:c(n,i),complete:function(){s=!0,l||a&&a.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}}))}function BZ(e){return VR(HZ(e))}function HZ(e){var t=VR(e.errors)?e.errors.slice(0):[];return FZ(e)&&VR(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function WZ(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function UZ(e){function t(t){Object.defineProperty(e,t,{value:rZ})}return gR&&Symbol.species&&t(Symbol.species),t("@@species"),e}function GZ(e){return e&&"function"===typeof e.then}var qZ=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),WZ(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),WZ(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var o=(void 0===r?[]:r).shift();o?GZ(o)?o.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=o.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),WZ(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new rZ(t)]),GZ(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Ad(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(rZ);UZ(qZ);var QZ=Object.assign,$Z=Object.hasOwnProperty,YZ=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,o=t.options,i=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=XZ)}catch(t){}var r=!i.observers.size;i.observers.add(e);var o=i.last;return o&&o.error?e.error&&e.error(o.error):o&&o.result&&e.next&&e.next(o.result),r&&i.reobserve().catch((function(){})),function(){i.observers.delete(e)&&!i.observers.size&&i.tearDownQuery()}}))||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=r,i.queryManager=n,i.isTornDown=!1;var a=n.defaultOptions.watchQuery,l=(void 0===a?{}:a).fetchPolicy,s=void 0===l?"cache-first":l,u=o.fetchPolicy,c=void 0===u?s:u,d=o.initialFetchPolicy,f=void 0===d?"standby"===c?s:c:d;i.options=jd(jd({},o),{initialFetchPolicy:f,fetchPolicy:c}),i.queryId=r.queryId||n.generateQueryId();var h=tX(i.query);return i.queryName=h&&h.name&&h.name.value,i}return Ad(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:n},o=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||BR.ready,r=jd(jd({},t),{loading:GR(n),networkStatus:n}),o=this.options.fetchPolicy,i=void 0===o?"cache-first":o;if("network-only"===i||"no-cache"===i||"standby"===i||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),OR(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==BR.loading||"cache-first"!==i&&"cache-only"!==i||(r.networkStatus=BR.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||JZ(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!OR(this.last.result,e)||t&&!OR(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||OR(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&$Z.call(e,"variables")){var o=oX(this.query),i=o.variableDefinitions;i&&i.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&tR.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=o.name)||void 0===t?void 0:t.value)||JSON.stringify(o),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!OR(this.options.variables,e)&&(n.variables=this.options.variables=jd(jd({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,BR.refetch)},t.prototype.fetchMore=function(e){var t=this,n=jd(jd({},e.query?e:jd(jd(jd(jd({},this.options),{query:this.query}),e),{variables:jd(jd({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),o=this.queryInfo,i=o.networkStatus;o.networkStatus=BR.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,BR.fetchMore).then((function(l){return t.queryManager.removeQuery(r),o.networkStatus===BR.fetchMore&&(o.networkStatus=i),t.queryManager.cache.batch({update:function(r){var o=e.updateQuery;o?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:l.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:l.data})},onWatchUpdated:function(e){a.add(e.query)}}),l})).finally((function(){a.has(t.query)||KZ(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var o=t.variables;return r(e,{subscriptionData:n,variables:o})}))},error:function(t){e.onError?e.onError(t):__DEV__&&tR.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return OR(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},BR.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,o=t.initialFetchPolicy,i=void 0===o?r:o;"standby"===r||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?tR(n,"Attempted to start a polling query without a polling interval."):tR(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(GR(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},BR.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=jd(jd({},this.last),{result:this.queryManager.assumeImmutableResults?e:eJ(e),variables:t}),VR(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===BR.refetch||t===BR.fetchMore||t===BR.poll,o=this.options.variables,i=this.options.fetchPolicy,a=DR(this.options,e||{}),l=r?a:QZ(this.options,a);r||(this.updatePolling(),e&&e.variables&&!OR(e.variables,o)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===i&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=BR.setVariables)));var s=l.variables&&jd({},l.variables),u=this.fetch(l,t),c={next:function(e){n.reportResult(e,s)},error:function(e){n.reportError(e,s)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=c),u.addObserver(c),u.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),WZ(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=jd(jd({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:BR.error,loading:!1});this.updateLastResult(n,t),WZ(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(rZ);function KZ(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,"function"===typeof r?r.apply(this,arguments):n}}):e.reobserve()}function XZ(e){__DEV__&&tR.error("Unhandled error",e.message,e.stack)}function JZ(e){__DEV__&&e&&__DEV__&&tR.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function ZZ(e){return e.kind===$C.FIELD||e.kind===$C.FRAGMENT_SPREAD||e.kind===$C.INLINE_FRAGMENT}UZ(YZ);var e0=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=mX(t.resolvers,e)})):this.resolvers=mX(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,i=e.onlyRunForcedResolvers,a=void 0!==i&&i;return Dd(this,void 0,void 0,(function(){return Ld(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,a).then((function(e){return jd(jd({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return SX(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){return eX(e),fX([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return jd(jd({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Dd(this,void 0,void 0,(function(){return Ld(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return jd(jd({},t),e.exportedVariables)}))]:[2,jd({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return JK(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return XK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:vX(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,o,i){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===i&&(i=!1),Dd(this,void 0,void 0,(function(){var a,l,s,u,c,d,f,h,p,v;return Ld(this,(function(g){return a=iX(e),l=rX(e),s=LK(l),u=this.collectSelectionsToResolve(a,s),c=a.operation,d=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=(f=this).cache,p=f.client,v={fragmentMap:s,context:jd(jd({},n),{cache:h,client:p}),variables:r,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:i},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return Dd(this,void 0,void 0,(function(){var o,i,a,l,s,u=this;return Ld(this,(function(c){return o=r.fragmentMap,i=r.context,a=r.variables,l=[n],s=function(e){return Dd(u,void 0,void 0,(function(){var s,u;return Ld(this,(function(c){return(t||r.selectionsToResolve.has(e))&&wX(e,a)?KK(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;"undefined"!==typeof t&&l.push(((n={})[$K(e)]=t,n))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(s=o[e.name.value],__DEV__?tR(s,"No fragment named ".concat(e.name.value)):tR(s,11)):s=e,s&&s.typeCondition&&(u=s.typeCondition.name.value,r.fragmentMatcher(n,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n,r).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return yX(l)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return Dd(this,void 0,void 0,(function(){var o,i,a,l,s,u,c,d,f,h=this;return Ld(this,(function(p){return n?(o=r.variables,i=e.name.value,a=$K(e),l=i!==a,s=n[a]||n[i],u=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[c])&&(f=d[l?i:a])&&(u=Promise.resolve(oJ.withValue(this.cache,f,[n,QK(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then((function(n){var o,i;if(void 0===n&&(n=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(i=null===(o=e.directives)||void 0===o?void 0:o.some((function(e){return"client"===e.name.value})))&&void 0!==i&&i;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var o=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?o.resolveSubSelectedArray(e,t,n,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var i=new Set;r.set(o,i),JK(o,{Directive:function(e,t,r,o,a){"client"===e.name.value&&a.forEach((function(e){n(e)&&ZZ(e)&&i.add(e)}))},FragmentSpread:function(r,o,a,l,s){var u=t[r.name.value];__DEV__?tR(u,"No fragment named ".concat(r.name.value)):tR(u,12);var c=e(u);c.size>0&&(s.forEach((function(e){n(e)&&ZZ(e)&&i.add(e)})),i.add(r),c.forEach((function(e){i.add(e)})))}})}return r.get(o)}(e)},e}(),t0=new(pR?WeakMap:Map);function n0(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return t0.set(e,(t0.get(e)+1)%1e15),n.apply(this,arguments)})}function r0(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var o0=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;t0.has(n)||(t0.set(n,0),n0(n,"evict"),n0(n,"modify"),n0(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||BR.loading;return this.variables&&this.networkStatus!==BR.loading&&!OR(this.variables,e.variables)&&(t=BR.setVariables),OR(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){r0(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&OR(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||OR(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():KZ(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;r0(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(GR(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=jd(jd({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&OR(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===t0.get(this.cache)&&OR(t,n.variables)&&OR(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var o=this,i=new xX,a=VR(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&VR(e.incremental)){var l=zZ(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var s=this.getDiff();e.data=i.merge(s.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(i0(e,n.errorPolicy)?this.cache.performTransaction((function(i){if(o.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:t0.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var a=o.getDiffOptions(n.variables),l=i.diff(a);o.stopped||o.updateWatch(n.variables),o.updateLastDiff(l,a),l.complete&&(e.data=l.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=BR.ready},e.prototype.markError=function(e){return this.networkStatus=BR.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function i0(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!BZ(e);return!r&&n&&e.data&&(r=!0),r}var a0=Object.prototype.hasOwnProperty,l0=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,o=e.queryDeduplication,i=void 0!==o&&o,a=e.onBroadcast,l=e.ssrMode,s=void 0!==l&&l,u=e.clientAwareness,c=void 0===u?{}:u,d=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(pR?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=i,this.clientAwareness=c,this.localState=d||new e0({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new eR("QueryManager stopped while query was in flight"):new eR(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,o=e.variables,i=e.optimisticResponse,a=e.updateQueries,l=e.refetchQueries,s=void 0===l?[]:l,u=e.awaitRefetchQueries,c=void 0!==u&&u,d=e.update,f=e.onQueryUpdated,h=e.fetchPolicy,p=void 0===h?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":h,v=e.errorPolicy,g=void 0===v?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":v,m=e.keepRootFields,y=e.context;return Dd(this,void 0,void 0,(function(){var e,t,n,l,u,h;return Ld(this,(function(v){switch(v.label){case 0:return __DEV__?tR(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):tR(r,15),__DEV__?tR("network-only"===p||"no-cache"===p,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):tR("network-only"===p||"no-cache"===p,16),e=this.generateMutationId(),t=this.transform(r),n=t.document,l=t.hasClientExports,r=this.cache.transformForLink(n),o=this.getVariables(r,o),l?[4,this.localState.addExportedVariables(r,o,y)]:[3,2];case 1:o=v.sent(),v.label=2;case 2:return u=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:o,loading:!0,error:null}),i&&this.markMutationOptimistic(i,{mutationId:e,document:r,variables:o,fetchPolicy:p,errorPolicy:g,context:y,updateQueries:a,update:d,keepRootFields:m}),this.broadcastQueries(),h=this,[2,new Promise((function(t,n){return VZ(h.getObservableFromLink(r,jd(jd({},y),{optimisticResponse:i}),o,!1),(function(t){if(BZ(t)&&"none"===g)throw new UR({graphQLErrors:HZ(t)});u&&(u.loading=!1,u.error=null);var n=jd({},t);return"function"===typeof s&&(s=s(n)),"ignore"===g&&BZ(n)&&delete n.errors,h.markMutationResult({mutationId:e,result:n,document:r,variables:o,fetchPolicy:p,errorPolicy:g,context:y,update:d,updateQueries:a,awaitRefetchQueries:c,refetchQueries:s,removeOptimistic:i?e:void 0,onQueryUpdated:f,keepRootFields:m})})).subscribe({next:function(e){h.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){u&&(u.loading=!1,u.error=t),i&&h.cache.removeOptimistic(e),h.broadcastQueries(),n(t instanceof UR?t:new UR({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,o=[],i="no-cache"===e.fetchPolicy;if(!i&&i0(r,e.errorPolicy)){if(FZ(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),FZ(r)&&VR(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;a.result&&(l=zZ(a.result,r)),"undefined"!==typeof l&&(r.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var s=e.updateQueries;s&&this.queries.forEach((function(e,i){var a=e.observableQuery,l=a&&a.queryName;if(l&&a0.call(s,l)){var u=s[l],c=n.queries.get(i),d=c.document,f=c.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),p=h.result;if(h.complete&&p){var v=u(p,{mutationResult:r,queryName:d&&nX(d)||void 0,queryVariables:f});v&&o.push({result:v,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){i||o.forEach((function(e){return t.write(e)}));var a,l=e.update,s=!(FZ(a=r)||function(e){return"hasNext"in e&&"data"in e}(a))||FZ(r)&&!r.hasNext;if(l){if(!i){var u=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(r=jd(jd({},r),{data:u.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}s&&l(t,r,{context:e.context,variables:e.variables})}i||e.keepRootFields||!s||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return u.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(jd(jd({},t),{result:{data:r}}),e)}catch(o){__DEV__&&tR.error(o)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=fX([pX],eX(n)),o=this.localState.clientQuery(n),i=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:_X(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:i,defaultVars:aX(tX(n)),asQuery:jd(jd({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?jd(jd({},e),{operation:"query"}):e}))})},l=function(e){e&&!t.has(e)&&t.set(e,a)};l(e),l(n),l(o),l(i)}return t.get(e)},e.prototype.getVariables=function(e,t){return jd(jd({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=jd(jd({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new o0(this),n=new YZ({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?tR(e.query,"query option is required. You must specify your GraphQL document in the query option."):tR(e.query,17),__DEV__?tR("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):tR("Document"===e.query.kind,18),__DEV__?tR(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):tR(!e.returnPartialData,19),__DEV__?tR(!e.pollInterval,"pollInterval option only supported on watchQuery."):tR(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new eR("Store reset while query was in flight (not completed in link chain)"):new eR(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=BR.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"===typeof e?r.set(e,!1):KR(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):KR(e)&&e.query&&o.add(e)})),this.queries.forEach((function(t,o){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void n.set(o,i);var l=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||l&&r.has(l)||a&&r.has(a))&&(n.set(o,i),l&&r.set(l,!0),a&&r.set(a,!0))}})),o.size&&o.forEach((function(e){var r=rJ("legacyOneTimeQuery"),o=t.getQuery(r).init({document:e.query,variables:e.variables}),i=new YZ({queryManager:t,queryInfo:o,options:jd(jd({},e),{fetchPolicy:"network-only"})});tR(i.queryId===r),o.setObservableQuery(i),n.set(r,i)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&tR.warn("Unknown query ".concat("string"===typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,o){var i=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&n.push(r.refetch()),t.getQuery(o).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,o=e.errorPolicy,i=e.variables,a=e.context,l=void 0===a?{}:a;n=this.transform(n).document,i=this.getVariables(n,i);var s=function(e){return t.getObservableFromLink(n,l,e).map((function(i){if("no-cache"!==r&&(i0(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),BZ(i))throw new UR({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,i,l).then(s);return new rZ((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return s(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var o,i,a=this;void 0===r&&(r=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var s=this.inFlightLinkObservables,u=this.link,c={query:l,variables:n,operationName:nX(l)||void 0,context:this.prepareContext(jd(jd({},t),{forceFetch:!r}))};if(t=c.context,r){var d=s.get(l)||new Map;s.set(l,d);var f=$X(n);if(!(i=d.get(f))){var h=new qZ([uZ(u,c)]);d.set(f,i=h),h.beforeNext((function(){d.delete(f)&&d.size<1&&s.delete(l)}))}}else i=new qZ([uZ(u,c)])}else i=new qZ([rZ.of({data:{}})]),t=this.prepareContext(t);var p=this.transform(e).clientQuery;return p&&(i=VZ(i,(function(e){return a.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}))),i},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(e.document).document);return VZ(this.getObservableFromLink(o,n.context,n.variables),(function(i){var a=HZ(i),l=a.length>0;if(r>=e.lastRequestId){if(l&&"none"===n.errorPolicy)throw e.markError(new UR({graphQLErrors:a}));e.markResult(i,o,n,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:BR.ready};return l&&"ignore"!==n.errorPolicy&&(s.errors=a,s.networkStatus=BR.error),s}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new UR({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=BR.loading);var o=this.transform(t.query).document,i=this.getVariables(o,t.variables),a=this.getQuery(e),l=this.defaultOptions.watchQuery,s=t.fetchPolicy,u=void 0===s?l&&l.fetchPolicy||"cache-first":s,c=t.errorPolicy,d=void 0===c?l&&l.errorPolicy||"none":c,f=t.returnPartialData,h=void 0!==f&&f,p=t.notifyOnNetworkStatusChange,v=void 0!==p&&p,g=t.context,m=void 0===g?{}:g,y=Object.assign({},t,{query:o,variables:i,fetchPolicy:u,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:v,context:m}),b=function(e){y.variables=e;var o=r.fetchQueryByPolicy(a,y,n);return"standby"!==y.fetchPolicy&&o.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),o},x=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,(function(e){x(),setTimeout((function(){return w.cancel(e)}))}));var w=new qZ(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return w.promise.then(x,x),w},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,o=e.optimistic,i=void 0!==o&&o,a=e.removeOptimistic,l=void 0===a?i?rJ("refetchQueries"):void 0:a,s=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:i&&l||!1,removeOptimistic:l,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof o0&&e.watcher.observableQuery;if(r){if(s){u.delete(r.queryId);var o=s(r,t,n);return!0===o&&(o=r.refetch()),!1!==o&&c.set(r,o),o}null!==s&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,o=e.oq,i=e.lastDiff,a=e.diff;if(s){if(!a){var l=o.queryInfo;l.reset(),a=l.getDiff()}r=s(o,a,i)}s&&!0!==r||(r=o.refetch()),!1!==r&&c.set(o,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),l&&this.cache.removeOptimistic(l),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,o=t.query,i=t.variables,a=t.fetchPolicy,l=t.refetchWritePolicy,s=t.errorPolicy,u=t.returnPartialData,c=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:this.transform(o).document,variables:i,networkStatus:n});var h=function(){return e.getDiff(i)},p=function(t,n){void 0===n&&(n=e.networkStatus||BR.loading);var a=t.result;!__DEV__||u||OR(a,{})||JZ(t.missing);var l=function(e){return rZ.of(jd({data:e,loading:GR(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:a},context:c,variables:i,onlyRunForcedResolvers:!0}).then((function(e){return l(e.data||void 0)})):"none"===s&&n===BR.refetch&&Array.isArray(t.missing)?l(void 0):l(a)},v="no-cache"===a?0:n===BR.refetch&&"merge"!==l?1:2,g=function(){return r.getResultsFromLink(e,v,{variables:i,context:c,fetchPolicy:a,errorPolicy:s})},m=d&&"number"===typeof f&&f!==n&&GR(n);switch(a){default:case"cache-first":return(y=h()).complete?[p(y,e.markReady())]:u||m?[p(y),g()]:[g()];case"cache-and-network":var y;return(y=h()).complete||u||m?[p(y),g()]:[g()];case"cache-only":return[p(h(),e.markReady())];case"network-only":return m?[p(h()),g()]:[g()];case"no-cache":return m?[p(e.getDiff()),g()]:[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new o0(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return jd(jd({},t),{clientAwareness:this.clientAwareness})},e}(),s0=!1,u0=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,o=e.headers,i=e.cache,a=e.ssrMode,l=void 0!==a&&a,s=e.ssrForceFetchDelay,u=void 0===s?0:s,c=e.connectToDevTools,d=void 0===c?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,f=e.queryDeduplication,h=void 0===f||f,p=e.defaultOptions,v=e.assumeImmutableResults,g=void 0!==v&&v,m=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,x=e.name,w=e.version,S=e.link;if(S||(S=n?new NZ({uri:n,credentials:r,headers:o}):sZ.empty()),!i)throw __DEV__?new eR("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new eR(9);if(this.link=S,this.cache=i,this.disableNetworkFetches=l||u>0,this.queryDeduplication=h,this.defaultOptions=p||Object.create(null),this.typeDefs=y,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!s0&&d&&__DEV__&&(s0=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,k=_&&_.userAgent,T=void 0;"string"===typeof k&&(k.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&tR.log("Download the Apollo DevTools for a better development experience: "+T)}this.version=cZ,this.localState=new e0({cache:i,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new l0({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:h,ssrMode:l,clientAwareness:{name:x,version:w},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=LR(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=jd(jd({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=LR(this.defaultOptions.query,e)),__DEV__?tR("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):tR("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=jd(jd({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=LR(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return uZ(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){__DEV__&&tR.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),c0=function(e){var t=e.client,n=e.children,r=FR();return i.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?tR(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):tR(e.client,29),i.createElement(r.Provider,{value:e},n)}))};var d0=function(e){return Md(e,f0)},f0=["edges","pageInfo"];var h0=document.getElementById("root");if(!h0)throw new Error("Failed to find the root element");var p0,v0=l.s(h0),g0=new DJ({typePolicies:{Query:{fields:{tasks:(void 0===p0&&(p0=!1),{keyArgs:p0,read:function(e,t){var n=t.canRead,r=t.readField;if(!e)return e;var o=[],i="",a="";e.edges.forEach((function(e){n(r("node",e))&&(o.push(e),e.cursor&&(i=i||e.cursor||"",a=e.cursor||a))}));var l=e.pageInfo||{},s=l.startCursor,u=l.endCursor;return jd(jd({},d0(e)),{edges:o,pageInfo:jd(jd({},e.pageInfo),{startCursor:s||i,endCursor:u||a})})},merge:function(e,t,n){var r=n.args,o=n.isReference,i=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map((function(e){return o(e=jd({},e))&&(e.cursor=i("cursor",e)),e})):[];if(t.pageInfo){var l=t.pageInfo,s=l.startCursor,u=l.endCursor,c=a[0],d=a[a.length-1];c&&s&&(c.cursor=s),d&&u&&(d.cursor=u);var f=c&&c.cursor;f&&!s&&(t=mX(t,{pageInfo:{startCursor:f}}));var h=d&&d.cursor;h&&!u&&(t=mX(t,{pageInfo:{endCursor:h}}))}var p=e.edges,v=[];if(r&&r.after)(g=p.findIndex((function(e){return e.cursor===r.after})))>=0&&(p=p.slice(0,g+1));else if(r&&r.before){var g;v=(g=p.findIndex((function(e){return e.cursor===r.before})))<0?p:p.slice(g),p=[]}else t.edges&&(p=[]);var m=zd(zd(zd([],p,!0),a,!0),v,!0),y=jd(jd({},t.pageInfo),e.pageInfo);if(t.pageInfo){var b=t.pageInfo,x=b.hasPreviousPage,w=b.hasNextPage,S=(s=b.startCursor,u=b.endCursor,Md(b,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(y,S),p.length||(void 0!==x&&(y.hasPreviousPage=x),void 0!==s&&(y.startCursor=s)),v.length||(void 0!==w&&(y.hasNextPage=w),void 0!==u&&(y.endCursor=u))}return jd(jd(jd({},d0(e)),d0(t)),{edges:m,pageInfo:y})}})}}}}),m0=new u0({uri:"".concat("","/graphql"),cache:g0});v0.render((0,e.jsx)(i.StrictMode,{children:(0,e.jsxs)(c0,{client:m0,children:[(0,e.jsx)(o,{}),(0,e.jsx)(QY,{})]})})),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)})),$Y()}()}();
-//# sourceMappingURL=main.12503e69.js.map
\ No newline at end of file
+/*! For license information please see main.11e06a01.js.LICENSE.txt */
+!function(){var e={2819:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}));e.exports=a},5188:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75"}))}));e.exports=a},7613:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}));e.exports=a},1423:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}));e.exports=a},8831:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"}))}));e.exports=a},1774:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}));e.exports=a},4350:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"}))}));e.exports=a},7995:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}));e.exports=a},1242:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"}))}));e.exports=a},2297:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75"}))}));e.exports=a},541:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}));e.exports=a},2697:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"}))}));e.exports=a},3679:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}));e.exports=a},5217:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}));e.exports=a},2150:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"}))}));e.exports=a},7907:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));e.exports=a},3366:function(e,t,n){var r=n(215).default,o=["title","titleId"],i=n(2791);var a=i.forwardRef((function(e,t){var n=e.title,a=e.titleId,l=r(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},l),n?i.createElement("title",{id:a},n):null,i.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}));e.exports=a},3457:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!==typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var l,s,u,c=t(e),d=t(a);if(c&&d){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(c!=d)return!1;var f=e instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return e.getTime()==a.getTime();var p=e instanceof RegExp,v=a instanceof RegExp;if(p!=v)return!1;if(p&&v)return e.toString()==a.toString();var g=n(e);if((s=g.length)!==n(a).length)return!1;for(l=s;0!==l--;)if(!r.call(a,g[l]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(l=s;0!==l--;)if(("_owner"!==(u=g[l])||!e.$$typeof)&&!i(e[u],a[u]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},2110:function(e,t,n){"use strict";var r=n(8309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),v=s(n),g=0;g-1},re.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Z||re),string:new ne}},oe.prototype.delete=function(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return xe(this,e).get(e)},oe.prototype.has=function(e){return xe(this,e).has(e)},oe.prototype.set=function(e,t){var n=xe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.clear=function(){this.__data__=new re,this.size=0},ie.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ie.prototype.get=function(e){return this.__data__.get(e)},ie.prototype.has=function(e){return this.__data__.has(e)},ie.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var o=n.__data__;if(!Z||o.length-1&&e%1==0&&e0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(be);function Ce(e,t){return e===t||e!==e&&t!==t}var Ee=pe(function(){return arguments}())?pe:function(e){return Me(e)&&D.call(e,"callee")&&!q.call(e,"callee")},Re=Array.isArray;function Oe(e){return null!=e&&Ae(e.length)&&!Ie(e)}var Pe=K||function(){return!1};function Ie(e){if(!je(e))return!1;var t=he(e);return t==c||t==d||t==u||t==p}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var De=E?function(e){return function(t){return e(t)}}(E):function(e){return Me(e)&&Ae(e.length)&&!!y[he(e)]};function Le(e){return Oe(e)?ae(e,!0):ge(e)}var Ne,Fe=(Ne=function(e,t,n,r){me(e,t,n,r)},ye((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ne.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!je(n))return!1;var r=typeof t;return!!("number"==r?Oe(n)&&Se(t,n.length):"string"==r&&t in n)&&Ce(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n>>1,V=[["ary",k],["bind",m],["bindKey",y],["curry",x],["curryRight",w],["flip",C],["partial",S],["partialRight",_],["rearg",T]],B="[object Arguments]",H="[object Array]",W="[object AsyncFunction]",U="[object Boolean]",G="[object Date]",q="[object DOMException]",Q="[object Error]",$="[object Function]",Y="[object GeneratorFunction]",K="[object Map]",X="[object Number]",J="[object Null]",Z="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ie="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",de="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",ve="[object Int32Array]",ge="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",xe=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Te=RegExp(_e.source),Ce=RegExp(ke.source),Ee=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(je.source),De=/^\s+/,Le=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Qe=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Ze="\\ud800-\\udfff",et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",it="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="['\u2019]",lt="["+Ze+"]",st="["+it+"]",ut="["+et+"]",ct="\\d+",dt="["+tt+"]",ft="["+nt+"]",ht="[^"+Ze+it+ct+tt+nt+rt+"]",pt="\\ud83c[\\udffb-\\udfff]",vt="[^"+Ze+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",bt="\\u200d",xt="(?:"+ft+"|"+ht+")",wt="(?:"+yt+"|"+ht+")",St="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",_t="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",kt="(?:"+ut+"|"+pt+")"+"?",Tt="["+ot+"]?",Ct=Tt+kt+("(?:"+bt+"(?:"+[vt,gt,mt].join("|")+")"+Tt+kt+")*"),Et="(?:"+[dt,gt,mt].join("|")+")"+Ct,Rt="(?:"+[vt+ut+"?",ut,gt,mt,lt].join("|")+")",Ot=RegExp(at,"g"),Pt=RegExp(ut,"g"),It=RegExp(pt+"(?="+pt+")|"+Rt+Ct,"g"),At=RegExp([yt+"?"+ft+"+"+St+"(?="+[st,yt,"$"].join("|")+")",wt+"+"+_t+"(?="+[st,yt+xt,"$"].join("|")+")",yt+"?"+xt+"+"+St,yt+"+"+_t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ct,Et].join("|"),"g"),jt=RegExp("["+bt+Ze+et+ot+"]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lt=-1,Nt={};Nt[de]=Nt[fe]=Nt[he]=Nt[pe]=Nt[ve]=Nt[ge]=Nt[me]=Nt[ye]=Nt[be]=!0,Nt[B]=Nt[H]=Nt[ue]=Nt[U]=Nt[ce]=Nt[G]=Nt[Q]=Nt[$]=Nt[K]=Nt[X]=Nt[Z]=Nt[ne]=Nt[re]=Nt[oe]=Nt[le]=!1;var Ft={};Ft[B]=Ft[H]=Ft[ue]=Ft[ce]=Ft[U]=Ft[G]=Ft[de]=Ft[fe]=Ft[he]=Ft[pe]=Ft[ve]=Ft[K]=Ft[X]=Ft[Z]=Ft[ne]=Ft[re]=Ft[oe]=Ft[ie]=Ft[ge]=Ft[me]=Ft[ye]=Ft[be]=!0,Ft[Q]=Ft[$]=Ft[le]=!1;var zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Bt=parseInt,Ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Wt="object"==typeof self&&self&&self.Object===Object&&self,Ut=Ht||Wt||Function("return this")(),Gt=t&&!t.nodeType&&t,qt=Gt&&e&&!e.nodeType&&e,Qt=qt&&qt.exports===Gt,$t=Qt&&Ht.process,Yt=function(){try{var e=qt&&qt.require&&qt.require("util").types;return e||$t&&$t.binding&&$t.binding("util")}catch(t){}}(),Kt=Yt&&Yt.isArrayBuffer,Xt=Yt&&Yt.isDate,Jt=Yt&&Yt.isMap,Zt=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function cn(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function jn(e,t){for(var n=e.length;n--&&bn(t,e[n],0)>-1;);return n}var Mn=kn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dn=kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ln(e){return"\\"+zt[e]}function Nn(e){return jt.test(e)}function Fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function zn(e,t){return function(n){return e(t(n))}}function Vn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Qn=function e(t){var n=(t=null==t?Ut:Qn.defaults(Ut.Object(),t,Qn.pick(Ut,Dt))).Array,r=t.Date,Le=t.Error,Ze=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=n.prototype,at=Ze.prototype,lt=tt.prototype,st=t["__core-js_shared__"],ut=at.toString,ct=lt.hasOwnProperty,dt=0,ft=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=lt.toString,pt=ut.call(tt),vt=Ut._,gt=nt("^"+ut.call(ct).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Qt?t.Buffer:o,yt=t.Symbol,bt=t.Uint8Array,xt=mt?mt.allocUnsafe:o,wt=zn(tt.getPrototypeOf,tt),St=tt.create,_t=lt.propertyIsEnumerable,kt=it.splice,Tt=yt?yt.isConcatSpreadable:o,Ct=yt?yt.iterator:o,Et=yt?yt.toStringTag:o,Rt=function(){try{var e=Bi(tt,"defineProperty");return e({},"",{}),e}catch(t){}}(),It=t.clearTimeout!==Ut.clearTimeout&&t.clearTimeout,jt=r&&r.now!==Ut.Date.now&&r.now,zt=t.setTimeout!==Ut.setTimeout&&t.setTimeout,Ht=et.ceil,Wt=et.floor,Gt=tt.getOwnPropertySymbols,qt=mt?mt.isBuffer:o,$t=t.isFinite,Yt=it.join,gn=zn(tt.keys,tt),kn=et.max,$n=et.min,Yn=r.now,Kn=t.parseInt,Xn=et.random,Jn=it.reverse,Zn=Bi(t,"DataView"),er=Bi(t,"Map"),tr=Bi(t,"Promise"),nr=Bi(t,"Set"),rr=Bi(t,"WeakMap"),or=Bi(tt,"create"),ir=rr&&new rr,ar={},lr=ha(Zn),sr=ha(er),ur=ha(tr),cr=ha(nr),dr=ha(rr),fr=yt?yt.prototype:o,hr=fr?fr.valueOf:o,pr=fr?fr.toString:o;function vr(e){if(Pl(e)&&!bl(e)&&!(e instanceof br)){if(e instanceof yr)return e;if(ct.call(e,"__wrapped__"))return pa(e)}return new yr(e)}var gr=function(){function e(){}return function(t){if(!Ol(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function mr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function xr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Nr(e,t,n,r,i,a){var l,s=t&f,u=t&h,c=t&p;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!Ol(e))return e;var d=bl(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return ii(e,l)}else{var v=Ui(e),g=v==$||v==Y;if(_l(e))return Zo(e,s);if(v==Z||v==B||g&&!i){if(l=u||g?{}:qi(e),!s)return u?function(e,t){return ai(e,Wi(e),t)}(e,function(e,t){return e&&ai(t,ls(t),e)}(l,e)):function(e,t){return ai(e,Hi(e),t)}(e,jr(l,e))}else{if(!Ft[v])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case ue:return ei(e);case U:case G:return new r(+e);case ce:return function(e,t){var n=t?ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case fe:case he:case pe:case ve:case ge:case me:case ye:case be:return ti(e,n);case K:return new r;case X:case oe:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case ie:return o=e,hr?tt(hr.call(o)):{}}var o}(e,v,s)}}a||(a=new kr);var m=a.get(e);if(m)return m;a.set(e,l),Dl(e)?e.forEach((function(r){l.add(Nr(r,t,n,r,e,a))})):Il(e)&&e.forEach((function(r,o){l.set(o,Nr(r,t,n,o,e,a))}));var y=d?o:(c?u?Mi:ji:u?ls:as)(e);return on(y||e,(function(r,o){y&&(r=e[o=r]),Pr(l,o,Nr(r,t,n,o,e,a))})),l}function Fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function zr(e,t,n){if("function"!=typeof e)throw new ot(l);return aa((function(){e.apply(o,n)}),t)}function Vr(e,t,n,r){var o=-1,a=un,l=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=dn(t,On(n))),r?(a=cn,l=!1):t.length>=i&&(a=In,l=!1,t=new _r(t));e:for(;++o-1},wr.prototype.set=function(e,t){var n=this.__data__,r=Ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Sr.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(er||wr),string:new xr}},Sr.prototype.delete=function(e){var t=zi(this,e).delete(e);return this.size-=t?1:0,t},Sr.prototype.get=function(e){return zi(this,e).get(e)},Sr.prototype.has=function(e){return zi(this,e).has(e)},Sr.prototype.set=function(e,t){var n=zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},_r.prototype.add=_r.prototype.push=function(e){return this.__data__.set(e,u),this},_r.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.clear=function(){this.__data__=new wr,this.size=0},kr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},kr.prototype.get=function(e){return this.__data__.get(e)},kr.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!er||r.length0&&n(l)?t>1?qr(l,t-1,n,r,o):fn(o,l):r||(o[o.length]=l)}return o}var Qr=ci(),$r=ci(!0);function Yr(e,t){return e&&Qr(e,t,as)}function Kr(e,t){return e&&$r(e,t,as)}function Xr(e,t){return sn(t,(function(t){return Cl(e[t])}))}function Jr(e,t){for(var n=0,r=(t=Yo(t,e)).length;null!=e&&nt}function no(e,t){return null!=e&&ct.call(e,t)}function ro(e,t){return null!=e&&t in tt(e)}function oo(e,t,r){for(var i=r?cn:un,a=e[0].length,l=e.length,s=l,u=n(l),c=1/0,d=[];s--;){var f=e[s];s&&t&&(f=dn(f,On(t))),c=$n(f.length,c),u[s]=!r&&(t||a>=120&&f.length>=120)?new _r(s&&f):o}f=e[0];var h=-1,p=u[0];e:for(;++h=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function wo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)l!==e&&kt.call(l,s,1),kt.call(e,s,1);return e}function _o(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;$i(o)?kt.call(e,o,1):Bo(e,o)}}return e}function ko(e,t){return e+Wt(Xn()*(t-e+1))}function To(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),(t=Wt(t/2))&&(e+=e)}while(t);return n}function Co(e,t){return la(na(e,t,As),e+"")}function Eo(e){return Cr(vs(e))}function Ro(e,t){var n=vs(e);return ca(n,Lr(t,0,n.length))}function Oo(e,t,n,r){if(!Ol(e))return e;for(var i=-1,a=(t=Yo(t,e)).length,l=a-1,s=e;null!=s&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Nl(a)&&(n?a<=t:a