@inploi/plugin-job-search 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +22 -22
- package/dist/components/filter-section.d.ts +3 -2
- package/dist/components/results-list.d.ts +3 -2
- package/dist/components/results-map.d.ts +3 -2
- package/dist/components/results.d.ts +2 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +123 -120
- package/dist/job-search.api.d.ts +21 -3
- package/dist/job-search.d.ts +11 -3
- package/dist/job-search.schemas.d.ts +4 -0
- package/dist/lib/i18n.d.ts +70 -70
- package/dist/{map-5d58fed1.js → map-571cf13f.js} +1 -1
- package/dist/{map-1b3b5ece.cjs → map-c1421fd4.cjs} +1 -1
- package/dist/{utils-67863dbf.js → utils-6f4e34d7.js} +1319 -1277
- package/dist/utils-b4e9d978.cjs +60 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/utils-063c2cb5.cjs +0 -60
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";var xc=Object.defineProperty;var $c=(e,t,n)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wo=(e,t,n)=>($c(e,typeof t!="symbol"?t+"":t,n),n);const ut=require("@inploi/sdk");var yt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function fa(e,t){if(!e)throw new Error(t)}function Ec(e,t){return e in t}var Uo={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},Cc=e=>{const{salary:t,config:n,t:r=a=>a}=e,o=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1||t.pay===null&&t.pay_min===null&&t.pay_max===null)return;if(t.pay_mask)return r("competitive");if(t.pay_max&&Number.isNaN(+t.pay_max)||t.pay_min&&Number.isNaN(+t.pay_min)||t.pay&&Number.isNaN(+t.pay))return r("invalid_salary");const i=t.pay_type&&t.pay_type in Uo?Uo[t.pay_type]:void 0;return t.pay?[o.format(+t.pay),i].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[o.formatRange(+t.pay_min,+t.pay_max),i].filter(Boolean).join(" ")||"":t.pay_max?`${r("up_to")} ${[o.format(+t.pay_max),i].filter(Boolean).join(" ")}`:t.pay_min?`${r("from")} ${[o.format(+t.pay_min),i].filter(Boolean).join(" ")}`:r("invalid_salary")},Sc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Oc=({from:e=new Date,to:t,formatter:n=Sc,t:r=o=>o})=>{const i=(t instanceof Date?t:new Date(t)).getTime()-e.getTime(),a={days:Math.round(i/1e3/60/60/24),months:Math.round(i/1e3/60/60/24/30)};return a.days===0?r("today"):Math.abs(a.days)<30?n.format(a.days,"days"):Math.abs(a.days)<3?n.format(a.months,"months"):a.months<0?r("over_30_days_ago"):r("in_over_30_days")},en;exports.l=void 0;var pa,st,zo,ha,ga,va,oo,Dr,Nr,ma,Bt={},_a=[],Tc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;function Le(e,t){for(var n in t)e[n]=t[n];return e}function io(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function S(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?en.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Ut(e,a,r,o,null)}function Ut(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++pa,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function ya(){return{current:null}}function M(e){return e.children}function he(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Et(e):null}function ba(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ba(e)}}function Lr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Rn.__r++||zo!==exports.l.debounceRendering)&&((zo=exports.l.debounceRendering)||ha)(Rn)}function Rn(){for(var e,t,n,r,o,i,a,s=1;st.length;)st.length>s&&st.sort(ga),e=st.shift(),s=st.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Le({},r)).__v=r.__v+1,exports.l.vnode&&exports.l.vnode(n),ao(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Et(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,$a(i,n,a),n.__e!=o&&ba(n)));Rn.__r=0}function wa(e,t,n,r,o,i,a,s,c,d,p){var l,h,f,m,g,_,v=r&&r.__k||_a,b=t.length;for(c=kc(n,t,v,c,b),l=0;l<b;l++)(f=n.__k[l])!=null&&(h=f.__i===-1?Bt:v[f.__i]||Bt,f.__i=l,_=ao(e,f,h,o,i,a,s,c,d,p),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&so(h.ref,null,f),p.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||h.__k===f.__k?c=xa(f,c,e):typeof f.type=="function"&&_!==void 0?c=_:m&&(c=m.nextSibling),f.__u&=-7);return n.__e=g,c}function kc(e,t,n,r,o){var i,a,s,c,d,p=n.length,l=p,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Ut(null,a,null,null,null):Un(a)?Ut(M,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ut(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ac(a,n,c,l))!==-1&&(l--,(s=n[d])&&(s.__u|=2)),s==null||s.__v===null?(d==-1&&(o>p?h--:o<p&&h++),typeof a.type!="function"&&(a.__u|=4)):d!=c&&(d==c-1?h--:d==c+1?h++:(d>c?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Et(s)),Ea(s,s));return r}function xa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xa(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Et(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Me(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(n){Me(n,t)}):t.push(e)),t}function Ac(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(c!=null&&!(2&c.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function Bo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Tc.test(t)?n:n+"px"}function dn(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Bo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Bo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(va,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=oo,e.addEventListener(t,i?Nr:Dr,i)):e.removeEventListener(t,i?Nr:Dr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=oo++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function ao(e,t,n,r,o,i,a,s,c,d){var p,l,h,f,m,g,_,v,b,w,y,x,$,C,E,O,P,L,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(p=exports.l.__b)&&p(t);e:if(typeof D=="function")try{if(v=t.props,b="prototype"in D&&D.prototype.render,w=(p=D.contextType)&&r[p.__c],y=p?w?w.props.value:p.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(b?t.__c=l=new D(v,y):(t.__c=l=new he(v,y),l.constructor=D,l.render=Rc),w&&w.sub(l),l.props=v,l.state||(l.state={}),l.context=y,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),b&&l.__s==null&&(l.__s=l.state),b&&D.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Le({},l.__s)),Le(l.__s,D.getDerivedStateFromProps(v,l.__s))),f=l.props,m=l.state,l.__v=t,h)b&&D.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),b&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(b&&D.getDerivedStateFromProps==null&&v!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(v,y),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(v,l.__s,y)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=v,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(F){F&&(F.__=t)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(v,l.__s,y),b&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,m,g)})}if(l.context=y,l.props=v,l.__P=e,l.__e=!1,$=exports.l.__r,C=0,b){for(l.state=l.__s,l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[]}else do l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++C<25);l.state=l.__s,l.getChildContext!=null&&(r=Le(Le({},r),l.getChildContext())),b&&!h&&l.getSnapshotBeforeUpdate!=null&&(g=l.getSnapshotBeforeUpdate(f,m)),P=(O=p!=null&&p.type===M&&p.key==null)?p.props.children:p,O&&(p.props.children=null),s=wa(e,Un(P)?P:[P],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(F){if(t.__v=null,c||i!=null)if(F.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(L=i.length;L--;)io(i[L]);else t.__e=n.__e,t.__k=n.__k;exports.l.__e(F,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Pc(n.__e,t,n,r,o,i,a,c,d);return(p=exports.l.diffed)&&p(t),128&t.__u?void 0:s}function $a(e,t,n){for(var r=0;r<n.length;r++)so(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 Pc(e,t,n,r,o,i,a,s,c){var d,p,l,h,f,m,g,_=n.props,v=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((f=i[d])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(i=i&&en.call(e.childNodes),_=n.props||Bt,!s&&i!=null)for(_={},d=0;d<e.attributes.length;d++)_[(f=e.attributes[d]).name]=f.value;for(d in _)if(f=_[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=f;else if(!(d in v)){if(d=="value"&&"defaultValue"in v||d=="checked"&&"defaultChecked"in v)continue;dn(e,d,null,f,o)}}for(d in v)f=v[d],d=="children"?h=f:d=="dangerouslySetInnerHTML"?p=f:d=="value"?m=f:d=="checked"?g=f:s&&typeof f!="function"||_[d]===f||dn(e,d,f,_[d],o);if(p)s||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),wa(t.type==="template"?e.content:e,Un(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Et(n,0),s,c),i!=null)for(d=i.length;d--;)io(i[d]);s||(d="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[d]||b=="progress"&&!m||b=="option"&&m!==_[d])&&dn(e,d,m,_[d],o),d="checked",g!==void 0&&g!==e[d]&&dn(e,d,g,_[d],o))}return e}function so(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){exports.l.__e(o,n)}}function Ea(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||so(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){exports.l.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ea(r[o],t,n||typeof e.type!="function");n||io(e.__e),e.__c=e.__=e.__e=void 0}function Rc(e,t,n){return this.constructor(e,n)}function Ct(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],ao(t,e=(!r&&n||t).__k=S(M,null,[e]),o||Bt,Bt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?en.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),$a(i,e,a)}function co(e,t){Ct(e,t,co)}function Dc(e,t,n){var r,o,i,a,s=Le({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?en.call(arguments,2):n),Ut(e.type,s,r||e.key,o||e.ref,null)}function dt(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.forEach(function(a){a.__e=!0,Lr(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+ma++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}en=_a.slice,exports.l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},pa=0,he.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Le({},this.state),typeof e=="function"&&(e=e(Le({},n),this.props)),e&&Le(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Lr(this))},he.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lr(this))},he.prototype.render=M,st=[],ha=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ga=function(e,t){return e.__v.__b-t.__v.__b},Rn.__r=0,va=/(PointerCapture)$|Capture$/i,oo=0,Dr=qo(!1),Nr=qo(!0),ma=0;var De;function Ca(e){return{lang:(e==null?void 0:e.lang)??(De==null?void 0:De.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(De==null?void 0:De.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(De==null?void 0:De.abortPipeEarly)}}var sr;function Nc(e){return sr==null?void 0:sr.get(e)}var cr;function Lc(e){return cr==null?void 0:cr.get(e)}var lr;function Mc(e,t){var n;return(n=lr==null?void 0:lr.get(e))==null?void 0:n.get(t)}function lo(e){var n,r;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor)==null?void 0:r.name))??"null":t}function ge(e,t,n,r,o){const i=o&&"input"in o?o.input:n.value,a=(o==null?void 0:o.expected)??e.expects??null,s=(o==null?void 0:o.received)??lo(i),c={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=e.kind==="schema",p=(o==null?void 0:o.message)??e.message??Mc(e.reference,c.lang)??(d?Lc(c.lang):null)??r.message??Nc(c.lang);p!==void 0&&(c.message=typeof p=="function"?p(c):p),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function ae(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Ca())}}}function Ic(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Sa(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function fe(e){return{kind:"transformation",type:"transform",reference:fe,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Oa(e){return{kind:"validation",type:"url",reference:Oa,async:!1,expects:null,requirement(t){try{return new URL(t),!0}catch{return!1}},message:e,"~run"(t,n){return t.typed&&!this.requirement(t.value)&&ge(this,"URL",t,n),t}}}function jc(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function uo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Mr(){return{kind:"schema",type:"any",reference:Mr,expects:"any",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function tn(e,t){return{kind:"schema",type:"array",reference:tn,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let a=0;a<o.length;a++){const s=o[a],c=this.item["~run"]({value:s},r);if(c.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const p of c.issues)p.path?p.path.unshift(d):p.path=[d],(i=n.issues)==null||i.push(p);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else ge(this,"type",n,r);return n}}}function Dn(e){return{kind:"schema",type:"boolean",reference:Dn,expects:"boolean",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:ge(this,"type",t,n),t}}}function ct(e,t){return{kind:"schema",type:"literal",reference:ct,expects:lo(e),async:!1,literal:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:ge(this,"type",n,r),n}}}function oe(e,t){return{kind:"schema",type:"nullable",reference:oe,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function be(e){return{kind:"schema",type:"number",reference:be,expects:"number",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ge(this,"type",t,n),t}}}function le(e,t){return{kind:"schema",type:"object",reference:le,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const a in this.entries){const s=this.entries[a];if(a in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){const c=a in o?o[a]:uo(s),d=s["~run"]({value:c},r);if(d.issues){const p={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(p):l.path=[p],(i=n.issues)==null||i.push(l);if(n.issues||(n.issues=d.issues),r.abortEarly){n.typed=!1;break}}d.typed||(n.typed=!1),n.value[a]=d.value}else if(s.fallback!==void 0)n.value[a]=jc(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(ge(this,"key",n,r,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),r.abortEarly))break}}else ge(this,"type",n,r);return n}}}function Ye(e,t){return{kind:"schema",type:"optional",reference:Ye,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Ta(e,t){return{kind:"schema",type:"picklist",reference:Ta,expects:Sa(e.map(lo),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:ge(this,"type",n,r),n}}}function fo(e,t,n){return{kind:"schema",type:"record",reference:fo,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ae(this)},"~run"(r,o){var a,s;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const c in i)if(Ic(i,c)){const d=i[c],p=this.key["~run"]({value:c},o);if(p.issues){const h={type:"object",origin:"key",input:i,key:c,value:d};for(const f of p.issues)f.path=[h],(a=r.issues)==null||a.push(f);if(r.issues||(r.issues=p.issues),o.abortEarly){r.typed=!1;break}}const l=this.value["~run"]({value:d},o);if(l.issues){const h={type:"object",origin:"value",input:i,key:c,value:d};for(const f of l.issues)f.path?f.path.unshift(h):f.path=[h],(s=r.issues)==null||s.push(f);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!p.typed||!l.typed)&&(r.typed=!1),p.typed&&(r.value[p.value]=l.value)}}else ge(this,"type",r,o);return r}}}function K(e){return{kind:"schema",type:"string",reference:K,expects:"string",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:ge(this,"type",t,n),t}}}function Ko(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function ka(e,t){return{kind:"schema",type:"union",reference:ka,expects:Sa(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){let o,i,a;for(const s of this.options){const c=s["~run"]({value:n.value},r);if(c.typed)if(c.issues)i?i.push(c):i=[c];else{o=c;break}else a?a.push(c):a=[c]}if(o)return o;if(i){if(i.length===1)return i[0];ge(this,"type",n,r,{issues:Ko(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];ge(this,"type",n,r,{issues:Ko(a)})}return n}}}function Aa(){return{kind:"schema",type:"unknown",reference:Aa,expects:"unknown",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function pe(...e){return{...e[0],pipe:e,get"~standard"(){return ae(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}function po(e,t,n){const r=e["~run"]({value:t},Ca(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Fc="inploi-job-search",Vc=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],Pa=["LOCATION","REMOTE","HYBRID"],lt=10,Go=pe(Aa(),fe(String),K()),Hc=e=>pe(fo(K(),tn(le({label:Go,value:Go,jobs:be()}))),fe(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)Ra(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)Da(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),Wc=pe(K(),Oa()),Uc=le({total:be(),current_page:be(),per_page:be(),last_page:be()}),fn=Ye(oe(K()),null),zc=le({id:be(),company_name:K(),company_logo:fn,employment_type:K(),location_type:Ta(Pa),pay_type:oe(ka([ct("ANNUALLY"),ct("HOURLY"),ct("MONTHLY"),ct("WEEKLY"),ct("DAILY")])),pay_currency:K(),pay_mask:Dn(),pay_display:Dn(),pay:oe(K()),pay_min:oe(K()),pay_max:oe(K()),title:K(),contract_type:oe(K()),created_at:oe(K()),custom_data:oe(fo(Mr(),Mr())),href:K(),industry:oe(K()),category:oe(K()),skills:fn,town:fn,city:oe(K()),country:oe(K()),vector_distance:fn,coordinates:Ye(oe(le({lat:be(),lng:be()}))),locale:Ye(oe(K()))});function Ra(e){return Vc.includes(e)}function Da(e){return Pa.includes(e)}const Na=e=>pe(zc,fe(t=>{const n=po(Wc,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},pay:Cc({salary:t,config:{locales:void 0},t:e})??null,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?Oc({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:{...t,location_type:Da(t.location_type)?e(`job.location_type.${t.location_type}`):t.location_type,employment_type:Ra(t.employment_type)?e(`job.employment_type.${t.employment_type}`):t.employment_type},match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}})),Bc=e=>pe(le({data:tn(Na(e)),pagination:Uc}),fe(t=>({pagination:t.pagination,results:t.data}))),qc=e=>!e||Array.isArray(e)&&e.length===0?null:e,zn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=qc(i==null?void 0:i.value)}return((n=e.geo)==null?void 0:n.type)==="provided"&&e.geo.coords&&(t.geolocation={type:e.geo.type,lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius}),((r=e.geo)==null?void 0:r.type)==="bounds"&&(t.geolocation={type:"bounds",sw:{lat:e.geo.sw.lat,lng:e.geo.sw.lng},ne:{lat:e.geo.ne.lat,lng:e.geo.ne.lng}}),t},Yo=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=ut.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Hc(n),searchParams:ut.typed()}});return await e.request(a,{searchParams:{filters:zn(t),query:t.query,locale:o,fallback_locale:i},signal:r})},La=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const c=ut.endpoint({method:"GET",pathname:"/search/results",schema:{response:Bc(o),searchParams:ut.typed()}});return await e.request(c,{searchParams:{filters:zn(n),query:n.query,page:r,per_page:lt,priority_segment:i,locale:a,fallback_locale:s},signal:t})},Kc=e=>pe(le({data:tn(Na(e)),pagination:le({has_more:Dn()})}),fe(t=>({results:t.data,pagination:t.pagination}))),Gc=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=ut.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Kc(r),searchParams:ut.typed()}});return await e.request(s,{searchParams:{filters:zn(n),query:n.query,mode:n.mode,priority_segment:o,locale:i,fallback_locale:a},signal:t})},nn=e=>{if(e.error)return{queryState:"error",error:e.error,swr:e};if(e.isLoading&&e.data===void 0)return{queryState:"loading",swr:e};if((e.isLoading||e.isValidating)&&e.data)return{queryState:"revalidating",data:e.data,swr:e};if(!e.isLoading&&e.data)return{queryState:"loaded",data:e.data,swr:e};if(!e.data&&!e.isLoading)return{queryState:"idle",swr:e};throw console.error("Unhandled data state",e),new Error("Unhandled data state")},Nn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var Yc=0;function u(e,t,n,r,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Yc,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function Ma(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=Ma(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function St(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ma(e))&&(r&&(r+=" "),r+=t);return r}var Ie,q,ur,Zo,Ot=0,Ia=[],J=exports.l,Jo=J.__b,Xo=J.__r,Qo=J.diffed,ei=J.__c,ti=J.unmount,ni=J.__;function pt(e,t){J.__h&&J.__h(q,e,Ot||t),Ot=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function k(e){return Ot=1,rn(ja,e)}function rn(e,t,n){var r=pt(Ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ja(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,s);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=q,!q.__f)){var o=function(s,c,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(h){return!!h.__c});if(p.every(function(h){return!h.__N}))return!i||i.call(this,s,c,d);var l=r.__c.props!==s;return p.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};q.__f=!0;var i=q.shouldComponentUpdate,a=q.componentWillUpdate;q.componentWillUpdate=function(s,c,d){if(this.__e){var p=i;i=void 0,o(s,c,d),i=p}a&&a.call(this,s,c,d)},q.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=pt(Ie++,3);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function Te(e,t){var n=pt(Ie++,4);!J.__s&&go(n.__H,t)&&(n.__=e,n.u=t,q.__h.push(n))}function A(e){return Ot=5,X(function(){return{current:e}},[])}function ho(e,t,n){Ot=6,Te(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function X(e,t){var n=pt(Ie++,7);return go(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function H(e,t){return Ot=8,X(function(){return e},t)}function tt(e){var t=q.context[e.__c],n=pt(Ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__}function Bn(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Zc(e){var t=pt(Ie++,10),n=k();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function qn(){var e=pt(Ie++,11);if(!e.__){for(var t=q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Jc(){for(var e;e=Ia.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Ir),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){q=null,Jo&&Jo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ni&&ni(e,t)},J.__r=function(e){Xo&&Xo(e),Ie=0;var t=(q=e.__c).__H;t&&(ur===q?(t.__h=[],q.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach($n),t.__h.forEach(Ir),t.__h=[],Ie=0)),ur=q},J.diffed=function(e){Qo&&Qo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ia.push(t)!==1&&Zo===J.requestAnimationFrame||((Zo=J.requestAnimationFrame)||Xc)(Jc)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ur=q=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Ir(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),ei&&ei(e,t)},J.unmount=function(e){ti&&ti(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var ri=typeof requestAnimationFrame=="function";function Xc(e){var t,n=function(){clearTimeout(r),ri&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ri&&(t=requestAnimationFrame(n))}function $n(e){var t=q,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),q=t}function Ir(e){var t=q;e.__c=e.__(),q=t}function go(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ja(e,t){return typeof t=="function"?t(e):t}var Qc=["other","few","many","two","one","zero"],oi=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(c,d)=>{var p;return((p=a==null?void 0:a[d])==null?void 0:p.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let c=r.select(a.count);if(!(c in s)){const d=Qc.find(p=>p in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,p)=>{var l;return((l=a==null?void 0:a[p])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},ii=dt(null),el=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=X(()=>oi({locale:r,terms:e,overrides:t}),[t,r]);return u(ii.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=tt(ii);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>oi({terms:e,overrides:t,locale:n})});const{TranslationProvider:tl,useTranslation:ne,createTFunction:nl,defaultTerms:rl}=el({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",feedback:"How was your search experience?",list:"List",map:"Map",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset","job.employment_type.FULL_TIME":"Full-time","job.employment_type.PART_TIME":"Part-time","job.employment_type.CONTRACT":"Contractor","job.employment_type.TEMPORARY":"Temporary","job.employment_type.INTERN":"Internship","job.employment_type.VOLUNTEER":"Volunteer","job.employment_type.OTHER":"Other","job.location_type.LOCATION":"On-site","job.location_type.REMOTE":"Remote","job.location_type.HYBRID":"Hybrid"});function Fa(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=Fa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Fa(e))&&(r&&(r+=" "),r+=t);return r}const ai=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ol=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,c;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](dr(i)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(dr(i)):dr(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const c=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[p]=d;return!["class","className"].includes(p)}));return t(i.map(d=>d(c)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:c}=o,d=Object.keys(s).map(h=>{const f=i==null?void 0:i[h],m=c==null?void 0:c[h],g=ai(f)||ai(m);return s[h][g]}),p={...c,...i&&Object.entries(i).reduce((h,f)=>{let[m,g]=f;return typeof g>"u"?h:{...h,[m]:g}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:m,className:g,..._}=f;return Object.entries(_).every(v=>{let[b,w]=v;const y=p[b];return Array.isArray(w)?w.includes(y):y===w})?[...h,m,g]:h},[]);return t(o==null?void 0:o.base,d,l,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:Qm,cva:ve,cx:e_}=ol(),je=ve({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"}}),il=({error:e,resetError:t})=>{const{t:n}=ne();return u("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[u("p",{children:e.message}),u("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:n("retry")})]})},Ze=({error:e,resetError:t,class:n,...r})=>{const{t:o}=ne();return R(()=>{e.cause instanceof ut.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:St("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",n),...r,children:[u("div",{class:"flex max-w-full flex-col gap-1",children:[u("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),u("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:e.message})]}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class qt extends he{constructor(){super(...arguments);Wo(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n.message}}componentDidCatch(n){this.setState({error:n})}render(){if(this.state.error){const{Fallback:n}=this.props;return u(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const al={briefcase:u(M,{children:[u("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),u("path",{d:"M4.75 11.75H19.25"}),u("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),u("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:u(M,{children:[u("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),u("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),u("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),u("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),u("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),u("circle",{cx:"18.75",cy:"12",r:"2"}),u("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:u(M,{children:[u("path",{d:"M16.75 10.25H13.75"}),u("path",{d:"M16.75 13.25H13.75"}),u("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),u("path",{d:"M10.25 12.25V18.25"})]}),circles:u(M,{children:[u("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),u("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:u(M,{children:[u("path",{d:"M14 9L12 13L9.5 12"}),u("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:u(M,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(M,{children:[u("path",{d:"M5 13.75H19"}),u("path",{d:"M5 10.25H19"}),u("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),u("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:u(M,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),u("path",{d:"M16 16L19 19"})]}),magnifierSimple:u(M,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M16 16L19 19"})]}),mapPin:u(M,{children:[u("circle",{cx:"12",cy:"9",r:"2"}),u("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),u("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]}),pay:u(M,{children:[u("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),u("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:u(M,{children:[u("path",{d:"M18.5 8.5L17.5 9.5"}),u("path",{d:"M5.5 8.5L6.5 9.5"}),u("path",{d:"M12 6L12 7.5"}),u("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),u("path",{d:"M20.25 15.25H12H3.75"}),u("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:u("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:u("path",{d:"M12 8V16M8 12H16"}),"chevron-right":u("path",{d:"M11 8L15 12L11 16"}),ai:u("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":u(M,{children:[u("circle",{cx:"12",cy:"12",r:"0.75"}),u("circle",{cx:"12",cy:"12",r:"5.75"}),u("path",{d:"M12 4.25V6.25"}),u("path",{d:"M12 17.75V19.75"}),u("path",{d:"M4.25 12L6.25 12"}),u("path",{d:"M17.75 12L19.75 12"})]}),warning:u("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:u(M,{children:[u("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),u("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),u("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:u(M,{children:[u("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),u("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},sl=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(al).map(([t,n])=>{var r;return u("symbol",{id:`i-icon-${t}`,children:u("g",{fill:"none","stroke-width":e.mode==="dark"&&((r=e.accessibility)==null?void 0:r.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})},t)})})}),Q=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function Va(e,t){for(var n in t)e[n]=t[n];return e}function jr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function vo(e,t){var n=t(),r=k({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Te(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),R(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function mo(e){e()}function _o(e){return e}function yo(){return[!1,mo]}var bo=Te;function Ln(e,t){this.props=e,this.context=t}function Ha(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:jr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,S(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ln.prototype=new he).isPureReactComponent=!0,Ln.prototype.shouldComponentUpdate=function(e,t){return jr(this.props,e)||jr(this.state,t)};var si=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),si&&si(e)};var cl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Y(e){function t(n){var r=Va({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=cl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ci=function(e,t){return e==null?null:Me(Me(e).map(t))},Se={map:ci,forEach:ci,count:function(e){return e?Me(e).length:0},only:function(e){var t=Me(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Me},ll=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)}ll(e,t,n,r)};var li=exports.l.unmount;function Wa(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=Va({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Wa(r,t,n)})),e}function Ua(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ua(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function bt(){this.__u=0,this.o=null,this.__b=null}function za(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return S(n,i)}return o.displayName="Lazy",o.__f=!0,o}function _t(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),li&&li(e)},(bt.prototype=new he).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=za(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Ua(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},bt.prototype.componentWillUnmount=function(){this.o=[]},bt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Wa(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&S(M,null,e.fallback);return o&&(o.__u&=-33),[S(M,null,t.__a?null:e.children),o]};var ui=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ul(e){return this.getChildContext=function(){return e.context},e.children}function dl(e){var t=this,n=e.h;t.componentWillUnmount=function(){Ct(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Ct(S(ul,{context:t.context},e.__v),t.v)}function Ba(e,t){var n=S(dl,{__v:e,h:t});return n.containerInfo=t,n}(_t.prototype=new he).__a=function(e){var t=this,n=za(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ui(t,e,r)):o()};n?n(i):i()}},_t.prototype.render=function(e){this.i=null,this.l=new Map;var t=Me(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},_t.prototype.componentDidUpdate=_t.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ui(e,n,t)})};var qa=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,fl=/^(?: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]/,pl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hl=/[A-Z0-9]/g,gl=typeof document<"u",vl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ka(e,t,n){return t.__k==null&&(t.textContent=""),Ct(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ga(e,t,n){return co(e,t),typeof n=="function"&&n(),e?e.__c:null}he.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(he.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var di=exports.l.event;function ml(){}function _l(){return this.cancelBubble}function yl(){return this.defaultPrevented}exports.l.event=function(e){return di&&(e=di(e)),e.persist=ml,e.isPropagationStopped=_l,e.isDefaultPrevented=yl,e.nativeEvent=e};var xo,bl={enumerable:!1,configurable:!0,get:function(){return this.class}},fi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||gl&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||vl(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":pl.test(a)&&(a=c):c=a="oninput":i&&fl.test(a)?a=a.replace(hl,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Me(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Me(n.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",bl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=qa,fi&&fi(e)};var pi=exports.l.__r;exports.l.__r=function(e){pi&&pi(e),xo=e.__c};var hi=exports.l.diffed;exports.l.diffed=function(e){hi&&hi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),xo=null};var Ya={ReactCurrentDispatcher:{current:{readContext:function(e){return xo.__n[e.__c].props.value},useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:X,useReducer:rn,useRef:A,useState:k,useSyncExternalStore:vo,useTransition:yo}}},wl="18.3.1";function Za(e){return S.bind(null,e)}function Fe(e){return!!e&&e.$$typeof===qa}function Ja(e){return Fe(e)&&e.type===M}function Xa(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function At(e){return Fe(e)?Dc.apply(null,arguments):e}function Qa(e){return!!e.__k&&(Ct(null,e),!0)}function es(e){return e&&(e.base||e.nodeType===1&&e)||null}var ts=function(e,t){return e(t)},on=function(e,t){return e(t)},ns=M,rs=Fe,an={useState:k,useId:qn,useReducer:rn,useEffect:R,useLayoutEffect:Te,useInsertionEffect:bo,useTransition:yo,useDeferredValue:_o,useSyncExternalStore:vo,startTransition:mo,useRef:A,useImperativeHandle:ho,useMemo:X,useCallback:H,useContext:tt,useDebugValue:Bn,version:"18.3.1",Children:Se,render:Ka,hydrate:Ga,unmountComponentAtNode:Qa,createPortal:Ba,createElement:S,createContext:dt,createFactory:Za,cloneElement:At,createRef:ya,Fragment:M,isValidElement:Fe,isElement:rs,isFragment:Ja,isMemo:Xa,findDOMNode:es,Component:he,PureComponent:Ln,memo:Ha,forwardRef:Y,flushSync:on,unstable_batchedUpdates:ts,StrictMode:ns,Suspense:bt,SuspenseList:_t,lazy:wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ya};const os=Object.freeze(Object.defineProperty({__proto__:null,Children:Se,Component:he,Fragment:M,PureComponent:Ln,StrictMode:ns,Suspense:bt,SuspenseList:_t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ya,cloneElement:At,createContext:dt,createElement:S,createFactory:Za,createPortal:Ba,createRef:ya,default:an,findDOMNode:es,flushSync:on,forwardRef:Y,hydrate:Ga,isElement:rs,isFragment:Ja,isMemo:Xa,isValidElement:Fe,lazy:wo,memo:Ha,render:Ka,startTransition:mo,unmountComponentAtNode:Qa,unstable_batchedUpdates:ts,useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useErrorBoundary:Zc,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:X,useReducer:rn,useRef:A,useState:k,useSyncExternalStore:vo,useTransition:yo,version:wl},Symbol.toStringTag,{value:"Module"}));var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xl(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 Fr={exports:{}},pr={};const is=xl(os);/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gi;function $l(){if(gi)return pr;gi=1;var e=is;function t(l,h){return l===h&&(l!==0||1/l===1/h)||l!==l&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(l,h){var f=h(),m=r({inst:{value:f,getSnapshot:h}}),g=m[0].inst,_=m[1];return i(function(){g.value=f,g.getSnapshot=h,c(g)&&_({inst:g})},[l,f,h]),o(function(){return c(g)&&_({inst:g}),l(function(){c(g)&&_({inst:g})})},[l]),a(f),f}function c(l){var h=l.getSnapshot;l=l.value;try{var f=h();return!n(l,f)}catch{return!0}}function d(l,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return pr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,pr}var hr={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var vi;function El(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=is,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var y=arguments.length,x=new Array(y>1?y-1:0),$=1;$<y;$++)x[$-1]=arguments[$];r("error",w,x)}}function r(w,y,x){{var $=t.ReactDebugCurrentFrame,C=$.getStackAddendum();C!==""&&(y+="%s",x=x.concat([C]));var E=x.map(function(O){return String(O)});E.unshift("Warning: "+y),Function.prototype.apply.call(console[w],console,E)}}function o(w,y){return w===y&&(w!==0||1/w===1/y)||w!==w&&y!==y}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,p=!1,l=!1;function h(w,y,x){p||e.startTransition!==void 0&&(p=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var $=y();if(!l){var C=y();i($,C)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var E=a({inst:{value:$,getSnapshot:y}}),O=E[0].inst,P=E[1];return c(function(){O.value=$,O.getSnapshot=y,f(O)&&P({inst:O})},[w,$,y]),s(function(){f(O)&&P({inst:O});var L=function(){f(O)&&P({inst:O})};return w(L)},[w]),d($),$}function f(w){var y=w.getSnapshot,x=w.value;try{var $=y();return!i(x,$)}catch{return!0}}function m(w,y,x){return y()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=!g,v=_?m:h,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v;hr.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),hr}process.env.NODE_ENV==="production"?Fr.exports=$l():Fr.exports=El();var Cl=Fr.exports;const Ge=()=>{},ie=Ge(),En=Object,V=e=>e===ie,ye=e=>typeof e=="function",Ve=(e,t)=>({...e,...t}),Sl=e=>ye(e.then),pn=new WeakMap;let Ol=0;const Kt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(En(e)===e&&!r&&n!=RegExp){if(o=pn.get(e),o)return o;if(o=++Ol+"~",pn.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Kt(e[i])+",";pn.set(e,o)}if(n==En){o="#";const a=En.keys(e).sort();for(;!V(i=a.pop());)V(e[i])||(o+=i+":"+Kt(e[i])+",");pn.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Ne=new WeakMap,gr={},hn={},Eo="undefined",Kn=typeof window!=Eo,Vr=typeof document!=Eo,Tl=()=>Kn&&typeof window.requestAnimationFrame!=Eo,as=(e,t)=>{const n=Ne.get(e);return[()=>!V(t)&&e.get(t)||gr,r=>{if(!V(t)){const o=e.get(t);t in hn||(hn[t]=o),n[5](t,Ve(o,r),o||gr)}},n[6],()=>!V(t)&&t in hn?hn[t]:!V(t)&&e.get(t)||gr]};let Hr=!0;const kl=()=>Hr,[Wr,Ur]=Kn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ge,Ge],Al=()=>{const e=Vr&&document.visibilityState;return V(e)||e!=="hidden"},Pl=e=>(Vr&&document.addEventListener("visibilitychange",e),Wr("focus",e),()=>{Vr&&document.removeEventListener("visibilitychange",e),Ur("focus",e)}),Rl=e=>{const t=()=>{Hr=!0,e()},n=()=>{Hr=!1};return Wr("online",t),Wr("offline",n),()=>{Ur("online",t),Ur("offline",n)}},Dl={isOnline:kl,isVisible:Al},Nl={initFocus:Pl,initReconnect:Rl},mi=!an.useId,Gt=!Kn||"Deno"in window,Ll=e=>Tl()?window.requestAnimationFrame(e):setTimeout(e,1),Cn=Gt?R:Te,vr=typeof navigator<"u"&&navigator.connection,_i=!Gt&&vr&&(["slow-2g","2g"].includes(vr.effectiveType)||vr.saveData),Co=e=>{if(ye(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Kt(e):"",[e,t]};let Ml=0;const zr=()=>++Ml,ss=0,cs=1,ls=2,Il=3;var Vt={__proto__:null,ERROR_REVALIDATE_EVENT:Il,FOCUS_EVENT:ss,MUTATE_EVENT:ls,RECONNECT_EVENT:cs};async function us(...e){const[t,n,r,o]=e,i=Ve({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(ye(n)){const h=n,f=[],m=t.keys();for(const g of m)!/^\$(inf|sub)\$/.test(g)&&h(t.get(g)._k)&&f.push(g);return Promise.all(f.map(l))}return l(n);async function l(h){const[f]=Co(h);if(!f)return;const[m,g]=as(t,f),[_,v,b,w]=Ne.get(t),y=()=>{const F=_[f];return(ye(i.revalidate)?i.revalidate(m().data,h):i.revalidate!==!1)&&(delete b[f],delete w[f],F&&F[0])?F[0](ls).then(()=>m().data):m().data};if(e.length<3)return y();let x=r,$;const C=zr();v[f]=[C,0];const E=!V(c),O=m(),P=O.data,L=O._c,D=V(L)?P:L;if(E&&(c=ye(c)?c(D,P):c,g({data:c,_c:D})),ye(x))try{x=x(D)}catch(F){$=F}if(x&&Sl(x))if(x=await x.catch(F=>{$=F}),C!==v[f][0]){if($)throw $;return x}else $&&E&&d($)&&(a=!0,g({data:D,_c:ie}));if(a&&!$)if(ye(a)){const F=a(x,D);g({data:F,error:ie,_c:ie})}else g({data:x,error:ie,_c:ie});if(v[f][1]=zr(),Promise.resolve(y()).then(()=>{g({_c:ie})}),$){if(p)throw $;return}return x}}const yi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},ds=(e,t)=>{if(!Ne.has(e)){const n=Ve(Nl,t),r={},o=us.bind(ie,e);let i=Ge;const a={},s=(p,l)=>{const h=a[p]||[];return a[p]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(p,l,h)=>{e.set(p,l);const f=a[p];if(f)for(const m of f)m(l,h)},d=()=>{if(!Ne.has(e)&&(Ne.set(e,[r,{},{},{},o,c,s]),!Gt)){const p=n.initFocus(setTimeout.bind(ie,yi.bind(ie,r,ss))),l=n.initReconnect(setTimeout.bind(ie,yi.bind(ie,r,cs)));i=()=>{p&&p(),l&&l(),Ne.delete(e)}}};return d(),[e,o,d,i]}return[e,Ne.get(e)[4]]},jl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!V(i)&&a>i||setTimeout(r,s,o)},Fl=(e,t)=>Kt(e)==Kt(t),[So,Vl]=ds(new Map),fs=Ve({onLoadingSlow:Ge,onSuccess:Ge,onError:Ge,onErrorRetry:jl,onDiscarded:Ge,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_i?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_i?5e3:3e3,compare:Fl,isPaused:()=>!1,cache:So,mutate:Vl,fallback:{}},Dl),ps=(e,t)=>{const n=Ve(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=Ve(o,a))}return n},Br=dt({}),Hl=e=>{const{value:t}=e,n=tt(Br),r=ye(t),o=X(()=>r?t(n):t,[r,n,t]),i=X(()=>r?o:ps(n,o),[r,n,o]),a=o&&o.provider,s=A(ie);a&&!s.current&&(s.current=ds(a(i.cache||So),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),Cn(()=>{if(c)return c[2]&&c[2](),c[3]},[]),S(Br.Provider,Ve(e,{value:i}))},Wl="$inf$",hs=Kn&&window.__SWR_DEVTOOLS_USE__,Ul=hs?window.__SWR_DEVTOOLS_USE__:[],zl=()=>{hs&&(window.__SWR_DEVTOOLS_REACT__=an)},Bl=e=>ye(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ql=()=>Ve(fs,tt(Br)),Kl=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Co(t),[,,,s]=Ne.get(So);if(a.startsWith(Wl))return n(...i);const c=s[a];return V(c)?n(...i):(delete s[a],c)}),r),Gl=Ul.concat(Kl),Yl=e=>function(...n){const r=ql(),[o,i,a]=Bl(n),s=ps(r,a);let c=e;const{use:d}=s,p=(d||[]).concat(Gl);for(let l=p.length;l--;)c=p[l](c);return c(o,i||s.fetcher||null,s)},Zl=(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())}};zl();const bi=an.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),mr={dedupe:!0},Jl=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:p,refreshWhenOffline:l,keepPreviousData:h}=n,[f,m,g,_]=Ne.get(r),[v,b]=Co(e),w=A(!1),y=A(!1),x=A(v),$=A(t),C=A(n),E=()=>C.current,O=()=>E().isVisible()&&E().isOnline(),[P,L,D,F]=as(r,v),T=A({}).current,N=V(a)?n.fallback[v]:a,I=(U,z)=>{for(const te in T){const B=te;if(B==="data"){if(!o(U[B],z[B])&&(!V(U[B])||!o(Ae,z[B])))return!1}else if(z[B]!==U[B])return!1}return!0},j=X(()=>{const U=(()=>!v||!t?!1:V(s)?E().isPaused()||i?!1:V(c)?!0:c:s)(),z=re=>{const _e=Ve(re);return delete _e._k,U?{isValidating:!0,isLoading:!0,..._e}:_e},te=P(),B=F(),se=z(te),Be=te===B?se:z(B);let ee=se;return[()=>{const re=z(P());return I(re,ee)?(ee.data=re.data,ee.isLoading=re.isLoading,ee.isValidating=re.isValidating,ee.error=re.error,ee):(ee=re,re)},()=>Be]},[r,v]),W=Cl.useSyncExternalStore(H(U=>D(v,(z,te)=>{I(te,z)||U()}),[r,v]),j[0],j[1]),Z=!w.current,jt=f[v]&&f[v].length>0,me=W.data,ze=V(me)?N:me,ot=W.error,ln=A(ze),Ae=h?V(me)?ln.current:me:ze,Pe=(()=>jt&&!V(ot)?!1:Z&&!V(s)?s:E().isPaused()?!1:i?V(ze)?!1:c:V(ze)||c)(),Ft=!!(v&&t&&Z&&Pe),or=V(W.isValidating)?Ft:W.isValidating,ht=V(W.isLoading)?Ft:W.isLoading,it=H(async U=>{const z=$.current;if(!v||!z||y.current||E().isPaused())return!1;let te,B,se=!0;const Be=U||{},ee=!g[v]||!Be.dedupe,re=()=>mi?!y.current&&v===x.current&&w.current:v===x.current,_e={isValidating:!1,isLoading:!1},at=()=>{L(_e)},Vo=()=>{const de=g[v];de&&de[1]===B&&delete g[v]},Ho={isValidating:!0};V(P().data)&&(Ho.isLoading=!0);try{if(ee&&(L(Ho),n.loadingTimeout&&V(P().data)&&setTimeout(()=>{se&&re()&&E().onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[z(b),zr()]),[te,B]=g[v],te=await te,ee&&setTimeout(Vo,n.dedupingInterval),!g[v]||g[v][1]!==B)return ee&&re()&&E().onDiscarded(v),!1;_e.error=ie;const de=m[v];if(!V(de)&&(B<=de[0]||B<=de[1]||de[1]===0))return at(),ee&&re()&&E().onDiscarded(v),!1;const Re=P().data;_e.data=o(Re,te)?Re:te,ee&&re()&&E().onSuccess(te,v,n)}catch(de){Vo();const Re=E(),{shouldRetryOnError:ir}=Re;Re.isPaused()||(_e.error=de,ee&&re()&&(Re.onError(de,v,Re),(ir===!0||ye(ir)&&ir(de))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||O())&&Re.onErrorRetry(de,v,Re,wc=>{const ar=f[v];ar&&ar[0]&&ar[0](Vt.ERROR_REVALIDATE_EVENT,wc)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return se=!1,at(),!0},[v,r]),un=H((...U)=>us(r,x.current,...U),[]);if(Cn(()=>{$.current=t,C.current=n,V(me)||(ln.current=me)}),Cn(()=>{if(!v)return;const U=it.bind(ie,mr);let z=0;const B=Zl(v,f,(se,Be={})=>{if(se==Vt.FOCUS_EVENT){const ee=Date.now();E().revalidateOnFocus&&ee>z&&O()&&(z=ee+E().focusThrottleInterval,U())}else if(se==Vt.RECONNECT_EVENT)E().revalidateOnReconnect&&O()&&U();else{if(se==Vt.MUTATE_EVENT)return it();if(se==Vt.ERROR_REVALIDATE_EVENT)return it(Be)}});return y.current=!1,x.current=v,w.current=!0,L({_k:b}),Pe&&(V(ze)||Gt?U():Ll(U)),()=>{y.current=!0,B()}},[v]),Cn(()=>{let U;function z(){const B=ye(d)?d(P().data):d;B&&U!==-1&&(U=setTimeout(te,B))}function te(){!P().error&&(p||E().isVisible())&&(l||E().isOnline())?it(mr).then(z):z()}return z(),()=>{U&&(clearTimeout(U),U=-1)}},[d,p,l,v]),Bn(Ae),i&&V(ze)&&v){if(!mi&&Gt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,C.current=n,y.current=!1;const U=_[v];if(!V(U)){const z=un(U);bi(z)}if(V(ot)){const z=it(mr);V(Ae)||(z.status="fulfilled",z.value=!0),bi(z)}else throw ot}return{mutate:un,get data(){return T.data=!0,Ae},get error(){return T.error=!0,ot},get isValidating(){return T.isValidating=!0,or},get isLoading(){return T.isLoading=!0,ht}}},Xl=En.defineProperty(Hl,"defaultValue",{value:fs}),Yt=Yl(Jl),gs=e=>{const[t,n]=k(!1);return R(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},Ql=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=k(!1);R(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(c=>c.forEach(d=>{clearTimeout(a),d.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var eu=["1","2","3","4","5","6","7","8","9","10","11","12"],tu={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]}},nu=(e,t=1,n)=>r=>{const[o,i]=tu[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},_r=e=>{const t=nu(e.hue,e.chroma,e.mode);return Object.fromEntries(eu.map(n=>[e.prefix+n,e.transform(t(n))]))},yr=e=>e,ru=e=>{const t=Object.keys(e).flatMap(n=>{const r=e[n];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(n)}.${o}`,i]}):[[n,r]]});return Object.fromEntries(t)},gn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),qr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(gn(e)&&gn(n))for(const r in n){const o=n[r];if(gn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];gn(i)&&qr(i,o)}else Object.assign(e,{[r]:n[r]})}return qr(e,...t)},ou=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},iu=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),c=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:c}}),p=ru(qr(s,c,d)),l=([h,f],m)=>{const g=[m,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(_=>l(_,g)):[[r.getToken("declaration",g),f]]};return{values:p,declarations:Object.fromEntries(Object.entries(p).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const Ee=e=>{const t=[],n=r=>({with:(o,i)=>(t.push({pattern:o,fn:i}),n(r)),otherwise:o=>{e:for(const{fn:i,pattern:a}of t){for(const s in a)if(a[s]!==r[s])continue e;return i(r)}if(o)return o(r);throw new Error("No pattern matched")}});return n(e)},[br,wr,vn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],au=iu().core(({theme:e})=>{var t,n,r,o;return{color:{black:br,white:wr,lowest:e.mode==="light"?wr:br,highest:e.mode==="light"?br:wr,..._r({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:yr}),..._r({prefix:"n-",hue:((t=e.neutral)==null?void 0:t.hue)??e.accent.hue,chroma:((n=e.neutral)==null?void 0:n.chroma)??.05,mode:e.mode,transform:yr}),..._r({prefix:"m-",hue:((r=e.monetary)==null?void 0:r.hue)??140,chroma:((o=e.monetary)==null?void 0:o.chroma)??1,mode:e.mode,transform:yr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,p,l,h,f,m,g,_,v,b,w,y,x,$,C,E,O,P,L;const r=(D,F)=>n.core.color[D].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":((c=o.filter)==null?void 0:c.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((p=o.tag)==null?void 0:p.fontFamily)??o.fontFamily??"inherit","weight-default":((l=o.weight)==null?void 0:l.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((m=(f=o.filter)==null?void 0:f.weight)==null?void 0:m.toString())??((g=o.weight)==null?void 0:g.toString())??"inherit","style-tag":((_=o.tag)==null?void 0:_.style)??o.style??"inherit","style-job-heading":((v=o.jobHeading)==null?void 0:v.style)??o.style??"inherit","weight-tag":((w=(b=o.tag)==null?void 0:b.weight)==null?void 0:w.toString())??((y=o.weight)==null?void 0:y.toString())??"inherit","weight-job-heading":(($=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:$.toString())??((C=o.weight)==null?void 0:C.toString())??"inherit","style-input":((E=o.input)==null?void 0:E.style)??o.style??"inherit","weight-input":((P=(O=o.input)==null?void 0:O.weight)==null?void 0:P.toString())??((L=o.weight)==null?void 0:L.toString())??"inherit","app-bg":e("color.lowest"),copy:e(a?"color.highest":"color.n-12"),"copy-lowcontrast":e("color.n-11"),"copy-info":e(a?"color.n-11":"color.n-10"),"copy-icon":e(a?"color.n-12":"color.n-11"),"copy-accent":e(a?"color.highest":"color.a-12"),"copy-accent-lowcontrast":e(a?"color.a-12":"color.a-11"),"copy-accent-icon":e(a?"color.a-12":"color.a-11"),"copy-inverted":e("color.lowest"),"copy-inverted-lowcontrast":e("color.n-4"),"copy-inverted-icon":e("color.n-3"),"tag-neutral-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"tag-neutral-weak-copy":e("color.n-12"),"tag-neutral-weak-stroke-color":e(i==="stroke"?"color.n-5":"color.n-3"),"tag-neutral-strong-bg":i==="fill"?e("color.n-12"):vn,"tag-neutral-strong-copy":e(i==="fill"?"color.white":"color.n-12"),"tag-neutral-strong-stroke-color":r(a?"n-12":"n-4",i==="stroke"?1:0),"tag-monetary-weak-bg":e("color.m-3"),"tag-monetary-weak-copy":e("color.m-11"),"tag-monetary-weak-stroke-color":e("color.m-4"),"tag-accent-strong-bg":t.mode==="dark"?e("color.a-9"):e("color.a-11"),"tag-accent-strong-copy":e("color.white"),"tag-accent-strong-stroke-color":vn,"radius-app":Ee(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Ee(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Ee(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Ee(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Ee(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Ee(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Ee(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":Ee(t).with({corners:"rounded"},()=>"1.5rem").with({corners:"soft"},()=>".5rem").with({corners:"sharp"},()=>"0").otherwise(),"section-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"section-strong-bg":e(i==="fill"?a?"color.n-3":"color.n-2":"color.lowest"),"section-weak-stroke-color":i==="fill"?vn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?vn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Ee(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":Ee(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),su=ou({prefix:"i-"}),cu=e=>{const t=au.from({theme:e.theme,getToken:su}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
|
|
18
|
+
${n.concat(n).join(`
|
|
19
|
+
`)}
|
|
20
|
+
}`},Kr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const Gr=e=>{var n,r,o;const t=[e.baseKey];e.state.query&&t.push(`q=${e.state.query}`),((n=e.state.geo)==null?void 0:n.type)==="ip"&&t.push("geo=ip"),((r=e.state.geo)==null?void 0:r.type)==="provided"&&e.state.geo.coords&&t.push(`geo=${e.state.geo.coords.lat}_${e.state.geo.coords.lng}_${e.state.geo.radius}`);for(const i in e.state.filters){const a=e.state.filters[i];if(!a)continue;const s=a.select==="many"?(o=a.value)==null?void 0:o.sort().join("|"):a.value;t.push(`${i}=${s}`)}return t.sort().join("::")};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function we(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 lu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vs(...e){return t=>e.forEach(n=>lu(n,t))}function ke(...e){return H(vs(...e),e)}function Oo(e,t=[]){let n=[];function r(i,a){const s=dt(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:f,...m}=l,g=(h==null?void 0:h[e][c])||s,_=X(()=>m,Object.values(m));return S(g.Provider,{value:_},f)}function p(l,h){const f=(h==null?void 0:h[e][c])||s,m=tt(f);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,p]}const o=()=>{const i=n.map(a=>dt(a));return function(s){const c=(s==null?void 0:s[e])||i;return X(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,uu(o,...t)]}function uu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:c,scopeName:d})=>{const l=c(i)[`__scope${d}`];return{...s,...l}},{});return X(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Tt=globalThis!=null&&globalThis.document?Te:()=>{},du=os["useId".toString()]||(()=>{});let fu=0;function Sn(e){const[t,n]=k(du());return Tt(()=>{e||n(r=>r??String(fu++))},[e]),e||(t?`radix-${t}`:"")}function Je(e){const t=A(e);return R(()=>{t.current=e}),X(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ms({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=pu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Je(n),c=H(d=>{if(i){const l=typeof d=="function"?d(e):d;l!==e&&s(l)}else o(d)},[i,e,o,s]);return[a,c]}function pu({defaultProp:e,onChange:t}){const n=k(e),[r]=n,o=A(r),i=Je(t);return R(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Gn=Y((e,t)=>{const{children:n,...r}=e,o=Se.toArray(n),i=o.find(gu);if(i){const a=i.props.children,s=o.map(c=>c===i?Se.count(a)>1?Se.only(null):Fe(a)?a.props.children:null:c);return S(Yr,G({},r,{ref:t}),Fe(a)?At(a,void 0,s):null)}return S(Yr,G({},r,{ref:t}),n)});Gn.displayName="Slot";const Yr=Y((e,t)=>{const{children:n,...r}=e;return Fe(n)?At(n,{...vu(r,n.props),ref:t?vs(t,n.ref):n.ref}):Se.count(n)>1?Se.only(null):null});Yr.displayName="SlotClone";const hu=({children:e})=>S(M,null,e);function gu(e){return Fe(e)&&e.type===hu}function vu(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 mu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=mu.reduce((e,t)=>{const n=Y((r,o)=>{const{asChild:i,...a}=r,s=i?Gn:t;return R(()=>{window[Symbol.for("radix-ui")]=!0},[]),S(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _u(e,t){e&&on(()=>e.dispatchEvent(t))}function yu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);R(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Zr="dismissableLayer.update",bu="dismissableLayer.pointerDownOutside",wu="dismissableLayer.focusOutside";let wi;const xu=dt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_s=Y((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,p=tt(xu),[l,h]=k(null),f=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=k({}),g=ke(t,E=>h(E)),_=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(v),w=l?_.indexOf(l):-1,y=p.layersWithOutsidePointerEventsDisabled.size>0,x=w>=b,$=$u(E=>{const O=E.target,P=[...p.branches].some(L=>L.contains(O));!x||P||(i==null||i(E),s==null||s(E),E.defaultPrevented||c==null||c())},f),C=Eu(E=>{const O=E.target;[...p.branches].some(L=>L.contains(O))||(a==null||a(E),s==null||s(E),E.defaultPrevented||c==null||c())},f);return yu(E=>{w===p.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},f),R(()=>{if(l)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(wi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(l)),p.layers.add(l),xi(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=wi)}},[l,f,r,p]),R(()=>()=>{l&&(p.layers.delete(l),p.layersWithOutsidePointerEventsDisabled.delete(l),xi())},[l,p]),R(()=>{const E=()=>m({});return document.addEventListener(Zr,E),()=>document.removeEventListener(Zr,E)},[]),S(nt.div,G({},d,{ref:g,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,C.onFocusCapture),onBlurCapture:we(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,$.onPointerDownCapture)}))});function $u(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1),o=A(()=>{});return R(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){ys(bu,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Eu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1);return R(()=>{const o=i=>{i.target&&!r.current&&ys(wu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xi(){const e=new CustomEvent(Zr);document.dispatchEvent(e)}function ys(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?_u(o,i):o.dispatchEvent(i)}const xr="focusScope.autoFocusOnMount",$r="focusScope.autoFocusOnUnmount",$i={bubbles:!1,cancelable:!0},bs=Y((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=k(null),d=Je(o),p=Je(i),l=A(null),h=ke(t,g=>c(g)),f=A({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R(()=>{if(r){let g=function(w){if(f.paused||!s)return;const y=w.target;s.contains(y)?l.current=y:qe(l.current,{select:!0})},_=function(w){if(f.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||qe(l.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&qe(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",_);const b=new MutationObserver(v);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",_),b.disconnect()}}},[r,s,f.paused]),R(()=>{if(s){Ci.add(f);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(xr,$i);s.addEventListener(xr,d),s.dispatchEvent(v),v.defaultPrevented||(Cu(Au(ws(s)),{select:!0}),document.activeElement===g&&qe(s))}return()=>{s.removeEventListener(xr,d),setTimeout(()=>{const v=new CustomEvent($r,$i);s.addEventListener($r,p),s.dispatchEvent(v),v.defaultPrevented||qe(g??document.body,{select:!0}),s.removeEventListener($r,p),Ci.remove(f)},0)}}},[s,d,p,f]);const m=H(g=>{if(!n&&!r||f.paused)return;const _=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(_&&v){const b=g.currentTarget,[w,y]=Su(b);w&&y?!g.shiftKey&&v===y?(g.preventDefault(),n&&qe(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&qe(y,{select:!0})):v===b&&g.preventDefault()}},[n,r,f.paused]);return S(nt.div,G({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function Cu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qe(r,{select:t}),document.activeElement!==n)return}function Su(e){const t=ws(e),n=Ei(t,e),r=Ei(t.reverse(),e);return[n,r]}function ws(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 Ei(e,t){for(const n of e)if(!Ou(n,{upTo:t}))return n}function Ou(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 Tu(e){return e instanceof HTMLInputElement&&"select"in e}function qe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Tu(e)&&t&&e.select()}}const Ci=ku();function ku(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Si(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Au(e){return e.filter(t=>t.tagName!=="A")}const xs=Y((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?an.createPortal(S(nt.div,G({},o,{ref:t})),r):null});function Pu(e,t){return rn((n,r)=>{const o=t[n][r];return o??n},e)}const Pt=e=>{const{present:t,children:n}=e,r=Ru(t),o=typeof n=="function"?n({present:r.isPresent}):Se.only(n),i=ke(r.ref,o.ref);return typeof n=="function"||r.isPresent?At(o,{ref:i}):null};Pt.displayName="Presence";function Ru(e){const[t,n]=k(),r=A({}),o=A(e),i=A("none"),a=e?"mounted":"unmounted",[s,c]=Pu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R(()=>{const d=mn(r.current);i.current=s==="mounted"?d:"none"},[s]),Tt(()=>{const d=r.current,p=o.current;if(p!==e){const h=i.current,f=mn(d);e?c("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(p&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Tt(()=>{if(t){const d=l=>{const f=mn(r.current).includes(l.animationName);l.target===t&&f&&on(()=>c("ANIMATION_END"))},p=l=>{l.target===t&&(i.current=mn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:H(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function mn(e){return(e==null?void 0:e.animationName)||"none"}let Er=0;function $s(){R(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Oi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Oi()),Er++,()=>{Er===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Er--}},[])}function Oi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ke=function(){return Ke=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},Ke.apply(this,arguments)};function Du(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 Nu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var On="right-scroll-bar-position",Tn="width-before-scroll-bar",Lu="with-scroll-bars-hidden",Mu="--removed-body-scroll-bar-size";function Cr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Iu(e,t){var n=k(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ju=typeof window<"u"?Te:R,Ti=new WeakMap;function Fu(e,t){var n=Iu(t||null,function(r){return e.forEach(function(o){return Cr(o,r)})});return ju(function(){var r=Ti.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Cr(s,null)}),i.forEach(function(s){o.has(s)||Cr(s,a)})}Ti.set(n,e)},[e]),n}var Mn=function(){return Mn=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},Mn.apply(this,arguments)};function Vu(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 Hu(e){return e}function Wu(e,t){t===void 0&&(t=Hu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var p=a;a=[],p.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return o}function Uu(e){e===void 0&&(e={});var t=Wu(null);return t.options=Mn({async:!0,ssr:!1},e),t}var Es=function(e){var t=e.sideCar,n=Vu(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 S(r,Mn({},n))};Es.isSideCarExport=!0;function zu(e,t){return e.useMedium(t),Es}var Cs=Uu(),Sr=function(){},Yn=Y(function(e,t){var n=A(null),r=k({onScrollCapture:Sr,onWheelCapture:Sr,onTouchMoveCapture:Sr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,l=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?"div":_,b=Du(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=Fu([n,t]),x=Ke(Ke({},b),o);return S(M,null,p&&S(w,{sideCar:Cs,removeScrollBar:d,shards:l,noIsolation:f,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?At(Se.only(s),Ke(Ke({},x),{ref:y})):S(v,Ke({},x,{className:c,ref:y}),s))});Yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yn.classNames={fullWidth:Tn,zeroRight:On};var ki,Bu=function(){if(ki)return ki;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bu();return t&&e.setAttribute("nonce",t),e}function Ku(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qu())&&(Ku(t,n),Gu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zu=function(){var e=Yu();return function(t,n){R(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ss=function(){var e=Zu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ju={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},Xu=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Or(n),Or(r),Or(o)]},Qu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ju;var t=Xu(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])}},ed=Ss(),wt="data-scroll-locked",td=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(Lu,` {
|
|
22
|
+
overflow: hidden `).concat(r,`;
|
|
23
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
24
|
+
}
|
|
25
|
+
body[`).concat(wt,`] {
|
|
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(On,` {
|
|
39
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(Tn,` {
|
|
43
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.`).concat(On," .").concat(On,` {
|
|
47
|
+
right: 0 `).concat(r,`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.`).concat(Tn," .").concat(Tn,` {
|
|
51
|
+
margin-right: 0 `).concat(r,`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body[`).concat(wt,`] {
|
|
55
|
+
`).concat(Mu,": ").concat(s,`px;
|
|
56
|
+
}
|
|
57
|
+
`)},Ai=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},nd=function(){R(function(){return document.body.setAttribute(wt,(Ai()+1).toString()),function(){var e=Ai()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}},[])},rd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;nd();var i=X(function(){return Qu(o)},[o]);return S(ed,{styles:td(i,!t,o,n?"":"!important")})},Jr=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return Jr=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Jr=!1}var gt=Jr?{passive:!1}:!1,od=function(e){return e.tagName==="TEXTAREA"},Os=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!od(e)&&n[t]==="visible")},id=function(e){return Os(e,"overflowY")},ad=function(e){return Os(e,"overflowX")},Pi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ts(e,n);if(r){var o=ks(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},sd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},cd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ts=function(e,t){return e==="v"?id(t):ad(t)},ks=function(e,t){return e==="v"?sd(t):cd(t)},ld=function(e,t){return e==="h"&&t==="rtl"?-1:1},ud=function(e,t,n,r,o){var i=ld(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,p=a>0,l=0,h=0;do{var f=ks(e,s),m=f[0],g=f[1],_=f[2],v=g-_-i*m;(m||v)&&Ts(e,s)&&(l+=v,h+=m),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&l===0||!o&&a>l)||!p&&(o&&h===0||!o&&-a>h))&&(d=!0),d},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ri=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},dd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fd=function(e){return`
|
|
58
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
59
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
60
|
+
`)},pd=0,vt=[];function hd(e){var t=A([]),n=A([0,0]),r=A(),o=k(pd++)[0],i=k(function(){return Ss()})[0],a=A(e);R(function(){a.current=e},[e]),R(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Nu([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return g.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H(function(g,_){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=yn(g),b=n.current,w="deltaX"in g?g.deltaX:b[0]-v[0],y="deltaY"in g?g.deltaY:b[1]-v[1],x,$=g.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in g&&C==="h"&&$.type==="range")return!1;var E=Pi(C,$);if(!E)return!0;if(E?x=C:(x=C==="v"?"h":"v",E=Pi(C,$)),!E)return!1;if(!r.current&&"changedTouches"in g&&(w||y)&&(r.current=x),!x)return!0;var O=r.current||x;return ud(O,_,g,O==="h"?w:y,!0)},[]),c=H(function(g){var _=g;if(!(!vt.length||vt[vt.length-1]!==i)){var v="deltaY"in _?Ri(_):yn(_),b=t.current.filter(function(x){return x.name===_.type&&x.target===_.target&&dd(x.delta,v)})[0];if(b&&b.should){_.cancelable&&_.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(x){return x.contains(_.target)}),y=w.length>0?s(_,w[0]):!a.current.noIsolation;y&&_.cancelable&&_.preventDefault()}}},[]),d=H(function(g,_,v,b){var w={name:g,delta:_,target:v,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),p=H(function(g){n.current=yn(g),r.current=void 0},[]),l=H(function(g){d(g.type,Ri(g),g.target,s(g,e.lockRef.current))},[]),h=H(function(g){d(g.type,yn(g),g.target,s(g,e.lockRef.current))},[]);R(function(){return vt.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,gt),document.addEventListener("touchmove",c,gt),document.addEventListener("touchstart",p,gt),function(){vt=vt.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,gt),document.removeEventListener("touchmove",c,gt),document.removeEventListener("touchstart",p,gt)}},[]);var f=e.removeScrollBar,m=e.inert;return S(M,null,m?S(i,{styles:fd(o)}):null,f?S(rd,{gapMode:"margin"}):null)}const gd=zu(Cs,hd);var As=Y(function(e,t){return S(Yn,Ke({},e,{ref:t,sideCar:gd}))});As.classNames=Yn.classNames;const Ps=As;var vd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,bn=new WeakMap,wn={},Tr=0,Rs=function(e){return e&&(e.host||Rs(e.parentNode))},md=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Rs(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})},_d=function(e,t,n,r){var o=md(t,Array.isArray(e)?e:[e]);wn[n]||(wn[n]=new WeakMap);var i=wn[n],a=[],s=new Set,c=new Set(o),d=function(l){!l||s.has(l)||(s.add(l),d(l.parentNode))};o.forEach(d);var p=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))p(h);else try{var f=h.getAttribute(r),m=f!==null&&f!=="false",g=(mt.get(h)||0)+1,_=(i.get(h)||0)+1;mt.set(h,g),i.set(h,_),a.push(h),g===1&&m&&bn.set(h,!0),_===1&&h.setAttribute(n,"true"),m||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return p(t),s.clear(),Tr++,function(){a.forEach(function(l){var h=mt.get(l)-1,f=i.get(l)-1;mt.set(l,h),i.set(l,f),h||(bn.has(l)||l.removeAttribute(r),bn.delete(l)),f||l.removeAttribute(n)}),Tr--,Tr||(mt=new WeakMap,mt=new WeakMap,bn=new WeakMap,wn={})}},Ds=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||vd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),_d(r,o,n,"aria-hidden")):function(){return null}};const Ns="Dialog",[Ls,t_]=Oo(Ns),[yd,rt]=Ls(Ns),bd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=A(null),c=A(null),[d=!1,p]=ms({prop:r,defaultProp:o,onChange:i});return S(yd,{scope:t,triggerRef:s,contentRef:c,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:d,onOpenChange:p,onOpenToggle:H(()=>p(l=>!l),[p]),modal:a},n)},wd="DialogTrigger",xd=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(wd,n),i=ke(t,o.triggerRef);return S(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":To(o.open)},r,{ref:i,onClick:we(e.onClick,o.onOpenToggle)}))}),Ms="DialogPortal",[$d,Is]=Ls(Ms,{forceMount:void 0}),Ed=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(Ms,t);return S($d,{scope:t,forceMount:n},Se.map(r,a=>S(Pt,{present:n||i.open},S(xs,{asChild:!0,container:o},a))))},Xr="DialogOverlay",Cd=Y((e,t)=>{const n=Is(Xr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Xr,e.__scopeDialog);return i.modal?S(Pt,{present:r||i.open},S(Sd,G({},o,{ref:t}))):null}),Sd=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Xr,n);return S(Ps,{as:Gn,allowPinchZoom:!0,shards:[o.contentRef]},S(nt.div,G({"data-state":To(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zt="DialogContent",Od=Y((e,t)=>{const n=Is(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Zt,e.__scopeDialog);return S(Pt,{present:r||i.open},i.modal?S(Td,G({},o,{ref:t})):S(kd,G({},o,{ref:t})))}),Td=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=A(null),o=ke(t,n.contentRef,r);return R(()=>{const i=r.current;if(i)return Ds(i)},[]),S(js,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:we(e.onFocusOutside,i=>i.preventDefault())}))}),kd=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=A(!1),o=A(!1);return S(js,G({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),js=Y((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Zt,n),c=A(null),d=ke(t,c);return $s(),S(M,null,S(bs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},S(_s,G({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":To(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function To(e){return e?"open":"closed"}const Ad=bd,Pd=xd,Rd=Ed,Dd=Cd,Nd=Od,Ld=["top","right","bottom","left"],Ce=Math.min,ce=Math.max,In=Math.round,xn=Math.floor,Xe=e=>({x:e,y:e}),Md={left:"right",right:"left",bottom:"top",top:"bottom"},Id={start:"end",end:"start"};function Qr(e,t,n){return ce(e,Ce(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function ko(e){return e==="x"?"y":"x"}function Ao(e){return e==="y"?"height":"width"}function Qe(e){return["top","bottom"].includes(We(e))?"y":"x"}function Po(e){return ko(Qe(e))}function jd(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=Po(e),i=Ao(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=jn(a)),[a,jn(a)]}function Fd(e){const t=jn(e);return[eo(e),t,eo(t)]}function eo(e){return e.replace(/start|end/g,t=>Id[t])}function Vd(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 Hd(e,t,n,r){const o=Rt(e);let i=Vd(We(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(eo)))),i}function jn(e){return e.replace(/left|right|bottom|top/g,t=>Md[t])}function Wd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fs(e){return typeof e!="number"?Wd(e):{top:e,right:e,bottom:e,left:e}}function Fn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ni(e,t,n){let{reference:r,floating:o}=e;const i=Qe(t),a=Po(t),s=Ao(a),c=We(t),d=i==="y",p=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(c){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(Rt(t)){case"start":f[a]-=h*(n&&d?-1:1);break;case"end":f[a]+=h*(n&&d?-1:1);break}return f}const Ud=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:l}=Ni(d,r,c),h=r,f={},m=0;for(let g=0;g<s.length;g++){const{name:_,fn:v}=s[g],{x:b,y:w,data:y,reset:x}=await v({x:p,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});p=b??p,l=w??l,f={...f,[_]:{...f[_],...y}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(d=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:p,y:l}=Ni(d,h,c)),g=-1)}return{x:p,y:l,placement:h,strategy:o,middlewareData:f}};async function Jt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:l="floating",altBoundary:h=!1,padding:f=0}=He(t,e),m=Fs(f),_=s[h?l==="floating"?"reference":"floating":l],v=Fn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:c})),b=l==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),y=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Fn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-x.top+m.top)/y.y,bottom:(x.bottom-v.bottom+m.bottom)/y.y,left:(v.left-x.left+m.left)/y.x,right:(x.right-v.right+m.right)/y.x}}const zd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:d,padding:p=0}=He(e,t)||{};if(d==null)return{};const l=Fs(p),h={x:n,y:r},f=Po(o),m=Ao(f),g=await a.getDimensions(d),_=f==="y",v=_?"top":"left",b=_?"bottom":"right",w=_?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-h[f]-i.floating[m],x=h[f]-i.reference[f],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=$?$[w]:0;(!C||!await(a.isElement==null?void 0:a.isElement($)))&&(C=s.floating[w]||i.floating[m]);const E=y/2-x/2,O=C/2-g[m]/2-1,P=Ce(l[v],O),L=Ce(l[b],O),D=P,F=C-g[m]-L,T=C/2-g[m]/2+E,N=Qr(D,T,F),I=!c.arrow&&Rt(o)!=null&&T!==N&&i.reference[m]/2-(T<D?P:L)-g[m]/2<0,j=I?T<D?T-D:T-F:0;return{[f]:h[f]+j,data:{[f]:N,centerOffset:T-N-j,...I&&{alignmentOffset:j}},reset:I}}}),Bd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,..._}=He(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=We(o),b=Qe(s),w=We(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(d.floating)),x=h||(w||!g?[jn(s)]:Fd(s)),$=m!=="none";!h&&$&&x.push(...Hd(s,g,m,y));const C=[s,...x],E=await Jt(t,_),O=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&O.push(E[v]),l){const T=jd(o,a,y);O.push(E[T[0]],E[T[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(T=>T<=0)){var L,D;const T=(((L=i.flip)==null?void 0:L.index)||0)+1,N=C[T];if(N)return{data:{index:T,overflows:P},reset:{placement:N}};let I=(D=P.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(f){case"bestFit":{var F;const j=(F=P.filter(W=>{if($){const Z=Qe(W.placement);return Z===b||Z==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Z=>Z>0).reduce((Z,jt)=>Z+jt,0)]).sort((W,Z)=>W[1]-Z[1])[0])==null?void 0:F[0];j&&(I=j);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mi(e){return Ld.some(t=>e[t]>=0)}const qd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=He(e,t);switch(r){case"referenceHidden":{const i=await Jt(t,{...o,elementContext:"reference"}),a=Li(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Mi(a)}}}case"escaped":{const i=await Jt(t,{...o,altBoundary:!0}),a=Li(i,n.floating);return{data:{escapedOffsets:a,escaped:Mi(a)}}}default:return{}}}}};async function Kd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=We(n),s=Rt(n),c=Qe(n)==="y",d=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,l=He(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof m=="number"&&(f=s==="end"?m*-1:m),c?{x:f*p,y:h*d}:{x:h*d,y:f*p}}const Gd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await Kd(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Yd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...c}=He(e,t),d={x:n,y:r},p=await Jt(t,c),l=Qe(We(o)),h=ko(l);let f=d[h],m=d[l];if(i){const _=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=f+p[_],w=f-p[v];f=Qr(b,f,w)}if(a){const _=l==="y"?"top":"left",v=l==="y"?"bottom":"right",b=m+p[_],w=m-p[v];m=Qr(b,m,w)}const g=s.fn({...t,[h]:f,[l]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Zd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=He(e,t),p={x:n,y:r},l=Qe(o),h=ko(l);let f=p[h],m=p[l];const g=He(s,t),_=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+_.mainAxis,x=i.reference[h]+i.reference[w]-_.mainAxis;f<y?f=y:f>x&&(f=x)}if(d){var v,b;const w=h==="y"?"width":"height",y=["top","left"].includes(We(o)),x=i.reference[l]-i.floating[w]+(y&&((v=a.offset)==null?void 0:v[l])||0)+(y?0:_.crossAxis),$=i.reference[l]+i.reference[w]+(y?0:((b=a.offset)==null?void 0:b[l])||0)-(y?_.crossAxis:0);m<x?m=x:m>$&&(m=$)}return{[h]:f,[l]:m}}}},Jd=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}=He(e,t),c=await Jt(t,s),d=We(n),p=Rt(n),l=Qe(n)==="y",{width:h,height:f}=r.floating;let m,g;d==="top"||d==="bottom"?(m=d,g=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=d,m=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,v=h-c.left-c.right,b=Ce(f-c[m],_),w=Ce(h-c[g],v),y=!t.middlewareData.shift;let x=b,$=w;if(l?$=p||y?Ce(w,v):v:x=p||y?Ce(b,_):_,y&&!p){const E=ce(c.left,0),O=ce(c.right,0),P=ce(c.top,0),L=ce(c.bottom,0);l?$=h-2*(E!==0||O!==0?E+O:ce(c.left,c.right)):x=f-2*(P!==0||L!==0?P+L:ce(c.top,c.bottom))}await a({...t,availableWidth:$,availableHeight:x});const C=await o.getDimensions(i.floating);return h!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Vs(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Vs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vs(e){return e instanceof Node||e instanceof ue(e).Node}function xe(e){return e instanceof Element||e instanceof ue(e).Element}function Oe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function Ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xd(e){return["table","td","th"].includes(Dt(e))}function Zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ro(e){const t=Do(),n=xe(e)?$e(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qd(e){let t=et(e);for(;Oe(t)&&!kt(t);){if(Ro(t))return t;if(Zn(t))return null;t=et(t)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function kt(e){return["html","body","#document"].includes(Dt(e))}function $e(e){return ue(e).getComputedStyle(e)}function Jn(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||Ue(e);return Ii(t)?t.host:t}function Hs(e){const t=et(e);return kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oe(t)&&sn(t)?t:Hs(t)}function Xt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hs(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ue(o);if(i){const s=to(a);return t.concat(a,a.visualViewport||[],sn(o)?o:[],s&&n?Xt(s):[])}return t.concat(o,Xt(o,[],n))}function to(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ws(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Oe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=In(n)!==i||In(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function No(e){return xe(e)?e:e.contextElement}function xt(e){const t=No(e);if(!Oe(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ws(t);let a=(i?In(n.width):n.width)/r,s=(i?In(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ef=Xe(0);function Us(e){const t=ue(e);return!Do()||!t.visualViewport?ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=No(e);let a=Xe(1);t&&(r?xe(r)&&(a=xt(r)):a=xt(e));const s=tf(i,n,r)?Us(i):Xe(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,p=o.width/a.x,l=o.height/a.y;if(i){const h=ue(i),f=r&&xe(r)?ue(r):r;let m=h,g=to(m);for(;g&&r&&f!==m;){const _=xt(g),v=g.getBoundingClientRect(),b=$e(g),w=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,y=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,d*=_.y,p*=_.x,l*=_.y,c+=w,d+=y,m=ue(g),g=to(m)}}return Fn({width:p,height:l,x:c,y:d})}function nf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Ue(r),s=t?Zn(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Xe(1);const p=Xe(0),l=Oe(r);if((l||!l&&!i)&&((Dt(r)!=="body"||sn(a))&&(c=Jn(r)),Oe(r))){const h=ft(r);d=xt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x,y:n.y*d.y-c.scrollTop*d.y+p.y}}function rf(e){return Array.from(e.getClientRects())}function zs(e){return ft(Ue(e)).left+Jn(e).scrollLeft}function of(e){const t=Ue(e),n=Jn(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+zs(e);const s=-n.scrollTop;return $e(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function af(e,t){const n=ue(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=Do();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function sf(e,t){const n=ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Oe(e)?xt(e):Xe(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,d=r*i.y;return{width:a,height:s,x:c,y:d}}function ji(e,t,n){let r;if(t==="viewport")r=af(e,n);else if(t==="document")r=of(Ue(e));else if(xe(t))r=sf(t,n);else{const o=Us(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Fn(r)}function Bs(e,t){const n=et(e);return n===t||!xe(n)||kt(n)?!1:$e(n).position==="fixed"||Bs(n,t)}function cf(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(s=>xe(s)&&Dt(s)!=="body"),o=null;const i=$e(e).position==="fixed";let a=i?et(e):e;for(;xe(a)&&!kt(a);){const s=$e(a),c=Ro(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sn(a)&&!c&&Bs(e,a))?r=r.filter(p=>p!==a):o=s,a=et(a)}return t.set(e,r),r}function lf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Zn(t)?[]:cf(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((d,p)=>{const l=ji(t,p,o);return d.top=ce(l.top,d.top),d.right=Ce(l.right,d.right),d.bottom=Ce(l.bottom,d.bottom),d.left=ce(l.left,d.left),d},ji(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function uf(e){const{width:t,height:n}=Ws(e);return{width:t,height:n}}function df(e,t,n){const r=Oe(t),o=Ue(t),i=n==="fixed",a=ft(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xe(0);if(r||!r&&!i)if((Dt(t)!=="body"||sn(o))&&(s=Jn(t)),r){const l=ft(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=zs(o));const d=a.left+s.scrollLeft-c.x,p=a.top+s.scrollTop-c.y;return{x:d,y:p,width:a.width,height:a.height}}function kr(e){return $e(e).position==="static"}function Fi(e,t){return!Oe(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function qs(e,t){const n=ue(e);if(Zn(e))return n;if(!Oe(e)){let o=et(e);for(;o&&!kt(o);){if(xe(o)&&!kr(o))return o;o=et(o)}return n}let r=Fi(e,t);for(;r&&Xd(r)&&kr(r);)r=Fi(r,t);return r&&kt(r)&&kr(r)&&!Ro(r)?n:r||Qd(e)||n}const ff=async function(e){const t=this.getOffsetParent||qs,n=this.getDimensions,r=await n(e.floating);return{reference:df(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pf(e){return $e(e).direction==="rtl"}const hf={convertOffsetParentRelativeRectToViewportRelativeRect:nf,getDocumentElement:Ue,getClippingRect:lf,getOffsetParent:qs,getElementRects:ff,getClientRects:rf,getDimensions:uf,getScale:xt,isElement:xe,isRTL:pf};function gf(e,t){let n=null,r;const o=Ue(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:d,top:p,width:l,height:h}=e.getBoundingClientRect();if(s||t(),!l||!h)return;const f=xn(p),m=xn(o.clientWidth-(d+l)),g=xn(o.clientHeight-(p+h)),_=xn(d),b={rootMargin:-f+"px "+-m+"px "+-g+"px "+-_+"px",threshold:ce(0,Ce(1,c))||1};let w=!0;function y(x){const $=x[0].intersectionRatio;if($!==c){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(y,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return a(!0),i}function vf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=No(e),p=o||i?[...d?Xt(d):[],...Xt(t)]:[];p.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const l=d&&s?gf(d,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(v=>{let[b]=v;b&&b.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),d&&!c&&f.observe(d),f.observe(t));let m,g=c?ft(e):null;c&&_();function _(){const v=ft(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(_)}return n(),()=>{var v;p.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),l==null||l(),(v=f)==null||v.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const mf=Gd,_f=Yd,yf=Bd,bf=Jd,wf=qd,Vi=zd,xf=Zd,$f=(e,t,n)=>{const r=new Map,o={platform:hf,...n},i={...o.platform,_c:r};return Ud(e,t,{...o,platform:i})};var kn=typeof document<"u"?Te:R;function Vn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Vn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Vn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ks(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hi(e,t){const n=Ks(e);return Math.round(t*n)/n}function Wi(e){const t=A(e);return kn(()=>{t.current=e}),t}function Ef(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[p,l]=k({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=k(r);Vn(h,r)||f(r);const[m,g]=k(null),[_,v]=k(null),b=H(j=>{j!==$.current&&($.current=j,g(j))},[]),w=H(j=>{j!==C.current&&(C.current=j,v(j))},[]),y=i||m,x=a||_,$=A(null),C=A(null),E=A(p),O=c!=null,P=Wi(c),L=Wi(o),D=H(()=>{if(!$.current||!C.current)return;const j={placement:t,strategy:n,middleware:h};L.current&&(j.platform=L.current),$f($.current,C.current,j).then(W=>{const Z={...W,isPositioned:!0};F.current&&!Vn(E.current,Z)&&(E.current=Z,on(()=>{l(Z)}))})},[h,t,n,L]);kn(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,l(j=>({...j,isPositioned:!1})))},[d]);const F=A(!1);kn(()=>(F.current=!0,()=>{F.current=!1}),[]),kn(()=>{if(y&&($.current=y),x&&(C.current=x),y&&x){if(P.current)return P.current(y,x,D);D()}},[y,x,D,P,O]);const T=X(()=>({reference:$,floating:C,setReference:b,setFloating:w}),[b,w]),N=X(()=>({reference:y,floating:x}),[y,x]),I=X(()=>{const j={position:n,left:0,top:0};if(!N.floating)return j;const W=Hi(N.floating,p.x),Z=Hi(N.floating,p.y);return s?{...j,transform:"translate("+W+"px, "+Z+"px)",...Ks(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:Z}},[n,s,N.floating,p.x,p.y]);return X(()=>({...p,update:D,refs:T,elements:N,floatingStyles:I}),[p,D,T,N,I])}const Cf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Vi({element:r.current,padding:o}).fn(n):{}:r?Vi({element:r,padding:o}).fn(n):{}}}},Sf=(e,t)=>({...mf(e),options:[e,t]}),Of=(e,t)=>({..._f(e),options:[e,t]}),Tf=(e,t)=>({...xf(e),options:[e,t]}),kf=(e,t)=>({...yf(e),options:[e,t]}),Af=(e,t)=>({...bf(e),options:[e,t]}),Pf=(e,t)=>({...wf(e),options:[e,t]}),Rf=(e,t)=>({...Cf(e),options:[e,t]});function Df(e){const[t,n]=k(void 0);return Tt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Gs="Popper",[Ys,Zs]=Oo(Gs),[Nf,Js]=Ys(Gs),Lf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k(null);return S(Nf,{scope:t,anchor:r,onAnchorChange:o},n)},Mf="PopperAnchor",If=Y((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Js(Mf,n),a=A(null),s=ke(t,a);return R(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:S(nt.div,G({},o,{ref:s}))}),Xs="PopperContent",[jf,n_]=Ys(Xs),Ff=Y((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:p,side:l="bottom",sideOffset:h=0,align:f="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:_=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,E=Js(Xs,p),[O,P]=k(null),L=ke(t,B=>P(B)),[D,F]=k(null),T=Df(D),N=(n=T==null?void 0:T.width)!==null&&n!==void 0?n:0,I=(r=T==null?void 0:T.height)!==null&&r!==void 0?r:0,j=l+(f!=="center"?"-"+f:""),W=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(v)?v:[v],jt=Z.length>0,me={padding:W,boundary:Z.filter(Vf),altBoundary:jt},{refs:ze,floatingStyles:ot,placement:ln,isPositioned:Ae,middlewareData:Pe}=Ef({strategy:"fixed",placement:j,whileElementsMounted:(...B)=>vf(...B,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[Sf({mainAxis:h+I,alignmentAxis:m}),_&&Of({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Tf():void 0,...me}),_&&kf({...me}),Af({...me,apply:({elements:B,rects:se,availableWidth:Be,availableHeight:ee})=>{const{width:re,height:_e}=se.reference,at=B.floating.style;at.setProperty("--radix-popper-available-width",`${Be}px`),at.setProperty("--radix-popper-available-height",`${ee}px`),at.setProperty("--radix-popper-anchor-width",`${re}px`),at.setProperty("--radix-popper-anchor-height",`${_e}px`)}}),D&&Rf({element:D,padding:g}),Hf({arrowWidth:N,arrowHeight:I}),y&&Pf({strategy:"referenceHidden",...me})]}),[Ft,or]=Qs(ln),ht=Je($);Tt(()=>{Ae&&(ht==null||ht())},[Ae,ht]);const it=(o=Pe.arrow)===null||o===void 0?void 0:o.x,un=(i=Pe.arrow)===null||i===void 0?void 0:i.y,U=((a=Pe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[z,te]=k();return Tt(()=>{O&&te(window.getComputedStyle(O).zIndex)},[O]),S("div",{ref:ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:Ae?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(s=Pe.transformOrigin)===null||s===void 0?void 0:s.x,(c=Pe.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},S(jf,{scope:p,placedSide:Ft,onArrowChange:F,arrowX:it,arrowY:un,shouldHideArrow:U},S(nt.div,G({"data-side":Ft,"data-align":or},C,{ref:L,style:{...C.style,animation:Ae?void 0:"none",opacity:(d=Pe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Vf(e){return e!==null}const Hf=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,l=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[m,g]=Qs(s),_={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,b=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return m==="bottom"?(w=l?_:`${v}px`,y=`${-f}px`):m==="top"?(w=l?_:`${v}px`,y=`${c.floating.height+f}px`):m==="right"?(w=`${-f}px`,y=l?_:`${b}px`):m==="left"&&(w=`${c.floating.width+f}px`,y=l?_:`${b}px`),{data:{x:w,y}}}});function Qs(e){const[t,n="center"]=e.split("-");return[t,n]}const Wf=Lf,Uf=If,zf=Ff,ec="Popover",[tc,r_]=Oo(ec,[Zs]),Lo=Zs(),[Bf,Nt]=tc(ec),qf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Lo(t),c=A(null),[d,p]=k(!1),[l=!1,h]=ms({prop:r,defaultProp:o,onChange:i});return S(Wf,s,S(Bf,{scope:t,contentId:Sn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:H(()=>h(f=>!f),[h]),hasCustomAnchor:d,onCustomAnchorAdd:H(()=>p(!0),[]),onCustomAnchorRemove:H(()=>p(!1),[]),modal:a},n))},Kf="PopoverTrigger",Gf=Y((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(Kf,n),i=Lo(n),a=ke(t,o.triggerRef),s=S(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":oc(o.open)},r,{ref:a,onClick:we(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:S(Uf,G({asChild:!0},i),s)}),nc="PopoverPortal",[Yf,Zf]=tc(nc,{forceMount:void 0}),Jf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Nt(nc,t);return S(Yf,{scope:t,forceMount:n},S(Pt,{present:n||i.open},S(xs,{asChild:!0,container:o},r)))},Qt="PopoverContent",Xf=Y((e,t)=>{const n=Zf(Qt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Nt(Qt,e.__scopePopover);return S(Pt,{present:r||i.open},i.modal?S(Qf,G({},o,{ref:t})):S(ep,G({},o,{ref:t})))}),Qf=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=A(null),o=ke(t,r),i=A(!1);return R(()=>{const a=r.current;if(a)return Ds(a)},[]),S(Ps,{as:Gn,allowPinchZoom:!0},S(rc,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,d=s.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:we(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),ep=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=A(!1),o=A(!1);return S(rc,G({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),rc=Y((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...l}=e,h=Nt(Qt,n),f=Lo(n);return $s(),S(bs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},S(_s,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},S(zf,G({"data-state":oc(h.open),role:"dialog",id:h.contentId},f,l,{ref:t,style:{...l.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function oc(e){return e?"open":"closed"}const tp=qf,np=Gf,rp=Jf,op=Xf,Ui=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},ip=(e,t={by:"results-count",order:"descending"})=>{const n=[...e];switch(t.by){case"results-count":n.sort((r,o)=>r.jobs-o.jobs);break;case"alphabetically":n.sort((r,o)=>r.label.localeCompare(o.label));break;case"numerically":n.sort((r,o)=>{const i=Ui(r.value),a=Ui(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},cn=ve({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}}),ic=ve({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"}}),ac=ve({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"}}}),sc=ve({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}}),ap=ve({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"}}}),sp=({children:e,colorScheme:t})=>u("span",{class:ap({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),cp=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},lp=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},up=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},dp=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=ne(),s=nn(n()),c=X(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const f=s.data[t.key]??[];return Object.fromEntries(f.map(m=>[m.value,m.jobs]))}default:yt(s)}},[s,t.key]),d=cc(e),p=d.length>0,[l,h]=k();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.searchable&&u("div",{class:"border-b-px border-neutral-4",children:u("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:l,onInput:f=>h(f.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return u(Ze,{error:new Error(a("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((f,m)=>u("div",{style:{animationDelay:m*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},m))});case"revalidating":case"loaded":{const f=s.data[t.key]??[],m=l&&l.length>1?f.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())):f,g=[];for(const v of m){if(v.label.length<1)continue;const b={...v,results:up(c,v),disabled:lp(c,v)};switch(t.results){case"only-available":b.disabled===!1&&g.push(b);break;default:g.push(b)}}return g.find(v=>!v.disabled)?u("ul",{class:ic(),children:ip(g,t.sortSuggestions).map(v=>{const b=d.includes(v.value);return u("li",{class:ac({type:"line"}),children:u("button",{type:"button",disabled:v.disabled,"data-filter":!0,"data-current-value":b?"true":void 0,onClick:()=>{switch(e.select){case"many":{const w=cp(d,v.value);o({select:"many",value:w});break}case"one":o({select:"one",value:b?void 0:v.value});break;default:yt(e)}},class:sc({active:b,disabled:v.disabled}),children:[u("span",{class:"max-w-full truncate",children:v.label})," ",u(sp,{colorScheme:b?"accentStrong":"neutralStrong",children:v.results})]})},v.value)})}):u("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:a("no_filter_options_available")})}default:yt(s)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:p&&u("button",{type:"button",class:je({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(Q,{"aria-hidden":!0,name:"x"})," ",a("clear")]})}),e.select==="many"&&r&&u("div",{class:"flex items-center overflow-hidden",children:u("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[d.length," ",a("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:je({variant:p?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(p?"done":"close")},p?"done":"close")})]})]})},zi=8,Bi={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},qi=ve({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),Ki=ve({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"}}}),cc=e=>typeof e.value=="string"?[e.value]:e.value??[],fp=({selectedValues:e})=>{const t=e.length;return t===0?null:u("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},pp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:c})=>{const d=Ec(r.key,Bi)?Bi[r.key]:void 0,p=r.icon??d??"filter",l=cc(t),h=l.length>0,f=gs("(pointer: coarse)"),m=u(M,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(Q,{"aria-hidden":!0,class:"flex-none",name:p}),u("span",{class:"truncate",children:r.label})]}),u(Q,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(fp,{selectedValues:l})]}),g=u(dp,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?u(Ad,{open:e,onOpenChange:n,children:[u(Pd,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),onTouchStart:hp,children:m}),u(Rd,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:[u(Dd,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Nd,{class:Ki({mode:"mobile",class:Kr(s)}),children:[u("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[u(Q,{name:p,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),g]})]})})]}):u(tp,{open:e,onOpenChange:_=>n(_),modal:f,children:[u(np,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),children:m}),u(rp,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:u(op,{side:"bottom",sideOffset:zi,align:"center",collisionPadding:zi,class:Ki({mode:"desktop",class:Kr(s)}),children:g})})})]})};function hp(){}const gp=(e,t)=>{var n,r,o;switch(t.select){case"many":(n=t.value)==null||n.forEach(i=>{var a,s;switch(e.select){case"many":(a=e.value)!=null&&a.includes(i)||(s=e.value)==null||s.push(i);break;case"one":e.value=i}});break;case"one":if(!t.value)break;switch(e.select){case"many":(r=e.value)!=null&&r.includes(t.value)||(o=e.value)==null||o.push(t.value);break;case"one":e.value=t.value}break}},vp=({value:e,activeKey:t})=>{switch(e==null?void 0:e.select){case void 0:return{newValue:void 0,newActiveKey:t};case"one":case"many":return{newValue:e,newActiveKey:t};default:yt(e)}},mp=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s,i18n:c})=>{const{t:d}=ne(),[p,l]=k(void 0),h=X(()=>({filters:Wn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),f=nn(Yt(Gr({state:h,baseKey:"filters"}),()=>Yo({rpcClient:o,state:h,t:d,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn)),m=H(g=>()=>{const _={...t,filters:{...t.filters,[g]:h.filters[g]}};return Yt(Gr({state:_,baseKey:"filters"}),()=>Yo({rpcClient:o,state:_,t:d,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn)},[o,h.filters,t,d,c]);return f.queryState==="error"?u(Ze,{error:new Error(d("filters_loading_error"),{cause:f.error}),resetError:()=>f.swr.mutate()}):u("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[e.filter(g=>g.hidden!==!0).map(g=>{const _=p===g.key,v=t.filters[g.key]??{select:g.select,value:void 0},b=h.filters[g.key];b&&gp(v,b);const w=$=>{const{newActiveKey:C,newValue:E}=vp({property:g,activeKey:p,value:$??b,properties:e,appliedFilters:t.filters});return l(C),n(g.key,E)},y=$=>l($?g.key:void 0),x=m(g.key);return u(qt,{Fallback:Ze,children:u(pp,{unfilteredQuery:f,active:_,property:g,onActiveChange:y,value:v,useQuery:x,onValueChange:w,theme:i,widgetId:s})},g.key)}),u("button",{type:"button",class:je({variant:"neutral"}),onClick:r,children:d("reset")}),a?u("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:u("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[u("div",{class:"block h-6 w-6"}),u("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:a.params.config.label})]})}):null]})};function _p(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xn=_p,yp=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,bp=yp,wp=bp,xp=typeof self=="object"&&self&&self.Object===Object&&self,$p=wp||xp||Function("return this")(),Qn=$p,Ep=Qn,Cp=function(){return Ep.Date.now()},Sp=Cp,Op=/\s/;function Tp(e){for(var t=e.length;t--&&Op.test(e.charAt(t)););return t}var kp=Tp,Ap=kp,Pp=/^\s+/;function Rp(e){return e&&e.slice(0,Ap(e)+1).replace(Pp,"")}var Dp=Rp,Np=Qn,Lp=Np.Symbol,Mo=Lp,Gi=Mo,lc=Object.prototype,Mp=lc.hasOwnProperty,Ip=lc.toString,Ht=Gi?Gi.toStringTag:void 0;function jp(e){var t=Mp.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var o=Ip.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),o}var Fp=jp,Vp=Object.prototype,Hp=Vp.toString;function Wp(e){return Hp.call(e)}var Up=Wp,Yi=Mo,zp=Fp,Bp=Up,qp="[object Null]",Kp="[object Undefined]",Zi=Yi?Yi.toStringTag:void 0;function Gp(e){return e==null?e===void 0?Kp:qp:Zi&&Zi in Object(e)?zp(e):Bp(e)}var uc=Gp;function Yp(e){return e!=null&&typeof e=="object"}var Zp=Yp,Jp=uc,Xp=Zp,Qp="[object Symbol]";function eh(e){return typeof e=="symbol"||Xp(e)&&Jp(e)==Qp}var er=eh,th=Dp,Ji=Xn,nh=er,Xi=0/0,rh=/^[-+]0x[0-9a-f]+$/i,oh=/^0b[01]+$/i,ih=/^0o[0-7]+$/i,ah=parseInt;function sh(e){if(typeof e=="number")return e;if(nh(e))return Xi;if(Ji(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ji(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=th(e);var n=oh.test(e);return n||ih.test(e)?ah(e.slice(2),n?2:8):rh.test(e)?Xi:+e}var ch=sh,lh=Xn,Ar=Sp,Qi=ch,uh="Expected a function",dh=Math.max,fh=Math.min;function ph(e,t,n){var r,o,i,a,s,c,d=0,p=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(uh);t=Qi(t)||0,lh(n)&&(p=!!n.leading,l="maxWait"in n,i=l?dh(Qi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f($){var C=r,E=o;return r=o=void 0,d=$,a=e.apply(E,C),a}function m($){return d=$,s=setTimeout(v,t),p?f($):a}function g($){var C=$-c,E=$-d,O=t-C;return l?fh(O,i-E):O}function _($){var C=$-c,E=$-d;return c===void 0||C>=t||C<0||l&&E>=i}function v(){var $=Ar();if(_($))return b($);s=setTimeout(v,g($))}function b($){return s=void 0,h&&r?f($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),d=0,r=c=o=s=void 0}function y(){return s===void 0?a:b(Ar())}function x(){var $=Ar(),C=_($);if(r=arguments,o=this,c=$,C){if(s===void 0)return m(c);if(l)return clearTimeout(s),s=setTimeout(v,t),f(c)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=w,x.flush=y,x}var hh=ph;const gh=$o(hh),no="|",dc=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;switch(r.select){case"one":{r.defaultValue=o;break}case"many":o.includes(no)?r.defaultValue=o.split(no):r.defaultValue=o}}}),n},fc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},pc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},vh=({searchParams:e})=>({properties:t})=>({filters:Wn(dc(t,e),"defaultValue"),mode:fc(e),geo:hc(e),page:An(e.get("page"))??1,view:pc(e),query:e.get("query")??""}),mh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=zn({filters:e.filters,query:"",mode:e.mode??"query",page:e.page??1,view:e.view??"list"});for(const[i,a]of Object.entries(o))if(i!=="geolocation"){if(a==null){t.delete(i);continue}Array.isArray(a)?a.length===0?t.delete(i):t.set(i,a.join(no)):typeof a=="string"&&t.set(i,a)}}"geo"in e&&(((n=e.geo)==null?void 0:n.type)==="provided"?(e.geo.coords?(t.set("lat",e.geo.coords.lat.toString()),t.set("lng",e.geo.coords.lng.toString())):(t.delete("lat"),t.delete("lng")),t.set("radius",e.geo.radius.toString())):((r=e.geo)==null||r.type,t.delete("lat"),t.delete("lng"),t.delete("radius"))),"query"in e&&(e.query?t.set("query",e.query):t.delete("query")),"page"in e&&(e.page&&e.page>1?t.set("page",e.page.toString()):t.delete("page")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},An=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},hc=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=An(t),i=An(n),a=An(r)??Hn(ro);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?Hn(ro):a}},gc=(e,t=1e3)=>{const[n,r]=k(e),o=X(()=>gh(i=>r(i),t),[t]);return R(()=>{o(e)},[e,o]),n},_h=Y(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:c,inputProps:d,menuProps:p,query:l},h)=>{const[f,m]=k(!1),[g,_]=k(),{t:v}=ne(),b=A();R(()=>{var y;_((y=o[0])==null?void 0:y.id)},[o]);const w=y=>{i(y),m(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:h,disabled:e,"data-active":f?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:cn({size:"md"}),onFocus:()=>{c==null||c(),m(!0)},onBlur:()=>{b.current=window.setTimeout(()=>{s==null||s(),m(!1)},100)},value:l,onChange:y=>a(y.currentTarget.value),onKeyDown:y=>{switch(m(!0),y.key){case"ArrowDown":case"ArrowUp":{const x=y.key==="ArrowDown"?1:-1;y.preventDefault();const $=o.findIndex(E=>E.id===g);if($===-1)return;const C=o[$+x]??o[y.key==="ArrowDown"?0:o.length-1];if(!C)return;_(C.id);break}case"Enter":{if(y.preventDefault(),!g)return;i(g)}}},...d}),!t&&f&&!e&&o.length>0?u("ul",{className:ic({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${n}-menu`,onMouseDown:()=>{b.current&&clearTimeout(b.current)},...p,children:t?u("div",{role:"alert",children:v("geo_suggestions_error")}):o.map(y=>u("li",{class:ac({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>_(y.id),class:sc({active:y.id===g,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]})}),yh=(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})}),bh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},ea=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,wh=({onLocate:e,onError:t,signal:n})=>{const[r,o]=k("idle"),[i,a]=k(null),{t:s}=ne(),c=d=>{o("idle"),a(d),e(d)};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(ea){if(o("loading"),i)return c(i);yh({signal:n}).then(d=>{const p={lat:d.latitude,lng:d.longitude};c(p)}).catch(d=>{if(d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const p=bh[d.code];if(!p)return;const l=s(p);t(l)})}},"data-state":r,class:je({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!ea||r==="error",children:u(Q,{name:"target-location"})})},$t=ve({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}}),xh="https://api.mapbox.com/search/geocode/v6/forward",$h="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Eh=e=>atob(e).split("").reverse().join(""),Ch=le({features:tn(pe(le({properties:le({mapbox_id:K(),place_formatted:Ye(K()),name_preferred:Ye(K(),"Untitled location"),coordinates:pe(le({latitude:be(),longitude:be()}),fe(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),fe(e=>e.properties)))}),Sh=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Oh=async e=>{if(!e)return[];const t=new URL(xh);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Eh($h));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=po(Ch,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Sh(o,i=>i.name_preferred+i.place_formatted)},Th=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=ne(),[a,s]=k(""),[c,d]=k(),p=gc(a,500),[l,h]=k(new AbortController),f=Yt(p,Oh,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:m,queryState:g,error:_}=nn(f),[v,b]=k("view"),w=A(null);return R(()=>{if(v==="edit"){if(!w.current)return;w.current.focus()}},[v]),u("div",{class:"relative flex-1",children:[v==="view"&&n?u("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:cn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{b("edit")},children:u("div",{class:$t({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??i("location_provided")})}):u(_h,{ref:w,error:_,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{l.abort(),h(new AbortController)},onBlur:()=>{b("view"),s("")},onItemSelect:y=>{if(g!=="loaded")return;const x=m.find($=>$.mapbox_id===y);x&&(e(x.coordinates),b("view"),d(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(m==null?void 0:m.map(y=>({id:y.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:y.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:y.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(wh,{onLocate:y=>{b("view"),d(i("geo_my_location")),t({type:"provided",coords:y,radius:r})},onError:o,signal:l.signal}):u("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),d(void 0),t({radius:r,type:"provided"}),b("edit"),w.current&&(w.current.value="",w.current.focus())},class:je({variant:"neutral",size:"lg",icon:"only"}),children:u(Q,{name:"x"})})})]})},kh=[.25,.5,1,3,5,10,15,20,30,40],ro=20,Hn=e=>e*1609.34,Ah=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Ph=pe(le({type:ct("provided"),lat:Ye(pe(K(),fe(Number))),lng:Ye(pe(K(),fe(Number))),radius:pe(K(),fe(Number))}),fe(e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0}))),Rh=({value:e,onValueChange:t,logger:n})=>{const{t:r}=ne(),o=qn(),i=(e==null?void 0:e.type)==="provided"?e.radius:Hn(ro),[a,s]=k();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),p=po(Ph,Object.fromEntries(d.entries()));if(!p.success){n.error(p.issues),s(p.issues[0].message);return}t(p.output)},class:"flex flex-col gap-2 md:flex-row",children:[u("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?u(M,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(Th,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:i,onValueChange:t,onSelect:c=>{s(void 0),t({type:"provided",radius:i,coords:c})},onError:s}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:o,children:r("geo_range_label")}),u("select",{id:o,name:"radius",class:cn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:i,onChange:c=>{s(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(c.currentTarget.value)})},children:kh.map(c=>u("option",{value:Hn(c),class:"truncate",children:Ah.format(c)},c))}),u("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:u(Q,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(Q,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},Dh=2,Nh=({value:e,onValueChange:t})=>{const[n,r]=k(e??""),o=n!==""&&n===e,{t:i}=ne();return R(()=>{r(e??"")},[e]),R(()=>{let a=n.trim();if(a.length<=Dh&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),u("div",{class:"flex flex-col gap-3",children:u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(Q,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:St({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:cn({hasValue:o,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:i("type_to_search_jobs"),value:n,onChange:a=>{r(a.currentTarget.value)}}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:u(Q,{name:"x"})})]})})},Lh=({intervalMs:e,strings:t,class:n})=>{const[r,o]=k(0),[i,a]=k(!0),s=[...t,t[0]];return R(()=>{r===s.length&&(a(!1),o(0));const c=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(c)},[r,s.length,e]),u("div",{className:St("relative h-full w-full overflow-hidden",n),children:u("div",{className:St("absolute w-full",{"transition-transform duration-500 ease-in-out":i}),style:{height:`${100*s.length}%`,transform:`translateY(-${r*(100/s.length)}%)`},children:s.map((c,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:c},d))})})},Mh=(e,t)=>{R(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},ta=3,Ih=({value:e,onValueChange:t,options:n})=>{const[r,o]=k(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=ne(),c=i.split("");R(()=>{o(e??"")},[e]);const[d,p]=k(0),l=A(null);return Mh(l,h=>{h.target instanceof HTMLInputElement&&p(h.target.scrollLeft)}),R(()=>{let h=r.trim();if(h.length<=ta&&(h=null),h===null){t("");return}const f=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(f)},[r,t]),u("div",{class:"mb-2 flex flex-col gap-2",children:[u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(Q,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:St("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:l,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:cn({hasValue:a,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:r,onChange:h=>{const f=h.currentTarget.value.trim();o(f)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=ta)return;h.preventDefault(),t(r)}}}),u("div",{"data-synced":a,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:i.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-d}px)`},children:c.map((h,f)=>u("span",{style:{animationDelay:`${f*300/c.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+f))}):n!=null&&n.suggestions?u(Lh,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o(""),t("")},children:u(Q,{name:"x"})})]}),u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var jh=Array.isArray,Io=jh,Fh=Io,Vh=er,Hh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wh=/^\w*$/;function Uh(e,t){if(Fh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vh(e)?!0:Wh.test(e)||!Hh.test(e)||t!=null&&e in Object(t)}var zh=Uh,Bh=uc,qh=Xn,Kh="[object AsyncFunction]",Gh="[object Function]",Yh="[object GeneratorFunction]",Zh="[object Proxy]";function Jh(e){if(!qh(e))return!1;var t=Bh(e);return t==Gh||t==Yh||t==Kh||t==Zh}var Xh=Jh,Qh=Qn,eg=Qh["__core-js_shared__"],tg=eg,Pr=tg,na=function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ng(e){return!!na&&na in e}var rg=ng,og=Function.prototype,ig=og.toString;function ag(e){if(e!=null){try{return ig.call(e)}catch{}try{return e+""}catch{}}return""}var sg=ag,cg=Xh,lg=rg,ug=Xn,dg=sg,fg=/[\\^$.*+?()[\]{}|]/g,pg=/^\[object .+?Constructor\]$/,hg=Function.prototype,gg=Object.prototype,vg=hg.toString,mg=gg.hasOwnProperty,_g=RegExp("^"+vg.call(mg).replace(fg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yg(e){if(!ug(e)||lg(e))return!1;var t=cg(e)?_g:pg;return t.test(dg(e))}var bg=yg;function wg(e,t){return e==null?void 0:e[t]}var xg=wg,$g=bg,Eg=xg;function Cg(e,t){var n=Eg(e,t);return $g(n)?n:void 0}var vc=Cg,Sg=vc,Og=Sg(Object,"create"),tr=Og,ra=tr;function Tg(){this.__data__=ra?ra(null):{},this.size=0}var kg=Tg;function Ag(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pg=Ag,Rg=tr,Dg="__lodash_hash_undefined__",Ng=Object.prototype,Lg=Ng.hasOwnProperty;function Mg(e){var t=this.__data__;if(Rg){var n=t[e];return n===Dg?void 0:n}return Lg.call(t,e)?t[e]:void 0}var Ig=Mg,jg=tr,Fg=Object.prototype,Vg=Fg.hasOwnProperty;function Hg(e){var t=this.__data__;return jg?t[e]!==void 0:Vg.call(t,e)}var Wg=Hg,Ug=tr,zg="__lodash_hash_undefined__";function Bg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ug&&t===void 0?zg:t,this}var qg=Bg,Kg=kg,Gg=Pg,Yg=Ig,Zg=Wg,Jg=qg;function Lt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=Kg;Lt.prototype.delete=Gg;Lt.prototype.get=Yg;Lt.prototype.has=Zg;Lt.prototype.set=Jg;var Xg=Lt;function Qg(){this.__data__=[],this.size=0}var ev=Qg;function tv(e,t){return e===t||e!==e&&t!==t}var nv=tv,rv=nv;function ov(e,t){for(var n=e.length;n--;)if(rv(e[n][0],t))return n;return-1}var nr=ov,iv=nr,av=Array.prototype,sv=av.splice;function cv(e){var t=this.__data__,n=iv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sv.call(t,n,1),--this.size,!0}var lv=cv,uv=nr;function dv(e){var t=this.__data__,n=uv(t,e);return n<0?void 0:t[n][1]}var fv=dv,pv=nr;function hv(e){return pv(this.__data__,e)>-1}var gv=hv,vv=nr;function mv(e,t){var n=this.__data__,r=vv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _v=mv,yv=ev,bv=lv,wv=fv,xv=gv,$v=_v;function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mt.prototype.clear=yv;Mt.prototype.delete=bv;Mt.prototype.get=wv;Mt.prototype.has=xv;Mt.prototype.set=$v;var Ev=Mt,Cv=vc,Sv=Qn,Ov=Cv(Sv,"Map"),Tv=Ov,oa=Xg,kv=Ev,Av=Tv;function Pv(){this.size=0,this.__data__={hash:new oa,map:new(Av||kv),string:new oa}}var Rv=Pv;function Dv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Nv=Dv,Lv=Nv;function Mv(e,t){var n=e.__data__;return Lv(t)?n[typeof t=="string"?"string":"hash"]:n.map}var rr=Mv,Iv=rr;function jv(e){var t=Iv(this,e).delete(e);return this.size-=t?1:0,t}var Fv=jv,Vv=rr;function Hv(e){return Vv(this,e).get(e)}var Wv=Hv,Uv=rr;function zv(e){return Uv(this,e).has(e)}var Bv=zv,qv=rr;function Kv(e,t){var n=qv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Gv=Kv,Yv=Rv,Zv=Fv,Jv=Wv,Xv=Bv,Qv=Gv;function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}It.prototype.clear=Yv;It.prototype.delete=Zv;It.prototype.get=Jv;It.prototype.has=Xv;It.prototype.set=Qv;var em=It,mc=em,tm="Expected a function";function jo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tm);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(jo.Cache||mc),n}jo.Cache=mc;var nm=jo,rm=nm,om=500;function im(e){var t=rm(e,function(r){return n.size===om&&n.clear(),r}),n=t.cache;return t}var am=im,sm=am,cm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lm=/\\(\\)?/g,um=sm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cm,function(n,r,o,i){t.push(o?i.replace(lm,"$1"):r||n)}),t}),dm=um;function fm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var pm=fm,ia=Mo,hm=pm,gm=Io,vm=er,mm=1/0,aa=ia?ia.prototype:void 0,sa=aa?aa.toString:void 0;function _c(e){if(typeof e=="string")return e;if(gm(e))return hm(e,_c)+"";if(vm(e))return sa?sa.call(e):"";var t=e+"";return t=="0"&&1/e==-mm?"-0":t}var _m=_c,ym=_m;function bm(e){return e==null?"":ym(e)}var wm=bm,xm=Io,$m=zh,Em=dm,Cm=wm;function Sm(e,t){return xm(e)?e:$m(e,t)?[e]:Em(Cm(e))}var Om=Sm,Tm=er,km=1/0;function Am(e){if(typeof e=="string"||Tm(e))return e;var t=e+"";return t=="0"&&1/e==-km?"-0":t}var Pm=Am,Rm=Om,Dm=Pm;function Nm(e,t){t=Rm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Dm(t[n++])];return n&&n==r?e:void 0}var Lm=Nm,Mm=Lm;function Im(e,t,n){var r=e==null?void 0:Mm(e,t);return r===void 0?n:r}var jm=Im;const Fm=$o(jm),zt=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),yc=ve({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),Vm=ve({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Rr=({job:e,property:t})=>{if(!t)return null;const n=Fm(e.raw,t.key);return t.transform?t.transform(n):n},Hm=({job:e,config:t="hidden"})=>t==="hidden"?null:u("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:t.replace(":","/")},children:e.company.logo?u("img",{src:e.company.logo,alt:e.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),ca=e=>Array.isArray(e)?e:[e],Wm=1e3*60*60*24,bc=({job:e,config:t,onJobClick:n,size:r})=>{var f,m,g;const{t:o}=ne(),i=t.subheading?Rr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(_=>ca(Rr({job:e,property:_}))).filter(Boolean),s=ca((f=t.overrides)!=null&&f.salary?Rr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",d=(m=t.overrides)!=null&&m.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,p=t.newUnderDays??7,l=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-p*Wm:!1,h=_=>{var v,b;n==null||n(e),(b=(v=t.overrides)==null?void 0:v.onClick)==null||b.call(v,_)};return u("a",{onMouseEnter:(g=t.overrides)==null?void 0:g.onMouseEnter,onClick:h,href:d,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:yc(),children:[u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(Hm,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:"flex flex-col items-start gap-1",children:[u("div",{class:"order-2 flex flex-col gap-1",children:[e.match?u("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[u(Q,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:Vm({size:r}),children:[e.title.trim(),l&&c!=="hide"&&u(M,{children:[" ",u("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:o("new")})]})]}),i?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:i}):null]}),c==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[o("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:s.map((_,v)=>u("span",{class:$t({variant:"monetaryWeak",size:"xs"}),children:_},v))}),a.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(_=>u("li",{class:$t({size:"xs",class:"max-w-full truncate"}),children:_},_))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(Q,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Fo=({config:e,animationDelay:t,seed:n})=>{const r=e.logo??"hidden",o=e.postedDate??"show";return u("div",{"aria-hidden":!0,style:{animationDelay:t+"s"},class:yc({interactive:!1}),children:[u("div",{class:"flex flex-1 flex-col gap-4",children:[u("div",{class:"flex items-center gap-4",children:[r==="hidden"?null:u("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:r.replace(":","/")}}),u("div",{class:"flex flex-col items-start gap-1",children:[o==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info",children:u(zt,{chars:12})}):null,u("div",{class:"flex flex-col gap-1",children:[u("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:u(zt,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(zt,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Um=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=ne(),i=Math.min(lt,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:lt}).map((a,s)=>u("li",{children:u(Fo,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:je({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:t,children:[o("load_more_count",{count:i})," ",o("of_remaining_count",{count:r})]})},zm=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c,prioritySegment:d,i18n:p})=>u(M,{children:Array.from({length:e.page}).map((l,h)=>{const f=h===e.page-1;return u(qt,{Fallback:Ze,children:u(Bm,{state:e,rpcClient:t,page:h+1,isFirst:h===0,isLast:f,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:c,prioritySegment:d,i18n:p},h)},h)})}),la=({page:e})=>{const{t}=ne();return u("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},Bm=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:c,onJobClick:d,afterResults:p,prioritySegment:l,i18n:h})=>{const{t:f}=ne(),m=n===1?s:void 0,{data:g,error:_,queryState:v,swr:b}=nn(Yt(Gr({state:e,baseKey:n.toString()}),()=>La({rpcClient:t,state:e,page:n,t:f,prioritySegment:l,locale:h?h.locale:void 0,fallbackLocale:h?h.fallbackLocale:void 0}),{...Nn,fallbackData:m}));switch(R(()=>{g&&r&&c&&c({totalCount:g.pagination.total})},[g,r,c]),v){case"idle":return null;case"loading":return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:u(zt,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:lt}).map((w,y)=>u("li",{children:u(Fo,{seed:y,animationDelay:(y-lt)*.1,config:a})},y))})]});case"error":return u(Ze,{error:new Error(f("jobs_loading_error"),{cause:_}),resetError:()=>b.mutate()});case"revalidating":case"loaded":{if(fa(g.pagination.current_page===n,"Received wrong page from server"),g.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(Q,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:f("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:f("no_jobs_found_description")})]})]});const w=g.pagination.last_page!==g.pagination.current_page,y=n*lt,x=Math.max(g.pagination.total-y,0),$=C=>{d(C,n)};return u(M,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:f("jobs_found",{count:g.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(la,{page:n}),u("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:g.results.map(C=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:v==="revalidating"?.33:1},children:u(bc,{job:C,onJobClick:$,config:a})},C.id))}),w&&o&&u(Um,{state:v,fetchNextPage:i,config:a,remainingItems:x})]})}default:yt(v)}},qm=wo(()=>Promise.resolve().then(()=>require("./map-c1421fd4.cjs")).then(e=>e.Map)),Km=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:c})=>{var _,v;const{t:d}=ne(),[p,l]=k(new AbortController),h=gs("(max-width: 767px)"),f=H(b=>{r(b),p.abort(),l(new AbortController)},[r,p]),m=nn(Yt(["map",e],()=>Gc({rpcClient:t,state:e,t:d,signal:p.signal,prioritySegment:s,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn));if(m.queryState==="error")return u(Ze,{error:new Error(d("jobs_loading_error"),{cause:m.error}),resetError:()=>m.swr.mutate()});const g=m.queryState==="loaded"||m.queryState==="revalidating";return u(M,{children:[u("div",{class:"flex items-center gap-2",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:g?m.data.results.length!==0&&d("map_jobs_showing",{count:m.data.results.length}):u("div",{class:"animate-skeleton",children:u(zt,{chars:8})})}),u("div",{class:"flex flex-1 justify-end",children:o})]}),u("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[u("div",{class:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:g?u(bt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(qm,{config:n,mapData:m,autoFit:((_=e.geo)==null?void 0:_.type)!=="bounds",onBoundsChange:f})}):u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),u("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((v=m.data)==null?void 0:v.results.length)===0?u("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[u(Q,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:d("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:d("no_jobs_found_description")})]})]}):null,g?m.data.results.map(b=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:m.queryState==="revalidating"?.33:1},children:u(bc,{job:b,onJobClick:w=>i(w,1),config:a,size:h?"sm":void 0})},b.id)):Array.from({length:6}).map((b,w)=>u("li",{children:u(Fo,{seed:w,animationDelay:(w-6)*.1,config:a})},w))]})]})]})},ua=ve({base:"flex items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),Gm=({value:e,onValueChange:t})=>{const{t:n}=ne();return u("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[u("button",{type:"button","aria-pressed":e==="list",class:ua({active:e==="list"}),onClick:()=>t("list"),children:[u(Q,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:ua({active:e==="map"}),onClick:()=>t("map"),children:[u(Q,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},Ym=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(Gm,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(zm,{afterResults:n,...e}):u(Km,{...e,afterResults:n})},Wn=(e,t="value")=>e.reduce((n,r)=>{switch(r.select){case"one":{const o=r.value??r[t],i=typeof o=="string"?o:o==null?void 0:o[0];n[r.key]={select:r.select,value:i};break}case"many":{const o=r.value??r[t],i=typeof o=="string"?[o]:Array.isArray(o)?o:[];n[r.key]={select:r.select,value:i};break}default:yt(r.select)}return n},{}),Pn=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=n==null?void 0:n.value;return[t,Array.isArray(r)?r:r?[r]:[]]}).filter(([,t])=>t!==void 0&&t.length>0)),da=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Zm=({rpcClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var E,O,P,L,D,F;const{t:s}=ne(),c=A(null),d=X(()=>Wn(n,"defaultValue"),[n]),[p,l]=k(!0),[h,f]=k(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[m,g]=k(0),{onJobClick:_,analyticsPaginate:v}=Jm({appRef:c,analytics:r,state:h,hasInteracted:!p,totalCount:m,defaultFilters:d}),b=H(T=>{f(N=>{if(N.page===T)return N;const I={...N,page:T};return i==null||i(I),I}),v(T)},[v,i]),w=H(T=>{f(N=>{const I={...N,view:T};return i==null||i(I),I})},[i]),y=H(T=>{f(N=>{var W;if(!N.query&&!T||N.query===T)return N;l(!1);const I=da(N.geo),j={...N,query:T,geo:I,page:1,mode:(W=a.naturalLanguageSearch)!=null&&W.enabled?"vector":"query"};return i==null||i(j),j})},[i,(E=a.naturalLanguageSearch)==null?void 0:E.enabled]),x=H(T=>{l(!1),f(N=>{const I={...N,geo:T};return i==null||i(I),I})},[i]),$=H(()=>{f(T=>{const N={...T,filters:Wn(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(N),N})},[i,n]),C=X(()=>(e.environment,new Map),[e.environment]);return u(Xl,{value:{provider:()=>C},children:u("div",{ref:c,class:St("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(O=a.theme.accessibility)==null?void 0:O.reducedMotion},Kr(a.theme)),children:[u(qt,{Fallback:Ze,children:u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"px-4",children:u("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("search_label")}),(P=a.naturalLanguageSearch)!=null&&P.enabled?u(Ih,{value:h.query,onValueChange:y,options:a.naturalLanguageSearch}):a.enableKeywordSearch?u(Nh,{value:h.query,onValueChange:y}):null]}),(L=a.geolocation)!=null&&L.enabled?u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("geo_label")}),u(Rh,{value:h.geo,onValueChange:T=>{l(!1),f(N=>{const I={...N,geo:T,page:1};return i==null||i(I),I}),v(1)},logger:t})]}):null]})}),u(mp,{state:h,onFilterValueChange:(T,N)=>{l(!1),f(I=>{const j={...I.filters,[T]:N},W=da(I.geo),Z={...I,filters:j,geo:W,page:1};return i==null||i(Z),Z}),v(1)},onResetFilters:$,properties:n,rpcClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId,i18n:a.i18n})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(qt,{Fallback:Ze,children:u(Ym,{state:h,rpcClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:p?o==null?void 0:o.jobs:void 0,onResultsUpdate:T=>{g(T.totalCount)},onJobClick:_,onPaginate:b,mode:(D=a.naturalLanguageSearch)!=null&&D.enabled?"vector":"query",onGeoChange:x,onViewChange:w,prioritySegment:(F=a.results)==null?void 0:F.prioritySegment,i18n:a.i18n})}),a.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("feedback")}),u("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:u("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},Jm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=H((d=1)=>({query:n.query,mode:n.mode,filters:Pn(n.filters),default_filters:Pn(r),total_count:o,page_size:lt,page:d}),[n.query,n.mode,n.filters,r,o]);return Ql(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),R(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Pn(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(d)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(d,p)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(p)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.A=A;exports.D=Ct;exports.E=co;exports.ErrorBoundary=qt;exports.IconSpritesheet=sl;exports.JOB_SEARCH_WIDGET_ID=Fc;exports.JobSearch=Zm;exports.TranslationProvider=tl;exports.UnstyledErrorView=il;exports._=S;exports.commonjsGlobal=Wt;exports.createTFunction=nl;exports.d=k;exports.defaultTerms=rl;exports.filtersToPayload=Pn;exports.generateColorThemeCss=cu;exports.getDefaultExportFromCjs=$o;exports.getGeolocationFromSearchParams=hc;exports.getJobSearchResults=La;exports.getModeFromSearchParams=fc;exports.getStatefulPropertiesFromSearchParams=dc;exports.getViewFromSearchParams=pc;exports.getWidgetStateFromSearchParams=vh;exports.invariant=fa;exports.k=M;exports.setWidgetStateToSearchParams=mh;exports.u=u;exports.useDebouncedValue=gc;exports.useTranslation=ne;exports.y=R;
|
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-b4e9d978.cjs");require("@inploi/sdk");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.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-job-search.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"vite-plugin-dts": "^3.9.1",
|
|
68
68
|
"vite-tsconfig-paths": "^4.3.2",
|
|
69
69
|
"@inploi/core": "1.16.1",
|
|
70
|
-
"@inploi/i18n": "0.1.4",
|
|
71
70
|
"@inploi/design-tokens": "0.2.1",
|
|
71
|
+
"@inploi/i18n": "0.1.5",
|
|
72
72
|
"eslint-config-custom": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"msw": {
|