@inploi/plugin-job-search 3.0.4 → 3.0.5
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 +74 -74
- package/cdn/style.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{map-e44a5532.js → map-17e3b445.js} +1 -1
- package/dist/{map-b2dedf80.cjs → map-50bfc50f.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-232f3bc5.cjs +60 -0
- package/dist/{utils-e86a67ef.js → utils-5efb427d.js} +2462 -2441
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +5 -5
- package/dist/utils-adc1e6cc.cjs +0 -60
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";var dc=Object.defineProperty;var fc=(e,t,n)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ro=(e,t,n)=>(fc(e,typeof t!="symbol"?t+"":t,n),n);const $t=require("@inploi/sdk");var mt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function ra(e,t){if(!e)throw new Error(t)}function pc(e,t){return e in t}var No={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},hc=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 No?No[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")},vc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),gc=({from:e=new Date,to:t,formatter:n=vc,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")},Xt;exports.l=void 0;var oa,ot,Mo,ia,kr,aa,_t={},sa=[],mc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Hn=Array.isArray;function Me(e,t){for(var n in t)e[n]=t[n];return e}function ca(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Xt.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 Wt(e,a,r,o,null)}function Wt(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++oa};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function la(){return{current:null}}function N(e){return e.children}function de(e,t){this.props=e,this.context=t}function Tn(e,t){if(t==null)return e.__?Tn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Tn(e):null}function ua(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 ua(e)}}function Pr(e){(!e.__d&&(e.__d=!0)&&ot.push(e)&&!kn.__r++||Mo!==exports.l.debounceRendering)&&((Mo=exports.l.debounceRendering)||ia)(kn)}function kn(){var e,t,n,r,o,i,a,s,c;for(ot.sort(kr);e=ot.shift();)e.__d&&(t=ot.length,r=void 0,o=void 0,i=void 0,s=(a=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(i=Me({},a)).__v=a.__v+1,to(c,a,i,n.__n,c.ownerSVGElement!==void 0,a.__h!=null?[s]:null,r,s??Tn(a),a.__h,o),ha(r,a,o),a.__e!=s&&ua(a)),ot.length>t&&ot.sort(kr));kn.__r=0}function da(e,t,n,r,o,i,a,s,c,d,f){var l,h,p,g,v,y,m,w,b,_,x=0,$=r&&r.__k||sa,E=$.length,C=E,S=t.length;for(n.__k=[],l=0;l<S;l++)(g=n.__k[l]=(g=t[l])==null||typeof g=="boolean"||typeof g=="function"?null:typeof g=="string"||typeof g=="number"||typeof g=="bigint"?Wt(null,g,null,null,g):Hn(g)?Wt(N,{children:g},null,null,null):g.__b>0?Wt(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null&&(g.__=n,g.__b=n.__b+1,(w=_c(g,$,m=l+x,C))===-1?p=_t:(p=$[w]||_t,$[w]=void 0,C--),to(e,g,p,o,i,a,s,c,d,f),v=g.__e,(h=g.ref)&&p.ref!=h&&(p.ref&&no(p.ref,null,g),f.push(h,g.__c||v,g)),v!=null&&(y==null&&(y=v),_=!(b=p===_t||p.__v===null)&&w===m,b?w==-1&&x--:w!==m&&(w===m+1?(x++,_=!0):w>m?C>S-m?(x+=w-m,_=!0):x--:x=w<m&&w==m-1?w-m:0),m=l+x,_=_||w==l&&!b,typeof g.type!="function"||w===m&&p.__k!==g.__k?typeof g.type=="function"||_?g.__d!==void 0?(c=g.__d,g.__d=void 0):c=v.nextSibling:c=pa(e,v,c):c=fa(g,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=y,l=E;l--;)$[l]!=null&&(typeof n.type=="function"&&$[l].__e!=null&&$[l].__e==n.__d&&(n.__d=$[l].__e.nextSibling),va($[l],$[l]))}function fa(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?fa(r,t,n):pa(n,r.__e,t));return t}function Le(e,t){return t=t||[],e==null||typeof e=="boolean"||(Hn(e)?e.some(function(n){Le(n,t)}):t.push(e)),t}function pa(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function _c(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c!=null?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&o==c.key&&i===c.type)return a;a--}if(s<t.length){if((c=t[s])&&o==c.key&&i===c.type)return s;s++}}return-1}function yc(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||Pn(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||Pn(e,i,t[i],n[i],r)}function Lo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||mc.test(t)?n:n+"px"}function Pn(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||Lo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Lo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Fo:Io,i):e.removeEventListener(t,i?Fo:Io,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Io(e){return this.l[e.type+!1](exports.l.event?exports.l.event(e):e)}function Fo(e){return this.l[e.type+!0](exports.l.event?exports.l.event(e):e)}function to(e,t,n,r,o,i,a,s,c,d){var f,l,h,p,g,v,y,m,w,b,_,x,$,E,C,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(f=exports.l.__b)&&f(t);try{e:if(typeof S=="function"){if(m=t.props,w=(f=S.contextType)&&r[f.__c],b=f?w?w.props.value:f.__:r,n.__c?y=(l=t.__c=n.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(m,b):(t.__c=l=new de(m,b),l.constructor=S,l.render=wc),w&&w.sub(l),l.props=m,l.state||(l.state={}),l.context=b,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),S.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Me({},l.__s)),Me(l.__s,S.getDerivedStateFromProps(m,l.__s))),p=l.props,g=l.state,l.__v=t,h)S.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(S.getDerivedStateFromProps==null&&m!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,b),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,b)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(P){P&&(P.__=t)}),_=0;_<l._sb.length;_++)l.__h.push(l._sb[_]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,b),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,g,v)})}if(l.context=b,l.props=m,l.__P=e,l.__e=!1,x=exports.l.__r,$=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,x&&x(t),f=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,x&&x(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++$<25);l.state=l.__s,l.getChildContext!=null&&(r=Me(Me({},r),l.getChildContext())),h||l.getSnapshotBeforeUpdate==null||(v=l.getSnapshotBeforeUpdate(p,g)),da(e,Hn(C=f!=null&&f.type===N&&f.key==null?f.props.children:f)?C:[C],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),y&&(l.__E=l.__=null)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=bc(n.__e,t,n,r,o,i,a,c,d);(f=exports.l.diffed)&&f(t)}catch(P){t.__v=null,(c||i!=null)&&(t.__e=s,t.__h=!!c,i[i.indexOf(s)]=null),exports.l.__e(P,t,n)}}function ha(e,t,n){for(var r=0;r<n.length;r++)no(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 bc(e,t,n,r,o,i,a,s,c){var d,f,l,h=n.props,p=t.props,g=t.type,v=0;if(g==="svg"&&(o=!0),i!=null){for(;v<i.length;v++)if((d=i[v])&&"setAttribute"in d==!!g&&(g?d.localName===g:d.nodeType===3)){e=d,i[v]=null;break}}if(e==null){if(g===null)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),i=null,s=!1}if(g===null)h===p||s&&e.data===p||(e.data=p);else{if(i=i&&Xt.call(e.childNodes),f=(h=n.props||_t).dangerouslySetInnerHTML,l=p.dangerouslySetInnerHTML,!s){if(i!=null)for(h={},v=0;v<e.attributes.length;v++)h[e.attributes[v].name]=e.attributes[v].value;(l||f)&&(l&&(f&&l.__html==f.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(yc(e,p,h,o,s),l)t.__k=[];else if(da(e,Hn(v=t.props.children)?v:[v],t,n,r,o&&g!=="foreignObject",i,a,i?i[0]:n.__k&&Tn(n,0),s,c),i!=null)for(v=i.length;v--;)i[v]!=null&&ca(i[v]);s||("value"in p&&(v=p.value)!==void 0&&(v!==e.value||g==="progress"&&!v||g==="option"&&v!==h.value)&&Pn(e,"value",v,h.value,!1),"checked"in p&&(v=p.checked)!==void 0&&v!==e.checked&&Pn(e,"checked",v,h.checked,!1))}return e}function no(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){exports.l.__e(r,n)}}function va(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||no(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){exports.l.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&va(r[o],t,n||typeof e.type!="function");n||e.__e==null||ca(e.__e),e.__=e.__e=e.__d=void 0}function wc(e,t,n){return this.constructor(e,n)}function Ct(e,t,n){var r,o,i,a;exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],to(t,e=(!r&&n||t).__k=O(N,null,[e]),o||_t,_t,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Xt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),ha(i,e,a)}function ro(e,t){Ct(e,t,ro)}function xc(e,t,n){var r,o,i,a,s=Me({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?Xt.call(arguments,2):n),Wt(e.type,s,r||e.key,o||e.ref,null)}function at(e,t){var n={__c:t="__cC"+aa++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,Pr(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Xt=sa.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}},oa=0,de.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Me({},this.state),typeof e=="function"&&(e=e(Me({},n),this.props)),e&&Me(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Pr(this))},de.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Pr(this))},de.prototype.render=N,ot=[],ia=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kr=function(e,t){return e.__v.__b-t.__v.__b},kn.__r=0,aa=0;var Re;function ga(e){return{lang:(e==null?void 0:e.lang)??(Re==null?void 0:Re.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Re==null?void 0:Re.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Re==null?void 0:Re.abortPipeEarly)}}var or;function $c(e){return or==null?void 0:or.get(e)}var ir;function Cc(e){return ir==null?void 0:ir.get(e)}var ar;function Ec(e,t){var n;return(n=ar==null?void 0:ar.get(e))==null?void 0:n.get(t)}function ma(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 be(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)??ma(i),c={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??Ec(e.reference,c.lang)??(d?Cc(c.lang):null)??r.message??$c(c.lang);f!==void 0&&(c.message=typeof f=="function"?f(c):f),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function le(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},ga())}}}function Sc(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Oc(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function ge(e){return{kind:"transformation",type:"transform",reference:ge,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function _a(e){return{kind:"validation",type:"url",reference:_a,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)&&be(this,"URL",t,n),t}}}function Ac(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function oo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Dr(){return{kind:"schema",type:"any",reference:Dr,expects:"any",async:!1,get"~standard"(){return le(this)},"~run"(e){return e.typed=!0,e}}}function Qt(e,t){return{kind:"schema",type:"array",reference:Qt,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return le(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let a=0;a<o.length;a++){const s=o[a],c=this.item["~run"]({value:s},r);if(c.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const f of c.issues)f.path?f.path.unshift(d):f.path=[d],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else be(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 le(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:be(this,"type",t,n),t}}}function Ce(e,t){return{kind:"schema",type:"literal",reference:Ce,expects:ma(e),async:!1,literal:e,message:t,get"~standard"(){return le(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:be(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 le(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=oo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function me(e){return{kind:"schema",type:"number",reference:me,expects:"number",async:!1,message:e,get"~standard"(){return le(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:be(this,"type",t,n),t}}}function se(e,t){return{kind:"schema",type:"object",reference:se,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return le(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]:oo(s),d=s["~run"]({value:c},r);if(d.issues){const f={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(f):l.path=[f],(i=n.issues)==null||i.push(l);if(n.issues||(n.issues=d.issues),r.abortEarly){n.typed=!1;break}}d.typed||(n.typed=!1),n.value[a]=d.value}else if(s.fallback!==void 0)n.value[a]=Ac(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(be(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 be(this,"type",n,r);return n}}}function st(e,t){return{kind:"schema",type:"optional",reference:st,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return le(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=oo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function io(e,t,n){return{kind:"schema",type:"record",reference:io,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return le(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(Sc(i,c)){const d=i[c],f=this.key["~run"]({value:c},o);if(f.issues){const h={type:"object",origin:"key",input:i,key:c,value:d};for(const p of f.issues)p.path=[h],(a=r.issues)==null||a.push(p);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const l=this.value["~run"]({value:d},o);if(l.issues){const h={type:"object",origin:"value",input:i,key:c,value:d};for(const p of l.issues)p.path?p.path.unshift(h):p.path=[h],(s=r.issues)==null||s.push(p);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!l.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=l.value)}}else be(this,"type",r,o);return r}}}function B(e){return{kind:"schema",type:"string",reference:B,expects:"string",async:!1,message:e,get"~standard"(){return le(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:be(this,"type",t,n),t}}}function jo(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Rr(e,t){return{kind:"schema",type:"union",reference:Rr,expects:Oc(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return le(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];be(this,"type",n,r,{issues:jo(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];be(this,"type",n,r,{issues:jo(a)})}return n}}}function ya(){return{kind:"schema",type:"unknown",reference:ya,expects:"unknown",async:!1,get"~standard"(){return le(this)},"~run"(e){return e.typed=!0,e}}}function _e(...e){return{...e[0],pipe:e,get"~standard"(){return le(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 ao(e,t,n){const r=e["~run"]({value:t},ga(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Tc="inploi-job-search",it=10,Vo=_e(ya(),ge(String),B()),kc=io(B(),Qt(se({label:Vo,value:Vo,jobs:me()}))),Pc=_e(B(),_a()),Dc=se({total:me(),current_page:me(),per_page:me(),last_page:me()}),cn=st(oe(B()),null),Rc=se({id:me(),company_name:B(),company_logo:cn,employment_type:B(),location_type:Rr([Ce("LOCATION"),Ce("REMOTE"),Ce("HYBRID")]),pay_type:oe(Rr([Ce("ANNUALLY"),Ce("HOURLY"),Ce("MONTHLY"),Ce("WEEKLY"),Ce("DAILY")])),pay_currency:B(),pay_mask:Dn(),pay_display:Dn(),pay:oe(B()),pay_min:oe(B()),pay_max:oe(B()),description:B(),title:B(),contract_type:oe(B()),created_at:oe(B()),custom_data:oe(io(Dr(),Dr())),href:B(),industry:oe(B()),category:oe(B()),skills:cn,town:cn,city:oe(B()),country:oe(B()),vector_distance:cn,coordinates:st(oe(se({lat:me(),lng:me()})))}),ba=e=>_e(Rc,ge(t=>{const n=ao(Pc,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},employmentType:t.employment_type,locationType:t.location_type,pay:hc({salary:t,config:{locales:void 0},t:e})??null,description:t.description,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?gc({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:t,match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}})),Nc=$t.endpoint({method:"GET",pathname:"/search/filters",schema:{response:kc,searchParams:$t.typed()}}),Mc=e=>_e(se({data:Qt(ba(e)),pagination:Dc}),ge(t=>({pagination:t.pagination,results:t.data}))),Lc=e=>!e||Array.isArray(e)&&e.length===0?null:e,Wn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=Lc(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},Ho=async({rpcClient:e,state:t,signal:n})=>await e.request(Nc,{searchParams:{filters:Wn(t),query:t.query},signal:n}),wa=async({rpcClient:e,signal:t,state:n,page:r=1,t:o})=>{const i=$t.endpoint({method:"GET",pathname:"/search/results",schema:{response:Mc(o),searchParams:$t.typed()}});return await e.request(i,{searchParams:{filters:Wn(n),query:n.query,page:r,per_page:it},signal:t})},Ic=e=>_e(se({data:Qt(ba(e)),pagination:se({has_more:Dn()})}),ge(t=>({results:t.data,pagination:t.pagination}))),Fc=async({rpcClient:e,signal:t,state:n,t:r})=>{const o=$t.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Ic(r),searchParams:$t.typed()}});return await e.request(o,{searchParams:{filters:Wn(n),query:n.query,mode:n.mode},signal:t})},en=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")},Rn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var jc=0;function u(e,t,n,r,o,i){var a,s,c={};for(s in 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,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jc,__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 xa(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=xa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xa(e))&&(r&&(r+=" "),r+=t);return r}var Vc=["other","few","many","two","one","zero"],Wo=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(c,d)=>{var f;return((f=a==null?void 0:a[d])==null?void 0:f.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let c=r.select(a.count);if(!(c in s)){const d=Vc.find(f=>f in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,f)=>{var l;return((l=a==null?void 0:a[f])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Ie,z,sr,Uo,St=0,$a=[],yn=[],zo=exports.l.__b,Bo=exports.l.__r,qo=exports.l.diffed,Ko=exports.l.__c,Go=exports.l.unmount;function ut(e,t){exports.l.__h&&exports.l.__h(z,e,St||t),St=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:yn}),n.__[e]}function T(e){return St=1,Un(Ea,e)}function Un(e,t,n){var r=ut(Ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ea(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=z,!z.u)){var o=function(s,c,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,s,c,d);var l=!1;return f.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(l=!0)}}),!(!l&&r.__c.props===s)&&(!i||i.call(this,s,c,d))};z.u=!0;var i=z.shouldComponentUpdate,a=z.componentWillUpdate;z.componentWillUpdate=function(s,c,d){if(this.__e){var f=i;i=void 0,o(s,c,d),i=f}a&&a.call(this,s,c,d)},z.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=ut(Ie++,3);!exports.l.__s&&lo(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function We(e,t){var n=ut(Ie++,4);!exports.l.__s&&lo(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function k(e){return St=5,Z(function(){return{current:e}},[])}function Ca(e,t,n){St=6,We(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Z(e,t){var n=ut(Ie++,7);return lo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function V(e,t){return St=8,Z(function(){return e},t)}function dt(e){var t=z.context[e.__c],n=ut(Ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(z)),t.props.value):e.__}function so(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function Hc(e){var t=ut(Ie++,10),n=T();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function co(){var e=ut(Ie++,11);if(!e.__){for(var t=z.__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 Wc(){for(var e;e=$a.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(bn),e.__H.__h.forEach(Nr),e.__H.__h=[]}catch(t){e.__H.__h=[],exports.l.__e(t,e.__v)}}exports.l.__b=function(e){z=null,zo&&zo(e)},exports.l.__r=function(e){Bo&&Bo(e),Ie=0;var t=(z=e.__c).__H;t&&(sr===z?(t.__h=[],z.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=yn,n.__N=n.i=void 0})):(t.__h.forEach(bn),t.__h.forEach(Nr),t.__h=[],Ie=0)),sr=z},exports.l.diffed=function(e){qo&&qo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($a.push(t)!==1&&Uo===exports.l.requestAnimationFrame||((Uo=exports.l.requestAnimationFrame)||Uc)(Wc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==yn&&(n.__=n.__V),n.i=void 0,n.__V=yn})),sr=z=null},exports.l.__c=function(e,t){t.some(function(n){try{n.__h.forEach(bn),n.__h=n.__h.filter(function(r){return!r.__||Nr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],exports.l.__e(r,n.__v)}}),Ko&&Ko(e,t)},exports.l.unmount=function(e){Go&&Go(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{bn(r)}catch(o){t=o}}),n.__H=void 0,t&&exports.l.__e(t,n.__v))};var Yo=typeof requestAnimationFrame=="function";function Uc(e){var t,n=function(){clearTimeout(r),Yo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Yo&&(t=requestAnimationFrame(n))}function bn(e){var t=z,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),z=t}function Nr(e){var t=z;e.__c=e.__(),z=t}function lo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ea(e,t){return typeof t=="function"?t(e):t}var Zo=at(null),zc=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=Z(()=>Wo({locale:r,terms:e,overrides:t}),[t,r]);return u(Zo.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=dt(Zo);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Wo({terms:e,overrides:t,locale:n})});const{TranslationProvider:Bc,useTranslation:te,createTFunction:qc}=zc({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",feedback:"How was your search experience?",list:"List",map:"Map",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset"});function Sa(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=Sa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function cr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Sa(e))&&(r&&(r+=" "),r+=t);return r}const Jo=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Kc=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"](cr(i)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(cr(i)):cr(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const c=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(i.map(d=>d(c)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:c}=o,d=Object.keys(s).map(h=>{const p=i==null?void 0:i[h],g=c==null?void 0:c[h],v=Jo(p)||Jo(g);return s[h][v]}),f={...c,...i&&Object.entries(i).reduce((h,p)=>{let[g,v]=p;return typeof v>"u"?h:{...h,[g]:v}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,p)=>{let{class:g,className:v,...y}=p;return Object.entries(y).every(m=>{let[w,b]=m;const _=f[w];return Array.isArray(b)?b.includes(_):_===b})?[...h,g,v]:h},[]);return t(o==null?void 0:o.base,d,l,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:Vm,cva:fe,cx:Hm}=Kc(),Fe=fe({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"}}),Gc=({error:e,resetError:t})=>{const{t:n}=te();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")})]})},Ge=({error:e,resetError:t,class:n,...r})=>{const{t:o}=te();return u("div",{class:Et("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:Fe({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class zt extends de{constructor(){super(...arguments);Ro(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 Yc={briefcase:u(N,{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(N,{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(N,{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(N,{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(N,{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(N,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(N,{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(N,{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(N,{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(N,{children:u(N,{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(N,{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(N,{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(N,{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(N,{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(N,{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"})]})},Zc=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(Yc).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)})})}),X=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function Oa(e,t){for(var n in t)e[n]=t[n];return e}function Mr(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 lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Nn(e){this.props=e}function Aa(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:Mr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,O(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nn.prototype=new de).isPureReactComponent=!0,Nn.prototype.shouldComponentUpdate=function(e,t){return Mr(this.props,e)||Mr(this.state,t)};var Xo=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xo&&Xo(e)};var Jc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function G(e){function t(n){var r=Oa({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Jc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Qo=function(e,t){return e==null?null:Le(Le(e).map(t))},Oe={map:Qo,forEach:Qo,count:function(e){return e?Le(e).length:0},only:function(e){var t=Le(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Le},Xc=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)}Xc(e,t,n,r)};var ei=exports.l.unmount;function Ta(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=Oa({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ta(r,t,n)})),e}function ka(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ka(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function yt(){this.__u=0,this.t=null,this.__b=null}function Pa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function uo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return O(n,i)}return o.displayName="Lazy",o.__f=!0,o}function gt(){this.u=null,this.o=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ei&&ei(e)},(yt.prototype=new de).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Pa(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 d=r.state.__a;r.__v.__k[0]=ka(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=t.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},yt.prototype.componentWillUnmount=function(){this.t=[]},yt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ta(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O(N,null,e.fallback);return o&&(o.__h=null),[O(N,null,t.__a?null:e.children),o]};var ti=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Qc(e){return this.getChildContext=function(){return e.context},e.children}function el(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ct(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ct(O(Qc,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Da(e,t){var n=O(el,{__v:e,i:t});return n.containerInfo=t,n}(gt.prototype=new de).__a=function(e){var t=this,n=Pa(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ti(t,e,r)):o()};n?n(i):i()}},gt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Le(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},gt.prototype.componentDidUpdate=gt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ti(e,n,t)})};var Ra=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,tl=/^(?: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]/,nl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rl=/[A-Z0-9]/g,ol=typeof document<"u",il=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Na(e,t,n){return t.__k==null&&(t.textContent=""),Ct(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ma(e,t,n){return ro(e,t),typeof n=="function"&&n(),e?e.__c:null}de.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(de.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ni=exports.l.event;function al(){}function sl(){return this.cancelBubble}function cl(){return this.defaultPrevented}exports.l.event=function(e){return ni&&(e=ni(e)),e.persist=al,e.isPropagationStopped=sl,e.isDefaultPrevented=cl,e.nativeEvent=e};var fo,ll={enumerable:!1,configurable:!0,get:function(){return this.class}},ri=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||ol&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||il(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":nl.test(i)?i=s:r.indexOf("-")===-1&&tl.test(i)?i=i.replace(rl,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Le(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Le(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ll)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ra,ri&&ri(e)};var oi=exports.l.__r;exports.l.__r=function(e){oi&&oi(e),fo=e.__c};var ii=exports.l.diffed;exports.l.diffed=function(e){ii&&ii(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),fo=null};var La={ReactCurrentDispatcher:{current:{readContext:function(e){return fo.__n[e.__c].props.value}}}},ul="17.0.2";function Ia(e){return O.bind(null,e)}function ct(e){return!!e&&e.$$typeof===Ra}function Tt(e){return ct(e)?xc.apply(null,arguments):e}function Fa(e){return!!e.__k&&(Ct(null,e),!0)}function ja(e){return e&&(e.base||e.nodeType===1&&e)||null}var Va=function(e,t){return e(t)},tn=function(e,t){return e(t)},Ha=N;function po(e){e()}function Wa(e){return e}function Ua(){return[!1,po]}var za=We;function Ba(e,t){var n=t(),r=T({h:{__:n,v:t}}),o=r[0].h,i=r[1];return We(function(){o.__=n,o.v=t,lr(o.__,t())||i({h:o})},[e,n,t]),R(function(){return lr(o.__,o.v())||i({h:o}),e(function(){lr(o.__,o.v())||i({h:o})})},[e]),n}var nn={useState:T,useId:co,useReducer:Un,useEffect:R,useLayoutEffect:We,useInsertionEffect:za,useTransition:Ua,useDeferredValue:Wa,useSyncExternalStore:Ba,startTransition:po,useRef:k,useImperativeHandle:Ca,useMemo:Z,useCallback:V,useContext:dt,useDebugValue:so,version:"17.0.2",Children:Oe,render:Na,hydrate:Ma,unmountComponentAtNode:Fa,createPortal:Da,createElement:O,createContext:at,createFactory:Ia,cloneElement:Tt,createRef:la,Fragment:N,isValidElement:ct,findDOMNode:ja,Component:de,PureComponent:Nn,memo:Aa,forwardRef:G,flushSync:tn,unstable_batchedUpdates:Va,StrictMode:Ha,Suspense:yt,SuspenseList:gt,lazy:uo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:La};const qa=Object.freeze(Object.defineProperty({__proto__:null,Children:Oe,Component:de,Fragment:N,PureComponent:Nn,StrictMode:Ha,Suspense:yt,SuspenseList:gt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:La,cloneElement:Tt,createContext:at,createElement:O,createFactory:Ia,createPortal:Da,createRef:la,default:nn,findDOMNode:ja,flushSync:tn,forwardRef:G,hydrate:Ma,isValidElement:ct,lazy:uo,memo:Aa,render:Na,startTransition:po,unmountComponentAtNode:Fa,unstable_batchedUpdates:Va,useCallback:V,useContext:dt,useDebugValue:so,useDeferredValue:Wa,useEffect:R,useErrorBoundary:Hc,useId:co,useImperativeHandle:Ca,useInsertionEffect:za,useLayoutEffect:We,useMemo:Z,useReducer:Un,useRef:k,useState:T,useSyncExternalStore:Ba,useTransition:Ua,version:ul},Symbol.toStringTag,{value:"Module"}));var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dl(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 Lr={exports:{}},ur={};const Ka=dl(qa);/**
|
|
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 ai;function fl(){if(ai)return ur;ai=1;var e=Ka;function t(l,h){return l===h&&(l!==0||1/l===1/h)||l!==l&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(l,h){var p=h(),g=r({inst:{value:p,getSnapshot:h}}),v=g[0].inst,y=g[1];return i(function(){v.value=p,v.getSnapshot=h,c(v)&&y({inst:v})},[l,p,h]),o(function(){return c(v)&&y({inst:v}),l(function(){c(v)&&y({inst:v})})},[l]),a(p),p}function c(l){var h=l.getSnapshot;l=l.value;try{var p=h();return!n(l,p)}catch{return!0}}function d(l,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return ur.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ur}var dr={};/**
|
|
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 si;function pl(){return si||(si=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=Ka,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(b){{for(var _=arguments.length,x=new Array(_>1?_-1:0),$=1;$<_;$++)x[$-1]=arguments[$];r("error",b,x)}}function r(b,_,x){{var $=t.ReactDebugCurrentFrame,E=$.getStackAddendum();E!==""&&(_+="%s",x=x.concat([E]));var C=x.map(function(S){return String(S)});C.unshift("Warning: "+_),Function.prototype.apply.call(console[b],console,C)}}function o(b,_){return b===_&&(b!==0||1/b===1/_)||b!==b&&_!==_}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,f=!1,l=!1;function h(b,_,x){f||e.startTransition!==void 0&&(f=!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 $=_();if(!l){var E=_();i($,E)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var C=a({inst:{value:$,getSnapshot:_}}),S=C[0].inst,P=C[1];return c(function(){S.value=$,S.getSnapshot=_,p(S)&&P({inst:S})},[b,$,_]),s(function(){p(S)&&P({inst:S});var I=function(){p(S)&&P({inst:S})};return b(I)},[b]),d($),$}function p(b){var _=b.getSnapshot,x=b.value;try{var $=_();return!i(x,$)}catch{return!0}}function g(b,_,x){return _()}var v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!v,m=y?g:h,w=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m;dr.useSyncExternalStore=w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),dr}process.env.NODE_ENV==="production"?Lr.exports=fl():Lr.exports=pl();var hl=Lr.exports;const Ke=()=>{},re=Ke(),wn=Object,F=e=>e===re,ve=e=>typeof e=="function",je=(e,t)=>({...e,...t}),vl=e=>ve(e.then),ln=new WeakMap;let gl=0;const Bt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(wn(e)===e&&!r&&n!=RegExp){if(o=ln.get(e),o)return o;if(o=++gl+"~",ln.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Bt(e[i])+",";ln.set(e,o)}if(n==wn){o="#";const a=wn.keys(e).sort();for(;!F(i=a.pop());)F(e[i])||(o+=i+":"+Bt(e[i])+",");ln.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Ne=new WeakMap,fr={},un={},vo="undefined",zn=typeof window!=vo,Ir=typeof document!=vo,ml=()=>zn&&typeof window.requestAnimationFrame!=vo,Ga=(e,t)=>{const n=Ne.get(e);return[()=>!F(t)&&e.get(t)||fr,r=>{if(!F(t)){const o=e.get(t);t in un||(un[t]=o),n[5](t,je(o,r),o||fr)}},n[6],()=>!F(t)&&t in un?un[t]:!F(t)&&e.get(t)||fr]};let Fr=!0;const _l=()=>Fr,[jr,Vr]=zn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],yl=()=>{const e=Ir&&document.visibilityState;return F(e)||e!=="hidden"},bl=e=>(Ir&&document.addEventListener("visibilitychange",e),jr("focus",e),()=>{Ir&&document.removeEventListener("visibilitychange",e),Vr("focus",e)}),wl=e=>{const t=()=>{Fr=!0,e()},n=()=>{Fr=!1};return jr("online",t),jr("offline",n),()=>{Vr("online",t),Vr("offline",n)}},xl={isOnline:_l,isVisible:yl},$l={initFocus:bl,initReconnect:wl},ci=!nn.useId,qt=!zn||"Deno"in window,Cl=e=>ml()?window.requestAnimationFrame(e):setTimeout(e,1),xn=qt?R:We,pr=typeof navigator<"u"&&navigator.connection,li=!qt&&pr&&(["slow-2g","2g"].includes(pr.effectiveType)||pr.saveData),go=e=>{if(ve(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Bt(e):"",[e,t]};let El=0;const Hr=()=>++El,Ya=0,Za=1,Ja=2,Sl=3;var jt={__proto__:null,ERROR_REVALIDATE_EVENT:Sl,FOCUS_EVENT:Ya,MUTATE_EVENT:Ja,RECONNECT_EVENT:Za};async function Xa(...e){const[t,n,r,o]=e,i=je({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,f=i.throwOnError;if(ve(n)){const h=n,p=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&p.push(v);return Promise.all(p.map(l))}return l(n);async function l(h){const[p]=go(h);if(!p)return;const[g,v]=Ga(t,p),[y,m,w,b]=Ne.get(t),_=()=>{const D=y[p];return(ve(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete w[p],delete b[p],D&&D[0])?D[0](Ja).then(()=>g().data):g().data};if(e.length<3)return _();let x=r,$;const E=Hr();m[p]=[E,0];const C=!F(c),S=g(),P=S.data,I=S._c,j=F(I)?P:I;if(C&&(c=ve(c)?c(j,P):c,v({data:c,_c:j})),ve(x))try{x=x(j)}catch(D){$=D}if(x&&vl(x))if(x=await x.catch(D=>{$=D}),E!==m[p][0]){if($)throw $;return x}else $&&C&&d($)&&(a=!0,v({data:j,_c:re}));if(a&&!$)if(ve(a)){const D=a(x,j);v({data:D,error:re,_c:re})}else v({data:x,error:re,_c:re});if(m[p][1]=Hr(),Promise.resolve(_()).then(()=>{v({_c:re})}),$){if(f)throw $;return}return x}}const ui=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Qa=(e,t)=>{if(!Ne.has(e)){const n=je($l,t),r={},o=Xa.bind(re,e);let i=Ke;const a={},s=(f,l)=>{const h=a[f]||[];return a[f]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(f,l,h)=>{e.set(f,l);const p=a[f];if(p)for(const g of p)g(l,h)},d=()=>{if(!Ne.has(e)&&(Ne.set(e,[r,{},{},{},o,c,s]),!qt)){const f=n.initFocus(setTimeout.bind(re,ui.bind(re,r,Ya))),l=n.initReconnect(setTimeout.bind(re,ui.bind(re,r,Za)));i=()=>{f&&f(),l&&l(),Ne.delete(e)}}};return d(),[e,o,d,i]}return[e,Ne.get(e)[4]]},Ol=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!F(i)&&a>i||setTimeout(r,s,o)},Al=(e,t)=>Bt(e)==Bt(t),[mo,Tl]=Qa(new Map),es=je({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:Ol,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:li?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:li?5e3:3e3,compare:Al,isPaused:()=>!1,cache:mo,mutate:Tl,fallback:{}},xl),ts=(e,t)=>{const n=je(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=je(o,a))}return n},Wr=at({}),kl=e=>{const{value:t}=e,n=dt(Wr),r=ve(t),o=Z(()=>r?t(n):t,[r,n,t]),i=Z(()=>r?o:ts(n,o),[r,n,o]),a=o&&o.provider,s=k(re);a&&!s.current&&(s.current=Qa(a(i.cache||mo),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),xn(()=>{if(c)return c[2]&&c[2](),c[3]},[]),O(Wr.Provider,je(e,{value:i}))},Pl="$inf$",ns=zn&&window.__SWR_DEVTOOLS_USE__,Dl=ns?window.__SWR_DEVTOOLS_USE__:[],Rl=()=>{ns&&(window.__SWR_DEVTOOLS_REACT__=nn)},Nl=e=>ve(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ml=()=>je(es,dt(Wr)),Ll=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=go(t),[,,,s]=Ne.get(mo);if(a.startsWith(Pl))return n(...i);const c=s[a];return F(c)?n(...i):(delete s[a],c)}),r),Il=Dl.concat(Ll),Fl=e=>function(...n){const r=Ml(),[o,i,a]=Nl(n),s=ts(r,a);let c=e;const{use:d}=s,f=(d||[]).concat(Il);for(let l=f.length;l--;)c=f[l](c);return c(o,i||s.fetcher||null,s)},jl=(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())}};Rl();const di=nn.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)}),hr={dedupe:!0},Vl=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:l,keepPreviousData:h}=n,[p,g,v,y]=Ne.get(r),[m,w]=go(e),b=k(!1),_=k(!1),x=k(m),$=k(t),E=k(n),C=()=>E.current,S=()=>C().isVisible()&&C().isOnline(),[P,I,j,D]=Ga(r,m),A=k({}).current,M=F(a)?n.fallback[m]:a,Y=(H,W)=>{for(const ee in A){const U=ee;if(U==="data"){if(!o(H[U],W[U])&&(!F(H[U])||!o(ke,W[U])))return!1}else if(W[U]!==H[U])return!1}return!0},L=Z(()=>{const H=(()=>!m||!t?!1:F(s)?C().isPaused()||i?!1:F(c)?!0:c:s)(),W=ne=>{const he=je(ne);return delete he._k,H?{isValidating:!0,isLoading:!0,...he}:he},ee=P(),U=D(),ie=W(ee),Be=ee===U?ie:W(U);let Q=ie;return[()=>{const ne=W(P());return Y(ne,Q)?(Q.data=ne.data,Q.isLoading=ne.isLoading,Q.isValidating=ne.isValidating,Q.error=ne.error,Q):(Q=ne,ne)},()=>Be]},[r,m]),q=hl.useSyncExternalStore(V(H=>j(m,(W,ee)=>{Y(ee,W)||H()}),[r,m]),L[0],L[1]),J=!b.current,It=p[m]&&p[m].length>0,pe=q.data,ze=F(pe)?M:pe,tt=q.error,an=k(ze),ke=h?F(pe)?an.current:pe:ze,Pe=(()=>It&&!F(tt)?!1:J&&!F(s)?s:C().isPaused()?!1:i?F(ze)?!1:c:F(ze)||c)(),Ft=!!(m&&t&&J&&Pe),tr=F(q.isValidating)?Ft:q.isValidating,ft=F(q.isLoading)?Ft:q.isLoading,nt=V(async H=>{const W=$.current;if(!m||!W||_.current||C().isPaused())return!1;let ee,U,ie=!0;const Be=H||{},Q=!v[m]||!Be.dedupe,ne=()=>ci?!_.current&&m===x.current&&b.current:m===x.current,he={isValidating:!1,isLoading:!1},rt=()=>{I(he)},Po=()=>{const ue=v[m];ue&&ue[1]===U&&delete v[m]},Do={isValidating:!0};F(P().data)&&(Do.isLoading=!0);try{if(Q&&(I(Do),n.loadingTimeout&&F(P().data)&&setTimeout(()=>{ie&&ne()&&C().onLoadingSlow(m,n)},n.loadingTimeout),v[m]=[W(w),Hr()]),[ee,U]=v[m],ee=await ee,Q&&setTimeout(Po,n.dedupingInterval),!v[m]||v[m][1]!==U)return Q&&ne()&&C().onDiscarded(m),!1;he.error=re;const ue=g[m];if(!F(ue)&&(U<=ue[0]||U<=ue[1]||ue[1]===0))return rt(),Q&&ne()&&C().onDiscarded(m),!1;const De=P().data;he.data=o(De,ee)?De:ee,Q&&ne()&&C().onSuccess(ee,m,n)}catch(ue){Po();const De=C(),{shouldRetryOnError:nr}=De;De.isPaused()||(he.error=ue,Q&&ne()&&(De.onError(ue,m,De),(nr===!0||ve(nr)&&nr(ue))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||S())&&De.onErrorRetry(ue,m,De,uc=>{const rr=p[m];rr&&rr[0]&&rr[0](jt.ERROR_REVALIDATE_EVENT,uc)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return ie=!1,rt(),!0},[m,r]),sn=V((...H)=>Xa(r,x.current,...H),[]);if(xn(()=>{$.current=t,E.current=n,F(pe)||(an.current=pe)}),xn(()=>{if(!m)return;const H=nt.bind(re,hr);let W=0;const U=jl(m,p,(ie,Be={})=>{if(ie==jt.FOCUS_EVENT){const Q=Date.now();C().revalidateOnFocus&&Q>W&&S()&&(W=Q+C().focusThrottleInterval,H())}else if(ie==jt.RECONNECT_EVENT)C().revalidateOnReconnect&&S()&&H();else{if(ie==jt.MUTATE_EVENT)return nt();if(ie==jt.ERROR_REVALIDATE_EVENT)return nt(Be)}});return _.current=!1,x.current=m,b.current=!0,I({_k:w}),Pe&&(F(ze)||qt?H():Cl(H)),()=>{_.current=!0,U()}},[m]),xn(()=>{let H;function W(){const U=ve(d)?d(P().data):d;U&&H!==-1&&(H=setTimeout(ee,U))}function ee(){!P().error&&(f||C().isVisible())&&(l||C().isOnline())?nt(hr).then(W):W()}return W(),()=>{H&&(clearTimeout(H),H=-1)}},[d,f,l,m]),so(ke),i&&F(ze)&&m){if(!ci&&qt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,E.current=n,_.current=!1;const H=y[m];if(!F(H)){const W=sn(H);di(W)}if(F(tt)){const W=nt(hr);F(ke)||(W.status="fulfilled",W.value=!0),di(W)}else throw tt}return{mutate:sn,get data(){return A.data=!0,ke},get error(){return A.error=!0,tt},get isValidating(){return A.isValidating=!0,tr},get isLoading(){return A.isLoading=!0,ft}}},Hl=wn.defineProperty(kl,"defaultValue",{value:es}),Kt=Fl(Vl),rs=e=>{const[t,n]=T(!1);return R(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},Wl=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=T(!1);R(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(c=>c.forEach(d=>{clearTimeout(a),d.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var Ul=["1","2","3","4","5","6","7","8","9","10","11","12"],zl={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},Bl=(e,t=1,n)=>r=>{const[o,i]=zl[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},vr=e=>{const t=Bl(e.hue,e.chroma,e.mode);return Object.fromEntries(Ul.map(n=>[e.prefix+n,e.transform(t(n))]))},gr=e=>e,ql=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)},dn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Ur=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(dn(e)&&dn(n))for(const r in n){const o=n[r];if(dn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];dn(i)&&Ur(i,o)}else Object.assign(e,{[r]:n[r]})}return Ur(e,...t)},Kl=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Gl=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),c=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:c}}),f=ql(Ur(s,c,d)),l=([h,p],g)=>{const v=[g,h].filter(Boolean).join(".");return typeof p=="object"?Object.entries(p).flatMap(y=>l(y,v)):[[r.getToken("declaration",v),p]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const $e=e=>{const t=[],n=r=>({with:(o,i)=>(t.push({pattern:o,fn:i}),n(r)),otherwise:o=>{e:for(const{fn:i,pattern:a}of t){for(const s in a)if(a[s]!==r[s])continue e;return i(r)}if(o)return o(r);throw new Error("No pattern matched")}});return n(e)},[mr,_r,fn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],Yl=Gl().core(({theme:e})=>{var t,n,r,o;return{color:{black:mr,white:_r,lowest:e.mode==="light"?_r:mr,highest:e.mode==="light"?mr:_r,...vr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:gr}),...vr({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:gr}),...vr({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:gr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,f,l,h,p,g,v,y,m,w,b,_,x,$,E,C,S,P,I;const r=(j,D)=>n.core.color[j].replace(")",` / ${D})`),{typography:o,highlights:i}=t,a=((s=t.accessibility)==null?void 0:s.highContrast)??!1;return{font:o.fontFamily??"inherit","font-style":o.style??"inherit","font-filter":((c=o.filter)==null?void 0:c.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((f=o.tag)==null?void 0:f.fontFamily)??o.fontFamily??"inherit","weight-default":((l=o.weight)==null?void 0:l.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((g=(p=o.filter)==null?void 0:p.weight)==null?void 0:g.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((y=o.tag)==null?void 0:y.style)??o.style??"inherit","style-job-heading":((m=o.jobHeading)==null?void 0:m.style)??o.style??"inherit","weight-tag":((b=(w=o.tag)==null?void 0:w.weight)==null?void 0:b.toString())??((_=o.weight)==null?void 0:_.toString())??"inherit","weight-job-heading":(($=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:$.toString())??((E=o.weight)==null?void 0:E.toString())??"inherit","style-input":((C=o.input)==null?void 0:C.style)??o.style??"inherit","weight-input":((P=(S=o.input)==null?void 0:S.weight)==null?void 0:P.toString())??((I=o.weight)==null?void 0:I.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"):fn,"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":fn,"radius-app":$e(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":$e(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":$e(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":$e(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":$e(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":$e(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":$e(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":$e(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"?fn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?fn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":$e(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":$e(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),Zl=Kl({prefix:"i-"}),Jl=e=>{const t=Yl.from({theme:e.theme,getToken:Zl}),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
|
+
}`},zr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const Br=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 K(){return K=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},K.apply(this,arguments)}function ye(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 Xl(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function os(...e){return t=>e.forEach(n=>Xl(n,t))}function Te(...e){return V(os(...e),e)}function _o(e,t=[]){let n=[];function r(i,a){const s=at(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:p,...g}=l,v=(h==null?void 0:h[e][c])||s,y=Z(()=>g,Object.values(g));return O(v.Provider,{value:y},p)}function f(l,h){const p=(h==null?void 0:h[e][c])||s,g=dt(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=n.map(a=>at(a));return function(s){const c=(s==null?void 0:s[e])||i;return Z(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,Ql(o,...t)]}function Ql(...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 Z(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Ot=globalThis!=null&&globalThis.document?We:()=>{},eu=qa["useId".toString()]||(()=>{});let tu=0;function $n(e){const[t,n]=T(eu());return Ot(()=>{e||n(r=>r??String(tu++))},[e]),e||(t?`radix-${t}`:"")}function Ye(e){const t=k(e);return R(()=>{t.current=e}),Z(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function is({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=nu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Ye(n),c=V(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 nu({defaultProp:e,onChange:t}){const n=T(e),[r]=n,o=k(r),i=Ye(t);return R(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Bn=G((e,t)=>{const{children:n,...r}=e,o=Oe.toArray(n),i=o.find(ou);if(i){const a=i.props.children,s=o.map(c=>c===i?Oe.count(a)>1?Oe.only(null):ct(a)?a.props.children:null:c);return O(qr,K({},r,{ref:t}),ct(a)?Tt(a,void 0,s):null)}return O(qr,K({},r,{ref:t}),n)});Bn.displayName="Slot";const qr=G((e,t)=>{const{children:n,...r}=e;return ct(n)?Tt(n,{...iu(r,n.props),ref:t?os(t,n.ref):n.ref}):Oe.count(n)>1?Oe.only(null):null});qr.displayName="SlotClone";const ru=({children:e})=>O(N,null,e);function ou(e){return ct(e)&&e.type===ru}function iu(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 au=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qe=au.reduce((e,t)=>{const n=G((r,o)=>{const{asChild:i,...a}=r,s=i?Bn:t;return R(()=>{window[Symbol.for("radix-ui")]=!0},[]),O(s,K({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function su(e,t){e&&tn(()=>e.dispatchEvent(t))}function cu(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e);R(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Kr="dismissableLayer.update",lu="dismissableLayer.pointerDownOutside",uu="dismissableLayer.focusOutside";let fi;const du=at({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),as=G((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,f=dt(du),[l,h]=T(null),p=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=T({}),v=Te(t,C=>h(C)),y=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(m),b=l?y.indexOf(l):-1,_=f.layersWithOutsidePointerEventsDisabled.size>0,x=b>=w,$=fu(C=>{const S=C.target,P=[...f.branches].some(I=>I.contains(S));!x||P||(i==null||i(C),s==null||s(C),C.defaultPrevented||c==null||c())},p),E=pu(C=>{const S=C.target;[...f.branches].some(I=>I.contains(S))||(a==null||a(C),s==null||s(C),C.defaultPrevented||c==null||c())},p);return cu(C=>{b===f.layers.size-1&&(o==null||o(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},p),R(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(fi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),pi(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=fi)}},[l,p,r,f]),R(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),pi())},[l,f]),R(()=>{const C=()=>g({});return document.addEventListener(Kr,C),()=>document.removeEventListener(Kr,C)},[]),O(Qe.div,K({},d,{ref:v,style:{pointerEvents:_?x?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,$.onPointerDownCapture)}))});function fu(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e),r=k(!1),o=k(()=>{});return R(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){ss(lu,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 pu(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e),r=k(!1);return R(()=>{const o=i=>{i.target&&!r.current&&ss(uu,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 pi(){const e=new CustomEvent(Kr);document.dispatchEvent(e)}function ss(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?su(o,i):o.dispatchEvent(i)}const yr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",hi={bubbles:!1,cancelable:!0},cs=G((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=T(null),d=Ye(o),f=Ye(i),l=k(null),h=Te(t,v=>c(v)),p=k({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R(()=>{if(r){let v=function(b){if(p.paused||!s)return;const _=b.target;s.contains(_)?l.current=_:qe(l.current,{select:!0})},y=function(b){if(p.paused||!s)return;const _=b.relatedTarget;_!==null&&(s.contains(_)||qe(l.current,{select:!0}))},m=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&qe(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const w=new MutationObserver(m);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),w.disconnect()}}},[r,s,p.paused]),R(()=>{if(s){gi.add(p);const v=document.activeElement;if(!s.contains(v)){const m=new CustomEvent(yr,hi);s.addEventListener(yr,d),s.dispatchEvent(m),m.defaultPrevented||(hu(yu(ls(s)),{select:!0}),document.activeElement===v&&qe(s))}return()=>{s.removeEventListener(yr,d),setTimeout(()=>{const m=new CustomEvent(br,hi);s.addEventListener(br,f),s.dispatchEvent(m),m.defaultPrevented||qe(v??document.body,{select:!0}),s.removeEventListener(br,f),gi.remove(p)},0)}}},[s,d,f,p]);const g=V(v=>{if(!n&&!r||p.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[b,_]=vu(w);b&&_?!v.shiftKey&&m===_?(v.preventDefault(),n&&qe(b,{select:!0})):v.shiftKey&&m===b&&(v.preventDefault(),n&&qe(_,{select:!0})):m===w&&v.preventDefault()}},[n,r,p.paused]);return O(Qe.div,K({tabIndex:-1},a,{ref:h,onKeyDown:g}))});function hu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qe(r,{select:t}),document.activeElement!==n)return}function vu(e){const t=ls(e),n=vi(t,e),r=vi(t.reverse(),e);return[n,r]}function ls(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 vi(e,t){for(const n of e)if(!gu(n,{upTo:t}))return n}function gu(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 mu(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&&mu(e)&&t&&e.select()}}const gi=_u();function _u(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mi(e,t),e.unshift(t)},remove(t){var n;e=mi(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function mi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yu(e){return e.filter(t=>t.tagName!=="A")}const us=G((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?nn.createPortal(O(Qe.div,K({},o,{ref:t})),r):null});function bu(e,t){return Un((n,r)=>{const o=t[n][r];return o??n},e)}const kt=e=>{const{present:t,children:n}=e,r=wu(t),o=typeof n=="function"?n({present:r.isPresent}):Oe.only(n),i=Te(r.ref,o.ref);return typeof n=="function"||r.isPresent?Tt(o,{ref:i}):null};kt.displayName="Presence";function wu(e){const[t,n]=T(),r=k({}),o=k(e),i=k("none"),a=e?"mounted":"unmounted",[s,c]=bu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R(()=>{const d=pn(r.current);i.current=s==="mounted"?d:"none"},[s]),Ot(()=>{const d=r.current,f=o.current;if(f!==e){const h=i.current,p=pn(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ot(()=>{if(t){const d=l=>{const p=pn(r.current).includes(l.animationName);l.target===t&&p&&tn(()=>c("ANIMATION_END"))},f=l=>{l.target===t&&(i.current=pn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function pn(e){return(e==null?void 0:e.animationName)||"none"}let wr=0;function ds(){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:_i()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:_i()),wr++,()=>{wr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),wr--}},[])}function _i(){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 Ee=function(){return Ee=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},Ee.apply(this,arguments)};function fs(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 xu(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 Cn="right-scroll-bar-position",En="width-before-scroll-bar",$u="with-scroll-bars-hidden",Cu="--removed-body-scroll-bar-size";function xr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Eu(e,t){var n=T(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Su=typeof window<"u"?We:R,yi=new WeakMap;function Ou(e,t){var n=Eu(t||null,function(r){return e.forEach(function(o){return xr(o,r)})});return Su(function(){var r=yi.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||xr(s,null)}),i.forEach(function(s){o.has(s)||xr(s,a)})}yi.set(n,e)},[e]),n}function Au(e){return e}function Tu(e,t){t===void 0&&(t=Au);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function ku(e){e===void 0&&(e={});var t=Tu(null);return t.options=Ee({async:!0,ssr:!1},e),t}var ps=function(e){var t=e.sideCar,n=fs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return O(r,Ee({},n))};ps.isSideCarExport=!0;function Pu(e,t){return e.useMedium(t),ps}var hs=ku(),$r=function(){},qn=G(function(e,t){var n=k(null),r=T({onScrollCapture:$r,onWheelCapture:$r,onTouchMoveCapture:$r}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,l=e.shards,h=e.sideCar,p=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,w=fs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=h,_=Ou([n,t]),x=Ee(Ee({},w),o);return O(N,null,f&&O(b,{sideCar:hs,removeScrollBar:d,shards:l,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?Tt(Oe.only(s),Ee(Ee({},x),{ref:_})):O(m,Ee({},x,{className:c,ref:_}),s))});qn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qn.classNames={fullWidth:En,zeroRight:Cn};var bi,Du=function(){if(bi)return bi;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ru(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Du();return t&&e.setAttribute("nonce",t),e}function Nu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ru())&&(Nu(t,n),Mu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Iu=function(){var e=Lu();return function(t,n){R(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vs=function(){var e=Iu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Fu={left:0,top:0,right:0,gap:0},Cr=function(e){return parseInt(e||"",10)||0},ju=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[Cr(n),Cr(r),Cr(o)]},Vu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fu;var t=ju(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])}},Hu=vs(),bt="data-scroll-locked",Wu=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($u,` {
|
|
22
|
+
overflow: hidden `).concat(r,`;
|
|
23
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
24
|
+
}
|
|
25
|
+
body[`).concat(bt,`] {
|
|
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(Cn,` {
|
|
39
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(En,` {
|
|
43
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.`).concat(Cn," .").concat(Cn,` {
|
|
47
|
+
right: 0 `).concat(r,`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.`).concat(En," .").concat(En,` {
|
|
51
|
+
margin-right: 0 `).concat(r,`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body[`).concat(bt,`] {
|
|
55
|
+
`).concat(Cu,": ").concat(s,`px;
|
|
56
|
+
}
|
|
57
|
+
`)},wi=function(){var e=parseInt(document.body.getAttribute(bt)||"0",10);return isFinite(e)?e:0},Uu=function(){R(function(){return document.body.setAttribute(bt,(wi()+1).toString()),function(){var e=wi()-1;e<=0?document.body.removeAttribute(bt):document.body.setAttribute(bt,e.toString())}},[])},zu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Uu();var i=Z(function(){return Vu(o)},[o]);return O(Hu,{styles:Wu(i,!t,o,n?"":"!important")})},Gr=!1;if(typeof window<"u")try{var hn=Object.defineProperty({},"passive",{get:function(){return Gr=!0,!0}});window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{Gr=!1}var pt=Gr?{passive:!1}:!1,Bu=function(e){return e.tagName==="TEXTAREA"},gs=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Bu(e)&&n[t]==="visible")},qu=function(e){return gs(e,"overflowY")},Ku=function(e){return gs(e,"overflowX")},xi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ms(e,n);if(r){var o=_s(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Gu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Yu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ms=function(e,t){return e==="v"?qu(t):Ku(t)},_s=function(e,t){return e==="v"?Gu(t):Yu(t)},Zu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ju=function(e,t,n,r,o){var i=Zu(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,f=a>0,l=0,h=0;do{var p=_s(e,s),g=p[0],v=p[1],y=p[2],m=v-y-i*g;(g||m)&&ms(e,s)&&(l+=m,h+=g),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&(o&&l===0||!o&&a>l)||!f&&(o&&h===0||!o&&-a>h))&&(d=!0),d},vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$i=function(e){return[e.deltaX,e.deltaY]},Ci=function(e){return e&&"current"in e?e.current:e},Xu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qu=function(e){return`
|
|
58
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
59
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
60
|
+
`)},ed=0,ht=[];function td(e){var t=k([]),n=k([0,0]),r=k(),o=T(ed++)[0],i=T(function(){return vs()})[0],a=k(e);R(function(){a.current=e},[e]),R(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=xu([e.lockRef.current],(e.shards||[]).map(Ci),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=V(function(v,y){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var m=vn(v),w=n.current,b="deltaX"in v?v.deltaX:w[0]-m[0],_="deltaY"in v?v.deltaY:w[1]-m[1],x,$=v.target,E=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in v&&E==="h"&&$.type==="range")return!1;var C=xi(E,$);if(!C)return!0;if(C?x=E:(x=E==="v"?"h":"v",C=xi(E,$)),!C)return!1;if(!r.current&&"changedTouches"in v&&(b||_)&&(r.current=x),!x)return!0;var S=r.current||x;return Ju(S,y,v,S==="h"?b:_,!0)},[]),c=V(function(v){var y=v;if(!(!ht.length||ht[ht.length-1]!==i)){var m="deltaY"in y?$i(y):vn(y),w=t.current.filter(function(x){return x.name===y.type&&x.target===y.target&&Xu(x.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var b=(a.current.shards||[]).map(Ci).filter(Boolean).filter(function(x){return x.contains(y.target)}),_=b.length>0?s(y,b[0]):!a.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),d=V(function(v,y,m,w){var b={name:v,delta:y,target:m,should:w};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),f=V(function(v){n.current=vn(v),r.current=void 0},[]),l=V(function(v){d(v.type,$i(v),v.target,s(v,e.lockRef.current))},[]),h=V(function(v){d(v.type,vn(v),v.target,s(v,e.lockRef.current))},[]);R(function(){return ht.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,pt),document.addEventListener("touchmove",c,pt),document.addEventListener("touchstart",f,pt),function(){ht=ht.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,pt),document.removeEventListener("touchmove",c,pt),document.removeEventListener("touchstart",f,pt)}},[]);var p=e.removeScrollBar,g=e.inert;return O(N,null,g?O(i,{styles:Qu(o)}):null,p?O(zu,{gapMode:"margin"}):null)}const nd=Pu(hs,td);var ys=G(function(e,t){return O(qn,Ee({},e,{ref:t,sideCar:nd}))});ys.classNames=qn.classNames;const bs=ys;var rd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,gn=new WeakMap,mn={},Er=0,ws=function(e){return e&&(e.host||ws(e.parentNode))},od=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ws(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})},id=function(e,t,n,r){var o=od(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var i=mn[n],a=[],s=new Set,c=new Set(o),d=function(l){!l||s.has(l)||(s.add(l),d(l.parentNode))};o.forEach(d);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))f(h);else try{var p=h.getAttribute(r),g=p!==null&&p!=="false",v=(vt.get(h)||0)+1,y=(i.get(h)||0)+1;vt.set(h,v),i.set(h,y),a.push(h),v===1&&g&&gn.set(h,!0),y===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(t),s.clear(),Er++,function(){a.forEach(function(l){var h=vt.get(l)-1,p=i.get(l)-1;vt.set(l,h),i.set(l,p),h||(gn.has(l)||l.removeAttribute(r),gn.delete(l)),p||l.removeAttribute(n)}),Er--,Er||(vt=new WeakMap,vt=new WeakMap,gn=new WeakMap,mn={})}},xs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||rd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),id(r,o,n,"aria-hidden")):function(){return null}};const $s="Dialog",[Cs,Wm]=_o($s),[ad,et]=Cs($s),sd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=k(null),c=k(null),[d=!1,f]=is({prop:r,defaultProp:o,onChange:i});return O(ad,{scope:t,triggerRef:s,contentRef:c,contentId:$n(),titleId:$n(),descriptionId:$n(),open:d,onOpenChange:f,onOpenToggle:V(()=>f(l=>!l),[f]),modal:a},n)},cd="DialogTrigger",ld=G((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(cd,n),i=Te(t,o.triggerRef);return O(Qe.button,K({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yo(o.open)},r,{ref:i,onClick:ye(e.onClick,o.onOpenToggle)}))}),Es="DialogPortal",[ud,Ss]=Cs(Es,{forceMount:void 0}),dd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=et(Es,t);return O(ud,{scope:t,forceMount:n},Oe.map(r,a=>O(kt,{present:n||i.open},O(us,{asChild:!0,container:o},a))))},Yr="DialogOverlay",fd=G((e,t)=>{const n=Ss(Yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=et(Yr,e.__scopeDialog);return i.modal?O(kt,{present:r||i.open},O(pd,K({},o,{ref:t}))):null}),pd=G((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(Yr,n);return O(bs,{as:Bn,allowPinchZoom:!0,shards:[o.contentRef]},O(Qe.div,K({"data-state":yo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Gt="DialogContent",hd=G((e,t)=>{const n=Ss(Gt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=et(Gt,e.__scopeDialog);return O(kt,{present:r||i.open},i.modal?O(vd,K({},o,{ref:t})):O(gd,K({},o,{ref:t})))}),vd=G((e,t)=>{const n=et(Gt,e.__scopeDialog),r=k(null),o=Te(t,n.contentRef,r);return R(()=>{const i=r.current;if(i)return xs(i)},[]),O(Os,K({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault())}))}),gd=G((e,t)=>{const n=et(Gt,e.__scopeDialog),r=k(!1),o=k(!1);return O(Os,K({},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()}}))}),Os=G((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=et(Gt,n),c=k(null),d=Te(t,c);return ds(),O(N,null,O(cs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(as,K({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function yo(e){return e?"open":"closed"}const md=sd,_d=ld,yd=dd,bd=fd,wd=hd,xd=["top","right","bottom","left"],Se=Math.min,ae=Math.max,Mn=Math.round,_n=Math.floor,Ze=e=>({x:e,y:e}),$d={left:"right",right:"left",bottom:"top",top:"bottom"},Cd={start:"end",end:"start"};function Zr(e,t,n){return ae(e,Se(t,n))}function Ve(e,t){return typeof e=="function"?e(t):e}function He(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function bo(e){return e==="x"?"y":"x"}function wo(e){return e==="y"?"height":"width"}function Je(e){return["top","bottom"].includes(He(e))?"y":"x"}function xo(e){return bo(Je(e))}function Ed(e,t,n){n===void 0&&(n=!1);const r=Pt(e),o=xo(e),i=wo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ln(a)),[a,Ln(a)]}function Sd(e){const t=Ln(e);return[Jr(e),t,Jr(t)]}function Jr(e){return e.replace(/start|end/g,t=>Cd[t])}function Od(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 Ad(e,t,n,r){const o=Pt(e);let i=Od(He(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Jr)))),i}function Ln(e){return e.replace(/left|right|bottom|top/g,t=>$d[t])}function Td(e){return{top:0,right:0,bottom:0,left:0,...e}}function As(e){return typeof e!="number"?Td(e):{top:e,right:e,bottom:e,left:e}}function In(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ei(e,t,n){let{reference:r,floating:o}=e;const i=Je(t),a=xo(t),s=wo(a),c=He(t),d=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:l};break;case"left":p={x:r.x-o.width,y:l};break;default:p={x:r.x,y:r.y}}switch(Pt(t)){case"start":p[a]-=h*(n&&d?-1:1);break;case"end":p[a]+=h*(n&&d?-1:1);break}return p}const kd=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:f,y:l}=Ei(d,r,c),h=r,p={},g=0;for(let v=0;v<s.length;v++){const{name:y,fn:m}=s[v],{x:w,y:b,data:_,reset:x}=await m({x:f,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:d,platform:a,elements:{reference:e,floating:t}});f=w??f,l=b??l,p={...p,[y]:{...p[y],..._}},x&&g<=50&&(g++,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:f,y:l}=Ei(d,h,c)),v=-1)}return{x:f,y:l,placement:h,strategy:o,middlewareData:p}};async function Yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:h=!1,padding:p=0}=Ve(t,e),g=As(p),y=s[h?l==="floating"?"reference":"floating":l],m=In(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=l==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},x=In(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:c}):w);return{top:(m.top-x.top+g.top)/_.y,bottom:(x.bottom-m.bottom+g.bottom)/_.y,left:(m.left-x.left+g.left)/_.x,right:(x.right-m.right+g.right)/_.x}}const Pd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=Ve(e,t)||{};if(d==null)return{};const l=As(f),h={x:n,y:r},p=xo(o),g=wo(p),v=await a.getDimensions(d),y=p==="y",m=y?"top":"left",w=y?"bottom":"right",b=y?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[p]-h[p]-i.floating[g],x=h[p]-i.reference[p],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let E=$?$[b]:0;(!E||!await(a.isElement==null?void 0:a.isElement($)))&&(E=s.floating[b]||i.floating[g]);const C=_/2-x/2,S=E/2-v[g]/2-1,P=Se(l[m],S),I=Se(l[w],S),j=P,D=E-v[g]-I,A=E/2-v[g]/2+C,M=Zr(j,A,D),Y=!c.arrow&&Pt(o)!=null&&A!==M&&i.reference[g]/2-(A<j?P:I)-v[g]/2<0,L=Y?A<j?A-j:A-D:0;return{[p]:h[p]+L,data:{[p]:M,centerOffset:A-M-L,...Y&&{alignmentOffset:L}},reset:Y}}}),Dd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=Ve(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=He(o),w=Je(s),b=He(s)===s,_=await(c.isRTL==null?void 0:c.isRTL(d.floating)),x=h||(b||!v?[Ln(s)]:Sd(s)),$=g!=="none";!h&&$&&x.push(...Ad(s,v,g,_));const E=[s,...x],C=await Yt(t,y),S=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&S.push(C[m]),l){const A=Ed(o,a,_);S.push(C[A[0]],C[A[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(A=>A<=0)){var I,j;const A=(((I=i.flip)==null?void 0:I.index)||0)+1,M=E[A];if(M)return{data:{index:A,overflows:P},reset:{placement:M}};let Y=(j=P.filter(L=>L.overflows[0]<=0).sort((L,q)=>L.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!Y)switch(p){case"bestFit":{var D;const L=(D=P.filter(q=>{if($){const J=Je(q.placement);return J===w||J==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(J=>J>0).reduce((J,It)=>J+It,0)]).sort((q,J)=>q[1]-J[1])[0])==null?void 0:D[0];L&&(Y=L);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Si(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oi(e){return xd.some(t=>e[t]>=0)}const Rd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ve(e,t);switch(r){case"referenceHidden":{const i=await Yt(t,{...o,elementContext:"reference"}),a=Si(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Oi(a)}}}case"escaped":{const i=await Yt(t,{...o,altBoundary:!0}),a=Si(i,n.floating);return{data:{escapedOffsets:a,escaped:Oi(a)}}}default:return{}}}}};async function Nd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=He(n),s=Pt(n),c=Je(n)==="y",d=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,l=Ve(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),c?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const Md=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 Nd(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}}}}},Ld=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:y=>{let{x:m,y:w}=y;return{x:m,y:w}}},...c}=Ve(e,t),d={x:n,y:r},f=await Yt(t,c),l=Je(He(o)),h=bo(l);let p=d[h],g=d[l];if(i){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=p+f[y],b=p-f[m];p=Zr(w,p,b)}if(a){const y=l==="y"?"top":"left",m=l==="y"?"bottom":"right",w=g+f[y],b=g-f[m];g=Zr(w,g,b)}const v=s.fn({...t,[h]:p,[l]:g});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Id=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}=Ve(e,t),f={x:n,y:r},l=Je(o),h=bo(l);let p=f[h],g=f[l];const v=Ve(s,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const b=h==="y"?"height":"width",_=i.reference[h]-i.floating[b]+y.mainAxis,x=i.reference[h]+i.reference[b]-y.mainAxis;p<_?p=_:p>x&&(p=x)}if(d){var m,w;const b=h==="y"?"width":"height",_=["top","left"].includes(He(o)),x=i.reference[l]-i.floating[b]+(_&&((m=a.offset)==null?void 0:m[l])||0)+(_?0:y.crossAxis),$=i.reference[l]+i.reference[b]+(_?0:((w=a.offset)==null?void 0:w[l])||0)-(_?y.crossAxis:0);g<x?g=x:g>$&&(g=$)}return{[h]:p,[l]:g}}}},Fd=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}=Ve(e,t),c=await Yt(t,s),d=He(n),f=Pt(n),l=Je(n)==="y",{width:h,height:p}=r.floating;let g,v;d==="top"||d==="bottom"?(g=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,g=f==="end"?"top":"bottom");const y=p-c.top-c.bottom,m=h-c.left-c.right,w=Se(p-c[g],y),b=Se(h-c[v],m),_=!t.middlewareData.shift;let x=w,$=b;if(l?$=f||_?Se(b,m):m:x=f||_?Se(w,y):y,_&&!f){const C=ae(c.left,0),S=ae(c.right,0),P=ae(c.top,0),I=ae(c.bottom,0);l?$=h-2*(C!==0||S!==0?C+S:ae(c.left,c.right)):x=p-2*(P!==0||I!==0?P+I:ae(c.top,c.bottom))}await a({...t,availableWidth:$,availableHeight:x});const E=await o.getDimensions(i.floating);return h!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Ts(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Ts(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ts(e){return e instanceof Node||e instanceof ce(e).Node}function we(e){return e instanceof Element||e instanceof ce(e).Element}function Ae(e){return e instanceof HTMLElement||e instanceof ce(e).HTMLElement}function Ai(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}function rn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function jd(e){return["table","td","th"].includes(Dt(e))}function Kn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $o(e){const t=Co(),n=we(e)?xe(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Vd(e){let t=Xe(e);for(;Ae(t)&&!At(t);){if($o(t))return t;if(Kn(t))return null;t=Xe(t)}return null}function Co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(e){return["html","body","#document"].includes(Dt(e))}function xe(e){return ce(e).getComputedStyle(e)}function Gn(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ai(e)&&e.host||Ue(e);return Ai(t)?t.host:t}function ks(e){const t=Xe(e);return At(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&rn(t)?t:ks(t)}function Zt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ks(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ce(o);if(i){const s=Xr(a);return t.concat(a,a.visualViewport||[],rn(o)?o:[],s&&n?Zt(s):[])}return t.concat(o,Zt(o,[],n))}function Xr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ps(e){const t=xe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ae(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Mn(n)!==i||Mn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Eo(e){return we(e)?e:e.contextElement}function wt(e){const t=Eo(e);if(!Ae(t))return Ze(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ps(t);let a=(i?Mn(n.width):n.width)/r,s=(i?Mn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Hd=Ze(0);function Ds(e){const t=ce(e);return!Co()||!t.visualViewport?Hd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Eo(e);let a=Ze(1);t&&(r?we(r)&&(a=wt(r)):a=wt(e));const s=Wd(i,n,r)?Ds(i):Ze(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,l=o.height/a.y;if(i){const h=ce(i),p=r&&we(r)?ce(r):r;let g=h,v=Xr(g);for(;v&&r&&p!==g;){const y=wt(v),m=v.getBoundingClientRect(),w=xe(v),b=m.left+(v.clientLeft+parseFloat(w.paddingLeft))*y.x,_=m.top+(v.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,l*=y.y,c+=b,d+=_,g=ce(v),v=Xr(g)}}return In({width:f,height:l,x:c,y:d})}function Ud(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Ue(r),s=t?Kn(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Ze(1);const f=Ze(0),l=Ae(r);if((l||!l&&!i)&&((Dt(r)!=="body"||rn(a))&&(c=Gn(r)),Ae(r))){const h=lt(r);d=wt(r),f.x=h.x+r.clientLeft,f.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+f.x,y:n.y*d.y-c.scrollTop*d.y+f.y}}function zd(e){return Array.from(e.getClientRects())}function Rs(e){return lt(Ue(e)).left+Gn(e).scrollLeft}function Bd(e){const t=Ue(e),n=Gn(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Rs(e);const s=-n.scrollTop;return xe(r).direction==="rtl"&&(a+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function qd(e,t){const n=ce(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=Co();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Kd(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ae(e)?wt(e):Ze(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 Ti(e,t,n){let r;if(t==="viewport")r=qd(e,n);else if(t==="document")r=Bd(Ue(e));else if(we(t))r=Kd(t,n);else{const o=Ds(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return In(r)}function Ns(e,t){const n=Xe(e);return n===t||!we(n)||At(n)?!1:xe(n).position==="fixed"||Ns(n,t)}function Gd(e,t){const n=t.get(e);if(n)return n;let r=Zt(e,[],!1).filter(s=>we(s)&&Dt(s)!=="body"),o=null;const i=xe(e).position==="fixed";let a=i?Xe(e):e;for(;we(a)&&!At(a);){const s=xe(a),c=$o(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||rn(a)&&!c&&Ns(e,a))?r=r.filter(f=>f!==a):o=s,a=Xe(a)}return t.set(e,r),r}function Yd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kn(t)?[]:Gd(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((d,f)=>{const l=Ti(t,f,o);return d.top=ae(l.top,d.top),d.right=Se(l.right,d.right),d.bottom=Se(l.bottom,d.bottom),d.left=ae(l.left,d.left),d},Ti(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zd(e){const{width:t,height:n}=Ps(e);return{width:t,height:n}}function Jd(e,t,n){const r=Ae(t),o=Ue(t),i=n==="fixed",a=lt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Ze(0);if(r||!r&&!i)if((Dt(t)!=="body"||rn(o))&&(s=Gn(t)),r){const l=lt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Rs(o));const d=a.left+s.scrollLeft-c.x,f=a.top+s.scrollTop-c.y;return{x:d,y:f,width:a.width,height:a.height}}function Sr(e){return xe(e).position==="static"}function ki(e,t){return!Ae(e)||xe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ms(e,t){const n=ce(e);if(Kn(e))return n;if(!Ae(e)){let o=Xe(e);for(;o&&!At(o);){if(we(o)&&!Sr(o))return o;o=Xe(o)}return n}let r=ki(e,t);for(;r&&jd(r)&&Sr(r);)r=ki(r,t);return r&&At(r)&&Sr(r)&&!$o(r)?n:r||Vd(e)||n}const Xd=async function(e){const t=this.getOffsetParent||Ms,n=this.getDimensions,r=await n(e.floating);return{reference:Jd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qd(e){return xe(e).direction==="rtl"}const ef={convertOffsetParentRelativeRectToViewportRelativeRect:Ud,getDocumentElement:Ue,getClippingRect:Yd,getOffsetParent:Ms,getElementRects:Xd,getClientRects:zd,getDimensions:Zd,getScale:wt,isElement:we,isRTL:Qd};function tf(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:f,width:l,height:h}=e.getBoundingClientRect();if(s||t(),!l||!h)return;const p=_n(f),g=_n(o.clientWidth-(d+l)),v=_n(o.clientHeight-(f+h)),y=_n(d),w={rootMargin:-p+"px "+-g+"px "+-v+"px "+-y+"px",threshold:ae(0,Se(1,c))||1};let b=!0;function _(x){const $=x[0].intersectionRatio;if($!==c){if(!b)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return a(!0),i}function nf(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=Eo(e),f=o||i?[...d?Zt(d):[],...Zt(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const l=d&&s?tf(d,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(m=>{let[w]=m;w&&w.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!c&&p.observe(d),p.observe(t));let g,v=c?lt(e):null;c&&y();function y(){const m=lt(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,g=requestAnimationFrame(y)}return n(),()=>{var m;f.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),l==null||l(),(m=p)==null||m.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const rf=Md,of=Ld,af=Dd,sf=Fd,cf=Rd,Pi=Pd,lf=Id,uf=(e,t,n)=>{const r=new Map,o={platform:ef,...n},i={...o.platform,_c:r};return kd(e,t,{...o,platform:i})};var Sn=typeof document<"u"?We:R;function Fn(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(!Fn(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)&&!Fn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ls(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Di(e,t){const n=Ls(e);return Math.round(t*n)/n}function Ri(e){const t=k(e);return Sn(()=>{t.current=e}),t}function df(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,l]=T({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=T(r);Fn(h,r)||p(r);const[g,v]=T(null),[y,m]=T(null),w=V(L=>{L!==$.current&&($.current=L,v(L))},[]),b=V(L=>{L!==E.current&&(E.current=L,m(L))},[]),_=i||g,x=a||y,$=k(null),E=k(null),C=k(f),S=c!=null,P=Ri(c),I=Ri(o),j=V(()=>{if(!$.current||!E.current)return;const L={placement:t,strategy:n,middleware:h};I.current&&(L.platform=I.current),uf($.current,E.current,L).then(q=>{const J={...q,isPositioned:!0};D.current&&!Fn(C.current,J)&&(C.current=J,tn(()=>{l(J)}))})},[h,t,n,I]);Sn(()=>{d===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,l(L=>({...L,isPositioned:!1})))},[d]);const D=k(!1);Sn(()=>(D.current=!0,()=>{D.current=!1}),[]),Sn(()=>{if(_&&($.current=_),x&&(E.current=x),_&&x){if(P.current)return P.current(_,x,j);j()}},[_,x,j,P,S]);const A=Z(()=>({reference:$,floating:E,setReference:w,setFloating:b}),[w,b]),M=Z(()=>({reference:_,floating:x}),[_,x]),Y=Z(()=>{const L={position:n,left:0,top:0};if(!M.floating)return L;const q=Di(M.floating,f.x),J=Di(M.floating,f.y);return s?{...L,transform:"translate("+q+"px, "+J+"px)",...Ls(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:J}},[n,s,M.floating,f.x,f.y]);return Z(()=>({...f,update:j,refs:A,elements:M,floatingStyles:Y}),[f,j,A,M,Y])}const ff=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?Pi({element:r.current,padding:o}).fn(n):{}:r?Pi({element:r,padding:o}).fn(n):{}}}},pf=(e,t)=>({...rf(e),options:[e,t]}),hf=(e,t)=>({...of(e),options:[e,t]}),vf=(e,t)=>({...lf(e),options:[e,t]}),gf=(e,t)=>({...af(e),options:[e,t]}),mf=(e,t)=>({...sf(e),options:[e,t]}),_f=(e,t)=>({...cf(e),options:[e,t]}),yf=(e,t)=>({...ff(e),options:[e,t]});function bf(e){const[t,n]=T(void 0);return Ot(()=>{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 Is="Popper",[Fs,js]=_o(Is),[wf,Vs]=Fs(Is),xf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=T(null);return O(wf,{scope:t,anchor:r,onAnchorChange:o},n)},$f="PopperAnchor",Cf=G((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vs($f,n),a=k(null),s=Te(t,a);return R(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:O(Qe.div,K({},o,{ref:s}))}),Hs="PopperContent",[Ef,Um]=Fs(Hs),Sf=G((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:f,side:l="bottom",sideOffset:h=0,align:p="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:x="optimized",onPlaced:$,...E}=e,C=Vs(Hs,f),[S,P]=T(null),I=Te(t,U=>P(U)),[j,D]=T(null),A=bf(j),M=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,Y=(r=A==null?void 0:A.height)!==null&&r!==void 0?r:0,L=l+(p!=="center"?"-"+p:""),q=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},J=Array.isArray(m)?m:[m],It=J.length>0,pe={padding:q,boundary:J.filter(Of),altBoundary:It},{refs:ze,floatingStyles:tt,placement:an,isPositioned:ke,middlewareData:Pe}=df({strategy:"fixed",placement:L,whileElementsMounted:(...U)=>nf(...U,{animationFrame:x==="always"}),elements:{reference:C.anchor},middleware:[pf({mainAxis:h+Y,alignmentAxis:g}),y&&hf({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?vf():void 0,...pe}),y&&gf({...pe}),mf({...pe,apply:({elements:U,rects:ie,availableWidth:Be,availableHeight:Q})=>{const{width:ne,height:he}=ie.reference,rt=U.floating.style;rt.setProperty("--radix-popper-available-width",`${Be}px`),rt.setProperty("--radix-popper-available-height",`${Q}px`),rt.setProperty("--radix-popper-anchor-width",`${ne}px`),rt.setProperty("--radix-popper-anchor-height",`${he}px`)}}),j&&yf({element:j,padding:v}),Af({arrowWidth:M,arrowHeight:Y}),_&&_f({strategy:"referenceHidden",...pe})]}),[Ft,tr]=Ws(an),ft=Ye($);Ot(()=>{ke&&(ft==null||ft())},[ke,ft]);const nt=(o=Pe.arrow)===null||o===void 0?void 0:o.x,sn=(i=Pe.arrow)===null||i===void 0?void 0:i.y,H=((a=Pe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[W,ee]=T();return Ot(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]),O("div",{ref:ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...tt,transform:ke?tt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--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},O(Ef,{scope:f,placedSide:Ft,onArrowChange:D,arrowX:nt,arrowY:sn,shouldHideArrow:H},O(Qe.div,K({"data-side":Ft,"data-align":tr},E,{ref:I,style:{...E.style,animation:ke?void 0:"none",opacity:(d=Pe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Of(e){return e!==null}const Af=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,l=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[g,v]=Ws(s),y={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,w=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let b="",_="";return g==="bottom"?(b=l?y:`${m}px`,_=`${-p}px`):g==="top"?(b=l?y:`${m}px`,_=`${c.floating.height+p}px`):g==="right"?(b=`${-p}px`,_=l?y:`${w}px`):g==="left"&&(b=`${c.floating.width+p}px`,_=l?y:`${w}px`),{data:{x:b,y:_}}}});function Ws(e){const[t,n="center"]=e.split("-");return[t,n]}const Tf=xf,kf=Cf,Pf=Sf,Us="Popover",[zs,zm]=_o(Us,[js]),So=js(),[Df,Rt]=zs(Us),Rf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=So(t),c=k(null),[d,f]=T(!1),[l=!1,h]=is({prop:r,defaultProp:o,onChange:i});return O(Tf,s,O(Df,{scope:t,contentId:$n(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:V(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:V(()=>f(!0),[]),onCustomAnchorRemove:V(()=>f(!1),[]),modal:a},n))},Nf="PopoverTrigger",Mf=G((e,t)=>{const{__scopePopover:n,...r}=e,o=Rt(Nf,n),i=So(n),a=Te(t,o.triggerRef),s=O(Qe.button,K({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ks(o.open)},r,{ref:a,onClick:ye(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:O(kf,K({asChild:!0},i),s)}),Bs="PopoverPortal",[Lf,If]=zs(Bs,{forceMount:void 0}),Ff=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Rt(Bs,t);return O(Lf,{scope:t,forceMount:n},O(kt,{present:n||i.open},O(us,{asChild:!0,container:o},r)))},Jt="PopoverContent",jf=G((e,t)=>{const n=If(Jt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Rt(Jt,e.__scopePopover);return O(kt,{present:r||i.open},i.modal?O(Vf,K({},o,{ref:t})):O(Hf,K({},o,{ref:t})))}),Vf=G((e,t)=>{const n=Rt(Jt,e.__scopePopover),r=k(null),o=Te(t,r),i=k(!1);return R(()=>{const a=r.current;if(a)return xs(a)},[]),O(bs,{as:Bn,allowPinchZoom:!0},O(qs,K({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ye(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:ye(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),Hf=G((e,t)=>{const n=Rt(Jt,e.__scopePopover),r=k(!1),o=k(!1);return O(qs,K({},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()}}))}),qs=G((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...l}=e,h=Rt(Jt,n),p=So(n);return ds(),O(cs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(as,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},O(Pf,K({"data-state":Ks(h.open),role:"dialog",id:h.contentId},p,l,{ref:t,style:{...l.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Ks(e){return e?"open":"closed"}const Wf=Rf,Uf=Mf,zf=Ff,Bf=jf,Ni=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},qf=(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=Ni(r.value),a=Ni(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},on=fe({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}}),Gs=fe({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"}}),Ys=fe({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"}}}),Zs=fe({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}}),Kf=fe({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"}}}),Gf=({children:e,colorScheme:t})=>u("span",{class:Kf({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),Yf=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},Zf=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},Jf=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Xf=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=te(),s=en(n()),c=Z(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const p=s.data[t.key]??[];return Object.fromEntries(p.map(g=>[g.value,g.jobs]))}default:mt(s)}},[s,t.key]),d=Js(e),f=d.length>0,[l,h]=T();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.searchable&&u("div",{class:"border-b-px border-neutral-4",children:u("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:l,onInput:p=>h(p.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return u(Ge,{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((p,g)=>u("div",{style:{animationDelay:g*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},g))});case"revalidating":case"loaded":{const p=s.data[t.key]??[],g=l&&l.length>1?p.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())):p,v=[];for(const m of g){if(m.label.length<1)continue;const w={...m,results:Jf(c,m),disabled:Zf(c,m)};switch(t.results){case"only-available":w.disabled===!1&&v.push(w);break;default:v.push(w)}}return v.find(m=>!m.disabled)?u("ul",{class:Gs(),children:qf(v,t.sortSuggestions).map(m=>{const w=d.includes(m.value);return u("li",{class:Ys({type:"line"}),children:u("button",{type:"button",disabled:m.disabled,"data-filter":!0,"data-current-value":w?"true":void 0,onClick:()=>{switch(e.select){case"many":{const b=Yf(d,m.value);o({select:"many",value:b});break}case"one":o({select:"one",value:w?void 0:m.value});break;default:mt(e)}},class:Zs({active:w,disabled:m.disabled}),children:[u("span",{class:"max-w-full truncate",children:m.label})," ",u(Gf,{colorScheme:w?"accentStrong":"neutralStrong",children:m.results})]})},m.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:mt(s)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:f&&u("button",{type:"button",class:Fe({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(X,{"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:Fe({variant:f?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(f?"done":"close")},f?"done":"close")})]})]})},Mi=8,Li={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"},Ii=fe({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"}}}),Fi=fe({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"}}}),Js=e=>typeof e.value=="string"?[e.value]:e.value??[],Qf=({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)},ep=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:c})=>{const d=pc(r.key,Li)?Li[r.key]:void 0,f=r.icon??d??"filter",l=Js(t),h=l.length>0,p=rs("(pointer: coarse)"),g=u(N,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(X,{"aria-hidden":!0,class:"flex-none",name:f}),u("span",{class:"truncate",children:r.label})]}),u(X,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(Qf,{selectedValues:l})]}),v=u(Xf,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:p});return p?u(md,{open:e,onOpenChange:n,children:[u(_d,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:Ii({state:e||h?"active":"default"}),onTouchStart:tp,children:g}),u(yd,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:[u(bd,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(wd,{class:Fi({mode:"mobile",class:zr(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(X,{name:f,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),v]})]})})]}):u(Wf,{open:e,onOpenChange:y=>n(y),modal:p,children:[u(Uf,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:Ii({state:e||h?"active":"default"}),children:g}),u(zf,{children:u("div",{class:"inploi-job-search","data-widget-id":c,children:u(Bf,{side:"bottom",sideOffset:Mi,align:"center",collisionPadding:Mi,class:Fi({mode:"desktop",class:zr(s)}),children:v})})})]})};function tp(){}const np=(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}},rp=({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:mt(e)}},op=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s})=>{const{t:c}=te(),[d,f]=T(void 0),l=Z(()=>({filters:Vn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),h=en(Kt(Br({state:l,baseKey:"filters"}),()=>Ho({rpcClient:o,state:l}),Rn)),p=V(g=>()=>{const v={...t,filters:{...t.filters,[g]:l.filters[g]}};return Kt(Br({state:v,baseKey:"filters"}),()=>Ho({rpcClient:o,state:v}),Rn)},[o,l.filters,t]);return h.queryState==="error"?u(Ge,{error:new Error(c("filters_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()}):u("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[e.filter(g=>g.hidden!==!0).map(g=>{const v=d===g.key,y=t.filters[g.key]??{select:g.select,value:void 0},m=l.filters[g.key];m&&np(y,m);const w=x=>{const{newActiveKey:$,newValue:E}=rp({property:g,activeKey:d,value:x??m,properties:e,appliedFilters:t.filters});return f($),n(g.key,E)},b=x=>f(x?g.key:void 0),_=p(g.key);return u(zt,{Fallback:Ge,children:u(ep,{unfilteredQuery:h,active:v,property:g,onActiveChange:b,value:y,useQuery:_,onValueChange:w,theme:i,widgetId:s})},g.key)}),u("button",{type:"button",class:Fe({variant:"neutral"}),onClick:r,children:c("reset")}),a?u("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:u("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[u("div",{class:"block h-6 w-6"}),u("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:a.params.config.label})]})}):null]})};function ip(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yn=ip,ap=typeof Ht=="object"&&Ht&&Ht.Object===Object&&Ht,sp=ap,cp=sp,lp=typeof self=="object"&&self&&self.Object===Object&&self,up=cp||lp||Function("return this")(),Zn=up,dp=Zn,fp=function(){return dp.Date.now()},pp=fp,hp=/\s/;function vp(e){for(var t=e.length;t--&&hp.test(e.charAt(t)););return t}var gp=vp,mp=gp,_p=/^\s+/;function yp(e){return e&&e.slice(0,mp(e)+1).replace(_p,"")}var bp=yp,wp=Zn,xp=wp.Symbol,Oo=xp,ji=Oo,Xs=Object.prototype,$p=Xs.hasOwnProperty,Cp=Xs.toString,Vt=ji?ji.toStringTag:void 0;function Ep(e){var t=$p.call(e,Vt),n=e[Vt];try{e[Vt]=void 0;var r=!0}catch{}var o=Cp.call(e);return r&&(t?e[Vt]=n:delete e[Vt]),o}var Sp=Ep,Op=Object.prototype,Ap=Op.toString;function Tp(e){return Ap.call(e)}var kp=Tp,Vi=Oo,Pp=Sp,Dp=kp,Rp="[object Null]",Np="[object Undefined]",Hi=Vi?Vi.toStringTag:void 0;function Mp(e){return e==null?e===void 0?Np:Rp:Hi&&Hi in Object(e)?Pp(e):Dp(e)}var Qs=Mp;function Lp(e){return e!=null&&typeof e=="object"}var Ip=Lp,Fp=Qs,jp=Ip,Vp="[object Symbol]";function Hp(e){return typeof e=="symbol"||jp(e)&&Fp(e)==Vp}var Jn=Hp,Wp=bp,Wi=Yn,Up=Jn,Ui=0/0,zp=/^[-+]0x[0-9a-f]+$/i,Bp=/^0b[01]+$/i,qp=/^0o[0-7]+$/i,Kp=parseInt;function Gp(e){if(typeof e=="number")return e;if(Up(e))return Ui;if(Wi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Wp(e);var n=Bp.test(e);return n||qp.test(e)?Kp(e.slice(2),n?2:8):zp.test(e)?Ui:+e}var Yp=Gp,Zp=Yn,Or=pp,zi=Yp,Jp="Expected a function",Xp=Math.max,Qp=Math.min;function eh(e,t,n){var r,o,i,a,s,c,d=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(Jp);t=zi(t)||0,Zp(n)&&(f=!!n.leading,l="maxWait"in n,i=l?Xp(zi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p($){var E=r,C=o;return r=o=void 0,d=$,a=e.apply(C,E),a}function g($){return d=$,s=setTimeout(m,t),f?p($):a}function v($){var E=$-c,C=$-d,S=t-E;return l?Qp(S,i-C):S}function y($){var E=$-c,C=$-d;return c===void 0||E>=t||E<0||l&&C>=i}function m(){var $=Or();if(y($))return w($);s=setTimeout(m,v($))}function w($){return s=void 0,h&&r?p($):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),d=0,r=c=o=s=void 0}function _(){return s===void 0?a:w(Or())}function x(){var $=Or(),E=y($);if(r=arguments,o=this,c=$,E){if(s===void 0)return g(c);if(l)return clearTimeout(s),s=setTimeout(m,t),p(c)}return s===void 0&&(s=setTimeout(m,t)),a}return x.cancel=b,x.flush=_,x}var th=eh;const nh=ho(th),Qr="|",ec=(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(Qr)?r.defaultValue=o.split(Qr):r.defaultValue=o}}}),n},tc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},nc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},rh=({searchParams:e})=>({properties:t})=>({filters:Vn(ec(t,e),"defaultValue"),mode:tc(e),geo:rc(e),page:On(e.get("page"))??1,view:nc(e),query:e.get("query")??""}),oh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=Wn({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(Qr)):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"))},On=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},rc=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=On(t),i=On(n),a=On(r)??jn(eo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?jn(eo):a}},oc=(e,t=1e3)=>{const[n,r]=T(e),o=Z(()=>nh(i=>r(i),t),[t]);return R(()=>{o(e)},[e,o]),n},ih=G(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:c,inputProps:d,menuProps:f,query:l},h)=>{const[p,g]=T(!1),[v,y]=T(),{t:m}=te(),w=k();R(()=>{var _;y((_=o[0])==null?void 0:_.id)},[o]);const b=_=>{i(_),g(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:h,disabled:e,"data-active":p?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:on({size:"md"}),onFocus:()=>{c==null||c(),g(!0)},onBlur:()=>{w.current=window.setTimeout(()=>{s==null||s(),g(!1)},100)},value:l,onChange:_=>a(_.currentTarget.value),onKeyDown:_=>{switch(g(!0),_.key){case"ArrowDown":case"ArrowUp":{const x=_.key==="ArrowDown"?1:-1;_.preventDefault();const $=o.findIndex(C=>C.id===v);if($===-1)return;const E=o[$+x]??o[_.key==="ArrowDown"?0:o.length-1];if(!E)return;y(E.id);break}case"Enter":{if(_.preventDefault(),!v)return;i(v)}}},...d}),!t&&p&&!e&&o.length>0?u("ul",{className:Gs({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:()=>{w.current&&clearTimeout(w.current)},...f,children:t?u("div",{role:"alert",children:m("geo_suggestions_error")}):o.map(_=>u("li",{class:Ys({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>y(_.id),class:Zs({active:_.id===v,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>b(_.id),onKeyDown:x=>{x.key==="Enter"&&b(_.id)},children:_.label})},_.id))}):null]})}),ah=(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})}),sh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},Bi=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,ch=({onLocate:e,onError:t,signal:n})=>{const[r,o]=T("idle"),[i,a]=T(null),{t:s}=te(),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(Bi){if(o("loading"),i)return c(i);ah({signal:n}).then(d=>{const f={lat:d.latitude,lng:d.longitude};c(f)}).catch(d=>{if(d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const f=sh[d.code];if(!f)return;const l=s(f);t(l)})}},"data-state":r,class:Fe({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!Bi||r==="error",children:u(X,{name:"target-location"})})},xt=fe({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}}),lh="https://api.mapbox.com/search/geocode/v6/forward",uh="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",dh=e=>atob(e).split("").reverse().join(""),fh=se({features:Qt(_e(se({properties:se({mapbox_id:B(),place_formatted:st(B()),name_preferred:st(B(),"Untitled location"),coordinates:_e(se({latitude:me(),longitude:me()}),ge(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),ge(e=>e.properties)))}),ph=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),hh=async e=>{if(!e)return[];const t=new URL(lh);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",dh(uh));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=ao(fh,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return ph(o,i=>i.name_preferred+i.place_formatted)},vh=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=te(),[a,s]=T(""),[c,d]=T(),f=oc(a,500),[l,h]=T(new AbortController),p=Kt(f,hh,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:g,queryState:v,error:y}=en(p),[m,w]=T("view"),b=k(null);return R(()=>{if(m==="edit"){if(!b.current)return;b.current.focus()}},[m]),u("div",{class:"relative flex-1",children:[m==="view"&&n?u("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:on({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{w("edit")},children:u("div",{class:xt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??i("location_provided")})}):u(ih,{ref:b,error:y,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{l.abort(),h(new AbortController)},onBlur:()=>{w("view"),s("")},onItemSelect:_=>{if(v!=="loaded")return;const x=g.find($=>$.mapbox_id===_);x&&(e(x.coordinates),w("view"),d(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(g==null?void 0:g.map(_=>({id:_.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:_.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:_.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(ch,{onLocate:_=>{w("view"),d(i("geo_my_location")),t({type:"provided",coords:_,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"}),w("edit"),b.current&&(b.current.value="",b.current.focus())},class:Fe({variant:"neutral",size:"lg",icon:"only"}),children:u(X,{name:"x"})})})]})},gh=[.25,.5,1,3,5,10,15,20,30,40],eo=20,jn=e=>e*1609.34,mh=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),_h=_e(se({type:Ce("provided"),lat:st(_e(B(),ge(Number))),lng:st(_e(B(),ge(Number))),radius:_e(B(),ge(Number))}),ge(e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0}))),yh=({value:e,onValueChange:t,logger:n})=>{const{t:r}=te(),o=co(),i=(e==null?void 0:e.type)==="provided"?e.radius:jn(eo),[a,s]=T();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),f=ao(_h,Object.fromEntries(d.entries()));if(!f.success){n.error(f.issues),s(f.issues[0].message);return}t(f.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(N,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(vh,{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:on({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:gh.map(c=>u("option",{value:jn(c),class:"truncate",children:mh.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(X,{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(X,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},bh=2,wh=({value:e,onValueChange:t})=>{const[n,r]=T(e??""),o=n!==""&&n===e,{t:i}=te();return R(()=>{r(e??"")},[e]),R(()=>{let a=n.trim();if(a.length<=bh&&(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(X,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:Et({"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:on({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:Fe({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(X,{name:"x"})})]})})},xh=({intervalMs:e,strings:t,class:n})=>{const[r,o]=T(0),[i,a]=T(!0),s=[...t,t[0]];return R(()=>{r===s.length&&(a(!1),o(0));const c=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(c)},[r,s.length,e]),u("div",{className:Et("relative h-full w-full overflow-hidden",n),children:u("div",{className:Et("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))})})},$h=(e,t)=>{R(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},qi=3,Ch=({value:e,onValueChange:t,options:n})=>{const[r,o]=T(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=te(),c=i.split("");R(()=>{o(e??"")},[e]);const[d,f]=T(0),l=k(null);return $h(l,h=>{h.target instanceof HTMLInputElement&&f(h.target.scrollLeft)}),R(()=>{let h=r.trim();if(h.length<=qi&&(h=null),h===null){t("");return}const p=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(p)},[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(X,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:Et("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:on({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 p=h.currentTarget.value.trim();o(p)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=qi)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,p)=>u("span",{style:{animationDelay:`${p*300/c.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+p))}):n!=null&&n.suggestions?u(xh,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:Fe({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(X,{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 Eh=Array.isArray,Ao=Eh,Sh=Ao,Oh=Jn,Ah=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Th=/^\w*$/;function kh(e,t){if(Sh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Oh(e)?!0:Th.test(e)||!Ah.test(e)||t!=null&&e in Object(t)}var Ph=kh,Dh=Qs,Rh=Yn,Nh="[object AsyncFunction]",Mh="[object Function]",Lh="[object GeneratorFunction]",Ih="[object Proxy]";function Fh(e){if(!Rh(e))return!1;var t=Dh(e);return t==Mh||t==Lh||t==Nh||t==Ih}var jh=Fh,Vh=Zn,Hh=Vh["__core-js_shared__"],Wh=Hh,Ar=Wh,Ki=function(){var e=/[^.]+$/.exec(Ar&&Ar.keys&&Ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Uh(e){return!!Ki&&Ki in e}var zh=Uh,Bh=Function.prototype,qh=Bh.toString;function Kh(e){if(e!=null){try{return qh.call(e)}catch{}try{return e+""}catch{}}return""}var Gh=Kh,Yh=jh,Zh=zh,Jh=Yn,Xh=Gh,Qh=/[\\^$.*+?()[\]{}|]/g,ev=/^\[object .+?Constructor\]$/,tv=Function.prototype,nv=Object.prototype,rv=tv.toString,ov=nv.hasOwnProperty,iv=RegExp("^"+rv.call(ov).replace(Qh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function av(e){if(!Jh(e)||Zh(e))return!1;var t=Yh(e)?iv:ev;return t.test(Xh(e))}var sv=av;function cv(e,t){return e==null?void 0:e[t]}var lv=cv,uv=sv,dv=lv;function fv(e,t){var n=dv(e,t);return uv(n)?n:void 0}var ic=fv,pv=ic,hv=pv(Object,"create"),Xn=hv,Gi=Xn;function vv(){this.__data__=Gi?Gi(null):{},this.size=0}var gv=vv;function mv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _v=mv,yv=Xn,bv="__lodash_hash_undefined__",wv=Object.prototype,xv=wv.hasOwnProperty;function $v(e){var t=this.__data__;if(yv){var n=t[e];return n===bv?void 0:n}return xv.call(t,e)?t[e]:void 0}var Cv=$v,Ev=Xn,Sv=Object.prototype,Ov=Sv.hasOwnProperty;function Av(e){var t=this.__data__;return Ev?t[e]!==void 0:Ov.call(t,e)}var Tv=Av,kv=Xn,Pv="__lodash_hash_undefined__";function Dv(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kv&&t===void 0?Pv:t,this}var Rv=Dv,Nv=gv,Mv=_v,Lv=Cv,Iv=Tv,Fv=Rv;function Nt(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])}}Nt.prototype.clear=Nv;Nt.prototype.delete=Mv;Nt.prototype.get=Lv;Nt.prototype.has=Iv;Nt.prototype.set=Fv;var jv=Nt;function Vv(){this.__data__=[],this.size=0}var Hv=Vv;function Wv(e,t){return e===t||e!==e&&t!==t}var Uv=Wv,zv=Uv;function Bv(e,t){for(var n=e.length;n--;)if(zv(e[n][0],t))return n;return-1}var Qn=Bv,qv=Qn,Kv=Array.prototype,Gv=Kv.splice;function Yv(e){var t=this.__data__,n=qv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Gv.call(t,n,1),--this.size,!0}var Zv=Yv,Jv=Qn;function Xv(e){var t=this.__data__,n=Jv(t,e);return n<0?void 0:t[n][1]}var Qv=Xv,eg=Qn;function tg(e){return eg(this.__data__,e)>-1}var ng=tg,rg=Qn;function og(e,t){var n=this.__data__,r=rg(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ig=og,ag=Hv,sg=Zv,cg=Qv,lg=ng,ug=ig;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=ag;Mt.prototype.delete=sg;Mt.prototype.get=cg;Mt.prototype.has=lg;Mt.prototype.set=ug;var dg=Mt,fg=ic,pg=Zn,hg=fg(pg,"Map"),vg=hg,Yi=jv,gg=dg,mg=vg;function _g(){this.size=0,this.__data__={hash:new Yi,map:new(mg||gg),string:new Yi}}var yg=_g;function bg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wg=bg,xg=wg;function $g(e,t){var n=e.__data__;return xg(t)?n[typeof t=="string"?"string":"hash"]:n.map}var er=$g,Cg=er;function Eg(e){var t=Cg(this,e).delete(e);return this.size-=t?1:0,t}var Sg=Eg,Og=er;function Ag(e){return Og(this,e).get(e)}var Tg=Ag,kg=er;function Pg(e){return kg(this,e).has(e)}var Dg=Pg,Rg=er;function Ng(e,t){var n=Rg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Mg=Ng,Lg=yg,Ig=Sg,Fg=Tg,jg=Dg,Vg=Mg;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=Lg;Lt.prototype.delete=Ig;Lt.prototype.get=Fg;Lt.prototype.has=jg;Lt.prototype.set=Vg;var Hg=Lt,ac=Hg,Wg="Expected a function";function To(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Wg);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(To.Cache||ac),n}To.Cache=ac;var Ug=To,zg=Ug,Bg=500;function qg(e){var t=zg(e,function(r){return n.size===Bg&&n.clear(),r}),n=t.cache;return t}var Kg=qg,Gg=Kg,Yg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zg=/\\(\\)?/g,Jg=Gg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yg,function(n,r,o,i){t.push(o?i.replace(Zg,"$1"):r||n)}),t}),Xg=Jg;function Qg(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 em=Qg,Zi=Oo,tm=em,nm=Ao,rm=Jn,om=1/0,Ji=Zi?Zi.prototype:void 0,Xi=Ji?Ji.toString:void 0;function sc(e){if(typeof e=="string")return e;if(nm(e))return tm(e,sc)+"";if(rm(e))return Xi?Xi.call(e):"";var t=e+"";return t=="0"&&1/e==-om?"-0":t}var im=sc,am=im;function sm(e){return e==null?"":am(e)}var cm=sm,lm=Ao,um=Ph,dm=Xg,fm=cm;function pm(e,t){return lm(e)?e:um(e,t)?[e]:dm(fm(e))}var hm=pm,vm=Jn,gm=1/0;function mm(e){if(typeof e=="string"||vm(e))return e;var t=e+"";return t=="0"&&1/e==-gm?"-0":t}var _m=mm,ym=hm,bm=_m;function wm(e,t){t=ym(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bm(t[n++])];return n&&n==r?e:void 0}var xm=wm,$m=xm;function Cm(e,t,n){var r=e==null?void 0:$m(e,t);return r===void 0?n:r}var Em=Cm;const Sm=ho(Em),Ut=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),cc=fe({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}}),Om=fe({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"}}),Tr=({job:e,property:t})=>{if(!t)return null;const n=Sm(e.raw,t.key);return t.transform?t.transform(n):n},Am=({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}),Qi=e=>Array.isArray(e)?e:[e],Tm=1e3*60*60*24,lc=({job:e,config:t,onJobClick:n,size:r})=>{var p,g,v;const{t:o}=te(),i=t.subheading?Tr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(y=>Qi(Tr({job:e,property:y}))).filter(Boolean),s=Qi((p=t.overrides)!=null&&p.salary?Tr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",d=(g=t.overrides)!=null&&g.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,f=t.newUnderDays??7,l=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-f*Tm:!1,h=y=>{var m,w;n==null||n(e),(w=(m=t.overrides)==null?void 0:m.onClick)==null||w.call(m,y)};return u("a",{onMouseEnter:(v=t.overrides)==null?void 0:v.onMouseEnter,onClick:h,href:d,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:cc(),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(Am,{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(X,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:Om({size:r}),children:[e.title.trim(),l&&c!=="hide"&&u(N,{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((y,m)=>u("span",{class:xt({variant:"monetaryWeak",size:"xs"}),children:y},m))}),a.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(y=>u("li",{class:xt({size:"xs",class:"max-w-full truncate"}),children:y},y))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(X,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(X,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},ko=({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:cc({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(Ut,{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(Ut,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(Ut,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:xt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(X,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},km=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=te(),i=Math.min(it,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:it}).map((a,s)=>u("li",{children:u(ko,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:Fe({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})]})},Pm=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c})=>u(N,{children:Array.from({length:e.page}).map((d,f)=>{const l=f===e.page-1;return u(zt,{Fallback:Ge,children:u(Dm,{state:e,rpcClient:t,page:f+1,isFirst:f===0,isLast:l,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:c},f)},f)})}),ea=({page:e})=>{const{t}=te();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"})]})},Dm=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:c,onJobClick:d,afterResults:f})=>{const{t:l}=te(),h=n===1?s:void 0,{data:p,error:g,queryState:v,swr:y}=en(Kt(Br({state:e,baseKey:n.toString()}),()=>wa({rpcClient:t,state:e,page:n,t:l}),{...Rn,fallbackData:h}));switch(R(()=>{p&&r&&c&&c({totalCount:p.pagination.total})},[p,r,c]),v){case"idle":return null;case"loading":return u(N,{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(Ut,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:f})]}):u(ea,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:it}).map((m,w)=>u("li",{children:u(ko,{seed:w,animationDelay:(w-it)*.1,config:a})},w))})]});case"error":return u(Ge,{error:new Error(l("jobs_loading_error"),{cause:g}),resetError:()=>y.mutate()});case"revalidating":case"loaded":{if(ra(p.pagination.current_page===n,"Received wrong page from server"),p.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(X,{"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:l("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:l("no_jobs_found_description")})]})]});const m=p.pagination.last_page!==p.pagination.current_page,w=n*it,b=Math.max(p.pagination.total-w,0),_=x=>{d(x,n)};return u(N,{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:l("jobs_found",{count:p.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:f})]}):u(ea,{page:n}),u("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:p.results.map(x=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:v==="revalidating"?.33:1},children:u(lc,{job:x,onJobClick:_,config:a})},x.id))}),m&&o&&u(km,{state:v,fetchNextPage:i,config:a,remainingItems:b})]})}default:mt(v)}},Rm=uo(()=>Promise.resolve().then(()=>require("./map-50bfc50f.cjs")).then(e=>e.Map)),Nm=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a})=>{var g,v;const{t:s}=te(),[c,d]=T(new AbortController),f=rs("(max-width: 767px)"),l=V(y=>{r(y),c.abort(),d(new AbortController)},[r,c]),h=en(Kt(["map",e],()=>Fc({rpcClient:t,state:e,t:s,signal:c.signal}),Rn));if(h.queryState==="error")return u(Ge,{error:new Error(s("jobs_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()});const p=h.queryState==="loaded"||h.queryState==="revalidating";return u(N,{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:p?h.data.results.length!==0&&s("map_jobs_showing",{count:h.data.results.length}):u("div",{class:"animate-skeleton",children:u(Ut,{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:p?u(yt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(Rm,{config:n,mapData:h,autoFit:((g=e.geo)==null?void 0:g.type)!=="bounds",onBoundsChange:l})}):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=h.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(X,{"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:s("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:s("no_jobs_found_description")})]})]}):null,p?h.data.results.map(y=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:h.queryState==="revalidating"?.33:1},children:u(lc,{job:y,onJobClick:m=>i(m,1),config:a,size:f?"sm":void 0})},y.id)):Array.from({length:6}).map((y,m)=>u("li",{children:u(ko,{seed:m,animationDelay:(m-6)*.1,config:a})},m))]})]})]})},ta=fe({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}}),Mm=({value:e,onValueChange:t})=>{const{t:n}=te();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:ta({active:e==="list"}),onClick:()=>t("list"),children:[u(X,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:ta({active:e==="map"}),onClick:()=>t("map"),children:[u(X,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},Lm=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(Mm,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(Pm,{afterResults:n,...e}):u(Nm,{...e,afterResults:n})},Vn=(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:mt(r.select)}return n},{}),An=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)),na=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Im=({rpcClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var C,S,P,I,j;const{t:s}=te(),c=k(null),d=Z(()=>Vn(n,"defaultValue"),[n]),[f,l]=T(!0),[h,p]=T(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[g,v]=T(0),{onJobClick:y,analyticsPaginate:m}=Fm({appRef:c,analytics:r,state:h,hasInteracted:!f,totalCount:g,defaultFilters:d}),w=V(D=>{p(A=>{if(A.page===D)return A;const M={...A,page:D};return i==null||i(M),M}),m(D)},[m,i]),b=V(D=>{p(A=>{const M={...A,view:D};return i==null||i(M),M})},[i]),_=V(D=>{p(A=>{var L;if(!A.query&&!D||A.query===D)return A;l(!1);const M=na(A.geo),Y={...A,query:D,geo:M,page:1,mode:(L=a.naturalLanguageSearch)!=null&&L.enabled?"vector":"query"};return i==null||i(Y),Y})},[i,(C=a.naturalLanguageSearch)==null?void 0:C.enabled]),x=V(D=>{l(!1),p(A=>{const M={...A,geo:D};return i==null||i(M),M})},[i]),$=V(()=>{p(D=>{const A={...D,filters:Vn(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(A),A})},[i,n]),E=Z(()=>(e.environment,new Map),[e.environment]);return u(Hl,{value:{provider:()=>E},children:u("div",{ref:c,class:Et("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(S=a.theme.accessibility)==null?void 0:S.reducedMotion},zr(a.theme)),children:[u(zt,{Fallback:Ge,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(Ch,{value:h.query,onValueChange:_,options:a.naturalLanguageSearch}):a.enableKeywordSearch?u(wh,{value:h.query,onValueChange:_}):null]}),(I=a.geolocation)!=null&&I.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(yh,{value:h.geo,onValueChange:D=>{l(!1),p(A=>{const M={...A,geo:D,page:1};return i==null||i(M),M}),m(1)},logger:t})]}):null]})}),u(op,{state:h,onFilterValueChange:(D,A)=>{l(!1),p(M=>{const Y={...M.filters,[D]:A},L=na(M.geo),q={...M,filters:Y,geo:L,page:1};return i==null||i(q),q}),m(1)},onResetFilters:$,properties:n,rpcClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(zt,{Fallback:Ge,children:u(Lm,{state:h,rpcClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:f?o==null?void 0:o.jobs:void 0,onResultsUpdate:D=>{v(D.totalCount)},onJobClick:y,onPaginate:w,mode:(j=a.naturalLanguageSearch)!=null&&j.enabled?"vector":"query",onGeoChange:x,onViewChange:b})}),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]})]})})},Fm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=V((d=1)=>({query:n.query,mode:n.mode,filters:An(n.filters),default_filters:An(r),total_count:o,page_size:it,page:d}),[n.query,n.mode,n.filters,r,o]);return Wl(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),R(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(An(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,f)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(f)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.D=Ct;exports.E=ro;exports.ErrorBoundary=zt;exports.IconSpritesheet=Zc;exports.JOB_SEARCH_WIDGET_ID=Tc;exports.JobSearch=Im;exports.TranslationProvider=Bc;exports.UnstyledErrorView=Gc;exports._=k;exports.commonjsGlobal=Ht;exports.createTFunction=qc;exports.filtersToPayload=An;exports.generateColorThemeCss=Jl;exports.getDefaultExportFromCjs=ho;exports.getGeolocationFromSearchParams=rc;exports.getJobSearchResults=wa;exports.getModeFromSearchParams=tc;exports.getStatefulPropertiesFromSearchParams=ec;exports.getViewFromSearchParams=nc;exports.getWidgetStateFromSearchParams=rh;exports.h=T;exports.invariant=ra;exports.k=N;exports.o=u;exports.p=R;exports.setWidgetStateToSearchParams=oh;exports.useDebouncedValue=oc;exports.useTranslation=te;exports.y=O;
|