@egen-civitas/esm-app-shell 2.11.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dependencies.json +0 -1
- package/dist/{20657ca044e03c5a.js → 3511cb52421245d2.js} +1 -1
- package/dist/{20657ca044e03c5a.js.map → 3511cb52421245d2.js.map} +1 -1
- package/dist/6dbcb5941f2df991.css +1 -0
- package/dist/6dbcb5941f2df991.css.map +1 -0
- package/dist/813eae2000ea36ed.js +1 -0
- package/dist/813eae2000ea36ed.js.map +1 -0
- package/dist/{e7bbded2c2574aaf.js.map → 9b6e06745c772498.js.map} +1 -1
- package/dist/{124ea515e17df9d6.js → 9db69859ba0e2e39.js} +1 -1
- package/dist/{124ea515e17df9d6.js.map → 9db69859ba0e2e39.js.map} +1 -1
- package/dist/{6e590e5d195a54b4.js → b5df5f2d225330c6.js} +1 -1
- package/dist/b5df5f2d225330c6.js.map +1 -0
- package/dist/{4f17082326de0924.js → bab5d9d70fb62ab3.js} +1 -1
- package/dist/{4f17082326de0924.js.map → bab5d9d70fb62ab3.js.map} +1 -1
- package/dist/d1cb238decb53613.js +20 -0
- package/dist/d1cb238decb53613.js.map +1 -0
- package/dist/{egen.193711b6d6c5fcdf.js → egen.3c5427db0e04799d.js} +3 -3
- package/dist/egen.3c5427db0e04799d.js.map +1 -0
- package/dist/egen.9d32a525f71496ff.css +1 -0
- package/dist/{5ad49928ffd2c870.js → fa413d650533c455.js} +1 -1
- package/dist/fa413d650533c455.js.map +1 -0
- package/dist/index.html +42 -2
- package/package.json +4 -6
- package/rspack.config.js +3 -23
- package/src/host-incompatible.ts +1 -1
- package/src/index.ejs +50 -6
- package/src/run.ts +1 -1
- package/src/ui/breadcrumbs.tsx +10 -9
- package/tools/targets.js +1 -1
- package/dist/08aa56bc39f555b0.js +0 -20
- package/dist/08aa56bc39f555b0.js.map +0 -1
- package/dist/56d16b0a42960c11.css +0 -1
- package/dist/56d16b0a42960c11.css.map +0 -1
- package/dist/5ad49928ffd2c870.js.map +0 -1
- package/dist/5eeaed47d520b54d.js +0 -1
- package/dist/5eeaed47d520b54d.js.map +0 -1
- package/dist/67c7c33d226f8c4a.css +0 -1
- package/dist/67c7c33d226f8c4a.css.map +0 -1
- package/dist/6e590e5d195a54b4.js.map +0 -1
- package/dist/76aef6b4c07d22a7.js +0 -1
- package/dist/76aef6b4c07d22a7.js.map +0 -1
- package/dist/dca183c189ecf073.js +0 -1
- package/dist/dca183c189ecf073.js.map +0 -1
- package/dist/egen.193711b6d6c5fcdf.js.map +0 -1
- package/dist/egen.5a4d64708e9ef5e3.css +0 -1
- package/dist/fonts/IBMPlexMono-Italic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Italic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Italic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Italic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Italic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Light-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Light-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Light-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Light-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Light-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-LightItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-LightItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-LightItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-LightItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-LightItalic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBold-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBold-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBold-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBold-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBoldItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-SemiBoldItalic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Light-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Light-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Light-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Light-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-LightItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-LightItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-LightItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-LightItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-LightItalic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBoldItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBoldItalic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Italic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Italic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Italic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Italic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Italic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Light-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Light-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Light-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Light-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Light-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-LightItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-LightItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-LightItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-LightItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-LightItalic-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Regular-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Regular-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Regular-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-Regular-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBold-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBold-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBold-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBold-Pi.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Cyrillic.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin2.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin3.woff2 +0 -0
- package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Pi.woff2 +0 -0
- /package/dist/{e7bbded2c2574aaf.js → 9b6e06745c772498.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["1838"],{1343(e,t,r){var n={"./uk.json":["2462","6019"],"./ar.json":["685","6526"],"./ru_RU.json":["6117","5670"],"./uz_UZ.json":["2533","3942"],"./fr.json":["1502","1155"],"./sw_KE.json":["9845","3734"],"./uz.json":["8777","5778"],"./en.json":["7581","6590"],"./ky.json":["9258","9927"],"./pl.json":["6218","6631"],"./sq.json":["6877","3831"],"./ka.json":["3698","4927"],"./si.json":["6626","5855"],"./zh_TW.json":["9652","9589"],"./de.json":["9161","5874"],"./lg.json":["5367","6220"],"./vi.json":["4647","2380"],"./tr.json":["5104","9705"],"./es_MX.json":["4254","8579"],"./tr_TR.json":["2227","7872"],"./zh_CN.json":["9908","2021"],"./en_US.json":["4734","6259"],"./he.json":["8437","2998"],"./id.json":["9207","2172"],"./ku.json":["9934","5843"],"./es.json":["9238","3899"],"./ne.json":["3291","2520"],"./ar_SY.json":["3066","6471"],"./uz@Latn.json":["1074","2895"],"./bn.json":["9294","5395"],"./cs.json":["3576","913"],"./zh.json":["3224","9665"],"./hi_IN.json":["405","2086"],"./pt_BR.json":["4168","8728"],"./qu.json":["6908","6653"],"./ro_RO.json":["133","4886"],"./sw.json":["2692","7749"],"./am.json":["4468","3461"],"./pt.json":["3666","4879"],"./it.json":["4103","8140"],"./km.json":["2614","7707"],"./hi.json":["5433","1554"]};function o(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],o=t[0];return r.e(t[1]).then(function(){return r.t(o,19)})}o.keys=()=>Object.keys(n),o.id=1343,e.exports=o},205(e,t,r){"use strict";r.r(t),r.d(t,{run:()=>eV});var n=[{id:"egen-top-nav-app-container",cssVar:"--egen-navbar-height"},{id:"egen-footer-app-container",cssVar:"--egen-footer-height"}],o=r(9250),i=r(4238);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e>12?i.KC([i.Yj(),i.ai(),i.zM(),i.ch()]):i.RZ(function(){return i.KC([i.Yj().max(4e3,"Valeur trop longue (max 4000 caract\xe8res)"),i.ai().finite(),i.zM(),i.ch(),i.YO(a(e+1)).max(500),i.g1(i.Yj(),a(e+1)).refine(function(e){return Object.keys(e).length<=500},{message:"Trop de cl\xe9s \xe0 ce niveau (max ".concat(500,")")})])})}var l=i.Ik({priority:i.ai().finite({message:'"priority" doit \xeatre un nombre fini'}),meta:i.g1(i.Yj(),a()).optional()}).catchall(a());function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)})}}function f(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function p(e){return s(function(){var t,r,n,o,i,a;return f(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,fetch(e.includes("?")?e:"".concat(e,"?_t=").concat(Date.now()),{headers:{Accept:"application/json"},cache:"no-store"})];case 1:if(!(t=u.sent()).ok)return console.warn("[egen-civitas/esm-theme] ⚠️ HTTP ".concat(t.status,' pour "').concat(e,'" → ignor\xe9')),[2,null];return[4,t.text()];case 2:var c,s;n=function(e){for(var t=5381,r=0;r<e.length;r++)t=33*t^e.charCodeAt(r);return(t>>>0).toString(36)}(r=u.sent());try{o=JSON.parse(r)}catch(t){return console.warn('[egen-civitas/esm-theme] ⚠️ JSON invalide pour "'.concat(e,'" →'),t),[2,null]}if(c=o,!(i=(s=l.safeParse(c)).success?{valid:!0,errors:[]}:{valid:!1,errors:s.error.issues.map(function(e){return"".concat(e.path.join(".")||"(racine)"," — ").concat(e.message)})}).valid)return console.warn('[egen-civitas/esm-theme] ⚠️ Fichier de th\xe8me structurellement invalide, rejet\xe9 : "'.concat(e,'"\n')+i.errors.map(function(e){return" - ".concat(e)}).join("\n")),[2,null];return[2,{url:e,json:o,contentHash:n}];case 3:return a=u.sent(),console.warn('[egen-civitas/esm-theme] ⚠️ Impossible de charger "'.concat(e,'" →'),a),[2,null];case 4:return[2]}})})()}function d(e){var t=((function(e){if(Array.isArray(e))return u(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){var r="number"==typeof e.json.priority?e.json.priority:-1/0,n="number"==typeof t.json.priority?t.json.priority:-1/0;return n!==r?n-r:e.url.localeCompare(t.url)}),r=t[0],n="number"==typeof r.json.priority?r.json.priority:-1/0,o=t.filter(function(e){return("number"==typeof e.json.priority?e.json.priority:-1/0)===n});if(o.length>1){var i=o.map(function(e){return e.url}).join(", ");console.warn("[egen-civitas/esm-theme] \xc9galit\xe9 de priorit\xe9 (".concat(n,") entre plusieurs fichiers de th\xe8me : ").concat(i,". D\xe9partage d\xe9terministe par ordre alphab\xe9tique d'URL → \"").concat(r.url,'" retenu. Corrigez les valeurs "priority" pour lever l\'ambigu\xeft\xe9.'))}return r}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}}var b=["priority","meta"],m=/^[a-zA-Z0-9 ,.#%()_+\-:/!'"&*=@[\]~^]*$/,g=/url\(\s*['"]?(https:\/\/|\/(?!\/))/gi,w=/url\(/gi;function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.prefix,n=void 0===r?"":r,o=t.separator,i=void 0===o?"-":o,a=t.ignoreRootKeys,l=void 0===a?b:a,u={base:{},light:{},dark:{}};return!function e(t,r,o,a){if((void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||null===t||Array.isArray(t)){var c,s=n?[n].concat(y(r)):r,f="--".concat(s.join(i)),p=function(e){if(e.length>1e3)return{ok:!1,reason:"valeur trop longue (".concat(e.length," > ").concat(1e3," caract\xe8res)")};if(!m.test(e))return{ok:!1,reason:"contient un ou plusieurs caract\xe8res non autoris\xe9s"};var t,r,n=null!=(t=e.match(w))?t:[],o=null!=(r=e.match(g))?r:[];return n.length!==o.length?{ok:!1,reason:"url(...) doit utiliser le sch\xe9ma https:// ou un chemin relatif au site"}:{ok:!0}}(c=Array.isArray(t)?t.map(function(e){return"string"==typeof e?e:JSON.stringify(e)}).join(", "):null===t?"initial":"boolean"==typeof t?t?"true":"false":String(t)).ok?c:null;null!==p&&(u[a][f]=p)}else{if(o>0&&0!==(S=Object.keys(t)).length&&S.every(function(e){return"light"===e||"dark"===e})){void 0!==t.light&&e(t.light,r,o+1,"light"),void 0!==t.dark&&e(t.dark,r,o+1,"dark");return}var d=!0,h=!1,b=void 0;try{for(var S,j,O=Object.entries(t)[Symbol.iterator]();!(d=(j=O.next()).done);d=!0){var k,A=(k=j.value,function(e){if(Array.isArray(e))return e}(k)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(k)||v(k,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=A[0],P=A[1];if(!(0===o&&l.includes(E))){var I,x=(I=E,String(I).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase().replace(/[^a-zA-Z0-9-]/g,"-"));e(P,y(r).concat([x]),o+1,a)}}}catch(e){h=!0,b=e}finally{try{d||null==O.return||O.return()}finally{if(h)throw b}}}}(e,[],0,"base"),u}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k="egen-theme-vars",A="egen-theme-override-";function E(e,t){var r=Object.entries(t).sort(function(e,t){var r=O(e,1)[0],n=O(t,1)[0];return r.localeCompare(n)}).map(function(e){var t=O(e,2),r=t[0],n=t[1];return" ".concat(r,": ").concat(n,";")});return 0===r.length?"":"".concat(e," {\n").concat(r.join("\n"),"\n}")}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":root";return[E(t,e.base),E("".concat(t,"[data-theme='light'], [data-theme='light'] ").concat(t),e.light),E("".concat(t,"[data-theme='dark'], [data-theme='dark'] ").concat(t),e.dark)].filter(Boolean).join("\n\n")}function I(e){var t;"u">typeof document&&(null==(t=document.getElementById("".concat(A).concat(e)))||t.remove())}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"u">typeof document?document.documentElement:null;null==t||t.setAttribute("data-theme",e)}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}function _(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)}function M(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function N(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){U(i,n,o,a,l,"next",e)}function l(e){U(i,n,o,a,l,"throw",e)}a(void 0)})}}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):M(e,t)}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){D(e,t,r[t])})}return e}function F(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return R(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var q="__egen_global_override__",W={cssVarPrefix:"",separator:"-",ignoreRootKeys:["priority","meta"],pollIntervalMs:0,targetSelector:":root",defaultMode:"dark",modeStorageKey:"egen-theme-mode"},K={priority:-1,meta:{name:"Fallback int\xe9gr\xe9 (egen-civitas/esm-theme)"},colors:{primary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},surface:{light:{background:"#ffffff",foreground:"#0f172a"},dark:{background:"#0f172a",foreground:"#f1f5f9"}},border:{light:{default:"#cbd5e1"},dark:{default:"#334155"}}},borderRadius:{md:"0.5rem",xl:"1rem"},transitions:{default:"all 200ms ease"}},V=function(){var e;function t(e){if(!M(this,t))throw TypeError("Cannot call a class as a function");D(this,"options",void 0),D(this,"state",{status:"idle",activeTheme:null,mode:"dark",cssVarsCount:0,error:null,lastApplied:null,activeOverrideScopes:[],usingFallback:!1}),D(this,"pollTimer",null),D(this,"lastPollHashes",new Map),D(this,"listeners",new Set),D(this,"overrides",new Map),this.options=B({},W,e),this.state.mode=this.resolveInitialMode()}return e=[{key:"apply",value:function(){return N(function(){var e,t,r,n,o,i,a,l,u,c,h,y,v,b,m,g;return L(this,function(w){switch(w.label){case 0:this.setState({status:"loading",error:null}),w.label=1;case 1:var S;return w.trys.push([1,3,,4]),[4,(S=this.options.themeUrls,s(function(){var e,t,r;return f(this,function(n){switch(n.label){case 0:if(!S||0===S.length)return console.warn("[egen-civitas/esm-theme] Aucun URL de th\xe8me fourni."),[2,null];return[4,Promise.all(S.map(p))];case 1:if(0===(e=n.sent().filter(function(e){return null!==e})).length)return console.warn("[egen-civitas/esm-theme] Aucun fichier de th\xe8me valide charg\xe9."),[2,null];return r="number"==typeof(t=d(e)).json.priority?t.json.priority:-1/0,[2,{url:t.url,priority:r,schema:t.json}]}})})())];case 2:if(!(r=w.sent()))throw Error("Aucun th\xe8me valide trouv\xe9 parmi les URLs fournies.");n=this.processTheme(r),x(this.state.mode),this.setState({status:"applied",activeTheme:r,cssVarsCount:Object.keys(n.base).length+Object.keys(n.light).length+Object.keys(n.dark).length,lastApplied:Date.now(),error:null,usingFallback:!1}),null==(e=(t=this.options).onApplied)||e.call(t,r,n),o=!0,i=!1,a=void 0;try{for(l=this.overrides.keys()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)c=u.value,this.recomputeOverride(c)}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return this.options.pollIntervalMs>0&&!this.pollTimer&&this.startPolling(),[2,n];case 3:return b=z(h=w.sent(),Error)?h.message:String(h),null==(y=(v=this.options).onError)||y.call(v,z(h,Error)?h:Error(b)),console.error("[egen-civitas/esm-theme] ❌ Erreur lors de l'application du th\xe8me — repli sur le th\xe8me de secours int\xe9gr\xe9:",b),m={url:"(embedded-fallback)",priority:-1,schema:K},g=this.processTheme(m),x(this.state.mode),this.setState({status:"error",activeTheme:m,cssVarsCount:Object.keys(g.base).length+Object.keys(g.light).length+Object.keys(g.dark).length,lastApplied:Date.now(),error:b,usingFallback:!0}),[2,g];case 4:return[2]}})}).call(this)}},{key:"startPolling",value:function(){var e=this;if(!this.pollTimer){var t=this.options.pollIntervalMs;t&&!(t<=0)&&(this.pollTimer=setInterval(function(){return N(function(){var e,t,r,n,o,i,a,l,u,c,h;return L(this,function(y){switch(y.label){case 0:var v,b;return y.trys.push([0,2,,3]),[4,(v=this.options.themeUrls,b=this.lastPollHashes,s(function(){var e,t,r,n,o,i,a,l,u,c,s;return f(this,function(f){switch(f.label){case 0:if(!v||0===v.length)return[2,{changed:!1}];return[4,Promise.all(v.map(p))];case 1:if(0===(e=f.sent().filter(function(e){return null!==e})).length)return[2,{changed:!1}];t=new Map,r=e.length!==b.size,n=!0,o=!1,i=void 0;try{for(a=e[Symbol.iterator]();!(n=(l=a.next()).done);n=!0)u=l.value,t.set(u.url,u.contentHash),b.get(u.url)!==u.contentHash&&(r=!0)}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}if(!r)return[2,{changed:!1}];return s="number"==typeof(c=d(e)).json.priority?c.json.priority:-1/0,[2,{changed:!0,theme:{url:c.url,priority:s,schema:c.json},hashes:t}]}})})())];case 1:if(!(r=y.sent()).changed)return[2];this.lastPollHashes=r.hashes,n=r.theme,o=this.processTheme(n),this.setState({status:"applied",activeTheme:n,cssVarsCount:Object.keys(o.base).length+Object.keys(o.light).length+Object.keys(o.dark).length,lastApplied:Date.now(),error:null,usingFallback:!1}),null==(e=(t=this.options).onApplied)||e.call(t,n,o),i=!0,a=!1,l=void 0;try{for(u=this.overrides.keys()[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)h=c.value,this.recomputeOverride(h)}catch(e){a=!0,l=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw l}}return[3,3];case 2:return console.warn("[egen-civitas/esm-theme] ⚠️ Erreur pendant le polling de hot-reload:",y.sent()),[3,3];case 3:return[2]}})}).call(e)},t))}}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"destroy",value:function(){this.stopPolling(),"u">typeof document&&(null==(n=document.getElementById(k))||n.remove());var e=!0,t=!1,r=void 0;try{for(var n,o,i=this.overrides.keys()[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=o.value;I(a)}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}this.overrides.clear(),this.lastPollHashes=new Map,this.setState({status:"idle",activeTheme:null,cssVarsCount:0,error:null,lastApplied:null,activeOverrideScopes:[],usingFallback:!1}),this.listeners.clear()}},{key:"getState",value:function(){var e,t;return e=B({},this.state),t=t={activeOverrideScopes:F(this.state.activeOverrideScopes)},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}},{key:"subscribe",value:function(e){var t=this;return this.listeners.add(e),e(this.getState()),function(){return t.listeners.delete(e)}}},{key:"getMode",value:function(){return this.state.mode}},{key:"setMode",value:function(e){var t,r;if(e!==this.state.mode){if(this.state.mode=e,x(e),this.options.modeStorageKey&&"u">typeof window)try{window.localStorage.setItem(this.options.modeStorageKey,e)}catch(e){}null==(t=(r=this.options).onModeChanged)||t.call(r,e),this.setState({})}}},{key:"toggleMode",value:function(){this.setMode("dark"===this.state.mode?"light":"dark")}},{key:"applyAppOverride",value:function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=null!=(r=i.id)?r:"default",l=null!=(n=i.priority)?n:0,u=F((null!=(o=this.overrides.get(e))?o:[]).filter(function(e){return e.id!==a})).concat([{id:a,priority:l,schema:t}]);this.overrides.set(e,u),this.recomputeOverride(e)}},{key:"removeAppOverride",value:function(e,t){if(void 0===t)this.overrides.delete(e),I(e);else{var r=this.overrides.get(e);if(!r)return;var n=r.filter(function(e){return e.id!==t});0===n.length?(this.overrides.delete(e),I(e)):(this.overrides.set(e,n),this.recomputeOverride(e))}this.setState({activeOverrideScopes:this.publicOverrideScopes()})}},{key:"getAppOverrides",value:function(e){var t;return F(null!=(t=this.overrides.get(e))?t:[])}},{key:"applyGlobalOverride",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.applyAppOverride(q,e,t)}},{key:"removeGlobalOverride",value:function(e){this.removeAppOverride(q,e)}},{key:"getGlobalOverrides",value:function(){return this.getAppOverrides(q)}},{key:"resolveInitialMode",value:function(){if("u">typeof document){var e=document.documentElement.getAttribute("data-theme");if("light"===e||"dark"===e)return e}if(null!==this.options.modeStorageKey&&"u">typeof window)try{var t,r=window.localStorage.getItem(null!=(t=this.options.modeStorageKey)?t:W.modeStorageKey);if("light"===r||"dark"===r)return r}catch(e){}return this.options.defaultMode}},{key:"processTheme",value:function(e){var t=S(e.schema,{prefix:this.options.cssVarPrefix,separator:this.options.separator,ignoreRootKeys:this.options.ignoreRootKeys});return!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":root";if("u">typeof document){var r=P(e,t),n=document.getElementById(k);if(!n){(n=document.createElement("style")).id=k,n.setAttribute("data-egen","theme");var o=document.head.firstChild;document.head.insertBefore(n,o)}n.textContent=r}}(t,this.options.targetSelector),t}},{key:"recomputeOverride",value:function(e){var t,r=this.overrides.get(e);if(!r||0===r.length){I(e),this.setState({activeOverrideScopes:this.publicOverrideScopes()});return}var n=S((t={},((function(e){if(Array.isArray(e))return T(e)})(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||C(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){return e.priority-t.priority}).reduce(function(e,t){return function e(t,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),o=!0,i=!1,a=void 0;try{for(var l,u=Object.entries(r)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c,s=(c=l.value,function(e){if(Array.isArray(e))return e}(c)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(c)||C(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];if(void 0!==p){var d=n[f];_(p)&&_(d)?n[f]=e(d,p):n[f]=p}}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(e,t.schema)},t)),{prefix:this.options.cssVarPrefix,separator:this.options.separator,ignoreRootKeys:this.options.ignoreRootKeys}),o=e===q?this.options.targetSelector:"[data-egen-app='".concat(e,"']");if("u">typeof document){var i="".concat(A).concat(e),a=P(n,o),l=document.getElementById(i);l||((l=document.createElement("style")).id=i,l.setAttribute("data-egen","theme-override"),l.setAttribute("data-egen-scope",e),document.head.appendChild(l)),l.textContent=a}this.setState({activeOverrideScopes:this.publicOverrideScopes()})}},{key:"publicOverrideScopes",value:function(){return F(this.overrides.keys()).filter(function(e){return e!==q})}},{key:"setState",value:function(e){this.state=B({},this.state,e);var t=!0,r=!1,n=void 0;try{for(var o,i=this.listeners[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)(0,o.value)(this.getState())}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function H(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}var $=null,G=r(264),Y=r(4115),Z=r(70),J=r(8209),Q=r.n(J),X=r(3964),ee=r(3511),et=r(7403);function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||eo(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){if(e){if("string"==typeof e)return er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return er(e,t)}}function ei(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(0,Y.registerTranslationNamespace)("core");var ea=!1;(0,Y.subscribeEgenEvent)("started",function(){return ea=!0}),window.addEventListener("single-spa:before-routing-event",function(e){var t;if(ea&&"detail"in(t=e)&&"object"===ei(t.detail)&&null!==t.detail&&"appsByNewStatus"in t.detail&&"object"===ei(t.detail.appsByNewStatus)&&null!==t.detail.appsByNewStatus&&"cancelNavigation"in t.detail&&"function"==typeof t.detail.cancelNavigation){var r=new URL(e.detail.oldUrl,window.location.origin).pathname,n=new URL(e.detail.newUrl,window.location.origin).pathname;if(e.detail.totalAppChanges>0||r!==n){var o=e.detail.totalAppChanges>0?e.detail.appsByNewStatus.MOUNTED.find(function(e){return!e.startsWith("@egen-civitas/esm-primary-navigation-app")&&!e.startsWith("@egen-civitas/esm-devtools-app")&&!e.startsWith("@egen-civitas/esm-help-menu-app")}):void 0,i={cancelNavigation:e.detail.cancelNavigation,newPage:o,oldUrl:e.detail.oldUrl,newUrl:e.detail.newUrl};(0,Y.fireEgenEvent)("before-page-changed",i)}}});var el=r(8164);(0,Y.subscribeEgenEvent)("started",function(){return(0,Y.cleanupObsoleteFeatureFlags)()}),(0,Y.subscribeEgenEvent)("started",function(){var e=(0,Y.getCurrentUser)().subscribe(function(t){if(t.authenticated){var r;null==e||e.unsubscribe(),(r=window.installedModules.reduce(function(e,t){var r;return(null==(r=t[1])?void 0:r.optionalBackendDependencies)&&Object.entries(t[1].optionalBackendDependencies).forEach(function(r){var n,o,i,a,l=r[1];"string"!=typeof l&&("object"==((n=l.feature)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&l.feature&&(null==(o=l.feature.flagName)?void 0:o.length)>0&&(null==(i=l.feature.label)?void 0:i.length)>0&&(null==(a=l.feature.description)?void 0:a.length)>0?e.set(r[0],{version:l.version,feature:l.feature}):console.warn("Feature flag descriptor for ".concat(t[0]," does not match expected type. Feature flags must define a 'flagName', 'label', and 'description'")))}),e},new Map)).size>0&&(0,Y.egenFetch)("".concat(Y.restBaseUrl,"/module?v=custom:(uuid,version)")).then(function(e){var t;(null!=(t=e.data.results)?t:[]).forEach(function(e){if(r.has(e.uuid)){var t=r.get(e.uuid);t&&(0,el.satisfies)(e.version,t.version,{includePrerelease:!0})&&((0,Y.registerFeatureFlag)(t.feature.flagName,t.feature.label,t.feature.description),(0,Y.setFeatureFlag)(t.feature.flagName,!0))}})}).catch(function(){})}})});var eu="@egen-civitas/esm-app-shell",ec=r(8162);function es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ef(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function ep(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ef(i,n,o,a,l,"next",e)}function l(e){ef(i,n,o,a,l,"throw",e)}a(void 0)})}}function ed(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var eh=r(7507),ey=r(4592);function ev(e,t,r){return(ev=eS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&eg(o,r.prototype),o}).apply(null,arguments)}function eb(e){return(eb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function em(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function eg(e,t){return(eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ew(e){var t="function"==typeof Map?new Map:void 0;return(ew=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ev(e,arguments,eb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eg(r,e)})(e)}function eS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eS=function(){return!!e})()}var ej=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){var r,n,o,i,a;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=t,o=[e],n=eb(n),r=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,eS()?Reflect.construct(n,o||[],eb(this).constructor):n.apply(this,o)),a=void 0,(i="reason")in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r.reason=e,r.name="HostIncompatibleError",r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eg(t,e),t}(ew(Error));function eO(e){return em(e,ej)||(0,ey.isPlatformError)(e)&&"INCOMPATIBLE"===e.code}var ek={fr:{title:"Mise \xe0 jour de l’application requise",body:"Cette version de l’application n’est plus compatible avec votre appareil. Mettez l’application \xe0 jour, puis relancez-la.",reload:"R\xe9essayer"},en:{title:"Application update required",body:"This version of the application is no longer compatible with your device. Update the application, then restart it.",reload:"Retry"}};function eA(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function eE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eP(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function eI(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){eP(i,n,o,a,l,"next",e)}function l(e){eP(i,n,o,a,l,"throw",e)}a(void 0)})}}function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||eT(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eT(e,t){if(e){if("string"==typeof e)return eE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eE(e,t)}}function eC(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var e_=Symbol("egen_registration_promises");function eM(){return(0,Y.registerPlatformCapabilities)().catch(function(e){if(console.error("[egen] Les capacit\xe9s de plateforme ne sont pas disponibles :",e),eO(e))throw(null!=ej&&"u">typeof Symbol&&ej[Symbol.hasInstance]?!!ej[Symbol.hasInstance](e):e instanceof ej)?e:new ej(e.message)})}function eR(){return eI(function(){var e,t,r;return eC(this,function(n){switch(n.label){case 0:return[4,(0,Y.setupRouteMapOverrides)()];case 1:return n.sent(),[4,(0,Y.getCurrentRouteMap)()];case 2:return e=n.sent(),t=[],r=Object.entries(e).map(function(e){var r=ex(e,2),n=r[0],o=r[1];return eI(function(){return eC(this,function(e){return t.push([n,o]),(0,Y.registerApp)(n,o),[2]})})()}),window[e_]=Promise.all(r),Object.defineProperty(window,"installedModules",{value:t,writable:!1,configurable:!1}),[2]}})})()}function eU(e){return eI(function(){var t,r,n,o,i,a;return eC(this,function(l){t=!0,r=!1,n=void 0;try{for(o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)a=i.value,(0,Y.provide)(a.value,a.name)}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[2]})})()}function eN(){if(window.offlineEnabled){var e=navigator.onLine;(0,o.triggerAppChange)(),(0,Y.dispatchConnectivityChanged)(e),(0,Y.showToast)({critical:!0,description:"Connection: ".concat(e?"online":"offline"),title:"App",kind:e?"success":"warning"})}}function eD(){return eI(function(){return eC(this,function(e){var t;return[2,(Object.defineProperty(window,"i18next",{value:t=Q()||J,writable:!1,configurable:!1}),new MutationObserver(function(){t.changeLanguage().catch(function(e){return console.error("i18next failed to re-detect language",e)})}).observe(document.documentElement,{attributeFilter:["lang"],attributes:!0}),t.on("languageChanged",function(){document.documentElement.setAttribute("dir",t.dir())}),t.use(X.A).use({type:"backend",init:function(){},read:function(e,t,n){if("translation"===t)n(Error("can't handle translation namespace"),null);else if(void 0===t||void 0===e)n(Error(),null);else if("core"===t)Promise.all([r(1343)("./".concat(e,".json")),(0,Y.getTranslationOverrides)(t)]).then(function(t){var r,o=en(t,2),i=o[0],a=en(o[1],1)[0],l=null!=(r=null==i?void 0:i.default)?r:{};e in a&&(l=(0,et.A)(l,a[e])),n(null,l)}).catch(function(e){n(e,null)});else{var o=en(t.split("___"),3),i=o[0],a=o[1],l=o[2];(0,Y.importDynamic)(i).then(function(t){return Promise.allSettled([function(e,t,r){if("function"!=typeof e.importTranslation)throw Error("Module ".concat(t," does not export an importTranslation function"));if(!r)return Promise.resolve({});r.includes("-")&&(r=r.replace("-","_"));var n,o=e.importTranslation("./".concat(r,".json"));if(null!=(n=Promise)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!n[Symbol.hasInstance](o):!(o instanceof n))throw Error("Module ".concat(t," exports an importTranslation function that does not return a promise. Did you forget to set require.context mode to 'lazy'?"));return o}(t,i,e),(0,Y.getTranslationOverrides)(i,a,l)])}).then(function(t){var r,o,u=en(t,2),c=u[0],s=u[1],f="fulfilled"===c.status&&null!=(o=c.value)?o:{},p="fulfilled"===s.status?s.value:[];a&&l&&(p.length>=1&&e in p[0]?window.i18next.addResourceBundle(e,i,(0,et.A)(f,p[0][e]),!0,!1):window.i18next.addResourceBundle(e,i,f,!0,!1)),n(null,f=et.A.apply(void 0,[f].concat(function(e){if(Array.isArray(e))return er(e)}(r=p.filter(function(t){return e in t}).map(function(t){return t[e]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||eo(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))}).catch(function(e){n(e,null)})}}}).use(ee.initReactI18next).init({detection:{order:["querystring","htmlTag","localStorage","navigator"],lookupQuerystring:"lang"},fallbackLng:"en",nsSeparator:!1})).catch(function(e){return console.error("Failed to initialize translations",e)}).then(function(){return eI(function(){var e,t,r,n,o,i,a;return eC(this,function(l){switch(l.label){case 0:return[4,(0,Y.getConfig)("@egen-civitas/esm-styleguide")];case 1:e=l.sent().preferredCalendar,t=!0,r=!1,n=void 0;try{for(o=Object.entries(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)a=i.value,(0,Y.registerDefaultCalendar)(a[0],a[1])}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[2]}})})()}).then(function(){return(0,o.start)()})]})})()}function ez(e){(console.error(e),eO(e))?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=ek[(t.documentElement.lang||navigator.language||"fr").toLowerCase().startsWith("en")?"en":"fr"],n=t.createElement("div");n.className="egen-app-error egen-host-incompatible",n.setAttribute("role","alert");var o=t.createElement("h1");o.textContent=r.title;var i=t.createElement("p");i.textContent=r.body;var a=t.createElement("p");a.className="egen-host-incompatible__detail",a.textContent=em(e,Error)?e.message:"";var l=t.createElement("button");l.className="cds--btn cds--btn--primary",l.type="button",l.textContent=r.reload,l.addEventListener("click",function(){return location.reload()}),n.append(o,i,a,l),t.body.appendChild(n)}(e):function(e){var t=document.querySelector("#app-error");if(t){var r=t.content.cloneNode(!0),n=r.querySelector('[data-var="message"]');if(n&&(n.textContent=(null==e?void 0:e.message)||"No additional information available."),localStorage.getItem("egen:devtools")&&Object.keys(localStorage).some(function(e){return e.startsWith("import-map-override:")})){var o=null==r?void 0:r.querySelector("#buttons");if(o){var i=document.createElement("button");i.className="cds--btn",i.innerHTML="Clear dev overrides",i.onclick=eB,o.appendChild(i)}}document.body.appendChild(r)}}(e)}function eB(){Object.keys(localStorage).filter(function(e){return e.startsWith("import-map-override:")&&!["import-map-override:react","import-map-override:react-dom"].includes(e)}).forEach(function(e){return localStorage.removeItem(e)}),location.reload()}function eF(){return eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:var r,n;return t.trys.push([0,2,,3]),[4,(r={serviceWorkerEnabled:window.serviceWorkerEnabled,registerServiceWorker:function(){return(0,Y.registerEgenServiceWorker)("".concat(window.getEgenSpaBase(),"service-worker.js"))},activateOfflineCapability:Y.activateOfflineCapability,startStaticDependencyPrecaching:eL},(n=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if(!r.serviceWorkerEnabled)return[3,2];return[4,r.registerServiceWorker()];case 1:e.sent(),e.label=2;case 2:return[4,r.activateOfflineCapability()];case 3:return e.sent(),r.serviceWorkerEnabled&&r.startStaticDependencyPrecaching(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){eA(i,r,o,a,l,"next",e)}function l(e){eA(i,r,o,a,l,"throw",e)}a(void 0)})})())];case 1:return t.sent(),[3,3];case 2:return console.error("Error while setting up offline mode.",e=t.sent()),(0,Y.showNotification)({kind:"error",title:"Offline Setup Error",description:e.message}),[3,3];case 3:return[2]}})})()}function eL(){var e,t,r,n=null;e=function(e,t){var r=!n||new Date().getTime()-n.getTime()>3e5;t&&e&&r&&(n=new Date,(0,Y.dispatchPrecacheStaticDependencies)())},t=!1,r=!1,(0,Y.getCurrentUser)({includeAuthStatus:!1}).subscribe(function(n){e(t,r=!!n)}),(0,Y.subscribeConnectivity)(function(n){var o=n.online;t=o,e(o,r)})}function eq(){return eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:return[4,eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:return[4,(0,Y.getCurrentPageMap)()];case 1:return e=t.sent(),[4,(0,Y.messageEgenServiceWorker)({type:"onImportMapChanged",importMap:e})];case 2:return t.sent(),[2]}})})()];case 1:return t.sent(),e=(0,eh.c)("".concat(Y.restBaseUrl,"/session")),[4,(0,Y.messageEgenServiceWorker)({type:"registerDynamicRoute",url:e,strategy:"network-first"})];case 2:return t.sent(),[4,(0,Y.egenFetch)("".concat(Y.restBaseUrl,"/session")).catch(function(e){return console.warn("Failed to precache the user session data from the app shell. MFs depending on this data may run into problems while offline.",e)})];case 3:return t.sent(),[2]}})})()}function eW(){window.addEventListener("offline",eN),window.addEventListener("online",eN)}function eK(){(0,Y.subscribeConnectivity)(function(e){var t=e.online,r=document.querySelector("body");t?r.classList.remove("egen-offline"):r.classList.add("egen-offline")})}function eV(e){(0,Z.initDevAuthBypass)(),(0,Z.isDevAuthBypassEnabled)()&&(0,Y.provide)({"@egen-civitas/esm-api":{redirectAuthFailure:{enabled:!1,url:"",errors:[],resolvePromise:!0}}},"egen-dev-no-auth-config"),t=(0,Y.getPlatform)(),o=Z.setAuthorizationProvider,"web"===t.environment||o({credentials:"omit",getAuthorization:function(){return ep(function(){return ed(this,function(e){switch(e.label){case 0:return[4,t.ready];case 1:return e.sent(),[2,t.has("session")?t.session.getAuthorization():null]}})})()},refresh:function(){return ep(function(){return ed(this,function(e){switch(e.label){case 0:return[4,t.ready];case 1:return e.sent(),[2,!!t.has("session")&&t.session.refresh()]}})})()}}),(0,Y.setupImportMapOverrides)();var t,o,i,a,l,u,c,s,f,p,d=window.offlineEnabled,h=(0,Y.renderLoadingSpinner)(document.body),y=(i=Promise.all(e.map(function(e){return fetch((0,Y.interpolateUrl)(e)).then(function(e){return e.json()}).then(function(t){return{name:e,value:t}}).catch(function(t){return console.error('Loading the config from "'.concat(e,'" failed.'),t),{name:e,value:{}}})})),function(){return i.then(eU)}),v=(f={themeUrls:[(c=(u=null!=(a=null!=(l=window.egenPublicPath)?l:window.__webpack_public_path__)?a:"")?"".concat(window.location.origin,"/").concat(u.replace(/^\/|\/$/g,""),"/"):document.baseURI||"".concat(window.location.origin,"/"),new URL("themes/".concat("theme.default.json"),c).href)].concat(function(e){if(Array.isArray(e))return eE(e)}(s=Array.isArray(window.egenThemeUrls)?window.egenThemeUrls:[])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||eT(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),pollIntervalMs:0,onApplied:function(e,t){},onError:function(e){console.warn("[egen-civitas/esm-theme] Le th\xe8me par d\xe9faut sera utilis\xe9.",e.message)}},(p=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return $&&$.destroy(),[4,($=new V(f)).apply()];case 1:return e.sent(),[2,$]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var o=p.apply(e,t);function i(e){H(o,r,n,i,a,"next",e)}function a(e){H(o,r,n,i,a,"throw",e)}i(void 0)})})()).catch(function(e){console.warn("[egen-civitas/esm-theme] Initialisation th\xe8me \xe9chou\xe9e (fallback SCSS actif):",e)});return(0,G.setupTenantSystem)(),Promise.all([Promise.all([r.e("1176"),r.e("2874")]).then(r.bind(r,9755)),v]).then(function(e){return ex(e,1)[0],(0,Y.integrateBreakpoints)(),"u"<typeof ResizeObserver||n.flatMap(function(e){var t,r,n,o,i=e.id,a=e.cssVar,l=document.getElementById(i);return l?[(t=document.documentElement,r=-1,(o=new ResizeObserver(n=function(){var e=Math.round(l.getBoundingClientRect().height);e!==r&&(r=e,t.style.setProperty(a,"".concat(e,"px")))})).observe(l),n(),function(){o.disconnect(),t.style.removeProperty(a)})]:[]}),(0,Y.renderToasts)(document.querySelector(".egen-toasts-container")),(0,Y.renderPageBackground)(document.querySelector("#egen-page-background-container")),(0,Y.renderWorkbench)({railLeft:document.querySelector("#egen-rail-left-container"),railRight:document.querySelector("#egen-rail-right-container"),zoneLeft:document.querySelector("#egen-zone-left-container"),zoneRight:document.querySelector("#egen-zone-right-container"),zoneBottom:document.querySelector("#egen-zone-bottom-container")}),(0,Y.setupPageTransitions)(),(0,Y.setupModals)(document.querySelector(".egen-modals-container")),(0,Y.renderInlineNotifications)(document.querySelector(".egen-inline-notifications-container")),(0,Y.renderActionableNotifications)(document.querySelector(".egen-actionable-notifications-container")),(0,Y.renderSnackbars)(document.querySelector(".egen-snackbars-container")),(0,Y.renderWorkspaceWindowsAndMenu)(document.querySelector("#egen-workspaces-container")),(0,Y.subscribeNotificationShown)(Y.showNotification),(0,Y.subscribeActionableNotificationShown)(Y.showActionableNotification),(0,Y.subscribeToastShown)(Y.showToast),(0,Y.subscribeSnackbarShown)(Y.showSnackbar),(0,Y.subscribePrecacheStaticDependencies)(eq),(0,Y.setupApiModule)(),(0,Y.setupHistory)(),!function(){var e=!0,t=!1,r=void 0;try{for(var n,o=[][Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i=n.value;(0,Y.tryRegisterExtension)(eu,i)}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}}(),(0,ec.defineConfigSchema)(eu,{"Enabled feature flags":{_description:"The feature flags that will be enabled",_type:ec.Type.Array,_default:[],_elements:{_type:ec.Type.String}}}),(0,Y.registerModuleLoad)(eu),(0,ec.getConfigStore)(eu).subscribe(function(e){var t=e.config,r=new Set((null==t?void 0:t["Enabled feature flags"])||[]);if(r.size){var n=es({},Y.featureFlagsStore.getState().flags),o=!0,i=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;n[c]?n[c]=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(es({},n[c]),{enabled:!0}):console.error('Feature flag "'.concat(c,'" does not exist. Please define the flag first.'))}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}Y.featureFlagsStore.setState({flags:n})}}),("u">typeof Intl&&"DurationFormat"in Intl?Promise.resolve():r.e("5875").then(r.bind(r,7279)).then(function(){})).then(eM).then(eR).then(function(){return Promise.resolve((0,Y.finishRegisteringAllApps)())}).then(d?eK:void 0).then(d?eW:void 0).then(y).then(eD).catch(ez).then(h).then(d?eF:void 0).then(function(){(0,Y.fireEgenEvent)("started")})})}}}]);
|
|
1
|
+
(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["1838"],{1343(e,t,r){var n={"./uk.json":["2462","6019"],"./ar.json":["685","6526"],"./ru_RU.json":["6117","5670"],"./uz_UZ.json":["2533","3942"],"./fr.json":["1502","1155"],"./sw_KE.json":["9845","3734"],"./uz.json":["8777","5778"],"./en.json":["7581","6590"],"./ky.json":["9258","9927"],"./pl.json":["6218","6631"],"./sq.json":["6877","3831"],"./ka.json":["3698","4927"],"./si.json":["6626","5855"],"./zh_TW.json":["9652","9589"],"./de.json":["9161","5874"],"./lg.json":["5367","6220"],"./vi.json":["4647","2380"],"./tr.json":["5104","9705"],"./es_MX.json":["4254","8579"],"./tr_TR.json":["2227","7872"],"./zh_CN.json":["9908","2021"],"./en_US.json":["4734","6259"],"./he.json":["8437","2998"],"./id.json":["9207","2172"],"./ku.json":["9934","5843"],"./es.json":["9238","3899"],"./ne.json":["3291","2520"],"./ar_SY.json":["3066","6471"],"./uz@Latn.json":["1074","2895"],"./bn.json":["9294","5395"],"./cs.json":["3576","913"],"./zh.json":["3224","9665"],"./hi_IN.json":["405","2086"],"./pt_BR.json":["4168","8728"],"./qu.json":["6908","6653"],"./ro_RO.json":["133","4886"],"./sw.json":["2692","7749"],"./am.json":["4468","3461"],"./pt.json":["3666","4879"],"./it.json":["4103","8140"],"./km.json":["2614","7707"],"./hi.json":["5433","1554"]};function o(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],o=t[0];return r.e(t[1]).then(function(){return r.t(o,19)})}o.keys=()=>Object.keys(n),o.id=1343,e.exports=o},205(e,t,r){"use strict";r.r(t),r.d(t,{run:()=>eV});var n=[{id:"egen-top-nav-app-container",cssVar:"--egen-navbar-height"},{id:"egen-footer-app-container",cssVar:"--egen-footer-height"}],o=r(9250),i=r(4238);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e>12?i.KC([i.Yj(),i.ai(),i.zM(),i.ch()]):i.RZ(function(){return i.KC([i.Yj().max(4e3,"Valeur trop longue (max 4000 caract\xe8res)"),i.ai().finite(),i.zM(),i.ch(),i.YO(a(e+1)).max(500),i.g1(i.Yj(),a(e+1)).refine(function(e){return Object.keys(e).length<=500},{message:"Trop de cl\xe9s \xe0 ce niveau (max ".concat(500,")")})])})}var l=i.Ik({priority:i.ai().finite({message:'"priority" doit \xeatre un nombre fini'}),meta:i.g1(i.Yj(),a()).optional()}).catchall(a());function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)})}}function f(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function p(e){return s(function(){var t,r,n,o,i,a;return f(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,fetch(e.includes("?")?e:"".concat(e,"?_t=").concat(Date.now()),{headers:{Accept:"application/json"},cache:"no-store"})];case 1:if(!(t=u.sent()).ok)return console.warn("[egen-civitas/esm-theme] ⚠️ HTTP ".concat(t.status,' pour "').concat(e,'" → ignor\xe9')),[2,null];return[4,t.text()];case 2:var c,s;n=function(e){for(var t=5381,r=0;r<e.length;r++)t=33*t^e.charCodeAt(r);return(t>>>0).toString(36)}(r=u.sent());try{o=JSON.parse(r)}catch(t){return console.warn('[egen-civitas/esm-theme] ⚠️ JSON invalide pour "'.concat(e,'" →'),t),[2,null]}if(c=o,!(i=(s=l.safeParse(c)).success?{valid:!0,errors:[]}:{valid:!1,errors:s.error.issues.map(function(e){return"".concat(e.path.join(".")||"(racine)"," — ").concat(e.message)})}).valid)return console.warn('[egen-civitas/esm-theme] ⚠️ Fichier de th\xe8me structurellement invalide, rejet\xe9 : "'.concat(e,'"\n')+i.errors.map(function(e){return" - ".concat(e)}).join("\n")),[2,null];return[2,{url:e,json:o,contentHash:n}];case 3:return a=u.sent(),console.warn('[egen-civitas/esm-theme] ⚠️ Impossible de charger "'.concat(e,'" →'),a),[2,null];case 4:return[2]}})})()}function d(e){var t=((function(e){if(Array.isArray(e))return u(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){var r="number"==typeof e.json.priority?e.json.priority:-1/0,n="number"==typeof t.json.priority?t.json.priority:-1/0;return n!==r?n-r:e.url.localeCompare(t.url)}),r=t[0],n="number"==typeof r.json.priority?r.json.priority:-1/0,o=t.filter(function(e){return("number"==typeof e.json.priority?e.json.priority:-1/0)===n});if(o.length>1){var i=o.map(function(e){return e.url}).join(", ");console.warn("[egen-civitas/esm-theme] \xc9galit\xe9 de priorit\xe9 (".concat(n,") entre plusieurs fichiers de th\xe8me : ").concat(i,". D\xe9partage d\xe9terministe par ordre alphab\xe9tique d'URL → \"").concat(r.url,'" retenu. Corrigez les valeurs "priority" pour lever l\'ambigu\xeft\xe9.'))}return r}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}}var b=["priority","meta"],m=/^[a-zA-Z0-9 ,.#%()_+\-:/!'"&*=@[\]~^]*$/,g=/url\(\s*['"]?(https:\/\/|\/(?!\/))/gi,w=/url\(/gi;function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.prefix,n=void 0===r?"":r,o=t.separator,i=void 0===o?"-":o,a=t.ignoreRootKeys,l=void 0===a?b:a,u={base:{},light:{},dark:{}};return!function e(t,r,o,a){if((void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||null===t||Array.isArray(t)){var c,s=n?[n].concat(y(r)):r,f="--".concat(s.join(i)),p=function(e){if(e.length>1e3)return{ok:!1,reason:"valeur trop longue (".concat(e.length," > ").concat(1e3," caract\xe8res)")};if(!m.test(e))return{ok:!1,reason:"contient un ou plusieurs caract\xe8res non autoris\xe9s"};var t,r,n=null!=(t=e.match(w))?t:[],o=null!=(r=e.match(g))?r:[];return n.length!==o.length?{ok:!1,reason:"url(...) doit utiliser le sch\xe9ma https:// ou un chemin relatif au site"}:{ok:!0}}(c=Array.isArray(t)?t.map(function(e){return"string"==typeof e?e:JSON.stringify(e)}).join(", "):null===t?"initial":"boolean"==typeof t?t?"true":"false":String(t)).ok?c:null;null!==p&&(u[a][f]=p)}else{if(o>0&&0!==(S=Object.keys(t)).length&&S.every(function(e){return"light"===e||"dark"===e})){void 0!==t.light&&e(t.light,r,o+1,"light"),void 0!==t.dark&&e(t.dark,r,o+1,"dark");return}var d=!0,h=!1,b=void 0;try{for(var S,j,O=Object.entries(t)[Symbol.iterator]();!(d=(j=O.next()).done);d=!0){var k,A=(k=j.value,function(e){if(Array.isArray(e))return e}(k)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(k)||v(k,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=A[0],P=A[1];if(!(0===o&&l.includes(E))){var I,x=(I=E,String(I).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase().replace(/[^a-zA-Z0-9-]/g,"-"));e(P,y(r).concat([x]),o+1,a)}}}catch(e){h=!0,b=e}finally{try{d||null==O.return||O.return()}finally{if(h)throw b}}}}(e,[],0,"base"),u}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k="egen-theme-vars",A="egen-theme-override-";function E(e,t){var r=Object.entries(t).sort(function(e,t){var r=O(e,1)[0],n=O(t,1)[0];return r.localeCompare(n)}).map(function(e){var t=O(e,2),r=t[0],n=t[1];return" ".concat(r,": ").concat(n,";")});return 0===r.length?"":"".concat(e," {\n").concat(r.join("\n"),"\n}")}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":root";return[E(t,e.base),E("".concat(t,"[data-theme='light'], [data-theme='light'] ").concat(t),e.light),E("".concat(t,"[data-theme='dark'], [data-theme='dark'] ").concat(t),e.dark)].filter(Boolean).join("\n\n")}function I(e){var t;"u">typeof document&&(null==(t=document.getElementById("".concat(A).concat(e)))||t.remove())}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"u">typeof document?document.documentElement:null;null==t||t.setAttribute("data-theme",e)}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}function _(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)}function M(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function N(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){U(i,n,o,a,l,"next",e)}function l(e){U(i,n,o,a,l,"throw",e)}a(void 0)})}}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):M(e,t)}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){D(e,t,r[t])})}return e}function F(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return R(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var q="__egen_global_override__",W={cssVarPrefix:"",separator:"-",ignoreRootKeys:["priority","meta"],pollIntervalMs:0,targetSelector:":root",defaultMode:"dark",modeStorageKey:"egen-theme-mode"},K={priority:-1,meta:{name:"Fallback int\xe9gr\xe9 (egen-civitas/esm-theme)"},colors:{primary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},surface:{light:{background:"#ffffff",foreground:"#0f172a"},dark:{background:"#0f172a",foreground:"#f1f5f9"}},border:{light:{default:"#cbd5e1"},dark:{default:"#334155"}}},borderRadius:{md:"0.5rem",xl:"1rem"},transitions:{default:"all 200ms ease"}},V=function(){var e;function t(e){if(!M(this,t))throw TypeError("Cannot call a class as a function");D(this,"options",void 0),D(this,"state",{status:"idle",activeTheme:null,mode:"dark",cssVarsCount:0,error:null,lastApplied:null,activeOverrideScopes:[],usingFallback:!1}),D(this,"pollTimer",null),D(this,"lastPollHashes",new Map),D(this,"listeners",new Set),D(this,"overrides",new Map),this.options=B({},W,e),this.state.mode=this.resolveInitialMode()}return e=[{key:"apply",value:function(){return N(function(){var e,t,r,n,o,i,a,l,u,c,h,y,v,b,m,g;return L(this,function(w){switch(w.label){case 0:this.setState({status:"loading",error:null}),w.label=1;case 1:var S;return w.trys.push([1,3,,4]),[4,(S=this.options.themeUrls,s(function(){var e,t,r;return f(this,function(n){switch(n.label){case 0:if(!S||0===S.length)return console.warn("[egen-civitas/esm-theme] Aucun URL de th\xe8me fourni."),[2,null];return[4,Promise.all(S.map(p))];case 1:if(0===(e=n.sent().filter(function(e){return null!==e})).length)return console.warn("[egen-civitas/esm-theme] Aucun fichier de th\xe8me valide charg\xe9."),[2,null];return r="number"==typeof(t=d(e)).json.priority?t.json.priority:-1/0,[2,{url:t.url,priority:r,schema:t.json}]}})})())];case 2:if(!(r=w.sent()))throw Error("Aucun th\xe8me valide trouv\xe9 parmi les URLs fournies.");n=this.processTheme(r),x(this.state.mode),this.setState({status:"applied",activeTheme:r,cssVarsCount:Object.keys(n.base).length+Object.keys(n.light).length+Object.keys(n.dark).length,lastApplied:Date.now(),error:null,usingFallback:!1}),null==(e=(t=this.options).onApplied)||e.call(t,r,n),o=!0,i=!1,a=void 0;try{for(l=this.overrides.keys()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)c=u.value,this.recomputeOverride(c)}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return this.options.pollIntervalMs>0&&!this.pollTimer&&this.startPolling(),[2,n];case 3:return b=z(h=w.sent(),Error)?h.message:String(h),null==(y=(v=this.options).onError)||y.call(v,z(h,Error)?h:Error(b)),console.error("[egen-civitas/esm-theme] ❌ Erreur lors de l'application du th\xe8me — repli sur le th\xe8me de secours int\xe9gr\xe9:",b),m={url:"(embedded-fallback)",priority:-1,schema:K},g=this.processTheme(m),x(this.state.mode),this.setState({status:"error",activeTheme:m,cssVarsCount:Object.keys(g.base).length+Object.keys(g.light).length+Object.keys(g.dark).length,lastApplied:Date.now(),error:b,usingFallback:!0}),[2,g];case 4:return[2]}})}).call(this)}},{key:"startPolling",value:function(){var e=this;if(!this.pollTimer){var t=this.options.pollIntervalMs;t&&!(t<=0)&&(this.pollTimer=setInterval(function(){return N(function(){var e,t,r,n,o,i,a,l,u,c,h;return L(this,function(y){switch(y.label){case 0:var v,b;return y.trys.push([0,2,,3]),[4,(v=this.options.themeUrls,b=this.lastPollHashes,s(function(){var e,t,r,n,o,i,a,l,u,c,s;return f(this,function(f){switch(f.label){case 0:if(!v||0===v.length)return[2,{changed:!1}];return[4,Promise.all(v.map(p))];case 1:if(0===(e=f.sent().filter(function(e){return null!==e})).length)return[2,{changed:!1}];t=new Map,r=e.length!==b.size,n=!0,o=!1,i=void 0;try{for(a=e[Symbol.iterator]();!(n=(l=a.next()).done);n=!0)u=l.value,t.set(u.url,u.contentHash),b.get(u.url)!==u.contentHash&&(r=!0)}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}if(!r)return[2,{changed:!1}];return s="number"==typeof(c=d(e)).json.priority?c.json.priority:-1/0,[2,{changed:!0,theme:{url:c.url,priority:s,schema:c.json},hashes:t}]}})})())];case 1:if(!(r=y.sent()).changed)return[2];this.lastPollHashes=r.hashes,n=r.theme,o=this.processTheme(n),this.setState({status:"applied",activeTheme:n,cssVarsCount:Object.keys(o.base).length+Object.keys(o.light).length+Object.keys(o.dark).length,lastApplied:Date.now(),error:null,usingFallback:!1}),null==(e=(t=this.options).onApplied)||e.call(t,n,o),i=!0,a=!1,l=void 0;try{for(u=this.overrides.keys()[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)h=c.value,this.recomputeOverride(h)}catch(e){a=!0,l=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw l}}return[3,3];case 2:return console.warn("[egen-civitas/esm-theme] ⚠️ Erreur pendant le polling de hot-reload:",y.sent()),[3,3];case 3:return[2]}})}).call(e)},t))}}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"destroy",value:function(){this.stopPolling(),"u">typeof document&&(null==(n=document.getElementById(k))||n.remove());var e=!0,t=!1,r=void 0;try{for(var n,o,i=this.overrides.keys()[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=o.value;I(a)}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}this.overrides.clear(),this.lastPollHashes=new Map,this.setState({status:"idle",activeTheme:null,cssVarsCount:0,error:null,lastApplied:null,activeOverrideScopes:[],usingFallback:!1}),this.listeners.clear()}},{key:"getState",value:function(){var e,t;return e=B({},this.state),t=t={activeOverrideScopes:F(this.state.activeOverrideScopes)},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}},{key:"subscribe",value:function(e){var t=this;return this.listeners.add(e),e(this.getState()),function(){return t.listeners.delete(e)}}},{key:"getMode",value:function(){return this.state.mode}},{key:"setMode",value:function(e){var t,r;if(e!==this.state.mode){if(this.state.mode=e,x(e),this.options.modeStorageKey&&"u">typeof window)try{window.localStorage.setItem(this.options.modeStorageKey,e)}catch(e){}null==(t=(r=this.options).onModeChanged)||t.call(r,e),this.setState({})}}},{key:"toggleMode",value:function(){this.setMode("dark"===this.state.mode?"light":"dark")}},{key:"applyAppOverride",value:function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=null!=(r=i.id)?r:"default",l=null!=(n=i.priority)?n:0,u=F((null!=(o=this.overrides.get(e))?o:[]).filter(function(e){return e.id!==a})).concat([{id:a,priority:l,schema:t}]);this.overrides.set(e,u),this.recomputeOverride(e)}},{key:"removeAppOverride",value:function(e,t){if(void 0===t)this.overrides.delete(e),I(e);else{var r=this.overrides.get(e);if(!r)return;var n=r.filter(function(e){return e.id!==t});0===n.length?(this.overrides.delete(e),I(e)):(this.overrides.set(e,n),this.recomputeOverride(e))}this.setState({activeOverrideScopes:this.publicOverrideScopes()})}},{key:"getAppOverrides",value:function(e){var t;return F(null!=(t=this.overrides.get(e))?t:[])}},{key:"applyGlobalOverride",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.applyAppOverride(q,e,t)}},{key:"removeGlobalOverride",value:function(e){this.removeAppOverride(q,e)}},{key:"getGlobalOverrides",value:function(){return this.getAppOverrides(q)}},{key:"resolveInitialMode",value:function(){if("u">typeof document){var e=document.documentElement.getAttribute("data-theme");if("light"===e||"dark"===e)return e}if(null!==this.options.modeStorageKey&&"u">typeof window)try{var t,r=window.localStorage.getItem(null!=(t=this.options.modeStorageKey)?t:W.modeStorageKey);if("light"===r||"dark"===r)return r}catch(e){}return this.options.defaultMode}},{key:"processTheme",value:function(e){var t=S(e.schema,{prefix:this.options.cssVarPrefix,separator:this.options.separator,ignoreRootKeys:this.options.ignoreRootKeys});return!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":root";if("u">typeof document){var r=P(e,t),n=document.getElementById(k);if(!n){(n=document.createElement("style")).id=k,n.setAttribute("data-egen","theme");var o=document.head.firstChild;document.head.insertBefore(n,o)}n.textContent=r}}(t,this.options.targetSelector),t}},{key:"recomputeOverride",value:function(e){var t,r=this.overrides.get(e);if(!r||0===r.length){I(e),this.setState({activeOverrideScopes:this.publicOverrideScopes()});return}var n=S((t={},((function(e){if(Array.isArray(e))return T(e)})(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||C(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){return e.priority-t.priority}).reduce(function(e,t){return function e(t,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),o=!0,i=!1,a=void 0;try{for(var l,u=Object.entries(r)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c,s=(c=l.value,function(e){if(Array.isArray(e))return e}(c)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(c)||C(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];if(void 0!==p){var d=n[f];_(p)&&_(d)?n[f]=e(d,p):n[f]=p}}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(e,t.schema)},t)),{prefix:this.options.cssVarPrefix,separator:this.options.separator,ignoreRootKeys:this.options.ignoreRootKeys}),o=e===q?this.options.targetSelector:"[data-egen-app='".concat(e,"']");if("u">typeof document){var i="".concat(A).concat(e),a=P(n,o),l=document.getElementById(i);l||((l=document.createElement("style")).id=i,l.setAttribute("data-egen","theme-override"),l.setAttribute("data-egen-scope",e),document.head.appendChild(l)),l.textContent=a}this.setState({activeOverrideScopes:this.publicOverrideScopes()})}},{key:"publicOverrideScopes",value:function(){return F(this.overrides.keys()).filter(function(e){return e!==q})}},{key:"setState",value:function(e){this.state=B({},this.state,e);var t=!0,r=!1,n=void 0;try{for(var o,i=this.listeners[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)(0,o.value)(this.getState())}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function H(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}var $=null,G=r(264),Y=r(4115),Z=r(70),J=r(8209),Q=r.n(J),X=r(3964),ee=r(3511),et=r(7403);function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||eo(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){if(e){if("string"==typeof e)return er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return er(e,t)}}function ei(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(0,Y.registerTranslationNamespace)("core");var ea=!1;(0,Y.subscribeEgenEvent)("started",function(){return ea=!0}),window.addEventListener("single-spa:before-routing-event",function(e){var t;if(ea&&"detail"in(t=e)&&"object"===ei(t.detail)&&null!==t.detail&&"appsByNewStatus"in t.detail&&"object"===ei(t.detail.appsByNewStatus)&&null!==t.detail.appsByNewStatus&&"cancelNavigation"in t.detail&&"function"==typeof t.detail.cancelNavigation){var r=new URL(e.detail.oldUrl,window.location.origin).pathname,n=new URL(e.detail.newUrl,window.location.origin).pathname;if(e.detail.totalAppChanges>0||r!==n){var o=e.detail.totalAppChanges>0?e.detail.appsByNewStatus.MOUNTED.find(function(e){return!e.startsWith("@egen-civitas/esm-primary-navigation-app")&&!e.startsWith("@egen-civitas/esm-devtools-app")&&!e.startsWith("@egen-civitas/esm-help-menu-app")}):void 0,i={cancelNavigation:e.detail.cancelNavigation,newPage:o,oldUrl:e.detail.oldUrl,newUrl:e.detail.newUrl};(0,Y.fireEgenEvent)("before-page-changed",i)}}});var el=r(8164);(0,Y.subscribeEgenEvent)("started",function(){return(0,Y.cleanupObsoleteFeatureFlags)()}),(0,Y.subscribeEgenEvent)("started",function(){var e=(0,Y.getCurrentUser)().subscribe(function(t){if(t.authenticated){var r;null==e||e.unsubscribe(),(r=window.installedModules.reduce(function(e,t){var r;return(null==(r=t[1])?void 0:r.optionalBackendDependencies)&&Object.entries(t[1].optionalBackendDependencies).forEach(function(r){var n,o,i,a,l=r[1];"string"!=typeof l&&("object"==((n=l.feature)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&l.feature&&(null==(o=l.feature.flagName)?void 0:o.length)>0&&(null==(i=l.feature.label)?void 0:i.length)>0&&(null==(a=l.feature.description)?void 0:a.length)>0?e.set(r[0],{version:l.version,feature:l.feature}):console.warn("Feature flag descriptor for ".concat(t[0]," does not match expected type. Feature flags must define a 'flagName', 'label', and 'description'")))}),e},new Map)).size>0&&(0,Y.egenFetch)("".concat(Y.restBaseUrl,"/module?v=custom:(uuid,version)")).then(function(e){var t;(null!=(t=e.data.results)?t:[]).forEach(function(e){if(r.has(e.uuid)){var t=r.get(e.uuid);t&&(0,el.satisfies)(e.version,t.version,{includePrerelease:!0})&&((0,Y.registerFeatureFlag)(t.feature.flagName,t.feature.label,t.feature.description),(0,Y.setFeatureFlag)(t.feature.flagName,!0))}})}).catch(function(){})}})});var eu="@egen-civitas/esm-app-shell",ec=r(8162);function es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ef(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function ep(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ef(i,n,o,a,l,"next",e)}function l(e){ef(i,n,o,a,l,"throw",e)}a(void 0)})}}function ed(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var eh=r(7507),ey=r(4592);function ev(e,t,r){return(ev=eS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&eg(o,r.prototype),o}).apply(null,arguments)}function eb(e){return(eb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function em(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function eg(e,t){return(eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ew(e){var t="function"==typeof Map?new Map:void 0;return(ew=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ev(e,arguments,eb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eg(r,e)})(e)}function eS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eS=function(){return!!e})()}var ej=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){var r,n,o,i,a;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=t,o=[e],n=eb(n),r=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,eS()?Reflect.construct(n,o||[],eb(this).constructor):n.apply(this,o)),a=void 0,(i="reason")in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r.reason=e,r.name="HostIncompatibleError",r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eg(t,e),t}(ew(Error));function eO(e){return em(e,ej)||(0,ey.isPlatformError)(e)&&"INCOMPATIBLE"===e.code}var ek={fr:{title:"Mise \xe0 jour de l’application requise",body:"Cette version de l’application n’est plus compatible avec votre appareil. Mettez l’application \xe0 jour, puis relancez-la.",reload:"R\xe9essayer"},en:{title:"Application update required",body:"This version of the application is no longer compatible with your device. Update the application, then restart it.",reload:"Retry"}};function eA(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function eE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eP(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function eI(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){eP(i,n,o,a,l,"next",e)}function l(e){eP(i,n,o,a,l,"throw",e)}a(void 0)})}}function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||eT(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eT(e,t){if(e){if("string"==typeof e)return eE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eE(e,t)}}function eC(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var e_=Symbol("egen_registration_promises");function eM(){return(0,Y.registerPlatformCapabilities)().catch(function(e){if(console.error("[egen] Les capacit\xe9s de plateforme ne sont pas disponibles :",e),eO(e))throw(null!=ej&&"u">typeof Symbol&&ej[Symbol.hasInstance]?!!ej[Symbol.hasInstance](e):e instanceof ej)?e:new ej(e.message)})}function eR(){return eI(function(){var e,t,r;return eC(this,function(n){switch(n.label){case 0:return[4,(0,Y.setupRouteMapOverrides)()];case 1:return n.sent(),[4,(0,Y.getCurrentRouteMap)()];case 2:return e=n.sent(),t=[],r=Object.entries(e).map(function(e){var r=ex(e,2),n=r[0],o=r[1];return eI(function(){return eC(this,function(e){return t.push([n,o]),(0,Y.registerApp)(n,o),[2]})})()}),window[e_]=Promise.all(r),Object.defineProperty(window,"installedModules",{value:t,writable:!1,configurable:!1}),[2]}})})()}function eU(e){return eI(function(){var t,r,n,o,i,a;return eC(this,function(l){t=!0,r=!1,n=void 0;try{for(o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)a=i.value,(0,Y.provide)(a.value,a.name)}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[2]})})()}function eN(){if(window.offlineEnabled){var e=navigator.onLine;(0,o.triggerAppChange)(),(0,Y.dispatchConnectivityChanged)(e),(0,Y.showToast)({critical:!0,description:"Connection: ".concat(e?"online":"offline"),title:"App",kind:e?"success":"warning"})}}function eD(){return eI(function(){return eC(this,function(e){var t;return[2,(Object.defineProperty(window,"i18next",{value:t=Q()||J,writable:!1,configurable:!1}),new MutationObserver(function(){t.changeLanguage().catch(function(e){return console.error("i18next failed to re-detect language",e)})}).observe(document.documentElement,{attributeFilter:["lang"],attributes:!0}),t.on("languageChanged",function(){document.documentElement.setAttribute("dir",t.dir())}),t.use(X.A).use({type:"backend",init:function(){},read:function(e,t,n){if("translation"===t)n(Error("can't handle translation namespace"),null);else if(void 0===t||void 0===e)n(Error(),null);else if("core"===t)Promise.all([r(1343)("./".concat(e,".json")),(0,Y.getTranslationOverrides)(t)]).then(function(t){var r,o=en(t,2),i=o[0],a=en(o[1],1)[0],l=null!=(r=null==i?void 0:i.default)?r:{};e in a&&(l=(0,et.A)(l,a[e])),n(null,l)}).catch(function(e){n(e,null)});else{var o=en(t.split("___"),3),i=o[0],a=o[1],l=o[2];(0,Y.importDynamic)(i).then(function(t){return Promise.allSettled([function(e,t,r){if("function"!=typeof e.importTranslation)throw Error("Module ".concat(t," does not export an importTranslation function"));if(!r)return Promise.resolve({});r.includes("-")&&(r=r.replace("-","_"));var n,o=e.importTranslation("./".concat(r,".json"));if(null!=(n=Promise)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!n[Symbol.hasInstance](o):!(o instanceof n))throw Error("Module ".concat(t," exports an importTranslation function that does not return a promise. Did you forget to set require.context mode to 'lazy'?"));return o}(t,i,e),(0,Y.getTranslationOverrides)(i,a,l)])}).then(function(t){var r,o,u=en(t,2),c=u[0],s=u[1],f="fulfilled"===c.status&&null!=(o=c.value)?o:{},p="fulfilled"===s.status?s.value:[];a&&l&&(p.length>=1&&e in p[0]?window.i18next.addResourceBundle(e,i,(0,et.A)(f,p[0][e]),!0,!1):window.i18next.addResourceBundle(e,i,f,!0,!1)),n(null,f=et.A.apply(void 0,[f].concat(function(e){if(Array.isArray(e))return er(e)}(r=p.filter(function(t){return e in t}).map(function(t){return t[e]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||eo(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))}).catch(function(e){n(e,null)})}}}).use(ee.initReactI18next).init({detection:{order:["querystring","htmlTag","localStorage","navigator"],lookupQuerystring:"lang"},fallbackLng:"en",nsSeparator:!1})).catch(function(e){return console.error("Failed to initialize translations",e)}).then(function(){return eI(function(){var e,t,r,n,o,i,a;return eC(this,function(l){switch(l.label){case 0:return[4,(0,Y.getConfig)("@egen-civitas/esm-styleguide")];case 1:e=l.sent().preferredCalendar,t=!0,r=!1,n=void 0;try{for(o=Object.entries(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)a=i.value,(0,Y.registerDefaultCalendar)(a[0],a[1])}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[2]}})})()}).then(function(){return(0,o.start)()})]})})()}function ez(e){(console.error(e),eO(e))?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=ek[(t.documentElement.lang||navigator.language||"fr").toLowerCase().startsWith("en")?"en":"fr"],n=t.createElement("div");n.className="egen-app-error egen-host-incompatible",n.setAttribute("role","alert");var o=t.createElement("h1");o.textContent=r.title;var i=t.createElement("p");i.textContent=r.body;var a=t.createElement("p");a.className="egen-host-incompatible__detail",a.textContent=em(e,Error)?e.message:"";var l=t.createElement("button");l.className="egen-btn egen-btn--primary",l.type="button",l.textContent=r.reload,l.addEventListener("click",function(){return location.reload()}),n.append(o,i,a,l),t.body.appendChild(n)}(e):function(e){var t=document.querySelector("#app-error");if(t){var r=t.content.cloneNode(!0),n=r.querySelector('[data-var="message"]');if(n&&(n.textContent=(null==e?void 0:e.message)||"No additional information available."),localStorage.getItem("egen:devtools")&&Object.keys(localStorage).some(function(e){return e.startsWith("import-map-override:")})){var o=null==r?void 0:r.querySelector("#buttons");if(o){var i=document.createElement("button");i.className="egen-btn",i.innerHTML="Clear dev overrides",i.onclick=eB,o.appendChild(i)}}document.body.appendChild(r)}}(e)}function eB(){Object.keys(localStorage).filter(function(e){return e.startsWith("import-map-override:")&&!["import-map-override:react","import-map-override:react-dom"].includes(e)}).forEach(function(e){return localStorage.removeItem(e)}),location.reload()}function eF(){return eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:var r,n;return t.trys.push([0,2,,3]),[4,(r={serviceWorkerEnabled:window.serviceWorkerEnabled,registerServiceWorker:function(){return(0,Y.registerEgenServiceWorker)("".concat(window.getEgenSpaBase(),"service-worker.js"))},activateOfflineCapability:Y.activateOfflineCapability,startStaticDependencyPrecaching:eL},(n=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if(!r.serviceWorkerEnabled)return[3,2];return[4,r.registerServiceWorker()];case 1:e.sent(),e.label=2;case 2:return[4,r.activateOfflineCapability()];case 3:return e.sent(),r.serviceWorkerEnabled&&r.startStaticDependencyPrecaching(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){eA(i,r,o,a,l,"next",e)}function l(e){eA(i,r,o,a,l,"throw",e)}a(void 0)})})())];case 1:return t.sent(),[3,3];case 2:return console.error("Error while setting up offline mode.",e=t.sent()),(0,Y.showNotification)({kind:"error",title:"Offline Setup Error",description:e.message}),[3,3];case 3:return[2]}})})()}function eL(){var e,t,r,n=null;e=function(e,t){var r=!n||new Date().getTime()-n.getTime()>3e5;t&&e&&r&&(n=new Date,(0,Y.dispatchPrecacheStaticDependencies)())},t=!1,r=!1,(0,Y.getCurrentUser)({includeAuthStatus:!1}).subscribe(function(n){e(t,r=!!n)}),(0,Y.subscribeConnectivity)(function(n){var o=n.online;t=o,e(o,r)})}function eq(){return eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:return[4,eI(function(){var e;return eC(this,function(t){switch(t.label){case 0:return[4,(0,Y.getCurrentPageMap)()];case 1:return e=t.sent(),[4,(0,Y.messageEgenServiceWorker)({type:"onImportMapChanged",importMap:e})];case 2:return t.sent(),[2]}})})()];case 1:return t.sent(),e=(0,eh.c)("".concat(Y.restBaseUrl,"/session")),[4,(0,Y.messageEgenServiceWorker)({type:"registerDynamicRoute",url:e,strategy:"network-first"})];case 2:return t.sent(),[4,(0,Y.egenFetch)("".concat(Y.restBaseUrl,"/session")).catch(function(e){return console.warn("Failed to precache the user session data from the app shell. MFs depending on this data may run into problems while offline.",e)})];case 3:return t.sent(),[2]}})})()}function eW(){window.addEventListener("offline",eN),window.addEventListener("online",eN)}function eK(){(0,Y.subscribeConnectivity)(function(e){var t=e.online,r=document.querySelector("body");t?r.classList.remove("egen-offline"):r.classList.add("egen-offline")})}function eV(e){(0,Z.initDevAuthBypass)(),(0,Z.isDevAuthBypassEnabled)()&&(0,Y.provide)({"@egen-civitas/esm-api":{redirectAuthFailure:{enabled:!1,url:"",errors:[],resolvePromise:!0}}},"egen-dev-no-auth-config"),t=(0,Y.getPlatform)(),o=Z.setAuthorizationProvider,"web"===t.environment||o({credentials:"omit",getAuthorization:function(){return ep(function(){return ed(this,function(e){switch(e.label){case 0:return[4,t.ready];case 1:return e.sent(),[2,t.has("session")?t.session.getAuthorization():null]}})})()},refresh:function(){return ep(function(){return ed(this,function(e){switch(e.label){case 0:return[4,t.ready];case 1:return e.sent(),[2,!!t.has("session")&&t.session.refresh()]}})})()}}),(0,Y.setupImportMapOverrides)();var t,o,i,a,l,u,c,s,f,p,d=window.offlineEnabled,h=(0,Y.renderLoadingSpinner)(document.body),y=(i=Promise.all(e.map(function(e){return fetch((0,Y.interpolateUrl)(e)).then(function(e){return e.json()}).then(function(t){return{name:e,value:t}}).catch(function(t){return console.error('Loading the config from "'.concat(e,'" failed.'),t),{name:e,value:{}}})})),function(){return i.then(eU)}),v=(f={themeUrls:[(c=(u=null!=(a=null!=(l=window.egenPublicPath)?l:window.__webpack_public_path__)?a:"")?"".concat(window.location.origin,"/").concat(u.replace(/^\/|\/$/g,""),"/"):document.baseURI||"".concat(window.location.origin,"/"),new URL("themes/".concat("theme.default.json"),c).href)].concat(function(e){if(Array.isArray(e))return eE(e)}(s=Array.isArray(window.egenThemeUrls)?window.egenThemeUrls:[])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||eT(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),pollIntervalMs:0,onApplied:function(e,t){},onError:function(e){console.warn("[egen-civitas/esm-theme] Le th\xe8me par d\xe9faut sera utilis\xe9.",e.message)}},(p=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return $&&$.destroy(),[4,($=new V(f)).apply()];case 1:return e.sent(),[2,$]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var o=p.apply(e,t);function i(e){H(o,r,n,i,a,"next",e)}function a(e){H(o,r,n,i,a,"throw",e)}i(void 0)})})()).catch(function(e){console.warn("[egen-civitas/esm-theme] Initialisation th\xe8me \xe9chou\xe9e (fallback SCSS actif):",e)});return(0,G.setupTenantSystem)(),Promise.all([r.e("5863").then(r.bind(r,4826)),v]).then(function(e){return ex(e,1)[0],(0,Y.integrateBreakpoints)(),"u"<typeof ResizeObserver||n.flatMap(function(e){var t,r,n,o,i=e.id,a=e.cssVar,l=document.getElementById(i);return l?[(t=document.documentElement,r=-1,(o=new ResizeObserver(n=function(){var e=Math.round(l.getBoundingClientRect().height);e!==r&&(r=e,t.style.setProperty(a,"".concat(e,"px")))})).observe(l),n(),function(){o.disconnect(),t.style.removeProperty(a)})]:[]}),(0,Y.renderToasts)(document.querySelector(".egen-toasts-container")),(0,Y.renderPageBackground)(document.querySelector("#egen-page-background-container")),(0,Y.renderWorkbench)({railLeft:document.querySelector("#egen-rail-left-container"),railRight:document.querySelector("#egen-rail-right-container"),zoneLeft:document.querySelector("#egen-zone-left-container"),zoneRight:document.querySelector("#egen-zone-right-container"),zoneBottom:document.querySelector("#egen-zone-bottom-container")}),(0,Y.setupPageTransitions)(),(0,Y.setupModals)(document.querySelector(".egen-modals-container")),(0,Y.renderInlineNotifications)(document.querySelector(".egen-inline-notifications-container")),(0,Y.renderActionableNotifications)(document.querySelector(".egen-actionable-notifications-container")),(0,Y.renderSnackbars)(document.querySelector(".egen-snackbars-container")),(0,Y.renderWorkspaceWindowsAndMenu)(document.querySelector("#egen-workspaces-container")),(0,Y.subscribeNotificationShown)(Y.showNotification),(0,Y.subscribeActionableNotificationShown)(Y.showActionableNotification),(0,Y.subscribeToastShown)(Y.showToast),(0,Y.subscribeSnackbarShown)(Y.showSnackbar),(0,Y.subscribePrecacheStaticDependencies)(eq),(0,Y.setupApiModule)(),(0,Y.setupHistory)(),!function(){var e=!0,t=!1,r=void 0;try{for(var n,o=[][Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i=n.value;(0,Y.tryRegisterExtension)(eu,i)}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}}(),(0,ec.defineConfigSchema)(eu,{"Enabled feature flags":{_description:"The feature flags that will be enabled",_type:ec.Type.Array,_default:[],_elements:{_type:ec.Type.String}}}),(0,Y.registerModuleLoad)(eu),(0,ec.getConfigStore)(eu).subscribe(function(e){var t=e.config,r=new Set((null==t?void 0:t["Enabled feature flags"])||[]);if(r.size){var n=es({},Y.featureFlagsStore.getState().flags),o=!0,i=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;n[c]?n[c]=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(es({},n[c]),{enabled:!0}):console.error('Feature flag "'.concat(c,'" does not exist. Please define the flag first.'))}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}Y.featureFlagsStore.setState({flags:n})}}),("u">typeof Intl&&"DurationFormat"in Intl?Promise.resolve():r.e("5875").then(r.bind(r,7279)).then(function(){})).then(eM).then(eR).then(function(){return Promise.resolve((0,Y.finishRegisteringAllApps)())}).then(d?eK:void 0).then(d?eW:void 0).then(y).then(eD).catch(ez).then(h).then(d?eF:void 0).then(function(){(0,Y.fireEgenEvent)("started")})})}}}]);
|