@inploi/plugin-job-search 3.1.0 → 3.1.1

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.
@@ -1,4 +1,4 @@
1
- "use strict";var mc=Object.defineProperty;var _c=(e,t,n)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wo=(e,t,n)=>(_c(e,typeof t!="symbol"?t+"":t,n),n);const $t=require("@inploi/sdk");var _t=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function fa(e,t){if(!e)throw new Error(t)}function yc(e,t){return e in t}var Uo={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},bc=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 Uo?Uo[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")},wc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),xc=({from:e=new Date,to:t,formatter:n=wc,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")},en;exports.l=void 0;var pa,st,zo,ha,ga,va,io,Dr,Nr,ma,Bt={},_a=[],$c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;function Le(e,t){for(var n in t)e[n]=t[n];return e}function ao(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(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?en.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 Ut(e,a,r,o,null)}function Ut(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??++pa,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function ya(){return{current:null}}function M(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Ct(e,t){if(t==null)return e.__?Ct(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"?Ct(e):null}function ba(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ba(e)}}function Mr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Rn.__r++||zo!==exports.l.debounceRendering)&&((zo=exports.l.debounceRendering)||ha)(Rn)}function Rn(){for(var e,t,n,r,o,i,a,s=1;st.length;)st.length>s&&st.sort(ga),e=st.shift(),s=st.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Le({},r)).__v=r.__v+1,exports.l.vnode&&exports.l.vnode(n),so(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ct(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,$a(i,n,a),n.__e!=o&&ba(n)));Rn.__r=0}function wa(e,t,n,r,o,i,a,s,c,d,p){var l,h,f,m,v,_,g=r&&r.__k||_a,b=t.length;for(c=Cc(n,t,g,c,b),l=0;l<b;l++)(f=n.__k[l])!=null&&(h=f.__i===-1?Bt:g[f.__i]||Bt,f.__i=l,_=so(e,f,h,o,i,a,s,c,d,p),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&co(h.ref,null,f),p.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||h.__k===f.__k?c=xa(f,c,e):typeof f.type=="function"&&_!==void 0?c=_:m&&(c=m.nextSibling),f.__u&=-7);return n.__e=v,c}function Cc(e,t,n,r,o){var i,a,s,c,d,p=n.length,l=p,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Ut(null,a,null,null,null):Un(a)?Ut(M,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ut(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ec(a,n,c,l))!==-1&&(l--,(s=n[d])&&(s.__u|=2)),s==null||s.__v===null?(d==-1&&(o>p?h--:o<p&&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<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Ct(s)),Ca(s,s));return r}function xa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xa(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ct(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ie(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(n){Ie(n,t)}):t.push(e)),t}function Ec(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(c!=null&&!(2&c.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function Bo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$c.test(t)?n:n+"px"}function dn(e,t,n,r,o){var i;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||Bo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Bo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(va,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=io,e.addEventListener(t,i?Nr:Dr,i)):e.removeEventListener(t,i?Nr:Dr,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 qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=io++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function so(e,t,n,r,o,i,a,s,c,d){var p,l,h,f,m,v,_,g,b,w,y,x,$,S,C,O,P,L,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(p=exports.l.__b)&&p(t);e:if(typeof D=="function")try{if(g=t.props,b="prototype"in D&&D.prototype.render,w=(p=D.contextType)&&r[p.__c],y=p?w?w.props.value:p.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(b?t.__c=l=new D(g,y):(t.__c=l=new fe(g,y),l.constructor=D,l.render=Oc),w&&w.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),b&&l.__s==null&&(l.__s=l.state),b&&D.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Le({},l.__s)),Le(l.__s,D.getDerivedStateFromProps(g,l.__s))),f=l.props,m=l.state,l.__v=t,h)b&&D.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),b&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(b&&D.getDerivedStateFromProps==null&&g!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,y),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,y)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(j){j&&(j.__=t)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,y),b&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,m,v)})}if(l.context=y,l.props=g,l.__P=e,l.__e=!1,$=exports.l.__r,S=0,b){for(l.state=l.__s,l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++S<25);l.state=l.__s,l.getChildContext!=null&&(r=Le(Le({},r),l.getChildContext())),b&&!h&&l.getSnapshotBeforeUpdate!=null&&(v=l.getSnapshotBeforeUpdate(f,m)),P=(O=p!=null&&p.type===M&&p.key==null)?p.props.children:p,O&&(p.props.children=null),s=wa(e,Un(P)?P:[P],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(j){if(t.__v=null,c||i!=null)if(j.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(L=i.length;L--;)ao(i[L]);else t.__e=n.__e,t.__k=n.__k;exports.l.__e(j,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Sc(n.__e,t,n,r,o,i,a,c,d);return(p=exports.l.diffed)&&p(t),128&t.__u?void 0:s}function $a(e,t,n){for(var r=0;r<n.length;r++)co(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 Sc(e,t,n,r,o,i,a,s,c){var d,p,l,h,f,m,v,_=n.props,g=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="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((f=i[d])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(o,b,g.is&&g),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(b===null)_===g||s&&e.data===g||(e.data=g);else{if(i=i&&en.call(e.childNodes),_=n.props||Bt,!s&&i!=null)for(_={},d=0;d<e.attributes.length;d++)_[(f=e.attributes[d]).name]=f.value;for(d in _)if(f=_[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=f;else if(!(d in g)){if(d=="value"&&"defaultValue"in g||d=="checked"&&"defaultChecked"in g)continue;dn(e,d,null,f,o)}}for(d in g)f=g[d],d=="children"?h=f:d=="dangerouslySetInnerHTML"?p=f:d=="value"?m=f:d=="checked"?v=f:s&&typeof f!="function"||_[d]===f||dn(e,d,f,_[d],o);if(p)s||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),wa(t.type==="template"?e.content:e,Un(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Ct(n,0),s,c),i!=null)for(d=i.length;d--;)ao(i[d]);s||(d="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[d]||b=="progress"&&!m||b=="option"&&m!==_[d])&&dn(e,d,m,_[d],o),d="checked",v!==void 0&&v!==e[d]&&dn(e,d,v,_[d],o))}return e}function co(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 Ca(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||co(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]&&Ca(r[o],t,n||typeof e.type!="function");n||ao(e.__e),e.__c=e.__=e.__e=void 0}function Oc(e,t,n){return this.constructor(e,n)}function Et(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=[],so(t,e=(!r&&n||t).__k=E(M,null,[e]),o||Bt,Bt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?en.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),$a(i,e,a)}function lo(e,t){Et(e,t,lo)}function Ac(e,t,n){var r,o,i,a,s=Le({},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!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?en.call(arguments,2):n),Ut(e.type,s,r||e.key,o||e.ref,null)}function lt(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,Mr(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"+ma++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}en=_a.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}},pa=0,fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Le({},this.state),typeof e=="function"&&(e=e(Le({},n),this.props)),e&&Le(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mr(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mr(this))},fe.prototype.render=M,st=[],ha=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ga=function(e,t){return e.__v.__b-t.__v.__b},Rn.__r=0,va=/(PointerCapture)$|Capture$/i,io=0,Dr=qo(!1),Nr=qo(!0),ma=0;var Ne;function Ea(e){return{lang:(e==null?void 0:e.lang)??(Ne==null?void 0:Ne.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Ne==null?void 0:Ne.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Ne==null?void 0:Ne.abortPipeEarly)}}var sr;function Tc(e){return sr==null?void 0:sr.get(e)}var cr;function kc(e){return cr==null?void 0:cr.get(e)}var lr;function Pc(e,t){var n;return(n=lr==null?void 0:lr.get(e))==null?void 0:n.get(t)}function Sa(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 we(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)??Sa(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",p=(o==null?void 0:o.message)??e.message??Pc(e.reference,c.lang)??(d?kc(c.lang):null)??r.message??Tc(c.lang);p!==void 0&&(c.message=typeof p=="function"?p(c):p),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function ue(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Ea())}}}function Rc(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Dc(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function me(e){return{kind:"transformation",type:"transform",reference:me,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Oa(e){return{kind:"validation",type:"url",reference:Oa,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)&&we(this,"URL",t,n),t}}}function Nc(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function uo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Lr(){return{kind:"schema",type:"any",reference:Lr,expects:"any",async:!1,get"~standard"(){return ue(this)},"~run"(e){return e.typed=!0,e}}}function tn(e,t){return{kind:"schema",type:"array",reference:tn,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ue(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 p of c.issues)p.path?p.path.unshift(d):p.path=[d],(i=n.issues)==null||i.push(p);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else we(this,"type",n,r);return n}}}function Dn(e){return{kind:"schema",type:"boolean",reference:Dn,expects:"boolean",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:we(this,"type",t,n),t}}}function Ee(e,t){return{kind:"schema",type:"literal",reference:Ee,expects:Sa(e),async:!1,literal:e,message:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:we(this,"type",n,r),n}}}function ie(e,t){return{kind:"schema",type:"nullable",reference:ie,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function _e(e){return{kind:"schema",type:"number",reference:_e,expects:"number",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:we(this,"type",t,n),t}}}function ce(e,t){return{kind:"schema",type:"object",reference:ce,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ue(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]:uo(s),d=s["~run"]({value:c},r);if(d.issues){const p={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(p):l.path=[p],(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]=Nc(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(we(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 we(this,"type",n,r);return n}}}function ut(e,t){return{kind:"schema",type:"optional",reference:ut,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function fo(e,t,n){return{kind:"schema",type:"record",reference:fo,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ue(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(Rc(i,c)){const d=i[c],p=this.key["~run"]({value:c},o);if(p.issues){const h={type:"object",origin:"key",input:i,key:c,value:d};for(const f of p.issues)f.path=[h],(a=r.issues)==null||a.push(f);if(r.issues||(r.issues=p.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 f of l.issues)f.path?f.path.unshift(h):f.path=[h],(s=r.issues)==null||s.push(f);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!p.typed||!l.typed)&&(r.typed=!1),p.typed&&(r.value[p.value]=l.value)}}else we(this,"type",r,o);return r}}}function K(e){return{kind:"schema",type:"string",reference:K,expects:"string",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:we(this,"type",t,n),t}}}function Ko(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Ir(e,t){return{kind:"schema",type:"union",reference:Ir,expects:Dc(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ue(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];we(this,"type",n,r,{issues:Ko(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];we(this,"type",n,r,{issues:Ko(a)})}return n}}}function Aa(){return{kind:"schema",type:"unknown",reference:Aa,expects:"unknown",async:!1,get"~standard"(){return ue(this)},"~run"(e){return e.typed=!0,e}}}function ye(...e){return{...e[0],pipe:e,get"~standard"(){return ue(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 po(e,t,n){const r=e["~run"]({value:t},Ea(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Mc="inploi-job-search",ct=10,Go=ye(Aa(),me(String),K()),Lc=fo(K(),tn(ce({label:Go,value:Go,jobs:_e()}))),Ic=ye(K(),Oa()),Fc=ce({total:_e(),current_page:_e(),per_page:_e(),last_page:_e()}),fn=ut(ie(K()),null),jc=ce({id:_e(),company_name:K(),company_logo:fn,employment_type:K(),location_type:Ir([Ee("LOCATION"),Ee("REMOTE"),Ee("HYBRID")]),pay_type:ie(Ir([Ee("ANNUALLY"),Ee("HOURLY"),Ee("MONTHLY"),Ee("WEEKLY"),Ee("DAILY")])),pay_currency:K(),pay_mask:Dn(),pay_display:Dn(),pay:ie(K()),pay_min:ie(K()),pay_max:ie(K()),description:K(),title:K(),contract_type:ie(K()),created_at:ie(K()),custom_data:ie(fo(Lr(),Lr())),href:K(),industry:ie(K()),category:ie(K()),skills:fn,town:fn,city:ie(K()),country:ie(K()),vector_distance:fn,coordinates:ut(ie(ce({lat:_e(),lng:_e()})))}),Ta=e=>ye(jc,me(t=>{const n=po(Ic,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},employmentType:t.employment_type,locationType:t.location_type,pay:bc({salary:t,config:{locales:void 0},t:e})??null,description:t.description,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?xc({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:t,match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}})),Vc=$t.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Lc,searchParams:$t.typed()}}),Hc=e=>ye(ce({data:tn(Ta(e)),pagination:Fc}),me(t=>({pagination:t.pagination,results:t.data}))),Wc=e=>!e||Array.isArray(e)&&e.length===0?null:e,zn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=Wc(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},Yo=async({rpcClient:e,state:t,signal:n})=>await e.request(Vc,{searchParams:{filters:zn(t),query:t.query},signal:n}),ka=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i})=>{const a=$t.endpoint({method:"GET",pathname:"/search/results",schema:{response:Hc(o),searchParams:$t.typed()}});return await e.request(a,{searchParams:{filters:zn(n),query:n.query,page:r,per_page:ct,priority_segment:i},signal:t})},Uc=e=>ye(ce({data:tn(Ta(e)),pagination:ce({has_more:Dn()})}),me(t=>({results:t.data,pagination:t.pagination}))),zc=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o})=>{const i=$t.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Uc(r),searchParams:$t.typed()}});return await e.request(i,{searchParams:{filters:zn(n),query:n.query,mode:n.mode,priority_segment:o},signal:t})},nn=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")},Nn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var Bc=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:--Bc,__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 Pa(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=Pa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function St(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pa(e))&&(r&&(r+=" "),r+=t);return r}var qc=["other","few","many","two","one","zero"],Zo=({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 p;return((p=a==null?void 0:a[d])==null?void 0:p.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=qc.find(p=>p in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,p)=>{var l;return((l=a==null?void 0:a[p])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Fe,q,ur,Jo,Ot=0,Ra=[],J=exports.l,Xo=J.__b,Qo=J.__r,ei=J.diffed,ti=J.__c,ni=J.unmount,ri=J.__;function ft(e,t){J.__h&&J.__h(q,e,Ot||t),Ot=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function T(e){return Ot=1,rn(Da,e)}function rn(e,t,n){var r=ft(Fe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Da(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=q,!q.__f)){var o=function(s,c,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(h){return!!h.__c});if(p.every(function(h){return!h.__N}))return!i||i.call(this,s,c,d);var l=r.__c.props!==s;return p.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};q.__f=!0;var i=q.shouldComponentUpdate,a=q.componentWillUpdate;q.componentWillUpdate=function(s,c,d){if(this.__e){var p=i;i=void 0,o(s,c,d),i=p}a&&a.call(this,s,c,d)},q.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=ft(Fe++,3);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function Te(e,t){var n=ft(Fe++,4);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__h.push(n))}function k(e){return Ot=5,X(function(){return{current:e}},[])}function ho(e,t,n){Ot=6,Te(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 X(e,t){var n=ft(Fe++,7);return go(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function H(e,t){return Ot=8,X(function(){return e},t)}function tt(e){var t=q.context[e.__c],n=ft(Fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__}function Bn(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Kc(e){var t=ft(Fe++,10),n=T();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function qn(){var e=ft(Fe++,11);if(!e.__){for(var t=q.__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 Gc(){for(var e;e=Ra.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Fr),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){q=null,Xo&&Xo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ri&&ri(e,t)},J.__r=function(e){Qo&&Qo(e),Fe=0;var t=(q=e.__c).__H;t&&(ur===q?(t.__h=[],q.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach($n),t.__h.forEach(Fr),t.__h=[],Fe=0)),ur=q},J.diffed=function(e){ei&&ei(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ra.push(t)!==1&&Jo===J.requestAnimationFrame||((Jo=J.requestAnimationFrame)||Yc)(Gc)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ur=q=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Fr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),ti&&ti(e,t)},J.unmount=function(e){ni&&ni(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var oi=typeof requestAnimationFrame=="function";function Yc(e){var t,n=function(){clearTimeout(r),oi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oi&&(t=requestAnimationFrame(n))}function $n(e){var t=q,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),q=t}function Fr(e){var t=q;e.__c=e.__(),q=t}function go(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Da(e,t){return typeof t=="function"?t(e):t}var ii=lt(null),Zc=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=X(()=>Zo({locale:r,terms:e,overrides:t}),[t,r]);return u(ii.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=tt(ii);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Zo({terms:e,overrides:t,locale:n})});const{TranslationProvider:Jc,useTranslation:ne,createTFunction:Xc}=Zc({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",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.",feedback:"How was your search experience?",list:"List",map:"Map",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"});function Na(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=Na(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Na(e))&&(r&&(r+=" "),r+=t);return r}const ai=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Qc=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,c;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](dr(i)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(dr(i)):dr(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[p]=d;return!["class","className"].includes(p)}));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 f=i==null?void 0:i[h],m=c==null?void 0:c[h],v=ai(f)||ai(m);return s[h][v]}),p={...c,...i&&Object.entries(i).reduce((h,f)=>{let[m,v]=f;return typeof v>"u"?h:{...h,[m]:v}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:m,className:v,..._}=f;return Object.entries(_).every(g=>{let[b,w]=g;const y=p[b];return Array.isArray(w)?w.includes(y):y===w})?[...h,m,v]: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}},{compose:Gm,cva:pe,cx:Ym}=Qc(),je=pe({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",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"}}),el=({error:e,resetError:t})=>{const{t:n}=ne();return 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:n("retry")})]})},Ze=({error:e,resetError:t,class:n,...r})=>{const{t:o}=ne();return u("div",{class:St("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:je({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class qt extends fe{constructor(){super(...arguments);Wo(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 tl={briefcase:u(M,{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(M,{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(M,{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(M,{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(M,{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(M,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(M,{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(M,{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(M,{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(M,{children:u(M,{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(M,{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(M,{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(M,{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(M,{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(M,{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"})]})},nl=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(tl).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)})})}),Q=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function Ma(e,t){for(var n in t)e[n]=t[n];return e}function jr(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 vo(e,t){var n=t(),r=T({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Te(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),R(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function mo(e){e()}function _o(e){return e}function yo(){return[!1,mo]}var bo=Te;function Mn(e,t){this.props=e,this.context=t}function La(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:jr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,E(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Mn.prototype=new fe).isPureReactComponent=!0,Mn.prototype.shouldComponentUpdate=function(e,t){return jr(this.props,e)||jr(this.state,t)};var si=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),si&&si(e)};var rl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Y(e){function t(n){var r=Ma({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=rl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ci=function(e,t){return e==null?null:Ie(Ie(e).map(t))},Oe={map:ci,forEach:ci,count:function(e){return e?Ie(e).length:0},only:function(e){var t=Ie(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ie},ol=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)}ol(e,t,n,r)};var li=exports.l.unmount;function Ia(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=Ma({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ia(r,t,n)})),e}function Fa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Fa(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 yt(){this.__u=0,this.o=null,this.__b=null}function ja(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return E(n,i)}return o.displayName="Lazy",o.__f=!0,o}function mt(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),li&&li(e)},(yt.prototype=new fe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ja(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Fa(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},yt.prototype.componentWillUnmount=function(){this.o=[]},yt.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]=Ia(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&E(M,null,e.fallback);return o&&(o.__u&=-33),[E(M,null,t.__a?null:e.children),o]};var ui=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 il(e){return this.getChildContext=function(){return e.context},e.children}function al(e){var t=this,n=e.h;t.componentWillUnmount=function(){Et(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Et(E(il,{context:t.context},e.__v),t.v)}function Va(e,t){var n=E(al,{__v:e,h:t});return n.containerInfo=t,n}(mt.prototype=new fe).__a=function(e){var t=this,n=ja(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ui(t,e,r)):o()};n?n(i):i()}},mt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ie(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},mt.prototype.componentDidUpdate=mt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ui(e,n,t)})};var Ha=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,sl=/^(?: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]/,cl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ll=/[A-Z0-9]/g,ul=typeof document<"u",dl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Wa(e,t,n){return t.__k==null&&(t.textContent=""),Et(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ua(e,t,n){return lo(e,t),typeof n=="function"&&n(),e?e.__c:null}fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var di=exports.l.event;function fl(){}function pl(){return this.cancelBubble}function hl(){return this.defaultPrevented}exports.l.event=function(e){return di&&(e=di(e)),e.persist=fl,e.isPropagationStopped=pl,e.isDefaultPrevented=hl,e.nativeEvent=e};var xo,gl={enumerable:!1,configurable:!0,get:function(){return this.class}},fi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||ul&&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"||dl(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":cl.test(a)&&(a=c):c=a="oninput":i&&sl.test(a)?a=a.replace(ll,"-$&").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=Ie(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ie(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",gl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ha,fi&&fi(e)};var pi=exports.l.__r;exports.l.__r=function(e){pi&&pi(e),xo=e.__c};var hi=exports.l.diffed;exports.l.diffed=function(e){hi&&hi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),xo=null};var za={ReactCurrentDispatcher:{current:{readContext:function(e){return xo.__n[e.__c].props.value},useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:X,useReducer:rn,useRef:k,useState:T,useSyncExternalStore:vo,useTransition:yo}}},vl="18.3.1";function Ba(e){return E.bind(null,e)}function Ve(e){return!!e&&e.$$typeof===Ha}function qa(e){return Ve(e)&&e.type===M}function Ka(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function kt(e){return Ve(e)?Ac.apply(null,arguments):e}function Ga(e){return!!e.__k&&(Et(null,e),!0)}function Ya(e){return e&&(e.base||e.nodeType===1&&e)||null}var Za=function(e,t){return e(t)},on=function(e,t){return e(t)},Ja=M,Xa=Ve,an={useState:T,useId:qn,useReducer:rn,useEffect:R,useLayoutEffect:Te,useInsertionEffect:bo,useTransition:yo,useDeferredValue:_o,useSyncExternalStore:vo,startTransition:mo,useRef:k,useImperativeHandle:ho,useMemo:X,useCallback:H,useContext:tt,useDebugValue:Bn,version:"18.3.1",Children:Oe,render:Wa,hydrate:Ua,unmountComponentAtNode:Ga,createPortal:Va,createElement:E,createContext:lt,createFactory:Ba,cloneElement:kt,createRef:ya,Fragment:M,isValidElement:Ve,isElement:Xa,isFragment:qa,isMemo:Ka,findDOMNode:Ya,Component:fe,PureComponent:Mn,memo:La,forwardRef:Y,flushSync:on,unstable_batchedUpdates:Za,StrictMode:Ja,Suspense:yt,SuspenseList:mt,lazy:wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za};const Qa=Object.freeze(Object.defineProperty({__proto__:null,Children:Oe,Component:fe,Fragment:M,PureComponent:Mn,StrictMode:Ja,Suspense:yt,SuspenseList:mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za,cloneElement:kt,createContext:lt,createElement:E,createFactory:Ba,createPortal:Va,createRef:ya,default:an,findDOMNode:Ya,flushSync:on,forwardRef:Y,hydrate:Ua,isElement:Xa,isFragment:qa,isMemo:Ka,isValidElement:Ve,lazy:wo,memo:La,render:Wa,startTransition:mo,unmountComponentAtNode:Ga,unstable_batchedUpdates:Za,useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useErrorBoundary:Kc,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:X,useReducer:rn,useRef:k,useState:T,useSyncExternalStore:vo,useTransition:yo,version:vl},Symbol.toStringTag,{value:"Module"}));var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ml(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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 Vr={exports:{}},pr={};const es=ml(Qa);/**
1
+ "use strict";var mc=Object.defineProperty;var _c=(e,t,n)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wo=(e,t,n)=>(_c(e,typeof t!="symbol"?t+"":t,n),n);const lt=require("@inploi/sdk");var yt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function fa(e,t){if(!e)throw new Error(t)}function yc(e,t){return e in t}var Uo={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},bc=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 Uo?Uo[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")},wc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),xc=({from:e=new Date,to:t,formatter:n=wc,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")},en;exports.l=void 0;var pa,st,zo,ha,ga,va,io,Dr,Nr,ma,Bt={},_a=[],$c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;function Le(e,t){for(var n in t)e[n]=t[n];return e}function ao(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(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?en.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 Ut(e,a,r,o,null)}function Ut(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??++pa,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function ya(){return{current:null}}function M(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Ct(e,t){if(t==null)return e.__?Ct(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"?Ct(e):null}function ba(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ba(e)}}function Mr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Rn.__r++||zo!==exports.l.debounceRendering)&&((zo=exports.l.debounceRendering)||ha)(Rn)}function Rn(){for(var e,t,n,r,o,i,a,s=1;st.length;)st.length>s&&st.sort(ga),e=st.shift(),s=st.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Le({},r)).__v=r.__v+1,exports.l.vnode&&exports.l.vnode(n),so(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ct(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,$a(i,n,a),n.__e!=o&&ba(n)));Rn.__r=0}function wa(e,t,n,r,o,i,a,s,c,d,p){var l,h,f,m,v,_,g=r&&r.__k||_a,b=t.length;for(c=Cc(n,t,g,c,b),l=0;l<b;l++)(f=n.__k[l])!=null&&(h=f.__i===-1?Bt:g[f.__i]||Bt,f.__i=l,_=so(e,f,h,o,i,a,s,c,d,p),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&co(h.ref,null,f),p.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||h.__k===f.__k?c=xa(f,c,e):typeof f.type=="function"&&_!==void 0?c=_:m&&(c=m.nextSibling),f.__u&=-7);return n.__e=v,c}function Cc(e,t,n,r,o){var i,a,s,c,d,p=n.length,l=p,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Ut(null,a,null,null,null):Un(a)?Ut(M,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ut(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ec(a,n,c,l))!==-1&&(l--,(s=n[d])&&(s.__u|=2)),s==null||s.__v===null?(d==-1&&(o>p?h--:o<p&&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<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Ct(s)),Ca(s,s));return r}function xa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xa(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ct(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ie(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(n){Ie(n,t)}):t.push(e)),t}function Ec(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(c!=null&&!(2&c.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function Bo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$c.test(t)?n:n+"px"}function dn(e,t,n,r,o){var i;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||Bo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Bo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(va,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=io,e.addEventListener(t,i?Nr:Dr,i)):e.removeEventListener(t,i?Nr:Dr,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 qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=io++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function so(e,t,n,r,o,i,a,s,c,d){var p,l,h,f,m,v,_,g,b,w,y,x,$,S,C,O,P,L,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(p=exports.l.__b)&&p(t);e:if(typeof D=="function")try{if(g=t.props,b="prototype"in D&&D.prototype.render,w=(p=D.contextType)&&r[p.__c],y=p?w?w.props.value:p.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(b?t.__c=l=new D(g,y):(t.__c=l=new fe(g,y),l.constructor=D,l.render=Oc),w&&w.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),b&&l.__s==null&&(l.__s=l.state),b&&D.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Le({},l.__s)),Le(l.__s,D.getDerivedStateFromProps(g,l.__s))),f=l.props,m=l.state,l.__v=t,h)b&&D.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),b&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(b&&D.getDerivedStateFromProps==null&&g!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,y),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,y)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(j){j&&(j.__=t)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,y),b&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,m,v)})}if(l.context=y,l.props=g,l.__P=e,l.__e=!1,$=exports.l.__r,S=0,b){for(l.state=l.__s,l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++S<25);l.state=l.__s,l.getChildContext!=null&&(r=Le(Le({},r),l.getChildContext())),b&&!h&&l.getSnapshotBeforeUpdate!=null&&(v=l.getSnapshotBeforeUpdate(f,m)),P=(O=p!=null&&p.type===M&&p.key==null)?p.props.children:p,O&&(p.props.children=null),s=wa(e,Un(P)?P:[P],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(j){if(t.__v=null,c||i!=null)if(j.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(L=i.length;L--;)ao(i[L]);else t.__e=n.__e,t.__k=n.__k;exports.l.__e(j,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Sc(n.__e,t,n,r,o,i,a,c,d);return(p=exports.l.diffed)&&p(t),128&t.__u?void 0:s}function $a(e,t,n){for(var r=0;r<n.length;r++)co(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 Sc(e,t,n,r,o,i,a,s,c){var d,p,l,h,f,m,v,_=n.props,g=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="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((f=i[d])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(o,b,g.is&&g),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(b===null)_===g||s&&e.data===g||(e.data=g);else{if(i=i&&en.call(e.childNodes),_=n.props||Bt,!s&&i!=null)for(_={},d=0;d<e.attributes.length;d++)_[(f=e.attributes[d]).name]=f.value;for(d in _)if(f=_[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=f;else if(!(d in g)){if(d=="value"&&"defaultValue"in g||d=="checked"&&"defaultChecked"in g)continue;dn(e,d,null,f,o)}}for(d in g)f=g[d],d=="children"?h=f:d=="dangerouslySetInnerHTML"?p=f:d=="value"?m=f:d=="checked"?v=f:s&&typeof f!="function"||_[d]===f||dn(e,d,f,_[d],o);if(p)s||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),wa(t.type==="template"?e.content:e,Un(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Ct(n,0),s,c),i!=null)for(d=i.length;d--;)ao(i[d]);s||(d="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[d]||b=="progress"&&!m||b=="option"&&m!==_[d])&&dn(e,d,m,_[d],o),d="checked",v!==void 0&&v!==e[d]&&dn(e,d,v,_[d],o))}return e}function co(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 Ca(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||co(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]&&Ca(r[o],t,n||typeof e.type!="function");n||ao(e.__e),e.__c=e.__=e.__e=void 0}function Oc(e,t,n){return this.constructor(e,n)}function Et(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=[],so(t,e=(!r&&n||t).__k=E(M,null,[e]),o||Bt,Bt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?en.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),$a(i,e,a)}function lo(e,t){Et(e,t,lo)}function Ac(e,t,n){var r,o,i,a,s=Le({},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!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?en.call(arguments,2):n),Ut(e.type,s,r||e.key,o||e.ref,null)}function ut(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,Mr(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"+ma++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}en=_a.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}},pa=0,fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Le({},this.state),typeof e=="function"&&(e=e(Le({},n),this.props)),e&&Le(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mr(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mr(this))},fe.prototype.render=M,st=[],ha=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ga=function(e,t){return e.__v.__b-t.__v.__b},Rn.__r=0,va=/(PointerCapture)$|Capture$/i,io=0,Dr=qo(!1),Nr=qo(!0),ma=0;var Ne;function Ea(e){return{lang:(e==null?void 0:e.lang)??(Ne==null?void 0:Ne.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Ne==null?void 0:Ne.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Ne==null?void 0:Ne.abortPipeEarly)}}var sr;function kc(e){return sr==null?void 0:sr.get(e)}var cr;function Tc(e){return cr==null?void 0:cr.get(e)}var lr;function Pc(e,t){var n;return(n=lr==null?void 0:lr.get(e))==null?void 0:n.get(t)}function Sa(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 we(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)??Sa(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",p=(o==null?void 0:o.message)??e.message??Pc(e.reference,c.lang)??(d?Tc(c.lang):null)??r.message??kc(c.lang);p!==void 0&&(c.message=typeof p=="function"?p(c):p),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function ue(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Ea())}}}function Rc(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Dc(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function me(e){return{kind:"transformation",type:"transform",reference:me,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Oa(e){return{kind:"validation",type:"url",reference:Oa,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)&&we(this,"URL",t,n),t}}}function Nc(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function uo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Lr(){return{kind:"schema",type:"any",reference:Lr,expects:"any",async:!1,get"~standard"(){return ue(this)},"~run"(e){return e.typed=!0,e}}}function tn(e,t){return{kind:"schema",type:"array",reference:tn,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ue(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 p of c.issues)p.path?p.path.unshift(d):p.path=[d],(i=n.issues)==null||i.push(p);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else we(this,"type",n,r);return n}}}function Dn(e){return{kind:"schema",type:"boolean",reference:Dn,expects:"boolean",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:we(this,"type",t,n),t}}}function Ee(e,t){return{kind:"schema",type:"literal",reference:Ee,expects:Sa(e),async:!1,literal:e,message:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:we(this,"type",n,r),n}}}function ie(e,t){return{kind:"schema",type:"nullable",reference:ie,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function _e(e){return{kind:"schema",type:"number",reference:_e,expects:"number",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:we(this,"type",t,n),t}}}function ce(e,t){return{kind:"schema",type:"object",reference:ce,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ue(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]:uo(s),d=s["~run"]({value:c},r);if(d.issues){const p={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(p):l.path=[p],(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]=Nc(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(we(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 we(this,"type",n,r);return n}}}function dt(e,t){return{kind:"schema",type:"optional",reference:dt,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ue(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function fo(e,t,n){return{kind:"schema",type:"record",reference:fo,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ue(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(Rc(i,c)){const d=i[c],p=this.key["~run"]({value:c},o);if(p.issues){const h={type:"object",origin:"key",input:i,key:c,value:d};for(const f of p.issues)f.path=[h],(a=r.issues)==null||a.push(f);if(r.issues||(r.issues=p.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 f of l.issues)f.path?f.path.unshift(h):f.path=[h],(s=r.issues)==null||s.push(f);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!p.typed||!l.typed)&&(r.typed=!1),p.typed&&(r.value[p.value]=l.value)}}else we(this,"type",r,o);return r}}}function K(e){return{kind:"schema",type:"string",reference:K,expects:"string",async:!1,message:e,get"~standard"(){return ue(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:we(this,"type",t,n),t}}}function Ko(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Ir(e,t){return{kind:"schema",type:"union",reference:Ir,expects:Dc(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ue(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];we(this,"type",n,r,{issues:Ko(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];we(this,"type",n,r,{issues:Ko(a)})}return n}}}function Aa(){return{kind:"schema",type:"unknown",reference:Aa,expects:"unknown",async:!1,get"~standard"(){return ue(this)},"~run"(e){return e.typed=!0,e}}}function ye(...e){return{...e[0],pipe:e,get"~standard"(){return ue(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 po(e,t,n){const r=e["~run"]({value:t},Ea(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Mc="inploi-job-search",ct=10,Go=ye(Aa(),me(String),K()),Lc=fo(K(),tn(ce({label:Go,value:Go,jobs:_e()}))),Ic=ye(K(),Oa()),Fc=ce({total:_e(),current_page:_e(),per_page:_e(),last_page:_e()}),fn=dt(ie(K()),null),jc=ce({id:_e(),company_name:K(),company_logo:fn,employment_type:K(),location_type:Ir([Ee("LOCATION"),Ee("REMOTE"),Ee("HYBRID")]),pay_type:ie(Ir([Ee("ANNUALLY"),Ee("HOURLY"),Ee("MONTHLY"),Ee("WEEKLY"),Ee("DAILY")])),pay_currency:K(),pay_mask:Dn(),pay_display:Dn(),pay:ie(K()),pay_min:ie(K()),pay_max:ie(K()),title:K(),contract_type:ie(K()),created_at:ie(K()),custom_data:ie(fo(Lr(),Lr())),href:K(),industry:ie(K()),category:ie(K()),skills:fn,town:fn,city:ie(K()),country:ie(K()),vector_distance:fn,coordinates:dt(ie(ce({lat:_e(),lng:_e()})))}),ka=e=>ye(jc,me(t=>{const n=po(Ic,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},employmentType:t.employment_type,locationType:t.location_type,pay:bc({salary:t,config:{locales:void 0},t:e})??null,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?xc({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:t,match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}})),Vc=lt.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Lc,searchParams:lt.typed()}}),Hc=e=>ye(ce({data:tn(ka(e)),pagination:Fc}),me(t=>({pagination:t.pagination,results:t.data}))),Wc=e=>!e||Array.isArray(e)&&e.length===0?null:e,zn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=Wc(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},Yo=async({rpcClient:e,state:t,signal:n})=>await e.request(Vc,{searchParams:{filters:zn(t),query:t.query},signal:n}),Ta=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i})=>{const a=lt.endpoint({method:"GET",pathname:"/search/results",schema:{response:Hc(o),searchParams:lt.typed()}});return await e.request(a,{searchParams:{filters:zn(n),query:n.query,page:r,per_page:ct,priority_segment:i},signal:t})},Uc=e=>ye(ce({data:tn(ka(e)),pagination:ce({has_more:Dn()})}),me(t=>({results:t.data,pagination:t.pagination}))),zc=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o})=>{const i=lt.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Uc(r),searchParams:lt.typed()}});return await e.request(i,{searchParams:{filters:zn(n),query:n.query,mode:n.mode,priority_segment:o},signal:t})},nn=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")},Nn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var Bc=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:--Bc,__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 Pa(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=Pa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function St(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pa(e))&&(r&&(r+=" "),r+=t);return r}var Fe,q,ur,Zo,Ot=0,Ra=[],J=exports.l,Jo=J.__b,Xo=J.__r,Qo=J.diffed,ei=J.__c,ti=J.unmount,ni=J.__;function pt(e,t){J.__h&&J.__h(q,e,Ot||t),Ot=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function k(e){return Ot=1,rn(Da,e)}function rn(e,t,n){var r=pt(Fe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Da(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=q,!q.__f)){var o=function(s,c,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(h){return!!h.__c});if(p.every(function(h){return!h.__N}))return!i||i.call(this,s,c,d);var l=r.__c.props!==s;return p.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};q.__f=!0;var i=q.shouldComponentUpdate,a=q.componentWillUpdate;q.componentWillUpdate=function(s,c,d){if(this.__e){var p=i;i=void 0,o(s,c,d),i=p}a&&a.call(this,s,c,d)},q.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=pt(Fe++,3);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function ke(e,t){var n=pt(Fe++,4);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__h.push(n))}function T(e){return Ot=5,X(function(){return{current:e}},[])}function ho(e,t,n){Ot=6,ke(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 X(e,t){var n=pt(Fe++,7);return go(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function H(e,t){return Ot=8,X(function(){return e},t)}function tt(e){var t=q.context[e.__c],n=pt(Fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__}function Bn(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function qc(e){var t=pt(Fe++,10),n=k();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function qn(){var e=pt(Fe++,11);if(!e.__){for(var t=q.__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 Kc(){for(var e;e=Ra.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Fr),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){q=null,Jo&&Jo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ni&&ni(e,t)},J.__r=function(e){Xo&&Xo(e),Fe=0;var t=(q=e.__c).__H;t&&(ur===q?(t.__h=[],q.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach($n),t.__h.forEach(Fr),t.__h=[],Fe=0)),ur=q},J.diffed=function(e){Qo&&Qo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ra.push(t)!==1&&Zo===J.requestAnimationFrame||((Zo=J.requestAnimationFrame)||Gc)(Kc)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ur=q=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Fr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),ei&&ei(e,t)},J.unmount=function(e){ti&&ti(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var ri=typeof requestAnimationFrame=="function";function Gc(e){var t,n=function(){clearTimeout(r),ri&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ri&&(t=requestAnimationFrame(n))}function $n(e){var t=q,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),q=t}function Fr(e){var t=q;e.__c=e.__(),q=t}function go(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Da(e,t){return typeof t=="function"?t(e):t}var Yc=["other","few","many","two","one","zero"],oi=({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 p;return((p=a==null?void 0:a[d])==null?void 0:p.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=Yc.find(p=>p in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,p)=>{var l;return((l=a==null?void 0:a[p])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},ii=ut(null),Zc=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=X(()=>oi({locale:r,terms:e,overrides:t}),[t,r]);return u(ii.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=tt(ii);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>oi({terms:e,overrides:t,locale:n})});const{TranslationProvider:Jc,useTranslation:ne,createTFunction:Xc}=Zc({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",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.",feedback:"How was your search experience?",list:"List",map:"Map",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"});function Na(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=Na(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Na(e))&&(r&&(r+=" "),r+=t);return r}const ai=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Qc=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,c;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](dr(i)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(dr(i)):dr(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[p]=d;return!["class","className"].includes(p)}));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 f=i==null?void 0:i[h],m=c==null?void 0:c[h],v=ai(f)||ai(m);return s[h][v]}),p={...c,...i&&Object.entries(i).reduce((h,f)=>{let[m,v]=f;return typeof v>"u"?h:{...h,[m]:v}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:m,className:v,..._}=f;return Object.entries(_).every(g=>{let[b,w]=g;const y=p[b];return Array.isArray(w)?w.includes(y):y===w})?[...h,m,v]: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}},{compose:Gm,cva:pe,cx:Ym}=Qc(),je=pe({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",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"}}),el=({error:e,resetError:t})=>{const{t:n}=ne();return 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:n("retry")})]})},Ze=({error:e,resetError:t,class:n,...r})=>{const{t:o}=ne();return R(()=>{e.cause instanceof lt.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:St("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:je({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class qt extends fe{constructor(){super(...arguments);Wo(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 tl={briefcase:u(M,{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(M,{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(M,{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(M,{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(M,{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(M,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(M,{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(M,{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(M,{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(M,{children:u(M,{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(M,{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(M,{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(M,{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(M,{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(M,{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"})]})},nl=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(tl).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)})})}),Q=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function Ma(e,t){for(var n in t)e[n]=t[n];return e}function jr(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 vo(e,t){var n=t(),r=k({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),R(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function mo(e){e()}function _o(e){return e}function yo(){return[!1,mo]}var bo=ke;function Mn(e,t){this.props=e,this.context=t}function La(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:jr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,E(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Mn.prototype=new fe).isPureReactComponent=!0,Mn.prototype.shouldComponentUpdate=function(e,t){return jr(this.props,e)||jr(this.state,t)};var si=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),si&&si(e)};var rl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Y(e){function t(n){var r=Ma({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=rl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ci=function(e,t){return e==null?null:Ie(Ie(e).map(t))},Oe={map:ci,forEach:ci,count:function(e){return e?Ie(e).length:0},only:function(e){var t=Ie(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ie},ol=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)}ol(e,t,n,r)};var li=exports.l.unmount;function Ia(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=Ma({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ia(r,t,n)})),e}function Fa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Fa(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 bt(){this.__u=0,this.o=null,this.__b=null}function ja(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return E(n,i)}return o.displayName="Lazy",o.__f=!0,o}function _t(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),li&&li(e)},(bt.prototype=new fe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ja(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Fa(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},bt.prototype.componentWillUnmount=function(){this.o=[]},bt.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]=Ia(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&E(M,null,e.fallback);return o&&(o.__u&=-33),[E(M,null,t.__a?null:e.children),o]};var ui=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 il(e){return this.getChildContext=function(){return e.context},e.children}function al(e){var t=this,n=e.h;t.componentWillUnmount=function(){Et(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Et(E(il,{context:t.context},e.__v),t.v)}function Va(e,t){var n=E(al,{__v:e,h:t});return n.containerInfo=t,n}(_t.prototype=new fe).__a=function(e){var t=this,n=ja(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ui(t,e,r)):o()};n?n(i):i()}},_t.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ie(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},_t.prototype.componentDidUpdate=_t.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ui(e,n,t)})};var Ha=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,sl=/^(?: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]/,cl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ll=/[A-Z0-9]/g,ul=typeof document<"u",dl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Wa(e,t,n){return t.__k==null&&(t.textContent=""),Et(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ua(e,t,n){return lo(e,t),typeof n=="function"&&n(),e?e.__c:null}fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var di=exports.l.event;function fl(){}function pl(){return this.cancelBubble}function hl(){return this.defaultPrevented}exports.l.event=function(e){return di&&(e=di(e)),e.persist=fl,e.isPropagationStopped=pl,e.isDefaultPrevented=hl,e.nativeEvent=e};var xo,gl={enumerable:!1,configurable:!0,get:function(){return this.class}},fi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||ul&&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"||dl(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":cl.test(a)&&(a=c):c=a="oninput":i&&sl.test(a)?a=a.replace(ll,"-$&").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=Ie(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ie(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",gl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ha,fi&&fi(e)};var pi=exports.l.__r;exports.l.__r=function(e){pi&&pi(e),xo=e.__c};var hi=exports.l.diffed;exports.l.diffed=function(e){hi&&hi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),xo=null};var za={ReactCurrentDispatcher:{current:{readContext:function(e){return xo.__n[e.__c].props.value},useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:ke,useMemo:X,useReducer:rn,useRef:T,useState:k,useSyncExternalStore:vo,useTransition:yo}}},vl="18.3.1";function Ba(e){return E.bind(null,e)}function Ve(e){return!!e&&e.$$typeof===Ha}function qa(e){return Ve(e)&&e.type===M}function Ka(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Tt(e){return Ve(e)?Ac.apply(null,arguments):e}function Ga(e){return!!e.__k&&(Et(null,e),!0)}function Ya(e){return e&&(e.base||e.nodeType===1&&e)||null}var Za=function(e,t){return e(t)},on=function(e,t){return e(t)},Ja=M,Xa=Ve,an={useState:k,useId:qn,useReducer:rn,useEffect:R,useLayoutEffect:ke,useInsertionEffect:bo,useTransition:yo,useDeferredValue:_o,useSyncExternalStore:vo,startTransition:mo,useRef:T,useImperativeHandle:ho,useMemo:X,useCallback:H,useContext:tt,useDebugValue:Bn,version:"18.3.1",Children:Oe,render:Wa,hydrate:Ua,unmountComponentAtNode:Ga,createPortal:Va,createElement:E,createContext:ut,createFactory:Ba,cloneElement:Tt,createRef:ya,Fragment:M,isValidElement:Ve,isElement:Xa,isFragment:qa,isMemo:Ka,findDOMNode:Ya,Component:fe,PureComponent:Mn,memo:La,forwardRef:Y,flushSync:on,unstable_batchedUpdates:Za,StrictMode:Ja,Suspense:bt,SuspenseList:_t,lazy:wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za};const Qa=Object.freeze(Object.defineProperty({__proto__:null,Children:Oe,Component:fe,Fragment:M,PureComponent:Mn,StrictMode:Ja,Suspense:bt,SuspenseList:_t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za,cloneElement:Tt,createContext:ut,createElement:E,createFactory:Ba,createPortal:Va,createRef:ya,default:an,findDOMNode:Ya,flushSync:on,forwardRef:Y,hydrate:Ua,isElement:Xa,isFragment:qa,isMemo:Ka,isValidElement:Ve,lazy:wo,memo:La,render:Wa,startTransition:mo,unmountComponentAtNode:Ga,unstable_batchedUpdates:Za,useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useErrorBoundary:qc,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:ke,useMemo:X,useReducer:rn,useRef:T,useState:k,useSyncExternalStore:vo,useTransition:yo,version:vl},Symbol.toStringTag,{value:"Module"}));var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ml(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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 Vr={exports:{}},pr={};const es=ml(Qa);/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -14,15 +14,15 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var vi;function yl(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=es,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var y=arguments.length,x=new Array(y>1?y-1:0),$=1;$<y;$++)x[$-1]=arguments[$];r("error",w,x)}}function r(w,y,x){{var $=t.ReactDebugCurrentFrame,S=$.getStackAddendum();S!==""&&(y+="%s",x=x.concat([S]));var C=x.map(function(O){return String(O)});C.unshift("Warning: "+y),Function.prototype.apply.call(console[w],console,C)}}function o(w,y){return w===y&&(w!==0||1/w===1/y)||w!==w&&y!==y}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,p=!1,l=!1;function h(w,y,x){p||e.startTransition!==void 0&&(p=!0,n("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 $=y();if(!l){var S=y();i($,S)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var C=a({inst:{value:$,getSnapshot:y}}),O=C[0].inst,P=C[1];return c(function(){O.value=$,O.getSnapshot=y,f(O)&&P({inst:O})},[w,$,y]),s(function(){f(O)&&P({inst:O});var L=function(){f(O)&&P({inst:O})};return w(L)},[w]),d($),$}function f(w){var y=w.getSnapshot,x=w.value;try{var $=y();return!i(x,$)}catch{return!0}}function m(w,y,x){return y()}var v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=!v,g=_?m:h,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;hr.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),hr}process.env.NODE_ENV==="production"?Vr.exports=_l():Vr.exports=yl();var bl=Vr.exports;const Ye=()=>{},oe=Ye(),Cn=Object,V=e=>e===oe,ve=e=>typeof e=="function",He=(e,t)=>({...e,...t}),wl=e=>ve(e.then),pn=new WeakMap;let xl=0;const Kt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Cn(e)===e&&!r&&n!=RegExp){if(o=pn.get(e),o)return o;if(o=++xl+"~",pn.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Kt(e[i])+",";pn.set(e,o)}if(n==Cn){o="#";const a=Cn.keys(e).sort();for(;!V(i=a.pop());)V(e[i])||(o+=i+":"+Kt(e[i])+",");pn.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Me=new WeakMap,gr={},hn={},Co="undefined",Kn=typeof window!=Co,Hr=typeof document!=Co,$l=()=>Kn&&typeof window.requestAnimationFrame!=Co,ts=(e,t)=>{const n=Me.get(e);return[()=>!V(t)&&e.get(t)||gr,r=>{if(!V(t)){const o=e.get(t);t in hn||(hn[t]=o),n[5](t,He(o,r),o||gr)}},n[6],()=>!V(t)&&t in hn?hn[t]:!V(t)&&e.get(t)||gr]};let Wr=!0;const Cl=()=>Wr,[Ur,zr]=Kn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ye,Ye],El=()=>{const e=Hr&&document.visibilityState;return V(e)||e!=="hidden"},Sl=e=>(Hr&&document.addEventListener("visibilitychange",e),Ur("focus",e),()=>{Hr&&document.removeEventListener("visibilitychange",e),zr("focus",e)}),Ol=e=>{const t=()=>{Wr=!0,e()},n=()=>{Wr=!1};return Ur("online",t),Ur("offline",n),()=>{zr("online",t),zr("offline",n)}},Al={isOnline:Cl,isVisible:El},Tl={initFocus:Sl,initReconnect:Ol},mi=!an.useId,Gt=!Kn||"Deno"in window,kl=e=>$l()?window.requestAnimationFrame(e):setTimeout(e,1),En=Gt?R:Te,vr=typeof navigator<"u"&&navigator.connection,_i=!Gt&&vr&&(["slow-2g","2g"].includes(vr.effectiveType)||vr.saveData),Eo=e=>{if(ve(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Kt(e):"",[e,t]};let Pl=0;const Br=()=>++Pl,ns=0,rs=1,os=2,Rl=3;var Vt={__proto__:null,ERROR_REVALIDATE_EVENT:Rl,FOCUS_EVENT:ns,MUTATE_EVENT:os,RECONNECT_EVENT:rs};async function is(...e){const[t,n,r,o]=e,i=He({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,p=i.throwOnError;if(ve(n)){const h=n,f=[],m=t.keys();for(const v of m)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&f.push(v);return Promise.all(f.map(l))}return l(n);async function l(h){const[f]=Eo(h);if(!f)return;const[m,v]=ts(t,f),[_,g,b,w]=Me.get(t),y=()=>{const j=_[f];return(ve(i.revalidate)?i.revalidate(m().data,h):i.revalidate!==!1)&&(delete b[f],delete w[f],j&&j[0])?j[0](os).then(()=>m().data):m().data};if(e.length<3)return y();let x=r,$;const S=Br();g[f]=[S,0];const C=!V(c),O=m(),P=O.data,L=O._c,D=V(L)?P:L;if(C&&(c=ve(c)?c(D,P):c,v({data:c,_c:D})),ve(x))try{x=x(D)}catch(j){$=j}if(x&&wl(x))if(x=await x.catch(j=>{$=j}),S!==g[f][0]){if($)throw $;return x}else $&&C&&d($)&&(a=!0,v({data:D,_c:oe}));if(a&&!$)if(ve(a)){const j=a(x,D);v({data:j,error:oe,_c:oe})}else v({data:x,error:oe,_c:oe});if(g[f][1]=Br(),Promise.resolve(y()).then(()=>{v({_c:oe})}),$){if(p)throw $;return}return x}}const yi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},as=(e,t)=>{if(!Me.has(e)){const n=He(Tl,t),r={},o=is.bind(oe,e);let i=Ye;const a={},s=(p,l)=>{const h=a[p]||[];return a[p]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(p,l,h)=>{e.set(p,l);const f=a[p];if(f)for(const m of f)m(l,h)},d=()=>{if(!Me.has(e)&&(Me.set(e,[r,{},{},{},o,c,s]),!Gt)){const p=n.initFocus(setTimeout.bind(oe,yi.bind(oe,r,ns))),l=n.initReconnect(setTimeout.bind(oe,yi.bind(oe,r,rs)));i=()=>{p&&p(),l&&l(),Me.delete(e)}}};return d(),[e,o,d,i]}return[e,Me.get(e)[4]]},Dl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!V(i)&&a>i||setTimeout(r,s,o)},Nl=(e,t)=>Kt(e)==Kt(t),[So,Ml]=as(new Map),ss=He({onLoadingSlow:Ye,onSuccess:Ye,onError:Ye,onErrorRetry:Dl,onDiscarded:Ye,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_i?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_i?5e3:3e3,compare:Nl,isPaused:()=>!1,cache:So,mutate:Ml,fallback:{}},Al),cs=(e,t)=>{const n=He(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=He(o,a))}return n},qr=lt({}),Ll=e=>{const{value:t}=e,n=tt(qr),r=ve(t),o=X(()=>r?t(n):t,[r,n,t]),i=X(()=>r?o:cs(n,o),[r,n,o]),a=o&&o.provider,s=k(oe);a&&!s.current&&(s.current=as(a(i.cache||So),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),En(()=>{if(c)return c[2]&&c[2](),c[3]},[]),E(qr.Provider,He(e,{value:i}))},Il="$inf$",ls=Kn&&window.__SWR_DEVTOOLS_USE__,Fl=ls?window.__SWR_DEVTOOLS_USE__:[],jl=()=>{ls&&(window.__SWR_DEVTOOLS_REACT__=an)},Vl=e=>ve(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Hl=()=>He(ss,tt(qr)),Wl=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Eo(t),[,,,s]=Me.get(So);if(a.startsWith(Il))return n(...i);const c=s[a];return V(c)?n(...i):(delete s[a],c)}),r),Ul=Fl.concat(Wl),zl=e=>function(...n){const r=Hl(),[o,i,a]=Vl(n),s=cs(r,a);let c=e;const{use:d}=s,p=(d||[]).concat(Ul);for(let l=p.length;l--;)c=p[l](c);return c(o,i||s.fetcher||null,s)},Bl=(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())}};jl();const bi=an.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),mr={dedupe:!0},ql=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:p,refreshWhenOffline:l,keepPreviousData:h}=n,[f,m,v,_]=Me.get(r),[g,b]=Eo(e),w=k(!1),y=k(!1),x=k(g),$=k(t),S=k(n),C=()=>S.current,O=()=>C().isVisible()&&C().isOnline(),[P,L,D,j]=ts(r,g),A=k({}).current,N=V(a)?n.fallback[g]:a,I=(U,z)=>{for(const te in A){const B=te;if(B==="data"){if(!o(U[B],z[B])&&(!V(U[B])||!o(Pe,z[B])))return!1}else if(z[B]!==U[B])return!1}return!0},F=X(()=>{const U=(()=>!g||!t?!1:V(s)?C().isPaused()||i?!1:V(c)?!0:c:s)(),z=re=>{const ge=He(re);return delete ge._k,U?{isValidating:!0,isLoading:!0,...ge}:ge},te=P(),B=j(),ae=z(te),qe=te===B?ae:z(B);let ee=ae;return[()=>{const re=z(P());return I(re,ee)?(ee.data=re.data,ee.isLoading=re.isLoading,ee.isValidating=re.isValidating,ee.error=re.error,ee):(ee=re,re)},()=>qe]},[r,g]),W=bl.useSyncExternalStore(H(U=>D(g,(z,te)=>{I(te,z)||U()}),[r,g]),F[0],F[1]),Z=!w.current,Ft=f[g]&&f[g].length>0,he=W.data,Be=V(he)?N:he,ot=W.error,ln=k(Be),Pe=h?V(he)?ln.current:he:Be,Re=(()=>Ft&&!V(ot)?!1:Z&&!V(s)?s:C().isPaused()?!1:i?V(Be)?!1:c:V(Be)||c)(),jt=!!(g&&t&&Z&&Re),or=V(W.isValidating)?jt:W.isValidating,pt=V(W.isLoading)?jt:W.isLoading,it=H(async U=>{const z=$.current;if(!g||!z||y.current||C().isPaused())return!1;let te,B,ae=!0;const qe=U||{},ee=!v[g]||!qe.dedupe,re=()=>mi?!y.current&&g===x.current&&w.current:g===x.current,ge={isValidating:!1,isLoading:!1},at=()=>{L(ge)},Vo=()=>{const de=v[g];de&&de[1]===B&&delete v[g]},Ho={isValidating:!0};V(P().data)&&(Ho.isLoading=!0);try{if(ee&&(L(Ho),n.loadingTimeout&&V(P().data)&&setTimeout(()=>{ae&&re()&&C().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[z(b),Br()]),[te,B]=v[g],te=await te,ee&&setTimeout(Vo,n.dedupingInterval),!v[g]||v[g][1]!==B)return ee&&re()&&C().onDiscarded(g),!1;ge.error=oe;const de=m[g];if(!V(de)&&(B<=de[0]||B<=de[1]||de[1]===0))return at(),ee&&re()&&C().onDiscarded(g),!1;const De=P().data;ge.data=o(De,te)?De:te,ee&&re()&&C().onSuccess(te,g,n)}catch(de){Vo();const De=C(),{shouldRetryOnError:ir}=De;De.isPaused()||(ge.error=de,ee&&re()&&(De.onError(de,g,De),(ir===!0||ve(ir)&&ir(de))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||O())&&De.onErrorRetry(de,g,De,vc=>{const ar=f[g];ar&&ar[0]&&ar[0](Vt.ERROR_REVALIDATE_EVENT,vc)},{retryCount:(qe.retryCount||0)+1,dedupe:!0})))}return ae=!1,at(),!0},[g,r]),un=H((...U)=>is(r,x.current,...U),[]);if(En(()=>{$.current=t,S.current=n,V(he)||(ln.current=he)}),En(()=>{if(!g)return;const U=it.bind(oe,mr);let z=0;const B=Bl(g,f,(ae,qe={})=>{if(ae==Vt.FOCUS_EVENT){const ee=Date.now();C().revalidateOnFocus&&ee>z&&O()&&(z=ee+C().focusThrottleInterval,U())}else if(ae==Vt.RECONNECT_EVENT)C().revalidateOnReconnect&&O()&&U();else{if(ae==Vt.MUTATE_EVENT)return it();if(ae==Vt.ERROR_REVALIDATE_EVENT)return it(qe)}});return y.current=!1,x.current=g,w.current=!0,L({_k:b}),Re&&(V(Be)||Gt?U():kl(U)),()=>{y.current=!0,B()}},[g]),En(()=>{let U;function z(){const B=ve(d)?d(P().data):d;B&&U!==-1&&(U=setTimeout(te,B))}function te(){!P().error&&(p||C().isVisible())&&(l||C().isOnline())?it(mr).then(z):z()}return z(),()=>{U&&(clearTimeout(U),U=-1)}},[d,p,l,g]),Bn(Pe),i&&V(Be)&&g){if(!mi&&Gt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,S.current=n,y.current=!1;const U=_[g];if(!V(U)){const z=un(U);bi(z)}if(V(ot)){const z=it(mr);V(Pe)||(z.status="fulfilled",z.value=!0),bi(z)}else throw ot}return{mutate:un,get data(){return A.data=!0,Pe},get error(){return A.error=!0,ot},get isValidating(){return A.isValidating=!0,or},get isLoading(){return A.isLoading=!0,pt}}},Kl=Cn.defineProperty(Ll,"defaultValue",{value:ss}),Yt=zl(ql),us=e=>{const[t,n]=T(!1);return R(()=>{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},Gl=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=T(!1);R(()=>{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 Yl=["1","2","3","4","5","6","7","8","9","10","11","12"],Zl={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]}},Jl=(e,t=1,n)=>r=>{const[o,i]=Zl[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},_r=e=>{const t=Jl(e.hue,e.chroma,e.mode);return Object.fromEntries(Yl.map(n=>[e.prefix+n,e.transform(t(n))]))},yr=e=>e,Xl=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)},gn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Kr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(gn(e)&&gn(n))for(const r in n){const o=n[r];if(gn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];gn(i)&&Kr(i,o)}else Object.assign(e,{[r]:n[r]})}return Kr(e,...t)},Ql=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},eu=()=>({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}}),p=Xl(Kr(s,c,d)),l=([h,f],m)=>{const v=[m,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(_=>l(_,v)):[[r.getToken("declaration",v),f]]};return{values:p,declarations:Object.fromEntries(Object.entries(p).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const Ce=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)},[br,wr,vn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],tu=eu().core(({theme:e})=>{var t,n,r,o;return{color:{black:br,white:wr,lowest:e.mode==="light"?wr:br,highest:e.mode==="light"?br:wr,..._r({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:yr}),..._r({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:yr}),..._r({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:yr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,p,l,h,f,m,v,_,g,b,w,y,x,$,S,C,O,P,L;const r=(D,j)=>n.core.color[D].replace(")",` / ${j})`),{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":((p=o.tag)==null?void 0:p.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":((m=(f=o.filter)==null?void 0:f.weight)==null?void 0:m.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((_=o.tag)==null?void 0:_.style)??o.style??"inherit","style-job-heading":((g=o.jobHeading)==null?void 0:g.style)??o.style??"inherit","weight-tag":((w=(b=o.tag)==null?void 0:b.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())??((S=o.weight)==null?void 0:S.toString())??"inherit","style-input":((C=o.input)==null?void 0:C.style)??o.style??"inherit","weight-input":((P=(O=o.input)==null?void 0:O.weight)==null?void 0:P.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"):vn,"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":vn,"radius-app":Ce(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Ce(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Ce(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Ce(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Ce(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Ce(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Ce(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":Ce(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"?vn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?vn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Ce(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":Ce(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),nu=Ql({prefix:"i-"}),ru=e=>{const t=tu.from({theme:e.theme,getToken:nu}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
17
+ */var vi;function yl(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=es,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var y=arguments.length,x=new Array(y>1?y-1:0),$=1;$<y;$++)x[$-1]=arguments[$];r("error",w,x)}}function r(w,y,x){{var $=t.ReactDebugCurrentFrame,S=$.getStackAddendum();S!==""&&(y+="%s",x=x.concat([S]));var C=x.map(function(O){return String(O)});C.unshift("Warning: "+y),Function.prototype.apply.call(console[w],console,C)}}function o(w,y){return w===y&&(w!==0||1/w===1/y)||w!==w&&y!==y}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,p=!1,l=!1;function h(w,y,x){p||e.startTransition!==void 0&&(p=!0,n("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 $=y();if(!l){var S=y();i($,S)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var C=a({inst:{value:$,getSnapshot:y}}),O=C[0].inst,P=C[1];return c(function(){O.value=$,O.getSnapshot=y,f(O)&&P({inst:O})},[w,$,y]),s(function(){f(O)&&P({inst:O});var L=function(){f(O)&&P({inst:O})};return w(L)},[w]),d($),$}function f(w){var y=w.getSnapshot,x=w.value;try{var $=y();return!i(x,$)}catch{return!0}}function m(w,y,x){return y()}var v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=!v,g=_?m:h,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;hr.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),hr}process.env.NODE_ENV==="production"?Vr.exports=_l():Vr.exports=yl();var bl=Vr.exports;const Ye=()=>{},oe=Ye(),Cn=Object,V=e=>e===oe,ve=e=>typeof e=="function",He=(e,t)=>({...e,...t}),wl=e=>ve(e.then),pn=new WeakMap;let xl=0;const Kt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Cn(e)===e&&!r&&n!=RegExp){if(o=pn.get(e),o)return o;if(o=++xl+"~",pn.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Kt(e[i])+",";pn.set(e,o)}if(n==Cn){o="#";const a=Cn.keys(e).sort();for(;!V(i=a.pop());)V(e[i])||(o+=i+":"+Kt(e[i])+",");pn.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Me=new WeakMap,gr={},hn={},Co="undefined",Kn=typeof window!=Co,Hr=typeof document!=Co,$l=()=>Kn&&typeof window.requestAnimationFrame!=Co,ts=(e,t)=>{const n=Me.get(e);return[()=>!V(t)&&e.get(t)||gr,r=>{if(!V(t)){const o=e.get(t);t in hn||(hn[t]=o),n[5](t,He(o,r),o||gr)}},n[6],()=>!V(t)&&t in hn?hn[t]:!V(t)&&e.get(t)||gr]};let Wr=!0;const Cl=()=>Wr,[Ur,zr]=Kn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ye,Ye],El=()=>{const e=Hr&&document.visibilityState;return V(e)||e!=="hidden"},Sl=e=>(Hr&&document.addEventListener("visibilitychange",e),Ur("focus",e),()=>{Hr&&document.removeEventListener("visibilitychange",e),zr("focus",e)}),Ol=e=>{const t=()=>{Wr=!0,e()},n=()=>{Wr=!1};return Ur("online",t),Ur("offline",n),()=>{zr("online",t),zr("offline",n)}},Al={isOnline:Cl,isVisible:El},kl={initFocus:Sl,initReconnect:Ol},mi=!an.useId,Gt=!Kn||"Deno"in window,Tl=e=>$l()?window.requestAnimationFrame(e):setTimeout(e,1),En=Gt?R:ke,vr=typeof navigator<"u"&&navigator.connection,_i=!Gt&&vr&&(["slow-2g","2g"].includes(vr.effectiveType)||vr.saveData),Eo=e=>{if(ve(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Kt(e):"",[e,t]};let Pl=0;const Br=()=>++Pl,ns=0,rs=1,os=2,Rl=3;var Vt={__proto__:null,ERROR_REVALIDATE_EVENT:Rl,FOCUS_EVENT:ns,MUTATE_EVENT:os,RECONNECT_EVENT:rs};async function is(...e){const[t,n,r,o]=e,i=He({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,p=i.throwOnError;if(ve(n)){const h=n,f=[],m=t.keys();for(const v of m)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&f.push(v);return Promise.all(f.map(l))}return l(n);async function l(h){const[f]=Eo(h);if(!f)return;const[m,v]=ts(t,f),[_,g,b,w]=Me.get(t),y=()=>{const j=_[f];return(ve(i.revalidate)?i.revalidate(m().data,h):i.revalidate!==!1)&&(delete b[f],delete w[f],j&&j[0])?j[0](os).then(()=>m().data):m().data};if(e.length<3)return y();let x=r,$;const S=Br();g[f]=[S,0];const C=!V(c),O=m(),P=O.data,L=O._c,D=V(L)?P:L;if(C&&(c=ve(c)?c(D,P):c,v({data:c,_c:D})),ve(x))try{x=x(D)}catch(j){$=j}if(x&&wl(x))if(x=await x.catch(j=>{$=j}),S!==g[f][0]){if($)throw $;return x}else $&&C&&d($)&&(a=!0,v({data:D,_c:oe}));if(a&&!$)if(ve(a)){const j=a(x,D);v({data:j,error:oe,_c:oe})}else v({data:x,error:oe,_c:oe});if(g[f][1]=Br(),Promise.resolve(y()).then(()=>{v({_c:oe})}),$){if(p)throw $;return}return x}}const yi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},as=(e,t)=>{if(!Me.has(e)){const n=He(kl,t),r={},o=is.bind(oe,e);let i=Ye;const a={},s=(p,l)=>{const h=a[p]||[];return a[p]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(p,l,h)=>{e.set(p,l);const f=a[p];if(f)for(const m of f)m(l,h)},d=()=>{if(!Me.has(e)&&(Me.set(e,[r,{},{},{},o,c,s]),!Gt)){const p=n.initFocus(setTimeout.bind(oe,yi.bind(oe,r,ns))),l=n.initReconnect(setTimeout.bind(oe,yi.bind(oe,r,rs)));i=()=>{p&&p(),l&&l(),Me.delete(e)}}};return d(),[e,o,d,i]}return[e,Me.get(e)[4]]},Dl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!V(i)&&a>i||setTimeout(r,s,o)},Nl=(e,t)=>Kt(e)==Kt(t),[So,Ml]=as(new Map),ss=He({onLoadingSlow:Ye,onSuccess:Ye,onError:Ye,onErrorRetry:Dl,onDiscarded:Ye,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_i?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_i?5e3:3e3,compare:Nl,isPaused:()=>!1,cache:So,mutate:Ml,fallback:{}},Al),cs=(e,t)=>{const n=He(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=He(o,a))}return n},qr=ut({}),Ll=e=>{const{value:t}=e,n=tt(qr),r=ve(t),o=X(()=>r?t(n):t,[r,n,t]),i=X(()=>r?o:cs(n,o),[r,n,o]),a=o&&o.provider,s=T(oe);a&&!s.current&&(s.current=as(a(i.cache||So),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),En(()=>{if(c)return c[2]&&c[2](),c[3]},[]),E(qr.Provider,He(e,{value:i}))},Il="$inf$",ls=Kn&&window.__SWR_DEVTOOLS_USE__,Fl=ls?window.__SWR_DEVTOOLS_USE__:[],jl=()=>{ls&&(window.__SWR_DEVTOOLS_REACT__=an)},Vl=e=>ve(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Hl=()=>He(ss,tt(qr)),Wl=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Eo(t),[,,,s]=Me.get(So);if(a.startsWith(Il))return n(...i);const c=s[a];return V(c)?n(...i):(delete s[a],c)}),r),Ul=Fl.concat(Wl),zl=e=>function(...n){const r=Hl(),[o,i,a]=Vl(n),s=cs(r,a);let c=e;const{use:d}=s,p=(d||[]).concat(Ul);for(let l=p.length;l--;)c=p[l](c);return c(o,i||s.fetcher||null,s)},Bl=(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())}};jl();const bi=an.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),mr={dedupe:!0},ql=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:p,refreshWhenOffline:l,keepPreviousData:h}=n,[f,m,v,_]=Me.get(r),[g,b]=Eo(e),w=T(!1),y=T(!1),x=T(g),$=T(t),S=T(n),C=()=>S.current,O=()=>C().isVisible()&&C().isOnline(),[P,L,D,j]=ts(r,g),A=T({}).current,N=V(a)?n.fallback[g]:a,I=(U,z)=>{for(const te in A){const B=te;if(B==="data"){if(!o(U[B],z[B])&&(!V(U[B])||!o(Pe,z[B])))return!1}else if(z[B]!==U[B])return!1}return!0},F=X(()=>{const U=(()=>!g||!t?!1:V(s)?C().isPaused()||i?!1:V(c)?!0:c:s)(),z=re=>{const ge=He(re);return delete ge._k,U?{isValidating:!0,isLoading:!0,...ge}:ge},te=P(),B=j(),ae=z(te),qe=te===B?ae:z(B);let ee=ae;return[()=>{const re=z(P());return I(re,ee)?(ee.data=re.data,ee.isLoading=re.isLoading,ee.isValidating=re.isValidating,ee.error=re.error,ee):(ee=re,re)},()=>qe]},[r,g]),W=bl.useSyncExternalStore(H(U=>D(g,(z,te)=>{I(te,z)||U()}),[r,g]),F[0],F[1]),Z=!w.current,Ft=f[g]&&f[g].length>0,he=W.data,Be=V(he)?N:he,ot=W.error,ln=T(Be),Pe=h?V(he)?ln.current:he:Be,Re=(()=>Ft&&!V(ot)?!1:Z&&!V(s)?s:C().isPaused()?!1:i?V(Be)?!1:c:V(Be)||c)(),jt=!!(g&&t&&Z&&Re),or=V(W.isValidating)?jt:W.isValidating,ht=V(W.isLoading)?jt:W.isLoading,it=H(async U=>{const z=$.current;if(!g||!z||y.current||C().isPaused())return!1;let te,B,ae=!0;const qe=U||{},ee=!v[g]||!qe.dedupe,re=()=>mi?!y.current&&g===x.current&&w.current:g===x.current,ge={isValidating:!1,isLoading:!1},at=()=>{L(ge)},Vo=()=>{const de=v[g];de&&de[1]===B&&delete v[g]},Ho={isValidating:!0};V(P().data)&&(Ho.isLoading=!0);try{if(ee&&(L(Ho),n.loadingTimeout&&V(P().data)&&setTimeout(()=>{ae&&re()&&C().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[z(b),Br()]),[te,B]=v[g],te=await te,ee&&setTimeout(Vo,n.dedupingInterval),!v[g]||v[g][1]!==B)return ee&&re()&&C().onDiscarded(g),!1;ge.error=oe;const de=m[g];if(!V(de)&&(B<=de[0]||B<=de[1]||de[1]===0))return at(),ee&&re()&&C().onDiscarded(g),!1;const De=P().data;ge.data=o(De,te)?De:te,ee&&re()&&C().onSuccess(te,g,n)}catch(de){Vo();const De=C(),{shouldRetryOnError:ir}=De;De.isPaused()||(ge.error=de,ee&&re()&&(De.onError(de,g,De),(ir===!0||ve(ir)&&ir(de))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||O())&&De.onErrorRetry(de,g,De,vc=>{const ar=f[g];ar&&ar[0]&&ar[0](Vt.ERROR_REVALIDATE_EVENT,vc)},{retryCount:(qe.retryCount||0)+1,dedupe:!0})))}return ae=!1,at(),!0},[g,r]),un=H((...U)=>is(r,x.current,...U),[]);if(En(()=>{$.current=t,S.current=n,V(he)||(ln.current=he)}),En(()=>{if(!g)return;const U=it.bind(oe,mr);let z=0;const B=Bl(g,f,(ae,qe={})=>{if(ae==Vt.FOCUS_EVENT){const ee=Date.now();C().revalidateOnFocus&&ee>z&&O()&&(z=ee+C().focusThrottleInterval,U())}else if(ae==Vt.RECONNECT_EVENT)C().revalidateOnReconnect&&O()&&U();else{if(ae==Vt.MUTATE_EVENT)return it();if(ae==Vt.ERROR_REVALIDATE_EVENT)return it(qe)}});return y.current=!1,x.current=g,w.current=!0,L({_k:b}),Re&&(V(Be)||Gt?U():Tl(U)),()=>{y.current=!0,B()}},[g]),En(()=>{let U;function z(){const B=ve(d)?d(P().data):d;B&&U!==-1&&(U=setTimeout(te,B))}function te(){!P().error&&(p||C().isVisible())&&(l||C().isOnline())?it(mr).then(z):z()}return z(),()=>{U&&(clearTimeout(U),U=-1)}},[d,p,l,g]),Bn(Pe),i&&V(Be)&&g){if(!mi&&Gt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,S.current=n,y.current=!1;const U=_[g];if(!V(U)){const z=un(U);bi(z)}if(V(ot)){const z=it(mr);V(Pe)||(z.status="fulfilled",z.value=!0),bi(z)}else throw ot}return{mutate:un,get data(){return A.data=!0,Pe},get error(){return A.error=!0,ot},get isValidating(){return A.isValidating=!0,or},get isLoading(){return A.isLoading=!0,ht}}},Kl=Cn.defineProperty(Ll,"defaultValue",{value:ss}),Yt=zl(ql),us=e=>{const[t,n]=k(!1);return R(()=>{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},Gl=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=k(!1);R(()=>{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 Yl=["1","2","3","4","5","6","7","8","9","10","11","12"],Zl={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]}},Jl=(e,t=1,n)=>r=>{const[o,i]=Zl[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},_r=e=>{const t=Jl(e.hue,e.chroma,e.mode);return Object.fromEntries(Yl.map(n=>[e.prefix+n,e.transform(t(n))]))},yr=e=>e,Xl=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)},gn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Kr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(gn(e)&&gn(n))for(const r in n){const o=n[r];if(gn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];gn(i)&&Kr(i,o)}else Object.assign(e,{[r]:n[r]})}return Kr(e,...t)},Ql=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},eu=()=>({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}}),p=Xl(Kr(s,c,d)),l=([h,f],m)=>{const v=[m,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(_=>l(_,v)):[[r.getToken("declaration",v),f]]};return{values:p,declarations:Object.fromEntries(Object.entries(p).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const Ce=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)},[br,wr,vn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],tu=eu().core(({theme:e})=>{var t,n,r,o;return{color:{black:br,white:wr,lowest:e.mode==="light"?wr:br,highest:e.mode==="light"?br:wr,..._r({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:yr}),..._r({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:yr}),..._r({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:yr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,p,l,h,f,m,v,_,g,b,w,y,x,$,S,C,O,P,L;const r=(D,j)=>n.core.color[D].replace(")",` / ${j})`),{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":((p=o.tag)==null?void 0:p.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":((m=(f=o.filter)==null?void 0:f.weight)==null?void 0:m.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((_=o.tag)==null?void 0:_.style)??o.style??"inherit","style-job-heading":((g=o.jobHeading)==null?void 0:g.style)??o.style??"inherit","weight-tag":((w=(b=o.tag)==null?void 0:b.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())??((S=o.weight)==null?void 0:S.toString())??"inherit","style-input":((C=o.input)==null?void 0:C.style)??o.style??"inherit","weight-input":((P=(O=o.input)==null?void 0:O.weight)==null?void 0:P.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"):vn,"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":vn,"radius-app":Ce(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Ce(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Ce(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Ce(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Ce(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Ce(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Ce(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":Ce(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"?vn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?vn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Ce(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":Ce(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),nu=Ql({prefix:"i-"}),ru=e=>{const t=tu.from({theme:e.theme,getToken:nu}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
18
18
  ${n.concat(n).join(`
19
19
  `)}
20
- }`},Gr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const Yr=e=>{var n,r,o;const t=[e.baseKey];e.state.query&&t.push(`q=${e.state.query}`),((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}`);for(const i in e.state.filters){const a=e.state.filters[i];if(!a)continue;const s=a.select==="many"?(o=a.value)==null?void 0:o.sort().join("|"):a.value;t.push(`${i}=${s}`)}return t.sort().join("::")};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function be(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 ou(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ds(...e){return t=>e.forEach(n=>ou(n,t))}function ke(...e){return H(ds(...e),e)}function Oo(e,t=[]){let n=[];function r(i,a){const s=lt(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:f,...m}=l,v=(h==null?void 0:h[e][c])||s,_=X(()=>m,Object.values(m));return E(v.Provider,{value:_},f)}function p(l,h){const f=(h==null?void 0:h[e][c])||s,m=tt(f);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,p]}const o=()=>{const i=n.map(a=>lt(a));return function(s){const c=(s==null?void 0:s[e])||i;return X(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,iu(o,...t)]}function iu(...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 X(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const At=globalThis!=null&&globalThis.document?Te:()=>{},au=Qa["useId".toString()]||(()=>{});let su=0;function Sn(e){const[t,n]=T(au());return At(()=>{e||n(r=>r??String(su++))},[e]),e||(t?`radix-${t}`:"")}function Je(e){const t=k(e);return R(()=>{t.current=e}),X(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function fs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=cu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Je(n),c=H(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 cu({defaultProp:e,onChange:t}){const n=T(e),[r]=n,o=k(r),i=Je(t);return R(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Gn=Y((e,t)=>{const{children:n,...r}=e,o=Oe.toArray(n),i=o.find(uu);if(i){const a=i.props.children,s=o.map(c=>c===i?Oe.count(a)>1?Oe.only(null):Ve(a)?a.props.children:null:c);return E(Zr,G({},r,{ref:t}),Ve(a)?kt(a,void 0,s):null)}return E(Zr,G({},r,{ref:t}),n)});Gn.displayName="Slot";const Zr=Y((e,t)=>{const{children:n,...r}=e;return Ve(n)?kt(n,{...du(r,n.props),ref:t?ds(t,n.ref):n.ref}):Oe.count(n)>1?Oe.only(null):null});Zr.displayName="SlotClone";const lu=({children:e})=>E(M,null,e);function uu(e){return Ve(e)&&e.type===lu}function du(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 fu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=fu.reduce((e,t)=>{const n=Y((r,o)=>{const{asChild:i,...a}=r,s=i?Gn:t;return R(()=>{window[Symbol.for("radix-ui")]=!0},[]),E(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pu(e,t){e&&on(()=>e.dispatchEvent(t))}function hu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);R(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jr="dismissableLayer.update",gu="dismissableLayer.pointerDownOutside",vu="dismissableLayer.focusOutside";let wi;const mu=lt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ps=Y((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,p=tt(mu),[l,h]=T(null),f=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=T({}),v=ke(t,C=>h(C)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(g),w=l?_.indexOf(l):-1,y=p.layersWithOutsidePointerEventsDisabled.size>0,x=w>=b,$=_u(C=>{const O=C.target,P=[...p.branches].some(L=>L.contains(O));!x||P||(i==null||i(C),s==null||s(C),C.defaultPrevented||c==null||c())},f),S=yu(C=>{const O=C.target;[...p.branches].some(L=>L.contains(O))||(a==null||a(C),s==null||s(C),C.defaultPrevented||c==null||c())},f);return hu(C=>{w===p.layers.size-1&&(o==null||o(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},f),R(()=>{if(l)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(wi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(l)),p.layers.add(l),xi(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=wi)}},[l,f,r,p]),R(()=>()=>{l&&(p.layers.delete(l),p.layersWithOutsidePointerEventsDisabled.delete(l),xi())},[l,p]),R(()=>{const C=()=>m({});return document.addEventListener(Jr,C),()=>document.removeEventListener(Jr,C)},[]),E(nt.div,G({},d,{ref:v,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,S.onFocusCapture),onBlurCapture:be(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,$.onPointerDownCapture)}))});function _u(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=k(!1),o=k(()=>{});return R(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){hs(gu,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 yu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=k(!1);return R(()=>{const o=i=>{i.target&&!r.current&&hs(vu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xi(){const e=new CustomEvent(Jr);document.dispatchEvent(e)}function hs(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?pu(o,i):o.dispatchEvent(i)}const xr="focusScope.autoFocusOnMount",$r="focusScope.autoFocusOnUnmount",$i={bubbles:!1,cancelable:!0},gs=Y((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=T(null),d=Je(o),p=Je(i),l=k(null),h=ke(t,v=>c(v)),f=k({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R(()=>{if(r){let v=function(w){if(f.paused||!s)return;const y=w.target;s.contains(y)?l.current=y:Ke(l.current,{select:!0})},_=function(w){if(f.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||Ke(l.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&Ke(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),b.disconnect()}}},[r,s,f.paused]),R(()=>{if(s){Ei.add(f);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(xr,$i);s.addEventListener(xr,d),s.dispatchEvent(g),g.defaultPrevented||(bu(Eu(vs(s)),{select:!0}),document.activeElement===v&&Ke(s))}return()=>{s.removeEventListener(xr,d),setTimeout(()=>{const g=new CustomEvent($r,$i);s.addEventListener($r,p),s.dispatchEvent(g),g.defaultPrevented||Ke(v??document.body,{select:!0}),s.removeEventListener($r,p),Ei.remove(f)},0)}}},[s,d,p,f]);const m=H(v=>{if(!n&&!r||f.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(_&&g){const b=v.currentTarget,[w,y]=wu(b);w&&y?!v.shiftKey&&g===y?(v.preventDefault(),n&&Ke(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ke(y,{select:!0})):g===b&&v.preventDefault()}},[n,r,f.paused]);return E(nt.div,G({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function bu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ke(r,{select:t}),document.activeElement!==n)return}function wu(e){const t=vs(e),n=Ci(t,e),r=Ci(t.reverse(),e);return[n,r]}function vs(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 Ci(e,t){for(const n of e)if(!xu(n,{upTo:t}))return n}function xu(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 $u(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$u(e)&&t&&e.select()}}const Ei=Cu();function Cu(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Si(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Eu(e){return e.filter(t=>t.tagName!=="A")}const ms=Y((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?an.createPortal(E(nt.div,G({},o,{ref:t})),r):null});function Su(e,t){return rn((n,r)=>{const o=t[n][r];return o??n},e)}const Pt=e=>{const{present:t,children:n}=e,r=Ou(t),o=typeof n=="function"?n({present:r.isPresent}):Oe.only(n),i=ke(r.ref,o.ref);return typeof n=="function"||r.isPresent?kt(o,{ref:i}):null};Pt.displayName="Presence";function Ou(e){const[t,n]=T(),r=k({}),o=k(e),i=k("none"),a=e?"mounted":"unmounted",[s,c]=Su(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R(()=>{const d=mn(r.current);i.current=s==="mounted"?d:"none"},[s]),At(()=>{const d=r.current,p=o.current;if(p!==e){const h=i.current,f=mn(d);e?c("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(p&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),At(()=>{if(t){const d=l=>{const f=mn(r.current).includes(l.animationName);l.target===t&&f&&on(()=>c("ANIMATION_END"))},p=l=>{l.target===t&&(i.current=mn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:H(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function mn(e){return(e==null?void 0:e.animationName)||"none"}let Cr=0;function _s(){R(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Oi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Oi()),Cr++,()=>{Cr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Cr--}},[])}function Oi(){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 Ge=function(){return Ge=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},Ge.apply(this,arguments)};function Au(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 Tu(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 On="right-scroll-bar-position",An="width-before-scroll-bar",ku="with-scroll-bars-hidden",Pu="--removed-body-scroll-bar-size";function Er(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ru(e,t){var n=T(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 Du=typeof window<"u"?Te:R,Ai=new WeakMap;function Nu(e,t){var n=Ru(t||null,function(r){return e.forEach(function(o){return Er(o,r)})});return Du(function(){var r=Ai.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Er(s,null)}),i.forEach(function(s){o.has(s)||Er(s,a)})}Ai.set(n,e)},[e]),n}var Ln=function(){return Ln=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},Ln.apply(this,arguments)};function Mu(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 Lu(e){return e}function Iu(e,t){t===void 0&&(t=Lu);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 p=a;a=[],p.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return o}function Fu(e){e===void 0&&(e={});var t=Iu(null);return t.options=Ln({async:!0,ssr:!1},e),t}var ys=function(e){var t=e.sideCar,n=Mu(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 E(r,Ln({},n))};ys.isSideCarExport=!0;function ju(e,t){return e.useMedium(t),ys}var bs=Fu(),Sr=function(){},Yn=Y(function(e,t){var n=k(null),r=T({onScrollCapture:Sr,onWheelCapture:Sr,onTouchMoveCapture:Sr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,l=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,v=e.allowPinchZoom,_=e.as,g=_===void 0?"div":_,b=Au(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=Nu([n,t]),x=Ge(Ge({},b),o);return E(M,null,p&&E(w,{sideCar:bs,removeScrollBar:d,shards:l,noIsolation:f,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?kt(Oe.only(s),Ge(Ge({},x),{ref:y})):E(g,Ge({},x,{className:c,ref:y}),s))});Yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yn.classNames={fullWidth:An,zeroRight:On};var Ti,Vu=function(){if(Ti)return Ti;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vu();return t&&e.setAttribute("nonce",t),e}function Wu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Uu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hu())&&(Wu(t,n),Uu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bu=function(){var e=zu();return function(t,n){R(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ws=function(){var e=Bu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qu={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},Ku=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[Or(n),Or(r),Or(o)]},Gu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qu;var t=Ku(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])}},Yu=ws(),bt="data-scroll-locked",Zu=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
21
- .`.concat(ku,` {
20
+ }`},Gr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const Yr=e=>{var n,r,o;const t=[e.baseKey];e.state.query&&t.push(`q=${e.state.query}`),((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}`);for(const i in e.state.filters){const a=e.state.filters[i];if(!a)continue;const s=a.select==="many"?(o=a.value)==null?void 0:o.sort().join("|"):a.value;t.push(`${i}=${s}`)}return t.sort().join("::")};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function be(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 ou(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ds(...e){return t=>e.forEach(n=>ou(n,t))}function Te(...e){return H(ds(...e),e)}function Oo(e,t=[]){let n=[];function r(i,a){const s=ut(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:f,...m}=l,v=(h==null?void 0:h[e][c])||s,_=X(()=>m,Object.values(m));return E(v.Provider,{value:_},f)}function p(l,h){const f=(h==null?void 0:h[e][c])||s,m=tt(f);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,p]}const o=()=>{const i=n.map(a=>ut(a));return function(s){const c=(s==null?void 0:s[e])||i;return X(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,iu(o,...t)]}function iu(...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 X(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const At=globalThis!=null&&globalThis.document?ke:()=>{},au=Qa["useId".toString()]||(()=>{});let su=0;function Sn(e){const[t,n]=k(au());return At(()=>{e||n(r=>r??String(su++))},[e]),e||(t?`radix-${t}`:"")}function Je(e){const t=T(e);return R(()=>{t.current=e}),X(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function fs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=cu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Je(n),c=H(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 cu({defaultProp:e,onChange:t}){const n=k(e),[r]=n,o=T(r),i=Je(t);return R(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Gn=Y((e,t)=>{const{children:n,...r}=e,o=Oe.toArray(n),i=o.find(uu);if(i){const a=i.props.children,s=o.map(c=>c===i?Oe.count(a)>1?Oe.only(null):Ve(a)?a.props.children:null:c);return E(Zr,G({},r,{ref:t}),Ve(a)?Tt(a,void 0,s):null)}return E(Zr,G({},r,{ref:t}),n)});Gn.displayName="Slot";const Zr=Y((e,t)=>{const{children:n,...r}=e;return Ve(n)?Tt(n,{...du(r,n.props),ref:t?ds(t,n.ref):n.ref}):Oe.count(n)>1?Oe.only(null):null});Zr.displayName="SlotClone";const lu=({children:e})=>E(M,null,e);function uu(e){return Ve(e)&&e.type===lu}function du(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 fu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=fu.reduce((e,t)=>{const n=Y((r,o)=>{const{asChild:i,...a}=r,s=i?Gn:t;return R(()=>{window[Symbol.for("radix-ui")]=!0},[]),E(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pu(e,t){e&&on(()=>e.dispatchEvent(t))}function hu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);R(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jr="dismissableLayer.update",gu="dismissableLayer.pointerDownOutside",vu="dismissableLayer.focusOutside";let wi;const mu=ut({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ps=Y((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,p=tt(mu),[l,h]=k(null),f=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=k({}),v=Te(t,C=>h(C)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(g),w=l?_.indexOf(l):-1,y=p.layersWithOutsidePointerEventsDisabled.size>0,x=w>=b,$=_u(C=>{const O=C.target,P=[...p.branches].some(L=>L.contains(O));!x||P||(i==null||i(C),s==null||s(C),C.defaultPrevented||c==null||c())},f),S=yu(C=>{const O=C.target;[...p.branches].some(L=>L.contains(O))||(a==null||a(C),s==null||s(C),C.defaultPrevented||c==null||c())},f);return hu(C=>{w===p.layers.size-1&&(o==null||o(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},f),R(()=>{if(l)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(wi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(l)),p.layers.add(l),xi(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=wi)}},[l,f,r,p]),R(()=>()=>{l&&(p.layers.delete(l),p.layersWithOutsidePointerEventsDisabled.delete(l),xi())},[l,p]),R(()=>{const C=()=>m({});return document.addEventListener(Jr,C),()=>document.removeEventListener(Jr,C)},[]),E(nt.div,G({},d,{ref:v,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,S.onFocusCapture),onBlurCapture:be(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,$.onPointerDownCapture)}))});function _u(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=T(!1),o=T(()=>{});return R(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){hs(gu,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 yu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=T(!1);return R(()=>{const o=i=>{i.target&&!r.current&&hs(vu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xi(){const e=new CustomEvent(Jr);document.dispatchEvent(e)}function hs(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?pu(o,i):o.dispatchEvent(i)}const xr="focusScope.autoFocusOnMount",$r="focusScope.autoFocusOnUnmount",$i={bubbles:!1,cancelable:!0},gs=Y((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=k(null),d=Je(o),p=Je(i),l=T(null),h=Te(t,v=>c(v)),f=T({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R(()=>{if(r){let v=function(w){if(f.paused||!s)return;const y=w.target;s.contains(y)?l.current=y:Ke(l.current,{select:!0})},_=function(w){if(f.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||Ke(l.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&Ke(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),b.disconnect()}}},[r,s,f.paused]),R(()=>{if(s){Ei.add(f);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(xr,$i);s.addEventListener(xr,d),s.dispatchEvent(g),g.defaultPrevented||(bu(Eu(vs(s)),{select:!0}),document.activeElement===v&&Ke(s))}return()=>{s.removeEventListener(xr,d),setTimeout(()=>{const g=new CustomEvent($r,$i);s.addEventListener($r,p),s.dispatchEvent(g),g.defaultPrevented||Ke(v??document.body,{select:!0}),s.removeEventListener($r,p),Ei.remove(f)},0)}}},[s,d,p,f]);const m=H(v=>{if(!n&&!r||f.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(_&&g){const b=v.currentTarget,[w,y]=wu(b);w&&y?!v.shiftKey&&g===y?(v.preventDefault(),n&&Ke(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ke(y,{select:!0})):g===b&&v.preventDefault()}},[n,r,f.paused]);return E(nt.div,G({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function bu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ke(r,{select:t}),document.activeElement!==n)return}function wu(e){const t=vs(e),n=Ci(t,e),r=Ci(t.reverse(),e);return[n,r]}function vs(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 Ci(e,t){for(const n of e)if(!xu(n,{upTo:t}))return n}function xu(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 $u(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$u(e)&&t&&e.select()}}const Ei=Cu();function Cu(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Si(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Eu(e){return e.filter(t=>t.tagName!=="A")}const ms=Y((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?an.createPortal(E(nt.div,G({},o,{ref:t})),r):null});function Su(e,t){return rn((n,r)=>{const o=t[n][r];return o??n},e)}const Pt=e=>{const{present:t,children:n}=e,r=Ou(t),o=typeof n=="function"?n({present:r.isPresent}):Oe.only(n),i=Te(r.ref,o.ref);return typeof n=="function"||r.isPresent?Tt(o,{ref:i}):null};Pt.displayName="Presence";function Ou(e){const[t,n]=k(),r=T({}),o=T(e),i=T("none"),a=e?"mounted":"unmounted",[s,c]=Su(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R(()=>{const d=mn(r.current);i.current=s==="mounted"?d:"none"},[s]),At(()=>{const d=r.current,p=o.current;if(p!==e){const h=i.current,f=mn(d);e?c("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(p&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),At(()=>{if(t){const d=l=>{const f=mn(r.current).includes(l.animationName);l.target===t&&f&&on(()=>c("ANIMATION_END"))},p=l=>{l.target===t&&(i.current=mn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:H(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function mn(e){return(e==null?void 0:e.animationName)||"none"}let Cr=0;function _s(){R(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Oi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Oi()),Cr++,()=>{Cr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Cr--}},[])}function Oi(){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 Ge=function(){return Ge=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},Ge.apply(this,arguments)};function Au(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 ku(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 On="right-scroll-bar-position",An="width-before-scroll-bar",Tu="with-scroll-bars-hidden",Pu="--removed-body-scroll-bar-size";function Er(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ru(e,t){var n=k(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 Du=typeof window<"u"?ke:R,Ai=new WeakMap;function Nu(e,t){var n=Ru(t||null,function(r){return e.forEach(function(o){return Er(o,r)})});return Du(function(){var r=Ai.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Er(s,null)}),i.forEach(function(s){o.has(s)||Er(s,a)})}Ai.set(n,e)},[e]),n}var Ln=function(){return Ln=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},Ln.apply(this,arguments)};function Mu(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 Lu(e){return e}function Iu(e,t){t===void 0&&(t=Lu);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 p=a;a=[],p.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return o}function Fu(e){e===void 0&&(e={});var t=Iu(null);return t.options=Ln({async:!0,ssr:!1},e),t}var ys=function(e){var t=e.sideCar,n=Mu(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 E(r,Ln({},n))};ys.isSideCarExport=!0;function ju(e,t){return e.useMedium(t),ys}var bs=Fu(),Sr=function(){},Yn=Y(function(e,t){var n=T(null),r=k({onScrollCapture:Sr,onWheelCapture:Sr,onTouchMoveCapture:Sr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,l=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,v=e.allowPinchZoom,_=e.as,g=_===void 0?"div":_,b=Au(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=Nu([n,t]),x=Ge(Ge({},b),o);return E(M,null,p&&E(w,{sideCar:bs,removeScrollBar:d,shards:l,noIsolation:f,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?Tt(Oe.only(s),Ge(Ge({},x),{ref:y})):E(g,Ge({},x,{className:c,ref:y}),s))});Yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yn.classNames={fullWidth:An,zeroRight:On};var ki,Vu=function(){if(ki)return ki;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vu();return t&&e.setAttribute("nonce",t),e}function Wu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Uu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hu())&&(Wu(t,n),Uu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bu=function(){var e=zu();return function(t,n){R(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ws=function(){var e=Bu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qu={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},Ku=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[Or(n),Or(r),Or(o)]},Gu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qu;var t=Ku(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])}},Yu=ws(),wt="data-scroll-locked",Zu=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
21
+ .`.concat(Tu,` {
22
22
  overflow: hidden `).concat(r,`;
23
23
  padding-right: `).concat(s,"px ").concat(r,`;
24
24
  }
25
- body[`).concat(bt,`] {
25
+ body[`).concat(wt,`] {
26
26
  overflow: hidden `).concat(r,`;
27
27
  overscroll-behavior: contain;
28
28
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -51,10 +51,10 @@ ${n.concat(n).join(`
51
51
  margin-right: 0 `).concat(r,`;
52
52
  }
53
53
 
54
- body[`).concat(bt,`] {
54
+ body[`).concat(wt,`] {
55
55
  `).concat(Pu,": ").concat(s,`px;
56
56
  }
57
- `)},ki=function(){var e=parseInt(document.body.getAttribute(bt)||"0",10);return isFinite(e)?e:0},Ju=function(){R(function(){return document.body.setAttribute(bt,(ki()+1).toString()),function(){var e=ki()-1;e<=0?document.body.removeAttribute(bt):document.body.setAttribute(bt,e.toString())}},[])},Xu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ju();var i=X(function(){return Gu(o)},[o]);return E(Yu,{styles:Zu(i,!t,o,n?"":"!important")})},Xr=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return Xr=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Xr=!1}var ht=Xr?{passive:!1}:!1,Qu=function(e){return e.tagName==="TEXTAREA"},xs=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qu(e)&&n[t]==="visible")},ed=function(e){return xs(e,"overflowY")},td=function(e){return xs(e,"overflowX")},Pi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=$s(e,n);if(r){var o=Cs(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$s=function(e,t){return e==="v"?ed(t):td(t)},Cs=function(e,t){return e==="v"?nd(t):rd(t)},od=function(e,t){return e==="h"&&t==="rtl"?-1:1},id=function(e,t,n,r,o){var i=od(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,p=a>0,l=0,h=0;do{var f=Cs(e,s),m=f[0],v=f[1],_=f[2],g=v-_-i*m;(m||g)&&$s(e,s)&&(l+=g,h+=m),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&l===0||!o&&a>l)||!p&&(o&&h===0||!o&&-a>h))&&(d=!0),d},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ri=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},ad=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sd=function(e){return`
57
+ `)},Ti=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},Ju=function(){R(function(){return document.body.setAttribute(wt,(Ti()+1).toString()),function(){var e=Ti()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}},[])},Xu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ju();var i=X(function(){return Gu(o)},[o]);return E(Yu,{styles:Zu(i,!t,o,n?"":"!important")})},Xr=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return Xr=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Xr=!1}var gt=Xr?{passive:!1}:!1,Qu=function(e){return e.tagName==="TEXTAREA"},xs=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qu(e)&&n[t]==="visible")},ed=function(e){return xs(e,"overflowY")},td=function(e){return xs(e,"overflowX")},Pi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=$s(e,n);if(r){var o=Cs(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$s=function(e,t){return e==="v"?ed(t):td(t)},Cs=function(e,t){return e==="v"?nd(t):rd(t)},od=function(e,t){return e==="h"&&t==="rtl"?-1:1},id=function(e,t,n,r,o){var i=od(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,p=a>0,l=0,h=0;do{var f=Cs(e,s),m=f[0],v=f[1],_=f[2],g=v-_-i*m;(m||g)&&$s(e,s)&&(l+=g,h+=m),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&l===0||!o&&a>l)||!p&&(o&&h===0||!o&&-a>h))&&(d=!0),d},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ri=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},ad=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sd=function(e){return`
58
58
  .block-interactivity-`.concat(e,` {pointer-events: none;}
59
59
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
60
- `)},cd=0,gt=[];function ld(e){var t=k([]),n=k([0,0]),r=k(),o=T(cd++)[0],i=T(function(){return ws()})[0],a=k(e);R(function(){a.current=e},[e]),R(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Tu([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H(function(v,_){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var g=yn(v),b=n.current,w="deltaX"in v?v.deltaX:b[0]-g[0],y="deltaY"in v?v.deltaY:b[1]-g[1],x,$=v.target,S=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in v&&S==="h"&&$.type==="range")return!1;var C=Pi(S,$);if(!C)return!0;if(C?x=S:(x=S==="v"?"h":"v",C=Pi(S,$)),!C)return!1;if(!r.current&&"changedTouches"in v&&(w||y)&&(r.current=x),!x)return!0;var O=r.current||x;return id(O,_,v,O==="h"?w:y,!0)},[]),c=H(function(v){var _=v;if(!(!gt.length||gt[gt.length-1]!==i)){var g="deltaY"in _?Ri(_):yn(_),b=t.current.filter(function(x){return x.name===_.type&&x.target===_.target&&ad(x.delta,g)})[0];if(b&&b.should){_.cancelable&&_.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(x){return x.contains(_.target)}),y=w.length>0?s(_,w[0]):!a.current.noIsolation;y&&_.cancelable&&_.preventDefault()}}},[]),d=H(function(v,_,g,b){var w={name:v,delta:_,target:g,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),p=H(function(v){n.current=yn(v),r.current=void 0},[]),l=H(function(v){d(v.type,Ri(v),v.target,s(v,e.lockRef.current))},[]),h=H(function(v){d(v.type,yn(v),v.target,s(v,e.lockRef.current))},[]);R(function(){return gt.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ht),document.addEventListener("touchmove",c,ht),document.addEventListener("touchstart",p,ht),function(){gt=gt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,ht),document.removeEventListener("touchmove",c,ht),document.removeEventListener("touchstart",p,ht)}},[]);var f=e.removeScrollBar,m=e.inert;return E(M,null,m?E(i,{styles:sd(o)}):null,f?E(Xu,{gapMode:"margin"}):null)}const ud=ju(bs,ld);var Es=Y(function(e,t){return E(Yn,Ge({},e,{ref:t,sideCar:ud}))});Es.classNames=Yn.classNames;const Ss=Es;var dd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,bn=new WeakMap,wn={},Ar=0,Os=function(e){return e&&(e.host||Os(e.parentNode))},fd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Os(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})},pd=function(e,t,n,r){var o=fd(t,Array.isArray(e)?e:[e]);wn[n]||(wn[n]=new WeakMap);var i=wn[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 p=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))p(h);else try{var f=h.getAttribute(r),m=f!==null&&f!=="false",v=(vt.get(h)||0)+1,_=(i.get(h)||0)+1;vt.set(h,v),i.set(h,_),a.push(h),v===1&&m&&bn.set(h,!0),_===1&&h.setAttribute(n,"true"),m||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return p(t),s.clear(),Ar++,function(){a.forEach(function(l){var h=vt.get(l)-1,f=i.get(l)-1;vt.set(l,h),i.set(l,f),h||(bn.has(l)||l.removeAttribute(r),bn.delete(l)),f||l.removeAttribute(n)}),Ar--,Ar||(vt=new WeakMap,vt=new WeakMap,bn=new WeakMap,wn={})}},As=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||dd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),pd(r,o,n,"aria-hidden")):function(){return null}};const Ts="Dialog",[ks,Zm]=Oo(Ts),[hd,rt]=ks(Ts),gd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=k(null),c=k(null),[d=!1,p]=fs({prop:r,defaultProp:o,onChange:i});return E(hd,{scope:t,triggerRef:s,contentRef:c,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:d,onOpenChange:p,onOpenToggle:H(()=>p(l=>!l),[p]),modal:a},n)},vd="DialogTrigger",md=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(vd,n),i=ke(t,o.triggerRef);return E(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ao(o.open)},r,{ref:i,onClick:be(e.onClick,o.onOpenToggle)}))}),Ps="DialogPortal",[_d,Rs]=ks(Ps,{forceMount:void 0}),yd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(Ps,t);return E(_d,{scope:t,forceMount:n},Oe.map(r,a=>E(Pt,{present:n||i.open},E(ms,{asChild:!0,container:o},a))))},Qr="DialogOverlay",bd=Y((e,t)=>{const n=Rs(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Qr,e.__scopeDialog);return i.modal?E(Pt,{present:r||i.open},E(wd,G({},o,{ref:t}))):null}),wd=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Qr,n);return E(Ss,{as:Gn,allowPinchZoom:!0,shards:[o.contentRef]},E(nt.div,G({"data-state":Ao(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zt="DialogContent",xd=Y((e,t)=>{const n=Rs(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Zt,e.__scopeDialog);return E(Pt,{present:r||i.open},i.modal?E($d,G({},o,{ref:t})):E(Cd,G({},o,{ref:t})))}),$d=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=k(null),o=ke(t,n.contentRef,r);return R(()=>{const i=r.current;if(i)return As(i)},[]),E(Ds,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())}))}),Cd=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=k(!1),o=k(!1);return E(Ds,G({},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?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Ds=Y((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Zt,n),c=k(null),d=ke(t,c);return _s(),E(M,null,E(gs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},E(ps,G({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ao(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function Ao(e){return e?"open":"closed"}const Ed=gd,Sd=md,Od=yd,Ad=bd,Td=xd,kd=["top","right","bottom","left"],Se=Math.min,se=Math.max,In=Math.round,xn=Math.floor,Xe=e=>({x:e,y:e}),Pd={left:"right",right:"left",bottom:"top",top:"bottom"},Rd={start:"end",end:"start"};function eo(e,t,n){return se(e,Se(t,n))}function We(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function To(e){return e==="x"?"y":"x"}function ko(e){return e==="y"?"height":"width"}function Qe(e){return["top","bottom"].includes(Ue(e))?"y":"x"}function Po(e){return To(Qe(e))}function Dd(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=Po(e),i=ko(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Fn(a)),[a,Fn(a)]}function Nd(e){const t=Fn(e);return[to(e),t,to(t)]}function to(e){return e.replace(/start|end/g,t=>Rd[t])}function Md(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Ld(e,t,n,r){const o=Rt(e);let i=Md(Ue(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(to)))),i}function Fn(e){return e.replace(/left|right|bottom|top/g,t=>Pd[t])}function Id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ns(e){return typeof e!="number"?Id(e):{top:e,right:e,bottom:e,left:e}}function jn(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 Ni(e,t,n){let{reference:r,floating:o}=e;const i=Qe(t),a=Po(t),s=ko(a),c=Ue(t),d=i==="y",p=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 f;switch(c){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(Rt(t)){case"start":f[a]-=h*(n&&d?-1:1);break;case"end":f[a]+=h*(n&&d?-1:1);break}return f}const Fd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:l}=Ni(d,r,c),h=r,f={},m=0;for(let v=0;v<s.length;v++){const{name:_,fn:g}=s[v],{x:b,y:w,data:y,reset:x}=await g({x:p,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});p=b??p,l=w??l,f={...f,[_]:{...f[_],...y}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(d=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:p,y:l}=Ni(d,h,c)),v=-1)}return{x:p,y:l,placement:h,strategy:o,middlewareData:f}};async function Jt(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:p="viewport",elementContext:l="floating",altBoundary:h=!1,padding:f=0}=We(t,e),m=Ns(f),_=s[h?l==="floating"?"reference":"floating":l],g=jn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:c})),b=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=jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:c}):b);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}const jd=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:p=0}=We(e,t)||{};if(d==null)return{};const l=Ns(p),h={x:n,y:r},f=Po(o),m=ko(f),v=await a.getDimensions(d),_=f==="y",g=_?"top":"left",b=_?"bottom":"right",w=_?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-h[f]-i.floating[m],x=h[f]-i.reference[f],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let S=$?$[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement($)))&&(S=s.floating[w]||i.floating[m]);const C=y/2-x/2,O=S/2-v[m]/2-1,P=Se(l[g],O),L=Se(l[b],O),D=P,j=S-v[m]-L,A=S/2-v[m]/2+C,N=eo(D,A,j),I=!c.arrow&&Rt(o)!=null&&A!==N&&i.reference[m]/2-(A<D?P:L)-v[m]/2<0,F=I?A<D?A-D:A-j:0;return{[f]:h[f]+F,data:{[f]:N,centerOffset:A-N-F,...I&&{alignmentOffset:F}},reset:I}}}),Vd=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:p=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,..._}=We(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Ue(o),b=Qe(s),w=Ue(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(d.floating)),x=h||(w||!v?[Fn(s)]:Nd(s)),$=m!=="none";!h&&$&&x.push(...Ld(s,v,m,y));const S=[s,...x],C=await Jt(t,_),O=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&O.push(C[g]),l){const A=Dd(o,a,y);O.push(C[A[0]],C[A[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(A=>A<=0)){var L,D;const A=(((L=i.flip)==null?void 0:L.index)||0)+1,N=S[A];if(N)return{data:{index:A,overflows:P},reset:{placement:N}};let I=(D=P.filter(F=>F.overflows[0]<=0).sort((F,W)=>F.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(f){case"bestFit":{var j;const F=(j=P.filter(W=>{if($){const Z=Qe(W.placement);return Z===b||Z==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Z=>Z>0).reduce((Z,Ft)=>Z+Ft,0)]).sort((W,Z)=>W[1]-Z[1])[0])==null?void 0:j[0];F&&(I=F);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Mi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Li(e){return kd.some(t=>e[t]>=0)}const Hd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=We(e,t);switch(r){case"referenceHidden":{const i=await Jt(t,{...o,elementContext:"reference"}),a=Mi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Li(a)}}}case"escaped":{const i=await Jt(t,{...o,altBoundary:!0}),a=Mi(i,n.floating);return{data:{escapedOffsets:a,escaped:Li(a)}}}default:return{}}}}};async function Wd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),s=Rt(n),c=Qe(n)==="y",d=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,l=We(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof m=="number"&&(f=s==="end"?m*-1:m),c?{x:f*p,y:h*d}:{x:h*d,y:f*p}}const Ud=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 Wd(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}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:g,y:b}=_;return{x:g,y:b}}},...c}=We(e,t),d={x:n,y:r},p=await Jt(t,c),l=Qe(Ue(o)),h=To(l);let f=d[h],m=d[l];if(i){const _=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=f+p[_],w=f-p[g];f=eo(b,f,w)}if(a){const _=l==="y"?"top":"left",g=l==="y"?"bottom":"right",b=m+p[_],w=m-p[g];m=eo(b,m,w)}const v=s.fn({...t,[h]:f,[l]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Bd=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}=We(e,t),p={x:n,y:r},l=Qe(o),h=To(l);let f=p[h],m=p[l];const v=We(s,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+_.mainAxis,x=i.reference[h]+i.reference[w]-_.mainAxis;f<y?f=y:f>x&&(f=x)}if(d){var g,b;const w=h==="y"?"width":"height",y=["top","left"].includes(Ue(o)),x=i.reference[l]-i.floating[w]+(y&&((g=a.offset)==null?void 0:g[l])||0)+(y?0:_.crossAxis),$=i.reference[l]+i.reference[w]+(y?0:((b=a.offset)==null?void 0:b[l])||0)-(y?_.crossAxis:0);m<x?m=x:m>$&&(m=$)}return{[h]:f,[l]:m}}}},qd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=We(e,t),c=await Jt(t,s),d=Ue(n),p=Rt(n),l=Qe(n)==="y",{width:h,height:f}=r.floating;let m,v;d==="top"||d==="bottom"?(m=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,m=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,g=h-c.left-c.right,b=Se(f-c[m],_),w=Se(h-c[v],g),y=!t.middlewareData.shift;let x=b,$=w;if(l?$=p||y?Se(w,g):g:x=p||y?Se(b,_):_,y&&!p){const C=se(c.left,0),O=se(c.right,0),P=se(c.top,0),L=se(c.bottom,0);l?$=h-2*(C!==0||O!==0?C+O:se(c.left,c.right)):x=f-2*(P!==0||L!==0?P+L:se(c.top,c.bottom))}await a({...t,availableWidth:$,availableHeight:x});const S=await o.getDimensions(i.floating);return h!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Ms(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Ms(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ms(e){return e instanceof Node||e instanceof le(e).Node}function xe(e){return e instanceof Element||e instanceof le(e).Element}function Ae(e){return e instanceof HTMLElement||e instanceof le(e).HTMLElement}function Ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Kd(e){return["table","td","th"].includes(Dt(e))}function Zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ro(e){const t=Do(),n=xe(e)?$e(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Gd(e){let t=et(e);for(;Ae(t)&&!Tt(t);){if(Ro(t))return t;if(Zn(t))return null;t=et(t)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tt(e){return["html","body","#document"].includes(Dt(e))}function $e(e){return le(e).getComputedStyle(e)}function Jn(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||ze(e);return Ii(t)?t.host:t}function Ls(e){const t=et(e);return Tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&sn(t)?t:Ls(t)}function Xt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ls(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=le(o);if(i){const s=no(a);return t.concat(a,a.visualViewport||[],sn(o)?o:[],s&&n?Xt(s):[])}return t.concat(o,Xt(o,[],n))}function no(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ae(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=In(n)!==i||In(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function No(e){return xe(e)?e:e.contextElement}function wt(e){const t=No(e);if(!Ae(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Is(t);let a=(i?In(n.width):n.width)/r,s=(i?In(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Yd=Xe(0);function Fs(e){const t=le(e);return!Do()||!t.visualViewport?Yd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=No(e);let a=Xe(1);t&&(r?xe(r)&&(a=wt(r)):a=wt(e));const s=Zd(i,n,r)?Fs(i):Xe(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,p=o.width/a.x,l=o.height/a.y;if(i){const h=le(i),f=r&&xe(r)?le(r):r;let m=h,v=no(m);for(;v&&r&&f!==m;){const _=wt(v),g=v.getBoundingClientRect(),b=$e(v),w=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*_.x,y=g.top+(v.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,d*=_.y,p*=_.x,l*=_.y,c+=w,d+=y,m=le(v),v=no(m)}}return jn({width:p,height:l,x:c,y:d})}function Jd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=ze(r),s=t?Zn(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Xe(1);const p=Xe(0),l=Ae(r);if((l||!l&&!i)&&((Dt(r)!=="body"||sn(a))&&(c=Jn(r)),Ae(r))){const h=dt(r);d=wt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x,y:n.y*d.y-c.scrollTop*d.y+p.y}}function Xd(e){return Array.from(e.getClientRects())}function js(e){return dt(ze(e)).left+Jn(e).scrollLeft}function Qd(e){const t=ze(e),n=Jn(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+js(e);const s=-n.scrollTop;return $e(r).direction==="rtl"&&(a+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function ef(e,t){const n=le(e),r=ze(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=Do();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function tf(e,t){const n=dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ae(e)?wt(e):Xe(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 Fi(e,t,n){let r;if(t==="viewport")r=ef(e,n);else if(t==="document")r=Qd(ze(e));else if(xe(t))r=tf(t,n);else{const o=Fs(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return jn(r)}function Vs(e,t){const n=et(e);return n===t||!xe(n)||Tt(n)?!1:$e(n).position==="fixed"||Vs(n,t)}function nf(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(s=>xe(s)&&Dt(s)!=="body"),o=null;const i=$e(e).position==="fixed";let a=i?et(e):e;for(;xe(a)&&!Tt(a);){const s=$e(a),c=Ro(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sn(a)&&!c&&Vs(e,a))?r=r.filter(p=>p!==a):o=s,a=et(a)}return t.set(e,r),r}function rf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Zn(t)?[]:nf(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((d,p)=>{const l=Fi(t,p,o);return d.top=se(l.top,d.top),d.right=Se(l.right,d.right),d.bottom=Se(l.bottom,d.bottom),d.left=se(l.left,d.left),d},Fi(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function of(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function af(e,t,n){const r=Ae(t),o=ze(t),i=n==="fixed",a=dt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xe(0);if(r||!r&&!i)if((Dt(t)!=="body"||sn(o))&&(s=Jn(t)),r){const l=dt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=js(o));const d=a.left+s.scrollLeft-c.x,p=a.top+s.scrollTop-c.y;return{x:d,y:p,width:a.width,height:a.height}}function Tr(e){return $e(e).position==="static"}function ji(e,t){return!Ae(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Hs(e,t){const n=le(e);if(Zn(e))return n;if(!Ae(e)){let o=et(e);for(;o&&!Tt(o);){if(xe(o)&&!Tr(o))return o;o=et(o)}return n}let r=ji(e,t);for(;r&&Kd(r)&&Tr(r);)r=ji(r,t);return r&&Tt(r)&&Tr(r)&&!Ro(r)?n:r||Gd(e)||n}const sf=async function(e){const t=this.getOffsetParent||Hs,n=this.getDimensions,r=await n(e.floating);return{reference:af(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cf(e){return $e(e).direction==="rtl"}const lf={convertOffsetParentRelativeRectToViewportRelativeRect:Jd,getDocumentElement:ze,getClippingRect:rf,getOffsetParent:Hs,getElementRects:sf,getClientRects:Xd,getDimensions:of,getScale:wt,isElement:xe,isRTL:cf};function uf(e,t){let n=null,r;const o=ze(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{left:d,top:p,width:l,height:h}=e.getBoundingClientRect();if(s||t(),!l||!h)return;const f=xn(p),m=xn(o.clientWidth-(d+l)),v=xn(o.clientHeight-(p+h)),_=xn(d),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-_+"px",threshold:se(0,Se(1,c))||1};let w=!0;function y(x){const $=x[0].intersectionRatio;if($!==c){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(y,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return a(!0),i}function df(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=No(e),p=o||i?[...d?Xt(d):[],...Xt(t)]:[];p.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const l=d&&s?uf(d,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(g=>{let[b]=g;b&&b.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),d&&!c&&f.observe(d),f.observe(t));let m,v=c?dt(e):null;c&&_();function _(){const g=dt(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,m=requestAnimationFrame(_)}return n(),()=>{var g;p.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),l==null||l(),(g=f)==null||g.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const ff=Ud,pf=zd,hf=Vd,gf=qd,vf=Hd,Vi=jd,mf=Bd,_f=(e,t,n)=>{const r=new Map,o={platform:lf,...n},i={...o.platform,_c:r};return Fd(e,t,{...o,platform:i})};var Tn=typeof document<"u"?Te:R;function Vn(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(!Vn(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)&&!Vn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ws(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hi(e,t){const n=Ws(e);return Math.round(t*n)/n}function Wi(e){const t=k(e);return Tn(()=>{t.current=e}),t}function yf(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,[p,l]=T({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=T(r);Vn(h,r)||f(r);const[m,v]=T(null),[_,g]=T(null),b=H(F=>{F!==$.current&&($.current=F,v(F))},[]),w=H(F=>{F!==S.current&&(S.current=F,g(F))},[]),y=i||m,x=a||_,$=k(null),S=k(null),C=k(p),O=c!=null,P=Wi(c),L=Wi(o),D=H(()=>{if(!$.current||!S.current)return;const F={placement:t,strategy:n,middleware:h};L.current&&(F.platform=L.current),_f($.current,S.current,F).then(W=>{const Z={...W,isPositioned:!0};j.current&&!Vn(C.current,Z)&&(C.current=Z,on(()=>{l(Z)}))})},[h,t,n,L]);Tn(()=>{d===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,l(F=>({...F,isPositioned:!1})))},[d]);const j=k(!1);Tn(()=>(j.current=!0,()=>{j.current=!1}),[]),Tn(()=>{if(y&&($.current=y),x&&(S.current=x),y&&x){if(P.current)return P.current(y,x,D);D()}},[y,x,D,P,O]);const A=X(()=>({reference:$,floating:S,setReference:b,setFloating:w}),[b,w]),N=X(()=>({reference:y,floating:x}),[y,x]),I=X(()=>{const F={position:n,left:0,top:0};if(!N.floating)return F;const W=Hi(N.floating,p.x),Z=Hi(N.floating,p.y);return s?{...F,transform:"translate("+W+"px, "+Z+"px)",...Ws(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:Z}},[n,s,N.floating,p.x,p.y]);return X(()=>({...p,update:D,refs:A,elements:N,floatingStyles:I}),[p,D,A,N,I])}const bf=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?Vi({element:r.current,padding:o}).fn(n):{}:r?Vi({element:r,padding:o}).fn(n):{}}}},wf=(e,t)=>({...ff(e),options:[e,t]}),xf=(e,t)=>({...pf(e),options:[e,t]}),$f=(e,t)=>({...mf(e),options:[e,t]}),Cf=(e,t)=>({...hf(e),options:[e,t]}),Ef=(e,t)=>({...gf(e),options:[e,t]}),Sf=(e,t)=>({...vf(e),options:[e,t]}),Of=(e,t)=>({...bf(e),options:[e,t]});function Af(e){const[t,n]=T(void 0);return At(()=>{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 Us="Popper",[zs,Bs]=Oo(Us),[Tf,qs]=zs(Us),kf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=T(null);return E(Tf,{scope:t,anchor:r,onAnchorChange:o},n)},Pf="PopperAnchor",Rf=Y((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qs(Pf,n),a=k(null),s=ke(t,a);return R(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E(nt.div,G({},o,{ref:s}))}),Ks="PopperContent",[Df,Jm]=zs(Ks),Nf=Y((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:p,side:l="bottom",sideOffset:h=0,align:f="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:_=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...S}=e,C=qs(Ks,p),[O,P]=T(null),L=ke(t,B=>P(B)),[D,j]=T(null),A=Af(D),N=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,I=(r=A==null?void 0:A.height)!==null&&r!==void 0?r:0,F=l+(f!=="center"?"-"+f:""),W=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(g)?g:[g],Ft=Z.length>0,he={padding:W,boundary:Z.filter(Mf),altBoundary:Ft},{refs:Be,floatingStyles:ot,placement:ln,isPositioned:Pe,middlewareData:Re}=yf({strategy:"fixed",placement:F,whileElementsMounted:(...B)=>df(...B,{animationFrame:x==="always"}),elements:{reference:C.anchor},middleware:[wf({mainAxis:h+I,alignmentAxis:m}),_&&xf({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?$f():void 0,...he}),_&&Cf({...he}),Ef({...he,apply:({elements:B,rects:ae,availableWidth:qe,availableHeight:ee})=>{const{width:re,height:ge}=ae.reference,at=B.floating.style;at.setProperty("--radix-popper-available-width",`${qe}px`),at.setProperty("--radix-popper-available-height",`${ee}px`),at.setProperty("--radix-popper-anchor-width",`${re}px`),at.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),D&&Of({element:D,padding:v}),Lf({arrowWidth:N,arrowHeight:I}),y&&Sf({strategy:"referenceHidden",...he})]}),[jt,or]=Gs(ln),pt=Je($);At(()=>{Pe&&(pt==null||pt())},[Pe,pt]);const it=(o=Re.arrow)===null||o===void 0?void 0:o.x,un=(i=Re.arrow)===null||i===void 0?void 0:i.y,U=((a=Re.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[z,te]=T();return At(()=>{O&&te(window.getComputedStyle(O).zIndex)},[O]),E("div",{ref:Be.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:Pe?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(s=Re.transformOrigin)===null||s===void 0?void 0:s.x,(c=Re.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},E(Df,{scope:p,placedSide:jt,onArrowChange:j,arrowX:it,arrowY:un,shouldHideArrow:U},E(nt.div,G({"data-side":jt,"data-align":or},S,{ref:L,style:{...S.style,animation:Pe?void 0:"none",opacity:(d=Re.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Mf(e){return e!==null}const Lf=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,f=l?0:e.arrowHeight,[m,v]=Gs(s),_={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,b=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return m==="bottom"?(w=l?_:`${g}px`,y=`${-f}px`):m==="top"?(w=l?_:`${g}px`,y=`${c.floating.height+f}px`):m==="right"?(w=`${-f}px`,y=l?_:`${b}px`):m==="left"&&(w=`${c.floating.width+f}px`,y=l?_:`${b}px`),{data:{x:w,y}}}});function Gs(e){const[t,n="center"]=e.split("-");return[t,n]}const If=kf,Ff=Rf,jf=Nf,Ys="Popover",[Zs,Xm]=Oo(Ys,[Bs]),Mo=Bs(),[Vf,Nt]=Zs(Ys),Hf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Mo(t),c=k(null),[d,p]=T(!1),[l=!1,h]=fs({prop:r,defaultProp:o,onChange:i});return E(If,s,E(Vf,{scope:t,contentId:Sn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:H(()=>h(f=>!f),[h]),hasCustomAnchor:d,onCustomAnchorAdd:H(()=>p(!0),[]),onCustomAnchorRemove:H(()=>p(!1),[]),modal:a},n))},Wf="PopoverTrigger",Uf=Y((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(Wf,n),i=Mo(n),a=ke(t,o.triggerRef),s=E(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qs(o.open)},r,{ref:a,onClick:be(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:E(Ff,G({asChild:!0},i),s)}),Js="PopoverPortal",[zf,Bf]=Zs(Js,{forceMount:void 0}),qf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Nt(Js,t);return E(zf,{scope:t,forceMount:n},E(Pt,{present:n||i.open},E(ms,{asChild:!0,container:o},r)))},Qt="PopoverContent",Kf=Y((e,t)=>{const n=Bf(Qt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Nt(Qt,e.__scopePopover);return E(Pt,{present:r||i.open},i.modal?E(Gf,G({},o,{ref:t})):E(Yf,G({},o,{ref:t})))}),Gf=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=k(null),o=ke(t,r),i=k(!1);return R(()=>{const a=r.current;if(a)return As(a)},[]),E(Ss,{as:Gn,allowPinchZoom:!0},E(Xs,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:be(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:be(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),Yf=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=k(!1),o=k(!1);return E(Xs,G({},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?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Xs=Y((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...l}=e,h=Nt(Qt,n),f=Mo(n);return _s(),E(gs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},E(ps,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},E(jf,G({"data-state":Qs(h.open),role:"dialog",id:h.contentId},f,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 Qs(e){return e?"open":"closed"}const Zf=Hf,Jf=Uf,Xf=qf,Qf=Kf,Ui=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},ep=(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=Ui(r.value),a=Ui(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},cn=pe({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}}),ec=pe({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"}}),tc=pe({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"}}}),nc=pe({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}}),tp=pe({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"}}}),np=({children:e,colorScheme:t})=>u("span",{class:tp({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),rp=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},op=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},ip=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},ap=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=ne(),s=nn(n()),c=X(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const f=s.data[t.key]??[];return Object.fromEntries(f.map(m=>[m.value,m.jobs]))}default:_t(s)}},[s,t.key]),d=rc(e),p=d.length>0,[l,h]=T();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.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:l,onInput:f=>h(f.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return u(Ze,{error:new Error(a("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((f,m)=>u("div",{style:{animationDelay:m*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},m))});case"revalidating":case"loaded":{const f=s.data[t.key]??[],m=l&&l.length>1?f.filter(g=>g.label.toLowerCase().includes(l.toLowerCase())):f,v=[];for(const g of m){if(g.label.length<1)continue;const b={...g,results:ip(c,g),disabled:op(c,g)};switch(t.results){case"only-available":b.disabled===!1&&v.push(b);break;default:v.push(b)}}return v.find(g=>!g.disabled)?u("ul",{class:ec(),children:ep(v,t.sortSuggestions).map(g=>{const b=d.includes(g.value);return u("li",{class:tc({type:"line"}),children:u("button",{type:"button",disabled:g.disabled,"data-filter":!0,"data-current-value":b?"true":void 0,onClick:()=>{switch(e.select){case"many":{const w=rp(d,g.value);o({select:"many",value:w});break}case"one":o({select:"one",value:b?void 0:g.value});break;default:_t(e)}},class:nc({active:b,disabled:g.disabled}),children:[u("span",{class:"max-w-full truncate",children:g.label})," ",u(np,{colorScheme:b?"accentStrong":"neutralStrong",children:g.results})]})},g.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:a("no_filter_options_available")})}default:_t(s)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:p&&u("button",{type:"button",class:je({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(Q,{"aria-hidden":!0,name:"x"})," ",a("clear")]})}),e.select==="many"&&r&&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:[d.length," ",a("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:je({variant:p?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(p?"done":"close")},p?"done":"close")})]})]})},zi=8,Bi={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"},qi=pe({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"}}}),Ki=pe({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"}}}),rc=e=>typeof e.value=="string"?[e.value]:e.value??[],sp=({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 min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},cp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:c})=>{const d=yc(r.key,Bi)?Bi[r.key]:void 0,p=r.icon??d??"filter",l=rc(t),h=l.length>0,f=us("(pointer: coarse)"),m=u(M,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(Q,{"aria-hidden":!0,class:"flex-none",name:p}),u("span",{class:"truncate",children:r.label})]}),u(Q,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(sp,{selectedValues:l})]}),v=u(ap,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?u(Ed,{open:e,onOpenChange:n,children:[u(Sd,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),onTouchStart:lp,children:m}),u(Od,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:[u(Ad,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Td,{class:Ki({mode:"mobile",class:Gr(s)}),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(Q,{name:p,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),v]})]})})]}):u(Zf,{open:e,onOpenChange:_=>n(_),modal:f,children:[u(Jf,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),children:m}),u(Xf,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:u(Qf,{side:"bottom",sideOffset:zi,align:"center",collisionPadding:zi,class:Ki({mode:"desktop",class:Gr(s)}),children:v})})})]})};function lp(){}const up=(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}},dp=({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:_t(e)}},fp=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s})=>{const{t:c}=ne(),[d,p]=T(void 0),l=X(()=>({filters:Wn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),h=nn(Yt(Yr({state:l,baseKey:"filters"}),()=>Yo({rpcClient:o,state:l}),Nn)),f=H(m=>()=>{const v={...t,filters:{...t.filters,[m]:l.filters[m]}};return Yt(Yr({state:v,baseKey:"filters"}),()=>Yo({rpcClient:o,state:v}),Nn)},[o,l.filters,t]);return h.queryState==="error"?u(Ze,{error:new Error(c("filters_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()}):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(m=>m.hidden!==!0).map(m=>{const v=d===m.key,_=t.filters[m.key]??{select:m.select,value:void 0},g=l.filters[m.key];g&&up(_,g);const b=x=>{const{newActiveKey:$,newValue:S}=dp({property:m,activeKey:d,value:x??g,properties:e,appliedFilters:t.filters});return p($),n(m.key,S)},w=x=>p(x?m.key:void 0),y=f(m.key);return u(qt,{Fallback:Ze,children:u(cp,{unfilteredQuery:h,active:v,property:m,onActiveChange:w,value:_,useQuery:y,onValueChange:b,theme:i,widgetId:s})},m.key)}),u("button",{type:"button",class:je({variant:"neutral"}),onClick:r,children:c("reset")}),a?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:a.params.config.label})]})}):null]})};function pp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xn=pp,hp=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,gp=hp,vp=gp,mp=typeof self=="object"&&self&&self.Object===Object&&self,_p=vp||mp||Function("return this")(),Qn=_p,yp=Qn,bp=function(){return yp.Date.now()},wp=bp,xp=/\s/;function $p(e){for(var t=e.length;t--&&xp.test(e.charAt(t)););return t}var Cp=$p,Ep=Cp,Sp=/^\s+/;function Op(e){return e&&e.slice(0,Ep(e)+1).replace(Sp,"")}var Ap=Op,Tp=Qn,kp=Tp.Symbol,Lo=kp,Gi=Lo,oc=Object.prototype,Pp=oc.hasOwnProperty,Rp=oc.toString,Ht=Gi?Gi.toStringTag:void 0;function Dp(e){var t=Pp.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var o=Rp.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),o}var Np=Dp,Mp=Object.prototype,Lp=Mp.toString;function Ip(e){return Lp.call(e)}var Fp=Ip,Yi=Lo,jp=Np,Vp=Fp,Hp="[object Null]",Wp="[object Undefined]",Zi=Yi?Yi.toStringTag:void 0;function Up(e){return e==null?e===void 0?Wp:Hp:Zi&&Zi in Object(e)?jp(e):Vp(e)}var ic=Up;function zp(e){return e!=null&&typeof e=="object"}var Bp=zp,qp=ic,Kp=Bp,Gp="[object Symbol]";function Yp(e){return typeof e=="symbol"||Kp(e)&&qp(e)==Gp}var er=Yp,Zp=Ap,Ji=Xn,Jp=er,Xi=0/0,Xp=/^[-+]0x[0-9a-f]+$/i,Qp=/^0b[01]+$/i,eh=/^0o[0-7]+$/i,th=parseInt;function nh(e){if(typeof e=="number")return e;if(Jp(e))return Xi;if(Ji(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ji(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zp(e);var n=Qp.test(e);return n||eh.test(e)?th(e.slice(2),n?2:8):Xp.test(e)?Xi:+e}var rh=nh,oh=Xn,kr=wp,Qi=rh,ih="Expected a function",ah=Math.max,sh=Math.min;function ch(e,t,n){var r,o,i,a,s,c,d=0,p=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(ih);t=Qi(t)||0,oh(n)&&(p=!!n.leading,l="maxWait"in n,i=l?ah(Qi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f($){var S=r,C=o;return r=o=void 0,d=$,a=e.apply(C,S),a}function m($){return d=$,s=setTimeout(g,t),p?f($):a}function v($){var S=$-c,C=$-d,O=t-S;return l?sh(O,i-C):O}function _($){var S=$-c,C=$-d;return c===void 0||S>=t||S<0||l&&C>=i}function g(){var $=kr();if(_($))return b($);s=setTimeout(g,v($))}function b($){return s=void 0,h&&r?f($):(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:b(kr())}function x(){var $=kr(),S=_($);if(r=arguments,o=this,c=$,S){if(s===void 0)return m(c);if(l)return clearTimeout(s),s=setTimeout(g,t),f(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=w,x.flush=y,x}var lh=ch;const uh=$o(lh),ro="|",ac=(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(ro)?r.defaultValue=o.split(ro):r.defaultValue=o}}}),n},sc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},cc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},dh=({searchParams:e})=>({properties:t})=>({filters:Wn(ac(t,e),"defaultValue"),mode:sc(e),geo:lc(e),page:kn(e.get("page"))??1,view:cc(e),query:e.get("query")??""}),fh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=zn({filters:e.filters,query:"",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(ro)):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")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},kn=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},lc=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=kn(t),i=kn(n),a=kn(r)??Hn(oo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?Hn(oo):a}},uc=(e,t=1e3)=>{const[n,r]=T(e),o=X(()=>uh(i=>r(i),t),[t]);return R(()=>{o(e)},[e,o]),n},ph=Y(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:c,inputProps:d,menuProps:p,query:l},h)=>{const[f,m]=T(!1),[v,_]=T(),{t:g}=ne(),b=k();R(()=>{var y;_((y=o[0])==null?void 0:y.id)},[o]);const w=y=>{i(y),m(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:h,disabled:e,"data-active":f?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:cn({size:"md"}),onFocus:()=>{c==null||c(),m(!0)},onBlur:()=>{b.current=window.setTimeout(()=>{s==null||s(),m(!1)},100)},value:l,onChange:y=>a(y.currentTarget.value),onKeyDown:y=>{switch(m(!0),y.key){case"ArrowDown":case"ArrowUp":{const x=y.key==="ArrowDown"?1:-1;y.preventDefault();const $=o.findIndex(C=>C.id===v);if($===-1)return;const S=o[$+x]??o[y.key==="ArrowDown"?0:o.length-1];if(!S)return;_(S.id);break}case"Enter":{if(y.preventDefault(),!v)return;i(v)}}},...d}),!t&&f&&!e&&o.length>0?u("ul",{className:ec({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:()=>{b.current&&clearTimeout(b.current)},...p,children:t?u("div",{role:"alert",children:g("geo_suggestions_error")}):o.map(y=>u("li",{class:tc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>_(y.id),class:nc({active:y.id===v,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(y.id),onKeyDown:x=>{x.key==="Enter"&&w(y.id)},children:y.label})},y.id))}):null]})}),hh=(e={})=>new Promise((t,n)=>{var r,o;if((r=e.signal)!=null&&r.aborted){n(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(i=>t(i.coords),i=>n(i),e),(o=e.signal)==null||o.addEventListener("abort",()=>{n(new DOMException("Aborted","AbortError"))},{once:!0})}),gh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},ea=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,vh=({onLocate:e,onError:t,signal:n})=>{const[r,o]=T("idle"),[i,a]=T(null),{t:s}=ne(),c=d=>{o("idle"),a(d),e(d)};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(ea){if(o("loading"),i)return c(i);hh({signal:n}).then(d=>{const p={lat:d.latitude,lng:d.longitude};c(p)}).catch(d=>{if(d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const p=gh[d.code];if(!p)return;const l=s(p);t(l)})}},"data-state":r,class:je({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!ea||r==="error",children:u(Q,{name:"target-location"})})},xt=pe({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}}),mh="https://api.mapbox.com/search/geocode/v6/forward",_h="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",yh=e=>atob(e).split("").reverse().join(""),bh=ce({features:tn(ye(ce({properties:ce({mapbox_id:K(),place_formatted:ut(K()),name_preferred:ut(K(),"Untitled location"),coordinates:ye(ce({latitude:_e(),longitude:_e()}),me(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),me(e=>e.properties)))}),wh=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),xh=async e=>{if(!e)return[];const t=new URL(mh);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",yh(_h));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=po(bh,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return wh(o,i=>i.name_preferred+i.place_formatted)},$h=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=ne(),[a,s]=T(""),[c,d]=T(),p=uc(a,500),[l,h]=T(new AbortController),f=Yt(p,xh,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:m,queryState:v,error:_}=nn(f),[g,b]=T("view"),w=k(null);return R(()=>{if(g==="edit"){if(!w.current)return;w.current.focus()}},[g]),u("div",{class:"relative flex-1",children:[g==="view"&&n?u("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:cn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{b("edit")},children:u("div",{class:xt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??i("location_provided")})}):u(ph,{ref:w,error:_,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{l.abort(),h(new AbortController)},onBlur:()=>{b("view"),s("")},onItemSelect:y=>{if(v!=="loaded")return;const x=m.find($=>$.mapbox_id===y);x&&(e(x.coordinates),b("view"),d(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(m==null?void 0:m.map(y=>({id:y.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:y.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:y.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(vh,{onLocate:y=>{b("view"),d(i("geo_my_location")),t({type:"provided",coords:y,radius:r})},onError:o,signal:l.signal}):u("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),d(void 0),t({radius:r,type:"provided"}),b("edit"),w.current&&(w.current.value="",w.current.focus())},class:je({variant:"neutral",size:"lg",icon:"only"}),children:u(Q,{name:"x"})})})]})},Ch=[.25,.5,1,3,5,10,15,20,30,40],oo=20,Hn=e=>e*1609.34,Eh=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Sh=ye(ce({type:Ee("provided"),lat:ut(ye(K(),me(Number))),lng:ut(ye(K(),me(Number))),radius:ye(K(),me(Number))}),me(e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0}))),Oh=({value:e,onValueChange:t,logger:n})=>{const{t:r}=ne(),o=qn(),i=(e==null?void 0:e.type)==="provided"?e.radius:Hn(oo),[a,s]=T();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),p=po(Sh,Object.fromEntries(d.entries()));if(!p.success){n.error(p.issues),s(p.issues[0].message);return}t(p.output)},class:"flex flex-col gap-2 md:flex-row",children:[u("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?u(M,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u($h,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:i,onValueChange:t,onSelect:c=>{s(void 0),t({type:"provided",radius:i,coords:c})},onError:s}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:o,children:r("geo_range_label")}),u("select",{id:o,name:"radius",class:cn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:i,onChange:c=>{s(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(c.currentTarget.value)})},children:Ch.map(c=>u("option",{value:Hn(c),class:"truncate",children:Eh.format(c)},c))}),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(Q,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(Q,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},Ah=2,Th=({value:e,onValueChange:t})=>{const[n,r]=T(e??""),o=n!==""&&n===e,{t:i}=ne();return R(()=>{r(e??"")},[e]),R(()=>{let a=n.trim();if(a.length<=Ah&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),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(Q,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:St({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:cn({hasValue:o,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:i("type_to_search_jobs"),value:n,onChange:a=>{r(a.currentTarget.value)}}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:u(Q,{name:"x"})})]})})},kh=({intervalMs:e,strings:t,class:n})=>{const[r,o]=T(0),[i,a]=T(!0),s=[...t,t[0]];return R(()=>{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:St("relative h-full w-full overflow-hidden",n),children:u("div",{className:St("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))})})},Ph=(e,t)=>{R(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},ta=3,Rh=({value:e,onValueChange:t,options:n})=>{const[r,o]=T(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=ne(),c=i.split("");R(()=>{o(e??"")},[e]);const[d,p]=T(0),l=k(null);return Ph(l,h=>{h.target instanceof HTMLInputElement&&p(h.target.scrollLeft)}),R(()=>{let h=r.trim();if(h.length<=ta&&(h=null),h===null){t("");return}const f=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(f)},[r,t]),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(Q,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:St("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:l,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:cn({hasValue:a,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:r,onChange:h=>{const f=h.currentTarget.value.trim();o(f)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=ta)return;h.preventDefault(),t(r)}}}),u("div",{"data-synced":a,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:i.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-d}px)`},children:c.map((h,f)=>u("span",{style:{animationDelay:`${f*300/c.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+f))}):n!=null&&n.suggestions?u(kh,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o(""),t("")},children:u(Q,{name:"x"})})]}),u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var Dh=Array.isArray,Io=Dh,Nh=Io,Mh=er,Lh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ih=/^\w*$/;function Fh(e,t){if(Nh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Mh(e)?!0:Ih.test(e)||!Lh.test(e)||t!=null&&e in Object(t)}var jh=Fh,Vh=ic,Hh=Xn,Wh="[object AsyncFunction]",Uh="[object Function]",zh="[object GeneratorFunction]",Bh="[object Proxy]";function qh(e){if(!Hh(e))return!1;var t=Vh(e);return t==Uh||t==zh||t==Wh||t==Bh}var Kh=qh,Gh=Qn,Yh=Gh["__core-js_shared__"],Zh=Yh,Pr=Zh,na=function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jh(e){return!!na&&na in e}var Xh=Jh,Qh=Function.prototype,eg=Qh.toString;function tg(e){if(e!=null){try{return eg.call(e)}catch{}try{return e+""}catch{}}return""}var ng=tg,rg=Kh,og=Xh,ig=Xn,ag=ng,sg=/[\\^$.*+?()[\]{}|]/g,cg=/^\[object .+?Constructor\]$/,lg=Function.prototype,ug=Object.prototype,dg=lg.toString,fg=ug.hasOwnProperty,pg=RegExp("^"+dg.call(fg).replace(sg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hg(e){if(!ig(e)||og(e))return!1;var t=rg(e)?pg:cg;return t.test(ag(e))}var gg=hg;function vg(e,t){return e==null?void 0:e[t]}var mg=vg,_g=gg,yg=mg;function bg(e,t){var n=yg(e,t);return _g(n)?n:void 0}var dc=bg,wg=dc,xg=wg(Object,"create"),tr=xg,ra=tr;function $g(){this.__data__=ra?ra(null):{},this.size=0}var Cg=$g;function Eg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sg=Eg,Og=tr,Ag="__lodash_hash_undefined__",Tg=Object.prototype,kg=Tg.hasOwnProperty;function Pg(e){var t=this.__data__;if(Og){var n=t[e];return n===Ag?void 0:n}return kg.call(t,e)?t[e]:void 0}var Rg=Pg,Dg=tr,Ng=Object.prototype,Mg=Ng.hasOwnProperty;function Lg(e){var t=this.__data__;return Dg?t[e]!==void 0:Mg.call(t,e)}var Ig=Lg,Fg=tr,jg="__lodash_hash_undefined__";function Vg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fg&&t===void 0?jg:t,this}var Hg=Vg,Wg=Cg,Ug=Sg,zg=Rg,Bg=Ig,qg=Hg;function Mt(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])}}Mt.prototype.clear=Wg;Mt.prototype.delete=Ug;Mt.prototype.get=zg;Mt.prototype.has=Bg;Mt.prototype.set=qg;var Kg=Mt;function Gg(){this.__data__=[],this.size=0}var Yg=Gg;function Zg(e,t){return e===t||e!==e&&t!==t}var Jg=Zg,Xg=Jg;function Qg(e,t){for(var n=e.length;n--;)if(Xg(e[n][0],t))return n;return-1}var nr=Qg,ev=nr,tv=Array.prototype,nv=tv.splice;function rv(e){var t=this.__data__,n=ev(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nv.call(t,n,1),--this.size,!0}var ov=rv,iv=nr;function av(e){var t=this.__data__,n=iv(t,e);return n<0?void 0:t[n][1]}var sv=av,cv=nr;function lv(e){return cv(this.__data__,e)>-1}var uv=lv,dv=nr;function fv(e,t){var n=this.__data__,r=dv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var pv=fv,hv=Yg,gv=ov,vv=sv,mv=uv,_v=pv;function Lt(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])}}Lt.prototype.clear=hv;Lt.prototype.delete=gv;Lt.prototype.get=vv;Lt.prototype.has=mv;Lt.prototype.set=_v;var yv=Lt,bv=dc,wv=Qn,xv=bv(wv,"Map"),$v=xv,oa=Kg,Cv=yv,Ev=$v;function Sv(){this.size=0,this.__data__={hash:new oa,map:new(Ev||Cv),string:new oa}}var Ov=Sv;function Av(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Tv=Av,kv=Tv;function Pv(e,t){var n=e.__data__;return kv(t)?n[typeof t=="string"?"string":"hash"]:n.map}var rr=Pv,Rv=rr;function Dv(e){var t=Rv(this,e).delete(e);return this.size-=t?1:0,t}var Nv=Dv,Mv=rr;function Lv(e){return Mv(this,e).get(e)}var Iv=Lv,Fv=rr;function jv(e){return Fv(this,e).has(e)}var Vv=jv,Hv=rr;function Wv(e,t){var n=Hv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Uv=Wv,zv=Ov,Bv=Nv,qv=Iv,Kv=Vv,Gv=Uv;function It(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])}}It.prototype.clear=zv;It.prototype.delete=Bv;It.prototype.get=qv;It.prototype.has=Kv;It.prototype.set=Gv;var Yv=It,fc=Yv,Zv="Expected a function";function Fo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zv);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(Fo.Cache||fc),n}Fo.Cache=fc;var Jv=Fo,Xv=Jv,Qv=500;function em(e){var t=Xv(e,function(r){return n.size===Qv&&n.clear(),r}),n=t.cache;return t}var tm=em,nm=tm,rm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,om=/\\(\\)?/g,im=nm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rm,function(n,r,o,i){t.push(o?i.replace(om,"$1"):r||n)}),t}),am=im;function sm(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 cm=sm,ia=Lo,lm=cm,um=Io,dm=er,fm=1/0,aa=ia?ia.prototype:void 0,sa=aa?aa.toString:void 0;function pc(e){if(typeof e=="string")return e;if(um(e))return lm(e,pc)+"";if(dm(e))return sa?sa.call(e):"";var t=e+"";return t=="0"&&1/e==-fm?"-0":t}var pm=pc,hm=pm;function gm(e){return e==null?"":hm(e)}var vm=gm,mm=Io,_m=jh,ym=am,bm=vm;function wm(e,t){return mm(e)?e:_m(e,t)?[e]:ym(bm(e))}var xm=wm,$m=er,Cm=1/0;function Em(e){if(typeof e=="string"||$m(e))return e;var t=e+"";return t=="0"&&1/e==-Cm?"-0":t}var Sm=Em,Om=xm,Am=Sm;function Tm(e,t){t=Om(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Am(t[n++])];return n&&n==r?e:void 0}var km=Tm,Pm=km;function Rm(e,t,n){var r=e==null?void 0:Pm(e,t);return r===void 0?n:r}var Dm=Rm;const Nm=$o(Dm),zt=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),hc=pe({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}}),Mm=pe({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"}}),Rr=({job:e,property:t})=>{if(!t)return null;const n=Nm(e.raw,t.key);return t.transform?t.transform(n):n},Lm=({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}),ca=e=>Array.isArray(e)?e:[e],Im=1e3*60*60*24,gc=({job:e,config:t,onJobClick:n,size:r})=>{var f,m,v;const{t:o}=ne(),i=t.subheading?Rr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(_=>ca(Rr({job:e,property:_}))).filter(Boolean),s=ca((f=t.overrides)!=null&&f.salary?Rr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",d=(m=t.overrides)!=null&&m.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,p=t.newUnderDays??7,l=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-p*Im:!1,h=_=>{var g,b;n==null||n(e),(b=(g=t.overrides)==null?void 0:g.onClick)==null||b.call(g,_)};return u("a",{onMouseEnter:(v=t.overrides)==null?void 0:v.onMouseEnter,onClick:h,href:d,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:hc(),children:[u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(Lm,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:"flex flex-col items-start gap-1",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(Q,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:Mm({size:r}),children:[e.title.trim(),l&&c!=="hide"&&u(M,{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:o("new")})]})]}),i?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:i}):null]}),c==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[o("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:s.map((_,g)=>u("span",{class:xt({variant:"monetaryWeak",size:"xs"}),children:_},g))}),a.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(_=>u("li",{class:xt({size:"xs",class:"max-w-full truncate"}),children:_},_))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(Q,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},jo=({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:hc({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(zt,{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(zt,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(zt,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Fm=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=ne(),i=Math.min(ct,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:ct}).map((a,s)=>u("li",{children:u(jo,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:je({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})]})},jm=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c,prioritySegment:d})=>u(M,{children:Array.from({length:e.page}).map((p,l)=>{const h=l===e.page-1;return u(qt,{Fallback:Ze,children:u(Vm,{state:e,rpcClient:t,page:l+1,isFirst:l===0,isLast:h,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:c,prioritySegment:d},l)},l)})}),la=({page:e})=>{const{t}=ne();return u("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},Vm=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:c,onJobClick:d,afterResults:p,prioritySegment:l})=>{const{t:h}=ne(),f=n===1?s:void 0,{data:m,error:v,queryState:_,swr:g}=nn(Yt(Yr({state:e,baseKey:n.toString()}),()=>ka({rpcClient:t,state:e,page:n,t:h,prioritySegment:l}),{...Nn,fallbackData:f}));switch(R(()=>{m&&r&&c&&c({totalCount:m.pagination.total})},[m,r,c]),_){case"idle":return null;case"loading":return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:u(zt,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:ct}).map((b,w)=>u("li",{children:u(jo,{seed:w,animationDelay:(w-ct)*.1,config:a})},w))})]});case"error":return u(Ze,{error:new Error(h("jobs_loading_error"),{cause:v}),resetError:()=>g.mutate()});case"revalidating":case"loaded":{if(fa(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(Q,{"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:h("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:h("no_jobs_found_description")})]})]});const b=m.pagination.last_page!==m.pagination.current_page,w=n*ct,y=Math.max(m.pagination.total-w,0),x=$=>{d($,n)};return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:h("jobs_found",{count:m.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:m.results.map($=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:_==="revalidating"?.33:1},children:u(gc,{job:$,onJobClick:x,config:a})},$.id))}),b&&o&&u(Fm,{state:_,fetchNextPage:i,config:a,remainingItems:y})]})}default:_t(_)}},Hm=wo(()=>Promise.resolve().then(()=>require("./map-64ec961e.cjs")).then(e=>e.Map)),Wm=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s})=>{var v,_;const{t:c}=ne(),[d,p]=T(new AbortController),l=us("(max-width: 767px)"),h=H(g=>{r(g),d.abort(),p(new AbortController)},[r,d]),f=nn(Yt(["map",e],()=>zc({rpcClient:t,state:e,t:c,signal:d.signal,prioritySegment:s}),Nn));if(f.queryState==="error")return u(Ze,{error:new Error(c("jobs_loading_error"),{cause:f.error}),resetError:()=>f.swr.mutate()});const m=f.queryState==="loaded"||f.queryState==="revalidating";return u(M,{children:[u("div",{class:"flex items-center gap-2",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:m?f.data.results.length!==0&&c("map_jobs_showing",{count:f.data.results.length}):u("div",{class:"animate-skeleton",children:u(zt,{chars:8})})}),u("div",{class:"flex 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:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:m?u(yt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(Hm,{config:n,mapData:f,autoFit:((v=e.geo)==null?void 0:v.type)!=="bounds",onBoundsChange:h})}):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:[((_=f.data)==null?void 0:_.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(Q,{"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:c("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:c("no_jobs_found_description")})]})]}):null,m?f.data.results.map(g=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:f.queryState==="revalidating"?.33:1},children:u(gc,{job:g,onJobClick:b=>i(b,1),config:a,size:l?"sm":void 0})},g.id)):Array.from({length:6}).map((g,b)=>u("li",{children:u(jo,{seed:b,animationDelay:(b-6)*.1,config:a})},b))]})]})]})},ua=pe({base:"flex 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}}),Um=({value:e,onValueChange:t})=>{const{t:n}=ne();return u("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[u("button",{type:"button","aria-pressed":e==="list",class:ua({active:e==="list"}),onClick:()=>t("list"),children:[u(Q,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:ua({active:e==="map"}),onClick:()=>t("map"),children:[u(Q,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},zm=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(Um,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(jm,{afterResults:n,...e}):u(Wm,{...e,afterResults:n})},Wn=(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:_t(r.select)}return n},{}),Pn=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)),da=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Bm=({rpcClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var C,O,P,L,D,j;const{t:s}=ne(),c=k(null),d=X(()=>Wn(n,"defaultValue"),[n]),[p,l]=T(!0),[h,f]=T(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[m,v]=T(0),{onJobClick:_,analyticsPaginate:g}=qm({appRef:c,analytics:r,state:h,hasInteracted:!p,totalCount:m,defaultFilters:d}),b=H(A=>{f(N=>{if(N.page===A)return N;const I={...N,page:A};return i==null||i(I),I}),g(A)},[g,i]),w=H(A=>{f(N=>{const I={...N,view:A};return i==null||i(I),I})},[i]),y=H(A=>{f(N=>{var W;if(!N.query&&!A||N.query===A)return N;l(!1);const I=da(N.geo),F={...N,query:A,geo:I,page:1,mode:(W=a.naturalLanguageSearch)!=null&&W.enabled?"vector":"query"};return i==null||i(F),F})},[i,(C=a.naturalLanguageSearch)==null?void 0:C.enabled]),x=H(A=>{l(!1),f(N=>{const I={...N,geo:A};return i==null||i(I),I})},[i]),$=H(()=>{f(A=>{const N={...A,filters:Wn(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(N),N})},[i,n]),S=X(()=>(e.environment,new Map),[e.environment]);return u(Kl,{value:{provider:()=>S},children:u("div",{ref:c,class:St("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(O=a.theme.accessibility)==null?void 0:O.reducedMotion},Gr(a.theme)),children:[u(qt,{Fallback:Ze,children:u("div",{class:"flex flex-col gap-2",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:s("search_label")}),(P=a.naturalLanguageSearch)!=null&&P.enabled?u(Rh,{value:h.query,onValueChange:y,options:a.naturalLanguageSearch}):a.enableKeywordSearch?u(Th,{value:h.query,onValueChange:y}):null]}),(L=a.geolocation)!=null&&L.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:s("geo_label")}),u(Oh,{value:h.geo,onValueChange:A=>{l(!1),f(N=>{const I={...N,geo:A,page:1};return i==null||i(I),I}),g(1)},logger:t})]}):null]})}),u(fp,{state:h,onFilterValueChange:(A,N)=>{l(!1),f(I=>{const F={...I.filters,[A]:N},W=da(I.geo),Z={...I,filters:F,geo:W,page:1};return i==null||i(Z),Z}),g(1)},onResetFilters:$,properties:n,rpcClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(qt,{Fallback:Ze,children:u(zm,{state:h,rpcClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:p?o==null?void 0:o.jobs:void 0,onResultsUpdate:A=>{v(A.totalCount)},onJobClick:_,onPaginate:b,mode:(D=a.naturalLanguageSearch)!=null&&D.enabled?"vector":"query",onGeoChange:x,onViewChange:w,prioritySegment:(j=a.results)==null?void 0:j.prioritySegment})}),a.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("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]})]})})},qm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=H((d=1)=>({query:n.query,mode:n.mode,filters:Pn(n.filters),default_filters:Pn(r),total_count:o,page_size:ct,page:d}),[n.query,n.mode,n.filters,r,o]);return Gl(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),R(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Pn(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(d)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(d,p)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(p)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.A=k;exports.D=Et;exports.E=lo;exports.ErrorBoundary=qt;exports.IconSpritesheet=nl;exports.JOB_SEARCH_WIDGET_ID=Mc;exports.JobSearch=Bm;exports.TranslationProvider=Jc;exports.UnstyledErrorView=el;exports._=E;exports.commonjsGlobal=Wt;exports.createTFunction=Xc;exports.d=T;exports.filtersToPayload=Pn;exports.generateColorThemeCss=ru;exports.getDefaultExportFromCjs=$o;exports.getGeolocationFromSearchParams=lc;exports.getJobSearchResults=ka;exports.getModeFromSearchParams=sc;exports.getStatefulPropertiesFromSearchParams=ac;exports.getViewFromSearchParams=cc;exports.getWidgetStateFromSearchParams=dh;exports.invariant=fa;exports.k=M;exports.setWidgetStateToSearchParams=fh;exports.u=u;exports.useDebouncedValue=uc;exports.useTranslation=ne;exports.y=R;
60
+ `)},cd=0,vt=[];function ld(e){var t=T([]),n=T([0,0]),r=T(),o=k(cd++)[0],i=k(function(){return ws()})[0],a=T(e);R(function(){a.current=e},[e]),R(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=ku([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H(function(v,_){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var g=yn(v),b=n.current,w="deltaX"in v?v.deltaX:b[0]-g[0],y="deltaY"in v?v.deltaY:b[1]-g[1],x,$=v.target,S=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in v&&S==="h"&&$.type==="range")return!1;var C=Pi(S,$);if(!C)return!0;if(C?x=S:(x=S==="v"?"h":"v",C=Pi(S,$)),!C)return!1;if(!r.current&&"changedTouches"in v&&(w||y)&&(r.current=x),!x)return!0;var O=r.current||x;return id(O,_,v,O==="h"?w:y,!0)},[]),c=H(function(v){var _=v;if(!(!vt.length||vt[vt.length-1]!==i)){var g="deltaY"in _?Ri(_):yn(_),b=t.current.filter(function(x){return x.name===_.type&&x.target===_.target&&ad(x.delta,g)})[0];if(b&&b.should){_.cancelable&&_.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(x){return x.contains(_.target)}),y=w.length>0?s(_,w[0]):!a.current.noIsolation;y&&_.cancelable&&_.preventDefault()}}},[]),d=H(function(v,_,g,b){var w={name:v,delta:_,target:g,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),p=H(function(v){n.current=yn(v),r.current=void 0},[]),l=H(function(v){d(v.type,Ri(v),v.target,s(v,e.lockRef.current))},[]),h=H(function(v){d(v.type,yn(v),v.target,s(v,e.lockRef.current))},[]);R(function(){return vt.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,gt),document.addEventListener("touchmove",c,gt),document.addEventListener("touchstart",p,gt),function(){vt=vt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,gt),document.removeEventListener("touchmove",c,gt),document.removeEventListener("touchstart",p,gt)}},[]);var f=e.removeScrollBar,m=e.inert;return E(M,null,m?E(i,{styles:sd(o)}):null,f?E(Xu,{gapMode:"margin"}):null)}const ud=ju(bs,ld);var Es=Y(function(e,t){return E(Yn,Ge({},e,{ref:t,sideCar:ud}))});Es.classNames=Yn.classNames;const Ss=Es;var dd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,bn=new WeakMap,wn={},Ar=0,Os=function(e){return e&&(e.host||Os(e.parentNode))},fd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Os(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})},pd=function(e,t,n,r){var o=fd(t,Array.isArray(e)?e:[e]);wn[n]||(wn[n]=new WeakMap);var i=wn[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 p=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))p(h);else try{var f=h.getAttribute(r),m=f!==null&&f!=="false",v=(mt.get(h)||0)+1,_=(i.get(h)||0)+1;mt.set(h,v),i.set(h,_),a.push(h),v===1&&m&&bn.set(h,!0),_===1&&h.setAttribute(n,"true"),m||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return p(t),s.clear(),Ar++,function(){a.forEach(function(l){var h=mt.get(l)-1,f=i.get(l)-1;mt.set(l,h),i.set(l,f),h||(bn.has(l)||l.removeAttribute(r),bn.delete(l)),f||l.removeAttribute(n)}),Ar--,Ar||(mt=new WeakMap,mt=new WeakMap,bn=new WeakMap,wn={})}},As=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||dd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),pd(r,o,n,"aria-hidden")):function(){return null}};const ks="Dialog",[Ts,Zm]=Oo(ks),[hd,rt]=Ts(ks),gd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=T(null),c=T(null),[d=!1,p]=fs({prop:r,defaultProp:o,onChange:i});return E(hd,{scope:t,triggerRef:s,contentRef:c,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:d,onOpenChange:p,onOpenToggle:H(()=>p(l=>!l),[p]),modal:a},n)},vd="DialogTrigger",md=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(vd,n),i=Te(t,o.triggerRef);return E(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ao(o.open)},r,{ref:i,onClick:be(e.onClick,o.onOpenToggle)}))}),Ps="DialogPortal",[_d,Rs]=Ts(Ps,{forceMount:void 0}),yd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(Ps,t);return E(_d,{scope:t,forceMount:n},Oe.map(r,a=>E(Pt,{present:n||i.open},E(ms,{asChild:!0,container:o},a))))},Qr="DialogOverlay",bd=Y((e,t)=>{const n=Rs(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Qr,e.__scopeDialog);return i.modal?E(Pt,{present:r||i.open},E(wd,G({},o,{ref:t}))):null}),wd=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Qr,n);return E(Ss,{as:Gn,allowPinchZoom:!0,shards:[o.contentRef]},E(nt.div,G({"data-state":Ao(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zt="DialogContent",xd=Y((e,t)=>{const n=Rs(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Zt,e.__scopeDialog);return E(Pt,{present:r||i.open},i.modal?E($d,G({},o,{ref:t})):E(Cd,G({},o,{ref:t})))}),$d=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=T(null),o=Te(t,n.contentRef,r);return R(()=>{const i=r.current;if(i)return As(i)},[]),E(Ds,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())}))}),Cd=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=T(!1),o=T(!1);return E(Ds,G({},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?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Ds=Y((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Zt,n),c=T(null),d=Te(t,c);return _s(),E(M,null,E(gs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},E(ps,G({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ao(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function Ao(e){return e?"open":"closed"}const Ed=gd,Sd=md,Od=yd,Ad=bd,kd=xd,Td=["top","right","bottom","left"],Se=Math.min,se=Math.max,In=Math.round,xn=Math.floor,Xe=e=>({x:e,y:e}),Pd={left:"right",right:"left",bottom:"top",top:"bottom"},Rd={start:"end",end:"start"};function eo(e,t,n){return se(e,Se(t,n))}function We(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function ko(e){return e==="x"?"y":"x"}function To(e){return e==="y"?"height":"width"}function Qe(e){return["top","bottom"].includes(Ue(e))?"y":"x"}function Po(e){return ko(Qe(e))}function Dd(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=Po(e),i=To(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Fn(a)),[a,Fn(a)]}function Nd(e){const t=Fn(e);return[to(e),t,to(t)]}function to(e){return e.replace(/start|end/g,t=>Rd[t])}function Md(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Ld(e,t,n,r){const o=Rt(e);let i=Md(Ue(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(to)))),i}function Fn(e){return e.replace(/left|right|bottom|top/g,t=>Pd[t])}function Id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ns(e){return typeof e!="number"?Id(e):{top:e,right:e,bottom:e,left:e}}function jn(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 Ni(e,t,n){let{reference:r,floating:o}=e;const i=Qe(t),a=Po(t),s=To(a),c=Ue(t),d=i==="y",p=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 f;switch(c){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(Rt(t)){case"start":f[a]-=h*(n&&d?-1:1);break;case"end":f[a]+=h*(n&&d?-1:1);break}return f}const Fd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:l}=Ni(d,r,c),h=r,f={},m=0;for(let v=0;v<s.length;v++){const{name:_,fn:g}=s[v],{x:b,y:w,data:y,reset:x}=await g({x:p,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});p=b??p,l=w??l,f={...f,[_]:{...f[_],...y}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(d=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:p,y:l}=Ni(d,h,c)),v=-1)}return{x:p,y:l,placement:h,strategy:o,middlewareData:f}};async function Jt(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:p="viewport",elementContext:l="floating",altBoundary:h=!1,padding:f=0}=We(t,e),m=Ns(f),_=s[h?l==="floating"?"reference":"floating":l],g=jn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:c})),b=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=jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:c}):b);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}const jd=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:p=0}=We(e,t)||{};if(d==null)return{};const l=Ns(p),h={x:n,y:r},f=Po(o),m=To(f),v=await a.getDimensions(d),_=f==="y",g=_?"top":"left",b=_?"bottom":"right",w=_?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-h[f]-i.floating[m],x=h[f]-i.reference[f],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let S=$?$[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement($)))&&(S=s.floating[w]||i.floating[m]);const C=y/2-x/2,O=S/2-v[m]/2-1,P=Se(l[g],O),L=Se(l[b],O),D=P,j=S-v[m]-L,A=S/2-v[m]/2+C,N=eo(D,A,j),I=!c.arrow&&Rt(o)!=null&&A!==N&&i.reference[m]/2-(A<D?P:L)-v[m]/2<0,F=I?A<D?A-D:A-j:0;return{[f]:h[f]+F,data:{[f]:N,centerOffset:A-N-F,...I&&{alignmentOffset:F}},reset:I}}}),Vd=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:p=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,..._}=We(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Ue(o),b=Qe(s),w=Ue(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(d.floating)),x=h||(w||!v?[Fn(s)]:Nd(s)),$=m!=="none";!h&&$&&x.push(...Ld(s,v,m,y));const S=[s,...x],C=await Jt(t,_),O=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&O.push(C[g]),l){const A=Dd(o,a,y);O.push(C[A[0]],C[A[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(A=>A<=0)){var L,D;const A=(((L=i.flip)==null?void 0:L.index)||0)+1,N=S[A];if(N)return{data:{index:A,overflows:P},reset:{placement:N}};let I=(D=P.filter(F=>F.overflows[0]<=0).sort((F,W)=>F.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(f){case"bestFit":{var j;const F=(j=P.filter(W=>{if($){const Z=Qe(W.placement);return Z===b||Z==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Z=>Z>0).reduce((Z,Ft)=>Z+Ft,0)]).sort((W,Z)=>W[1]-Z[1])[0])==null?void 0:j[0];F&&(I=F);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Mi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Li(e){return Td.some(t=>e[t]>=0)}const Hd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=We(e,t);switch(r){case"referenceHidden":{const i=await Jt(t,{...o,elementContext:"reference"}),a=Mi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Li(a)}}}case"escaped":{const i=await Jt(t,{...o,altBoundary:!0}),a=Mi(i,n.floating);return{data:{escapedOffsets:a,escaped:Li(a)}}}default:return{}}}}};async function Wd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),s=Rt(n),c=Qe(n)==="y",d=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,l=We(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof m=="number"&&(f=s==="end"?m*-1:m),c?{x:f*p,y:h*d}:{x:h*d,y:f*p}}const Ud=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 Wd(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}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:g,y:b}=_;return{x:g,y:b}}},...c}=We(e,t),d={x:n,y:r},p=await Jt(t,c),l=Qe(Ue(o)),h=ko(l);let f=d[h],m=d[l];if(i){const _=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=f+p[_],w=f-p[g];f=eo(b,f,w)}if(a){const _=l==="y"?"top":"left",g=l==="y"?"bottom":"right",b=m+p[_],w=m-p[g];m=eo(b,m,w)}const v=s.fn({...t,[h]:f,[l]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Bd=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}=We(e,t),p={x:n,y:r},l=Qe(o),h=ko(l);let f=p[h],m=p[l];const v=We(s,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+_.mainAxis,x=i.reference[h]+i.reference[w]-_.mainAxis;f<y?f=y:f>x&&(f=x)}if(d){var g,b;const w=h==="y"?"width":"height",y=["top","left"].includes(Ue(o)),x=i.reference[l]-i.floating[w]+(y&&((g=a.offset)==null?void 0:g[l])||0)+(y?0:_.crossAxis),$=i.reference[l]+i.reference[w]+(y?0:((b=a.offset)==null?void 0:b[l])||0)-(y?_.crossAxis:0);m<x?m=x:m>$&&(m=$)}return{[h]:f,[l]:m}}}},qd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=We(e,t),c=await Jt(t,s),d=Ue(n),p=Rt(n),l=Qe(n)==="y",{width:h,height:f}=r.floating;let m,v;d==="top"||d==="bottom"?(m=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,m=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,g=h-c.left-c.right,b=Se(f-c[m],_),w=Se(h-c[v],g),y=!t.middlewareData.shift;let x=b,$=w;if(l?$=p||y?Se(w,g):g:x=p||y?Se(b,_):_,y&&!p){const C=se(c.left,0),O=se(c.right,0),P=se(c.top,0),L=se(c.bottom,0);l?$=h-2*(C!==0||O!==0?C+O:se(c.left,c.right)):x=f-2*(P!==0||L!==0?P+L:se(c.top,c.bottom))}await a({...t,availableWidth:$,availableHeight:x});const S=await o.getDimensions(i.floating);return h!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Ms(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Ms(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ms(e){return e instanceof Node||e instanceof le(e).Node}function xe(e){return e instanceof Element||e instanceof le(e).Element}function Ae(e){return e instanceof HTMLElement||e instanceof le(e).HTMLElement}function Ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Kd(e){return["table","td","th"].includes(Dt(e))}function Zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ro(e){const t=Do(),n=xe(e)?$e(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Gd(e){let t=et(e);for(;Ae(t)&&!kt(t);){if(Ro(t))return t;if(Zn(t))return null;t=et(t)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function kt(e){return["html","body","#document"].includes(Dt(e))}function $e(e){return le(e).getComputedStyle(e)}function Jn(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||ze(e);return Ii(t)?t.host:t}function Ls(e){const t=et(e);return kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&sn(t)?t:Ls(t)}function Xt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ls(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=le(o);if(i){const s=no(a);return t.concat(a,a.visualViewport||[],sn(o)?o:[],s&&n?Xt(s):[])}return t.concat(o,Xt(o,[],n))}function no(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ae(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=In(n)!==i||In(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function No(e){return xe(e)?e:e.contextElement}function xt(e){const t=No(e);if(!Ae(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Is(t);let a=(i?In(n.width):n.width)/r,s=(i?In(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Yd=Xe(0);function Fs(e){const t=le(e);return!Do()||!t.visualViewport?Yd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=No(e);let a=Xe(1);t&&(r?xe(r)&&(a=xt(r)):a=xt(e));const s=Zd(i,n,r)?Fs(i):Xe(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,p=o.width/a.x,l=o.height/a.y;if(i){const h=le(i),f=r&&xe(r)?le(r):r;let m=h,v=no(m);for(;v&&r&&f!==m;){const _=xt(v),g=v.getBoundingClientRect(),b=$e(v),w=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*_.x,y=g.top+(v.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,d*=_.y,p*=_.x,l*=_.y,c+=w,d+=y,m=le(v),v=no(m)}}return jn({width:p,height:l,x:c,y:d})}function Jd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=ze(r),s=t?Zn(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Xe(1);const p=Xe(0),l=Ae(r);if((l||!l&&!i)&&((Dt(r)!=="body"||sn(a))&&(c=Jn(r)),Ae(r))){const h=ft(r);d=xt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x,y:n.y*d.y-c.scrollTop*d.y+p.y}}function Xd(e){return Array.from(e.getClientRects())}function js(e){return ft(ze(e)).left+Jn(e).scrollLeft}function Qd(e){const t=ze(e),n=Jn(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+js(e);const s=-n.scrollTop;return $e(r).direction==="rtl"&&(a+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function ef(e,t){const n=le(e),r=ze(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=Do();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function tf(e,t){const n=ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ae(e)?xt(e):Xe(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 Fi(e,t,n){let r;if(t==="viewport")r=ef(e,n);else if(t==="document")r=Qd(ze(e));else if(xe(t))r=tf(t,n);else{const o=Fs(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return jn(r)}function Vs(e,t){const n=et(e);return n===t||!xe(n)||kt(n)?!1:$e(n).position==="fixed"||Vs(n,t)}function nf(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(s=>xe(s)&&Dt(s)!=="body"),o=null;const i=$e(e).position==="fixed";let a=i?et(e):e;for(;xe(a)&&!kt(a);){const s=$e(a),c=Ro(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sn(a)&&!c&&Vs(e,a))?r=r.filter(p=>p!==a):o=s,a=et(a)}return t.set(e,r),r}function rf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Zn(t)?[]:nf(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((d,p)=>{const l=Fi(t,p,o);return d.top=se(l.top,d.top),d.right=Se(l.right,d.right),d.bottom=Se(l.bottom,d.bottom),d.left=se(l.left,d.left),d},Fi(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function of(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function af(e,t,n){const r=Ae(t),o=ze(t),i=n==="fixed",a=ft(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xe(0);if(r||!r&&!i)if((Dt(t)!=="body"||sn(o))&&(s=Jn(t)),r){const l=ft(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=js(o));const d=a.left+s.scrollLeft-c.x,p=a.top+s.scrollTop-c.y;return{x:d,y:p,width:a.width,height:a.height}}function kr(e){return $e(e).position==="static"}function ji(e,t){return!Ae(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Hs(e,t){const n=le(e);if(Zn(e))return n;if(!Ae(e)){let o=et(e);for(;o&&!kt(o);){if(xe(o)&&!kr(o))return o;o=et(o)}return n}let r=ji(e,t);for(;r&&Kd(r)&&kr(r);)r=ji(r,t);return r&&kt(r)&&kr(r)&&!Ro(r)?n:r||Gd(e)||n}const sf=async function(e){const t=this.getOffsetParent||Hs,n=this.getDimensions,r=await n(e.floating);return{reference:af(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cf(e){return $e(e).direction==="rtl"}const lf={convertOffsetParentRelativeRectToViewportRelativeRect:Jd,getDocumentElement:ze,getClippingRect:rf,getOffsetParent:Hs,getElementRects:sf,getClientRects:Xd,getDimensions:of,getScale:xt,isElement:xe,isRTL:cf};function uf(e,t){let n=null,r;const o=ze(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{left:d,top:p,width:l,height:h}=e.getBoundingClientRect();if(s||t(),!l||!h)return;const f=xn(p),m=xn(o.clientWidth-(d+l)),v=xn(o.clientHeight-(p+h)),_=xn(d),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-_+"px",threshold:se(0,Se(1,c))||1};let w=!0;function y(x){const $=x[0].intersectionRatio;if($!==c){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(y,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return a(!0),i}function df(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=No(e),p=o||i?[...d?Xt(d):[],...Xt(t)]:[];p.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const l=d&&s?uf(d,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(g=>{let[b]=g;b&&b.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),d&&!c&&f.observe(d),f.observe(t));let m,v=c?ft(e):null;c&&_();function _(){const g=ft(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,m=requestAnimationFrame(_)}return n(),()=>{var g;p.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),l==null||l(),(g=f)==null||g.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const ff=Ud,pf=zd,hf=Vd,gf=qd,vf=Hd,Vi=jd,mf=Bd,_f=(e,t,n)=>{const r=new Map,o={platform:lf,...n},i={...o.platform,_c:r};return Fd(e,t,{...o,platform:i})};var kn=typeof document<"u"?ke:R;function Vn(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(!Vn(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)&&!Vn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ws(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hi(e,t){const n=Ws(e);return Math.round(t*n)/n}function Wi(e){const t=T(e);return kn(()=>{t.current=e}),t}function yf(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,[p,l]=k({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=k(r);Vn(h,r)||f(r);const[m,v]=k(null),[_,g]=k(null),b=H(F=>{F!==$.current&&($.current=F,v(F))},[]),w=H(F=>{F!==S.current&&(S.current=F,g(F))},[]),y=i||m,x=a||_,$=T(null),S=T(null),C=T(p),O=c!=null,P=Wi(c),L=Wi(o),D=H(()=>{if(!$.current||!S.current)return;const F={placement:t,strategy:n,middleware:h};L.current&&(F.platform=L.current),_f($.current,S.current,F).then(W=>{const Z={...W,isPositioned:!0};j.current&&!Vn(C.current,Z)&&(C.current=Z,on(()=>{l(Z)}))})},[h,t,n,L]);kn(()=>{d===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,l(F=>({...F,isPositioned:!1})))},[d]);const j=T(!1);kn(()=>(j.current=!0,()=>{j.current=!1}),[]),kn(()=>{if(y&&($.current=y),x&&(S.current=x),y&&x){if(P.current)return P.current(y,x,D);D()}},[y,x,D,P,O]);const A=X(()=>({reference:$,floating:S,setReference:b,setFloating:w}),[b,w]),N=X(()=>({reference:y,floating:x}),[y,x]),I=X(()=>{const F={position:n,left:0,top:0};if(!N.floating)return F;const W=Hi(N.floating,p.x),Z=Hi(N.floating,p.y);return s?{...F,transform:"translate("+W+"px, "+Z+"px)",...Ws(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:Z}},[n,s,N.floating,p.x,p.y]);return X(()=>({...p,update:D,refs:A,elements:N,floatingStyles:I}),[p,D,A,N,I])}const bf=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?Vi({element:r.current,padding:o}).fn(n):{}:r?Vi({element:r,padding:o}).fn(n):{}}}},wf=(e,t)=>({...ff(e),options:[e,t]}),xf=(e,t)=>({...pf(e),options:[e,t]}),$f=(e,t)=>({...mf(e),options:[e,t]}),Cf=(e,t)=>({...hf(e),options:[e,t]}),Ef=(e,t)=>({...gf(e),options:[e,t]}),Sf=(e,t)=>({...vf(e),options:[e,t]}),Of=(e,t)=>({...bf(e),options:[e,t]});function Af(e){const[t,n]=k(void 0);return At(()=>{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 Us="Popper",[zs,Bs]=Oo(Us),[kf,qs]=zs(Us),Tf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k(null);return E(kf,{scope:t,anchor:r,onAnchorChange:o},n)},Pf="PopperAnchor",Rf=Y((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qs(Pf,n),a=T(null),s=Te(t,a);return R(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E(nt.div,G({},o,{ref:s}))}),Ks="PopperContent",[Df,Jm]=zs(Ks),Nf=Y((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:p,side:l="bottom",sideOffset:h=0,align:f="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:_=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...S}=e,C=qs(Ks,p),[O,P]=k(null),L=Te(t,B=>P(B)),[D,j]=k(null),A=Af(D),N=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,I=(r=A==null?void 0:A.height)!==null&&r!==void 0?r:0,F=l+(f!=="center"?"-"+f:""),W=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(g)?g:[g],Ft=Z.length>0,he={padding:W,boundary:Z.filter(Mf),altBoundary:Ft},{refs:Be,floatingStyles:ot,placement:ln,isPositioned:Pe,middlewareData:Re}=yf({strategy:"fixed",placement:F,whileElementsMounted:(...B)=>df(...B,{animationFrame:x==="always"}),elements:{reference:C.anchor},middleware:[wf({mainAxis:h+I,alignmentAxis:m}),_&&xf({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?$f():void 0,...he}),_&&Cf({...he}),Ef({...he,apply:({elements:B,rects:ae,availableWidth:qe,availableHeight:ee})=>{const{width:re,height:ge}=ae.reference,at=B.floating.style;at.setProperty("--radix-popper-available-width",`${qe}px`),at.setProperty("--radix-popper-available-height",`${ee}px`),at.setProperty("--radix-popper-anchor-width",`${re}px`),at.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),D&&Of({element:D,padding:v}),Lf({arrowWidth:N,arrowHeight:I}),y&&Sf({strategy:"referenceHidden",...he})]}),[jt,or]=Gs(ln),ht=Je($);At(()=>{Pe&&(ht==null||ht())},[Pe,ht]);const it=(o=Re.arrow)===null||o===void 0?void 0:o.x,un=(i=Re.arrow)===null||i===void 0?void 0:i.y,U=((a=Re.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[z,te]=k();return At(()=>{O&&te(window.getComputedStyle(O).zIndex)},[O]),E("div",{ref:Be.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:Pe?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(s=Re.transformOrigin)===null||s===void 0?void 0:s.x,(c=Re.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},E(Df,{scope:p,placedSide:jt,onArrowChange:j,arrowX:it,arrowY:un,shouldHideArrow:U},E(nt.div,G({"data-side":jt,"data-align":or},S,{ref:L,style:{...S.style,animation:Pe?void 0:"none",opacity:(d=Re.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Mf(e){return e!==null}const Lf=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,f=l?0:e.arrowHeight,[m,v]=Gs(s),_={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,b=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return m==="bottom"?(w=l?_:`${g}px`,y=`${-f}px`):m==="top"?(w=l?_:`${g}px`,y=`${c.floating.height+f}px`):m==="right"?(w=`${-f}px`,y=l?_:`${b}px`):m==="left"&&(w=`${c.floating.width+f}px`,y=l?_:`${b}px`),{data:{x:w,y}}}});function Gs(e){const[t,n="center"]=e.split("-");return[t,n]}const If=Tf,Ff=Rf,jf=Nf,Ys="Popover",[Zs,Xm]=Oo(Ys,[Bs]),Mo=Bs(),[Vf,Nt]=Zs(Ys),Hf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Mo(t),c=T(null),[d,p]=k(!1),[l=!1,h]=fs({prop:r,defaultProp:o,onChange:i});return E(If,s,E(Vf,{scope:t,contentId:Sn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:H(()=>h(f=>!f),[h]),hasCustomAnchor:d,onCustomAnchorAdd:H(()=>p(!0),[]),onCustomAnchorRemove:H(()=>p(!1),[]),modal:a},n))},Wf="PopoverTrigger",Uf=Y((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(Wf,n),i=Mo(n),a=Te(t,o.triggerRef),s=E(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qs(o.open)},r,{ref:a,onClick:be(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:E(Ff,G({asChild:!0},i),s)}),Js="PopoverPortal",[zf,Bf]=Zs(Js,{forceMount:void 0}),qf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Nt(Js,t);return E(zf,{scope:t,forceMount:n},E(Pt,{present:n||i.open},E(ms,{asChild:!0,container:o},r)))},Qt="PopoverContent",Kf=Y((e,t)=>{const n=Bf(Qt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Nt(Qt,e.__scopePopover);return E(Pt,{present:r||i.open},i.modal?E(Gf,G({},o,{ref:t})):E(Yf,G({},o,{ref:t})))}),Gf=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=T(null),o=Te(t,r),i=T(!1);return R(()=>{const a=r.current;if(a)return As(a)},[]),E(Ss,{as:Gn,allowPinchZoom:!0},E(Xs,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:be(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:be(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),Yf=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=T(!1),o=T(!1);return E(Xs,G({},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?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Xs=Y((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...l}=e,h=Nt(Qt,n),f=Mo(n);return _s(),E(gs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},E(ps,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},E(jf,G({"data-state":Qs(h.open),role:"dialog",id:h.contentId},f,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 Qs(e){return e?"open":"closed"}const Zf=Hf,Jf=Uf,Xf=qf,Qf=Kf,Ui=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},ep=(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=Ui(r.value),a=Ui(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},cn=pe({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}}),ec=pe({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"}}),tc=pe({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"}}}),nc=pe({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}}),tp=pe({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"}}}),np=({children:e,colorScheme:t})=>u("span",{class:tp({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),rp=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},op=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},ip=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},ap=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=ne(),s=nn(n()),c=X(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const f=s.data[t.key]??[];return Object.fromEntries(f.map(m=>[m.value,m.jobs]))}default:yt(s)}},[s,t.key]),d=rc(e),p=d.length>0,[l,h]=k();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.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:l,onInput:f=>h(f.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return u(Ze,{error:new Error(a("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((f,m)=>u("div",{style:{animationDelay:m*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},m))});case"revalidating":case"loaded":{const f=s.data[t.key]??[],m=l&&l.length>1?f.filter(g=>g.label.toLowerCase().includes(l.toLowerCase())):f,v=[];for(const g of m){if(g.label.length<1)continue;const b={...g,results:ip(c,g),disabled:op(c,g)};switch(t.results){case"only-available":b.disabled===!1&&v.push(b);break;default:v.push(b)}}return v.find(g=>!g.disabled)?u("ul",{class:ec(),children:ep(v,t.sortSuggestions).map(g=>{const b=d.includes(g.value);return u("li",{class:tc({type:"line"}),children:u("button",{type:"button",disabled:g.disabled,"data-filter":!0,"data-current-value":b?"true":void 0,onClick:()=>{switch(e.select){case"many":{const w=rp(d,g.value);o({select:"many",value:w});break}case"one":o({select:"one",value:b?void 0:g.value});break;default:yt(e)}},class:nc({active:b,disabled:g.disabled}),children:[u("span",{class:"max-w-full truncate",children:g.label})," ",u(np,{colorScheme:b?"accentStrong":"neutralStrong",children:g.results})]})},g.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:a("no_filter_options_available")})}default:yt(s)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:p&&u("button",{type:"button",class:je({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(Q,{"aria-hidden":!0,name:"x"})," ",a("clear")]})}),e.select==="many"&&r&&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:[d.length," ",a("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:je({variant:p?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(p?"done":"close")},p?"done":"close")})]})]})},zi=8,Bi={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"},qi=pe({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"}}}),Ki=pe({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"}}}),rc=e=>typeof e.value=="string"?[e.value]:e.value??[],sp=({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 min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},cp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:c})=>{const d=yc(r.key,Bi)?Bi[r.key]:void 0,p=r.icon??d??"filter",l=rc(t),h=l.length>0,f=us("(pointer: coarse)"),m=u(M,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(Q,{"aria-hidden":!0,class:"flex-none",name:p}),u("span",{class:"truncate",children:r.label})]}),u(Q,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(sp,{selectedValues:l})]}),v=u(ap,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?u(Ed,{open:e,onOpenChange:n,children:[u(Sd,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),onTouchStart:lp,children:m}),u(Od,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:[u(Ad,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(kd,{class:Ki({mode:"mobile",class:Gr(s)}),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(Q,{name:p,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),v]})]})})]}):u(Zf,{open:e,onOpenChange:_=>n(_),modal:f,children:[u(Jf,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),children:m}),u(Xf,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:u(Qf,{side:"bottom",sideOffset:zi,align:"center",collisionPadding:zi,class:Ki({mode:"desktop",class:Gr(s)}),children:v})})})]})};function lp(){}const up=(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}},dp=({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:yt(e)}},fp=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s})=>{const{t:c}=ne(),[d,p]=k(void 0),l=X(()=>({filters:Wn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),h=nn(Yt(Yr({state:l,baseKey:"filters"}),()=>Yo({rpcClient:o,state:l}),Nn)),f=H(m=>()=>{const v={...t,filters:{...t.filters,[m]:l.filters[m]}};return Yt(Yr({state:v,baseKey:"filters"}),()=>Yo({rpcClient:o,state:v}),Nn)},[o,l.filters,t]);return h.queryState==="error"?u(Ze,{error:new Error(c("filters_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()}):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(m=>m.hidden!==!0).map(m=>{const v=d===m.key,_=t.filters[m.key]??{select:m.select,value:void 0},g=l.filters[m.key];g&&up(_,g);const b=x=>{const{newActiveKey:$,newValue:S}=dp({property:m,activeKey:d,value:x??g,properties:e,appliedFilters:t.filters});return p($),n(m.key,S)},w=x=>p(x?m.key:void 0),y=f(m.key);return u(qt,{Fallback:Ze,children:u(cp,{unfilteredQuery:h,active:v,property:m,onActiveChange:w,value:_,useQuery:y,onValueChange:b,theme:i,widgetId:s})},m.key)}),u("button",{type:"button",class:je({variant:"neutral"}),onClick:r,children:c("reset")}),a?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:a.params.config.label})]})}):null]})};function pp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xn=pp,hp=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,gp=hp,vp=gp,mp=typeof self=="object"&&self&&self.Object===Object&&self,_p=vp||mp||Function("return this")(),Qn=_p,yp=Qn,bp=function(){return yp.Date.now()},wp=bp,xp=/\s/;function $p(e){for(var t=e.length;t--&&xp.test(e.charAt(t)););return t}var Cp=$p,Ep=Cp,Sp=/^\s+/;function Op(e){return e&&e.slice(0,Ep(e)+1).replace(Sp,"")}var Ap=Op,kp=Qn,Tp=kp.Symbol,Lo=Tp,Gi=Lo,oc=Object.prototype,Pp=oc.hasOwnProperty,Rp=oc.toString,Ht=Gi?Gi.toStringTag:void 0;function Dp(e){var t=Pp.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var o=Rp.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),o}var Np=Dp,Mp=Object.prototype,Lp=Mp.toString;function Ip(e){return Lp.call(e)}var Fp=Ip,Yi=Lo,jp=Np,Vp=Fp,Hp="[object Null]",Wp="[object Undefined]",Zi=Yi?Yi.toStringTag:void 0;function Up(e){return e==null?e===void 0?Wp:Hp:Zi&&Zi in Object(e)?jp(e):Vp(e)}var ic=Up;function zp(e){return e!=null&&typeof e=="object"}var Bp=zp,qp=ic,Kp=Bp,Gp="[object Symbol]";function Yp(e){return typeof e=="symbol"||Kp(e)&&qp(e)==Gp}var er=Yp,Zp=Ap,Ji=Xn,Jp=er,Xi=0/0,Xp=/^[-+]0x[0-9a-f]+$/i,Qp=/^0b[01]+$/i,eh=/^0o[0-7]+$/i,th=parseInt;function nh(e){if(typeof e=="number")return e;if(Jp(e))return Xi;if(Ji(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ji(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zp(e);var n=Qp.test(e);return n||eh.test(e)?th(e.slice(2),n?2:8):Xp.test(e)?Xi:+e}var rh=nh,oh=Xn,Tr=wp,Qi=rh,ih="Expected a function",ah=Math.max,sh=Math.min;function ch(e,t,n){var r,o,i,a,s,c,d=0,p=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(ih);t=Qi(t)||0,oh(n)&&(p=!!n.leading,l="maxWait"in n,i=l?ah(Qi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f($){var S=r,C=o;return r=o=void 0,d=$,a=e.apply(C,S),a}function m($){return d=$,s=setTimeout(g,t),p?f($):a}function v($){var S=$-c,C=$-d,O=t-S;return l?sh(O,i-C):O}function _($){var S=$-c,C=$-d;return c===void 0||S>=t||S<0||l&&C>=i}function g(){var $=Tr();if(_($))return b($);s=setTimeout(g,v($))}function b($){return s=void 0,h&&r?f($):(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:b(Tr())}function x(){var $=Tr(),S=_($);if(r=arguments,o=this,c=$,S){if(s===void 0)return m(c);if(l)return clearTimeout(s),s=setTimeout(g,t),f(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=w,x.flush=y,x}var lh=ch;const uh=$o(lh),ro="|",ac=(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(ro)?r.defaultValue=o.split(ro):r.defaultValue=o}}}),n},sc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},cc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},dh=({searchParams:e})=>({properties:t})=>({filters:Wn(ac(t,e),"defaultValue"),mode:sc(e),geo:lc(e),page:Tn(e.get("page"))??1,view:cc(e),query:e.get("query")??""}),fh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=zn({filters:e.filters,query:"",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(ro)):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")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},Tn=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},lc=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=Tn(t),i=Tn(n),a=Tn(r)??Hn(oo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?Hn(oo):a}},uc=(e,t=1e3)=>{const[n,r]=k(e),o=X(()=>uh(i=>r(i),t),[t]);return R(()=>{o(e)},[e,o]),n},ph=Y(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:c,inputProps:d,menuProps:p,query:l},h)=>{const[f,m]=k(!1),[v,_]=k(),{t:g}=ne(),b=T();R(()=>{var y;_((y=o[0])==null?void 0:y.id)},[o]);const w=y=>{i(y),m(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:h,disabled:e,"data-active":f?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:cn({size:"md"}),onFocus:()=>{c==null||c(),m(!0)},onBlur:()=>{b.current=window.setTimeout(()=>{s==null||s(),m(!1)},100)},value:l,onChange:y=>a(y.currentTarget.value),onKeyDown:y=>{switch(m(!0),y.key){case"ArrowDown":case"ArrowUp":{const x=y.key==="ArrowDown"?1:-1;y.preventDefault();const $=o.findIndex(C=>C.id===v);if($===-1)return;const S=o[$+x]??o[y.key==="ArrowDown"?0:o.length-1];if(!S)return;_(S.id);break}case"Enter":{if(y.preventDefault(),!v)return;i(v)}}},...d}),!t&&f&&!e&&o.length>0?u("ul",{className:ec({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:()=>{b.current&&clearTimeout(b.current)},...p,children:t?u("div",{role:"alert",children:g("geo_suggestions_error")}):o.map(y=>u("li",{class:tc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>_(y.id),class:nc({active:y.id===v,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(y.id),onKeyDown:x=>{x.key==="Enter"&&w(y.id)},children:y.label})},y.id))}):null]})}),hh=(e={})=>new Promise((t,n)=>{var r,o;if((r=e.signal)!=null&&r.aborted){n(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(i=>t(i.coords),i=>n(i),e),(o=e.signal)==null||o.addEventListener("abort",()=>{n(new DOMException("Aborted","AbortError"))},{once:!0})}),gh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},ea=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,vh=({onLocate:e,onError:t,signal:n})=>{const[r,o]=k("idle"),[i,a]=k(null),{t:s}=ne(),c=d=>{o("idle"),a(d),e(d)};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(ea){if(o("loading"),i)return c(i);hh({signal:n}).then(d=>{const p={lat:d.latitude,lng:d.longitude};c(p)}).catch(d=>{if(d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const p=gh[d.code];if(!p)return;const l=s(p);t(l)})}},"data-state":r,class:je({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!ea||r==="error",children:u(Q,{name:"target-location"})})},$t=pe({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}}),mh="https://api.mapbox.com/search/geocode/v6/forward",_h="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",yh=e=>atob(e).split("").reverse().join(""),bh=ce({features:tn(ye(ce({properties:ce({mapbox_id:K(),place_formatted:dt(K()),name_preferred:dt(K(),"Untitled location"),coordinates:ye(ce({latitude:_e(),longitude:_e()}),me(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),me(e=>e.properties)))}),wh=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),xh=async e=>{if(!e)return[];const t=new URL(mh);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",yh(_h));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=po(bh,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return wh(o,i=>i.name_preferred+i.place_formatted)},$h=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=ne(),[a,s]=k(""),[c,d]=k(),p=uc(a,500),[l,h]=k(new AbortController),f=Yt(p,xh,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:m,queryState:v,error:_}=nn(f),[g,b]=k("view"),w=T(null);return R(()=>{if(g==="edit"){if(!w.current)return;w.current.focus()}},[g]),u("div",{class:"relative flex-1",children:[g==="view"&&n?u("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:cn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{b("edit")},children:u("div",{class:$t({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??i("location_provided")})}):u(ph,{ref:w,error:_,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{l.abort(),h(new AbortController)},onBlur:()=>{b("view"),s("")},onItemSelect:y=>{if(v!=="loaded")return;const x=m.find($=>$.mapbox_id===y);x&&(e(x.coordinates),b("view"),d(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(m==null?void 0:m.map(y=>({id:y.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:y.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:y.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(vh,{onLocate:y=>{b("view"),d(i("geo_my_location")),t({type:"provided",coords:y,radius:r})},onError:o,signal:l.signal}):u("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),d(void 0),t({radius:r,type:"provided"}),b("edit"),w.current&&(w.current.value="",w.current.focus())},class:je({variant:"neutral",size:"lg",icon:"only"}),children:u(Q,{name:"x"})})})]})},Ch=[.25,.5,1,3,5,10,15,20,30,40],oo=20,Hn=e=>e*1609.34,Eh=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Sh=ye(ce({type:Ee("provided"),lat:dt(ye(K(),me(Number))),lng:dt(ye(K(),me(Number))),radius:ye(K(),me(Number))}),me(e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0}))),Oh=({value:e,onValueChange:t,logger:n})=>{const{t:r}=ne(),o=qn(),i=(e==null?void 0:e.type)==="provided"?e.radius:Hn(oo),[a,s]=k();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),p=po(Sh,Object.fromEntries(d.entries()));if(!p.success){n.error(p.issues),s(p.issues[0].message);return}t(p.output)},class:"flex flex-col gap-2 md:flex-row",children:[u("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?u(M,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u($h,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:i,onValueChange:t,onSelect:c=>{s(void 0),t({type:"provided",radius:i,coords:c})},onError:s}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:o,children:r("geo_range_label")}),u("select",{id:o,name:"radius",class:cn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:i,onChange:c=>{s(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(c.currentTarget.value)})},children:Ch.map(c=>u("option",{value:Hn(c),class:"truncate",children:Eh.format(c)},c))}),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(Q,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(Q,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},Ah=2,kh=({value:e,onValueChange:t})=>{const[n,r]=k(e??""),o=n!==""&&n===e,{t:i}=ne();return R(()=>{r(e??"")},[e]),R(()=>{let a=n.trim();if(a.length<=Ah&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),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(Q,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:St({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:cn({hasValue:o,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:i("type_to_search_jobs"),value:n,onChange:a=>{r(a.currentTarget.value)}}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:u(Q,{name:"x"})})]})})},Th=({intervalMs:e,strings:t,class:n})=>{const[r,o]=k(0),[i,a]=k(!0),s=[...t,t[0]];return R(()=>{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:St("relative h-full w-full overflow-hidden",n),children:u("div",{className:St("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))})})},Ph=(e,t)=>{R(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},ta=3,Rh=({value:e,onValueChange:t,options:n})=>{const[r,o]=k(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=ne(),c=i.split("");R(()=>{o(e??"")},[e]);const[d,p]=k(0),l=T(null);return Ph(l,h=>{h.target instanceof HTMLInputElement&&p(h.target.scrollLeft)}),R(()=>{let h=r.trim();if(h.length<=ta&&(h=null),h===null){t("");return}const f=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(f)},[r,t]),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(Q,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:St("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:l,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:cn({hasValue:a,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:r,onChange:h=>{const f=h.currentTarget.value.trim();o(f)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=ta)return;h.preventDefault(),t(r)}}}),u("div",{"data-synced":a,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:i.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-d}px)`},children:c.map((h,f)=>u("span",{style:{animationDelay:`${f*300/c.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+f))}):n!=null&&n.suggestions?u(Th,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o(""),t("")},children:u(Q,{name:"x"})})]}),u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var Dh=Array.isArray,Io=Dh,Nh=Io,Mh=er,Lh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ih=/^\w*$/;function Fh(e,t){if(Nh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Mh(e)?!0:Ih.test(e)||!Lh.test(e)||t!=null&&e in Object(t)}var jh=Fh,Vh=ic,Hh=Xn,Wh="[object AsyncFunction]",Uh="[object Function]",zh="[object GeneratorFunction]",Bh="[object Proxy]";function qh(e){if(!Hh(e))return!1;var t=Vh(e);return t==Uh||t==zh||t==Wh||t==Bh}var Kh=qh,Gh=Qn,Yh=Gh["__core-js_shared__"],Zh=Yh,Pr=Zh,na=function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jh(e){return!!na&&na in e}var Xh=Jh,Qh=Function.prototype,eg=Qh.toString;function tg(e){if(e!=null){try{return eg.call(e)}catch{}try{return e+""}catch{}}return""}var ng=tg,rg=Kh,og=Xh,ig=Xn,ag=ng,sg=/[\\^$.*+?()[\]{}|]/g,cg=/^\[object .+?Constructor\]$/,lg=Function.prototype,ug=Object.prototype,dg=lg.toString,fg=ug.hasOwnProperty,pg=RegExp("^"+dg.call(fg).replace(sg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hg(e){if(!ig(e)||og(e))return!1;var t=rg(e)?pg:cg;return t.test(ag(e))}var gg=hg;function vg(e,t){return e==null?void 0:e[t]}var mg=vg,_g=gg,yg=mg;function bg(e,t){var n=yg(e,t);return _g(n)?n:void 0}var dc=bg,wg=dc,xg=wg(Object,"create"),tr=xg,ra=tr;function $g(){this.__data__=ra?ra(null):{},this.size=0}var Cg=$g;function Eg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sg=Eg,Og=tr,Ag="__lodash_hash_undefined__",kg=Object.prototype,Tg=kg.hasOwnProperty;function Pg(e){var t=this.__data__;if(Og){var n=t[e];return n===Ag?void 0:n}return Tg.call(t,e)?t[e]:void 0}var Rg=Pg,Dg=tr,Ng=Object.prototype,Mg=Ng.hasOwnProperty;function Lg(e){var t=this.__data__;return Dg?t[e]!==void 0:Mg.call(t,e)}var Ig=Lg,Fg=tr,jg="__lodash_hash_undefined__";function Vg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fg&&t===void 0?jg:t,this}var Hg=Vg,Wg=Cg,Ug=Sg,zg=Rg,Bg=Ig,qg=Hg;function Mt(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])}}Mt.prototype.clear=Wg;Mt.prototype.delete=Ug;Mt.prototype.get=zg;Mt.prototype.has=Bg;Mt.prototype.set=qg;var Kg=Mt;function Gg(){this.__data__=[],this.size=0}var Yg=Gg;function Zg(e,t){return e===t||e!==e&&t!==t}var Jg=Zg,Xg=Jg;function Qg(e,t){for(var n=e.length;n--;)if(Xg(e[n][0],t))return n;return-1}var nr=Qg,ev=nr,tv=Array.prototype,nv=tv.splice;function rv(e){var t=this.__data__,n=ev(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nv.call(t,n,1),--this.size,!0}var ov=rv,iv=nr;function av(e){var t=this.__data__,n=iv(t,e);return n<0?void 0:t[n][1]}var sv=av,cv=nr;function lv(e){return cv(this.__data__,e)>-1}var uv=lv,dv=nr;function fv(e,t){var n=this.__data__,r=dv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var pv=fv,hv=Yg,gv=ov,vv=sv,mv=uv,_v=pv;function Lt(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])}}Lt.prototype.clear=hv;Lt.prototype.delete=gv;Lt.prototype.get=vv;Lt.prototype.has=mv;Lt.prototype.set=_v;var yv=Lt,bv=dc,wv=Qn,xv=bv(wv,"Map"),$v=xv,oa=Kg,Cv=yv,Ev=$v;function Sv(){this.size=0,this.__data__={hash:new oa,map:new(Ev||Cv),string:new oa}}var Ov=Sv;function Av(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var kv=Av,Tv=kv;function Pv(e,t){var n=e.__data__;return Tv(t)?n[typeof t=="string"?"string":"hash"]:n.map}var rr=Pv,Rv=rr;function Dv(e){var t=Rv(this,e).delete(e);return this.size-=t?1:0,t}var Nv=Dv,Mv=rr;function Lv(e){return Mv(this,e).get(e)}var Iv=Lv,Fv=rr;function jv(e){return Fv(this,e).has(e)}var Vv=jv,Hv=rr;function Wv(e,t){var n=Hv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Uv=Wv,zv=Ov,Bv=Nv,qv=Iv,Kv=Vv,Gv=Uv;function It(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])}}It.prototype.clear=zv;It.prototype.delete=Bv;It.prototype.get=qv;It.prototype.has=Kv;It.prototype.set=Gv;var Yv=It,fc=Yv,Zv="Expected a function";function Fo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zv);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(Fo.Cache||fc),n}Fo.Cache=fc;var Jv=Fo,Xv=Jv,Qv=500;function em(e){var t=Xv(e,function(r){return n.size===Qv&&n.clear(),r}),n=t.cache;return t}var tm=em,nm=tm,rm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,om=/\\(\\)?/g,im=nm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rm,function(n,r,o,i){t.push(o?i.replace(om,"$1"):r||n)}),t}),am=im;function sm(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 cm=sm,ia=Lo,lm=cm,um=Io,dm=er,fm=1/0,aa=ia?ia.prototype:void 0,sa=aa?aa.toString:void 0;function pc(e){if(typeof e=="string")return e;if(um(e))return lm(e,pc)+"";if(dm(e))return sa?sa.call(e):"";var t=e+"";return t=="0"&&1/e==-fm?"-0":t}var pm=pc,hm=pm;function gm(e){return e==null?"":hm(e)}var vm=gm,mm=Io,_m=jh,ym=am,bm=vm;function wm(e,t){return mm(e)?e:_m(e,t)?[e]:ym(bm(e))}var xm=wm,$m=er,Cm=1/0;function Em(e){if(typeof e=="string"||$m(e))return e;var t=e+"";return t=="0"&&1/e==-Cm?"-0":t}var Sm=Em,Om=xm,Am=Sm;function km(e,t){t=Om(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Am(t[n++])];return n&&n==r?e:void 0}var Tm=km,Pm=Tm;function Rm(e,t,n){var r=e==null?void 0:Pm(e,t);return r===void 0?n:r}var Dm=Rm;const Nm=$o(Dm),zt=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),hc=pe({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}}),Mm=pe({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"}}),Rr=({job:e,property:t})=>{if(!t)return null;const n=Nm(e.raw,t.key);return t.transform?t.transform(n):n},Lm=({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}),ca=e=>Array.isArray(e)?e:[e],Im=1e3*60*60*24,gc=({job:e,config:t,onJobClick:n,size:r})=>{var f,m,v;const{t:o}=ne(),i=t.subheading?Rr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(_=>ca(Rr({job:e,property:_}))).filter(Boolean),s=ca((f=t.overrides)!=null&&f.salary?Rr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",d=(m=t.overrides)!=null&&m.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,p=t.newUnderDays??7,l=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-p*Im:!1,h=_=>{var g,b;n==null||n(e),(b=(g=t.overrides)==null?void 0:g.onClick)==null||b.call(g,_)};return u("a",{onMouseEnter:(v=t.overrides)==null?void 0:v.onMouseEnter,onClick:h,href:d,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:hc(),children:[u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(Lm,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:"flex flex-col items-start gap-1",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(Q,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:Mm({size:r}),children:[e.title.trim(),l&&c!=="hide"&&u(M,{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:o("new")})]})]}),i?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:i}):null]}),c==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[o("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:s.map((_,g)=>u("span",{class:$t({variant:"monetaryWeak",size:"xs"}),children:_},g))}),a.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(_=>u("li",{class:$t({size:"xs",class:"max-w-full truncate"}),children:_},_))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(Q,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},jo=({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:hc({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(zt,{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(zt,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(zt,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Fm=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=ne(),i=Math.min(ct,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:ct}).map((a,s)=>u("li",{children:u(jo,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:je({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})]})},jm=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c,prioritySegment:d})=>u(M,{children:Array.from({length:e.page}).map((p,l)=>{const h=l===e.page-1;return u(qt,{Fallback:Ze,children:u(Vm,{state:e,rpcClient:t,page:l+1,isFirst:l===0,isLast:h,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:c,prioritySegment:d},l)},l)})}),la=({page:e})=>{const{t}=ne();return u("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},Vm=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:c,onJobClick:d,afterResults:p,prioritySegment:l})=>{const{t:h}=ne(),f=n===1?s:void 0,{data:m,error:v,queryState:_,swr:g}=nn(Yt(Yr({state:e,baseKey:n.toString()}),()=>Ta({rpcClient:t,state:e,page:n,t:h,prioritySegment:l}),{...Nn,fallbackData:f}));switch(R(()=>{m&&r&&c&&c({totalCount:m.pagination.total})},[m,r,c]),_){case"idle":return null;case"loading":return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:u(zt,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:ct}).map((b,w)=>u("li",{children:u(jo,{seed:w,animationDelay:(w-ct)*.1,config:a})},w))})]});case"error":return u(Ze,{error:new Error(h("jobs_loading_error"),{cause:v}),resetError:()=>g.mutate()});case"revalidating":case"loaded":{if(fa(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(Q,{"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:h("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:h("no_jobs_found_description")})]})]});const b=m.pagination.last_page!==m.pagination.current_page,w=n*ct,y=Math.max(m.pagination.total-w,0),x=$=>{d($,n)};return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:h("jobs_found",{count:m.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:m.results.map($=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:_==="revalidating"?.33:1},children:u(gc,{job:$,onJobClick:x,config:a})},$.id))}),b&&o&&u(Fm,{state:_,fetchNextPage:i,config:a,remainingItems:y})]})}default:yt(_)}},Hm=wo(()=>Promise.resolve().then(()=>require("./map-6b166f3a.cjs")).then(e=>e.Map)),Wm=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s})=>{var v,_;const{t:c}=ne(),[d,p]=k(new AbortController),l=us("(max-width: 767px)"),h=H(g=>{r(g),d.abort(),p(new AbortController)},[r,d]),f=nn(Yt(["map",e],()=>zc({rpcClient:t,state:e,t:c,signal:d.signal,prioritySegment:s}),Nn));if(f.queryState==="error")return u(Ze,{error:new Error(c("jobs_loading_error"),{cause:f.error}),resetError:()=>f.swr.mutate()});const m=f.queryState==="loaded"||f.queryState==="revalidating";return u(M,{children:[u("div",{class:"flex items-center gap-2",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:m?f.data.results.length!==0&&c("map_jobs_showing",{count:f.data.results.length}):u("div",{class:"animate-skeleton",children:u(zt,{chars:8})})}),u("div",{class:"flex 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:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:m?u(bt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(Hm,{config:n,mapData:f,autoFit:((v=e.geo)==null?void 0:v.type)!=="bounds",onBoundsChange:h})}):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:[((_=f.data)==null?void 0:_.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(Q,{"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:c("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:c("no_jobs_found_description")})]})]}):null,m?f.data.results.map(g=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:f.queryState==="revalidating"?.33:1},children:u(gc,{job:g,onJobClick:b=>i(b,1),config:a,size:l?"sm":void 0})},g.id)):Array.from({length:6}).map((g,b)=>u("li",{children:u(jo,{seed:b,animationDelay:(b-6)*.1,config:a})},b))]})]})]})},ua=pe({base:"flex 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}}),Um=({value:e,onValueChange:t})=>{const{t:n}=ne();return u("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[u("button",{type:"button","aria-pressed":e==="list",class:ua({active:e==="list"}),onClick:()=>t("list"),children:[u(Q,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:ua({active:e==="map"}),onClick:()=>t("map"),children:[u(Q,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},zm=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(Um,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(jm,{afterResults:n,...e}):u(Wm,{...e,afterResults:n})},Wn=(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:yt(r.select)}return n},{}),Pn=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)),da=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Bm=({rpcClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var C,O,P,L,D,j;const{t:s}=ne(),c=T(null),d=X(()=>Wn(n,"defaultValue"),[n]),[p,l]=k(!0),[h,f]=k(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[m,v]=k(0),{onJobClick:_,analyticsPaginate:g}=qm({appRef:c,analytics:r,state:h,hasInteracted:!p,totalCount:m,defaultFilters:d}),b=H(A=>{f(N=>{if(N.page===A)return N;const I={...N,page:A};return i==null||i(I),I}),g(A)},[g,i]),w=H(A=>{f(N=>{const I={...N,view:A};return i==null||i(I),I})},[i]),y=H(A=>{f(N=>{var W;if(!N.query&&!A||N.query===A)return N;l(!1);const I=da(N.geo),F={...N,query:A,geo:I,page:1,mode:(W=a.naturalLanguageSearch)!=null&&W.enabled?"vector":"query"};return i==null||i(F),F})},[i,(C=a.naturalLanguageSearch)==null?void 0:C.enabled]),x=H(A=>{l(!1),f(N=>{const I={...N,geo:A};return i==null||i(I),I})},[i]),$=H(()=>{f(A=>{const N={...A,filters:Wn(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(N),N})},[i,n]),S=X(()=>(e.environment,new Map),[e.environment]);return u(Kl,{value:{provider:()=>S},children:u("div",{ref:c,class:St("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(O=a.theme.accessibility)==null?void 0:O.reducedMotion},Gr(a.theme)),children:[u(qt,{Fallback:Ze,children:u("div",{class:"flex flex-col gap-2",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:s("search_label")}),(P=a.naturalLanguageSearch)!=null&&P.enabled?u(Rh,{value:h.query,onValueChange:y,options:a.naturalLanguageSearch}):a.enableKeywordSearch?u(kh,{value:h.query,onValueChange:y}):null]}),(L=a.geolocation)!=null&&L.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:s("geo_label")}),u(Oh,{value:h.geo,onValueChange:A=>{l(!1),f(N=>{const I={...N,geo:A,page:1};return i==null||i(I),I}),g(1)},logger:t})]}):null]})}),u(fp,{state:h,onFilterValueChange:(A,N)=>{l(!1),f(I=>{const F={...I.filters,[A]:N},W=da(I.geo),Z={...I,filters:F,geo:W,page:1};return i==null||i(Z),Z}),g(1)},onResetFilters:$,properties:n,rpcClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(qt,{Fallback:Ze,children:u(zm,{state:h,rpcClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:p?o==null?void 0:o.jobs:void 0,onResultsUpdate:A=>{v(A.totalCount)},onJobClick:_,onPaginate:b,mode:(D=a.naturalLanguageSearch)!=null&&D.enabled?"vector":"query",onGeoChange:x,onViewChange:w,prioritySegment:(j=a.results)==null?void 0:j.prioritySegment})}),a.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("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]})]})})},qm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=H((d=1)=>({query:n.query,mode:n.mode,filters:Pn(n.filters),default_filters:Pn(r),total_count:o,page_size:ct,page:d}),[n.query,n.mode,n.filters,r,o]);return Gl(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),R(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Pn(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(d)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(d,p)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(p)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.A=T;exports.D=Et;exports.E=lo;exports.ErrorBoundary=qt;exports.IconSpritesheet=nl;exports.JOB_SEARCH_WIDGET_ID=Mc;exports.JobSearch=Bm;exports.TranslationProvider=Jc;exports.UnstyledErrorView=el;exports._=E;exports.commonjsGlobal=Wt;exports.createTFunction=Xc;exports.d=k;exports.filtersToPayload=Pn;exports.generateColorThemeCss=ru;exports.getDefaultExportFromCjs=$o;exports.getGeolocationFromSearchParams=lc;exports.getJobSearchResults=Ta;exports.getModeFromSearchParams=sc;exports.getStatefulPropertiesFromSearchParams=ac;exports.getViewFromSearchParams=cc;exports.getWidgetStateFromSearchParams=dh;exports.invariant=fa;exports.k=M;exports.setWidgetStateToSearchParams=fh;exports.u=u;exports.useDebouncedValue=uc;exports.useTranslation=ne;exports.y=R;