diff --git a/assets/index-fbfba23c.js b/assets/index-65cfa144.js similarity index 98% rename from assets/index-fbfba23c.js rename to assets/index-65cfa144.js index a8736fb..6f9dbb4 100644 --- a/assets/index-fbfba23c.js +++ b/assets/index-65cfa144.js @@ -40,7 +40,7 @@ Error generating stack: `+i.message+` `+i.stack}return{value:e,source:t,stack:a,digest:null}}function Zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var oC=typeof WeakMap=="function"?WeakMap:Map;function gh(e,t,n){n=Ht(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i||($i=!0,Lu=r),vu(e,t)},n}function Eh(e,t,n){n=Ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){vu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){vu(e,t),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function rp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new oC;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=hC.bind(null,e,t,n),t.then(e,e))}function ap(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ip(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ht(-1,1),t.tag=2,En(n,t,1))),n.lanes|=1),e)}var sC=Qt.ReactCurrentOwner,Ke=!1;function Ve(e,t,n,r){t.child=e===null?Wb(t,null,n,r):Cr(t,e.child,n,r)}function op(e,t,n,r,a){n=n.render;var i=t.ref;return Sr(t,a),r=x_(e,t,n,r,i,a),n=D_(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wt(e,t,a)):(pe&&n&&S_(t),t.flags|=1,Ve(e,t,r,a),t.child)}function sp(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Y_(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,fh(e,t,i,r,a)):(e=vi(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ta,n(o,r)&&e.ref===t.ref)return Wt(e,t,a)}return t.flags|=1,e=bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function fh(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Ta(i,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,Wt(e,t,a)}return Ru(e,t,n,r,a)}function Sh(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(_r,tt),tt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(_r,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(_r,tt),tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(_r,tt),tt|=r;return Ve(e,t,a,n),t.child}function bh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ru(e,t,n,r,a){var i=Ze(n)?Yn:He.current;return i=vr(t,i),Sr(t,a),n=x_(e,t,n,r,i,a),r=D_(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wt(e,t,a)):(pe&&r&&S_(t),t.flags|=1,Ve(e,t,n,a),t.child)}function lp(e,t,n,r,a){if(Ze(n)){var i=!0;Ui(t)}else i=!1;if(Sr(t,a),t.stateNode===null)hi(e,t),zb(t,n,r),Nu(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_t(d):(d=Ze(n)?Yn:He.current,d=vr(t,d));var u=n.getDerivedStateFromProps,_=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";_||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==d)&&Jm(t,o,r,d),rn=!1;var m=t.memoizedState;o.state=m,Hi(t,r,o,a),c=t.memoizedState,l!==r||m!==c||Xe.current||rn?(typeof u=="function"&&(Tu(t,n,u,r),c=t.memoizedState),(l=rn||Zm(t,n,l,r,m,c,d))?(_||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=d,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vb(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:gt(t.type,l),o.props=d,_=t.pendingProps,m=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=_t(c):(c=Ze(n)?Yn:He.current,c=vr(t,c));var E=n.getDerivedStateFromProps;(u=typeof E=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==_||m!==c)&&Jm(t,o,r,c),rn=!1,m=t.memoizedState,o.state=m,Hi(t,r,o,a);var f=t.memoizedState;l!==_||m!==f||Xe.current||rn?(typeof E=="function"&&(Tu(t,n,E,r),f=t.memoizedState),(d=rn||Zm(t,n,d,r,m,f,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,i,a)}function Cu(e,t,n,r,a,i){bh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&$m(t,n,!1),Wt(e,t,i);r=t.stateNode,sC.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Cr(t,e.child,null,i),t.child=Cr(t,null,l,i)):Ve(e,t,l,i),t.memoizedState=r.state,a&&$m(t,n,!0),t.child}function hh(e){var t=e.stateNode;t.pendingContext?zm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zm(e,t.context,!1),y_(e,t.containerInfo)}function cp(e,t,n,r,a){return Rr(),h_(a),t.flags|=256,Ve(e,t,n,r),t.child}var yu={dehydrated:null,treeContext:null,retryLane:0};function Ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function Th(e,t,n){var r=t.pendingProps,a=Ee.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),de(Ee,a&1),e===null)return bu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=po(o,r,0,null),e=Gn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ou(n),t.memoizedState=yu,e):M_(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return lC(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=bn(a,c),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=bn(l,i):(i=Gn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Ou(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=yu,r}return i=e.child,e=i.sibling,r=bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function M_(e,t){return t=po({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oi(e,t,n,r){return r!==null&&h_(r),Cr(t,e.child,null,n),e=M_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lC(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Zo(Error(D(422))),oi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=po({mode:"visible",children:r.children},a,0,null),i=Gn(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Cr(t,e.child,null,o),t.child.memoizedState=Ou(o),t.memoizedState=yu,i);if(!(t.mode&1))return oi(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(D(419)),r=Zo(i,r,void 0),oi(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ke||l){if(r=we,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,$t(e,a),ht(r,e,a,-1))}return G_(),r=Zo(Error(D(421))),oi(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=TC.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,nt=gn(a.nextSibling),rt=t,pe=!0,ft=null,e!==null&&(lt[ct++]=Bt,lt[ct++]=Gt,lt[ct++]=Hn,Bt=e.id,Gt=e.overflow,Hn=t),t=M_(t,r.children),t.flags|=4096,t)}function dp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hu(e.return,t,n)}function Jo(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Nh(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=Ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dp(e,n,t);else if(e.tag===19)dp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(Ee,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&qi(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Jo(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&qi(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Jo(t,!0,n,null,i);break;case"together":Jo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cC(e,t,n){switch(t.tag){case 3:hh(t),Rr();break;case 5:Qb(t);break;case 1:Ze(t.type)&&Ui(t);break;case 4:y_(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;de(Gi,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?Th(e,t,n):(de(Ee,Ee.current&1),e=Wt(e,t,n),e!==null?e.sibling:null);de(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Nh(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),de(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,Sh(e,t,n)}return Wt(e,t,n)}var vh,Iu,Rh,Ch;vh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Iu=function(){};Rh=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Un(Dt.current);var i=null;switch(n){case"input":a=Kd(e,a),r=Kd(e,r),i=[];break;case"select":a=Se({},a,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":a=Jd(e,a),r=Jd(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pi)}tu(n,r);var o;n=null;for(d in a)if(!r.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var l=a[d];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(pa.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(l=a!=null?a[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(pa.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&ue("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Ch=function(e,t,n,r){n!==r&&(t.flags|=4)};function jr(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dC(e,t,n){var r=t.pendingProps;switch(b_(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ze(t.type)&&ki(),Ge(t),null;case 3:return r=t.stateNode,yr(),_e(Xe),_e(He),I_(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ft!==null&&(ku(ft),ft=null))),Iu(e,t),Ge(t),null;case 5:O_(t);var a=Un(ya.current);if(n=t.type,e!==null&&t.stateNode!=null)Rh(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ge(t),null}if(e=Un(Dt.current),ai(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[It]=t,r[Ra]=i,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[It]=t,e[Ra]=r,vh(e,t,!1,!1),t.stateNode=e;e:{switch(o=nu(n,r),n){case"dialog":ue("cancel",e),ue("close",e),a=r;break;case"iframe":case"object":case"embed":ue("load",e),a=r;break;case"video":case"audio":for(a=0;aIr&&(t.flags|=128,r=!0,jr(i,!1),t.lanes=4194304)}else{if(!r)if(e=qi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!pe)return Ge(t),null}else 2*Te()-i.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,jr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=Ee.current,de(Ee,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return B_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function uC(e,t){switch(b_(t),t.tag){case 1:return Ze(t.type)&&ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yr(),_e(Xe),_e(He),I_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O_(t),null;case 13:if(_e(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Ee),null;case 4:return yr(),null;case 10:return v_(t.type._context),null;case 22:case 23:return B_(),null;case 24:return null;default:return null}}var si=!1,Ye=!1,_C=typeof WeakSet=="function"?WeakSet:Set,U=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function Au(e,t,n){try{n()}catch(r){he(e,t,r)}}var up=!1;function mC(e,t){if(_u=wi,e=Ab(),f_(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,_=e,m=null;t:for(;;){for(var E;_!==n||a!==0&&_.nodeType!==3||(l=o+a),_!==i||r!==0&&_.nodeType!==3||(c=o+r),_.nodeType===3&&(o+=_.nodeValue.length),(E=_.firstChild)!==null;)m=_,_=E;for(;;){if(_===e)break t;if(m===n&&++d===a&&(l=o),m===i&&++u===r&&(c=o),(E=_.nextSibling)!==null)break;_=m,m=_.parentNode}_=E}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(mu={focusedElem:e,selectionRange:n},wi=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var S=f.memoizedProps,h=f.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:gt(t.type,S),h);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(T){he(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return f=up,up=!1,f}function la(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Au(t,n,i)}a=a.next}while(a!==r)}}function _o(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yh(e){var t=e.alternate;t!==null&&(e.alternate=null,yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[Ra],delete t[Eu],delete t[QR],delete t[KR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oh(e){return e.tag===5||e.tag===3||e.tag===4}function _p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pi));else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function wu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}var Le=null,Et=!1;function tn(e,t,n){for(n=n.child;n!==null;)Ih(e,t,n),n=n.sibling}function Ih(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(ro,n)}catch{}switch(n.tag){case 5:Ye||ur(n,t);case 6:var r=Le,a=Et;Le=null,tn(e,t,n),Le=r,Et=a,Le!==null&&(Et?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Et?(e=Le,n=n.stateNode,e.nodeType===8?zo(e.parentNode,n):e.nodeType===1&&zo(e,n),ba(e)):zo(Le,n.stateNode));break;case 4:r=Le,a=Et,Le=n.stateNode.containerInfo,Et=!0,tn(e,t,n),Le=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Au(n,t,o),a=a.next}while(a!==r)}tn(e,t,n);break;case 1:if(!Ye&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){he(n,t,l)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,tn(e,t,n),Ye=r):tn(e,t,n);break;default:tn(e,t,n)}}function mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _C),t.forEach(function(r){var a=NC.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gC(r/1960))-r,10e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,Wi=0,ae&6)throw Error(D(331));var a=ae;for(ae|=4,U=e.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cTe()-U_?Bn(e,0):k_|=n),Je(e,t)}function kh(e,t){t===0&&(e.mode&1?(t=Za,Za<<=1,!(Za&130023424)&&(Za=4194304)):t=1);var n=je();e=$t(e,t),e!==null&&(Ua(e,t,n),Je(e,n))}function TC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kh(e,n)}function NC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),kh(e,n)}var Uh;Uh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,cC(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,pe&&t.flags&1048576&&Gb(t,Bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var a=vr(t,He.current);Sr(t,n),a=x_(null,t,r,e,a,n);var i=D_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ze(r)?(i=!0,Ui(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,C_(t),a.updater=co,t.stateNode=a,a._reactInternals=t,Nu(t,r,e,n),t=Cu(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&S_(t),Ve(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=RC(r),e=gt(r,e),a){case 0:t=Ru(null,t,r,e,n);break e;case 1:t=lp(null,t,r,e,n);break e;case 11:t=op(null,t,r,e,n);break e;case 14:t=sp(null,t,r,gt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gt(r,a),Ru(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gt(r,a),lp(e,t,r,a,n);case 3:e:{if(hh(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Vb(e,t),Hi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Or(Error(D(423)),t),t=cp(e,t,r,n,a);break e}else if(r!==a){a=Or(Error(D(424)),t),t=cp(e,t,r,n,a);break e}else for(nt=gn(t.stateNode.containerInfo.firstChild),rt=t,pe=!0,ft=null,n=Wb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rr(),r===a){t=Wt(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Qb(t),e===null&&bu(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,pu(r,a)?o=null:i!==null&&pu(r,i)&&(t.flags|=32),bh(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&bu(t),null;case 13:return Th(e,t,n);case 4:return y_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gt(r,a),op(e,t,r,a,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,de(Gi,r._currentValue),r._currentValue=o,i!==null)if(Tt(i.value,o)){if(i.children===a.children&&!Xe.current){t=Wt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Ht(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),hu(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(D(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),hu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Sr(t,n),a=_t(a),r=r(a),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,a=gt(r,t.pendingProps),a=gt(r.type,a),sp(e,t,r,a,n);case 15:return fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gt(r,a),hi(e,t),t.tag=1,Ze(r)?(e=!0,Ui(t)):e=!1,Sr(t,n),zb(t,r,a),Nu(t,r,a,n),Cu(null,t,r,!0,e,n);case 19:return Nh(e,t,n);case 22:return Sh(e,t,n)}throw Error(D(156,t.tag))};function Fh(e,t){return db(e,t)}function vC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,n,r){return new vC(e,t,n,r)}function Y_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RC(e){if(typeof e=="function")return Y_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===o_)return 11;if(e===s_)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vi(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Y_(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case nr:return Gn(n.children,a,i,t);case i_:o=8,a|=8;break;case zd:return e=dt(12,n,t,a|2),e.elementType=zd,e.lanes=i,e;case $d:return e=dt(13,n,t,a),e.elementType=$d,e.lanes=i,e;case Wd:return e=dt(19,n,t,a),e.elementType=Wd,e.lanes=i,e;case $S:return po(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jS:o=10;break e;case zS:o=9;break e;case o_:o=11;break e;case s_:o=14;break e;case nn:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=dt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function po(e,t,n,r){return e=dt(22,e,r,t),e.elementType=$S,e.lanes=n,e.stateNode={isHidden:!1},e}function es(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function ts(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CC(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Po(0),this.expirationTimes=Po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Po(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function H_(e,t,n,r,a,i,o,l,c){return e=new CC(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},C_(i),e}function yC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hh)}catch(e){console.error(e)}}Hh(),GS.exports=it;var qh=GS.exports,Tp=qh;Vd.createRoot=Tp.createRoot,Vd.hydrateRoot=Tp.hydrateRoot;var DC=Object.defineProperty,wC=(e,t,n)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ns=(e,t,n)=>(wC(e,typeof t!="symbol"?t+"":t,n),n);let LC=class{constructor(){ns(this,"current",this.detect()),ns(this,"handoffState","pending"),ns(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},qt=new LC,ke=(e,t)=>{qt.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function Vt(e){let t=N.useRef(e);return ke(()=>{t.current=e},[e]),t}function bo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function wt(){let e=[],t={addEventListener(n,r,a,i){return n.addEventListener(r,a,i),t.add(()=>n.removeEventListener(r,a,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return bo(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,a){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:a}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=wt();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let a of e.splice(r,1))a()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ya(){let[e]=N.useState(wt);return N.useEffect(()=>()=>e.dispose(),[e]),e}let ee=function(e){let t=Vt(e);return B.useCallback((...n)=>t.current(...n),[t])};function Lr(){let[e,t]=N.useState(qt.isHandoffComplete);return e&&qt.isHandoffComplete===!1&&t(!1),N.useEffect(()=>{e!==!0&&t(!0)},[e]),N.useEffect(()=>qt.handoff(),[]),e}var Np;let Kt=(Np=B.useId)!=null?Np:function(){let e=Lr(),[t,n]=B.useState(e?()=>qt.nextId():null);return ke(()=>{t===null&&n(qt.nextId())},[t]),t!=null?""+t:void 0};function De(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,De),r}function ho(e){return qt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Uu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ft=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ft||{}),Vh=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Vh||{}),MC=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(MC||{});function jh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Uu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var z_=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(z_||{});function $_(e,t=0){var n;return e===((n=ho(e))==null?void 0:n.body)?!1:De(t,{[0](){return e.matches(Uu)},[1](){let r=e;for(;r!==null;){if(r.matches(Uu))return!0;r=r.parentElement}return!1}})}function zh(e){let t=ho(e);wt().nextFrame(()=>{t&&!$_(t.activeElement,0)&&hn(e)})}var PC=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(PC||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function hn(e){e==null||e.focus({preventScroll:!0})}let kC=["textarea","input"].join(",");function UC(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,kC))!=null?n:!1}function $h(e,t=n=>n){return e.slice().sort((n,r)=>{let a=t(n),i=t(r);if(a===null||i===null)return 0;let o=a.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function FC(e,t){return ua(jh(),t,{relativeTo:e})}function ua(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:a=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?$h(e):e:jh(e);a.length>0&&o.length>1&&(o=o.filter(E=>!a.includes(E))),r=r??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},u=0,_=o.length,m;do{if(u>=_||u+_<=0)return 0;let E=c+u;if(t&16)E=(E+_)%_;else{if(E<0)return 3;if(E>=_)return 1}m=o[E],m==null||m.focus(d),u+=l}while(m!==i.activeElement);return t&6&&UC(m)&&m.select(),2}function vp(e,t,n){let r=Vt(t);N.useEffect(()=>{function a(i){r.current(i)}return document.addEventListener(e,a,n),()=>document.removeEventListener(e,a,n)},[e,n])}function Wh(e,t,n){let r=Vt(t);N.useEffect(()=>{function a(i){r.current(i)}return window.addEventListener(e,a,n),()=>window.removeEventListener(e,a,n)},[e,n])}function Qh(e,t,n=!0){let r=N.useRef(!1);N.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function a(o,l){if(!r.current||o.defaultPrevented)return;let c=l(o);if(c===null||!c.getRootNode().contains(c))return;let d=function u(_){return typeof _=="function"?u(_()):Array.isArray(_)||_ instanceof Set?_:[_]}(e);for(let u of d){if(u===null)continue;let _=u instanceof HTMLElement?u:u.current;if(_!=null&&_.contains(c)||o.composed&&o.composedPath().includes(_))return}return!$_(c,z_.Loose)&&c.tabIndex!==-1&&o.preventDefault(),t(o,c)}let i=N.useRef(null);vp("mousedown",o=>{var l,c;r.current&&(i.current=((c=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:c[0])||o.target)},!0),vp("click",o=>{i.current&&(a(o,()=>i.current),i.current=null)},!0),Wh("blur",o=>a(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Rp(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function BC(e,t){let[n,r]=N.useState(()=>Rp(e));return ke(()=>{r(Rp(e))},[e.type,e.as]),ke(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Kh=Symbol();function GC(e,t=!0){return Object.assign(e,{[Kh]:t})}function We(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let n=ee(r=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(r):a.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Kh]))?void 0:n}function YC({container:e,accept:t,walk:n,enabled:r=!0}){let a=N.useRef(t),i=N.useRef(n);N.useEffect(()=>{a.current=t,i.current=n},[t,n]),ke(()=>{if(!e||!r)return;let o=ho(e);if(!o)return;let l=a.current,c=i.current,d=Object.assign(_=>l(_),{acceptNode:l}),u=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;u.nextNode();)c(u.currentNode)},[e,r,a,i])}function HC(e){throw new Error("Unexpected object: "+e)}var St=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(St||{});function qC(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),a=r??-1,i=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((l,c,d)=>a!==-1&&d.length-c-1>=a?!1:!t.resolveDisabled(l));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,l)=>l<=a?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:HC(e)}})();return i===-1?r:i}function Fu(...e){return e.filter(Boolean).join(" ")}var Ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ar||{}),Yt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Yt||{});function qe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:a,visible:i=!0,name:o}){let l=Xh(t,e);if(i)return di(l,n,r,o);let c=a??0;if(c&2){let{static:d=!1,...u}=l;if(d)return di(u,n,r,o)}if(c&1){let{unmount:d=!0,...u}=l;return De(d?0:1,{[0](){return null},[1](){return di({...u,hidden:!0,style:{display:"none"}},n,r,o)}})}return di(l,n,r,o)}function di(e,t={},n,r){let{as:a=n,children:i,refName:o="ref",...l}=rs(e,["unmount","static"]),c=e.ref!==void 0?{[o]:e.ref}:{},d=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let _=!1,m=[];for(let[E,f]of Object.entries(t))typeof f=="boolean"&&(_=!0),f===!0&&m.push(E);_&&(u["data-headlessui-state"]=m.join(" "))}if(a===N.Fragment&&Object.keys(Cp(l)).length>0){if(!N.isValidElement(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(f=>` - ${f}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(` `)].join(` -`));let _=d.props,m=typeof(_==null?void 0:_.className)=="function"?(...f)=>Fu(_==null?void 0:_.className(...f),l.className):Fu(_==null?void 0:_.className,l.className),E=m?{className:m}:{};return N.cloneElement(d,Object.assign({},Xh(d.props,Cp(rs(l,["ref"]))),u,c,VC(d.ref,c.ref),E))}return N.createElement(a,Object.assign({},rs(l,["ref"]),a!==N.Fragment&&c,a!==N.Fragment&&u),d)}function VC(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Xh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...i){let o=n[r];for(let l of o){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;l(a,...i)}}});return t}function Fe(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Cp(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function rs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Zh(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&jC(n)?!1:r}function jC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let zC="div";var Xi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xi||{});function $C(e,t){let{features:n=1,...r}=e,a={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return qe({ourProps:a,theirProps:r,slot:{},defaultTag:zC,name:"Hidden"})}let Bu=Fe($C),W_=N.createContext(null);W_.displayName="OpenClosedContext";var Me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Me||{});function To(){return N.useContext(W_)}function Jh({value:e,children:t}){return B.createElement(W_.Provider,{value:e},t)}var Ae=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ae||{});function Q_(e,t){let n=N.useRef([]),r=ee(e);N.useEffect(()=>{let a=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let l=r(t,a);return n.current=t,l}},[r,...t])}function yp(e){return[e.screenX,e.screenY]}function WC(){let e=N.useRef([-1,-1]);return{wasMoved(t){let n=yp(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=yp(t)}}}function QC(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var Jr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Jr||{});function KC(){let e=N.useRef(0);return Wh("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ha(){let e=N.useRef(!1);return ke(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mr(...e){return N.useMemo(()=>ho(...e),[...e])}function eT(e,t,n,r){let a=Vt(n);N.useEffect(()=>{e=e??window;function i(o){a.current(o)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function XC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function tT(e){let t=ee(e),n=N.useRef(!1);N.useEffect(()=>(n.current=!1,()=>{n.current=!0,bo(()=>{n.current&&t()})}),[t])}function nT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let ZC="div";var rT=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(rT||{});function JC(e,t){let n=N.useRef(null),r=We(n,t),{initialFocus:a,containers:i,features:o=30,...l}=e;Lr()||(o=1);let c=Mr(n);ny({ownerDocument:c},!!(o&16));let d=ry({ownerDocument:c,container:n,initialFocus:a},!!(o&2));ay({ownerDocument:c,container:n,containers:i,previousActiveElement:d},!!(o&8));let u=KC(),_=ee(S=>{let h=n.current;h&&(g=>g())(()=>{De(u.current,{[Jr.Forwards]:()=>{ua(h,Ft.First,{skipElements:[S.relatedTarget]})},[Jr.Backwards]:()=>{ua(h,Ft.Last,{skipElements:[S.relatedTarget]})}})})}),m=Ya(),E=N.useRef(!1),f={ref:r,onKeyDown(S){S.key=="Tab"&&(E.current=!0,m.requestAnimationFrame(()=>{E.current=!1}))},onBlur(S){let h=nT(i);n.current instanceof HTMLElement&&h.add(n.current);let g=S.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(aT(h,g)||(E.current?ua(n.current,De(u.current,{[Jr.Forwards]:()=>Ft.Next,[Jr.Backwards]:()=>Ft.Previous})|Ft.WrapAround,{relativeTo:S.target}):S.target instanceof HTMLElement&&hn(S.target)))}};return B.createElement(B.Fragment,null,!!(o&4)&&B.createElement(Bu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:Xi.Focusable}),qe({ourProps:f,theirProps:l,defaultTag:ZC,name:"FocusTrap"}),!!(o&4)&&B.createElement(Bu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:Xi.Focusable}))}let ey=Fe(JC),$r=Object.assign(ey,{features:rT}),sn=[];XC(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&sn[0]!==t.target&&(sn.unshift(t.target),sn=sn.filter(n=>n!=null&&n.isConnected),sn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ty(e=!0){let t=N.useRef(sn.slice());return Q_(([n],[r])=>{r===!0&&n===!1&&bo(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=sn.slice())},[e,sn,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function ny({ownerDocument:e},t){let n=ty(t);Q_(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&hn(n())},[t]),tT(()=>{t&&hn(n())})}function ry({ownerDocument:e,container:t,initialFocus:n},r){let a=N.useRef(null),i=Ha();return Q_(()=>{if(!r)return;let o=t.current;o&&bo(()=>{if(!i.current)return;let l=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===l){a.current=l;return}}else if(o.contains(l)){a.current=l;return}n!=null&&n.current?hn(n.current):ua(o,Ft.First)===Vh.Error&&console.warn("There are no focusable elements inside the "),a.current=e==null?void 0:e.activeElement})},[r]),a}function ay({ownerDocument:e,container:t,containers:n,previousActiveElement:r},a){let i=Ha();eT(e==null?void 0:e.defaultView,"focus",o=>{if(!a||!i.current)return;let l=nT(n);t.current instanceof HTMLElement&&l.add(t.current);let c=r.current;if(!c)return;let d=o.target;d&&d instanceof HTMLElement?aT(l,d)?(r.current=d,hn(d)):(o.preventDefault(),o.stopPropagation(),hn(c)):hn(r.current)},!0)}function aT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let iT=N.createContext(!1);function iy(){return N.useContext(iT)}function Gu(e){return B.createElement(iT.Provider,{value:e.force},e.children)}function oy(e){let t=iy(),n=N.useContext(oT),r=Mr(e),[a,i]=N.useState(()=>{if(!t&&n!==null||qt.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return N.useEffect(()=>{a!==null&&(r!=null&&r.body.contains(a)||r==null||r.body.appendChild(a))},[a,r]),N.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),a}let sy=N.Fragment;function ly(e,t){let n=e,r=N.useRef(null),a=We(GC(u=>{r.current=u}),t),i=Mr(r),o=oy(r),[l]=N.useState(()=>{var u;return qt.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),c=N.useContext(Yu),d=Lr();return ke(()=>{!o||!l||o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l))},[o,l]),ke(()=>{if(l&&c)return c.register(l)},[c,l]),tT(()=>{var u;!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&((u=o.parentElement)==null||u.removeChild(o)))}),d?!o||!l?null:qh.createPortal(qe({ourProps:{ref:a},theirProps:n,defaultTag:sy,name:"Portal"}),l):null}let cy=N.Fragment,oT=N.createContext(null);function dy(e,t){let{target:n,...r}=e,a={ref:We(t)};return B.createElement(oT.Provider,{value:n},qe({ourProps:a,theirProps:r,defaultTag:cy,name:"Popover.Group"}))}let Yu=N.createContext(null);function uy(){let e=N.useContext(Yu),t=N.useRef([]),n=ee(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=ee(i=>{let o=t.current.indexOf(i);o!==-1&&t.current.splice(o,1),e&&e.unregister(i)}),a=N.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,N.useMemo(()=>function({children:i}){return B.createElement(Yu.Provider,{value:a},i)},[a])]}let _y=Fe(ly),my=Fe(dy),Hu=Object.assign(_y,{Group:my}),sT=N.createContext(null);function lT(){let e=N.useContext(sT);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lT),t}return e}function py(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let r=ee(i=>(t(o=>[...o,i]),()=>t(o=>{let l=o.slice(),c=l.indexOf(i);return c!==-1&&l.splice(c,1),l}))),a=N.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return B.createElement(sT.Provider,{value:a},n.children)},[t])]}let gy="p";function Ey(e,t){let n=Kt(),{id:r=`headlessui-description-${n}`,...a}=e,i=lT(),o=We(t);ke(()=>i.register(r),[r,i.register]);let l={ref:o,...i.props,id:r};return qe({ourProps:l,theirProps:a,slot:i.slot||{},defaultTag:gy,name:i.name||"Description"})}let fy=Fe(Ey),Sy=Object.assign(fy,{}),K_=N.createContext(()=>{});K_.displayName="StackContext";var qu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(qu||{});function by(){return N.useContext(K_)}function hy({children:e,onUpdate:t,type:n,element:r,enabled:a}){let i=by(),o=ee((...l)=>{t==null||t(...l),i(...l)});return ke(()=>{let l=a===void 0||a===!0;return l&&o(0,n,r),()=>{l&&o(1,n,r)}},[o,n,r,a]),B.createElement(K_.Provider,{value:o},e)}function Ty(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Ny=typeof Object.is=="function"?Object.is:Ty,{useState:vy,useEffect:Ry,useLayoutEffect:Cy,useDebugValue:yy}=ma;function Oy(e,t,n){const r=t(),[{inst:a},i]=vy({inst:{value:r,getSnapshot:t}});return Cy(()=>{a.value=r,a.getSnapshot=t,as(a)&&i({inst:a})},[e,r,t]),Ry(()=>(as(a)&&i({inst:a}),e(()=>{as(a)&&i({inst:a})})),[e]),yy(r),r}function as(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Ny(n,r)}catch{return!0}}function Iy(e,t,n){return t()}const Ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xy=!Ay,Dy=xy?Iy:Oy,wy="useSyncExternalStore"in ma?(e=>e.useSyncExternalStore)(ma):Dy;function Ly(e){return wy(e.subscribe,e.getSnapshot,e.getSnapshot)}function My(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(a){return r.add(a),()=>r.delete(a)},dispatch(a,...i){let o=t[a].call(n,...i);o&&(n=o,r.forEach(l=>l()))}}}function Py(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,a=r.clientWidth-r.offsetWidth,i=e-a;n.style(r,"paddingRight",`${i}px`)}}}function ky(){if(!QC())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function a(o){return r.containers.flatMap(l=>l()).some(l=>l.contains(o))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let l=o.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=t.querySelector(c);d&&!a(d)&&(i=d)}catch{}},!0),n.addEventListener(t,"touchmove",o=>{o.target instanceof HTMLElement&&!a(o.target)&&o.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function Uy(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Fy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Fn=My(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Fy(n)},a=[ky(),Py(),Uy()];a.forEach(({before:i})=>i==null?void 0:i(r)),a.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Fn.subscribe(()=>{let e=Fn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",a=n.count!==0;(a&&!r||!a&&r)&&Fn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Fn.dispatch("TEARDOWN",n)}});function By(e,t,n){let r=Ly(Fn),a=e?r.get(e):void 0,i=a?a.count>0:!1;return ke(()=>{if(!(!e||!t))return Fn.dispatch("PUSH",e,n),()=>Fn.dispatch("POP",e,n)},[t,e]),i}let is=new Map,Wr=new Map;function Op(e,t=!0){ke(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function a(){var o;if(!r)return;let l=(o=Wr.get(r))!=null?o:1;if(l===1?Wr.delete(r):Wr.set(r,l-1),l!==1)return;let c=is.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,is.delete(r))}let i=(n=Wr.get(r))!=null?n:0;return Wr.set(r,i+1),i!==0||(is.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),a},[e,t])}function Gy({defaultContainers:e=[],portals:t}={}){let n=N.useRef(null),r=Mr(n),a=ee(()=>{var i;let o=[];for(let l of e)l!==null&&(l instanceof HTMLElement?o.push(l):"current"in l&&l.current instanceof HTMLElement&&o.push(l.current));if(t!=null&&t.current)for(let l of t.current)o.push(l);for(let l of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(n.current)||o.some(c=>l.contains(c))||o.push(l));return o});return{resolveContainers:a,contains:ee(i=>a().some(o=>o.contains(i))),mainTreeNodeRef:n,MainTreeNode:N.useMemo(()=>function(){return B.createElement(Bu,{features:Xi.Hidden,ref:n})},[n])}}var Yy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yy||{}),Hy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Hy||{});let qy={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Zi=N.createContext(null);Zi.displayName="DialogContext";function qa(e){let t=N.useContext(Zi);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qa),n}return t}function Vy(e,t,n=()=>[document.body]){By(e,t,r=>{var a;return{containers:[...(a=r.containers)!=null?a:[],n]}})}function jy(e,t){return De(t.type,qy,e,t)}let zy="div",$y=Ar.RenderStrategy|Ar.Static;function Wy(e,t){var n;let r=Kt(),{id:a=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:l,__demoMode:c=!1,...d}=e,[u,_]=N.useState(0),m=To();i===void 0&&m!==null&&(i=(m&Me.Open)===Me.Open);let E=N.useRef(null),f=We(E,t),S=Mr(E),h=e.hasOwnProperty("open")||m!==null,g=e.hasOwnProperty("onClose");if(!h&&!g)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!h)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!g)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let p=i?0:1,[b,T]=N.useReducer(jy,{titleId:null,descriptionId:null,panelRef:N.createRef()}),R=ee(()=>o(!1)),y=ee(re=>T({type:0,id:re})),C=Lr()?c?!1:p===0:!1,O=u>1,L=N.useContext(Zi)!==null,[x,H]=uy(),{resolveContainers:P,mainTreeNodeRef:$,MainTreeNode:ce}=Gy({portals:x,defaultContainers:[(n=b.panelRef.current)!=null?n:E.current]}),X=O?"parent":"leaf",Q=m!==null?(m&Me.Closing)===Me.Closing:!1,K=(()=>L||Q?!1:C)(),A=N.useCallback(()=>{var re,se;return(se=Array.from((re=S==null?void 0:S.querySelectorAll("body > *"))!=null?re:[]).find(oe=>oe.id==="headlessui-portal-root"?!1:oe.contains($.current)&&oe instanceof HTMLElement))!=null?se:null},[$]);Op(A,K);let M=(()=>O?!0:C)(),k=N.useCallback(()=>{var re,se;return(se=Array.from((re=S==null?void 0:S.querySelectorAll("[data-headlessui-portal]"))!=null?re:[]).find(oe=>oe.contains($.current)&&oe instanceof HTMLElement))!=null?se:null},[$]);Op(k,M);let W=(()=>!(!C||O))();Qh(P,R,W);let ie=(()=>!(O||p!==0))();eT(S==null?void 0:S.defaultView,"keydown",re=>{ie&&(re.defaultPrevented||re.key===Ae.Escape&&(re.preventDefault(),re.stopPropagation(),R()))});let I=(()=>!(Q||p!==0||L))();Vy(S,I,P),N.useEffect(()=>{if(p!==0||!E.current)return;let re=new ResizeObserver(se=>{for(let oe of se){let be=oe.target.getBoundingClientRect();be.x===0&&be.y===0&&be.width===0&&be.height===0&&R()}});return re.observe(E.current),()=>re.disconnect()},[p,E,R]);let[w,z]=py(),j=N.useMemo(()=>[{dialogState:p,close:R,setTitleId:y},b],[p,b,R,y]),te=N.useMemo(()=>({open:p===0}),[p]),Ce={ref:f,id:a,role:"dialog","aria-modal":p===0?!0:void 0,"aria-labelledby":b.titleId,"aria-describedby":w};return B.createElement(hy,{type:"Dialog",enabled:p===0,element:E,onUpdate:ee((re,se)=>{se==="Dialog"&&De(re,{[qu.Add]:()=>_(oe=>oe+1),[qu.Remove]:()=>_(oe=>oe-1)})})},B.createElement(Gu,{force:!0},B.createElement(Hu,null,B.createElement(Zi.Provider,{value:j},B.createElement(Hu.Group,{target:E},B.createElement(Gu,{force:!1},B.createElement(z,{slot:te,name:"Dialog.Description"},B.createElement($r,{initialFocus:l,containers:P,features:C?De(X,{parent:$r.features.RestoreFocus,leaf:$r.features.All&~$r.features.FocusLock}):$r.features.None},B.createElement(H,null,qe({ourProps:Ce,theirProps:d,slot:te,defaultTag:zy,features:$y,visible:p===0,name:"Dialog"}))))))))),B.createElement(ce,null))}let Qy="div";function Ky(e,t){let n=Kt(),{id:r=`headlessui-dialog-overlay-${n}`,...a}=e,[{dialogState:i,close:o}]=qa("Dialog.Overlay"),l=We(t),c=ee(u=>{if(u.target===u.currentTarget){if(Zh(u.currentTarget))return u.preventDefault();u.preventDefault(),u.stopPropagation(),o()}}),d=N.useMemo(()=>({open:i===0}),[i]);return qe({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:c},theirProps:a,slot:d,defaultTag:Qy,name:"Dialog.Overlay"})}let Xy="div";function Zy(e,t){let n=Kt(),{id:r=`headlessui-dialog-backdrop-${n}`,...a}=e,[{dialogState:i},o]=qa("Dialog.Backdrop"),l=We(t);N.useEffect(()=>{if(o.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[o.panelRef]);let c=N.useMemo(()=>({open:i===0}),[i]);return B.createElement(Gu,{force:!0},B.createElement(Hu,null,qe({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:a,slot:c,defaultTag:Xy,name:"Dialog.Backdrop"})))}let Jy="div";function eO(e,t){let n=Kt(),{id:r=`headlessui-dialog-panel-${n}`,...a}=e,[{dialogState:i},o]=qa("Dialog.Panel"),l=We(t,o.panelRef),c=N.useMemo(()=>({open:i===0}),[i]),d=ee(u=>{u.stopPropagation()});return qe({ourProps:{ref:l,id:r,onClick:d},theirProps:a,slot:c,defaultTag:Jy,name:"Dialog.Panel"})}let tO="h2";function nO(e,t){let n=Kt(),{id:r=`headlessui-dialog-title-${n}`,...a}=e,[{dialogState:i,setTitleId:o}]=qa("Dialog.Title"),l=We(t);N.useEffect(()=>(o(r),()=>o(null)),[r,o]);let c=N.useMemo(()=>({open:i===0}),[i]);return qe({ourProps:{ref:l,id:r},theirProps:a,slot:c,defaultTag:tO,name:"Dialog.Title"})}let rO=Fe(Wy),aO=Fe(Zy),iO=Fe(eO),oO=Fe(Ky),sO=Fe(nO),os=Object.assign(rO,{Backdrop:aO,Panel:iO,Overlay:oO,Title:sO,Description:Sy}),Ip=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ap(e){var t,n;let r=(t=e.innerText)!=null?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return r;let i=!1;for(let l of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let o=i?(n=a.innerText)!=null?n:"":r;return Ip.test(o)&&(o=o.replace(Ip,"")),o}function lO(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(a=>{let i=document.getElementById(a);if(i){let o=i.getAttribute("aria-label");return typeof o=="string"?o.trim():Ap(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ap(e).trim()}function cO(e){let t=N.useRef(""),n=N.useRef("");return ee(()=>{let r=e.current;if(!r)return"";let a=r.innerText;if(t.current===a)return n.current;let i=lO(r).trim().toLowerCase();return t.current=a,n.current=i,i})}var dO=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dO||{}),uO=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(uO||{}),_O=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(_O||{});function ss(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=$h(t(e.items.slice()),i=>i.dataRef.current.domRef.current),a=n?r.indexOf(n):null;return a===-1&&(a=null),{items:r,activeItemIndex:a}}let mO={[1](e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},[0](e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},[2]:(e,t)=>{var n;let r=ss(e),a=qC(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:a,activationTrigger:(n=t.trigger)!=null?n:1}},[3]:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),a=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var l;return((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!o.dataRef.current.disabled}),i=a?e.items.indexOf(a):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},[4](e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},[5]:(e,t)=>{let n=ss(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},[6]:(e,t)=>{let n=ss(e,r=>{let a=r.findIndex(i=>i.id===t.id);return a!==-1&&r.splice(a,1),r});return{...e,...n,activationTrigger:1}}},X_=N.createContext(null);X_.displayName="MenuContext";function No(e){let t=N.useContext(X_);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,No),n}return t}function pO(e,t){return De(t.type,mO,e,t)}let gO=N.Fragment;function EO(e,t){let{__demoMode:n=!1,...r}=e,a=N.useReducer(pO,{__demoMode:n,menuState:n?0:1,buttonRef:N.createRef(),itemsRef:N.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:o,buttonRef:l},c]=a,d=We(t);Qh([l,o],(E,f)=>{var S;c({type:1}),$_(f,z_.Loose)||(E.preventDefault(),(S=l.current)==null||S.focus())},i===0);let u=ee(()=>{c({type:1})}),_=N.useMemo(()=>({open:i===0,close:u}),[i,u]),m={ref:d};return B.createElement(X_.Provider,{value:a},B.createElement(Jh,{value:De(i,{[0]:Me.Open,[1]:Me.Closed})},qe({ourProps:m,theirProps:r,slot:_,defaultTag:gO,name:"Menu"})))}let fO="button";function SO(e,t){var n;let r=Kt(),{id:a=`headlessui-menu-button-${r}`,...i}=e,[o,l]=No("Menu.Button"),c=We(o.buttonRef,t),d=Ya(),u=ee(S=>{switch(S.key){case Ae.Space:case Ae.Enter:case Ae.ArrowDown:S.preventDefault(),S.stopPropagation(),l({type:0}),d.nextFrame(()=>l({type:2,focus:St.First}));break;case Ae.ArrowUp:S.preventDefault(),S.stopPropagation(),l({type:0}),d.nextFrame(()=>l({type:2,focus:St.Last}));break}}),_=ee(S=>{switch(S.key){case Ae.Space:S.preventDefault();break}}),m=ee(S=>{if(Zh(S.currentTarget))return S.preventDefault();e.disabled||(o.menuState===0?(l({type:1}),d.nextFrame(()=>{var h;return(h=o.buttonRef.current)==null?void 0:h.focus({preventScroll:!0})})):(S.preventDefault(),l({type:0})))}),E=N.useMemo(()=>({open:o.menuState===0}),[o]),f={ref:c,id:a,type:BC(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":(n=o.itemsRef.current)==null?void 0:n.id,"aria-expanded":e.disabled?void 0:o.menuState===0,onKeyDown:u,onKeyUp:_,onClick:m};return qe({ourProps:f,theirProps:i,slot:E,defaultTag:fO,name:"Menu.Button"})}let bO="div",hO=Ar.RenderStrategy|Ar.Static;function TO(e,t){var n,r;let a=Kt(),{id:i=`headlessui-menu-items-${a}`,...o}=e,[l,c]=No("Menu.Items"),d=We(l.itemsRef,t),u=Mr(l.itemsRef),_=Ya(),m=To(),E=(()=>m!==null?(m&Me.Open)===Me.Open:l.menuState===0)();N.useEffect(()=>{let p=l.itemsRef.current;p&&l.menuState===0&&p!==(u==null?void 0:u.activeElement)&&p.focus({preventScroll:!0})},[l.menuState,l.itemsRef,u]),YC({container:l.itemsRef.current,enabled:l.menuState===0,accept(p){return p.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let f=ee(p=>{var b,T;switch(_.dispose(),p.key){case Ae.Space:if(l.searchQuery!=="")return p.preventDefault(),p.stopPropagation(),c({type:3,value:p.key});case Ae.Enter:if(p.preventDefault(),p.stopPropagation(),c({type:1}),l.activeItemIndex!==null){let{dataRef:R}=l.items[l.activeItemIndex];(T=(b=R.current)==null?void 0:b.domRef.current)==null||T.click()}zh(l.buttonRef.current);break;case Ae.ArrowDown:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Next});case Ae.ArrowUp:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Previous});case Ae.Home:case Ae.PageUp:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.First});case Ae.End:case Ae.PageDown:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Last});case Ae.Escape:p.preventDefault(),p.stopPropagation(),c({type:1}),wt().nextFrame(()=>{var R;return(R=l.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})});break;case Ae.Tab:p.preventDefault(),p.stopPropagation(),c({type:1}),wt().nextFrame(()=>{FC(l.buttonRef.current,p.shiftKey?Ft.Previous:Ft.Next)});break;default:p.key.length===1&&(c({type:3,value:p.key}),_.setTimeout(()=>c({type:4}),350));break}}),S=ee(p=>{switch(p.key){case Ae.Space:p.preventDefault();break}}),h=N.useMemo(()=>({open:l.menuState===0}),[l]),g={"aria-activedescendant":l.activeItemIndex===null||(n=l.items[l.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=l.buttonRef.current)==null?void 0:r.id,id:i,onKeyDown:f,onKeyUp:S,role:"menu",tabIndex:0,ref:d};return qe({ourProps:g,theirProps:o,slot:h,defaultTag:bO,features:hO,visible:E,name:"Menu.Items"})}let NO=N.Fragment;function vO(e,t){let n=Kt(),{id:r=`headlessui-menu-item-${n}`,disabled:a=!1,...i}=e,[o,l]=No("Menu.Item"),c=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,d=N.useRef(null),u=We(t,d);ke(()=>{if(o.__demoMode||o.menuState!==0||!c||o.activationTrigger===0)return;let R=wt();return R.requestAnimationFrame(()=>{var y,C;(C=(y=d.current)==null?void 0:y.scrollIntoView)==null||C.call(y,{block:"nearest"})}),R.dispose},[o.__demoMode,d,c,o.menuState,o.activationTrigger,o.activeItemIndex]);let _=cO(d),m=N.useRef({disabled:a,domRef:d,get textValue(){return _()}});ke(()=>{m.current.disabled=a},[m,a]),ke(()=>(l({type:5,id:r,dataRef:m}),()=>l({type:6,id:r})),[m,r]);let E=ee(()=>{l({type:1})}),f=ee(R=>{if(a)return R.preventDefault();l({type:1}),zh(o.buttonRef.current)}),S=ee(()=>{if(a)return l({type:2,focus:St.Nothing});l({type:2,focus:St.Specific,id:r})}),h=WC(),g=ee(R=>h.update(R)),p=ee(R=>{h.wasMoved(R)&&(a||c||l({type:2,focus:St.Specific,id:r,trigger:0}))}),b=ee(R=>{h.wasMoved(R)&&(a||c&&l({type:2,focus:St.Nothing}))}),T=N.useMemo(()=>({active:c,disabled:a,close:E}),[c,a,E]);return qe({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:a===!0?void 0:-1,"aria-disabled":a===!0?!0:void 0,disabled:void 0,onClick:f,onFocus:S,onPointerEnter:g,onMouseEnter:g,onPointerMove:p,onMouseMove:p,onPointerLeave:b,onMouseLeave:b},theirProps:i,slot:T,defaultTag:NO,name:"Menu.Item"})}let RO=Fe(EO),CO=Fe(SO),yO=Fe(TO),OO=Fe(vO),yt=Object.assign(RO,{Button:CO,Items:yO,Item:OO});function IO(e=0){let[t,n]=N.useState(e),r=Ha(),a=N.useCallback(c=>{r.current&&n(d=>d|c)},[t,r]),i=N.useCallback(c=>!!(t&c),[t]),o=N.useCallback(c=>{r.current&&n(d=>d&~c)},[n,r]),l=N.useCallback(c=>{r.current&&n(d=>d^c)},[n]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:o,toggleFlag:l}}function AO(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ls(e,...t){e&&t.length>0&&e.classList.add(...t)}function cs(e,...t){e&&t.length>0&&e.classList.remove(...t)}function xO(e,t){let n=wt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[i,o]=[r,a].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,_)=>_-u);return d}),l=i+o;if(l!==0){n.group(d=>{d.setTimeout(()=>{t(),d.dispose()},l),d.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&d.dispose()})});let c=n.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function DO(e,t,n,r){let a=n?"enter":"leave",i=wt(),o=r!==void 0?AO(r):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=De(a,{enter:()=>t.enter,leave:()=>t.leave}),c=De(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=De(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return cs(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ls(e,...l,...d),i.nextFrame(()=>{cs(e,...d),ls(e,...c),xO(e,()=>(cs(e,...l),ls(e,...t.entered),o()))}),i.dispose}function wO({container:e,direction:t,classes:n,onStart:r,onStop:a}){let i=Ha(),o=Ya(),l=Vt(t);ke(()=>{let c=wt();o.add(c.dispose);let d=e.current;if(d&&l.current!=="idle"&&i.current)return c.dispose(),r.current(l.current),c.add(DO(d,n.current,l.current==="enter",()=>{c.dispose(),a.current(l.current)})),c.dispose},[t])}function wn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let vo=N.createContext(null);vo.displayName="TransitionContext";var LO=(e=>(e.Visible="visible",e.Hidden="hidden",e))(LO||{});function MO(){let e=N.useContext(vo);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function PO(){let e=N.useContext(Ro);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Ro=N.createContext(null);Ro.displayName="NestingContext";function Co(e){return"children"in e?Co(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function cT(e,t){let n=Vt(e),r=N.useRef([]),a=Ha(),i=Ya(),o=ee((E,f=Yt.Hidden)=>{let S=r.current.findIndex(({el:h})=>h===E);S!==-1&&(De(f,{[Yt.Unmount](){r.current.splice(S,1)},[Yt.Hidden](){r.current[S].state="hidden"}}),i.microTask(()=>{var h;!Co(r)&&a.current&&((h=n.current)==null||h.call(n))}))}),l=ee(E=>{let f=r.current.find(({el:S})=>S===E);return f?f.state!=="visible"&&(f.state="visible"):r.current.push({el:E,state:"visible"}),()=>o(E,Yt.Unmount)}),c=N.useRef([]),d=N.useRef(Promise.resolve()),u=N.useRef({enter:[],leave:[],idle:[]}),_=ee((E,f,S)=>{c.current.splice(0),t&&(t.chains.current[f]=t.chains.current[f].filter(([h])=>h!==E)),t==null||t.chains.current[f].push([E,new Promise(h=>{c.current.push(h)})]),t==null||t.chains.current[f].push([E,new Promise(h=>{Promise.all(u.current[f].map(([g,p])=>p)).then(()=>h())})]),f==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>S(f)):S(f)}),m=ee((E,f,S)=>{Promise.all(u.current[f].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=c.current.shift())==null||h()}).then(()=>S(f))});return N.useMemo(()=>({children:r,register:l,unregister:o,onStart:_,onStop:m,wait:d,chains:u}),[l,o,r,_,m,u,d])}function kO(){}let UO=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xp(e){var t;let n={};for(let r of UO)n[r]=(t=e[r])!=null?t:kO;return n}function FO(e){let t=N.useRef(xp(e));return N.useEffect(()=>{t.current=xp(e)},[e]),t}let BO="div",dT=Ar.RenderStrategy;function GO(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:o,enterFrom:l,enterTo:c,entered:d,leave:u,leaveFrom:_,leaveTo:m,...E}=e,f=N.useRef(null),S=We(f,t),h=E.unmount?Yt.Unmount:Yt.Hidden,{show:g,appear:p,initial:b}=MO(),[T,R]=N.useState(g?"visible":"hidden"),y=PO(),{register:C,unregister:O}=y,L=N.useRef(null);N.useEffect(()=>C(f),[C,f]),N.useEffect(()=>{if(h===Yt.Hidden&&f.current){if(g&&T!=="visible"){R("visible");return}return De(T,{hidden:()=>O(f),visible:()=>C(f)})}},[T,f,C,O,g,h]);let x=Vt({enter:wn(o),enterFrom:wn(l),enterTo:wn(c),entered:wn(d),leave:wn(u),leaveFrom:wn(_),leaveTo:wn(m)}),H=FO({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),P=Lr();N.useEffect(()=>{if(P&&T==="visible"&&f.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[f,T,P]);let $=b&&!p,ce=(()=>!P||$||L.current===g?"idle":g?"enter":"leave")(),X=IO(0),Q=ee(W=>De(W,{enter:()=>{X.addFlag(Me.Opening),H.current.beforeEnter()},leave:()=>{X.addFlag(Me.Closing),H.current.beforeLeave()},idle:()=>{}})),K=ee(W=>De(W,{enter:()=>{X.removeFlag(Me.Opening),H.current.afterEnter()},leave:()=>{X.removeFlag(Me.Closing),H.current.afterLeave()},idle:()=>{}})),A=cT(()=>{R("hidden"),O(f)},y);wO({container:f,classes:x,direction:ce,onStart:Vt(W=>{A.onStart(f,W,Q)}),onStop:Vt(W=>{A.onStop(f,W,K),W==="leave"&&!Co(A)&&(R("hidden"),O(f))})}),N.useEffect(()=>{$&&(h===Yt.Hidden?L.current=null:L.current=g)},[g,$,T]);let M=E,k={ref:S};return p&&g&&b&&(M={...M,className:Fu(E.className,...x.current.enter,...x.current.enterFrom)}),B.createElement(Ro.Provider,{value:A},B.createElement(Jh,{value:De(T,{visible:Me.Open,hidden:Me.Closed})|X.flags},qe({ourProps:k,theirProps:M,defaultTag:BO,features:dT,visible:T==="visible",name:"Transition.Child"})))}function YO(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,o=N.useRef(null),l=We(o,t);Lr();let c=To();if(n===void 0&&c!==null&&(n=(c&Me.Open)===Me.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[d,u]=N.useState(n?"visible":"hidden"),_=cT(()=>{u("hidden")}),[m,E]=N.useState(!0),f=N.useRef([n]);ke(()=>{m!==!1&&f.current[f.current.length-1]!==n&&(f.current.push(n),E(!1))},[f,n]);let S=N.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);N.useEffect(()=>{if(n)u("visible");else if(!Co(_))u("hidden");else{let b=o.current;if(!b)return;let T=b.getBoundingClientRect();T.x===0&&T.y===0&&T.width===0&&T.height===0&&u("hidden")}},[n,_]);let h={unmount:a},g=ee(()=>{var b;m&&E(!1),(b=e.beforeEnter)==null||b.call(e)}),p=ee(()=>{var b;m&&E(!1),(b=e.beforeLeave)==null||b.call(e)});return B.createElement(Ro.Provider,{value:_},B.createElement(vo.Provider,{value:S},qe({ourProps:{...h,as:N.Fragment,children:B.createElement(uT,{ref:l,...h,...i,beforeEnter:g,beforeLeave:p})},theirProps:{},defaultTag:N.Fragment,features:dT,visible:d==="visible",name:"Transition"})))}function HO(e,t){let n=N.useContext(vo)!==null,r=To()!==null;return B.createElement(B.Fragment,null,!n&&r?B.createElement(Vu,{ref:t,...e}):B.createElement(uT,{ref:t,...e}))}let Vu=Fe(YO),uT=Fe(GO),qO=Fe(HO),ea=Object.assign(Vu,{Child:qO,Root:Vu});var _T={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dp=B.createContext&&B.createContext(_T),Tn=globalThis&&globalThis.__assign||function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;ns.jsx("div",{children:i.map((l,c)=>s.jsx(yt.Item,{children:({active:d})=>s.jsx("a",{className:zO(d?"bg-black text-white":"text-black","block px-4 py-2"),onClick:()=>{n(!0),a(l)},children:l.name})},c))},o))})})]}),s.jsx(ea,{appear:!0,show:t,as:N.Fragment,children:s.jsxs(os,{as:"div",className:"relative z-10",onClose:()=>n(!1),children:[s.jsx(ea.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),s.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:s.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:s.jsx(ea.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:s.jsxs(os.Panel,{className:"w-full max-w-2xl hover:max-w-3xl transform overflow-hidden rounded-md bg-white hover:bg-gradient-to-b hover:from-red-100 hover:via-green-100 hover:to-blue-100 p-5 align-middle shadow-xl transition-all text-md hover:text-xl",children:[s.jsxs(os.Title,{as:"h3",className:"text-md font-mono font-medium leading-6 text-black uppercase",children:["Homework ",r.name]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-red-700 font-mono",children:r.due}),s.jsx("p",{className:"font-mono py-5 text-start select-none whitespace-pre-line",children:r.prompt})]}),s.jsx("a",{href:r.link,target:"_blank",className:"inline-flex justify-center rounded-md hover:ring-1 ring-black bg-black text-white px-4 py-2 uppercase font-mono font-medium hover:bg-gradient-to-r hover:from-red-100 hover:via-green-100 hover:to-blue-100 hover:text-black",children:"Submit >>"})]})})})})]})})]})}function ds(...e){return e.filter(Boolean).join(" ")}function WO(){return s.jsxs(yt,{as:"div",className:"relative inline-block text-left",children:[s.jsx("div",{children:s.jsxs(yt.Button,{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",children:[s.jsx("p",{className:"pr-1",children:"Projects"}),s.jsx(pT,{})]})}),s.jsx(ea,{as:N.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:s.jsxs(yt.Items,{className:"absolute z-10 mt-2 w-full text-center text-sm p-1 font-mono origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg ring-1 ring-black ring-opacity-10 focus:outline-none",children:[s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_1",children:"Project 1"})}),s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_2",children:"Project 2"})}),s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_3",children:"Project 3"})})]})})]})}function QO(e){const[t,n]=N.useState(!1);return s.jsx("nav",{className:"flex flex-wrap items-center justify-between px-2 py-3 bg-black mb-3 sticky top-0 z-50",children:s.jsxs("div",{className:"container px-4 mx-auto flex flex-wrap items-center justify-center",children:[s.jsxs("div",{className:"w-full relative flex justify-between lg:w-auto px-4 lg:static lg:block lg:justify-start",children:[s.jsx("a",{className:"sm:text-md md:text-2xl font-bold font-serif leading-relaxed inline-block mr-4 py-2 whitespace-nowrap text-white",href:"/Hunter_CS135_Summer23/",children:"Software Analysis and Design I"}),s.jsxs("button",{className:"cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none",type:"button",onClick:()=>n(!t),children:[s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white"}),s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white mt-1"}),s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white mt-1"})]})]}),s.jsx("div",{className:"flex-grow"}),s.jsx("div",{className:"lg:flex justify-center "+(t?"flex":"hidden"),children:s.jsxs("ul",{className:"flex flex-col justify-center items-center lg:flex-row list-none ml-auto w-full",children:[s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx(WO,{})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx("a",{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",href:"/Hunter_CS135_Summer23/CSCI135_Syllabus.pdf",target:"_blank",children:"Syllabus"})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx("a",{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",href:"https://www.gradescope.com/courses/545354",target:"_blank",children:"Gradescope"})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0 pl-0 pr-3",children:s.jsx($O,{homeworks:e.homeworks})})]})})]})})}function KO(e){return s.jsx("div",{className:"overflow-auto w-10/12",children:s.jsxs("table",{className:"border-separate border border-slate-500 font-mono w-full",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-black text-white",children:[s.jsx("th",{className:"border border-slate-600 p-3",children:"Date"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Topics"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Slides"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Labs"})]})}),!e.midterm&&s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"05/31/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Linux/Compilation/IDE",s.jsx("br",{}),"Variables",s.jsx("br",{}),"Input/Output",s.jsx("br",{}),"Syntax/Style",s.jsx("br",{}),"Error Messages",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.5%20Analyzing%20Your%20First%20Program.pdf",children:"Analyzing Your First Program"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.6%20Errors.pdf",children:"Errors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.7%20PS%20Algorithm%20Design.pdf",children:"Algorithm Design"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.1%20Variables.pdf",children:"Variables"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_01.html",children:"Lab 1"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_1.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/05/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Math operators",s.jsx("br",{}),"Input/Output",s.jsx("br",{}),"Strings and Numbers",s.jsx("br",{}),"Conditionals"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.2%20Arithmetic.pdf",children:"Arithmetic"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.3%20Input%20and%20Output%20_%202.4%20PS%20First%20Do%20It%20By%20Hand.pdf",children:"Input and Output"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.5%20Strings.pdf",children:"Strings"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.1%20The%20IF%20Statement.pdf",children:"If-Statements"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.2%20Comparing%20Numbers%20and%20Strings.pdf",children:"Comparing Numbers and Strings"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.3%20Multiple%20Alternatives%20_%203.4%20Nested%20Branches.pdf",children:"Multiple Alternatives"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_02.html",children:"Lab 2"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_2.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/07/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Boolean Datatype",s.jsx("br",{}),"Input Validation",s.jsx("br",{}),"Different Loops",s.jsx("br",{}),"Loop Algorithms"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.7%20Boolean%20Variables%20and%20Operators.pdf",children:"Boolean Datatype and Operators"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.8%20Application_%20Input%20Validation.pdf",children:"Input Validation"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.1%20The%20WHILE%20Loop.pdf",children:"While Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.2%20PS%20Hand-Tracing%20_%204.3%20The%20FOR%20Loop.pdf",children:"For Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.4%20The%20DO%20Loop%20_%204.5%20Processing%20Input.pdf",children:"Do-While Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.6%20PS%20Storyboards%20_%204.7%20Common%20Loop%20Algorithms%20_%204.8%20Nested%20Loops.pdf",children:"Loop Algorithms"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_03.html",children:"Lab 3"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/Current_Reservoir_Levels.tsv",children:"Datafile"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_3.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/12/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Nested Loops",s.jsx("br",{}),"Random",s.jsx("br",{}),"Functions"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.6%20PS%20Storyboards%20_%204.7%20Common%20Loop%20Algorithms%20_%204.8%20Nested%20Loops.pdf",children:"Nested Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.9%20PS%20Solve%20a%20Simpler%20Problem%20First%20_%204.10%20Random%20Numbers%20and%20Simulations.pdf",children:"Random Numbers and Simulations"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.1%20Functions%20as%20Black%20Boxes%20_%205.2%20Implementing%20Functions%20_%205.3%20Parameter%20Passing.pdf",children:"Functions"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.4%20Return%20Values%20_%205.5%20Functions%20without%20Return%20Values%20_%205.6%20Reusable%20Functions.pdf",children:"Returning from a function"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_04.html",children:"Lab 4"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_4.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/14/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Breaking Down Complex Problems",s.jsx("br",{}),"Variable Scopes",s.jsx("br",{}),"Pass by Reference"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.7%20Stepwise%20Refinement.pdf",children:"Stepwise Refinement"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.8%20Variable%20Scope%20and%20Globals.pdf",children:"Variable Scopes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/Static%20Variables.pdf",children:"Static Variables"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.9%20Reference%20Parameters.pdf",children:"Reference Parameters"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/#/Project_1",children:"Project 1"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/21/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Arrays",s.jsx("br",{}),"Array Algorithms(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/arrays.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"2D Arrays"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.1%20Arrays.pdf",children:"Arrays"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.2%20Common%20Array%20Algorithms.pdf",children:"Common Arrays Algorithms"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.3%20Arrays%20and%20Functions.pdf",children:"Arrays and Functions"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.4%20PS%20Adapting%20Algorithms%20_%206.5%20Discovering%20Algorithms.pdf",children:"Adapting Algorithms"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.6%202D%20Arrays.pdf",children:"2D Arrays"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_05.html",children:"Lab 5"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_5.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/26/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Pointers",s.jsx("br",{}),"File Streams"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.1%20Defining%20and%20Using%20Pointers.pdf",children:"Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.2%20Arrays%20and%20Pointers.pdf",children:"Arrays and Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/8.1%20Reading%20and%20Writing%20Text%20Files.pdf",children:"Streams"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_06.html",children:"Lab 6"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_6.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/28/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Midterm Review",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/midterm_review.pdf",children:"Midterm Review"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/midterm_format.pdf",children:"Exam Format"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_07.html",children:"Lab 7"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_7.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/03/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["MIDTERM EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"MIDTERM EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_08.html",children:"Lab 8"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_8.pdf",children:"Slides"}),s.jsx("br",{})]})]})]}),e.midterm&&s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/03/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["MIDTERM EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"MIDTERM EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_08.html",children:"Lab 8"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_8.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/05/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Dynamic Memory Allocation",s.jsx("br",{}),"Dynamic Arrays(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/dynamic.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"Pointer Arrays(",s.jsx("a",{className:"text-blue-700 font-bold",target:"_blank",href:"https://is.gd/00MNC7",children:"code"}),")",s.jsx("br",{}),"Introduction to Classes"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.4%20Dynamic%20Memory%20Allocation.pdf",children:"Dynamic Memory"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.5-6%20Arrays%20of%20Pointers%20_%20PS%20Draw%20a%20Picture.pdf",children:"Arrays of Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.youtube.com/watch?v=3m4bxse2JEQ",children:"Galton Board"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.7-8%20Classes%20of%20Objects%20_%20Pointers%20and%20Objects.pdf",children:"Classes"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_09.html",children:"Lab 9"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_9.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/10/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Object-Oriented-Programming",s.jsx("br",{}),"Separate Compilation",s.jsx("br",{}),"Enums"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.1-2%20Object%20Oriented%20Programming%20_%20Implementing%20a%20Simple%20Class.pdf",children:"OOP"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.3-5%20Specifying%20the%20Public%20Interface%20_%20Designing%20the%20Data%20Representation%20_%20Member%20Functions.pdf",children:"Access Specifiers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.6%20Constructors.pdf",children:"Constructors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.9%20Separate%20Compilation.pdf",children:"Separate Compilation"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/Enums.pdf",children:"Enums"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_10.html",children:"Lab 10"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_10.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/12/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["OOP Example(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/dictionary.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Inheritance(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/inheritance.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Vectors",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.7%20Vectors.pdf",children:"Vectors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.1%20Inheritance%20Hierarchies.pdf",children:"Inheritance"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.2%20Implementing%20Derived%20Classes.pdf",children:"Derived Classes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.3%20Overriding%20Member%20Functions.pdf",children:"Overriding"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_11.html",children:"Lab 11"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_11.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/17/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Vector and Classes Example",s.jsx("br",{}),"Virtual Classes",s.jsx("br",{}),"Recursion",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.4%20Virtual%20Functions%20and%20Polymorphism.pdf",children:"Virtual Classes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.10%20Recursive%20Functions.pdf",children:"Recursive Function"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_12.html",children:"Lab 12"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_12.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/19/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Templated Functions(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/templates.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"Templated Classes",s.jsx("br",{}),"Linked List(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/linkedlist.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Operator Overloading",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://www.geeksforgeeks.org/templates-cpp/",children:"Templates"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.geeksforgeeks.org/data-structures/linked-list/",children:"Linked List"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://learn.microsoft.com/en-us/cpp/standard-library/overloading-the-output-operator-for-your-own-classes?view=msvc-170",children:"Operator Overloading"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_13.html",children:"Lab 13"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_13.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/24/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Final Exam Review",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/final_format.pdf",children:"Exam Format"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/final_review.pdf",children:"Final Review"}),s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:"TBA..."})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/26/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["FINAL EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"FINAL EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://www.youtube.com/watch?v=tg2PD-dwsIw",children:"Finally"}),s.jsx("br",{})]})]})]})]})})}function XO(e){const[t,n]=N.useState(e),r=N.useCallback(()=>{n(a=>!a)},[n]);return{isOpen:t,toggle:r}}const ZO=({section:e})=>{const{isOpen:t,toggle:n}=XO(!1);return s.jsxs("div",{children:[s.jsx(JO,{question:e.question,isOpen:t,toggle:n}),t&&s.jsx(eI,{answer:e.answer})]})},JO=({question:e,isOpen:t,toggle:n})=>s.jsxs("div",{className:"cursor-pointer flex flex-row font-mono border-solid border border-black p-5 text-blue-700 font-bold",onClick:n,children:[s.jsxs("div",{children:["Q: ",e]}),s.jsx("div",{className:"grow w-max"}),s.jsx("button",{className:"expand-button",children:s.jsx("span",{className:"material-symbols-outlined",style:{transform:`rotate(${t?180:0}deg)`,transition:"all 0.25s"},children:"expand_more"})})]}),eI=({answer:e})=>s.jsxs("div",{className:"flex flex-row font-mono border-solid border border-black p-5",children:[s.jsx("div",{className:"font-bold",children:"A: "}),e]});function tI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 0C229.232 0 0 229.232 0 512c0 282.784 229.232 512 512 512 282.784 0 512-229.216 512-512C1024 229.232 794.784 0 512 0zm0 961.008c-247.024 0-448-201.984-448-449.01 0-247.024 200.976-448 448-448s448 200.977 448 448-200.976 449.01-448 449.01zm32-462V192.002c0-17.664-14.336-32-32-32s-32 14.336-32 32v320c0 9.056 3.792 17.2 9.856 23.007.529.624.96 1.296 1.537 1.887l158.384 158.4c12.496 12.481 32.752 12.481 45.248 0 12.496-12.496 12.496-32.768 0-45.264z"}}]})(e)}function nI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M990.848 696.304V438.16l16.096-8.496c10.464-5.44 17.055-16.225 17.183-28.032.128-11.777-6.256-22.689-16.592-28.368l-481.44-257.6c-9.631-5.28-21.28-5.249-30.976.095l-478.8 257.92C6.126 379.36-.177 390.143-.113 401.84s6.496 22.4 16.817 27.97l210.384 111.983c-2.64 4.656-4.272 9.968-4.272 15.696v270.784c0 9.12 3.905 17.84 10.72 23.904 6.945 6.16 73.441 60.096 276.753 60.096 202.592 0 270.88-50.976 278-56.784 7.44-6.064 11.744-15.152 11.744-24.784V552.976c0-4.496-.944-8.768-2.608-12.64l129.424-68.369V696.48c-18.976 11.104-31.84 31.472-31.84 55.024 0 35.344 28.656 64 64 64s64-28.656 64-64c0-23.697-13.04-44.145-32.16-55.2zM736.031 812.368c-25.152 12.096-91.712 35.904-225.744 35.904-134.88 0-199.936-25.344-223.472-37.536V573.6l207.808 110.624a31.896 31.896 0 0 0 15.184 3.84 31.675 31.675 0 0 0 14.816-3.664l211.408-111.664v239.632zM510.063 619.81l-411.6-218.561 412.32-220.976 413.6 220.336z"}}]})(e)}function rI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M295.664 732.448c6.256 6.256 14.432 9.376 22.624 9.376s16.368-3.12 22.624-9.376L728.576 341.76c12.496-12.496 12.496-32.752 0-45.248s-32.752-12.496-45.248 0L295.664 687.2c-12.512 12.496-12.512 32.752 0 45.248zm180.208-68.143c10.576 46.624-.834 92.4-36.866 128.432L309.758 917.985c-27.2 27.184-63.36 42.16-101.824 42.16s-74.624-14.976-101.808-42.16c-56.144-56.16-56.144-147.536-.336-203.344l126.256-130.256c27.2-27.184 63.36-42.176 101.824-42.176 13.152 0 25.824 2.352 38.176 5.743L421.998 498c-27.872-13.024-57.952-19.792-88.128-19.792-53.233 0-106.465 20.32-147.073 60.929L60.86 669.073c-81.216 81.216-81.216 212.912 0 294.16 40.608 40.624 93.84 60.912 147.073 60.912s106.465-20.288 147.073-60.912L483.95 838.289c62.128-62.128 75.568-148.72 42.656-224.72zM963.134 60.784C922.51 20.176 869.294-.145 816.077-.145c-53.248 0-106.496 20.32-147.088 60.929L540.061 185.728c-64.4 64.4-77.536 160.465-39.792 238.033l49.664-49.648c-14.704-49.104-3.408-104.336 35.056-142.832l129.248-125.248c27.216-27.184 63.344-42.176 101.84-42.176 38.431 0 74.624 14.992 101.808 42.176 56.128 56.16 56.128 147.536.32 203.344L788.957 438.625c-27.183 27.183-63.376 42.159-101.808 42.159-9.808 0-18.431.992-27.84-.928l-50.975 51.008c25.471 10.592 51.632 13.935 78.815 13.935 53.216 0 106.432-20.303 147.056-60.927L963.15 354.928c81.2-81.216 81.2-212.896-.015-294.144z"}}]})(e)}function aI(e){return Lt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14.942 12.57l-4.942-8.235v-3.335h0.5c0.275 0 0.5-0.225 0.5-0.5s-0.225-0.5-0.5-0.5h-5c-0.275 0-0.5 0.225-0.5 0.5s0.225 0.5 0.5 0.5h0.5v3.335l-4.942 8.235c-1.132 1.886-0.258 3.43 1.942 3.43h10c2.2 0 3.074-1.543 1.942-3.43zM3.766 10l3.234-5.39v-3.61h2v3.61l3.234 5.39h-8.468z"}}]})(e)}function iI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m4 6 8-4 8 4"}},{tag:"path",attr:{d:"m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2"}},{tag:"path",attr:{d:"M14 22v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v4"}},{tag:"path",attr:{d:"M18 5v17"}},{tag:"path",attr:{d:"M6 5v17"}},{tag:"circle",attr:{cx:"12",cy:"9",r:"2"}}]})(e)}function gT(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]})(e)}function ET(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]})(e)}function oI(e){return Lt({tag:"svg",attr:{t:"1569683753031",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8c-3.1-3.1-8.2-3.1-11.3 0L517 485.3l-86.1-86.2c-3.1-3.1-8.2-3.1-11.3 0L275.3 543.4c-3.1 3.1-3.1 8.2 0 11.3l36.8 36.8z"}},{tag:"path",attr:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1c-3.7 2.4-4.7 7.3-2.3 11l30.3 47.2v0.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-0.1l30.3-47.2c2.4-3.7 1.3-8.6-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32z m-40 512H160V232h704v440z"}}]})(e)}function sI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"}},{tag:"path",attr:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"}}]})(e)}const lI=e=>{const[t,n]=N.useState(2);return s.jsxs("div",{className:"w-10/12 py-5",children:[s.jsxs("div",{className:"flex lg:flex-row flex-col",children:[s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-tl-lg shadow-md shadow-black "+(t==1?"bg-black text-white":"bg-white border-2 border-black hover:bg-black hover:text-white"),onClick:()=>{n(1)},title:"Course Information",children:[s.jsx(nI,{}),s.jsx("div",{className:"pl-5",children:"Course Information"})]}),s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-none shadow-md shadow-black "+(t==2?"bg-black text-white":"bg-white border-2 border-black border-x-0 hover:bg-black hover:text-white"),onClick:()=>{n(2)},title:"Upcoming Deadlines",children:[s.jsx(tI,{}),s.jsx("div",{className:"pl-5",children:"Upcoming Deadlines"})]}),s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-tr-lg shadow-md shadow-black "+(t==3?"bg-black text-white":"bg-white border-2 border-black hover:bg-black hover:text-white"),onClick:()=>{n(3)},title:"Useful Links",children:[s.jsx(rI,{}),s.jsx("div",{className:"pl-5",children:"Useful Links"})]})]}),t==1&&s.jsx(cI,{}),t==2&&s.jsx(dI,{assignments:e}),t==3&&s.jsx(uI,{})]})};function cI(){return s.jsxs("div",{className:"p-5 border border-black",children:[s.jsxs("div",{className:"px-4 sm:px-0",children:[s.jsx("h3",{className:"text-md font-mono font-semibold leading-7 text-black",children:"CSCI-13500 SUMMER 2023"}),s.jsx("p",{className:"mt-1 text-sm font-mono leading-4 text-gray-900",children:"This course is an intensive introduction to problem-solving and programming. It is not specifically a course in the C++ programming language. It uses C++ to implement the concepts presented in class since one cannot learn how to program without learning a programming language! The details of C++ will sometimes be a distraction from learning essential concepts, but the only way to learn to program is to program. The main objective of this course is to learn how to analyze problems, develop, and implement their solutions using a programming language."})]}),s.jsx("div",{className:"mt-6 border-t border-gray-200",children:s.jsxs("dl",{className:"divide-y divide-gray-200",children:[s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Instructor"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Sadab Hafiz"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Location"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Hunter College North 1001C"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Email"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"sadab.hafiz52@myhunter.cuny.edu"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Lecture hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["Monday 11:40 am - 2:00 pm",s.jsx("br",{}),"Wednesday 11:40 am - 2:00 pm"]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Recitation hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["Monday 2:30 pm - 4:00 pm",s.jsx("br",{}),"Wednesday 2:30 pm - 4:00 pm"]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"UTA"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Ryan Vaz"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Tutoring hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["In-Person (HN1001C):",s.jsx("br",{}),s.jsx("p",{className:"indent-10",children:"Monday 4:00 pm - 5:00 pm"}),s.jsx("p",{className:"indent-10",children:"Wednesday 4:00 pm - 5:00 pm"}),"Online (",s.jsx("a",{className:"text-blue-700 font-bold",target:"_blank",href:"https://us02web.zoom.us/j/88367352955?pwd=ZFAxVUhESTZVSVp5TkZjY3NwMG9XZz09",children:"Zoom"}),"):",s.jsx("br",{}),s.jsx("p",{className:"indent-10",children:"Friday 2:00 pm - 4:00 pm"})]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Office hours"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"All questions will be answered in-person during recitation. Additional office hours are offered as needed via appointment. Please don't email UTAs outside of their work hours. Email me instead if you have any questions that haven't been answered during class."})]})]})})]})}function dI({assignments:e}){return s.jsx("div",{className:"p-5 border border-black",children:s.jsx("div",{className:"grid lg:grid-cols-3 gap-4",children:e.assignments.map((t,n)=>s.jsxs("div",{className:"py-5 border-2 border-red-500 font-mono text-red-700 flex flex-col justify-center items-center text-center",children:[t.type=="lab"&&s.jsx(aI,{size:70}),t.type=="classwork/homework"&&s.jsx(iI,{size:70}),t.type=="project"&&s.jsx(oI,{size:70}),t.type=="exam"&&s.jsx(sI,{size:70}),s.jsx("br",{}),t.name,s.jsx("br",{}),t.deadline]},n))})})}function uI(){return s.jsxs("div",{className:"p-5 border font-mono font-semibold text-blue-700 border-black flex flex-col justify-center items-center text-center divide-y divide-gray-100",children:[s.jsx("a",{href:"https://hunter.cuny.edu/students/registration/academic-calendar/",target:"_blank",children:"Academic Calander"}),s.jsx("a",{href:"https://a-nikolaev.github.io/cs136/linux/",target:"_blank",children:"Basic Unix Terminal Commands"}),s.jsx("a",{href:"https://okunhardt.github.io/documents/Installing_WSL.pdf",target:"_blank",children:"Linux Terminal on Windows"}),s.jsx("a",{href:"https://code.visualstudio.com/docs/cpp/config-mingw",target:"_blank",children:"Windows minGW compiler setup with VSCode"}),s.jsx("a",{href:"https://maryash.github.io/135/worked_examples/style_guide.html",target:"_blank",children:"Coding Style Guide"}),s.jsx("a",{href:"https://a-nikolaev.github.io/cs136/vim/",target:"_blank",children:"Setting up Vim text-editor"})]})}const _I=[{question:"Is attendance mandatory?",answer:"Attendance is not mandatory. However, since this is an 8-week course, missing a single day means missing multiple days worth of material. In addition, you are responsible for all the classwork that you will potentially miss."},{question:"If I have a Windows computer, do I need to buy a Mac/Linux?",answer:"Don't buy any apple products just for this course!!! I or Ryan will help you set up the environment if you need to work on a Windows machine."},{question:"What do I call you?",answer:"Call me Sadab."},{question:"Do I need the textbook?",answer:"You don't need it for this course. If you are interested, let me know before you purchase it."},{question:"Do I need to stay for the entirety of the recitation?",answer:"If you finish your lab and don't have any questions, feel free to leave. Make sure you take the quiz tho."},{question:"I wasn't added to Gradescope. What do I do?",answer:"Send me an email with your first name, last name, EMPLID, and preferred email address."},{question:"My email on Gradescope is wrong. What do I do?",answer:"Send me an email letting me know your preferred email address."},{question:"When will assignment X be available on gradescope?",answer:"Lab assignments are made available at the start of each recitation. You are encouraged to work ahead since the lab links will be available before the labs are available on Gradescope. Projects, homeworks, and classworks will be available on gradescope as they are announced in class."},{question:"Do I need to pass the final in order to pass the class?",answer:"Nope. You can pass the class even if you fail the final."},{question:"Can I bring a cheat sheet for the exams?",answer:"No. A cheat sheet will be provided to you."}],mI=[{name:"Homework 7",deadline:"07/23/2023 11:59 PM",type:"classwork/homework"},{name:"Lab 13",deadline:"07/24/2023 11:00 AM",type:"lab"},{name:"Project 2 Task B",deadline:"07/24/2023 11:00 AM",type:"project"},{name:"FINAL EXAM",deadline:"07/26/2023 11:40 AM",type:"exam"},{name:"Teacher Evaluations",deadline:"07/26/2023 11:59 PM",type:"exam"},{name:"Project 3 - Extra Credit",deadline:"07/26/2023 11:59 PM",type:"project"}],pI=[[{name:"1A",due:"06/11/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2927385/",prompt:"Create a C++ program that gets three names from the user and prints them out to the screen."},{name:"1B",due:"06/11/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2927391/",prompt:"Create a C++ program that asks the user for the number of gallons, the fuel efficiency in mpg, and the price of gas per gallon. Use this information to calculate how far the car can go (distance) and how much it costs to go 100 miles. Print these values to the screen."}],[{name:"2A",due:"06/18/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2936139/",prompt:`Write a program that asks the user for a word and prints out the word with each character separated by a newline. +`));let _=d.props,m=typeof(_==null?void 0:_.className)=="function"?(...f)=>Fu(_==null?void 0:_.className(...f),l.className):Fu(_==null?void 0:_.className,l.className),E=m?{className:m}:{};return N.cloneElement(d,Object.assign({},Xh(d.props,Cp(rs(l,["ref"]))),u,c,VC(d.ref,c.ref),E))}return N.createElement(a,Object.assign({},rs(l,["ref"]),a!==N.Fragment&&c,a!==N.Fragment&&u),d)}function VC(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Xh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...i){let o=n[r];for(let l of o){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;l(a,...i)}}});return t}function Fe(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Cp(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function rs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Zh(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&jC(n)?!1:r}function jC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let zC="div";var Xi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xi||{});function $C(e,t){let{features:n=1,...r}=e,a={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return qe({ourProps:a,theirProps:r,slot:{},defaultTag:zC,name:"Hidden"})}let Bu=Fe($C),W_=N.createContext(null);W_.displayName="OpenClosedContext";var Me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Me||{});function To(){return N.useContext(W_)}function Jh({value:e,children:t}){return B.createElement(W_.Provider,{value:e},t)}var Ae=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ae||{});function Q_(e,t){let n=N.useRef([]),r=ee(e);N.useEffect(()=>{let a=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let l=r(t,a);return n.current=t,l}},[r,...t])}function yp(e){return[e.screenX,e.screenY]}function WC(){let e=N.useRef([-1,-1]);return{wasMoved(t){let n=yp(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=yp(t)}}}function QC(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var Jr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Jr||{});function KC(){let e=N.useRef(0);return Wh("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ha(){let e=N.useRef(!1);return ke(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mr(...e){return N.useMemo(()=>ho(...e),[...e])}function eT(e,t,n,r){let a=Vt(n);N.useEffect(()=>{e=e??window;function i(o){a.current(o)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function XC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function tT(e){let t=ee(e),n=N.useRef(!1);N.useEffect(()=>(n.current=!1,()=>{n.current=!0,bo(()=>{n.current&&t()})}),[t])}function nT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let ZC="div";var rT=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(rT||{});function JC(e,t){let n=N.useRef(null),r=We(n,t),{initialFocus:a,containers:i,features:o=30,...l}=e;Lr()||(o=1);let c=Mr(n);ny({ownerDocument:c},!!(o&16));let d=ry({ownerDocument:c,container:n,initialFocus:a},!!(o&2));ay({ownerDocument:c,container:n,containers:i,previousActiveElement:d},!!(o&8));let u=KC(),_=ee(S=>{let h=n.current;h&&(g=>g())(()=>{De(u.current,{[Jr.Forwards]:()=>{ua(h,Ft.First,{skipElements:[S.relatedTarget]})},[Jr.Backwards]:()=>{ua(h,Ft.Last,{skipElements:[S.relatedTarget]})}})})}),m=Ya(),E=N.useRef(!1),f={ref:r,onKeyDown(S){S.key=="Tab"&&(E.current=!0,m.requestAnimationFrame(()=>{E.current=!1}))},onBlur(S){let h=nT(i);n.current instanceof HTMLElement&&h.add(n.current);let g=S.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(aT(h,g)||(E.current?ua(n.current,De(u.current,{[Jr.Forwards]:()=>Ft.Next,[Jr.Backwards]:()=>Ft.Previous})|Ft.WrapAround,{relativeTo:S.target}):S.target instanceof HTMLElement&&hn(S.target)))}};return B.createElement(B.Fragment,null,!!(o&4)&&B.createElement(Bu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:Xi.Focusable}),qe({ourProps:f,theirProps:l,defaultTag:ZC,name:"FocusTrap"}),!!(o&4)&&B.createElement(Bu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:Xi.Focusable}))}let ey=Fe(JC),$r=Object.assign(ey,{features:rT}),sn=[];XC(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&sn[0]!==t.target&&(sn.unshift(t.target),sn=sn.filter(n=>n!=null&&n.isConnected),sn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ty(e=!0){let t=N.useRef(sn.slice());return Q_(([n],[r])=>{r===!0&&n===!1&&bo(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=sn.slice())},[e,sn,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function ny({ownerDocument:e},t){let n=ty(t);Q_(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&hn(n())},[t]),tT(()=>{t&&hn(n())})}function ry({ownerDocument:e,container:t,initialFocus:n},r){let a=N.useRef(null),i=Ha();return Q_(()=>{if(!r)return;let o=t.current;o&&bo(()=>{if(!i.current)return;let l=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===l){a.current=l;return}}else if(o.contains(l)){a.current=l;return}n!=null&&n.current?hn(n.current):ua(o,Ft.First)===Vh.Error&&console.warn("There are no focusable elements inside the "),a.current=e==null?void 0:e.activeElement})},[r]),a}function ay({ownerDocument:e,container:t,containers:n,previousActiveElement:r},a){let i=Ha();eT(e==null?void 0:e.defaultView,"focus",o=>{if(!a||!i.current)return;let l=nT(n);t.current instanceof HTMLElement&&l.add(t.current);let c=r.current;if(!c)return;let d=o.target;d&&d instanceof HTMLElement?aT(l,d)?(r.current=d,hn(d)):(o.preventDefault(),o.stopPropagation(),hn(c)):hn(r.current)},!0)}function aT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let iT=N.createContext(!1);function iy(){return N.useContext(iT)}function Gu(e){return B.createElement(iT.Provider,{value:e.force},e.children)}function oy(e){let t=iy(),n=N.useContext(oT),r=Mr(e),[a,i]=N.useState(()=>{if(!t&&n!==null||qt.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return N.useEffect(()=>{a!==null&&(r!=null&&r.body.contains(a)||r==null||r.body.appendChild(a))},[a,r]),N.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),a}let sy=N.Fragment;function ly(e,t){let n=e,r=N.useRef(null),a=We(GC(u=>{r.current=u}),t),i=Mr(r),o=oy(r),[l]=N.useState(()=>{var u;return qt.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),c=N.useContext(Yu),d=Lr();return ke(()=>{!o||!l||o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l))},[o,l]),ke(()=>{if(l&&c)return c.register(l)},[c,l]),tT(()=>{var u;!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&((u=o.parentElement)==null||u.removeChild(o)))}),d?!o||!l?null:qh.createPortal(qe({ourProps:{ref:a},theirProps:n,defaultTag:sy,name:"Portal"}),l):null}let cy=N.Fragment,oT=N.createContext(null);function dy(e,t){let{target:n,...r}=e,a={ref:We(t)};return B.createElement(oT.Provider,{value:n},qe({ourProps:a,theirProps:r,defaultTag:cy,name:"Popover.Group"}))}let Yu=N.createContext(null);function uy(){let e=N.useContext(Yu),t=N.useRef([]),n=ee(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=ee(i=>{let o=t.current.indexOf(i);o!==-1&&t.current.splice(o,1),e&&e.unregister(i)}),a=N.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,N.useMemo(()=>function({children:i}){return B.createElement(Yu.Provider,{value:a},i)},[a])]}let _y=Fe(ly),my=Fe(dy),Hu=Object.assign(_y,{Group:my}),sT=N.createContext(null);function lT(){let e=N.useContext(sT);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lT),t}return e}function py(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let r=ee(i=>(t(o=>[...o,i]),()=>t(o=>{let l=o.slice(),c=l.indexOf(i);return c!==-1&&l.splice(c,1),l}))),a=N.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return B.createElement(sT.Provider,{value:a},n.children)},[t])]}let gy="p";function Ey(e,t){let n=Kt(),{id:r=`headlessui-description-${n}`,...a}=e,i=lT(),o=We(t);ke(()=>i.register(r),[r,i.register]);let l={ref:o,...i.props,id:r};return qe({ourProps:l,theirProps:a,slot:i.slot||{},defaultTag:gy,name:i.name||"Description"})}let fy=Fe(Ey),Sy=Object.assign(fy,{}),K_=N.createContext(()=>{});K_.displayName="StackContext";var qu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(qu||{});function by(){return N.useContext(K_)}function hy({children:e,onUpdate:t,type:n,element:r,enabled:a}){let i=by(),o=ee((...l)=>{t==null||t(...l),i(...l)});return ke(()=>{let l=a===void 0||a===!0;return l&&o(0,n,r),()=>{l&&o(1,n,r)}},[o,n,r,a]),B.createElement(K_.Provider,{value:o},e)}function Ty(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Ny=typeof Object.is=="function"?Object.is:Ty,{useState:vy,useEffect:Ry,useLayoutEffect:Cy,useDebugValue:yy}=ma;function Oy(e,t,n){const r=t(),[{inst:a},i]=vy({inst:{value:r,getSnapshot:t}});return Cy(()=>{a.value=r,a.getSnapshot=t,as(a)&&i({inst:a})},[e,r,t]),Ry(()=>(as(a)&&i({inst:a}),e(()=>{as(a)&&i({inst:a})})),[e]),yy(r),r}function as(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Ny(n,r)}catch{return!0}}function Iy(e,t,n){return t()}const Ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xy=!Ay,Dy=xy?Iy:Oy,wy="useSyncExternalStore"in ma?(e=>e.useSyncExternalStore)(ma):Dy;function Ly(e){return wy(e.subscribe,e.getSnapshot,e.getSnapshot)}function My(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(a){return r.add(a),()=>r.delete(a)},dispatch(a,...i){let o=t[a].call(n,...i);o&&(n=o,r.forEach(l=>l()))}}}function Py(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,a=r.clientWidth-r.offsetWidth,i=e-a;n.style(r,"paddingRight",`${i}px`)}}}function ky(){if(!QC())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function a(o){return r.containers.flatMap(l=>l()).some(l=>l.contains(o))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let l=o.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=t.querySelector(c);d&&!a(d)&&(i=d)}catch{}},!0),n.addEventListener(t,"touchmove",o=>{o.target instanceof HTMLElement&&!a(o.target)&&o.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function Uy(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Fy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Fn=My(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Fy(n)},a=[ky(),Py(),Uy()];a.forEach(({before:i})=>i==null?void 0:i(r)),a.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Fn.subscribe(()=>{let e=Fn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",a=n.count!==0;(a&&!r||!a&&r)&&Fn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Fn.dispatch("TEARDOWN",n)}});function By(e,t,n){let r=Ly(Fn),a=e?r.get(e):void 0,i=a?a.count>0:!1;return ke(()=>{if(!(!e||!t))return Fn.dispatch("PUSH",e,n),()=>Fn.dispatch("POP",e,n)},[t,e]),i}let is=new Map,Wr=new Map;function Op(e,t=!0){ke(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function a(){var o;if(!r)return;let l=(o=Wr.get(r))!=null?o:1;if(l===1?Wr.delete(r):Wr.set(r,l-1),l!==1)return;let c=is.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,is.delete(r))}let i=(n=Wr.get(r))!=null?n:0;return Wr.set(r,i+1),i!==0||(is.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),a},[e,t])}function Gy({defaultContainers:e=[],portals:t}={}){let n=N.useRef(null),r=Mr(n),a=ee(()=>{var i;let o=[];for(let l of e)l!==null&&(l instanceof HTMLElement?o.push(l):"current"in l&&l.current instanceof HTMLElement&&o.push(l.current));if(t!=null&&t.current)for(let l of t.current)o.push(l);for(let l of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(n.current)||o.some(c=>l.contains(c))||o.push(l));return o});return{resolveContainers:a,contains:ee(i=>a().some(o=>o.contains(i))),mainTreeNodeRef:n,MainTreeNode:N.useMemo(()=>function(){return B.createElement(Bu,{features:Xi.Hidden,ref:n})},[n])}}var Yy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yy||{}),Hy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Hy||{});let qy={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Zi=N.createContext(null);Zi.displayName="DialogContext";function qa(e){let t=N.useContext(Zi);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qa),n}return t}function Vy(e,t,n=()=>[document.body]){By(e,t,r=>{var a;return{containers:[...(a=r.containers)!=null?a:[],n]}})}function jy(e,t){return De(t.type,qy,e,t)}let zy="div",$y=Ar.RenderStrategy|Ar.Static;function Wy(e,t){var n;let r=Kt(),{id:a=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:l,__demoMode:c=!1,...d}=e,[u,_]=N.useState(0),m=To();i===void 0&&m!==null&&(i=(m&Me.Open)===Me.Open);let E=N.useRef(null),f=We(E,t),S=Mr(E),h=e.hasOwnProperty("open")||m!==null,g=e.hasOwnProperty("onClose");if(!h&&!g)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!h)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!g)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let p=i?0:1,[b,T]=N.useReducer(jy,{titleId:null,descriptionId:null,panelRef:N.createRef()}),R=ee(()=>o(!1)),y=ee(re=>T({type:0,id:re})),C=Lr()?c?!1:p===0:!1,O=u>1,L=N.useContext(Zi)!==null,[x,H]=uy(),{resolveContainers:P,mainTreeNodeRef:$,MainTreeNode:ce}=Gy({portals:x,defaultContainers:[(n=b.panelRef.current)!=null?n:E.current]}),X=O?"parent":"leaf",Q=m!==null?(m&Me.Closing)===Me.Closing:!1,K=(()=>L||Q?!1:C)(),A=N.useCallback(()=>{var re,se;return(se=Array.from((re=S==null?void 0:S.querySelectorAll("body > *"))!=null?re:[]).find(oe=>oe.id==="headlessui-portal-root"?!1:oe.contains($.current)&&oe instanceof HTMLElement))!=null?se:null},[$]);Op(A,K);let M=(()=>O?!0:C)(),k=N.useCallback(()=>{var re,se;return(se=Array.from((re=S==null?void 0:S.querySelectorAll("[data-headlessui-portal]"))!=null?re:[]).find(oe=>oe.contains($.current)&&oe instanceof HTMLElement))!=null?se:null},[$]);Op(k,M);let W=(()=>!(!C||O))();Qh(P,R,W);let ie=(()=>!(O||p!==0))();eT(S==null?void 0:S.defaultView,"keydown",re=>{ie&&(re.defaultPrevented||re.key===Ae.Escape&&(re.preventDefault(),re.stopPropagation(),R()))});let I=(()=>!(Q||p!==0||L))();Vy(S,I,P),N.useEffect(()=>{if(p!==0||!E.current)return;let re=new ResizeObserver(se=>{for(let oe of se){let be=oe.target.getBoundingClientRect();be.x===0&&be.y===0&&be.width===0&&be.height===0&&R()}});return re.observe(E.current),()=>re.disconnect()},[p,E,R]);let[w,z]=py(),j=N.useMemo(()=>[{dialogState:p,close:R,setTitleId:y},b],[p,b,R,y]),te=N.useMemo(()=>({open:p===0}),[p]),Ce={ref:f,id:a,role:"dialog","aria-modal":p===0?!0:void 0,"aria-labelledby":b.titleId,"aria-describedby":w};return B.createElement(hy,{type:"Dialog",enabled:p===0,element:E,onUpdate:ee((re,se)=>{se==="Dialog"&&De(re,{[qu.Add]:()=>_(oe=>oe+1),[qu.Remove]:()=>_(oe=>oe-1)})})},B.createElement(Gu,{force:!0},B.createElement(Hu,null,B.createElement(Zi.Provider,{value:j},B.createElement(Hu.Group,{target:E},B.createElement(Gu,{force:!1},B.createElement(z,{slot:te,name:"Dialog.Description"},B.createElement($r,{initialFocus:l,containers:P,features:C?De(X,{parent:$r.features.RestoreFocus,leaf:$r.features.All&~$r.features.FocusLock}):$r.features.None},B.createElement(H,null,qe({ourProps:Ce,theirProps:d,slot:te,defaultTag:zy,features:$y,visible:p===0,name:"Dialog"}))))))))),B.createElement(ce,null))}let Qy="div";function Ky(e,t){let n=Kt(),{id:r=`headlessui-dialog-overlay-${n}`,...a}=e,[{dialogState:i,close:o}]=qa("Dialog.Overlay"),l=We(t),c=ee(u=>{if(u.target===u.currentTarget){if(Zh(u.currentTarget))return u.preventDefault();u.preventDefault(),u.stopPropagation(),o()}}),d=N.useMemo(()=>({open:i===0}),[i]);return qe({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:c},theirProps:a,slot:d,defaultTag:Qy,name:"Dialog.Overlay"})}let Xy="div";function Zy(e,t){let n=Kt(),{id:r=`headlessui-dialog-backdrop-${n}`,...a}=e,[{dialogState:i},o]=qa("Dialog.Backdrop"),l=We(t);N.useEffect(()=>{if(o.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[o.panelRef]);let c=N.useMemo(()=>({open:i===0}),[i]);return B.createElement(Gu,{force:!0},B.createElement(Hu,null,qe({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:a,slot:c,defaultTag:Xy,name:"Dialog.Backdrop"})))}let Jy="div";function eO(e,t){let n=Kt(),{id:r=`headlessui-dialog-panel-${n}`,...a}=e,[{dialogState:i},o]=qa("Dialog.Panel"),l=We(t,o.panelRef),c=N.useMemo(()=>({open:i===0}),[i]),d=ee(u=>{u.stopPropagation()});return qe({ourProps:{ref:l,id:r,onClick:d},theirProps:a,slot:c,defaultTag:Jy,name:"Dialog.Panel"})}let tO="h2";function nO(e,t){let n=Kt(),{id:r=`headlessui-dialog-title-${n}`,...a}=e,[{dialogState:i,setTitleId:o}]=qa("Dialog.Title"),l=We(t);N.useEffect(()=>(o(r),()=>o(null)),[r,o]);let c=N.useMemo(()=>({open:i===0}),[i]);return qe({ourProps:{ref:l,id:r},theirProps:a,slot:c,defaultTag:tO,name:"Dialog.Title"})}let rO=Fe(Wy),aO=Fe(Zy),iO=Fe(eO),oO=Fe(Ky),sO=Fe(nO),os=Object.assign(rO,{Backdrop:aO,Panel:iO,Overlay:oO,Title:sO,Description:Sy}),Ip=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ap(e){var t,n;let r=(t=e.innerText)!=null?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return r;let i=!1;for(let l of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let o=i?(n=a.innerText)!=null?n:"":r;return Ip.test(o)&&(o=o.replace(Ip,"")),o}function lO(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(a=>{let i=document.getElementById(a);if(i){let o=i.getAttribute("aria-label");return typeof o=="string"?o.trim():Ap(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ap(e).trim()}function cO(e){let t=N.useRef(""),n=N.useRef("");return ee(()=>{let r=e.current;if(!r)return"";let a=r.innerText;if(t.current===a)return n.current;let i=lO(r).trim().toLowerCase();return t.current=a,n.current=i,i})}var dO=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dO||{}),uO=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(uO||{}),_O=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(_O||{});function ss(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=$h(t(e.items.slice()),i=>i.dataRef.current.domRef.current),a=n?r.indexOf(n):null;return a===-1&&(a=null),{items:r,activeItemIndex:a}}let mO={[1](e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},[0](e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},[2]:(e,t)=>{var n;let r=ss(e),a=qC(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:a,activationTrigger:(n=t.trigger)!=null?n:1}},[3]:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),a=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var l;return((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!o.dataRef.current.disabled}),i=a?e.items.indexOf(a):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},[4](e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},[5]:(e,t)=>{let n=ss(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},[6]:(e,t)=>{let n=ss(e,r=>{let a=r.findIndex(i=>i.id===t.id);return a!==-1&&r.splice(a,1),r});return{...e,...n,activationTrigger:1}}},X_=N.createContext(null);X_.displayName="MenuContext";function No(e){let t=N.useContext(X_);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,No),n}return t}function pO(e,t){return De(t.type,mO,e,t)}let gO=N.Fragment;function EO(e,t){let{__demoMode:n=!1,...r}=e,a=N.useReducer(pO,{__demoMode:n,menuState:n?0:1,buttonRef:N.createRef(),itemsRef:N.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:o,buttonRef:l},c]=a,d=We(t);Qh([l,o],(E,f)=>{var S;c({type:1}),$_(f,z_.Loose)||(E.preventDefault(),(S=l.current)==null||S.focus())},i===0);let u=ee(()=>{c({type:1})}),_=N.useMemo(()=>({open:i===0,close:u}),[i,u]),m={ref:d};return B.createElement(X_.Provider,{value:a},B.createElement(Jh,{value:De(i,{[0]:Me.Open,[1]:Me.Closed})},qe({ourProps:m,theirProps:r,slot:_,defaultTag:gO,name:"Menu"})))}let fO="button";function SO(e,t){var n;let r=Kt(),{id:a=`headlessui-menu-button-${r}`,...i}=e,[o,l]=No("Menu.Button"),c=We(o.buttonRef,t),d=Ya(),u=ee(S=>{switch(S.key){case Ae.Space:case Ae.Enter:case Ae.ArrowDown:S.preventDefault(),S.stopPropagation(),l({type:0}),d.nextFrame(()=>l({type:2,focus:St.First}));break;case Ae.ArrowUp:S.preventDefault(),S.stopPropagation(),l({type:0}),d.nextFrame(()=>l({type:2,focus:St.Last}));break}}),_=ee(S=>{switch(S.key){case Ae.Space:S.preventDefault();break}}),m=ee(S=>{if(Zh(S.currentTarget))return S.preventDefault();e.disabled||(o.menuState===0?(l({type:1}),d.nextFrame(()=>{var h;return(h=o.buttonRef.current)==null?void 0:h.focus({preventScroll:!0})})):(S.preventDefault(),l({type:0})))}),E=N.useMemo(()=>({open:o.menuState===0}),[o]),f={ref:c,id:a,type:BC(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":(n=o.itemsRef.current)==null?void 0:n.id,"aria-expanded":e.disabled?void 0:o.menuState===0,onKeyDown:u,onKeyUp:_,onClick:m};return qe({ourProps:f,theirProps:i,slot:E,defaultTag:fO,name:"Menu.Button"})}let bO="div",hO=Ar.RenderStrategy|Ar.Static;function TO(e,t){var n,r;let a=Kt(),{id:i=`headlessui-menu-items-${a}`,...o}=e,[l,c]=No("Menu.Items"),d=We(l.itemsRef,t),u=Mr(l.itemsRef),_=Ya(),m=To(),E=(()=>m!==null?(m&Me.Open)===Me.Open:l.menuState===0)();N.useEffect(()=>{let p=l.itemsRef.current;p&&l.menuState===0&&p!==(u==null?void 0:u.activeElement)&&p.focus({preventScroll:!0})},[l.menuState,l.itemsRef,u]),YC({container:l.itemsRef.current,enabled:l.menuState===0,accept(p){return p.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let f=ee(p=>{var b,T;switch(_.dispose(),p.key){case Ae.Space:if(l.searchQuery!=="")return p.preventDefault(),p.stopPropagation(),c({type:3,value:p.key});case Ae.Enter:if(p.preventDefault(),p.stopPropagation(),c({type:1}),l.activeItemIndex!==null){let{dataRef:R}=l.items[l.activeItemIndex];(T=(b=R.current)==null?void 0:b.domRef.current)==null||T.click()}zh(l.buttonRef.current);break;case Ae.ArrowDown:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Next});case Ae.ArrowUp:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Previous});case Ae.Home:case Ae.PageUp:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.First});case Ae.End:case Ae.PageDown:return p.preventDefault(),p.stopPropagation(),c({type:2,focus:St.Last});case Ae.Escape:p.preventDefault(),p.stopPropagation(),c({type:1}),wt().nextFrame(()=>{var R;return(R=l.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})});break;case Ae.Tab:p.preventDefault(),p.stopPropagation(),c({type:1}),wt().nextFrame(()=>{FC(l.buttonRef.current,p.shiftKey?Ft.Previous:Ft.Next)});break;default:p.key.length===1&&(c({type:3,value:p.key}),_.setTimeout(()=>c({type:4}),350));break}}),S=ee(p=>{switch(p.key){case Ae.Space:p.preventDefault();break}}),h=N.useMemo(()=>({open:l.menuState===0}),[l]),g={"aria-activedescendant":l.activeItemIndex===null||(n=l.items[l.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=l.buttonRef.current)==null?void 0:r.id,id:i,onKeyDown:f,onKeyUp:S,role:"menu",tabIndex:0,ref:d};return qe({ourProps:g,theirProps:o,slot:h,defaultTag:bO,features:hO,visible:E,name:"Menu.Items"})}let NO=N.Fragment;function vO(e,t){let n=Kt(),{id:r=`headlessui-menu-item-${n}`,disabled:a=!1,...i}=e,[o,l]=No("Menu.Item"),c=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,d=N.useRef(null),u=We(t,d);ke(()=>{if(o.__demoMode||o.menuState!==0||!c||o.activationTrigger===0)return;let R=wt();return R.requestAnimationFrame(()=>{var y,C;(C=(y=d.current)==null?void 0:y.scrollIntoView)==null||C.call(y,{block:"nearest"})}),R.dispose},[o.__demoMode,d,c,o.menuState,o.activationTrigger,o.activeItemIndex]);let _=cO(d),m=N.useRef({disabled:a,domRef:d,get textValue(){return _()}});ke(()=>{m.current.disabled=a},[m,a]),ke(()=>(l({type:5,id:r,dataRef:m}),()=>l({type:6,id:r})),[m,r]);let E=ee(()=>{l({type:1})}),f=ee(R=>{if(a)return R.preventDefault();l({type:1}),zh(o.buttonRef.current)}),S=ee(()=>{if(a)return l({type:2,focus:St.Nothing});l({type:2,focus:St.Specific,id:r})}),h=WC(),g=ee(R=>h.update(R)),p=ee(R=>{h.wasMoved(R)&&(a||c||l({type:2,focus:St.Specific,id:r,trigger:0}))}),b=ee(R=>{h.wasMoved(R)&&(a||c&&l({type:2,focus:St.Nothing}))}),T=N.useMemo(()=>({active:c,disabled:a,close:E}),[c,a,E]);return qe({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:a===!0?void 0:-1,"aria-disabled":a===!0?!0:void 0,disabled:void 0,onClick:f,onFocus:S,onPointerEnter:g,onMouseEnter:g,onPointerMove:p,onMouseMove:p,onPointerLeave:b,onMouseLeave:b},theirProps:i,slot:T,defaultTag:NO,name:"Menu.Item"})}let RO=Fe(EO),CO=Fe(SO),yO=Fe(TO),OO=Fe(vO),yt=Object.assign(RO,{Button:CO,Items:yO,Item:OO});function IO(e=0){let[t,n]=N.useState(e),r=Ha(),a=N.useCallback(c=>{r.current&&n(d=>d|c)},[t,r]),i=N.useCallback(c=>!!(t&c),[t]),o=N.useCallback(c=>{r.current&&n(d=>d&~c)},[n,r]),l=N.useCallback(c=>{r.current&&n(d=>d^c)},[n]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:o,toggleFlag:l}}function AO(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ls(e,...t){e&&t.length>0&&e.classList.add(...t)}function cs(e,...t){e&&t.length>0&&e.classList.remove(...t)}function xO(e,t){let n=wt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[i,o]=[r,a].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,_)=>_-u);return d}),l=i+o;if(l!==0){n.group(d=>{d.setTimeout(()=>{t(),d.dispose()},l),d.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&d.dispose()})});let c=n.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function DO(e,t,n,r){let a=n?"enter":"leave",i=wt(),o=r!==void 0?AO(r):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=De(a,{enter:()=>t.enter,leave:()=>t.leave}),c=De(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=De(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return cs(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ls(e,...l,...d),i.nextFrame(()=>{cs(e,...d),ls(e,...c),xO(e,()=>(cs(e,...l),ls(e,...t.entered),o()))}),i.dispose}function wO({container:e,direction:t,classes:n,onStart:r,onStop:a}){let i=Ha(),o=Ya(),l=Vt(t);ke(()=>{let c=wt();o.add(c.dispose);let d=e.current;if(d&&l.current!=="idle"&&i.current)return c.dispose(),r.current(l.current),c.add(DO(d,n.current,l.current==="enter",()=>{c.dispose(),a.current(l.current)})),c.dispose},[t])}function wn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let vo=N.createContext(null);vo.displayName="TransitionContext";var LO=(e=>(e.Visible="visible",e.Hidden="hidden",e))(LO||{});function MO(){let e=N.useContext(vo);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function PO(){let e=N.useContext(Ro);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Ro=N.createContext(null);Ro.displayName="NestingContext";function Co(e){return"children"in e?Co(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function cT(e,t){let n=Vt(e),r=N.useRef([]),a=Ha(),i=Ya(),o=ee((E,f=Yt.Hidden)=>{let S=r.current.findIndex(({el:h})=>h===E);S!==-1&&(De(f,{[Yt.Unmount](){r.current.splice(S,1)},[Yt.Hidden](){r.current[S].state="hidden"}}),i.microTask(()=>{var h;!Co(r)&&a.current&&((h=n.current)==null||h.call(n))}))}),l=ee(E=>{let f=r.current.find(({el:S})=>S===E);return f?f.state!=="visible"&&(f.state="visible"):r.current.push({el:E,state:"visible"}),()=>o(E,Yt.Unmount)}),c=N.useRef([]),d=N.useRef(Promise.resolve()),u=N.useRef({enter:[],leave:[],idle:[]}),_=ee((E,f,S)=>{c.current.splice(0),t&&(t.chains.current[f]=t.chains.current[f].filter(([h])=>h!==E)),t==null||t.chains.current[f].push([E,new Promise(h=>{c.current.push(h)})]),t==null||t.chains.current[f].push([E,new Promise(h=>{Promise.all(u.current[f].map(([g,p])=>p)).then(()=>h())})]),f==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>S(f)):S(f)}),m=ee((E,f,S)=>{Promise.all(u.current[f].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=c.current.shift())==null||h()}).then(()=>S(f))});return N.useMemo(()=>({children:r,register:l,unregister:o,onStart:_,onStop:m,wait:d,chains:u}),[l,o,r,_,m,u,d])}function kO(){}let UO=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xp(e){var t;let n={};for(let r of UO)n[r]=(t=e[r])!=null?t:kO;return n}function FO(e){let t=N.useRef(xp(e));return N.useEffect(()=>{t.current=xp(e)},[e]),t}let BO="div",dT=Ar.RenderStrategy;function GO(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:o,enterFrom:l,enterTo:c,entered:d,leave:u,leaveFrom:_,leaveTo:m,...E}=e,f=N.useRef(null),S=We(f,t),h=E.unmount?Yt.Unmount:Yt.Hidden,{show:g,appear:p,initial:b}=MO(),[T,R]=N.useState(g?"visible":"hidden"),y=PO(),{register:C,unregister:O}=y,L=N.useRef(null);N.useEffect(()=>C(f),[C,f]),N.useEffect(()=>{if(h===Yt.Hidden&&f.current){if(g&&T!=="visible"){R("visible");return}return De(T,{hidden:()=>O(f),visible:()=>C(f)})}},[T,f,C,O,g,h]);let x=Vt({enter:wn(o),enterFrom:wn(l),enterTo:wn(c),entered:wn(d),leave:wn(u),leaveFrom:wn(_),leaveTo:wn(m)}),H=FO({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),P=Lr();N.useEffect(()=>{if(P&&T==="visible"&&f.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[f,T,P]);let $=b&&!p,ce=(()=>!P||$||L.current===g?"idle":g?"enter":"leave")(),X=IO(0),Q=ee(W=>De(W,{enter:()=>{X.addFlag(Me.Opening),H.current.beforeEnter()},leave:()=>{X.addFlag(Me.Closing),H.current.beforeLeave()},idle:()=>{}})),K=ee(W=>De(W,{enter:()=>{X.removeFlag(Me.Opening),H.current.afterEnter()},leave:()=>{X.removeFlag(Me.Closing),H.current.afterLeave()},idle:()=>{}})),A=cT(()=>{R("hidden"),O(f)},y);wO({container:f,classes:x,direction:ce,onStart:Vt(W=>{A.onStart(f,W,Q)}),onStop:Vt(W=>{A.onStop(f,W,K),W==="leave"&&!Co(A)&&(R("hidden"),O(f))})}),N.useEffect(()=>{$&&(h===Yt.Hidden?L.current=null:L.current=g)},[g,$,T]);let M=E,k={ref:S};return p&&g&&b&&(M={...M,className:Fu(E.className,...x.current.enter,...x.current.enterFrom)}),B.createElement(Ro.Provider,{value:A},B.createElement(Jh,{value:De(T,{visible:Me.Open,hidden:Me.Closed})|X.flags},qe({ourProps:k,theirProps:M,defaultTag:BO,features:dT,visible:T==="visible",name:"Transition.Child"})))}function YO(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,o=N.useRef(null),l=We(o,t);Lr();let c=To();if(n===void 0&&c!==null&&(n=(c&Me.Open)===Me.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[d,u]=N.useState(n?"visible":"hidden"),_=cT(()=>{u("hidden")}),[m,E]=N.useState(!0),f=N.useRef([n]);ke(()=>{m!==!1&&f.current[f.current.length-1]!==n&&(f.current.push(n),E(!1))},[f,n]);let S=N.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);N.useEffect(()=>{if(n)u("visible");else if(!Co(_))u("hidden");else{let b=o.current;if(!b)return;let T=b.getBoundingClientRect();T.x===0&&T.y===0&&T.width===0&&T.height===0&&u("hidden")}},[n,_]);let h={unmount:a},g=ee(()=>{var b;m&&E(!1),(b=e.beforeEnter)==null||b.call(e)}),p=ee(()=>{var b;m&&E(!1),(b=e.beforeLeave)==null||b.call(e)});return B.createElement(Ro.Provider,{value:_},B.createElement(vo.Provider,{value:S},qe({ourProps:{...h,as:N.Fragment,children:B.createElement(uT,{ref:l,...h,...i,beforeEnter:g,beforeLeave:p})},theirProps:{},defaultTag:N.Fragment,features:dT,visible:d==="visible",name:"Transition"})))}function HO(e,t){let n=N.useContext(vo)!==null,r=To()!==null;return B.createElement(B.Fragment,null,!n&&r?B.createElement(Vu,{ref:t,...e}):B.createElement(uT,{ref:t,...e}))}let Vu=Fe(YO),uT=Fe(GO),qO=Fe(HO),ea=Object.assign(Vu,{Child:qO,Root:Vu});var _T={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dp=B.createContext&&B.createContext(_T),Tn=globalThis&&globalThis.__assign||function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;ns.jsx("div",{children:i.map((l,c)=>s.jsx(yt.Item,{children:({active:d})=>s.jsx("a",{className:zO(d?"bg-black text-white":"text-black","block px-4 py-2"),onClick:()=>{n(!0),a(l)},children:l.name})},c))},o))})})]}),s.jsx(ea,{appear:!0,show:t,as:N.Fragment,children:s.jsxs(os,{as:"div",className:"relative z-10",onClose:()=>n(!1),children:[s.jsx(ea.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),s.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:s.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:s.jsx(ea.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:s.jsxs(os.Panel,{className:"w-full max-w-2xl hover:max-w-3xl transform overflow-hidden rounded-md bg-white hover:bg-gradient-to-b hover:from-red-100 hover:via-green-100 hover:to-blue-100 p-5 align-middle shadow-xl transition-all text-md hover:text-xl",children:[s.jsxs(os.Title,{as:"h3",className:"text-md font-mono font-medium leading-6 text-black uppercase",children:["Homework ",r.name]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-red-700 font-mono",children:r.due}),s.jsx("p",{className:"font-mono py-5 text-start select-none whitespace-pre-line",children:r.prompt})]}),s.jsx("a",{href:r.link,target:"_blank",className:"inline-flex justify-center rounded-md hover:ring-1 ring-black bg-black text-white px-4 py-2 uppercase font-mono font-medium hover:bg-gradient-to-r hover:from-red-100 hover:via-green-100 hover:to-blue-100 hover:text-black",children:"Submit >>"})]})})})})]})})]})}function ds(...e){return e.filter(Boolean).join(" ")}function WO(){return s.jsxs(yt,{as:"div",className:"relative inline-block text-left",children:[s.jsx("div",{children:s.jsxs(yt.Button,{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",children:[s.jsx("p",{className:"pr-1",children:"Projects"}),s.jsx(pT,{})]})}),s.jsx(ea,{as:N.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:s.jsxs(yt.Items,{className:"absolute z-10 mt-2 w-full text-center text-sm p-1 font-mono origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg ring-1 ring-black ring-opacity-10 focus:outline-none",children:[s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_1",children:"Project 1"})}),s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_2",children:"Project 2"})}),s.jsx(yt.Item,{children:({active:e})=>s.jsx("a",{className:ds(e?"bg-black text-white":"text-black","block px-4 py-2"),target:"_blank",href:"/Hunter_CS135_Summer23/#/Project_3",children:"Project 3"})})]})})]})}function QO(e){const[t,n]=N.useState(!1);return s.jsx("nav",{className:"flex flex-wrap items-center justify-between px-2 py-3 bg-black mb-3 sticky top-0 z-50",children:s.jsxs("div",{className:"container px-4 mx-auto flex flex-wrap items-center justify-center",children:[s.jsxs("div",{className:"w-full relative flex justify-between lg:w-auto px-4 lg:static lg:block lg:justify-start",children:[s.jsx("a",{className:"sm:text-md md:text-2xl font-bold font-serif leading-relaxed inline-block mr-4 py-2 whitespace-nowrap text-white",href:"/Hunter_CS135_Summer23/",children:"Software Analysis and Design I"}),s.jsxs("button",{className:"cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none",type:"button",onClick:()=>n(!t),children:[s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white"}),s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white mt-1"}),s.jsx("span",{className:"block relative w-6 h-px rounded-sm bg-white mt-1"})]})]}),s.jsx("div",{className:"flex-grow"}),s.jsx("div",{className:"lg:flex justify-center "+(t?"flex":"hidden"),children:s.jsxs("ul",{className:"flex flex-col justify-center items-center lg:flex-row list-none ml-auto w-full",children:[s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx(WO,{})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx("a",{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",href:"/Hunter_CS135_Summer23/CSCI135_Syllabus.pdf",target:"_blank",children:"Syllabus"})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0",children:s.jsx("a",{className:"px-3 py-2 flex items-center text-sm uppercase font-bold font-serif leading-snug text-white hover:opacity-75",href:"https://www.gradescope.com/courses/545354",target:"_blank",children:"Gradescope"})}),s.jsx("li",{className:"nav-item border-b-2 lg:border-0 pl-0 pr-3",children:s.jsx($O,{homeworks:e.homeworks})})]})})]})})}function KO(e){return s.jsx("div",{className:"overflow-auto w-10/12",children:s.jsxs("table",{className:"border-separate border border-slate-500 font-mono w-full",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-black text-white",children:[s.jsx("th",{className:"border border-slate-600 p-3",children:"Date"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Topics"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Slides"}),s.jsx("th",{className:"border border-slate-600 p-3",children:"Labs"})]})}),!e.midterm&&s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"05/31/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Linux/Compilation/IDE",s.jsx("br",{}),"Variables",s.jsx("br",{}),"Input/Output",s.jsx("br",{}),"Syntax/Style",s.jsx("br",{}),"Error Messages",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.5%20Analyzing%20Your%20First%20Program.pdf",children:"Analyzing Your First Program"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.6%20Errors.pdf",children:"Errors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/1.7%20PS%20Algorithm%20Design.pdf",children:"Algorithm Design"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.1%20Variables.pdf",children:"Variables"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_01.html",children:"Lab 1"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_1.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/05/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Math operators",s.jsx("br",{}),"Input/Output",s.jsx("br",{}),"Strings and Numbers",s.jsx("br",{}),"Conditionals"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.2%20Arithmetic.pdf",children:"Arithmetic"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.3%20Input%20and%20Output%20_%202.4%20PS%20First%20Do%20It%20By%20Hand.pdf",children:"Input and Output"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/2.5%20Strings.pdf",children:"Strings"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.1%20The%20IF%20Statement.pdf",children:"If-Statements"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.2%20Comparing%20Numbers%20and%20Strings.pdf",children:"Comparing Numbers and Strings"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.3%20Multiple%20Alternatives%20_%203.4%20Nested%20Branches.pdf",children:"Multiple Alternatives"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_02.html",children:"Lab 2"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_2.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/07/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Boolean Datatype",s.jsx("br",{}),"Input Validation",s.jsx("br",{}),"Different Loops",s.jsx("br",{}),"Loop Algorithms"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.7%20Boolean%20Variables%20and%20Operators.pdf",children:"Boolean Datatype and Operators"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/3.8%20Application_%20Input%20Validation.pdf",children:"Input Validation"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.1%20The%20WHILE%20Loop.pdf",children:"While Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.2%20PS%20Hand-Tracing%20_%204.3%20The%20FOR%20Loop.pdf",children:"For Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.4%20The%20DO%20Loop%20_%204.5%20Processing%20Input.pdf",children:"Do-While Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.6%20PS%20Storyboards%20_%204.7%20Common%20Loop%20Algorithms%20_%204.8%20Nested%20Loops.pdf",children:"Loop Algorithms"})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_03.html",children:"Lab 3"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/Current_Reservoir_Levels.tsv",children:"Datafile"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_3.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/12/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Nested Loops",s.jsx("br",{}),"Random",s.jsx("br",{}),"Functions"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.6%20PS%20Storyboards%20_%204.7%20Common%20Loop%20Algorithms%20_%204.8%20Nested%20Loops.pdf",children:"Nested Loops"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/4.9%20PS%20Solve%20a%20Simpler%20Problem%20First%20_%204.10%20Random%20Numbers%20and%20Simulations.pdf",children:"Random Numbers and Simulations"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.1%20Functions%20as%20Black%20Boxes%20_%205.2%20Implementing%20Functions%20_%205.3%20Parameter%20Passing.pdf",children:"Functions"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.4%20Return%20Values%20_%205.5%20Functions%20without%20Return%20Values%20_%205.6%20Reusable%20Functions.pdf",children:"Returning from a function"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_04.html",children:"Lab 4"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_4.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/14/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Breaking Down Complex Problems",s.jsx("br",{}),"Variable Scopes",s.jsx("br",{}),"Pass by Reference"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.7%20Stepwise%20Refinement.pdf",children:"Stepwise Refinement"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.8%20Variable%20Scope%20and%20Globals.pdf",children:"Variable Scopes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/Static%20Variables.pdf",children:"Static Variables"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.9%20Reference%20Parameters.pdf",children:"Reference Parameters"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/#/Project_1",children:"Project 1"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/21/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Arrays",s.jsx("br",{}),"Array Algorithms(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/arrays.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"2D Arrays"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.1%20Arrays.pdf",children:"Arrays"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.2%20Common%20Array%20Algorithms.pdf",children:"Common Arrays Algorithms"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.3%20Arrays%20and%20Functions.pdf",children:"Arrays and Functions"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.4%20PS%20Adapting%20Algorithms%20_%206.5%20Discovering%20Algorithms.pdf",children:"Adapting Algorithms"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.6%202D%20Arrays.pdf",children:"2D Arrays"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_05.html",children:"Lab 5"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_5.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/26/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Pointers",s.jsx("br",{}),"File Streams"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.1%20Defining%20and%20Using%20Pointers.pdf",children:"Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.2%20Arrays%20and%20Pointers.pdf",children:"Arrays and Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/8.1%20Reading%20and%20Writing%20Text%20Files.pdf",children:"Streams"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_06.html",children:"Lab 6"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_6.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"06/28/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Midterm Review",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/midterm_review.pdf",children:"Midterm Review"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/midterm_format.pdf",children:"Exam Format"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_07.html",children:"Lab 7"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_7.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/03/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["MIDTERM EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"MIDTERM EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_08.html",children:"Lab 8"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_8.pdf",children:"Slides"}),s.jsx("br",{})]})]})]}),e.midterm&&s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/03/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["MIDTERM EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"MIDTERM EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_08.html",children:"Lab 8"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_8.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/05/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Dynamic Memory Allocation",s.jsx("br",{}),"Dynamic Arrays(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/dynamic.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"Pointer Arrays(",s.jsx("a",{className:"text-blue-700 font-bold",target:"_blank",href:"https://is.gd/00MNC7",children:"code"}),")",s.jsx("br",{}),"Introduction to Classes"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.4%20Dynamic%20Memory%20Allocation.pdf",children:"Dynamic Memory"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.5-6%20Arrays%20of%20Pointers%20_%20PS%20Draw%20a%20Picture.pdf",children:"Arrays of Pointers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.youtube.com/watch?v=3m4bxse2JEQ",children:"Galton Board"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/7.7-8%20Classes%20of%20Objects%20_%20Pointers%20and%20Objects.pdf",children:"Classes"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_09.html",children:"Lab 9"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_9.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/10/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Object-Oriented-Programming",s.jsx("br",{}),"Separate Compilation",s.jsx("br",{}),"Enums"]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.1-2%20Object%20Oriented%20Programming%20_%20Implementing%20a%20Simple%20Class.pdf",children:"OOP"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.3-5%20Specifying%20the%20Public%20Interface%20_%20Designing%20the%20Data%20Representation%20_%20Member%20Functions.pdf",children:"Access Specifiers"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.6%20Constructors.pdf",children:"Constructors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/9.9%20Separate%20Compilation.pdf",children:"Separate Compilation"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/Enums.pdf",children:"Enums"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_10.html",children:"Lab 10"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_10.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/12/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["OOP Example(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/dictionary.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Inheritance(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/inheritance.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Vectors",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/6.7%20Vectors.pdf",children:"Vectors"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.1%20Inheritance%20Hierarchies.pdf",children:"Inheritance"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.2%20Implementing%20Derived%20Classes.pdf",children:"Derived Classes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.3%20Overriding%20Member%20Functions.pdf",children:"Overriding"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_11.html",children:"Lab 11"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_11.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/17/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Vector and Classes Example",s.jsx("br",{}),"Virtual Classes",s.jsx("br",{}),"Recursion",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/10.4%20Virtual%20Functions%20and%20Polymorphism.pdf",children:"Virtual Classes"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/slides/5.10%20Recursive%20Functions.pdf",children:"Recursive Function"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_12.html",children:"Lab 12"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_12.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/19/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Templated Functions(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/templates.cpp",download:!0,children:"code"}),")",s.jsx("br",{}),"Templated Classes",s.jsx("br",{}),"Linked List(",s.jsx("a",{className:"text-blue-700 font-bold",href:"/Hunter_CS135_Summer23/extra_content/linkedlist.zip",download:!0,children:"code"}),")",s.jsx("br",{}),"Operator Overloading",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://www.geeksforgeeks.org/templates-cpp/",children:"Templates"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.geeksforgeeks.org/data-structures/linked-list/",children:"Linked List"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://learn.microsoft.com/en-us/cpp/standard-library/overloading-the-output-operator-for-your-own-classes?view=msvc-170",children:"Operator Overloading"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://maryash.github.io/135/labs/lab_13.html",children:"Lab 13"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/recitation_slides/Lab_13.pdf",children:"Slides"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center",children:"07/24/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center",children:["Final Exam Review",s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/final_format.pdf",children:"Exam Format"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"/Hunter_CS135_Summer23/extra_content/final_review.pdf",children:"Final Review"}),s.jsx("br",{})]}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://docs.github.com/en/get-started/quickstart/hello-world",children:"Github and Git"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.techinterviewhandbook.org/grind75",children:"Leetcode"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://devpost.com/hackathons",children:"Hackathons"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.hackthebox.com/hacker/ctf",children:"CTF"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://itch.io/jams",children:"Game Jams"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://github.com/practical-tutorials/project-based-learning/tree/master",children:"Projects"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.hostinger.com/tutorials/web-developer-portfolio",children:"Portfolios"}),s.jsx("br",{}),s.jsx("a",{target:"_blank",href:"https://www.youtube.com/playlist?list=PLfYUBJiXbdtSvpQjSnJJ_PmDQB_VyT5iU",children:"Deep Learning"}),s.jsx("br",{})]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"07/26/2023"}),s.jsxs("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:["FINAL EXAM",s.jsx("br",{})]}),s.jsx("td",{className:"border border-slate-700 p-2 text-center text-red-700 font-bold",children:"FINAL EXAM"}),s.jsxs("td",{className:"border border-slate-700 p-1 text-center text-blue-700 font-bold",children:[s.jsx("a",{target:"_blank",href:"https://www.youtube.com/watch?v=tg2PD-dwsIw",children:"Finally"}),s.jsx("br",{})]})]})]})]})})}function XO(e){const[t,n]=N.useState(e),r=N.useCallback(()=>{n(a=>!a)},[n]);return{isOpen:t,toggle:r}}const ZO=({section:e})=>{const{isOpen:t,toggle:n}=XO(!1);return s.jsxs("div",{children:[s.jsx(JO,{question:e.question,isOpen:t,toggle:n}),t&&s.jsx(eI,{answer:e.answer})]})},JO=({question:e,isOpen:t,toggle:n})=>s.jsxs("div",{className:"cursor-pointer flex flex-row font-mono border-solid border border-black p-5 text-blue-700 font-bold",onClick:n,children:[s.jsxs("div",{children:["Q: ",e]}),s.jsx("div",{className:"grow w-max"}),s.jsx("button",{className:"expand-button",children:s.jsx("span",{className:"material-symbols-outlined",style:{transform:`rotate(${t?180:0}deg)`,transition:"all 0.25s"},children:"expand_more"})})]}),eI=({answer:e})=>s.jsxs("div",{className:"flex flex-row font-mono border-solid border border-black p-5",children:[s.jsx("div",{className:"font-bold",children:"A: "}),e]});function tI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 0C229.232 0 0 229.232 0 512c0 282.784 229.232 512 512 512 282.784 0 512-229.216 512-512C1024 229.232 794.784 0 512 0zm0 961.008c-247.024 0-448-201.984-448-449.01 0-247.024 200.976-448 448-448s448 200.977 448 448-200.976 449.01-448 449.01zm32-462V192.002c0-17.664-14.336-32-32-32s-32 14.336-32 32v320c0 9.056 3.792 17.2 9.856 23.007.529.624.96 1.296 1.537 1.887l158.384 158.4c12.496 12.481 32.752 12.481 45.248 0 12.496-12.496 12.496-32.768 0-45.264z"}}]})(e)}function nI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M990.848 696.304V438.16l16.096-8.496c10.464-5.44 17.055-16.225 17.183-28.032.128-11.777-6.256-22.689-16.592-28.368l-481.44-257.6c-9.631-5.28-21.28-5.249-30.976.095l-478.8 257.92C6.126 379.36-.177 390.143-.113 401.84s6.496 22.4 16.817 27.97l210.384 111.983c-2.64 4.656-4.272 9.968-4.272 15.696v270.784c0 9.12 3.905 17.84 10.72 23.904 6.945 6.16 73.441 60.096 276.753 60.096 202.592 0 270.88-50.976 278-56.784 7.44-6.064 11.744-15.152 11.744-24.784V552.976c0-4.496-.944-8.768-2.608-12.64l129.424-68.369V696.48c-18.976 11.104-31.84 31.472-31.84 55.024 0 35.344 28.656 64 64 64s64-28.656 64-64c0-23.697-13.04-44.145-32.16-55.2zM736.031 812.368c-25.152 12.096-91.712 35.904-225.744 35.904-134.88 0-199.936-25.344-223.472-37.536V573.6l207.808 110.624a31.896 31.896 0 0 0 15.184 3.84 31.675 31.675 0 0 0 14.816-3.664l211.408-111.664v239.632zM510.063 619.81l-411.6-218.561 412.32-220.976 413.6 220.336z"}}]})(e)}function rI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M295.664 732.448c6.256 6.256 14.432 9.376 22.624 9.376s16.368-3.12 22.624-9.376L728.576 341.76c12.496-12.496 12.496-32.752 0-45.248s-32.752-12.496-45.248 0L295.664 687.2c-12.512 12.496-12.512 32.752 0 45.248zm180.208-68.143c10.576 46.624-.834 92.4-36.866 128.432L309.758 917.985c-27.2 27.184-63.36 42.16-101.824 42.16s-74.624-14.976-101.808-42.16c-56.144-56.16-56.144-147.536-.336-203.344l126.256-130.256c27.2-27.184 63.36-42.176 101.824-42.176 13.152 0 25.824 2.352 38.176 5.743L421.998 498c-27.872-13.024-57.952-19.792-88.128-19.792-53.233 0-106.465 20.32-147.073 60.929L60.86 669.073c-81.216 81.216-81.216 212.912 0 294.16 40.608 40.624 93.84 60.912 147.073 60.912s106.465-20.288 147.073-60.912L483.95 838.289c62.128-62.128 75.568-148.72 42.656-224.72zM963.134 60.784C922.51 20.176 869.294-.145 816.077-.145c-53.248 0-106.496 20.32-147.088 60.929L540.061 185.728c-64.4 64.4-77.536 160.465-39.792 238.033l49.664-49.648c-14.704-49.104-3.408-104.336 35.056-142.832l129.248-125.248c27.216-27.184 63.344-42.176 101.84-42.176 38.431 0 74.624 14.992 101.808 42.176 56.128 56.16 56.128 147.536.32 203.344L788.957 438.625c-27.183 27.183-63.376 42.159-101.808 42.159-9.808 0-18.431.992-27.84-.928l-50.975 51.008c25.471 10.592 51.632 13.935 78.815 13.935 53.216 0 106.432-20.303 147.056-60.927L963.15 354.928c81.2-81.216 81.2-212.896-.015-294.144z"}}]})(e)}function aI(e){return Lt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14.942 12.57l-4.942-8.235v-3.335h0.5c0.275 0 0.5-0.225 0.5-0.5s-0.225-0.5-0.5-0.5h-5c-0.275 0-0.5 0.225-0.5 0.5s0.225 0.5 0.5 0.5h0.5v3.335l-4.942 8.235c-1.132 1.886-0.258 3.43 1.942 3.43h10c2.2 0 3.074-1.543 1.942-3.43zM3.766 10l3.234-5.39v-3.61h2v3.61l3.234 5.39h-8.468z"}}]})(e)}function iI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m4 6 8-4 8 4"}},{tag:"path",attr:{d:"m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2"}},{tag:"path",attr:{d:"M14 22v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v4"}},{tag:"path",attr:{d:"M18 5v17"}},{tag:"path",attr:{d:"M6 5v17"}},{tag:"circle",attr:{cx:"12",cy:"9",r:"2"}}]})(e)}function gT(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]})(e)}function ET(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]})(e)}function oI(e){return Lt({tag:"svg",attr:{t:"1569683753031",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8c-3.1-3.1-8.2-3.1-11.3 0L517 485.3l-86.1-86.2c-3.1-3.1-8.2-3.1-11.3 0L275.3 543.4c-3.1 3.1-3.1 8.2 0 11.3l36.8 36.8z"}},{tag:"path",attr:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1c-3.7 2.4-4.7 7.3-2.3 11l30.3 47.2v0.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-0.1l30.3-47.2c2.4-3.7 1.3-8.6-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32z m-40 512H160V232h704v440z"}}]})(e)}function sI(e){return Lt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"}},{tag:"path",attr:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"}}]})(e)}const lI=e=>{const[t,n]=N.useState(2);return s.jsxs("div",{className:"w-10/12 py-5",children:[s.jsxs("div",{className:"flex lg:flex-row flex-col",children:[s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-tl-lg shadow-md shadow-black "+(t==1?"bg-black text-white":"bg-white border-2 border-black hover:bg-black hover:text-white"),onClick:()=>{n(1)},title:"Course Information",children:[s.jsx(nI,{}),s.jsx("div",{className:"pl-5",children:"Course Information"})]}),s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-none shadow-md shadow-black "+(t==2?"bg-black text-white":"bg-white border-2 border-black border-x-0 hover:bg-black hover:text-white"),onClick:()=>{n(2)},title:"Upcoming Deadlines",children:[s.jsx(tI,{}),s.jsx("div",{className:"pl-5",children:"Upcoming Deadlines"})]}),s.jsxs("button",{className:"basis-1/3 font-mono font-semibold flex flex-row justify-center items-center uppercase py-5 rounded-tr-lg shadow-md shadow-black "+(t==3?"bg-black text-white":"bg-white border-2 border-black hover:bg-black hover:text-white"),onClick:()=>{n(3)},title:"Useful Links",children:[s.jsx(rI,{}),s.jsx("div",{className:"pl-5",children:"Useful Links"})]})]}),t==1&&s.jsx(cI,{}),t==2&&s.jsx(dI,{assignments:e}),t==3&&s.jsx(uI,{})]})};function cI(){return s.jsxs("div",{className:"p-5 border border-black",children:[s.jsxs("div",{className:"px-4 sm:px-0",children:[s.jsx("h3",{className:"text-md font-mono font-semibold leading-7 text-black",children:"CSCI-13500 SUMMER 2023"}),s.jsx("p",{className:"mt-1 text-sm font-mono leading-4 text-gray-900",children:"This course is an intensive introduction to problem-solving and programming. It is not specifically a course in the C++ programming language. It uses C++ to implement the concepts presented in class since one cannot learn how to program without learning a programming language! The details of C++ will sometimes be a distraction from learning essential concepts, but the only way to learn to program is to program. The main objective of this course is to learn how to analyze problems, develop, and implement their solutions using a programming language."})]}),s.jsx("div",{className:"mt-6 border-t border-gray-200",children:s.jsxs("dl",{className:"divide-y divide-gray-200",children:[s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Instructor"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Sadab Hafiz"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Location"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Hunter College North 1001C"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Email"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"sadab.hafiz52@myhunter.cuny.edu"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Lecture hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["Monday 11:40 am - 2:00 pm",s.jsx("br",{}),"Wednesday 11:40 am - 2:00 pm"]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Recitation hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["Monday 2:30 pm - 4:00 pm",s.jsx("br",{}),"Wednesday 2:30 pm - 4:00 pm"]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"UTA"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"Ryan Vaz"})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Tutoring hours"}),s.jsxs("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:["In-Person (HN1001C):",s.jsx("br",{}),s.jsx("p",{className:"indent-10",children:"Monday 4:00 pm - 5:00 pm"}),s.jsx("p",{className:"indent-10",children:"Wednesday 4:00 pm - 5:00 pm"}),"Online (",s.jsx("a",{className:"text-blue-700 font-bold",target:"_blank",href:"https://us02web.zoom.us/j/88367352955?pwd=ZFAxVUhESTZVSVp5TkZjY3NwMG9XZz09",children:"Zoom"}),"):",s.jsx("br",{}),s.jsx("p",{className:"indent-10",children:"Friday 2:00 pm - 4:00 pm"})]})]}),s.jsxs("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[s.jsx("dt",{className:"text-sm font-mono font-semibold leading-6 text-black",children:"Office hours"}),s.jsx("dd",{className:"mt-1 text-sm font-mono leading-6 text-gray-900 sm:col-span-2 sm:mt-0",children:"All questions will be answered in-person during recitation. Additional office hours are offered as needed via appointment. Please don't email UTAs outside of their work hours. Email me instead if you have any questions that haven't been answered during class."})]})]})})]})}function dI({assignments:e}){return s.jsx("div",{className:"p-5 border border-black",children:s.jsx("div",{className:"grid lg:grid-cols-3 gap-4",children:e.assignments.map((t,n)=>s.jsxs("div",{className:"py-5 border-2 border-red-500 font-mono text-red-700 flex flex-col justify-center items-center text-center",children:[t.type=="lab"&&s.jsx(aI,{size:70}),t.type=="classwork/homework"&&s.jsx(iI,{size:70}),t.type=="project"&&s.jsx(oI,{size:70}),t.type=="exam"&&s.jsx(sI,{size:70}),s.jsx("br",{}),t.name,s.jsx("br",{}),t.deadline]},n))})})}function uI(){return s.jsxs("div",{className:"p-5 border font-mono font-semibold text-blue-700 border-black flex flex-col justify-center items-center text-center divide-y divide-gray-100",children:[s.jsx("a",{href:"https://hunter.cuny.edu/students/registration/academic-calendar/",target:"_blank",children:"Academic Calander"}),s.jsx("a",{href:"https://a-nikolaev.github.io/cs136/linux/",target:"_blank",children:"Basic Unix Terminal Commands"}),s.jsx("a",{href:"https://okunhardt.github.io/documents/Installing_WSL.pdf",target:"_blank",children:"Linux Terminal on Windows"}),s.jsx("a",{href:"https://code.visualstudio.com/docs/cpp/config-mingw",target:"_blank",children:"Windows minGW compiler setup with VSCode"}),s.jsx("a",{href:"https://maryash.github.io/135/worked_examples/style_guide.html",target:"_blank",children:"Coding Style Guide"}),s.jsx("a",{href:"https://a-nikolaev.github.io/cs136/vim/",target:"_blank",children:"Setting up Vim text-editor"})]})}const _I=[{question:"Is attendance mandatory?",answer:"Attendance is not mandatory. However, since this is an 8-week course, missing a single day means missing multiple days worth of material. In addition, you are responsible for all the classwork that you will potentially miss."},{question:"If I have a Windows computer, do I need to buy a Mac/Linux?",answer:"Don't buy any apple products just for this course!!! I or Ryan will help you set up the environment if you need to work on a Windows machine."},{question:"What do I call you?",answer:"Call me Sadab."},{question:"Do I need the textbook?",answer:"You don't need it for this course. If you are interested, let me know before you purchase it."},{question:"Do I need to stay for the entirety of the recitation?",answer:"If you finish your lab and don't have any questions, feel free to leave. Make sure you take the quiz tho."},{question:"I wasn't added to Gradescope. What do I do?",answer:"Send me an email with your first name, last name, EMPLID, and preferred email address."},{question:"My email on Gradescope is wrong. What do I do?",answer:"Send me an email letting me know your preferred email address."},{question:"When will assignment X be available on gradescope?",answer:"Lab assignments are made available at the start of each recitation. You are encouraged to work ahead since the lab links will be available before the labs are available on Gradescope. Projects, homeworks, and classworks will be available on gradescope as they are announced in class."},{question:"Do I need to pass the final in order to pass the class?",answer:"Nope. You can pass the class even if you fail the final."},{question:"Can I bring a cheat sheet for the exams?",answer:"No. A cheat sheet will be provided to you."}],mI=[{name:"Homework 7",deadline:"07/23/2023 11:59 PM",type:"classwork/homework"},{name:"Lab 13",deadline:"07/24/2023 11:00 AM",type:"lab"},{name:"Project 2 Task B",deadline:"07/24/2023 11:00 AM",type:"project"},{name:"FINAL EXAM",deadline:"07/26/2023 11:40 AM",type:"exam"},{name:"Teacher Evaluations",deadline:"07/26/2023 11:59 PM",type:"exam"},{name:"Project 3 - Extra Credit",deadline:"07/26/2023 11:59 PM",type:"project"}],pI=[[{name:"1A",due:"06/11/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2927385/",prompt:"Create a C++ program that gets three names from the user and prints them out to the screen."},{name:"1B",due:"06/11/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2927391/",prompt:"Create a C++ program that asks the user for the number of gallons, the fuel efficiency in mpg, and the price of gas per gallon. Use this information to calculate how far the car can go (distance) and how much it costs to go 100 miles. Print these values to the screen."}],[{name:"2A",due:"06/18/2023 11:59 PM",link:"https://www.gradescope.com/courses/545354/assignments/2936139/",prompt:`Write a program that asks the user for a word and prints out the word with each character separated by a newline. For example, if the input is "hello", the output should be: h diff --git a/index.html b/index.html index 1b3c229..34648c3 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Software Analysis and Design I - +