(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const U of document.querySelectorAll('link[rel="modulepreload"]'))s(U);new MutationObserver(U=>{for(const H of U)if(H.type==="childList")for(const Y of H.addedNodes)Y.tagName==="LINK"&&Y.rel==="modulepreload"&&s(Y)}).observe(document,{childList:!0,subtree:!0});function E(U){const H={};return U.integrity&&(H.integrity=U.integrity),U.referrerPolicy&&(H.referrerPolicy=U.referrerPolicy),U.crossOrigin==="use-credentials"?H.credentials="include":U.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function s(U){if(U.ep)return;U.ep=!0;const H=E(U);fetch(U.href,H)}})();var mf={exports:{}},En={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Td;function dh(){if(Td)return En;Td=1;var r=Symbol.for("react.transitional.element"),j=Symbol.for("react.fragment");function E(s,U,H){var Y=null;if(H!==void 0&&(Y=""+H),U.key!==void 0&&(Y=""+U.key),"key"in U){H={};for(var W in U)W!=="key"&&(H[W]=U[W])}else H=U;return U=H.ref,{$$typeof:r,type:s,key:Y,ref:U!==void 0?U:null,props:H}}return En.Fragment=j,En.jsx=E,En.jsxs=E,En}var zd;function mh(){return zd||(zd=1,mf.exports=dh()),mf.exports}var f=mh(),hf={exports:{}},V={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ad;function hh(){if(Ad)return V;Ad=1;var r=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),X=Symbol.iterator;function Z(m){return m===null||typeof m!="object"?null:(m=X&&m[X]||m["@@iterator"],typeof m=="function"?m:null)}var tl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nl=Object.assign,Sl={};function _l(m,z,O){this.props=m,this.context=z,this.refs=Sl,this.updater=O||tl}_l.prototype.isReactComponent={},_l.prototype.setState=function(m,z){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,z,"setState")},_l.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function Zl(){}Zl.prototype=_l.prototype;function vl(m,z,O){this.props=m,this.context=z,this.refs=Sl,this.updater=O||tl}var Ml=vl.prototype=new Zl;Ml.constructor=vl,Nl(Ml,_l.prototype),Ml.isPureReactComponent=!0;var Vl=Array.isArray;function Rl(){}var F={H:null,A:null,T:null,S:null},Dl=Object.prototype.hasOwnProperty;function Fl(m,z,O){var R=O.ref;return{$$typeof:r,type:m,key:z,ref:R!==void 0?R:null,props:O}}function Et(m,z){return Fl(m.type,z,m.props)}function A(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function G(m){var z={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(O){return z[O]})}var Kl=/\/+/g;function ut(m,z){return typeof m=="object"&&m!==null&&m.key!=null?G(""+m.key):z.toString(36)}function kl(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(Rl,Rl):(m.status="pending",m.then(function(z){m.status==="pending"&&(m.status="fulfilled",m.value=z)},function(z){m.status==="pending"&&(m.status="rejected",m.reason=z)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function S(m,z,O,R,K){var I=typeof m;(I==="undefined"||I==="boolean")&&(m=null);var fl=!1;if(m===null)fl=!0;else switch(I){case"bigint":case"string":case"number":fl=!0;break;case"object":switch(m.$$typeof){case r:case j:fl=!0;break;case q:return fl=m._init,S(fl(m._payload),z,O,R,K)}}if(fl)return K=K(m),fl=R===""?"."+ut(m,0):R,Vl(K)?(O="",fl!=null&&(O=fl.replace(Kl,"$&/")+"/"),S(K,z,O,"",function(Ca){return Ca})):K!=null&&(A(K)&&(K=Et(K,O+(K.key==null||m&&m.key===K.key?"":(""+K.key).replace(Kl,"$&/")+"/")+fl)),z.push(K)),1;fl=0;var $l=R===""?".":R+":";if(Vl(m))for(var Al=0;Al>>1,yl=S[rl];if(0>>1;rlU(O,Q))RU(K,O)?(S[rl]=K,S[R]=Q,rl=R):(S[rl]=O,S[z]=Q,rl=z);else if(RU(K,Q))S[rl]=K,S[R]=Q,rl=R;else break l}}return D}function U(S,D){var Q=S.sortIndex-D.sortIndex;return Q!==0?Q:S.id-D.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;r.unstable_now=function(){return H.now()}}else{var Y=Date,W=Y.now();r.unstable_now=function(){return Y.now()-W}}var M=[],p=[],q=1,_=null,X=3,Z=!1,tl=!1,Nl=!1,Sl=!1,_l=typeof setTimeout=="function"?setTimeout:null,Zl=typeof clearTimeout=="function"?clearTimeout:null,vl=typeof setImmediate<"u"?setImmediate:null;function Ml(S){for(var D=E(p);D!==null;){if(D.callback===null)s(p);else if(D.startTime<=S)s(p),D.sortIndex=D.expirationTime,j(M,D);else break;D=E(p)}}function Vl(S){if(Nl=!1,Ml(S),!tl)if(E(M)!==null)tl=!0,Rl||(Rl=!0,G());else{var D=E(p);D!==null&&kl(Vl,D.startTime-S)}}var Rl=!1,F=-1,Dl=5,Fl=-1;function Et(){return Sl?!0:!(r.unstable_now()-FlS&&Et());){var rl=_.callback;if(typeof rl=="function"){_.callback=null,X=_.priorityLevel;var yl=rl(_.expirationTime<=S);if(S=r.unstable_now(),typeof yl=="function"){_.callback=yl,Ml(S),D=!0;break t}_===E(M)&&s(M),Ml(S)}else s(M);_=E(M)}if(_!==null)D=!0;else{var m=E(p);m!==null&&kl(Vl,m.startTime-S),D=!1}}break l}finally{_=null,X=Q,Z=!1}D=void 0}}finally{D?G():Rl=!1}}}var G;if(typeof vl=="function")G=function(){vl(A)};else if(typeof MessageChannel<"u"){var Kl=new MessageChannel,ut=Kl.port2;Kl.port1.onmessage=A,G=function(){ut.postMessage(null)}}else G=function(){_l(A,0)};function kl(S,D){F=_l(function(){S(r.unstable_now())},D)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(S){S.callback=null},r.unstable_forceFrameRate=function(S){0>S||125rl?(S.sortIndex=Q,j(p,S),E(M)===null&&S===E(p)&&(Nl?(Zl(F),F=-1):Nl=!0,kl(Vl,Q-rl))):(S.sortIndex=yl,j(M,S),tl||Z||(tl=!0,Rl||(Rl=!0,G()))),S},r.unstable_shouldYield=Et,r.unstable_wrapCallback=function(S){var D=X;return function(){var Q=X;X=D;try{return S.apply(this,arguments)}finally{X=Q}}}})(gf)),gf}var _d;function yh(){return _d||(_d=1,yf.exports=vh()),yf.exports}var bf={exports:{}},Jl={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Md;function gh(){if(Md)return Jl;Md=1;var r=pf();function j(M){var p="https://react.dev/errors/"+M;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(j){console.error(j)}}return r(),bf.exports=gh(),bf.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Od;function ph(){if(Od)return _n;Od=1;var r=yh(),j=pf(),E=bh();function s(l){var t="https://react.dev/errors/"+l;if(1yl||(l.current=rl[yl],rl[yl]=null,yl--)}function O(l,t){yl++,rl[yl]=l.current,l.current=t}var R=m(null),K=m(null),I=m(null),fl=m(null);function $l(l,t){switch(O(I,t),O(K,l),O(R,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Kr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Kr(t),l=Jr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}z(R),O(R,l)}function Al(){z(R),z(K),z(I)}function Ca(l){l.memoizedState!==null&&O(fl,l);var t=R.current,e=Jr(t,l.type);t!==e&&(O(K,l),O(R,e))}function Dn(l){K.current===l&&(z(R),z(K)),fl.current===l&&(z(fl),Tn._currentValue=Q)}var ku,Sf;function _e(l){if(ku===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ku=t&&t[1]||"",Sf=-1)":-1n||o[a]!==y[n]){var x=` `+o[a].replace(" at new "," at ");return l.displayName&&x.includes("")&&(x=x.replace("",l.displayName)),x}while(1<=a&&0<=n);break}}}finally{$u=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?_e(e):""}function Xd(l,t){switch(l.tag){case 26:case 27:case 5:return _e(l.type);case 16:return _e("Lazy");case 13:return l.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Wu(l.type,!1);case 11:return Wu(l.type.render,!1);case 1:return Wu(l.type,!0);case 31:return _e("Activity");default:return""}}function Nf(l){try{var t="",e=null;do t+=Xd(l,e),e=l,l=l.return;while(l);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Fu=Object.prototype.hasOwnProperty,Iu=r.unstable_scheduleCallback,Pu=r.unstable_cancelCallback,Zd=r.unstable_shouldYield,Vd=r.unstable_requestPaint,it=r.unstable_now,Kd=r.unstable_getCurrentPriorityLevel,Tf=r.unstable_ImmediatePriority,zf=r.unstable_UserBlockingPriority,On=r.unstable_NormalPriority,Jd=r.unstable_LowPriority,Af=r.unstable_IdlePriority,kd=r.log,$d=r.unstable_setDisableYieldValue,Ha=null,ct=null;function le(l){if(typeof kd=="function"&&$d(l),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Ha,l)}catch{}}var ft=Math.clz32?Math.clz32:Id,Wd=Math.log,Fd=Math.LN2;function Id(l){return l>>>=0,l===0?32:31-(Wd(l)/Fd|0)|0}var Un=256,Cn=262144,Hn=4194304;function Me(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Rn(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Me(a):(i&=c,i!==0?n=Me(i):e||(e=c&~l,e!==0&&(n=Me(e))))):(c=a&~u,c!==0?n=Me(c):i!==0?n=Me(i):e||(e=a&~l,e!==0&&(n=Me(e)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,e=t&-t,u>=e||u===32&&(e&4194048)!==0)?t:n}function Ra(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Pd(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jf(){var l=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),l}function li(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function Ba(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function lm(l,t,e,a,n,u){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,o=l.expirationTimes,y=l.hiddenUpdates;for(e=i&~e;0"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var im=/[\n"\\]/g;function bt(l){return l.replace(im,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ii(l,t,e,a,n,u,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+gt(t)):l.value!==""+gt(t)&&(l.value=""+gt(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ci(l,i,gt(t)):e!=null?ci(l,i,gt(e)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+gt(c):l.removeAttribute("name")}function wf(l,t,e,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),t!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ui(l);return}e=e!=null?""+gt(e):"",t=t!=null?""+gt(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),ui(l)}function ci(l,t,e){t==="number"&&Yn(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function Ie(l,t,e,a){if(l=l.options,t){t={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),di=!1;if(qt)try{var La={};Object.defineProperty(La,"passive",{get:function(){di=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{di=!1}var ee=null,mi=null,Ln=null;function Kf(){if(Ln)return Ln;var l,t=mi,e=t.length,a,n="value"in ee?ee.value:ee.textContent,u=n.length;for(l=0;l=Xa),If=" ",Pf=!1;function ls(l,t){switch(l){case"keyup":return Hm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ts(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ea=!1;function Bm(l,t){switch(l){case"compositionend":return ts(t);case"keypress":return t.which!==32?null:(Pf=!0,If);case"textInput":return l=t.data,l===If&&Pf?null:l;default:return null}}function qm(l,t){if(ea)return l==="compositionend"||!bi&&ls(l,t)?(l=Kf(),Ln=mi=ee=null,ea=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=ss(e)}}function rs(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?rs(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ds(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Yn(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Yn(l.document)}return t}function Si(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var Vm=qt&&"documentMode"in document&&11>=document.documentMode,aa=null,Ni=null,Ja=null,Ti=!1;function ms(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Ti||aa==null||aa!==Yn(a)||(a=aa,"selectionStart"in a&&Si(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ja&&Ka(Ja,a)||(Ja=a,a=Cu(Ni,"onSelect"),0>=i,n-=i,Ot=1<<32-ft(t)+n|e<k?(al=B,B=null):al=B.sibling;var il=g(h,B,v[k],N);if(il===null){B===null&&(B=al);break}l&&B&&il.alternate===null&&t(h,B),d=u(il,d,k),ul===null?w=il:ul.sibling=il,ul=il,B=al}if(k===v.length)return e(h,B),nl&&wt(h,k),w;if(B===null){for(;kk?(al=B,B=null):al=B.sibling;var ze=g(h,B,il.value,N);if(ze===null){B===null&&(B=al);break}l&&B&&ze.alternate===null&&t(h,B),d=u(ze,d,k),ul===null?w=ze:ul.sibling=ze,ul=ze,B=al}if(il.done)return e(h,B),nl&&wt(h,k),w;if(B===null){for(;!il.done;k++,il=v.next())il=T(h,il.value,N),il!==null&&(d=u(il,d,k),ul===null?w=il:ul.sibling=il,ul=il);return nl&&wt(h,k),w}for(B=a(B);!il.done;k++,il=v.next())il=b(B,h,k,il.value,N),il!==null&&(l&&il.alternate!==null&&B.delete(il.key===null?k:il.key),d=u(il,d,k),ul===null?w=il:ul.sibling=il,ul=il);return l&&B.forEach(function(rh){return t(h,rh)}),nl&&wt(h,k),w}function hl(h,d,v,N){if(typeof v=="object"&&v!==null&&v.type===Nl&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Z:l:{for(var w=v.key;d!==null;){if(d.key===w){if(w=v.type,w===Nl){if(d.tag===7){e(h,d.sibling),N=n(d,v.props.children),N.return=h,h=N;break l}}else if(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Dl&&Le(w)===d.type){e(h,d.sibling),N=n(d,v.props),Pa(N,v),N.return=h,h=N;break l}e(h,d);break}else t(h,d);d=d.sibling}v.type===Nl?(N=Re(v.props.children,h.mode,N,v.key),N.return=h,h=N):(N=Wn(v.type,v.key,v.props,null,h.mode,N),Pa(N,v),N.return=h,h=N)}return i(h);case tl:l:{for(w=v.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){e(h,d.sibling),N=n(d,v.children||[]),N.return=h,h=N;break l}else{e(h,d);break}else t(h,d);d=d.sibling}N=Di(v,h.mode,N),N.return=h,h=N}return i(h);case Dl:return v=Le(v),hl(h,d,v,N)}if(kl(v))return C(h,d,v,N);if(G(v)){if(w=G(v),typeof w!="function")throw Error(s(150));return v=w.call(v),L(h,d,v,N)}if(typeof v.then=="function")return hl(h,d,au(v),N);if(v.$$typeof===vl)return hl(h,d,Pn(h,v),N);nu(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,d!==null&&d.tag===6?(e(h,d.sibling),N=n(d,v),N.return=h,h=N):(e(h,d),N=Mi(v,h.mode,N),N.return=h,h=N),i(h)):e(h,d)}return function(h,d,v,N){try{Ia=0;var w=hl(h,d,v,N);return ha=null,w}catch(B){if(B===ma||B===tu)throw B;var ul=ot(29,B,null,h.mode);return ul.lanes=N,ul.return=h,ul}finally{}}}var Qe=Bs(!0),qs=Bs(!1),ce=!1;function Qi(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xi(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function fe(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function se(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(cl&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=$n(l),xs(l,null,e),t}return kn(l,a,t,e),$n(l)}function ln(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,_f(l,e)}}function Zi(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=t:u=u.next=t}else n=u=t;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var Vi=!1;function tn(){if(Vi){var l=da;if(l!==null)throw l}}function en(l,t,e,a){Vi=!1;var n=l.updateQueue;ce=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var o=c,y=o.next;o.next=null,i===null?u=y:i.next=y,i=o;var x=l.alternate;x!==null&&(x=x.updateQueue,c=x.lastBaseUpdate,c!==i&&(c===null?x.firstBaseUpdate=y:c.next=y,x.lastBaseUpdate=o))}if(u!==null){var T=n.baseState;i=0,x=y=o=null,c=u;do{var g=c.lane&-536870913,b=g!==c.lane;if(b?(el&g)===g:(a&g)===g){g!==0&&g===ra&&(Vi=!0),x!==null&&(x=x.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var C=l,L=c;g=t;var hl=e;switch(L.tag){case 1:if(C=L.payload,typeof C=="function"){T=C.call(hl,T,g);break l}T=C;break l;case 3:C.flags=C.flags&-65537|128;case 0:if(C=L.payload,g=typeof C=="function"?C.call(hl,T,g):C,g==null)break l;T=_({},T,g);break l;case 2:ce=!0}}g=c.callback,g!==null&&(l.flags|=64,b&&(l.flags|=8192),b=n.callbacks,b===null?n.callbacks=[g]:b.push(g))}else b={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},x===null?(y=x=b,o=T):x=x.next=b,i|=g;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;b=c,c=b.next,b.next=null,n.lastBaseUpdate=b,n.shared.pending=null}}while(!0);x===null&&(o=T),n.baseState=o,n.firstBaseUpdate=y,n.lastBaseUpdate=x,u===null&&(n.shared.lanes=0),he|=i,l.lanes=i,l.memoizedState=T}}function Ys(l,t){if(typeof l!="function")throw Error(s(191,l));l.call(t)}function ws(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;lu?u:8;var i=S.T,c={};S.T=c,oc(l,!1,t,e);try{var o=n(),y=S.S;if(y!==null&&y(c,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var x=l0(o,a);un(l,t,x,vt(l))}else un(l,t,a,vt(l))}catch(T){un(l,t,{then:function(){},status:"rejected",reason:T},vt())}finally{D.p=u,i!==null&&c.types!==null&&(i.types=c.types),S.T=i}}function i0(){}function fc(l,t,e,a){if(l.tag!==5)throw Error(s(476));var n=bo(l).queue;go(l,n,t,Q,e===null?i0:function(){return po(l),e(a)})}function bo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:Q},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function po(l){var t=bo(l);t.next===null&&(t=l.alternate.memoizedState),un(l,t.next.queue,{},vt())}function sc(){return Gl(Tn)}function xo(){return El().memoizedState}function So(){return El().memoizedState}function c0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=vt();l=fe(e);var a=se(t,l,e);a!==null&&(nt(a,t,e),ln(a,t,e)),t={cache:Yi()},l.payload=t;return}t=t.return}}function f0(l,t,e){var a=vt();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},hu(l)?To(t,e):(e=Ei(l,t,e,a),e!==null&&(nt(e,l,a),zo(e,t,a)))}function No(l,t,e){var a=vt();un(l,t,e,a)}function un(l,t,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(hu(l))To(t,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,e);if(n.hasEagerState=!0,n.eagerState=c,st(c,i))return kn(l,t,n,0),gl===null&&Jn(),!1}catch{}finally{}if(e=Ei(l,t,n,a),e!==null)return nt(e,l,a),zo(e,t,a),!0}return!1}function oc(l,t,e,a){if(a={lane:2,revertLane:Qc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hu(l)){if(t)throw Error(s(479))}else t=Ei(l,e,a,2),t!==null&&nt(t,l,2)}function hu(l){var t=l.alternate;return l===J||t!==null&&t===J}function To(l,t){ya=cu=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function zo(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,_f(l,e)}}var cn={readContext:Gl,use:ou,useCallback:Tl,useContext:Tl,useEffect:Tl,useImperativeHandle:Tl,useLayoutEffect:Tl,useInsertionEffect:Tl,useMemo:Tl,useReducer:Tl,useRef:Tl,useState:Tl,useDebugValue:Tl,useDeferredValue:Tl,useTransition:Tl,useSyncExternalStore:Tl,useId:Tl,useHostTransitionStatus:Tl,useFormState:Tl,useActionState:Tl,useOptimistic:Tl,useMemoCache:Tl,useCacheRefresh:Tl};cn.useEffectEvent=Tl;var Ao={readContext:Gl,use:ou,useCallback:function(l,t){return Wl().memoizedState=[l,t===void 0?null:t],l},useContext:Gl,useEffect:co,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,du(4194308,4,ro.bind(null,t,l),e)},useLayoutEffect:function(l,t){return du(4194308,4,l,t)},useInsertionEffect:function(l,t){du(4,2,l,t)},useMemo:function(l,t){var e=Wl();t=t===void 0?null:t;var a=l();if(Xe){le(!0);try{l()}finally{le(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=Wl();if(e!==void 0){var n=e(t);if(Xe){le(!0);try{e(t)}finally{le(!1)}}}else n=t;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=f0.bind(null,J,l),[a.memoizedState,l]},useRef:function(l){var t=Wl();return l={current:l},t.memoizedState=l},useState:function(l){l=ac(l);var t=l.queue,e=No.bind(null,J,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:ic,useDeferredValue:function(l,t){var e=Wl();return cc(e,l,t)},useTransition:function(){var l=ac(!1);return l=go.bind(null,J,l.queue,!0,!1),Wl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=J,n=Wl();if(nl){if(e===void 0)throw Error(s(407));e=e()}else{if(e=t(),gl===null)throw Error(s(349));(el&127)!==0||Vs(a,t,e)}n.memoizedState=e;var u={value:e,getSnapshot:t};return n.queue=u,co(Js.bind(null,a,u,l),[l]),a.flags|=2048,ba(9,{destroy:void 0},Ks.bind(null,a,u,e,t),null),e},useId:function(){var l=Wl(),t=gl.identifierPrefix;if(nl){var e=Ut,a=Ot;e=(a&~(1<<32-ft(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=fu++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[wl]=t,u[Il]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;l:switch(Xl(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&Vt(t)}}return pl(t),zc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(l=I.current,sa(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,n=Ll,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[wl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Zr(l.nodeValue,e)),l||ue(t,!0)}else l=Hu(l).createTextNode(a),l[wl]=t,t.stateNode=l}return pl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=sa(t),e!==null){if(l===null){if(!a)throw Error(s(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(557));l[wl]=t}else Be(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pl(t),l=!1}else e=Hi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(dt(t),t):(dt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return pl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=sa(t),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[wl]=t}else Be(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pl(t),n=!1}else n=Hi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(dt(t),t):(dt(t),null)}return dt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),pu(t,t.updateQueue),pl(t),null);case 4:return Al(),l===null&&Kc(t.stateNode.containerInfo),pl(t),null;case 10:return Gt(t.type),pl(t),null;case 19:if(z(jl),a=t.memoizedState,a===null)return pl(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)sn(a,!1);else{if(zl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(u=iu(l),u!==null){for(t.flags|=128,sn(a,!1),l=u.updateQueue,t.updateQueue=l,pu(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Ss(e,l),e=e.sibling;return O(jl,jl.current&1|2),nl&&wt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&it()>zu&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304)}else{if(!n)if(l=iu(u),l!==null){if(t.flags|=128,n=!0,l=l.updateQueue,t.updateQueue=l,pu(t,l),sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nl)return pl(t),null}else 2*it()-a.renderingStartTime>zu&&e!==536870912&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(l=a.last,l!==null?l.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=it(),l.sibling=null,e=jl.current,O(jl,n?e&1|2:e&1),nl&&wt(t,a.treeForkCount),l):(pl(t),null);case 22:case 23:return dt(t),Ji(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(pl(t),t.subtreeFlags&6&&(t.flags|=8192)):pl(t),e=t.updateQueue,e!==null&&pu(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&z(we),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),Gt(Ol),pl(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function m0(l,t){switch(Ui(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Gt(Ol),Al(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Dn(t),null;case 31:if(t.memoizedState!==null){if(dt(t),t.alternate===null)throw Error(s(340));Be()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(dt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Be()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return z(jl),null;case 4:return Al(),null;case 10:return Gt(t.type),null;case 22:case 23:return dt(t),Ji(),l!==null&&z(we),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Gt(Ol),null;case 25:return null;default:return null}}function $o(l,t){switch(Ui(t),t.tag){case 3:Gt(Ol),Al();break;case 26:case 27:case 5:Dn(t);break;case 4:Al();break;case 31:t.memoizedState!==null&&dt(t);break;case 13:dt(t);break;case 19:z(jl);break;case 10:Gt(t.type);break;case 22:case 23:dt(t),Ji(),l!==null&&z(we);break;case 24:Gt(Ol)}}function on(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&l)===l){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(c){ol(t,t.return,c)}}function de(l,t,e){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=t;var o=e,y=c;try{y()}catch(x){ol(n,o,x)}}}a=a.next}while(a!==u)}}catch(x){ol(t,t.return,x)}}function Wo(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{ws(t,e)}catch(a){ol(l,l.return,a)}}}function Fo(l,t,e){e.props=Ze(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){ol(l,t,a)}}function rn(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(n){ol(l,t,n)}}function Ct(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){ol(l,t,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){ol(l,t,n)}else e.current=null}function Io(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){ol(l,l.return,n)}}function Ac(l,t,e){try{var a=l.stateNode;R0(a,l.type,e,t),a[Il]=t}catch(n){ol(l,l.return,n)}}function Po(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&pe(l.type)||l.tag===4}function jc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||Po(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&pe(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Ec(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Bt));else if(a!==4&&(a===27&&pe(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(Ec(l,t,e),l=l.sibling;l!==null;)Ec(l,t,e),l=l.sibling}function xu(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&pe(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(xu(l,t,e),l=l.sibling;l!==null;)xu(l,t,e),l=l.sibling}function lr(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Xl(t,a,e),t[wl]=l,t[Il]=e}catch(u){ol(l,l.return,u)}}var Kt=!1,Hl=!1,_c=!1,tr=typeof WeakSet=="function"?WeakSet:Set,Yl=null;function h0(l,t){if(l=l.containerInfo,$c=Gu,l=ds(l),Si(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break l}var i=0,c=-1,o=-1,y=0,x=0,T=l,g=null;t:for(;;){for(var b;T!==e||n!==0&&T.nodeType!==3||(c=i+n),T!==u||a!==0&&T.nodeType!==3||(o=i+a),T.nodeType===3&&(i+=T.nodeValue.length),(b=T.firstChild)!==null;)g=T,T=b;for(;;){if(T===l)break t;if(g===e&&++y===n&&(c=i),g===u&&++x===a&&(o=i),(b=T.nextSibling)!==null)break;T=g,g=T.parentNode}T=b}e=c===-1||o===-1?null:{start:c,end:o}}else e=null}e=e||{start:0,end:0}}else e=null;for(Wc={focusedElem:l,selectionRange:e},Gu=!1,Yl=t;Yl!==null;)if(t=Yl,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Yl=l;else for(;Yl!==null;){switch(t=Yl,u=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e title"))),Xl(u,a,e),u[wl]=l,ql(u),a=u;break l;case"link":var i=cd("link","href",n).get(a+(e.href||""));if(i){for(var c=0;chl&&(i=hl,hl=L,L=i);var h=os(c,L),d=os(c,hl);if(h&&d&&(b.rangeCount!==1||b.anchorNode!==h.node||b.anchorOffset!==h.offset||b.focusNode!==d.node||b.focusOffset!==d.offset)){var v=T.createRange();v.setStart(h.node,h.offset),b.removeAllRanges(),L>hl?(b.addRange(v),b.extend(d.node,d.offset)):(v.setEnd(d.node,d.offset),b.addRange(v))}}}}for(T=[],b=c;b=b.parentNode;)b.nodeType===1&&T.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ce?32:e,S.T=null,e=Rc,Rc=null;var u=ye,i=Ft;if(Bl=0,Ta=ye=null,Ft=0,(cl&6)!==0)throw Error(s(331));var c=cl;if(cl|=4,dr(u.current),sr(u,u.current,i,e),cl=c,gn(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ha,u)}catch{}return!0}finally{D.p=n,S.T=a,Dr(l,t)}}function Ur(l,t,e){t=xt(e,t),t=hc(l.stateNode,t,2),l=se(l,t,2),l!==null&&(Ba(l,2),Ht(l))}function ol(l,t,e){if(l.tag===3)Ur(l,l,e);else for(;t!==null;){if(t.tag===3){Ur(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ve===null||!ve.has(a))){l=xt(e,l),e=Co(2),a=se(t,e,2),a!==null&&(Ho(e,a,t,l),Ba(a,2),Ht(a));break}}t=t.return}}function wc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new g0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(e)||(Oc=!0,n.add(e),l=N0.bind(null,l,t,e),t.then(l,l))}function N0(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,gl===l&&(el&e)===e&&(zl===4||zl===3&&(el&62914560)===el&&300>it()-Tu?(cl&2)===0&&za(l,0):Uc|=e,Na===el&&(Na=0)),Ht(l)}function Cr(l,t){t===0&&(t=jf()),l=He(l,t),l!==null&&(Ba(l,t),Ht(l))}function T0(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),Cr(l,e)}function z0(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Cr(l,e)}function A0(l,t){return Iu(l,t)}var Du=null,ja=null,Lc=!1,Ou=!1,Gc=!1,be=0;function Ht(l){l!==ja&&l.next===null&&(ja===null?Du=ja=l:ja=ja.next=l),Ou=!0,Lc||(Lc=!0,E0())}function gn(l,t){if(!Gc&&Ou){Gc=!0;do for(var e=!1,a=Du;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-ft(42|l)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,qr(a,u))}else u=el,u=Rn(a,a===gl?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ra(a,u)||(e=!0,qr(a,u));a=a.next}while(e);Gc=!1}}function j0(){Hr()}function Hr(){Ou=Lc=!1;var l=0;be!==0&&q0()&&(l=be);for(var t=it(),e=null,a=Du;a!==null;){var n=a.next,u=Rr(a,t);u===0?(a.next=null,e===null?Du=n:e.next=n,n===null&&(ja=e)):(e=a,(l!==0||(u&3)!==0)&&(Ou=!0)),a=n}Bl!==0&&Bl!==5||gn(l),be!==0&&(be=0)}function Rr(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0c)break;var x=o.transferSize,T=o.initiatorType;x&&Vr(T)&&(o=o.responseEnd,i+=x*(o"u"?null:document;function ad(l,t,e){var a=Ea;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+l+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),ed.has(n)||(ed.add(n),l={rel:l,crossOrigin:e,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Xl(t,"link",l),ql(t),a.head.appendChild(t)))}}function K0(l){It.D(l),ad("dns-prefetch",l,null)}function J0(l,t){It.C(l,t),ad("preconnect",l,t)}function k0(l,t,e){It.L(l,t,e);var a=Ea;if(a&&l&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+bt(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+bt(e.imageSizes)+'"]')):n+='[href="'+bt(l)+'"]';var u=n;switch(t){case"style":u=_a(l);break;case"script":u=Ma(l)}jt.has(u)||(l=_({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),jt.set(u,l),a.querySelector(n)!==null||t==="style"&&a.querySelector(Sn(u))||t==="script"&&a.querySelector(Nn(u))||(t=a.createElement("link"),Xl(t,"link",l),ql(t),a.head.appendChild(t)))}}function $0(l,t){It.m(l,t);var e=Ea;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ma(l)}if(!jt.has(u)&&(l=_({rel:"modulepreload",href:l},t),jt.set(u,l),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(Nn(u)))return}a=e.createElement("link"),Xl(a,"link",l),ql(a),e.head.appendChild(a)}}}function W0(l,t,e){It.S(l,t,e);var a=Ea;if(a&&l){var n=We(a).hoistableStyles,u=_a(l);t=t||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(Sn(u)))c.loading=5;else{l=_({rel:"stylesheet",href:l,"data-precedence":t},e),(e=jt.get(u))&&af(l,e);var o=i=a.createElement("link");ql(o),Xl(o,"link",l),o._p=new Promise(function(y,x){o.onload=y,o.onerror=x}),o.addEventListener("load",function(){c.loading|=1}),o.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Bu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function F0(l,t){It.X(l,t);var e=Ea;if(e&&l){var a=We(e).hoistableScripts,n=Ma(l),u=a.get(n);u||(u=e.querySelector(Nn(n)),u||(l=_({src:l,async:!0},t),(t=jt.get(n))&&nf(l,t),u=e.createElement("script"),ql(u),Xl(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function I0(l,t){It.M(l,t);var e=Ea;if(e&&l){var a=We(e).hoistableScripts,n=Ma(l),u=a.get(n);u||(u=e.querySelector(Nn(n)),u||(l=_({src:l,async:!0,type:"module"},t),(t=jt.get(n))&&nf(l,t),u=e.createElement("script"),ql(u),Xl(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function nd(l,t,e,a){var n=(n=I.current)?Ru(n):null;if(!n)throw Error(s(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=_a(e.href),e=We(n).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=_a(e.href);var u=We(n).hoistableStyles,i=u.get(l);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,i),(u=n.querySelector(Sn(l)))&&!u._p&&(i.instance=u,i.state.loading=5),jt.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},jt.set(l,e),u||P0(n,l,e,i.state))),t&&a===null)throw Error(s(528,""));return i}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ma(e),e=We(n).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,l))}}function _a(l){return'href="'+bt(l)+'"'}function Sn(l){return'link[rel="stylesheet"]['+l+"]"}function ud(l){return _({},l,{"data-precedence":l.precedence,precedence:null})}function P0(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Xl(t,"link",e),ql(t),l.head.appendChild(t))}function Ma(l){return'[src="'+bt(l)+'"]'}function Nn(l){return"script[async]"+l}function id(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+bt(e.href)+'"]');if(a)return t.instance=a,ql(a),a;var n=_({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),ql(a),Xl(a,"style",n),Bu(a,e.precedence,l),t.instance=a;case"stylesheet":n=_a(e.href);var u=l.querySelector(Sn(n));if(u)return t.state.loading|=4,t.instance=u,ql(u),u;a=ud(e),(n=jt.get(n))&&af(a,n),u=(l.ownerDocument||l).createElement("link"),ql(u);var i=u;return i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Xl(u,"link",a),t.state.loading|=4,Bu(u,e.precedence,l),t.instance=u;case"script":return u=Ma(e.src),(n=l.querySelector(Nn(u)))?(t.instance=n,ql(n),n):(a=e,(n=jt.get(u))&&(a=_({},e),nf(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),ql(n),Xl(n,"link",a),l.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Bu(a,e.precedence,l));return t.instance}function Bu(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i title"):null)}function lh(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sd(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function th(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=_a(a.href),u=t.querySelector(Sn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Yu.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,ql(u);return}u=t.ownerDocument||t,a=ud(a),(n=jt.get(n))&&af(a,n),u=u.createElement("link"),ql(u);var i=u;i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Xl(u,"link",a),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Yu.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var uf=0;function eh(l,t){return l.stylesheets&&l.count===0&&Lu(l,l.stylesheets),0uf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lu(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var wu=null;function Lu(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,wu=new Map,t.forEach(ah,l),wu=null,Yu.call(l))}function ah(l,t){if(!(t.state.loading&4)){var e=wu.get(l);if(e)var a=e.get(null);else{e=new Map,wu.set(l,e);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(j){console.error(j)}}return r(),vf.exports=ph(),vf.exports}var Sh=xh();const Nh={id:{nav:{tentangKami:"Tentang Kami",program:"Program",sdm:"SDM",fasilitas:"Fasilitas",karyaAgenda:"Karya & Agenda",kontak:"Kontak",satuUntan:"SATU UNTAN"},hero:{badge:"MAHASISWA & PRESTASI",title:"Sorotan dan Prestasi Karya Mahasiswa",desc:"Galeri pencapaian, penghargaan, dan portofolio inovasi teknologi yang dikembangkan oleh mahasiswa Program Studi Informatika Universitas Tanjungpura."},about:{title:"Tentang Program Studi",desc:"Program Studi Informatika Universitas Tanjungpura adalah program yang berfokus pada pengembangan ilmu komputer, rekayasa perangkat lunak, dan inovasi teknologi informasi. Mahasiswa kami aktif berprestasi di tingkat regional, nasional, maupun internasional, membawa nama baik Kalimantan Barat ke panggung dunia.",tag:"Program Studi"},stats:{totalPrestasi:"Total Prestasi",totalProyek:"Total Proyek Mahasiswa"},achievement:{sectionTitle:"Prestasi Mahasiswa",sectionDesc:"Daftar pencapaian dan penghargaan yang diraih oleh mahasiswa Informatika UNTAN di berbagai kompetisi.",filterTitle:"Filter Prestasi",searchPlaceholder:"Cari nama, prestasi, bidang...",allLevel:"Semua Tingkat",allField:"Semua Bidang",allYear:"Semua Tahun",resetFilter:"Reset Filter",noData:"Tidak ada prestasi yang sesuai filter.",noDataSub:"Coba ubah pilihan filter atau kata kunci pencarian.",showing:"Menampilkan",matching:"prestasi yang sesuai filter",loadMore:"Muat Lebih Banyak",showLess:"Tampilkan Lebih Sedikit",allShown:"prestasi telah ditampilkan.",readMore:"Baca Selengkapnya"},project:{sectionTitle:"Top Projects & Portofolio",sectionDesc:"Jelajahi inovasi digital dan aplikasi nyata yang dikembangkan oleh mahasiswa Informatika UNTAN.",scrollHint:"← Geser untuk melihat lebih banyak →",explore:"Telusuri Lanjut",visitLink:"Kunjungi Proyek",noLink:"Link tidak tersedia",by:"oleh",readMore:"Baca Selengkapnya",filterTitle:"Filter Portofolio",searchPlaceholder:"Cari judul, mahasiswa, bidang...",allField:"Semua Bidang",allYear:"Semua Tahun",resetFilter:"Reset Filter",noData:"Tidak ada proyek yang sesuai filter.",noDataSub:"Coba ubah pilihan filter atau kata kunci pencarian.",showing:"Menampilkan",matching:"proyek yang sesuai filter",loadMore:"Muat Lebih Banyak",showLess:"Tampilkan Lebih Sedikit",allShown:"proyek telah ditampilkan."},modal:{close:"Tutup",nim:"NIM",angkatan:"Angkatan",tahun:"Tahun",tingkat:"Tingkat",bidang:"Bidang",kompetisi:"Kompetisi",peringkat:"Peringkat",tim:"Tim / Nama",deskripsi:"Deskripsi",mahasiswa:"Mahasiswa",link:"Link Proyek",namaProyek:"Nama Proyek"},cta:{badge:"HUBUNGI KAMI",title:"Ingin Tahu Lebih Lanjut?",desc:"Tertarik bergabung dengan Program Studi Informatika UNTAN, mendaftarkan prestasi mahasiswa, atau menjalin kerja sama? Hubungi kami sekarang.",waButton:"Chat via WhatsApp",webButton:"Kunjungi Website Kami",contactTitle:"Informasi Kontak",emailLabel:"Email",email:"informatika@untan.ac.id",phone:"+62 561 577963",address:"Jl. Prof. Dr. H. Hadari Nawawi, Bansir Laut, Pontianak Tenggara, 78124"},footer:{desc:`Program Studi Informatika, Universitas Tanjungpura. Jl. Prof. Dr. H. Hadari Nawawi, Bansir Laut, Kec. Pontianak Tenggara, Kota Pontianak, Kalimantan Barat 78124`,kategori:"Kategori",tautan:"Tautan Penting",berita:"Berita & Informasi",pengumuman:"Pengumuman Akademik",prestasi:"Prestasi Mahasiswa",siakad:"SIAKAD UNTAN",elearning:"E-Learning UNTAN",privacy:"Kebijakan Privasi",terms:"Syarat & Ketentuan",rights:"All rights reserved."}},en:{nav:{tentangKami:"About Us",program:"Programs",sdm:"Human Resources",fasilitas:"Facilities",karyaAgenda:"Works & Events",kontak:"Contact",satuUntan:"SATU UNTAN"},hero:{badge:"STUDENTS & ACHIEVEMENTS",title:"Student Spotlights & Achievements",desc:"Gallery of accomplishments, awards, and technology innovation portfolios developed by Informatics students of Tanjungpura University."},about:{title:"About the Study Program",desc:"The Informatics Study Program at Tanjungpura University focuses on computer science, software engineering, and information technology innovation. Our students actively excel at regional, national, and international levels, representing West Kalimantan on the world stage.",tag:"Study Program"},stats:{totalPrestasi:"Total Achievements",totalProyek:"Total Student Projects"},achievement:{sectionTitle:"Student Achievements",sectionDesc:"List of awards and accomplishments by Informatics UNTAN students in various competitions.",filterTitle:"Filter Achievements",searchPlaceholder:"Search name, achievement, field...",allLevel:"All Levels",allField:"All Fields",allYear:"All Years",resetFilter:"Reset Filter",noData:"No achievements match the current filter.",noDataSub:"Try adjusting your filter or search keyword.",showing:"Showing",matching:"matching achievements",loadMore:"Load More",showLess:"Show Less",allShown:"achievements displayed.",readMore:"Read More"},project:{sectionTitle:"Top Projects & Portfolios",sectionDesc:"Explore digital innovations and real-world applications developed by Informatics UNTAN students.",scrollHint:"← Swipe to see more →",explore:"Explore More",visitLink:"Visit Project",noLink:"Link unavailable",by:"by",readMore:"Read More",filterTitle:"Filter Portfolios",searchPlaceholder:"Search title, student, field...",allField:"All Fields",allYear:"All Years",resetFilter:"Reset Filter",noData:"No projects match the current filter.",noDataSub:"Try adjusting your filter or search keyword.",showing:"Showing",matching:"matching projects",loadMore:"Load More",showLess:"Show Less",allShown:"projects displayed."},modal:{close:"Close",nim:"Student ID",angkatan:"Batch",tahun:"Year",tingkat:"Level",bidang:"Field",kompetisi:"Competition",peringkat:"Rank",tim:"Team / Name",deskripsi:"Description",mahasiswa:"Student",link:"Project Link",namaProyek:"Project Name"},cta:{badge:"CONTACT US",title:"Want to Know More?",desc:"Interested in joining the Informatics Study Program at UNTAN, registering a student achievement, or establishing a partnership? Contact us now.",waButton:"Chat via WhatsApp",webButton:"Visit Our Website",contactTitle:"Contact Information",emailLabel:"Email",address:"Jl. Prof. Dr. H. Hadari Nawawi, Bansir Laut, Pontianak Tenggara, 78124"},footer:{desc:`Informatics Study Program, Tanjungpura University. Jl. Prof. Dr. H. Hadari Nawawi, Bansir Laut, Kec. Pontianak Tenggara, Pontianak City, West Kalimantan 78124`,kategori:"Categories",tautan:"Important Links",berita:"News & Information",pengumuman:"Academic Announcements",prestasi:"Student Achievements",siakad:"SIAKAD UNTAN",elearning:"E-Learning UNTAN",privacy:"Privacy Policy",terms:"Terms & Conditions",rights:"All rights reserved."}}},Th="if_untan_lang";function zh(){const r=localStorage.getItem(Th);return r==="id"||r==="en"?r:(navigator.language||"id").toLowerCase().startsWith("en")?"en":"id"}const Rd=$.createContext(null);function Ah({children:r}){const[j,E]=$.useState(zh);$.useEffect(()=>{const U=H=>{const Y=H.detail;((Y==null?void 0:Y.lang)==="en"||(Y==null?void 0:Y.lang)==="id")&&E(Y.lang)};return document.addEventListener("languageChanged",U),()=>document.removeEventListener("languageChanged",U)},[]);const s=()=>E(U=>U==="id"?"en":"id");return f.jsx(Rd.Provider,{value:{lang:j,t:Nh[j],toggleLang:s},children:r})}function Ee(){const r=$.useContext(Rd);if(!r)throw new Error("useLang must be used within LanguageProvider");return r}const Oa="https://api.ifuntanhub.dev",Bd={1:"Kecerdasan Buatan",2:"Cyber Security",3:"Data",4:"Software Engineering",5:"Competitive Programming",6:"IoT",7:"Smart City",8:"Web3",9:"Karya Tulis Ilmiah",10:"Robotik"};function jh(r){const j=r.match(/(Juara\s+\d+|Juara\s+Harapan\s*\d*|Top\s+\d+|Finalis|Peringkat\s+\d+|Medali\s+\w+)/i);return j?j[0]:"Pemenang"}function Eh(r,j){const E=`${r} ${j}`.toLowerCase();return E.includes("internasional")||E.includes("international")||E.includes("global")||E.includes("world")||E.includes("asean")||E.includes("unesco")?"Internasional":E.includes("regional")||E.includes("kalbar")||E.includes("kalimantan")||E.includes("provinsi")||E.includes("kota")||E.includes("kabupaten")||E.includes("lokal")?"Regional":"Nasional"}function _h(r){return r.replace(/^(Juara\s+\d+|Juara\s+Harapan\s*\d*|Top\s+\d+|Finalis|Peringkat\s+\d+|Medali\s+\w+)\s+(di\s+|pada\s+|dalam\s+)?/i,"").trim()}async function Mh(){const r=await fetch(`${Oa}/items/prestasi?fields=*.*`);if(!r.ok)throw new Error(`Failed to fetch achievements: ${r.statusText}`);return((await r.json()).data||[]).filter(s=>s.status==="published").map(s=>{const U=String(s.id),H=s.nama_prestasi||"Untitled Achievement";let Y="Umum";s.bidang_id&&(typeof s.bidang_id=="object"&&s.bidang_id.nama_bidang?Y=s.bidang_id.nama_bidang:Y=Bd[s.bidang_id]||"Umum");const W=jh(H),M=Eh(H,Y),p=_h(H),q=parseInt(s.tahun)||new Date().getFullYear(),_=Array.isArray(s.anggota)?s.anggota:[],X=s.nama_tim||(_.length>0?_[0].nama:"Mahasiswa");let Z=`https://picsum.photos/seed/prestasi-${U}/800/600`;if(s.galeri&&Array.isArray(s.galeri)&&s.galeri.length>0){const Sl=s.galeri[0],_l=typeof Sl=="string"?Sl:Sl.directus_files_id||Sl.id;_l&&(Z=`${Oa}/assets/${_l}`)}else s.foto&&(Z=`${Oa}/assets/${s.foto}`);const tl=(s.nama_tim||s.nama_prestasi||"IF").substring(0,2).toUpperCase(),Nl=s.deskripsi||`${X} berhasil meraih prestasi luar biasa sebagai ${W} dalam ajang ${p} tahun ${q} pada bidang ${Y.toLowerCase()}.`;return{id:U,title:H,category:Y,competition:p,rank:W,year:q,level:M,description:Nl,team:X,nim:s.nim||void 0,generation:s.angkatan?`Angkatan ${s.angkatan}`:"Informatika",image:Z,avatar:tl,members:_.map(Sl=>({nama:Sl.nama,angkatan:Sl.angkatan?parseInt(Sl.angkatan):void 0}))}})}async function Dh(){const r=await fetch(`${Oa}/items/portfolio?fields=*,bidang.bidang_id.nama_bidang,galeri.*`);if(!r.ok)throw new Error(`Failed to fetch portfolio: ${r.statusText}`);return((await r.json()).data||[]).filter(s=>s.status==="published").map(s=>{const U=String(s.id),H=s.nama_proyek||"Untitled Project",Y=Array.isArray(s.anggota)?s.anggota:[],W=s.nama_mahasiswa||(Y.length>0?Y[0].nama:"Mahasiswa"),M=parseInt(s.tahun)||new Date().getFullYear(),p=s.deskripsi||"Tidak ada deskripsi.";let q=[];s.bidang&&Array.isArray(s.bidang)&&(q=s.bidang.map(Z=>Z.bidang_id&&typeof Z.bidang_id=="object"&&Z.bidang_id.nama_bidang?Z.bidang_id.nama_bidang:typeof Z.bidang_id=="number"&&Bd[Z.bidang_id]||"Umum").filter(Boolean)),q.length===0&&(q=["Umum"]);let _=s.url||void 0;_&&!/^https?:\/\//i.test(_)&&(_=`https://${_}`);let X=`https://picsum.photos/seed/project-${U}/800/600`;if(s.galeri&&Array.isArray(s.galeri)&&s.galeri.length>0){const Z=s.galeri[0],tl=typeof Z=="string"?Z:Z.directus_files_id||Z.id;tl&&(X=`${Oa}/assets/${tl}`)}else s.foto&&(X=`${Oa}/assets/${s.foto}`);return{id:U,title:H,studentName:W,nim:s.nim||void 0,year:M,category:q,description:p,image:X,link:_,catatan:s.catatan||void 0,members:Y.map(Z=>({nama:Z.nama,nim:Z.nim||void 0}))}})}const qd=$.createContext(void 0);function Oh({children:r}){const[j,E]=$.useState([]),[s,U]=$.useState([]),[H,Y]=$.useState(!0),[W,M]=$.useState(null),p=async()=>{Y(!0),M(null);try{const q=await Promise.allSettled([Mh(),Dh()]),_=q[0],X=q[1];let Z=!1,tl=[];_.status==="fulfilled"?E(_.value):(console.error("Failed to fetch achievements:",_.reason),tl.push("Gagal memuat data prestasi."),Z=!0),X.status==="fulfilled"?U(X.value):(console.error("Failed to fetch projects:",X.reason),tl.push("Gagal memuat data portofolio."),Z=!0),Z&&M(tl.join(" "))}catch(q){console.error("Unexpected error loading API data:",q),M("Terjadi kesalahan yang tidak terduga saat memuat data.")}finally{Y(!1)}};return $.useEffect(()=>{p()},[]),f.jsx(qd.Provider,{value:{achievements:j,projects:s,loading:H,error:W,refetch:p},children:r})}function xf(){const r=$.useContext(qd);if(r===void 0)throw new Error("useData must be used within a DataProvider");return r}function Uh(){const{t:r}=Ee();return f.jsxs("div",{id:"hero",className:"acaab-full-bleed bg-untan-navy text-white pt-6 md:pt-8 lg:pt-10 mb-8 border-t border-white/10 relative overflow-hidden",children:[f.jsx("div",{className:"container mx-auto px-4 lg:px-8 relative z-10",children:f.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 lg:gap-10 items-center",children:[f.jsxs("div",{className:"max-w-3xl py-6 md:py-8 lg:py-10",children:[f.jsx("span",{className:"inline-block bg-untan-yellow text-slate-900 text-[10px] md:text-xs font-bold uppercase tracking-widest px-2 py-0.5 mb-3",children:r.hero.badge}),f.jsx("h1",{className:"text-2xl md:text-3xl lg:text-[36px] font-bold font-serif leading-tight md:leading-snug tracking-tight mb-3",children:r.hero.title}),f.jsx("p",{className:"text-slate-300 max-w-2xl text-sm md:text-base leading-relaxed",children:r.hero.desc})]}),f.jsxs("div",{className:"relative flex justify-center lg:justify-end items-end",children:[f.jsx("div",{className:"absolute bottom-0 w-[300px] h-[300px] bg-cyan-300/10 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative",children:[f.jsx("img",{src:new URL(""+new URL("acaab-hero.png",import.meta.url).href,import.meta.url).href,alt:"Mahasiswa Informatika UNTAN",className:`\r relative z-10\r w-full\r max-w-[300px]\r md:max-w-[420px]\r lg:max-w-[450px]\r h-auto\r object-contain\r opacity-95\r drop-shadow-[0_15px_35px_rgba(0,0,0,0.25)]\r hover:scale-[1.02]\r transition-all\r duration-500\r `}),f.jsx("div",{className:"absolute bottom-0 left-0 w-full h-40 bg-gradient-to-t from-untan-navy to-transparent z-20"}),f.jsx("div",{className:"absolute top-0 left-0 h-full w-20 bg-gradient-to-r from-untan-navy to-transparent z-20"})]})]})]})}),f.jsx("div",{className:"absolute top-0 right-0 -mr-20 -mt-20 w-80 h-80 bg-untan-yellow/10 rounded-full blur-3xl pointer-events-none"})]})}function Ch(r,j=1600){const[E,s]=$.useState(0),U=$.useRef(null),H=$.useRef(!1);return $.useEffect(()=>{H.current=!1;let Y,W;return W=new IntersectionObserver(([M])=>{if(M.isIntersecting&&!H.current){H.current=!0;let p=null;const q=_=>{p||(p=_);const X=Math.min((_-p)/j,1),Z=1-Math.pow(1-X,4);s(Math.round(r*Z)),X<1?Y=requestAnimationFrame(q):s(r)};Y=requestAnimationFrame(q)}},{threshold:.4}),U.current&&W.observe(U.current),()=>{W.disconnect(),Y&&cancelAnimationFrame(Y)}},[r,j]),{count:E,elRef:U}}function Mn({value:r,label:j,delay:E=0}){const{count:s,elRef:U}=Ch(r,1600+E);return f.jsxs("div",{ref:U,className:"flex flex-col items-center gap-1",style:{minWidth:"clamp(5rem, 10vw, 8rem)"},children:[f.jsx("div",{className:"font-display font-black text-primary-navy leading-none tabular-nums",style:{fontSize:"clamp(2.8rem, 6vw, 5rem)"},children:s}),f.jsx("div",{className:"font-display font-bold text-primary-navy text-center leading-tight uppercase tracking-wide",style:{fontSize:"clamp(0.6rem, 1.1vw, 0.8rem)"},children:j})]})}function Cd({title:r,children:j,flexClass:E="flex-1",cols:s="grid-cols-2 sm:grid-cols-4"}){return f.jsxs("div",{className:`flex flex-col gap-5 ${E}`,children:[f.jsx("div",{className:"bg-primary-navy text-white font-display font-bold text-center rounded-xl px-8 py-3 w-full uppercase tracking-wide",style:{fontSize:"clamp(0.85rem, 1.5vw, 1.05rem)"},children:r}),f.jsx("div",{className:`grid ${s} items-end justify-items-center gap-y-6 gap-x-2 pb-2`,children:j})]})}function Hh(){const{t:r,lang:j}=Ee(),{achievements:E,projects:s}=xf(),U=E.length,H=s.length,Y=E.filter(_=>_.level==="Internasional").length,W=E.filter(_=>_.level==="Nasional").length,M=E.filter(_=>_.level==="Regional").length,p=new Date().toLocaleDateString(j==="id"?"id-ID":"en-US",{day:"numeric",month:"long",year:"numeric"}),q=j==="id"?`Data Terkumpul Per ${p}`:`Data Collected As Of ${p}`;return f.jsxs("div",{id:"tentang",children:[f.jsx("section",{className:"relative z-10 mb-2 rounded-xl overflow-hidden shadow-[0_10px_30px_-10px_rgba(253,184,19,0.4)]",children:f.jsxs("div",{className:"bg-[#FDB813] relative px-6 md:px-10 py-7 md:py-9",children:[f.jsx("div",{className:"absolute inset-0 bg-white/5 mix-blend-overlay pointer-events-none"}),f.jsxs("div",{className:"relative flex flex-col md:flex-row md:items-start gap-8 md:gap-6",children:[f.jsxs(Cd,{title:j==="id"?"Total Prestasi":"Total Achievements",flexClass:"flex-[4]",children:[f.jsx(Mn,{value:U,label:j==="id"?"prestasi mahasiswa":"student achievements",delay:0}),f.jsx(Mn,{value:Y,label:j==="id"?"internasional":"international",delay:150}),f.jsx(Mn,{value:W,label:j==="id"?"nasional":"national",delay:300}),f.jsx(Mn,{value:M,label:"regional",delay:450})]}),f.jsx(Cd,{title:j==="id"?"Total Portofolio":"Total Portfolio",flexClass:"flex-[1.5]",cols:"grid-cols-1",children:f.jsx(Mn,{value:H,label:j==="id"?"proyek mahasiswa":"student projects",delay:200})})]})]})}),f.jsx("p",{className:"text-[9px] md:text-[10px] font-semibold text-slate-400 tracking-wide mb-16 text-right pr-1",children:q})]})}/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rh=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bh=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(j,E,s)=>s?s.toUpperCase():E.toLowerCase()),Hd=r=>{const j=Bh(r);return j.charAt(0).toUpperCase()+j.slice(1)},Yd=(...r)=>r.filter((j,E,s)=>!!j&&j.trim()!==""&&s.indexOf(j)===E).join(" ").trim(),qh=r=>{for(const j in r)if(j.startsWith("aria-")||j==="role"||j==="title")return!0};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Yh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wh=$.forwardRef(({color:r="currentColor",size:j=24,strokeWidth:E=2,absoluteStrokeWidth:s,className:U="",children:H,iconNode:Y,...W},M)=>$.createElement("svg",{ref:M,...Yh,width:j,height:j,stroke:r,strokeWidth:s?Number(E)*24/Number(j):E,className:Yd("lucide",U),...!H&&!qh(W)&&{"aria-hidden":"true"},...W},[...Y.map(([p,q])=>$.createElement(p,q)),...Array.isArray(H)?H:[H]]));/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yt=(r,j)=>{const E=$.forwardRef(({className:s,...U},H)=>$.createElement(wh,{ref:H,iconNode:j,className:Yd(`lucide-${Rh(Hd(r))}`,`lucide-${r}`,s),...U}));return E.displayName=Hd(r),E};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Gh=yt("arrow-right",Lh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qh=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],wd=yt("calendar",Qh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Pt=yt("chevron-down",Xh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zh=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Vh=yt("chevron-left",Zh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jh=yt("chevron-right",Kh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ld=yt("external-link",kh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $h=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Gd=yt("funnel",$h);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wh=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Fh=yt("message-circle",Wh);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ih=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Qd=yt("search",Ih);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ph=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],lv=yt("tag",Ph);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tv=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],ev=yt("trophy",tv);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const av=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],nv=yt("user",av);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ua=yt("x",uv);function iv({achievement:r,onReadMore:j}){const{t:E}=Ee();return f.jsxs("article",{className:"bg-white rounded-lg overflow-hidden group hover:-translate-y-1 transition-all duration-300 shadow-md hover:shadow-xl border border-slate-200 flex flex-col h-full relative",children:[f.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-primary-navy z-10 group-hover:bg-primary-gold transition-colors"}),f.jsxs("div",{className:"relative h-44 overflow-hidden bg-slate-100",children:[f.jsx("img",{src:r.image,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",referrerPolicy:"no-referrer",onError:s=>{s.target.src="https://placehold.co/800x600/003150/FDB813?text=Informatika+UNTAN"}}),f.jsxs("div",{className:"absolute top-2.5 left-2.5 bg-white/95 backdrop-blur text-primary-navy font-bold px-2 py-0.5 rounded shadow-sm flex items-center gap-1 text-[10px]",children:[f.jsx(ev,{size:12,className:"text-primary-gold"}),r.rank]})]}),f.jsxs("div",{className:"p-4 sm:p-5 flex flex-col flex-grow",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx("span",{className:"text-untan-blue text-[10px] font-bold uppercase tracking-wider",children:r.category}),f.jsxs("span",{className:"text-slate-400 text-[10px] font-medium flex items-center gap-1 border-l border-slate-300 pl-2",children:[f.jsx(wd,{size:10}),r.year]})]}),f.jsx("h3",{className:"text-lg font-bold font-display text-primary-navy mb-2 leading-snug group-hover:text-untan-blue transition-colors",children:r.title}),f.jsx("p",{className:"text-slate-600 text-xs leading-relaxed mb-4 line-clamp-3",children:r.description}),f.jsxs("div",{className:"mt-auto border-t border-slate-100 pt-3",children:[f.jsxs("div",{className:"flex justify-between items-center mb-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-7 h-7 rounded bg-primary-navy/5 flex items-center justify-center text-primary-navy font-bold text-[10px] ring-1 ring-primary-navy/10",children:r.avatar}),f.jsxs("div",{children:[f.jsx("span",{className:"font-bold text-slate-800 block text-xs leading-none mb-0.5",children:r.team}),f.jsx("span",{className:"text-slate-500 block text-[10px] leading-none",children:r.generation})]})]}),f.jsx("span",{className:"bg-slate-100 text-slate-600 text-[9px] px-1.5 py-0.5 rounded font-bold uppercase tracking-wide",children:r.level})]}),f.jsx("button",{onClick:()=>j(r),className:"w-full py-2 rounded bg-primary-navy/5 text-primary-navy font-bold hover:bg-primary-navy/10 hover:text-untan-blue transition-all duration-300 text-xs min-h-[38px] flex items-center justify-center gap-1.5",children:E.achievement.readMore})]})]})]})}function cv({achievement:r,onClose:j}){const{t:E}=Ee();return $.useEffect(()=>(r&&(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"),()=>{document.documentElement.style.overflow="",document.body.style.overflow=""}),[r]),r?f.jsx("div",{className:"fixed inset-0 z-[300] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:j,"aria-modal":"true",role:"dialog","aria-label":r.title,children:f.jsxs("div",{className:"bg-white rounded-xl max-w-lg w-full max-h-[90vh] overflow-y-auto shadow-2xl animate-fade-in",onClick:s=>s.stopPropagation(),children:[f.jsxs("div",{className:"relative h-56 md:h-64 overflow-hidden rounded-t-xl bg-slate-200 shrink-0",children:[f.jsx("img",{src:r.image,alt:r.title,className:"w-full h-full object-cover",referrerPolicy:"no-referrer"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),f.jsx("button",{onClick:j,"aria-label":E.modal.close,className:"absolute top-3 right-3 z-50 w-8 h-8 bg-slate-900/50 hover:bg-slate-900/80 backdrop-blur rounded-full flex items-center justify-center transition-colors shadow-md",children:f.jsx(Ua,{size:16,className:"text-white"})}),f.jsx("div",{className:"absolute bottom-3 left-4",children:f.jsx("span",{className:"bg-primary-gold text-black text-[10px] font-bold px-2.5 py-1 rounded shadow-sm flex items-center gap-1",children:r.rank})})]}),f.jsxs("div",{className:"p-6",children:[f.jsx("h2",{className:"text-lg font-bold text-slate-900 leading-snug mb-1",children:r.title}),f.jsxs("div",{className:"text-xs text-slate-400 mb-4 font-medium",children:[r.year," • ",r.category," • ",r.level]}),f.jsx("p",{className:"text-slate-600 text-xs leading-relaxed mb-5",children:r.description.replace(/\*\*/g,"")}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4 text-xs",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1",children:"Tim / Peserta"}),f.jsx("p",{className:"font-bold text-slate-900",children:r.team})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1",children:"Angkatan"}),f.jsx("p",{className:"font-bold text-slate-900",children:r.generation})]})]}),r.members&&r.members.length>0&&f.jsxs("div",{className:"border-t border-slate-100 pt-3",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-2",children:"Anggota Tim"}),f.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.members.map((s,U)=>f.jsxs("span",{className:"bg-slate-100 text-slate-600 text-[10px] px-2.5 py-1 rounded",children:[s.nama,s.angkatan?` (${s.angkatan})`:""]},U))})]})]})]})}):null}const Ae=3,fv=3;function sv(){const{t:r}=Ee(),{achievements:j,loading:E,error:s,refetch:U}=xf(),[H,Y]=$.useState(""),[W,M]=$.useState(""),[p,q]=$.useState(""),[_,X]=$.useState(""),[Z,tl]=$.useState(Ae),[Nl,Sl]=$.useState(null),_l=$.useMemo(()=>[...new Set(j.map(A=>A.category))].sort(),[j]),Zl=$.useMemo(()=>[...new Set(j.map(A=>A.year))].sort((A,G)=>G-A),[j]),vl=$.useMemo(()=>{const A=H.toLowerCase().trim();return j.filter(G=>{const Kl=!A||G.title.toLowerCase().includes(A)||G.team.toLowerCase().includes(A)||G.category.toLowerCase().includes(A)||G.competition.toLowerCase().includes(A),ut=!W||G.level===W,kl=!p||G.category===p,S=!_||String(G.year)===_;return Kl&&ut&&kl&&S})},[H,W,p,_,j]),Ml=vl.slice(0,Z),Vl=Z{Y(""),M(""),q(""),X(""),tl(Ae)},Dl=A=>G=>{A(G),tl(Ae)},Fl=()=>tl(A=>A+fv),Et=()=>{var A;tl(Ae),(A=document.getElementById("achievement-grid-section"))==null||A.scrollIntoView({behavior:"smooth",block:"start"})};return f.jsxs(f.Fragment,{children:[f.jsx(cv,{achievement:Nl,onClose:()=>Sl(null)}),f.jsxs("section",{id:"achievement-grid-section",className:"py-8 bg-white",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 lg:px-8 mb-8",children:[f.jsx("h2",{className:"text-3xl md:text-4xl font-black font-display text-primary-navy mb-2",children:r.achievement.sectionTitle}),f.jsx("p",{className:"text-slate-500 text-base max-w-2xl",children:r.achievement.sectionDesc})]}),f.jsxs("div",{className:"max-w-7xl mx-auto px-4 lg:px-8",children:[f.jsxs("div",{className:"bg-white/80 backdrop-blur-md p-4 rounded-lg shadow-sm border-t-4 border-primary-gold mb-8 space-y-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"text-base font-bold font-display text-primary-navy flex items-center gap-2",children:[f.jsx(Gd,{className:"text-primary-navy",size:18}),r.achievement.filterTitle]}),Rl&&f.jsxs("button",{onClick:F,className:"flex items-center gap-1 text-xs font-bold text-slate-500 hover:text-primary-navy transition-colors",children:[f.jsx(Ua,{size:13}),r.achievement.resetFilter]})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Qd,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),f.jsx("input",{id:"search-achievement",type:"text",value:H,onChange:A=>{Y(A.target.value),tl(Ae)},placeholder:r.achievement.searchPlaceholder,className:"w-full bg-slate-50 text-slate-700 text-sm rounded py-2 pl-9 pr-4 border border-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-gold"}),H&&f.jsx("button",{onClick:()=>{Y(""),tl(Ae)},className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600","aria-label":"Hapus pencarian",children:f.jsx(Ua,{size:14})})]}),f.jsxs("div",{className:"flex flex-wrap gap-3",children:[f.jsxs("div",{className:"relative flex-1 min-w-[130px]",children:[f.jsxs("select",{id:"filter-level",value:W,onChange:A=>Dl(M)(A.target.value),className:"w-full bg-slate-50 text-slate-700 font-bold text-sm rounded py-2 pl-4 pr-9 shadow-sm focus:ring-2 focus:ring-primary-gold appearance-none cursor-pointer border border-slate-200",children:[f.jsx("option",{value:"",children:r.achievement.allLevel}),f.jsx("option",{value:"Internasional",children:"Internasional"}),f.jsx("option",{value:"Nasional",children:"Nasional"}),f.jsx("option",{value:"Regional",children:"Regional"})]}),f.jsx(Pt,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),f.jsxs("div",{className:"relative flex-1 min-w-[130px]",children:[f.jsxs("select",{id:"filter-category",value:p,onChange:A=>Dl(q)(A.target.value),className:"w-full bg-slate-50 text-slate-700 font-bold text-sm rounded py-2 pl-4 pr-9 shadow-sm focus:ring-2 focus:ring-primary-gold appearance-none cursor-pointer border border-slate-200",children:[f.jsx("option",{value:"",children:r.achievement.allField}),_l.map(A=>f.jsx("option",{value:A,children:A},A))]}),f.jsx(Pt,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),f.jsxs("div",{className:"relative flex-1 min-w-[100px]",children:[f.jsxs("select",{id:"filter-year",value:_,onChange:A=>Dl(X)(A.target.value),className:"w-full bg-slate-50 text-slate-700 font-bold text-sm rounded py-2 pl-4 pr-9 shadow-sm focus:ring-2 focus:ring-primary-gold appearance-none cursor-pointer border border-slate-200",children:[f.jsx("option",{value:"",children:r.achievement.allYear}),Zl.map(A=>f.jsx("option",{value:String(A),children:A},A))]}),f.jsx(Pt,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]})]})]}),Rl&&f.jsxs("p",{className:"text-sm text-slate-500 font-medium mb-6",children:[r.achievement.showing," ",f.jsx("span",{className:"font-bold text-primary-navy",children:vl.length})," ",r.achievement.matching]}),E?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10",children:[1,2,3].map(A=>f.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 overflow-hidden shadow-sm animate-pulse",children:[f.jsx("div",{className:"h-52 bg-slate-200 w-full"}),f.jsxs("div",{className:"p-6 space-y-4",children:[f.jsx("div",{className:"h-4 bg-slate-200 rounded w-1/4"}),f.jsx("div",{className:"h-6 bg-slate-200 rounded w-3/4"}),f.jsx("div",{className:"h-4 bg-slate-200 rounded w-5/6"}),f.jsx("div",{className:"h-4 bg-slate-200 rounded w-2/3"}),f.jsx("div",{className:"h-10 bg-slate-200 rounded w-1/3 mt-4"})]})]},A))}):s?f.jsxs("div",{className:"text-center py-20 text-red-500",children:[f.jsx("p",{className:"text-lg font-semibold",children:"Gagal memuat data"}),f.jsx("p",{className:"text-sm mt-1",children:s}),f.jsx("button",{onClick:U,className:"mt-4 px-4 py-2 bg-primary-navy text-white font-bold rounded hover:bg-opacity-95 transition-all text-sm",children:"Coba Lagi"})]}):Ml.length===0?f.jsxs("div",{className:"text-center py-20 text-slate-400",children:[f.jsx("p",{className:"text-lg font-semibold",children:r.achievement.noData}),f.jsx("p",{className:"text-sm mt-1",children:r.achievement.noDataSub})]}):f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10",children:Ml.map(A=>f.jsx("div",{className:"animate-fade-in",children:f.jsx(iv,{achievement:A,onReadMore:G=>Sl(G)})},A.id))}),f.jsxs("div",{className:"mt-20 flex flex-wrap items-center justify-center gap-6",children:[Vl&&f.jsxs("button",{id:"load-more-achievement",onClick:Fl,className:"text-primary-navy font-black text-lg underline underline-offset-[12px] decoration-primary-gold decoration-4 hover:text-primary-gold transition-colors flex items-center gap-2",children:[r.achievement.loadMore,f.jsx(Pt,{size:20})]}),!Vl&&Ml.length>0&&vl.length>Ae&&f.jsxs("p",{className:"text-slate-400 text-sm font-medium",children:[r.achievement.showing," ",vl.length," ",r.achievement.allShown]}),Z>Ae&&Ml.length>0&&f.jsxs("button",{onClick:Et,className:"text-slate-400 font-bold text-sm underline underline-offset-4 decoration-slate-300 decoration-2 hover:text-slate-600 transition-colors flex items-center gap-1.5",children:[f.jsx(Pt,{size:16,className:"rotate-180"}),r.achievement.showLess]})]})]})]})]})}function ov({project:r,onClose:j}){const{t:E}=Ee();return $.useEffect(()=>(r&&(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"),()=>{document.documentElement.style.overflow="",document.body.style.overflow=""}),[r]),r?f.jsx("div",{className:"fixed inset-0 z-[300] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:j,"aria-modal":"true",role:"dialog","aria-label":r.title,children:f.jsxs("div",{className:"bg-white rounded-xl max-w-lg w-full max-h-[90vh] overflow-y-auto shadow-2xl animate-fade-in",onClick:s=>s.stopPropagation(),children:[f.jsxs("div",{className:"relative h-56 md:h-64 overflow-hidden rounded-t-xl bg-slate-200 shrink-0",children:[f.jsx("img",{src:r.image,alt:r.title,className:"w-full h-full object-cover",referrerPolicy:"no-referrer"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),f.jsx("button",{onClick:j,"aria-label":E.modal.close,className:"absolute top-3 right-3 z-50 w-8 h-8 bg-slate-900/50 hover:bg-slate-900/80 backdrop-blur rounded-full flex items-center justify-center transition-colors shadow-md",children:f.jsx(Ua,{size:16,className:"text-white"})}),r.category&&r.category.length>0&&f.jsx("div",{className:"absolute bottom-3 left-4 flex flex-wrap gap-1.5",children:r.category.map((s,U)=>f.jsx("span",{className:"bg-primary-gold text-slate-900 text-[10px] font-bold px-2.5 py-1 rounded shadow-sm flex items-center gap-1 uppercase tracking-wide",children:s},U))})]}),f.jsxs("div",{className:"p-6",children:[f.jsx("h2",{className:"text-lg font-bold text-slate-900 leading-snug mb-1",children:r.title}),r.category&&r.category.length>0&&f.jsxs("div",{className:"text-xs text-slate-400 mb-4 font-medium",children:[r.year," • ",r.category.join(", ")]}),f.jsx("p",{className:"text-slate-600 text-xs leading-relaxed mb-5",children:r.description}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4 text-xs",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1",children:"Mahasiswa"}),f.jsx("p",{className:"font-bold text-slate-900",children:r.studentName})]}),r.nim&&f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1",children:"NIM"}),f.jsx("p",{className:"font-bold text-slate-900",children:r.nim})]})]}),r.members&&r.members.length>0&&f.jsxs("div",{className:"border-t border-slate-100 pt-3 mb-4",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-2",children:"Anggota Tim"}),f.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.members.map((s,U)=>f.jsxs("span",{className:"bg-slate-100 text-slate-600 text-[10px] px-2.5 py-1 rounded",children:[s.nama,s.nim?` (${s.nim})`:""]},U))})]}),r.catatan&&f.jsxs("div",{className:"mb-4 p-2.5 bg-blue-50/50 border border-blue-100 rounded-lg",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-blue-400 mb-1",children:"Catatan Tambahan"}),f.jsx("p",{className:"text-xs text-slate-600 italic",children:r.catatan})]}),r.link&&f.jsxs("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full py-2.5 bg-[#003150] text-white font-bold rounded-lg hover:bg-[#1e40af] transition-colors duration-200 text-sm",children:[f.jsx(Ld,{size:14}),E.project.visitLink]})]})]})}):null}const je=6,rv=3;function dv(){const{t:r}=Ee(),{projects:j,loading:E,error:s,refetch:U}=xf(),H=$.useRef(null),[Y,W]=$.useState(null),[M,p]=$.useState(je),[q,_]=$.useState(""),[X,Z]=$.useState(""),[tl,Nl]=$.useState(""),Sl=$.useMemo(()=>[...new Set(j.flatMap(A=>A.category))].sort(),[j]),_l=$.useMemo(()=>[...new Set(j.map(A=>A.year))].sort((A,G)=>G-A),[j]),Zl=$.useMemo(()=>{const A=q.toLowerCase().trim();return j.filter(G=>{const Kl=!A||G.title.toLowerCase().includes(A)||G.studentName.toLowerCase().includes(A)||G.category.join(" ").toLowerCase().includes(A)||G.description.toLowerCase().includes(A),ut=!X||G.category.includes(X),kl=!tl||String(G.year)===tl;return Kl&&ut&&kl})},[q,X,tl,j]),vl=Zl.slice(0,M),Ml=M{_(""),Z(""),Nl(""),p(je)},F=A=>G=>{A(G),p(je)},Dl=()=>p(A=>A+rv),Fl=()=>{var A;p(je),(A=document.getElementById("portofolio"))==null||A.scrollIntoView({behavior:"smooth",block:"start"})},Et=A=>{const G=H.current;if(!G)return;const Kl=G.firstElementChild?G.firstElementChild.offsetWidth+24:400;G.scrollBy({left:A==="right"?Kl:-Kl,behavior:"smooth"})};return f.jsxs(f.Fragment,{children:[f.jsx(ov,{project:Y,onClose:()=>W(null)}),f.jsx("section",{id:"portofolio",className:"py-16 bg-white relative overflow-hidden border-t border-slate-100",children:f.jsxs("div",{className:"max-w-7xl mx-auto px-4 lg:px-8",children:[f.jsxs("div",{className:"flex items-start justify-between mb-8 gap-4",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-3xl md:text-4xl font-black font-display text-primary-navy mb-3",children:r.project.sectionTitle}),f.jsx("p",{className:"text-base text-slate-500 font-medium max-w-2xl",children:r.project.sectionDesc})]}),f.jsxs("div",{className:"flex items-center gap-2 shrink-0 mt-1",children:[f.jsx("button",{onClick:()=>Et("left"),"aria-label":"Geser kiri",className:"w-10 h-10 rounded-full border-2 border-primary-navy/20 flex items-center justify-center text-primary-navy hover:bg-primary-navy hover:text-white hover:border-primary-navy transition-all duration-200 shadow-sm",children:f.jsx(Vh,{size:20})}),f.jsx("button",{onClick:()=>Et("right"),"aria-label":"Geser kanan",className:"w-10 h-10 rounded-full border-2 border-primary-navy/20 flex items-center justify-center text-primary-navy hover:bg-primary-navy hover:text-white hover:border-primary-navy transition-all duration-200 shadow-sm",children:f.jsx(Jh,{size:20})})]})]}),f.jsxs("div",{className:"bg-white/80 backdrop-blur-md p-4 rounded-lg shadow-sm border-t-4 border-primary-gold mb-8 space-y-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"text-base font-bold font-display text-primary-navy flex items-center gap-2",children:[f.jsx(Gd,{className:"text-primary-navy",size:18}),r.project.filterTitle]}),Vl&&f.jsxs("button",{onClick:Rl,className:"flex items-center gap-1 text-xs font-bold text-slate-500 hover:text-primary-navy transition-colors",children:[f.jsx(Ua,{size:13}),r.project.resetFilter]})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Qd,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),f.jsx("input",{id:"search-project",type:"text",value:q,onChange:A=>{_(A.target.value),p(je)},placeholder:r.project.searchPlaceholder,className:"w-full bg-slate-50 text-slate-700 text-sm rounded py-2 pl-9 pr-4 border border-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-gold"}),q&&f.jsx("button",{onClick:()=>{_(""),p(je)},className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600","aria-label":"Hapus pencarian",children:f.jsx(Ua,{size:14})})]}),f.jsxs("div",{className:"flex flex-wrap gap-3",children:[f.jsxs("div",{className:"relative flex-1 min-w-[160px]",children:[f.jsxs("select",{id:"filter-project-category",value:X,onChange:A=>F(Z)(A.target.value),className:"w-full bg-slate-50 text-slate-700 font-bold text-sm rounded py-2 pl-4 pr-9 shadow-sm focus:ring-2 focus:ring-primary-gold appearance-none cursor-pointer border border-slate-200",children:[f.jsx("option",{value:"",children:r.project.allField}),Sl.map(A=>f.jsx("option",{value:A,children:A},A))]}),f.jsx(Pt,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),f.jsxs("div",{className:"relative flex-1 min-w-[120px]",children:[f.jsxs("select",{id:"filter-project-year",value:tl,onChange:A=>F(Nl)(A.target.value),className:"w-full bg-slate-50 text-slate-700 font-bold text-sm rounded py-2 pl-4 pr-9 shadow-sm focus:ring-2 focus:ring-primary-gold appearance-none cursor-pointer border border-slate-200",children:[f.jsx("option",{value:"",children:r.project.allYear}),_l.map(A=>f.jsx("option",{value:String(A),children:A},A))]}),f.jsx(Pt,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]})]})]}),Vl&&f.jsxs("p",{className:"text-sm text-slate-500 font-medium mb-6",children:[r.project.showing," ",f.jsx("span",{className:"font-bold text-primary-navy",children:Zl.length})," ",r.project.matching]}),E?f.jsx("div",{className:"flex gap-6 overflow-x-auto pb-10 hide-scrollbar",children:[1,2,3].map(A=>f.jsxs("div",{className:"snap-start shrink-0 proj-card bg-white rounded-lg border border-slate-200 overflow-hidden shadow-md animate-pulse flex flex-col",children:[f.jsx("div",{className:"h-52 bg-slate-200 w-full"}),f.jsxs("div",{className:"p-5 space-y-4 flex-grow flex flex-col justify-between",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"h-4 bg-slate-200 rounded w-1/4"}),f.jsx("div",{className:"h-5 bg-slate-200 rounded w-3/4"}),f.jsx("div",{className:"h-4 bg-slate-200 rounded w-5/6"}),f.jsx("div",{className:"h-4 bg-slate-200 rounded w-2/3"})]}),f.jsx("div",{className:"h-10 bg-slate-200 rounded w-1/3 mt-4"})]})]},A))}):s?f.jsxs("div",{className:"text-center py-10 text-red-500 w-full",children:[f.jsx("p",{className:"text-lg font-semibold",children:"Gagal memuat portofolio"}),f.jsx("p",{className:"text-sm mt-1",children:s}),f.jsx("button",{onClick:U,className:"mt-4 px-4 py-2 bg-primary-navy text-white font-bold rounded hover:bg-opacity-95 transition-all text-sm",children:"Coba Lagi"})]}):vl.length===0?f.jsxs("div",{className:"text-center py-20 text-slate-400",children:[f.jsx("p",{className:"text-lg font-semibold",children:r.project.noData}),f.jsx("p",{className:"text-sm mt-1",children:r.project.noDataSub})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:H,className:"flex gap-6 overflow-x-auto pb-10 hide-scrollbar snap-x snap-mandatory",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:vl.map(A=>f.jsxs("div",{className:"snap-start shrink-0 proj-card bg-white rounded-lg overflow-hidden shadow-md border border-slate-200 group flex flex-col relative",children:[f.jsx("div",{className:"absolute top-0 left-0 w-1 h-full bg-primary-gold z-10 transition-transform origin-bottom group-hover:scale-y-110"}),f.jsxs("div",{className:"h-52 overflow-hidden relative",children:[f.jsx("img",{src:A.image,alt:A.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",referrerPolicy:"no-referrer",onError:G=>{G.target.src="https://placehold.co/800x600/003150/FDB813?text=Informatika+UNTAN"}}),A.category&&A.category.length>0&&f.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1.5 z-20",children:[A.category.slice(0,2).map((G,Kl)=>f.jsxs("span",{className:"bg-white/95 backdrop-blur text-primary-navy font-bold px-2.5 py-1 rounded shadow-sm flex items-center gap-1 text-[10px] uppercase tracking-wider",children:[f.jsx(lv,{size:10,className:"text-primary-gold"}),G]},Kl)),A.category.length>2&&f.jsx("span",{className:"bg-white/95 backdrop-blur text-primary-navy font-bold px-2 py-1 rounded shadow-sm flex items-center gap-1 text-[10px]",children:"(..)"})]}),f.jsx("div",{className:"absolute bottom-3 left-3 z-20 max-w-[85%]",children:f.jsx("h4",{className:"text-sm font-bold font-display text-slate-900 leading-snug",style:{display:"inline"},children:f.jsx("span",{className:"bg-white/55 backdrop-blur-sm px-2 py-0.5 rounded",style:{boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone",lineHeight:"1.9",textShadow:"0 0 8px rgba(255,255,255,0.8)"},children:A.title})})})]}),f.jsxs("div",{className:"p-5 flex flex-col flex-grow",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3 text-xs text-slate-500 font-medium",children:[A.studentName&&f.jsxs("span",{className:"flex items-center gap-1",children:[f.jsx(nv,{size:11,className:"text-slate-400"}),A.studentName]}),A.year&&f.jsxs("span",{className:"flex items-center gap-1",children:[f.jsx(wd,{size:11,className:"text-slate-400"}),A.year]})]}),f.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-5 flex-grow line-clamp-3",children:A.description}),f.jsxs("div",{className:"flex items-center gap-3 mt-auto",children:[f.jsxs("button",{onClick:()=>W(A),className:"text-primary-navy font-bold text-sm tracking-wide hover:text-untan-blue flex items-center gap-2 group/btn",style:{minHeight:"44px"},children:[r.project.readMore,f.jsx(Gh,{size:15,className:"group-hover/btn:translate-x-1 transition-transform"})]}),A.link&&f.jsxs("a",{href:A.link,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-primary-navy transition-colors border border-slate-200 hover:border-primary-navy/30 rounded px-3 py-2",style:{minHeight:"44px"},children:[f.jsx(Ld,{size:13}),r.project.visitLink]})]})]})]},A.id))}),f.jsx("p",{className:"text-center text-xs text-slate-400 font-medium mt-2 select-none",children:r.project.scrollHint}),f.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-6",children:[Ml&&f.jsxs("button",{id:"load-more-project",onClick:Dl,className:"text-primary-navy font-black text-base underline underline-offset-[10px] decoration-primary-gold decoration-4 hover:text-primary-gold transition-colors flex items-center gap-2",children:[r.project.loadMore,f.jsx(Pt,{size:18})]}),!Ml&&vl.length>0&&Zl.length>je&&f.jsxs("p",{className:"text-slate-400 text-sm font-medium",children:[r.project.showing," ",Zl.length," ",r.project.allShown]}),M>je&&vl.length>0&&f.jsxs("button",{onClick:Fl,className:"text-slate-400 font-bold text-sm underline underline-offset-4 decoration-slate-300 decoration-2 hover:text-slate-600 transition-colors flex items-center gap-1.5",children:[f.jsx(Pt,{size:16,className:"rotate-180"}),r.project.showLess]})]})]})]})})]})}const mv="6285123456789";function hv(){const{t:r,lang:j}=Ee(),E=`https://wa.me/${mv}?text=${encodeURIComponent(j==="id"?"Halo, saya ingin mendaftarkan prestasi atau karya saya.":"Hello, I would like to register my achievement or work.")}`;return f.jsx("section",{className:"acaab-full-bleed bg-untan-navy py-14 md:py-16 border-t border-white/10",children:f.jsx("div",{className:"max-w-7xl mx-auto px-4 lg:px-8",children:f.jsxs("div",{className:"bg-untan-yellow/10 border border-untan-yellow/20 rounded-2xl px-8 py-10 md:py-12 flex flex-col md:flex-row items-center justify-between gap-8",children:[f.jsxs("div",{className:"text-center md:text-left",children:[f.jsx("span",{className:"inline-block bg-untan-yellow text-slate-900 text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 mb-4 rounded-sm",children:r.cta.badge}),f.jsx("h2",{className:"text-white text-2xl md:text-3xl font-bold font-serif leading-snug mb-3",children:r.cta.title}),f.jsx("p",{className:"text-slate-300 text-sm md:text-base leading-relaxed max-w-lg",children:r.cta.desc})]}),f.jsx("div",{className:"flex flex-col items-center gap-3 shrink-0",children:f.jsxs("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2.5 bg-[#25D366] hover:bg-[#20c05a] text-white text-sm font-bold px-6 py-3 rounded-full transition-all hover:scale-105 shadow-lg shadow-[#25D366]/20 whitespace-nowrap",children:[f.jsx(Fh,{size:18}),r.cta.waButton]})})]})})})}function vv(){return f.jsx(Ah,{children:f.jsxs(Oh,{children:[f.jsx("nav",{className:"max-w-7xl mx-auto px-4 lg:px-8 py-4","aria-label":"Breadcrumb",children:f.jsxs("ol",{className:"flex items-center text-[10px] md:text-xs text-slate-500 font-medium tracking-wide uppercase",children:[f.jsx("li",{children:f.jsx("a",{href:"https://informatika.untan.ac.id",target:"_blank",rel:"noopener noreferrer",className:"hover:text-untan-blue transition-colors",children:"Beranda"})}),f.jsx("li",{children:f.jsx("span",{className:"mx-2 text-slate-300","aria-hidden":"true",children:"/"})}),f.jsx("li",{children:f.jsx("span",{className:"text-slate-800 font-bold","aria-current":"page",children:"Mahasiswa & Prestasi"})})]})}),f.jsx(Uh,{}),f.jsxs("section",{className:"acaab-full-bleed pb-20",children:[f.jsx("div",{className:"max-w-7xl mx-auto px-4 lg:px-8",children:f.jsx(Hh,{})}),f.jsx(sv,{}),f.jsx(dv,{})]}),f.jsx(hv,{})]})})}Sh.createRoot(document.getElementById("root")).render(f.jsx($.StrictMode,{children:f.jsx(vv,{})}));