@hublo/mstaff-client-sdk 0.2.77 → 0.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +2 -2
- package/dist/core.js +1551 -1173
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Wt=Object.defineProperty;var Jt=(e,t,s)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var k=(e,t,s)=>(Jt(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),Zt=require("axios"),Xt=require("pinia"),Yt=require("@vueuse/core");function en(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 He=nn,ke=sn,tn=Object.prototype.toString,X=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function nn(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var s={},n=t||{},i=n.decode||rn,r=0;r<e.length;){var o=e.indexOf("=",r);if(o===-1)break;var a=e.indexOf(";",r);if(a===-1)a=e.length;else if(a<o){r=e.lastIndexOf(";",o-1)+1;continue}var d=e.slice(r,o).trim();if(s[d]===void 0){var u=e.slice(o+1,a).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),s[d]=cn(u,i)}r=a+1}return s}function sn(e,t,s){var n=s||{},i=n.encode||on;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!X.test(e))throw new TypeError("argument name is invalid");var r=i(t);if(r&&!X.test(r))throw new TypeError("argument val is invalid");var o=e+"="+r;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}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(!an(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 c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){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 rn(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function on(e){return encodeURIComponent(e)}function an(e){return tn.call(e)==="[object Date]"||e instanceof Date}function cn(e,t){try{return t(e)}catch{return e}}function un(){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 ln(e){return typeof e=="string"?He(e):typeof e=="object"&&e!==null?e:{}}function pe(e,t={}){const s=dn(e);if(!t.doNotParse)try{return JSON.parse(s)}catch{}return e}function dn(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class fn{constructor(t,s={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=He(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=ln(t||n),this.defaultSetOptions=s,this.HAS_DOCUMENT_COOKIE=un()}_emitChange(t){for(let s=0;s<this.changeListeners.length;++s)this.changeListeners[s](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:pe(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,s={}){return s.doNotUpdate||this.update(),pe(this.cookies[t],s)}getAll(t={}){t.doNotUpdate||this.update();const s={};for(let n in this.cookies)s[n]=pe(this.cookies[n],t);return s}set(t,s,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof s=="string"?s:JSON.stringify(s);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ke(t,i,n)),this._emitChange({name:t,value:s,options:n})}remove(t,s){const n=s=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),s),{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=ke(t,"",n)),this._emitChange({name:t,value:void 0,options:s})}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 s=this.changeListeners.indexOf(t);s>=0&&this.changeListeners.splice(s,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function pn(e,{doNotParse:t=!1,autoUpdateDependencies:s=!1}={},n=new fn){const i=s?[...e||[]]:e;let r=n.getAll({doNotParse:!0});const o=C.ref(0),a=()=>{const d=n.getAll({doNotParse:!0});mn(i||null,d,r)&&o.value++,r=d};return n.addChangeListener(a),en(()=>{n.removeChangeListener(a)}),{get:(...d)=>(s&&i&&!i.includes(d[0])&&i.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 mn(e,t,s){if(!e)return!0;for(const n of e)if(t[n]!==s[n])return!0;return!1}const hn=()=>{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},Qe=(e,t)=>oe(e,Ke(t)),oe=(e,t)=>{const s={};return Te(t).forEach(n=>s[n]=oe(e==null?void 0:e[n],t[n])),"$item"in t&&(e==null||e.forEach((n,i)=>s[i]=oe(n,t.$item))),s.$valid=(!t.$asserts||t.$asserts.every(n=>n(e)))&&Te(s).every(n=>s[n].$valid),s},Ke=e=>Ze(Object.entries(e).reduce((t,[s,n])=>(t[`${s.replaceAll(".[]",".$item")}${s.length?".":""}$asserts`]=Array.isArray(n)?n:[n],t),{})),yn=(e,t,s)=>(e=JSON.parse(JSON.stringify(e)),Re(e).forEach(i=>{const r=i.replace(/\.[0-9]+/g,".[]");L(t,`${i}.$valid`)===!1&&s[r]!==void 0&&F(e,i,s[r])}),e),Te=e=>Object.keys(e).filter(t=>!t.startsWith("$")),gn=e=>typeof e=="boolean",bn=e=>typeof e=="number",wn=e=>typeof e=="string",J=e=>Array.isArray(e),Z=e=>typeof e=="object"&&!J(e)&&e!==null,vn=e=>e instanceof Date,En=e=>typeof e=="function",Ge=e=>e===null,We=e=>e===void 0,Je=e=>Ge(e)||We(e),An=e=>!Je(e),Rn=e=>!!e,Pn=e=>!e,In=(e,t)=>J(e)&&e.every(s=>t(s)),Sn=(e,t)=>Z(e)&&Object.values(e).every(s=>t(s)),On=(e,t)=>Qe(e,t).$valid,Cn=(e,t,s=!1)=>{J(t)||(t=[t]);let n=e;for(;n;){if(n.classList&&t[s?"every":"some"](i=>n.classList.contains(i)))return!0;n=n.parentElement}return!1},_n=()=>typeof window<"u"&&typeof window.document<"u",x=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,L=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let i=e;const r=a=>a!=null,o=a=>typeof a=="object";for(const[a,d]of n.entries()){if(!r(i))return s;if(a===n.length-1)return r(i[d])?i[d]:s;if(!o(i[d]))return s;i=i[d]}return s},F=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],i=a=>typeof a=="number"||/^\d$/g.test(a),r=a=>parseInt(a,10);let o=e;return n.forEach((a,d)=>{if(d===n.length-1)o[a]=s;else{const u=i(n[d+1])?[]:{};a=i(a)?r(a):a,o[a]=o[a]??u,o=o[a]}}),e},Ze=(e,t={})=>{const s=Z(e)?Object.entries(e):e;for(const[n,i]of s)F(t,n,i);return t},kn=(e,t={})=>{const s=Z(e)?Object.entries(e):e;for(const[n,i]of s)F(t,n,i(t,n));return t},Xe=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},Ae=(e,t)=>{const s={...e};for(const[n,i]of Object.entries(t))n in s&&typeof s[n]=="object"&&typeof i=="object"?s[n]=Ae(s[n],i):s[n]=Xe(i);return s},Re=(e,t=()=>!0,s="")=>{const n=[];for(const i in e){const r=e[i],o=s?`${s}.${i}`:i;t(i,o,r)&&(n.push(o),(Z(r)||J(r))&&n.push(...Re(r,t,o)))}return n},Tn=e=>e.startsWith("http:")?e.replace("http:","https:"):e,$n=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,Ye=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,$e=()=>{const e=Ye();return!e||e==="localhost"?e:`.${e}`},Nn=()=>({path:"/"}),Mn=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),me=e=>{if(!(x()||!e))return e.startsWith("localhost")?Nn():Mn(e)};function et(){const e=pn(),t=r=>e.get(r),s=(r,o)=>e.set(r,o,me($e())),n=r=>{e.remove(r),e.remove(r,me(Ye())),e.remove(r,me($e()))};return{getItem:t,setItem:s,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(r=>n(r))}}const tt=(e={token:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=et())=>{const s=()=>t,n=()=>t.getItem(e.token),i=()=>t.getItem(e.refresh),r=()=>t.getItem(e.expiration),o=()=>a()&&!d(),a=()=>!!n(),d=()=>{const m=r();return m?new Date(m)<new Date:!0},u=(m,h)=>{const b=p(m);if(!b.exp)throw new Error("Invalid JWT token.");t.setItem(e.token,m),t.setItem(e.refresh,h),t.setItem(e.expiration,((b.exp-60)*1e3).toString())},c=()=>{t.removeItem(e.token),t.removeItem(e.refresh),t.removeItem(e.expiration)},p=m=>JSON.parse(atob(m.split(".")[1]));return{keys:e,getStorage:s,getAuthToken:n,getRefreshToken:i,getExpiration:r,isAuthenticated:o,hasAuth:a,isExpired:d,authenticate:u,clear:c}};function Ln(e,t){const s=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)s[n[i]]=!0;return t?i=>!!s[i.toLowerCase()]:i=>!!s[i]}process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const nt=Object.assign,Dn=Object.prototype.hasOwnProperty,ue=(e,t)=>Dn.call(e,t),M=Array.isArray,H=e=>st(e)==="[object Map]",jn=e=>typeof e=="string",Pe=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",xn=Object.prototype.toString,st=e=>xn.call(e),it=e=>st(e).slice(8,-1),Ie=e=>jn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Bn=Vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Se=(e,t)=>!Object.is(e,t);function Ne(e,...t){console.warn(`[Vue warn] ${e}`,...t)}const K=e=>{const t=new Set(e);return t.w=0,t.n=0,t},zn=e=>(e.w&Oe)>0,Fn=e=>(e.n&Oe)>0,ye=new WeakMap;let Oe=1,T;const V=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),ge=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");let G=!0;const rt=[];function Un(){rt.push(G),G=!1}function qn(){const e=rt.pop();G=e===void 0?!0:e}function S(e,t,s){if(G&&T){let n=ye.get(e);n||ye.set(e,n=new Map);let i=n.get(s);i||n.set(s,i=K());const r=process.env.NODE_ENV!=="production"?{effect:T,target:e,type:t,key:s}:void 0;be(i,r)}}function be(e,t){let s=!1;Fn(e)||(e.n|=Oe,s=!zn(e)),s&&(e.add(T),T.deps.push(e),process.env.NODE_ENV!=="production"&&T.onTrack&&T.onTrack(nt({effect:T},t)))}function D(e,t,s,n,i,r){const o=ye.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(s==="length"&&M(e)){const u=Number(n);o.forEach((c,p)=>{(p==="length"||p>=u)&&a.push(c)})}else switch(s!==void 0&&a.push(o.get(s)),t){case"add":M(e)?Ie(s)&&a.push(o.get("length")):(a.push(o.get(V)),H(e)&&a.push(o.get(ge)));break;case"delete":M(e)||(a.push(o.get(V)),H(e)&&a.push(o.get(ge)));break;case"set":H(e)&&a.push(o.get(V));break}const d=process.env.NODE_ENV!=="production"?{target:e,type:t,key:s,newValue:n,oldValue:i,oldTarget:r}:void 0;if(a.length===1)a[0]&&(process.env.NODE_ENV!=="production"?B(a[0],d):B(a[0]));else{const u=[];for(const c of a)c&&u.push(...c);process.env.NODE_ENV!=="production"?B(K(u),d):B(K(u))}}function B(e,t){const s=M(e)?e:[...e];for(const n of s)n.computed&&Me(n,t);for(const n of s)n.computed||Me(n,t)}function Me(e,t){(e!==T||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(nt({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Hn=Ln("__proto__,__v_isRef,__isVue"),ot=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pe)),Qn=at(),Kn=at(!0),Le=Gn();function Gn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...s){const n=w(this);for(let r=0,o=this.length;r<o;r++)S(n,"get",r+"");const i=n[t](...s);return i===-1||i===!1?n[t](...s.map(w)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...s){Un();const n=w(this)[t].apply(this,s);return qn(),n}}),e}function Wn(e){const t=w(this);return S(t,"has",e),t.hasOwnProperty(e)}function at(e=!1,t=!1){return function(n,i,r){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&r===(e?t?ds:dt:t?ls:lt).get(n))return n;const o=M(n);if(!e){if(o&&ue(Le,i))return Reflect.get(Le,i,r);if(i==="hasOwnProperty")return Wn}const a=Reflect.get(n,i,r);return(Pe(i)?ot.has(i):Hn(i))||(e||S(n,"get",i),t)?a:z(a)?o&&Ie(i)?a:a.value:le(a)?e?pt(a):ft(a):a}}const Jn=Zn();function Zn(e=!1){return function(s,n,i,r){let o=s[n];if(ae(o)&&z(o)&&!z(i))return!1;if(!e&&(!ht(i)&&!ae(i)&&(o=w(o),i=w(i)),!M(s)&&z(o)&&!z(i)))return o.value=i,!0;const a=M(s)&&Ie(n)?Number(n)<s.length:ue(s,n),d=Reflect.set(s,n,i,r);return s===w(r)&&(a?Se(i,o)&&D(s,"set",n,i,o):D(s,"add",n,i)),d}}function Xn(e,t){const s=ue(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&s&&D(e,"delete",t,void 0,n),i}function Yn(e,t){const s=Reflect.has(e,t);return(!Pe(t)||!ot.has(t))&&S(e,"has",t),s}function es(e){return S(e,"iterate",M(e)?"length":V),Reflect.ownKeys(e)}const ts={get:Qn,set:Jn,deleteProperty:Xn,has:Yn,ownKeys:es},ns={get:Kn,set(e,t){return process.env.NODE_ENV!=="production"&&Ne(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&Ne(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Ce=e=>e,de=e=>Reflect.getPrototypeOf(e);function Y(e,t,s=!1,n=!1){e=e.__v_raw;const i=w(e),r=w(t);s||(t!==r&&S(i,"get",t),S(i,"get",r));const{has:o}=de(i),a=n?Ce:s?_e:W;if(o.call(i,t))return a(e.get(t));if(o.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function ee(e,t=!1){const s=this.__v_raw,n=w(s),i=w(e);return t||(e!==i&&S(n,"has",e),S(n,"has",i)),e===i?s.has(e):s.has(e)||s.has(i)}function te(e,t=!1){return e=e.__v_raw,!t&&S(w(e),"iterate",V),Reflect.get(e,"size",e)}function De(e){e=w(e);const t=w(this);return de(t).has.call(t,e)||(t.add(e),D(t,"add",e,e)),this}function je(e,t){t=w(t);const s=w(this),{has:n,get:i}=de(s);let r=n.call(s,e);r?process.env.NODE_ENV!=="production"&&ut(s,n,e):(e=w(e),r=n.call(s,e));const o=i.call(s,e);return s.set(e,t),r?Se(t,o)&&D(s,"set",e,t,o):D(s,"add",e,t),this}function xe(e){const t=w(this),{has:s,get:n}=de(t);let i=s.call(t,e);i?process.env.NODE_ENV!=="production"&&ut(t,s,e):(e=w(e),i=s.call(t,e));const r=n?n.call(t,e):void 0,o=t.delete(e);return i&&D(t,"delete",e,void 0,r),o}function Ve(){const e=w(this),t=e.size!==0,s=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,s),n}function ne(e,t){return function(n,i){const r=this,o=r.__v_raw,a=w(o),d=t?Ce:e?_e:W;return!e&&S(a,"iterate",V),o.forEach((u,c)=>n.call(i,d(u),d(c),r))}}function se(e,t,s){return function(...n){const i=this.__v_raw,r=w(i),o=H(r),a=e==="entries"||e===Symbol.iterator&&o,d=e==="keys"&&o,u=i[e](...n),c=s?Ce:t?_e:W;return!t&&S(r,"iterate",d?ge:V),{next(){const{value:p,done:m}=u.next();return m?{value:p,done:m}:{value:a?[c(p[0]),c(p[1])]:c(p),done:m}},[Symbol.iterator](){return this}}}}function N(e){return function(...t){if(process.env.NODE_ENV!=="production"){const s=t[0]?`on key "${t[0]}" `:"";console.warn(`${Bn(e)} operation ${s}failed: target is readonly.`,w(this))}return e==="delete"?!1:this}}function ss(){const e={get(r){return Y(this,r)},get size(){return te(this)},has:ee,add:De,set:je,delete:xe,clear:Ve,forEach:ne(!1,!1)},t={get(r){return Y(this,r,!1,!0)},get size(){return te(this)},has:ee,add:De,set:je,delete:xe,clear:Ve,forEach:ne(!1,!0)},s={get(r){return Y(this,r,!0)},get size(){return te(this,!0)},has(r){return ee.call(this,r,!0)},add:N("add"),set:N("set"),delete:N("delete"),clear:N("clear"),forEach:ne(!0,!1)},n={get(r){return Y(this,r,!0,!0)},get size(){return te(this,!0)},has(r){return ee.call(this,r,!0)},add:N("add"),set:N("set"),delete:N("delete"),clear:N("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=se(r,!1,!1),s[r]=se(r,!0,!1),t[r]=se(r,!1,!0),n[r]=se(r,!0,!0)}),[e,s,t,n]}const[is,rs,os,as]=ss();function ct(e,t){const s=t?e?as:os:e?rs:is;return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ue(s,i)&&i in n?s:n,i,r)}const cs={get:ct(!1,!1)},us={get:ct(!0,!1)};function ut(e,t,s){const n=w(s);if(n!==s&&t.call(e,n)){const i=it(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 lt=new WeakMap,ls=new WeakMap,dt=new WeakMap,ds=new WeakMap;function fs(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ps(e){return e.__v_skip||!Object.isExtensible(e)?0:fs(it(e))}function ft(e){return ae(e)?e:mt(e,!1,ts,cs,lt)}function pt(e){return mt(e,!0,ns,us,dt)}function mt(e,t,s,n,i){if(!le(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=i.get(e);if(r)return r;const o=ps(e);if(o===0)return e;const a=new Proxy(e,o===2?n:s);return i.set(e,a),a}function ae(e){return!!(e&&e.__v_isReadonly)}function ht(e){return!!(e&&e.__v_isShallow)}function w(e){const t=e&&e.__v_raw;return t?w(t):e}const W=e=>le(e)?ft(e):e,_e=e=>le(e)?pt(e):e;function ms(e){G&&T&&(e=w(e),process.env.NODE_ENV!=="production"?be(e.dep||(e.dep=K()),{target:e,type:"get",key:"value"}):be(e.dep||(e.dep=K())))}function hs(e,t){e=w(e);const s=e.dep;s&&(process.env.NODE_ENV!=="production"?B(s,{target:e,type:"set",key:"value",newValue:t}):B(s))}function z(e){return!!(e&&e.__v_isRef===!0)}function Be(e){return ys(e,!1)}function ys(e,t){return z(e)?e:new gs(e,t)}class gs{constructor(t,s){this.__v_isShallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?t:w(t),this._value=s?t:W(t)}get value(){return ms(this),this._value}set value(t){const s=this.__v_isShallow||ht(t)||ae(t);t=s?t:w(t),Se(t,this._rawValue)&&(this._rawValue=t,this._value=s?t:W(t),hs(this,t))}}function bs(e){let t={"Content-Type":"application/json"};e&&s(e);function s(b,v=!1){return t=v?b:{...t,...b},this}function n(){return t}function i(b,v){return t[b]=v,this}function r(b){return t[b]}function o(b){return t[b]&&delete t[b],this}function a(b){return i("Authorization","Bearer "+b),this}function d(){return o("Authorization"),this}function u(){return!!r("Authorization")}function c(){return i("Content-Type","multipart/form-data"),this}function p(){return i("Content-Type","application/json"),this}function m(){return r("Content-Type")==="multipart/form-data"}function h(){return r("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:i,getHeader:r,removeHeader:o,setAuthorization:a,removeAuthorization:d,hasAuthorization:u,setFormData:c,setJson:p,isFormData:m,isJson:h}}function ws(e){let t=null;e&&s(e);function s(i){if(i=i.toLowerCase(),!["get","post","put","patch","delete"].includes(i))throw new Error("Invalid method.");return t=i,this}function n(){return t}return{setMethod:s,getMethod:n}}function vs(e,t,s){let n=null;s&&i(s);function i(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=a(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 c in u){const p=u[c];if(d(p))return!0;if(typeof p=="object"&&o(p))return!0}return!1}function a(u,c=null,p=0){const m=!c;m&&(c=new FormData);for(const h in u){const b=u[h];d(b)?(u[h]="<<FileIndex:"+p+">>",c.append(p,b,b.name),p++):typeof b=="object"&&(u[h]=a(u[h],c,p))}return m?(c.append("payload",JSON.stringify(u)),c):u}function d(u){return typeof File<"u"&&u instanceof File||typeof Blob<"u"&&u instanceof Blob}return{setPayload:i,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&&ie(this.logger.debug,this.prefix,t)}info(...t){this.level<=O.LEVEL_INFO&&ie(this.logger.info,this.prefix,t)}warn(...t){this.level<=O.LEVEL_WARN&&ie(this.logger.warn,this.prefix,t)}error(...t){this.level<=O.LEVEL_ERROR&&ie(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 ce=O;const ie=(e,t,s)=>{t?e(t,...s):e(...s)},E=new ce({prefix:"[SDK]"});let yt=null,gt=null,bt=null,wt="/",vt=null;const Es=()=>yt,As=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");yt=e},Rs=()=>gt,Ps=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");gt=e},Is=()=>vt,Ss=e=>{vt=e},Os=()=>bt,Cs=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");bt=e},_s=e=>{E.info("[Config] Base Assets Urls:",e),wt=e},ks=()=>wt,j={getEnvironment:Es,getApiHost:Rs,getErrorHandler:Is,setEnvironment:As,setApiHost:Ps,setErrorHandler:Ss,getMainAppHost:Os,setMainAppHost:Cs,setBaseAssetsUrl:_s,getBaseAssetsUrl:ks};function Ts(e){const t=j.getApiHost().replace(/\/$/g,"");let s=null,n={},i={};e&&a(e);function r(){return t+d()+h()}function o(){return d(!0,!0)}function a(f){return s="/"+f.replace(/^\//g,""),this}function d(f=!0,P=!1){return f?s.replace(/:(\w+)/g,(I,_)=>P?"*":i[_]||":"+_):s}function u(f){return n=f,this}function c(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 b(f){return i=f,this}function v(f,P){return i[f]=P,this}function $(f){return i[f]&&delete i[f],this}return{setPath:a,getPath:d,getUri:r,getMockUri:o,setQueryParams:u,setQueryParam:c,removeQueryParam:p,hasQuery:m,getQueryString:h,setRouteParams:b,setRouteParam:v,removeRouteParam:$}}function $s(e){let t=[];function s(){return t=u(arguments),o(),this}function n(){return t.length>0}function i(c){return t.includes(c.trim())?this:(t.push(c.trim()),o(),this)}function r(c){const p=t.indexOf(c.trim());return p===-1?this:(t.splice(p,1),o(),this)}function o(){t.length?e.setQueryParam("groups",d(t)):e.removeQueryParam("groups")}function a(c){return c.split(",").map(p=>p.trim())}function d(c){return c.join(",")}function u(c){let p=[];return c.length===1?typeof c[0]=="string"?p=a(c[0]):Array.isArray(c[0])&&(p=c[0]):p=Array.from(c),p}return{setGroups:s,hasGroups:n,addGroup:i,removeGroup:r}}function Ns(e){let t=!1,s=!1,n=1,i=10;function r(){return t=!0,o(),this}function o(){s=!0;const h=m(arguments);return u(h.page||1,!1),c(h.perPage||i,!1),p(),this}function a(){return s=!1,p(),this}function d(){return s}function u(h,b=!0){return t=!0,s=!0,n=h,b&&p(),this}function c(h,b=!0){return t=!0,s=!0,i=h,b&&p(),this}function p(){t?d()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",i)):(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 b={};return h.length>=1&&(b.page=h[0]),h.length>=2&&(b.perPage=h[1]),b}return{isList:r,paginate:o,disablePagination:a,hasPagination:d,setPage:u,setPerPage:c}}function Ms(e){let t=!1,s="id",n="ASC";function i(){t=!0;const c=u(arguments);return c.orderBy&&o(c.orderBy,!1),c.orderDir&&a(c.orderDir,!1),d(),this}function r(){return t}function o(c,p=!0){return t=!0,s=c,p&&d(),this}function a(c,p=!0){if(c=c.toUpperCase(),["ASC","DESC"].indexOf(c)===-1)throw new Error("Invalid order direction");return t=!0,n=c,p&&d(),this}function d(){r()&&(e.setQueryParam("orderBy",s),e.setQueryParam("orderDirection",n))}function u(c){if(c.length===1&&typeof c[0]=="object")return c[0];const p={};return c.length>=1&&(p.orderBy=c[0]),c.length>=2&&(p.orderDir=c[1]),p}return{setOrder:i,hasOrder:r,setOrderBy:o,setOrderDir:a}}function Ls(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function Ds(){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 s(){return e}return{setResponseType:t,getResponseType:s}}function js(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function xs(e,t=!1){let s=!1,n=!1;return e.response?(s=!0,n=!0):e.request&&(s=!0),!t&&j.getErrorHandler()&&j.getErrorHandler()(e),{sent:s,responded:n,error:e}}function Vs(e){function t(){return e}function s(){return e.data}function n(){return e.data}function i(){return e.data["@type"]==="hydra:Collection"}function r(){return i()?e.data["hydra:member"]:null}function o(){return i()?e.data["hydra:totalItems"]:null}function a(){return i()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function d(){return!i()||!a()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function u(){return!i()||!a()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:i,getCollection:r,getTotal:o,hasPagination:a,getPage:d,getPages:u}}function Bs(e,t,s,n,i,r){async function o(){const d=s.getMethod(),u=t.getUri(),c=e.getHeaders(),p=n.getPayload(),m=[u];["post","put","patch"].includes(d)&&m.push(p||{}),m.push({headers:c,responseType:r.getResponseType()}),E.info("[Request] Sending request:",`[${d.toUpperCase()}]`,u);try{const h=await Zt[d](...m);return a(h)}catch(h){throw xs(h,i.isSilent())}}function a(d){if(d.headers){const u=Object.keys(d.headers),c=u.map(p=>p.toLowerCase()).indexOf("content-type");if(c!==-1&&d.headers[u[c]].includes("application/ld+json"))return Vs(d)}return js(d)}return{send:o}}function R(e,t="get",s=null){const n=bs(),i=Ts(e),r=ws(t),o=vs(r,n,s),a=$s(i),d=Ns(i),u=Ms(i),c=Ls(),p=Ds(),m=Bs(n,i,r,o,c,p);return{...n,...i,...r,...o,...a,...d,...u,...c,...p,...m}}function y(e,t="get",s=null){const n=R(e,t,s),i=tt();i.isAuthenticated()&&n.setAuthorization(i.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 zs=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Fs=()=>({listByCandidateAndEstablishment:zs}),Us=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),qs=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Hs=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Qs=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ks=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),Gs=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),Ws=(e,t,s)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(s),Js=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Zs=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Xs=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),Ys=()=>({share:Us,isArchived:qs,archive:Hs,unarchive:Qs,lookupCandidate:Ks,createCandidate:Gs,updateCandidate:Ws,closeIncompleteRegistration:Js,openNewRegistration:Zs,updateInvitation:Xs}),ei=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),ti=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),ni=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),si=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),ii=()=>({getForEstablishmentCandidate:ei,postForEstablishmentCandidate:ti,update:ni,remove:si}),ri=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),oi=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),ai=()=>({list:ri,listByEstablishment:oi}),ci=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),ui=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),li=()=>({list:ci,markAsSeen:ui}),di=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),fi=()=>({syncCandidateLabels:di}),pi=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),mi=()=>({list:pi}),hi=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),yi=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),gi=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),bi=e=>y("document/recruiter").setMethod("post").setPayload(e),wi=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),vi=()=>({listByCandidate:hi,listByCandidateAndEstablishmentFromRecruiter:yi,listByCandidateAndEstablishmentFromCandidate:gi,addFromRecruiter:bi,remove:wi}),Ei=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Ai=()=>({listByCandidateAndEstablishment:Ei}),Ri=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Pi=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Ii=()=>({sendToCandidate:Ri,sendToRecipients:Pi}),Si=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},Oi=()=>y("/v2/self/email-templates").isList().disablePagination(),Ci=()=>({listByEstablishment:Si,listSelf:Oi}),_i=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),ki=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Ti=(e,t,s=null)=>{const n=s!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},$i=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Ni=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Mi=()=>({readById:_i,readByState:ki,upsert:Ti,uploadLogoAndBanner:$i,publish:Ni}),Li=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),Di=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Et=()=>({read:Li,authorizations:Di}),ji=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),xi=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Vi=()=>({maintenanceModeEnabled:ji,forEstablishment:xi}),Bi=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),zi=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Fi=()=>({list:Bi,listByEstablishment:zi}),Ui=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),qi=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Hi=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Qi=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Ki=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),Gi=()=>({listByEstablishment:Ui,addToEstablishment:qi,update:Hi,remove:Qi,syncForCandidate:Ki}),Wi=e=>R("offer/:offerId").setRouteParams({offerId:e}),Ji=()=>({read:Wi}),Zi=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Xi=()=>({listByEstablishment:Zi}),Yi=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),er=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),tr=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),nr=(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}),ir=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),rr=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),or=()=>({read:Yi,mineByEstablishment:er,mineWithoutCandidate:tr,mineWithCandidate:nr,withCandidate:sr,addCandidates:ir,removeCandidate:rr}),ar=(e,t,s,n=null)=>{const i=R("candidate/register/open").setMethod("post"),r={email:e};return t==="establishment"&&(r.establishmentId=s),t==="offer"&&(r.offerId=s),n&&(r.referer=n),i.setPayload(r),i},cr=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),ur=e=>R("candidate/register/read/:token").setRouteParams({token:e}),lr=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),dr=()=>({open:ar,update:cr,read:ur,close:lr}),fr=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),pr=()=>({lookupEstablishment:fr}),mr=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),hr=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),yr=()=>({list:mr,listByEstablishment:hr}),gr=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),br=()=>({listByEstablishment:gr}),wr=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),vr=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Er=()=>({lookupTalent:wr,addCandidateToTalentPool:vr}),Ar=e=>R("user/email/isset/:email").setRouteParams({email:e}),Rr=()=>y("user/self").addGroup("user:self"),Pr=e=>y("/user/:uuid").setRouteParams({uuid:e}),Ir=e=>R("/user/:uuid").setRouteParams({uuid:e}),Sr=e=>y("/user/:id/uuid").setRouteParams({id:e}),At=()=>({emailExists:Ar,self:Rr,byUuidPrivate:Pr,byUuid:Ir,fetchUuid:Sr}),Rt=()=>{const e=Be(null),t=Be({}),s=C.computed(()=>e.value.roles??[]),n=C.computed(()=>s.value.includes("ROLE_RH")),i=C.computed(()=>s.value.includes("ROLE_CANDIDATE")),r=C.computed(()=>s.value.includes("ROLE_ADMIN"));return{user:e,establishments:t,roles:s,isRH:n,isCandidate:i,isAdmin:r,fetchSelf:async d=>{if(e.value===null||d)return At().self().send().then(u=>e.value=u.getData())},fetchPermission:async(d,u)=>{if(!t.value[d]||u)return Et().authorizations(d).send().then(c=>t.value[d]=c.getData())}}},Or=Xt.defineStore("authorization",Rt);let q=null;function g(){if(q)return q;const e=j.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let i=null;function r(){return s}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 b=Array.prototype.slice.call(arguments);return b.unshift(h),m.push(b),m}};for(let h=0;h<m.methods.length;h++){const b=m.methods[h];m[b]=m.factory(b)}m.load=function(h,b){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=b},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function a(){return i!==null||(i=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()})),i}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,b){if(!x()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),p("[page]",[m,h,b]),r())return window.analytics.page(m,{category:h,...b})}catch(v){console.log(v),p("[page]",[m,h,b],"error")}}}async function c(m,h,b){if(!x()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),p("[track]",[m,h,b]),r())return window.analytics.track(m,{category:h,...b})}catch{p("[track]",[m,h,b],"error")}}}function p(m,h=[],b="info"){h||(h=[]),n&&E[b](`::SDK Analytics:: ${m}`,...h)}return q={analyticsScriptReady:a,isEnabled:r,identify:d,page:u,track:c,consoleMessage:p},q}g.destroy=()=>q=null;function Pt(){const e="Hubler Application";function t(u){if(!u)throw new Error(`Missing arguments for domain "${e}"`);const c=!!u.offerId;if(c&&!u.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:u.establishmentId?u.establishmentId.toString():null,jobOfferId:c?u.offerId.toString():null,recruitmentId:c?u.recruitmentId.toString():null,selections:[c?"Application":"Spontaneous Application"]}}async function s(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 i(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 a(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:s,applicationMagicLinkViewed:n,applicationJobViewed:i,applicationInformationViewed:r,applicationDocumentViewed:o,applicationSuccessViewed:a,applicationFormFailed:d}}function It(){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 s(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 i(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 a(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 c(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 b(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:s,profileLabelAdded:n,profileLabelRemoved:i,profileShared:r,profileArchived:o,profileCandidateAdded:a,profileCommentAdded:d,profileDocumentAdded:u,profileDocumentDownloaded:c,profileDocumentRequested:p,profileRecruitmentAdded:m,profileRecruitmentRemoved:h,profileTabSelected:b,profileViewed:v,profileEmailSent:$}}function St(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const i={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(i.institutionId=[n.institutionId.toString()]),n.origin&&(i.origin=n.origin.toString()),i}async function s(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:s}}function Ot(){const e="Visual Builder";function t(l,Gt){if(!l)throw new Error(`Missing arguments for domain "${e}"`);const U={companyId:l.companyId?l.companyId.toString():null};return Gt&&(U.productId=l.companyId?l.companyId+"_2":null),l.selections&&(U.selections=l.selections),l.error&&(U.error=l.error),l.institutionId&&(U.institutionId=[l.institutionId.toString()]),U}async function s(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 i(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 a(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 c(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 b(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 Mt(l){return g().track(l.name,e,t(l.properties,!0))}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 Bt(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 Ft(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 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 Kt(l){return g().page(l.name,e,t(l.properties,!1))}return{careerSitePreviewViewed:s,careerSitePublished:n,setupBenefitCustomAdded:i,setupBenefitViewed:r,setupCandidateInformationViewed:o,setupContactAdded:a,setupContactViewed:d,setupEditionDoneViewed:u,setupExternalLinkViewed:c,setupImageUploaded:p,setupImageViewed:m,setupLocationViewed:h,setupPresentationContentAdded:b,setupPresentationNewTabAdded:v,setupPresentationViewed:$,setupSettingsDoneViewed:f,setupSocialNetworkViewed:P,setupThemeViewed:I,visualBuilderViewed:_,setupImageUploadFailed:Mt,fastCopyLinkClicked:Lt,setupBenefitCustomDeleted:Dt,setupBenefitCustomEdited:jt,setupContactDeleted:xt,setupContactEdited:Vt,setupContactNewClicked:Bt,setupPresentationContentDeleted:zt,setupPresentationContentDuplicated:Ft,setupPresentationContentMoved:Ut,setupPresentationTabDeleted:qt,setupPresentationTabEdited:Ht,setupPresentationTabMoved:Qt,setupSEOViewed:Kt}}const ze=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:Pt,useAnalyticsProfile:It,useAnalyticsRecruitment:St,useAnalyticsVisualBuilder:Ot},Symbol.toStringTag,{value:"Module"}));function Cr(){function e(s){return g().identify(s.id,{email:s.email,firstName:s.firstname,lastName:s.lastname,createdAt:s.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let s=!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)))&&(s=!0)}(navigator.userAgent||navigator.vendor||window.opera),s}return{identifyCandidate:e}}let re=null;const _r=async(e,t)=>{try{return await fe(),E.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{E.error("[identify]",[e,t])}},kr=async(e,t,s)=>{typeof s!="object"&&(s={});try{return await fe(),E.info("[page]",[e,t,s]),window.analytics.page(e,{category:t,...s})}catch{E.error("[page]",[e,t,s])}},Tr=async(e,t,s)=>{typeof s!="object"&&(s={});try{return await fe(),E.info("[track]",[e,t,s]),window.analytics.track(e,{category:t,...s})}catch{E.error("[track]",[e,t,s])}},we=()=>{const e=j.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Ct=()=>{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 s=Array.prototype.slice.call(arguments);return s.unshift(t),e.push(s),e}};for(let t=0;t<e.methods.length;t++){const s=e.methods[t];e[s]=e.factory(s)}e.load=function(t,s){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 i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i),e._loadOptions=s},e._writeKey=we(),e.SNIPPET_VERSION="4.16.1",e.load(we()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},fe=()=>(re!==null||(re=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();Ct()})),re),$r={key:we,appendScript:Ct,ready:fe,identify:_r,page:kr,track:Tr},Nr="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let _t=!1;const kt=()=>new Promise(e=>{x()||_t||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),Dr())}),Mr=(e,t)=>kt().then(()=>{x()||Lr(e,t)}),Lr=(e,t)=>{const s=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(s,"place_changed",()=>{const n=s.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},Dr=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Nr+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),_t=!0},jr={scriptReady:kt,autocompleteInput:Mr},xr={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"}},Vr={fr:xr};let ve=null;const Tt=()=>ve,Br=(e={})=>{let t=e.locale||"fr";const s=d=>t=d,n=()=>t,i=Ae(Vr,(e==null?void 0:e.messages)||{}),r=(d,u)=>{const c=L(i,`${t}.${d}`);return c?u?zr(c,u):c:d},o=(d,u)=>{const c=L(i,`${t}.${d}`);return c?Fr(c,u):d};return ve={t:r,tNode:o,setLocale:s,getLocale:n,install:d=>{d.config.globalProperties.$t=r,d.config.globalProperties.$tNode=o}},ve},zr=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>L(t,n)):null,Fr=(e,t)=>{if(!e)return null;const s=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const i=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(i==="text")return()=>Fe.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,c)=>(c[3]===void 0?F(u,c[1],L(t,c[1])):F(u,c[1],L(t,c[3])),u),o),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((u,c)=>{let p=c[2];return new RegExp(/^[0-9]*$/).exec(c[2])?p=parseInt(c[2]):new RegExp(/^(true|false)$/).exec(c[2])&&(p=c[2]==="true"),u[c[1]]=p,u},o)),a=>Fe[i](r,t,a,o)});return{setup:(n,{slots:i})=>()=>s.map(r=>r(i))}},Fe={slot:(e,t,s,n)=>C.h("span",{class:"node node--slot"},s[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 Ur(e){const{t}=Tt(),s={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,i)=>n===1?t(i?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,i)=>n===1?t(i?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,i)=>n===1?t(i?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,i)=>n===1?t(i?"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 Yt.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function qr(){let e=null;function t(){return e}function s(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function i(){return e.action}function r(){return e.arguments}function o(){return!!(e&&e.controller&&e.action)}function a(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((d,u)=>{const c=u.split("=");return c[0]==="controller"||c[0]==="action"?d[c[0]]=decodeURIComponent(c[1]):d.arguments[c[0]]=decodeURIComponent(c[1]),d},{controller:null,action:null,arguments:{}}))}return a(),{getParams:t,getController:s,getControllerComposableName:n,getAction:i,getArguments:r,hasAction:o}}function Hr(){async function e({domain:n,event:i,...r}){const o="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(o))throw new Error(`Domain ${n} is not defined`);const a=ze[o]();if(!s(a,i))throw new Error(`Event ${i} is not defined in domain ${n}`);return a[i](r)}function t(n){return!!ze[n]}function s(n,i){return!!n[i]}return{call:e}}const Ue=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Hr},Symbol.toStringTag,{value:"Module"}));function Qr(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!s())throw new Error(`Controller ${e.getController()} not found`);const i=Ue[e.getControllerComposableName()]();if(!n(i))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return i[e.getAction()](e.getArguments())}function s(){return e.getControllerComposableName()in Ue}function n(i){return e.getAction()in i}return{dispatch:t}}function Kr(){let e=!1;function t(i,r,o){n(),o()}function s(i,r,o){if(!e)return e=!0,t(i,r,o);o()}function n(){const i=qr();if(!i.hasAction())return;Qr(i).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const $t=(e,t,s)=>{const n={};for(const i of e)t.query[i]!==void 0&&(n[i]=t.query[i]);if(Object.keys(n).length){const i=JSON.parse(JSON.stringify(t));for(const r in n)delete i.query[r];s.replace(i)}return n},Gr=(e,t,s)=>$t([e],t,s)[e],Wr=()=>({getAssetUrl:t=>`${j.getBaseAssetsUrl()}${t}`}),A=()=>j.getMainAppHost(),Jr=()=>`${A()}/rh/establishments`,Zr=e=>`${A()}/rh/establishment/${e}`,Xr=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},Yr=()=>`${A()}/rh/dashboard`,eo=e=>`${A()}/candidate-invite/establishment/${e}`,to=(e,t=!1)=>t?`${A()}/cvbank/${e}`:`${A()}/rh/establishment/${e}/cvtheque`,no=(e,t)=>`${A()}/user-profile/establishment/${e}/user/${t}`,so=e=>`${A()}/rh/establishment/${e}/recruitment`,io=(e,t)=>`${A()}/rh/establishment/${e}/recruitment/${t}`,ro=(e,t)=>`${A()}/rh/establishment/${e}/recruitment/${t}/kanban`,oo=e=>`${A()}/rh/establishment/${e}/career-configuration`,ao=(e,t=null)=>t?`${A()}/career-website/${e}/${t}`:`${A()}/career-website/${e}`,co=(e,t)=>`${A()}/career-website-preview/${e}/${t}`,uo=(e,t=null)=>{const s=A().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`},lo=e=>`${A()}/rh/establishment/${e}/stats`,fo=e=>`${A()}/rh/establishment/${e}/backoffice`,po=()=>`${A()}/rh/settings/general`;function mo(){return{root:A,establishments:Jr,establishment:Zr,img:Xr,dashboard:Yr,candidateInvite:eo,cvtheque:to,userProfile:no,recruitments:so,recruitment:io,recruitmentKanban:ro,career:oo,careerConfig:ao,careerPreview:co,careerWebsite:uo,statistics:lo,backoffice:fo,userSettings:po}}const qe=new Set;let Q,Ee={ignore:e=>e.startsWith("Ui")};const he=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)Q.has(t)||qe.has(t)||Ee.ignore(t)||(qe.add(t),E.error(`Undefined CSS class: ${t}`))}},Nt=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)Nt(s.cssRules);else if(s.selectorText){const n=(t=s.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const i of n)Q.add(i.substr(1))}},ho=(e={})=>{if(Q)return Q;Q=new Set,Ee={...Ee,...e},Nt(document.styleSheets),new MutationObserver(s=>{for(const n of s)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const i of n.addedNodes)if(!(i.nodeType===3||i.nodeType===8)){he(i);for(const r of i.querySelectorAll("*"))he(r)}}else(n==null?void 0:n.attributeName)==="class"&&he(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},yo="0.2.78";exports.Analytics=$r;exports.BaseLogger=ce;exports.Gmap=jr;exports.SDKConfig=j;exports.SDKLogger=E;exports.VERSION=yo;exports._clone=Xe;exports._get=L;exports._map=kn;exports._merge=Ae;exports._pathList=Re;exports._set=F;exports._setMany=Ze;exports.buildObjectValidation=oe;exports.consumeQueryParam=Gr;exports.consumeQueryParams=$t;exports.createI18n=Br;exports.ensureScheme=$n;exports.hasOrIsInClass=Cn;exports.inBrowser=_n;exports.inNode=x;exports.isArray=J;exports.isArrayOf=In;exports.isBoolean=gn;exports.isDate=vn;exports.isFalsy=Pn;exports.isFunction=En;exports.isMobile=hn;exports.isNotNullOrUndefined=An;exports.isNull=Ge;exports.isNullOrUndefined=Je;exports.isNumber=bn;exports.isObject=Z;exports.isObjectOf=Sn;exports.isObjectValid=On;exports.isString=wn;exports.isTruthy=Rn;exports.isUndefined=We;exports.sanitizeObject=yn;exports.secureScheme=Tn;exports.transpileAsserts=Ke;exports.useActivityRepository=Fs;exports.useAnalyticsHublerApplication=Pt;exports.useAnalyticsIdentify=Cr;exports.useAnalyticsProfile=It;exports.useAnalyticsRecruitment=St;exports.useAnalyticsVisualBuilder=Ot;exports.useAssetUrls=Wr;exports.useAuthentication=tt;exports.useAuthorization=Rt;exports.useAuthorizationStore=Or;exports.useCandidateRepository=Ys;exports.useCommentRepository=ii;exports.useContractTypeRepository=ai;exports.useCookieStorage=et;exports.useCvbankRepository=li;exports.useCvthequeRepository=fi;exports.useDiplomaRepository=mi;exports.useDocumentRepository=vi;exports.useDomainUrls=mo;exports.useEmailHistoryRepository=Ai;exports.useEmailRepository=Ii;exports.useEmailTemplateRepository=Ci;exports.useEstablishmentCareerRepository=Mi;exports.useEstablishmentRepository=Et;exports.useFeatureFlagRepository=Vi;exports.useI18n=Tt;exports.useJobRepository=Fi;exports.useLabelRepository=Gi;exports.useLocaleTimeAgo=Ur;exports.useObjectValidation=Qe;exports.useOfferRepository=Ji;exports.usePrivateRequest=y;exports.useQSAction=Kr;exports.useRecruiterRepository=Xi;exports.useRecruitmentRepository=or;exports.useRegisterRepository=dr;exports.useRegistrationRepository=pr;exports.useRequest=R;exports.useSpecialityRepository=yr;exports.useTagRepository=br;exports.useTalentRepository=Er;exports.useUndefinedCssClasses=ho;exports.useUserRepository=At;
|