1function a(a){const t=a.replace("#",""),r=3===t.length?t.split("").map((a=>a+a)).join(""):t,e=parseInt(r.slice(0,2),16)/255,n=parseInt(r.slice(2,4),16)/255,p=parseInt(r.slice(4,6),16)/255,f=Math.max(e,n,p),c=Math.min(e,n,p);let i=0,s=0;const o=(f+c)/2;if(f!==c){const a=f-c;switch(s=o>.5?a/(2-f-c):a/(f+c),f){case e:i=60*((n-p)/a+(n<p?6:0));break;case n:i=60*((p-e)/a+2);break;case p:i=60*((e-n)/a+4)}}return{h:i,s,l:o}}function t({h:a,s:t,l:r},e=1){return`hsla(${a.toFixed(1)}, ${(100*t).toFixed(1)}%, ${(100*r).toFixed(1)}%, ${e})`}const r=(a,t=0,r=1)=>Math.min(r,Math.max(t,a)),e=(a,t)=>({h:a.h,s:a.s,l:r(a.l+t)}),n=(a,t)=>({h:a.h,s:r(t),l:a.l}),p=(a,t)=>({h:a.h,s:a.s,l:r(t)}),f={primary:"#002850",primaryContrast:"#ffffff",secondary:"#ffd200",secondaryContrast:"#000000",tertiary:"#236ab5",tertiaryContrast:"#ffffff"};function c(a){return a.l>.42?p(n(a,Math.min(a.s,.95)),.3):a}function i(a){return a.l<.35?p(a,.78):a}function s(r=f){const s=a(r.primary),o=function(a,t=.65){return{h:a.h,s:Math.min(a.s,t),l:a.l}}(s),l=p(s,Math.min(s.l,.22)),h=a(r.secondary),d=h.l>.75,g=h.l<.35,u=s.l<.5?t(s):"#141414",x=r.secondaryContrast||(h.l>.55?"#0a1628":"#ffffff"),$=a(r.tertiary||f.tertiary),b=p(o,.08),y=p(o,.04),m=p(o,.13),M=p(o,.17),w=p(o,.22);return{"--pa-bg":t(b),"--pa-bg-deep":t(y),"--pa-surface":t(m),"--pa-surface-alt":t(M),"--pa-card":t(w),"--pa-border":t(e(b,.1),.6),"--pa-border-strong":t(e(b,.15),1),"--pa-divider":t(e(b,.06),.4),"--pa-tertiary":t($),"--pa-tertiary-soft":t($,.16),"--pa-tertiary-glow":t($,.32),"--pa-accent":t(h),"--pa-accent-hover":t(e(h,.06)),"--pa-accent-soft":t(h,.14),"--pa-accent-glow":t(h,.32),"--pa-accent-contrast":x,"--pa-text":r.primaryContrast||"#f1f5fb","--pa-text-muted":"rgba(241, 245, 251, 0.62)","--pa-text-soft":"rgba(241, 245, 251, 0.42)","--pa-gradient-page":`linear-gradient(180deg, ${t(p(o,.13))} 0%, ${t(b)} 38%, ${t(y)} 100%)`,"--pa-gradient-surface":`linear-gradient(160deg, ${t(m)} 0%, ${t(M)} 100%)`,"--pa-gradient-accent":`linear-gradient(180deg, ${t(h)} 0%, ${t(p(h,Math.max(.2,h.l-.08)))} 100%)`,"--pa-shadow-sm":`0 2px 10px ${t(p(y,.02),.4)}`,"--pa-shadow-md":`0 8px 24px ${t(p(y,.02),.45)}`,"--pa-shadow-lg":`0 24px 60px ${t(p(y,.02),.6)}`,"--pa-shadow-accent":`0 14px 32px ${t(h,.28)}`,"--pa-primary":t(s),"--pa-primary-contrast":r.primaryContrast||"#ffffff","--pa-light-bg":t(n(p(o,.98),.3)),"--pa-light-surface":t(n(p(o,.95),.22)),"--pa-light-surface-alt":t(n(p(o,.91),.18)),"--pa-light-border":t(l,.18),"--pa-light-border-strong":t(l,.32),"--pa-light-divider":t(l,.14),"--pa-light-text":t(l),"--pa-light-text-muted":t(l,.68),"--pa-light-text-soft":t(l,.5),"--pa-accent-on-light":t(c(h)),"--pa-accent-fill-light":t(d?s:h),"--pa-accent-fill-light-contrast":d?r.primaryContrast||"#ffffff"
1:r.secondaryContrast||"#23292f","--pa-accent-on-dark":t(i(h)),"--pa-accent-fill-dark":t(i(h)),"--pa-accent-fill-dark-contrast":g?u:x}}function o(a,t){for(const[r,e]of Object.entries(t))a.style.setProperty(r,e)}export{o as a,s as c}
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.