@inploi/plugin-job-search 1.2.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-cd874e5a.cjs");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-0070abd5.cjs");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;
package/dist/utils.d.ts CHANGED
@@ -1 +1 @@
1
- export { getStatefulPropertiesFromSearchParams, getGeolocationFromSearchParams } from './lib/utils';
1
+ export * from './lib/utils';
package/dist/utils.js CHANGED
@@ -1,5 +1,10 @@
1
- import { Y as e, X as o } from "./utils-dde9ec9c.js";
1
+ import { t as r, n as t, m as s, q as o, r as m, s as S, j as c } from "./utils-7ca39932.js";
2
2
  export {
3
- e as getGeolocationFromSearchParams,
4
- o as getStatefulPropertiesFromSearchParams
3
+ r as getGeolocationFromSearchParams,
4
+ t as getModeFromSearchParams,
5
+ s as getStatefulPropertiesFromSearchParams,
6
+ o as getViewFromSearchParams,
7
+ m as getWidgetStateFromSearchParams,
8
+ S as setWidgetStateToSearchParams,
9
+ c as useDebouncedValue
5
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "1.2.3",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-job-search.js",
6
6
  "types": "dist/index.d.ts",
@@ -65,8 +65,8 @@
65
65
  "vite": "^4.5.3",
66
66
  "vite-plugin-dts": "^3.9.1",
67
67
  "vite-tsconfig-paths": "^4.3.2",
68
- "@inploi/design-tokens": "0.2.1",
69
68
  "@inploi/core": "1.16.0",
69
+ "@inploi/design-tokens": "0.2.1",
70
70
  "@inploi/i18n": "0.1.2",
71
71
  "eslint-config-custom": "0.1.0"
72
72
  },
