1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,273911,e=>{"use strict";let t;var s=e.i(619273),r=(t=()=>s.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,r])},175555,915823,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],915823);var s=new class extends t{#e;#t;#s;constructor(){super(),this.#s=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,s],175555)},992571,e=>{"use strict";var t=e.i(619273);function s(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function r(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=s(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=r(e,t)},"infiniteQueryBehavior",0,function(e){return{onFetch:(i,a)=>{let n=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,l=i.state.data?.pages||[],c=i.state.data?.pageParams||[],d={pages:[],pageParams:[]},u=0,h=async()=>{let a=!1,h=(0,t.ensureQueryFn)(i.options,i.fetchOptions),p=async(e,s,r)=>{let n;if(a)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let o=(n={client:i.client,queryKey:i.queryKey,pageParam:s,direction:r?"backward":"forward",meta:i.options.meta},(0,t.addConsumeAwareSignal)(n,()=>i.signal,()=>a=!0),n),l=await h(o),{maxPages:c}=i.options,d=r?t.addToStart:t.addToEnd;return{pages:d(e.pages,l,c),pageParams:d(e.pageParams,s,c)}};if(o&&l.length){let e="backward"===o,t={pages:l,pageParams:c},i=(e?r:s)(n,t);d=await p(t,i,e)}else{let t=e??l.length;do{let e=0===u?c[0]??n.initialPageParam:s(n,d);if(u>0&&null==e)break;d=await p(d,e),u++}while(u<t)}return d};i.options.persister?i.fetchFn=()=>i.options.persister?.(h,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},a):i.fetchFn=h}}}])},114272,e=>{"use strict";var t=e.i(540143),s=e.i(88587),r=e.i(936553),i=class extends s.Removable{#r;#i;#a;#n;constructor(e){super(),this.#r=e.client,this.mutationId=e.mutationId,this.#a=e.mutationCache,this.#i=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter(t=>t!==e),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#o({type:"continue"})},s={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=(0,r.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});let i="pending"===this.state.status,a=!this.#n.canStart();try{if(i)t();else{this.#o({type:"pending",variables:e,isPaused:a}),this.#a.config.onMutate&&await this.#a.config.onMutate(e,this,s);let t=await this.options.onMutate?.(e,s);t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:a})}let r=await this.#n.start();return await this.#a.config.onSuccess?.(r,e,this.state.context,this,s),await this.options.onSuccess?.(r,e,this.state.context,s),await this.#a.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,e,this.state.context,s),this.#o({type:"success",data:r}),r}catch(t){try{await this.#a.config.onError?.(t,e,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,s)}catch(e){Promise.reject(e)}try{await this.#a.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,s)}catch(e){Promise.reject(e)}throw this.#o({type:"error",error:t}),t}finally{this.#a.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#i.forEach(t=>{t.onMutationUpdate(e)}),this.#a.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,i,"getDefaultState",0,a])},540143,e=>{"use strict";let t,s,r,i,a,n;var o=e.i(180166).systemSetTimeoutZero,l=(t=[],s=0,r=e=>{e()},i=e=>{e()},a=o,{batch:e=>{let n;s++;try{n=e()}finally{let e;--s||(e=t,t=[],e.length&&a(()=>{i(()=>{e.forEach(e=>{r(e)})})}))}return n},batchCalls:e=>(...t)=>{n(()=>{e(...t)})},schedule:n=e=>{s?t.push(e):a(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{a=e}});e.s(["notifyManager",0,l])},814448,793803,e=>{"use strict";var t=e.i(915823),s=new class extends t.Subscribable{#l=!0;#t;#s;constructor(){super(),this.#s=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#l!==e&&(this.#l=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#l}};e.s(["onlineManager",0,s],814448),e.i(619273),e.s(["pendingThenable",0,function(){let e,t,s=new Promise((s,r)=>{e=s,t=r});function r(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},s.reject=e=>{r({status:"rejected",reason:e}),t(e)},s}],793803)},286491,e=>{"use strict";e.i(247167);var t=e.i(619273),s=e.i(540143),r=e.i(936553),i=e.i(88587),a=class extends i.Removable{#c;#d;#u;#r;#n;#h;#p;constructor(e){super(),this.#p=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#u=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=l(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#h,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=l(this.options);void 0!==e.data&&(this.setState(o(e.data,e.dataUpdatedAt)),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,s){let r=(0,t.replaceData)(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),r}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){let s=this.#n?.promise;return this.#n?.cancel(e),s?s.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#c}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#p||this.#m()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,s){let i;if("idle"!==this.state.fetchStatus&&this.#n?.status()!=="rejected"){if(void 0!==this.state.data&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let a=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,a.signal)}
1)},o=()=>{let e,r=(0,t.ensureQueryFn)(this.options,s),i=(n(e={client:this.#r,queryKey:this.queryKey,meta:this.meta}),e);return(this.#p=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},l=(n(i={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o}),i);this.options.behavior?.onFetch(l,this),this.#d=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#n=(0,r.createRetryer)({initialPromise:s?.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof r.CancelledError&&e.revert&&this.setState({...this.#d,fetchStatus:"idle"}),a.abort()},onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let e=await this.#n.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof r.CancelledError){if(e.silent)return this.#n.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#o({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#o(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...n(t.data,this.options),fetchMeta:e.meta??null};case"success":let s={...t,...o(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#d=e.manual?s:void 0,s;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),s.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function n(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,r.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function o(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,r=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,a,"fetchState",0,n])},88587,e=>{"use strict";var t=e.i(180166),s=e.i(273911),r=e.i(619273),i=class{#f;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.isValidTimeout)(this.gcTime)&&(this.#f=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#f&&(t.timeoutManager.clearTimeout(this.#f),this.#f=void 0)}};e.s(["Removable",0,i])},936553,e=>{"use strict";var t=e.i(175555),s=e.i(814448),r=e.i(793803),i=e.i(273911),a=e.i(619273);function n(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||s.onlineManager.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,l,"canFetch",0,o,"createRetryer",0,function(e){let c,d=!1,u=0,h=(0,r.pendingThenable)(),p=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.onlineManager.isOnline())&&e.canRun(),m=()=>
1o(e.networkMode)&&e.canRun(),f=e=>{"pending"===h.status&&(c?.(),h.resolve(e))},y=e=>{"pending"===h.status&&(c?.(),h.reject(e))},x=()=>new Promise(t=>{c=e=>{("pending"!==h.status||p())&&t(e)},e.onPause?.()}).then(()=>{c=void 0,"pending"===h.status&&e.onContinue?.()}),g=()=>{let t;if("pending"!==h.status)return;let s=0===u?e.initialPromise:void 0;try{t=s??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if("pending"!==h.status)return;let s=e.retry??3*!i.environmentManager.isServer(),r=e.retryDelay??n,o="function"==typeof r?r(u,t):r,l=!0===s||"number"==typeof s&&u<s||"function"==typeof s&&s(u,t);d||!l?y(t):(u++,e.onFail?.(u,t),(0,a.sleep)(o).then(()=>p()?void 0:x()).then(()=>{d?y(t):g()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let s=new l(t);y(s),e.onCancel?.(s)}},continue:()=>(c?.(),h),cancelRetry:()=>{d=!0},continueRetry:()=>{d=!1},canStart:m,start:()=>(m()?g():x().then(g),h)}}])},180166,e=>{"use strict";e.i(247167);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#y=t;#x=!1;setTimeoutProvider(e){this.#y=e}setTimeout(e,t){return this.#y.setTimeout(e,t)}clearTimeout(e){this.#y.clearTimeout(e)}setInterval(e,t){return this.#y.setInterval(e,t)}clearInterval(e){this.#y.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,s])},619273,e=>{"use strict";e.i(247167);var t=e.i(180166),s="u"<typeof window||"Deno"in globalThis;function r(e,t){return(t?.queryKeyHashFn||i)(e)}function i(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function a(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(s=>a(e[s],t[s]))}var n=Object.prototype.hasOwnProperty;function o(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!c(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;return!!c(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}var d=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,s){let r,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),i||(i=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),e},"addToEnd",0,function(e,t,s=0){let r=[...e,t];return s&&r.length>s?r.slice(1):r},"addToStart",0,function(e,t,s=0){let r=[t,...e];return s&&r.length>s?r.slice(0,-1):r},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,i,"hashQueryKeyByOptions",0,r,"isServer",0,s,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:s,status:r,predicate:n,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(s){if(i(t.options.mutationKey)!==i(o))return!1}else if(!a(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:s="all",exact:i,fetchStatus:n,predicate:o,queryKey:l,stale:c}=e;if(l){if(i){if(t.queryHash!==r(l,t.options))return!1}else if(!a(t.queryKey,l))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!n||n===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,a,"replaceData",0,function(e,t,s){return"function"==typeof s.structuralSharing?s.structuralSharing(e,t):!1!==s.structuralSharing?function e(t,s,r=0){if(t===s)return t;if(r>500)return s;let i=o(t)&&o(s);if(!i&&!(l(t)&&l(s)))return s;let a=(i?t:Object.keys(t)).length,c=i?s:Object.keys(s),d=c.length,u=i?Array(d):{},h=0;for(let o=0;o<d;o++){let l=i?o:c[o],d=t[l],p=s[l];if(d===p){u[l]=d,(i?o<a:n.call(t,l))&&h++;continue}if(null===d||null===p||"object"!=typeof d||"object"!=typeof p){u[l]=p;continue}let m=e(d,p,r+1);u[l]=m,m===d&&h++}return a===d&&h===a?t:u}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let s in e)if(e[s]!==t[s])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(s=>{t.timeoutManager.setTimeout(s,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},912598,e=>{"use strict";var t=e.i(271645),s=e.i(843476),r=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(r.Provider,{value:e,children:i})),"useQueryClient",0,e=>{let s=t.useContext(r);if(e)return e;if(!s)throw Error("No QueryClient set, use QueryClientProvider to set one");return s}])},88653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(231178),i=e.i(947414),a=e.i(674008),n=e.i(821476),o=e.i(772846),l=s,c=e.i(369110);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,s=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=s-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:r,anchorX:i,anchorY:a,root:n,pop:o}){let p=(0,l.useId)(),m=(0,l.useRef)(null),f=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:y}=(0,l.useContext)(c.MotionConfigContext),x=function(...e){return s.useCallback(function(...e){return t=>{let s=!1,r=e.map(e=>{let r=d(e,t);return s||"function"!=typeof r||(s=!0),r});if(s)return()=>{for(let t=0;t<r.length;t++){let s=r[t];"function"==typeof s?s():d(e[t],null)}}}}(...e),e)}(m,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:l,right:c,bottom:d}=f.current;if(r||!1===o||!m.current||!e||!t)return;
1let u="left"===i?`left: ${l}`:`right: ${c}`,h="bottom"===a?`bottom: ${d}`:`top: ${s}`;m.current.dataset.motionPopId=p;let x=document.createElement("style");y&&(x.nonce=y);let g=n??document.head;return g.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${p}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${u}px !important; 7 ${h}px !important; 8 } 9 `),()=>{m.current?.removeAttribute("data-motion-pop-id"),g.contains(x)&&g.removeChild(x)}},[r]),(0,t.jsx)(u,{isPresent:r,childRef:m,sizeRef:f,pop:o,children:!1===o?e:l.cloneElement(e,{ref:x})})}let p=({children:e,initial:r,isPresent:a,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:d,anchorX:u,anchorY:p,root:f})=>{let y=(0,i.useConstant)(m),x=(0,s.useId)(),g=!0,b=(0,s.useMemo)(()=>(g=!1,{id:x,initial:r,isPresent:a,custom:l,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;o&&o()},register:e=>(y.set(e,!1),()=>y.delete(e))}),[a,y,o]);return c&&g&&(b={...b}),(0,s.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[a]),s.useEffect(()=>{a||y.size||!o||o()},[a]),e=(0,t.jsx)(h,{pop:"popLayout"===d,isPresent:a,anchorX:u,anchorY:p,root:f,children:e}),(0,t.jsx)(n.PresenceContext.Provider,{value:b,children:e})};function m(){return new Map}var f=e.i(464978);let y=e=>e.key||"";function x(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:n,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:h="left",anchorY:m="top",root:g})=>{let[b,v]=(0,f.usePresence)(u),w=(0,s.useMemo)(()=>x(e),[e]),k=u&&!b?[]:w.map(y),j=(0,s.useRef)(!0),S=(0,s.useRef)(w),C=(0,i.useConstant)(()=>new Map),M=(0,s.useRef)(new Set),[E,N]=(0,s.useState)(w),[A,F]=(0,s.useState)(w);(0,a.useIsomorphicLayoutEffect)(()=>{j.current=!1,S.current=w;for(let e=0;e<A.length;e++){let t=y(A[e]);k.includes(t)?(C.delete(t),M.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[A,k.length,k.join("-")]);let L=[];if(w!==E){let e=[...w];for(let t=0;t<A.length;t++){let s=A[t],r=y(s);k.includes(r)||(e.splice(t,0,s),L.push(s))}return"wait"===d&&L.length&&(e=L),F(x(e)),N(w),null}let{forceRender:T}=(0,s.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:A.map(e=>{let s=y(e),r=(!u||!!b)&&(w===A||k.includes(s));return(0,t.jsx)(p,{isPresent:r,initial:(!j.current||!!o)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:g,onExitComplete:r?void 0:()=>{if(M.current.has(s)||!C.has(s))return;M.current.add(s),C.set(s,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(T?.(),F(S.current),u&&v?.(),l&&l())},anchorX:h,anchorY:m,children:e},s)})})}],88653)},245423,e=>{"use strict";let t=(0,e.i(475254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,t],245423)},810980,e=>{"use strict";let t=(0,e.i(475254).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,t],810980)},531245,e=>{"use strict";let t=(0,e.i(475254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],531245)},63727,e=>{"use strict";let t=(0,e.i(475254).default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);e.s(["Briefcase",0,t],63727)},87316,e=>{"use strict";let t=(0,e.i(475254).default)("calendar",[["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"}]]);e.s(["Calendar",0,t],87316)},643531,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],643531)},664659,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],664659)},373375,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],373375)},463059,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],463059)},974875,e=>{"use strict";let t=(0,e.i(475254).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["HelpCircle",0,t],974875)},503116,e=>{"use strict";let t=(0,e.i(475254).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],503116)},174886,e=>{"use strict";
9let t=(0,e.i(475254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],174886)},561659,e=>{"use strict";let t=(0,e.i(475254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",0,t],561659)},778917,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["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"}]]);e.s(["ExternalLink",0,t],778917)},178583,e=>{"use strict";let t=(0,e.i(475254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],178583)},730699,e=>{"use strict";let t=(0,e.i(475254).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);e.s(["Gift",0,t],730699)},32095,e=>{"use strict";let t=(0,e.i(475254).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,t],32095)},952571,e=>{"use strict";let t=(0,e.i(475254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],952571)},260289,e=>{"use strict";let t=(0,e.i(475254).default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["LayoutDashboard",0,t],260289)},2157,e=>{"use strict";let t=(0,e.i(475254).default)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);e.s(["LifeBuoy",0,t],2157)},341240,e=>{"use strict";let t=(0,e.i(475254).default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);e.s(["Lightbulb",0,t],341240)},292270,e=>{"use strict";let t=(0,e.i(475254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],292270)},263488,e=>{"use strict";let t=(0,e.i(475254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],263488)},686311,e=>{"use strict";let t=(0,e.i(475254).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],686311)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],107233)},16715,e=>{"use strict";let t=(0,e.i(475254).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],16715)},367240,e=>{"use strict";let t=(0,e.i(475254).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],367240)},555436,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],555436)},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
9y:"oel41y"}]]);e.s(["Shield",0,t],98919)},150965,e=>{"use strict";let t=(0,e.i(475254).default)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);e.s(["ShoppingBag",0,t],150965)},752044,e=>{"use strict";let t=(0,e.i(475254).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],752044)},620278,e=>{"use strict";let t=(0,e.i(475254).default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,t],620278)},727612,e=>{"use strict";let t=(0,e.i(475254).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],727612)},25652,e=>{"use strict";let t=(0,e.i(475254).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],25652)},878894,e=>{"use strict";let t=(0,e.i(475254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],878894)},284614,e=>{"use strict";let t=(0,e.i(475254).default)("user",[["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"}]]);e.s(["User",0,t],284614)},278716,e=>{"use strict";let t=(0,e.i(475254).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",0,t],278716)},733060,e=>{"use strict";let t=(0,e.i(475254).default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);e.s(["Wand2",0,t],733060)},37727,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},39312,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],39312)},381490,e=>{"use strict";e.s(["STUDENT_BILLING_ENABLED",0,!1])},437377,e=>{"use strict";var t=e.i(843476);let s="#10B981";e.s(["LumiLogo",0,function({className:e="h-7"}){return(0,t.jsxs)("svg",{width:"171.89",height:"23.61",viewBox:"0 0 171.89 23.61",fill:"none",role:"img","aria-label":"LumiJobs",className:`w-auto ${e}`,children:[(0,t.jsx)("path",{d:"M0 7.777h4.755l3.17 10.567h11.096v4.756H0z",fill:"currentColor"}),(0,t.jsx)("rect",{x:"0",y:"0.38",width:"5.812",height:"5.812",rx:"1.691",fill:s}),(0,t.jsx)("path",{d:"M43.504 23.100L28.560 23.100L28.560 0.380L32.720 0.380L32.720 21.820L30.448 19.484L43.504 19.484M51.984 23.484Q49.392 23.484 47.872 21.772Q46.352 20.060 46.352 17.020L46.352 6.012L50.448 6.012L50.448 15.996Q50.448 18.140 51.168 19.148Q51.888 20.156 53.360 20.156Q55.024 20.156 55.936 19.052Q56.848 17.948 56.848 15.836L56.848 6.012L60.944 6.012L60.944 23.100L57.200 23.100L57.104 18.396L57.616 18.556Q57.232 20.988 55.792 22.236Q54.352 23.484 51.984 23.484M68.912 23.100L64.816 23.100L64.816 6.012L68.528 6.012L68.656 10.204L68.272 10.012Q68.560 8.636 69.280 7.660Q70 6.684 71.040 6.156Q72.080 5.628 73.328 5.628Q75.504 5.628 76.848 6.860Q78.192 8.092 78.544 10.236L78 10.236Q78.288 8.732 78.992 7.724Q79.696 6.716 80.768 6.172Q81.840 5.628 83.184 5.628Q84.944 5.628 86.224 6.380Q87.504 7.132 88.192 8.572Q88.880 10.012 88.880 12.124L88.880 23.100L84.784 23.100L84.784 13.180Q84.784 11.068 84.064 10.012Q83.344 8.956 81.872 8.956Q80.880 8.956 80.176 9.468Q79.472 9.980 79.104 10.956Q78.736 11.932 78.736 13.308L78.736 23.100L74.928 23.100L74.928 13.308Q74.928 11.196 74.288 10.
9076Q73.648 8.956 72.080 8.956Q71.088 8.956 70.400 9.468Q69.712 9.980 69.312 10.956Q68.912 11.932 68.912 13.308M96.816 23.100L92.720 23.100L92.720 6.012L96.816 6.012L96.816 23.100M108.176 23.612Q105.712 23.612 103.920 22.540Q102.128 21.468 101.184 19.564Q100.240 17.660 100.208 15.228L104.400 15.004Q104.464 17.500 105.440 18.748Q106.416 19.996 108.176 19.996Q109.968 19.996 110.960 18.732Q111.952 17.468 111.952 15.004L111.952 0.380L116.112 0.380L116.112 15.004Q116.112 17.628 115.120 19.564Q114.128 21.500 112.352 22.556Q110.576 23.612 108.176 23.612M127.216 23.484Q124.688 23.484 122.784 22.380Q120.880 21.276 119.840 19.260Q118.800 17.244 118.800 14.556Q118.800 11.836 119.840 9.836Q120.880 7.836 122.784 6.732Q124.688 5.628 127.216 5.628Q129.744 5.628 131.632 6.732Q133.520 7.836 134.560 9.836Q135.600 11.836 135.600 14.556Q135.600 17.244 134.560 19.260Q133.520 21.276 131.632 22.380Q129.744 23.484 127.216 23.484M127.216 20.156Q129.200 20.156 130.272 18.684Q131.344 17.212 131.344 14.556Q131.344 11.932 130.272 10.444Q129.200 8.956 127.216 8.956Q125.232 8.956 124.144 10.444Q123.056 11.932 123.056 14.556Q123.056 17.212 124.144 18.684Q125.232 20.156 127.216 20.156M147.632 23.484Q145.840 23.484 144.512 22.716Q143.184 21.948 142.448 20.572L142.352 23.100L138.448 23.100L138.448 0.380L142.544 0.380L142.544 8.444Q143.248 7.260 144.560 6.444Q145.872 5.628 147.632 5.628Q149.840 5.628 151.456 6.732Q153.072 7.836 153.952 9.836Q154.832 11.836 154.832 14.556Q154.832 17.276 153.952 19.276Q153.072 21.276 151.456 22.380Q149.840 23.484 147.632 23.484M146.704 20.156Q148.464 20.156 149.520 18.668Q150.576 17.180 150.576 14.556Q150.576 11.900 149.536 10.428Q148.496 8.956 146.736 8.956Q145.424 8.956 144.480 9.612Q143.536 10.268 143.040 11.516Q142.544 12.764 142.544 14.556Q142.544 16.284 143.040 17.548Q143.536 18.812 144.464 19.484Q145.392 20.156 146.704 20.156M164.624 23.484Q162.032 23.484 160.320 22.748Q158.608 22.012 157.712 20.700Q156.816 19.388 156.688 17.724L160.880 17.532Q161.104 18.876 161.968 19.612Q162.832 20.348 164.656 20.348Q166.096 20.348 166.848 19.884Q167.600 19.420 167.600 18.428Q167.600 17.852 167.328 17.468Q167.056 17.084 166.272 16.796Q165.488 16.508 163.984 16.220Q161.392 15.772 159.920 15.116Q158.448 14.460 157.856 13.468Q157.264 12.476 157.264 11.004Q157.264 8.604 159.104 7.116Q160.944 5.628 164.496 5.628Q166.960 5.628 168.544 6.412Q170.128 7.196 170.944 8.492Q171.760 9.788 171.888 11.388L167.728 11.580Q167.696 10.780 167.344 10.140Q166.992 9.500 166.288 9.132Q165.584 8.764 164.432 8.764Q162.992 8.764 162.240 9.340Q161.488 9.916 161.488 10.876Q161.488 11.548 161.792 11.996Q162.096 12.444 162.832 12.716Q163.568 12.988 164.848 13.212Q167.472 13.596 169.008 14.268Q170.544 14.940 171.200 15.948Q171.856 16.956 171.856 18.364Q171.856 20.828 169.888 22.156Q167.920 23.484 164.624 23.484",fill:"currentColor"}),(0,t.jsx)("rect",{x:"92.618",y:"0.092",width:"4.3",height:"4.3",rx:"1.29",fill:s})]})},"LumiTile",0,function({className:e="h-9 w-9"}){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",role:"img","aria-label":"LumiJobs",className:e,children:[(0,t.jsx)("rect",{width:"32",height:"32",rx:"8",fill:"#1C1917"}),(0,t.jsx)("path",{d:"M7 12h4.5L14.5 22h10.5v4.5H7z",fill:"#FAFAF9"}),(0,t.jsx)("rect",{x:"7",y:"5",width:"5.5",height:"5.5",rx:"1.6",fill:s})]})}])},201575,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(618566),i=e.i(88653),a=e.i(846932),n=e.i(531245),o=e.i(283086),l=e.i(37727),c=e.i(367240),d=e.i(963032),u=e.i(241033),h=e.i(834912),p=e.i(363078),m=e.i(29938),f=e.i(377878),y=e.i(815062),x=e.i(374082),g=e.i(975157);function b(){return Math.random().toString(36).slice(2)}function v({onSelect:e,role:s,location:r,visa:i,skills:a,context:l}){let c=l?.line?l.line:s?`Explore ${s} roles where you'll shine as a top candidate.`:"Explore jobs where you'll shine as a top candidate.";return(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-4 pt-4 pb-2 w-full",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-xl bg-ds-accent-50 text-ds-accent-600 flex items-center justify-center shrink-0 mt-0.5",children:(0,t.jsx)(n.Bot,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"bg-ds-surface border border-ds-border rounded-2xl rounded-tl-sm px-3.5 py-2.5 text-[13px] text-ds-text-secondary leading-relaxed shadow-sm",children:c})]}),l?.prompt&&(0,t.jsxs)("button",{type:"button",onClick:()=>e(l.prompt),className:"flex items-center gap-2 w-full text-left rounded-xl border border-ds-accent-500/40 bg-ds-accent-50/70 px-3.5 py-2.5 hover:bg-ds-accent-50 transition-colors group",children:[(0,t.jsx)(o.Sparkles,{className:"h-3.5 w-3.5 text-ds-accent-600 shrink-0"}),(0,t.jsx)("span",{className:"text-[12.5px] font-medium text-ds-accent-700 flex-1",children:l.prompt}),(0,t.jsx)("span",{className:"text-ds-accent-600 text-[13px] group-hover:translate-x-0.5 transition-transform",children:"â"})]}),(0,t.jsxs)("div",{className:"rounded-2xl border border-ds-border bg-ds-bg/60 p-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,t.jsx)(o.Sparkles,{className:"h-3.5 w-3.5 text-ds-accent-600"}),(0,t.jsx)("p",{className:"text-[13px] font-bold text-ds-text-primary",children:"Ask ASTRA"})]}),(0,t.jsx)("p",{className:"text-[11.5px] text-ds-text-muted leading-relaxed mb-3",children:"Pick a starter question or type your own below. ASTRA can review your resume, prep you for interviews, suggest jobs, or walk
9you through a salary negotiation."}),(0,t.jsx)(p.default,{inline:!0,onSelect:e,role:s,location:r,visa:i,skills:a})]})]})}function w(){return(0,t.jsx)("div",{className:"flex justify-start px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-xl bg-ds-accent-50 text-ds-accent-600 flex items-center justify-center shrink-0",children:(0,t.jsx)(n.Bot,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"bg-ds-surface border border-ds-border rounded-2xl rounded-tl-sm px-4 py-3 shadow-sm",children:(0,t.jsxs)("div",{className:"flex gap-1.5 items-center h-4",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#9CA3AF] animate-bounce [animation-delay:0ms]"}),(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#9CA3AF] animate-bounce [animation-delay:150ms]"}),(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#9CA3AF] animate-bounce [animation-delay:300ms]"})]})})]})})}e.s(["default",0,function(){let e,n=(0,r.usePathname)(),{user:p,isAuthenticated:k}=(0,y.useAuth)(),{profile:j}=(0,f.useProfile)(),[S,C]=(0,s.useState)(!1),[M,E]=(0,s.useState)([]),[N,A]=(0,s.useState)(!1),[F,L]=(0,s.useState)(null),T=(0,s.useRef)(null),Q=(0,s.useRef)(null),P=(0,s.useRef)(!1),{streaming:R,streamTokens:O,stop:q}=(0,m.useCopilot)();(0,s.useEffect)(()=>{if(!p?.uid||P.current)return;let e=(0,x.loadAstraChat)(p.uid);e.length&&E(e),P.current=!0},[p?.uid]),(0,s.useEffect)(()=>{P.current&&p?.uid&&!R&&(0,x.saveAstraChat)(p.uid,M)},[M,R,p?.uid]),(0,s.useEffect)(()=>{if(!S||!p?.uid||R||N)return;let e=(0,x.loadAstraChat)(p.uid);e.length&&E(e)},[S,p?.uid]);let I="/copilot"===n,_=!!n?.startsWith("/interview/session/"),$=!!n?.startsWith("/interview/review/"),D="/"===n||n?.startsWith("/landing")||"/pricing"===n||"/terms"===n||"/privacy"===n||n?.startsWith("/signup")||n?.startsWith("/login");(0,s.useEffect)(()=>{let e=T.current;!e||e.scrollHeight-e.scrollTop-e.clientHeight<120&&(e.scrollTop=e.scrollHeight)},[M,N]),(0,s.useEffect)(()=>{if(S)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&C(!1)}},[S]);
9let[B,H]=(0,s.useState)("");(0,s.useEffect)(()=>{function e(e){let t=e.detail||{};C(!0),t.prompt?H(t.prompt):t.job&&H(`Tell me about the ${t.job.title} role at ${t.job.company} â is this a good fit for me?`)}return window.addEventListener("hf:open-astra",e),()=>window.removeEventListener("hf:open-astra",e)},[]),(0,s.useEffect)(()=>()=>{Q.current&&clearTimeout(Q.current),q()},[q]);let z=(0,s.useCallback)(e=>{if(R||N)return;L(null);let t={id:b(),role:"user",content:e};E(e=>[...e,t]),A(!0),E(t=>{let s,r=t.filter(e=>!e.streaming).map(e=>({role:e.role,content:e.content}));r.push({role:"user",content:e});let i=(s=e.toLowerCase(),/\b(interview|mock|prepare|preparation|question|behavioral|technical)\b/.test(s)?"interview_prep":/\b(resume|cv|ats|keyword|bullet|rewrite|tailor)\b/.test(s)?"resume_help":/\b(job|jobs|role|position|suggest|recommend|find me|hiring|apply)\b/.test(s)?"job_suggestions":"general"),a=b();return Q.current=setTimeout(()=>{A(!1),E(e=>[...e,{id:a,role:"assistant",content:"",streaming:!0}]),O(r,i,e=>{E(t=>t.map(t=>t.id===a?{...t,content:t.content+e}:t))},()=>{E(e=>e.flatMap(e=>e.id===a?e.content.trim()?[{...e,streaming:!1}]:[]:[e]))},e=>{E(e=>e.filter(e=>e.id!==a)),L(e)},{user_name:j?.name||void 0,user_role:j?.targetRole||void 0,user_location:j?.location||void 0,user_visa:j?.visaStatus||void 0,user_skills:j?.skills||void 0,user_years_exp:j?.yearsExp||void 0})},350),t})},[R,N,O,j]),U=(0,s.useCallback)(()=>{Q.current&&clearTimeout(Q.current),q(),A(!1)},[q]),W=(0,s.useCallback)(()=>{Q.current&&clearTimeout(Q.current),q(),E([]),A(!1),L(null),(0,x.removeAstraChat)(p?.uid)},[q,p?.uid]);if(!(k&&!I&&!D&&!_&&!$))return null;let G=0===M.length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.AnimatePresence,{children:!S&&(0,t.jsxs)(a.motion.button,{type:"button",onClick:()=>C(!0),"aria-label":"Ask ASTRA",initial:{opacity:0,scale:.8,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.85},whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:500,damping:30},className:"fixed bottom-[calc(5rem+env(safe-area-inset-bottom))] right-4 md:bottom-6 md:right-6 z-40 h-12 w-12 md:h-14 md:w-14 rounded-full bg-ds-accent-600 hover:bg-ds-accent-700 text-white shadow-[0_8px_24px_rgba(99,102,241,0.35)] flex items-center justify-center",children:[(0,t.jsx)(o.Sparkles,{"aria-hidden":"true",className:"h-5 w-5 md:h-6 md:w-6"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 rounded-full ring-2 ring-ds-accent-500/40 animate-ping pointer-events-none"})]},"fab")}),(0,t.jsx)(i.AnimatePresence,{children:S&&(0,t.jsxs)(a.motion.aside,{role:"dialog","aria-label":"ASTRA Copilot chat",initial:{opacity:0,x:24},animate:{opacity:1,x:0},exit:{opacity:0,x:16},transition:{duration:.25,ease:[.19,1,.22,1]},className:"fixed top-2 bottom-[calc(4.5rem+env(safe-area-inset-bottom))] right-2 left-2 md:top-4 md:left-auto md:bottom-4 md:right-4 z-[60] w-auto md:w-[380px] max-w-[calc(100vw-1rem)] bg-ds-surface border border-ds-border rounded-xl sm:rounded-2xl shadow-2xl flex flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-ds-border shrink-0",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-lg bg-ds-accent-600 text-white flex items-center justify-center shrink-0",children:(0,t.jsx)(o.Sparkles,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-[14px] font-bold text-ds-text-primary leading-none",children:"ASTRA"}),(0,t.jsx)("p",{className:"text-[11px] text-ds-text-muted mt-0.5",children:"Your AI job search assistant"})]}),!G&&(0,t.jsx)("button",{type:"button",onClick:W,"aria-label":"Clear chat",className:"h-8 w-8 rounded-lg hover:bg-ds-bg flex items-center justify-center text-ds-text-muted hover:text-ds-text-primary transition-colors",children:(0,t.jsx)(c.RotateCcw,{className:"h-4 w-4"})}),(0,t.jsx)("button",{type:"button",onClick:()=>C(!1),"aria-label":"Close ASTRA",className:"h-8 w-8 rounded-lg hover:bg-ds-bg flex items-center justify-center text-ds-text-muted hover:text-ds-text-primary transition-colors",children:(0,t.jsx)(l.X,{className:"h-4 w-4"})})]}),F&&(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-ds-error-bg border-b border-ds-error/30 text-ds-error-text text-[12px] shrink-0",children:[(0,t.jsx)(d.AlertCircle,{className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:F}),(0,t.jsx)("button",{onClick:()=>L(null),className:"text-ds-error-text hover:opacity-80 font-medium text-[11px]",children:"Dismiss"})]}),(0,t.jsx)("div",{ref:T,className:(0,g.cn)("flex-1 overflow-y-auto",G?"flex":"py-4"),children:G?(0,t.jsx)(v,{onSelect:z,role:j?.targetRole,location:j?.location,visa:j?.visaStatus,skills:j?.skills,context:(e=n||"").startsWith("/resume")||e.startsWith("/ats-score")?{line:"You're working on your resume.",prompt:"Review my resume and tell me the top 3 fixes to raise my ATS score."}:e.startsWith("/tracker")?{line:"You're viewing your applications.",prompt:"Draft a polite follow-up email for an application I sent about a week ago."}:e.startsWith("/interview")?{line:"Interview prep mode.",prompt:"Run a mock interview for my target role â start with a tough question."}:e.startsWith("/jobs")||e.startsWith("/j/")||e.startsWith("/search")?{line:"You're browsing jobs.",prompt:"Suggest 5 jobs that fit my skills and visa status, and explain why each matches."}:e.startsWith("/skills-gap")?{line:"Closing skill gaps.",prompt:"What single skill would most improve my match scores, and how do I learn it fast?"}:e.startsWith("/profile")?{line:"You're editing your profile.",prompt:"What should I add to my profile to improve my match scores?"}:e.startsWith("/cover-letter")?{line:"Working on a cover letter.",prompt:"Help me write a cover letter for my target role â ask me which company first."}:e.startsWith("/dashboard")?{line:"Here's your job search at a glance.",prompt:"What should I focus on today to move my job search forward?"}:null}):(0,t.jsxs)("div",{className:"w-full pb-2",children:[M.map(e=>(0,t.jsx)(u.default,{message:e},e.id)),N&&(0,t.jsx)(w,{})]})}),(0,t.jsx)(h.default,{onSend:e=>{z(e),H("")},onStop:U,streaming:R||N,seedPrompt:B})]},"panel")})]})},"openAstra",0,function(e={}){window.dispatchEvent(new CustomEvent("hf:open-astra",{detail:e}))}])},241033,834912,363078,29938,e=>{"use strict";
9var t=e.i(843476),s=e.i(975157),r=e.i(846932),i=e.i(531245),a=e.i(174886),n=e.i(643531),o=e.i(475254);let l=(0,o.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),c=(0,o.default)("thumbs-down",[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]]);var d=e.i(283086),u=e.i(271645);function h(){return(0,t.jsx)("span",{className:"inline-block w-0.5 h-4 bg-ds-accent-600 ml-0.5 align-middle animate-[blink_0.9s_step-end_infinite]"})}function p({text:e}){let[s,r]=(0,u.useState)(!1);return(0,t.jsx)("button",{"aria-label":s?"Message copied":"Copy message",onClick:()=>{navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)},className:"opacity-0 group-hover:opacity-100 p-1.5 rounded-lg hover:bg-ds-bg text-ds-text-muted hover:text-ds-text-secondary transition-all focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ds-accent-600",children:s?(0,t.jsx)(n.Check,{className:"h-3.5 w-3.5 text-ds-accent-600"}):(0,t.jsx)(a.Copy,{className:"h-3.5 w-3.5"})})}function m(){let[e,r]=(0,u.useState)(null);return(0,t.jsxs)("div",{className:"flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)("button",{type:"button",onClick:()=>r(e=>"up"===e?null:"up"),"aria-label":"Helpful response","aria-pressed":"up"===e,className:(0,s.cn)("p-1.5 rounded-lg transition-all","up"===e?"text-ds-accent-600 bg-ds-accent-50":"text-ds-text-muted hover:text-ds-text-secondary hover:bg-ds-bg"),children:(0,t.jsx)(l,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>r(e=>"down"===e?null:"down"),"aria-label":"Unhelpful response","aria-pressed":"down"===e,className:(0,s.cn)("p-1.5 rounded-lg transition-all","down"===e?"text-ds-error bg-ds-error-bg":"text-ds-text-muted hover:text-ds-text-secondary hover:bg-ds-bg"),children:(0,t.jsx)(c,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})]})}function f(e,s){let r=[],i=/(\*\*[^*]+\*\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g,a=0,n=0,o;for(;null!==(o=i.exec(e));){o.index>a&&r.push((0,t.jsx)("span",{children:e.slice(a,o.index)},`${s}-${n++}`));let i=o[0];if(i.startsWith("**"))r.push((0,t.jsx)("strong",{className:"font-semibold text-ds-text-primary",children:i.slice(2,-2)},`${s}-${n++}`));else if(i.startsWith("`"))r.push((0,t.jsx)("code",{className:"px-1 py-0.5 rounded bg-ds-bg text-[0.9em] font-mono",children:i.slice(1,-1)},`${s}-${n++}`));else{let e=/\[([^\]]+)\]\(([^)]+)\)/.exec(i);e&&(function(e){let t=e.trim();return!!(/^(https?:|mailto:)/i.test(t)||t.startsWith("/")||t.startsWith("#"))||!/^[a-z][a-z0-9+.-]*:/i.test(t)}(e[2])?r.push((0,t.jsx)("a",{href:e[2],target:"_blank",rel:"noopener noreferrer",className:"text-ds-accent-600 underline",children:e[1]},`${s}-${n++}`)):r.push((0,t.jsx)("span",{children:e[1]},`${s}-${n++}`)))}a=o.index+i.length}return a<e.length&&r.push((0,t.jsx)("span",{children:e.slice(a)},`${s}-${n++}`)),r}function y({content:e,streaming:s}){let r=e.split("\n");return(0,t.jsxs)("div",{className:"leading-7 break-words space-y-1",children:[r.map((e,s)=>{let r=/^\s*(#{1,4})\s+(.*)$/.exec(e);if(r)return(0,t.jsx)("div",{className:"font-semibold text-ds-text-primary mt-2 first:mt-0",children:f(r[2],`h${s}`)},s);let i=/^\s*[-*â¢]\s+(.*)$/.exec(e);return i?(0,t.jsxs)("div",{className:"flex gap-2 pl-1",children:[(0,t.jsx)("span",{className:"text-ds-text-muted select-none",children:"â¢"}),(0,t.jsx)("span",{children:f(i[1],`b${s}`)})]},s):e.trim()?(0,t.jsx)("div",{children:f(e,`p${s}`)},s):(0,t.jsx)("div",{className:"h-1.5"},s)}),s&&(0,t.jsx)(h,{})]})}let x=(0,u.memo)(function({message:e}){let s="user"===e.role,a={initial:{opacity:0,scale:.96,y:6},animate:{opacity:1,scale:1,y:0},transition:{duration:.2,ease:[.19,1,.22,1]}};return s?(0,t.jsx)("div",{className:"flex justify-end px-4 py-2",children:(0,t.jsx)(r.motion.div,{...a,className:"bg-ds-accent-600 text-white rounded-2xl rounded-br-sm md:rounded-br-2xl md:rounded-tr-sm px-4 py-3 text-[16px] leading-6 md:text-sm max-w-[85%] md:max-w-[75%] md:leading-relaxed shadow-sm",children:e.content})}):(0,t.jsx)("div",{className:"flex justify-start px-4 py-2 group",children:(0,t.jsxs)(r.motion.div,{...a,className:"flex items-start gap-3 w-full md:w-auto md:max-w-[85%]",children:[(0,t.jsx)(r.motion.div,{className:"w-8 h-8 rounded-xl bg-ds-accent-50 text-ds-accent-600 hidden md:flex items-center justify-center shrink-0 mt-0.5",animate:e.streaming?{boxShadow:["0 0 0 0 rgba(99,102,241,0)","0 0 0 6px rgba(99,102,241,0.18)","0 0 0 0 rgba(99,102,241,0)"]}:{boxShadow:"0 0 0 0 rgba(99,102,241,0)"},transition:e.streaming?{duration:2,repeat:1/0,ease:"easeInOut"}:{duration:.2},children:(0,t.jsx)(i.Bot,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 min-w-0 flex-1 md:flex-none",children:[(0,t.jsxs)("div",{className:"bg-ds-ai-tint border border-ds-ai-edge md:bg-ds-surface md:border-ds-border rounded-2xl md:rounded-tl-sm px-4 py-3.5 md:py-3 text-[16px] leading-6 text-ds-text-primary md:text-sm md:text-ds-text-secondary shadow-sm md:leading-relaxed",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-1.5 md:hidden",children:[(0,t.jsx)(d.Sparkles,{className:"size-3.5 text-ds-ai-text","aria-hidden":"true"}),(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase leading-4 tracking-[0.66px] text-ds-ai-text",children:"ASTRA"})]}),(0,t.jsx)(y,{content:e.content,streaming:e.streaming})]}),!e.streaming&&(0,t.jsxs)("div",{className:"flex items-center gap-1 pl-1",children:[(0,t.jsx)(m,{}),(0,t.jsx)(p,{text:e.content})]})]})]})})});e.s(["default",0,x],241033);let g=(0,o.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);var b=e.i(752044);e.s(["default",0,function({onSend:e,onStop:r,streaming:i,disabled:a,seedPrompt:n}){let[o,l]=(0,u.useState)(""),c=(0,u.useRef)(null);
9function d(){let t=o.trim();t&&!i&&(e(t),l(""),c.current&&(c.current.style.height="auto"))}(0,u.useEffect)(()=>{let e=c.current;e&&(e.style.height="auto",e.style.height=Math.min(e.scrollHeight,128)+"px")},[o]),(0,u.useEffect)(()=>{n&&queueMicrotask(()=>{l(n);let e=c.current;e&&(e.focus(),requestAnimationFrame(()=>{try{e.setSelectionRange(n.length,n.length)}catch{}}))})},[n]);let h=o.trim().length>0&&!i;return(0,t.jsxs)("div",{className:"px-4 py-4 glass-panel border-t border-ds-border shrink-0",children:[(0,t.jsxs)("div",{className:"max-w-3xl mx-auto flex items-end gap-3",children:[(0,t.jsx)("textarea",{ref:c,value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),d())},placeholder:"Ask ASTRA anything...",rows:1,disabled:a,className:"flex-1 resize-none border border-ds-ai-edge md:border-ds-border rounded-[24px] md:rounded-2xl px-4 py-3 text-[16px] md:text-sm text-ds-text-primary placeholder-[#9CA3AF] focus:outline-none focus:border-ds-accent-600 focus:ring-2 focus:ring-ds-accent-50 transition-all max-h-32 min-h-[44px]"}),i?(0,t.jsx)("button",{onClick:r,className:"w-10 h-10 rounded-full md:rounded-xl bg-ds-surface-inverse text-white flex items-center justify-center hover:bg-[#374151] active:scale-95 transition-all shrink-0",title:"Stop",children:(0,t.jsx)(b.Square,{className:"h-3.5 w-3.5 fill-white"})}):(0,t.jsx)("button",{onClick:d,disabled:!h,className:(0,s.cn)("w-10 h-10 rounded-full md:rounded-xl flex items-center justify-center active:scale-95 transition-all shrink-0",h?"bg-ds-ai-solid md:bg-ds-accent-600 text-white md:hover:bg-ds-accent-700":"bg-ds-bg text-ds-text-muted cursor-not-allowed"),title:"Send",children:(0,t.jsx)(g,{className:"h-4 w-4"})})]}),(0,t.jsx)("p",{className:"text-center text-[10px] text-ds-text-muted mt-2 max-w-3xl mx-auto",children:"ASTRA may make mistakes. Verify important information."})]})}],834912);let v=(0,o.default)("file-search",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]);var w=e.i(686311),k=e.i(63727),j=e.i(25652),S=e.i(810980),C=e.i(341240),M=e.i(733060),E=e.i(595468),N=e.i(620278),A=e.i(87316);let F={resume:"Resume",interview:"Interview prep",search:"Job search",strategy:"Strategy"};e.s(["default",0,function({onSelect:e,role:i="Software Engineer",location:a="",visa:n="",skills:o=[],inline:l}){let c,d,u,h=(c=o[0]||"your skills",d=n&&"citizen"!==n?` on ${n.toUpperCase()}`:"",u=a?` in ${a}`:"",[{icon:v,group:"resume",label:"Review my resume",prompt:`Review my ${i} resume and flag the top 3 weaknesses a hiring manager would see.`,color:"text-ds-accent-600",bg:"bg-ds-accent-50 hover:bg-[#E0E7FF]"},{icon:M.Wand2,group:"resume",label:"Tailor for a role",prompt:`Help me tailor my resume for a ${i} role. Start by asking which company I'm targeting.`,color:"text-ds-accent-600",bg:"bg-ds-accent-50 hover:bg-[#E0E7FF]"},{icon:E.CheckCircle2,group:"resume",label:"ATS keyword gaps",prompt:`What keywords should a ${i} resume have to pass ATS scanners? Compare against mine if you can.`,color:"text-ds-accent-600",bg:"bg-ds-accent-50 hover:bg-[#E0E7FF]"},{icon:w.MessageSquare,group:"interview",label:"Mock interview",prompt:`Run a 10-minute mock interview for a ${i} role. Start with a tough behavioural question.`,color:"text-ds-accent-500",bg:"bg-ds-accent-50 hover:bg-[#E0E7FF]"},{icon:N.Target,group:"interview",label:"Why this role fits me",prompt:`Given my background, help me articulate why I'm a strong fit for ${i} roles.`,color:"text-ds-accent-500",bg:"bg-ds-accent-50 hover:bg-[#E0E7FF]"},{icon:k.Briefcase,group:"search",label:"Find matching jobs",prompt:`Suggest 5 ${i} jobs${u} that match my skills and visa status.`,color:"text-[#2563EB]",bg:"bg-[#EFF6FF] hover:bg-ds-info-bg"},{icon:S.BookOpen,group:"search",label:"Skills to learn next",prompt:`Given ${c} and my target role (${i}), what's the single highest-leverage skill I should learn next?`,color:"text-[#EA580C]",bg:"bg-[#FFF7ED] hover:bg-[#FFEDD5]"},{icon:j.TrendingUp,group:"strategy",label:"Salary negotiation",prompt:`I have an offer for a ${i} role. Walk me through a realistic negotiation script.`,color:"text-ds-accent-700",bg:"bg-ds-accent-50 hover:bg-[#
9E0E7FF]"},{icon:C.Lightbulb,group:"strategy",label:"Why no callbacks?",prompt:`I've applied to ~30 ${i} roles${d} with no callbacks. Diagnose the likely cause.`,color:"text-[#D97706]",bg:"bg-[#FFFBEB] hover:bg-ds-warning-bg"},{icon:A.Calendar,group:"strategy",label:"Weekly job-search plan",prompt:`Plan my next 7 days of job searching as a ${i}${u}${d}. Give me a checklist.`,color:"text-[#D97706]",bg:"bg-[#FFFBEB] hover:bg-ds-warning-bg"}]);return l?(0,t.jsx)("div",{className:"px-4 py-3 flex gap-2 overflow-x-auto scrollbar-hide flex-nowrap sm:flex-wrap border-t border-ds-border bg-ds-surface",children:h.slice(0,4).map(s=>(0,t.jsx)(r.motion.button,{type:"button",onClick:()=>e(s.prompt),whileHover:{scale:1.03},whileTap:{scale:.95},transition:{type:"spring",stiffness:500,damping:30},className:"shrink-0 px-4 py-2 border border-ds-border-strong bg-ds-surface md:border-transparent md:bg-ds-bg text-ds-text-secondary text-[12px] font-medium md:font-normal md:text-sm rounded-full hover:bg-ds-accent-50 hover:text-ds-accent-600 transition-colors whitespace-nowrap",children:s.label},s.label))}):(0,t.jsx)("div",{className:"w-full max-w-3xl mx-auto px-4 space-y-5",children:["resume","interview","search","strategy"].map(i=>{let a=h.filter(e=>e.group===i);return 0===a.length?null:(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:[.19,1,.22,1]},children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold text-ds-text-secondary uppercase tracking-wider mb-2",children:F[i]}),(0,t.jsx)(r.motion.div,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5",initial:"hidden",animate:"show",variants:{hidden:{},show:{transition:{staggerChildren:.04,delayChildren:.05}}},children:a.map(i=>{let a=i.icon;return(0,t.jsxs)(r.motion.button,{type:"button",onClick:()=>e(i.prompt),variants:{hidden:{opacity:0,y:6},show:{opacity:1,y:0,transition:{duration:.3,ease:[.19,1,.22,1]}}},whileHover:{y:-2},whileTap:{scale:.97},className:(0,s.cn)("flex items-start gap-2.5 text-left p-3.5 rounded-xl border border-transparent text-sm shadow-sm transition-colors",i.bg),children:[(0,t.jsx)(a,{"aria-hidden":"true",className:(0,s.cn)("h-4 w-4 shrink-0 mt-0.5",i.color)}),(0,t.jsx)("span",{className:"text-ds-text-secondary font-medium leading-snug text-[12.5px]",children:i.label})]},i.label)})})]},i)})})}],363078);var L=e.i(816973),T=e.i(381490);e.s(["useCopilot",0,function(){let[e,t]=(0,u.useState)(!1),s=(0,u.useRef)(null),r=(0,u.useCallback)(()=>{s.current?.abort(),t(!1)},[]);return{streaming:e,streamTokens:(0,u.useCallback)(async(e,r,i,a,n,o)=>{s.current?.abort();let l=new AbortController;s.current=l,t(!0);try{let t=await L.copilotApi.chatStream({messages:e,intent:r,inject_db_jobs:"job_suggestions"===r,...o},l.signal);if(!t.ok){let e=(await t.json().catch(()=>({detail:t.statusText}))).detail;if(402===t.status&&e&&"object"==typeof e)throw window.dispatchEvent(new CustomEvent("hf:upgrade-required",{detail:{feature:e.feature??"AI Copilot",requiredPlan:"premium"===e.required_plan?"premium":"pro",reason:e.message}})),Error(T.STUDENT_BILLING_ENABLED?e.message||"Upgrade to continue.":"You've reached this month's free limit â it resets next month.");throw Error("string"==typeof e?e:"API error")}let s=t.body?.getReader();if(!s)throw Error("No response body");let c=new TextDecoder,d=0;for(;;){let{done:e,value:t}=await s.read();if(e)break;let r=c.decode(t,{stream:!0});d+=r.length,r&&i(r)}0===d?n("Astra couldn't generate a response just now. Please try again."):a()}catch(e){"AbortError"===e.name?a():n(e.message??"Unknown error")}finally{t(!1)}},[]),stop:r}}],29938)},81462,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(63727),i=e.i(595468),a=e.i(37727),n=e.i(816973),o=e.i(900389),l=e.i(705766);let c="hf_pending_apply",d="hf_apply_dismissed";function u(){localStorage.removeItem(c)}function h(e){try{let t=localStorage.getItem(d);return(t?JSON.parse(t):[]).includes(e)}catch{return!1}}e.s(["default",0,function(){let[e,p]=(0,s.useState)(null),[m,f]=(0,s.useState)(!1),[y,x]=(0,s.useState)(!1);(0,s.useEffect)(()=>{x(!0)},[]);let g=(0,s.useRef)(null);(0,s.useEffect)(()=>{function e(t=!1){let s=function(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);if(!t?.opened_at||Date.now()-t.opened_at>864e5)return localStorage.removeItem(c),null;return t}catch{return null}}();if(s&&!(!t&&Date.now()-s.opened_at<1500)){if(h(s.job_id))return void u();p(s)}}function t(t){let s=t.detail;!s||h(s.job_id)||(localStorage.setItem(c,JSON.stringify(s)),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{e(!0)},25e3))}function s(){"visible"===document.visibilityState&&e(!1)}return window.addEventListener("hf:apply-pending",t),document.addEventListener("visibilitychange",s),window.addEventListener("focus",s),"visible"===document.visibilityState&&e(!0),()=>{g.current&&clearTimeout(g.current),window.removeEventListener("hf:apply-pending",t),document.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}},[]);let b=(0,s.useCallback)(async()=>
9{if(e&&!m){f(!0);try{await n.userJobsApi.applyJob(e.job_id,e.url),l.default.success(`Tracked your application to ${e.company}`),window.dispatchEvent(new CustomEvent("hf:job-applied",{detail:{job_id:e.job_id}}))}catch(e){l.default.error("Couldn't save that right now â try again from the Tracker page.")}finally{f(!1),u(),p(null)}}},[e,m]),v=(0,s.useCallback)(()=>{if(!e)return;let t=e.job_id;p(null);let s=()=>{try{let e=localStorage.getItem(d),s=e?JSON.parse(e):[];s.includes(t)||s.push(t),localStorage.setItem(d,JSON.stringify(s))}catch{}u()},r=window.requestIdleCallback;"function"==typeof r?r(s,{timeout:250}):setTimeout(s,0)},[e]);if(!y)return null;let w=!!e&&!m&&!!e.job_id;return(0,t.jsx)(o.ModalShell,{open:w,onClose:v,z:120,contentClassName:"bg-ds-surface w-[480px] max-w-[92vw] rounded-[12px] shadow-[0_24px_60px_-15px_rgba(15,23,42,0.45),0_10px_24px_-8px_rgba(15,23,42,0.20)] mx-4",children:e&&(0,t.jsxs)("div",{className:"relative p-6",children:[(0,t.jsx)("button",{type:"button",onClick:v,"aria-label":"Close",className:"absolute right-4 top-4 w-8 h-8 rounded-full flex items-center justify-center text-ds-text-muted hover:text-ds-text-primary hover:bg-ds-bg transition-colors cursor-pointer",children:(0,t.jsx)(a.X,{className:"w-[18px] h-[18px]"})}),(0,t.jsx)("div",{className:"flex justify-center pt-1",children:(0,t.jsx)("div",{className:"w-[60px] h-[60px] rounded-full bg-ds-accent-50 flex items-center justify-center",children:(0,t.jsx)(r.Briefcase,{className:"w-[28px] h-[28px] text-ds-accent-600"})})}),(0,t.jsx)("h2",{id:"apply-prompt-title",className:"mt-4 text-lg font-semibold text-ds-text-primary text-center leading-snug",children:"Did you finish applying?"}),(0,t.jsxs)("div",{className:"mt-2 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-ds-text-primary line-clamp-2 leading-snug",title:e.title,children:e.title}),e.company&&(0,t.jsxs)("p",{className:"text-sm text-ds-text-secondary line-clamp-2 mt-0.5 leading-snug",title:e.company,children:["at ",e.company]})]}),(0,t.jsx)("p",{id:"apply-prompt-helper",className:"mt-3 text-sm text-ds-text-muted text-center leading-snug",children:"We'll save it to your tracker so it doesn't slip away."}),(0,t.jsxs)("div",{className:"mt-6 flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:b,disabled:m,className:"flex-1 inline-flex items-center justify-center gap-2 bg-ds-accent-600 hover:bg-ds-accent-700 active:scale-[0.98] text-white rounded-ds-md py-2.5 font-medium text-sm transition-[background-color,transform] duration-150 cursor-pointer disabled:opacity-60",children:m?(0,t.jsx)(t.Fragment,{children:"Trackingâ¦"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.CheckCircle2,{className:"w-4 h-4"}),"Yes, track it"]})}),(0,t.jsx)("button",{type:"button",onClick:v,disabled:m,className:"flex-1 inline-flex items-center justify-center bg-ds-surface border border-ds-border text-ds-text-primary hover:bg-ds-bg rounded-ds-md py-2.5 font-medium text-sm transition-colors cursor-pointer disabled:opacity-60",children:"Not yet"})]})]})})},"markApplyPending",0,function(e){let t={job_id:e.id,title:e.title,company:e.company,url:e.url,opened_at:Date.now()},s=()=>{try{localStorage.setItem(c,JSON.stringify(t));try{let t=localStorage.getItem(d);if(t){let s=JSON.parse(t),r=s.filter(t=>t!==e.id);r.length!==s.length&&localStorage.setItem(d,JSON.stringify(r))}}catch{}window.dispatchEvent(new CustomEvent("hf:apply-pending",{detail:t}))}catch{}},r=window.requestIdleCallback;"function"==typeof r?r(s,{timeout:250}):setTimeout(s,0)}])},337003,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(377878),i=e.i(373375),a=e.i(463059),n=e.i(283086),o=e.i(178583),l=e.i(98919),c=e.i(975157);let d=[{icon:n.Sparkles,eyebrow:"AI JOB MATCHING",title:"AI matches you to the right jobs",body:"Semantic scoring across skills, experience, and visa status â not keyword bingo. Every live role is ranked against your profile in real time.",accent:"#4F46E5",bg:"linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%)"},{icon:o.FileText,eyebrow:"RESUME TAILOR",title:"One-click resume tailoring",body:"ASTRA rewrites your summary and bullets for each job description, verifying ATS keywords and scoring the fit before you apply.",accent:"#4F46E5",bg:"linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%)"},{icon:l.Shield,eyebrow:"BUILT FOR VISA HOLDERS",title:"Built for visa holders like you",body:"Smart H1B, OPT, and GC filters. Verified sponsor detection across every role. Built by an immigrant engineer who lived the same search.",accent:"#4F46E5",bg:"linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%)"}];function u({onComplete:e,onSkip:r}
9){let[n,o]=(0,s.useState)(0),l=(0,s.useRef)(null),h=n===d.length-1,p=(0,s.useCallback)(()=>{h?e():o(e=>e+1)},[h,e]),m=(0,s.useCallback)(()=>o(e=>Math.max(0,e-1)),[]);(0,s.useEffect)(()=>{function e(e){"ArrowRight"===e.key||"Enter"===e.key?p():"ArrowLeft"===e.key?m():"Escape"===e.key&&r()}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[p,m,r]);let f=d[n],y=f.icon;return(0,t.jsx)("div",{className:"fixed inset-0 z-[10000] bg-ds-surface sm:bg-black/50 sm:backdrop-blur-sm flex items-stretch sm:items-center justify-center p-0 sm:p-4",role:"dialog","aria-modal":"true","aria-labelledby":"welcome-carousel-title",onTouchStart:function(e){l.current=e.touches[0]?.clientX??null},onTouchEnd:function(e){if(null==l.current)return;let t=(e.changedTouches[0]?.clientX??0)-l.current;Math.abs(t)>50&&(t<0?p():m()),l.current=null},children:(0,t.jsxs)("div",{className:"bg-ds-surface w-full sm:max-w-lg sm:rounded-2xl shadow-2xl flex flex-col overflow-hidden relative",children:[(0,t.jsx)("button",{type:"button",onClick:r,className:"absolute top-4 right-4 text-[13px] font-semibold text-ds-text-secondary hover:text-ds-text-primary px-3 py-1.5 rounded-lg hover:bg-ds-bg transition-colors z-10",children:"Skip"}),(0,t.jsx)("div",{className:"flex items-center justify-center pt-16 sm:pt-14 pb-10 sm:pb-8 px-6",style:{background:f.bg},children:(0,t.jsx)("div",{className:"h-24 w-24 sm:h-20 sm:w-20 rounded-2xl bg-ds-surface flex items-center justify-center shadow-lg",style:{color:f.accent},children:(0,t.jsx)(y,{"aria-hidden":"true",className:"h-11 w-11 sm:h-10 sm:w-10",strokeWidth:1.5})})}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col px-6 sm:px-10 py-8 sm:py-10 text-center",children:[(0,t.jsx)("p",{className:"text-[11px] font-bold text-ds-accent-600 uppercase tracking-wider mb-3",children:f.eyebrow}),(0,t.jsx)("h2",{id:"welcome-carousel-title",className:"text-[22px] sm:text-[24px] font-bold text-ds-text-primary leading-tight mb-3",children:f.title}),(0,t.jsx)("p",{className:"text-[14px] sm:text-[15px] text-ds-text-secondary leading-relaxed max-w-sm mx-auto",children:f.body}),(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 mt-8 mb-6",role:"tablist","aria-label":"Welcome slides",children:d.map((e,s)=>(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":s===n,"aria-label":`Slide ${s+1}`,onClick:()=>o(s),className:(0,c.cn)("h-1.5 rounded-full transition-all",s===n?"w-6 bg-ds-accent-600":"w-1.5 bg-[#D1D5DB] hover:bg-[#9CA3AF]")},s))})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-6 sm:px-10 pb-8 sm:pb-8 pt-2 sm:pt-0",children:[(0,t.jsx)("button",{type:"button",onClick:m,disabled:0===n,"aria-label":"Previous slide",className:"h-11 w-11 rounded-xl border border-ds-border flex items-center justify-center text-ds-text-secondary hover:text-ds-text-primary hover:bg-ds-bg disabled:opacity-30 disabled:cursor-not-allowed transition-all",children:(0,t.jsx)(i.ChevronLeft,{"aria-hidden":"true",className:"h-5 w-5"})}),(0,t.jsxs)("button",{type:"button",onClick:p,className:"flex-1 ml-2 h-11 rounded-xl bg-ds-accent-600 text-white text-[14px] font-semibold hover:bg-ds-accent-700 active:scale-95 transition-all inline-flex items-center justify-center gap-2",children:[h?"Get Started":"Next",!h&&(0,t.jsx)(a.ChevronRight,{"aria-hidden":"true",className:"h-4 w-4"})]})]})]})})}var h=e.i(522016),p=e.i(972520),m=e.i(595468);function f({matchCount:e,primaryHref:r="/jobs",primaryLabel:i="Browse your matches",secondaryHref:a="/dashboard",secondaryLabel:o="Go to dashboard"}){let[l,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");c(e.matches);let t=()=>c(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,t.jsxs)("div",{className:"fixed inset-0 z-50 bg-ds-surface sm:bg-black/50 sm:backdrop-blur-sm flex items-stretch sm:items-center justify-center p-0 sm:p-4",role:"dialog","aria-modal":"true","aria-labelledby":"celebration-title",children:[!l&&(0,t.jsx)(x,{}),(0,t.jsxs)("div",{className:"bg-ds-surface w-full sm:max-w-lg sm:rounded-2xl shadow-2xl overflow-hidden relative flex flex-col",children:[(0,t.jsxs)("div",{className:"px-6 sm:px-10 pt-14 sm:pt-12 pb-10 sm:pb-10 text-center relative",style:{background:"radial-gradient(600px 300px at 50% -20%, rgba(79,70,229,0.14), transparent 60%), linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%)"},children:[(0,t.jsxs)("div",{className:"relative inline-flex items-center justify-center h-20 w-20 sm:h-20 sm:w-20 rounded-2xl bg-ds-surface border border-ds-border mb-5 shadow-sm",children:[(0,t.jsx)(n.Sparkles,{"aria-hidden":"true",className:"h-10 w-10 text-ds-accent-600",strokeWidth:1.5}),(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute -top-1.5 -right-1.5 h-6 w-6 rounded-full bg-ds-accent-600 flex items-center justify-center",style:{boxShadow:"0 4px 10px rgba(79,70,229,0.35)"},children:(0,t.jsx)(m.CheckCircle2,{className:"h-4 w-4 text-white"})})]}),(0,t.jsx)("h2",{id:"celebration-title",className:"text-[24px] sm:text-[26px] font-bold text-ds-text-primary tracking-tight mb-2",children:"Your profile is ready ð"}),(0,t.jsxs)("p",{className:"text-[14px] sm:text-[15px] text-ds-text-secondary leading-relaxed max-w-sm mx-auto",children:["We've scored the live US feed against your resume. You've got"," ",(0,t.jsxs)("strong",{className:"text-ds-accent-600 font-bold",children:[e.toLocaleStr
9ing()," matches"]})," ","to start with â top ones first."]})]}),(0,t.jsxs)("div",{className:"px-6 sm:px-10 pb-8 space-y-3",children:[(0,t.jsx)(y,{emoji:"â",text:"H1B / OPT filters are on by default"}),(0,t.jsx)(y,{emoji:"â¦",text:"Every job scored against your resume"}),(0,t.jsx)(y,{emoji:"â",text:"Apply directly to the company ATS â no middlemen"})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2.5 px-6 sm:px-10 pb-8",children:[(0,t.jsx)(h.default,{href:a,className:"inline-flex items-center justify-center gap-1.5 h-11 rounded-xl border border-ds-border text-ds-text-primary text-[14px] font-semibold hover:bg-ds-bg active:scale-95 transition-all",children:o}),(0,t.jsxs)(h.default,{href:r,className:"inline-flex items-center justify-center gap-1.5 h-11 flex-1 rounded-xl bg-ds-accent-600 text-white text-[14px] font-semibold hover:bg-ds-accent-700 active:scale-95 transition-all",children:[i,(0,t.jsx)(p.ArrowRight,{"aria-hidden":"true",className:"h-4 w-4"})]})]})]})]})}function y({emoji:e,text:s}){return(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-ds-bg border border-ds-border",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"h-7 w-7 shrink-0 rounded-lg bg-ds-surface flex items-center justify-center text-[15px] font-bold text-ds-accent-600 border border-ds-accent-50",children:e}),(0,t.jsx)("p",{className:"text-[13px] sm:text-[14px] text-ds-text-primary leading-relaxed pt-0.5",children:s})]})}function x(){let e=Array.from({length:24},(e,t)=>t),s=["#4F46E5","#6366F1","#4F46E5","#F59E0B","#EF4444","#3B82F6"];return(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 overflow-hidden",children:e.map(e=>{let r=37*e%100,i=e%8*.12,a=1.6+e%5*.2,n=13*e%40*(e%2==0?1:-1),o=s[e%s.length];return(0,t.jsx)("span",{className:"absolute -top-3 h-2 w-2 rounded-[2px]",style:{left:`${r}%`,background:o,animation:`confetti-fall ${a+.6}s ${i}s ease-in forwards`,transform:`rotate(${n}deg)`,opacity:0}},e)})})}let g="hf_welcome_seen",b="hf_celebration_seen";e.s(["default",0,function({matchCount:e}){let{profile:i,isLoaded:a}=(0,r.useProfile)(),[n,o]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1);function d(){localStorage.setItem(g,"true"),o(!1)}return((0,s.useEffect)(()=>{if(!a)return;let e="true"===localStorage.getItem(g),t="true"===localStorage.getItem(b),s=!!i?.completedAt,r=(i?.skills?.length??0)>0;e||s||r?!t&&s&&r&&c(!0):o(!0)},[a,i]),n)?(0,t.jsx)(u,{onComplete:d,onSkip:d}):l?(0,t.jsx)("div",{onClickCapture:function(){localStorage.setItem(b,"true"),c(!1)},children:(0,t.jsx)(f,{matchCount:e})}):null}],337003)},900389,30747,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(88653),i=e.i(846932),a=e.i(975157);let n=[.25,.1,.25,1],o=[.19,1,.22,1],l={initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:n}},c={initial:{opacity:0,scale:.96,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:4},transition:{duration:.3,ease:o}};e.s(["backdropFade",0,l,"modalContent",0,c,"slideInRight",0,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:32},transition:{duration:.3,ease:o}}],30747);var d=e.i(918645);e.s(["ModalShell",0,function({open:e,onClose:n,children:o,z:u=50,closeOnBackdrop:h=!0,backdropClassName:p,contentClassName:m,contentVariants:f,ariaLabel:y,ariaLabelledby:x}){(0,s.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]);let g=(0,d.useFocusTrap)(e,n);return(0,t.jsx)(r.AnimatePresence,{children:e&&(0,t.jsx)(i.motion.div,{className:(0,a.cn)("fixed inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm p-3 sm:p-4 overscroll-contain",p),style:{zIndex:u},onClick:h?n:void 0,...l,children:(0,t.jsx)(i.motion.div,{ref:g,role:"dialog","aria-modal":"true","aria-label":y,"aria-labelledby":x,tabIndex:-1,onClick:e=>e.stopPropagation(),...f??c,className:(0,a.cn)("focus:outline-none",m),children:o},"content")},"backdrop")})}],900389)},918645,e=>{"use strict";var t=e.i(271645);e.s(["useFocusTrap",0,function(e,s){let r=(0,t.useRef)(null),i=(0,t.useRef)(null),a=(0,t.useRef)(s);return(0,t.useEffect)(()=>{a.current=s},[s]),(0,t.useEffect)(()=>{if(!e)return;let t=r.current;if(!t)return;i.current=document.activeElement??null;let s=()=>Array.from(t.querySelectorAll("a[href],area[href],input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),[tabindex]:not([tabindex='-1']),summary,iframe,audio[controls],video[controls],[contenteditable='true']")).filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden"));(s()[0]??t).focus();let n=e=>{if("Escape"===e.key){e.stopPropagation(),a.current?.();return}if("Tab"!==e.key)return;let r=s();if(0===r.length){e.preventDefault(),t.focus();return}let i=r[0],n=r[r.length-1],o=document.activeElement;e.shiftKey?o!==i&&t.contains(o)||(e.preventDefault(),n.focus()):o!==n&&t.contains(o)||(e.preventDefault(),i.focus())};return document.addEventListener("keydown",n,!0),()=>{document.removeEventListener("keydown",n,!0);let e=i.current;e&&"function"==typeof e.focus&&document.contains(e)&&e.focus()}},[e]),r}])},10482,e=>{"use strict";async function t(e){let t=e.name.split(".").pop()?.toLowerCase();if("txt"===t)return e.text();if("docx"===t)return s(e);if("pdf"===t)return r(e);throw Error(`Unsupported file type: .${t}`)}async function s(t){let s=(await e.A(684934)).default,r=await t.arrayBuffer(),{value:i}=await s.extractRawText({arrayBuffer:r});if(!i.trim())throw Error("Could not extract text from DOCX.");return i}async function r(t){try{let s=await e.A(825834);try{let t=await e.A(534237);s.GlobalWorkerOptions.workerSrc=t.default||""}catch{try{s.GlobalWorkerOptions.workerSrc=`https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${s.version}/pdf.worker.min.mjs`}catch{s.GlobalWorkerOptions.workerSrc=""}}let r=await t.arrayBuffer(),i=s.getDocument({data:new Uint8Array(r)}),a=await i.promise,n=[];for(let e=1;e<=a.numPages;e++){let t=await a.getPage(e),s=await t.getTextContent();n.push(s.items.map(e=>"str"in e?e.str:"").join(" "))}let o=n.join("\n").trim();if(!o)throw Error("No text found");return o}catch(e){try{let e=await t.arrayBuffer(),s=new Uint8Array(e),r=function(e){let t,s=new TextDecoder("latin1").decode(e),r=[],i=/BT\s([\s\S]*?)ET/g;for(;null!==(t=i.exec(s));){let e,s,i=t[1],a=/\(([^)]*)\)\s*Tj/g;for(;null!==(e=a.exec(i));)r.push(e[1]);let n=/\[([^\]]*)\]\s*TJ/g;for(;null!==(s=n.exec(i));){let e,t=s[1],i=/\(([^)]*)\)/g;for(;null!==(e=i.exec(t));)r.push(e[1])}}
9return r.join(" ").replace(/\\n/g,"\n").replace(/\\r/g,"").replace(/\s+/g," ").trim()}(s);if(r.length>50)return r}catch{}throw Error("Could not extract text from PDF. Try uploading a DOCX or TXT file instead.")}}e.s(["extractResumeText",0,t])},266004,e=>{"use strict";let t={js:"javascript",ts:"typescript",py:"python",golang:"go",es6:"javascript",ecmascript:"javascript","c#":"csharp","c++":"cplusplus",cpp:"cplusplus",net:"dotnet",nodejs:"node",reactjs:"react",nextjs:"next",vuejs:"vue",angularjs:"angular",springboot:"spring",springframework:"spring",html5:"html",css3:"css",tailwindcss:"tailwind",objectorientedprogramming:"oop",postgres:"postgresql",postgre:"postgresql",psql:"postgresql",mongo:"mongodb",mssql:"sqlserver",k8s:"kubernetes",amazonwebservices:"aws",googlecloud:"gcp",googlecloudplatform:"gcp",tf:"terraform",restapi:"rest",restfulapi:"rest",restful:"rest",ci:"cicd",cicd:"cicd",githubactions:"cicd",gitlabci:"cicd",ml:"machinelearning",dl:"deeplearning",sklearn:"scikitlearn",scikit:"scikitlearn",naturallanguageprocessing:"nlp",artificialintelligence:"ai",generativeai:"genai",llms:"llm",largelanguagemodels:"llm",pyspark:"spark",microsoftexcel:"excel",msexcel:"excel"};function s(e){let s=(e||"").toLowerCase().trim().replace(/[\s._\-/]+/g,"");return t[s]??s}let r={};function i(e){let t=(e||"").toLowerCase();return o(e)?0:/junior|jr\.?|entry|associate|new[\s-]?grad/.test(t)?1:/senior|sr\.?/.test(t)?5:/staff|principal|architect/.test(t)?8:/lead|manager|director|head[\s-]?of|vp/.test(t)?7:3}function a(e){let{job:t}=e,a=new Set((e.userSkills??[]).map(s).filter(Boolean)),n=0,o=0,l=[];for(let e of t.skills||[]){let t=s(e);if(t){if(o++,a.has(t))n+=1,l.push(e);else for(let e of a)if(e!==t&&void 0!==r[e]&&r[e]===r[t]){n+=.5;break}}}let c=Math.min(o,8),d=c>0?Math.round(Math.min(n,c)/c*100):50,u=i(t.title),h=50;if(void 0!==e.userYearsExp){let t=Math.abs(e.userYearsExp-u);h=0===t?100:t<=1?90:t<=2?75:t<=3?60:t<=5?40:25,e.userYearsExp>u&&(h=Math.min(100,h+10))}let p=50;if("Remote"===t.workMode)p=100;else if(e.userWorkMode){let s=e=>e.toLowerCase().replace(/[^a-z]/g,""),r=s(t.workMode||""),i=s(e.userWorkMode);p=r===i||"any"===i?100:"hybrid"===i&&"onsite"===r?60:40}if(e.userLocation&&t.location){let s=t.location.toLowerCase(),r=e.userLocation.toLowerCase();(s.includes(r)||r.includes(s.split(",")[0]))&&(p=Math.max(p,90))}let m=60,f=(e.userVisa||"").toLowerCase(),y=t.visaTags||[];f&&("citizen"===f||"gc"===f?m=y.includes("No Sponsorship")||0===y.length?100:95:"h1b"===f?m=y.includes("H1B")?100:y.includes("OPT")?80:y.includes("No Sponsorship")?20:65:"opt"===f&&(m=y.includes("OPT")||y.includes("H1B")?100:y.includes("No Sponsorship")?20:65));let x=50,g=(t.posted||"").toLowerCase();"just now"===g||"today"===g||/minute|min\b/.test(g)||/^\d+\s*hour/.test(g)?x=100:"yesterday"===g||/^1\s*d/.test(g)?x=85:/^[2-3]\s*d/.test(g)?x=70:/^[4-7]\s*d/.test(g)||/^1\s*w/.test(g)?x=50:/^[1-2]\s*w/.test(g)?x=35:/month|\d\s*mo\b|^[3-9]\s*w/.test(g)&&(x=20);let b=function(e){let t=[[0,15],[20,30],[45,58],[60,74],[75,87],[85,93],[95,97],[100,97]],s=Math.max(0,Math.min(100,e));for(let e=1;e<t.length;e++)if(s<=t[e][0]){let[r,i]=t[e-1],[a,n]=t[e];return Math.round(i+(a===r?0:(s-r)/(a-r))*(n-i))}return t[t.length-1][1]}(.5*d+.15*h+.1*p+.15*m+.1*x);return a.size>0&&o>=3&&0===n&&(b=Math.min(b,38)),{overall:b,skillMatch:d,expMatch:h,locationMatch:p,visaMatch:m,recencyMatch:x,matchedSkills:l,totalJobSkills:o}}function n(e){return e>=75?"good":e>=50?"mid":"low"}function o(e){return/\bintern(ship)?\b/i.test(e||"")}function l(e,t=[]){let r=s(e);return!!r&&t.some(e=>s(e)===r)}[["aws","gcp","azure"],["postgresql","mysql","sql","nosql","mariadb","sqlite","mongodb","sqlserver","dynamodb"],["react","vue","angular","svelte","reactnative"],["docker","kubernetes"],["typescript","javascript"],["rest","graphql","grpc"],["pytorch","tensorflow","keras","scikitlearn"],["fastapi","flask","django"],["terraform","cloudformation","pulumi"],["tableau","powerbi","looker"],["csharp","dotnet"],["cicd","jenkins"],["llm","genai"]].forEach((e,t)=>e.forEach(e=>{r[e]=t})),e.s(["computeMatchScore",0,a,"estimateYearsFromDates",0,function(e){let t=/\b(?:19|20)\d{2}\b/g,s=/present|current|ongoing|\bnow\b/i,r=[],i=!1;for(let a of e){let e=a||"";for(let a of(s.test(e)&&(i=!0),e.match(t)||[]))r.push(parseInt(a,10))}if(!r.length)return 0;let a=Math.min(...r),n=(i?new Date().getFullYear():Math.max(...r))-a;return n>=0&&n<=60?n:0},"explainMatch",0,function(e){let t,r=a(e),o=e.job,c=(e.userVisa||"").toLowerCase(),d=[];for(let t of o.skills||[]){if(d.length>=6)break;s(t)&&!l(t,e.userSkills||[])&&d.push(t)}let u=[],h=[],p=[];if(r.skillMatch>=75&&r.matchedSkills.length?u.push(`Strong skills overlap â you have ${r.matchedSkills.slice(0,4).join(", ")}`):r.skillMatch>=50&&r.matchedSkills.length?u.push(`Partial skills overlap (${r.matchedSkills.slice(0,3).join(", ")})`):d.length&&h.push("Missing key skills the role asks for"),r.visaMatch>=95?u.push("citizen"===c||"gc"===c?"No sponsorship needed":"Sponsors your visa status â"):r.visaMatch<=25&&c&&"citizen"!==c&&"gc"!==c&&h.push("This role likely doesn't sponsor your visa"),r.expMatch>=90)u.push("Seniority level is a great fit");else if(r.expMatch<=40&&void 0!==e.userYearsExp){let e=i(o.title);h.push(`Seniority gap â this role targets ~${e} yr${1===e?"":"s"} of experience`)}r.locationMatch>=90&&u.push("Location & work mode line up"),r.recencyMatch>=85&&u.push("Freshly posted â you can apply early"),d.length&&p.push(`Add ${d.slice(0,2).join(" & ")}
9 to your resume if you have them â it raises this score`),p.push("Tailor your resume for this role in one click"),r.visaMatch<=25&&c&&"citizen"!==c&&"gc"!==c&&p.push("Filter for H1B-sponsoring roles to focus your effort");let m=u[0],f=h[0];t=r.overall>=90?m?`Excellent match â ${m.toLowerCase()}.`:"Excellent match for your profile.":r.overall>=80?f?`Strong match, but ${f.toLowerCase()}.`:"Strong match for your profile.":r.overall>=65?f?`Good match â close one gap: ${f.toLowerCase()}.`:"Good match with room to strengthen.":r.overall>=45?f?`Partial match â ${f.toLowerCase()}.`:"Partial match for your profile.":f?`Weak match â ${f.toLowerCase()}.`:"Weak match for your current profile.";let y=[{key:"skill",label:"Skills",score:r.skillMatch,tone:n(r.skillMatch)},{key:"exp",label:"Experience",score:r.expMatch,tone:n(r.expMatch)},{key:"visa",label:"Visa fit",score:r.visaMatch,tone:n(r.visaMatch)},{key:"loc",label:"Location",score:r.locationMatch,tone:n(r.locationMatch)},{key:"recency",label:"Freshness",score:r.recencyMatch,tone:n(r.recencyMatch)}];return{overall:r.overall,summary:t,strengths:u,gaps:h,matchedSkills:r.matchedSkills,missingSkills:d,recommendations:p,factors:y}},"hideInternshipsFor",0,function(e,t=!1){return!t&&(e??0)>=3},"isInternshipJob",0,function(e){return"Internship"===e.jobType||o(e.title)},"isInternshipTitle",0,o,"matchScoreFromApiJob",0,function(e,t){let s=[];try{let t=JSON.parse(e.skills_json||"[]");Array.isArray(t)&&(s=t.filter(e=>"string"==typeof e))}catch{}0===s.length&&e.tags&&(s=e.tags.split(/[,|]/).map(e=>e.trim()).filter(Boolean));let r=[];e.is_h1b_ok||"h1b"===e.visa_type?r.push("H1B"):"opt"===e.visa_type?r.push("OPT"):["citizen","gc","green_card","green card","none","no_sponsorship"].includes(e.visa_type||"")&&r.push("No Sponsorship");let i=`${e.tags||""} ${e.location||""}`.toLowerCase(),n=e.is_remote?"Remote":/hybrid/.test(i)?"Hybrid":"On-site",o=e.posted_at||e.created_at||"",l="";if(o){let e=(Date.now()-new Date(o).getTime())/36e5;if(e<1)l="just now";else if(e<24)l="today";else if(e<48)l="yesterday";else{let t=Math.floor(e/24);l=t<=7?`${t} d`:t<=27?`${Math.floor(t/7)} w`:`${Math.floor(t/30)} mo`}}return a({job:{title:e.title||"",location:e.location||"",workMode:n,visaTags:r,skills:s,posted:l},userSkills:t?.skills,userYearsExp:t?.yearsExp,userWorkMode:t?.workMode,userLocation:t?.location,userVisa:t?.visaStatus}).overall},"skillIsMatched",0,l])},771033,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(705766),i=e.i(816973),a=e.i(375679),n=e.i(377878);let o=(0,s.createContext)(null);e.s(["JobActionsProvider",0,function({children:e}){let{profile:l}=(0,n.useProfile)(),[c,d]=(0,s.useState)(new Set),[u,h]=(0,s.useState)(new Set),p=(0,s.useRef)(new Map);(0,s.useEffect)(()=>{if(!l?.email)return;let e=!1;return(async()=>{try{let[t,s]=await Promise.all([i.trackerApi.list(),i.userJobsApi.getMyIds().catch(e=>null)]);if(e)return;let r=new Set,a=new Set;for(let e of t){let t=e.source_job_id;"number"==typeof t&&("applied"===e.column?r.add(t):"saved"===e.column&&(a.add(t),p.current.set(t,e.id)))}for(let e of s?.saved??[])a.add(e);for(let e of s?.applied??[])r.add(e);h(e=>{let t=new Set(e);return r.forEach(e=>t.add(e)),t}),d(e=>{let t=new Set(e);return a.forEach(e=>t.add(e)),t})}catch(e){}})(),()=>{e=!0}},[l?.email]),(0,s.useEffect)(()=>{function e(e){let t=e.detail?.job_id;"number"==typeof t&&h(e=>{if(e.has(t))return e;let s=new Set(e);return s.add(t),s})}return window.addEventListener("hf:job-applied",e),()=>window.removeEventListener("hf:job-applied",e)},[]);let m=(0,s.useCallback)(e=>c.has(e),[c]),f=(0,s.useCallback)(e=>u.has(e),[u]),y=(0,s.useCallback)(e=>{let t=c.has(e);if(d(s=>{let r=new Set(s);return t?r.delete(e):r.add(e),r}),t){let t=p.current.get(e);p.current.delete(e),"number"==typeof t&&i.trackerApi.delete(t).then(()=>{window.dispatchEvent(new CustomEvent("hf:tracker-changed"))}).catch(()=>{r.default.error("Couldn't unsave â try again"),d(t=>{let s=new Set(t);return s.add(e),s}),p.current.set(e,t)})}else i.trackerApi.addFromFeed(e,"saved").then(t=>{p.current.set(e,t.id),(0,a.track)("job_saved",{job_id:e}),window.dispatchEvent(new CustomEvent("hf:tracker-changed"))}).catch(()=>{r.default.error("Couldn't save â try again"),d(t=>{let s=new Set(t);return s.delete(e),s})})},[c]),x=(0,s.useCallback)(e=>{let t=u.has(e);h(s=>{let r=new Set(s);return t?r.delete(e):r.add(e),r}),(t?i.userJobsApi.unapplyJob(e):i.userJobsApi.applyJob(e)).then(()=>{t||(0,a.track)("job_applied",{job_id:e}),window.dispatchEvent(new CustomEvent("hf:tracker-changed"))}).catch(s=>{!t&&s instanceof i.ApiError&&409===s.status?(0,a.track)("job_applied",{job_id:e}):(r.default.error(t?"Couldn't update â try again":"Couldn't mark applied â try again"),h(s=>{let r=new Set(s);return t?r.add(e):r.delete(e),r}))})},[u]),g=(0,s.useCallback)(e=>{h(t=>{if(t.has(e))return t;let s=new Set(t);return s.add(e),s})},[]),b=(0,s.useMemo)(()=>({savedIds:c,appliedIds:u,isSaved:m,isApplied:f,toggleSave:y,toggleApply:x,markApplied:g}),[c,u,m,f,y,x,g]);return(0,t.jsx)(o.Provider,{value:b,children:e})},"useJobActions",0,function(){let e=(0,s.useContext)(o);return e||{savedIds:new Set,appliedIds:new Set,isSaved:()=>!1,isApplied:()=>!1,toggleSave:()=>{},toggleApply:()=>{},markApplied:()=>{}}}])},479278,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let r="hf_job_cart",i=(0,s.createContext)({items:[],count:0,has:()=>!1,add:()=>{},remove:()=>{},clear:()=>{},toggle:()=>{},open:!1,setOpen:()=>{}});e.s(["JobCartProvider",0,function({children:e}
9){let[a,n]=(0,s.useState)([]),[o,l]=(0,s.useState)(!1),[c,d]=(0,s.useState)(!1);(0,s.useEffect)(()=>{n(function(){try{let e=localStorage.getItem(r);if(!e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(e=>e&&"number"==typeof e.id&&"string"==typeof e.title&&"string"==typeof e.company)}catch{return[]}}()),d(!0)},[]),(0,s.useEffect)(()=>{c&&function(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}}(a)},[a,c]);let u=(0,s.useCallback)(e=>a.some(t=>t.id===e),[a]),h=(0,s.useCallback)(e=>{n(t=>t.some(t=>t.id===e.id)?t:[{...e,addedAt:Date.now()},...t].slice(0,50))},[]),p=(0,s.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e))},[]),m=(0,s.useCallback)(e=>{n(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[{...e,addedAt:Date.now()},...t].slice(0,50))},[]),f=(0,s.useCallback)(()=>n([]),[]),y=(0,s.useMemo)(()=>({items:a,count:a.length,has:u,add:h,remove:p,clear:f,toggle:m,open:o,setOpen:l}),[a,u,h,p,f,m,o]);return(0,t.jsx)(i.Provider,{value:y,children:e})},"useJobCart",0,function(){return(0,s.useContext)(i)}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.