@inploi/plugin-job-search 9.3.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ "use strict";var ml=Object.defineProperty;var _l=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hi=(e,t,n)=>_l(e,typeof t!="symbol"?t+"":t,n);const ge=require("@inploi/sdk");var Tt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function za(e,t){if(!e)throw new Error(t)}function yl(e,t){return e in t}var vi={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},bl=e=>{const{salary:t,config:n,t:r=a=>a}=e,o=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1||t.pay===null&&t.pay_min===null&&t.pay_max===null)return;if(t.pay_mask)return r("competitive");if(t.pay_max&&Number.isNaN(+t.pay_max)||t.pay_min&&Number.isNaN(+t.pay_min)||t.pay&&Number.isNaN(+t.pay))return r("invalid_salary");const i=t.pay_type&&t.pay_type in vi?vi[t.pay_type]:void 0;return t.pay?[o.format(+t.pay),i].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[o.formatRange(+t.pay_min,+t.pay_max),i].filter(Boolean).join(" ")||"":t.pay_max?`${r("up_to")} ${[o.format(+t.pay_max),i].filter(Boolean).join(" ")}`:t.pay_min?`${r("from")} ${[o.format(+t.pay_min),i].filter(Boolean).join(" ")}`:r("invalid_salary")},wl=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),xl=({from:e=new Date,to:t,formatter:n=wl,t:r=o=>o})=>{const i=(t instanceof Date?t:new Date(t)).getTime()-e.getTime(),a={days:Math.round(i/1e3/60/60/24),months:Math.round(i/1e3/60/60/24/30)};return a.days===0?r("today"):Math.abs(a.days)<30?n.format(a.days,"days"):Math.abs(a.days)<3?n.format(a.months,"months"):a.months<0?r("over_30_days_ago"):r("in_over_30_days")},$l="https://maps.inploi.com",Sl=async(e,t,n=Date.now()+2500)=>{t==null||t.throwIfAborted();const r=new AbortController,o=()=>r.abort(t==null?void 0:t.reason);t==null||t.addEventListener("abort",o,{once:!0});let i;try{const a=new Promise((l,d)=>{r.signal.addEventListener("abort",()=>d(r.signal.reason),{once:!0}),i=setTimeout(()=>r.abort(),Math.max(0,n-Date.now()))}),s=await Promise.race([e(r.signal),a]);return t==null||t.throwIfAborted(),s}catch{t==null||t.throwIfAborted();return}finally{clearTimeout(i),t==null||t.removeEventListener("abort",o)}},Cl=()=>({results:[],arm:"direct",source:"none"}),El=async(e,t)=>{const n=await Sl(async r=>{const{lookupPlaces:o}=await Promise.resolve().then(()=>require("./common.geo-transport-CJGUJXTA-BmDm5A18.cjs"));return r.throwIfAborted(),o({...e,signal:r})},e.signal);return n?{...n,results:n.results.map(t)}:Cl()},Ol=e=>{try{const t=new URL("/outcome",$l);t.search=new URLSearchParams({kind:e.kind,surface:e.surface,arm:e.arm,picked:e.picked?"1":"0"}).toString(),t.searchParams.set("source",e.source),e.picked&&e.edited!==void 0&&t.searchParams.set("edited",e.edited?"1":"0"),e.region&&t.searchParams.set("region",e.region),fetch(t.href,{keepalive:!0}).catch(()=>{})}catch{}},un;exports.l=void 0;var qa,vt,gi,Ba,Ka,Ja,ko,Yr,Zr,Ga,Un={},Wn=[],kl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dn=Array.isArray;function Ne(e,t){for(var n in t)e[n]=t[n];return e}function Ao(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?un.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return tn(e,a,r,o,null)}function tn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++qa,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function Ya(){return{current:null}}function V(e){return e.children}function xe(e,t){this.props=e,this.context=t}function Mt(e,t){if(t==null)return e.__?Mt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Mt(e):null}function Al(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Ne({},t);i.__v=t.__v+1,exports.l.vnode&&exports.l.vnode(i),To(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Mt(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,es(r,i,o),t.__e=t.__=null,i.__e!=n&&Za(i)}}function Za(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Za(e)}function Xr(e){(!e.__d&&(e.__d=!0)&&vt.push(e)&&!zn.__r++||gi!=exports.l.debounceRendering)&&((gi=exports.l.debounceRendering)||Ba)(zn)}function zn(){for(var e,t=1;vt.length;)vt.length>t&&vt.sort(Ka),e=vt.shift(),t=vt.length,Al(e);zn.__r=0}function Xa(e,t,n,r,o,i,a,s,l,d,f){var c,h,p,g,v,b,_,m=r&&r.__k||Wn,w=t.length;for(l=Tl(n,t,m,l,w),c=0;c<w;c++)(p=n.__k[c])!=null&&(h=p.__i!=-1&&m[p.__i]||Un,p.__i=c,b=To(e,p,h,o,i,a,s,l,d,f),g=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Po(h.ref,null,p),f.push(p.ref,p.__c||g,p)),v==null&&g!=null&&(v=g),(_=!!(4&p.__u))||h.__k===p.__k?l=Qa(p,l,e,_):typeof p.type=="function"&&b!==void 0?l=b:g&&(l=g.nextSibling),p.__u&=-7);return n.__e=v,l}function Tl(e,t,n,r,o){var i,a,s,l,d,f=n.length,c=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[i]=tn(null,a,null,null,null):dn(a)?a=e.__k[i]=tn(V,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=tn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+h,a.__=e,a.__b=e.__b+1,s=null,(d=a.__i=Pl(a,n,l,c))!=-1&&(c--,(s=n[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>f?h--:o<f&&h++),typeof a.type!="function"&&(a.__u|=4)):d!=l&&(d==l-1?h--:d==l+1?h++:(d>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Mt(s)),ns(s,s));return r}function Qa(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Qa(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Mt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ke(e,t){return t=t||[],e==null||typeof e=="boolean"||(dn(e)?e.some(function(n){Ke(n,t)}):t.push(e)),t}function Pl(e,t,n,r){var o,i,a,s=e.key,l=e.type,d=t[n],f=d!=null&&(2&d.__u)==0;if(d===null&&s==null||f&&s==d.key&&l==d.type)return n;if(r>(f?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&(2&d.__u)==0&&s==d.key&&l==d.type)return a}return-1}function mi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||kl.test(t)?n:n+"px"}function bn(e,t,n,r,o){var i,a;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||mi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ja,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=ko,e.addEventListener(t,i?Zr:Yr,i)):e.removeEventListener(t,i?Zr:Yr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function _i(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ko++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function To(e,t,n,r,o,i,a,s,l,d){var f,c,h,p,g,v,b,_,m,w,y,x,$,C,S,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=exports.l.__b)&&f(t);e:if(typeof E=="function")try{if(_=t.props,m="prototype"in E&&E.prototype.render,w=(f=E.contextType)&&r[f.__c],y=f?w?w.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(m?t.__c=c=new E(_,y):(t.__c=c=new xe(_,y),c.constructor=E,c.render=Dl),w&&w.sub(c),c.state||(c.state={}),c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),m&&c.__s==null&&(c.__s=c.state),m&&E.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ne({},c.__s)),Ne(c.__s,E.getDerivedStateFromProps(_,c.__s))),p=c.props,g=c.state,c.__v=t,h)m&&E.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),m&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(m&&E.getDerivedStateFromProps==null&&_!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,y),t.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,y)===!1){t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Wn.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,y),m&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,g,v)})}if(c.context=y,c.props=_,c.__P=e,c.__e=!1,x=exports.l.__r,$=0,m)c.state=c.__s,c.__d=!1,x&&x(t),f=c.render(c.props,c.state,c.context),Wn.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,x&&x(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++$<25);c.state=c.__s,c.getChildContext!=null&&(r=Ne(Ne({},r),c.getChildContext())),m&&!h&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(p,g)),C=f!=null&&f.type===V&&f.key==null?ts(f.props.children):f,s=Xa(e,dn(C)?C:[C],t,n,r,o,i,a,s,l,d),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),b&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null)if(T.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(S=i.length;S--;)Ao(i[S]);Qr(t)}else t.__e=n.__e,t.__k=n.__k,T.then||Qr(t);exports.l.__e(T,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Rl(n.__e,t,n,r,o,i,a,l,d);return(f=exports.l.diffed)&&f(t),128&t.__u?void 0:s}function Qr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Qr))}function es(e,t,n){for(var r=0;r<n.length;r++)Po(n[r],n[++r],n[++r]);exports.l.__c&&exports.l.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){exports.l.__e(i,o.__v)}})}function ts(e){return typeof e!="object"||e==null||e.__b>0?e:dn(e)?e.map(ts):Ne({},e)}function Rl(e,t,n,r,o,i,a,s,l){var d,f,c,h,p,g,v,b=n.props||Un,_=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((p=i[d])&&"setAttribute"in p==!!m&&(m?p.localName==m:p.nodeType==3)){e=p,i[d]=null;break}}if(e==null){if(m==null)return document.createTextNode(_);e=document.createElementNS(o,m,_.is&&_),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(m==null)b===_||s&&e.data==_||(e.data=_);else{if(i=i&&un.call(e.childNodes),!s&&i!=null)for(b={},d=0;d<e.attributes.length;d++)b[(p=e.attributes[d]).name]=p.value;for(d in b)p=b[d],d=="dangerouslySetInnerHTML"?c=p:d=="children"||d in _||d=="value"&&"defaultValue"in _||d=="checked"&&"defaultChecked"in _||bn(e,d,null,p,o);for(d in _)p=_[d],d=="children"?h=p:d=="dangerouslySetInnerHTML"?f=p:d=="value"?g=p:d=="checked"?v=p:s&&typeof p!="function"||b[d]===p||bn(e,d,p,b[d],o);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Xa(t.type=="template"?e.content:e,dn(h)?h:[h],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Mt(n,0),s,l),i!=null)for(d=i.length;d--;)Ao(i[d]);s||(d="value",m=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||m=="progress"&&!g||m=="option"&&g!=b[d])&&bn(e,d,g,b[d],o),d="checked",v!=null&&v!=e[d]&&bn(e,d,v,b[d],o))}return e}function Po(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){exports.l.__e(o,n)}}function ns(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Po(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){exports.l.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ns(r[o],t,n||typeof e.type!="function");n||Ao(e.__e),e.__c=e.__=e.__e=void 0}function Dl(e,t,n){return this.constructor(e,n)}function It(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],To(t,e=(!r&&n||t).__k=k(V,null,[e]),o||Un,Un,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?un.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),es(i,e,a)}function Ro(e,t){It(e,t,Ro)}function Ll(e,t,n){var r,o,i,a,s=Ne({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?un.call(arguments,2):n),tn(e.type,s,r||e.key,o||e.ref,null)}function Ge(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Xr(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Ga++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}un=Wn.slice,exports.l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},qa=0,xe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ne({},this.state),typeof e=="function"&&(e=e(Ne({},n),this.props)),e&&Ne(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Xr(this))},xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Xr(this))},xe.prototype.render=V,vt=[],Ba=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ka=function(e,t){return e.__v.__b-t.__v.__b},zn.__r=0,Ja=/(PointerCapture)$|Capture$/i,ko=0,Yr=_i(!1),Zr=_i(!0),Ga=0;const Nl={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function rs(e){return Nl}let wr;function Ml(e){return wr==null?void 0:wr.get(e)}let xr;function Il(e){return xr==null?void 0:xr.get(e)}let $r;function jl(e,t){var n;return(n=$r==null?void 0:$r.get(e))==null?void 0:n.get(t)}function Do(e){var n,r;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor)==null?void 0:r.name))??"null":t}function me(e,t,n,r,o){const i=o&&"input"in o?o.input:n.value,a=(o==null?void 0:o.expected)??e.expects??null,s=(o==null?void 0:o.received)??Do(i),l={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??jl(e.reference,l.lang)??(d?Il(l.lang):null)??r.message??Ml(l.lang);f!==void 0&&(l.message=typeof f=="function"?f(l):f),d&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}const yi=new WeakMap;function fe(e){let t=yi.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},rs())}},yi.set(e,t)),t}function Fl(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function os(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}const Vl=/^[+-]?(?:\d*\.)?\d+$/u;function is(e){return{kind:"validation",type:"decimal",reference:is,async:!1,expects:null,requirement:Vl,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&me(this,"decimal",t,n),t}}}function _t(e){return{kind:"transformation",type:"transform",reference:_t,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function as(e){return{kind:"validation",type:"url",reference:as,async:!1,expects:null,requirement(t){try{return new URL(t),!0}catch{return!1}},message:e,"~run"(t,n){return t.typed&&!this.requirement(t.value)&&me(this,"URL",t,n),t}}}function Hl(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Lo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function eo(){return{kind:"schema",type:"any",reference:eo,expects:"any",async:!1,get"~standard"(){return fe(this)},"~run"(e){return e.typed=!0,e}}}function rr(e,t){return{kind:"schema",type:"array",reference:rr,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return fe(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let a=0;a<o.length;a++){const s=o[a],l=this.item["~run"]({value:s},r);if(l.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const f of l.issues)f.path?f.path.unshift(d):f.path=[d],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else me(this,"type",n,r);return n}}}function qn(e){return{kind:"schema",type:"boolean",reference:qn,expects:"boolean",async:!1,message:e,get"~standard"(){return fe(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:me(this,"type",t,n),t}}}function Et(e,t){return{kind:"schema",type:"literal",reference:Et,expects:Do(e),async:!1,literal:e,message:t,get"~standard"(){return fe(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:me(this,"type",n,r),n}}}function se(e,t){return{kind:"schema",type:"nullable",reference:se,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return fe(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=Lo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Me(e){return{kind:"schema",type:"number",reference:Me,expects:"number",async:!1,message:e,get"~standard"(){return fe(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:me(this,"type",t,n),t}}}function st(e,t){return{kind:"schema",type:"object",reference:st,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return fe(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const a in this.entries){const s=this.entries[a];if(a in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){const l=a in o?o[a]:Lo(s),d=s["~run"]({value:l},r);if(d.issues){const f={type:"object",origin:"value",input:o,key:a,value:l};for(const c of d.issues)c.path?c.path.unshift(f):c.path=[f],(i=n.issues)==null||i.push(c);if(n.issues||(n.issues=d.issues),r.abortEarly){n.typed=!1;break}}d.typed||(n.typed=!1),n.value[a]=d.value}else if(s.fallback!==void 0)n.value[a]=Hl(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(me(this,"key",n,r,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),r.abortEarly))break}}else me(this,"type",n,r);return n}}}function kt(e,t){return{kind:"schema",type:"optional",reference:kt,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return fe(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Lo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function ss(e,t){return{kind:"schema",type:"picklist",reference:ss,expects:os(e.map(Do),"|"),async:!1,options:e,message:t,get"~standard"(){return fe(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:me(this,"type",n,r),n}}}function No(e,t,n){return{kind:"schema",type:"record",reference:No,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return fe(this)},"~run"(r,o){var a,s;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const l in i)if(Fl(i,l)){const d=i[l],f=this.key["~run"]({value:l},o);if(f.issues){const h={type:"object",origin:"key",input:i,key:l,value:d};for(const p of f.issues)p.path=[h],(a=r.issues)==null||a.push(p);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const c=this.value["~run"]({value:d},o);if(c.issues){const h={type:"object",origin:"value",input:i,key:l,value:d};for(const p of c.issues)p.path?p.path.unshift(h):p.path=[h],(s=r.issues)==null||s.push(p);if(r.issues||(r.issues=c.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!c.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=c.value)}}else me(this,"type",r,o);return r}}}function re(e){return{kind:"schema",type:"string",reference:re,expects:"string",async:!1,message:e,get"~standard"(){return fe(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:me(this,"type",t,n),t}}}function bi(e){let t;if(e)for(const n of e)if(t)for(const r of n.issues)t.push(r);else t=n.issues;return t}function to(e,t){return{kind:"schema",type:"union",reference:to,expects:os(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return fe(this)},"~run"(n,r){let o,i,a;for(const s of this.options){const l=s["~run"]({value:n.value},r);if(l.typed)if(l.issues)i?i.push(l):i=[l];else{o=l;break}else a?a.push(l):a=[l]}if(o)return o;if(i){if(i.length===1)return i[0];me(this,"type",n,r,{issues:bi(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];me(this,"type",n,r,{issues:bi(a)})}return n}}}function cs(){return{kind:"schema",type:"unknown",reference:cs,expects:"unknown",async:!1,get"~standard"(){return fe(this)},"~run"(e){return e.typed=!0,e}}}function yt(...e){return{...e[0],pipe:e,get"~standard"(){return fe(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}function Ul(e,t,n){const r=e["~run"]({value:t},rs());return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Wl="isdk-saved-jobs",zl="inploi-job-search",ql=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],ls=["LOCATION","REMOTE","HYBRID"],gt=10,wi=yt(cs(),_t(String),re()),Bl=e=>yt(No(re(),rr(st({label:wi,value:wi,jobs:Me()}))),_t(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)us(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)ds(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),Kl=yt(re(),as()),Jl=st({total:Me(),current_page:Me(),per_page:Me(),last_page:Me()}),wn=kt(se(re()),null),Gl=st({id:Me(),company_name:re(),external_id:kt(se(re())),company_logo:wn,employment_type:re(),location_type:ss(ls),pay_type:se(to([Et("ANNUALLY"),Et("HOURLY"),Et("MONTHLY"),Et("WEEKLY"),Et("DAILY")])),pay_currency:re(),pay_mask:qn(),pay_display:qn(),pay:se(re()),pay_min:se(re()),pay_max:se(re()),title:re(),contract_type:se(re()),created_at:se(re()),custom_data:se(No(eo(),eo())),href:re(),industry:se(re()),category:se(re()),skills:wn,town:wn,city:se(re()),country:se(re()),vector_distance:wn,coordinates:kt(se(st({lat:Me(),lng:Me()}))),distance_meters:kt(se(to([Me(),yt(re(),is(),_t(Number))])),null),locale:kt(se(re()))});function us(e){return ql.includes(e)}function ds(e){return ls.includes(e)}const fs=(e,t=void 0)=>yt(Gl,_t(n=>{const r=Ul(Kl,n.company_logo),o=t??void 0,i=new Intl.RelativeTimeFormat(o,{numeric:"auto"});return{id:n.id,createdAt:n.created_at,company:{name:n.company_name,logo:r.success?r.output:null},pay:bl({salary:n,config:{locales:o},t:e})??null,title:n.title,contractType:n.contract_type,href:n.href,relativePostedDate:n.created_at?xl({to:new Date(n.created_at),t:e,formatter:i}):"INVALID DATE",customData:n.custom_data,raw:{...n,location_type:ds(n.location_type)?e(`job.location_type.${n.location_type}`):n.location_type,employment_type:us(n.employment_type)?e(`job.employment_type.${n.employment_type}`):n.employment_type},distanceMeters:n.distance_meters,match:n.vector_distance&&parseFloat(n.vector_distance)<.15?e("great_match"):null}})),ps=(e,t)=>yt(st({data:rr(fs(e,t)),pagination:Jl}),_t(n=>({pagination:n.pagination,results:n.data}))),hs=e=>!e||Array.isArray(e)&&e.length===0?null:e,or=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=hs(i==null?void 0:i.value)}return((n=e.geo)==null?void 0:n.type)==="provided"&&e.geo.coords&&(t.geolocation={type:e.geo.type,lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius}),((r=e.geo)==null?void 0:r.type)==="bounds"&&(t.geolocation={type:"bounds",sw:{lat:e.geo.sw.lat,lng:e.geo.sw.lng},ne:{lat:e.geo.ne.lat,lng:e.geo.ne.lng}}),t},xi=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=ge.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Bl(n),searchParams:ge.typed()}});return await e.request(a,{searchParams:{filters:or(t),query:t.query,locale:o,fallback_locale:i},signal:r})},vs=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const l=ge.endpoint({method:"GET",pathname:"/search/results",schema:{response:ps(o,a??s),searchParams:ge.typed()}});return await e.request(l,{searchParams:{filters:or(n),query:n.query,page:r,per_page:gt,result_order:n.resultOrder,priority_segment:i,locale:a,fallback_locale:s},signal:t})},Yl=(e,t)=>yt(st({data:rr(fs(e,t)),pagination:st({has_more:qn()})}),_t(n=>({results:n.data,pagination:n.pagination}))),Zl=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=ge.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Yl(r,i??a),searchParams:ge.typed()}});return await e.request(s,{searchParams:{filters:or(n),query:n.query,mode:n.mode,result_order:n.resultOrder,priority_segment:o,locale:i,fallback_locale:a},signal:t})},fn=e=>{if(e.error)return{queryState:"error",error:e.error,swr:e};if(e.isLoading&&e.data===void 0)return{queryState:"loading",swr:e};if((e.isLoading||e.isValidating)&&e.data)return{queryState:"revalidating",data:e.data,swr:e};if(!e.isLoading&&e.data)return{queryState:"loaded",data:e.data,swr:e};if(!e.data&&!e.isLoading)return{queryState:"idle",swr:e};throw console.error("Unhandled data state",e),new Error("Unhandled data state")},Bn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};async function Xl({rpcClient:e,ids:t,filters:n,t:r,locale:o,signal:i}){var f;const a=[],s=["custom_data.is_internal","segment_ids","segment_slugs"],l={};for(const c of s){const h=hs((f=n[c])==null?void 0:f.value);h!==null&&(l[c]=h)}const d=ge.endpoint({method:"GET",pathname:"/search/results",schema:{response:ps(r,o),searchParams:ge.typed()}});for(let c=0;c<t.length;c+=100){const h=t.slice(c,c+100),p=await e.request(d,{searchParams:{filters:{...l,id:h},query:"",page:1,per_page:100},signal:i});a.push(...p.results.filter(g=>h.includes(g.id)))}return t.flatMap(c=>a.find(h=>h.id===c)??[])}var Ql=0;function u(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var d={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ql,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function gs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gs(e))&&(r&&(r+=" "),r+=t);return r}var Ye,G,Sr,$i,Ft=0,ms=[],te=exports.l,Si=te.__b,Ci=te.__r,Ei=te.diffed,Oi=te.__c,ki=te.unmount,Ai=te.__;function bt(e,t){te.__h&&te.__h(G,e,Ft||t),Ft=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return Ft=1,pn(_s,e)}function pn(e,t,n){var r=bt(Ye++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):_s(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,s);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=G,!G.__f)){var o=function(s,l,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,s,l,d);var c=r.__c.props!==s;return f.some(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(c=!0)}}),i&&i.call(this,s,l,d)||c};G.__f=!0;var i=G.shouldComponentUpdate,a=G.componentWillUpdate;G.componentWillUpdate=function(s,l,d){if(this.__e){var f=i;i=void 0,o(s,l,d),i=f}a&&a.call(this,s,l,d)},G.shouldComponentUpdate=o}return r.__N||r.__}function I(e,t){var n=bt(Ye++,3);!te.__s&&Io(n.__H,t)&&(n.__=e,n.u=t,G.__H.__h.push(n))}function le(e,t){var n=bt(Ye++,4);!te.__s&&Io(n.__H,t)&&(n.__=e,n.u=t,G.__h.push(n))}function A(e){return Ft=5,K(function(){return{current:e}},[])}function Mo(e,t,n){Ft=6,le(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function K(e,t){var n=bt(Ye++,7);return Io(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function j(e,t){return Ft=8,K(function(){return e},t)}function ye(e){var t=G.context[e.__c],n=bt(Ye++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(G)),t.props.value):e.__}function ir(e,t){te.useDebugValue&&te.useDebugValue(t?t(e):e)}function eu(e){var t=bt(Ye++,10),n=D();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ar(){var e=bt(Ye++,11);if(!e.__){for(var t=G.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function tu(){for(var e;e=ms.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ln),t.__h.some(no),t.__h=[]}catch(n){t.__h=[],te.__e(n,e.__v)}}}te.__b=function(e){G=null,Si&&Si(e)},te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ai&&Ai(e,t)},te.__r=function(e){Ci&&Ci(e),Ye=0;var t=(G=e.__c).__H;t&&(Sr===G?(t.__h=[],G.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Ln),t.__h.some(no),t.__h=[],Ye=0)),Sr=G},te.diffed=function(e){Ei&&Ei(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ms.push(t)!==1&&$i===te.requestAnimationFrame||(($i=te.requestAnimationFrame)||nu)(tu)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Sr=G=null},te.__c=function(e,t){t.some(function(n){try{n.__h.some(Ln),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],te.__e(r,n.__v)}}),Oi&&Oi(e,t)},te.unmount=function(e){ki&&ki(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Ln(r)}catch(o){t=o}}),n.__H=void 0,t&&te.__e(t,n.__v))};var Ti=typeof requestAnimationFrame=="function";function nu(e){var t,n=function(){clearTimeout(r),Ti&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ti&&(t=requestAnimationFrame(n))}function Ln(e){var t=G,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),G=t}function no(e){var t=G;e.__c=e.__(),G=t}function Io(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function _s(e,t){return typeof t=="function"?t(e):t}var ru=["other","few","many","two","one","zero"],Pi=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(l,d)=>{var f;return((f=a==null?void 0:a[d])==null?void 0:f.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(a.count);if(!(l in s)){const d=ru.find(f=>f in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,f)=>{var c;return((c=a==null?void 0:a[f])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Ri=Ge(null),ou=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=K(()=>Pi({locale:r,terms:e,overrides:t}),[t,r]);return u(Ri.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=ye(Ri);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Pi({terms:e,overrides:t,locale:n})});const{TranslationProvider:iu,useTranslation:ne,createTFunction:au,defaultTerms:su}=ou({save_job:"Save {{title}}",remove_saved_job:"Remove {{title}} from saved jobs",view_saved_jobs:"Saved jobs",view_saved_jobs_count:"Saved jobs ({{count}})",saved_jobs_title:"Your saved jobs",saved_job_unavailable:"No longer available",remove_unavailable_saved_job:"Remove unavailable job {{id}} from saved jobs",remove:"Remove",no_saved_jobs:"No saved jobs",unavailable_saved_jobs:"Some saved jobs are unavailable in this view. Your bookmarks have been kept.",search_jobs:"Search Jobs",search:"Search",type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",distance_away:"{{distance}} away",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",geo_no_match:"We couldn’t find that place. Try a town, city or postcode.",geo_query_too_short:"Type at least 3 letters of a town, city or postcode.",geo_choose_location:"Press Enter or choose a suggestion to search near this place.",geo_any_distance:"Any distance",feedback:"How was your search experience?",list:"List",map:"Map",map_gesture_windows:"Use Ctrl + scroll to zoom the map",map_gesture_mac:"Use ⌘ + scroll to zoom the map",map_gesture_mobile:"Use two fingers to move the map",map_unavailable:"Map unavailable",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset",sort_by:"Sort by",sort_most_relevant:"Most relevant",sort_closest:"Closest",sort_newest:"Newest","job.employment_type.FULL_TIME":"Full-time","job.employment_type.PART_TIME":"Part-time","job.employment_type.CONTRACT":"Contractor","job.employment_type.TEMPORARY":"Temporary","job.employment_type.INTERN":"Internship","job.employment_type.VOLUNTEER":"Volunteer","job.employment_type.OTHER":"Other","job.location_type.LOCATION":"On-site","job.location_type.REMOTE":"Remote","job.location_type.HYBRID":"Hybrid"});function ys(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ys(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function cu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ys(e))&&(r&&(r+=" "),r+=t);return r}const Di=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,lu=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return cu(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const l=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(i.map(d=>d(l)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:l}=o,d=Object.keys(s).map(h=>{const p=i==null?void 0:i[h],g=l==null?void 0:l[h],v=Di(p)||Di(g);return s[h][v]}),f={...l,...i&&Object.entries(i).reduce((h,p)=>{let[g,v]=p;return typeof v>"u"?h:{...h,[g]:v}},{})},c=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,p)=>{let{class:g,className:v,...b}=p;return Object.entries(b).every(_=>{let[m,w]=_;const y=f[m];return Array.isArray(w)?w.includes(y):y===w})?[...h,g,v]:h},[]);return t(o==null?void 0:o.base,d,c,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{cva:$e}=lu(),_e=$e({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",primary:"bg-accent-12 text-lowest pointer-fine:hover:bg-accent-11",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}}),uu=({error:e,resetError:t})=>u("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[u("p",{children:e.message}),u("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:"Retry"})]}),Ze=({error:e,resetError:t,class:n,...r})=>{const{t:o}=ne();return I(()=>{e.cause instanceof ge.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:jt("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",n),...r,children:[u("div",{class:"flex max-w-full flex-col gap-1",children:[u("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),u("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:e.message})]}),u("button",{type:"button",class:_e({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class on extends xe{constructor(){super(...arguments);hi(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n.message}}componentDidCatch(n){this.setState({error:n})}render(){if(this.state.error){const{Fallback:n}=this.props;return u(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const du={bookmark:u("path",{d:"M7 4.75h10v15l-5-3-5 3Z"}),"bookmark-filled":u("path",{d:"M7 4.75h10v15l-5-3-5 3Z",fill:"currentColor"}),briefcase:u(V,{children:[u("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),u("path",{d:"M4.75 11.75H19.25"}),u("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),u("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:u(V,{children:[u("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),u("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),u("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),u("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),u("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),u("circle",{cx:"18.75",cy:"12",r:"2"}),u("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:u(V,{children:[u("path",{d:"M16.75 10.25H13.75"}),u("path",{d:"M16.75 13.25H13.75"}),u("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),u("path",{d:"M10.25 12.25V18.25"})]}),circles:u(V,{children:[u("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),u("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:u(V,{children:[u("path",{d:"M14 9L12 13L9.5 12"}),u("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:u(V,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(V,{children:[u("path",{d:"M5 13.75H19"}),u("path",{d:"M5 10.25H19"}),u("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),u("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:u(V,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),u("path",{d:"M16 16L19 19"})]}),magnifierSimple:u(V,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M16 16L19 19"})]}),mapPin:u(V,{children:[u("circle",{cx:"12",cy:"9",r:"2"}),u("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),u("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]}),pay:u(V,{children:[u("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),u("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:u(V,{children:[u("path",{d:"M18.5 8.5L17.5 9.5"}),u("path",{d:"M5.5 8.5L6.5 9.5"}),u("path",{d:"M12 6L12 7.5"}),u("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),u("path",{d:"M20.25 15.25H12H3.75"}),u("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:u("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:u("path",{d:"M12 8V16M8 12H16"}),"chevron-right":u("path",{d:"M11 8L15 12L11 16"}),ai:u("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":u(V,{children:[u("circle",{cx:"12",cy:"12",r:"0.75"}),u("circle",{cx:"12",cy:"12",r:"5.75"}),u("path",{d:"M12 4.25V6.25"}),u("path",{d:"M12 17.75V19.75"}),u("path",{d:"M4.25 12L6.25 12"}),u("path",{d:"M17.75 12L19.75 12"})]}),warning:u("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:u(V,{children:[u("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),u("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),u("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:u(V,{children:[u("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),u("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},fu=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(du).map(([t,n])=>{var r;return u("symbol",{id:`i-icon-${t}`,children:u("g",{fill:"none","stroke-width":e.mode==="dark"&&((r=e.accessibility)==null?void 0:r.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})},t)})})}),oe=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function bs(e,t){for(var n in t)e[n]=t[n];return e}function ro(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function jo(e,t){var n=t(),r=D({t:{__:n,u:t}}),o=r[0].t,i=r[1];return le(function(){o.__=n,o.u=t,Cr(o)&&i({t:o})},[e,n,t]),I(function(){return Cr(o)&&i({t:o}),e(function(){Cr(o)&&i({t:o})})},[e]),n}function Cr(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function Fo(e){e()}function Vo(e){return e}function Ho(){return[!1,Fo]}var Uo=le;function Kn(e,t){this.props=e,this.context=t}function ws(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:ro(this.props,o)}function r(o){return this.shouldComponentUpdate=n,k(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Kn.prototype=new xe).isPureReactComponent=!0,Kn.prototype.shouldComponentUpdate=function(e,t){return ro(this.props,e)||ro(this.state,t)};var Li=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Li&&Li(e)};var pu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ee(e){function t(n){var r=bs({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=pu,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ni=function(e,t){return e==null?null:Ke(Ke(e).map(t))},je={map:Ni,forEach:Ni,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ke},hu=exports.l.__e;exports.l.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}hu(e,t,n,r)};var Mi=exports.l.unmount;function xs(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=bs({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return xs(r,t,n)})),e}function $s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return $s(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Pt(){this.__u=0,this.o=null,this.__b=null}function Ss(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wo(e){var t,n,r,o=null;function i(a){if(t||(t=e()).then(function(s){s&&(o=s.default||s),r=!0},function(s){n=s,r=!0}),n)throw n;if(!r)throw t;return o?k(o,a):null}return i.displayName="Lazy",i.__f=!0,i}function At(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Mi&&Mi(e)},(Pt.prototype=new xe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Ss(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var s=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=$s(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=s,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Pt.prototype.componentWillUnmount=function(){this.o=[]},Pt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=xs(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&k(V,null,e.fallback);return o&&(o.__u&=-33),[k(V,null,t.__a?null:e.children),o]};var Ii=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function vu(e){return this.getChildContext=function(){return e.context},e.children}function gu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){It(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}It(k(vu,{context:t.context},e.__v),t.v)}function Cs(e,t){var n=k(gu,{__v:e,h:t});return n.containerInfo=t,n}(At.prototype=new xe).__a=function(e){var t=this,n=Ss(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ii(t,e,r)):o()};n?n(i):i()}},At.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ke(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},At.prototype.componentDidUpdate=At.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ii(e,n,t)})};var Es=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,_u=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yu=/[A-Z0-9]/g,bu=typeof document<"u",wu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Os(e,t,n){return t.__k==null&&(t.textContent=""),It(e,t),typeof n=="function"&&n(),e?e.__c:null}function ks(e,t,n){return Ro(e,t),typeof n=="function"&&n(),e?e.__c:null}xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ji=exports.l.event;function xu(){}function $u(){return this.cancelBubble}function Su(){return this.defaultPrevented}exports.l.event=function(e){return ji&&(e=ji(e)),e.persist=xu,e.isPropagationStopped=$u,e.isDefaultPrevented=Su,e.nativeEvent=e};var zo,Cu={enumerable:!1,configurable:!0,get:function(){return this.class}},Fi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||bu&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||wu(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":_u.test(a)&&(a=l):l=a="oninput":i&&mu.test(a)?a=a.replace(yu,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ke(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ke(n.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Cu)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=Es,Fi&&Fi(e)};var Vi=exports.l.__r;exports.l.__r=function(e){Vi&&Vi(e),zo=e.__c};var Hi=exports.l.diffed;exports.l.diffed=function(e){Hi&&Hi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),zo=null};var As={ReactCurrentDispatcher:{current:{readContext:function(e){return zo.__n[e.__c].props.value},useCallback:j,useContext:ye,useDebugValue:ir,useDeferredValue:Vo,useEffect:I,useId:ar,useImperativeHandle:Mo,useInsertionEffect:Uo,useLayoutEffect:le,useMemo:K,useReducer:pn,useRef:A,useState:D,useSyncExternalStore:jo,useTransition:Ho}}},Eu="18.3.1";function Ts(e){return k.bind(null,e)}function Xe(e){return!!e&&e.$$typeof===Es}function Ps(e){return Xe(e)&&e.type===V}function Rs(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function qt(e){return Xe(e)?Ll.apply(null,arguments):e}function Ds(e){return!!e.__k&&(It(null,e),!0)}function Ls(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ns=function(e,t){return e(t)},hn=function(e,t){return e(t)},Ms=V,Is=Xe,vn={useState:D,useId:ar,useReducer:pn,useEffect:I,useLayoutEffect:le,useInsertionEffect:Uo,useTransition:Ho,useDeferredValue:Vo,useSyncExternalStore:jo,startTransition:Fo,useRef:A,useImperativeHandle:Mo,useMemo:K,useCallback:j,useContext:ye,useDebugValue:ir,version:"18.3.1",Children:je,render:Os,hydrate:ks,unmountComponentAtNode:Ds,createPortal:Cs,createElement:k,createContext:Ge,createFactory:Ts,cloneElement:qt,createRef:Ya,Fragment:V,isValidElement:Xe,isElement:Is,isFragment:Ps,isMemo:Rs,findDOMNode:Ls,Component:xe,PureComponent:Kn,memo:ws,forwardRef:ee,flushSync:hn,unstable_batchedUpdates:Ns,StrictMode:Ms,Suspense:Pt,SuspenseList:At,lazy:Wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:As};const js=Object.freeze(Object.defineProperty({__proto__:null,Children:je,Component:xe,Fragment:V,PureComponent:Kn,StrictMode:Ms,Suspense:Pt,SuspenseList:At,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:As,cloneElement:qt,createContext:Ge,createElement:k,createFactory:Ts,createPortal:Cs,createRef:Ya,default:vn,findDOMNode:Ls,flushSync:hn,forwardRef:ee,hydrate:ks,isElement:Is,isFragment:Ps,isMemo:Rs,isValidElement:Xe,lazy:Wo,memo:ws,render:Os,startTransition:Fo,unmountComponentAtNode:Ds,unstable_batchedUpdates:Ns,useCallback:j,useContext:ye,useDebugValue:ir,useDeferredValue:Vo,useEffect:I,useErrorBoundary:eu,useId:ar,useImperativeHandle:Mo,useInsertionEffect:Uo,useLayoutEffect:le,useMemo:K,useReducer:pn,useRef:A,useState:D,useSyncExternalStore:jo,useTransition:Ho,version:Eu},Symbol.toStringTag,{value:"Module"}));var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ou(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var oo={exports:{}},Er={};const Vs=Ou(js);var Ui;function ku(){if(Ui)return Er;Ui=1;var e=Vs;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(c,h){var p=h(),g=r({inst:{value:p,getSnapshot:h}}),v=g[0].inst,b=g[1];return i(function(){v.value=p,v.getSnapshot=h,l(v)&&b({inst:v})},[c,p,h]),o(function(){return l(v)&&b({inst:v}),c(function(){l(v)&&b({inst:v})})},[c]),a(p),p}function l(c){var h=c.getSnapshot;c=c.value;try{var p=h();return!n(c,p)}catch{return!0}}function d(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Er.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Er}var Or={};var Wi;function Au(){return Wi||(Wi=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=g();if(!c){var b=g();i(v,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}b=a({inst:{value:v,getSnapshot:g}});var _=b[0].inst,m=b[1];return l(function(){_.value=v,_.getSnapshot=g,n(_)&&m({inst:_})},[p,v,g]),s(function(){return n(_)&&m({inst:_}),p(function(){n(_)&&m({inst:_})})},[p]),d(v),v}function n(p){var g=p.getSnapshot;p=p.value;try{var v=g();return!i(p,v)}catch{return!0}}function r(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Vs,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,f=!1,c=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Or.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Or}process.env.NODE_ENV==="production"?oo.exports=ku():oo.exports=Au();var zi=oo.exports;const Hs=0,Us=1,Ws=2,qi=3;var Bi=Object.prototype.hasOwnProperty;function io(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&io(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Bi.call(e,n)&&++r&&!Bi.call(t,n)||!(n in t)||!io(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const qe=new WeakMap,Be=()=>{},ce=Be(),Jn=Object,H=e=>e===ce,Ce=e=>typeof e=="function",Qe=(e,t)=>({...e,...t}),zs=e=>Ce(e.then),kr={},$n={},qo="undefined",gn=typeof window!=qo,ao=typeof document!=qo,Tu=gn&&"Deno"in window,Pu=()=>gn&&typeof window.requestAnimationFrame!=qo,qs=(e,t)=>{const n=qe.get(e);return[()=>!H(t)&&e.get(t)||kr,r=>{if(!H(t)){const o=e.get(t);t in $n||($n[t]=o),n[5](t,Qe(o,r),o||kr)}},n[6],()=>!H(t)&&t in $n?$n[t]:!H(t)&&e.get(t)||kr]};let so=!0;const Ru=()=>so,[co,lo]=gn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Be,Be],Du=()=>{const e=ao&&document.visibilityState;return H(e)||e!=="hidden"},Lu=e=>(ao&&document.addEventListener("visibilitychange",e),co("focus",e),()=>{ao&&document.removeEventListener("visibilitychange",e),lo("focus",e)}),Nu=e=>{const t=()=>{so=!0,e()},n=()=>{so=!1};return co("online",t),co("offline",n),()=>{lo("online",t),lo("offline",n)}},Mu={isOnline:Ru,isVisible:Du},Iu={initFocus:Lu,initReconnect:Nu},Ki=!vn.useId,Rt=!gn||Tu,ju=e=>Pu()?window.requestAnimationFrame(e):setTimeout(e,1),Nn=Rt?I:le,Ar=typeof navigator<"u"&&navigator.connection,Ji=!Rt&&Ar&&(["slow-2g","2g"].includes(Ar.effectiveType)||Ar.saveData),Sn=new WeakMap,Fu=e=>Jn.prototype.toString.call(e),Tr=(e,t)=>e===`[object ${t}]`;let Vu=0;const uo=e=>{const t=typeof e,n=Fu(e),r=Tr(n,"Date"),o=Tr(n,"RegExp"),i=Tr(n,"Object");let a,s;if(Jn(e)===e&&!r&&!o){if(a=Sn.get(e),a)return a;if(a=++Vu+"~",Sn.set(e,a),Array.isArray(e)){for(a="@",s=0;s<e.length;s++)a+=uo(e[s])+",";Sn.set(e,a)}if(i){a="#";const l=Jn.keys(e).sort();for(;!H(s=l.pop());)H(e[s])||(a+=s+":"+uo(e[s])+",");Sn.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Bo=e=>{if(Ce(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?uo(e):"",[e,t]};let Hu=0;const fo=()=>++Hu;async function Bs(...e){const[t,n,r,o]=e,i=Qe({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,f=i.throwOnError;if(Ce(n)){const h=n,p=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&p.push(v);return Promise.all(p.map(c))}return c(n);async function c(h){const[p]=Bo(h);if(!p)return;const[g,v]=qs(t,p),[b,_,m,w]=qe.get(t),y=()=>{const N=b[p];return(Ce(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete m[p],delete w[p],N&&N[0])?N[0](Ws).then(()=>g().data):g().data};if(e.length<3)return y();let x=r,$,C=!1;const S=fo();_[p]=[S,0];const E=!H(l),T=g(),L=T.data,P=T._c,M=H(P)?L:P;if(E&&(l=Ce(l)?l(M,L):l,v({data:l,_c:M})),Ce(x))try{x=x(M)}catch(N){$=N,C=!0}if(x&&zs(x))if(x=await x.catch(N=>{$=N,C=!0}),S!==_[p][0]){if(C)throw $;return x}else C&&E&&d($)&&(a=!0,v({data:M,_c:ce}));if(a&&!C)if(Ce(a)){const N=a(x,M);v({data:N,error:ce,_c:ce})}else v({data:x,error:ce,_c:ce});if(_[p][1]=fo(),Promise.resolve(y()).then(()=>{v({_c:ce})}),C){if(f)throw $;return}return x}}const Gi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ks=(e,t)=>{if(!qe.has(e)){const n=Qe(Iu,t),r=Object.create(null),o=Bs.bind(ce,e);let i=Be;const a=Object.create(null),s=(f,c)=>{const h=a[f]||[];return a[f]=h,h.push(c),()=>h.splice(h.indexOf(c),1)},l=(f,c,h)=>{e.set(f,c);const p=a[f];if(p)for(const g of p)g(c,h)},d=()=>{if(!qe.has(e)&&(qe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,s]),!Rt)){const f=n.initFocus(setTimeout.bind(ce,Gi.bind(ce,r,Hs))),c=n.initReconnect(setTimeout.bind(ce,Gi.bind(ce,r,Us)));i=()=>{f&&f(),c&&c(),qe.delete(e)}}};return d(),[e,o,d,i]}return[e,qe.get(e)[4]]},Uu=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!H(i)&&a>i||setTimeout(r,s,o)},Wu=io,[Ko,zu]=Ks(new Map),Js=Qe({onLoadingSlow:Be,onSuccess:Be,onError:Be,onErrorRetry:Uu,onDiscarded:Be,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ji?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ji?5e3:3e3,compare:Wu,isPaused:()=>!1,cache:Ko,mutate:zu,fallback:{}},Mu),Gs=(e,t)=>{const n=Qe(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Qe(o,a))}return n},po=Ge({}),qu=e=>{const{value:t}=e,n=ye(po),r=Ce(t),o=K(()=>r?t(n):t,[r,n,t]),i=K(()=>r?o:Gs(n,o),[r,n,o]),a=o&&o.provider,s=A(ce);a&&!s.current&&(s.current=Ks(a(i.cache||Ko),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),Nn(()=>{if(l)return l[2]&&l[2](),l[3]},[]),k(po.Provider,Qe(e,{value:i}))},Bu="$inf$",Ys=gn&&window.__SWR_DEVTOOLS_USE__,Ku=Ys?window.__SWR_DEVTOOLS_USE__:[],Ju=()=>{Ys&&(window.__SWR_DEVTOOLS_REACT__=vn)},Gu=e=>Ce(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Yu=()=>{const e=ye(po);return K(()=>Qe(Js,e),[e])},Zu=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Bo(t),[,,,s]=qe.get(Ko);if(a.startsWith(Bu))return n(...i);const l=s[a];return H(l)?n(...i):(delete s[a],l)}),r),Xu=Ku.concat(Zu),Qu=e=>function(...n){const r=Yu(),[o,i,a]=Gu(n),s=Gs(r,a);let l=e;const{use:d}=s,f=(d||[]).concat(Xu);for(let c=f.length;c--;)l=f[c](l);return l(o,i||s.fetcher||null,s)},ed=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Ju();const Pr=vn.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Rr={dedupe:!0},Yi=Promise.resolve(ce),td=()=>Be,nd=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:c,keepPreviousData:h,strictServerPrefetchWarning:p}=n,[g,v,b,_]=qe.get(r),[m,w]=Bo(e),y=A(!1),x=A(!1),$=A(m),C=A(t),S=A(n),E=()=>S.current,T=()=>E().isVisible()&&E().isOnline(),[L,P,M,N]=qs(r,m),B=A({}).current,q=H(a)?H(n.fallback)?ce:n.fallback[m]:a,F=(W,Y)=>{for(const Z in B){const X=Z;if(X==="data"){if(!o(W[X],Y[X])&&(!H(W[X])||!o(de,Y[X])))return!1}else if(Y[X]!==W[X])return!1}return!0},z=!y.current,J=K(()=>{const W=L(),Y=N(),Z=O=>{const R=Qe(O);return delete R._k,(()=>{if(!m||!t||E().isPaused())return!1;if(z&&!H(s))return s;const Qt=H(q)?R.data:q;return H(Qt)||l})()?{isValidating:!0,isLoading:!0,...R}:R},X=Z(W),ue=W===Y?X:Z(Y);let ie=X;return[()=>{const O=Z(L());return F(O,ie)?(ie.data=O.data,ie.isLoading=O.isLoading,ie.isValidating=O.isValidating,ie.error=O.error,ie):(ie=O,O)},()=>ue]},[r,m]),ae=zi.useSyncExternalStore(j(W=>M(m,(Y,Z)=>{F(Z,Y)||W()}),[r,m]),J[0],J[1]),Ae=g[m]&&g[m].length>0,Te=ae.data,be=H(Te)?q&&zs(q)?Pr(q):q:Te,rt=ae.error,Se=A(be),de=h?H(Te)?H(Se.current)?be:Se.current:Te:be,pe=m&&H(be),Pe=A(null);!Rt&&zi.useSyncExternalStore(td,()=>(Pe.current=!1,Pe),()=>(Pe.current=!0,Pe));const Ue=Pe.current;p&&Ue&&!i&&pe&&console.warn(`Missing pre-initiated data for serialized key "${m}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ot=!m||!t||E().isPaused()||Ae&&!H(rt)?!1:z&&!H(s)?s:i?H(be)?!1:l:H(be)||l,wt=H(ae.isValidating)?ot:ae.isValidating,xt=H(ae.isLoading)?ot:ae.isLoading,Re=j(async W=>{const Y=C.current;if(!m||!Y||x.current||E().isPaused())return!1;let Z,X,ue=!0;const ie=W||{},O=!b[m]||!ie.dedupe,R=()=>Ki?!x.current&&m===$.current&&y.current:m===$.current,U={isValidating:!1,isLoading:!1},Qt=()=>{P(U)},fi=()=>{const we=b[m];we&&we[1]===X&&delete b[m]},pi={isValidating:!0};H(L().data)&&(pi.isLoading=!0);try{if(O&&(P(pi),n.loadingTimeout&&H(L().data)&&setTimeout(()=>{ue&&R()&&E().onLoadingSlow(m,n)},n.loadingTimeout),b[m]=[Y(w),fo()]),[Z,X]=b[m],Z=await Z,O&&setTimeout(fi,n.dedupingInterval),!b[m]||b[m][1]!==X)return O&&R()&&E().onDiscarded(m),!1;U.error=ce;const we=v[m];if(!H(we)&&(X<=we[0]||X<=we[1]||we[1]===0))return Qt(),O&&R()&&E().onDiscarded(m),!1;const ze=L().data;U.data=o(ze,Z)?ze:Z,O&&R()&&E().onSuccess(Z,m,n)}catch(we){fi();const ze=E(),{shouldRetryOnError:yr}=ze;ze.isPaused()||(U.error=we,O&&R()&&(ze.onError(we,m,ze),(yr===!0||Ce(yr)&&yr(we))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||T())&&ze.onErrorRetry(we,m,ze,gl=>{const br=g[m];br&&br[0]&&br[0](qi,gl)},{retryCount:(ie.retryCount||0)+1,dedupe:!0})))}return ue=!1,Qt(),!0},[m,r]),pt=j((...W)=>Bs(r,$.current,...W),[]);if(Nn(()=>{C.current=t,S.current=n,H(Te)||(Se.current=Te)}),Nn(()=>{if(!m)return;const W=Re.bind(ce,Rr);let Y=0;E().revalidateOnFocus&&(Y=Date.now()+E().focusThrottleInterval);const X=ed(m,g,(ue,ie={})=>{if(ue==Hs){const O=Date.now();E().revalidateOnFocus&&O>Y&&T()&&(Y=O+E().focusThrottleInterval,W())}else if(ue==Us)E().revalidateOnReconnect&&T()&&W();else{if(ue==Ws)return Re();if(ue==qi)return Re(ie)}});return x.current=!1,$.current=m,y.current=!0,P({_k:w}),ot&&(b[m]||(H(be)||Rt?W():ju(W))),()=>{x.current=!0,X()}},[m]),Nn(()=>{let W;function Y(){const X=Ce(d)?d(L().data):d;X&&W!==-1&&(W=setTimeout(Z,X))}function Z(){!L().error&&(f||E().isVisible())&&(c||E().isOnline())?Re(Rr).then(Y):Y()}return Y(),()=>{W&&(clearTimeout(W),W=-1)}},[d,f,c,m]),ir(de),i){if(!Ki&&Rt&&pe)throw new Error("Fallback data is required when using Suspense in SSR.");pe&&(C.current=t,S.current=n,x.current=!1);const W=_[m],Y=!H(W)&&pe?pt(W):Yi;if(Pr(Y),!H(rt)&&pe)throw rt;const Z=pe?Re(Rr):Yi;!H(de)&&pe&&(Z.status="fulfilled",Z.value=!0),Pr(Z)}return{mutate:pt,get data(){return B.data=!0,de},get error(){return B.error=!0,rt},get isValidating(){return B.isValidating=!0,wt},get isLoading(){return B.isLoading=!0,xt}}},rd=Jn.defineProperty(qu,"defaultValue",{value:Js}),Vt=Qu(nd),Gn=e=>{var n,r,o;const t=[e.baseKey,`mode=${e.mode??"query"}`];if(e.state.query&&t.push(`q=${e.state.query}`),e.state.resultOrder==="newest"&&t.push("result_order=newest"),((n=e.state.geo)==null?void 0:n.type)==="ip"&&t.push("geo=ip"),((r=e.state.geo)==null?void 0:r.type)==="provided"&&e.state.geo.coords&&t.push(`geo=${e.state.geo.coords.lat}_${e.state.geo.coords.lng}_${e.state.geo.radius}`),((o=e.state.geo)==null?void 0:o.type)==="bounds"){const{sw:i,ne:a}=e.state.geo;t.push(`geo=bounds_${i.lat}_${i.lng}_${a.lat}_${a.lng}`)}return t.push(...Zs(e.state.filters).map(([i,a])=>`${i}=${Array.isArray(a)?a.join("|"):a}`)),JSON.stringify(t.sort())},Zs=e=>Object.keys(e).sort().flatMap(t=>{var o;const n=e[t];if(!n)return[];const r=n.select==="many"?(o=n.value)==null?void 0:o.slice().sort():n.value;return[[t,r]]}),Xs=e=>{const[t,n]=D(!1);return I(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},od=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=D(!1);I(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(l=>l.forEach(d=>{clearTimeout(a),d.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var id=["1","2","3","4","5","6","7","8","9","10","11","12"],ad={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},sd=(e,t=1,n)=>r=>{const[o,i]=ad[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Dr=e=>{const t=sd(e.hue,e.chroma,e.mode);return Object.fromEntries(id.map(n=>[e.prefix+n,e.transform(t(n))]))},Lr=e=>e,cd=e=>{const t=Object.keys(e).flatMap(n=>{const r=e[n];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(n)}.${o}`,i]}):[[n,r]]});return Object.fromEntries(t)},Cn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ho=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Cn(e)&&Cn(n))for(const r in n){const o=n[r];if(Cn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];Cn(i)&&ho(i,o)}else Object.assign(e,{[r]:n[r]})}return ho(e,...t)},ld=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},ud=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),l=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:l}}),f=cd(ho(s,l,d)),c=([h,p],g)=>{const v=[g,h].filter(Boolean).join(".");return typeof p=="object"?Object.entries(p).flatMap(b=>c(b,v)):[[r.getToken("declaration",v),p]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(h=>c(h))),ref:h=>i("reference",h.toString())}}})})})});const De=e=>{const t=[],n=r=>({with:(o,i)=>(t.push({pattern:o,fn:i}),n(r)),otherwise:o=>{e:for(const{fn:i,pattern:a}of t){for(const s in a)if(a[s]!==r[s])continue e;return i(r)}if(o)return o(r);throw new Error("No pattern matched")}});return n(e)},[Nr,Mr,En]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],dd=ud().core(({theme:e})=>{var t,n,r,o;return{color:{black:Nr,white:Mr,lowest:e.mode==="light"?Mr:Nr,highest:e.mode==="light"?Nr:Mr,...Dr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Lr}),...Dr({prefix:"n-",hue:((t=e.neutral)==null?void 0:t.hue)??e.accent.hue,chroma:((n=e.neutral)==null?void 0:n.chroma)??.05,mode:e.mode,transform:Lr}),...Dr({prefix:"m-",hue:((r=e.monetary)==null?void 0:r.hue)??140,chroma:((o=e.monetary)==null?void 0:o.chroma)??1,mode:e.mode,transform:Lr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,l,d,f,c,h,p,g,v,b,_,m,w,y,x,$,C,S,E,T,L;const r=(P,M)=>n.core.color[P].replace(")",` / ${M})`),{typography:o,highlights:i}=t,a=((s=t.accessibility)==null?void 0:s.highContrast)??!1;return{font:o.fontFamily??"inherit","font-style":o.style??"inherit","font-filter":((l=o.filter)==null?void 0:l.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((f=o.tag)==null?void 0:f.fontFamily)??o.fontFamily??"inherit","weight-default":((c=o.weight)==null?void 0:c.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((g=(p=o.filter)==null?void 0:p.weight)==null?void 0:g.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((b=o.tag)==null?void 0:b.style)??o.style??"inherit","style-job-heading":((_=o.jobHeading)==null?void 0:_.style)??o.style??"inherit","weight-tag":((w=(m=o.tag)==null?void 0:m.weight)==null?void 0:w.toString())??((y=o.weight)==null?void 0:y.toString())??"inherit","weight-job-heading":(($=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:$.toString())??((C=o.weight)==null?void 0:C.toString())??"inherit","style-input":((S=o.input)==null?void 0:S.style)??o.style??"inherit","weight-input":((T=(E=o.input)==null?void 0:E.weight)==null?void 0:T.toString())??((L=o.weight)==null?void 0:L.toString())??"inherit","app-bg":e("color.lowest"),copy:e(a?"color.highest":"color.n-12"),"copy-lowcontrast":e("color.n-11"),"copy-info":e(a?"color.n-11":"color.n-10"),"copy-icon":e(a?"color.n-12":"color.n-11"),"copy-accent":e(a?"color.highest":"color.a-12"),"copy-accent-lowcontrast":e(a?"color.a-12":"color.a-11"),"copy-accent-icon":e(a?"color.a-12":"color.a-11"),"copy-inverted":e("color.lowest"),"copy-inverted-lowcontrast":e("color.n-4"),"copy-inverted-icon":e("color.n-3"),"tag-neutral-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"tag-neutral-weak-copy":e("color.n-12"),"tag-neutral-weak-stroke-color":e(i==="stroke"?"color.n-5":"color.n-3"),"tag-neutral-strong-bg":i==="fill"?e("color.n-12"):En,"tag-neutral-strong-copy":e(i==="fill"?"color.white":"color.n-12"),"tag-neutral-strong-stroke-color":r(a?"n-12":"n-4",i==="stroke"?1:0),"tag-monetary-weak-bg":e("color.m-3"),"tag-monetary-weak-copy":e("color.m-11"),"tag-monetary-weak-stroke-color":e("color.m-4"),"tag-accent-strong-bg":t.mode==="dark"?e("color.a-9"):e("color.a-11"),"tag-accent-strong-copy":e("color.white"),"tag-accent-strong-stroke-color":En,"radius-app":De(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":De(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":De(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":De(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":De(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":De(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":De(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"1rem").otherwise(),"interactive-neutral-bg":r(a?"n-5":"n-4",.01),"interactive-neutral-bg-hover":e(a?"color.n-5":"color.n-4"),"interactive-neutral-text":e("color.n-12"),"interactive-accent-bg":r(i==="fill"?"a-4":"a-3",.01),"interactive-accent-bg-hover":e(i==="fill"?"color.a-4":"color.a-3"),"interactive-accent-text":e("color.a-11"),"radius-interactive":De(t).with({corners:"rounded"},()=>"1.5rem").with({corners:"soft"},()=>".5rem").with({corners:"sharp"},()=>"0").otherwise(),"section-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"section-strong-bg":e(i==="fill"?a?"color.n-3":"color.n-2":"color.lowest"),"section-weak-stroke-color":i==="fill"?En:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?En:e(a?"color.n-11":"color.n-4"),"section-stroke-width":De(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px"),"job-card-bg":e("color.lowest"),"job-card-bg-active":e("color.lowest"),"job-card-stroke-color":e(a?"color.n-10":"color.n-4"),"job-card-stroke-color-active":e("color.a-9"),"job-card-stroke-width":De(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),fd=ld({prefix:"i-"}),pd=e=>{const t=dd.from({theme:e.theme,getToken:fd}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
2
+ ${n.concat(n).join(`
3
+ `)}
4
+ }`},vo=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Qs(...e){return t=>e.forEach(n=>hd(n,t))}function Ve(...e){return j(Qs(...e),e)}function vd(e,t){const n=Ge(t);function r(i){const{children:a,...s}=i,l=K(()=>s,Object.values(s));return k(n.Provider,{value:l},a)}function o(i){const a=ye(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Jo(e,t=[]){let n=[];function r(i,a){const s=Ge(a),l=n.length;n=[...n,a];function d(c){const{scope:h,children:p,...g}=c,v=(h==null?void 0:h[e][l])||s,b=K(()=>g,Object.values(g));return k(v.Provider,{value:b},p)}function f(c,h){const p=(h==null?void 0:h[e][l])||s,g=ye(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=n.map(a=>Ge(a));return function(s){const l=(s==null?void 0:s[e])||i;return K(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,gd(o,...t)]}function gd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:d})=>{const c=l(i)[`__scope${d}`];return{...s,...c}},{});return K(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Ht=globalThis!=null&&globalThis.document?le:()=>{},md=js.useId||(()=>{});let _d=0;function Mn(e){const[t,n]=D(md());return Ht(()=>{n(r=>r??String(_d++))},[e]),e||(t?`radix-${t}`:"")}function ct(e){const t=A(e);return I(()=>{t.current=e}),K(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ec({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=yd({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=ct(n),l=j(d=>{if(i){const c=typeof d=="function"?d(e):d;c!==e&&s(c)}else o(d)},[i,e,o,s]);return[a,l]}function yd({defaultProp:e,onChange:t}){const n=D(e),[r]=n,o=A(r),i=ct(t);return I(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const sr=ee((e,t)=>{const{children:n,...r}=e,o=je.toArray(n),i=o.find(wd);if(i){const a=i.props.children,s=o.map(l=>l===i?je.count(a)>1?je.only(null):Xe(a)?a.props.children:null:l);return k(go,Q({},r,{ref:t}),Xe(a)?qt(a,void 0,s):null)}return k(go,Q({},r,{ref:t}),n)});sr.displayName="Slot";const go=ee((e,t)=>{const{children:n,...r}=e;return Xe(n)?qt(n,{...xd(r,n.props),ref:t?Qs(t,n.ref):n.ref}):je.count(n)>1?je.only(null):null});go.displayName="SlotClone";const bd=({children:e})=>k(V,null,e);function wd(e){return Xe(e)&&e.type===bd}function xd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const $d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dt=$d.reduce((e,t)=>{const n=ee((r,o)=>{const{asChild:i,...a}=r,s=i?sr:t;return I(()=>{window[Symbol.for("radix-ui")]=!0},[]),k(s,Q({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sd(e,t){e&&hn(()=>e.dispatchEvent(t))}function Cd(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e);I(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const mo="dismissableLayer.update",Ed="dismissableLayer.pointerDownOutside",Od="dismissableLayer.focusOutside";let Zi;const kd=Ge({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tc=ee((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,f=ye(kd),[c,h]=D(null),p=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=D({}),v=Ve(t,S=>h(S)),b=Array.from(f.layers),[_]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(_),w=c?b.indexOf(c):-1,y=f.layersWithOutsidePointerEventsDisabled.size>0,x=w>=m,$=Ad(S=>{const E=S.target,T=[...f.branches].some(L=>L.contains(E));!x||T||(i==null||i(S),s==null||s(S),S.defaultPrevented||l==null||l())},p),C=Td(S=>{const E=S.target;[...f.branches].some(L=>L.contains(E))||(a==null||a(S),s==null||s(S),S.defaultPrevented||l==null||l())},p);return Cd(S=>{w===f.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},p),I(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Zi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),Xi(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zi)}},[c,p,r,f]),I(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),Xi())},[c,f]),I(()=>{const S=()=>g({});return document.addEventListener(mo,S),()=>document.removeEventListener(mo,S)},[]),k(dt.div,Q({},d,{ref:v,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Ad(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e),r=A(!1),o=A(()=>{});return I(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){nc(Ed,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Td(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e),r=A(!1);return I(()=>{const o=i=>{i.target&&!r.current&&nc(Od,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xi(){const e=new CustomEvent(mo);document.dispatchEvent(e)}function nc(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sd(o,i):o.dispatchEvent(i)}const Ir="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",Qi={bubbles:!1,cancelable:!0},rc=ee((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=D(null),d=ct(o),f=ct(i),c=A(null),h=Ve(t,v=>l(v)),p=A({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I(()=>{if(r){let v=function(w){if(p.paused||!s)return;const y=w.target;s.contains(y)?c.current=y:it(c.current,{select:!0})},b=function(w){if(p.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||it(c.current,{select:!0}))},_=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&it(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const m=new MutationObserver(_);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),m.disconnect()}}},[r,s,p.paused]),I(()=>{if(s){ta.add(p);const v=document.activeElement;if(!s.contains(v)){const _=new CustomEvent(Ir,Qi);s.addEventListener(Ir,d),s.dispatchEvent(_),_.defaultPrevented||(Pd(Md(oc(s)),{select:!0}),document.activeElement===v&&it(s))}return()=>{s.removeEventListener(Ir,d),setTimeout(()=>{const _=new CustomEvent(jr,Qi);s.addEventListener(jr,f),s.dispatchEvent(_),_.defaultPrevented||it(v??document.body,{select:!0}),s.removeEventListener(jr,f),ta.remove(p)},0)}}},[s,d,f,p]);const g=j(v=>{if(!n&&!r||p.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,_=document.activeElement;if(b&&_){const m=v.currentTarget,[w,y]=Rd(m);w&&y?!v.shiftKey&&_===y?(v.preventDefault(),n&&it(w,{select:!0})):v.shiftKey&&_===w&&(v.preventDefault(),n&&it(y,{select:!0})):_===m&&v.preventDefault()}},[n,r,p.paused]);return k(dt.div,Q({tabIndex:-1},a,{ref:h,onKeyDown:g}))});function Pd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(it(r,{select:t}),document.activeElement!==n)return}function Rd(e){const t=oc(e),n=ea(t,e),r=ea(t.reverse(),e);return[n,r]}function oc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ea(e,t){for(const n of e)if(!Dd(n,{upTo:t}))return n}function Dd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ld(e){return e instanceof HTMLInputElement&&"select"in e}function it(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ld(e)&&t&&e.select()}}const ta=Nd();function Nd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=na(e,t),e.unshift(t)},remove(t){var n;e=na(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function na(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Md(e){return e.filter(t=>t.tagName!=="A")}const ic=ee((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?vn.createPortal(k(dt.div,Q({},o,{ref:t})),r):null});function Id(e,t){return pn((n,r)=>{const o=t[n][r];return o??n},e)}const Bt=e=>{const{present:t,children:n}=e,r=jd(t),o=typeof n=="function"?n({present:r.isPresent}):je.only(n),i=Ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?qt(o,{ref:i}):null};Bt.displayName="Presence";function jd(e){const[t,n]=D(),r=A({}),o=A(e),i=A("none"),a=e?"mounted":"unmounted",[s,l]=Id(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const d=On(r.current);i.current=s==="mounted"?d:"none"},[s]),Ht(()=>{const d=r.current,f=o.current;if(f!==e){const h=i.current,p=On(d);e?l("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ht(()=>{if(t){const d=c=>{const p=On(r.current).includes(c.animationName);c.target===t&&p&&hn(()=>l("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=On(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:j(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function On(e){return(e==null?void 0:e.animationName)||"none"}let Fr=0;function ac(){I(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ra()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ra()),Fr++,()=>{Fr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Fr--}},[])}function ra(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Le.apply(this,arguments)};function sc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var In="right-scroll-bar-position",jn="width-before-scroll-bar",Vd="with-scroll-bars-hidden",Hd="--removed-body-scroll-bar-size";function Vr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ud(e,t){var n=D(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wd=typeof window<"u"?le:I,oa=new WeakMap;function zd(e,t){var n=Ud(null,function(r){return e.forEach(function(o){return Vr(o,r)})});return Wd(function(){var r=oa.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Vr(s,null)}),i.forEach(function(s){o.has(s)||Vr(s,a)})}oa.set(n,e)},[e]),n}function qd(e){return e}function Bd(e,t){t===void 0&&(t=qd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Kd(e){e===void 0&&(e={});var t=Bd(null);return t.options=Le({async:!0,ssr:!1},e),t}var cc=function(e){var t=e.sideCar,n=sc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k(r,Le({},n))};cc.isSideCarExport=!0;function Jd(e,t){return e.useMedium(t),cc}var lc=Kd(),Hr=function(){},cr=ee(function(e,t){var n=A(null),r=D({onScrollCapture:Hr,onWheelCapture:Hr,onTouchMoveCapture:Hr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,c=e.shards,h=e.sideCar,p=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,_=b===void 0?"div":b,m=sc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=zd([n,t]),x=Le(Le({},m),o);return k(V,null,f&&k(w,{sideCar:lc,removeScrollBar:d,shards:c,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?qt(je.only(s),Le(Le({},x),{ref:y})):k(_,Le({},x,{className:l,ref:y}),s))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:jn,zeroRight:In};var Gd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gd();return t&&e.setAttribute("nonce",t),e}function Zd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yd())&&(Zd(t,n),Xd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ef=function(){var e=Qd();return function(t,n){I(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uc=function(){var e=ef(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},tf={left:0,top:0,right:0,gap:0},Ur=function(e){return parseInt(e||"",10)||0},nf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ur(n),Ur(r),Ur(o)]},rf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tf;var t=nf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},of=uc(),Dt="data-scroll-locked",af=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
5
+ .`.concat(Vd,` {
6
+ overflow: hidden `).concat(r,`;
7
+ padding-right: `).concat(s,"px ").concat(r,`;
8
+ }
9
+ body[`).concat(Dt,`] {
10
+ overflow: hidden `).concat(r,`;
11
+ overscroll-behavior: contain;
12
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
13
+ padding-left: `.concat(o,`px;
14
+ padding-top: `).concat(i,`px;
15
+ padding-right: `).concat(a,`px;
16
+ margin-left:0;
17
+ margin-top:0;
18
+ margin-right: `).concat(s,"px ").concat(r,`;
19
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
20
+ }
21
+
22
+ .`).concat(In,` {
23
+ right: `).concat(s,"px ").concat(r,`;
24
+ }
25
+
26
+ .`).concat(jn,` {
27
+ margin-right: `).concat(s,"px ").concat(r,`;
28
+ }
29
+
30
+ .`).concat(In," .").concat(In,` {
31
+ right: 0 `).concat(r,`;
32
+ }
33
+
34
+ .`).concat(jn," .").concat(jn,` {
35
+ margin-right: 0 `).concat(r,`;
36
+ }
37
+
38
+ body[`).concat(Dt,`] {
39
+ `).concat(Hd,": ").concat(s,`px;
40
+ }
41
+ `)},ia=function(){var e=parseInt(document.body.getAttribute(Dt)||"0",10);return isFinite(e)?e:0},sf=function(){I(function(){return document.body.setAttribute(Dt,(ia()+1).toString()),function(){var e=ia()-1;e<=0?document.body.removeAttribute(Dt):document.body.setAttribute(Dt,e.toString())}},[])},cf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;sf();var i=K(function(){return rf(o)},[o]);return k(of,{styles:af(i,!t,o,n?"":"!important")})},_o=!1;if(typeof window<"u")try{var kn=Object.defineProperty({},"passive",{get:function(){return _o=!0,!0}});window.addEventListener("test",kn,kn),window.removeEventListener("test",kn,kn)}catch{_o=!1}var $t=_o?{passive:!1}:!1,lf=function(e){return e.tagName==="TEXTAREA"},dc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lf(e)&&n[t]==="visible")},uf=function(e){return dc(e,"overflowY")},df=function(e){return dc(e,"overflowX")},aa=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=fc(e,n);if(r){var o=pc(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ff=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fc=function(e,t){return e==="v"?uf(t):df(t)},pc=function(e,t){return e==="v"?ff(t):pf(t)},hf=function(e,t){return e==="h"&&t==="rtl"?-1:1},vf=function(e,t,n,r,o){var i=hf(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),d=!1,f=a>0,c=0,h=0;do{var p=pc(e,s),g=p[0],v=p[1],b=p[2],_=v-b-i*g;(g||_)&&fc(e,s)&&(c+=_,h+=g),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&c===0||!f&&h===0)&&(d=!0),d},An=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sa=function(e){return[e.deltaX,e.deltaY]},ca=function(e){return e&&"current"in e?e.current:e},gf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mf=function(e){return`
42
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
43
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
44
+ `)},_f=0,St=[];function yf(e){var t=A([]),n=A([0,0]),r=A(),o=D(_f++)[0],i=D(function(){return uc()})[0],a=A(e);I(function(){a.current=e},[e]),I(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Fd([e.lockRef.current],(e.shards||[]).map(ca),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=j(function(v,b){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var _=An(v),m=n.current,w="deltaX"in v?v.deltaX:m[0]-_[0],y="deltaY"in v?v.deltaY:m[1]-_[1],x,$=v.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in v&&C==="h"&&$.type==="range")return!1;var S=aa(C,$);if(!S)return!0;if(S?x=C:(x=C==="v"?"h":"v",S=aa(C,$)),!S)return!1;if(!r.current&&"changedTouches"in v&&(w||y)&&(r.current=x),!x)return!0;var E=r.current||x;return vf(E,b,v,E==="h"?w:y)},[]),l=j(function(v){var b=v;if(!(!St.length||St[St.length-1]!==i)){var _="deltaY"in b?sa(b):An(b),m=t.current.filter(function(x){return x.name===b.type&&x.target===b.target&&gf(x.delta,_)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(a.current.shards||[]).map(ca).filter(Boolean).filter(function(x){return x.contains(b.target)}),y=w.length>0?s(b,w[0]):!a.current.noIsolation;y&&b.cancelable&&b.preventDefault()}}},[]),d=j(function(v,b,_,m){var w={name:v,delta:b,target:_,should:m};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),f=j(function(v){n.current=An(v),r.current=void 0},[]),c=j(function(v){d(v.type,sa(v),v.target,s(v,e.lockRef.current))},[]),h=j(function(v){d(v.type,An(v),v.target,s(v,e.lockRef.current))},[]);I(function(){return St.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,$t),document.addEventListener("touchmove",l,$t),document.addEventListener("touchstart",f,$t),function(){St=St.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,$t),document.removeEventListener("touchmove",l,$t),document.removeEventListener("touchstart",f,$t)}},[]);var p=e.removeScrollBar,g=e.inert;return k(V,null,g?k(i,{styles:mf(o)}):null,p?k(cf,{gapMode:"margin"}):null)}const bf=Jd(lc,yf);var Go=ee(function(e,t){return k(cr,Le({},e,{ref:t,sideCar:bf}))});Go.classNames=cr.classNames;var wf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ct=new WeakMap,Tn=new WeakMap,Pn={},Wr=0,hc=function(e){return e&&(e.host||hc(e.parentNode))},xf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$f=function(e,t,n,r){var o=xf(t,Array.isArray(e)?e:[e]);Pn[n]||(Pn[n]=new WeakMap);var i=Pn[n],a=[],s=new Set,l=new Set(o),d=function(c){!c||s.has(c)||(s.add(c),d(c.parentNode))};o.forEach(d);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var p=h.getAttribute(r),g=p!==null&&p!=="false",v=(Ct.get(h)||0)+1,b=(i.get(h)||0)+1;Ct.set(h,v),i.set(h,b),a.push(h),v===1&&g&&Tn.set(h,!0),b===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return f(t),s.clear(),Wr++,function(){a.forEach(function(c){var h=Ct.get(c)-1,p=i.get(c)-1;Ct.set(c,h),i.set(c,p),h||(Tn.has(c)||c.removeAttribute(r),Tn.delete(c)),p||c.removeAttribute(n)}),Wr--,Wr||(Ct=new WeakMap,Ct=new WeakMap,Tn=new WeakMap,Pn={})}},vc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$f(r,o,n,"aria-hidden")):function(){return null}};const gc="Dialog",[mc]=Jo(gc),[Sf,ft]=mc(gc),Cf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=A(null),l=A(null),[d=!1,f]=ec({prop:r,defaultProp:o,onChange:i});return k(Sf,{scope:t,triggerRef:s,contentRef:l,contentId:Mn(),titleId:Mn(),descriptionId:Mn(),open:d,onOpenChange:f,onOpenToggle:j(()=>f(c=>!c),[f]),modal:a},n)},Ef="DialogTrigger",Of=ee((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(Ef,n),i=Ve(t,o.triggerRef);return k(dt.button,Q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yo(o.open)},r,{ref:i,onClick:Ee(e.onClick,o.onOpenToggle)}))}),_c="DialogPortal",[kf,yc]=mc(_c,{forceMount:void 0}),Af=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ft(_c,t);return k(kf,{scope:t,forceMount:n},je.map(r,a=>k(Bt,{present:n||i.open},k(ic,{asChild:!0,container:o},a))))},yo="DialogOverlay",Tf=ee((e,t)=>{const n=yc(yo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ft(yo,e.__scopeDialog);return i.modal?k(Bt,{present:r||i.open},k(Pf,Q({},o,{ref:t}))):null}),Pf=ee((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(yo,n);return k(Go,{as:sr,allowPinchZoom:!0,shards:[o.contentRef]},k(dt.div,Q({"data-state":Yo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ut="DialogContent",Rf=ee((e,t)=>{const n=yc(Ut,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ft(Ut,e.__scopeDialog);return k(Bt,{present:r||i.open},i.modal?k(Df,Q({},o,{ref:t})):k(Lf,Q({},o,{ref:t})))}),Df=ee((e,t)=>{const n=ft(Ut,e.__scopeDialog),r=A(null),o=Ve(t,n.contentRef,r);return I(()=>{const i=r.current;if(i)return vc(i)},[]),k(bc,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,i=>i.preventDefault())}))}),Lf=ee((e,t)=>{const n=ft(Ut,e.__scopeDialog),r=A(!1),o=A(!1);return k(bc,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),bc=ee((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=ft(Ut,n),l=A(null),d=Ve(t,l);return ac(),k(V,null,k(rc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(tc,Q({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Yo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Nf="DialogTitle";function Yo(e){return e?"open":"closed"}const Mf="DialogTitleWarning";vd(Mf,{contentName:Ut,titleName:Nf,docsSlug:"dialog"});const If=Cf,jf=Of,Ff=Af,Vf=Tf,Hf=Rf,Uf=["top","right","bottom","left"],lt=Math.min,he=Math.max,Yn=Math.round,Rn=Math.floor,Fe=e=>({x:e,y:e}),Wf={left:"right",right:"left",bottom:"top",top:"bottom"};function bo(e,t,n){return he(e,lt(t,n))}function et(e,t){return typeof e=="function"?e(t):e}function tt(e){return e.split("-")[0]}function Kt(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}function Ie(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qo(e){return Zo(Ie(e))}function zf(e,t,n){n===void 0&&(n=!1);const r=Kt(e),o=Qo(e),i=Xo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Zn(a)),[a,Zn(a)]}function qf(e){const t=Zn(e);return[wo(e),t,wo(t)]}function wo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const la=["left","right"],ua=["right","left"],Bf=["top","bottom"],Kf=["bottom","top"];function Jf(e,t,n){switch(e){case"top":case"bottom":return n?t?ua:la:t?la:ua;case"left":case"right":return t?Bf:Kf;default:return[]}}function Gf(e,t,n,r){const o=Kt(e);let i=Jf(tt(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(wo)))),i}function Zn(e){const t=tt(e);return Wf[t]+e.slice(t.length)}function Yf(e){return{top:0,right:0,bottom:0,left:0,...e}}function wc(e){return typeof e!="number"?Yf(e):{top:e,right:e,bottom:e,left:e}}function Xn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function da(e,t,n){let{reference:r,floating:o}=e;const i=Ie(t),a=Qo(t),s=Xo(a),l=tt(t),d=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Kt(t)){case"start":p[a]-=h*(n&&d?-1:1);break;case"end":p[a]+=h*(n&&d?-1:1);break}return p}async function Zf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:p=0}=et(t,e),g=wc(p),b=s[h?c==="floating"?"reference":"floating":c],_=Xn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:l})),m=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),y=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Xn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:l}):m);return{top:(_.top-x.top+g.top)/y.y,bottom:(x.bottom-_.bottom+g.bottom)/y.y,left:(_.left-x.left+g.left)/y.x,right:(x.right-_.right+g.right)/y.x}}const Xf=50,Qf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Zf},l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=da(d,r,l),h=r,p=0;const g={};for(let v=0;v<i.length;v++){const b=i[v];if(!b)continue;const{name:_,fn:m}=b,{x:w,y,data:x,reset:$}=await m({x:f,y:c,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,c=y??c,g[_]={...g[_],...x},$&&p<Xf&&(p++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:f,y:c}=da(d,h,l)),v=-1)}return{x:f,y:c,placement:h,strategy:o,middlewareData:g}},ep=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:f=0}=et(e,t)||{};if(d==null)return{};const c=wc(f),h={x:n,y:r},p=Qo(o),g=Xo(p),v=await a.getDimensions(d),b=p==="y",_=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",y=i.reference[g]+i.reference[p]-h[p]-i.floating[g],x=h[p]-i.reference[p],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=$?$[w]:0;(!C||!await(a.isElement==null?void 0:a.isElement($)))&&(C=s.floating[w]||i.floating[g]);const S=y/2-x/2,E=C/2-v[g]/2-1,T=lt(c[_],E),L=lt(c[m],E),P=T,M=C-v[g]-L,N=C/2-v[g]/2+S,B=bo(P,N,M),q=!l.arrow&&Kt(o)!=null&&N!==B&&i.reference[g]/2-(N<P?T:L)-v[g]/2<0,F=q?N<P?N-P:N-M:0;return{[p]:h[p]+F,data:{[p]:B,centerOffset:N-B-F,...q&&{alignmentOffset:F}},reset:q}}}),tp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...b}=et(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=tt(o),m=Ie(s),w=tt(s)===s,y=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=h||(w||!v?[Zn(s)]:qf(s)),$=g!=="none";!h&&$&&x.push(...Gf(s,v,g,y));const C=[s,...x],S=await l.detectOverflow(t,b),E=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&E.push(S[_]),c){const N=zf(o,a,y);E.push(S[N[0]],S[N[1]])}if(T=[...T,{placement:o,overflows:E}],!E.every(N=>N<=0)){var L,P;const N=(((L=i.flip)==null?void 0:L.index)||0)+1,B=C[N];if(B&&(!(c==="alignment"?m!==Ie(B):!1)||T.every(z=>Ie(z.placement)===m?z.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:B}};let q=(P=T.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:P.placement;if(!q)switch(p){case"bestFit":{var M;const F=(M=T.filter(z=>{if($){const J=Ie(z.placement);return J===m||J==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(J=>J>0).reduce((J,ae)=>J+ae,0)]).sort((z,J)=>z[1]-J[1])[0])==null?void 0:M[0];F&&(q=F);break}case"initialPlacement":q=s;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function fa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pa(e){return Uf.some(t=>e[t]>=0)}const np=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=et(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=fa(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:pa(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),s=fa(a,n.floating);return{data:{escapedOffsets:s,escaped:pa(s)}}}default:return{}}}}},xc=new Set(["left","top"]);async function rp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=tt(n),s=Kt(n),l=Ie(n)==="y",d=xc.has(a)?-1:1,f=i&&l?-1:1,c=et(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),l?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const op=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await rp(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ip=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:m,y:w}=_;return{x:m,y:w}}},...d}=et(e,t),f={x:n,y:r},c=await i.detectOverflow(t,d),h=Ie(tt(o)),p=Zo(h);let g=f[p],v=f[h];if(a){const _=p==="y"?"top":"left",m=p==="y"?"bottom":"right",w=g+c[_],y=g-c[m];g=bo(w,g,y)}if(s){const _=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=v+c[_],y=v-c[m];v=bo(w,v,y)}const b=l.fn({...t,[p]:g,[h]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[h]:s}}}}}},ap=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=et(e,t),f={x:n,y:r},c=Ie(o),h=Zo(c);let p=f[h],g=f[c];const v=et(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+b.mainAxis,x=i.reference[h]+i.reference[w]-b.mainAxis;p<y?p=y:p>x&&(p=x)}if(d){var _,m;const w=h==="y"?"width":"height",y=xc.has(tt(o)),x=i.reference[c]-i.floating[w]+(y&&((_=a.offset)==null?void 0:_[c])||0)+(y?0:b.crossAxis),$=i.reference[c]+i.reference[w]+(y?0:((m=a.offset)==null?void 0:m[c])||0)-(y?b.crossAxis:0);g<x?g=x:g>$&&(g=$)}return{[h]:p,[c]:g}}}},sp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...d}=et(e,t),f=await a.detectOverflow(t,d),c=tt(o),h=Kt(o),p=Ie(o)==="y",{width:g,height:v}=i.floating;let b,_;c==="top"||c==="bottom"?(b=c,_=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(_=c,b=h==="end"?"top":"bottom");const m=v-f.top-f.bottom,w=g-f.left-f.right,y=lt(v-f[b],m),x=lt(g-f[_],w),$=!t.middlewareData.shift;let C=y,S=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=m),$&&!h){const T=he(f.left,0),L=he(f.right,0),P=he(f.top,0),M=he(f.bottom,0);p?S=g-2*(T!==0||L!==0?T+L:he(f.left,f.right)):C=v-2*(P!==0||M!==0?P+M:he(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:C});const E=await a.getDimensions(s.floating);return g!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}};function lr(){return typeof window<"u"}function Jt(e){return $c(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=($c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $c(e){return lr()?e instanceof Node||e instanceof ve(e).Node:!1}function Oe(e){return lr()?e instanceof Element||e instanceof ve(e).Element:!1}function nt(e){return lr()?e instanceof HTMLElement||e instanceof ve(e).HTMLElement:!1}function ha(e){return!lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}function mn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function cp(e){return/^(table|td|th)$/.test(Jt(e))}function ur(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lp=/transform|translate|scale|rotate|perspective|filter/,up=/paint|layout|strict|content/,ht=e=>!!e&&e!=="none";let zr;function ei(e){const t=Oe(e)?ke(e):e;return ht(t.transform)||ht(t.translate)||ht(t.scale)||ht(t.rotate)||ht(t.perspective)||!ti()&&(ht(t.backdropFilter)||ht(t.filter))||lp.test(t.willChange||"")||up.test(t.contain||"")}function dp(e){let t=ut(e);for(;nt(t)&&!Wt(t);){if(ei(t))return t;if(ur(t))return null;t=ut(t)}return null}function ti(){return zr==null&&(zr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zr}function Wt(e){return/^(html|body|#document)$/.test(Jt(e))}function ke(e){return ve(e).getComputedStyle(e)}function dr(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ha(e)&&e.host||He(e);return ha(t)?t.host:t}function Sc(e){const t=ut(e);return Wt(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&mn(t)?t:Sc(t)}function an(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ve(o);if(i){const s=xo(a);return t.concat(a,a.visualViewport||[],mn(o)?o:[],s&&n?an(s):[])}else return t.concat(o,an(o,[],n))}function xo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cc(e){const t=ke(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Yn(n)!==i||Yn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ni(e){return Oe(e)?e:e.contextElement}function Lt(e){const t=ni(e);if(!nt(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Cc(t);let a=(i?Yn(n.width):n.width)/r,s=(i?Yn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const fp=Fe(0);function Ec(e){const t=ve(e);return!ti()||!t.visualViewport?fp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ve(e)?!1:t}function mt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ni(e);let a=Fe(1);t&&(r?Oe(r)&&(a=Lt(r)):a=Lt(e));const s=pp(i,n,r)?Ec(i):Fe(0);let l=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const h=ve(i),p=r&&Oe(r)?ve(r):r;let g=h,v=xo(g);for(;v&&r&&p!==g;){const b=Lt(v),_=v.getBoundingClientRect(),m=ke(v),w=_.left+(v.clientLeft+parseFloat(m.paddingLeft))*b.x,y=_.top+(v.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,d*=b.y,f*=b.x,c*=b.y,l+=w,d+=y,g=ve(v),v=xo(g)}}return Xn({width:f,height:c,x:l,y:d})}function fr(e,t){const n=dr(e).scrollLeft;return t?t.left+n:mt(He(e)).left+n}function Oc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function hp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=He(r),s=t?ur(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Fe(1);const f=Fe(0),c=nt(r);if((c||!c&&!i)&&((Jt(r)!=="body"||mn(a))&&(l=dr(r)),c)){const p=mt(r);d=Lt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=a&&!c&&!i?Oc(a,l):Fe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-l.scrollTop*d.y+f.y+h.y}}function vp(e){return Array.from(e.getClientRects())}function gp(e){const t=He(e),n=dr(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+fr(e);const s=-n.scrollTop;return ke(r).direction==="rtl"&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const va=25;function mp(e,t){const n=ve(e),r=He(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const f=ti();(!f||f&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const d=fr(r);if(d<=0){const f=r.ownerDocument,c=f.body,h=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-c.clientWidth-p);g<=va&&(i-=g)}else d<=va&&(i+=d);return{width:i,height:a,x:s,y:l}}function _p(e,t){const n=mt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=nt(e)?Lt(e):Fe(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,d=r*i.y;return{width:a,height:s,x:l,y:d}}function ga(e,t,n){let r;if(t==="viewport")r=mp(e,n);else if(t==="document")r=gp(He(e));else if(Oe(t))r=_p(t,n);else{const o=Ec(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xn(r)}function kc(e,t){const n=ut(e);return n===t||!Oe(n)||Wt(n)?!1:ke(n).position==="fixed"||kc(n,t)}function yp(e,t){const n=t.get(e);if(n)return n;let r=an(e,[],!1).filter(s=>Oe(s)&&Jt(s)!=="body"),o=null;const i=ke(e).position==="fixed";let a=i?ut(e):e;for(;Oe(a)&&!Wt(a);){const s=ke(a),l=ei(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||mn(a)&&!l&&kc(e,a))?r=r.filter(f=>f!==a):o=s,a=ut(a)}return t.set(e,r),r}function bp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ur(t)?[]:yp(t,this._c):[].concat(n),r],s=ga(t,a[0],o);let l=s.top,d=s.right,f=s.bottom,c=s.left;for(let h=1;h<a.length;h++){const p=ga(t,a[h],o);l=he(p.top,l),d=lt(p.right,d),f=lt(p.bottom,f),c=he(p.left,c)}return{width:d-c,height:f-l,x:c,y:l}}function wp(e){const{width:t,height:n}=Cc(e);return{width:t,height:n}}function xp(e,t,n){const r=nt(t),o=He(t),i=n==="fixed",a=mt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Fe(0);function d(){l.x=fr(o)}if(r||!r&&!i)if((Jt(t)!=="body"||mn(o))&&(s=dr(t)),r){const p=mt(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&d();i&&!r&&o&&d();const f=o&&!r&&!i?Oc(o,s):Fe(0),c=a.left+s.scrollLeft-l.x-f.x,h=a.top+s.scrollTop-l.y-f.y;return{x:c,y:h,width:a.width,height:a.height}}function qr(e){return ke(e).position==="static"}function ma(e,t){if(!nt(e)||ke(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return He(e)===n&&(n=n.ownerDocument.body),n}function Ac(e,t){const n=ve(e);if(ur(e))return n;if(!nt(e)){let o=ut(e);for(;o&&!Wt(o);){if(Oe(o)&&!qr(o))return o;o=ut(o)}return n}let r=ma(e,t);for(;r&&cp(r)&&qr(r);)r=ma(r,t);return r&&Wt(r)&&qr(r)&&!ei(r)?n:r||dp(e)||n}const $p=async function(e){const t=this.getOffsetParent||Ac,n=this.getDimensions,r=await n(e.floating);return{reference:xp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sp(e){return ke(e).direction==="rtl"}const Cp={convertOffsetParentRelativeRectToViewportRelativeRect:hp,getDocumentElement:He,getClippingRect:bp,getOffsetParent:Ac,getElementRects:$p,getClientRects:vp,getDimensions:wp,getScale:Lt,isElement:Oe,isRTL:Sp};function Tc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ep(e,t){let n=null,r;const o=He(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const d=e.getBoundingClientRect(),{left:f,top:c,width:h,height:p}=d;if(s||t(),!h||!p)return;const g=Rn(c),v=Rn(o.clientWidth-(f+h)),b=Rn(o.clientHeight-(c+p)),_=Rn(f),w={rootMargin:-g+"px "+-v+"px "+-b+"px "+-_+"px",threshold:he(0,lt(1,l))||1};let y=!0;function x($){const C=$[0].intersectionRatio;if(C!==l){if(!y)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!Tc(d,e.getBoundingClientRect())&&a(),y=!1}try{n=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return a(!0),i}function Op(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=ni(e),f=o||i?[...d?an(d):[],...t?an(t):[]]:[];f.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const c=d&&s?Ep(d,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(_=>{let[m]=_;m&&m.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),d&&!l&&p.observe(d),t&&p.observe(t));let g,v=l?mt(e):null;l&&b();function b(){const _=mt(e);v&&!Tc(v,_)&&n(),v=_,g=requestAnimationFrame(b)}return n(),()=>{var _;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c==null||c(),(_=p)==null||_.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const kp=op,Ap=ip,Tp=tp,Pp=sp,Rp=np,_a=ep,Dp=ap,Lp=(e,t,n)=>{const r=new Map,o={platform:Cp,...n},i={...o.platform,_c:r};return Qf(e,t,{...o,platform:i})};var Fn=typeof document<"u"?le:I;function Qn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Qn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){const n=Pc(e);return Math.round(t*n)/n}function ba(e){const t=A(e);return Fn(()=>{t.current=e}),t}function Np(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[f,c]=D({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D(r);Qn(h,r)||p(r);const[g,v]=D(null),[b,_]=D(null),m=j(F=>{F!==$.current&&($.current=F,v(F))},[]),w=j(F=>{F!==C.current&&(C.current=F,_(F))},[]),y=i||g,x=a||b,$=A(null),C=A(null),S=A(f),E=l!=null,T=ba(l),L=ba(o),P=j(()=>{if(!$.current||!C.current)return;const F={placement:t,strategy:n,middleware:h};L.current&&(F.platform=L.current),Lp($.current,C.current,F).then(z=>{const J={...z,isPositioned:!0};M.current&&!Qn(S.current,J)&&(S.current=J,hn(()=>{c(J)}))})},[h,t,n,L]);Fn(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(F=>({...F,isPositioned:!1})))},[d]);const M=A(!1);Fn(()=>(M.current=!0,()=>{M.current=!1}),[]),Fn(()=>{if(y&&($.current=y),x&&(C.current=x),y&&x){if(T.current)return T.current(y,x,P);P()}},[y,x,P,T,E]);const N=K(()=>({reference:$,floating:C,setReference:m,setFloating:w}),[m,w]),B=K(()=>({reference:y,floating:x}),[y,x]),q=K(()=>{const F={position:n,left:0,top:0};if(!B.floating)return F;const z=ya(B.floating,f.x),J=ya(B.floating,f.y);return s?{...F,transform:"translate("+z+"px, "+J+"px)",...Pc(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:J}},[n,s,B.floating,f.x,f.y]);return K(()=>({...f,update:P,refs:N,elements:B,floatingStyles:q}),[f,P,N,B,q])}const Mp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?_a({element:r.current,padding:o}).fn(n):{}:r?_a({element:r,padding:o}).fn(n):{}}}},Ip=(e,t)=>({...kp(e),options:[e,t]}),jp=(e,t)=>({...Ap(e),options:[e,t]}),Fp=(e,t)=>({...Dp(e),options:[e,t]}),Vp=(e,t)=>({...Tp(e),options:[e,t]}),Hp=(e,t)=>({...Pp(e),options:[e,t]}),Up=(e,t)=>({...Rp(e),options:[e,t]}),Wp=(e,t)=>({...Mp(e),options:[e,t]});function zp(e){const[t,n]=D(void 0);return Ht(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Rc="Popper",[Dc,Lc]=Jo(Rc),[qp,Nc]=Dc(Rc),Bp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D(null);return k(qp,{scope:t,anchor:r,onAnchorChange:o},n)},Kp="PopperAnchor",Jp=ee((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Nc(Kp,n),a=A(null),s=Ve(t,a);return I(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:k(dt.div,Q({},o,{ref:s}))}),Mc="PopperContent",[Gp,Ey]=Dc(Mc),Yp=ee((e,t)=>{var n,r,o,i,a,s,l,d;const{__scopePopper:f,side:c="bottom",sideOffset:h=0,align:p="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:_=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,S=Nc(Mc,f),[E,T]=D(null),L=Ve(t,We=>T(We)),[P,M]=D(null),N=zp(P),B=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,q=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,F=c+(p!=="center"?"-"+p:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},J=Array.isArray(_)?_:[_],ae=J.length>0,Ae={padding:z,boundary:J.filter(Zp),altBoundary:ae},{refs:Te,floatingStyles:be,placement:rt,isPositioned:Se,middlewareData:de}=Np({strategy:"fixed",placement:F,whileElementsMounted:(...We)=>Op(...We,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[Ip({mainAxis:h+q,alignmentAxis:g}),b&&jp({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Fp():void 0,...Ae}),b&&Vp({...Ae}),Hp({...Ae,apply:({elements:We,rects:W,availableWidth:Y,availableHeight:Z})=>{const{width:X,height:ue}=W.reference,ie=We.floating.style;ie.setProperty("--radix-popper-available-width",`${Y}px`),ie.setProperty("--radix-popper-available-height",`${Z}px`),ie.setProperty("--radix-popper-anchor-width",`${X}px`),ie.setProperty("--radix-popper-anchor-height",`${ue}px`)}}),P&&Wp({element:P,padding:v}),Xp({arrowWidth:B,arrowHeight:q}),y&&Up({strategy:"referenceHidden",...Ae})]}),[pe,Pe]=Ic(rt),Ue=ct($);Ht(()=>{Se&&(Ue==null||Ue())},[Se,Ue]);const ot=(o=de.arrow)===null||o===void 0?void 0:o.x,wt=(i=de.arrow)===null||i===void 0?void 0:i.y,xt=((a=de.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Re,pt]=D();return Ht(()=>{E&&pt(window.getComputedStyle(E).zIndex)},[E]),k("div",{ref:Te.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Se?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(s=de.transformOrigin)===null||s===void 0?void 0:s.x,(l=de.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},k(Gp,{scope:f,placedSide:pe,onArrowChange:M,arrowX:ot,arrowY:wt,shouldHideArrow:xt},k(dt.div,Q({"data-side":pe,"data-align":Pe},C,{ref:L,style:{...C.style,animation:Se?void 0:"none",opacity:(d=de.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Zp(e){return e!==null}const Xp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:d}=t,c=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[g,v]=Ic(s),b={start:"0%",center:"50%",end:"100%"}[v],_=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,m=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",y="";return g==="bottom"?(w=c?b:`${_}px`,y=`${-p}px`):g==="top"?(w=c?b:`${_}px`,y=`${l.floating.height+p}px`):g==="right"?(w=`${-p}px`,y=c?b:`${m}px`):g==="left"&&(w=`${l.floating.width+p}px`,y=c?b:`${m}px`),{data:{x:w,y}}}});function Ic(e){const[t,n="center"]=e.split("-");return[t,n]}const Qp=Bp,eh=Jp,th=Yp,jc="Popover",[Fc]=Jo(jc,[Lc]),ri=Lc(),[nh,Gt]=Fc(jc),rh=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ri(t),l=A(null),[d,f]=D(!1),[c=!1,h]=ec({prop:r,defaultProp:o,onChange:i});return k(Qp,s,k(nh,{scope:t,contentId:Mn(),triggerRef:l,open:c,onOpenChange:h,onOpenToggle:j(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:j(()=>f(!0),[]),onCustomAnchorRemove:j(()=>f(!1),[]),modal:a},n))},oh="PopoverTrigger",ih=ee((e,t)=>{const{__scopePopover:n,...r}=e,o=Gt(oh,n),i=ri(n),a=Ve(t,o.triggerRef),s=k(dt.button,Q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uc(o.open)},r,{ref:a,onClick:Ee(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:k(eh,Q({asChild:!0},i),s)}),Vc="PopoverPortal",[ah,sh]=Fc(Vc,{forceMount:void 0}),ch=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Gt(Vc,t);return k(ah,{scope:t,forceMount:n},k(Bt,{present:n||i.open},k(ic,{asChild:!0,container:o},r)))},sn="PopoverContent",lh=ee((e,t)=>{const n=sh(sn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Gt(sn,e.__scopePopover);return k(Bt,{present:r||i.open},i.modal?k(uh,Q({},o,{ref:t})):k(dh,Q({},o,{ref:t})))}),uh=ee((e,t)=>{const n=Gt(sn,e.__scopePopover),r=A(null),o=Ve(t,r),i=A(!1);return I(()=>{const a=r.current;if(a)return vc(a)},[]),k(Go,{as:sr,allowPinchZoom:!0},k(Hc,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,d=s.button===2||l;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),dh=ee((e,t)=>{const n=Gt(sn,e.__scopePopover),r=A(!1),o=A(!1);return k(Hc,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Hc=ee((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...c}=e,h=Gt(sn,n),p=ri(n);return ac(),k(rc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(tc,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},k(th,Q({"data-state":Uc(h.open),role:"dialog",id:h.contentId},p,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Uc(e){return e?"open":"closed"}const fh=rh,ph=ih,hh=ch,vh=lh,wa=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},gh=(e,t={by:"results-count",order:"descending"})=>{const n=[...e];switch(t.by){case"results-count":n.sort((r,o)=>r.jobs-o.jobs);break;case"alphabetically":n.sort((r,o)=>r.label.localeCompare(o.label));break;case"numerically":n.sort((r,o)=>{const i=wa(r.value),a=wa(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},_n=$e({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),Wc=$e({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),zc=$e({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),qc=$e({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),mh=$e({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),_h=({children:e,colorScheme:t})=>u("span",{class:mh({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),yh=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},bh=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},wh=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},xh=({value:e,hasKeyword:t,property:n,useQuery:r,isMobile:o,onValueChange:i,onClose:a})=>{const{t:s}=ne(),l=fn(r()),d=K(()=>{switch(l.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const g=l.data[n.key]??[];return Object.fromEntries(g.map(v=>[v.value,v.jobs]))}default:Tt(l)}},[l,n.key]),f=Bc(e),c=f.length>0,[h,p]=D();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[n.searchable&&u("div",{class:"border-b-px border-neutral-4",children:u("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:h,onInput:g=>p(g.currentTarget.value),placeholder:s("type_to_search")})}),(()=>{var g;switch(l.queryState){case"error":return u(Ze,{error:new Error(s("filters_loading_error"),{cause:l.error}),class:"flex-1",resetError:()=>l.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((v,b)=>u("div",{style:{animationDelay:b*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},b))});case"revalidating":case"loaded":{const v=[...l.data[n.key]??[]];if(!t)for(const w of n.pinnedValues??[])v.some(y=>y.value===w)||v.push({value:w,label:w,jobs:0});const b=h&&h.length>1?v.filter(w=>w.label.toLowerCase().includes(h.toLowerCase())):v,_=[];for(const w of b){if(w.label.length<1)continue;const y=(g=n.pinnedValues)==null?void 0:g.includes(w.value);if(t&&y&&w.jobs===0)continue;const x={...w,results:wh(d,w),disabled:bh(d,w)};n.results==="only-available"?(x.disabled===!1||y&&!t)&&_.push(x):_.push(x)}return _.some(w=>{var y;return!w.disabled||!t&&((y=n.pinnedValues)==null?void 0:y.includes(w.value))})?u("ul",{class:Wc(),children:gh(_,n.sortSuggestions).map(w=>{const y=f.includes(w.value);return u("li",{class:zc({type:"line"}),children:u("button",{type:"button",disabled:w.disabled,"data-filter":!0,"data-current-value":y?"true":void 0,"aria-pressed":y,onClick:()=>{switch(e.select){case"many":{const x=yh(f,w.value);i({select:"many",value:x});break}case"one":i({select:"one",value:y?void 0:w.value});break;default:Tt(e)}},class:qc({active:y,disabled:w.disabled}),children:[u("span",{class:"max-w-full truncate",children:w.label})," ",u(_h,{colorScheme:y?"accentStrong":"neutralStrong",children:w.results})]})},w.value)})}):u("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:s("no_filter_options_available")})}default:Tt(l)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:c&&u("button",{type:"button",class:_e({variant:"neutral",icon:"left"}),onClick:()=>{i(void 0)},children:[u(oe,{"aria-hidden":!0,name:"x"})," ",s("clear")]})}),e.select==="many"&&o&&u("div",{class:"flex items-center overflow-hidden",children:u("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[f.length," ",s("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:_e({variant:c?"accent":"neutral",class:"ml-auto"}),onClick:a,children:s(c?"done":"close")},c?"done":"close")})]})]})},xa=8,$a={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},Sa=$e({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),Ca=$e({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),Bc=e=>typeof e.value=="string"?[e.value]:e.value??[],$h=({selectedValues:e})=>{const t=e.length;return t===0?null:u("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg absolute -right-1 -top-1 inline-flex min-h-6 min-w-6 items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},Kc=({active:e,hasKeyword:t=!1,value:n,onActiveChange:r,property:o,onValueChange:i,unfilteredQuery:a,useQuery:s,theme:l,widgetId:d})=>{const f=yl(o.key,$a)?$a[o.key]:void 0,c=o.icon??f??"filter",h=Bc(n),p=h.length>0,{t:g}=ne(),v=p?`${o.label}, ${h.length} ${g("selected")}`:o.label,b=Xs("(pointer: coarse)"),_=u(V,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(oe,{"aria-hidden":!0,class:"flex-none",name:c}),u("span",{class:"truncate",children:o.label})]}),u(oe,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u($h,{selectedValues:h})]}),m=u(xh,{hasKeyword:t,useQuery:s,onClose:()=>r(!1),onValueChange:i,unfilteredQuery:a,property:o,value:n,isMobile:b});return b?u(If,{open:e,onOpenChange:r,children:[u(jf,{"data-filter-key":o.key,"aria-label":v,class:Sa({state:e||p?"active":"default"}),onTouchStart:Sh,children:_}),u(Ff,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:[u(Vf,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Hf,{class:Ca({mode:"mobile",class:vo(l)}),children:[u("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[u(oe,{name:c,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:o.label})]}),m]})]})})]}):u(fh,{open:e,onOpenChange:w=>r(w),modal:b,children:[u(ph,{"data-filter-key":o.key,"aria-label":v,class:Sa({state:e||p?"active":"default"}),children:_}),u(hh,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:u(vh,{side:"bottom",sideOffset:xa,align:"center",collisionPadding:xa,class:Ca({mode:"desktop",class:vo(l)}),children:m})})})]})};function Sh(){}const Ch=(e,t)=>{var n,r,o;switch(t.select){case"many":(n=t.value)==null||n.forEach(i=>{var a,s;switch(e.select){case"many":(a=e.value)!=null&&a.includes(i)||(s=e.value)==null||s.push(i);break;case"one":e.value=i}});break;case"one":if(!t.value)break;switch(e.select){case"many":(r=e.value)!=null&&r.includes(t.value)||(o=e.value)==null||o.push(t.value);break;case"one":e.value=t.value}break}},Eh=({value:e,activeKey:t})=>{switch(e==null?void 0:e.select){case void 0:return{newValue:void 0,newActiveKey:t};case"one":case"many":return{newValue:e,newActiveKey:t};default:Tt(e)}},Oh=({properties:e,state:t,staged:n,onFilterValueChange:r,onResetFilters:o,rpcClient:i,theme:a,alerts:s,widgetId:l,i18n:d})=>{const{t:f}=ne(),[c,h]=D(void 0),p=K(()=>({filters:nr(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),g=fn(Vt(Gn({state:p,baseKey:"filters"}),()=>xi({rpcClient:i,state:p,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Bn)),v=j(_=>()=>{const m={...t,resultOrder:void 0,filters:{...t.filters,[_]:p.filters[_]}};return Vt(Gn({state:m,baseKey:"filters"}),()=>xi({rpcClient:i,state:m,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Bn)},[i,p.filters,t,f,d]);if(g.queryState==="error")return u(Ze,{error:new Error(f("filters_loading_error"),{cause:g.error}),resetError:()=>g.swr.mutate()});const b=n?kh:Kc;return u("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[e.filter(_=>_.hidden!==!0).map(_=>{const m=c===_.key,w=t.filters[_.key]??{select:_.select,value:void 0},y=p.filters[_.key];y&&Ch(w,y);const x=S=>{const{newActiveKey:E,newValue:T}=Eh({activeKey:c,value:S??y,appliedFilters:t.filters});return h(E),r(_.key,T)},$=S=>h(S?_.key:void 0),C=v(_.key);return u(on,{Fallback:Ze,children:u(b,{unfilteredQuery:g,active:m,hasKeyword:!!t.query,property:_,onActiveChange:$,value:w,useQuery:C,onValueChange:x,theme:a,widgetId:l})},_.key)}),u("button",{type:"button",class:_e({variant:"neutral"}),onClick:o,children:f("reset")}),s?u("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:u("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[u("div",{class:"block h-6 w-6"}),u("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:s.params.config.label})]})}):null]})};function kh({useQuery:e,...t}){const n=e();return u(Kc,{...t,useQuery:()=>n})}const Jc=["gb"],Ah=e=>{const t=ge.jobCountryCodes(e);return t.length?t:Jc},cn=e=>e*1609.34,$o=e=>e*1e3,Th=()=>{const e=typeof document>"u"?"":document.documentElement.lang;if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return}},Gc=(e,t,n=1)=>new Intl.NumberFormat(Th()??e,{style:"unit",unit:t==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:n,trailingZeroDisplay:"stripIfInteger"}),Ph=(e,t,n)=>Gc(n,t).format(e/(t==="miles"?cn(1):$o(1)));function Rh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pr=Rh,Dh=typeof xn=="object"&&xn&&xn.Object===Object&&xn,Lh=Dh,Nh=Lh,Mh=typeof self=="object"&&self&&self.Object===Object&&self,Ih=Nh||Mh||Function("return this")(),hr=Ih,jh=hr,Fh=function(){return jh.Date.now()},Vh=Fh,Hh=/\s/;function Uh(e){for(var t=e.length;t--&&Hh.test(e.charAt(t)););return t}var Wh=Uh,zh=Wh,qh=/^\s+/;function Bh(e){return e&&e.slice(0,zh(e)+1).replace(qh,"")}var Kh=Bh,Jh=hr,Gh=Jh.Symbol,oi=Gh,Ea=oi,Yc=Object.prototype,Yh=Yc.hasOwnProperty,Zh=Yc.toString,en=Ea?Ea.toStringTag:void 0;function Xh(e){var t=Yh.call(e,en),n=e[en];try{e[en]=void 0;var r=!0}catch{}var o=Zh.call(e);return r&&(t?e[en]=n:delete e[en]),o}var Qh=Xh,ev=Object.prototype,tv=ev.toString;function nv(e){return tv.call(e)}var rv=nv,Oa=oi,ov=Qh,iv=rv,av="[object Null]",sv="[object Undefined]",ka=Oa?Oa.toStringTag:void 0;function cv(e){return e==null?e===void 0?sv:av:ka&&ka in Object(e)?ov(e):iv(e)}var Zc=cv;function lv(e){return e!=null&&typeof e=="object"}var uv=lv,dv=Zc,fv=uv,pv="[object Symbol]";function hv(e){return typeof e=="symbol"||fv(e)&&dv(e)==pv}var vr=hv,vv=Kh,Aa=pr,gv=vr,Ta=NaN,mv=/^[-+]0x[0-9a-f]+$/i,_v=/^0b[01]+$/i,yv=/^0o[0-7]+$/i,bv=parseInt;function wv(e){if(typeof e=="number")return e;if(gv(e))return Ta;if(Aa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Aa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vv(e);var n=_v.test(e);return n||yv.test(e)?bv(e.slice(2),n?2:8):mv.test(e)?Ta:+e}var xv=wv,$v=pr,Br=Vh,Pa=xv,Sv="Expected a function",Cv=Math.max,Ev=Math.min;function Ov(e,t,n){var r,o,i,a,s,l,d=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(Sv);t=Pa(t)||0,$v(n)&&(f=!!n.leading,c="maxWait"in n,i=c?Cv(Pa(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p($){var C=r,S=o;return r=o=void 0,d=$,a=e.apply(S,C),a}function g($){return d=$,s=setTimeout(_,t),f?p($):a}function v($){var C=$-l,S=$-d,E=t-C;return c?Ev(E,i-S):E}function b($){var C=$-l,S=$-d;return l===void 0||C>=t||C<0||c&&S>=i}function _(){var $=Br();if(b($))return m($);s=setTimeout(_,v($))}function m($){return s=void 0,h&&r?p($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),d=0,r=l=o=s=void 0}function y(){return s===void 0?a:m(Br())}function x(){var $=Br(),C=b($);if(r=arguments,o=this,l=$,C){if(s===void 0)return g(l);if(c)return clearTimeout(s),s=setTimeout(_,t),p(l)}return s===void 0&&(s=setTimeout(_,t)),a}return x.cancel=w,x.flush=y,x}var kv=Ov;const Av=Fs(kv),So="|",Xc=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;switch(r.select){case"one":{r.defaultValue=o;break}case"many":o.includes(So)?r.defaultValue=o.split(So):r.defaultValue=o}}}),n},Qc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},el=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},Tv=({searchParams:e})=>({properties:t})=>({filters:nr(Xc(t,e),"defaultValue"),mode:Qc(e),geo:tl(e),page:Vn(e.get("page"))??1,view:el(e),query:e.get("query")??"",...e.get("result_order")==="newest"?{resultOrder:"newest"}:{}}),Pv=(e,t)=>{var n,r;if(e.filters!==void 0){const o=or({filters:e.filters,mode:e.mode??"query",page:e.page??1,view:e.view??"list"});for(const[i,a]of Object.entries(o))if(i!=="geolocation"){if(a==null){t.delete(i);continue}Array.isArray(a)?a.length===0?t.delete(i):t.set(i,a.join(So)):typeof a=="string"&&t.set(i,a)}}"geo"in e&&(((n=e.geo)==null?void 0:n.type)==="provided"?(e.geo.coords?(t.set("lat",e.geo.coords.lat.toString()),t.set("lng",e.geo.coords.lng.toString())):(t.delete("lat"),t.delete("lng")),t.set("radius",e.geo.radius.toString())):((r=e.geo)==null||r.type,t.delete("lat"),t.delete("lng"),t.delete("radius"))),"query"in e&&(e.query?t.set("query",e.query):t.delete("query")),"page"in e&&(e.page&&e.page>1?t.set("page",e.page.toString()):t.delete("page")),"resultOrder"in e&&(e.resultOrder==="newest"?t.set("result_order","newest"):t.delete("result_order")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},Vn=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},tl=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=Vn(t),i=Vn(n),a=Vn(r)??cn(Eo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?cn(Eo):a}},nl=(e,t=1e3)=>{const[n,r]=D(e),o=K(()=>Av(i=>r(i),t),[t]);return I(()=>{o(e)},[e,o]),n},Rv=ee(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onEnter:a,onQueryChange:s,onBlur:l,onFocus:d,inputProps:f,menuProps:c,query:h},p)=>{const[g,v]=D(!1),[b,_]=D(),m=A(!1),{t:w}=ne();I(()=>{var $;_(($=o[0])==null?void 0:$.id),m.current=!1},[o]);const y=$=>{i($),v(!1)},x=!t&&g&&!e&&o.length>0;return u("div",{class:"relative h-full",children:[u("input",{name:n,"aria-label":r,ref:p,disabled:e,"data-active":g?"true":void 0,"aria-controls":x?`ijs-${n}-menu`:void 0,placeholder:r,class:_n({size:"md"}),onFocus:()=>{d==null||d(),v(!0)},onBlur:()=>{window.setTimeout(()=>{l==null||l(),v(!1)},100)},value:h,onChange:$=>{m.current=!1,s($.currentTarget.value)},onKeyDown:$=>{switch(v(!0),$.key){case"ArrowDown":case"ArrowUp":{const C=$.key==="ArrowDown"?1:-1;$.preventDefault();const S=o.findIndex(T=>T.id===b);if(S===-1)return;const E=o[S+C]??o[$.key==="ArrowDown"?0:o.length-1];if(!E)return;_(E.id),m.current=!0;break}case"Enter":$.preventDefault(),a(b,m.current)}},...f}),x?u("ul",{className:Wc({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${n}-menu`,onMouseDown:$=>$.preventDefault(),...c,children:t?u("div",{role:"alert",children:w("geo_suggestions_error")}):o.map($=>u("li",{class:zc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>{_($.id),m.current=!0},class:qc({active:$.id===b,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>y($.id),onKeyDown:C=>{C.key==="Enter"&&y($.id)},children:$.label})},$.id))}):null]})}),Co=3,Ra=e=>e.replace(/\s/gu,"").toUpperCase(),Dv=(e,t)=>{const n=Ra(e),r=t.find(o=>o.feature_type==="postcode"&&Ra(o.name_preferred)===n);return r?[r,...t.filter(o=>o!==r)]:t},Lv=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values());let Nv;const Mv=()=>Nv??(Nv=ge.generateUUID()),Iv=e=>({id:`${e.kind}:${e.label}`,feature_type:e.kind,name_preferred:e.name,place_formatted:e.label.startsWith(`${e.name}, `)?e.label.slice(e.name.length+2):e.label,coordinates:{lat:e.lat,lng:e.lng}}),Da=async([e,t],n)=>{if(e.trim().length<Co)return{results:[],lookup:null};const{results:r,arm:o,source:i}=await El({query:e,country:t.join(","),seed:Mv(),surface:"job-search",signal:n},Iv),a=Lv(r,s=>s.name_preferred+s.place_formatted);return{results:Dv(e,a),lookup:{arm:o,source:i}}},jv=1e4;class rl extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const Fv=({signal:e,timeoutMs:t})=>new Promise((n,r)=>{if(e.aborted){r(new DOMException("Aborted","AbortError"));return}const o=setTimeout(()=>r(new rl),t);e.addEventListener("abort",()=>{clearTimeout(o),r(new DOMException("Aborted","AbortError"))},{once:!0}),navigator.geolocation.getCurrentPosition(i=>{clearTimeout(o),n(i.coords)},i=>{clearTimeout(o),r(i)},{timeout:t})}),Vv=1,Hv=3,Uv=e=>{if(e instanceof DOMException&&e.name==="AbortError")return null;if(e instanceof rl)return"geo_error_timeout";const t=typeof e=="object"&&e!==null&&"code"in e?e.code:void 0;return t===Vv?"geo_error_permission_denied":t===Hv?"geo_error_timeout":"geo_error_position_unavailable"},Wv=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,zv=({onLocate:e,onError:t,signal:n})=>{const[r,o]=D("idle"),[i,a]=D(null),{t:s}=ne(),l=f=>{o("idle"),a(f),e(f)},d=f=>{const c=Uv(f);if(!c)return o("idle");o("error"),t(s(c))};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(r!=="loading"){if(i)return l(i);if(!Wv())return d(void 0);o("loading"),Fv({signal:n,timeoutMs:jv}).then(f=>l({lat:f.latitude,lng:f.longitude})).catch(d)}},"data-state":r,class:_e({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),children:u(oe,{name:"target-location"})})},Nt=$e({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),qv=({onSelect:e,onValueChange:t,coords:n,radius:r,countries:o,onError:i})=>{const{t:a}=ne(),[s,l]=D(""),[d,f]=D(),c=nl(s,500),[h,p]=D(new AbortController),g=Vt(c.trim().length>=Co?[c,o]:null,Da,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:v,queryState:b,error:_}=fn(g),m=A(0),[w,y]=D("view"),x=A(null),$=A(null),C=A(null),S=A(!1);I(()=>{var P,M;w==="edit"&&((P=x.current)==null||P.focus()),w==="view"&&n&&S.current&&(S.current=!1,(M=C.current)==null||M.focus())},[w,n]);const E=(P,M)=>{var N;m.current++,S.current=((N=$.current)==null?void 0:N.contains(document.activeElement))??!1,e(P,M),f(M),l(""),y("view")},T=(P,M)=>{P&&Ol({kind:"places",surface:"job-search",...P,picked:M})};return u("div",{ref:$,class:"relative flex-1",children:[w==="view"&&n?u("button",{ref:C,"aria-label":`${a("geo_search_placeholder")}: ${d??a("location_provided")}`,type:"button",class:_n({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{y("edit")},children:u("div",{class:Nt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:d??a("location_provided")})}):u(Rv,{ref:x,error:_,query:s,name:"location-search",onQueryChange:P=>{m.current++,l(P),i(void 0)},onFocus:()=>{h.abort(),p(new AbortController)},onBlur:()=>{const P=x.current;if(!(!P||document.activeElement===P)){if(y("view"),n)return l("");P.value.trim()&&i(a("geo_choose_location"))}},onItemSelect:P=>{if(b!=="loaded")return;const M=v.results.find(N=>N.id===P);M&&(T(v.lookup,!0),E(M.coordinates,M.name_preferred))},onEnter:async(P,M)=>{var J,ae;const N=s.trim();if(!N)return;if(N.length<Co)return i(a("geo_query_too_short"));const B=++m.current,q=c===s&&b==="loaded"&&((J=v.lookup)==null?void 0:J.source)!=="none"?v:await Da([N,o]);if(B!==m.current)return;const F=q.results.find(Ae=>Ae.id===P),z=F??q.results[0];if(T(q.lookup,M&&!!F),z)return E(z.coordinates,z.name_preferred);i(a(((ae=q.lookup)==null?void 0:ae.source)==="none"?"geo_suggestions_error":"geo_no_match"))},inputPlaceholder:a("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(v==null?void 0:v.results.map(P=>({id:P.id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:P.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:P.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!s&&!n?u(zv,{onLocate:P=>E(P,a("geo_my_location")),onError:i,signal:h.signal}):u("button",{type:"button","aria-label":a("geo_clear_search"),onClick:()=>{m.current++,l(""),i(void 0),f(void 0),t({radius:r,type:"provided"}),y("edit"),x.current&&(x.current.value="",x.current.focus())},class:_e({variant:"neutral",size:"lg",icon:"only"}),children:u(oe,{name:"x"})})})]})},Bv=[.25,.5,1,3,5,10,15,20,30,40],Kv=[.5,1,3,5,10,15,25,50,100],Eo=20,Jv=25,Gv=({rpcClient:e,value:t,onValueChange:n,distanceUnit:r="miles"})=>{const{t:o,locale:i}=ne(),a=ar(),[s,l]=D(),d=Vt("job-countries",()=>ge.getJobCountries(e),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}),f=K(()=>d.data?Ah(d.data):Jc,[d.data]),c=K(()=>Gc(i,r,2),[i,r]),h=r==="miles"?cn(Eo):$o(Jv),p=(t==null?void 0:t.type)==="provided"?t.radius:h,g=(t==null?void 0:t.type)==="provided"?t.coords:void 0,v=(t==null?void 0:t.type)==="provided"?t.label:void 0,b=r==="miles"?Bv.map(_=>({value:cn(_),label:c.format(_)})):Kv.map(_=>({value:$o(_),label:c.format(_)}));return u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"flex flex-col gap-2 md:flex-row",children:[u(qv,{coords:g,radius:p,countries:f,onValueChange:n,onSelect:(_,m)=>{l(void 0),n({type:"provided",radius:p,coords:_,label:m})},onError:l}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:a,children:o("geo_range_label")}),u("select",{id:a,name:"radius",class:_n({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!g,value:g?p:"",onChange:_=>{l(void 0),n({type:"provided",coords:g,label:v,radius:Number(_.currentTarget.value)})},children:[g?null:u("option",{value:"",children:o("geo_any_distance")}),b.map(_=>u("option",{value:_.value,class:"truncate",children:_.label},_.value))]}),u("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:u(oe,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),s?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(oe,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),s]}):null]})},ol=(e,t,n,r)=>{const[o,i]=D(e??""),a=A(),s=A(t);s.current=t;const l=j(()=>clearTimeout(a.current),[]);return le(()=>(i(e??""),l(),l),[e,l]),{input:o,changeInput:f=>{i(f),l();const c=f.trim();if(c.length<=n){s.current("");return}a.current=setTimeout(()=>s.current(c),r)},cancelPending:l}},Yv=2,Zv=({value:e,onValueChange:t,onSearch:n})=>{const{input:r,changeInput:o,cancelPending:i}=ol(e,t,Yv,300),a=r!==""&&r===e,{t:s}=ne();return u("div",{class:"flex flex-col gap-3",children:u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(oe,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:jt({"text-copy-neutral-icon":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:_n({hasValue:a,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:s("type_to_search_jobs"),value:r,onKeyDown:l=>{if(n&&l.key==="Enter"){l.preventDefault(),i();const d=l.currentTarget.value.trim();t(d),n(d)}},onChange:l=>{o(l.currentTarget.value)}}),u("button",{type:"button",class:_e({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o("")},children:u(oe,{name:"x"})})]})})},Xv=({intervalMs:e,strings:t,class:n})=>{const[r,o]=D(0),[i,a]=D(!0),s=[...t,t[0]];return I(()=>{r===s.length&&(a(!1),o(0));const l=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(l)},[r,s.length,e]),u("div",{className:jt("relative h-full w-full overflow-hidden",n),children:u("div",{className:jt("absolute w-full",{"transition-transform duration-500 ease-in-out":i}),style:{height:`${100*s.length}%`,transform:`translateY(-${r*(100/s.length)}%)`},children:s.map((l,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:l},d))})})},Qv=(e,t)=>{I(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},La=3,eg=({value:e,onValueChange:t,options:n,onSearch:r})=>{const{input:o,changeInput:i,cancelPending:a}=ol(e,t,La,1e3),s=o.trim(),l=s!==""&&s===e,{t:d}=ne(),f=s.split(""),[c,h]=D(0),p=A(null);return Qv(p,g=>{g.target instanceof HTMLInputElement&&h(g.target.scrollLeft)}),u("div",{class:"mb-2 flex flex-col gap-2",children:[u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(oe,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:jt("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!l,"text-copy-accent-icon":l})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:p,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:_n({hasValue:l,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:o,onChange:g=>{const v=g.currentTarget.value.trim();i(v)},onKeyDown:g=>{if(g.key==="Enter"){const v=g.currentTarget.value.trim();if(r){g.preventDefault(),a(),t(v),r(v);return}if(v.length<=La)return;g.preventDefault(),a(),t(v)}}}),u("div",{"data-synced":l,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:s.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-c}px)`},children:f.map((g,v)=>u("span",{style:{animationDelay:`${v*300/f.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:g===" "?" ":g},s+v))}):n!=null&&n.suggestions?u(Xv,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:_e({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{i("")},children:u(oe,{name:"x"})})]}),u("p",{class:"font-family-default font-style-default text-style-job-card-info text-copy-neutral-lowcontrast text-balance",children:d("ai_disclaimer")})]})},er=$e({base:"fr flex min-h-8 min-w-0 items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),il="bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]",tg=({value:e,onValueChange:t})=>{const{t:n}=ne();return u("div",{class:il,children:[u("button",{type:"button","aria-pressed":e==="list",class:er({active:e==="list"}),onClick:()=>t("list"),children:[u(oe,{name:"list",class:"size-5 shrink-0"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:er({active:e==="map"}),onClick:()=>t("map"),children:[u(oe,{name:"map",class:"size-5 shrink-0"}),u("span",{children:n("map")})]})]})},ng=({state:e,onValueChange:t})=>{var o;const{t:n}=ne(),r=e.query.trim()?"sort_most_relevant":((o=e.geo)==null?void 0:o.type)==="provided"&&e.geo.coords?"sort_closest":void 0;return r?u("div",{role:"group","aria-label":n("sort_by"),class:il,children:[u("button",{type:"button","aria-pressed":!e.resultOrder,class:er({active:!e.resultOrder}),onClick:()=>t(void 0),children:n(r)}),u("button",{type:"button","aria-pressed":e.resultOrder==="newest",class:er({active:e.resultOrder==="newest"}),onClick:()=>t("newest"),children:n("sort_newest")})]}):null};var rg=Array.isArray,ii=rg,og=ii,ig=vr,ag=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sg=/^\w*$/;function cg(e,t){if(og(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ig(e)?!0:sg.test(e)||!ag.test(e)||t!=null&&e in Object(t)}var lg=cg,ug=Zc,dg=pr,fg="[object AsyncFunction]",pg="[object Function]",hg="[object GeneratorFunction]",vg="[object Proxy]";function gg(e){if(!dg(e))return!1;var t=ug(e);return t==pg||t==hg||t==fg||t==vg}var mg=gg,_g=hr,yg=_g["__core-js_shared__"],bg=yg,Kr=bg,Na=(function(){var e=/[^.]+$/.exec(Kr&&Kr.keys&&Kr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function wg(e){return!!Na&&Na in e}var xg=wg,$g=Function.prototype,Sg=$g.toString;function Cg(e){if(e!=null){try{return Sg.call(e)}catch{}try{return e+""}catch{}}return""}var Eg=Cg,Og=mg,kg=xg,Ag=pr,Tg=Eg,Pg=/[\\^$.*+?()[\]{}|]/g,Rg=/^\[object .+?Constructor\]$/,Dg=Function.prototype,Lg=Object.prototype,Ng=Dg.toString,Mg=Lg.hasOwnProperty,Ig=RegExp("^"+Ng.call(Mg).replace(Pg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jg(e){if(!Ag(e)||kg(e))return!1;var t=Og(e)?Ig:Rg;return t.test(Tg(e))}var Fg=jg;function Vg(e,t){return e==null?void 0:e[t]}var Hg=Vg,Ug=Fg,Wg=Hg;function zg(e,t){var n=Wg(e,t);return Ug(n)?n:void 0}var al=zg,qg=al,Bg=qg(Object,"create"),gr=Bg,Ma=gr;function Kg(){this.__data__=Ma?Ma(null):{},this.size=0}var Jg=Kg;function Gg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yg=Gg,Zg=gr,Xg="__lodash_hash_undefined__",Qg=Object.prototype,em=Qg.hasOwnProperty;function tm(e){var t=this.__data__;if(Zg){var n=t[e];return n===Xg?void 0:n}return em.call(t,e)?t[e]:void 0}var nm=tm,rm=gr,om=Object.prototype,im=om.hasOwnProperty;function am(e){var t=this.__data__;return rm?t[e]!==void 0:im.call(t,e)}var sm=am,cm=gr,lm="__lodash_hash_undefined__";function um(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cm&&t===void 0?lm:t,this}var dm=um,fm=Jg,pm=Yg,hm=nm,vm=sm,gm=dm;function Yt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=fm;Yt.prototype.delete=pm;Yt.prototype.get=hm;Yt.prototype.has=vm;Yt.prototype.set=gm;var mm=Yt;function _m(){this.__data__=[],this.size=0}var ym=_m;function bm(e,t){return e===t||e!==e&&t!==t}var wm=bm,xm=wm;function $m(e,t){for(var n=e.length;n--;)if(xm(e[n][0],t))return n;return-1}var mr=$m,Sm=mr,Cm=Array.prototype,Em=Cm.splice;function Om(e){var t=this.__data__,n=Sm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Em.call(t,n,1),--this.size,!0}var km=Om,Am=mr;function Tm(e){var t=this.__data__,n=Am(t,e);return n<0?void 0:t[n][1]}var Pm=Tm,Rm=mr;function Dm(e){return Rm(this.__data__,e)>-1}var Lm=Dm,Nm=mr;function Mm(e,t){var n=this.__data__,r=Nm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Im=Mm,jm=ym,Fm=km,Vm=Pm,Hm=Lm,Um=Im;function Zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zt.prototype.clear=jm;Zt.prototype.delete=Fm;Zt.prototype.get=Vm;Zt.prototype.has=Hm;Zt.prototype.set=Um;var Wm=Zt,zm=al,qm=hr,Bm=zm(qm,"Map"),Km=Bm,Ia=mm,Jm=Wm,Gm=Km;function Ym(){this.size=0,this.__data__={hash:new Ia,map:new(Gm||Jm),string:new Ia}}var Zm=Ym;function Xm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Qm=Xm,e_=Qm;function t_(e,t){var n=e.__data__;return e_(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _r=t_,n_=_r;function r_(e){var t=n_(this,e).delete(e);return this.size-=t?1:0,t}var o_=r_,i_=_r;function a_(e){return i_(this,e).get(e)}var s_=a_,c_=_r;function l_(e){return c_(this,e).has(e)}var u_=l_,d_=_r;function f_(e,t){var n=d_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var p_=f_,h_=Zm,v_=o_,g_=s_,m_=u_,__=p_;function Xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xt.prototype.clear=h_;Xt.prototype.delete=v_;Xt.prototype.get=g_;Xt.prototype.has=m_;Xt.prototype.set=__;var y_=Xt,sl=y_,b_="Expected a function";function ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(b_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ai.Cache||sl),n}ai.Cache=sl;var w_=ai,x_=w_,$_=500;function S_(e){var t=x_(e,function(r){return n.size===$_&&n.clear(),r}),n=t.cache;return t}var C_=S_,E_=C_,O_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k_=/\\(\\)?/g,A_=E_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(O_,function(n,r,o,i){t.push(o?i.replace(k_,"$1"):r||n)}),t}),T_=A_;function P_(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var R_=P_,ja=oi,D_=R_,L_=ii,N_=vr,Fa=ja?ja.prototype:void 0,Va=Fa?Fa.toString:void 0;function cl(e){if(typeof e=="string")return e;if(L_(e))return D_(e,cl)+"";if(N_(e))return Va?Va.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var M_=cl,I_=M_;function j_(e){return e==null?"":I_(e)}var F_=j_,V_=ii,H_=lg,U_=T_,W_=F_;function z_(e,t){return V_(e)?e:H_(e,t)?[e]:U_(W_(e))}var q_=z_,B_=vr;function K_(e){if(typeof e=="string"||B_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var J_=K_,G_=q_,Y_=J_;function Z_(e,t){t=G_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Y_(t[n++])];return n&&n==r?e:void 0}var X_=Z_,Q_=X_;function ey(e,t,n){var r=e==null?void 0:Q_(e,t);return r===void 0?n:r}var ty=ey;const ll=Fs(ty),Hn=new Map,ln=new Set,Oo="isdk-saved-jobs-change",tr=e=>`${Wl}:${e}`,ul=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>0;function zt(e){if(typeof window>"u")return[];if(ln.has(e))return[...Hn.get(e)??[]];let t;try{t=window.localStorage.getItem(tr(e))}catch{return ln.add(e),[...Hn.get(e)??[]]}let n;try{n=t===null?[]:JSON.parse(t)}catch{n=[]}const r=Array.isArray(n)?[...new Set(n.filter(ul))]:[];return Hn.set(e,r),[...r]}function ny(e,t){return zt(e).includes(t)}function ry(e,t){if(Hn.set(e,t),!ln.has(e))try{t.length?window.localStorage.setItem(tr(e),JSON.stringify(t)):window.localStorage.removeItem(tr(e))}catch{ln.add(e)}window.dispatchEvent(new CustomEvent(Oo,{detail:e}))}function dl(e,t){if(!ul(t))throw new TypeError("Job id must be a positive safe integer");if(typeof window>"u")return!1;const n=zt(e),r=!n.includes(t);return ry(e,r?[...n,t]:n.filter(o=>o!==t)),r}function si(e,t){if(typeof window>"u")return()=>{};const n=o=>{o instanceof CustomEvent&&o.detail===e&&t(zt(e))},r=o=>{if(!ln.has(e)){try{if(o.storageArea&&o.storageArea!==window.localStorage)return}catch{return}(o.key===null||o.key===tr(e))&&t(zt(e))}};return window.addEventListener(Oo,n),window.addEventListener("storage",r),()=>{window.removeEventListener(Oo,n),window.removeEventListener("storage",r)}}function oy(e){const t=new URL(e);return t.searchParams.set("saved",""),t.href}const yn=Ge(void 0);function ci(e){const[t,n]=D();return le(()=>{const r=si(e,n);return n(zt(e)),r},[e]),t}function iy({buttonRef:e,onClick:t}){const n=ye(yn);if(!n)throw new Error("Saved jobs context is required");const r=ci(n.scope),{t:o}=ne(),i=(r==null?void 0:r.length)??0;return u("button",{ref:e,type:"button",class:_e({variant:"neutral",size:"lg",class:"ring-neutral-7 focus-visible:outline-highest ring-px self-start focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}),onClick:t,children:i?o("view_saved_jobs_count",{count:i}):o("view_saved_jobs")})}function fl({id:e,title:t,unavailable:n=!1}){const r=ye(yn);if(!r)throw new Error("Saved jobs context is required");const o=ci(r.scope),{t:i}=ne(),a=(o==null?void 0:o.includes(e))??!1;return u("button",{type:"button","data-save-job":e,"aria-pressed":a,"aria-label":n?i("remove_unavailable_saved_job",{id:e}):i(a?"remove_saved_job":"save_job",{title:t}),class:_e({variant:n?"accent":a?"primary":"neutral",position:n?"relative":"absolute",size:n?"sm":"unsized",class:`${n?"shrink-0 underline underline-offset-4":`rounded-interactive right-4 top-4 p-2 transition-transform ${a?"":"bg-job-card-bg ring-job-card-stroke ring-px"}`} focus-visible:outline-highest focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`}),onClick:s=>{s.preventDefault(),s.stopPropagation();const l=dl(r.scope,e);r.analytics.log({event:"SAVE_JOB",properties:{job_id:e,saved:l}})},children:n?i("remove"):u(oe,{"aria-hidden":!0,name:a?"bookmark-filled":"bookmark"})})}const nn=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),pl=$e({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),hl=$e({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Dn=({job:e,property:t})=>{if(!t)return null;const n=ll(e.raw,t.key);return t.transform?t.transform(n):n},ay=({job:e,config:t="hidden"})=>t==="hidden"?null:u("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:t.replace(":","/")},children:e.company.logo?u("img",{src:e.company.logo,alt:e.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),Jr=e=>Array.isArray(e)?e:[e],at="[+-]?(?:\\d*\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?",rn=`${at}%`,Je=`${at}%?`,li=`(?:\\s*\\/\\s*${Je})?`,vl=`(?:\\s*,\\s*${Je})?`,sy=`${Je}\\s+${Je}\\s+${Je}${li}`,cy=`(?:${at}\\s*,\\s*${at}\\s*,\\s*${at}|${rn}\\s*,\\s*${rn}\\s*,\\s*${rn})${vl}`,ly=`${at}\\s+${Je}\\s+${Je}${li}`,uy=`${at}\\s*,\\s*${rn}\\s*,\\s*${rn}${vl}`,dy=`${Je}\\s+${Je}\\s+${at}${li}`,fy=new RegExp(`^(?:#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})|var\\(--[a-z0-9-]+\\)|(?:rgb|rgba)\\(\\s*(?:${sy}|${cy})\\s*\\)|(?:hsl|hsla)\\(\\s*(?:${ly}|${uy})\\s*\\)|oklch\\(\\s*${dy}\\s*\\))$`),py=1e3*60*60*24,ui=({job:e,config:t,onJobClick:n,size:r,distanceUnit:o})=>{var x,$,C,S,E,T;const{t:i,locale:a}=ne(),s=ye(yn),l=e.distanceMeters===null?null:i("distance_away",{distance:Ph(e.distanceMeters,o??"miles",a)}),d=Dn({job:e,property:t.eyebrow}),f=(x=t.accent)==null?void 0:x.rules.find(L=>Jr(ll(e.raw,L.key)).includes(L.value)),c=f&&fy.test(f.color)?f:void 0,h=t.subheading?Dn({job:e,property:t.subheading}):null,p=t.infoTags.flatMap(L=>Jr(Dn({job:e,property:L}))).filter(Boolean),g=Jr(($=t.overrides)!=null&&$.salary?Dn({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),v=t.postedDate??"show",b=(C=t.overrides)!=null&&C.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,_=t.newUnderDays??7,m=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-_*py:!1,w=L=>{var P,M;n==null||n(e),(M=(P=t.overrides)==null?void 0:P.onClick)==null||M.call(P,L)},y=u("a",{onMouseEnter:(S=t.overrides)==null?void 0:S.onMouseEnter,onClick:w,href:b,"data-accent":c==null?void 0:c.value,style:c?{"--ijs-card-accent":c.color}:void 0,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:pl({class:s?"min-h-28":void 0}),children:[c&&u("span",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 overflow-hidden [border-radius:inherit]",children:u("span",{"data-accent-style":((E=t.accent)==null?void 0:E.style)??"band",class:((T=t.accent)==null?void 0:T.style)==="edge"?"absolute inset-y-0 left-0 w-[4px]":"absolute inset-x-0 top-0 h-[4px]",style:{backgroundColor:"var(--ijs-card-accent)"}})}),u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:`gap-logo flex items-center${s?" min-w-0 pr-12":""}`,children:[u(ay,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:`flex flex-col items-start gap-1${s?" min-w-0":""}`,children:[u("div",{class:"order-2 flex flex-col gap-1",children:[e.match?u("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[u(oe,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,d?u("p",{class:"text-style-job-card-info text-copy-job-info",children:d}):null,u("p",{class:hl({size:r}),children:[e.title.trim(),m&&v!=="hide"&&u(V,{children:[" ",u("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:i("new")})]})]}),h?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:h}):null]}),v==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[i("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[l?u("p",{class:"text-style-job-card-info text-copy-job-info flex items-center gap-1",children:[u(oe,{name:"target-location",class:"size-4 flex-none","aria-hidden":!0}),l]}):null,u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:g.map((L,P)=>u("span",{class:Nt({variant:"monetaryWeak",size:"xs"}),children:L},P))}),p.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:p.map(L=>u("li",{class:Nt({size:"xs",class:"max-w-full truncate"}),children:L},L))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:`absolute right-1 ${s?"bottom-4":"top-1/2 -translate-y-1/2 transform"}`,children:u(oe,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:`flex ${s?"items-end":"items-center"}`,children:u(oe,{name:"chevron-right",class:"text-copy-neutral-icon"})})]});return s?u("div",{class:"relative",children:[y,u(fl,{id:e.id,title:e.title})]}):y},di=({config:e,animationDelay:t,seed:n})=>{const r=e.logo??"hidden",o=e.postedDate??"show";return u("div",{"aria-hidden":!0,style:{animationDelay:t+"s"},class:pl({interactive:!1}),children:[u("div",{class:"flex flex-1 flex-col gap-4",children:[u("div",{class:"flex items-center gap-4",children:[r==="hidden"?null:u("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:r.replace(":","/")}}),u("div",{class:"flex flex-col items-start gap-1",children:[o==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info",children:u(nn,{chars:12})}):null,u("div",{class:"flex flex-col gap-1",children:[u("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:u(nn,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(nn,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:Nt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:Nt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:Nt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(oe,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},hy=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=ne(),i=Math.min(gt,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:gt}).map((a,s)=>u("li",{children:u(di,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:_e({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:t,children:[o("load_more_count",{count:i})," ",o("of_remaining_count",{count:r})]})},vy=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onSearchResults:i,onJobClick:a,onPaginate:s,mode:l,afterResults:d,prioritySegment:f,i18n:c,distanceUnit:h})=>{const{t:p}=ne(),g=A(),[v,b]=D();return u(V,{children:[u("p",{class:"sr-only",role:"status",children:v===void 0?"":v===0?p("no_jobs_found"):p("jobs_found",{count:v})}),Array.from({length:e.page}).map((_,m)=>{const w=m===e.page-1;return u(on,{Fallback:Ze,children:u(gy,{state:e,rpcClient:t,page:m+1,isFirst:m===0,isLast:w,fetchNextPage:()=>{g.current=e.page+1,s(e.page+1)},focusPage:g,jobCardConfig:n,initialData:r,onResultsUpdate:y=>{b(y.totalCount),o==null||o(y)},onJobClick:a,onSearchResults:i,mode:l,afterResults:d,prioritySegment:f,i18n:c,distanceUnit:h},m)},m)})]})},Ha=({page:e})=>{const{t}=ne();return u("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},gy=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,focusPage:a,jobCardConfig:s,initialData:l,onResultsUpdate:d,onSearchResults:f,onJobClick:c,afterResults:h,prioritySegment:p,i18n:g,distanceUnit:v})=>{const{t:b}=ne(),_=n===1?l:void 0,{data:m,error:w,queryState:y,swr:x}=fn(Vt(Gn({state:e,baseKey:n.toString()}),()=>vs({rpcClient:t,state:e,page:n,t:b,prioritySegment:p,locale:g?g.locale:void 0,fallbackLocale:g?g.fallbackLocale:void 0}),{...Bn,fallbackData:_}));I(()=>{m&&r&&d({totalCount:m.pagination.total})},[m,r,d]),I(()=>{r&&y==="loaded"&&(f==null||f(m.pagination.total))},[m,r,y,f]);const $=A(null);switch(I(()=>{var C,S;!m||a.current!==n||(a.current=void 0,(!document.activeElement||document.activeElement===document.body)&&((S=(C=$.current)==null?void 0:C.querySelector("a"))==null||S.focus({preventScroll:!0})))},[m,a,n]),y){case"idle":return null;case"loading":return u(V,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:u(nn,{chars:8})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:h})]}):u(Ha,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:gt}).map((C,S)=>u("li",{children:u(di,{seed:S,animationDelay:(S-gt)*.1,config:s})},S))})]});case"error":return u(Ze,{error:new Error(b("jobs_loading_error"),{cause:w}),resetError:()=>x.mutate()});case"revalidating":case"loaded":{if(za(m.pagination.current_page===n,"Received wrong page from server"),m.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(oe,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:b("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:b("no_jobs_found_description")})]})]});const C=m.pagination.last_page!==m.pagination.current_page,S=n*gt,E=Math.max(m.pagination.total-S,0),T=L=>{c(L,n)};return u(V,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:b("jobs_found",{count:m.pagination.total})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:h})]}):u(Ha,{page:n}),u("ul",{ref:$,"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:m.results.map(L=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:y==="revalidating"?.33:1},children:u(ui,{job:L,onJobClick:T,config:s,distanceUnit:v})},L.id))}),C&&o&&u(hy,{state:y,fetchNextPage:i,config:s,remainingItems:E})]})}default:Tt(y)}},my=Wo(()=>Promise.resolve().then(()=>require("./map-J5Z-eofP.cjs")).then(e=>e.Map)),_y=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:l,distanceUnit:d})=>{var _,m;const{t:f}=ne(),[c,h]=D(new AbortController),p=Xs("(max-width: 767px)"),g=j(w=>{r(w),c.abort(),h(new AbortController)},[r,c]),v=fn(Vt(Gn({state:e,baseKey:"map",mode:e.mode}),()=>Zl({rpcClient:t,state:e,t:f,signal:c.signal,prioritySegment:s,locale:l?l.locale:void 0,fallbackLocale:l?l.fallbackLocale:void 0}),Bn));if(v.queryState==="error")return u(Ze,{error:new Error(f("jobs_loading_error"),{cause:v.error}),resetError:()=>v.swr.mutate()});const b=v.queryState==="loaded"||v.queryState==="revalidating";return u(V,{children:[u("div",{class:"flex items-center justify-between gap-3",children:[u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:b?v.data.results.length!==0&&f("map_jobs_showing",{count:v.data.results.length}):u("div",{class:"animate-skeleton",children:u(nn,{chars:8})})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:o})]}),u("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[u("div",{class:"aspect-square flex-1 md:order-2 md:aspect-auto md:min-w-80",children:b?u(Pt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(my,{config:n,mapData:v,autoFit:((_=e.geo)==null?void 0:_.type)!=="bounds",onBoundsChange:g})}):u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),u("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((m=v.data)==null?void 0:m.results.length)===0?u("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[u(oe,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:f("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:f("no_jobs_found_description")})]})]}):null,b?v.data.results.map(w=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:v.queryState==="revalidating"?.33:1},children:u(ui,{job:w,onJobClick:y=>i(y,1),config:a,size:p?"sm":void 0,distanceUnit:d})},w.id)):Array.from({length:6}).map((w,y)=>u("li",{children:u(di,{seed:y,animationDelay:(y-6)*.1,config:a})},y))]})]})]})},yy=e=>{var r;const t=e.state.view,n=u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center justify-end gap-3",children:[(r=e.mapConfig)!=null&&r.enabled?u(tg,{value:t,onValueChange:e.onViewChange}):null,u(ng,{state:e.state,onValueChange:e.onResultOrderChange})]});return t==="list"?u(vy,{afterResults:n,...e}):u(_y,{...e,afterResults:n})};function by({rpcClient:e,filters:t,config:n,distanceUnit:r,onJobClick:o,onSearch:i}){const a=ye(yn);if(!a)throw new Error("Saved jobs context is required");const{scope:s}=a,l=ci(s),{t:d,locale:f}=ne(),[c,h]=D(null),[p,g]=D(),[v,b]=D(0),_=A(null),m=A(),w=A(!1);le(()=>{(c==null?void 0:c.filters)===t&&c.ids.some(S=>l==null?void 0:l.includes(S))?w.current=!0:(l==null?void 0:l.length)===0&&w.current&&i()},[l,c,t,i]),I(()=>{if(!l)return;const S=new AbortController,E=si(s,()=>S.abort());return g(void 0),Xl({rpcClient:e,ids:l,filters:t,t:d,locale:f,signal:S.signal}).then(T=>{S.signal.aborted||h({jobs:T,ids:l,filters:t})}).catch(T=>{S.signal.aborted||g(T)}),()=>{E(),S.abort()}},[e,s,l,t,d,f,v]);const y=(c==null?void 0:c.filters)===t?c.jobs.filter(S=>l==null?void 0:l.includes(S.id)):void 0,x=w.current&&(l==null?void 0:l.length)===0||l===void 0||c===null||c.filters!==t||l.some(S=>!c.ids.includes(S)),$=!p&&!x?l.filter(S=>!(y!=null&&y.some(E=>E.id===S))):[],C=[...(y==null?void 0:y.map(S=>S.id))??[],...$];return le(()=>{var E,T,L;if(m.current===void 0)return;(L=(m.current==="heading"?null:(E=_.current)==null?void 0:E.querySelector(`[data-save-job="${m.current}"]`))??((T=_.current)==null?void 0:T.querySelector("h2")))==null||L.focus(),m.current=void 0},[l,c]),u("div",{ref:_,class:"flex flex-col gap-4",onClickCapture:S=>{if(!(S.target instanceof Element))return;const E=S.target.closest("button[data-save-job]");if(!E||E.getAttribute("aria-pressed")!=="true")return;const T=C.indexOf(Number(E.dataset.saveJob));m.current=C[T+1]??C[T-1]??"heading"},children:[u("h2",{tabIndex:-1,class:"text-style-job-heading text-copy-neutral",children:!x&&l.length===0?d("no_saved_jobs"):d("saved_jobs_title")}),u("p",{role:"status",class:"sr-only",children:x||p?"":d("jobs_found",{count:l.length})}),p?u(Ze,{error:new Error(d("jobs_loading_error"),{cause:p}),resetError:()=>b(v+1)}):x&&!(y!=null&&y.length)?u("p",{class:"text-copy-neutral",children:d("loading_jobs")}):C.length?u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:[y==null?void 0:y.map(S=>u("li",{children:u(ui,{job:S,config:n,distanceUnit:r,onJobClick:E=>o(E,1)})},S.id)),$.map(S=>u("li",{class:"rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex items-center justify-between gap-4 p-4",children:[u("p",{class:hl(),children:d("saved_job_unavailable")}),u(fl,{id:S,title:d("saved_job_unavailable"),unavailable:!0})]},S))]}):null,u("button",{type:"button",class:_e({variant:"primary",size:"lg",class:"focus-visible:outline-highest self-start focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}),onClick:i,children:d("search_jobs")})]})}const nr=(e,t="value")=>e.reduce((n,r)=>{switch(r.select){case"one":{const o=r.value??r[t],i=typeof o=="string"?o:o==null?void 0:o[0];n[r.key]={select:r.select,value:i};break}case"many":{const o=r.value??r[t],i=typeof o=="string"?[o]:Array.isArray(o)?o:[];n[r.key]={select:r.select,value:i};break}default:Tt(r.select)}return n},{}),Ot=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=n==null?void 0:n.value;return[t,Array.isArray(r)?r:r?[r]:[]]}).filter(([,t])=>t!==void 0&&t.length>0)),Gr=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,wy=(e,t,n)=>{var o;const r=Ot(e.filters);return n&&(r._locale=n),((o=e.geo)==null?void 0:o.type)==="provided"&&e.geo.coords&&(r.geolocation={type:"provided",lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius,unit:t,...e.geo.label?{label:e.geo.label}:{}}),r},xy=({rpcClient:e,properties:t,analytics:n,initialData:r,onStateChange:o,params:i})=>{var Se,de,pe,Pe,Ue,ot,wt,xt,Re,pt,We,W,Y,Z,X,ue,ie;const{t:a}=ne(),s=A(null),l=K(()=>nr(t,"defaultValue"),[t]),[d,f]=D(!0),[c,h]=D(()=>typeof i.initialState=="function"?i.initialState(i):i.initialState),p=i.applyFiltersOn==="submit",[g,v]=D(c),b=p?g:c,_=p?"form":"div",[m,w]=D(0),[y,x]=D((Se=i.savedJobs)!=null&&Se.enabled?void 0:!1),$=j(O=>{const R=new URL(window.location.href);O?R.searchParams.set("saved",""):R.searchParams.delete("saved"),window.history.replaceState(window.history.state,"",R),x(O)},[]);le(()=>{var R;if(!((R=i.savedJobs)!=null&&R.enabled))return;const O=()=>x(new URLSearchParams(window.location.search).has("saved"));return O(),window.addEventListener("popstate",O),()=>window.removeEventListener("popstate",O)},[(de=i.savedJobs)==null?void 0:de.enabled]);const C=j(()=>{var O;(O=i.savedJobs)!=null&&O.enabled&&$(!1)},[(pe=i.savedJobs)==null?void 0:pe.enabled,$]),S=A(null),E=A(),T=j(()=>{E.current="toggle",C()},[C]);le(()=>{var O,R,U;y===!0&&E.current==="heading"?((R=(O=s.current)==null?void 0:O.querySelector("h2"))==null||R.focus(),E.current=void 0):y===!1&&E.current==="toggle"&&((U=S.current??s.current)==null||U.focus(),E.current=void 0)},[y]);const[L,P]=D(0),{onJobClick:M,analyticsPaginate:N,onSearchResults:B}=Sy({appRef:s,analytics:n,state:c,hasInteracted:!d,totalCount:L,defaultFilters:l,resultsEnabled:y===!1}),q=j(O=>{h(R=>{if(R.page===O)return R;const U={...R,page:O};return o==null||o(U),U}),N(O)},[N,o]),F=j(O=>{h(R=>{const U={...R,view:O};return o==null||o(U),U})},[o]),z=j(O=>{if(p){v(O);return}h(R=>{const U=O(R);return U===R?R:(C(),f(!1),o==null||o(U),U)})},[p,C,o]),J=j(O=>{z(R=>{var U;return R.query===O?R:{...R,query:O,geo:Gr(R.geo),page:1,mode:(U=i.naturalLanguageSearch)!=null&&U.enabled?"vector":"query"}})},[z,(Pe=i.naturalLanguageSearch)==null?void 0:Pe.enabled]),ae=(O=g.query)=>{var U;const R={...g,view:c.view,resultOrder:c.resultOrder,query:O,geo:O===g.query?g.geo:Gr(g.geo),page:1,mode:(U=i.naturalLanguageSearch)!=null&&U.enabled?"vector":"query"};C(),f(!1),v(R),h(R),o==null||o(R)},Ae=j(O=>{v(R=>({...R,geo:O})),f(!1),h(R=>{const U={...R,geo:O,page:1};return o==null||o(U),U})},[o]),Te=j(()=>{C(),p&&w(O=>O+1),f(!1),h(O=>{const R={...O,filters:nr(t,"defaultValue"),query:"",geo:void 0,page:1,resultOrder:void 0};return v(R),o==null||o(R),R})},[o,t,C,p]),be=j(O=>{h(R=>{if(R.resultOrder===O)return R;f(!1);const U={...R,resultOrder:O,page:1};return o==null||o(U),U})},[o]),rt=K(()=>(e.environment,new Map),[e.environment]);return u(rd,{value:{provider:()=>rt},children:u("div",{ref:s,tabIndex:(Ue=i.savedJobs)!=null&&Ue.enabled?-1:void 0,class:jt("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(ot=i.theme.accessibility)==null?void 0:ot.reducedMotion},vo(i.theme)),children:[u(on,{Fallback:Ze,children:u(_,{class:"flex flex-col gap-2",onSubmit:p?O=>{O.preventDefault();const R=O.currentTarget.querySelector('input[name="keyword"]');ae(R==null?void 0:R.value.trim())}:void 0,children:[u("div",{class:"px-4",children:u("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:a("search_label")}),(wt=i.naturalLanguageSearch)!=null&&wt.enabled?u(eg,{value:b.query,onValueChange:J,options:i.naturalLanguageSearch,onSearch:p?ae:(xt=i.savedJobs)!=null&&xt.enabled?C:void 0},m):i.enableKeywordSearch?u(Zv,{value:b.query,onValueChange:J,onSearch:p?ae:(Re=i.savedJobs)!=null&&Re.enabled?C:void 0},m):null]}),(pt=i.geolocation)!=null&&pt.enabled?u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:a("geo_label")}),u(Gv,{rpcClient:e,value:b.geo,distanceUnit:i.geolocation.distanceUnit,onValueChange:O=>{z(R=>({...R,geo:O,page:1})),p||N(1)}})]}):null]})}),u(Oh,{state:b,staged:p,onFilterValueChange:(O,R)=>{z(U=>({...U,filters:{...U.filters,[O]:R},geo:Gr(U.geo),page:1})),p||N(1)},onResetFilters:Te,properties:t,rpcClient:e,alerts:i.alerts,theme:i.theme,widgetId:i.widgetId,i18n:i.i18n}),p?u("button",{type:"submit",class:_e({variant:"accent",class:"self-center"}),children:a("search")}):null]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(on,{Fallback:Ze,children:u(V,{children:[(We=i.savedJobs)!=null&&We.enabled&&i.savedJobs.showEntry!==!1&&!y?u(iy,{buttonRef:S,onClick:()=>{E.current="heading",w(O=>O+1),$(!0)}}):null,(W=i.savedJobs)!=null&&W.enabled&&y===void 0?u("p",{class:"text-copy-neutral",children:a("loading_jobs")}):(Y=i.savedJobs)!=null&&Y.enabled&&y?u(by,{rpcClient:e,filters:c.filters,config:i.jobCard,distanceUnit:(Z=i.geolocation)==null?void 0:Z.distanceUnit,onJobClick:M,onSearch:T}):u(yy,{state:c,rpcClient:e,jobCardConfig:i.jobCard,mapConfig:i.map,initialData:d?r==null?void 0:r.jobs:void 0,onResultsUpdate:O=>{P(O.totalCount)},onJobClick:M,onPaginate:q,onSearchResults:B,mode:(X=i.naturalLanguageSearch)!=null&&X.enabled?"vector":"query",onGeoChange:Ae,onViewChange:F,onResultOrderChange:be,prioritySegment:(ue=i.results)==null?void 0:ue.prioritySegment,distanceUnit:(ie=i.geolocation)==null?void 0:ie.distanceUnit,i18n:i.i18n})]})}),i.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default font-style-default text-style-job-card-info text-copy-neutral-lowcontrast text-balance",children:a("feedback")}),u("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:u("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})};let Ua,Wa=new Set;const $y=()=>(Ua!==window.location.pathname&&(Ua=window.location.pathname,Wa=new Set),Wa),Sy=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i,resultsEnabled:a})=>{const s=typeof window>"u"?void 0:$y(),l=A(),d=A(),f=A(),c=K(()=>{var $,C;const _=Ot(n.filters),m=Ot(r),w=[...new Set([...Object.keys(_),...Object.keys(m)])].filter(S=>JSON.stringify((_[S]??[]).slice().sort())!==JSON.stringify((m[S]??[]).slice().sort())).sort(),y=n.geo,x={mode:n.mode,filters:Zs(n.filters),geo:(y==null?void 0:y.type)==="provided"?{type:y.type,radius:y.radius,lat:($=y.coords)==null?void 0:$.lat,lng:(C=y.coords)==null?void 0:C.lng}:(y==null?void 0:y.type)==="ip"?{type:y.type,radius:y.radius}:(y==null?void 0:y.type)==="bounds"?{type:"bounds"}:void 0,resultOrder:n.resultOrder};return{signature:JSON.stringify({query:n.query,...x}),nonKeywordSignature:JSON.stringify(x),filterKeys:w,geo:(y==null?void 0:y.type)==="provided"?"place":(y==null?void 0:y.type)==="bounds"?"map_area":(y==null?void 0:y.type)==="ip"?"ip":"none"}},[n.query,n.mode,n.filters,n.geo,n.resultOrder,r]),h=j((_=!1)=>{var w,y;const m=f.current;if(m){if(clearTimeout(m.timer),t.supportsNoQueryPageContext!==!0||(w=m.urlSearches)!=null&&w.has(m.signature)){f.current=void 0;return}t.log({event:"SEARCH_RESULTS",page_context:"no_query",properties:{...m.properties,search_id:ge.generateUUID()},..._?{keepalive:!0}:{}}),f.current=void 0,l.current=m.signature,(y=m.urlSearches)==null||y.add(m.signature)}},[t]);le(()=>{const _=f.current;_&&(!a||_.signature!==c.signature)&&(a&&_.nonKeywordSignature===c.nonKeywordSignature?(clearTimeout(_.timer),f.current=void 0):h()),d.current!==c.signature&&(d.current=c.signature,l.current=void 0)},[c.signature,c.nonKeywordSignature,a,h]),I(()=>{const _=()=>h(!0);return window.addEventListener("pagehide",_),()=>{window.removeEventListener("pagehide",_),h(!0)}},[h]);const p=j(_=>{var m;a&&(!i&&!n.query.trim()&&!c.filterKeys.length&&c.geo==="none"&&!n.resultOrder||l.current===c.signature||((m=f.current)==null?void 0:m.signature)===c.signature||(f.current={signature:c.signature,nonKeywordSignature:c.nonKeywordSignature,urlSearches:i?void 0:s,properties:{result_count:_,has_keyword:n.query.trim()!=="",mode:n.mode,filter_keys:c.filterKeys,geo:c.geo,page:n.page},timer:window.setTimeout(()=>h(),1500)}))},[a,i,n.query,n.mode,n.page,n.resultOrder,c,h,s]),g=j((_=1)=>({query:n.query,mode:n.mode,filters:Ot(n.filters),default_filters:Ot(r),total_count:o,page_size:gt,page:_}),[n.query,n.mode,n.filters,r,o]);return od(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:g()})}}),I(()=>{const _=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Ot(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:g()}))},5e3);return()=>{clearTimeout(_)}},[t,i,g,o,n.query,n.filters]),{onJobClick:(_,m)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:_.id,...g(m)}}),h(!0)},analyticsPaginate:_=>{t.log({event:"SEARCH_PAGINATE",properties:g(_)})},onSearchResults:p}};exports.A=A;exports.ErrorBoundary=on;exports.IconSpritesheet=fu;exports.J=It;exports.JOB_SEARCH_WIDGET_ID=zl;exports.JobSearch=xy;exports.K=Ro;exports.SavedJobsContext=yn;exports.TranslationProvider=iu;exports.UnstyledErrorView=uu;exports._=k;exports.alertsPayload=wy;exports.createTFunction=au;exports.d=D;exports.defaultTerms=su;exports.generateColorThemeCss=pd;exports.getGeolocationFromSearchParams=tl;exports.getJobSearchResults=vs;exports.getModeFromSearchParams=Qc;exports.getSavedJobIds=zt;exports.getSavedJobsUrl=oy;exports.getStatefulPropertiesFromSearchParams=Xc;exports.getViewFromSearchParams=el;exports.getWidgetStateFromSearchParams=Tv;exports.invariant=za;exports.isJobSaved=ny;exports.k=V;exports.setWidgetStateToSearchParams=Pv;exports.subscribeSavedJobs=si;exports.toggleSavedJob=dl;exports.u=u;exports.useDebouncedValue=nl;exports.useTranslation=ne;exports.y=I;