1(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6350419a-0806-4323-a5d9-515b1608dc0b",e._sentryDebugIdIdentifier="sentry-dbid-6350419a-0806-4323-a5d9-515b1608dc0b")}catch{}})();const g={article:"Article",guide_pratique:"Guide pratique",fiche_outils:"Fiche outils",fiche_activite:"Fiche activité",podcast:"Podcast",sequence:"Séquence"},b={article:"info",guide_pratique:"secondary",fiche_outils:"secondary",fiche_activite:"warning",podcast:"neutral",sequence:"warning"},l={article:"bg-res-article-badge-bg border-res-article-badge-border text-res-article-badge-text",guide_pratique:"bg-res-violet-badge-bg border-res-violet-badge-border text-res-violet-badge-text",fiche_outils:"bg-res-violet-badge-bg border-res-violet-badge-border text-res-violet-badge-text",fiche_activite:"bg-res-activite-badge-bg border-res-activite-badge-border text-res-activite-badge-text",podcast:"bg-zinc-100 border-zinc-200 text-zinc-700",sequence:"bg-res-activite-badge-bg border-res-activite-badge-border text-res-activite-badge-text"},u={article:"bg-res-article-bottom",guide_pratique:"bg-res-violet-bottom",fiche_outils:"bg-res-violet-bottom",fiche_activite:"bg-res-activite-bottom",podcast:"bg-white",sequence:"bg-res-activite-bottom"},d={article:"bg-res-article-header",guide_pratique:"bg-res-violet-header",fiche_outils:"bg-res-violet-header",fiche_activite:"bg-res-activite-header",podcast:"bg-white",sequence:"bg-res-activite-header"};function _(e){return g[e]??e}function m(e){return b[e]??"neutral"}function p(e){return l[e]??"bg-zinc-100 border-zinc-200 text-zinc-700"}function C(e){return u[e]??"bg-white"}function x(e){return d[e]??"bg-white"}const f={article:{active:"bg-res-article-badge-bg text-res-article-badge-text",inactive:"bg-ui-bg-inverted text-white"},guide_pratique:{active:"bg-res-violet-badge-bg text-res-violet-badge-text",inactive:"bg-ui-bg-inverted text-white"},fiche_outils:{active:"bg-res-violet-badge-bg text-res-violet-badge-text",inactive:"bg-ui-bg-inverted text-white"},fiche_activite:{active:"bg-res-activite-badge-bg text-res-activite-badge-text",inactive:"bg-ui-bg-inverted text-white"},podcast:{active:"bg-zinc-100 text-zinc-700",inactive:"bg-ui-bg-inverted text-white"},sequence:{active:"bg-res-activite-badge-bg text-res-activite-badge-text",inactive:"bg-ui-bg-inverted text-white"}};function E(e,t){const i=f[e];return i?t?i.active:i.inactive:"bg-ui-bg-inverted text-white"}function y(e){return new Date(e).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"})}function R(e,t){const i=e??[];return i.length>0?i:t?[{id:t.id,prenom:t.firstname??t.pseudo??null,nom:t.lastname??null,fonction:null,image:t.avatar??null,ordre:0}]:[]}function S(e){return[e.prenom?.[0],e.nom?.[0]].filter(Boolean).join("").toUpperCase()||"?"}function w(e){return e?e.pseudo?e.pseudo:[e.firstname,e.lastname].filter(Boolean).join(" ")||"Anonyme":""}function L(e){if(!e?.trim())return 0;const t=e.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();if(!t)return 0;const i=t.split(/\s+/).filter(Boolean).length;return i===0?0:Math.ceil(i/200)}const v=/^lyc[eé]e$/i,c=5;function o(e){const t=e.trim();if(!t)return null;if(v.test(t))return c;const i=t.match(/cycle\s*(\d+)/i);return i?Number(i[1]):null}function a(e){return e===c?"Lycée":`Cycle ${e}`}function h(e){const t=[...new Set(e)].sort((n,r)=>n-r);if(t.length===0)return"";if(t.length===1)return a(t[0]);if(t.every((n,r)=>r===0||n===t[r-1]+1)){const n=a(t[0]),r=t[t.length-1],s=r===c?a(r):String(r);return`${n} à ${s}`}return"Plusieurs cycles"}function T(e){if(!e?.length)return"";const t=[...new Set(e.map(r=>r.trim()).filter(r=>r.length>0&&o(r)===null))],i=e.map(o).filter(r=>r!==null),n=h(i);return n?t.length?`${n}, ${t.join(", ")}`:n:t.join(", ")}export{m as a,w as b,p as c,C as d,T as e,y as f,_ as g,E as h,x as i,L as j,S as k,R as n};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.