@@ -1,60 +0,0 @@
1
- "use strict";var $s=Object.defineProperty;var Ss=(e,t,n)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t,n)=>(Ss(e,typeof t!="symbol"?t+"":t,n),n);var cn=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function Cs(e,t){if(!e)throw new Error(t)}function Os(e,t){return e in t}var co={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},As=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)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 co?co[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")},Ps=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Ts=({from:e=new Date,to:t,formatter:n=Ps,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")},Ut;exports.l=void 0;var wi,it,lo,xi,sr,Ei,vt={},$i=[],Rs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,En=Array.isArray;function ke(e,t){for(var n in t)e[n]=t[n];return e}function Si(e){var t=e.parentNode;t&&t.removeChild(e)}function O(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?Ut.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 It(e,a,r,o,null)}function It(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++wi};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function Ci(){return{current:null}}function L(e){return e.children}function le(e,t){this.props=e,this.context=t}function gn(e,t){if(t==null)return e.__?gn(e.__,e.__.__k.indexOf(e)+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"?gn(e):null}function Oi(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 Oi(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&it.push(e)&&!vn.__r++||lo!==exports.l.debounceRendering)&&((lo=exports.l.debounceRendering)||xi)(vn)}function vn(){var e,t,n,r,o,i,a,s,l;for(it.sort(sr);e=it.shift();)e.__d&&(t=it.length,r=void 0,o=void 0,i=void 0,s=(a=(n=e).__v).__e,(l=n.__P)&&(r=[],o=[],(i=ke({},a)).__v=a.__v+1,Rr(l,a,i,n.__n,l.ownerSVGElement!==void 0,a.__h!=null?[s]:null,r,s??gn(a),a.__h,o),Ri(r,a,o),a.__e!=s&&Oi(a)),it.length>t&&it.sort(sr));vn.__r=0}function Ai(e,t,n,r,o,i,a,s,l,u,d){var c,h,f,g,p,b,v,m,w,y,x=0,E=r&&r.__k||$i,S=E.length,$=S,C=t.length;for(n.__k=[],c=0;c<C;c++)(g=n.__k[c]=(g=t[c])==null||typeof g=="boolean"||typeof g=="function"?null:typeof g=="string"||typeof g=="number"||typeof g=="bigint"?It(null,g,null,null,g):En(g)?It(L,{children:g},null,null,null):g.__b>0?It(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null&&(g.__=n,g.__b=n.__b+1,(m=ks(g,E,v=c+x,$))===-1?f=vt:(f=E[m]||vt,E[m]=void 0,$--),Rr(e,g,f,o,i,a,s,l,u,d),p=g.__e,(h=g.ref)&&f.ref!=h&&(f.ref&&kr(f.ref,null,g),d.push(h,g.__c||p,g)),p!=null&&(b==null&&(b=p),y=!(w=f===vt||f.__v===null)&&m===v,w?m==-1&&x--:m!==v&&(m===v+1?(x++,y=!0):m>v?$>C-v?(x+=m-v,y=!0):x--:x=m<v&&m==v-1?m-v:0),v=c+x,y=y||m==c&&!w,typeof g.type!="function"||m===v&&f.__k!==g.__k?typeof g.type=="function"||y?g.__d!==void 0?(l=g.__d,g.__d=void 0):l=p.nextSibling:l=Ti(e,p,l):l=Pi(g,l,e),typeof n.type=="function"&&(n.__d=l)));for(n.__e=b,c=S;c--;)E[c]!=null&&(typeof n.type=="function"&&E[c].__e!=null&&E[c].__e==n.__d&&(n.__d=E[c].__e.nextSibling),ki(E[c],E[c]))}function Pi(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?Pi(r,t,n):Ti(n,r.__e,t));return t}function Ne(e,t){return t=t||[],e==null||typeof e=="boolean"||(En(e)?e.some(function(n){Ne(n,t)}):t.push(e)),t}function Ti(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function ks(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type)return n;if(r>(l!=null?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&o==l.key&&i===l.type)return s;s++}}return-1}function Ds(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||_n(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||_n(e,i,t[i],n[i],r)}function uo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Rs.test(t)?n:n+"px"}function _n(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||uo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||uo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?po:fo,i):e.removeEventListener(t,i?po:fo,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function fo(e){return this.l[e.type+!1](exports.l.event?exports.l.event(e):e)}function po(e){return this.l[e.type+!0](exports.l.event?exports.l.event(e):e)}function Rr(e,t,n,r,o,i,a,s,l,u){var d,c,h,f,g,p,b,v,m,w,y,x,E,S,$,C=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(d=exports.l.__b)&&d(t);try{e:if(typeof C=="function"){if(v=t.props,m=(d=C.contextType)&&r[d.__c],w=d?m?m.props.value:d.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(v,w):(t.__c=c=new le(v,w),c.constructor=C,c.render=Ls),m&&m.sub(c),c.props=v,c.state||(c.state={}),c.context=w,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),C.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ke({},c.__s)),ke(c.__s,C.getDerivedStateFromProps(v,c.__s))),f=c.props,g=c.state,c.__v=t,h)C.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C.getDerivedStateFromProps==null&&v!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,w),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,w)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),y=0;y<c._sb.length;y++)c.__h.push(c._sb[y]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,w),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,g,p)})}if(c.context=w,c.props=v,c.__P=e,c.__e=!1,x=exports.l.__r,E=0,"prototype"in C&&C.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(t),d=c.render(c.props,c.state,c.context),S=0;S<c._sb.length;S++)c.__h.push(c._sb[S]);c._sb=[]}else do c.__d=!1,x&&x(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++E<25);c.state=c.__s,c.getChildContext!=null&&(r=ke(ke({},r),c.getChildContext())),h||c.getSnapshotBeforeUpdate==null||(p=c.getSnapshotBeforeUpdate(f,g)),Ai(e,En($=d!=null&&d.type===L&&d.key==null?d.props.children:d)?$:[$],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),b&&(c.__E=c.__=null)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ns(n.__e,t,n,r,o,i,a,l,u);(d=exports.l.diffed)&&d(t)}catch(A){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),exports.l.__e(A,t,n)}}function Ri(e,t,n){for(var r=0;r<n.length;r++)kr(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 Ns(e,t,n,r,o,i,a,s,l){var u,d,c,h=n.props,f=t.props,g=t.type,p=0;if(g==="svg"&&(o=!0),i!=null){for(;p<i.length;p++)if((u=i[p])&&"setAttribute"in u==!!g&&(g?u.localName===g:u.nodeType===3)){e=u,i[p]=null;break}}if(e==null){if(g===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,f.is&&f),i=null,s=!1}if(g===null)h===f||s&&e.data===f||(e.data=f);else{if(i=i&&Ut.call(e.childNodes),d=(h=n.props||vt).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!s){if(i!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(Ds(e,f,h,o,s),c)t.__k=[];else if(Ai(e,En(p=t.props.children)?p:[p],t,n,r,o&&g!=="foreignObject",i,a,i?i[0]:n.__k&&gn(n,0),s,l),i!=null)for(p=i.length;p--;)i[p]!=null&&Si(i[p]);s||("value"in f&&(p=f.value)!==void 0&&(p!==e.value||g==="progress"&&!p||g==="option"&&p!==h.value)&&_n(e,"value",p,h.value,!1),"checked"in f&&(p=f.checked)!==void 0&&p!==e.checked&&_n(e,"checked",p,h.checked,!1))}return e}function kr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){exports.l.__e(r,n)}}function ki(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kr(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,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ki(r[o],t,n||typeof e.type!="function");n||e.__e==null||Si(e.__e),e.__=e.__e=e.__d=void 0}function Ls(e,t,n){return this.constructor(e,n)}function bt(e,t,n){var r,o,i,a;exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Rr(t,e=(!r&&n||t).__k=O(L,null,[e]),o||vt,vt,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Ut.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Ri(i,e,a)}function Dr(e,t){bt(e,t,Dr)}function Is(e,t,n){var r,o,i,a,s=ke({},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?Ut.call(arguments,2):n),It(e.type,s,r||e.key,o||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Ei++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,cr(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ut=$i.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}},wi=0,le.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ke({},this.state),typeof e=="function"&&(e=e(ke({},n),this.props)),e&&ke(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),cr(this))},le.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},le.prototype.render=L,it=[],xi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},vn.__r=0,Ei=0;var lr="RFC3986",ur={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},Ms="RFC1738",Fs=Array.isArray,ge=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),In=1024,js=(e,t,n,r,o)=>{if(e.length===0)return e;let i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(s){return"%26%23"+parseInt(s.slice(2),16)+"%3B"});let a="";for(let s=0;s<i.length;s+=In){const l=i.length>=In?i.slice(s,s+In):i,u=[];for(let d=0;d<l.length;++d){let c=l.charCodeAt(d);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Ms&&(c===40||c===41)){u[u.length]=l.charAt(d);continue}if(c<128){u[u.length]=ge[c];continue}if(c<2048){u[u.length]=ge[192|c>>6]+ge[128|c&63];continue}if(c<55296||c>=57344){u[u.length]=ge[224|c>>12]+ge[128|c>>6&63]+ge[128|c&63];continue}d+=1,c=65536+((c&1023)<<10|l.charCodeAt(d)&1023),u[u.length]=ge[240|c>>18]+ge[128|c>>12&63]+ge[128|c>>6&63]+ge[128|c&63]}a+=u.join("")}return a};function Vs(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function ho(e,t){if(Fs(e)){const n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}var Ws=Object.prototype.hasOwnProperty,Di={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},_e=Array.isArray,Hs=Array.prototype.push,Ni=function(e,t){Hs.apply(e,_e(t)?t:[t])},Us=Date.prototype.toISOString,X={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:js,encodeValuesOnly:!1,format:lr,formatter:ur[lr],indices:!1,serializeDate(e){return Us.call(e)},skipNulls:!1,strictNullHandling:!1};function Bs(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}var Mn={};function Li(e,t,n,r,o,i,a,s,l,u,d,c,h,f,g,p,b,v){let m=e,w=v,y=0,x=!1;for(;(w=w.get(Mn))!==void 0&&!x;){const A=w.get(e);if(y+=1,typeof A<"u"){if(A===y)throw new RangeError("Cyclic object value");x=!0}typeof w.get(Mn)>"u"&&(y=0)}if(typeof u=="function"?m=u(t,m):m instanceof Date?m=h==null?void 0:h(m):n==="comma"&&_e(m)&&(m=ho(m,function(A){return A instanceof Date?h==null?void 0:h(A):A})),m===null){if(i)return l&&!p?l(t,X.encoder,b,"key",f):t;m=""}if(Bs(m)||Vs(m)){if(l){const A=p?t:l(t,X.encoder,b,"key",f);return[(g==null?void 0:g(A))+"="+(g==null?void 0:g(l(m,X.encoder,b,"value",f)))]}return[(g==null?void 0:g(t))+"="+(g==null?void 0:g(String(m)))]}const E=[];if(typeof m>"u")return E;let S;if(n==="comma"&&_e(m))p&&l&&(m=ho(m,l)),S=[{value:m.length>0?m.join(",")||null:void 0}];else if(_e(u))S=u;else{const A=Object.keys(m);S=d?A.sort(d):A}const $=s?String(t).replace(/\./g,"%2E"):String(t),C=r&&_e(m)&&m.length===1?$+"[]":$;if(o&&_e(m)&&m.length===0)return C+"[]";for(let A=0;A<S.length;++A){const R=S[A],M=typeof R=="object"&&typeof R.value<"u"?R.value:m[R];if(a&&M===null)continue;const F=c&&s?R.replace(/\./g,"%2E"):R,k=_e(m)?typeof n=="function"?n(C,F):C:C+(c?"."+F:"["+F+"]");v.set(e,y);const G=new WeakMap;G.set(Mn,v),Ni(E,Li(M,k,n,r,o,i,a,s,n==="comma"&&p&&_e(m)?null:l,u,d,c,h,f,g,p,b,G))}return E}function zs(e=X){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||X.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=lr;if(typeof e.format<"u"){if(!Ws.call(ur,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const r=ur[n];let o=X.filter;(typeof e.filter=="function"||_e(e.filter))&&(o=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in Di?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=X.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const a=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:X.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:X.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:X.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:X.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?X.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:X.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:X.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:X.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:X.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:X.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:X.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:X.strictNullHandling}}function Nr(e,t={}){let n=e;const r=zs(t);let o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):_e(r.filter)&&(i=r.filter,o=i);const a=[];if(typeof n!="object"||n===null)return"";const s=Di[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);const u=new WeakMap;for(let h=0;h<o.length;++h){const f=o[h];r.skipNulls&&n[f]===null||Ni(a,Li(n[f],f,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}const d=a.join(r.delimiter);let c=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),d.length>0?c+d:""}var Bt=class extends Error{constructor(t){super(t[0].message);Ln(this,"issues");this.name="ValiError",this.issues=t}};function go(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function zt(e){return{issues:e}}function st(e){return{output:e}}function Ks(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function qs(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function Xe(e,t,n,r){if(!t||!t.length||n!=null&&n.skipPipe)return st(e);let o,i,a=e;for(const s of t){const l=s._parse(a);if(l.issues){o=o||qs(n,r);for(const u of l.issues){const d=Ks(o,u);i?i.push(d):i=[d]}if(o.abortEarly||o.abortPipeEarly)break}else a=l.output}return i?zt(i):st(a)}function ze(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function Ii(e){return typeof e=="function"?e():e}function Gs(e,t,n,r){return zt([{validation:e,message:Ii(t),input:n,requirement:r}])}function Ys(e,t,n){if(!e||typeof e=="object"&&!Array.isArray(e)){const[i,a]=ze(t,n);return[e,i,a]}const[r,o]=ze(e,t);return[void 0,r,o]}function Je(e,t,n,r,o,i){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:Ii(r),input:o,issues:i,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function Mi(e){return typeof e.default=="function"?e.default():e.default}function Zs(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return Xe(t,this.pipe,n,"any")}}}function $n(e,t,n){const[r="Invalid type",o]=ze(t,n);return{type:"array",async:!1,item:e,message:r,pipe:o,_parse(i,a){if(!Array.isArray(i))return Je(a,"type","array",this.message,i);let s;const l=[];for(let u=0;u<i.length;u++){const d=i[u],c=this.item._parse(d,a);if(c.issues){const h={type:"array",input:i,key:u,value:d};for(const f of c.issues)f.path?f.path.unshift(h):f.path=[h],s==null||s.push(f);if(s||(s=c.issues),a!=null&&a.abortEarly)break}else l.push(c.output)}return s?zt(s):Xe(l,this.pipe,a,"array")}}}function dr(e,t){const[n="Invalid type",r]=ze(e,t);return{type:"boolean",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="boolean"?Je(i,"type","boolean",this.message,o):Xe(o,this.pipe,i,"boolean")}}}function Pe(e,t="Invalid type"){return{type:"literal",async:!1,literal:e,message:t,_parse(n,r){return n!==this.literal?Je(r,"type","literal",this.message,n):st(n)}}}function ne(e,t){return{type:"nullable",async:!1,wrapped:e,default:t,_parse(n,r){if(n===null){const o=Mi(this);if(o===void 0)return st(n);n=o}return this.wrapped._parse(n,r)}}}function be(e,t){const[n="Invalid type",r]=ze(e,t);return{type:"number",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?Je(i,"type","number",this.message,o):Xe(o,this.pipe,i,"number")}}}function ce(e,t,n,r){const[o,i="Invalid type",a]=Ys(t,n,r);let s;return{type:"object",async:!1,entries:e,rest:o,message:i,pipe:a,_parse(l,u){if(!l||typeof l!="object")return Je(u,"type","object",this.message,l);s=s||Object.entries(this.entries);let d;const c={};for(const[h,f]of s){const g=l[h],p=f._parse(g,u);if(p.issues){const b={type:"object",input:l,key:h,value:g};for(const v of p.issues)v.path?v.path.unshift(b):v.path=[b],d==null||d.push(v);if(d||(d=p.issues),u!=null&&u.abortEarly)break}else(p.output!==void 0||h in l)&&(c[h]=p.output)}if(this.rest&&!(u!=null&&u.abortEarly&&d)){for(const h in l)if(!(h in this.entries)){const f=l[h],g=this.rest._parse(f,u);if(g.issues){const p={type:"object",input:l,key:h,value:f};for(const b of g.issues)b.path?b.path.unshift(p):b.path=[p],d==null||d.push(b);if(d||(d=g.issues),u!=null&&u.abortEarly)break}else c[h]=g.output}}return d?zt(d):Xe(c,this.pipe,u,"object")}}}function Te(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(n,r){if(n===void 0){const o=Mi(this);if(o===void 0)return st(n);n=o}return this.wrapped._parse(n,r)}}}function j(e,t){const[n="Invalid type",r]=ze(e,t);return{type:"string",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="string"?Je(i,"type","string",this.message,o):Xe(o,this.pipe,i,"string")}}}function Xs(e,t,n,r){if(typeof t=="object"&&!Array.isArray(t)){const[a,s]=ze(n,r);return[e,t,a,s]}const[o,i]=ze(t,n);return[j(),e,o,i]}var Js=["__proto__","prototype","constructor"];function Fi(e,t,n,r){const[o,i,a="Invalid type",s]=Xs(e,t,n,r);return{type:"record",async:!1,key:o,value:i,message:a,pipe:s,_parse(l,u){if(!l||typeof l!="object")return Je(u,"type","record",this.message,l);let d;const c={};for(const[h,f]of Object.entries(l))if(!Js.includes(h)){let g;const p=this.key._parse(h,{origin:"key",abortEarly:u==null?void 0:u.abortEarly,abortPipeEarly:u==null?void 0:u.abortPipeEarly,skipPipe:u==null?void 0:u.skipPipe});if(p.issues){g={type:"record",input:l,key:h,value:f};for(const v of p.issues)v.path=[g],d==null||d.push(v);if(d||(d=p.issues),u!=null&&u.abortEarly)break}const b=this.value._parse(f,u);if(b.issues){g=g||{type:"record",input:l,key:h,value:f};for(const v of b.issues)v.path?v.path.unshift(g):v.path=[g],d==null||d.push(v);if(d||(d=b.issues),u!=null&&u.abortEarly)break}!p.issues&&!b.issues&&(c[p.output]=b.output)}return d?zt(d):Xe(c,this.pipe,u,"record")}}}function vo(e,t="Invalid type"){return{type:"union",async:!1,options:e,message:t,_parse(n,r){let o,i;for(const a of this.options){const s=a._parse(n,r);if(s.issues)if(o)for(const l of s.issues)o.push(l);else o=s.issues;else{i=[s.output];break}}return i?st(i[0]):Je(r,"type","union",this.message,n,o)}}}function Lr(e,t,n){const r=e._parse(t,n);if(r.issues)throw new Bt(r.issues);return r.output}function Ir(e,t,n){const r=e._parse(t,n);return r.issues?{success:!1,error:new Bt(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function De(e,t,n){return{...e,_parse(r,o){const i=e._parse(r,o);if(i.issues)return i;const a=t(i.output);return n&&!Array.isArray(n)?n._parse(a,o):Xe(a,n,o,typeof a)}}}function Qs(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?st(t):Gs(this.type,this.message,t,this.requirement)}}}const ec="inploi-job-search",ji=10,tc=Fi($n(ce({label:go(j(),String),value:go(j(),String),jobs:be()}))),nc=j([Qs()]),rc=ce({total:be(),current_page:be(),per_page:be(),last_page:be()}),oc=ce({id:be(),company_name:j(),company_logo:ne(Te(j())),employment_type:j(),location_type:vo([Pe("LOCATION"),Pe("REMOTE"),Pe("HYBRID")]),pay_type:ne(vo([Pe("ANNUALLY"),Pe("HOURLY"),Pe("MONTHLY"),Pe("WEEKLY"),Pe("DAILY")])),pay_currency:j(),pay_mask:dr(),pay_display:dr(),pay:ne(j()),pay_min:ne(j()),pay_max:ne(j()),description:j(),title:j(),contract_type:ne(j()),created_at:ne(j()),custom_data:ne(Fi(Zs())),href:j(),industry:ne(j()),category:ne(j()),skills:Te(j()),town:Te(j()),city:ne(j()),country:ne(j()),vector_distance:Te(ne(j())),coordinates:Te(ne(ce({lat:be(),lng:be()})))}),Vi=e=>De(oc,t=>{const n=Ir(nc,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:As({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?Ts({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}}),ic=e=>De(ce({data:$n(Vi(e)),pagination:rc}),t=>({pagination:t.pagination,results:t.data})),ac=e=>!e||Array.isArray(e)&&e.length===0?null:e,Mr=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=ac(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},sc=async({apiClient:e,state:t,logger:n,signal:r})=>{try{const o=new URLSearchParams(Nr({filters:Mr(t),query:t.query})),i="/search/filters",a=await e.fetch([i,o.toString()].filter(Boolean).join("?"),{signal:r});return Lr(tc,a)}catch(o){throw o instanceof Bt?n.error(o.message,o.issues):n.error(o),o}},cc=async({apiClient:e,logger:t,signal:n,state:r,page:o=1,t:i})=>{try{const a=new URLSearchParams(Nr({filters:Mr(r)}));a.set("page",o.toString()),a.set("per_page",ji.toString()),r.query&&(a.set("query",r.query),a.set("mode",r.mode));const s=await e.fetch(["/search/results",a.toString()].filter(Boolean).join("?"),{signal:n});return Lr(ic(i),s)}catch(a){throw a instanceof Bt?t.error(a.message,a.issues):t.error(a),a}},lc=e=>De(ce({data:$n(Vi(e)),pagination:ce({has_more:dr()})}),t=>({results:t.data,pagination:t.pagination})),uc=async({apiClient:e,logger:t,signal:n,state:r,t:o})=>{try{const i=new URLSearchParams(Nr({filters:Mr(r)}));r.query&&(i.set("query",r.query),i.set("mode",r.mode));const a=await e.fetch(["/search/map-results",i.toString()].filter(Boolean).join("?"),{signal:n});return Lr(lc(o),a)}catch(i){throw i instanceof Bt?t.error(i.message,i.issues):t.error(i),i}},Fr=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")},dc={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var fc=0;function _(e,t,n,r,o,i){var a,s,l={};for(s in t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--fc,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return exports.l.vnode&&exports.l.vnode(u),u}function Wi(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=Wi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wi(e))&&(r&&(r+=" "),r+=t);return r}var pc=["other","few","many","two","one","zero"],_o=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(l,u)=>{var d;return((d=a==null?void 0:a[u])==null?void 0:d.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(a.count);if(!(l in s)){const u=pc.find(d=>d in s);if(!u)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=u}return s[l].replace(/{{(\w+)}}/g,(u,d)=>{var c;return((c=a==null?void 0:a[d])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Ie,U,Fn,mo,wt=0,Ui=[],ln=[],yo=exports.l.__b,bo=exports.l.__r,wo=exports.l.diffed,xo=exports.l.__c,Eo=exports.l.unmount;function ut(e,t){exports.l.__h&&exports.l.__h(U,e,wt||t),wt=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ln}),n.__[e]}function T(e){return wt=1,Sn(zi,e)}function Sn(e,t,n){var r=ut(Ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):zi(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.u)){var o=function(s,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,s,l,u);var c=!1;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!i||i.call(this,s,l,u))};U.u=!0;var i=U.shouldComponentUpdate,a=U.componentWillUpdate;U.componentWillUpdate=function(s,l,u){if(this.__e){var d=i;i=void 0,o(s,l,u),i=d}a&&a.call(this,s,l,u)},U.shouldComponentUpdate=o}return r.__N||r.__}function D(e,t){var n=ut(Ie++,3);!exports.l.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,U.__H.__h.push(n))}function je(e,t){var n=ut(Ie++,4);!exports.l.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,U.__h.push(n))}function P(e){return wt=5,ee(function(){return{current:e}},[])}function Bi(e,t,n){wt=6,je(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ee(e,t){var n=ut(Ie++,7);return Wr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function K(e,t){return wt=8,ee(function(){return e},t)}function St(e){var t=U.context[e.__c],n=ut(Ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(U)),t.props.value):e.__}function jr(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function hc(e){var t=ut(Ie++,10),n=T();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Vr(){var e=ut(Ie++,11);if(!e.__){for(var t=U.__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=Ui.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(un),e.__H.__h.forEach(fr),e.__H.__h=[]}catch(t){e.__H.__h=[],exports.l.__e(t,e.__v)}}exports.l.__b=function(e){U=null,yo&&yo(e)},exports.l.__r=function(e){bo&&bo(e),Ie=0;var t=(U=e.__c).__H;t&&(Fn===U?(t.__h=[],U.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ln,n.__N=n.i=void 0})):(t.__h.forEach(un),t.__h.forEach(fr),t.__h=[],Ie=0)),Fn=U},exports.l.diffed=function(e){wo&&wo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ui.push(t)!==1&&mo===exports.l.requestAnimationFrame||((mo=exports.l.requestAnimationFrame)||vc)(gc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ln&&(n.__=n.__V),n.i=void 0,n.__V=ln})),Fn=U=null},exports.l.__c=function(e,t){t.some(function(n){try{n.__h.forEach(un),n.__h=n.__h.filter(function(r){return!r.__||fr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],exports.l.__e(r,n.__v)}}),xo&&xo(e,t)},exports.l.unmount=function(e){Eo&&Eo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{un(r)}catch(o){t=o}}),n.__H=void 0,t&&exports.l.__e(t,n.__v))};var $o=typeof requestAnimationFrame=="function";function vc(e){var t,n=function(){clearTimeout(r),$o&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$o&&(t=requestAnimationFrame(n))}function un(e){var t=U,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),U=t}function fr(e){var t=U;e.__c=e.__(),U=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function zi(e,t){return typeof t=="function"?t(e):t}var So=at(null),_c=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=ee(()=>(console.log("instantiating"),_o({locale:r,terms:e,overrides:t})),[t,r]);return _(So.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=St(So);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>_o({terms:e,overrides:t,locale:n})});const{TranslationProvider:mc,useTranslation:Qe,createTFunction:yc}=_c({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"}});function Ki(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=Ki(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ki(e))&&(r&&(r+=" "),r+=t);return r}const Co=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,bc=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,l;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"](jn(i)):typeof(e==null||(l=e.hooks)===null||l===void 0?void 0:l.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(jn(i)):jn(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const l=Object.fromEntries(Object.entries(s||{}).filter(u=>{let[d]=u;return!["class","className"].includes(d)}));return t(i.map(u=>u(l)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:l}=o,u=Object.keys(s).map(h=>{const f=i==null?void 0:i[h],g=l==null?void 0:l[h],p=Co(f)||Co(g);return s[h][p]}),d={...l,...i&&Object.entries(i).reduce((h,f)=>{let[g,p]=f;return typeof p>"u"?h:{...h,[g]:p}},{})},c=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:g,className:p,...b}=f;return Object.entries(b).every(v=>{let[m,w]=v;const y=d[m];return Array.isArray(w)?w.includes(y):y===w})?[...h,g,p]:h},[]);return t(o==null?void 0:o.base,u,c,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:Gp,cva:$e,cx:Yp}=bc(),xt=$e({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",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"}}),wc=({error:e,resetError:t})=>{const{t:n}=Qe();return _("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:[_("p",{children:e.message}),_("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:n("retry")})]})},pr=({error:e,resetError:t,class:n,...r})=>{const{t:o}=Qe();return _("div",{class:Hi("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:[_("div",{class:"flex max-w-full flex-col gap-1",children:[_("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),_("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})]}),_("button",{type:"button",class:xt({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class xc extends le{constructor(){super(...arguments);Ln(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 _(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const Ec={briefcase:_(L,{children:[_("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"}),_("path",{d:"M4.75 11.75H19.25"}),_("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),_("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:_(L,{children:[_("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"}),_("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"}),_("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),_("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),_("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),_("circle",{cx:"18.75",cy:"12",r:"2"}),_("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:_(L,{children:[_("path",{d:"M16.75 10.25H13.75"}),_("path",{d:"M16.75 13.25H13.75"}),_("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"}),_("path",{d:"M10.25 12.25V18.25"})]}),circles:_(L,{children:[_("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"}),_("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:_(L,{children:[_("path",{d:"M14 9L12 13L9.5 12"}),_("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:_(L,{children:_("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:_(L,{children:[_("path",{d:"M5 13.75H19"}),_("path",{d:"M5 10.25H19"}),_("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"}),_("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:_(L,{children:[_("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"}),_("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"}),_("path",{d:"M16 16L19 19"})]}),magnifierSimple:_(L,{children:[_("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"}),_("path",{d:"M16 16L19 19"})]}),mapPin:_(L,{children:_(L,{children:[_("circle",{cx:"12",cy:"9",r:"2"}),_("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"}),_("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:_(L,{children:[_("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),_("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:_(L,{children:[_("path",{d:"M18.5 8.5L17.5 9.5"}),_("path",{d:"M5.5 8.5L6.5 9.5"}),_("path",{d:"M12 6L12 7.5"}),_("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"}),_("path",{d:"M20.25 15.25H12H3.75"}),_("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:_("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:_("path",{d:"M12 8V16M8 12H16"}),"chevron-right":_("path",{d:"M11 8L15 12L11 16"}),ai:_("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":_(L,{children:[_("circle",{cx:"12",cy:"12",r:"0.75"}),_("circle",{cx:"12",cy:"12",r:"5.75"}),_("path",{d:"M12 4.25V6.25"}),_("path",{d:"M12 17.75V19.75"}),_("path",{d:"M4.25 12L6.25 12"}),_("path",{d:"M17.75 12L19.75 12"})]}),warning:_("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:_(L,{children:[_("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),_("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),_("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:_(L,{children:[_("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),_("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},$c=({theme:e})=>_("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:_("defs",{children:Object.entries(Ec).map(([t,n])=>{var r;return _("symbol",{id:`i-icon-${t}`,children:_("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)})})}),Le=({name:e,...t})=>_("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:_("use",{href:`#i-icon-${e}`})}),qi=e=>{const[t,n]=T(!1);return D(()=>{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},Sc=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=T(!1);D(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(l=>l.forEach(u=>{clearTimeout(a),u.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var Cc=["1","2","3","4","5","6","7","8","9","10","11","12"],Oc={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]}},Ac=(e,t=1,n)=>r=>{const[o,i]=Oc[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Vn=e=>{const t=Ac(e.hue,e.chroma,e.mode);return Object.fromEntries(Cc.map(n=>[e.prefix+n,e.transform(t(n))]))},Wn=e=>e,Pc=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)},Xt=e=>!!e&&typeof e=="object"&&!Array.isArray(e),hr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Xt(e)&&Xt(n))for(const r in n){const o=n[r];if(Xt(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];Xt(i)&&hr(i,o)}else Object.assign(e,{[r]:n[r]})}return hr(e,...t)},Tc=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Rc=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),l=t({theme:o,core:a,raw:{core:s}}),u=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:l}}),d=Pc(hr(s,l,u)),c=([h,f],g)=>{const p=[g,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(b=>c(b,p)):[[r.getToken("declaration",p),f]]};return{values:d,declarations:Object.fromEntries(Object.entries(d).flatMap(h=>c(h))),ref:h=>i("reference",h.toString())}}})})})});const ve=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)},[Hn,Un,Jt]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],kc=Rc().core(({theme:e})=>{var t,n,r,o;return{color:{black:Hn,white:Un,lowest:e.mode==="light"?Un:Hn,highest:e.mode==="light"?Hn:Un,...Vn({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Wn}),...Vn({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:Wn}),...Vn({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:Wn})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,l,u,d,c,h,f,g,p,b,v,m,w,y,x,E,S,$,C,A,R;const r=(M,F)=>n.core.color[M].replace(")",` / ${F})`),{typography:o,highlights:i}=t,a=((s=t.accessibility)==null?void 0:s.highContrast)??!1;return{font:o.fontFamily??"inherit","font-style":o.style??"inherit","font-filter":((l=o.filter)==null?void 0:l.fontFamily)??o.fontFamily??"inherit","font-job-heading":((u=t.typography.jobHeading)==null?void 0:u.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((d=o.tag)==null?void 0:d.fontFamily)??o.fontFamily??"inherit","weight-default":((c=o.weight)==null?void 0:c.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((g=(f=o.filter)==null?void 0:f.weight)==null?void 0:g.toString())??((p=o.weight)==null?void 0:p.toString())??"inherit","style-tag":((b=o.tag)==null?void 0:b.style)??o.style??"inherit","style-job-heading":((v=o.jobHeading)==null?void 0:v.style)??o.style??"inherit","weight-tag":((w=(m=o.tag)==null?void 0:m.weight)==null?void 0:w.toString())??((y=o.weight)==null?void 0:y.toString())??"inherit","weight-job-heading":((E=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:E.toString())??((S=o.weight)==null?void 0:S.toString())??"inherit","style-input":(($=o.input)==null?void 0:$.style)??o.style??"inherit","weight-input":((A=(C=o.input)==null?void 0:C.weight)==null?void 0:A.toString())??((R=o.weight)==null?void 0:R.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"):Jt,"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":Jt,"radius-app":ve(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":ve(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":ve(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":ve(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":ve(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":ve(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":ve(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":ve(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"?Jt:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?Jt:e(a?"color.n-11":"color.n-4"),"section-stroke-width":ve(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":ve(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),Dc=Tc({prefix:"i-"}),Nc=e=>{const t=kc.from({theme:e.theme,getToken:Dc}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
2
- ${n.concat(n).join(`
3
- `)}
4
- }`},gr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};function Gi(e,t){for(var n in t)e[n]=t[n];return e}function vr(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 Bn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function mn(e){this.props=e}function Yi(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:vr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,O(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(mn.prototype=new le).isPureReactComponent=!0,mn.prototype.shouldComponentUpdate=function(e,t){return vr(this.props,e)||vr(this.state,t)};var Oo=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oo&&Oo(e)};var Lc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function z(e){function t(n){var r=Gi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Lc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ao=function(e,t){return e==null?null:Ne(Ne(e).map(t))},xe={map:Ao,forEach:Ao,count:function(e){return e?Ne(e).length:0},only:function(e){var t=Ne(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ne},Ic=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)}Ic(e,t,n,r)};var Po=exports.l.unmount;function Zi(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=Gi({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Zi(r,t,n)})),e}function Xi(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Xi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function _t(){this.__u=0,this.t=null,this.__b=null}function Ji(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Hr(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 O(n,i)}return o.displayName="Lazy",o.__f=!0,o}function gt(){this.u=null,this.o=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Po&&Po(e)},(_t.prototype=new le).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ji(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 u=r.state.__a;r.__v.__k[0]=Xi(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_t.prototype.componentWillUnmount=function(){this.t=[]},_t.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]=Zi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O(L,null,e.fallback);return o&&(o.__h=null),[O(L,null,t.__a?null:e.children),o]};var To=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Mc(e){return this.getChildContext=function(){return e.context},e.children}function Fc(e){var t=this,n=e.i;t.componentWillUnmount=function(){bt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),bt(O(Mc,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Qi(e,t){var n=O(Fc,{__v:e,i:t});return n.containerInfo=t,n}(gt.prototype=new le).__a=function(e){var t=this,n=Ji(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),To(t,e,r)):o()};n?n(i):i()}},gt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ne(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},gt.prototype.componentDidUpdate=gt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){To(e,n,t)})};var ea=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jc=/^(?: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]/,Vc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Wc=/[A-Z0-9]/g,Hc=typeof document<"u",Uc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ta(e,t,n){return t.__k==null&&(t.textContent=""),bt(e,t),typeof n=="function"&&n(),e?e.__c:null}function na(e,t,n){return Dr(e,t),typeof n=="function"&&n(),e?e.__c:null}le.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(le.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ro=exports.l.event;function Bc(){}function zc(){return this.cancelBubble}function Kc(){return this.defaultPrevented}exports.l.event=function(e){return Ro&&(e=Ro(e)),e.persist=Bc,e.isPropagationStopped=zc,e.isDefaultPrevented=Kc,e.nativeEvent=e};var Ur,qc={enumerable:!1,configurable:!0,get:function(){return this.class}},ko=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Hc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Uc(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":Vc.test(i)?i=s:r.indexOf("-")===-1&&jc.test(i)?i=i.replace(Wc,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ne(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ne(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",qc)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ea,ko&&ko(e)};var Do=exports.l.__r;exports.l.__r=function(e){Do&&Do(e),Ur=e.__c};var No=exports.l.diffed;exports.l.diffed=function(e){No&&No(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),Ur=null};var ra={ReactCurrentDispatcher:{current:{readContext:function(e){return Ur.__n[e.__c].props.value}}}},Gc="17.0.2";function oa(e){return O.bind(null,e)}function ct(e){return!!e&&e.$$typeof===ea}function Ct(e){return ct(e)?Is.apply(null,arguments):e}function ia(e){return!!e.__k&&(bt(null,e),!0)}function aa(e){return e&&(e.base||e.nodeType===1&&e)||null}var sa=function(e,t){return e(t)},Kt=function(e,t){return e(t)},ca=L;function Br(e){e()}function la(e){return e}function ua(){return[!1,Br]}var da=je;function fa(e,t){var n=t(),r=T({h:{__:n,v:t}}),o=r[0].h,i=r[1];return je(function(){o.__=n,o.v=t,Bn(o.__,t())||i({h:o})},[e,n,t]),D(function(){return Bn(o.__,o.v())||i({h:o}),e(function(){Bn(o.__,o.v())||i({h:o})})},[e]),n}var qt={useState:T,useId:Vr,useReducer:Sn,useEffect:D,useLayoutEffect:je,useInsertionEffect:da,useTransition:ua,useDeferredValue:la,useSyncExternalStore:fa,startTransition:Br,useRef:P,useImperativeHandle:Bi,useMemo:ee,useCallback:K,useContext:St,useDebugValue:jr,version:"17.0.2",Children:xe,render:ta,hydrate:na,unmountComponentAtNode:ia,createPortal:Qi,createElement:O,createContext:at,createFactory:oa,cloneElement:Ct,createRef:Ci,Fragment:L,isValidElement:ct,findDOMNode:aa,Component:le,PureComponent:mn,memo:Yi,forwardRef:z,flushSync:Kt,unstable_batchedUpdates:sa,StrictMode:ca,Suspense:_t,SuspenseList:gt,lazy:Hr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ra};const pa=Object.freeze(Object.defineProperty({__proto__:null,Children:xe,Component:le,Fragment:L,PureComponent:mn,StrictMode:ca,Suspense:_t,SuspenseList:gt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ra,cloneElement:Ct,createContext:at,createElement:O,createFactory:oa,createPortal:Qi,createRef:Ci,default:qt,findDOMNode:aa,flushSync:Kt,forwardRef:z,hydrate:na,isValidElement:ct,lazy:Hr,memo:Yi,render:ta,startTransition:Br,unmountComponentAtNode:ia,unstable_batchedUpdates:sa,useCallback:K,useContext:St,useDebugValue:jr,useDeferredValue:la,useEffect:D,useErrorBoundary:hc,useId:Vr,useImperativeHandle:Bi,useInsertionEffect:da,useLayoutEffect:je,useMemo:ee,useReducer:Sn,useRef:P,useState:T,useSyncExternalStore:fa,useTransition:ua,version:Gc},Symbol.toStringTag,{value:"Module"}));var Lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yc(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 _r={exports:{}},zn={};const ga=Yc(pa);/**
5
- * @license React
6
- * use-sync-external-store-shim.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */var Lo;function Zc(){if(Lo)return zn;Lo=1;var e=ga;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(c,h){var f=h(),g=r({inst:{value:f,getSnapshot:h}}),p=g[0].inst,b=g[1];return i(function(){p.value=f,p.getSnapshot=h,l(p)&&b({inst:p})},[c,f,h]),o(function(){return l(p)&&b({inst:p}),c(function(){l(p)&&b({inst:p})})},[c]),a(f),f}function l(c){var h=c.getSnapshot;c=c.value;try{var f=h();return!n(c,f)}catch{return!0}}function u(c,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return zn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,zn}var Kn={};/**
13
- * @license React
14
- * use-sync-external-store-shim.development.js
15
- *
16
- * Copyright (c) Facebook, Inc. and its affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */var Io;function Xc(){return Io||(Io=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=ga,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),E=1;E<y;E++)x[E-1]=arguments[E];r("error",w,x)}}function r(w,y,x){{var E=t.ReactDebugCurrentFrame,S=E.getStackAddendum();S!==""&&(y+="%s",x=x.concat([S]));var $=x.map(function(C){return String(C)});$.unshift("Warning: "+y),Function.prototype.apply.call(console[w],console,$)}}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,l=e.useLayoutEffect,u=e.useDebugValue,d=!1,c=!1;function h(w,y,x){d||e.startTransition!==void 0&&(d=!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 E=y();if(!c){var S=y();i(E,S)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var $=a({inst:{value:E,getSnapshot:y}}),C=$[0].inst,A=$[1];return l(function(){C.value=E,C.getSnapshot=y,f(C)&&A({inst:C})},[w,E,y]),s(function(){f(C)&&A({inst:C});var R=function(){f(C)&&A({inst:C})};return w(R)},[w]),u(E),E}function f(w){var y=w.getSnapshot,x=w.value;try{var E=y();return!i(x,E)}catch{return!0}}function g(w,y,x){return y()}var p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",b=!p,v=b?g:h,m=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v;Kn.useSyncExternalStore=m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Kn}process.env.NODE_ENV==="production"?_r.exports=Zc():_r.exports=Xc();var Jc=_r.exports;const Be=()=>{},re=Be(),qn=Object,N=e=>e===re,me=e=>typeof e=="function",Ke=(e,t)=>({...e,...t}),Qc=e=>me(e.then),Qt=new WeakMap;let el=0;const Mt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(qn(e)===e&&!r&&n!=RegExp){if(o=Qt.get(e),o)return o;if(o=++el+"~",Qt.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Mt(e[i])+",";Qt.set(e,o)}if(n==qn){o="#";const a=qn.keys(e).sort();for(;!N(i=a.pop());)N(e[i])||(o+=i+":"+Mt(e[i])+",");Qt.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Re=new WeakMap,Gn={},en={},zr="undefined",Cn=typeof window!=zr,mr=typeof document!=zr,tl=()=>Cn&&typeof window.requestAnimationFrame!=zr,va=(e,t)=>{const n=Re.get(e);return[()=>!N(t)&&e.get(t)||Gn,r=>{if(!N(t)){const o=e.get(t);t in en||(en[t]=o),n[5](t,Ke(o,r),o||Gn)}},n[6],()=>!N(t)&&t in en?en[t]:!N(t)&&e.get(t)||Gn]};let yr=!0;const nl=()=>yr,[br,wr]=Cn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Be,Be],rl=()=>{const e=mr&&document.visibilityState;return N(e)||e!=="hidden"},ol=e=>(mr&&document.addEventListener("visibilitychange",e),br("focus",e),()=>{mr&&document.removeEventListener("visibilitychange",e),wr("focus",e)}),il=e=>{const t=()=>{yr=!0,e()},n=()=>{yr=!1};return br("online",t),br("offline",n),()=>{wr("online",t),wr("offline",n)}},al={isOnline:nl,isVisible:rl},sl={initFocus:ol,initReconnect:il},Mo=!qt.useId,Ft=!Cn||"Deno"in window,cl=e=>tl()?window.requestAnimationFrame(e):setTimeout(e,1),Yn=Ft?D:je,Zn=typeof navigator<"u"&&navigator.connection,Fo=!Ft&&Zn&&(["slow-2g","2g"].includes(Zn.effectiveType)||Zn.saveData),Kr=e=>{if(me(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Mt(e):"",[e,t]};let ll=0;const xr=()=>++ll,_a=0,ma=1,ya=2,ul=3;var Dt={__proto__:null,ERROR_REVALIDATE_EVENT:ul,FOCUS_EVENT:_a,MUTATE_EVENT:ya,RECONNECT_EVENT:ma};async function ba(...e){const[t,n,r,o]=e,i=Ke({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const u=h=>typeof s=="function"?s(h):s!==!1,d=i.throwOnError;if(me(n)){const h=n,f=[],g=t.keys();for(const p of g)!/^\$(inf|sub)\$/.test(p)&&h(t.get(p)._k)&&f.push(p);return Promise.all(f.map(c))}return c(n);async function c(h){const[f]=Kr(h);if(!f)return;const[g,p]=va(t,f),[b,v,m,w]=Re.get(t),y=()=>{const F=b[f];return(me(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete m[f],delete w[f],F&&F[0])?F[0](ya).then(()=>g().data):g().data};if(e.length<3)return y();let x=r,E;const S=xr();v[f]=[S,0];const $=!N(l),C=g(),A=C.data,R=C._c,M=N(R)?A:R;if($&&(l=me(l)?l(M,A):l,p({data:l,_c:M})),me(x))try{x=x(M)}catch(F){E=F}if(x&&Qc(x))if(x=await x.catch(F=>{E=F}),S!==v[f][0]){if(E)throw E;return x}else E&&$&&u(E)&&(a=!0,p({data:M,_c:re}));if(a&&!E)if(me(a)){const F=a(x,M);p({data:F,error:re,_c:re})}else p({data:x,error:re,_c:re});if(v[f][1]=xr(),Promise.resolve(y()).then(()=>{p({_c:re})}),E){if(d)throw E;return}return x}}const jo=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},dl=(e,t)=>{if(!Re.has(e)){const n=Ke(sl,t),r={},o=ba.bind(re,e);let i=Be;const a={},s=(d,c)=>{const h=a[d]||[];return a[d]=h,h.push(c),()=>h.splice(h.indexOf(c),1)},l=(d,c,h)=>{e.set(d,c);const f=a[d];if(f)for(const g of f)g(c,h)},u=()=>{if(!Re.has(e)&&(Re.set(e,[r,{},{},{},o,l,s]),!Ft)){const d=n.initFocus(setTimeout.bind(re,jo.bind(re,r,_a))),c=n.initReconnect(setTimeout.bind(re,jo.bind(re,r,ma)));i=()=>{d&&d(),c&&c(),Re.delete(e)}}};return u(),[e,o,u,i]}return[e,Re.get(e)[4]]},fl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!N(i)&&a>i||setTimeout(r,s,o)},pl=(e,t)=>Mt(e)==Mt(t),[wa,hl]=dl(new Map),gl=Ke({onLoadingSlow:Be,onSuccess:Be,onError:Be,onErrorRetry:fl,onDiscarded:Be,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Fo?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Fo?5e3:3e3,compare:pl,isPaused:()=>!1,cache:wa,mutate:hl,fallback:{}},al),vl=(e,t)=>{const n=Ke(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=Ke(o,a))}return n},_l=at({}),ml="$inf$",xa=Cn&&window.__SWR_DEVTOOLS_USE__,yl=xa?window.__SWR_DEVTOOLS_USE__:[],bl=()=>{xa&&(window.__SWR_DEVTOOLS_REACT__=qt)},wl=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],xl=()=>Ke(gl,St(_l)),El=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Kr(t),[,,,s]=Re.get(wa);if(a.startsWith(ml))return n(...i);const l=s[a];return N(l)?n(...i):(delete s[a],l)}),r),$l=yl.concat(El),Sl=e=>function(...n){const r=xl(),[o,i,a]=wl(n),s=vl(r,a);let l=e;const{use:u}=s,d=(u||[]).concat($l);for(let c=d.length;c--;)l=d[c](l);return l(o,i||s.fetcher||null,s)},Cl=(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())}};bl();const Vo=qt.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)}),Xn={dedupe:!0},Ol=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:c,keepPreviousData:h}=n,[f,g,p,b]=Re.get(r),[v,m]=Kr(e),w=P(!1),y=P(!1),x=P(v),E=P(t),S=P(n),$=()=>S.current,C=()=>$().isVisible()&&$().isOnline(),[A,R,M,F]=va(r,v),k=P({}).current,G=N(a)?n.fallback[v]:a,J=(V,W)=>{for(const Q in k){const H=Q;if(H==="data"){if(!o(V[H],W[H])&&(!N(V[H])||!o(Ce,W[H])))return!1}else if(W[H]!==V[H])return!1}return!0},I=ee(()=>{const V=(()=>!v||!t?!1:N(s)?$().isPaused()||i?!1:N(l)?!0:l:s)(),W=te=>{const de=Ke(te);return delete de._k,V?{isValidating:!0,isLoading:!0,...de}:de},Q=A(),H=F(),oe=W(Q),He=Q===H?oe:W(H);let Z=oe;return[()=>{const te=W(A());return J(te,Z)?(Z.data=te.data,Z.isLoading=te.isLoading,Z.isValidating=te.isValidating,Z.error=te.error,Z):(Z=te,te)},()=>He]},[r,v]),q=Jc.useSyncExternalStore(K(V=>M(v,(W,Q)=>{J(Q,W)||V()}),[r,v]),I[0],I[1]),Y=!w.current,Rt=f[v]&&f[v].length>0,ue=q.data,We=N(ue)?G:ue,nt=q.error,Yt=P(We),Ce=h?N(ue)?Yt.current:ue:We,Oe=(()=>Rt&&!N(nt)?!1:Y&&!N(s)?s:$().isPaused()?!1:i?N(We)?!1:l:N(We)||l)(),kt=!!(v&&t&&Y&&Oe),kn=N(q.isValidating)?kt:q.isValidating,dt=N(q.isLoading)?kt:q.isLoading,rt=K(async V=>{const W=E.current;if(!v||!W||y.current||$().isPaused())return!1;let Q,H,oe=!0;const He=V||{},Z=!p[v]||!He.dedupe,te=()=>Mo?!y.current&&v===x.current&&w.current:v===x.current,de={isValidating:!1,isLoading:!1},ot=()=>{R(de)},ao=()=>{const se=p[v];se&&se[1]===H&&delete p[v]},so={isValidating:!0};N(A().data)&&(so.isLoading=!0);try{if(Z&&(R(so),n.loadingTimeout&&N(A().data)&&setTimeout(()=>{oe&&te()&&$().onLoadingSlow(v,n)},n.loadingTimeout),p[v]=[W(m),xr()]),[Q,H]=p[v],Q=await Q,Z&&setTimeout(ao,n.dedupingInterval),!p[v]||p[v][1]!==H)return Z&&te()&&$().onDiscarded(v),!1;de.error=re;const se=g[v];if(!N(se)&&(H<=se[0]||H<=se[1]||se[1]===0))return ot(),Z&&te()&&$().onDiscarded(v),!1;const Ae=A().data;de.data=o(Ae,Q)?Ae:Q,Z&&te()&&$().onSuccess(Q,v,n)}catch(se){ao();const Ae=$(),{shouldRetryOnError:Dn}=Ae;Ae.isPaused()||(de.error=se,Z&&te()&&(Ae.onError(se,v,Ae),(Dn===!0||me(Dn)&&Dn(se))&&(!$().revalidateOnFocus||!$().revalidateOnReconnect||C())&&Ae.onErrorRetry(se,v,Ae,Es=>{const Nn=f[v];Nn&&Nn[0]&&Nn[0](Dt.ERROR_REVALIDATE_EVENT,Es)},{retryCount:(He.retryCount||0)+1,dedupe:!0})))}return oe=!1,ot(),!0},[v,r]),Zt=K((...V)=>ba(r,x.current,...V),[]);if(Yn(()=>{E.current=t,S.current=n,N(ue)||(Yt.current=ue)}),Yn(()=>{if(!v)return;const V=rt.bind(re,Xn);let W=0;const H=Cl(v,f,(oe,He={})=>{if(oe==Dt.FOCUS_EVENT){const Z=Date.now();$().revalidateOnFocus&&Z>W&&C()&&(W=Z+$().focusThrottleInterval,V())}else if(oe==Dt.RECONNECT_EVENT)$().revalidateOnReconnect&&C()&&V();else{if(oe==Dt.MUTATE_EVENT)return rt();if(oe==Dt.ERROR_REVALIDATE_EVENT)return rt(He)}});return y.current=!1,x.current=v,w.current=!0,R({_k:m}),Oe&&(N(We)||Ft?V():cl(V)),()=>{y.current=!0,H()}},[v]),Yn(()=>{let V;function W(){const H=me(u)?u(A().data):u;H&&V!==-1&&(V=setTimeout(Q,H))}function Q(){!A().error&&(d||$().isVisible())&&(c||$().isOnline())?rt(Xn).then(W):W()}return W(),()=>{V&&(clearTimeout(V),V=-1)}},[u,d,c,v]),jr(Ce),i&&N(We)&&v){if(!Mo&&Ft)throw new Error("Fallback data is required when using suspense in SSR.");E.current=t,S.current=n,y.current=!1;const V=b[v];if(!N(V)){const W=Zt(V);Vo(W)}if(N(nt)){const W=rt(Xn);N(Ce)||(W.status="fulfilled",W.value=!0),Vo(W)}else throw nt}return{mutate:Zt,get data(){return k.data=!0,Ce},get error(){return k.error=!0,nt},get isValidating(){return k.isValidating=!0,kn},get isLoading(){return k.isLoading=!0,dt}}},Ea=Sl(Ol);function B(){return B=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},B.apply(this,arguments)}function fe(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 Al(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $a(...e){return t=>e.forEach(n=>Al(n,t))}function Se(...e){return K($a(...e),e)}function qr(e,t=[]){let n=[];function r(i,a){const s=at(a),l=n.length;n=[...n,a];function u(c){const{scope:h,children:f,...g}=c,p=(h==null?void 0:h[e][l])||s,b=ee(()=>g,Object.values(g));return O(p.Provider,{value:b},f)}function d(c,h){const f=(h==null?void 0:h[e][l])||s,g=St(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(a=>at(a));return function(s){const l=(s==null?void 0:s[e])||i;return ee(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Pl(o,...t)]}function Pl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return ee(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Et=globalThis!=null&&globalThis.document?je:()=>{},Tl=pa["useId".toString()]||(()=>{});let Rl=0;function dn(e){const[t,n]=T(Tl());return Et(()=>{e||n(r=>r??String(Rl++))},[e]),e||(t?`radix-${t}`:"")}function qe(e){const t=P(e);return D(()=>{t.current=e}),ee(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Sa({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=kl({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=qe(n),l=K(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[a,l]}function kl({defaultProp:e,onChange:t}){const n=T(e),[r]=n,o=P(r),i=qe(t);return D(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const On=z((e,t)=>{const{children:n,...r}=e,o=xe.toArray(n),i=o.find(Nl);if(i){const a=i.props.children,s=o.map(l=>l===i?xe.count(a)>1?xe.only(null):ct(a)?a.props.children:null:l);return O(Er,B({},r,{ref:t}),ct(a)?Ct(a,void 0,s):null)}return O(Er,B({},r,{ref:t}),n)});On.displayName="Slot";const Er=z((e,t)=>{const{children:n,...r}=e;return ct(n)?Ct(n,{...Ll(r,n.props),ref:t?$a(t,n.ref):n.ref}):xe.count(n)>1?xe.only(null):null});Er.displayName="SlotClone";const Dl=({children:e})=>O(L,null,e);function Nl(e){return ct(e)&&e.type===Dl}function Ll(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 Il=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],et=Il.reduce((e,t)=>{const n=z((r,o)=>{const{asChild:i,...a}=r,s=i?On:t;return D(()=>{window[Symbol.for("radix-ui")]=!0},[]),O(s,B({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ml(e,t){e&&Kt(()=>e.dispatchEvent(t))}function Fl(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e);D(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const $r="dismissableLayer.update",jl="dismissableLayer.pointerDownOutside",Vl="dismissableLayer.focusOutside";let Wo;const Wl=at({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ca=z((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=St(Wl),[c,h]=T(null),f=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=T({}),p=Se(t,$=>h($)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(v),w=c?b.indexOf(c):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,x=w>=m,E=Hl($=>{const C=$.target,A=[...d.branches].some(R=>R.contains(C));!x||A||(i==null||i($),s==null||s($),$.defaultPrevented||l==null||l())},f),S=Ul($=>{const C=$.target;[...d.branches].some(R=>R.contains(C))||(a==null||a($),s==null||s($),$.defaultPrevented||l==null||l())},f);return Fl($=>{w===d.layers.size-1&&(o==null||o($),!$.defaultPrevented&&l&&($.preventDefault(),l()))},f),D(()=>{if(c)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Wo=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),Ho(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Wo)}},[c,f,r,d]),D(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),Ho())},[c,d]),D(()=>{const $=()=>g({});return document.addEventListener($r,$),()=>document.removeEventListener($r,$)},[]),O(et.div,B({},u,{ref:p,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,E.onPointerDownCapture)}))});function Hl(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=P(!1),o=P(()=>{});return D(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Oa(jl,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}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 Ul(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=P(!1);return D(()=>{const o=i=>{i.target&&!r.current&&Oa(Vl,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 Ho(){const e=new CustomEvent($r);document.dispatchEvent(e)}function Oa(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?Ml(o,i):o.dispatchEvent(i)}const Jn="focusScope.autoFocusOnMount",Qn="focusScope.autoFocusOnUnmount",Uo={bubbles:!1,cancelable:!0},Aa=z((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=T(null),u=qe(o),d=qe(i),c=P(null),h=Se(t,p=>l(p)),f=P({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D(()=>{if(r){let p=function(w){if(f.paused||!s)return;const y=w.target;s.contains(y)?c.current=y:Ue(c.current,{select:!0})},b=function(w){if(f.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||Ue(c.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&Ue(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const m=new MutationObserver(v);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),m.disconnect()}}},[r,s,f.paused]),D(()=>{if(s){zo.add(f);const p=document.activeElement;if(!s.contains(p)){const v=new CustomEvent(Jn,Uo);s.addEventListener(Jn,u),s.dispatchEvent(v),v.defaultPrevented||(Bl(Yl(Pa(s)),{select:!0}),document.activeElement===p&&Ue(s))}return()=>{s.removeEventListener(Jn,u),setTimeout(()=>{const v=new CustomEvent(Qn,Uo);s.addEventListener(Qn,d),s.dispatchEvent(v),v.defaultPrevented||Ue(p??document.body,{select:!0}),s.removeEventListener(Qn,d),zo.remove(f)},0)}}},[s,u,d,f]);const g=K(p=>{if(!n&&!r||f.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const m=p.currentTarget,[w,y]=zl(m);w&&y?!p.shiftKey&&v===y?(p.preventDefault(),n&&Ue(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&Ue(y,{select:!0})):v===m&&p.preventDefault()}},[n,r,f.paused]);return O(et.div,B({tabIndex:-1},a,{ref:h,onKeyDown:g}))});function Bl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ue(r,{select:t}),document.activeElement!==n)return}function zl(e){const t=Pa(e),n=Bo(t,e),r=Bo(t.reverse(),e);return[n,r]}function Pa(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 Bo(e,t){for(const n of e)if(!Kl(n,{upTo:t}))return n}function Kl(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 ql(e){return e instanceof HTMLInputElement&&"select"in e}function Ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ql(e)&&t&&e.select()}}const zo=Gl();function Gl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ko(e,t),e.unshift(t)},remove(t){var n;e=Ko(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Ko(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Yl(e){return e.filter(t=>t.tagName!=="A")}const Ta=z((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?qt.createPortal(O(et.div,B({},o,{ref:t})),r):null});function Zl(e,t){return Sn((n,r)=>{const o=t[n][r];return o??n},e)}const Ot=e=>{const{present:t,children:n}=e,r=Xl(t),o=typeof n=="function"?n({present:r.isPresent}):xe.only(n),i=Se(r.ref,o.ref);return typeof n=="function"||r.isPresent?Ct(o,{ref:i}):null};Ot.displayName="Presence";function Xl(e){const[t,n]=T(),r=P({}),o=P(e),i=P("none"),a=e?"mounted":"unmounted",[s,l]=Zl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{const u=tn(r.current);i.current=s==="mounted"?u:"none"},[s]),Et(()=>{const u=r.current,d=o.current;if(d!==e){const h=i.current,f=tn(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Et(()=>{if(t){const u=c=>{const f=tn(r.current).includes(c.animationName);c.target===t&&f&&Kt(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(i.current=tn(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:K(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function tn(e){return(e==null?void 0:e.animationName)||"none"}let er=0;function Ra(){D(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:qo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qo()),er++,()=>{er===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),er--}},[])}function qo(){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 ye=function(){return ye=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},ye.apply(this,arguments)};function ka(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 Jl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var fn="right-scroll-bar-position",pn="width-before-scroll-bar",Ql="with-scroll-bars-hidden",eu="--removed-body-scroll-bar-size";function tr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tu(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 nu=typeof window<"u"?je:D,Go=new WeakMap;function ru(e,t){var n=tu(t||null,function(r){return e.forEach(function(o){return tr(o,r)})});return nu(function(){var r=Go.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||tr(s,null)}),i.forEach(function(s){o.has(s)||tr(s,a)})}Go.set(n,e)},[e]),n}function ou(e){return e}function iu(e,t){t===void 0&&(t=ou);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function au(e){e===void 0&&(e={});var t=iu(null);return t.options=ye({async:!0,ssr:!1},e),t}var Da=function(e){var t=e.sideCar,n=ka(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 O(r,ye({},n))};Da.isSideCarExport=!0;function su(e,t){return e.useMedium(t),Da}var Na=au(),nr=function(){},An=z(function(e,t){var n=P(null),r=T({onScrollCapture:nr,onWheelCapture:nr,onTouchMoveCapture:nr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,f=e.noIsolation,g=e.inert,p=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,m=ka(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=ru([n,t]),x=ye(ye({},m),o);return O(L,null,d&&O(w,{sideCar:Na,removeScrollBar:u,shards:c,noIsolation:f,inert:g,setCallbacks:i,allowPinchZoom:!!p,lockRef:n}),a?Ct(xe.only(s),ye(ye({},x),{ref:y})):O(v,ye({},x,{className:l,ref:y}),s))});An.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};An.classNames={fullWidth:pn,zeroRight:fn};var Yo,cu=function(){if(Yo)return Yo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cu();return t&&e.setAttribute("nonce",t),e}function uu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function du(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lu())&&(uu(t,n),du(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pu=function(){var e=fu();return function(t,n){D(function(){return e.add(t),function(){e.remove()}},[t&&n])}},La=function(){var e=pu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},hu={left:0,top:0,right:0,gap:0},rr=function(e){return parseInt(e||"",10)||0},gu=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[rr(n),rr(r),rr(o)]},vu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hu;var t=gu(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])}},_u=La(),mt="data-scroll-locked",mu=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(Ql,` {
22
- overflow: hidden `).concat(r,`;
23
- padding-right: `).concat(s,"px ").concat(r,`;
24
- }
25
- body[`).concat(mt,`] {
26
- overflow: hidden `).concat(r,`;
27
- overscroll-behavior: contain;
28
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
29
- padding-left: `.concat(o,`px;
30
- padding-top: `).concat(i,`px;
31
- padding-right: `).concat(a,`px;
32
- margin-left:0;
33
- margin-top:0;
34
- margin-right: `).concat(s,"px ").concat(r,`;
35
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
36
- }
37
-
38
- .`).concat(fn,` {
39
- right: `).concat(s,"px ").concat(r,`;
40
- }
41
-
42
- .`).concat(pn,` {
43
- margin-right: `).concat(s,"px ").concat(r,`;
44
- }
45
-
46
- .`).concat(fn," .").concat(fn,` {
47
- right: 0 `).concat(r,`;
48
- }
49
-
50
- .`).concat(pn," .").concat(pn,` {
51
- margin-right: 0 `).concat(r,`;
52
- }
53
-
54
- body[`).concat(mt,`] {
55
- `).concat(eu,": ").concat(s,`px;
56
- }
57
- `)},Zo=function(){var e=parseInt(document.body.getAttribute(mt)||"0",10);return isFinite(e)?e:0},yu=function(){D(function(){return document.body.setAttribute(mt,(Zo()+1).toString()),function(){var e=Zo()-1;e<=0?document.body.removeAttribute(mt):document.body.setAttribute(mt,e.toString())}},[])},bu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yu();var i=ee(function(){return vu(o)},[o]);return O(_u,{styles:mu(i,!t,o,n?"":"!important")})},Sr=!1;if(typeof window<"u")try{var nn=Object.defineProperty({},"passive",{get:function(){return Sr=!0,!0}});window.addEventListener("test",nn,nn),window.removeEventListener("test",nn,nn)}catch{Sr=!1}var ft=Sr?{passive:!1}:!1,wu=function(e){return e.tagName==="TEXTAREA"},Ia=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wu(e)&&n[t]==="visible")},xu=function(e){return Ia(e,"overflowY")},Eu=function(e){return Ia(e,"overflowX")},Xo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ma(e,n);if(r){var o=Fa(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$u=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Su=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ma=function(e,t){return e==="v"?xu(t):Eu(t)},Fa=function(e,t){return e==="v"?$u(t):Su(t)},Cu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ou=function(e,t,n,r,o){var i=Cu(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,d=a>0,c=0,h=0;do{var f=Fa(e,s),g=f[0],p=f[1],b=f[2],v=p-b-i*g;(g||v)&&Ma(e,s)&&(c+=v,h+=g),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(o&&c===0||!o&&a>c)||!d&&(o&&h===0||!o&&-a>h))&&(u=!0),u},rn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jo=function(e){return[e.deltaX,e.deltaY]},Qo=function(e){return e&&"current"in e?e.current:e},Au=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pu=function(e){return`
58
- .block-interactivity-`.concat(e,` {pointer-events: none;}
59
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
60
- `)},Tu=0,pt=[];function Ru(e){var t=P([]),n=P([0,0]),r=P(),o=T(Tu++)[0],i=T(function(){return La()})[0],a=P(e);D(function(){a.current=e},[e]),D(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Jl([e.lockRef.current],(e.shards||[]).map(Qo),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=K(function(p,b){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var v=rn(p),m=n.current,w="deltaX"in p?p.deltaX:m[0]-v[0],y="deltaY"in p?p.deltaY:m[1]-v[1],x,E=p.target,S=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in p&&S==="h"&&E.type==="range")return!1;var $=Xo(S,E);if(!$)return!0;if($?x=S:(x=S==="v"?"h":"v",$=Xo(S,E)),!$)return!1;if(!r.current&&"changedTouches"in p&&(w||y)&&(r.current=x),!x)return!0;var C=r.current||x;return Ou(C,b,p,C==="h"?w:y,!0)},[]),l=K(function(p){var b=p;if(!(!pt.length||pt[pt.length-1]!==i)){var v="deltaY"in b?Jo(b):rn(b),m=t.current.filter(function(x){return x.name===b.type&&x.target===b.target&&Au(x.delta,v)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(a.current.shards||[]).map(Qo).filter(Boolean).filter(function(x){return x.contains(b.target)}),y=w.length>0?s(b,w[0]):!a.current.noIsolation;y&&b.cancelable&&b.preventDefault()}}},[]),u=K(function(p,b,v,m){var w={name:p,delta:b,target:v,should:m};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),d=K(function(p){n.current=rn(p),r.current=void 0},[]),c=K(function(p){u(p.type,Jo(p),p.target,s(p,e.lockRef.current))},[]),h=K(function(p){u(p.type,rn(p),p.target,s(p,e.lockRef.current))},[]);D(function(){return pt.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ft),document.addEventListener("touchmove",l,ft),document.addEventListener("touchstart",d,ft),function(){pt=pt.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,ft),document.removeEventListener("touchmove",l,ft),document.removeEventListener("touchstart",d,ft)}},[]);var f=e.removeScrollBar,g=e.inert;return O(L,null,g?O(i,{styles:Pu(o)}):null,f?O(bu,{gapMode:"margin"}):null)}const ku=su(Na,Ru);var ja=z(function(e,t){return O(An,ye({},e,{ref:t,sideCar:ku}))});ja.classNames=An.classNames;const Va=ja;var Du=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ht=new WeakMap,on=new WeakMap,an={},or=0,Wa=function(e){return e&&(e.host||Wa(e.parentNode))},Nu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wa(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})},Lu=function(e,t,n,r){var o=Nu(t,Array.isArray(e)?e:[e]);an[n]||(an[n]=new WeakMap);var i=an[n],a=[],s=new Set,l=new Set(o),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))d(h);else try{var f=h.getAttribute(r),g=f!==null&&f!=="false",p=(ht.get(h)||0)+1,b=(i.get(h)||0)+1;ht.set(h,p),i.set(h,b),a.push(h),p===1&&g&&on.set(h,!0),b===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return d(t),s.clear(),or++,function(){a.forEach(function(c){var h=ht.get(c)-1,f=i.get(c)-1;ht.set(c,h),i.set(c,f),h||(on.has(c)||c.removeAttribute(r),on.delete(c)),f||c.removeAttribute(n)}),or--,or||(ht=new WeakMap,ht=new WeakMap,on=new WeakMap,an={})}},Ha=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Du(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Lu(r,o,n,"aria-hidden")):function(){return null}};const Ua="Dialog",[Ba,Zp]=qr(Ua),[Iu,tt]=Ba(Ua),Mu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=P(null),l=P(null),[u=!1,d]=Sa({prop:r,defaultProp:o,onChange:i});return O(Iu,{scope:t,triggerRef:s,contentRef:l,contentId:dn(),titleId:dn(),descriptionId:dn(),open:u,onOpenChange:d,onOpenToggle:K(()=>d(c=>!c),[d]),modal:a},n)},Fu="DialogTrigger",ju=z((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Fu,n),i=Se(t,o.triggerRef);return O(et.button,B({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gr(o.open)},r,{ref:i,onClick:fe(e.onClick,o.onOpenToggle)}))}),za="DialogPortal",[Vu,Ka]=Ba(za,{forceMount:void 0}),Wu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=tt(za,t);return O(Vu,{scope:t,forceMount:n},xe.map(r,a=>O(Ot,{present:n||i.open},O(Ta,{asChild:!0,container:o},a))))},Cr="DialogOverlay",Hu=z((e,t)=>{const n=Ka(Cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=tt(Cr,e.__scopeDialog);return i.modal?O(Ot,{present:r||i.open},O(Uu,B({},o,{ref:t}))):null}),Uu=z((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Cr,n);return O(Va,{as:On,allowPinchZoom:!0,shards:[o.contentRef]},O(et.div,B({"data-state":Gr(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jt="DialogContent",Bu=z((e,t)=>{const n=Ka(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=tt(jt,e.__scopeDialog);return O(Ot,{present:r||i.open},i.modal?O(zu,B({},o,{ref:t})):O(Ku,B({},o,{ref:t})))}),zu=z((e,t)=>{const n=tt(jt,e.__scopeDialog),r=P(null),o=Se(t,n.contentRef,r);return D(()=>{const i=r.current;if(i)return Ha(i)},[]),O(qa,B({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,i=>i.preventDefault())}))}),Ku=z((e,t)=>{const n=tt(jt,e.__scopeDialog),r=P(!1),o=P(!1);return O(qa,B({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),qa=z((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=tt(jt,n),l=P(null),u=Se(t,l);return Ra(),O(L,null,O(Aa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(Ca,B({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Gr(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function Gr(e){return e?"open":"closed"}const qu=Mu,Gu=ju,Yu=Wu,Zu=Hu,Xu=Bu,Ju=["top","right","bottom","left"],we=Math.min,ie=Math.max,yn=Math.round,sn=Math.floor,Ge=e=>({x:e,y:e}),Qu={left:"right",right:"left",bottom:"top",top:"bottom"},ed={start:"end",end:"start"};function Or(e,t,n){return ie(e,we(t,n))}function Me(e,t){return typeof e=="function"?e(t):e}function Fe(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Yr(e){return e==="x"?"y":"x"}function Zr(e){return e==="y"?"height":"width"}function Ye(e){return["top","bottom"].includes(Fe(e))?"y":"x"}function Xr(e){return Yr(Ye(e))}function td(e,t,n){n===void 0&&(n=!1);const r=At(e),o=Xr(e),i=Zr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=bn(a)),[a,bn(a)]}function nd(e){const t=bn(e);return[Ar(e),t,Ar(t)]}function Ar(e){return e.replace(/start|end/g,t=>ed[t])}function rd(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 od(e,t,n,r){const o=At(e);let i=rd(Fe(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Ar)))),i}function bn(e){return e.replace(/left|right|bottom|top/g,t=>Qu[t])}function id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?id(e):{top:e,right:e,bottom:e,left:e}}function wn(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 ei(e,t,n){let{reference:r,floating:o}=e;const i=Ye(t),a=Xr(t),s=Zr(a),l=Fe(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:c};break;case"left":f={x:r.x-o.width,y:c};break;default:f={x:r.x,y:r.y}}switch(At(t)){case"start":f[a]-=h*(n&&u?-1:1);break;case"end":f[a]+=h*(n&&u?-1:1);break}return f}const ad=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=ei(u,r,l),h=r,f={},g=0;for(let p=0;p<s.length;p++){const{name:b,fn:v}=s[p],{x:m,y:w,data:y,reset:x}=await v({x:d,y:c,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});d=m??d,c=w??c,f={...f,[b]:{...f[b],...y}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:c}=ei(u,h,l)),p=-1)}return{x:d,y:c,placement:h,strategy:o,middlewareData:f}};async function Vt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=Me(t,e),g=Ga(f),b=s[h?c==="floating"?"reference":"floating":c],v=wn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),m=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),y=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=wn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:l}):m);return{top:(v.top-x.top+g.top)/y.y,bottom:(x.bottom-v.bottom+g.bottom)/y.y,left:(v.left-x.left+g.left)/y.x,right:(x.right-v.right+g.right)/y.x}}const sd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Me(e,t)||{};if(u==null)return{};const c=Ga(d),h={x:n,y:r},f=Xr(o),g=Zr(f),p=await a.getDimensions(u),b=f==="y",v=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",y=i.reference[g]+i.reference[f]-h[f]-i.floating[g],x=h[f]-i.reference[f],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=E?E[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement(E)))&&(S=s.floating[w]||i.floating[g]);const $=y/2-x/2,C=S/2-p[g]/2-1,A=we(c[v],C),R=we(c[m],C),M=A,F=S-p[g]-R,k=S/2-p[g]/2+$,G=Or(M,k,F),J=!l.arrow&&At(o)!=null&&k!==G&&i.reference[g]/2-(k<M?A:R)-p[g]/2<0,I=J?k<M?k-M:k-F:0;return{[f]:h[f]+I,data:{[f]:G,centerOffset:k-G-I,...J&&{alignmentOffset:I}},reset:J}}}),cd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=Me(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Fe(o),m=Ye(s),w=Fe(s)===s,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),x=h||(w||!p?[bn(s)]:nd(s)),E=g!=="none";!h&&E&&x.push(...od(s,p,g,y));const S=[s,...x],$=await Vt(t,b),C=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&C.push($[v]),c){const k=td(o,a,y);C.push($[k[0]],$[k[1]])}if(A=[...A,{placement:o,overflows:C}],!C.every(k=>k<=0)){var R,M;const k=(((R=i.flip)==null?void 0:R.index)||0)+1,G=S[k];if(G)return{data:{index:k,overflows:A},reset:{placement:G}};let J=(M=A.filter(I=>I.overflows[0]<=0).sort((I,q)=>I.overflows[1]-q.overflows[1])[0])==null?void 0:M.placement;if(!J)switch(f){case"bestFit":{var F;const I=(F=A.filter(q=>{if(E){const Y=Ye(q.placement);return Y===m||Y==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Y=>Y>0).reduce((Y,Rt)=>Y+Rt,0)]).sort((q,Y)=>q[1]-Y[1])[0])==null?void 0:F[0];I&&(J=I);break}case"initialPlacement":J=s;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function ti(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ni(e){return Ju.some(t=>e[t]>=0)}const ld=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Me(e,t);switch(r){case"referenceHidden":{const i=await Vt(t,{...o,elementContext:"reference"}),a=ti(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ni(a)}}}case"escaped":{const i=await Vt(t,{...o,altBoundary:!0}),a=ti(i,n.floating);return{data:{escapedOffsets:a,escaped:ni(a)}}}default:return{}}}}};async function ud(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Fe(n),s=At(n),l=Ye(n)==="y",u=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,c=Me(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*d,y:h*u}:{x:h*u,y:f*d}}const dd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await ud(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},fd=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:b=>{let{x:v,y:m}=b;return{x:v,y:m}}},...l}=Me(e,t),u={x:n,y:r},d=await Vt(t,l),c=Ye(Fe(o)),h=Yr(c);let f=u[h],g=u[c];if(i){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",m=f+d[b],w=f-d[v];f=Or(m,f,w)}if(a){const b=c==="y"?"top":"left",v=c==="y"?"bottom":"right",m=g+d[b],w=g-d[v];g=Or(m,g,w)}const p=s.fn({...t,[h]:f,[c]:g});return{...p,data:{x:p.x-n,y:p.y-r}}}}},pd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Me(e,t),d={x:n,y:r},c=Ye(o),h=Yr(c);let f=d[h],g=d[c];const p=Me(s,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+b.mainAxis,x=i.reference[h]+i.reference[w]-b.mainAxis;f<y?f=y:f>x&&(f=x)}if(u){var v,m;const w=h==="y"?"width":"height",y=["top","left"].includes(Fe(o)),x=i.reference[c]-i.floating[w]+(y&&((v=a.offset)==null?void 0:v[c])||0)+(y?0:b.crossAxis),E=i.reference[c]+i.reference[w]+(y?0:((m=a.offset)==null?void 0:m[c])||0)-(y?b.crossAxis:0);g<x?g=x:g>E&&(g=E)}return{[h]:f,[c]:g}}}},hd=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}=Me(e,t),l=await Vt(t,s),u=Fe(n),d=At(n),c=Ye(n)==="y",{width:h,height:f}=r.floating;let g,p;u==="top"||u==="bottom"?(g=u,p=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,g=d==="end"?"top":"bottom");const b=f-l.top-l.bottom,v=h-l.left-l.right,m=we(f-l[g],b),w=we(h-l[p],v),y=!t.middlewareData.shift;let x=m,E=w;if(c?E=d||y?we(w,v):v:x=d||y?we(m,b):b,y&&!d){const $=ie(l.left,0),C=ie(l.right,0),A=ie(l.top,0),R=ie(l.bottom,0);c?E=h-2*($!==0||C!==0?$+C:ie(l.left,l.right)):x=f-2*(A!==0||R!==0?A+R:ie(l.top,l.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return h!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}};function Pt(e){return Ya(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=(Ya(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ya(e){return e instanceof Node||e instanceof ae(e).Node}function pe(e){return e instanceof Element||e instanceof ae(e).Element}function Ee(e){return e instanceof HTMLElement||e instanceof ae(e).HTMLElement}function ri(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function Gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=he(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function gd(e){return["table","td","th"].includes(Pt(e))}function Pn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jr(e){const t=Qr(),n=pe(e)?he(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 vd(e){let t=Ze(e);for(;Ee(t)&&!$t(t);){if(Jr(t))return t;if(Pn(t))return null;t=Ze(t)}return null}function Qr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(e){return["html","body","#document"].includes(Pt(e))}function he(e){return ae(e).getComputedStyle(e)}function Tn(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if(Pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ri(e)&&e.host||Ve(e);return ri(t)?t.host:t}function Za(e){const t=Ze(e);return $t(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&Gt(t)?t:Za(t)}function Wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Za(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ae(o);if(i){const s=Pr(a);return t.concat(a,a.visualViewport||[],Gt(o)?o:[],s&&n?Wt(s):[])}return t.concat(o,Wt(o,[],n))}function Pr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xa(e){const t=he(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=yn(n)!==i||yn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function eo(e){return pe(e)?e:e.contextElement}function yt(e){const t=eo(e);if(!Ee(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Xa(t);let a=(i?yn(n.width):n.width)/r,s=(i?yn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const _d=Ge(0);function Ja(e){const t=ae(e);return!Qr()||!t.visualViewport?_d:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function md(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=eo(e);let a=Ge(1);t&&(r?pe(r)&&(a=yt(r)):a=yt(e));const s=md(i,n,r)?Ja(i):Ge(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,c=o.height/a.y;if(i){const h=ae(i),f=r&&pe(r)?ae(r):r;let g=h,p=Pr(g);for(;p&&r&&f!==g;){const b=yt(p),v=p.getBoundingClientRect(),m=he(p),w=v.left+(p.clientLeft+parseFloat(m.paddingLeft))*b.x,y=v.top+(p.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=w,u+=y,g=ae(p),p=Pr(g)}}return wn({width:d,height:c,x:l,y:u})}function yd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Ve(r),s=t?Pn(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Ge(1);const d=Ge(0),c=Ee(r);if((c||!c&&!i)&&((Pt(r)!=="body"||Gt(a))&&(l=Tn(r)),Ee(r))){const h=lt(r);u=yt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function bd(e){return Array.from(e.getClientRects())}function Qa(e){return lt(Ve(e)).left+Tn(e).scrollLeft}function wd(e){const t=Ve(e),n=Tn(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qa(e);const s=-n.scrollTop;return he(r).direction==="rtl"&&(a+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function xd(e,t){const n=ae(e),r=Ve(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=Qr();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function Ed(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ee(e)?yt(e):Ge(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function oi(e,t,n){let r;if(t==="viewport")r=xd(e,n);else if(t==="document")r=wd(Ve(e));else if(pe(t))r=Ed(t,n);else{const o=Ja(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return wn(r)}function es(e,t){const n=Ze(e);return n===t||!pe(n)||$t(n)?!1:he(n).position==="fixed"||es(n,t)}function $d(e,t){const n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(s=>pe(s)&&Pt(s)!=="body"),o=null;const i=he(e).position==="fixed";let a=i?Ze(e):e;for(;pe(a)&&!$t(a);){const s=he(a),l=Jr(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Gt(a)&&!l&&es(e,a))?r=r.filter(d=>d!==a):o=s,a=Ze(a)}return t.set(e,r),r}function Sd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Pn(t)?[]:$d(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=oi(t,d,o);return u.top=ie(c.top,u.top),u.right=we(c.right,u.right),u.bottom=we(c.bottom,u.bottom),u.left=ie(c.left,u.left),u},oi(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Cd(e){const{width:t,height:n}=Xa(e);return{width:t,height:n}}function Od(e,t,n){const r=Ee(t),o=Ve(t),i=n==="fixed",a=lt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ge(0);if(r||!r&&!i)if((Pt(t)!=="body"||Gt(o))&&(s=Tn(t)),r){const c=lt(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=Qa(o));const u=a.left+s.scrollLeft-l.x,d=a.top+s.scrollTop-l.y;return{x:u,y:d,width:a.width,height:a.height}}function ir(e){return he(e).position==="static"}function ii(e,t){return!Ee(e)||he(e).position==="fixed"?null:t?t(e):e.offsetParent}function ts(e,t){const n=ae(e);if(Pn(e))return n;if(!Ee(e)){let o=Ze(e);for(;o&&!$t(o);){if(pe(o)&&!ir(o))return o;o=Ze(o)}return n}let r=ii(e,t);for(;r&&gd(r)&&ir(r);)r=ii(r,t);return r&&$t(r)&&ir(r)&&!Jr(r)?n:r||vd(e)||n}const Ad=async function(e){const t=this.getOffsetParent||ts,n=this.getDimensions,r=await n(e.floating);return{reference:Od(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pd(e){return he(e).direction==="rtl"}const Td={convertOffsetParentRelativeRectToViewportRelativeRect:yd,getDocumentElement:Ve,getClippingRect:Sd,getOffsetParent:ts,getElementRects:Ad,getClientRects:bd,getDimensions:Cd,getScale:yt,isElement:pe,isRTL:Pd};function Rd(e,t){let n=null,r;const o=Ve(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:c,height:h}=e.getBoundingClientRect();if(s||t(),!c||!h)return;const f=sn(d),g=sn(o.clientWidth-(u+c)),p=sn(o.clientHeight-(d+h)),b=sn(u),m={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:ie(0,we(1,l))||1};let w=!0;function y(x){const E=x[0].intersectionRatio;if(E!==l){if(!w)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,m)}n.observe(e)}return a(!0),i}function kd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=eo(e),d=o||i?[...u?Wt(u):[],...Wt(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const c=u&&s?Rd(u,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,p=l?lt(e):null;l&&b();function b(){const v=lt(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,g=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c==null||c(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const Dd=dd,Nd=fd,Ld=cd,Id=hd,Md=ld,ai=sd,Fd=pd,jd=(e,t,n)=>{const r=new Map,o={platform:Td,...n},i={...o.platform,_c:r};return ad(e,t,{...o,platform:i})};var hn=typeof document<"u"?je:D;function xn(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(!xn(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)&&!xn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ns(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function si(e,t){const n=ns(e);return Math.round(t*n)/n}function ci(e){const t=P(e);return hn(()=>{t.current=e}),t}function Vd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=T({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=T(r);xn(h,r)||f(r);const[g,p]=T(null),[b,v]=T(null),m=K(I=>{I!==E.current&&(E.current=I,p(I))},[]),w=K(I=>{I!==S.current&&(S.current=I,v(I))},[]),y=i||g,x=a||b,E=P(null),S=P(null),$=P(d),C=l!=null,A=ci(l),R=ci(o),M=K(()=>{if(!E.current||!S.current)return;const I={placement:t,strategy:n,middleware:h};R.current&&(I.platform=R.current),jd(E.current,S.current,I).then(q=>{const Y={...q,isPositioned:!0};F.current&&!xn($.current,Y)&&($.current=Y,Kt(()=>{c(Y)}))})},[h,t,n,R]);hn(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[u]);const F=P(!1);hn(()=>(F.current=!0,()=>{F.current=!1}),[]),hn(()=>{if(y&&(E.current=y),x&&(S.current=x),y&&x){if(A.current)return A.current(y,x,M);M()}},[y,x,M,A,C]);const k=ee(()=>({reference:E,floating:S,setReference:m,setFloating:w}),[m,w]),G=ee(()=>({reference:y,floating:x}),[y,x]),J=ee(()=>{const I={position:n,left:0,top:0};if(!G.floating)return I;const q=si(G.floating,d.x),Y=si(G.floating,d.y);return s?{...I,transform:"translate("+q+"px, "+Y+"px)",...ns(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:Y}},[n,s,G.floating,d.x,d.y]);return ee(()=>({...d,update:M,refs:k,elements:G,floatingStyles:J}),[d,M,k,G,J])}const Wd=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?ai({element:r.current,padding:o}).fn(n):{}:r?ai({element:r,padding:o}).fn(n):{}}}},Hd=(e,t)=>({...Dd(e),options:[e,t]}),Ud=(e,t)=>({...Nd(e),options:[e,t]}),Bd=(e,t)=>({...Fd(e),options:[e,t]}),zd=(e,t)=>({...Ld(e),options:[e,t]}),Kd=(e,t)=>({...Id(e),options:[e,t]}),qd=(e,t)=>({...Md(e),options:[e,t]}),Gd=(e,t)=>({...Wd(e),options:[e,t]});function Yd(e){const[t,n]=T(void 0);return Et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.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 rs="Popper",[os,is]=qr(rs),[Zd,as]=os(rs),Xd=e=>{const{__scopePopper:t,children:n}=e,[r,o]=T(null);return O(Zd,{scope:t,anchor:r,onAnchorChange:o},n)},Jd="PopperAnchor",Qd=z((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=as(Jd,n),a=P(null),s=Se(t,a);return D(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:O(et.div,B({},o,{ref:s}))}),ss="PopperContent",[ef,Xp]=os(ss),tf=z((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:d,side:c="bottom",sideOffset:h=0,align:f="center",alignOffset:g=0,arrowPadding:p=0,avoidCollisions:b=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:E,...S}=e,$=as(ss,d),[C,A]=T(null),R=Se(t,H=>A(H)),[M,F]=T(null),k=Yd(M),G=(n=k==null?void 0:k.width)!==null&&n!==void 0?n:0,J=(r=k==null?void 0:k.height)!==null&&r!==void 0?r:0,I=c+(f!=="center"?"-"+f:""),q=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Y=Array.isArray(v)?v:[v],Rt=Y.length>0,ue={padding:q,boundary:Y.filter(nf),altBoundary:Rt},{refs:We,floatingStyles:nt,placement:Yt,isPositioned:Ce,middlewareData:Oe}=Vd({strategy:"fixed",placement:I,whileElementsMounted:(...H)=>kd(...H,{animationFrame:x==="always"}),elements:{reference:$.anchor},middleware:[Hd({mainAxis:h+J,alignmentAxis:g}),b&&Ud({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Bd():void 0,...ue}),b&&zd({...ue}),Kd({...ue,apply:({elements:H,rects:oe,availableWidth:He,availableHeight:Z})=>{const{width:te,height:de}=oe.reference,ot=H.floating.style;ot.setProperty("--radix-popper-available-width",`${He}px`),ot.setProperty("--radix-popper-available-height",`${Z}px`),ot.setProperty("--radix-popper-anchor-width",`${te}px`),ot.setProperty("--radix-popper-anchor-height",`${de}px`)}}),M&&Gd({element:M,padding:p}),rf({arrowWidth:G,arrowHeight:J}),y&&qd({strategy:"referenceHidden",...ue})]}),[kt,kn]=cs(Yt),dt=qe(E);Et(()=>{Ce&&(dt==null||dt())},[Ce,dt]);const rt=(o=Oe.arrow)===null||o===void 0?void 0:o.x,Zt=(i=Oe.arrow)===null||i===void 0?void 0:i.y,V=((a=Oe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[W,Q]=T();return Et(()=>{C&&Q(window.getComputedStyle(C).zIndex)},[C]),O("div",{ref:We.setFloating,"data-radix-popper-content-wrapper":"",style:{...nt,transform:Ce?nt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(s=Oe.transformOrigin)===null||s===void 0?void 0:s.x,(l=Oe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},O(ef,{scope:d,placedSide:kt,onArrowChange:F,arrowX:rt,arrowY:Zt,shouldHideArrow:V},O(et.div,B({"data-side":kt,"data-align":kn},S,{ref:R,style:{...S.style,animation:Ce?void 0:"none",opacity:(u=Oe.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function nf(e){return e!==null}const rf=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[g,p]=cs(s),b={start:"0%",center:"50%",end:"100%"}[p],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,m=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return g==="bottom"?(w=c?b:`${v}px`,y=`${-f}px`):g==="top"?(w=c?b:`${v}px`,y=`${l.floating.height+f}px`):g==="right"?(w=`${-f}px`,y=c?b:`${m}px`):g==="left"&&(w=`${l.floating.width+f}px`,y=c?b:`${m}px`),{data:{x:w,y}}}});function cs(e){const[t,n="center"]=e.split("-");return[t,n]}const of=Xd,af=Qd,sf=tf,ls="Popover",[us,Jp]=qr(ls,[is]),to=is(),[cf,Tt]=us(ls),lf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=to(t),l=P(null),[u,d]=T(!1),[c=!1,h]=Sa({prop:r,defaultProp:o,onChange:i});return O(of,s,O(cf,{scope:t,contentId:dn(),triggerRef:l,open:c,onOpenChange:h,onOpenToggle:K(()=>h(f=>!f),[h]),hasCustomAnchor:u,onCustomAnchorAdd:K(()=>d(!0),[]),onCustomAnchorRemove:K(()=>d(!1),[]),modal:a},n))},uf="PopoverTrigger",df=z((e,t)=>{const{__scopePopover:n,...r}=e,o=Tt(uf,n),i=to(n),a=Se(t,o.triggerRef),s=O(et.button,B({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ps(o.open)},r,{ref:a,onClick:fe(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:O(af,B({asChild:!0},i),s)}),ds="PopoverPortal",[ff,pf]=us(ds,{forceMount:void 0}),hf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Tt(ds,t);return O(ff,{scope:t,forceMount:n},O(Ot,{present:n||i.open},O(Ta,{asChild:!0,container:o},r)))},Ht="PopoverContent",gf=z((e,t)=>{const n=pf(Ht,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Tt(Ht,e.__scopePopover);return O(Ot,{present:r||i.open},i.modal?O(vf,B({},o,{ref:t})):O(_f,B({},o,{ref:t})))}),vf=z((e,t)=>{const n=Tt(Ht,e.__scopePopover),r=P(null),o=Se(t,r),i=P(!1);return D(()=>{const a=r.current;if(a)return Ha(a)},[]),O(Va,{as:On,allowPinchZoom:!0},O(fs,B({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:fe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),_f=z((e,t)=>{const n=Tt(Ht,e.__scopePopover),r=P(!1),o=P(!1);return O(fs,B({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),fs=z((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...c}=e,h=Tt(Ht,n),f=to(n);return Ra(),O(Aa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(Ca,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1)},O(sf,B({"data-state":ps(h.open),role:"dialog",id:h.contentId},f,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function ps(e){return e?"open":"closed"}const mf=lf,yf=df,bf=hf,wf=gf,no=$e({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),Rn=$e({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),hs=$e({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),gs=$e({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),vs=$e({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),xf=$e({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),Ef=({children:e,colorScheme:t})=>_("span",{class:xf({colorScheme:t}),children:_("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),$f=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},li=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},Sf=(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=li(r.value),a=li(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},Cf=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},Of=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Af=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,unfilteredQuery:i,onClose:a})=>{const{t:s}=Qe(),l=Fr(n()),u=ee(()=>{switch(l.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const g=l.data[t.key]??[];return Object.fromEntries(g.map(p=>[p.value,p.jobs]))}default:cn(l)}},[l,t.key]),d=_s(e),c=d.length>0,[h,f]=T();return l.queryState==="error"?_(pr,{error:new Error(s("filters_loading_error"),{cause:l.error}),resetError:()=>l.swr.mutate()}):_("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.searchable&&_("div",{class:"border-b-px border-neutral-4",children:_("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:h,onInput:g=>f(g.currentTarget.value),placeholder:s("type_to_search")})}),(()=>{switch(i.queryState){case"error":return _(pr,{error:new Error(s("filters_loading_error"),{cause:i.error}),class:"flex-1",resetError:()=>i.swr.mutate()});case"idle":case"loading":return _("div",{class:"flex px-4",children:_("div",{"aria-hidden":!0,class:no({size:"lg",variant:"neutralStrong",interactive:!0,class:"animate-skeleton flex-1 cursor-default opacity-20 active:-scale-100"}),children:_("span",{class:"inline-block w-[10ch]"})})});case"revalidating":case"loaded":{const g=i.data[t.key]??[],p=h&&h.length>1?g.filter(m=>m.label.toLowerCase().includes(h.toLowerCase())):g,b=[];for(const m of p){if(m.label.length<1)continue;const w={...m,results:Of(u,m),disabled:Cf(u,m)};switch(t.results){case"only-available":w.disabled===!1&&b.push(w);break;default:b.push(w)}}return b.find(m=>!m.disabled)?_("ul",{class:hs(),children:Sf(b,t.sortSuggestions).map(m=>{const w=d.includes(m.value);return _("li",{class:gs({type:"line"}),children:_("button",{type:"button",disabled:m.disabled,"data-filter":!0,"data-current-value":w?"true":void 0,onClick:()=>{switch(e.select){case"many":{const y=$f(d,m.value);o({select:"many",value:y});break}case"one":o({select:"one",value:w?void 0:m.value});break;default:cn(e)}},class:vs({active:w,disabled:m.disabled}),children:[_("span",{class:"max-w-full truncate",children:m.label})," ",_(Ef,{colorScheme:w?"accentStrong":"neutralStrong",children:m.results})]})},m.value)})}):_("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:s("no_filter_options_available")})}default:cn(i)}})(),_("footer",{class:"flex flex-none justify-end p-2",children:[_("div",{class:"flex-1",children:c&&_("button",{type:"button",class:xt({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[_(Le,{"aria-hidden":!0,name:"x"})," ",s("clear")]})}),e.select==="many"&&r&&_("div",{class:"flex items-center overflow-hidden",children:_("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," ",s("selected")]})}),_("div",{class:"flex-1",children:_("button",{type:"button",class:xt({variant:c?"accent":"neutral",class:"ml-auto"}),onClick:a,children:s(c?"done":"close")},c?"done":"close")})]})]})},ui=8,di={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"},fi=$e({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),pi=$e({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),_s=e=>typeof e.value=="string"?[e.value]:e.value??[],Pf=({selectedValues:e})=>{const t=e.length;return t===0?null:_("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)},Tf=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:l})=>{const u=Os(r.key,di)?di[r.key]:void 0,d=r.icon??u??"filter",c=_s(t),h=c.length>0,f=qi("(pointer: coarse)"),g=_(L,{children:[_("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[_(Le,{"aria-hidden":!0,class:"flex-none",name:d}),_("span",{class:"truncate",children:r.label})]}),_(Le,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),_(Pf,{selectedValues:c})]}),p=_(Af,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?_(qu,{open:e,onOpenChange:n,children:[_(Gu,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:fi({state:e||h?"active":"default"}),onTouchStart:Rf,children:g}),_(Yu,{children:_("div",{class:"inploi-job-search","data-widget-id":l,children:[_(Zu,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),_(Xu,{class:pi({mode:"mobile",class:gr(s)}),children:[_("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:[_(Le,{name:d,class:"flex-none"}),_("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),p]})]})})]}):_(mf,{open:e,onOpenChange:b=>n(b),modal:f,children:[_(yf,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:fi({state:e||h?"active":"default"}),children:g}),_(bf,{children:_("div",{class:"inploi-job-search","data-widget-id":l,children:_(wf,{side:"bottom",sideOffset:ui,align:"center",collisionPadding:ui,class:pi({mode:"desktop",class:gr(s)}),children:p})})})]})};function Rf(){}function kf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ro=kf,Df=typeof Lt=="object"&&Lt&&Lt.Object===Object&&Lt,Nf=Df,Lf=Nf,If=typeof self=="object"&&self&&self.Object===Object&&self,Mf=Lf||If||Function("return this")(),oo=Mf,Ff=oo,jf=function(){return Ff.Date.now()},Vf=jf,Wf=/\s/;function Hf(e){for(var t=e.length;t--&&Wf.test(e.charAt(t)););return t}var Uf=Hf,Bf=Uf,zf=/^\s+/;function Kf(e){return e&&e.slice(0,Bf(e)+1).replace(zf,"")}var qf=Kf,Gf=oo,Yf=Gf.Symbol,io=Yf,hi=io,ms=Object.prototype,Zf=ms.hasOwnProperty,Xf=ms.toString,Nt=hi?hi.toStringTag:void 0;function Jf(e){var t=Zf.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var r=!0}catch{}var o=Xf.call(e);return r&&(t?e[Nt]=n:delete e[Nt]),o}var Qf=Jf,ep=Object.prototype,tp=ep.toString;function np(e){return tp.call(e)}var rp=np,gi=io,op=Qf,ip=rp,ap="[object Null]",sp="[object Undefined]",vi=gi?gi.toStringTag:void 0;function cp(e){return e==null?e===void 0?sp:ap:vi&&vi in Object(e)?op(e):ip(e)}var ys=cp;function lp(e){return e!=null&&typeof e=="object"}var up=lp,dp=ys,fp=up,pp="[object Symbol]";function hp(e){return typeof e=="symbol"||fp(e)&&dp(e)==pp}var bs=hp,gp=qf,_i=ro,vp=bs,mi=0/0,_p=/^[-+]0x[0-9a-f]+$/i,mp=/^0b[01]+$/i,yp=/^0o[0-7]+$/i,bp=parseInt;function wp(e){if(typeof e=="number")return e;if(vp(e))return mi;if(_i(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_i(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gp(e);var n=mp.test(e);return n||yp.test(e)?bp(e.slice(2),n?2:8):_p.test(e)?mi:+e}var xp=wp,Ep=ro,ar=Vf,yi=xp,$p="Expected a function",Sp=Math.max,Cp=Math.min;function Op(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError($p);t=yi(t)||0,Ep(n)&&(d=!!n.leading,c="maxWait"in n,i=c?Sp(yi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f(E){var S=r,$=o;return r=o=void 0,u=E,a=e.apply($,S),a}function g(E){return u=E,s=setTimeout(v,t),d?f(E):a}function p(E){var S=E-l,$=E-u,C=t-S;return c?Cp(C,i-$):C}function b(E){var S=E-l,$=E-u;return l===void 0||S>=t||S<0||c&&$>=i}function v(){var E=ar();if(b(E))return m(E);s=setTimeout(v,p(E))}function m(E){return s=void 0,h&&r?f(E):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function y(){return s===void 0?a:m(ar())}function x(){var E=ar(),S=b(E);if(r=arguments,o=this,l=E,S){if(s===void 0)return g(l);if(c)return clearTimeout(s),s=setTimeout(v,t),f(l)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=w,x.flush=y,x}var Ap=Op;const Pp=ha(Ap),Tp=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;r.defaultValue=o.includes(",")?o.split(","):o}}),n},Rp=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");return{type:"provided",coords:t&&n?{lat:Number(t),lng:Number(n)}:void 0,radius:r?Number(r):Tr(xs)}},ws=(e,t=1e3)=>{const[n,r]=T(e),o=ee(()=>Pp(i=>r(i),t),[t]);return D(()=>{o(e)},[e,o]),n},kp=z(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:l,inputProps:u,menuProps:d,query:c},h)=>{const[f,g]=T(!1),[p,b]=T(),{t:v}=Qe(),m=P();D(()=>{var y;b((y=o[0])==null?void 0:y.id)},[o]);const w=y=>{i(y),g(!1)};return _("div",{class:"relative h-full",children:[_("input",{name:n,ref:h,disabled:e,"data-active":f?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:Rn({size:"md"}),onFocus:()=>{l==null||l(),g(!0)},onBlur:()=>{m.current=window.setTimeout(()=>{s==null||s(),g(!1)},100)},value:c,onChange:y=>a(y.currentTarget.value),onKeyDown:y=>{switch(g(!0),y.key){case"ArrowDown":case"ArrowUp":{const x=y.key==="ArrowDown"?1:-1;y.preventDefault();const E=o.findIndex($=>$.id===p);if(E===-1)return;const S=o[E+x]??o[y.key==="ArrowDown"?0:o.length-1];if(!S)return;b(S.id);break}case"Enter":{if(y.preventDefault(),!p)return;i(p)}}},...u}),!t&&f&&!e&&o.length>0?_("ul",{className:hs({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:()=>{m.current&&clearTimeout(m.current)},...d,children:t?_("div",{role:"alert",children:v("geo_suggestions_error")}):o.map(y=>_("li",{class:gs({type:"line",className:"group/tag"}),children:_("button",{type:"button",onMouseEnter:()=>b(y.id),class:vs({active:y.id===p,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]})}),Dp=(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})}),Np={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},bi=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Lp=({onLocate:e,onError:t,signal:n})=>{const[r,o]=T("idle"),[i,a]=T(null),{t:s}=Qe(),l=u=>{o("idle"),a(u),e(u)};return _("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(bi){if(o("loading"),i)return l(i);Dp({signal:n}).then(u=>{const d={lat:u.latitude,lng:u.longitude};l(d)}).catch(u=>{if(u instanceof DOMException&&u.name==="AbortError")return o("idle");o("error");const d=Np[u.code];if(!d)return;const c=s(d);t(c)})}},"data-state":r,class:xt({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!bi||r==="error",children:_(Le,{name:"target-location"})})},Ip="https://api.mapbox.com/search/geocode/v6/forward",Mp="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Fp=e=>atob(e).split("").reverse().join(""),jp=ce({features:$n(De(ce({properties:ce({mapbox_id:j(),place_formatted:Te(j()),name_preferred:Te(j(),"Untitled location"),coordinates:De(ce({latitude:be(),longitude:be()}),({latitude:e,longitude:t})=>({lat:e,lng:t}))})}),e=>e.properties))}),Vp=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Wp=async e=>{if(!e)return[];const t=new URL(Ip);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Fp(Mp));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=Ir(jp,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Vp(o,i=>i.name_preferred+i.place_formatted)},Hp=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=Qe(),[a,s]=T(""),[l,u]=T(),d=ws(a,500),[c,h]=T(new AbortController),f=Ea(d,Wp,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:g,queryState:p,error:b}=Fr(f),[v,m]=T("view"),w=P(null);return D(()=>{if(v==="edit"){if(!w.current)return;w.current.focus()}},[v]),_("div",{class:"relative flex-1",children:[v==="view"&&n?_("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:Rn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{m("edit")},children:_("div",{class:no({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:l??i("location_provided")})}):_(kp,{ref:w,error:b,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{c.abort(),h(new AbortController)},onBlur:()=>{m("view"),s("")},onItemSelect:y=>{if(p!=="loaded")return;const x=g.find(E=>E.mapbox_id===y);x&&(e(x.coordinates),m("view"),u(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(g==null?void 0:g.map(y=>({id:y.mapbox_id,label:_("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[_("strong",{class:"truncate",children:y.name_preferred})," ",_("span",{class:"flex-1 truncate opacity-50",children:y.place_formatted})]})})))??[]}),_("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?_(Lp,{onLocate:y=>{m("view"),u(i("geo_my_location")),t({type:"provided",coords:y,radius:r})},onError:o,signal:c.signal}):_("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),u(void 0),t({radius:r,type:"provided"}),m("edit"),w.current&&(w.current.value="",w.current.focus())},class:xt({variant:"neutral",size:"lg",icon:"only"}),children:_(Le,{name:"x"})})})]})},Up=[.25,.5,1,3,5,10,15,20,30,40],xs=20,Tr=e=>e*1609.34,Bp=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),zp=De(ce({type:Pe("provided"),lat:Te(De(j(),e=>Number(e))),lng:Te(De(j(),e=>Number(e))),radius:De(j(),e=>Number(e))}),e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0})),Kp=({value:e,onValueChange:t,logger:n})=>{const{t:r}=Qe(),o=Vr(),i=(e==null?void 0:e.type)==="provided"?e.radius:Tr(xs),[a,s]=T();return _("div",{class:"flex flex-col gap-2",children:[_("form",{onChange:l=>{const u=new FormData(l.currentTarget),d=Ir(zp,Object.fromEntries(u.entries()));if(!d.success){n.error(d.issues),s(d.issues[0].message);return}t(d.output)},class:"flex flex-col gap-2 md:flex-row",children:[_("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?_(L,{children:[_("input",{type:"hidden",name:"lat",value:e.coords.lat}),_("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,_(Hp,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:i,onValueChange:t,onSelect:l=>{s(void 0),t({type:"provided",radius:i,coords:l})},onError:s}),_("div",{class:"relative",children:[_("label",{class:"sr-only",for:o,children:r("geo_range_label")}),_("select",{id:o,name:"radius",class:Rn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:i,onChange:l=>{s(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(l.currentTarget.value)})},children:Up.map(l=>_("option",{value:Tr(l),class:"truncate",children:Bp.format(l)},l))}),_("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:_(Le,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?_("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[_(Le,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})};exports.D=_t;exports.D$1=bt;exports.E=Dr;exports.ErrorBoundary=xc;exports.ErrorView=pr;exports.F=ee;exports.Filter=Tf;exports.GeoSearch=Kp;exports.Icon=Le;exports.IconSpritesheet=$c;exports.JOB_SEARCH_WIDGET_ID=ec;exports.M=Hr;exports.PAGE_SIZE=ji;exports.SWR_SETTINGS=dc;exports.T=K;exports.TranslationProvider=mc;exports.UnstyledErrorView=wc;exports._=P;exports._Symbol=io;exports._baseGetTag=ys;exports._root=oo;exports.btnClass=xt;exports.clsx=Hi;exports.commonjsGlobal=Lt;exports.createTFunction=yc;exports.cva=$e;exports.exhaustive=cn;exports.generateColorThemeCss=Nc;exports.getAvailableFilters=sc;exports.getDefaultExportFromCjs=ha;exports.getGeolocationFromSearchParams=Rp;exports.getJobSearchMapResults=uc;exports.getJobSearchResults=cc;exports.getQueryState=Fr;exports.getStatefulPropertiesFromSearchParams=Tp;exports.getThemeVariants=gr;exports.h=T;exports.inputClass=Rn;exports.invariant=Cs;exports.isObject_1=ro;exports.isSymbol_1=bs;exports.k=L;exports.o=_;exports.p=D;exports.tagClass=no;exports.useDebouncedValue=ws;exports.useMediaQuery=qi;exports.useSWR=Ea;exports.useTranslation=Qe;exports.useViewTracking=Sc;exports.y=O;