@inploi/plugin-job-search 9.2.1 → 9.3.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.
- package/README.md +8 -6
- package/cdn/index.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{job-search-4dhEa2UZ.js → job-search-CkwwTVkM.js} +1937 -1946
- package/dist/job-search-DyRuFVYr.cjs +44 -0
- package/dist/{map-RWZQgQ0o.js → map-B7xhLyNZ.js} +139 -124
- package/dist/map-outcome-BiHZjMoM.cjs +26 -0
- package/dist/map-outcome-zYbBd2H8.js +150 -0
- package/dist/{map-BRREfYtI.cjs → map-stOwdTz6.cjs} +1 -1
- package/dist/{mapbox-gl-DLs2e1S-.js → mapbox-gl-BKeoApBS.js} +1 -1
- package/dist/{mapbox-gl-mKULjIJW.cjs → mapbox-gl-Buwj8UJV.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +17 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.js +3 -2
- package/package.json +3 -3
- package/dist/job-search-CVo-37ft.cjs +0 -44
- package/dist/map-attribution-By9wrlPf.js +0 -134
- package/dist/map-attribution-DyuZ3dMC.cjs +0 -26
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";var bl=Object.defineProperty;var wl=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vi=(e,t,n)=>wl(e,typeof t!="symbol"?t+"":t,n);const ve=require("@inploi/sdk");var Pt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function Ka(e,t){if(!e)throw new Error(t)}function xl(e,t){return e in t}var mi={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},$l=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 mi?mi[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")},Sl=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Cl=({from:e=new Date,to:t,formatter:n=Sl,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")},El="https://maps.inploi.com",Ol=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((c,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)}},kl=async(e,t,n)=>{const r=await Ol(async o=>{const{lookupPlaces:i}=await Promise.resolve().then(()=>require("./common.geo-transport-CJGUJXTA-BmDm5A18.cjs"));return o.throwIfAborted(),i({...e,signal:o})},e.signal);return r?{...r,results:r.results.map(t)}:{results:await n(),arm:"direct",source:"direct"}},Tl=e=>{try{const t=new URL("/outcome",El);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{}},dn;exports.l=void 0;var Ga,_t,_i,Ja,Ya,Za,To,Zr,Xr,Xa,zn={},qn=[],Al=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fn=Array.isArray;function Me(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?dn.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 nn(e,a,r,o,null)}function nn(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??++Ga,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function Qa(){return{current:null}}function V(e){return e.children}function Se(e,t){this.props=e,this.context=t}function It(e,t){if(t==null)return e.__?It(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"?It(e):null}function Pl(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Me({},t);i.__v=t.__v+1,exports.l.vnode&&exports.l.vnode(i),Po(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??It(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,rs(r,i,o),t.__e=t.__=null,i.__e!=n&&es(i)}}function es(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}),es(e)}function Qr(e){(!e.__d&&(e.__d=!0)&&_t.push(e)&&!Bn.__r++||_i!=exports.l.debounceRendering)&&((_i=exports.l.debounceRendering)||Ja)(Bn)}function Bn(){for(var e,t=1;_t.length;)_t.length>t&&_t.sort(Ya),e=_t.shift(),t=_t.length,Pl(e);Bn.__r=0}function ts(e,t,n,r,o,i,a,s,c,d,f){var l,h,p,v,g,b,_,m=r&&r.__k||qn,w=t.length;for(c=Rl(n,t,m,c,w),l=0;l<w;l++)(p=n.__k[l])!=null&&(h=p.__i!=-1&&m[p.__i]||zn,p.__i=l,b=Po(e,p,h,o,i,a,s,c,d,f),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Ro(h.ref,null,p),f.push(p.ref,p.__c||v,p)),g==null&&v!=null&&(g=v),(_=!!(4&p.__u))||h.__k===p.__k?c=ns(p,c,e,_):typeof p.type=="function"&&b!==void 0?c=b:v&&(c=v.nextSibling),p.__u&=-7);return n.__e=g,c}function Rl(e,t,n,r,o){var i,a,s,c,d,f=n.length,l=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]=nn(null,a,null,null,null):fn(a)?a=e.__k[i]=nn(V,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=nn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,c=i+h,a.__=e,a.__b=e.__b+1,s=null,(d=a.__i=Dl(a,n,c,l))!=-1&&(l--,(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!=c&&(d==c-1?h--:d==c+1?h++:(d>c?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=It(s)),is(s,s));return r}function ns(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=ns(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=It(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(fn(e)?e.some(function(n){Ge(n,t)}):t.push(e)),t}function Dl(e,t,n,r){var o,i,a,s=e.key,c=e.type,d=t[n],f=d!=null&&(2&d.__u)==0;if(d===null&&s==null||f&&s==d.key&&c==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&&c==d.type)return a}return-1}function yi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Al.test(t)?n:n+"px"}function xn(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||yi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||yi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Za,"$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=To,e.addEventListener(t,i?Xr:Zr,i)):e.removeEventListener(t,i?Xr:Zr,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 bi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=To++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function Po(e,t,n,r,o,i,a,s,c,d){var f,l,h,p,v,g,b,_,m,w,y,x,$,C,S,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(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=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new E(_,y):(t.__c=l=new Se(_,y),l.constructor=E,l.render=Nl),w&&w.sub(l),l.state||(l.state={}),l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&E.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Me({},l.__s)),Me(l.__s,E.getDerivedStateFromProps(_,l.__s))),p=l.props,v=l.state,l.__v=t,h)m&&E.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&E.getDerivedStateFromProps==null&&_!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(_,y),t.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(_,l.__s,y)===!1){t.__v!=n.__v&&(l.props=_,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(A){A&&(A.__=t)}),qn.push.apply(l.__h,l._sb),l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(_,l.__s,y),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,v,g)})}if(l.context=y,l.props=_,l.__P=e,l.__e=!1,x=exports.l.__r,$=0,m)l.state=l.__s,l.__d=!1,x&&x(t),f=l.render(l.props,l.state,l.context),qn.push.apply(l.__h,l._sb),l._sb=[];else do l.__d=!1,x&&x(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++$<25);l.state=l.__s,l.getChildContext!=null&&(r=Me(Me({},r),l.getChildContext())),m&&!h&&l.getSnapshotBeforeUpdate!=null&&(g=l.getSnapshotBeforeUpdate(p,v)),C=f!=null&&f.type===V&&f.key==null?os(f.props.children):f,s=ts(e,fn(C)?C:[C],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),b&&(l.__E=l.__=null)}catch(A){if(t.__v=null,c||i!=null)if(A.then){for(t.__u|=c?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]);eo(t)}else t.__e=n.__e,t.__k=n.__k,A.then||eo(t);exports.l.__e(A,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Ll(n.__e,t,n,r,o,i,a,c,d);return(f=exports.l.diffed)&&f(t),128&t.__u?void 0:s}function eo(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(eo))}function rs(e,t,n){for(var r=0;r<n.length;r++)Ro(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 os(e){return typeof e!="object"||e==null||e.__b>0?e:fn(e)?e.map(os):Me({},e)}function Ll(e,t,n,r,o,i,a,s,c){var d,f,l,h,p,v,g,b=n.props||zn,_=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&&dn.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"?l=p:d=="children"||d in _||d=="value"&&"defaultValue"in _||d=="checked"&&"defaultChecked"in _||xn(e,d,null,p,o);for(d in _)p=_[d],d=="children"?h=p:d=="dangerouslySetInnerHTML"?f=p:d=="value"?v=p:d=="checked"?g=p:s&&typeof p!="function"||b[d]===p||xn(e,d,p,b[d],o);if(f)s||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),ts(t.type=="template"?e.content:e,fn(h)?h:[h],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&It(n,0),s,c),i!=null)for(d=i.length;d--;)Ao(i[d]);s||(d="value",m=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[d]||m=="progress"&&!v||m=="option"&&v!=b[d])&&xn(e,d,v,b[d],o),d="checked",g!=null&&g!=e[d]&&xn(e,d,g,b[d],o))}return e}function Ro(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 is(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ro(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]&&is(r[o],t,n||typeof e.type!="function");n||Ao(e.__e),e.__c=e.__=e.__e=void 0}function Nl(e,t,n){return this.constructor(e,n)}function jt(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=[],Po(t,e=(!r&&n||t).__k=k(V,null,[e]),o||zn,zn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?dn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),rs(i,e,a)}function Do(e,t){jt(e,t,Do)}function Ml(e,t,n){var r,o,i,a,s=Me({},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?dn.call(arguments,2):n),nn(e.type,s,r||e.key,o||e.ref,null)}function Ye(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,Qr(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"+Xa++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}dn=qn.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}},Ga=0,Se.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Me({},this.state),typeof e=="function"&&(e=e(Me({},n),this.props)),e&&Me(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qr(this))},Se.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qr(this))},Se.prototype.render=V,_t=[],Ja=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ya=function(e,t){return e.__v.__b-t.__v.__b},Bn.__r=0,Za=/(PointerCapture)$|Capture$/i,To=0,Zr=bi(!1),Xr=bi(!0),Xa=0;const Il={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function as(e){return Il}let xr;function jl(e){return xr==null?void 0:xr.get(e)}let $r;function Fl(e){return $r==null?void 0:$r.get(e)}let Sr;function Vl(e,t){var n;return(n=Sr==null?void 0:Sr.get(e))==null?void 0:n.get(t)}function Lo(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)??Lo(i),c={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??Vl(e.reference,c.lang)??(d?Fl(c.lang):null)??r.message??jl(c.lang);f!==void 0&&(c.message=typeof f=="function"?f(c):f),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}const wi=new WeakMap;function fe(e){let t=wi.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},as())}},wi.set(e,t)),t}function Hl(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function ss(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}const Ul=/^[+-]?(?:\d*\.)?\d+$/u;function cs(e){return{kind:"validation",type:"decimal",reference:cs,async:!1,expects:null,requirement:Ul,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&me(this,"decimal",t,n),t}}}function Ze(e){return{kind:"transformation",type:"transform",reference:Ze,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function ls(e){return{kind:"validation",type:"url",reference:ls,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 Wl(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function No(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function to(){return{kind:"schema",type:"any",reference:to,expects:"any",async:!1,get"~standard"(){return fe(this)},"~run"(e){return e.typed=!0,e}}}function pn(e,t){return{kind:"schema",type:"array",reference:pn,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],c=this.item["~run"]({value:s},r);if(c.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const f of c.issues)f.path?f.path.unshift(d):f.path=[d],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else me(this,"type",n,r);return n}}}function Kn(e){return{kind:"schema",type:"boolean",reference:Kn,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 kt(e,t){return{kind:"schema",type:"literal",reference:kt,expects:Lo(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 ae(e,t){return{kind:"schema",type:"nullable",reference:ae,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=No(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function xe(e){return{kind:"schema",type:"number",reference:xe,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 $e(e,t){return{kind:"schema",type:"object",reference:$e,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 c=a in o?o[a]:No(s),d=s["~run"]({value:c},r);if(d.issues){const f={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(f):l.path=[f],(i=n.issues)==null||i.push(l);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]=Wl(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 Be(e,t){return{kind:"schema",type:"optional",reference:Be,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=No(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function us(e,t){return{kind:"schema",type:"picklist",reference:us,expects:ss(e.map(Lo),"|"),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 Mo(e,t,n){return{kind:"schema",type:"record",reference:Mo,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 c in i)if(Hl(i,c)){const d=i[c],f=this.key["~run"]({value:c},o);if(f.issues){const h={type:"object",origin:"key",input:i,key:c,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 l=this.value["~run"]({value:d},o);if(l.issues){const h={type:"object",origin:"value",input:i,key:c,value:d};for(const p of l.issues)p.path?p.path.unshift(h):p.path=[h],(s=r.issues)==null||s.push(p);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!l.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=l.value)}}else me(this,"type",r,o);return r}}}function Q(e){return{kind:"schema",type:"string",reference:Q,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 xi(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 no(e,t){return{kind:"schema",type:"union",reference:no,expects:ss(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 c=s["~run"]({value:n.value},r);if(c.typed)if(c.issues)i?i.push(c):i=[c];else{o=c;break}else a?a.push(c):a=[c]}if(o)return o;if(i){if(i.length===1)return i[0];me(this,"type",n,r,{issues:xi(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];me(this,"type",n,r,{issues:xi(a)})}return n}}}function ds(){return{kind:"schema",type:"unknown",reference:ds,expects:"unknown",async:!1,get"~standard"(){return fe(this)},"~run"(e){return e.typed=!0,e}}}function Xe(...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 fs(e,t,n){const r=e["~run"]({value:t},as());return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const zl="isdk-saved-jobs",ql="inploi-job-search",Bl=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],ps=["LOCATION","REMOTE","HYBRID"],yt=10,$i=Xe(ds(),Ze(String),Q()),Kl=e=>Xe(Mo(Q(),pn($e({label:$i,value:$i,jobs:xe()}))),Ze(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)hs(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)gs(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),Gl=Xe(Q(),ls()),Jl=$e({total:xe(),current_page:xe(),per_page:xe(),last_page:xe()}),$n=Be(ae(Q()),null),Yl=$e({id:xe(),company_name:Q(),external_id:Be(ae(Q())),company_logo:$n,employment_type:Q(),location_type:us(ps),pay_type:ae(no([kt("ANNUALLY"),kt("HOURLY"),kt("MONTHLY"),kt("WEEKLY"),kt("DAILY")])),pay_currency:Q(),pay_mask:Kn(),pay_display:Kn(),pay:ae(Q()),pay_min:ae(Q()),pay_max:ae(Q()),title:Q(),contract_type:ae(Q()),created_at:ae(Q()),custom_data:ae(Mo(to(),to())),href:Q(),industry:ae(Q()),category:ae(Q()),skills:$n,town:$n,city:ae(Q()),country:ae(Q()),vector_distance:$n,coordinates:Be(ae($e({lat:xe(),lng:xe()}))),distance_meters:Be(ae(no([xe(),Xe(Q(),cs(),Ze(Number))])),null),locale:Be(ae(Q()))});function hs(e){return Bl.includes(e)}function gs(e){return ps.includes(e)}const vs=(e,t=void 0)=>Xe(Yl,Ze(n=>{const r=fs(Gl,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:$l({salary:n,config:{locales:o},t:e})??null,title:n.title,contractType:n.contract_type,href:n.href,relativePostedDate:n.created_at?Cl({to:new Date(n.created_at),t:e,formatter:i}):"INVALID DATE",customData:n.custom_data,raw:{...n,location_type:gs(n.location_type)?e(`job.location_type.${n.location_type}`):n.location_type,employment_type:hs(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}})),ms=(e,t)=>Xe($e({data:pn(vs(e,t)),pagination:Jl}),Ze(n=>({pagination:n.pagination,results:n.data}))),_s=e=>!e||Array.isArray(e)&&e.length===0?null:e,ir=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=_s(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},Si=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=ve.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Kl(n),searchParams:ve.typed()}});return await e.request(a,{searchParams:{filters:ir(t),query:t.query,locale:o,fallback_locale:i},signal:r})},ys=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const c=ve.endpoint({method:"GET",pathname:"/search/results",schema:{response:ms(o,a??s),searchParams:ve.typed()}});return await e.request(c,{searchParams:{filters:ir(n),query:n.query,page:r,per_page:yt,result_order:n.resultOrder,priority_segment:i,locale:a,fallback_locale:s},signal:t})},Zl=(e,t)=>Xe($e({data:pn(vs(e,t)),pagination:$e({has_more:Kn()})}),Ze(n=>({results:n.data,pagination:n.pagination}))),Xl=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=ve.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Zl(r,i??a),searchParams:ve.typed()}});return await e.request(s,{searchParams:{filters:ir(n),query:n.query,mode:n.mode,result_order:n.resultOrder,priority_segment:o,locale:i,fallback_locale:a},signal:t})},hn=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")},Gn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};async function Ql({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"],c={};for(const l of s){const h=_s((f=n[l])==null?void 0:f.value);h!==null&&(c[l]=h)}const d=ve.endpoint({method:"GET",pathname:"/search/results",schema:{response:ms(r,o),searchParams:ve.typed()}});for(let l=0;l<t.length;l+=100){const h=t.slice(l,l+100),p=await e.request(d,{searchParams:{filters:{...c,id:h},query:"",page:1,per_page:100},signal:i});a.push(...p.results.filter(v=>h.includes(v.id)))}return t.flatMap(l=>a.find(h=>h.id===l)??[])}var eu=0;function u(e,t,n,r,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--eu,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function bs(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=bs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ft(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bs(e))&&(r&&(r+=" "),r+=t);return r}var Qe,J,Cr,Ci,Vt=0,ws=[],ne=exports.l,Ei=ne.__b,Oi=ne.__r,ki=ne.diffed,Ti=ne.__c,Ai=ne.unmount,Pi=ne.__;function wt(e,t){ne.__h&&ne.__h(J,e,Vt||t),Vt=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return Vt=1,gn(xs,e)}function gn(e,t,n){var r=wt(Qe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xs(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,s);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.__f)){var o=function(s,c,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,c,d);var l=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]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};J.__f=!0;var i=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(s,c,d){if(this.__e){var f=i;i=void 0,o(s,c,d),i=f}a&&a.call(this,s,c,d)},J.shouldComponentUpdate=o}return r.__N||r.__}function I(e,t){var n=wt(Qe++,3);!ne.__s&&jo(n.__H,t)&&(n.__=e,n.u=t,J.__H.__h.push(n))}function ce(e,t){var n=wt(Qe++,4);!ne.__s&&jo(n.__H,t)&&(n.__=e,n.u=t,J.__h.push(n))}function T(e){return Vt=5,K(function(){return{current:e}},[])}function Io(e,t,n){Vt=6,ce(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=wt(Qe++,7);return jo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function j(e,t){return Vt=8,K(function(){return e},t)}function ye(e){var t=J.context[e.__c],n=wt(Qe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function ar(e,t){ne.useDebugValue&&ne.useDebugValue(t?t(e):e)}function tu(e){var t=wt(Qe++,10),n=D();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function sr(){var e=wt(Qe++,11);if(!e.__){for(var t=J.__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 nu(){for(var e;e=ws.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Mn),t.__h.some(ro),t.__h=[]}catch(n){t.__h=[],ne.__e(n,e.__v)}}}ne.__b=function(e){J=null,Ei&&Ei(e)},ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pi&&Pi(e,t)},ne.__r=function(e){Oi&&Oi(e),Qe=0;var t=(J=e.__c).__H;t&&(Cr===J?(t.__h=[],J.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Mn),t.__h.some(ro),t.__h=[],Qe=0)),Cr=J},ne.diffed=function(e){ki&&ki(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ws.push(t)!==1&&Ci===ne.requestAnimationFrame||((Ci=ne.requestAnimationFrame)||ru)(nu)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Cr=J=null},ne.__c=function(e,t){t.some(function(n){try{n.__h.some(Mn),n.__h=n.__h.filter(function(r){return!r.__||ro(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ne.__e(r,n.__v)}}),Ti&&Ti(e,t)},ne.unmount=function(e){Ai&&Ai(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Mn(r)}catch(o){t=o}}),n.__H=void 0,t&&ne.__e(t,n.__v))};var Ri=typeof requestAnimationFrame=="function";function ru(e){var t,n=function(){clearTimeout(r),Ri&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ri&&(t=requestAnimationFrame(n))}function Mn(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function ro(e){var t=J;e.__c=e.__(),J=t}function jo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function xs(e,t){return typeof t=="function"?t(e):t}var ou=["other","few","many","two","one","zero"],Di=({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,(c,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 c=r.select(a.count);if(!(c in s)){const d=ou.find(f=>f in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,f)=>{var l;return((l=a==null?void 0:a[f])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Li=Ye(null),iu=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=K(()=>Di({locale:r,terms:e,overrides:t}),[t,r]);return u(Li.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=ye(Li);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Di({terms:e,overrides:t,locale:n})});const{TranslationProvider:au,useTranslation:re,createTFunction:su,defaultTerms:cu}=iu({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 $s(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=$s(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$s(e))&&(r&&(r+=" "),r+=t);return r}const Ni=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,uu=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return lu(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 c=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(i.map(d=>d(c)),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:c}=o,d=Object.keys(s).map(h=>{const p=i==null?void 0:i[h],v=c==null?void 0:c[h],g=Ni(p)||Ni(v);return s[h][g]}),f={...c,...i&&Object.entries(i).reduce((h,p)=>{let[v,g]=p;return typeof g>"u"?h:{...h,[v]:g}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,p)=>{let{class:v,className:g,...b}=p;return Object.entries(b).every(_=>{let[m,w]=_;const y=f[m];return Array.isArray(w)?w.includes(y):y===w})?[...h,v,g]:h},[]);return t(o==null?void 0:o.base,d,l,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{cva:Ce}=uu(),_e=Ce({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"}}),du=({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"})]}),et=({error:e,resetError:t,class:n,...r})=>{const{t:o}=re();return I(()=>{e.cause instanceof ve.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:Ft("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 an extends Se{constructor(){super(...arguments);vi(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 fu={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"})]})},pu=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(fu).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 Ss(e,t){for(var n in t)e[n]=t[n];return e}function oo(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 Fo(e,t){var n=t(),r=D({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ce(function(){o.__=n,o.u=t,Er(o)&&i({t:o})},[e,n,t]),I(function(){return Er(o)&&i({t:o}),e(function(){Er(o)&&i({t:o})})},[e]),n}function Er(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 Vo(e){e()}function Ho(e){return e}function Uo(){return[!1,Vo]}var Wo=ce;function Jn(e,t){this.props=e,this.context=t}function Cs(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:oo(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}(Jn.prototype=new Se).isPureReactComponent=!0,Jn.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var Mi=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mi&&Mi(e)};var hu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function te(e){function t(n){var r=Ss({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=hu,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ii=function(e,t){return e==null?null:Ge(Ge(e).map(t))},je={map:Ii,forEach:Ii,count:function(e){return e?Ge(e).length:0},only:function(e){var t=Ge(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ge},gu=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)}gu(e,t,n,r)};var ji=exports.l.unmount;function Es(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=Ss({},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 Es(r,t,n)})),e}function Os(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Os(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 Rt(){this.__u=0,this.o=null,this.__b=null}function ks(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function zo(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),ji&&ji(e)},(Rt.prototype=new Se).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ks(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var s=n.__P;n.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Os(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)},Rt.prototype.componentWillUnmount=function(){this.o=[]},Rt.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]=Es(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 Fi=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 mu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){jt(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)}}}jt(k(vu,{context:t.context},e.__v),t.v)}function Ts(e,t){var n=k(mu,{__v:e,h:t});return n.containerInfo=t,n}(At.prototype=new Se).__a=function(e){var t=this,n=ks(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Fi(t,e,r)):o()};n?n(i):i()}},At.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ge(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){Fi(e,n,t)})};var As=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_u=/^(?: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]/,yu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bu=/[A-Z0-9]/g,wu=typeof document<"u",xu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ps(e,t,n){return t.__k==null&&(t.textContent=""),jt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Rs(e,t,n){return Do(e,t),typeof n=="function"&&n(),e?e.__c:null}Se.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Se.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vi=exports.l.event;function $u(){}function Su(){return this.cancelBubble}function Cu(){return this.defaultPrevented}exports.l.event=function(e){return Vi&&(e=Vi(e)),e.persist=$u,e.isPropagationStopped=Su,e.isDefaultPrevented=Cu,e.nativeEvent=e};var qo,Eu={enumerable:!1,configurable:!0,get:function(){return this.class}},Hi=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||wu&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||xu(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":yu.test(a)&&(a=c):c=a="oninput":i&&_u.test(a)?a=a.replace(bu,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ge(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ge(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",Eu)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=As,Hi&&Hi(e)};var Ui=exports.l.__r;exports.l.__r=function(e){Ui&&Ui(e),qo=e.__c};var Wi=exports.l.diffed;exports.l.diffed=function(e){Wi&&Wi(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),qo=null};var Ds={ReactCurrentDispatcher:{current:{readContext:function(e){return qo.__n[e.__c].props.value},useCallback:j,useContext:ye,useDebugValue:ar,useDeferredValue:Ho,useEffect:I,useId:sr,useImperativeHandle:Io,useInsertionEffect:Wo,useLayoutEffect:ce,useMemo:K,useReducer:gn,useRef:T,useState:D,useSyncExternalStore:Fo,useTransition:Uo}}},Ou="18.3.1";function Ls(e){return k.bind(null,e)}function tt(e){return!!e&&e.$$typeof===As}function Ns(e){return tt(e)&&e.type===V}function Ms(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function Bt(e){return tt(e)?Ml.apply(null,arguments):e}function Is(e){return!!e.__k&&(jt(null,e),!0)}function js(e){return e&&(e.base||e.nodeType===1&&e)||null}var Fs=function(e,t){return e(t)},vn=function(e,t){return e(t)},Vs=V,Hs=tt,mn={useState:D,useId:sr,useReducer:gn,useEffect:I,useLayoutEffect:ce,useInsertionEffect:Wo,useTransition:Uo,useDeferredValue:Ho,useSyncExternalStore:Fo,startTransition:Vo,useRef:T,useImperativeHandle:Io,useMemo:K,useCallback:j,useContext:ye,useDebugValue:ar,version:"18.3.1",Children:je,render:Ps,hydrate:Rs,unmountComponentAtNode:Is,createPortal:Ts,createElement:k,createContext:Ye,createFactory:Ls,cloneElement:Bt,createRef:Qa,Fragment:V,isValidElement:tt,isElement:Hs,isFragment:Ns,isMemo:Ms,findDOMNode:js,Component:Se,PureComponent:Jn,memo:Cs,forwardRef:te,flushSync:vn,unstable_batchedUpdates:Fs,StrictMode:Vs,Suspense:Rt,SuspenseList:At,lazy:zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ds};const Us=Object.freeze(Object.defineProperty({__proto__:null,Children:je,Component:Se,Fragment:V,PureComponent:Jn,StrictMode:Vs,Suspense:Rt,SuspenseList:At,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ds,cloneElement:Bt,createContext:Ye,createElement:k,createFactory:Ls,createPortal:Ts,createRef:Qa,default:mn,findDOMNode:js,flushSync:vn,forwardRef:te,hydrate:Rs,isElement:Hs,isFragment:Ns,isMemo:Ms,isValidElement:tt,lazy:zo,memo:Cs,render:Ps,startTransition:Vo,unmountComponentAtNode:Is,unstable_batchedUpdates:Fs,useCallback:j,useContext:ye,useDebugValue:ar,useDeferredValue:Ho,useEffect:I,useErrorBoundary:tu,useId:sr,useImperativeHandle:Io,useInsertionEffect:Wo,useLayoutEffect:ce,useMemo:K,useReducer:gn,useRef:T,useState:D,useSyncExternalStore:Fo,useTransition:Uo,version:Ou},Symbol.toStringTag,{value:"Module"}));var Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ku(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 io={exports:{}},Or={};const Ws=ku(Us);var zi;function Tu(){if(zi)return Or;zi=1;var e=Ws;function t(l,h){return l===h&&(l!==0||1/l===1/h)||l!==l&&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(l,h){var p=h(),v=r({inst:{value:p,getSnapshot:h}}),g=v[0].inst,b=v[1];return i(function(){g.value=p,g.getSnapshot=h,c(g)&&b({inst:g})},[l,p,h]),o(function(){return c(g)&&b({inst:g}),l(function(){c(g)&&b({inst:g})})},[l]),a(p),p}function c(l){var h=l.getSnapshot;l=l.value;try{var p=h();return!n(l,p)}catch{return!0}}function d(l,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Or.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Or}var kr={};var qi;function Au(){return qi||(qi=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}function t(p,v){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 g=v();if(!l){var b=v();i(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}b=a({inst:{value:g,getSnapshot:v}});var _=b[0].inst,m=b[1];return c(function(){_.value=g,_.getSnapshot=v,n(_)&&m({inst:_})},[p,g,v]),s(function(){return n(_)&&m({inst:_}),p(function(){n(_)&&m({inst:_})})},[p]),d(g),g}function n(p){var v=p.getSnapshot;p=p.value;try{var g=v();return!i(p,g)}catch{return!0}}function r(p,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Ws,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,l=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;kr.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())})()),kr}process.env.NODE_ENV==="production"?io.exports=Tu():io.exports=Au();var Bi=io.exports;const zs=0,qs=1,Bs=2,Ki=3;var Gi=Object.prototype.hasOwnProperty;function ao(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--&&ao(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Gi.call(e,n)&&++r&&!Gi.call(t,n)||!(n in t)||!ao(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const qe=new WeakMap,Ke=()=>{},se=Ke(),Yn=Object,H=e=>e===se,Oe=e=>typeof e=="function",nt=(e,t)=>({...e,...t}),Ks=e=>Oe(e.then),Tr={},Cn={},Ko="undefined",_n=typeof window!=Ko,so=typeof document!=Ko,Pu=_n&&"Deno"in window,Ru=()=>_n&&typeof window.requestAnimationFrame!=Ko,Gs=(e,t)=>{const n=qe.get(e);return[()=>!H(t)&&e.get(t)||Tr,r=>{if(!H(t)){const o=e.get(t);t in Cn||(Cn[t]=o),n[5](t,nt(o,r),o||Tr)}},n[6],()=>!H(t)&&t in Cn?Cn[t]:!H(t)&&e.get(t)||Tr]};let co=!0;const Du=()=>co,[lo,uo]=_n&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],Lu=()=>{const e=so&&document.visibilityState;return H(e)||e!=="hidden"},Nu=e=>(so&&document.addEventListener("visibilitychange",e),lo("focus",e),()=>{so&&document.removeEventListener("visibilitychange",e),uo("focus",e)}),Mu=e=>{const t=()=>{co=!0,e()},n=()=>{co=!1};return lo("online",t),lo("offline",n),()=>{uo("online",t),uo("offline",n)}},Iu={isOnline:Du,isVisible:Lu},ju={initFocus:Nu,initReconnect:Mu},Ji=!mn.useId,Dt=!_n||Pu,Fu=e=>Ru()?window.requestAnimationFrame(e):setTimeout(e,1),In=Dt?I:ce,Ar=typeof navigator<"u"&&navigator.connection,Yi=!Dt&&Ar&&(["slow-2g","2g"].includes(Ar.effectiveType)||Ar.saveData),En=new WeakMap,Vu=e=>Yn.prototype.toString.call(e),Pr=(e,t)=>e===`[object ${t}]`;let Hu=0;const fo=e=>{const t=typeof e,n=Vu(e),r=Pr(n,"Date"),o=Pr(n,"RegExp"),i=Pr(n,"Object");let a,s;if(Yn(e)===e&&!r&&!o){if(a=En.get(e),a)return a;if(a=++Hu+"~",En.set(e,a),Array.isArray(e)){for(a="@",s=0;s<e.length;s++)a+=fo(e[s])+",";En.set(e,a)}if(i){a="#";const c=Yn.keys(e).sort();for(;!H(s=c.pop());)H(e[s])||(a+=s+":"+fo(e[s])+",");En.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Go=e=>{if(Oe(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?fo(e):"",[e,t]};let Uu=0;const po=()=>++Uu;async function Js(...e){const[t,n,r,o]=e,i=nt({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,f=i.throwOnError;if(Oe(n)){const h=n,p=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&h(t.get(g)._k)&&p.push(g);return Promise.all(p.map(l))}return l(n);async function l(h){const[p]=Go(h);if(!p)return;const[v,g]=Gs(t,p),[b,_,m,w]=qe.get(t),y=()=>{const N=b[p];return(Oe(i.revalidate)?i.revalidate(v().data,h):i.revalidate!==!1)&&(delete m[p],delete w[p],N&&N[0])?N[0](Bs).then(()=>v().data):v().data};if(e.length<3)return y();let x=r,$,C=!1;const S=po();_[p]=[S,0];const E=!H(c),A=v(),L=A.data,P=A._c,M=H(P)?L:P;if(E&&(c=Oe(c)?c(M,L):c,g({data:c,_c:M})),Oe(x))try{x=x(M)}catch(N){$=N,C=!0}if(x&&Ks(x))if(x=await x.catch(N=>{$=N,C=!0}),S!==_[p][0]){if(C)throw $;return x}else C&&E&&d($)&&(a=!0,g({data:M,_c:se}));if(a&&!C)if(Oe(a)){const N=a(x,M);g({data:N,error:se,_c:se})}else g({data:x,error:se,_c:se});if(_[p][1]=po(),Promise.resolve(y()).then(()=>{g({_c:se})}),C){if(f)throw $;return}return x}}const Zi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ys=(e,t)=>{if(!qe.has(e)){const n=nt(ju,t),r=Object.create(null),o=Js.bind(se,e);let i=Ke;const a=Object.create(null),s=(f,l)=>{const h=a[f]||[];return a[f]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(f,l,h)=>{e.set(f,l);const p=a[f];if(p)for(const v of p)v(l,h)},d=()=>{if(!qe.has(e)&&(qe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,s]),!Dt)){const f=n.initFocus(setTimeout.bind(se,Zi.bind(se,r,zs))),l=n.initReconnect(setTimeout.bind(se,Zi.bind(se,r,qs)));i=()=>{f&&f(),l&&l(),qe.delete(e)}}};return d(),[e,o,d,i]}return[e,qe.get(e)[4]]},Wu=(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)},zu=ao,[Jo,qu]=Ys(new Map),Zs=nt({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:Wu,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Yi?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Yi?5e3:3e3,compare:zu,isPaused:()=>!1,cache:Jo,mutate:qu,fallback:{}},Iu),Xs=(e,t)=>{const n=nt(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=nt(o,a))}return n},ho=Ye({}),Bu=e=>{const{value:t}=e,n=ye(ho),r=Oe(t),o=K(()=>r?t(n):t,[r,n,t]),i=K(()=>r?o:Xs(n,o),[r,n,o]),a=o&&o.provider,s=T(se);a&&!s.current&&(s.current=Ys(a(i.cache||Jo),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),In(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k(ho.Provider,nt(e,{value:i}))},Ku="$inf$",Qs=_n&&window.__SWR_DEVTOOLS_USE__,Gu=Qs?window.__SWR_DEVTOOLS_USE__:[],Ju=()=>{Qs&&(window.__SWR_DEVTOOLS_REACT__=mn)},Yu=e=>Oe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Zu=()=>{const e=ye(ho);return K(()=>nt(Zs,e),[e])},Xu=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Go(t),[,,,s]=qe.get(Jo);if(a.startsWith(Ku))return n(...i);const c=s[a];return H(c)?n(...i):(delete s[a],c)}),r),Qu=Gu.concat(Xu),ed=e=>function(...n){const r=Zu(),[o,i,a]=Yu(n),s=Xs(r,a);let c=e;const{use:d}=s,f=(d||[]).concat(Qu);for(let l=f.length;l--;)c=f[l](c);return c(o,i||s.fetcher||null,s)},td=(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 Rr=mn.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}}),Dr={dedupe:!0},Xi=Promise.resolve(se),nd=()=>Ke,rd=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:l,keepPreviousData:h,strictServerPrefetchWarning:p}=n,[v,g,b,_]=qe.get(r),[m,w]=Go(e),y=T(!1),x=T(!1),$=T(m),C=T(t),S=T(n),E=()=>S.current,A=()=>E().isVisible()&&E().isOnline(),[L,P,M,N]=Gs(r,m),z=T({}).current,G=H(a)?H(n.fallback)?se:n.fallback[m]:a,F=(W,Y)=>{for(const Z in z){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},q=!y.current,B=K(()=>{const W=L(),Y=N(),Z=O=>{const R=nt(O);return delete R._k,(()=>{if(!m||!t||E().isPaused())return!1;if(q&&!H(s))return s;const en=H(G)?R.data:G;return H(en)||c})()?{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]),le=Bi.useSyncExternalStore(j(W=>M(m,(Y,Z)=>{F(Z,Y)||W()}),[r,m]),B[0],B[1]),at=v[m]&&v[m].length>0,Pe=le.data,be=H(Pe)?G&&Ks(G)?Rr(G):G:Pe,st=le.error,Ee=T(be),de=h?H(Pe)?H(Ee.current)?be:Ee.current:Pe:be,pe=m&&H(be),Re=T(null);!Dt&&Bi.useSyncExternalStore(nd,()=>(Re.current=!1,Re),()=>(Re.current=!0,Re));const Ue=Re.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 ct=!m||!t||E().isPaused()||at&&!H(st)?!1:q&&!H(s)?s:i?H(be)?!1:c:H(be)||c,xt=H(le.isValidating)?ct:le.isValidating,$t=H(le.isLoading)?ct:le.isLoading,De=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=()=>Ji?!x.current&&m===$.current&&y.current:m===$.current,U={isValidating:!1,isLoading:!1},en=()=>{P(U)},hi=()=>{const we=b[m];we&&we[1]===X&&delete b[m]},gi={isValidating:!0};H(L().data)&&(gi.isLoading=!0);try{if(O&&(P(gi),n.loadingTimeout&&H(L().data)&&setTimeout(()=>{ue&&R()&&E().onLoadingSlow(m,n)},n.loadingTimeout),b[m]=[Y(w),po()]),[Z,X]=b[m],Z=await Z,O&&setTimeout(hi,n.dedupingInterval),!b[m]||b[m][1]!==X)return O&&R()&&E().onDiscarded(m),!1;U.error=se;const we=g[m];if(!H(we)&&(X<=we[0]||X<=we[1]||we[1]===0))return en(),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){hi();const ze=E(),{shouldRetryOnError:br}=ze;ze.isPaused()||(U.error=we,O&&R()&&(ze.onError(we,m,ze),(br===!0||Oe(br)&&br(we))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||A())&&ze.onErrorRetry(we,m,ze,yl=>{const wr=v[m];wr&&wr[0]&&wr[0](Ki,yl)},{retryCount:(ie.retryCount||0)+1,dedupe:!0})))}return ue=!1,en(),!0},[m,r]),vt=j((...W)=>Js(r,$.current,...W),[]);if(In(()=>{C.current=t,S.current=n,H(Pe)||(Ee.current=Pe)}),In(()=>{if(!m)return;const W=De.bind(se,Dr);let Y=0;E().revalidateOnFocus&&(Y=Date.now()+E().focusThrottleInterval);const X=td(m,v,(ue,ie={})=>{if(ue==zs){const O=Date.now();E().revalidateOnFocus&&O>Y&&A()&&(Y=O+E().focusThrottleInterval,W())}else if(ue==qs)E().revalidateOnReconnect&&A()&&W();else{if(ue==Bs)return De();if(ue==Ki)return De(ie)}});return x.current=!1,$.current=m,y.current=!0,P({_k:w}),ct&&(b[m]||(H(be)||Dt?W():Fu(W))),()=>{x.current=!0,X()}},[m]),In(()=>{let W;function Y(){const X=Oe(d)?d(L().data):d;X&&W!==-1&&(W=setTimeout(Z,X))}function Z(){!L().error&&(f||E().isVisible())&&(l||E().isOnline())?De(Dr).then(Y):Y()}return Y(),()=>{W&&(clearTimeout(W),W=-1)}},[d,f,l,m]),ar(de),i){if(!Ji&&Dt&&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?vt(W):Xi;if(Rr(Y),!H(st)&&pe)throw st;const Z=pe?De(Dr):Xi;!H(de)&&pe&&(Z.status="fulfilled",Z.value=!0),Rr(Z)}return{mutate:vt,get data(){return z.data=!0,de},get error(){return z.error=!0,st},get isValidating(){return z.isValidating=!0,xt},get isLoading(){return z.isLoading=!0,$t}}},od=Yn.defineProperty(Bu,"defaultValue",{value:Zs}),Ht=ed(rd),Zn=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(...ec(e.state.filters).map(([i,a])=>`${i}=${Array.isArray(a)?a.join("|"):a}`)),JSON.stringify(t.sort())},ec=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]]}),tc=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},id=(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(c=>c.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 ad=["1","2","3","4","5","6","7","8","9","10","11","12"],sd={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]}},cd=(e,t=1,n)=>r=>{const[o,i]=sd[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Lr=e=>{const t=cd(e.hue,e.chroma,e.mode);return Object.fromEntries(ad.map(n=>[e.prefix+n,e.transform(t(n))]))},Nr=e=>e,ld=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)},On=e=>!!e&&typeof e=="object"&&!Array.isArray(e),go=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(On(e)&&On(n))for(const r in n){const o=n[r];if(On(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];On(i)&&go(i,o)}else Object.assign(e,{[r]:n[r]})}return go(e,...t)},ud=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},dd=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),c=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:c}}),f=ld(go(s,c,d)),l=([h,p],v)=>{const g=[v,h].filter(Boolean).join(".");return typeof p=="object"?Object.entries(p).flatMap(b=>l(b,g)):[[r.getToken("declaration",g),p]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const Le=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)},[Mr,Ir,kn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],fd=dd().core(({theme:e})=>{var t,n,r,o;return{color:{black:Mr,white:Ir,lowest:e.mode==="light"?Ir:Mr,highest:e.mode==="light"?Mr:Ir,...Lr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Nr}),...Lr({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:Nr}),...Lr({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:Nr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,f,l,h,p,v,g,b,_,m,w,y,x,$,C,S,E,A,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":((c=o.filter)==null?void 0:c.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":((l=o.weight)==null?void 0:l.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((v=(p=o.filter)==null?void 0:p.weight)==null?void 0:v.toString())??((g=o.weight)==null?void 0:g.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":((A=(E=o.input)==null?void 0:E.weight)==null?void 0:A.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"):kn,"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":kn,"radius-app":Le(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Le(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Le(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Le(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Le(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Le(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Le(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":Le(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"?kn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?kn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Le(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":Le(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),pd=ud({prefix:"i-"}),hd=e=>{const t=fd.from({theme:e.theme,getToken:pd}),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 ee(){return ee=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},ee.apply(null,arguments)}function ke(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 gd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nc(...e){return t=>e.forEach(n=>gd(n,t))}function Ve(...e){return j(nc(...e),e)}function vd(e,t){const n=Ye(t);function r(i){const{children:a,...s}=i,c=K(()=>s,Object.values(s));return k(n.Provider,{value:c},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 Yo(e,t=[]){let n=[];function r(i,a){const s=Ye(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:p,...v}=l,g=(h==null?void 0:h[e][c])||s,b=K(()=>v,Object.values(v));return k(g.Provider,{value:b},p)}function f(l,h){const p=(h==null?void 0:h[e][c])||s,v=ye(p);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=n.map(a=>Ye(a));return function(s){const c=(s==null?void 0:s[e])||i;return K(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,md(o,...t)]}function md(...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:c,scopeName:d})=>{const l=c(i)[`__scope${d}`];return{...s,...l}},{});return K(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Ut=globalThis!=null&&globalThis.document?ce:()=>{},_d=Us.useId||(()=>{});let yd=0;function jn(e){const[t,n]=D(_d());return Ut(()=>{n(r=>r??String(yd++))},[e]),e||(t?`radix-${t}`:"")}function dt(e){const t=T(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 rc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=bd({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=dt(n),c=j(d=>{if(i){const l=typeof d=="function"?d(e):d;l!==e&&s(l)}else o(d)},[i,e,o,s]);return[a,c]}function bd({defaultProp:e,onChange:t}){const n=D(e),[r]=n,o=T(r),i=dt(t);return I(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const cr=te((e,t)=>{const{children:n,...r}=e,o=je.toArray(n),i=o.find(xd);if(i){const a=i.props.children,s=o.map(c=>c===i?je.count(a)>1?je.only(null):tt(a)?a.props.children:null:c);return k(mo,ee({},r,{ref:t}),tt(a)?Bt(a,void 0,s):null)}return k(mo,ee({},r,{ref:t}),n)});cr.displayName="Slot";const mo=te((e,t)=>{const{children:n,...r}=e;return tt(n)?Bt(n,{...$d(r,n.props),ref:t?nc(t,n.ref):n.ref}):je.count(n)>1?je.only(null):null});mo.displayName="SlotClone";const wd=({children:e})=>k(V,null,e);function xd(e){return tt(e)&&e.type===wd}function $d(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 Sd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ht=Sd.reduce((e,t)=>{const n=te((r,o)=>{const{asChild:i,...a}=r,s=i?cr:t;return I(()=>{window[Symbol.for("radix-ui")]=!0},[]),k(s,ee({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cd(e,t){e&&vn(()=>e.dispatchEvent(t))}function Ed(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e);I(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const _o="dismissableLayer.update",Od="dismissableLayer.pointerDownOutside",kd="dismissableLayer.focusOutside";let Qi;const Td=Ye({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oc=te((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,f=ye(Td),[l,h]=D(null),p=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,v]=D({}),g=Ve(t,S=>h(S)),b=Array.from(f.layers),[_]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(_),w=l?b.indexOf(l):-1,y=f.layersWithOutsidePointerEventsDisabled.size>0,x=w>=m,$=Ad(S=>{const E=S.target,A=[...f.branches].some(L=>L.contains(E));!x||A||(i==null||i(S),s==null||s(S),S.defaultPrevented||c==null||c())},p),C=Pd(S=>{const E=S.target;[...f.branches].some(L=>L.contains(E))||(a==null||a(S),s==null||s(S),S.defaultPrevented||c==null||c())},p);return Ed(S=>{w===f.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},p),I(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Qi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),ea(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Qi)}},[l,p,r,f]),I(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),ea())},[l,f]),I(()=>{const S=()=>v({});return document.addEventListener(_o,S),()=>document.removeEventListener(_o,S)},[]),k(ht.div,ee({},d,{ref:g,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Ad(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=T(!1),o=T(()=>{});return I(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){ic(Od,n,c,{discrete:!0})};const c={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 Pd(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=T(!1);return I(()=>{const o=i=>{i.target&&!r.current&&ic(kd,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 ea(){const e=new CustomEvent(_o);document.dispatchEvent(e)}function ic(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?Cd(o,i):o.dispatchEvent(i)}const jr="focusScope.autoFocusOnMount",Fr="focusScope.autoFocusOnUnmount",ta={bubbles:!1,cancelable:!0},ac=te((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=D(null),d=dt(o),f=dt(i),l=T(null),h=Ve(t,g=>c(g)),p=T({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I(()=>{if(r){let g=function(w){if(p.paused||!s)return;const y=w.target;s.contains(y)?l.current=y:lt(l.current,{select:!0})},b=function(w){if(p.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||lt(l.current,{select:!0}))},_=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&<(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const m=new MutationObserver(_);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),m.disconnect()}}},[r,s,p.paused]),I(()=>{if(s){ra.add(p);const g=document.activeElement;if(!s.contains(g)){const _=new CustomEvent(jr,ta);s.addEventListener(jr,d),s.dispatchEvent(_),_.defaultPrevented||(Rd(Id(sc(s)),{select:!0}),document.activeElement===g&<(s))}return()=>{s.removeEventListener(jr,d),setTimeout(()=>{const _=new CustomEvent(Fr,ta);s.addEventListener(Fr,f),s.dispatchEvent(_),_.defaultPrevented||lt(g??document.body,{select:!0}),s.removeEventListener(Fr,f),ra.remove(p)},0)}}},[s,d,f,p]);const v=j(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,_=document.activeElement;if(b&&_){const m=g.currentTarget,[w,y]=Dd(m);w&&y?!g.shiftKey&&_===y?(g.preventDefault(),n&<(w,{select:!0})):g.shiftKey&&_===w&&(g.preventDefault(),n&<(y,{select:!0})):_===m&&g.preventDefault()}},[n,r,p.paused]);return k(ht.div,ee({tabIndex:-1},a,{ref:h,onKeyDown:v}))});function Rd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(lt(r,{select:t}),document.activeElement!==n)return}function Dd(e){const t=sc(e),n=na(t,e),r=na(t.reverse(),e);return[n,r]}function sc(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 na(e,t){for(const n of e)if(!Ld(n,{upTo:t}))return n}function Ld(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 Nd(e){return e instanceof HTMLInputElement&&"select"in e}function lt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Nd(e)&&t&&e.select()}}const ra=Md();function Md(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oa(e,t),e.unshift(t)},remove(t){var n;e=oa(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function oa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Id(e){return e.filter(t=>t.tagName!=="A")}const cc=te((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?mn.createPortal(k(ht.div,ee({},o,{ref:t})),r):null});function jd(e,t){return gn((n,r)=>{const o=t[n][r];return o??n},e)}const Kt=e=>{const{present:t,children:n}=e,r=Fd(t),o=typeof n=="function"?n({present:r.isPresent}):je.only(n),i=Ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?Bt(o,{ref:i}):null};Kt.displayName="Presence";function Fd(e){const[t,n]=D(),r=T({}),o=T(e),i=T("none"),a=e?"mounted":"unmounted",[s,c]=jd(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const d=Tn(r.current);i.current=s==="mounted"?d:"none"},[s]),Ut(()=>{const d=r.current,f=o.current;if(f!==e){const h=i.current,p=Tn(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ut(()=>{if(t){const d=l=>{const p=Tn(r.current).includes(l.animationName);l.target===t&&p&&vn(()=>c("ANIMATION_END"))},f=l=>{l.target===t&&(i.current=Tn(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 c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:j(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function Tn(e){return(e==null?void 0:e.animationName)||"none"}let Vr=0;function lc(){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:ia()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ia()),Vr++,()=>{Vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Vr--}},[])}function ia(){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 Ne=function(){return Ne=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},Ne.apply(this,arguments)};function uc(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 Vd(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 Fn="right-scroll-bar-position",Vn="width-before-scroll-bar",Hd="with-scroll-bars-hidden",Ud="--removed-body-scroll-bar-size";function Hr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wd(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 zd=typeof window<"u"?ce:I,aa=new WeakMap;function qd(e,t){var n=Wd(null,function(r){return e.forEach(function(o){return Hr(o,r)})});return zd(function(){var r=aa.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Hr(s,null)}),i.forEach(function(s){o.has(s)||Hr(s,a)})}aa.set(n,e)},[e]),n}function Bd(e){return e}function Kd(e,t){t===void 0&&(t=Bd);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 c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Gd(e){e===void 0&&(e={});var t=Kd(null);return t.options=Ne({async:!0,ssr:!1},e),t}var dc=function(e){var t=e.sideCar,n=uc(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,Ne({},n))};dc.isSideCarExport=!0;function Jd(e,t){return e.useMedium(t),dc}var fc=Gd(),Ur=function(){},lr=te(function(e,t){var n=T(null),r=D({onScrollCapture:Ur,onWheelCapture:Ur,onTouchMoveCapture:Ur}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,l=e.shards,h=e.sideCar,p=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,_=b===void 0?"div":b,m=uc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=qd([n,t]),x=Ne(Ne({},m),o);return k(V,null,f&&k(w,{sideCar:fc,removeScrollBar:d,shards:l,noIsolation:p,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?Bt(je.only(s),Ne(Ne({},x),{ref:y})):k(_,Ne({},x,{className:c,ref:y}),s))});lr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lr.classNames={fullWidth:Vn,zeroRight:Fn};var Yd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yd();return t&&e.setAttribute("nonce",t),e}function Xd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ef=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zd())&&(Xd(t,n),Qd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tf=function(){var e=ef();return function(t,n){I(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pc=function(){var e=tf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},nf={left:0,top:0,right:0,gap:0},Wr=function(e){return parseInt(e||"",10)||0},rf=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[Wr(n),Wr(r),Wr(o)]},of=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nf;var t=rf(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])}},af=pc(),Lt="data-scroll-locked",sf=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(Hd,` {
|
|
6
|
-
overflow: hidden `).concat(r,`;
|
|
7
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
8
|
-
}
|
|
9
|
-
body[`).concat(Lt,`] {
|
|
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(Fn,` {
|
|
23
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.`).concat(Vn,` {
|
|
27
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.`).concat(Fn," .").concat(Fn,` {
|
|
31
|
-
right: 0 `).concat(r,`;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.`).concat(Vn," .").concat(Vn,` {
|
|
35
|
-
margin-right: 0 `).concat(r,`;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
body[`).concat(Lt,`] {
|
|
39
|
-
`).concat(Ud,": ").concat(s,`px;
|
|
40
|
-
}
|
|
41
|
-
`)},sa=function(){var e=parseInt(document.body.getAttribute(Lt)||"0",10);return isFinite(e)?e:0},cf=function(){I(function(){return document.body.setAttribute(Lt,(sa()+1).toString()),function(){var e=sa()-1;e<=0?document.body.removeAttribute(Lt):document.body.setAttribute(Lt,e.toString())}},[])},lf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;cf();var i=K(function(){return of(o)},[o]);return k(af,{styles:sf(i,!t,o,n?"":"!important")})},yo=!1;if(typeof window<"u")try{var An=Object.defineProperty({},"passive",{get:function(){return yo=!0,!0}});window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{yo=!1}var St=yo?{passive:!1}:!1,uf=function(e){return e.tagName==="TEXTAREA"},hc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uf(e)&&n[t]==="visible")},df=function(e){return hc(e,"overflowY")},ff=function(e){return hc(e,"overflowX")},ca=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=gc(e,n);if(r){var o=vc(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},pf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},gc=function(e,t){return e==="v"?df(t):ff(t)},vc=function(e,t){return e==="v"?pf(t):hf(t)},gf=function(e,t){return e==="h"&&t==="rtl"?-1:1},vf=function(e,t,n,r,o){var i=gf(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,f=a>0,l=0,h=0;do{var p=vc(e,s),v=p[0],g=p[1],b=p[2],_=g-b-i*v;(v||_)&&gc(e,s)&&(l+=_,h+=v),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&l===0||!f&&h===0)&&(d=!0),d},Pn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},la=function(e){return[e.deltaX,e.deltaY]},ua=function(e){return e&&"current"in e?e.current:e},mf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_f=function(e){return`
|
|
42
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
43
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
44
|
-
`)},yf=0,Ct=[];function bf(e){var t=T([]),n=T([0,0]),r=T(),o=D(yf++)[0],i=D(function(){return pc()})[0],a=T(e);I(function(){a.current=e},[e]),I(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Vd([e.lockRef.current],(e.shards||[]).map(ua),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=j(function(g,b){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var _=Pn(g),m=n.current,w="deltaX"in g?g.deltaX:m[0]-_[0],y="deltaY"in g?g.deltaY:m[1]-_[1],x,$=g.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in g&&C==="h"&&$.type==="range")return!1;var S=ca(C,$);if(!S)return!0;if(S?x=C:(x=C==="v"?"h":"v",S=ca(C,$)),!S)return!1;if(!r.current&&"changedTouches"in g&&(w||y)&&(r.current=x),!x)return!0;var E=r.current||x;return vf(E,b,g,E==="h"?w:y)},[]),c=j(function(g){var b=g;if(!(!Ct.length||Ct[Ct.length-1]!==i)){var _="deltaY"in b?la(b):Pn(b),m=t.current.filter(function(x){return x.name===b.type&&x.target===b.target&&mf(x.delta,_)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(a.current.shards||[]).map(ua).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(g,b,_,m){var w={name:g,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(g){n.current=Pn(g),r.current=void 0},[]),l=j(function(g){d(g.type,la(g),g.target,s(g,e.lockRef.current))},[]),h=j(function(g){d(g.type,Pn(g),g.target,s(g,e.lockRef.current))},[]);I(function(){return Ct.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,St),document.addEventListener("touchmove",c,St),document.addEventListener("touchstart",f,St),function(){Ct=Ct.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,St),document.removeEventListener("touchmove",c,St),document.removeEventListener("touchstart",f,St)}},[]);var p=e.removeScrollBar,v=e.inert;return k(V,null,v?k(i,{styles:_f(o)}):null,p?k(lf,{gapMode:"margin"}):null)}const wf=Jd(fc,bf);var Zo=te(function(e,t){return k(lr,Ne({},e,{ref:t,sideCar:wf}))});Zo.classNames=lr.classNames;var xf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Et=new WeakMap,Rn=new WeakMap,Dn={},zr=0,mc=function(e){return e&&(e.host||mc(e.parentNode))},$f=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mc(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})},Sf=function(e,t,n,r){var o=$f(t,Array.isArray(e)?e:[e]);Dn[n]||(Dn[n]=new WeakMap);var i=Dn[n],a=[],s=new Set,c=new Set(o),d=function(l){!l||s.has(l)||(s.add(l),d(l.parentNode))};o.forEach(d);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))f(h);else try{var p=h.getAttribute(r),v=p!==null&&p!=="false",g=(Et.get(h)||0)+1,b=(i.get(h)||0)+1;Et.set(h,g),i.set(h,b),a.push(h),g===1&&v&&Rn.set(h,!0),b===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return f(t),s.clear(),zr++,function(){a.forEach(function(l){var h=Et.get(l)-1,p=i.get(l)-1;Et.set(l,h),i.set(l,p),h||(Rn.has(l)||l.removeAttribute(r),Rn.delete(l)),p||l.removeAttribute(n)}),zr--,zr||(Et=new WeakMap,Et=new WeakMap,Rn=new WeakMap,Dn={})}},_c=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Sf(r,o,n,"aria-hidden")):function(){return null}};const yc="Dialog",[bc]=Yo(yc),[Cf,gt]=bc(yc),Ef=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=T(null),c=T(null),[d=!1,f]=rc({prop:r,defaultProp:o,onChange:i});return k(Cf,{scope:t,triggerRef:s,contentRef:c,contentId:jn(),titleId:jn(),descriptionId:jn(),open:d,onOpenChange:f,onOpenToggle:j(()=>f(l=>!l),[f]),modal:a},n)},Of="DialogTrigger",kf=te((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Of,n),i=Ve(t,o.triggerRef);return k(ht.button,ee({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xo(o.open)},r,{ref:i,onClick:ke(e.onClick,o.onOpenToggle)}))}),wc="DialogPortal",[Tf,xc]=bc(wc,{forceMount:void 0}),Af=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=gt(wc,t);return k(Tf,{scope:t,forceMount:n},je.map(r,a=>k(Kt,{present:n||i.open},k(cc,{asChild:!0,container:o},a))))},bo="DialogOverlay",Pf=te((e,t)=>{const n=xc(bo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gt(bo,e.__scopeDialog);return i.modal?k(Kt,{present:r||i.open},k(Rf,ee({},o,{ref:t}))):null}),Rf=te((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(bo,n);return k(Zo,{as:cr,allowPinchZoom:!0,shards:[o.contentRef]},k(ht.div,ee({"data-state":Xo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Wt="DialogContent",Df=te((e,t)=>{const n=xc(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gt(Wt,e.__scopeDialog);return k(Kt,{present:r||i.open},i.modal?k(Lf,ee({},o,{ref:t})):k(Nf,ee({},o,{ref:t})))}),Lf=te((e,t)=>{const n=gt(Wt,e.__scopeDialog),r=T(null),o=Ve(t,n.contentRef,r);return I(()=>{const i=r.current;if(i)return _c(i)},[]),k($c,ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,i=>i.preventDefault())}))}),Nf=te((e,t)=>{const n=gt(Wt,e.__scopeDialog),r=T(!1),o=T(!1);return k($c,ee({},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 c=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),$c=te((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=gt(Wt,n),c=T(null),d=Ve(t,c);return lc(),k(V,null,k(ac,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(oc,ee({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Mf="DialogTitle";function Xo(e){return e?"open":"closed"}const If="DialogTitleWarning";vd(If,{contentName:Wt,titleName:Mf,docsSlug:"dialog"});const jf=Ef,Ff=kf,Vf=Af,Hf=Pf,Uf=Df,Wf=["top","right","bottom","left"],ft=Math.min,he=Math.max,Xn=Math.round,Ln=Math.floor,Fe=e=>({x:e,y:e}),zf={left:"right",right:"left",bottom:"top",top:"bottom"};function wo(e,t,n){return he(e,ft(t,n))}function rt(e,t){return typeof e=="function"?e(t):e}function ot(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function Qo(e){return e==="x"?"y":"x"}function ei(e){return e==="y"?"height":"width"}function Ie(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ti(e){return Qo(Ie(e))}function qf(e,t,n){n===void 0&&(n=!1);const r=Gt(e),o=ti(e),i=ei(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qn(a)),[a,Qn(a)]}function Bf(e){const t=Qn(e);return[xo(e),t,xo(t)]}function xo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const da=["left","right"],fa=["right","left"],Kf=["top","bottom"],Gf=["bottom","top"];function Jf(e,t,n){switch(e){case"top":case"bottom":return n?t?fa:da:t?da:fa;case"left":case"right":return t?Kf:Gf;default:return[]}}function Yf(e,t,n,r){const o=Gt(e);let i=Jf(ot(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(xo)))),i}function Qn(e){const t=ot(e);return zf[t]+e.slice(t.length)}function Zf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sc(e){return typeof e!="number"?Zf(e):{top:e,right:e,bottom:e,left:e}}function er(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 pa(e,t,n){let{reference:r,floating:o}=e;const i=Ie(t),a=ti(t),s=ei(a),c=ot(t),d=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(c){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:l};break;case"left":p={x:r.x-o.width,y:l};break;default:p={x:r.x,y:r.y}}switch(Gt(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 Xf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:h=!1,padding:p=0}=rt(t,e),v=Sc(p),b=s[h?l==="floating"?"reference":"floating":l],_=er(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:c})),m=l==="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=er(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:c}):m);return{top:(_.top-x.top+v.top)/y.y,bottom:(x.bottom-_.bottom+v.bottom)/y.y,left:(_.left-x.left+v.left)/y.x,right:(x.right-_.right+v.right)/y.x}}const Qf=50,ep=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Xf},c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:l}=pa(d,r,c),h=r,p=0;const v={};for(let g=0;g<i.length;g++){const b=i[g];if(!b)continue;const{name:_,fn:m}=b,{x:w,y,data:x,reset:$}=await m({x:f,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,l=y??l,v[_]={...v[_],...x},$&&p<Qf&&(p++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:f,y:l}=pa(d,h,c)),g=-1)}return{x:f,y:l,placement:h,strategy:o,middlewareData:v}},tp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=rt(e,t)||{};if(d==null)return{};const l=Sc(f),h={x:n,y:r},p=ti(o),v=ei(p),g=await a.getDimensions(d),b=p==="y",_=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",y=i.reference[v]+i.reference[p]-h[p]-i.floating[v],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[v]);const S=y/2-x/2,E=C/2-g[v]/2-1,A=ft(l[_],E),L=ft(l[m],E),P=A,M=C-g[v]-L,N=C/2-g[v]/2+S,z=wo(P,N,M),G=!c.arrow&&Gt(o)!=null&&N!==z&&i.reference[v]/2-(N<P?A:L)-g[v]/2<0,F=G?N<P?N-P:N-M:0;return{[p]:h[p]+F,data:{[p]:z,centerOffset:N-z-F,...G&&{alignmentOffset:F}},reset:G}}}),np=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:c,elements:d}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=rt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=ot(o),m=Ie(s),w=ot(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(d.floating)),x=h||(w||!g?[Qn(s)]:Bf(s)),$=v!=="none";!h&&$&&x.push(...Yf(s,g,v,y));const C=[s,...x],S=await c.detectOverflow(t,b),E=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&E.push(S[_]),l){const N=qf(o,a,y);E.push(S[N[0]],S[N[1]])}if(A=[...A,{placement:o,overflows:E}],!E.every(N=>N<=0)){var L,P;const N=(((L=i.flip)==null?void 0:L.index)||0)+1,z=C[N];if(z&&(!(l==="alignment"?m!==Ie(z):!1)||A.every(q=>Ie(q.placement)===m?q.overflows[0]>0:!0)))return{data:{index:N,overflows:A},reset:{placement:z}};let G=(P=A.filter(F=>F.overflows[0]<=0).sort((F,q)=>F.overflows[1]-q.overflows[1])[0])==null?void 0:P.placement;if(!G)switch(p){case"bestFit":{var M;const F=(M=A.filter(q=>{if($){const B=Ie(q.placement);return B===m||B==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(B=>B>0).reduce((B,le)=>B+le,0)]).sort((q,B)=>q[1]-B[1])[0])==null?void 0:M[0];F&&(G=F);break}case"initialPlacement":G=s;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function ha(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ga(e){return Wf.some(t=>e[t]>=0)}const rp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=rt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=ha(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ga(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),s=ha(a,n.floating);return{data:{escapedOffsets:s,escaped:ga(s)}}}default:return{}}}}},Cc=new Set(["left","top"]);async function op(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ot(n),s=Gt(n),c=Ie(n)==="y",d=Cc.has(a)?-1:1,f=i&&c?-1:1,l=rt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),c?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const ip=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,c=await op(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},ap=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:c={fn:_=>{let{x:m,y:w}=_;return{x:m,y:w}}},...d}=rt(e,t),f={x:n,y:r},l=await i.detectOverflow(t,d),h=Ie(ot(o)),p=Qo(h);let v=f[p],g=f[h];if(a){const _=p==="y"?"top":"left",m=p==="y"?"bottom":"right",w=v+l[_],y=v-l[m];v=wo(w,v,y)}if(s){const _=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=g+l[_],y=g-l[m];g=wo(w,g,y)}const b=c.fn({...t,[p]:v,[h]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[h]:s}}}}}},sp=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:c=!0,crossAxis:d=!0}=rt(e,t),f={x:n,y:r},l=Ie(o),h=Qo(l);let p=f[h],v=f[l];const g=rt(s,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){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=Cc.has(ot(o)),x=i.reference[l]-i.floating[w]+(y&&((_=a.offset)==null?void 0:_[l])||0)+(y?0:b.crossAxis),$=i.reference[l]+i.reference[w]+(y?0:((m=a.offset)==null?void 0:m[l])||0)-(y?b.crossAxis:0);v<x?v=x:v>$&&(v=$)}return{[h]:p,[l]:v}}}},cp=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:c=()=>{},...d}=rt(e,t),f=await a.detectOverflow(t,d),l=ot(o),h=Gt(o),p=Ie(o)==="y",{width:v,height:g}=i.floating;let b,_;l==="top"||l==="bottom"?(b=l,_=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(_=l,b=h==="end"?"top":"bottom");const m=g-f.top-f.bottom,w=v-f.left-f.right,y=ft(g-f[b],m),x=ft(v-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 A=he(f.left,0),L=he(f.right,0),P=he(f.top,0),M=he(f.bottom,0);p?S=v-2*(A!==0||L!==0?A+L:he(f.left,f.right)):C=g-2*(P!==0||M!==0?P+M:he(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:C});const E=await a.getDimensions(s.floating);return v!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function ur(){return typeof window<"u"}function Jt(e){return Ec(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=(Ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ec(e){return ur()?e instanceof Node||e instanceof ge(e).Node:!1}function Te(e){return ur()?e instanceof Element||e instanceof ge(e).Element:!1}function it(e){return ur()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function va(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function yn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function lp(e){return/^(table|td|th)$/.test(Jt(e))}function dr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const up=/transform|translate|scale|rotate|perspective|filter/,dp=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none";let qr;function ni(e){const t=Te(e)?Ae(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!ri()&&(mt(t.backdropFilter)||mt(t.filter))||up.test(t.willChange||"")||dp.test(t.contain||"")}function fp(e){let t=pt(e);for(;it(t)&&!zt(t);){if(ni(t))return t;if(dr(t))return null;t=pt(t)}return null}function ri(){return qr==null&&(qr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qr}function zt(e){return/^(html|body|#document)$/.test(Jt(e))}function Ae(e){return ge(e).getComputedStyle(e)}function fr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||va(e)&&e.host||He(e);return va(t)?t.host:t}function Oc(e){const t=pt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&yn(t)?t:Oc(t)}function sn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Oc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ge(o);if(i){const s=$o(a);return t.concat(a,a.visualViewport||[],yn(o)?o:[],s&&n?sn(s):[])}else return t.concat(o,sn(o,[],n))}function $o(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kc(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Xn(n)!==i||Xn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function oi(e){return Te(e)?e:e.contextElement}function Nt(e){const t=oi(e);if(!it(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=kc(t);let a=(i?Xn(n.width):n.width)/r,s=(i?Xn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const pp=Fe(0);function Tc(e){const t=ge(e);return!ri()||!t.visualViewport?pp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function bt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=oi(e);let a=Fe(1);t&&(r?Te(r)&&(a=Nt(r)):a=Nt(e));const s=hp(i,n,r)?Tc(i):Fe(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,l=o.height/a.y;if(i){const h=ge(i),p=r&&Te(r)?ge(r):r;let v=h,g=$o(v);for(;g&&r&&p!==v;){const b=Nt(g),_=g.getBoundingClientRect(),m=Ae(g),w=_.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,y=_.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,l*=b.y,c+=w,d+=y,v=ge(g),g=$o(v)}}return er({width:f,height:l,x:c,y:d})}function pr(e,t){const n=fr(e).scrollLeft;return t?t.left+n:bt(He(e)).left+n}function Ac(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function gp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=He(r),s=t?dr(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Fe(1);const f=Fe(0),l=it(r);if((l||!l&&!i)&&((Jt(r)!=="body"||yn(a))&&(c=fr(r)),l)){const p=bt(r);d=Nt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=a&&!l&&!i?Ac(a,c):Fe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function vp(e){return Array.from(e.getClientRects())}function mp(e){const t=He(e),n=fr(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+pr(e);const s=-n.scrollTop;return Ae(r).direction==="rtl"&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const ma=25;function _p(e,t){const n=ge(e),r=He(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const f=ri();(!f||f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const d=pr(r);if(d<=0){const f=r.ownerDocument,l=f.body,h=getComputedStyle(l),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-l.clientWidth-p);v<=ma&&(i-=v)}else d<=ma&&(i+=d);return{width:i,height:a,x:s,y:c}}function yp(e,t){const n=bt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=it(e)?Nt(e):Fe(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,d=r*i.y;return{width:a,height:s,x:c,y:d}}function _a(e,t,n){let r;if(t==="viewport")r=_p(e,n);else if(t==="document")r=mp(He(e));else if(Te(t))r=yp(t,n);else{const o=Tc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return er(r)}function Pc(e,t){const n=pt(e);return n===t||!Te(n)||zt(n)?!1:Ae(n).position==="fixed"||Pc(n,t)}function bp(e,t){const n=t.get(e);if(n)return n;let r=sn(e,[],!1).filter(s=>Te(s)&&Jt(s)!=="body"),o=null;const i=Ae(e).position==="fixed";let a=i?pt(e):e;for(;Te(a)&&!zt(a);){const s=Ae(a),c=ni(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||yn(a)&&!c&&Pc(e,a))?r=r.filter(f=>f!==a):o=s,a=pt(a)}return t.set(e,r),r}function wp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?dr(t)?[]:bp(t,this._c):[].concat(n),r],s=_a(t,a[0],o);let c=s.top,d=s.right,f=s.bottom,l=s.left;for(let h=1;h<a.length;h++){const p=_a(t,a[h],o);c=he(p.top,c),d=ft(p.right,d),f=ft(p.bottom,f),l=he(p.left,l)}return{width:d-l,height:f-c,x:l,y:c}}function xp(e){const{width:t,height:n}=kc(e);return{width:t,height:n}}function $p(e,t,n){const r=it(t),o=He(t),i=n==="fixed",a=bt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Fe(0);function d(){c.x=pr(o)}if(r||!r&&!i)if((Jt(t)!=="body"||yn(o))&&(s=fr(t)),r){const p=bt(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&d();i&&!r&&o&&d();const f=o&&!r&&!i?Ac(o,s):Fe(0),l=a.left+s.scrollLeft-c.x-f.x,h=a.top+s.scrollTop-c.y-f.y;return{x:l,y:h,width:a.width,height:a.height}}function Br(e){return Ae(e).position==="static"}function ya(e,t){if(!it(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return He(e)===n&&(n=n.ownerDocument.body),n}function Rc(e,t){const n=ge(e);if(dr(e))return n;if(!it(e)){let o=pt(e);for(;o&&!zt(o);){if(Te(o)&&!Br(o))return o;o=pt(o)}return n}let r=ya(e,t);for(;r&&lp(r)&&Br(r);)r=ya(r,t);return r&&zt(r)&&Br(r)&&!ni(r)?n:r||fp(e)||n}const Sp=async function(e){const t=this.getOffsetParent||Rc,n=this.getDimensions,r=await n(e.floating);return{reference:$p(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cp(e){return Ae(e).direction==="rtl"}const Ep={convertOffsetParentRelativeRectToViewportRelativeRect:gp,getDocumentElement:He,getClippingRect:wp,getOffsetParent:Rc,getElementRects:Sp,getClientRects:vp,getDimensions:xp,getScale:Nt,isElement:Te,isRTL:Cp};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Op(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,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:f,top:l,width:h,height:p}=d;if(s||t(),!h||!p)return;const v=Ln(l),g=Ln(o.clientWidth-(f+h)),b=Ln(o.clientHeight-(l+p)),_=Ln(f),w={rootMargin:-v+"px "+-g+"px "+-b+"px "+-_+"px",threshold:he(0,ft(1,c))||1};let y=!0;function x($){const C=$[0].intersectionRatio;if(C!==c){if(!y)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!Dc(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 kp(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:c=!1}=r,d=oi(e),f=o||i?[...d?sn(d):[],...t?sn(t):[]]:[];f.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const l=d&&s?Op(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&&!c&&p.observe(d),t&&p.observe(t));let v,g=c?bt(e):null;c&&b();function b(){const _=bt(e);g&&!Dc(g,_)&&n(),g=_,v=requestAnimationFrame(b)}return n(),()=>{var _;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),l==null||l(),(_=p)==null||_.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const Tp=ip,Ap=ap,Pp=np,Rp=cp,Dp=rp,ba=tp,Lp=sp,Np=(e,t,n)=>{const r=new Map,o={platform:Ep,...n},i={...o.platform,_c:r};return ep(e,t,{...o,platform:i})};var Hn=typeof document<"u"?ce:I;function tr(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(!tr(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)&&!tr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wa(e,t){const n=Lc(e);return Math.round(t*n)/n}function xa(e){const t=T(e);return Hn(()=>{t.current=e}),t}function Mp(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:c,open:d}=e,[f,l]=D({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D(r);tr(h,r)||p(r);const[v,g]=D(null),[b,_]=D(null),m=j(F=>{F!==$.current&&($.current=F,g(F))},[]),w=j(F=>{F!==C.current&&(C.current=F,_(F))},[]),y=i||v,x=a||b,$=T(null),C=T(null),S=T(f),E=c!=null,A=xa(c),L=xa(o),P=j(()=>{if(!$.current||!C.current)return;const F={placement:t,strategy:n,middleware:h};L.current&&(F.platform=L.current),Np($.current,C.current,F).then(q=>{const B={...q,isPositioned:!0};M.current&&!tr(S.current,B)&&(S.current=B,vn(()=>{l(B)}))})},[h,t,n,L]);Hn(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,l(F=>({...F,isPositioned:!1})))},[d]);const M=T(!1);Hn(()=>(M.current=!0,()=>{M.current=!1}),[]),Hn(()=>{if(y&&($.current=y),x&&(C.current=x),y&&x){if(A.current)return A.current(y,x,P);P()}},[y,x,P,A,E]);const N=K(()=>({reference:$,floating:C,setReference:m,setFloating:w}),[m,w]),z=K(()=>({reference:y,floating:x}),[y,x]),G=K(()=>{const F={position:n,left:0,top:0};if(!z.floating)return F;const q=wa(z.floating,f.x),B=wa(z.floating,f.y);return s?{...F,transform:"translate("+q+"px, "+B+"px)",...Lc(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:B}},[n,s,z.floating,f.x,f.y]);return K(()=>({...f,update:P,refs:N,elements:z,floatingStyles:G}),[f,P,N,z,G])}const Ip=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?ba({element:r.current,padding:o}).fn(n):{}:r?ba({element:r,padding:o}).fn(n):{}}}},jp=(e,t)=>({...Tp(e),options:[e,t]}),Fp=(e,t)=>({...Ap(e),options:[e,t]}),Vp=(e,t)=>({...Lp(e),options:[e,t]}),Hp=(e,t)=>({...Pp(e),options:[e,t]}),Up=(e,t)=>({...Rp(e),options:[e,t]}),Wp=(e,t)=>({...Dp(e),options:[e,t]}),zp=(e,t)=>({...Ip(e),options:[e,t]});function qp(e){const[t,n]=D(void 0);return Ut(()=>{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 c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;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 Nc="Popper",[Mc,Ic]=Yo(Nc),[Bp,jc]=Mc(Nc),Kp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D(null);return k(Bp,{scope:t,anchor:r,onAnchorChange:o},n)},Gp="PopperAnchor",Jp=te((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=jc(Gp,n),a=T(null),s=Ve(t,a);return I(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:k(ht.div,ee({},o,{ref:s}))}),Fc="PopperContent",[Yp,Dy]=Mc(Fc),Zp=te((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:f,side:l="bottom",sideOffset:h=0,align:p="center",alignOffset:v=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:_=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,S=jc(Fc,f),[E,A]=D(null),L=Ve(t,We=>A(We)),[P,M]=D(null),N=qp(P),z=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,G=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,F=l+(p!=="center"?"-"+p:""),q=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(_)?_:[_],le=B.length>0,at={padding:q,boundary:B.filter(Xp),altBoundary:le},{refs:Pe,floatingStyles:be,placement:st,isPositioned:Ee,middlewareData:de}=Mp({strategy:"fixed",placement:F,whileElementsMounted:(...We)=>kp(...We,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[jp({mainAxis:h+G,alignmentAxis:v}),b&&Fp({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Vp():void 0,...at}),b&&Hp({...at}),Up({...at,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&&zp({element:P,padding:g}),Qp({arrowWidth:z,arrowHeight:G}),y&&Wp({strategy:"referenceHidden",...at})]}),[pe,Re]=Vc(st),Ue=dt($);Ut(()=>{Ee&&(Ue==null||Ue())},[Ee,Ue]);const ct=(o=de.arrow)===null||o===void 0?void 0:o.x,xt=(i=de.arrow)===null||i===void 0?void 0:i.y,$t=((a=de.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[De,vt]=D();return Ut(()=>{E&&vt(window.getComputedStyle(E).zIndex)},[E]),k("div",{ref:Pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Ee?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:De,"--radix-popper-transform-origin":[(s=de.transformOrigin)===null||s===void 0?void 0:s.x,(c=de.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},k(Yp,{scope:f,placedSide:pe,onArrowChange:M,arrowX:ct,arrowY:xt,shouldHideArrow:$t},k(ht.div,ee({"data-side":pe,"data-align":Re},C,{ref:L,style:{...C.style,animation:Ee?void 0:"none",opacity:(d=de.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Xp(e){return e!==null}const Qp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,l=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[v,g]=Vc(s),b={start:"0%",center:"50%",end:"100%"}[g],_=((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 v==="bottom"?(w=l?b:`${_}px`,y=`${-p}px`):v==="top"?(w=l?b:`${_}px`,y=`${c.floating.height+p}px`):v==="right"?(w=`${-p}px`,y=l?b:`${m}px`):v==="left"&&(w=`${c.floating.width+p}px`,y=l?b:`${m}px`),{data:{x:w,y}}}});function Vc(e){const[t,n="center"]=e.split("-");return[t,n]}const eh=Kp,th=Jp,nh=Zp,Hc="Popover",[Uc]=Yo(Hc,[Ic]),ii=Ic(),[rh,Yt]=Uc(Hc),oh=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ii(t),c=T(null),[d,f]=D(!1),[l=!1,h]=rc({prop:r,defaultProp:o,onChange:i});return k(eh,s,k(rh,{scope:t,contentId:jn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:j(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:j(()=>f(!0),[]),onCustomAnchorRemove:j(()=>f(!1),[]),modal:a},n))},ih="PopoverTrigger",ah=te((e,t)=>{const{__scopePopover:n,...r}=e,o=Yt(ih,n),i=ii(n),a=Ve(t,o.triggerRef),s=k(ht.button,ee({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":qc(o.open)},r,{ref:a,onClick:ke(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:k(th,ee({asChild:!0},i),s)}),Wc="PopoverPortal",[sh,ch]=Uc(Wc,{forceMount:void 0}),lh=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Yt(Wc,t);return k(sh,{scope:t,forceMount:n},k(Kt,{present:n||i.open},k(cc,{asChild:!0,container:o},r)))},cn="PopoverContent",uh=te((e,t)=>{const n=ch(cn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Yt(cn,e.__scopePopover);return k(Kt,{present:r||i.open},i.modal?k(dh,ee({},o,{ref:t})):k(fh,ee({},o,{ref:t})))}),dh=te((e,t)=>{const n=Yt(cn,e.__scopePopover),r=T(null),o=Ve(t,r),i=T(!1);return I(()=>{const a=r.current;if(a)return _c(a)},[]),k(Zo,{as:cr,allowPinchZoom:!0},k(zc,ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,d=s.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),fh=te((e,t)=>{const n=Yt(cn,e.__scopePopover),r=T(!1),o=T(!1);return k(zc,ee({},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 c=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),zc=te((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...l}=e,h=Yt(cn,n),p=ii(n);return lc(),k(ac,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(oc,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},k(nh,ee({"data-state":qc(h.open),role:"dialog",id:h.contentId},p,l,{ref:t,style:{...l.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 qc(e){return e?"open":"closed"}const ph=oh,hh=ah,gh=lh,vh=uh,$a=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},mh=(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=$a(r.value),a=$a(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},bn=Ce({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}}),Bc=Ce({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"}}),Kc=Ce({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"}}}),Gc=Ce({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}}),_h=Ce({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"}}}),yh=({children:e,colorScheme:t})=>u("span",{class:_h({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),bh=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},wh=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},xh=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},$h=({value:e,hasKeyword:t,property:n,useQuery:r,isMobile:o,onValueChange:i,onClose:a})=>{const{t:s}=re(),c=hn(r()),d=K(()=>{switch(c.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const v=c.data[n.key]??[];return Object.fromEntries(v.map(g=>[g.value,g.jobs]))}default:Pt(c)}},[c,n.key]),f=Jc(e),l=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:v=>p(v.currentTarget.value),placeholder:s("type_to_search")})}),(()=>{var v;switch(c.queryState){case"error":return u(et,{error:new Error(s("filters_loading_error"),{cause:c.error}),class:"flex-1",resetError:()=>c.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((g,b)=>u("div",{style:{animationDelay:b*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},b))});case"revalidating":case"loaded":{const g=[...c.data[n.key]??[]];if(!t)for(const w of n.pinnedValues??[])g.some(y=>y.value===w)||g.push({value:w,label:w,jobs:0});const b=h&&h.length>1?g.filter(w=>w.label.toLowerCase().includes(h.toLowerCase())):g,_=[];for(const w of b){if(w.label.length<1)continue;const y=(v=n.pinnedValues)==null?void 0:v.includes(w.value);if(t&&y&&w.jobs===0)continue;const x={...w,results:xh(d,w),disabled:wh(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:Bc(),children:mh(_,n.sortSuggestions).map(w=>{const y=f.includes(w.value);return u("li",{class:Kc({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=bh(f,w.value);i({select:"many",value:x});break}case"one":i({select:"one",value:y?void 0:w.value});break;default:Pt(e)}},class:Gc({active:y,disabled:w.disabled}),children:[u("span",{class:"max-w-full truncate",children:w.label})," ",u(yh,{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:Pt(c)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:l&&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:l?"accent":"neutral",class:"ml-auto"}),onClick:a,children:s(l?"done":"close")},l?"done":"close")})]})]})},Sa=8,Ca={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"},Ea=Ce({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"}}}),Oa=Ce({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"}}}),Jc=e=>typeof e.value=="string"?[e.value]:e.value??[],Sh=({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)},Yc=({active:e,hasKeyword:t=!1,value:n,onActiveChange:r,property:o,onValueChange:i,unfilteredQuery:a,useQuery:s,theme:c,widgetId:d})=>{const f=xl(o.key,Ca)?Ca[o.key]:void 0,l=o.icon??f??"filter",h=Jc(n),p=h.length>0,{t:v}=re(),g=p?`${o.label}, ${h.length} ${v("selected")}`:o.label,b=tc("(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:l}),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(Sh,{selectedValues:h})]}),m=u($h,{hasKeyword:t,useQuery:s,onClose:()=>r(!1),onValueChange:i,unfilteredQuery:a,property:o,value:n,isMobile:b});return b?u(jf,{open:e,onOpenChange:r,children:[u(Ff,{"data-filter-key":o.key,"aria-label":g,class:Ea({state:e||p?"active":"default"}),onTouchStart:Ch,children:_}),u(Vf,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:[u(Hf,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Uf,{class:Oa({mode:"mobile",class:vo(c)}),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:l,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:o.label})]}),m]})]})})]}):u(ph,{open:e,onOpenChange:w=>r(w),modal:b,children:[u(hh,{"data-filter-key":o.key,"aria-label":g,class:Ea({state:e||p?"active":"default"}),children:_}),u(gh,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:u(vh,{side:"bottom",sideOffset:Sa,align:"center",collisionPadding:Sa,class:Oa({mode:"desktop",class:vo(c)}),children:m})})})]})};function Ch(){}const Eh=(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}},Oh=({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:Pt(e)}},kh=({properties:e,state:t,staged:n,onFilterValueChange:r,onResetFilters:o,rpcClient:i,theme:a,alerts:s,widgetId:c,i18n:d})=>{const{t:f}=re(),[l,h]=D(void 0),p=K(()=>({filters:or(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),v=hn(Ht(Zn({state:p,baseKey:"filters"}),()=>Si({rpcClient:i,state:p,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Gn)),g=j(_=>()=>{const m={...t,resultOrder:void 0,filters:{...t.filters,[_]:p.filters[_]}};return Ht(Zn({state:m,baseKey:"filters"}),()=>Si({rpcClient:i,state:m,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Gn)},[i,p.filters,t,f,d]);if(v.queryState==="error")return u(et,{error:new Error(f("filters_loading_error"),{cause:v.error}),resetError:()=>v.swr.mutate()});const b=n?Th:Yc;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=l===_.key,w=t.filters[_.key]??{select:_.select,value:void 0},y=p.filters[_.key];y&&Eh(w,y);const x=S=>{const{newActiveKey:E,newValue:A}=Oh({activeKey:l,value:S??y,appliedFilters:t.filters});return h(E),r(_.key,A)},$=S=>h(S?_.key:void 0),C=g(_.key);return u(an,{Fallback:et,children:u(b,{unfilteredQuery:v,active:m,hasKeyword:!!t.query,property:_,onActiveChange:$,value:w,useQuery:C,onValueChange:x,theme:a,widgetId:c})},_.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 Th({useQuery:e,...t}){const n=e();return u(Yc,{...t,useQuery:()=>n})}const Zc=["gb"],Ah=e=>{const t=ve.jobCountryCodes(e);return t.length?t:Zc},ln=e=>e*1609.34,So=e=>e*1e3,Ph=()=>{const e=typeof document>"u"?"":document.documentElement.lang;if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return}},Xc=(e,t,n=1)=>new Intl.NumberFormat(Ph()??e,{style:"unit",unit:t==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:n,trailingZeroDisplay:"stripIfInteger"}),Rh=(e,t,n)=>Xc(n,t).format(e/(t==="miles"?ln(1):So(1)));function Dh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hr=Dh,Lh=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,Nh=Lh,Mh=Nh,Ih=typeof self=="object"&&self&&self.Object===Object&&self,jh=Mh||Ih||Function("return this")(),gr=jh,Fh=gr,Vh=function(){return Fh.Date.now()},Hh=Vh,Uh=/\s/;function Wh(e){for(var t=e.length;t--&&Uh.test(e.charAt(t)););return t}var zh=Wh,qh=zh,Bh=/^\s+/;function Kh(e){return e&&e.slice(0,qh(e)+1).replace(Bh,"")}var Gh=Kh,Jh=gr,Yh=Jh.Symbol,ai=Yh,ka=ai,Qc=Object.prototype,Zh=Qc.hasOwnProperty,Xh=Qc.toString,tn=ka?ka.toStringTag:void 0;function Qh(e){var t=Zh.call(e,tn),n=e[tn];try{e[tn]=void 0;var r=!0}catch{}var o=Xh.call(e);return r&&(t?e[tn]=n:delete e[tn]),o}var eg=Qh,tg=Object.prototype,ng=tg.toString;function rg(e){return ng.call(e)}var og=rg,Ta=ai,ig=eg,ag=og,sg="[object Null]",cg="[object Undefined]",Aa=Ta?Ta.toStringTag:void 0;function lg(e){return e==null?e===void 0?cg:sg:Aa&&Aa in Object(e)?ig(e):ag(e)}var el=lg;function ug(e){return e!=null&&typeof e=="object"}var dg=ug,fg=el,pg=dg,hg="[object Symbol]";function gg(e){return typeof e=="symbol"||pg(e)&&fg(e)==hg}var vr=gg,vg=Gh,Pa=hr,mg=vr,Ra=NaN,_g=/^[-+]0x[0-9a-f]+$/i,yg=/^0b[01]+$/i,bg=/^0o[0-7]+$/i,wg=parseInt;function xg(e){if(typeof e=="number")return e;if(mg(e))return Ra;if(Pa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vg(e);var n=yg.test(e);return n||bg.test(e)?wg(e.slice(2),n?2:8):_g.test(e)?Ra:+e}var $g=xg,Sg=hr,Kr=Hh,Da=$g,Cg="Expected a function",Eg=Math.max,Og=Math.min;function kg(e,t,n){var r,o,i,a,s,c,d=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(Cg);t=Da(t)||0,Sg(n)&&(f=!!n.leading,l="maxWait"in n,i=l?Eg(Da(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 v($){return d=$,s=setTimeout(_,t),f?p($):a}function g($){var C=$-c,S=$-d,E=t-C;return l?Og(E,i-S):E}function b($){var C=$-c,S=$-d;return c===void 0||C>=t||C<0||l&&S>=i}function _(){var $=Kr();if(b($))return m($);s=setTimeout(_,g($))}function m($){return s=void 0,h&&r?p($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),d=0,r=c=o=s=void 0}function y(){return s===void 0?a:m(Kr())}function x(){var $=Kr(),C=b($);if(r=arguments,o=this,c=$,C){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),a}return x.cancel=w,x.flush=y,x}var Tg=kg;const Ag=Bo(Tg),Co="|",tl=(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(Co)?r.defaultValue=o.split(Co):r.defaultValue=o}}}),n},nl=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},rl=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},Pg=({searchParams:e})=>({properties:t})=>({filters:or(tl(t,e),"defaultValue"),mode:nl(e),geo:ol(e),page:Un(e.get("page"))??1,view:rl(e),query:e.get("query")??"",...e.get("result_order")==="newest"?{resultOrder:"newest"}:{}}),Rg=(e,t)=>{var n,r;if(e.filters!==void 0){const o=ir({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(Co)):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"))},Un=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},ol=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=Un(t),i=Un(n),a=Un(r)??ln(Oo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?ln(Oo):a}},il=(e,t=1e3)=>{const[n,r]=D(e),o=K(()=>Ag(i=>r(i),t),[t]);return I(()=>{o(e)},[e,o]),n},Dg=te(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onEnter:a,onQueryChange:s,onBlur:c,onFocus:d,inputProps:f,menuProps:l,query:h},p)=>{const[v,g]=D(!1),[b,_]=D(),m=T(!1),{t:w}=re();I(()=>{var $;_(($=o[0])==null?void 0:$.id),m.current=!1},[o]);const y=$=>{i($),g(!1)},x=!t&&v&&!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":v?"true":void 0,"aria-controls":x?`ijs-${n}-menu`:void 0,placeholder:r,class:bn({size:"md"}),onFocus:()=>{d==null||d(),g(!0)},onBlur:()=>{window.setTimeout(()=>{c==null||c(),g(!1)},100)},value:h,onChange:$=>{m.current=!1,s($.currentTarget.value)},onKeyDown:$=>{switch(g(!0),$.key){case"ArrowDown":case"ArrowUp":{const C=$.key==="ArrowDown"?1:-1;$.preventDefault();const S=o.findIndex(A=>A.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:Bc({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(),...l,children:t?u("div",{role:"alert",children:w("geo_suggestions_error")}):o.map($=>u("li",{class:Kc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>{_($.id),m.current=!0},class:Gc({active:$.id===b,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>y($.id),onKeyDown:C=>{C.key==="Enter"&&y($.id)},children:$.label})},$.id))}):null]})}),Lg="https://api.mapbox.com/search/geocode/v6/forward",Eo=3,Ng="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Mg=e=>atob(e).split("").reverse().join(""),Ig="region,postcode,district,place,locality,neighborhood",jg=$e({features:pn(Xe($e({properties:$e({mapbox_id:Q(),feature_type:Be(Q()),place_formatted:Be(Q()),name_preferred:Be(Q(),"Untitled location"),coordinates:Xe($e({latitude:xe(),longitude:xe()}),Ze(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),Ze(e=>e.properties)))}),Fg=e=>{const t=fs(jg,e);if(t.success===!1)throw console.error(t.issues),new Error("Invalid data");return t.output.features},Vg=(e,t)=>{const n=new URL(Lg);return n.searchParams.set("q",e),n.searchParams.set("proximity","ip"),n.searchParams.set("country",t.join(",")),n.searchParams.set("types",Ig),n.searchParams.set("access_token",Mg(Ng)),n},La=e=>e.replace(/\s/gu,"").toUpperCase(),Hg=(e,t)=>{const n=La(e),r=t.find(o=>o.feature_type==="postcode"&&La(o.name_preferred)===n);return r?[r,...t.filter(o=>o!==r)]:t},Ug=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Na="inploi:geo:job-search:seed";let Ot;const Wg=()=>{if(Ot)return Ot;Ot=ve.generateUUID();try{const e=sessionStorage.getItem(Na);e&&/^[\w-]{1,64}$/.test(e)?Ot=e:sessionStorage.setItem(Na,Ot)}catch{}return Ot},zg=e=>({mapbox_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}}),Ma=async([e,t],n,r)=>{if(e.trim().length<Eo)return{results:[],lookup:null};const{results:o,arm:i,source:a}=await kl({query:e,country:t.join(","),seed:Wg(),surface:"job-search",signal:n},zg,async()=>{r==null||r();const c=await fetch(Vg(e,t),{signal:n});if(!c.ok)throw new Error("Failed to get address details");return Fg(await c.json())}),s=Ug(o,c=>c.name_preferred+c.place_formatted);return{results:Hg(e,s),lookup:{arm:i,source:a}}},qg=1e4;class al extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const Bg=({signal:e,timeoutMs:t})=>new Promise((n,r)=>{if(e.aborted){r(new DOMException("Aborted","AbortError"));return}const o=setTimeout(()=>r(new al),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})}),Kg=1,Gg=3,Jg=e=>{if(e instanceof DOMException&&e.name==="AbortError")return null;if(e instanceof al)return"geo_error_timeout";const t=typeof e=="object"&&e!==null&&"code"in e?e.code:void 0;return t===Kg?"geo_error_permission_denied":t===Gg?"geo_error_timeout":"geo_error_position_unavailable"},Yg=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Zg=({onLocate:e,onError:t,signal:n})=>{const[r,o]=D("idle"),[i,a]=D(null),{t:s}=re(),c=f=>{o("idle"),a(f),e(f)},d=f=>{const l=Jg(f);if(!l)return o("idle");o("error"),t(s(l))};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(r!=="loading"){if(i)return c(i);if(!Yg())return d(void 0);o("loading"),Bg({signal:n,timeoutMs:qg}).then(f=>c({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"})})},Mt=Ce({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}}),Xg=({onSelect:e,onValueChange:t,coords:n,radius:r,countries:o,onError:i})=>{const{t:a}=re(),[s,c]=D(""),[d,f]=D(),l=il(s,500),[h,p]=D(new AbortController),v=Ht(l.trim().length>=Eo?[l,o]:null,Ma,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:g,queryState:b,error:_}=hn(v),m=T(0),[w,y]=D("view"),x=T(null),$=T(null),C=T(null),S=T(!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),c(""),y("view")},A=(P,M)=>{P&&Tl({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:bn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{y("edit")},children:u("div",{class:Mt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:d??a("location_provided")})}):u(Dg,{ref:x,error:_,query:s,name:"location-search",onQueryChange:P=>{m.current++,c(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 c("");P.value.trim()&&i(a("geo_choose_location"))}},onItemSelect:P=>{if(b!=="loaded")return;const M=g.results.find(N=>N.mapbox_id===P);M&&(A(g.lookup,!0),E(M.coordinates,M.name_preferred))},onEnter:async(P,M)=>{const N=s.trim();if(!N)return;if(N.length<Eo)return i(a("geo_query_too_short"));const z=++m.current;let G=null;try{const F=l===s&&b==="loaded"?g:await Ma([N,o],void 0,()=>{G={arm:"direct",source:"direct"}});if(z!==m.current)return;const q=F.results.find(le=>le.mapbox_id===P),B=q??F.results[0];if(A(F.lookup,M&&!!q),B)return E(B.coordinates,B.name_preferred);i(a("geo_no_match"))}catch{if(z!==m.current)return;A(G,!1),i(a("geo_suggestions_error"))}},inputPlaceholder:a("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(g==null?void 0:g.results.map(P=>({id:P.mapbox_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(Zg,{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++,c(""),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"})})})]})},Qg=[.25,.5,1,3,5,10,15,20,30,40],ev=[.5,1,3,5,10,15,25,50,100],Oo=20,tv=25,nv=({rpcClient:e,value:t,onValueChange:n,distanceUnit:r="miles"})=>{const{t:o,locale:i}=re(),a=sr(),[s,c]=D(),d=Ht("job-countries",()=>ve.getJobCountries(e),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}),f=K(()=>d.data?Ah(d.data):Zc,[d.data]),l=K(()=>Xc(i,r,2),[i,r]),h=r==="miles"?ln(Oo):So(tv),p=(t==null?void 0:t.type)==="provided"?t.radius:h,v=(t==null?void 0:t.type)==="provided"?t.coords:void 0,g=(t==null?void 0:t.type)==="provided"?t.label:void 0,b=r==="miles"?Qg.map(_=>({value:ln(_),label:l.format(_)})):ev.map(_=>({value:So(_),label:l.format(_)}));return u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"flex flex-col gap-2 md:flex-row",children:[u(Xg,{coords:v,radius:p,countries:f,onValueChange:n,onSelect:(_,m)=>{c(void 0),n({type:"provided",radius:p,coords:_,label:m})},onError:c}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:a,children:o("geo_range_label")}),u("select",{id:a,name:"radius",class:bn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!v,value:v?p:"",onChange:_=>{c(void 0),n({type:"provided",coords:v,label:g,radius:Number(_.currentTarget.value)})},children:[v?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]})},sl=(e,t,n,r)=>{const[o,i]=D(e??""),a=T(),s=T(t);s.current=t;const c=j(()=>clearTimeout(a.current),[]);return ce(()=>(i(e??""),c(),c),[e,c]),{input:o,changeInput:f=>{i(f),c();const l=f.trim();if(l.length<=n){s.current("");return}a.current=setTimeout(()=>s.current(l),r)},cancelPending:c}},rv=2,ov=({value:e,onValueChange:t,onSearch:n})=>{const{input:r,changeInput:o,cancelPending:i}=sl(e,t,rv,300),a=r!==""&&r===e,{t:s}=re();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:Ft({"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:bn({hasValue:a,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:s("type_to_search_jobs"),value:r,onKeyDown:c=>{if(n&&c.key==="Enter"){c.preventDefault(),i();const d=c.currentTarget.value.trim();t(d),n(d)}},onChange:c=>{o(c.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"})})]})})},iv=({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 c=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(c)},[r,s.length,e]),u("div",{className:Ft("relative h-full w-full overflow-hidden",n),children:u("div",{className:Ft("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((c,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:c},d))})})},av=(e,t)=>{I(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},Ia=3,sv=({value:e,onValueChange:t,options:n,onSearch:r})=>{const{input:o,changeInput:i,cancelPending:a}=sl(e,t,Ia,1e3),s=o.trim(),c=s!==""&&s===e,{t:d}=re(),f=s.split(""),[l,h]=D(0),p=T(null);return av(p,v=>{v.target instanceof HTMLInputElement&&h(v.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:Ft("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!c,"text-copy-accent-icon":c})}),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:bn({hasValue:c,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:o,onChange:v=>{const g=v.currentTarget.value.trim();i(g)},onKeyDown:v=>{if(v.key==="Enter"){const g=v.currentTarget.value.trim();if(r){v.preventDefault(),a(),t(g),r(g);return}if(g.length<=Ia)return;v.preventDefault(),a(),t(g)}}}),u("div",{"data-synced":c,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(${-l}px)`},children:f.map((v,g)=>u("span",{style:{animationDelay:`${g*300/f.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:v===" "?" ":v},s+g))}):n!=null&&n.suggestions?u(iv,{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")})]})},nr=Ce({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}}),cl="bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]",cv=({value:e,onValueChange:t})=>{const{t:n}=re();return u("div",{class:cl,children:[u("button",{type:"button","aria-pressed":e==="list",class:nr({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:nr({active:e==="map"}),onClick:()=>t("map"),children:[u(oe,{name:"map",class:"size-5 shrink-0"}),u("span",{children:n("map")})]})]})},lv=({state:e,onValueChange:t})=>{var o;const{t:n}=re(),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:cl,children:[u("button",{type:"button","aria-pressed":!e.resultOrder,class:nr({active:!e.resultOrder}),onClick:()=>t(void 0),children:n(r)}),u("button",{type:"button","aria-pressed":e.resultOrder==="newest",class:nr({active:e.resultOrder==="newest"}),onClick:()=>t("newest"),children:n("sort_newest")})]}):null};var uv=Array.isArray,si=uv,dv=si,fv=vr,pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hv=/^\w*$/;function gv(e,t){if(dv(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fv(e)?!0:hv.test(e)||!pv.test(e)||t!=null&&e in Object(t)}var vv=gv,mv=el,_v=hr,yv="[object AsyncFunction]",bv="[object Function]",wv="[object GeneratorFunction]",xv="[object Proxy]";function $v(e){if(!_v(e))return!1;var t=mv(e);return t==bv||t==wv||t==yv||t==xv}var Sv=$v,Cv=gr,Ev=Cv["__core-js_shared__"],Ov=Ev,Gr=Ov,ja=(function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function kv(e){return!!ja&&ja in e}var Tv=kv,Av=Function.prototype,Pv=Av.toString;function Rv(e){if(e!=null){try{return Pv.call(e)}catch{}try{return e+""}catch{}}return""}var Dv=Rv,Lv=Sv,Nv=Tv,Mv=hr,Iv=Dv,jv=/[\\^$.*+?()[\]{}|]/g,Fv=/^\[object .+?Constructor\]$/,Vv=Function.prototype,Hv=Object.prototype,Uv=Vv.toString,Wv=Hv.hasOwnProperty,zv=RegExp("^"+Uv.call(Wv).replace(jv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qv(e){if(!Mv(e)||Nv(e))return!1;var t=Lv(e)?zv:Fv;return t.test(Iv(e))}var Bv=qv;function Kv(e,t){return e==null?void 0:e[t]}var Gv=Kv,Jv=Bv,Yv=Gv;function Zv(e,t){var n=Yv(e,t);return Jv(n)?n:void 0}var ll=Zv,Xv=ll,Qv=Xv(Object,"create"),mr=Qv,Fa=mr;function em(){this.__data__=Fa?Fa(null):{},this.size=0}var tm=em;function nm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rm=nm,om=mr,im="__lodash_hash_undefined__",am=Object.prototype,sm=am.hasOwnProperty;function cm(e){var t=this.__data__;if(om){var n=t[e];return n===im?void 0:n}return sm.call(t,e)?t[e]:void 0}var lm=cm,um=mr,dm=Object.prototype,fm=dm.hasOwnProperty;function pm(e){var t=this.__data__;return um?t[e]!==void 0:fm.call(t,e)}var hm=pm,gm=mr,vm="__lodash_hash_undefined__";function mm(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gm&&t===void 0?vm:t,this}var _m=mm,ym=tm,bm=rm,wm=lm,xm=hm,$m=_m;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=ym;Zt.prototype.delete=bm;Zt.prototype.get=wm;Zt.prototype.has=xm;Zt.prototype.set=$m;var Sm=Zt;function Cm(){this.__data__=[],this.size=0}var Em=Cm;function Om(e,t){return e===t||e!==e&&t!==t}var km=Om,Tm=km;function Am(e,t){for(var n=e.length;n--;)if(Tm(e[n][0],t))return n;return-1}var _r=Am,Pm=_r,Rm=Array.prototype,Dm=Rm.splice;function Lm(e){var t=this.__data__,n=Pm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Dm.call(t,n,1),--this.size,!0}var Nm=Lm,Mm=_r;function Im(e){var t=this.__data__,n=Mm(t,e);return n<0?void 0:t[n][1]}var jm=Im,Fm=_r;function Vm(e){return Fm(this.__data__,e)>-1}var Hm=Vm,Um=_r;function Wm(e,t){var n=this.__data__,r=Um(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var zm=Wm,qm=Em,Bm=Nm,Km=jm,Gm=Hm,Jm=zm;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=qm;Xt.prototype.delete=Bm;Xt.prototype.get=Km;Xt.prototype.has=Gm;Xt.prototype.set=Jm;var Ym=Xt,Zm=ll,Xm=gr,Qm=Zm(Xm,"Map"),e_=Qm,Va=Sm,t_=Ym,n_=e_;function r_(){this.size=0,this.__data__={hash:new Va,map:new(n_||t_),string:new Va}}var o_=r_;function i_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var a_=i_,s_=a_;function c_(e,t){var n=e.__data__;return s_(t)?n[typeof t=="string"?"string":"hash"]:n.map}var yr=c_,l_=yr;function u_(e){var t=l_(this,e).delete(e);return this.size-=t?1:0,t}var d_=u_,f_=yr;function p_(e){return f_(this,e).get(e)}var h_=p_,g_=yr;function v_(e){return g_(this,e).has(e)}var m_=v_,__=yr;function y_(e,t){var n=__(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var b_=y_,w_=o_,x_=d_,$_=h_,S_=m_,C_=b_;function Qt(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])}}Qt.prototype.clear=w_;Qt.prototype.delete=x_;Qt.prototype.get=$_;Qt.prototype.has=S_;Qt.prototype.set=C_;var E_=Qt,ul=E_,O_="Expected a function";function ci(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O_);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(ci.Cache||ul),n}ci.Cache=ul;var k_=ci,T_=k_,A_=500;function P_(e){var t=T_(e,function(r){return n.size===A_&&n.clear(),r}),n=t.cache;return t}var R_=P_,D_=R_,L_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N_=/\\(\\)?/g,M_=D_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_,function(n,r,o,i){t.push(o?i.replace(N_,"$1"):r||n)}),t}),I_=M_;function j_(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 F_=j_,Ha=ai,V_=F_,H_=si,U_=vr,Ua=Ha?Ha.prototype:void 0,Wa=Ua?Ua.toString:void 0;function dl(e){if(typeof e=="string")return e;if(H_(e))return V_(e,dl)+"";if(U_(e))return Wa?Wa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var W_=dl,z_=W_;function q_(e){return e==null?"":z_(e)}var B_=q_,K_=si,G_=vv,J_=I_,Y_=B_;function Z_(e,t){return K_(e)?e:G_(e,t)?[e]:J_(Y_(e))}var X_=Z_,Q_=vr;function ey(e){if(typeof e=="string"||Q_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ty=ey,ny=X_,ry=ty;function oy(e,t){t=ny(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ry(t[n++])];return n&&n==r?e:void 0}var iy=oy,ay=iy;function sy(e,t,n){var r=e==null?void 0:ay(e,t);return r===void 0?n:r}var cy=sy;const fl=Bo(cy),Wn=new Map,un=new Set,ko="isdk-saved-jobs-change",rr=e=>`${zl}:${e}`,pl=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>0;function qt(e){if(typeof window>"u")return[];if(un.has(e))return[...Wn.get(e)??[]];let t;try{t=window.localStorage.getItem(rr(e))}catch{return un.add(e),[...Wn.get(e)??[]]}let n;try{n=t===null?[]:JSON.parse(t)}catch{n=[]}const r=Array.isArray(n)?[...new Set(n.filter(pl))]:[];return Wn.set(e,r),[...r]}function ly(e,t){return qt(e).includes(t)}function uy(e,t){if(Wn.set(e,t),!un.has(e))try{t.length?window.localStorage.setItem(rr(e),JSON.stringify(t)):window.localStorage.removeItem(rr(e))}catch{un.add(e)}window.dispatchEvent(new CustomEvent(ko,{detail:e}))}function hl(e,t){if(!pl(t))throw new TypeError("Job id must be a positive safe integer");if(typeof window>"u")return!1;const n=qt(e),r=!n.includes(t);return uy(e,r?[...n,t]:n.filter(o=>o!==t)),r}function li(e,t){if(typeof window>"u")return()=>{};const n=o=>{o instanceof CustomEvent&&o.detail===e&&t(qt(e))},r=o=>{if(!un.has(e)){try{if(o.storageArea&&o.storageArea!==window.localStorage)return}catch{return}(o.key===null||o.key===rr(e))&&t(qt(e))}};return window.addEventListener(ko,n),window.addEventListener("storage",r),()=>{window.removeEventListener(ko,n),window.removeEventListener("storage",r)}}function dy(e){const t=new URL(e);return t.searchParams.set("saved",""),t.href}const wn=Ye(void 0);function ui(e){const[t,n]=D();return ce(()=>{const r=li(e,n);return n(qt(e)),r},[e]),t}function fy({buttonRef:e,onClick:t}){const n=ye(wn);if(!n)throw new Error("Saved jobs context is required");const r=ui(n.scope),{t:o}=re(),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 gl({id:e,title:t,unavailable:n=!1}){const r=ye(wn);if(!r)throw new Error("Saved jobs context is required");const o=ui(r.scope),{t:i}=re(),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 c=hl(r.scope,e);r.analytics.log({event:"SAVE_JOB",properties:{job_id:e,saved:c}})},children:n?i("remove"):u(oe,{"aria-hidden":!0,name:a?"bookmark-filled":"bookmark"})})}const rn=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),vl=Ce({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}}),ml=Ce({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"}}),Nn=({job:e,property:t})=>{if(!t)return null;const n=fl(e.raw,t.key);return t.transform?t.transform(n):n},py=({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],ut="[+-]?(?:\\d*\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?",on=`${ut}%`,Je=`${ut}%?`,di=`(?:\\s*\\/\\s*${Je})?`,_l=`(?:\\s*,\\s*${Je})?`,hy=`${Je}\\s+${Je}\\s+${Je}${di}`,gy=`(?:${ut}\\s*,\\s*${ut}\\s*,\\s*${ut}|${on}\\s*,\\s*${on}\\s*,\\s*${on})${_l}`,vy=`${ut}\\s+${Je}\\s+${Je}${di}`,my=`${ut}\\s*,\\s*${on}\\s*,\\s*${on}${_l}`,_y=`${Je}\\s+${Je}\\s+${ut}${di}`,yy=new RegExp(`^(?:#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})|var\\(--[a-z0-9-]+\\)|(?:rgb|rgba)\\(\\s*(?:${hy}|${gy})\\s*\\)|(?:hsl|hsla)\\(\\s*(?:${vy}|${my})\\s*\\)|oklch\\(\\s*${_y}\\s*\\))$`),by=1e3*60*60*24,fi=({job:e,config:t,onJobClick:n,size:r,distanceUnit:o})=>{var x,$,C,S,E,A;const{t:i,locale:a}=re(),s=ye(wn),c=e.distanceMeters===null?null:i("distance_away",{distance:Rh(e.distanceMeters,o??"miles",a)}),d=Nn({job:e,property:t.eyebrow}),f=(x=t.accent)==null?void 0:x.rules.find(L=>Jr(fl(e.raw,L.key)).includes(L.value)),l=f&&yy.test(f.color)?f:void 0,h=t.subheading?Nn({job:e,property:t.subheading}):null,p=t.infoTags.flatMap(L=>Jr(Nn({job:e,property:L}))).filter(Boolean),v=Jr(($=t.overrides)!=null&&$.salary?Nn({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),g=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()-_*by:!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":l==null?void 0:l.value,style:l?{"--ijs-card-accent":l.color}:void 0,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:vl({class:s?"min-h-28":void 0}),children:[l&&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:((A=t.accent)==null?void 0:A.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(py,{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:ml({size:r}),children:[e.title.trim(),m&&g!=="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]}),g==="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:[c?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}),c]}):null,u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:v.map((L,P)=>u("span",{class:Mt({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:Mt({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(gl,{id:e.id,title:e.title})]}):y},pi=({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:vl({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(rn,{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(rn,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(rn,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:Mt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:Mt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:Mt({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"})})]})},wy=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=re(),i=Math.min(yt,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:yt}).map((a,s)=>u("li",{children:u(pi,{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})]})},xy=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onSearchResults:i,onJobClick:a,onPaginate:s,mode:c,afterResults:d,prioritySegment:f,i18n:l,distanceUnit:h})=>{const{t:p}=re(),v=T(),[g,b]=D();return u(V,{children:[u("p",{class:"sr-only",role:"status",children:g===void 0?"":g===0?p("no_jobs_found"):p("jobs_found",{count:g})}),Array.from({length:e.page}).map((_,m)=>{const w=m===e.page-1;return u(an,{Fallback:et,children:u($y,{state:e,rpcClient:t,page:m+1,isFirst:m===0,isLast:w,fetchNextPage:()=>{v.current=e.page+1,s(e.page+1)},focusPage:v,jobCardConfig:n,initialData:r,onResultsUpdate:y=>{b(y.totalCount),o==null||o(y)},onJobClick:a,onSearchResults:i,mode:c,afterResults:d,prioritySegment:f,i18n:l,distanceUnit:h},m)},m)})]})},za=({page:e})=>{const{t}=re();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"})]})},$y=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,focusPage:a,jobCardConfig:s,initialData:c,onResultsUpdate:d,onSearchResults:f,onJobClick:l,afterResults:h,prioritySegment:p,i18n:v,distanceUnit:g})=>{const{t:b}=re(),_=n===1?c:void 0,{data:m,error:w,queryState:y,swr:x}=hn(Ht(Zn({state:e,baseKey:n.toString()}),()=>ys({rpcClient:t,state:e,page:n,t:b,prioritySegment:p,locale:v?v.locale:void 0,fallbackLocale:v?v.fallbackLocale:void 0}),{...Gn,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 $=T(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(rn,{chars:8})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:h})]}):u(za,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:yt}).map((C,S)=>u("li",{children:u(pi,{seed:S,animationDelay:(S-yt)*.1,config:s})},S))})]});case"error":return u(et,{error:new Error(b("jobs_loading_error"),{cause:w}),resetError:()=>x.mutate()});case"revalidating":case"loaded":{if(Ka(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*yt,E=Math.max(m.pagination.total-S,0),A=L=>{l(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(za,{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(fi,{job:L,onJobClick:A,config:s,distanceUnit:g})},L.id))}),C&&o&&u(wy,{state:y,fetchNextPage:i,config:s,remainingItems:E})]})}default:Pt(y)}},Sy=zo(()=>Promise.resolve().then(()=>require("./map-BRREfYtI.cjs")).then(e=>e.Map)),Cy=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:c,distanceUnit:d})=>{var _,m;const{t:f}=re(),[l,h]=D(new AbortController),p=tc("(max-width: 767px)"),v=j(w=>{r(w),l.abort(),h(new AbortController)},[r,l]),g=hn(Ht(Zn({state:e,baseKey:"map",mode:e.mode}),()=>Xl({rpcClient:t,state:e,t:f,signal:l.signal,prioritySegment:s,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Gn));if(g.queryState==="error")return u(et,{error:new Error(f("jobs_loading_error"),{cause:g.error}),resetError:()=>g.swr.mutate()});const b=g.queryState==="loaded"||g.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?g.data.results.length!==0&&f("map_jobs_showing",{count:g.data.results.length}):u("div",{class:"animate-skeleton",children:u(rn,{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(Rt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(Sy,{config:n,mapData:g,autoFit:((_=e.geo)==null?void 0:_.type)!=="bounds",onBoundsChange:v})}):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=g.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?g.data.results.map(w=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:g.queryState==="revalidating"?.33:1},children:u(fi,{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(pi,{seed:y,animationDelay:(y-6)*.1,config:a})},y))]})]})]})},Ey=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(cv,{value:t,onValueChange:e.onViewChange}):null,u(lv,{state:e.state,onValueChange:e.onResultOrderChange})]});return t==="list"?u(xy,{afterResults:n,...e}):u(Cy,{...e,afterResults:n})};function Oy({rpcClient:e,filters:t,config:n,distanceUnit:r,onJobClick:o,onSearch:i}){const a=ye(wn);if(!a)throw new Error("Saved jobs context is required");const{scope:s}=a,c=ui(s),{t:d,locale:f}=re(),[l,h]=D(null),[p,v]=D(),[g,b]=D(0),_=T(null),m=T(),w=T(!1);ce(()=>{(l==null?void 0:l.filters)===t&&l.ids.some(S=>c==null?void 0:c.includes(S))?w.current=!0:(c==null?void 0:c.length)===0&&w.current&&i()},[c,l,t,i]),I(()=>{if(!c)return;const S=new AbortController,E=li(s,()=>S.abort());return v(void 0),Ql({rpcClient:e,ids:c,filters:t,t:d,locale:f,signal:S.signal}).then(A=>{S.signal.aborted||h({jobs:A,ids:c,filters:t})}).catch(A=>{S.signal.aborted||v(A)}),()=>{E(),S.abort()}},[e,s,c,t,d,f,g]);const y=(l==null?void 0:l.filters)===t?l.jobs.filter(S=>c==null?void 0:c.includes(S.id)):void 0,x=w.current&&(c==null?void 0:c.length)===0||c===void 0||l===null||l.filters!==t||c.some(S=>!l.ids.includes(S)),$=!p&&!x?c.filter(S=>!(y!=null&&y.some(E=>E.id===S))):[],C=[...(y==null?void 0:y.map(S=>S.id))??[],...$];return ce(()=>{var E,A,L;if(m.current===void 0)return;(L=(m.current==="heading"?null:(E=_.current)==null?void 0:E.querySelector(`[data-save-job="${m.current}"]`))??((A=_.current)==null?void 0:A.querySelector("h2")))==null||L.focus(),m.current=void 0},[c,l]),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 A=C.indexOf(Number(E.dataset.saveJob));m.current=C[A+1]??C[A-1]??"heading"},children:[u("h2",{tabIndex:-1,class:"text-style-job-heading text-copy-neutral",children:!x&&c.length===0?d("no_saved_jobs"):d("saved_jobs_title")}),u("p",{role:"status",class:"sr-only",children:x||p?"":d("jobs_found",{count:c.length})}),p?u(et,{error:new Error(d("jobs_loading_error"),{cause:p}),resetError:()=>b(g+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(fi,{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:ml(),children:d("saved_job_unavailable")}),u(gl,{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 or=(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:Pt(r.select)}return n},{}),Tt=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)),Yr=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,ky=(e,t,n)=>{var o;const r=Tt(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},Ty=({rpcClient:e,properties:t,analytics:n,initialData:r,onStateChange:o,params:i})=>{var Ee,de,pe,Re,Ue,ct,xt,$t,De,vt,We,W,Y,Z,X,ue,ie;const{t:a}=re(),s=T(null),c=K(()=>or(t,"defaultValue"),[t]),[d,f]=D(!0),[l,h]=D(()=>typeof i.initialState=="function"?i.initialState(i):i.initialState),p=i.applyFiltersOn==="submit",[v,g]=D(l),b=p?v:l,_=p?"form":"div",[m,w]=D(0),[y,x]=D((Ee=i.savedJobs)!=null&&Ee.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)},[]);ce(()=>{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=T(null),E=T(),A=j(()=>{E.current="toggle",C()},[C]);ce(()=>{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:z}=Py({appRef:s,analytics:n,state:l,hasInteracted:!d,totalCount:L,defaultFilters:c,resultsEnabled:y===!1}),G=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]),q=j(O=>{if(p){g(O);return}h(R=>{const U=O(R);return U===R?R:(C(),f(!1),o==null||o(U),U)})},[p,C,o]),B=j(O=>{q(R=>{var U;return R.query===O?R:{...R,query:O,geo:Yr(R.geo),page:1,mode:(U=i.naturalLanguageSearch)!=null&&U.enabled?"vector":"query"}})},[q,(Re=i.naturalLanguageSearch)==null?void 0:Re.enabled]),le=(O=v.query)=>{var U;const R={...v,view:l.view,resultOrder:l.resultOrder,query:O,geo:O===v.query?v.geo:Yr(v.geo),page:1,mode:(U=i.naturalLanguageSearch)!=null&&U.enabled?"vector":"query"};C(),f(!1),g(R),h(R),o==null||o(R)},at=j(O=>{g(R=>({...R,geo:O})),f(!1),h(R=>{const U={...R,geo:O,page:1};return o==null||o(U),U})},[o]),Pe=j(()=>{C(),p&&w(O=>O+1),f(!1),h(O=>{const R={...O,filters:or(t,"defaultValue"),query:"",geo:void 0,page:1,resultOrder:void 0};return g(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]),st=K(()=>(e.environment,new Map),[e.environment]);return u(od,{value:{provider:()=>st},children:u("div",{ref:s,tabIndex:(Ue=i.savedJobs)!=null&&Ue.enabled?-1:void 0,class:Ft("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(ct=i.theme.accessibility)==null?void 0:ct.reducedMotion},vo(i.theme)),children:[u(an,{Fallback:et,children:u(_,{class:"flex flex-col gap-2",onSubmit:p?O=>{O.preventDefault();const R=O.currentTarget.querySelector('input[name="keyword"]');le(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")}),(xt=i.naturalLanguageSearch)!=null&&xt.enabled?u(sv,{value:b.query,onValueChange:B,options:i.naturalLanguageSearch,onSearch:p?le:($t=i.savedJobs)!=null&&$t.enabled?C:void 0},m):i.enableKeywordSearch?u(ov,{value:b.query,onValueChange:B,onSearch:p?le:(De=i.savedJobs)!=null&&De.enabled?C:void 0},m):null]}),(vt=i.geolocation)!=null&&vt.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(nv,{rpcClient:e,value:b.geo,distanceUnit:i.geolocation.distanceUnit,onValueChange:O=>{q(R=>({...R,geo:O,page:1})),p||N(1)}})]}):null]})}),u(kh,{state:b,staged:p,onFilterValueChange:(O,R)=>{q(U=>({...U,filters:{...U.filters,[O]:R},geo:Yr(U.geo),page:1})),p||N(1)},onResetFilters:Pe,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(an,{Fallback:et,children:u(V,{children:[(We=i.savedJobs)!=null&&We.enabled&&i.savedJobs.showEntry!==!1&&!y?u(fy,{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(Oy,{rpcClient:e,filters:l.filters,config:i.jobCard,distanceUnit:(Z=i.geolocation)==null?void 0:Z.distanceUnit,onJobClick:M,onSearch:A}):u(Ey,{state:l,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:G,onSearchResults:z,mode:(X=i.naturalLanguageSearch)!=null&&X.enabled?"vector":"query",onGeoChange:at,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 qa,Ba=new Set;const Ay=()=>(qa!==window.location.pathname&&(qa=window.location.pathname,Ba=new Set),Ba),Py=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i,resultsEnabled:a})=>{const s=typeof window>"u"?void 0:Ay(),c=T(),d=T(),f=T(),l=K(()=>{var $,C;const _=Tt(n.filters),m=Tt(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:ec(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:ve.generateUUID()},..._?{keepalive:!0}:{}}),f.current=void 0,c.current=m.signature,(y=m.urlSearches)==null||y.add(m.signature)}},[t]);ce(()=>{const _=f.current;_&&(!a||_.signature!==l.signature)&&(a&&_.nonKeywordSignature===l.nonKeywordSignature?(clearTimeout(_.timer),f.current=void 0):h()),d.current!==l.signature&&(d.current=l.signature,c.current=void 0)},[l.signature,l.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()&&!l.filterKeys.length&&l.geo==="none"&&!n.resultOrder||c.current===l.signature||((m=f.current)==null?void 0:m.signature)===l.signature||(f.current={signature:l.signature,nonKeywordSignature:l.nonKeywordSignature,urlSearches:i?void 0:s,properties:{result_count:_,has_keyword:n.query.trim()!=="",mode:n.mode,filter_keys:l.filterKeys,geo:l.geo,page:n.page},timer:window.setTimeout(()=>h(),1500)}))},[a,i,n.query,n.mode,n.page,n.resultOrder,l,h,s]),v=j((_=1)=>({query:n.query,mode:n.mode,filters:Tt(n.filters),default_filters:Tt(r),total_count:o,page_size:yt,page:_}),[n.query,n.mode,n.filters,r,o]);return id(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:v()})}}),I(()=>{const _=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Tt(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:v()}))},5e3);return()=>{clearTimeout(_)}},[t,i,v,o,n.query,n.filters]),{onJobClick:(_,m)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:_.id,...v(m)}}),h(!0)},analyticsPaginate:_=>{t.log({event:"SEARCH_PAGINATE",properties:v(_)})},onSearchResults:p}};exports.A=T;exports.ErrorBoundary=an;exports.IconSpritesheet=pu;exports.J=jt;exports.JOB_SEARCH_WIDGET_ID=ql;exports.JobSearch=Ty;exports.K=Do;exports.SavedJobsContext=wn;exports.TranslationProvider=au;exports.UnstyledErrorView=du;exports._=k;exports.alertsPayload=ky;exports.createTFunction=su;exports.d=D;exports.defaultTerms=cu;exports.generateColorThemeCss=hd;exports.getDefaultExportFromCjs=Bo;exports.getGeolocationFromSearchParams=ol;exports.getJobSearchResults=ys;exports.getModeFromSearchParams=nl;exports.getSavedJobIds=qt;exports.getSavedJobsUrl=dy;exports.getStatefulPropertiesFromSearchParams=tl;exports.getViewFromSearchParams=rl;exports.getWidgetStateFromSearchParams=Pg;exports.invariant=Ka;exports.isJobSaved=ly;exports.k=V;exports.setWidgetStateToSearchParams=Rg;exports.subscribeSavedJobs=li;exports.toggleSavedJob=hl;exports.u=u;exports.useDebouncedValue=il;exports.useTranslation=re;exports.y=I;
|