@hublo/mstaff-client-sdk 0.2.77 → 0.2.78

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.
Files changed (3) hide show
  1. package/dist/core.cjs +2 -2
  2. package/dist/core.js +1589 -1169
  3. package/package.json +1 -1
package/dist/core.cjs CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";var Xe=Object.defineProperty;var Ye=(e,t,i)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var C=(e,t,i)=>(Ye(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("vue"),et=require("axios"),tt=require("pinia"),nt=require("@vueuse/core");function it(e){return L.getCurrentScope()?(L.onScopeDispose(e),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;/*!
1
+ "use strict";var Jt=Object.defineProperty;var Zt=(e,t,i)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var k=(e,t,i)=>(Zt(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),Xt=require("axios"),Yt=require("pinia"),en=require("@vueuse/core");function tn(e){return C.getCurrentScope()?(C.onScopeDispose(e),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;/*!
2
2
  * cookie
3
3
  * Copyright(c) 2012-2014 Roman Shtylman
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
- */var de=rt,se=ot,st=Object.prototype.toString,z=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function rt(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||at,a=0;a<e.length;){var u=e.indexOf("=",a);if(u===-1)break;var m=e.indexOf(";",a);if(m===-1)m=e.length;else if(m<u){a=e.lastIndexOf(";",u-1)+1;continue}var l=e.slice(a,u).trim();if(i[l]===void 0){var r=e.slice(u+1,m).trim();r.charCodeAt(0)===34&&(r=r.slice(1,-1)),i[l]=lt(r,s)}a=m+1}return i}function ot(e,t,i){var n=i||{},s=n.encode||ct;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!z.test(e))throw new TypeError("argument name is invalid");var a=s(t);if(a&&!z.test(a))throw new TypeError("argument val is invalid");var u=e+"="+a;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(n.domain){if(!z.test(n.domain))throw new TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!z.test(n.path))throw new TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var l=n.expires;if(!ut(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority){var r=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(r){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u}function at(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function ct(e){return encodeURIComponent(e)}function ut(e){return st.call(e)==="[object Date]"||e instanceof Date}function lt(e,t){try{return t(e)}catch{return e}}function dt(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function mt(e){return typeof e=="string"?de(e):typeof e=="object"&&e!==null?e:{}}function K(e,t={}){const i=ft(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function ft(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class pt{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=de(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=mt(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=dt()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:K(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),K(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=K(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,s,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function ht(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new pt){const s=i?[...e||[]]:e;let a=n.getAll({doNotParse:!0});const u=L.ref(0),m=()=>{const l=n.getAll({doNotParse:!0});yt(s||null,l,a)&&u.value++,a=l};return n.addChangeListener(m),it(()=>{n.removeChangeListener(m)}),{get:(...l)=>(i&&s&&!s.includes(l[0])&&s.push(l[0]),u.value,n.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(u.value,n.getAll({doNotParse:t,...l[0]})),set:(...l)=>n.set(...l),remove:(...l)=>n.remove(...l),addChangeListener:(...l)=>n.addChangeListener(...l),removeChangeListener:(...l)=>n.removeChangeListener(...l)}}function yt(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const gt=()=>{let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},me=(e,t)=>H(e,fe(t)),H=(e,t)=>{const i={};return re(t).forEach(n=>i[n]=H(e==null?void 0:e[n],t[n])),"$item"in t&&(e==null||e.forEach((n,s)=>i[s]=H(n,t.$item))),i.$valid=(!t.$asserts||t.$asserts.every(n=>n(e)))&&re(i).every(n=>i[n].$valid),i},fe=e=>ge(Object.entries(e).reduce((t,[i,n])=>(t[`${i.replaceAll(".[]",".$item")}${i.length?".":""}$asserts`]=Array.isArray(n)?n:[n],t),{})),bt=(e,t,i)=>(e=JSON.parse(JSON.stringify(e)),te(e).forEach(s=>{const a=s.replace(/\.[0-9]+/g,".[]");O(t,`${s}.$valid`)===!1&&i[a]!==void 0&&N(e,s,i[a])}),e),re=e=>Object.keys(e).filter(t=>!t.startsWith("$")),wt=e=>typeof e=="boolean",At=e=>typeof e=="number",vt=e=>typeof e=="string",j=e=>Array.isArray(e),B=e=>typeof e=="object"&&!j(e)&&e!==null,Rt=e=>e instanceof Date,Pt=e=>typeof e=="function",pe=e=>e===null,he=e=>e===void 0,ye=e=>pe(e)||he(e),Et=e=>!ye(e),kt=e=>!!e,It=e=>!e,Ct=(e,t)=>j(e)&&e.every(i=>t(i)),St=(e,t)=>B(e)&&Object.values(e).every(i=>t(i)),Ot=(e,t)=>me(e,t).$valid,$t=(e,t,i=!1)=>{j(t)||(t=[t]);let n=e;for(;n;){if(n.classList&&t[i?"every":"some"](s=>n.classList.contains(s)))return!0;n=n.parentElement}return!1},Tt=()=>typeof window<"u"&&typeof window.document<"u",T=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,O=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const a=m=>m!=null,u=m=>typeof m=="object";for(const[m,l]of n.entries()){if(!a(s))return i;if(m===n.length-1)return a(s[l])?s[l]:i;if(!u(s[l]))return i;s=s[l]}return i},N=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=m=>typeof m=="number"||/^\d$/g.test(m),a=m=>parseInt(m,10);let u=e;return n.forEach((m,l)=>{if(l===n.length-1)u[m]=i;else{const r=s(n[l+1])?[]:{};m=s(m)?a(m):m,u[m]=u[m]??r,u=u[m]}}),e},ge=(e,t={})=>{const i=B(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s);return t},Lt=(e,t={})=>{const i=B(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s(t,n));return t},be=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},ee=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=ee(i[n],s):i[n]=be(s);return i},te=(e,t=()=>!0,i="")=>{const n=[];for(const s in e){const a=e[s],u=i?`${i}.${s}`:s;t(s,u,a)&&(n.push(u),(B(a)||j(a))&&n.push(...te(a,t,u)))}return n},Nt=e=>e.startsWith("http:")?e.replace("http:","https:"):e,Mt=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,we=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,oe=()=>{const e=we();return!e||e==="localhost"?e:`.${e}`},Dt=()=>({path:"/"}),xt=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),J=e=>{if(!(T()||!e))return e.startsWith("localhost")?Dt():xt(e)};function Ae(){const e=ht(),t=a=>e.get(a),i=(a,u)=>e.set(a,u,J(oe())),n=a=>{e.remove(a),e.remove(a,J(we())),e.remove(a,J(oe()))};return{getItem:t,setItem:i,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(a=>n(a))}}let U=null;function _(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=Ae()){if(U)return U;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){return t.getItem(e.expiration)}function a(p,h){const b=c(p);if(!b.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,p),t.setItem(e.refresh,h),t.setItem(e.expiration,((b.exp-60)*1e3).toString())}function u(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return l()&&!r()}function l(){return!!i()}function r(){const p=s();return p?new Date(p)<new Date:!0}function c(p){return JSON.parse(atob(p.split(".")[1]))}function f(){return t}return U={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:s,authenticate:a,clear:u,isAuthenticated:m,hasAuth:l,isExpired:r,getStorage:f},U}function _t(e){let t={"Content-Type":"application/json"};e&&i(e);function i(b,w=!1){return t=w?b:{...t,...b},this}function n(){return t}function s(b,w){return t[b]=w,this}function a(b){return t[b]}function u(b){return t[b]&&delete t[b],this}function m(b){return s("Authorization","Bearer "+b),this}function l(){return u("Authorization"),this}function r(){return!!a("Authorization")}function c(){return s("Content-Type","multipart/form-data"),this}function f(){return s("Content-Type","application/json"),this}function p(){return a("Content-Type")==="multipart/form-data"}function h(){return a("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:s,getHeader:a,removeHeader:u,setAuthorization:m,removeAuthorization:l,hasAuthorization:r,setFormData:c,setJson:f,isFormData:p,isJson:h}}function jt(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function Bt(e,t,i){let n=null;i&&s(i);function s(r){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return r instanceof FormData?t.setFormData():u(r)&&(r=m(r),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),r.append("_method","PUT")),n=r,this}function a(){return n}function u(r){for(const c in r){const f=r[c];if(l(f))return!0;if(typeof f=="object"&&u(f))return!0}return!1}function m(r,c=null,f=0){const p=!c;p&&(c=new FormData);for(const h in r){const b=r[h];l(b)?(r[h]="<<FileIndex:"+f+">>",c.append(f,b,b.name),f++):typeof b=="object"&&(r[h]=m(r[h],c,f))}return p?(c.append("payload",JSON.stringify(r)),c):r}function l(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob}return{setPayload:s,getPayload:a}}const k=class k{constructor(t={}){C(this,"level",3);C(this,"logger");C(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=k.LEVEL_DEBUG&&V(this.logger.debug,this.prefix,t)}info(...t){this.level<=k.LEVEL_INFO&&V(this.logger.info,this.prefix,t)}warn(...t){this.level<=k.LEVEL_WARN&&V(this.logger.warn,this.prefix,t)}error(...t){this.level<=k.LEVEL_ERROR&&V(this.logger.error,this.prefix,t)}};C(k,"LEVEL_DEBUG",0),C(k,"LEVEL_INFO",1),C(k,"LEVEL_WARN",2),C(k,"LEVEL_ERROR",3),C(k,"LEVEL_OFF",4);let Q=k;const V=(e,t,i)=>{t?e(t,...i):e(...i)},A=new Q({prefix:"[SDK]"});let ve=null,Re=null,Pe=null,Ee="/",ke=null;const zt=()=>ve,Ut=e=>{if(A.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");ve=e},Vt=()=>Re,Ft=e=>{if(A.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Re=e},qt=()=>ke,Ht=e=>{ke=e},Qt=()=>Pe,Gt=e=>{if(A.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Pe=e},Kt=e=>{A.info("[Config] Base Assets Urls:",e),Ee=e},Jt=()=>Ee,$={getEnvironment:zt,getApiHost:Vt,getErrorHandler:qt,setEnvironment:Ut,setApiHost:Ft,setErrorHandler:Ht,getMainAppHost:Qt,setMainAppHost:Gt,setBaseAssetsUrl:Kt,getBaseAssetsUrl:Jt};function Wt(e){const t=$.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&m(e);function a(){return t+l()+h()}function u(){return l(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function l(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(E,I)=>P?"*":s[I]||":"+I):i}function r(d){return n=d,this}function c(d,P){return n[d]=P,this}function f(d){return n[d]&&delete n[d],this}function p(){return Object.keys(n).length>0}function h(d=!0){if(!p())return"";let P="";for(const E in n)if(Array.isArray(n[E]))for(const I of n[E])P+=(P.length?"&":"")+`${E}[]=`+I;else P+=(P.length?"&":"")+E+"="+n[E];return(d?"?":"")+P}function b(d){return s=d,this}function w(d,P){return s[d]=P,this}function S(d){return s[d]&&delete s[d],this}return{setPath:m,getPath:l,getUri:a,getMockUri:u,setQueryParams:r,setQueryParam:c,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:b,setRouteParam:w,removeRouteParam:S}}function Zt(e){let t=[];function i(){return t=r(arguments),u(),this}function n(){return t.length>0}function s(c){return t.includes(c.trim())?this:(t.push(c.trim()),u(),this)}function a(c){const f=t.indexOf(c.trim());return f===-1?this:(t.splice(f,1),u(),this)}function u(){t.length?e.setQueryParam("groups",l(t)):e.removeQueryParam("groups")}function m(c){return c.split(",").map(f=>f.trim())}function l(c){return c.join(",")}function r(c){let f=[];return c.length===1?typeof c[0]=="string"?f=m(c[0]):Array.isArray(c[0])&&(f=c[0]):f=Array.from(c),f}return{setGroups:i,hasGroups:n,addGroup:s,removeGroup:a}}function Xt(e){let t=!1,i=!1,n=1,s=10;function a(){return t=!0,u(),this}function u(){i=!0;const h=p(arguments);return r(h.page||1,!1),c(h.perPage||s,!1),f(),this}function m(){return i=!1,f(),this}function l(){return i}function r(h,b=!0){return t=!0,i=!0,n=h,b&&f(),this}function c(h,b=!0){return t=!0,i=!0,s=h,b&&f(),this}function f(){t?l()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function p(h){if(h.length===1&&typeof h[0]=="object")return h[0];const b={};return h.length>=1&&(b.page=h[0]),h.length>=2&&(b.perPage=h[1]),b}return{isList:a,paginate:u,disablePagination:m,hasPagination:l,setPage:r,setPerPage:c}}function Yt(e){let t=!1,i="id",n="ASC";function s(){t=!0;const c=r(arguments);return c.orderBy&&u(c.orderBy,!1),c.orderDir&&m(c.orderDir,!1),l(),this}function a(){return t}function u(c,f=!0){return t=!0,i=c,f&&l(),this}function m(c,f=!0){if(c=c.toUpperCase(),["ASC","DESC"].indexOf(c)===-1)throw new Error("Invalid order direction");return t=!0,n=c,f&&l(),this}function l(){a()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function r(c){if(c.length===1&&typeof c[0]=="object")return c[0];const f={};return c.length>=1&&(f.orderBy=c[0]),c.length>=2&&(f.orderDir=c[1]),f}return{setOrder:s,hasOrder:a,setOrderBy:u,setOrderDir:m}}function en(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function tn(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function i(){return e}return{setResponseType:t,getResponseType:i}}function nn(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function sn(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&$.getErrorHandler()&&$.getErrorHandler()(e),{sent:i,responded:n,error:e}}function rn(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function a(){return s()?e.data["hydra:member"]:null}function u(){return s()?e.data["hydra:totalItems"]:null}function m(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function l(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function r(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:a,getTotal:u,hasPagination:m,getPage:l,getPages:r}}function on(e,t,i,n,s,a){async function u(){const l=i.getMethod(),r=t.getUri(),c=e.getHeaders(),f=n.getPayload(),p=[r];["post","put","patch"].includes(l)&&p.push(f||{}),p.push({headers:c,responseType:a.getResponseType()}),A.info("[Request] Sending request:",`[${l.toUpperCase()}]`,r);try{const h=await et[l](...p);return m(h)}catch(h){throw sn(h,s.isSilent())}}function m(l){if(l.headers){const r=Object.keys(l.headers),c=r.map(f=>f.toLowerCase()).indexOf("content-type");if(c!==-1&&l.headers[r[c]].includes("application/ld+json"))return rn(l)}return nn(l)}return{send:u}}function R(e,t="get",i=null){const n=_t(),s=Wt(e),a=jt(t),u=Bt(a,n,i),m=Zt(s),l=Xt(s),r=Yt(s),c=en(),f=tn(),p=on(n,s,a,u,c,f);return{...n,...s,...a,...u,...m,...l,...r,...c,...f,...p}}function y(e,t="get",i=null){const n=R(e,t,i),s=_();s.isAuthenticated()&&n.setAuthorization(s.getAuthToken());const a=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},n}const an=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),cn=()=>({listByCandidateAndEstablishment:an}),un=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),ln=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),dn=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),mn=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),fn=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),pn=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),hn=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(i),yn=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),gn=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),bn=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),wn=()=>({share:un,isArchived:ln,archive:dn,unarchive:mn,lookupCandidate:fn,createCandidate:pn,updateCandidate:hn,closeIncompleteRegistration:yn,openNewRegistration:gn,updateInvitation:bn}),An=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),vn=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),Rn=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Pn=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),En=()=>({getForEstablishmentCandidate:An,postForEstablishmentCandidate:vn,update:Rn,remove:Pn}),kn=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),In=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Cn=()=>({list:kn,listByEstablishment:In}),Sn=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),On=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),$n=()=>({list:Sn,markAsSeen:On}),Tn=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),Ln=()=>({syncCandidateLabels:Tn}),Nn=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Mn=()=>({list:Nn}),Dn=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),xn=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),_n=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),jn=e=>y("document/recruiter").setMethod("post").setPayload(e),Bn=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),zn=()=>({listByCandidate:Dn,listByCandidateAndEstablishmentFromRecruiter:xn,listByCandidateAndEstablishmentFromCandidate:_n,addFromRecruiter:jn,remove:Bn}),Un=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Vn=()=>({listByCandidateAndEstablishment:Un}),Fn=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),qn=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Hn=()=>({sendToCandidate:Fn,sendToRecipients:qn}),Qn=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},Gn=()=>y("/v2/self/email-templates").isList().disablePagination(),Kn=()=>({listByEstablishment:Qn,listSelf:Gn}),Jn=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Wn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Zn=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Xn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Yn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),ei=()=>({readById:Jn,readByState:Wn,upsert:Zn,uploadLogoAndBanner:Xn,publish:Yn}),ti=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),ni=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),ne=()=>({read:ti,authorizations:ni}),ii=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),si=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),ri=()=>({maintenanceModeEnabled:ii,forEstablishment:si}),oi=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),ai=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),ci=()=>({list:oi,listByEstablishment:ai}),ui=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),li=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),di=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),mi=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),fi=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),pi=()=>({listByEstablishment:ui,addToEstablishment:li,update:di,remove:mi,syncForCandidate:fi}),hi=e=>R("offer/:offerId").setRouteParams({offerId:e}),yi=()=>({read:hi}),gi=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},bi=()=>({listByEstablishment:gi}),wi=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),Ai=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),vi=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ri=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Pi=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ei=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),ki=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Ii=()=>({read:wi,mineByEstablishment:Ai,mineWithoutCandidate:vi,mineWithCandidate:Ri,withCandidate:Pi,addCandidates:Ei,removeCandidate:ki}),Ci=(e,t,i,n=null)=>{const s=R("candidate/register/open").setMethod("post"),a={email:e};return t==="establishment"&&(a.establishmentId=i),t==="offer"&&(a.offerId=i),n&&(a.referer=n),s.setPayload(a),s},Si=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Oi=e=>R("candidate/register/read/:token").setRouteParams({token:e}),$i=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Ti=()=>({open:Ci,update:Si,read:Oi,close:$i}),Li=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Ni=()=>({lookupEstablishment:Li}),Mi=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Di=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),xi=()=>({list:Mi,listByEstablishment:Di}),_i=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),ji=()=>({listByEstablishment:_i}),Bi=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),zi=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Ui=()=>({lookupTalent:Bi,addCandidateToTalentPool:zi}),Vi=e=>R("user/email/isset/:email").setRouteParams({email:e}),Fi=()=>y("user/self").addGroup("user:self"),qi=e=>y("/user/:uuid").setRouteParams({uuid:e}),Hi=e=>R("/user/:uuid").setRouteParams({uuid:e}),Qi=e=>y("/user/:id/uuid").setRouteParams({id:e}),ie=()=>({emailExists:Vi,self:Fi,byUuidPrivate:qi,byUuid:Hi,fetchUuid:Qi});let F;function Ie(){if(F)return F;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const r=(await ie().self().send()).getData();e.user={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,avatar:r.avatar},e.roles=r.roles},i=async r=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[r]=(await ne().authorizations(r).send()).getData()},n=r=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(r)};return F={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(r,...c)=>{const f=e.establishments[r];if(f===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${r}`);return c.every(p=>f[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},F}async function Gi(e,...t){if(!_().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=Ie();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const a=t[s];if(!n.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const Ki=tt.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await ie().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await ne().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let D=null;function g(){if(D)return D;const e=$.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function a(){return i}function u(){const p=window.analytics=window.analytics||[];if(!p.initialize&&p.invoked)A.error("Segment snippet included twice.");else{p.invoked=!0,p.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],p.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const b=Array.prototype.slice.call(arguments);return b.unshift(h),p.push(b),p}};for(let h=0;h<p.methods.length;h++){const b=p.methods[h];p[b]=p.factory(b)}p.load=function(h,b){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const S=document.getElementsByTagName("script")[0];S.parentNode.insertBefore(w,S),p._loadOptions=b},p._writeKey=t,p.SNIPPET_VERSION="4.16.1",p.load(t),p.page(),p.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function m(){return s!==null||(s=new Promise((p,h)=>{if(!a())return f("Analytics is disabled."),p();if(window.addEventListener("analytics-ready",()=>{f("Analytics script loaded successfully."),p()}),window.addEventListener("analytics-error",()=>{f("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),f("Loading Analytics script."),window.analytics)return p();u()})),s}async function l(p,h){if(!T())try{if(await this.analyticsScriptReady(),f("[identify]",[p,h]),a())return window.analytics.identify(p,h)}catch{f("[identify]",[p,h],"error")}}async function r(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[page]",[p,h,b]),a())return window.analytics.page(p,{category:h,...b})}catch(w){console.log(w),f("[page]",[p,h,b],"error")}}}async function c(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[track]",[p,h,b]),a())return window.analytics.track(p,{category:h,...b})}catch{f("[track]",[p,h,b],"error")}}}function f(p,h=[],b="info"){h||(h=[]),n&&A[b](`::SDK Analytics:: ${p}`,...h)}return D={analyticsScriptReady:m,isEnabled:a,identify:l,page:r,track:c,consoleMessage:f},D}g.destroy=()=>D=null;function Ce(){const e="Hubler Application";function t(r){if(!r)throw new Error(`Missing arguments for domain "${e}"`);const c=!!r.offerId;if(c&&!r.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:r.establishmentId?r.establishmentId.toString():null,jobOfferId:c?r.offerId.toString():null,recruitmentId:c?r.recruitmentId.toString():null,selections:[c?"Application":"Spontaneous Application"]}}async function i(r){return g().page("Application Authentication Viewed",e,t(r))}async function n(r){return g().page("Application Magic Link Viewed",e,t(r))}async function s(r){return g().page("Application Job Viewed",e,t(r))}async function a(r){return g().page("Application Information Viewed",e,t(r))}async function u(r){return g().page("Application Document Viewed",e,t(r))}async function m(r){return g().page("Application Success Viewed",e,t(r))}async function l(r){if(!r.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(r),error:r.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:a,applicationDocumentViewed:u,applicationSuccessViewed:m,applicationFormFailed:l}}function Se(){const e="Profile";function t(d,P){var I;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const E={companyId:d.companyId?d.companyId.toString():null,hublerId:(I=d.hublerId)==null?void 0:I.toString()};return P&&(E.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(E.recruitmentId=d.recruitmentId.toString()),d.selections&&(E.selections=d.selections),d.institutionId&&(E.institutionId=d.institutionId.map(String)),E}async function i(d){return g().track(d.name,e,t(d.properties),!0)}async function n(d){return g().track(d.name,e,t(d.properties,!0))}async function s(d){return g().track(d.name,e,t(d.properties,!0))}async function a(d){return g().track(d.name,e,t(d.properties,!0))}async function u(d){return g().track(d.name,e,t(d.properties,!0))}async function m(d){return g().track(d.name,e,t(d.properties,!0))}async function l(d){return g().track(d.name,e,t(d.properties,!0))}async function r(d){return g().track(d.name,e,t(d.properties,!0))}async function c(d){return g().track(d.name,e,t(d.properties,!0))}async function f(d){return g().track(d.name,e,t(d.properties,!0))}async function p(d){return g().track(d.name,e,t(d.properties,!0))}async function h(d){return g().track(d.name,e,t(d.properties,!0))}async function b(d){return g().track(d.name,e,t(d.properties,!0))}async function w(d){return g().page(d.name,d.properties.category,t(d.properties,!1))}async function S(d){return g().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:s,profileShared:a,profileArchived:u,profileCandidateAdded:m,profileCommentAdded:l,profileDocumentAdded:r,profileDocumentDownloaded:c,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:b,profileViewed:w,profileEmailSent:S}}function Oe(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const s={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(s.institutionId=[n.institutionId.toString()]),n.origin&&(s.origin=n.origin.toString()),s}async function i(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:i}}function $e(){const e="Visual Builder";function t(o,Ze){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const M={companyId:o.companyId?o.companyId.toString():null};return Ze&&(M.productId=o.companyId?o.companyId+"_2":null),o.selections&&(M.selections=o.selections),o.error&&(M.error=o.error),o.institutionId&&(M.institutionId=[o.institutionId.toString()]),M}async function i(o){return g().page(o.name,e,t(o.properties,!0))}async function n(o){return g().track(o.name,e,t(o.properties),!0)}async function s(o){return g().track(o.name,e,t(o.properties,!0))}async function a(o){return g().page(o.name,e,t(o.properties,!0))}async function u(o){return g().page(o.name,e,t(o.properties,!0))}async function m(o){return g().track(o.name,e,t(o.properties,!0))}async function l(o){return g().page(o.name,e,t(o.properties,!0))}async function r(o){return g().page(o.name,e,t(o.properties,!0))}async function c(o){return g().page(o.name,e,t(o.properties,!0))}async function f(o){return g().track(o.name,e,t(o.properties,!0))}async function p(o){return g().page(o.name,e,t(o.properties,!0))}async function h(o){return g().page(o.name,e,t(o.properties,!0))}async function b(o){return g().track(o.name,e,t(o.properties,!0))}async function w(o){return g().track(o.name,e,t(o.properties,!0))}async function S(o){return g().page(o.name,e,t(o.properties,!0))}async function d(o){return g().page(o.name,e,t(o.properties,!0))}async function P(o){return g().page(o.name,e,t(o.properties,!0))}async function E(o){return g().page(o.name,e,t(o.properties,!0))}async function I(o){return g().page(o.name,e,t(o.properties,!1))}async function _e(o){return g().track(o.name,e,t(o.properties,!0))}async function je(o){return g().track(o.name,e,t(o.properties,!0))}async function Be(o){return g().track(o.name,e,t(o.properties,!0))}async function ze(o){return g().track(o.name,e,t(o.properties,!0))}async function Ue(o){return g().track(o.name,e,t(o.properties,!0))}async function Ve(o){return g().track(o.name,e,t(o.properties,!0))}async function Fe(o){return g().track(o.name,e,t(o.properties,!0))}async function qe(o){return g().track(o.name,e,t(o.properties,!0))}async function He(o){return g().track(o.name,e,t(o.properties,!0))}async function Qe(o){return g().track(o.name,e,t(o.properties,!0))}async function Ge(o){return g().track(o.name,e,t(o.properties,!0))}async function Ke(o){return g().track(o.name,e,t(o.properties,!0))}async function Je(o){return g().track(o.name,e,t(o.properties,!0))}async function We(o){return g().page(o.name,e,t(o.properties,!1))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:a,setupCandidateInformationViewed:u,setupContactAdded:m,setupContactViewed:l,setupEditionDoneViewed:r,setupExternalLinkViewed:c,setupImageUploaded:f,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:b,setupPresentationNewTabAdded:w,setupPresentationViewed:S,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:E,visualBuilderViewed:I,setupImageUploadFailed:_e,fastCopyLinkClicked:je,setupBenefitCustomDeleted:Be,setupBenefitCustomEdited:ze,setupContactDeleted:Ue,setupContactEdited:Ve,setupContactNewClicked:Fe,setupPresentationContentDeleted:qe,setupPresentationContentDuplicated:He,setupPresentationContentMoved:Qe,setupPresentationTabDeleted:Ge,setupPresentationTabEdited:Ke,setupPresentationTabMoved:Je,setupSEOViewed:We}}const ae=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:Ce,useAnalyticsProfile:Se,useAnalyticsRecruitment:Oe,useAnalyticsVisualBuilder:$e},Symbol.toStringTag,{value:"Module"}));function Ji(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}let q=null;const Wi=async(e,t)=>{try{return await G(),A.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{A.error("[identify]",[e,t])}},Zi=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[page]",[e,t,i]),window.analytics.page(e,{category:t,...i})}catch{A.error("[page]",[e,t,i])}},Xi=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[track]",[e,t,i]),window.analytics.track(e,{category:t,...i})}catch{A.error("[track]",[e,t,i])}},Z=()=>{const e=$.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Te=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)A.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const i=Array.prototype.slice.call(arguments);return i.unshift(t),e.push(i),e}};for(let t=0;t<e.methods.length;t++){const i=e.methods[t];e[i]=e.factory(i)}e.load=function(t,i){const n=document.createElement("script");n.id="analytics-script",n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",n.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s),e._loadOptions=i},e._writeKey=Z(),e.SNIPPET_VERSION="4.16.1",e.load(Z()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},G=()=>(q!==null||(q=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{A.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{A.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),A.info("Loading Analytics script."),window.analytics)return e();Te()})),q),Yi={key:Z,appendScript:Te,ready:G,identify:Wi,page:Zi,track:Xi},es="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let Le=!1;const Ne=()=>new Promise(e=>{T()||Le||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),is())}),ts=(e,t)=>Ne().then(()=>{T()||ns(e,t)}),ns=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},is=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+es+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),Le=!0},ss={scriptReady:Ne,autocompleteInput:ts},rs={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},os={fr:rs};let X=null;const Me=()=>X,as=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,s=ee(os,(e==null?void 0:e.messages)||{}),a=(l,r)=>{const c=O(s,`${t}.${l}`);return c?r?cs(c,r):c:l},u=(l,r)=>{const c=O(s,`${t}.${l}`);return c?us(c,r):l};return X={t:a,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=a,l.config.globalProperties.$tNode=u}},X},cs=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>O(t,n)):null,us=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>ce.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const u={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((r,c)=>(c[3]===void 0?N(r,c[1],O(t,c[1])):N(r,c[1],O(t,c[3])),r),u),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((r,c)=>{let f=c[2];return new RegExp(/^[0-9]*$/).exec(c[2])?f=parseInt(c[2]):new RegExp(/^(true|false)$/).exec(c[2])&&(f=c[2]==="true"),r[c[1]]=f,r},u)),m=>ce[s](a,t,m,u)});return{setup:(n,{slots:s})=>()=>i.map(a=>a(s))}},ce={slot:(e,t,i,n)=>L.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>L.h("span",{class:"node node--variable"},O(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function ls(e){const{t}=Me(),i={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return nt.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function ds(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function s(){return e.action}function a(){return e.arguments}function u(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((l,r)=>{const c=r.split("=");return c[0]==="controller"||c[0]==="action"?l[c[0]]=decodeURIComponent(c[1]):l.arguments[c[0]]=decodeURIComponent(c[1]),l},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:a,hasAction:u}}function ms(){async function e({domain:n,event:s,...a}){const u="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(u))throw new Error(`Domain ${n} is not defined`);const m=ae[u]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](a)}function t(n){return!!ae[n]}function i(n,s){return!!n[s]}return{call:e}}const ue=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:ms},Symbol.toStringTag,{value:"Module"}));function fs(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const s=ue[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in ue}function n(s){return e.getAction()in s}return{dispatch:t}}function ps(){let e=!1;function t(s,a,u){n(),u()}function i(s,a,u){if(!e)return e=!0,t(s,a,u);u()}function n(){const s=ds();if(!s.hasAction())return;fs(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const De=(e,t,i)=>{const n={};for(const s of e)t.query[s]!==void 0&&(n[s]=t.query[s]);if(Object.keys(n).length){const s=JSON.parse(JSON.stringify(t));for(const a in n)delete s.query[a];i.replace(s)}return n},hs=(e,t,i)=>De([e],t,i)[e],ys=()=>({getAssetUrl:t=>`${$.getBaseAssetsUrl()}${t}`}),v=()=>$.getMainAppHost(),gs=()=>`${v()}/rh/establishments`,bs=e=>`${v()}/rh/establishment/${e}`,ws=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},As=()=>`${v()}/rh/dashboard`,vs=e=>`${v()}/candidate-invite/establishment/${e}`,Rs=(e,t=!1)=>t?`${v()}/cvbank/${e}`:`${v()}/rh/establishment/${e}/cvtheque`,Ps=(e,t)=>`${v()}/user-profile/establishment/${e}/user/${t}`,Es=e=>`${v()}/rh/establishment/${e}/recruitment`,ks=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}`,Is=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}/kanban`,Cs=e=>`${v()}/rh/establishment/${e}/career-configuration`,Ss=(e,t=null)=>t?`${v()}/career-website/${e}/${t}`:`${v()}/career-website/${e}`,Os=(e,t)=>`${v()}/career-website-preview/${e}/${t}`,$s=(e,t=null)=>{const i=v().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},Ts=e=>`${v()}/rh/establishment/${e}/stats`,Ls=e=>`${v()}/rh/establishment/${e}/backoffice`,Ns=()=>`${v()}/rh/settings/general`;function Ms(){return{root:v,establishments:gs,establishment:bs,img:ws,dashboard:As,candidateInvite:vs,cvtheque:Rs,userProfile:Ps,recruitments:Es,recruitment:ks,recruitmentKanban:Is,career:Cs,careerConfig:Ss,careerPreview:Os,careerWebsite:$s,statistics:Ts,backoffice:Ls,userSettings:Ns}}const le=new Set;let x,Y={ignore:e=>e.startsWith("Ui")};const W=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)x.has(t)||le.has(t)||Y.ignore(t)||(le.add(t),A.error(`Undefined CSS class: ${t}`))}},xe=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)xe(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)x.add(s.substr(1))}},Ds=(e={})=>{if(x)return x;x=new Set,Y={...Y,...e},xe(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){W(s);for(const a of s.querySelectorAll("*"))W(a)}}else(n==null?void 0:n.attributeName)==="class"&&W(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},xs="0.2.76";exports.Analytics=Yi;exports.BaseLogger=Q;exports.Gmap=ss;exports.SDKConfig=$;exports.SDKLogger=A;exports.VERSION=xs;exports._clone=be;exports._get=O;exports._map=Lt;exports._merge=ee;exports._pathList=te;exports._set=N;exports._setMany=ge;exports.buildObjectValidation=H;exports.consumeQueryParam=hs;exports.consumeQueryParams=De;exports.createI18n=as;exports.ensureScheme=Mt;exports.hasOrIsInClass=$t;exports.inBrowser=Tt;exports.inNode=T;exports.isArray=j;exports.isArrayOf=Ct;exports.isBoolean=wt;exports.isDate=Rt;exports.isFalsy=It;exports.isFunction=Pt;exports.isMobile=gt;exports.isNotNullOrUndefined=Et;exports.isNull=pe;exports.isNullOrUndefined=ye;exports.isNumber=At;exports.isObject=B;exports.isObjectOf=St;exports.isObjectValid=Ot;exports.isString=vt;exports.isTruthy=kt;exports.isUndefined=he;exports.sanitizeObject=bt;exports.secureScheme=Nt;exports.transpileAsserts=fe;exports.useActivityRepository=cn;exports.useAnalyticsHublerApplication=Ce;exports.useAnalyticsIdentify=Ji;exports.useAnalyticsProfile=Se;exports.useAnalyticsRecruitment=Oe;exports.useAnalyticsVisualBuilder=$e;exports.useAssetUrls=ys;exports.useAuthentication=_;exports.useAuthorization=Ie;exports.useAuthorizationStore=Ki;exports.useCanAccessEstablishmentMiddleware=Gi;exports.useCandidateRepository=wn;exports.useCommentRepository=En;exports.useContractTypeRepository=Cn;exports.useCookieStorage=Ae;exports.useCvbankRepository=$n;exports.useCvthequeRepository=Ln;exports.useDiplomaRepository=Mn;exports.useDocumentRepository=zn;exports.useDomainUrls=Ms;exports.useEmailHistoryRepository=Vn;exports.useEmailRepository=Hn;exports.useEmailTemplateRepository=Kn;exports.useEstablishmentCareerRepository=ei;exports.useEstablishmentRepository=ne;exports.useFeatureFlagRepository=ri;exports.useI18n=Me;exports.useJobRepository=ci;exports.useLabelRepository=pi;exports.useLocaleTimeAgo=ls;exports.useObjectValidation=me;exports.useOfferRepository=yi;exports.usePrivateRequest=y;exports.useQSAction=ps;exports.useRecruiterRepository=bi;exports.useRecruitmentRepository=Ii;exports.useRegisterRepository=Ti;exports.useRegistrationRepository=Ni;exports.useRequest=R;exports.useSpecialityRepository=xi;exports.useTagRepository=ji;exports.useTalentRepository=Ui;exports.useUndefinedCssClasses=Ds;exports.useUserRepository=ie;
6
+ */var Ke=sn,Ne=rn,nn=Object.prototype.toString,X=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function sn(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||on,r=0;r<e.length;){var o=e.indexOf("=",r);if(o===-1)break;var c=e.indexOf(";",r);if(c===-1)c=e.length;else if(c<o){r=e.lastIndexOf(";",o-1)+1;continue}var d=e.slice(r,o).trim();if(i[d]===void 0){var u=e.slice(o+1,c).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),i[d]=un(u,s)}r=c+1}return i}function rn(e,t,i){var n=i||{},s=n.encode||an;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!X.test(e))throw new TypeError("argument name is invalid");var r=s(t);if(r&&!X.test(r))throw new TypeError("argument val is invalid");var o=e+"="+r;if(n.maxAge!=null){var c=n.maxAge-0;if(isNaN(c)||!isFinite(c))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(c)}if(n.domain){if(!X.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!X.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){var d=n.expires;if(!cn(d)||isNaN(d.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+d.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.partitioned&&(o+="; Partitioned"),n.priority){var u=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(u){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function on(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function an(e){return encodeURIComponent(e)}function cn(e){return nn.call(e)==="[object Date]"||e instanceof Date}function un(e,t){try{return t(e)}catch{return e}}function ln(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function dn(e){return typeof e=="string"?Ke(e):typeof e=="object"&&e!==null?e:{}}function me(e,t={}){const i=fn(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function fn(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class pn{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=Ke(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=dn(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=ln()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:me(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),me(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=me(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ne(t,s,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ne(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function mn(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new pn){const s=i?[...e||[]]:e;let r=n.getAll({doNotParse:!0});const o=C.ref(0),c=()=>{const d=n.getAll({doNotParse:!0});hn(s||null,d,r)&&o.value++,r=d};return n.addChangeListener(c),tn(()=>{n.removeChangeListener(c)}),{get:(...d)=>(i&&s&&!s.includes(d[0])&&s.push(d[0]),o.value,n.get(d[0],{doNotParse:t,...d[1]})),getAll:(...d)=>(o.value,n.getAll({doNotParse:t,...d[0]})),set:(...d)=>n.set(...d),remove:(...d)=>n.remove(...d),addChangeListener:(...d)=>n.addChangeListener(...d),removeChangeListener:(...d)=>n.removeChangeListener(...d)}}function hn(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const yn=()=>{let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},We=(e,t)=>ae(e,Je(t)),ae=(e,t)=>{const i={};return Me(t).forEach(n=>i[n]=ae(e==null?void 0:e[n],t[n])),"$item"in t&&(e==null||e.forEach((n,s)=>i[s]=ae(n,t.$item))),i.$valid=(!t.$asserts||t.$asserts.every(n=>n(e)))&&Me(i).every(n=>i[n].$valid),i},Je=e=>et(Object.entries(e).reduce((t,[i,n])=>(t[`${i.replaceAll(".[]",".$item")}${i.length?".":""}$asserts`]=Array.isArray(n)?n:[n],t),{})),gn=(e,t,i)=>(e=JSON.parse(JSON.stringify(e)),Pe(e).forEach(s=>{const r=s.replace(/\.[0-9]+/g,".[]");L(t,`${s}.$valid`)===!1&&i[r]!==void 0&&U(e,s,i[r])}),e),Me=e=>Object.keys(e).filter(t=>!t.startsWith("$")),wn=e=>typeof e=="boolean",bn=e=>typeof e=="number",vn=e=>typeof e=="string",J=e=>Array.isArray(e),Z=e=>typeof e=="object"&&!J(e)&&e!==null,En=e=>e instanceof Date,An=e=>typeof e=="function",Ze=e=>e===null,Xe=e=>e===void 0,Ye=e=>Ze(e)||Xe(e),Rn=e=>!Ye(e),Pn=e=>!!e,In=e=>!e,Sn=(e,t)=>J(e)&&e.every(i=>t(i)),On=(e,t)=>Z(e)&&Object.values(e).every(i=>t(i)),Cn=(e,t)=>We(e,t).$valid,_n=(e,t,i=!1)=>{J(t)||(t=[t]);let n=e;for(;n;){if(n.classList&&t[i?"every":"some"](s=>n.classList.contains(s)))return!0;n=n.parentElement}return!1},kn=()=>typeof window<"u"&&typeof window.document<"u",x=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,L=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const r=c=>c!=null,o=c=>typeof c=="object";for(const[c,d]of n.entries()){if(!r(s))return i;if(c===n.length-1)return r(s[d])?s[d]:i;if(!o(s[d]))return i;s=s[d]}return i},U=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=c=>typeof c=="number"||/^\d$/g.test(c),r=c=>parseInt(c,10);let o=e;return n.forEach((c,d)=>{if(d===n.length-1)o[c]=i;else{const u=s(n[d+1])?[]:{};c=s(c)?r(c):c,o[c]=o[c]??u,o=o[c]}}),e},et=(e,t={})=>{const i=Z(e)?Object.entries(e):e;for(const[n,s]of i)U(t,n,s);return t},Tn=(e,t={})=>{const i=Z(e)?Object.entries(e):e;for(const[n,s]of i)U(t,n,s(t,n));return t},tt=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},Re=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=Re(i[n],s):i[n]=tt(s);return i},Pe=(e,t=()=>!0,i="")=>{const n=[];for(const s in e){const r=e[s],o=i?`${i}.${s}`:s;t(s,o,r)&&(n.push(o),(Z(r)||J(r))&&n.push(...Pe(r,t,o)))}return n},$n=e=>e.startsWith("http:")?e.replace("http:","https:"):e,Nn=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,nt=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,Le=()=>{const e=nt();return!e||e==="localhost"?e:`.${e}`},Mn=()=>({path:"/"}),Ln=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),he=e=>{if(!(x()||!e))return e.startsWith("localhost")?Mn():Ln(e)};function it(){const e=mn(),t=r=>e.get(r),i=(r,o)=>e.set(r,o,he(Le())),n=r=>{e.remove(r),e.remove(r,he(nt())),e.remove(r,he(Le()))};return{getItem:t,setItem:i,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(r=>n(r))}}let Y=null;function Ie(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=it()){if(Y)return Y;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){return t.getItem(e.expiration)}function r(m,h){const w=a(m);if(!w.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,h),t.setItem(e.expiration,((w.exp-60)*1e3).toString())}function o(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function c(){return d()&&!u()}function d(){return!!i()}function u(){const m=s();return m?new Date(m)<new Date:!0}function a(m){return JSON.parse(atob(m.split(".")[1]))}function p(){return t}return Y={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:s,authenticate:r,clear:o,isAuthenticated:c,hasAuth:d,isExpired:u,getStorage:p},Y}function Dn(e,t){const i=Object.create(null),n=e.split(",");for(let s=0;s<n.length;s++)i[n[s]]=!0;return t?s=>!!i[s.toLowerCase()]:s=>!!i[s]}process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const st=Object.assign,jn=Object.prototype.hasOwnProperty,le=(e,t)=>jn.call(e,t),M=Array.isArray,H=e=>rt(e)==="[object Map]",xn=e=>typeof e=="string",Se=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Vn=Object.prototype.toString,rt=e=>Vn.call(e),ot=e=>rt(e).slice(8,-1),Oe=e=>xn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Bn=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ce=(e,t)=>!Object.is(e,t);function De(e,...t){console.warn(`[Vue warn] ${e}`,...t)}const G=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Un=e=>(e.w&_e)>0,Fn=e=>(e.n&_e)>0,ge=new WeakMap;let _e=1,T;const V=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),we=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");let K=!0;const at=[];function qn(){at.push(K),K=!1}function Hn(){const e=at.pop();K=e===void 0?!0:e}function S(e,t,i){if(K&&T){let n=ge.get(e);n||ge.set(e,n=new Map);let s=n.get(i);s||n.set(i,s=G());const r=process.env.NODE_ENV!=="production"?{effect:T,target:e,type:t,key:i}:void 0;be(s,r)}}function be(e,t){let i=!1;Fn(e)||(e.n|=_e,i=!Un(e)),i&&(e.add(T),T.deps.push(e),process.env.NODE_ENV!=="production"&&T.onTrack&&T.onTrack(st({effect:T},t)))}function D(e,t,i,n,s,r){const o=ge.get(e);if(!o)return;let c=[];if(t==="clear")c=[...o.values()];else if(i==="length"&&M(e)){const u=Number(n);o.forEach((a,p)=>{(p==="length"||p>=u)&&c.push(a)})}else switch(i!==void 0&&c.push(o.get(i)),t){case"add":M(e)?Oe(i)&&c.push(o.get("length")):(c.push(o.get(V)),H(e)&&c.push(o.get(we)));break;case"delete":M(e)||(c.push(o.get(V)),H(e)&&c.push(o.get(we)));break;case"set":H(e)&&c.push(o.get(V));break}const d=process.env.NODE_ENV!=="production"?{target:e,type:t,key:i,newValue:n,oldValue:s,oldTarget:r}:void 0;if(c.length===1)c[0]&&(process.env.NODE_ENV!=="production"?z(c[0],d):z(c[0]));else{const u=[];for(const a of c)a&&u.push(...a);process.env.NODE_ENV!=="production"?z(G(u),d):z(G(u))}}function z(e,t){const i=M(e)?e:[...e];for(const n of i)n.computed&&je(n,t);for(const n of i)n.computed||je(n,t)}function je(e,t){(e!==T||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(st({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Qn=Dn("__proto__,__v_isRef,__isVue"),ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Se)),Gn=ut(),Kn=ut(!0),xe=Wn();function Wn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=b(this);for(let r=0,o=this.length;r<o;r++)S(n,"get",r+"");const s=n[t](...i);return s===-1||s===!1?n[t](...i.map(b)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){qn();const n=b(this)[t].apply(this,i);return Hn(),n}}),e}function Jn(e){const t=b(this);return S(t,"has",e),t.hasOwnProperty(e)}function ut(e=!1,t=!1){return function(n,s,r){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&r===(e?t?fi:pt:t?di:ft).get(n))return n;const o=M(n);if(!e){if(o&&le(xe,s))return Reflect.get(xe,s,r);if(s==="hasOwnProperty")return Jn}const c=Reflect.get(n,s,r);return(Se(s)?ct.has(s):Qn(s))||(e||S(n,"get",s),t)?c:B(c)?o&&Oe(s)?c:c.value:de(c)?e?ht(c):mt(c):c}}const Zn=Xn();function Xn(e=!1){return function(i,n,s,r){let o=i[n];if(ce(o)&&B(o)&&!B(s))return!1;if(!e&&(!gt(s)&&!ce(s)&&(o=b(o),s=b(s)),!M(i)&&B(o)&&!B(s)))return o.value=s,!0;const c=M(i)&&Oe(n)?Number(n)<i.length:le(i,n),d=Reflect.set(i,n,s,r);return i===b(r)&&(c?Ce(s,o)&&D(i,"set",n,s,o):D(i,"add",n,s)),d}}function Yn(e,t){const i=le(e,t),n=e[t],s=Reflect.deleteProperty(e,t);return s&&i&&D(e,"delete",t,void 0,n),s}function ei(e,t){const i=Reflect.has(e,t);return(!Se(t)||!ct.has(t))&&S(e,"has",t),i}function ti(e){return S(e,"iterate",M(e)?"length":V),Reflect.ownKeys(e)}const ni={get:Gn,set:Zn,deleteProperty:Yn,has:ei,ownKeys:ti},ii={get:Kn,set(e,t){return process.env.NODE_ENV!=="production"&&De(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&De(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},ke=e=>e,fe=e=>Reflect.getPrototypeOf(e);function ee(e,t,i=!1,n=!1){e=e.__v_raw;const s=b(e),r=b(t);i||(t!==r&&S(s,"get",t),S(s,"get",r));const{has:o}=fe(s),c=n?ke:i?Te:W;if(o.call(s,t))return c(e.get(t));if(o.call(s,r))return c(e.get(r));e!==s&&e.get(t)}function te(e,t=!1){const i=this.__v_raw,n=b(i),s=b(e);return t||(e!==s&&S(n,"has",e),S(n,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function ne(e,t=!1){return e=e.__v_raw,!t&&S(b(e),"iterate",V),Reflect.get(e,"size",e)}function Ve(e){e=b(e);const t=b(this);return fe(t).has.call(t,e)||(t.add(e),D(t,"add",e,e)),this}function ze(e,t){t=b(t);const i=b(this),{has:n,get:s}=fe(i);let r=n.call(i,e);r?process.env.NODE_ENV!=="production"&&dt(i,n,e):(e=b(e),r=n.call(i,e));const o=s.call(i,e);return i.set(e,t),r?Ce(t,o)&&D(i,"set",e,t,o):D(i,"add",e,t),this}function Be(e){const t=b(this),{has:i,get:n}=fe(t);let s=i.call(t,e);s?process.env.NODE_ENV!=="production"&&dt(t,i,e):(e=b(e),s=i.call(t,e));const r=n?n.call(t,e):void 0,o=t.delete(e);return s&&D(t,"delete",e,void 0,r),o}function Ue(){const e=b(this),t=e.size!==0,i=process.env.NODE_ENV!=="production"?H(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&D(e,"clear",void 0,void 0,i),n}function ie(e,t){return function(n,s){const r=this,o=r.__v_raw,c=b(o),d=t?ke:e?Te:W;return!e&&S(c,"iterate",V),o.forEach((u,a)=>n.call(s,d(u),d(a),r))}}function se(e,t,i){return function(...n){const s=this.__v_raw,r=b(s),o=H(r),c=e==="entries"||e===Symbol.iterator&&o,d=e==="keys"&&o,u=s[e](...n),a=i?ke:t?Te:W;return!t&&S(r,"iterate",d?we:V),{next(){const{value:p,done:m}=u.next();return m?{value:p,done:m}:{value:c?[a(p[0]),a(p[1])]:a(p),done:m}},[Symbol.iterator](){return this}}}}function N(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";console.warn(`${Bn(e)} operation ${i}failed: target is readonly.`,b(this))}return e==="delete"?!1:this}}function si(){const e={get(r){return ee(this,r)},get size(){return ne(this)},has:te,add:Ve,set:ze,delete:Be,clear:Ue,forEach:ie(!1,!1)},t={get(r){return ee(this,r,!1,!0)},get size(){return ne(this)},has:te,add:Ve,set:ze,delete:Be,clear:Ue,forEach:ie(!1,!0)},i={get(r){return ee(this,r,!0)},get size(){return ne(this,!0)},has(r){return te.call(this,r,!0)},add:N("add"),set:N("set"),delete:N("delete"),clear:N("clear"),forEach:ie(!0,!1)},n={get(r){return ee(this,r,!0,!0)},get size(){return ne(this,!0)},has(r){return te.call(this,r,!0)},add:N("add"),set:N("set"),delete:N("delete"),clear:N("clear"),forEach:ie(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=se(r,!1,!1),i[r]=se(r,!0,!1),t[r]=se(r,!1,!0),n[r]=se(r,!0,!0)}),[e,i,t,n]}const[ri,oi,ai,ci]=si();function lt(e,t){const i=t?e?ci:ai:e?oi:ri;return(n,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(le(i,s)&&s in n?i:n,s,r)}const ui={get:lt(!1,!1)},li={get:lt(!0,!1)};function dt(e,t,i){const n=b(i);if(n!==i&&t.call(e,n)){const s=ot(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ft=new WeakMap,di=new WeakMap,pt=new WeakMap,fi=new WeakMap;function pi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mi(e){return e.__v_skip||!Object.isExtensible(e)?0:pi(ot(e))}function mt(e){return ce(e)?e:yt(e,!1,ni,ui,ft)}function ht(e){return yt(e,!0,ii,li,pt)}function yt(e,t,i,n,s){if(!de(e))return process.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const o=mi(e);if(o===0)return e;const c=new Proxy(e,o===2?n:i);return s.set(e,c),c}function ce(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function b(e){const t=e&&e.__v_raw;return t?b(t):e}const W=e=>de(e)?mt(e):e,Te=e=>de(e)?ht(e):e;function hi(e){K&&T&&(e=b(e),process.env.NODE_ENV!=="production"?be(e.dep||(e.dep=G()),{target:e,type:"get",key:"value"}):be(e.dep||(e.dep=G())))}function yi(e,t){e=b(e);const i=e.dep;i&&(process.env.NODE_ENV!=="production"?z(i,{target:e,type:"set",key:"value",newValue:t}):z(i))}function B(e){return!!(e&&e.__v_isRef===!0)}function Fe(e){return gi(e,!1)}function gi(e,t){return B(e)?e:new wi(e,t)}class wi{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:b(t),this._value=i?t:W(t)}get value(){return hi(this),this._value}set value(t){const i=this.__v_isShallow||gt(t)||ce(t);t=i?t:b(t),Ce(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:W(t),yi(this,t))}}function bi(e){let t={"Content-Type":"application/json"};e&&i(e);function i(w,v=!1){return t=v?w:{...t,...w},this}function n(){return t}function s(w,v){return t[w]=v,this}function r(w){return t[w]}function o(w){return t[w]&&delete t[w],this}function c(w){return s("Authorization","Bearer "+w),this}function d(){return o("Authorization"),this}function u(){return!!r("Authorization")}function a(){return s("Content-Type","multipart/form-data"),this}function p(){return s("Content-Type","application/json"),this}function m(){return r("Content-Type")==="multipart/form-data"}function h(){return r("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:s,getHeader:r,removeHeader:o,setAuthorization:c,removeAuthorization:d,hasAuthorization:u,setFormData:a,setJson:p,isFormData:m,isJson:h}}function vi(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function Ei(e,t,i){let n=null;i&&s(i);function s(u){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return u instanceof FormData?t.setFormData():o(u)&&(u=c(u),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),u.append("_method","PUT")),n=u,this}function r(){return n}function o(u){for(const a in u){const p=u[a];if(d(p))return!0;if(typeof p=="object"&&o(p))return!0}return!1}function c(u,a=null,p=0){const m=!a;m&&(a=new FormData);for(const h in u){const w=u[h];d(w)?(u[h]="<<FileIndex:"+p+">>",a.append(p,w,w.name),p++):typeof w=="object"&&(u[h]=c(u[h],a,p))}return m?(a.append("payload",JSON.stringify(u)),a):u}function d(u){return typeof File<"u"&&u instanceof File||typeof Blob<"u"&&u instanceof Blob}return{setPayload:s,getPayload:r}}const O=class O{constructor(t={}){k(this,"level",3);k(this,"logger");k(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=O.LEVEL_DEBUG&&re(this.logger.debug,this.prefix,t)}info(...t){this.level<=O.LEVEL_INFO&&re(this.logger.info,this.prefix,t)}warn(...t){this.level<=O.LEVEL_WARN&&re(this.logger.warn,this.prefix,t)}error(...t){this.level<=O.LEVEL_ERROR&&re(this.logger.error,this.prefix,t)}};k(O,"LEVEL_DEBUG",0),k(O,"LEVEL_INFO",1),k(O,"LEVEL_WARN",2),k(O,"LEVEL_ERROR",3),k(O,"LEVEL_OFF",4);let ue=O;const re=(e,t,i)=>{t?e(t,...i):e(...i)},E=new ue({prefix:"[SDK]"});let wt=null,bt=null,vt=null,Et="/",At=null;const Ai=()=>wt,Ri=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");wt=e},Pi=()=>bt,Ii=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");bt=e},Si=()=>At,Oi=e=>{At=e},Ci=()=>vt,_i=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");vt=e},ki=e=>{E.info("[Config] Base Assets Urls:",e),Et=e},Ti=()=>Et,j={getEnvironment:Ai,getApiHost:Pi,getErrorHandler:Si,setEnvironment:Ri,setApiHost:Ii,setErrorHandler:Oi,getMainAppHost:Ci,setMainAppHost:_i,setBaseAssetsUrl:ki,getBaseAssetsUrl:Ti};function $i(e){const t=j.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&c(e);function r(){return t+d()+h()}function o(){return d(!0,!0)}function c(f){return i="/"+f.replace(/^\//g,""),this}function d(f=!0,P=!1){return f?i.replace(/:(\w+)/g,(I,_)=>P?"*":s[_]||":"+_):i}function u(f){return n=f,this}function a(f,P){return n[f]=P,this}function p(f){return n[f]&&delete n[f],this}function m(){return Object.keys(n).length>0}function h(f=!0){if(!m())return"";let P="";for(const I in n)if(Array.isArray(n[I]))for(const _ of n[I])P+=(P.length?"&":"")+`${I}[]=`+_;else P+=(P.length?"&":"")+I+"="+n[I];return(f?"?":"")+P}function w(f){return s=f,this}function v(f,P){return s[f]=P,this}function $(f){return s[f]&&delete s[f],this}return{setPath:c,getPath:d,getUri:r,getMockUri:o,setQueryParams:u,setQueryParam:a,removeQueryParam:p,hasQuery:m,getQueryString:h,setRouteParams:w,setRouteParam:v,removeRouteParam:$}}function Ni(e){let t=[];function i(){return t=u(arguments),o(),this}function n(){return t.length>0}function s(a){return t.includes(a.trim())?this:(t.push(a.trim()),o(),this)}function r(a){const p=t.indexOf(a.trim());return p===-1?this:(t.splice(p,1),o(),this)}function o(){t.length?e.setQueryParam("groups",d(t)):e.removeQueryParam("groups")}function c(a){return a.split(",").map(p=>p.trim())}function d(a){return a.join(",")}function u(a){let p=[];return a.length===1?typeof a[0]=="string"?p=c(a[0]):Array.isArray(a[0])&&(p=a[0]):p=Array.from(a),p}return{setGroups:i,hasGroups:n,addGroup:s,removeGroup:r}}function Mi(e){let t=!1,i=!1,n=1,s=10;function r(){return t=!0,o(),this}function o(){i=!0;const h=m(arguments);return u(h.page||1,!1),a(h.perPage||s,!1),p(),this}function c(){return i=!1,p(),this}function d(){return i}function u(h,w=!0){return t=!0,i=!0,n=h,w&&p(),this}function a(h,w=!0){return t=!0,i=!0,s=h,w&&p(),this}function p(){t?d()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function m(h){if(h.length===1&&typeof h[0]=="object")return h[0];const w={};return h.length>=1&&(w.page=h[0]),h.length>=2&&(w.perPage=h[1]),w}return{isList:r,paginate:o,disablePagination:c,hasPagination:d,setPage:u,setPerPage:a}}function Li(e){let t=!1,i="id",n="ASC";function s(){t=!0;const a=u(arguments);return a.orderBy&&o(a.orderBy,!1),a.orderDir&&c(a.orderDir,!1),d(),this}function r(){return t}function o(a,p=!0){return t=!0,i=a,p&&d(),this}function c(a,p=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,p&&d(),this}function d(){r()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function u(a){if(a.length===1&&typeof a[0]=="object")return a[0];const p={};return a.length>=1&&(p.orderBy=a[0]),a.length>=2&&(p.orderDir=a[1]),p}return{setOrder:s,hasOrder:r,setOrderBy:o,setOrderDir:c}}function Di(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function ji(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function i(){return e}return{setResponseType:t,getResponseType:i}}function xi(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function Vi(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&j.getErrorHandler()&&j.getErrorHandler()(e),{sent:i,responded:n,error:e}}function zi(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function r(){return s()?e.data["hydra:member"]:null}function o(){return s()?e.data["hydra:totalItems"]:null}function c(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function d(){return!s()||!c()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function u(){return!s()||!c()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:r,getTotal:o,hasPagination:c,getPage:d,getPages:u}}function Bi(e,t,i,n,s,r){async function o(){const d=i.getMethod(),u=t.getUri(),a=e.getHeaders(),p=n.getPayload(),m=[u];["post","put","patch"].includes(d)&&m.push(p||{}),m.push({headers:a,responseType:r.getResponseType()}),E.info("[Request] Sending request:",`[${d.toUpperCase()}]`,u);try{const h=await Xt[d](...m);return c(h)}catch(h){throw Vi(h,s.isSilent())}}function c(d){if(d.headers){const u=Object.keys(d.headers),a=u.map(p=>p.toLowerCase()).indexOf("content-type");if(a!==-1&&d.headers[u[a]].includes("application/ld+json"))return zi(d)}return xi(d)}return{send:o}}function R(e,t="get",i=null){const n=bi(),s=$i(e),r=vi(t),o=Ei(r,n,i),c=Ni(s),d=Mi(s),u=Li(s),a=Di(),p=ji(),m=Bi(n,s,r,o,a,p);return{...n,...s,...r,...o,...c,...d,...u,...a,...p,...m}}function y(e,t="get",i=null){const n=R(e,t,i),s=Ie();s.isAuthenticated()&&n.setAuthorization(s.getAuthToken());const r=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return r()},n}const Ui=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Fi=()=>({listByCandidateAndEstablishment:Ui}),qi=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),Hi=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Qi=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Gi=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ki=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),Wi=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),Ji=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(i),Zi=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Xi=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Yi=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),es=()=>({share:qi,isArchived:Hi,archive:Qi,unarchive:Gi,lookupCandidate:Ki,createCandidate:Wi,updateCandidate:Ji,closeIncompleteRegistration:Zi,openNewRegistration:Xi,updateInvitation:Yi}),ts=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),ns=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),is=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),ss=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),rs=()=>({getForEstablishmentCandidate:ts,postForEstablishmentCandidate:ns,update:is,remove:ss}),os=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),as=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),cs=()=>({list:os,listByEstablishment:as}),us=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),ls=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),ds=()=>({list:us,markAsSeen:ls}),fs=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),ps=()=>({syncCandidateLabels:fs}),ms=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),hs=()=>({list:ms}),ys=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),gs=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ws=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),bs=e=>y("document/recruiter").setMethod("post").setPayload(e),vs=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),Es=()=>({listByCandidate:ys,listByCandidateAndEstablishmentFromRecruiter:gs,listByCandidateAndEstablishmentFromCandidate:ws,addFromRecruiter:bs,remove:vs}),As=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Rs=()=>({listByCandidateAndEstablishment:As}),Ps=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Is=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Ss=()=>({sendToCandidate:Ps,sendToRecipients:Is}),Os=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},Cs=()=>y("/v2/self/email-templates").isList().disablePagination(),_s=()=>({listByEstablishment:Os,listSelf:Cs}),ks=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Ts=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),$s=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Ns=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Ms=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),Ls=()=>({readById:ks,readByState:Ts,upsert:$s,uploadLogoAndBanner:Ns,publish:Ms}),Ds=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),js=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Rt=()=>({read:Ds,authorizations:js}),xs=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Vs=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),zs=()=>({maintenanceModeEnabled:xs,forEstablishment:Vs}),Bs=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Us=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Fs=()=>({list:Bs,listByEstablishment:Us}),qs=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Hs=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Qs=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Gs=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Ks=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),Ws=()=>({listByEstablishment:qs,addToEstablishment:Hs,update:Qs,remove:Gs,syncForCandidate:Ks}),Js=e=>R("offer/:offerId").setRouteParams({offerId:e}),Zs=()=>({read:Js}),Xs=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},Ys=()=>({listByEstablishment:Xs}),er=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),tr=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),nr=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),ir=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),sr=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),rr=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),or=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),ar=()=>({read:er,mineByEstablishment:tr,mineWithoutCandidate:nr,mineWithCandidate:ir,withCandidate:sr,addCandidates:rr,removeCandidate:or}),cr=(e,t,i,n=null)=>{const s=R("candidate/register/open").setMethod("post"),r={email:e};return t==="establishment"&&(r.establishmentId=i),t==="offer"&&(r.offerId=i),n&&(r.referer=n),s.setPayload(r),s},ur=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),lr=e=>R("candidate/register/read/:token").setRouteParams({token:e}),dr=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),fr=()=>({open:cr,update:ur,read:lr,close:dr}),pr=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),mr=()=>({lookupEstablishment:pr}),hr=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),yr=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),gr=()=>({list:hr,listByEstablishment:yr}),wr=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),br=()=>({listByEstablishment:wr}),vr=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Er=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Ar=()=>({lookupTalent:vr,addCandidateToTalentPool:Er}),Rr=e=>R("user/email/isset/:email").setRouteParams({email:e}),Pr=()=>y("user/self").addGroup("user:self"),Ir=e=>y("/user/:uuid").setRouteParams({uuid:e}),Sr=e=>R("/user/:uuid").setRouteParams({uuid:e}),Or=e=>y("/user/:id/uuid").setRouteParams({id:e}),Pt=()=>({emailExists:Rr,self:Pr,byUuidPrivate:Ir,byUuid:Sr,fetchUuid:Or}),$e=()=>{const e=Fe(null),t=Fe({}),i=C.computed(()=>e.value.roles??[]),n=C.computed(()=>i.value.includes("ROLE_RH")),s=C.computed(()=>i.value.includes("ROLE_CANDIDATE")),r=C.computed(()=>i.value.includes("ROLE_ADMIN"));return{user:e,establishments:t,roles:i,isRH:n,isCandidate:s,isAdmin:r,fetchSelf:async d=>{if(e.value===null||d)return Pt().self().send().then(u=>e.value=u.getData())},fetchPermission:async(d,u)=>{if(!t.value[d]||u)return Rt().authorizations(d).send().then(a=>t.value[d]=a.getData())}}};async function Cr(e,...t){if(!Ie().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=$e();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const r=t[s];if(!n.hasPermission(e,r))throw"ERR_MISSING_PERMISSION"}}const _r=Yt.defineStore("authorization",$e);let q=null;function g(){if(q)return q;const e=j.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function r(){return i}function o(){const m=window.analytics=window.analytics||[];if(!m.initialize&&m.invoked)E.error("Segment snippet included twice.");else{m.invoked=!0,m.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],m.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const w=Array.prototype.slice.call(arguments);return w.unshift(h),m.push(w),m}};for(let h=0;h<m.methods.length;h++){const w=m.methods[h];m[w]=m.factory(w)}m.load=function(h,w){const v=document.createElement("script");v.id="analytics-script",v.type="text/javascript",v.async=!0,v.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",v.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(v,$),m._loadOptions=w},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function c(){return s!==null||(s=new Promise((m,h)=>{if(!r())return p("Analytics is disabled."),m();if(window.addEventListener("analytics-ready",()=>{p("Analytics script loaded successfully."),m()}),window.addEventListener("analytics-error",()=>{p("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),p("Loading Analytics script."),window.analytics)return m();o()})),s}async function d(m,h){if(!x())try{if(await this.analyticsScriptReady(),p("[identify]",[m,h]),r())return window.analytics.identify(m,h)}catch{p("[identify]",[m,h],"error")}}async function u(m,h,w){if(!x()){typeof w!="object"&&(w={});try{if(await this.analyticsScriptReady(),p("[page]",[m,h,w]),r())return window.analytics.page(m,{category:h,...w})}catch(v){console.log(v),p("[page]",[m,h,w],"error")}}}async function a(m,h,w){if(!x()){typeof w!="object"&&(w={});try{if(await this.analyticsScriptReady(),p("[track]",[m,h,w]),r())return window.analytics.track(m,{category:h,...w})}catch{p("[track]",[m,h,w],"error")}}}function p(m,h=[],w="info"){h||(h=[]),n&&E[w](`::SDK Analytics:: ${m}`,...h)}return q={analyticsScriptReady:c,isEnabled:r,identify:d,page:u,track:a,consoleMessage:p},q}g.destroy=()=>q=null;function It(){const e="Hubler Application";function t(u){if(!u)throw new Error(`Missing arguments for domain "${e}"`);const a=!!u.offerId;if(a&&!u.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:u.establishmentId?u.establishmentId.toString():null,jobOfferId:a?u.offerId.toString():null,recruitmentId:a?u.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(u){return g().page("Application Authentication Viewed",e,t(u))}async function n(u){return g().page("Application Magic Link Viewed",e,t(u))}async function s(u){return g().page("Application Job Viewed",e,t(u))}async function r(u){return g().page("Application Information Viewed",e,t(u))}async function o(u){return g().page("Application Document Viewed",e,t(u))}async function c(u){return g().page("Application Success Viewed",e,t(u))}async function d(u){if(!u.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(u),error:u.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:r,applicationDocumentViewed:o,applicationSuccessViewed:c,applicationFormFailed:d}}function St(){const e="Profile";function t(f,P){var _;if(!f)throw new Error(`Missing arguments for domain "${e}"`);const I={companyId:f.companyId?f.companyId.toString():null,hublerId:(_=f.hublerId)==null?void 0:_.toString()};return P&&(I.productId=f.companyId?f.companyId+"_2":null),f.recruitmentId&&(I.recruitmentId=f.recruitmentId.toString()),f.selections&&(I.selections=f.selections),f.institutionId&&(I.institutionId=f.institutionId.map(String)),I}async function i(f){return g().track(f.name,e,t(f.properties),!0)}async function n(f){return g().track(f.name,e,t(f.properties,!0))}async function s(f){return g().track(f.name,e,t(f.properties,!0))}async function r(f){return g().track(f.name,e,t(f.properties,!0))}async function o(f){return g().track(f.name,e,t(f.properties,!0))}async function c(f){return g().track(f.name,e,t(f.properties,!0))}async function d(f){return g().track(f.name,e,t(f.properties,!0))}async function u(f){return g().track(f.name,e,t(f.properties,!0))}async function a(f){return g().track(f.name,e,t(f.properties,!0))}async function p(f){return g().track(f.name,e,t(f.properties,!0))}async function m(f){return g().track(f.name,e,t(f.properties,!0))}async function h(f){return g().track(f.name,e,t(f.properties,!0))}async function w(f){return g().track(f.name,e,t(f.properties,!0))}async function v(f){return g().page(f.name,f.properties.category,t(f.properties,!1))}async function $(f){return g().track(f.name,e,t(f.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:s,profileShared:r,profileArchived:o,profileCandidateAdded:c,profileCommentAdded:d,profileDocumentAdded:u,profileDocumentDownloaded:a,profileDocumentRequested:p,profileRecruitmentAdded:m,profileRecruitmentRemoved:h,profileTabSelected:w,profileViewed:v,profileEmailSent:$}}function Ot(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const s={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(s.institutionId=[n.institutionId.toString()]),n.origin&&(s.origin=n.origin.toString()),s}async function i(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:i}}function Ct(){const e="Visual Builder";function t(l,Wt){if(!l)throw new Error(`Missing arguments for domain "${e}"`);const F={companyId:l.companyId?l.companyId.toString():null};return Wt&&(F.productId=l.companyId?l.companyId+"_2":null),l.selections&&(F.selections=l.selections),l.error&&(F.error=l.error),l.institutionId&&(F.institutionId=[l.institutionId.toString()]),F}async function i(l){return g().page(l.name,e,t(l.properties,!0))}async function n(l){return g().track(l.name,e,t(l.properties),!0)}async function s(l){return g().track(l.name,e,t(l.properties,!0))}async function r(l){return g().page(l.name,e,t(l.properties,!0))}async function o(l){return g().page(l.name,e,t(l.properties,!0))}async function c(l){return g().track(l.name,e,t(l.properties,!0))}async function d(l){return g().page(l.name,e,t(l.properties,!0))}async function u(l){return g().page(l.name,e,t(l.properties,!0))}async function a(l){return g().page(l.name,e,t(l.properties,!0))}async function p(l){return g().track(l.name,e,t(l.properties,!0))}async function m(l){return g().page(l.name,e,t(l.properties,!0))}async function h(l){return g().page(l.name,e,t(l.properties,!0))}async function w(l){return g().track(l.name,e,t(l.properties,!0))}async function v(l){return g().track(l.name,e,t(l.properties,!0))}async function $(l){return g().page(l.name,e,t(l.properties,!0))}async function f(l){return g().page(l.name,e,t(l.properties,!0))}async function P(l){return g().page(l.name,e,t(l.properties,!0))}async function I(l){return g().page(l.name,e,t(l.properties,!0))}async function _(l){return g().page(l.name,e,t(l.properties,!1))}async function Lt(l){return g().track(l.name,e,t(l.properties,!0))}async function Dt(l){return g().track(l.name,e,t(l.properties,!0))}async function jt(l){return g().track(l.name,e,t(l.properties,!0))}async function xt(l){return g().track(l.name,e,t(l.properties,!0))}async function Vt(l){return g().track(l.name,e,t(l.properties,!0))}async function zt(l){return g().track(l.name,e,t(l.properties,!0))}async function Bt(l){return g().track(l.name,e,t(l.properties,!0))}async function Ut(l){return g().track(l.name,e,t(l.properties,!0))}async function Ft(l){return g().track(l.name,e,t(l.properties,!0))}async function qt(l){return g().track(l.name,e,t(l.properties,!0))}async function Ht(l){return g().track(l.name,e,t(l.properties,!0))}async function Qt(l){return g().track(l.name,e,t(l.properties,!0))}async function Gt(l){return g().track(l.name,e,t(l.properties,!0))}async function Kt(l){return g().page(l.name,e,t(l.properties,!1))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:r,setupCandidateInformationViewed:o,setupContactAdded:c,setupContactViewed:d,setupEditionDoneViewed:u,setupExternalLinkViewed:a,setupImageUploaded:p,setupImageViewed:m,setupLocationViewed:h,setupPresentationContentAdded:w,setupPresentationNewTabAdded:v,setupPresentationViewed:$,setupSettingsDoneViewed:f,setupSocialNetworkViewed:P,setupThemeViewed:I,visualBuilderViewed:_,setupImageUploadFailed:Lt,fastCopyLinkClicked:Dt,setupBenefitCustomDeleted:jt,setupBenefitCustomEdited:xt,setupContactDeleted:Vt,setupContactEdited:zt,setupContactNewClicked:Bt,setupPresentationContentDeleted:Ut,setupPresentationContentDuplicated:Ft,setupPresentationContentMoved:qt,setupPresentationTabDeleted:Ht,setupPresentationTabEdited:Qt,setupPresentationTabMoved:Gt,setupSEOViewed:Kt}}const qe=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:It,useAnalyticsProfile:St,useAnalyticsRecruitment:Ot,useAnalyticsVisualBuilder:Ct},Symbol.toStringTag,{value:"Module"}));function kr(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}let oe=null;const Tr=async(e,t)=>{try{return await pe(),E.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{E.error("[identify]",[e,t])}},$r=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await pe(),E.info("[page]",[e,t,i]),window.analytics.page(e,{category:t,...i})}catch{E.error("[page]",[e,t,i])}},Nr=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await pe(),E.info("[track]",[e,t,i]),window.analytics.track(e,{category:t,...i})}catch{E.error("[track]",[e,t,i])}},ve=()=>{const e=j.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},_t=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)E.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const i=Array.prototype.slice.call(arguments);return i.unshift(t),e.push(i),e}};for(let t=0;t<e.methods.length;t++){const i=e.methods[t];e[i]=e.factory(i)}e.load=function(t,i){const n=document.createElement("script");n.id="analytics-script",n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",n.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s),e._loadOptions=i},e._writeKey=ve(),e.SNIPPET_VERSION="4.16.1",e.load(ve()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},pe=()=>(oe!==null||(oe=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{E.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{E.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),E.info("Loading Analytics script."),window.analytics)return e();_t()})),oe),Mr={key:ve,appendScript:_t,ready:pe,identify:Tr,page:$r,track:Nr},Lr="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let kt=!1;const Tt=()=>new Promise(e=>{x()||kt||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),xr())}),Dr=(e,t)=>Tt().then(()=>{x()||jr(e,t)}),jr=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},xr=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Lr+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),kt=!0},Vr={scriptReady:Tt,autocompleteInput:Dr},zr={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},Br={fr:zr};let Ee=null;const $t=()=>Ee,Ur=(e={})=>{let t=e.locale||"fr";const i=d=>t=d,n=()=>t,s=Re(Br,(e==null?void 0:e.messages)||{}),r=(d,u)=>{const a=L(s,`${t}.${d}`);return a?u?Fr(a,u):a:d},o=(d,u)=>{const a=L(s,`${t}.${d}`);return a?qr(a,u):d};return Ee={t:r,tNode:o,setLocale:i,getLocale:n,install:d=>{d.config.globalProperties.$t=r,d.config.globalProperties.$tNode=o}},Ee},Fr=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>L(t,n)):null,qr=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>He.text(n);n=n.replace(/[{}%]/g,"").trim();const r=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(r,"").trim();const o={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((u,a)=>(a[3]===void 0?U(u,a[1],L(t,a[1])):U(u,a[1],L(t,a[3])),u),o),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((u,a)=>{let p=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?p=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(p=a[2]==="true"),u[a[1]]=p,u},o)),c=>He[s](r,t,c,o)});return{setup:(n,{slots:s})=>()=>i.map(r=>r(s))}},He={slot:(e,t,i,n)=>C.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>C.h("span",{class:"node node--variable"},L(t,e.trim())),text:e=>C.h("span",{class:"node node--text"},e)};function Hr(e){const{t}=$t(),i={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return en.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function Qr(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function s(){return e.action}function r(){return e.arguments}function o(){return!!(e&&e.controller&&e.action)}function c(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((d,u)=>{const a=u.split("=");return a[0]==="controller"||a[0]==="action"?d[a[0]]=decodeURIComponent(a[1]):d.arguments[a[0]]=decodeURIComponent(a[1]),d},{controller:null,action:null,arguments:{}}))}return c(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:r,hasAction:o}}function Gr(){async function e({domain:n,event:s,...r}){const o="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(o))throw new Error(`Domain ${n} is not defined`);const c=qe[o]();if(!i(c,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return c[s](r)}function t(n){return!!qe[n]}function i(n,s){return!!n[s]}return{call:e}}const Qe=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Gr},Symbol.toStringTag,{value:"Module"}));function Kr(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const s=Qe[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in Qe}function n(s){return e.getAction()in s}return{dispatch:t}}function Wr(){let e=!1;function t(s,r,o){n(),o()}function i(s,r,o){if(!e)return e=!0,t(s,r,o);o()}function n(){const s=Qr();if(!s.hasAction())return;Kr(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const Nt=(e,t,i)=>{const n={};for(const s of e)t.query[s]!==void 0&&(n[s]=t.query[s]);if(Object.keys(n).length){const s=JSON.parse(JSON.stringify(t));for(const r in n)delete s.query[r];i.replace(s)}return n},Jr=(e,t,i)=>Nt([e],t,i)[e],Zr=()=>({getAssetUrl:t=>`${j.getBaseAssetsUrl()}${t}`}),A=()=>j.getMainAppHost(),Xr=()=>`${A()}/rh/establishments`,Yr=e=>`${A()}/rh/establishment/${e}`,eo=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},to=()=>`${A()}/rh/dashboard`,no=e=>`${A()}/candidate-invite/establishment/${e}`,io=(e,t=!1)=>t?`${A()}/cvbank/${e}`:`${A()}/rh/establishment/${e}/cvtheque`,so=(e,t)=>`${A()}/user-profile/establishment/${e}/user/${t}`,ro=e=>`${A()}/rh/establishment/${e}/recruitment`,oo=(e,t)=>`${A()}/rh/establishment/${e}/recruitment/${t}`,ao=(e,t)=>`${A()}/rh/establishment/${e}/recruitment/${t}/kanban`,co=e=>`${A()}/rh/establishment/${e}/career-configuration`,uo=(e,t=null)=>t?`${A()}/career-website/${e}/${t}`:`${A()}/career-website/${e}`,lo=(e,t)=>`${A()}/career-website-preview/${e}/${t}`,fo=(e,t=null)=>{const i=A().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},po=e=>`${A()}/rh/establishment/${e}/stats`,mo=e=>`${A()}/rh/establishment/${e}/backoffice`,ho=()=>`${A()}/rh/settings/general`;function yo(){return{root:A,establishments:Xr,establishment:Yr,img:eo,dashboard:to,candidateInvite:no,cvtheque:io,userProfile:so,recruitments:ro,recruitment:oo,recruitmentKanban:ao,career:co,careerConfig:uo,careerPreview:lo,careerWebsite:fo,statistics:po,backoffice:mo,userSettings:ho}}const Ge=new Set;let Q,Ae={ignore:e=>e.startsWith("Ui")};const ye=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)Q.has(t)||Ge.has(t)||Ae.ignore(t)||(Ge.add(t),E.error(`Undefined CSS class: ${t}`))}},Mt=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)Mt(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)Q.add(s.substr(1))}},go=(e={})=>{if(Q)return Q;Q=new Set,Ae={...Ae,...e},Mt(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){ye(s);for(const r of s.querySelectorAll("*"))ye(r)}}else(n==null?void 0:n.attributeName)==="class"&&ye(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},wo="0.2.77";exports.Analytics=Mr;exports.BaseLogger=ue;exports.Gmap=Vr;exports.SDKConfig=j;exports.SDKLogger=E;exports.VERSION=wo;exports._clone=tt;exports._get=L;exports._map=Tn;exports._merge=Re;exports._pathList=Pe;exports._set=U;exports._setMany=et;exports.buildObjectValidation=ae;exports.consumeQueryParam=Jr;exports.consumeQueryParams=Nt;exports.createI18n=Ur;exports.ensureScheme=Nn;exports.hasOrIsInClass=_n;exports.inBrowser=kn;exports.inNode=x;exports.isArray=J;exports.isArrayOf=Sn;exports.isBoolean=wn;exports.isDate=En;exports.isFalsy=In;exports.isFunction=An;exports.isMobile=yn;exports.isNotNullOrUndefined=Rn;exports.isNull=Ze;exports.isNullOrUndefined=Ye;exports.isNumber=bn;exports.isObject=Z;exports.isObjectOf=On;exports.isObjectValid=Cn;exports.isString=vn;exports.isTruthy=Pn;exports.isUndefined=Xe;exports.sanitizeObject=gn;exports.secureScheme=$n;exports.transpileAsserts=Je;exports.useActivityRepository=Fi;exports.useAnalyticsHublerApplication=It;exports.useAnalyticsIdentify=kr;exports.useAnalyticsProfile=St;exports.useAnalyticsRecruitment=Ot;exports.useAnalyticsVisualBuilder=Ct;exports.useAssetUrls=Zr;exports.useAuthentication=Ie;exports.useAuthorization=$e;exports.useAuthorizationStore=_r;exports.useCanAccessEstablishmentMiddleware=Cr;exports.useCandidateRepository=es;exports.useCommentRepository=rs;exports.useContractTypeRepository=cs;exports.useCookieStorage=it;exports.useCvbankRepository=ds;exports.useCvthequeRepository=ps;exports.useDiplomaRepository=hs;exports.useDocumentRepository=Es;exports.useDomainUrls=yo;exports.useEmailHistoryRepository=Rs;exports.useEmailRepository=Ss;exports.useEmailTemplateRepository=_s;exports.useEstablishmentCareerRepository=Ls;exports.useEstablishmentRepository=Rt;exports.useFeatureFlagRepository=zs;exports.useI18n=$t;exports.useJobRepository=Fs;exports.useLabelRepository=Ws;exports.useLocaleTimeAgo=Hr;exports.useObjectValidation=We;exports.useOfferRepository=Zs;exports.usePrivateRequest=y;exports.useQSAction=Wr;exports.useRecruiterRepository=Ys;exports.useRecruitmentRepository=ar;exports.useRegisterRepository=fr;exports.useRegistrationRepository=mr;exports.useRequest=R;exports.useSpecialityRepository=gr;exports.useTagRepository=br;exports.useTalentRepository=Ar;exports.useUndefinedCssClasses=go;exports.useUserRepository=Pt;