PageSourceSearch

https://app.grasp-ai.com/_next/static/chunks/2q7xbxrzkzsk4.js?dpl=d8de48641177ed4eda95b881703c2fec4b891f49

js grasp-ai.com collected 2026-10-08 01:17:36 UTC 125,710 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,411137,e=>{"use strict";var t=e.i(843476),l=e.i(773901);let i=new Intl.NumberFormat("en-US",{maximumFractionDigits:2});function s(e){let t=e.replace(/^l[012]_(?:is|bs|cf|notes)_/,"").replace(/^l[012]_/,"").replace(/^ar_(?:is|bs|cf)_/,"").replace(/^ar_/,"").replace(/[_-]+/g," ").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim().toLowerCase();return(t?t.charAt(0).toUpperCase()+t.slice(1):e).replace(/\bebit(?:da)?\b/gi,e=>e.toUpperCase())}e.s(["AnnualReportCitationFormula",0,function({className:e,displayScale:a=1,formula:n,isTermClickable:r,onResultClick:o,onTermClick:_,resultLabel:c="Selected value"}){if(!n||n.terms.length<2)return null;let u=Number.isFinite(a)&&a>0?a:1,d=i.format(n.result/u),m=c.trim()||"Selected value";return(0,t.jsxs)("div",{className:(0,l.cn)("rounded border border-gray-200 bg-white p-2 text-xs text-gray-950",e),children:[(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-normal text-blue-900 uppercase",children:"Calculation"}),(0,t.jsx)("div",{className:"mt-1.5 space-y-1",children:n.terms.map((e,a)=>{let n=e.value/u,o=!!(_&&(r?.(e,a)??!0)),c=(0,l.cn)("grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] gap-2 rounded text-left",o&&"w-full cursor-pointer hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none"),d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-right font-mono text-blue-700",children:0===a?n<0?"-":"":n<0?"-":"+"}),(0,t.jsx)("span",{className:"min-w-0 truncate font-medium text-blue-950",children:s(e.field)}),(0,t.jsx)("span",{className:"font-mono font-semibold tabular-nums",children:i.format(Math.abs(n))})]});return o?(0,t.jsx)("button",{type:"button",className:c,"aria-label":`Focus ${s(e.field)} source`,onClick:()=>_?.(e,a),children:d},`${e.citationId}-${a}`):(0,t.jsx)("div",{className:c,children:d},`${e.citationId}-${a}`)})}),o?(0,t.jsxs)("button",{type:"button",className:"mt-1.5 grid w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] gap-2 rounded border-t border-gray-200 pt-1 text-left hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none","aria-label":`Focus ${m} source`,onClick:o,children:[(0,t.jsx)("span",{className:"text-right font-mono font-semibold text-blue-700",children:"="}),(0,t.jsx)("span",{className:"min-w-0 truncate font-semibold text-blue-950",children:m}),(0,t.jsx)("span",{className:"font-mono font-semibold tabular-nums",children:d})]}):(0,t.jsxs)("div",{className:"mt-1.5 grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] gap-2 border-t border-gray-200 pt-1",children:[(0,t.jsx)("span",{className:"text-right font-mono font-semibold text-blue-700",children:"="}),(0,t.jsx)("span",{className:"min-w-0 truncate font-semibold text-blue-950",children:m}),(0,t.jsx)("span",{className:"font-mono font-semibold tabular-nums",children:d})]})]})}])},748176,426643,516423,e=>{"use strict";var t=e.i(843476),l=e.i(378780),i=e.i(41039),s=e.i(271645),a=e.i(396389),n=e.i(472706),r=e.i(327693),o=e.i(28056),_=e.i(855549),c=e.i(986982),u=e.i(873274),d=e.i(636631),m=e.i(29507),p=e.i(836383),b=e.i(315689),f=e.i(861411),h=e.i(355698),g=e.i(947620),y=e.i(274644),x=e.i(773901),v=e.i(137950),C=e.i(700978),F=e.i(608810),j=e.i(325665),w=e.i(93564),N=e.i(771721),I=e.i(149909),S=e.i(639937),T=e.i(903413),E=e.i(346486),P=e.i(30465),R=e.i(776020),k=e.i(410610),A=e.i(152261),D=e.i(362361),M=e.i(928987),$=e.i(64900),L=e.i(989277);let z=new Intl.NumberFormat("en-US",{minimumFractionDigits:1,maximumFractionDigits:1});function q({estimate:e,countryCode:l,linkedinUrl:i}){if(e.isManualOverride||e.isInvalidManualInput||null==e.defaultEmployees)return null;let s=e.employeeSource,a="linkedin"===s?"LINKEDIN":"reported"===s?(0,P.normalizeFinancialSource)(e.employeeSourceDetail):null;if("linkedin"!==s&&!a)return null;let n=null!=e.adjustmentFactor?z.format(e.adjustmentFactor):null,r=null!=e.defaultEmployees&&null!=e.adjustmentFactor?Math.round(e.defaultEmployees/e.adjustmentFactor):null;return(0,t.jsx)(A.SourceDisclosure,{side:"bottom",align:"end",triggerLabel:`Headcount details for ${e.year}`,trigger:(0,t.jsx)(f.Icon,{name:"Info",className:"text-muted-foreground size-3.5"}),contentClassName:"text-left",children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 text-xs",children:["linkedin"===s&&null!=e.adjustmentFactor&&e.adjustmentFactor>1&&null!=r?(0,t.jsxs)("p",{children:["LinkedIn reports ",r.toLocaleStr
1ing()," employees. Grasp applies an approximately ",n,"× industry adjustment based on the median reported-to-LinkedIn headcount ratio of comparable companies, resulting in an estimated ",e.defaultEmployees.toLocaleString()," employees."]}):"linkedin"===s&&1===e.adjustmentFactor?(0,t.jsxs)("p",{children:["LinkedIn reports ",e.defaultEmployees.toLocaleString()," employees."]}):null,(0,t.jsx)(D.SourcesTooltipContent,{hrefs:[],source:a,sourceHref:"LINKEDIN"===a?i:null,countryCode:l,isActive:!1})]})})}function O({yearEstimates:e,currency:l,countryCode:i,linkedinUrl:a,hasManualOverrides:n,onEmployeeInputChange:r,onResetEmployeeOverrides:o}){let _=(0,s.useId)(),c=(0,E.usePrintMode)(),u=e.length>0?e[e.length-1].year:0;return 0===e.length?null:(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{className:"border-0 hover:bg-transparent",children:[(0,t.jsx)(L.TableHead,{className:"w-full min-w-52 text-left",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-foreground text-sm font-semibold",children:"Financial estimate"}),(0,t.jsxs)("span",{className:"text-muted-foreground flex items-center gap-1 text-xs font-medium",children:["Headcount × peer median RPE",!c&&(0,t.jsx)(j.TooltipProvider,{delayDuration:200,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(k.IconButton,{icon:"Info",size:"icon-xs","aria-label":"How revenue is estimated",className:"print:hidden"})}),(0,t.jsx)(j.TooltipContent,{side:"top",className:"max-w-xs text-xs",children:"Revenue estimate using the selected headcount and the median Revenue per Employee (RPE) of similar companies. Editing headcount recalculates revenue without changing the peers or RPE."})]})})]}),!c&&n&&(0,t.jsx)("span",{className:"text-muted-foreground mt-1 text-xs font-normal print:hidden",children:(0,t.jsx)(M.Button,{type:"button",variant:"link",size:"sm",onClick:o,children:"Reset"})})]})}),e.map(e=>(0,t.jsx)(L.TableHead,{className:(0,x.cn)("w-24 min-w-24 px-3 text-right text-xs font-semibold tabular-nums",e.year===u?"rounded-t-md bg-emerald-900 text-white dark:bg-emerald-800":"text-muted-foreground"),children:e.year},e.year))]})}),(0,t.jsxs)(L.TableBody,{className:"[&_tr]:border-0",children:[(0,t.jsxs)(L.TableRow,{className:"border-0 hover:bg-transparent",children:[(0,t.jsx)(L.TableCell,{className:"text-sm font-bold text-emerald-900 dark:text-emerald-300",children:"Est. Revenue"}),e.map(e=>{let i=(0,R.roundEstimate)(e.estimate);return(0,t.jsxs)(L.TableCell,{className:(0,x.cn)("px-3 text-right",e.year===u&&"bg-emerald-50 dark:bg-emerald-950/30"),children:[(0,t.jsxs)("span",{className:"font-bold text-emerald-900 tabular-nums dark:text-emerald-300",children:["~",(0,R.formatEstimateValue)(i,l)]}),e.isManualOverride&&(0,t.jsx)("div",{className:(0,x.cn)("text-xs font-normal",!c&&"hidden print:block"),children:"What-if estimate - not saved"}),Number.isFinite(e.rpe)&&e.rpe>0&&null!=e.employees&&(0,t.jsxs)("div",{className:"text-muted-foreground text-2xs tabular-nums",children:[e.employees.toLocaleString()," × ",(0,R.formatEstimateValue)(e.rpe,l)]})]},e.year)})]}),(0,t.jsxs)(L.TableRow,{className:"border-0 hover:bg-transparent",children:[(0,t.jsx)(L.TableCell,{className:"text-muted-foreground p-0 text-xs font-medium",children:(0,t.jsx)("div",{className:"border-muted-foreground/20 ml-2 flex h-full items-center border-l py-1.5 pl-2",children:"Employees"})}),e.map(e=>{let l=`${_}-${e.year}`,s=!Number.isFinite(e.rpe)||e.rpe<=0?"RPE unavailable; headcount cannot be edited":e.isInvalidManualInput&&!c?(0,t.jsx)("span",{className:"print:hidden",children:"Enter a positive whole-number headcount"}):e.isManualOverride?"Manual override":"linkedin"===e.employeeSource&&null!=e.adjustmentFactor&&e.adjustmentFactor>1?(0,t.jsxs)(t.Fragment,{children:["Industry adjustment ",z.format(e.adjustmentFactor),"×"]}):"linkedin"===e.employeeSource?1===e.adjustmentFactor?"LinkedIn headcount":"LinkedIn-based headcount":"reported"===e.employeeSource?"Reported":null;return(0,t.jsxs)(L.TableCell,{className:(0,x.cn)("px-3 py-1 text-right text-xs tabular-nums",e.year===u&&"bg-emerald-50 dark:bg-emerald-950/30"),children:[!c&&(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1 print:hidden",children:[(0,t.jsx)($.Input,{type:"number",min:1,step:1,disabled:!Number.isFinite(e.rpe)||e.rpe<=0,inputMode:"numeric",value:e.employeeInput,"aria-describedby":null!=s?l:void 0,"aria-invalid":e.isInvalidManualInput,"aria-label":`Headcount used for ${e.year}`,onChange:t=>r(e.year,t.target.value),className:"w-24 text-right tabular-nums"}),(0,t.jsx)(q,{estimate:e,countryCode:i,linkedinUrl:a})]}),(0,t.jsx)("span",{className:c?void 0:"hidden print:inline",children:e.employees?.toLocaleStr
1ing()??"—"}),null!=s&&(0,t.jsx)("div",{id:l,role:!c&&e.isInvalidManualInput?"alert":void 0,className:"text-muted-foreground text-2xs mt-0.5 text-right whitespace-nowrap",children:s})]},e.year)})]}),(0,t.jsxs)(L.TableRow,{className:"border-0 hover:bg-transparent",children:[(0,t.jsx)(L.TableCell,{className:"text-muted-foreground p-0 text-xs font-medium",children:(0,t.jsx)("div",{className:"border-muted-foreground/20 ml-2 flex h-full items-center border-l py-1.5 pl-2",children:"RPE Used"})}),e.map(e=>(0,t.jsx)(L.TableCell,{className:(0,x.cn)("text-muted-foreground px-3 py-1 text-right text-xs tabular-nums",e.year===u&&"bg-emerald-50 dark:bg-emerald-950/30"),children:Number.isFinite(e.rpe)&&e.rpe>0?(0,R.formatEstimateValue)(e.rpe,l):"Unavailable"},e.year))]})]})]})})})}function U({peers:e,medianRpe:l,currency:i}){let a=(0,s.useMemo)(()=>e.filter(e=>null!=e.rpe&&e.rpe>0).map(e=>({name:e.name??e.companyId,value:e.rpe,revenue:e.revenue,employees:e.numEmployees})),[e]),n=(0,s.useMemo)(()=>{let e=a.map(e=>e.value);if(0===e.length)return{lo:0,hi:0,span:0};let t=Math.min(...e),l=Math.max(...e);return{lo:t,hi:l,span:l-t}},[a]),r=(0,s.useMemo)(()=>{let e=e=>0===n.span?50:(e-n.lo)/n.span*100,t=[...a].sort((e,t)=>e.value-t.value),l=[];for(let i of t){let t=e(i.value),s=l[l.length-1];s&&s.pcts.every(e=>1>=Math.abs(t-e))?(s.items.push(i),s.pcts.push(t)):l.push({items:[i],pcts:[t]})}return l},[a,n]);if(0===a.length)return null;let o=e=>0===n.span?50:(e-n.lo)/n.span*100;return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Revenue per employee (RPE)"}),(0,t.jsxs)("div",{className:"relative mt-2 h-10 w-full",children:[(0,t.jsx)("div",{className:"bg-muted absolute top-1/2 right-0 left-0 h-px -translate-y-1/2"}),(0,t.jsx)("span",{className:"text-muted-foreground text-2xs absolute -bottom-5 left-0 tabular-nums",children:(0,R.formatEstimateValue)(n.lo,i)}),(0,t.jsx)("span",{className:"text-muted-foreground text-2xs absolute right-0 -bottom-5 tabular-nums",children:(0,R.formatEstimateValue)(n.hi,i)}),null!=l&&(0,t.jsxs)("div",{className:"absolute top-2 h-[calc(100%+0.55rem)]",style:{left:`${o(l)}%`},children:[(0,t.jsx)("div",{className:"bg-foreground absolute top-0 left-0 h-full w-0.5 opacity-70"}),(0,t.jsx)("div",{className:"absolute -top-5 left-1/2 -translate-x-1/2 whitespace-nowrap",children:(0,t.jsx)("span",{className:"text-2xs font-semibold",children:"RPE used"})}),(0,t.jsx)("div",{className:"text-muted-foreground text-2xs absolute -bottom-5 left-1/2 -translate-x-1/2 font-medium whitespace-nowrap tabular-nums",children:(0,R.formatEstimateValue)(l,i)})]}),r.map((e,l)=>e.items.map((s,a)=>{let n;return(0,t.jsx)(j.TooltipProvider,{delayDuration:0,disableHoverableContent:!0,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"bg-foreground
1/30 absolute top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-sm transition-all duration-150 hover:z-10 hover:bg-emerald-900 hover:ring-4 hover:ring-emerald-200/50 dark:border-gray-900 dark:hover:bg-emerald-900 dark:hover:ring-emerald-800/50",style:{left:(n=o(s.value),`clamp(8px, ${n}%, calc(100% - 8px))`)}})}),(0,t.jsx)(j.TooltipContent,{side:"top",className:"max-w-sm text-xs",children:e.items.length>1?e.items.map((e,l)=>(0,t.jsxs)("div",{className:l>0?"border-border mt-1 border-t pt-1":"",children:[(0,t.jsx)("p",{className:"text-primary-foreground truncate font-medium",children:e.name}),(0,t.jsxs)("p",{className:"text-primary-foreground/70 tabular-nums",children:["RPE: ",(0,R.formatEstimateValue)(e.value,i)," · Revenue:"," ",(0,R.formatEstimateValue)(e.revenue,i)," · ",e.employees?.toLocaleString()??"?"," emp"]})]},l)):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-primary-foreground truncate font-medium",children:s.name}),(0,t.jsxs)("p",{className:"text-primary-foreground/70 tabular-nums",children:["RPE: ",(0,R.formatEstimateValue)(s.value,i)," · Revenue:"," ",(0,R.formatEstimateValue)(s.revenue,i)," · ",s.employees?.toLocaleString()??"?"," emp"]})]})})]})},`${l}-${a}`)}))]})]})}var V=e.i(703309),H=e.i(66178),W=e.i(800158);function B({year:e}){return(0,t.jsxs)("span",{className:"bg-muted text-muted-foreground text-2xs ml-1.5 inline-flex items-center rounded px-1 py-0.5 leading-none font-medium tabular-nums",children:["’",String(e).slice(2)]})}function Y({companies:e,onClickCompany:l,currency:i}){return(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(L.Table,{className:"min-w-120 select-none",children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsxs)(L.TableHead,{className:"text-muted-foreground w-full text-left text-xs font-semibold",children:[e.length," selected comparable ",1===e.length?"company":"companies"]}),(0,t.jsx)(L.TableHead,{className:"text-muted-foreground w-24 min-w-24 text-left text-xs font-semibold",children:"Employees"}),(0,t.jsx)(L.TableHead,{className:"text-muted-foreground w-24 min-w-24 text-left text-xs font-semibold",children:"Revenue"}),(0,t.jsx)(L.TableHead,{className:"text-muted-foreground w-20 min-w-20 text-left text-xs font-semibold",children:"RPE"})]})}),(0,t.jsx)(L.TableBody,{children:e.map(e=>{let s=e.name??e.companyId,a=e.url?e.url.replace(/^https?:\/\//,"").replace(/\/$/,""):null,n="linkedin"===e.numEmployeesSource,r=(0,P.normalizeFinancialSource)(e.financialSource),o=n?"LINKEDIN":"reported"!==e.numEmployeesSource||null==e.numEmployeesYear||e.numEmployeesYear!==e.revenueYear||(0,P.isAnnualReportFinancialSource)(e.financialSource)?null:r;return(0,t.jsxs)(L.TableRow,{className:"align-top",children:[(0,t.jsxs)(L.TableCell,{className:"max-w-0 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded bg-gray-100 dark:bg-gray-800",children:a?(0,t.jsx)(V.FavIcon,{url:a,size:16,className:"h-4 w-4"}):(0,t.jsx)("span",{className:"text-muted-foreground text-2xs font-bold",children:(s??"?")[0]})}),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)(j.TooltipProvider,{delayDuration:300,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:l?(0,t.jsx)("button",{className:"cursor-pointer truncate text-sm font-medium hover:underline",onClick:()=>l(e.companyId,s),children:s}):(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:s})}),(0,t.jsx)(j.TooltipContent,{side:"bottom",align:"start",sideOffset:8,className:"border-none p-0 shadow-lg",children:(0,t.jsx)(H.AsyncCompanyTooltip,{companyId:e.companyId})})]})}),e.country&&(0,t.jsx)(W.CountryFlag,{code:e.country})]})]}),e.companyDescription&&(0,t.jsx)(j.TooltipProvider,{delayDuration:300,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 line-clamp-1 text-xs leading-snug",children:e.companyDescription})}),(0,t.jsx)(j.TooltipContent,{side:"bottom",align:"start",className:"max-w-sm text-xs",children:e.companyDescription})]})})]}),(0,t.jsx)(L.TableCell,{className:"py-3 text-left align-middle text-xs font-medium tabular-nums",children:null!=e.numEmployees?(0,t.jsxs)("span",{className:"inline-flex items-center",children:[o?(0,t.jsx)(A.SourceDisclosure,{triggerLabel:`Headcount source for ${s}`,trigger:(0,t.jsx)("span",{className:"border-b border-dotted border-current",children:e.numEmployees.toLocaleStr
1ing()}),contentClassName:"max-w-xs border bg-white shadow-2xl drop-shadow-xl",children:(0,t.jsx)(D.SourcesTooltipContent,{source:o,sourceHref:n?e.linkedinUrl:null,countryCode:e.country,isActive:!1})}):(0,t.jsx)("span",{children:e.numEmployees.toLocaleString()}),null!=e.numEmployeesYear&&(0,t.jsx)(B,{year:e.numEmployeesYear})]}):"—"}),(0,t.jsx)(L.TableCell,{className:"py-3 text-left align-middle text-xs font-medium whitespace-nowrap tabular-nums",children:(0,t.jsxs)("span",{className:"inline-flex items-center",children:[r?(0,t.jsx)(j.TooltipProvider,{delayDuration:200,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"border-b border-dotted border-current",children:(0,R.formatEstimateValue)(e.revenue,i)})}),(0,t.jsx)(j.TooltipContent,{side:"top",align:"start",className:"max-w-xs border bg-white shadow-2xl drop-shadow-xl",children:(0,t.jsx)(D.SourcesTooltipContent,{source:r,countryCode:e.country,isActive:!1})})]})}):(0,t.jsx)("span",{children:(0,R.formatEstimateValue)(e.revenue,i)}),null!=e.revenueYear&&(0,t.jsx)(B,{year:e.revenueYear})]})}),(0,t.jsx)(L.TableCell,{className:"py-3 text-left align-middle text-xs font-medium tabular-nums",children:(0,R.formatEstimateValue)(e.rpe,i)})]},e.companyId)})})]})})}let K=(0,s.memo)(function({employeeSource:e,financialEstimates:l,currency:i,similarCompanyIds:a,companyUrl:n,countryCode:r,linkedinUrl:o,onClickCompany:_}){let[c,u]=(0,s.useState)({}),d=a.length>0,{data:m,isLoading:p,error:b}=(0,N.useSimilarCompanies)(d?a:[],i,(0,I.getEstimatePeerEvidenceMethod)(l?.revenue[0])),{data:f,isLoading:h,error:g}=(0,N.useEstimateModalData)(!d&&n?n:null),x=m??f?.similarCompanies??[],v=p||h,C=null!=b||null!=g,F=f?.target?.employeeSource??e,j=i??f?.target?.estimateCurrency??l?.estimateLcyCurrency??null,w=l?.revenue??[],E=w[0],P=n??`company-ids:${a.join(",")}`,R=(0,s.useMemo)(()=>E?(0,T.pickRpe)(E,j):null,[E,j]),k=(0,s.useMemo)(()=>w.length?w.filter(e=>null!=e.year&&null!=(0,T.pickRevenue)(e,j)).map(e=>{let t=(0,T.pickRevenue)(e,j),l=(0,T.pickRpe)(e,j)??0,i=Number.isFinite(l)&&l>0?Math.round(t/l):null,s=e.adjustedTargetEmployees??(null!=i&&Number.isSafeInteger(i)&&i>0?i:null),a=c[`${P}:${e.year}`],n=null==a||""===a.trim()?null:Number(a),r=l>0&&Number.isFinite(l)&&null!=n&&Number.isSafeInteger(n)&&n>0?n:null;return{year:e.year,estimate:null!=r&&l>0?r*l:t,employees:r??s,defaultEmployees:s,employeeInput:a??(null!=s?String(s):""),isManualOverride:null!=r&&r!==s,isInvalidManualInput:null!=a&&""!==a.trim()&&null==r,employeeSource:e.employeeSource??null,employeeSourceDetail:e.employeeSourceDetail??null,adjustmentFactor:e.headcountAdjustmentFactor??null,rpe:l}}).sort((e,t)=>e.year-t.year):[],[w,c,P,j]),A=(0,s.useCallback)((e,t)=>{u(l=>({...l,[`${P}:${e}`]:t}))},[P]),D=k.some(e=>e.isManualOverride||e.isInvalidManualInput||null!=e.defaultEmployees&&""===e.employeeInput.trim()),M=(0,s.useCallback)(()=>{u(e=>Object.fromEntries(Object.entries(e).filter(([e])=>!e.startsWith(`${P}:`))))},[P]);return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)(O,{yearEstimates:k,currency:j,employeeSource:F,countryCode:r,linkedinUrl:o,hasManualOverrides:D,onEmployeeInputChange:A,onResetEmployeeOverrides:M}),v?(0,t.jsxs)("div",{role:"status","aria-label":"Loading comparable companies",className:"space-y-3",children:[(0,t.jsx)(S.Skeleton,{className:"h-8 w-64"}),(0,t.jsx)(S.Skeleton,{className:"h-24 w-full"}),Array.from({length:3},(e,l)=>(0,t.jsx)(S.Skeleton,{className:"h-10 w-full"},l))]}):C?(0,t.jsx)(y.Placeholder,{variant:"error",title:"Could not load comparable companies",description:"The revenue estimate is still available. Try again later to view its comparable companies."}):null,!v&&!C&&x.length>0&&(0,t.jsxs)("div",{className:"border-border mt-10 border-t pt-10",children:[(0,t.jsx)("h3",{className:"mb-2 pl-2 text-sm font-semibold",children:"Companies with similar performance"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4 pl-2 text-xs",children:"Comparable companies’ latest available figures are shown."}),(0,t.jsx)("div",{className:"px-2 pb-4",children:(0,t.jsx)(U,{peers:x,medianRpe:R,currency:j})})]}),!v&&!C&&x.length>0&&(0,t.jsx)(Y,{companies:x,onClickCompany:_,currency:j})]})});var G=e.i(249683),Z=e.i(787203);function Q({statementType:e,dataType:l,onDataTypeChange:i,hasConsolidatedData:s,hasIndividualData:a,selectedCurrency:n,onCurrencyChange:r,sourceCurrency:o,companyCountryCode:_,allowedCurrencies:c,canConvertCurrency:u,onDownload:d}){let m="estimates"===e;return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!m&&(0,t.jsxs)(Z.Select,{value:l,onValueChange:e=>i(e),children:[(0,t.jsx)(Z.SelectTrigger,{size:"sm","aria-label":"Financial data type",className:"tracking-normal",children:(0,t.jsx)(Z.SelectValue,{})}),(0,t.jsxs)(Z.SelectContent,{children:[(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,disabled:s,children:(0,t.jsx)("span",{className:s?void 0:"pointer-events-auto",children:(0,t.jsx)(Z.SelectItem,{value:"consolidated",disabled:!s,children:"Consolidated"})})}),!s&&(0,t.jsx)(j.TooltipContent,{children:"Consolidated financial data is not available for this company"})]}),(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,disabled:a,children:(0,t.jsx)("span",{className:a?void 0:"pointer-events-auto",children:(0,t.jsx)(Z.SelectItem,{value:"individual",disabled:!a,children:"Standalone"})})}),!a&&(0,t.jsx)(j.TooltipContent,{children:"Standalone financial data is not available for this company"})]})]})]}),(0,t.jsxs)(Z.Select,{value:n??o??"",onValueChange:e=>r(e),disabled:!u,children:[(0,t.jsx)(Z.SelectTrigger,{size:"sm","aria-label":"Financial currency",className:"tracking-normal",children:(0,t.jsx)(Z.SelectValue,{placeholder:o??"Currency"})}),(0,t.jsx)(Z.SelectContent,{children:c.map(e=>{let l=e===o;return(0,t.jsx)(Z.SelectItem,{value:e,children:(0,t.jsxs)(G.CurrencyLabel,{currency:e,countryCode:l?_:void 0,children:[e,l&&(m?" (local)":" (reported)")]})},e)})})]}),!m&&d&&(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(k.IconButton,{icon:"Download",variant:"ghost",onClick:d,size:"icon-sm","aria-label":"Download financial statement"})}),(0,t.jsx)(j.TooltipContent,{children:"Download as Excel"})]})]})}var J=e.i(31132),X=e.i(411137),ee=e.i(873492),et=e.i(149090);function el(e,t){return e.valueSourceFieldIds?.[t]??e.id}function ei(e,t){return e.citationSourceFieldIds&&Object.hasOwn(e.citationSourceFieldIds,t)?e.citationSourceFieldIds[t]??null:el(e,t)}function es(e,t){return Object.fromEntries(t.map(t=>[t,e[t]??null]))}var ea=e.i(297044),en=e.i(556883),er=e.i(736938);let eo="l1_is_notes_cost_depreciation_and_amortisation";function e_(e){return"number"==typeof e&&Number.isFinite(e)}function ec({plugFieldId:e,plugValue:t,valueIndex:l,year:i}){if(!e_(t))return null;for(let s of(0,er.getPlugFormulaTermGroups)(e)){let a=[];for(let t of s){let s=function({fieldId:e,plugFieldId:t,valueIndex:l,year:i}){let s=(0,er.getPlugDefinition)(t),a=s&&e===s.parentField?s.l0Field:void 0,n=l.get(e),r=n?.values[i],o=a?l.get(a):void 0,_=o?.values[i];return e_(r)?{fieldId:e,label:n?.label??e,value:r}:a&&e_(_)?{fieldId:a,label:o?.label??a,value:_}:null}({fieldId:t.fieldId,plugFieldId:e,valueIndex:l,year:i});s&&a.push({citationId:`plug-formula:${s.fieldId}:${i}`,field:s.label,value:t.sign*s.value})}if(a.length<2)continue;let n=a.reduce((e,t)=>
1e+t.value,0);if((0,en.formulaValuesMatch)(t,n))return{kind:"sum",result:n,terms:a}}return null}var eu=e.i(303978);function ed(e,t){return(0,eu.areFinancialPlugValuesSmall)(e,t)}function em(e,t){return!!(e.details?.length||e.plug&&!ed(e.plug,t))}let ep=new Set(["l0_ebitda","l0_ebit","l0_ebt","l0_net_income","l0_total_assets","l0_total_equity_and_liabilities"]),eb=et.getAnnualReportCitationCellKey;function ef({children:e,displayScale:l,formula:i,resultLabel:s}){return(0,t.jsx)(j.TooltipProvider,{skipDelayDuration:0,children:(0,t.jsxs)(j.Tooltip,{delayDuration:0,children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:e}),(0,t.jsx)(j.TooltipContent,{side:"top",sideOffset:0,align:"start",collisionPadding:16,className:"max-w-95 border bg-white p-2 shadow-2xl drop-shadow-xl",children:(0,t.jsx)(X.AnnualReportCitationFormula,{displayScale:l,formula:i,resultLabel:s})})]})})}function eh(e,t){return`${e}:${t}`}function eg(e,t){return"margin"===e.type||"balance"===t&&"l0"===e.type}function ey({rows:e,statementType:l,columnCount:i,selectedYearIndex:n,years:r,scale:o,isReportingMode:_,activeFieldName:c,activeFinancialYear:u,onCellClick:d,onValueClick:m,isValueClickable:p,annualReportCitationsByCell:b,annualReportCitationSourceScopesByCell:h,onViewAnnualReport:g}){let y=(0,s.useMemo)(()=>(function(e){let t=new Map;for(let l of e){for(let e of(t.set(l.id,{label:l.label,values:l.values}),l.details??[]))t.set(e.id,{label:e.label,values:e.values});l.plug&&l.plugId&&t.set(l.plugId,{label:`Reconciliation - ${l.label}`,values:l.plug})}return t})(e.map(e=>e.original)),[e]),v=(0,s.useMemo)(()=>{let t=new Map;for(let l of e){let e=l.original;if("plug"===e.type)for(let l of r)t.set(eh(e.id,l),ec({plugFieldId:e.id,plugValue:e.values[l]??null,valueIndex:y,year:l}));if(e.plug&&!ed(e.plug,o.divisor)){let l=e.plugId??`${e.id}_plug`;for(let i of r)t.set(eh(l,i),ec({plugFieldId:l,plugValue:e.plug[i]??null,valueIndex:y,year:i}))}}return t},[y,e,o.divisor,r]);return(0,t.jsx)(L.TableBody,{children:e.map((C,F)=>{let w=C.original,N="margin"===w.type,I=eg(w,l),S=F>0&&eg(e[F-1].original,l),T="category-header"===w.type,E="section-header"===w.type,P="l0_is_notes"===w.sectionId&&"l1_is_notes_profit_ebitda"===w.id,R="l1"===w.type&&em(w,o.divisor),k=C.getIsExpanded(),A=`${C.id}-${C.index}`;return(0,t.jsxs)(s.Fragment,{children:[T&&(0,t.jsxs)(L.TableRow,{className:(0,x.cn)("border-0 hover:bg-transparent",S&&"[&>td]:pt-6"),children:[(0,t.jsx)(L.TableCell,{className:"font-semibold underline",children:w.label}),r.map((e,l)=>(0,t.jsx)(L.TableCell,{className:(0,x.cn)(l===n&&"bg-[var(--profile-financial-selected)]")},e)),(0,t.jsx)(L.TableCell,{"aria-hidden":"true"})]},A),E&&(0,t.jsx)(L.TableRow,{className:"border-0 hover:bg-transparent",children:(0,t.jsx)(L.TableCell,{colSpan:i,className:"px-3 py-3 align-top",children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"font-semibold text-gray-950",children:w.label}),w.description?(0,t.jsxs)("p",{className:"text-muted-foreground max-w-4xl text-xs leading-5",children:[w.description,w.linkHref&&w.linkLabel?(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("a",{href:w.linkHref,target:"_blank",rel:"noreferrer",className:"text-muted-foreground hover:text-foreground underline underline-offset-2",children:w.linkLabel})]}):null]}):null]})})},A),!T&&!E&&(0,t.jsx)(L.TableRow,{className:(0,x.cn)("border-border border-b",ep.has(w.id)&&"border-t border-t-[var(--profile-chart-revenue)]"),children:C.getVisibleCells().map((e,l)=>{let i=l>=1&&l<=r.length,s=i?r[l-1]:void 0,f=s?ei(w,s):w.id,F=s&&f?eb(f,s):null,T=s?w.values[s]:null,E=F&&b&&i&&!N?b.get(F)??null:null,k=F?h?.get(F):void 0,A=E?(0,a.applyAnnualReportCitationPreviewSourceScope)(E,k):null,D="plug"===w.type&&s?v.get(eh(w.id,s))??null:null,M=(P&&s?function({notesEbitdaValue:e,valueIndex:t,year:l}){if(!e_(e))return null;let i=t.has("l1_is_profit_ebit")?"l1_is_profit_ebit":"l0_ebit",s=t.get(i),a=t.get(eo);if(!s||!a)return null;let n=s.values[l],r=a.values[l];if(!e_(n)||!e_(r))return null;let o=n-r;return(0,en.formulaValuesMatch)(e,o)?{kind:"sum",result:o,terms:[{citationId:`notes-ebitda-formula:${i}:${l}`,field:s.label,value:n},{citationId:`notes-ebitda-formula:${eo}:${l}`,field:a.label,value:-r}]}:null}({notesEbitdaValue:T,valueIndex:y,year:s}):null)??D,$=!!(s&&m&&i&&!N)&&(p?.(w,s??"")??!0),z=_&&i&&!N,q=z||$||null!==A||null!==M,O=0===l&&R&&!_,U=(0,t.jsx)(L.TableCell,{"data-annual-report-citation-trigger":A?"true":void 0,"data-plug-calculation-trigger":!A&&M?"true":void 0,className:(0,x.cn)("text-profile-table px-3 py-2.5 font-medium",ep.has(w.id)&&"border-t border-t-[var(--profile-financial-header)] py-3",l>0&&"text-right",l===n+1&&"bg-[var(--profile-financial-selected)]","l0"===w.t
1ype&&"text-foreground",P&&"text-foreground",I&&"border-b-2 border-b-[var(--profile-financial-header)]",N&&"pt-1.5 pb-[9px] italic",S&&"pt-6",O&&"hover:bg-muted/30 cursor-pointer",q&&"hover:bg-tag-blue-bg cursor-pointer transition-colors",q&&c===f&&u===s&&"bg-sky-100 text-sky-950 shadow-sm ring-2 ring-sky-500 ring-inset"),style:e.column.columnDef.size?{width:e.column.columnDef.size,minWidth:e.column.columnDef.size,maxWidth:e.column.columnDef.size}:void 0,onClick:z&&s?e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();d?.(w,s,T,{top:t.top,left:t.left,width:t.width,height:t.height})}:O?C.getToggleExpandedHandler():$&&s?e=>{e.stopPropagation(),m?.(w,s,T)}:A?e=>{e.stopPropagation(),g?.(A)}:void 0,children:A||M?(0,t.jsx)("span",{className:"underline decoration-dashed decoration-1 underline-offset-2",children:(0,J.flexRender)(e.column.columnDef.cell,e.getContext())}):(0,J.flexRender)(e.column.columnDef.cell,e.getContext())},e.id);return A?(0,t.jsx)(j.TooltipProvider,{skipDelayDuration:0,children:(0,t.jsxs)(j.Tooltip,{delayDuration:0,children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:U}),(0,t.jsx)(j.TooltipContent,{side:"top",sideOffset:0,align:"start",collisionPadding:16,className:"max-w-95 border bg-white p-3 shadow-2xl drop-shadow-xl",children:(0,t.jsx)(ee.AnnualReportCitationPreview,{citation:A,sourceScope:k,onViewAnnualReport:g,onClose:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}})})]})},`${e.id}-${A.fieldKey}`):M?(0,t.jsx)(ef,{displayScale:o.divisor,formula:M,resultLabel:w.label,children:U},`${e.id}-${w.id}-formula`):U})},`row-${A}`),!T&&!E&&R&&k&&(0,t.jsxs)(t.Fragment,{children:[w.details?.map(e=>(0,t.jsxs)(L.TableRow,{className:"bg-muted/20 h-6 border-b-0",children:[(0,t.jsx)(L.TableCell,{className:"h-6 p-0",children:(0,t.jsxs)("div",{className:"ml-3.5 flex h-full items-center gap-2 border-l-2 pl-4",children:[(0,t.jsx)("span",{className:(0,x.cn)("text-muted-foreground text-xs",e.isReconciliationItem&&"italic"),children:e.label}),e.isReconciliationItem&&(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(f.Icon,{name:"Info",className:"text-muted-foreground size-3"})})}),(0,t.jsx)(j.TooltipContent,{className:"max-w-xs",children:"Reconciliation items are used to align conflicting data points and normalize differences in mapping structures across companies."})]})]})}),r.map((l,i)=>{let s=e.values[l],r=!!_,f=eb(e.id,l),y=b?.get(f)??null,v=h?.get(f)??void 0,C=y?(0,a.applyAnnualReportCitationPreviewSourceScope)(y,v):null,F={id:e.id,type:"l2",label:e.label,values:e.values,sectionId:w.sectionId,parentId:w.id,hasChildren:!1},N=!!m&&(p?.(F,l)??!0),I=r||N||null!==C,S=(0,t.jsx)(L.TableCell,{"data-annual-report-citation-trigger":C?"true":void 0,className:(0,x.cn)("py-0 text-right",i===n&&"bg-[var(--profile-financial-selected)]",I&&"hover:bg-tag-blue-bg cursor-pointer transition-colors",I&&c===e.id&&u===l&&"bg-sky-100 text-sky-950 shadow-sm ring-2 ring-sky-500 ring-inset"),onClick:r?e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();d?.(F,l,s,{top:t.top,left:t.left,width:t.width,height:t.height})}:C?e=>{e.stopPropagation(),g?.(C)}:N?e=>{e.stopPropagation(),m?.(F,l,s)}:void 0,children:(0,t.jsx)("span",{className:(0,x.cn)("text-muted-foreground text-xs tabular-nums",e.isReconciliationItem&&"italic",C&&"underline decoration-dashed decoration-1 underline-offset-2"),children:(0,ea.formatValue)(s,o.divisor)})},`year-${e.id}-${l}-${A}`);return C?(0,t.jsx)(j.TooltipProvider,{skipDelayDuration:0,children:(0,t.jsxs)(j.Tooltip,{delayDuration:0,children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:S}),(0,t.jsx)(j.TooltipContent,{side:"top",sideOffset:0,align:"start",collisionPadding:16,className:"max-w-95 border bg-white p-3 shadow-2xl drop-shadow-xl",children:(0,t.jsx)(ee.AnnualReportCitationPreview,{citation:C,sourceScope:v,onViewAnnualReport:g,onClose:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}})})]})},`${e.id}-${l}-${A}-ar`):S}),(0,t.jsx)(L.TableCell,{"aria-hidden":"true"})]},`detail-${e.id}-${A}`)),w.plug&&!ed(w.plug,o.divisor)&&(0,t.jsxs)(L.TableRow,{className:"bg-muted/20 h-6 border-b-0",children:[(0,t.jsx)(L.TableCell,{className:"h-6 p-0",children:(0,t.jsxs)("div",{className:"ml-3.5 flex h-full items-center gap-2 border-l-2 pl-4",children:[(0,t.jsxs)("span",{className:"text-muted-foreground text-xs italic",children:["Reconciliation - ",w.label]}),(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(f.Icon,{name:"Info",className:"text-muted-foreground size-3"})})}),(0,t.jsx)(j.TooltipContent,{className:"max-w-xs",children:"Reconciliation items are used to normalise differences in mapping structures across countries and companies."})]})]})}),r.map((e,l)=>{let i=w.plugId??`${w.id}_plug`,s=w.plug?.[e]??null,r=eb(i,e),_=b?.get(r)??null,d=h?.get(r)??void 0,f=_?(0,a.applyAnnualReportCitationPreviewSourceScope)(_,d):null,y=f?null:v.get(eh(i,e))??null,C={id:i,type:"plug",label:`Reconciliation - ${w.label}`,values:w.plug??{},sectionId:w.sectionId,parentId:w.id,hasChildren:!1},F=!!m&&(p?.(C,e)??!0),N=F||null!==f||null!==y,I=(0,t.jsx)(L.TableCell,{"data-annual-report-citation-trigger":f?"true":void 0,"data-plug-calculation-trigger":!f&&y?"true":void 0,className:(0,x.cn)("py-0 text-right",l===n&&"bg-[var(--profile-financial-selected)]",N&&"hover:bg-tag-blue-bg cursor-pointer transition-colors",N&&c===i&&u===e&&"bg-sky-100 text-sky-950 shadow-sm ring-2 ring-sky-500 ring-inset"),onClick:f?e=>
1{e.stopPropagation(),g?.(f)}:F?t=>{t.stopPropagation(),m?.(C,e,s)}:void 0,children:(0,t.jsx)("span",{className:(0,x.cn)("text-muted-foreground text-xs italic tabular-nums",(f||y)&&"underline decoration-dashed decoration-1 underline-offset-2"),children:(0,ea.formatValue)(s,o.divisor)})},`plug-year-${e}-${A}`);return f?(0,t.jsx)(j.TooltipProvider,{skipDelayDuration:0,children:(0,t.jsxs)(j.Tooltip,{delayDuration:0,children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:I}),(0,t.jsx)(j.TooltipContent,{side:"top",sideOffset:0,align:"start",collisionPadding:16,className:"max-w-95 border bg-white p-3 shadow-2xl drop-shadow-xl",children:(0,t.jsx)(ee.AnnualReportCitationPreview,{citation:f,sourceScope:d,onViewAnnualReport:g,onClose:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}})})]})},`${i}-${e}-${A}-ar`):y?(0,t.jsx)(ef,{displayScale:o.divisor,formula:y,resultLabel:C.label,children:I},`${i}-${e}-${A}-formula`):I}),(0,t.jsx)(L.TableCell,{"aria-hidden":"true"})]},`plug-${A}`),(0,t.jsx)(L.TableRow,{className:"border-0 hover:bg-transparent",children:Array.from({length:i}).map((e,l)=>(0,t.jsx)(L.TableCell,{className:(0,x.cn)("h-1 p-0",l===n+1&&"bg-[var(--profile-financial-selected)]")},l))})]})]},`fragment-${A}`)})})}var ex=e.i(985426),ev=e.i(403044);function eC({headerGroups:e,years:l,statementType:i,selectedCurrency:s,sourceCurrency:a,selectedYearIndex:n,onYearSelect:r}){let o=s&&a&&s!==a;return(0,t.jsxs)(L.TableHeader,{className:"bg-card sticky top-0 z-10",children:[e.map(e=>(0,t.jsx)(L.TableRow,{className:"hover:bg-transparent",children:e.headers.map((e,i)=>(0,t.jsx)(L.TableHead,{className:(0,x.cn)("text-foreground text-profile-table h-auto px-3 py-2.5 font-normal",i>0&&"text-right",i===n+1&&"bg-[var(--profile-financial-header)] text-white"),style:{width:e.column.columnDef.size},children:0===i||i>l.length?(0,J.flexRender)(e.column.columnDef.header,e.getContext()):(0,t.jsx)(ex.Button,{variant:"ghost",size:"xs",className:"h-auto w-full justify-end p-0 leading-[1.4] whitespace-nowrap text-inherit hover:bg-transparent","aria-pressed":i===n+1,"aria-label":`Highlight period ending ${(0,ea.formatFinancialPeriod)(l[i-1])}`,title:`Period ending ${(0,ea.formatFinancialPeriod)(l[i-1])}`,onClick:()=>r(l[i-1]),children:l[i-1]})},e.id))},e.id)),o&&(0,t.jsxs)(L.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsxs)(L.TableHead,{className:"h-auto px-3 py-2 text-xs",children:["FX Rate (","income"===i?"Avg":"EoY"," ",a,"/",s,")"]}),l.map((e,l)=>(0,t.jsx)(L.TableHead,{className:(0,x.cn)("h-auto px-3 py-2 text-right text-xs",l===n&&"bg-[var(--profile-financial-selected)]"),children:(0,ev.getExchangeRate)(a,s,e,"income"===i?"average":"eoy")?.toFixed(4)??"-"},e)),(0,t.jsx)(L.TableHead,{"aria-hidden":"true"})]})]})}let eF=(0,s.memo)(function({rowValues:e,years:l}){let i=l.map(t=>e[t]).filter(e=>"number"==typeof e&&Number.isFinite(e));if(i.length<2)return null;let s=Math.min(...i),a=Math.max(...i)-s||1,n=i.map((e,t)=>{let l=1+t/(i.length-1)*30;return`${l},${11-(e-s)/a*10}`}),r=i[0],o=i[i.length-1]-r;return(0,t.jsx)("svg",{width:32,height:12,className:`inline-block ${o>=0?"text-green-600":"text-destructive"}`,role:"img","aria-label":`${o>=0?"Positive":"Negative"} trend`,children:(0,t.jsx)("polyline",{fill:"none",stroke:"currentColor",strokeWidth:"2",points:n.join(" ")})})});var ej=e.i(909840),ew=e.i(6551),eN=e.i(830912),eI=e.i(96830);function eS(){return e=>(0,eN.tableMemo)({feature:"rowExpandingFeature",table:e,fnName:"table.getExpandedRowModel",memoDeps:()=>[e.atoms.expanded?.get(),e.getPreExpandedRowModel(),e.options.paginateExpandedRows,e.options.manualPagination],fn:()=>{var t,l;let i,s,a,n;return i=(t=e).getPreExpandedRowModel(),s=t.atoms.expanded?.get(),i.rows.length&&(!0===s||Object.keys(s??{}).length)&&(t.options.paginateExpandedRows||t.options.manualPagination)?(l=i,a=[],n=e=>{a.push(e),e.subRows.length&&(0,eI.row_getIsExpanded)(e)&&e.subRows.forEach(n)},l.rows.forEach(n),{rows:a,flatRows:l.flatRows,rowsById:l.rowsById}):i}})}e.s(["createExpandedRowModel",0,eS],426643);let eT={getInitialState:e=>({expanded:(0,eI.getDefaultExpandedState)(),...e}),getDefaultTableOptions:e=>({onExpandedChange:(0,eN.makeStateUpdater)("expanded",e),paginateExpandedRows:!0}),assignRowPrototype:(e,t)=>{(0,eN.assignPrototypeAPIs)("rowExpandingFeature",e,t,{row_toggleExpanded:{fn:(e,t)=>(0,eI.row_toggleExpanded)(e,t)},row_getIsExpanded:{fn:e=>(0,eI.row_getIsExpanded)(e)},row_getCanExpand:{fn:e=>(0,eI.row_getCanExpand)(e)},row_getIsAllParentsExpanded:{fn:e=>(0,eI.row_getIsAllParentsExpanded)(e)},row_getToggleExpandedHandler:{fn:e=>(0,eI.row_getToggleExpandedHandler)(e)}})},constructTableAPIs:e=>{(0,eN.assignTableAPIs)("rowExpandingFeature",e,{table_autoResetExpanded:{fn:()=>(0,eI.table_autoResetExpanded)(e)},table_setExpanded:{fn:t=>(0,eI.table_setExpanded)(e,t)},table_toggleAllRowsExpanded:{fn:t=>(0,eI.table_toggleAllRowsExpanded)(e,t)},table_resetExpanded:{fn:t=>(0,eI.table_resetExpanded)(e,t)},table_getCanSomeRowsExpand:{fn:()=>(0,eI.table_getCanSomeRowsExpand)(e)},table_getToggleAllRowsExpandedHandler:{fn:()=>(0,eI.table_getToggleAllRowsExpandedHandler)(e)},table_getIsSomeRowsExpanded:{fn:()=>(0,eI.table_getIsSomeRowsExpanded)(e)},table_getIsAllRowsExpanded:{fn:()=>(0,eI.table_getIsAllRowsExpanded)(e)},table_getExpandedDepth:{fn:()=>(0,eI.table_getExpandedDepth)(e)}})}};e.s(["rowExpandingFeature",0,eT],516423);let eE=(0,e.i(316741).tableFeatures)({columnVisibilityFeature:ew.columnVisibilityFeature,columnSizingFeature:ej.columnSizingFeature,rowExpandingFeature:eT,expandedRowModel:eS()});var eP=e.i(144625);function eR(e){if(!e)return!1;let t=(e.incomeStatement?.sections?.length??0)>0,l=(e.balanceSheet?.sections?.length??0)>0;return t||l}function ek(e){return"l0_is_notes"===e.sectionId&&"l1_is_notes_profit_ebitda"===e.id}e.s(["FinancialData",0,function({financialData:e,companyId:N,companyUrl:I,org
1Number:S,companyName:T,countryCode:E,ownershipStructure:R,financialSource:k,financialSourceConsolidated:A,financialSourceIndividual:D,isReportingMode:M,renderSectionHeader:$,renderStatementSource:L,activeFinancialFieldId:z,activeFinancialYear:q,onFinancialValueClick:O,isFinancialValueClickable:U,financialEstimates:V,similarCompanyIds:H,numberOfEmployees:W,employeeSource:B,linkedinUrl:Y,onClickCompany:G,initialStatementType:Z,statementType:J,onStatementTypeChange:X,initialCurrency:ee,arPreview:en,annualReportCitationAccess:er,annualReportPreviewScope:eo}){let e_,ec=(0,g.usePanelAnchor)(),ep=ec.current?.type==="annual-report"?ec.current.props.citation:null,eb=(0,s.useCallback)(e=>{ec.open("annual-report",{citation:e})},[ec]),ef=(V?.revenue?.length??0)>0,eh=(0,s.useMemo)(()=>!!e&&eR(e.consolidated),[e]),eg=(0,s.useMemo)(()=>!!e&&eR(e.individual),[e]),ex=eh||eg,ej=(0,s.useMemo)(()=>!!e&&((e.consolidated?.incomeStatement?.sections?.length??0)>0||(e.individual?.incomeStatement?.sections?.length??0)>0),[e]),ew=(0,s.useMemo)(()=>!!e&&((e.consolidated?.balanceSheet?.sections?.length??0)>0||(e.individual?.balanceSheet?.sections?.length??0)>0),[e]),eN=ej?"income":ew?"balance":ef?"estimates":"income",[eI,eS]=(0,s.useState)(null),eT=J??eI??Z??eN,[eA,eD]=(0,s.useState)(Z);Z!==eA&&(eD(Z),eS(null));let eM=(0,u.useCorrectionDialog)();(0,d.useTrackOnce)({eventName:"Company Profile - Financial Statements Viewed",properties:{company_id:N,organization_number:S,has_data:ex},dedupKey:`financial-statements:${N}`});let[e$,eL]=(0,s.useState)(()=>(0,p.getDefaultFinancialDataType)(e)),ez="consolidated"===e$,eq=(0,n.getActiveFinancialSource)({isGroup:ez,financialSource:k,financialSourceConsolidated:A,financialSourceIndividual:D}),eO=(0,n.getFinancialSourceForRegistryDisplay)({isGroup:ez,financialSource:k,financialSourceConsolidated:A,financialSourceIndividual:D,annualReportFallbackSource:(0,n.getAnnualReportFallbackFinancialSource)(R)}),eU=$?.("estimates"===eT?null:eO),eV=L?.("estimates"===eT?null:eO),eH=er??!!(en||(e_=(0,_.normalizeAnnualReportPreviewCountryCode)(E),(0,_.isAnnualReportPreviewReleasedCountry)(e_))),eW=ep?.fieldKey??null,eB=eW?.replace(/_\d{4}.*$/,"")??null,eY=eW?.match(/_(\d{4}.*)$/)?.[1]??null,[eK,eG]=(0,s.useState)({}),eZ=V?.revenue?.[0]?.rpeEstimateLcy!=null,[eQ,eJ]=(0,s.useState)(()=>ee||("estimates"!==eN||eZ?null:"USD")),eX=e?"consolidated"===e$?e.consolidated:e.individual:null,e0=eX?"income"===eT?eX.incomeStatement:eX.balanceSheet:null,e1=(0,s.useMemo)(()=>(0,eP.flattenTableData)(e0,eT),[e0,eT]),e2=(0,s.useMemo)(()=>e0?.years?[...e0.years].reverse():[],[e0]),e3=e0?.currency,e4=(0,s.useMemo)(()=>{var e;return e=e0?.financialSourceByYear,new Set(e2.filter(t=>(0,P.isAnnualReportFinancialSource)((0,P.normalizeFinancialSource)(e?e[t]:eq))))},[eq,e0?.financialSourceByYear,e2]),e5=eH&&e4.size>0,e9=(0,s.useMemo)(()=>{if(!e3)return!1;let e=e0?.years??[];return!e.some(e=>!(0,ev.isSupportedYear)(e))&&(0,ev.isSupportedCurrencyForStatement)(e3,e,eT)},[e3,e0,eT]),e6=V?.estimateLcyCurrency??null,e8=(0,s.useMemo)(()=>"estimates"===eT&&e6&&!eZ?(0,ev.getAllowedCurrencies)("USD").filter(e=>e!==e6):(0,ev.getAllowedCurrencies)(e3??e6),[e3,e6,eT,eZ]),e7=(0,s.useMemo)(()=>e9&&eQ&&e3?(0,ev.convertFinancialRows)(e1,e3,eQ,eT):e1,[e1,e9,eQ,e3,eT]),te=e9&&eQ?eQ:e3,tt=(0,s.useMemo)(()=>(0,eu.financialDisplayScaleFromValues)(e1.flatMap(e=>[e.values,...e.details?.map(e=>e.values)??[]])),[e1]),tl=(0,s.useMemo)(()=>{var e;let t,l;return e=tt.divisor,l=new Set((t=e7.filter(t=>{var l;return"category-header"===t.type||"section-header"===t.type||"margin"===t.type||"l0"===t.type||!("plug"===t.type&&ed(t.values,e))&&("l1"===t.type?!(0,eu.isFinancialL1RowFullyZero)({values:t.values,details:t.details??[],plug:t.plug},e):(l=t.values,!(0,eu.areFinancialValuesAllZeros)(l,e)))})).filter(e=>"category-header"!==e.type&&"section-header"!==e.type).map(e=>e.sectionId)),t.filter(e=>"section-header"!==e.type||l.has(e.sectionId))},[e7,tt.divisor]),ti=(0,s.useMemo)(()=>{let e=new Map;
1for(let t of e1)for(let l of(e.set(t.id,t.values),t.plug&&t.plugId&&e.set(t.plugId,t.plug),t.details??[]))e.set(l.id,l.values);return e},[e1]),ts=(0,s.useMemo)(()=>tl.flatMap(e=>{if("category-header"===e.type||"section-header"===e.type||"margin"===e.type)return[];let t=ti.get(e.id)??e.values,l=new Map;for(let i of Object.keys(t)){if(e4&&!e4.has(i))continue;let t=ei(e,i);if(!t)continue;let s=l.get(t)??[];s.push(i),l.set(t,s)}let i=[...l].map(([l,i])=>{let s=i.some(t=>e.valueSourceFieldIds?.[t]!=null||e.citationSourceFieldIds?.[t]!=null),a=e.details?.filter(e=>e.id!==l).map(e=>({id:e.id,label:e.label,values:es(ti.get(e.id)??e.values,i)}));return{...s?{allowCitationFieldAliases:!1}:{},...l!==e.id?{allowComponentDerivedMappings:!1}:{},id:l,label:e.label,values:es(t,i),...a&&a.length>0?{details:a}:{}}});if("l1"===e.type&&e.plug&&e.plugId){let t=ti.get(e.plugId)??e.plug,l=Object.keys(t).filter(e=>!e4||e4.has(e));l.length>0&&i.push({id:e.plugId,label:`Reconciliation - ${e.label}`,values:es(t,l)})}return i}),[e4,ti,tl]),{citationsByCell:ta}=(0,c.useCompanyArCitations)(e5?N:null,e5?S:null,T,ez,E,ts,eo??`${E??"unknown"}:ar-preview:${+!!en}`),tn=(0,s.useMemo)(()=>{if(!e5)return new Map;let e=function(e,t,l){let i=new Map(e);for(let e of t){let t=e.details??[];if(0!==t.length)for(let s of l){let l=(0,et.getAnnualReportCitationCellKey)(e.id,s);if(i.get(l))continue;let a=e.values?.[s];if(null==a)continue;let n=[],r=0,o=!1;for(let e of t){let t=i.get((0,et.getAnnualReportCitationCellKey)(e.id,s)),l=e.values?.[s];if(t&&(0,et.isSourceReferenceAnnualReportCitation)(t)&&"ixbrl_xhtml"===t.sourceFormat)n.push(t),r+=l??0;else if(null!=l){o=!0;break}}if(o||0===n.length||!function(e,t){let l=Math.max(.5,1e-6*Math.abs(e));return Math.abs(e-t)<=l}(a,r))continue;let _=function(e,t,l,i,s){if(0===e.length||1!==new Set(e.map(e=>e.sourceDocumentId)).size)return null;let a=new Set,n=e.flatMap(e=>e.sourceHighlights).filter(e=>{let t=`${e.referenceId}|${e.citationId}|${e.value??""}`;return!a.has(t)&&(a.add(t),!0)}),r=e[0];return{...r,fieldKey:(0,et.getAnnualReportCitationCellKey)(t,i),label:l??r.label,value:s,citationIds:[...new Set(e.flatMap(e=>e.citationIds))],referenceIds:[...new Set(e.flatMap(e=>e.referenceIds))],sourceReferenceAccessTokens:[...new Set(e.flatMap(e=>e.sourceReferenceAccessTokens??[]))],sourceHighlights:n}}(n,e.id,e.label,s,a);_&&i.set(l,_)}}return i}(ta,tl,e2);return(0,m.addPlugCitationFallbacks)({citationsByCell:e,citationValueRows:ts,companyName:T,countryCode:E,orgNumber:S,previewScope:eo??`${E??"unknown"}:ar-preview:${+!!en}`})},[ts,eo,en,e5,T,E,tl,S,ta,e2]),tr=(0,s.useMemo)(()=>(0,a.buildAnnualReportCitationPreviewSourceScopes)(tn),[tn]),[to,t_]=(0,s.useState)(null),tc=to&&e2.includes(to)?e2.indexOf(to):e2.length-1,tu=(0,s.useMemo)(()=>(0,l.createColumnHelper)(),[]),td=(0,s.useMemo)(()=>tu.columns([tu.accessor("label",{size:230,header:()=>(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("span",{children:[te,tt.label&&` in ${tt.label}`]}),e4.size>0&&(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)(v.Badge,{variant:"news",size:"sm",className:"w-fit",tabIndex:0,children:[(0,t.jsx)(f.Icon,{name:"File",className:"size-3"}),"Annual report"]})}),(0,t.jsx)(j.TooltipContent,{className:"max-w-48",children:"Click an underlined value to verify the figure against the published annual report."})]})]}),cell:({row:e})=>{let l=e.original,i="l0"===l.type,s="l1"===l.type,a="l2"===l.type,n="plug"===l.type,r="margin"===l.type,o=s&&em(l,tt.divisor),_=ek(l);return(0,t.jsxs)("div",{className:(0,x.cn)("flex items-center gap-2",(n||a||r)&&"ml-2 pl-4",(i||_)&&"text-foreground font-semibold"),children:[o&&(0,t.jsx)(f.Icon,{name:e.getIsExpanded()?"ChevronDown":"ChevronRight",className:"text-muted-foreground size-4 transition-transform duration-200"}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs italic",children:l.label}),(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(f.Icon,{name:"Info",className:"text-muted-foreground size-3"})})}),(0,t.jsx)(j.TooltipContent,{className:"max-w-xs",children:"Reconciliation items are used to normalise differences in mapping structures across countries and companies."})]})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:(0,x.cn)(a&&"text-muted-foreground text-xs",r&&"text-muted-foreground text-xs"),children:l.label})})]})}}),...e2.map(e=>tu.accessor(t=>t.values[e],{id:e,size:90,header:e.slice(0,4),cell:({row:l})=>{let i=l.original.values[e],s="l0"===l.original.type,a="l2"===l.original.type,n="plug"===l.original.type,r="margin"===l.original.type,o=ek(l.original);return(0,t.jsx)("span",{className:(0,x.cn)("tabular-nums",(s||o)&&"font-semibold",o&&"text-foreground",a&&"text-muted-foreground text-xs",n&&"text-muted-foreground text-xs italic",r&&"text-muted-foreground text-xs"),children:r?function(e){if(null==e||!isFinite(e))return"-";
1let t=Math.abs(e).toLocaleString("en-US",{minimumFractionDigits:1,maximumFractionDigits:1});return e<0?`(${t}%)`:`${t}%`}(i):(0,ea.formatValue)(i,tt.divisor)})}})),tu.display({id:"trend",header:()=>(0,t.jsx)("span",{className:"sr-only",children:"Trend"}),size:48,cell:({row:e})=>"l0"===e.original.type||"margin"===e.original.type?(0,t.jsx)(eF,{rowValues:e.original.values,years:e2}):null})]),[e2,tu,te,tt,e4]),tm=(0,s.useCallback)((e,t,l,i)=>{let s=(0,ea.formatYearHeader)(t);eM.openDialog((0,o.createFinancialCorrection)({companyId:N||"",companyUrl:I||void 0,companyName:T||void 0},window.location.href,{fieldName:el(e,t),fieldLabel:`${e.label} (${s})`,fieldType:"number",originalValue:null!=l?String(l):void 0,currency:e3??void 0,financialYear:t,statementType:"estimates"===eT?"income":eT,isGroup:"consolidated"===e$}),i)},[N,I,T,e3,eT,e$]),tp=(0,s.useCallback)((e,t,l)=>{O?.({fieldId:el(e,t),label:e.label,year:t,value:l,isGroup:"consolidated"===e$})},[e$,O]),tb=(0,s.useCallback)((e,t)=>U?.(el(e,t),t)??!1,[U]),tf=(0,i.useTable)({features:eE,data:tl,columns:td,state:{expanded:eK},onExpandedChange:eG,getRowCanExpand:e=>"l1"===e.original.type&&em(e.original,tt.divisor),getRowId:e=>e.id});return e&&ex||ef?(0,t.jsxs)("div",{className:"@container flex min-h-full flex-col gap-3",children:[eU,(0,t.jsxs)("div",{className:"flex h-auto w-full flex-col gap-2 @min-[620px]:min-h-7 @min-[620px]:flex-row @min-[620px]:items-center @min-[620px]:justify-between",children:[(0,t.jsxs)("h3",{className:"flex flex-wrap items-center gap-2 text-sm font-medium",children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:"Statements"}),eV]}),(0,t.jsx)(Q,{statementType:eT,dataType:e$,onDataTypeChange:eL,hasConsolidatedData:eh,hasIndividualData:eg,selectedCurrency:eQ,onCurrencyChange:eJ,sourceCurrency:e3??e6,companyCountryCode:E,allowedCurrencies:e8,canConvertCurrency:e9||"estimates"===eT&&e8.length>0,onDownload:e&&T?()=>(0,w.exportFinancialStatements)(e,T):void 0})]}),(0,t.jsxs)(C.Card,{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)(C.CardContent,{className:"flex min-h-0 flex-1 flex-col p-0",children:(0,t.jsxs)(F.Tabs,{value:eT,className:"gap-0",onValueChange:e=>{J?X?.(e):eS(e)},children:[(0,t.jsxs)(F.TabsList,{variant:"underline","aria-label":"Financial statement",className:"flex-wrap print:hidden",children:[ej&&(0,t.jsx)(F.TabsTrigger,{value:"income",children:"Income statement"}),ew&&(0,t.jsx)(F.TabsTrigger,{value:"balance",children:"Balance sheet"}),ef&&(0,t.jsxs)(F.TabsTrigger,{value:"estimates",children:[(0,t.jsx)(b.AiIcon,{})," Estimates"]})]}),(0,t.jsx)(F.TabsContent,{value:eT,className:(0,x.cn)("min-w-0","estimates"===eT&&"p-4"),children:"estimates"===eT?(0,t.jsx)(K,{numberOfEmployees:W??null,employeeSource:B??null,financialEstimates:V??null,currency:eQ??(eZ?e6:"USD"),similarCompanyIds:H??[],companyUrl:I,countryCode:E,linkedinUrl:Y,onClickCompany:G}):0===tl.length?(0,t.jsx)(y.SectionPlaceholder,{}):(0,t.jsx)(h.ScrollShadow,{orientation:"horizontal",children:(0,t.jsxs)("table",{className:"text-profile-table w-full caption-bottom",children:[(0,t.jsx)(eC,{headerGroups:tf.getHeaderGroups(),selectedYearIndex:tc,onYearSelect:t_,years:e2,statementType:eT,selectedCurrency:eQ,sourceCurrency:e3}),(0,t.jsx)(ey,{rows:tf.getRowModel().rows,statementType:eT,selectedYearIndex:tc,columnCount:td.length,years:e2,scale:tt,isReportingMode:M,activeFieldName:z??eB??eM.activeFieldName,activeFinancialYear:q??eY??eM.activeFinancialYear,onCellClick:tm,onValueClick:O?tp:void 0,isValueClickable:O?tb:void 0,annualReportCitationsByCell:e5?tn:void 0,annualReportCitationSourceScopesByCell:e5?tr:void 0,onViewAnnualReport:e5?eb:void 0})]})})})]})}),(0,t.jsx)(r.CorrectionDialog,{target:eM.target,anchorRect:eM.anchorRect,open:eM.open,onOpenChange:eM.onOpenChange})]})]}):(0,t.jsxs)("div",{className:"flex min-h-full flex-col gap-3",children:[eU,(0,t.jsxs)("h3",{className:"flex flex-wrap items-center gap-2 text-sm font-medium",children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:"Statements"}),eV]}),(0,t.jsx)(C.Card,{children:(0,t.jsx)(C.CardContent,{className:"flex flex-1 items-center justify-center",children:(0,t.jsx)(y.SectionPlaceholder,{})})})]})}],748176)},93564,303978,144625,297044,e=>{"use strict";let t=new Set(["l1_bs_asset_current_tax_assets"]);function l(e,t){let l=Object.values(e);return 0===l.length||l.every(e=>null===e||Math.round(10*Math.abs(e/t))/10==0)}function i(e,t){let l=Object.values(e);return 0===l.length||l.every(e=>null===e||1.5>=Math.abs(e/t))}e.s(["LEGACY_FINANCIAL_L1_IDS",0,t,"areFinancialPlugValuesSmall",0,i,"areFinancialValuesAllZeros",0,l,"financialDisplayScaleFromValues",0,function(e){var t;let l=0;for(let t of e)for(let e of Object.values(t))null!==e&&(l=Math.max(l,Math.abs(e)));return(t=l)<=999999?{divisor:1,label:""}:t<=0x3b9ac9ff?{divisor:1e3,label:"thousand"}:t<=0xe8d4a50fff?{divisor:1e6,label:"million"}:{divisor:1e9,label:"billion"}},"isFinancialL1RowFullyZero",0,function(e,t){return!(!l(e.values,t)||e.details.some(e=>!l(e.values,t)))&&(!e.plug||i(e.plug,t))}],303978);var s=e.i(584198);let a=new Map(s.PLUG_DEFINITIONS.map(e=>[e.id,e]));var n=e.i(453991);function r(e,l){try{if(!e)return[];let i=[],n="balance"===l;for(let l of(n&&i.push({id:"category-header-assets",type:"category-header",label:"ASSETS",values:{},sectionId:"category-header-assets",hasChildren:!1}),e.sections)){for(let e of("l0_is_notes"===l.id&&i.push({id:`${l.id}-section-header`,type:"section-header",label:l.label,description:"Items disclosed in the notes cannot al
1ways be reliably allocated to a by-function income statement. This is a recognised limitation of the presentation format.",linkHref:"https://www.ifrs.org/content/dam/ifrs/meetings/2017/september/iasb/pfs/ap21b-primary-financial-statements.pdf",linkLabel:"IASB Document",values:{},sectionId:l.id,hasChildren:!1}),l.rows)){if(t.has(e.id))continue;let n=e.plug?function(e,t){let l=`${e}_plug`;return a.get(l)?.id??s.PLUG_DEFINITIONS.find(l=>l.parentField===e&&l.l0Field===t)?.id??l}(e.id,l.id):void 0;i.push({id:e.id,type:"l1",label:e.label,values:e.values,citationSourceFieldIds:e.citationSourceFieldIds,valueSourceFieldIds:e.valueSourceFieldIds,sectionId:l.id,parentId:l.id,hasChildren:e.details.length>0||!!e.plug,details:e.details,plug:e.plug,plugId:n})}l.hideL0||(l.plug&&i.push({id:function(e){let t=`${e}_plug`;return a.get(t)?.id??s.PLUG_DEFINITIONS.find(t=>t.l0Field===e)?.id??t}(l.id),type:"plug",label:`Reconciliation - ${l.label}`,values:l.plug,sectionId:l.id,hasChildren:!1}),i.push({id:l.id,type:"l0",label:l.label,values:l.values,sectionId:l.id,hasChildren:l.rows.length>0||!!l.plug})),l.margin&&i.push({id:`${l.id}-margin`,type:"margin",label:l.margin.label,fieldId:l.margin.fieldId,values:l.margin.values,sectionId:l.id,hasChildren:!1}),n&&"l0_total_assets"===l.id&&i.push({id:"category-header-equity-liabilities",type:"category-header",label:"EQUITY AND LIABILITIES",values:{},sectionId:"category-header-equity-liabilities",hasChildren:!1})}return i}catch(e){return(0,n.logFrontendWarning)("Failed to flatten financial table data",{error:String(e),statementType:l}),[]}}function o(e,t=[]){let l=e.slice(0,4);return t.some(t=>t!==e&&t.slice(0,4)===l)?_(e):l}function _(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e;let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}e.s(["flattenTableData",0,r],144625),e.s(["formatFinancialPeriod",0,_,"formatValue",0,function(e,t=1){if(null==e)return"-";let l=e/t,i=t>1?Math.abs(l).toLocaleString("en-US",{maximumFractionDigits:1,minimumFractionDigits:1}):Math.abs(l).toLocaleString("en-US");return l<0?`(${i})`:i},"formatYearHeader",0,o],297044);let c={type:"pattern",pattern:"solid",fgColor:{argb:"FF1A1A2E"}},u={bold:!0,color:{argb:"FFFFFFFF"},size:11},d={type:"pattern",pattern:"solid",fgColor:{argb:"FFF3F4F6"}},m={bold:!0,size:11};function p(e,t,l,i){let s;if(!l||0===l.sections.length)return;let a=e.addWorksheet(t),n=[...l.years].reverse(),_=n.map(e=>o(e,n)),p=l.currency??"",b=["",...p?_.map(e=>`${e} (${p})`):_];(s=a.addRow(b)).eachCell(e=>{e.fill=c,e.font=u,e.alignment={vertical:"middle",horizontal:"left"}}),s.height=24,a.getColumn(1).width=40;for(let e=2;e<=b.length;e++)a.getColumn(e).width=16;for(let e of r(l,i)){if("category-header"===e.type||"section-header"===e.type){if(a.addRow([e.label]).eachCell(e=>{e.fill=d,e.font=m}),"section-header"===e.type&&e.description){let t=e.linkLabel?`${e.description} ${e.linkLabel}`:e.description,l=a.addRow([t]),i=l.getCell(1);e.linkHref&&e.linkLabel&&(i.value={text:t,hyperlink:e.linkHref}),l.eachCell(t=>{t.font={italic:!0,color:{argb:"FF6B7280"},underline:!!(e.linkHref&&e.linkLabel)}})}continue}let t="l1"===e.type?"  ":"l2"===e.type||"plug"===e.type?"    ":"",l=`${t}${e.label}`,i=n.map(t=>e.values[t]??null),s=a.addRow([l,...i]);for(let e=2;e<=s.cellCount;e++){let t=s.getCell(e);"number"==typeof t.value&&(t.numFmt="#,##0")}"l0"===e.type&&s.eachCell(e=>{e.font={bold:!0}}),"margin"===e.type&&s.eachCell(e=>{e.font={italic:!0}})}}async function b(t,l){var i;if(!t)return;let s=new(await e.A(585134)).default.Workbook,a=(e,t)=>{if(!e)return;let l=(e.incomeStatement?.sections?.length??0)>0,i=(e.balanceSheet?.sections?.length??0)>0;l&&p(s,`${t} Income Statement`,e.incomeStatement,"income"),i&&p(s,`${t} Balance Sheet`,e.balanceSheet,"balance")},n=(t.consolidated?.incomeStatement?.sections?.length??0)>0||(t.consolidated?.balanceSheet?.sections?.length??0)>0,r=(t.individual?.incomeStatement?.sections?.length??0)>0||(t.individual?.balanceSheet?.sections?.length??0)>0;if(n&&a(t.consolidated,r?"Consolidated":""),r&&a(t.individual,n?"Individual":""),0===s.worksheets.length)return;let o=l.replace(/[^a-zA-Z0-9_\- ]/g,"").trim();return i=`${o} - Financial Statements.xlsx`,s.xlsx.writeBuffer().then(e=>{let t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=URL.createObjectURL(t),l.download=i,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(l.href)})}
1e.s(["exportFinancialStatements",0,b],93564)},346486,e=>{"use strict";var t=e.i(271645);let l=(0,t.createContext)(!1),i=l.Provider;e.s(["PrintModeProvider",0,i,"usePrintMode",0,function(){return(0,t.useContext)(l)}])},327693,28056,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(954616),s=e.i(846696),a=e.i(528859),n=e.i(848921),r=e.i(928987),o=e.i(764231),_=e.i(922876);function c({target:e,anchorRect:u,open:d,onOpenChange:m}){let[p,b]=(0,l.useState)(""),[f,h]=(0,l.useState)(""),g=(0,i.useMutation)({mutationFn:async e=>{let t=await fetch("/api/data-corrections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),l=await t.json();if(!t.ok)throw Error(l&&"object"==typeof l&&"error"in l?String(l.error):"Failed to submit correction");if(!l||"object"!=typeof l||!("correction"in l))throw Error("Unexpected response shape from submit");return l},onSuccess:()=>{s.toast.success("Data report submitted",{description:"Thanks, your report has been recorded."})},onError:e=>{s.toast.error("Failed to submit correction",{description:e.message})}}),y=()=>{if(!e)return;let t=function(e,t){let l={companyId:e.companyId,companyUrl:e.companyUrl,companyName:e.companyName,fieldName:e.fieldName,fieldLabel:e.fieldLabel,fieldType:e.fieldType,originalValue:e.originalValue,currency:e.currency,correctedValue:t.correctedValue,reason:t.reason,sourceUrl:t.referenceUrl??e.sourceUrl,sourcePage:e.sourcePage};switch(e.sourcePage){case"financials":return{...l,financialYear:e.financialYear,statementType:e.statementType,isGroup:e.isGroup};case"investments":return{...l,entityId:e.entityId};case"ownership":case"beneficialOwners":return{...l,entityId:e.entityId,entityLabel:e.entityLabel};case"conversationTable":return{...l,fileId:e.fileId};case"conversationChat":return{...l,threadId:e.threadId,messageId:e.messageId};default:return l}}(e,{correctedValue:p.trim()||void 0,reason:f.trim()});g.mutate(t,{onSuccess:()=>{a.default.trackDataReportingSubmitted({companyId:e.companyId,fieldName:e.fieldName,sourcePage:e.sourcePage,hasCorrectValue:!!p.trim()}),x(),m(!1)}})},x=()=>{b(""),h(""),g.reset()},v=e=>{e||x(),m(e)};if(!e)return null;let C=g.isPending,F=u?u.top+u.height/2:80,j=u?u.left+u.width:80;return(0,t.jsxs)(o.Popover,{open:d,onOpenChange:v,children:[(0,t.jsx)(o.PopoverAnchor,{asChild:!0,children:(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none fixed z-50 size-px",style:{top:`${F}px`,left:`${j}px`}})}),(0,t.jsx)(o.PopoverContent,{side:"right",align:"start",sideOffset:8,collisionPadding:16,className:"w-90 p-3",onOpenAutoFocus:e=>e.preventDefault(),children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium",children:"Report data issue"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"reasonSource",className:"text-sm font-medium",children:"Reason / source"}),(0,t.jsx)(_.Textarea,{id:"reasonSource",autoFocus:!0,placeholder:"What's wrong? Where did you find the correct data?",value:f,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),y())},rows:3,className:"resize-none"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"correctedValue",className:"text-sm font-medium",children:"Correct value"}),(0,t.jsx)(_.Textarea,{id:"correctedValue",placeholder:"Enter the correct value...",value:p,onChange:e=>b(e.target.value),rows:3,className:"resize-none"})]}),(0,t.jsxs)(n.Row,{className:"justify-end gap-2",children:[(0,t.jsx)(r.Button,{variant:"outline",size:"sm",onClick:()=>v(!1),disabled:g.isPending,children:"Cancel"}),(0,t.jsx)(r.Button,{size:"sm",onClick:y,disabled:C,children:g.isPending?"Reporting...":"Report"})]})]})})]})}class u extends l.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("CorrectionDialog error boundary caught:",e,t)}render(){return this.state.hasError?null:this.props.children}}e.s(["CorrectionDialog",0,function(e){return(0,t.jsx)(u,{children:(0,t.jsx)(c,{...e},e.target?.fieldName)})}],327693),e.s(["createBeneficialOwnersCorrection",0,function(e,t,l){return{...e,...l,sourcePage:"beneficialOwners",sourceUrl:t}},"createConversationTableCorrection",0,function(e,t,l,i){return{...e,fieldName:i.fieldName??"other",fieldLabel:i.fieldLabel,fieldType:i.fieldType??"text",originalValue:i.originalValue,currency:i.currency,sourcePage:"conversationTable",sourceUrl:t,fileId:l}},"createFinancialCorrection",0,function(e,t,l){return{...e,...l,sourcePage:"financials",sourceUrl:t,fieldType:"number"}},"createInvestmentCorrection",0,function(e,t,l){return{...e,...l,sourcePage:"investments",sourceUrl:t}},"createOverviewCorrection",0,function(e,t,l){return{...e,...l,sourcePage:"companyOverview",sourceUrl:t}},"createOwnershipCorrection",0,function(e,t,l){return{...e,...l,sourcePage:"ownership",sourceUrl:t}}],28056)},986982,e=>{"use strict";var t=e.i(266027),l=e.i(271645),i=e.i(336045),s=e.i(149090),a=e.i(616308);let n={citationsByCell:{},citationYears:[],hasAnyCitations:!1};async function r({citationValueRows:e,companyId:t,companyName:l,countryCode:i,isGroup:s,orgNumber:n,previewScope:o,signal:_}){let c=await fetch("/api/ar-citations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_mode:"company",company_ids:t?[t]:void 0,org_numbers:n?[n]:void 0,source_org_number:n,country_code:i,company_name:l,is_group:s,citation_value_rows:e,preview_scope:o}),signal:_}),u=await c.json().catch(()=>null);if(!c.ok)throw Error((0,a.getArCitationsErrorMessage)(u));if(!(0,a.isAnnualReportSourcesApiResponse)(u)||!u.companyCitations)throw Error("Invalid company AR citation sources response");return u.companyCitations}e.s(["useCompanyArCitations",0,function(e,a,o,_,c,u=[],d){let m=e||a||"",{data:p=n,isLoading:b}=(0,t.useQuery)({queryKey:i.QUERY_KEYS.companyArCitations(e,a,o,c,d,_,u),queryFn:({signal:t})=>r({citationValueRows:u,companyId:e,companyName:o,countryCode:c,isGroup:_,orgNumber:a,previewScope:d,signal:t}),enabled:!!m,staleTime:18e5,gcTime:36e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}),f=(0,l.useMemo)(()=>new Map(Object.entries(p.citationsByCell)),[p.citationsByCell]),h=(0,l.useCallback)((e,t)=>f.get((0,s.getAnnualReportCitationCellKey)(e,t))??null,[f]),g=(0,l.useMemo)(()=>new Set(p.citationYears),[p.citationYears]);
1return{citationsByCell:f,getCitation:h,hasAnyCitations:p.hasAnyCitations,citationYears:g,isLoading:b}}])},873274,e=>{"use strict";var t=e.i(271645),l=e.i(528859);e.s(["useCorrectionDialog",0,function(){let[e,i]=(0,t.useState)(null),[s,a]=(0,t.useState)(null),[n,r]=(0,t.useState)(!1),o=(0,t.useCallback)((e,t)=>{i(e),a(t??null),r(!0),l.default.trackDataReportingDataPointClicked({companyId:e.companyId,fieldName:e.fieldName,sourcePage:e.sourcePage})},[]),_=(0,t.useCallback)(e=>{r(e),e||a(null)},[]),c=n?e?.fieldName??null:null,u=n&&e&&("investments"===e.sourcePage||"ownership"===e.sourcePage||"beneficialOwners"===e.sourcePage)?e.entityId:null,d=n&&e&&"financials"===e.sourcePage?e.financialYear:null;return{target:e,anchorRect:s,open:n,onOpenChange:_,openDialog:o,activeFieldName:c,activeEntityId:u,activeFinancialYear:d}}])},771721,149909,903413,e=>{"use strict";var t=e.i(266027),l=e.i(855549),i=e.i(681307);let s=i.z.object({companyId:i.z.string(),name:i.z.string().nullable(),url:i.z.string().nullable(),country:i.z.string().nullable(),companyDescription:i.z.string().nullable(),revenue:i.z.number().nullable(),rpe:i.z.number().nullable(),revenueYear:i.z.number().nullable(),numEmployees:i.z.number().nullable(),numEmployeesYear:i.z.number().nullable(),numEmployeesSource:i.z.string().nullable(),linkedinUrl:i.z.string().nullable().optional(),financialSource:i.z.string().nullable(),ebitdaMargin:i.z.number().nullable(),ebitMargin:i.z.number().nullable(),netIncomeMargin:i.z.number().nullable()}),a=i.z.object({companyId:i.z.string(),name:i.z.string().nullable(),url:i.z.string().nullable(),logoUrl:i.z.string().url().nullable(),country:i.z.string().nullable(),companyDescription:i.z.string().nullable(),companyDescriptionLong:i.z.string().nullable().optional(),numEmployees:i.z.number().nullable(),numEmployeesYear:i.z.number().nullable().optional(),revenue:i.z.number().nullable(),revenueCurrency:i.z.string().nullable(),revenueYear:i.z.number().nullable(),revenueSource:i.z.enum(["reported","estimated"]).nullable(),ebitda:i.z.number().nullable(),ebitdaCurrency:i.z.string().nullable(),ebitdaYear:i.z.number().nullable()}),n=i.z.object({target:i.z.object({name:i.z.string().nullable(),url:i.z.string().nullable(),companyDescription:i.z.string().nullable(),numberOfEmployees:i.z.number().nullable(),employeeSource:i.z.enum(["reported","linkedin"]).nullable(),revenueEstimate:i.z.number().nullable(),rpeEstimate:i.z.number().nullable(),estimateCurrency:i.z.string().nullable()}),similarCompanies:i.z.array(s)});var r=e.i(336045),o=e.i(110943);async function _(e,t,l){let i=await fetch("/api/similar-companies",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({companyIds:e,targetCurrency:t,peerEvidenceMethod:l})});if(!i.ok)throw Error("Failed to fetch similar companies");return s.array().parse(await i.json())}async function c(e){let t=await fetch("/api/similar-companies",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({companyUrl:e})});if(!t.ok)throw Error("Failed to fetch estimate modal data");return n.parse(await t.json())}async function u(e,t,l,i,s){let n=await fetch("/api/similar-companies",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"profile",companyId:e,companyUrl:t,countryCode:i,targetCurrency:s,limit:l})});if(!n.ok)throw Error("Failed to fetch similar companies");return a.array().parse(await n.json())}e.s(["useEstimateModalData",0,function(e){let{frAnnualReports:i,isLoading:s}=(0,o.useFeatureFlag)(),a=(0,l.getAnnualReportPreviewFlagScope)((0,l.getAnnualReportPreviewFlagsFromSessionUser)({frAnnualReports:i}));return(0,t.useQuery)({queryKey:[...r.QUERY_KEYS.estimateModalData(e),a],queryFn:()=>c(e),enabled:!s&&!!e,staleTime:3e5,gcTime:6e5,retry:!1,refetchOnWindowFocus:!1,refetchOnMount:!1})},"useProfileSimilarCompanies",0,function(e,i,s=20,a,n){let{frAnnualReports:_,isLoading:c}=(0,o.useFeatureFlag)(),d=(0,l.getAnnualReportPreviewFlagScope)((0,l.getAnnualReportPreviewFlagsFromSessionUser)({frAnnualReports:_}));return(0,t.useQuery)({queryKey:[...r.QUERY_KEYS.profileSimilarCompanies(e,i,s,a,n),d],queryFn:()=>u(e,i,s,a,n),enabled:!c&&!!(e&&n),staleTime:18e5,gcTime:36e5,retry:!1,refetchOnWindowFocus:!1,refetchOnMount:!1})},"useSimilarCompanies",0,function(e,i,s="legacy"){let{frAnnualReports:a,isLoading:n}=(0,o.useFeatureFlag)(),c=(0,l.getAnnualReportPreviewFlagScope)((0,l.getAnnualReportPreviewFlagsFromSessionUser)({frAnnualReports:a}));return(0,t.useQuery)({queryKey:[...r.QUERY_KEYS.similarCompanies(e,i,s),c],queryFn:()=>_(e,i,s),enabled:!n&&e.length>0,staleTime:3e5,gcTime:6e5,retry:!1,refetchOnWindowFocus:!1,refetchOnMount:!1})}],771721),e.s(["getEstimatePeerEvidenceMethod",0,function(e){return(e?.employeeSource==="reported"||e?.employeeSource==="linkedin")&&null!=e.adjustedTargetEmployees&&e.adjustedTargetEmployees>0?"reported_same_year":"legacy"}],149909),e.s(["pickRevenue",0,function(e,t){switch(t){case"USD":return e.revenueEstimateUsd;case"EUR":return e.revenueEstimateEur;case"GBP":return e.revenueEstimateGbp;default:return e.revenueEstimateLcy}},"pickRpe",0,function(e,t){switch(t){case"USD":return e.rpeEstimateUsd;case"EUR":return e.rpeEstimateEur;case"GBP":return e.rpeEstimateGbp;default:return e.rpeEstimateLcy}}],903413)},29507,556883,736938,e=>{"use strict";function t(e,t){let l=Math.max(.01,1e-9*Math.abs(e));return Math.abs(e-t)<=l}e.s(["formulaValuesMatch",0,t],556883);var l=e.i(584198);let i={l0_gross_profit:["l1_is_profit_gross_profit","l2_is_profit_gross_profit"],l1_is_profit_gross_profit:["l2_is_profit_gross_profit","l0_gross_profit"],l2_is_profit_gross_profit:["l1_is_profit_gross_profit","l0_gross_profit"],l0_ebitda:["l1_is_profit_ebitda","l2_is_profit_ebitda"],l1_is_profit_ebitda:["l2_is_profit_ebitda","l0_ebitda"],l2_is_profit_ebitda:["l1_is_profit_ebitda","l0_ebitda"],l0_ebit:["l1_is_profit_ebit","l2_is_profit_ebit"],l1_is_profit_ebit:["l2_is_profit_ebit","l0_ebit"],l2_is_profit_ebit:["l1_is_profit_ebit","l0_ebit"],l0_results_after_financial_items:["l1_is_profit_result_after_financial_items","l2_is_profit_result_after_financial_items"],l1_is_profit_result_after_financial_items:["l2_is_profit_result_after_financial_items","l0_results_after_financial_items"],l2_is_profit_result_after_financial_items:["l1_is_profit_result_after_financial_items","l0_results_after_financial_items"],l0_ebt:["l1_is_profit_ebt","l2_is_profit_ebt"],l1_is_profit_ebt:["l2_is_profit_ebt","l0_ebt"],l2_is_profit_ebt:["l1_is_profit_ebt","l0_ebt"],l0_net_income:["l1_is_profit_net_income","l2_is_profit_net_income"],l1_is_profit_net_income:["l2_is_profit_net_income","l0_net_income"],l2_is_profit_net_income:["l1_is_profit_net_income","l0_net_income"],l0_total_fixed_assets:["l1_bs_sum_total_fixed_assets","l2_bs_sum_total_fixed_assets"],l1_bs_sum_total_fixed_assets:["l2_bs_sum_total_fixed_assets","l0_total_fixed_assets"],l2_bs_sum_total_fixed_assets:["l1_bs_sum_total_fixed_assets","l0_total_fixed_assets"],l0_total_current_assets:["l1_bs_sum_total_current_assets","l2_bs_sum_total_current_assets"],l1_bs_sum_total_current_assets:["l2_bs_sum_total_current_assets","l0_total_current_assets"],l2_bs_sum_total_current_assets:["l1_bs_sum_total_current_assets","l0_total_current_assets"],l0_total_equity:["l1_bs_sum_total_equity","l2_bs_sum_total_equity"],l1_bs_sum_total_equity:["l2_bs_sum_total_equity","l0_total_equity"],l2_bs_sum_total_equity:["l1_bs_sum_total_equity","l0_total_equity"],l0_total_non_current_liabilities:["l1_bs_sum_total_non_current_liabilities","l2_bs_sum_total_non_current_liabilities"],l1_bs_sum_total_non_current_liabilities:["l2_bs_sum_total_non_current_liabilities","l0_total_non_current_liabilities"],l2_bs_sum_total_non_current_liabilities:["l1_bs_sum_total_non_current_liabilities","l0_total_non_current_liabilities"],l0_total_current_liabilities:["l1_bs_sum_total_current_liabilities","l2_bs_sum_total_current_liabilities"],l1_bs_sum_total_current_liabilities:["l2_bs_sum_total_current_liabilities","l0_total_current_liabilities"],l2_bs_sum_total_current_liabilities:["l1_bs_sum_total_current_liabilities","l0_total_current_liabilities"],l0_total_liabilities:["l1_bs_sum_total_liabilities","l2_bs_sum_total_liabilities"],l1_bs_sum_total_liabilities:["l2_bs_sum_total_liabilities","l0_total_liabilities"],l2_bs_sum_total_liabilities:["l1_bs_sum_total_liabilities","l0_total_liabilities"],l0_total_equity_and_liabilities:["l1_bs_sum_total_liabilities_and_equity","l2_bs_sum_total_equity_and_liabilities"],l1_bs_sum_total_liabilities_and_equity:["l2_bs_sum_total_equity_and_liabilities","l0_total_equity_and_liabilities"],l2_bs_sum_total_equity_and_liabilities:["l1_bs_sum_total_liabilities_and_equity","l0_total_equity_and_liabilities"],l1_bs_asset_cash_and_cash_equivalents:["l2_bs_asset_cash_and_cash_equivalents"],l2_bs_asset_cash_and_cash_equivalents:["l1_bs_asset_cash_and_cash_equivalents"],l1_bs_liability_current_interest_bearing_liabilities:["l1_bs_sum_total_current_interest_bearing_liabilities","l2_bs_sum_total_current_interest_bearing_liabilities"],l1_bs_sum_total_current_interest_bearing_liabilities:["l2_bs_sum_total_current_interest_bearing_liabilities","l1_bs_liability_current_interest_bearing_liabilities"],l2_bs_sum_total_current_interest_bearing_liabilities:["l1_bs_sum_total_current_interest_bearing_liabilities","l1_bs_liability_current_interest_bearing_liabilities"],l1_bs_liability_non_current_interest_bearing_liabilities:["l1_bs_sum_total_non_current_interest_bearing_liabilities","l2_bs_sum_total_non_current_interest_bearing_liabilities"],l1_bs_sum_total_non_current_interest_bearing_liabilities:["l2_bs_sum_total_non_current_interest_bearing_liabilities","l1_bs_liability_non_current_interest_bearing_liabilities"],l2_bs_sum_total_non_current_interest_bearing_liabilities:["l1_bs_sum_total_non_current_interest_bearing_liabilities","l1_bs_liability_non_current_interest_bearing_liabilities"],l1_is_cost_taxes:["l1_is_cost_tax_expense"],l1_is_cost_tax_expense:["l
11_is_cost_taxes"],l1_is_cost_personnel_expenses:["l1_is_sum_total_personnel_expenses"],l1_is_cost_depreciation_and_amortisation:["l1_is_sum_total_depreciation_and_amortisation"],l1_is_cost_financial_expenses:["l1_is_sum_total_financial_expenses"],l1_is_revenue_financial_income:["l1_is_sum_total_financial_income","l2_is_revenue_financial_income"],l1_is_cost_tax_appropriations:["l1_is_sum_total_tax_appropriations"],l1_is_notes_cost_depreciation_and_amortisation:["l2_is_notes_sum_total_depreciation_and_amortisation","l2_is_notes_cost_depreciation","l2_is_notes_cost_amortisation","l1_is_cost_depreciation_and_amortisation","l1_is_sum_total_depreciation_and_amortisation"],l2_is_notes_sum_total_depreciation_and_amortisation:["l1_is_notes_cost_depreciation_and_amortisation","l1_is_cost_depreciation_and_amortisation","l1_is_sum_total_depreciation_and_amortisation"],l2_is_notes_cost_depreciation:["l2_is_cost_depreciation"],l2_is_cost_depreciation:["l2_is_notes_cost_depreciation"],l2_is_notes_cost_amortisation:["l2_is_cost_amortisation"],l2_is_cost_amortisation:["l2_is_notes_cost_amortisation"],l1_bs_equity_untaxed_reserves:["l1_bs_sum_untaxed_reserves"],l1_bs_equity_provisions:["l1_bs_sum_provisions"],l0_total_assets:["l1_bs_sum_total_assets","l2_bs_sum_total_assets"],l1_bs_sum_total_assets:["l2_bs_sum_total_assets","l0_total_assets"],l2_bs_sum_total_assets:["l1_bs_sum_total_assets","l0_total_assets"]};function s(e){return[...new Set(e.filter(e=>e.length>0))]}function a(e){return e.startsWith("l0_")||e.startsWith("l1_")||e.startsWith("l2_")?e:`l2_${e}`}function n(e,t,l){let i=a(t),n=s(l.map(a)).filter(e=>e!==i);if(0===n.length)return;let r=e.get(i)??[],o=n.join("|");r.some(e=>e.join("|")===o)||(r.push(n),e.set(i,r))}!function(){let e=new Map,t=new Map(l.L0_DEFINITIONS.map(e=>[e.l0Field,e])),i=new Set;for(let t of l.L1_DEFINITIONS){n(e,t.l1Field,t.l2Children);let i=t.coalesceParent;i&&t.combineCoalesceParentWithChildrenWhenFlag&&(n(e,t.l1Field,[i]),n(e,t.l1Field,[i,...t.l2Children])),i&&(0,l.isL1CoalesceParentActive)(t)&&n(e,i,t.l2Children)}for(let s of l.PLUG_DEFINITIONS){let l=[s.childFields];for(let t of(s.fallbackChildFields?.length&&(l.push(s.fallbackChildFields),s.combinePrimaryAndFallbackWhenFlag&&l.push([...s.childFields,...s.fallbackChildFields])),l))n(e,s.parentField,t);let a=t.get(s.l0Field);if(a?.coalesceParent===s.parentField||s.parentField===s.l0Field){for(let t of l)n(e,s.l0Field,t);i.add(s.l0Field)}}for(let t of l.L0_DEFINITIONS)i.has(t.l0Field)||n(e,t.l0Field,[...t.l1Children,...t.l0FallbackChildren??[]]);Object.fromEntries(e)}();let r=new Map(l.PLUG_DEFINITIONS.map(e=>[e.id,e])),o=[{fieldId:"l0_ebit",sign:1},{fieldId:"l1_is_notes_cost_depreciation_and_amortisation",sign:-1}],_={l0_ebitda:[{fieldId:"l0_ebit",sign:1},{fieldId:"l1_is_cost_depreciation_and_amortisation",sign:-1}],l0_results_after_financial_items:[{fieldId:"l0_ebit",sign:1},{fieldId:"l1_is_revenue_financial_income",sign:1},{fieldId:"l1_is_cost_financial_expenses",sign:1},{fieldId:"l1_is_cost_impairment_and_other_charges_on_financial_asset",sign:1},{fieldId:"l0_net_financials_plug",sign:1}]},c={l0_total_revenue:["GB"]},u=function(){let e={};for(let t of l.L0_DEFINITIONS){let l=c[t.l0Field];l&&(e[t.l0Field]={directFieldId:t.coalesceParent,minimumTerms:1,supportedCountries:l,termGroups:[t.l1Children.map(e=>({fieldId:e,sign:1}))]})}return e}();function d(e,t,l){if(!t||!l||l===t)return;let i=e.get(t)??[];i.includes(l)||i.push(l),e.set(t,i)}let m=function(){let e=new Map;for(let t of l.L1_DEFINITIONS){let i=t.coalesceParent;i&&(0,l.isL1CoalesceParentActive)(t)&&(d(e,t.l1Field,i),d(e,i,t.l1Field))}for(let t of l.L0_DEFINITIONS)d(e,t.l0Field,t.coalesceParent),d(e,t.coalesceParent??"",t.l0Field);return Object.fromEntries(e)}();function p(e){return s([e,...i[e]??[],...m[e]??[]])}function b(e){return r.get(e)}function f(e){let t=b(e);if(!t)return[];let l=[t.childFields];return t.fallbackChildFields?.length&&(l.push(t.fallbackChildFields),t.combinePrimaryAndFallbackWhenFlag&&l.push([...t.childFields,...t.fallbackChildFields])),l.map(e=>[{fieldId:t.parentField,sign:1}
1,...e.map(e=>({fieldId:e,sign:-1}))])}function h(e){return g(e)[0]??[]}function g(e){if("l1_is_notes_profit_ebitda"===e)return[o];let t=_[e];if(t)return[t];let l=u[e];return l?l.termGroups:f(e)}function y(e){return u[e]?.minimumTerms??2}function x(e,t){let l=u[e]?.supportedCountries;return!l||l.includes((t??"").trim().toUpperCase())}e.s(["getCitationFieldCandidates",0,p,"getCitationFormulaMinimumTerms",0,y,"getCitationFormulaTermGroups",0,g,"getCitationFormulaTerms",0,h,"getPlugDefinition",0,b,"getPlugFormulaTermGroups",0,f,"isCitationFormulaSupportedForCountry",0,x],736938);var v=e.i(149090);function C(e){return[...new Set(e.filter(e=>"string"==typeof e&&e.length>0))]}function F(e){return"number"==typeof e&&Number.isFinite(e)}function j(e,t,l){return function(e,t){for(let l of p(t)){let t=e.get(l);if(t)return t}}(e,t)?.values[l]}e.s(["addPlugCitationFallbacks",0,function({citationsByCell:e,citationValueRows:l,companyName:i,countryCode:s,orgNumber:a,previewScope:n}){let r=function(e){let t=new Map;for(let l of e)for(let e of(t.set(l.id,l),l.details??[]))t.set(e.id,e);return t}(l),o=new Map(e);for(let e of l)if(0!==h(e.id).length)for(let _ of Object.keys(e.values)){let c=(0,v.getAnnualReportCitationCellKey)(e.id,_);o.get(c)||o.set(c,function({citationsByCell:e,companyName:l,countryCode:i,orgNumber:s,plugRow:a,previewScope:n,rowsById:r,year:o}){let _=b(a.id),c=g(a.id),u=a.values[o];if(!x(a.id,i)||0===c.length||!F(u))return null;for(let m of c){let c=[],b=[],f=0,h=!1;for(let t of m){var d;let l=_&&t.fieldId===_.parentField?_.l0Field:void 0,i=j(r,t.fieldId,o),s=l?j(r,l,o):null,a=F(i)?i:s;if(!F(a)||!(Math.abs(a)>1e-9))continue;let n=t.sign*a;f+=n;let u=(d=t.fieldId,C([...p(d),...l?p(l):[]])),m=function({citationsByCell:e,fieldCandidates:t,year:l}){for(let i of t){let t=e.get((0,v.getAnnualReportCitationCellKey)(i,l));if(t&&(0,v.isSourceReferenceAnnualReportCitation)(t))return t}return null}({citationsByCell:e,fieldCandidates:u,year:o}),g=m?function({citation:e,fallbackField:t,signedValue:l,sign:i}){let s=e.formula?.terms&&e.formula.terms.length>0?e.formula.terms.map(e=>({...e,value:i*e.value})):e.citationIds.length>0?[{citationId:e.citationIds[0],field:e.sourceHighlights[0]?.field??t,value:l}]:[];if(0===s.length)return null;let a=new Map(s.map(e=>[e.citationId,e.value]));return{citation:e,formulaTerms:s,sourceHighlights:e.sourceHighlights.map(e=>({...e,value:a.get(e.citationId)??(F(e.value)?i*e.value:l)}))}}({citation:m,fallbackField:u[0]??t.fieldId,signedValue:n,sign:t.sign}):null;if(g){b.push(g),c.push(...g.formulaTerms);continue}h=!0}if(h||0===b.length||function(e){let t=new Set;for(let l of e){let e=C(l.citation.citationIds),i=e.length>0?e:C(l.citation.referenceIds);if(i.some(e=>t.has(e)))return!0;for(let e of i)t.add(e)}return!1}(b)||!t(u,f))continue;let g=function(e,l,i=2){let s,a=(s=new Set,e.filter(e=>{let t=`${e.citationId}|${e.field}|${e.value}`;return!s.has(t)&&(s.add(t),!0)}));if(a.length<i)return null;let n=a.reduce((e,t)=>e+t.value,0);return t(l,n)?{kind:"sum",result:n,terms:a}:null}(c,u,y(a.id));if(!g)continue;let x=C(b.map(e=>e.citation.sourceDocumentId)),w=x[0];if(1!==x.length||!w)continue;let N=b[0].citation,I=function(e){let t=new Set;return e.filter(e=>{let l=`${e.citationId}|${e.referenceId}|${e.field??""}|${e.value??""}`;return!t.has(l)&&(t.add(l),!0)})}(b.flatMap(e=>e.sourceHighlights));if(0!==I.length)return{citation_approach:"source_reference",citationIds:C(I.map(e=>e.citationId)),companyName:l??"Unknown Company",country:N.country||i?.toUpperCase()||"GB",fieldKey:`${a.id}_${o}`,formula:g,label:a.label??a.id,orgNumber:s,previewScope:n,referenceIds:C(I.map(e=>e.referenceId)),sourceDocumentId:w,sourceFormat:N.sourceFormat,sourceHighlights:I,sourceReferenceAccessTokens:C(b.flatMap(e=>e.citation.sourceReferenceAccessTokens??[])),value:u}}return null}({citationsByCell:o,citationValueRows:l,companyName:i,countryCode:s,orgNumber:a,plugRow:e,previewScope:n,rowsById:r,year:_}))}return o}],29507)},584198,e=>{"use strict";let t=[{l1Field:"l1_is_revenue_revenue",type:"direct",l2Children:["is_revenue_revenue"]},{l1Field:"l1_is_revenue_other_operating_income",type:"sum",l2Children:["is_revenue_other_operating_income","is_revenue_capitalised_research_and_development_costs","is_revenue_change_in_inventory"]},{l1Field:"l1_is_revenue_other_income",type:"direct",l2Children:["is_revenue_other_income"]},{l1Field:"l1_is_sum_total_operating_income",type:"direct",l2Children:["is_sum_total_operating_income"]},{l1Field:"l1_is_revenue_financial_income",type:"coalesce_sum",l2Children:["is_revenue_interest_income","is_revenue_interest_income_from_group_companies","is_revenue_interest_income_from_associated_companies_and_joint_ventures","is_revenue_results_from_group_companies","is_revenue_results_from_associated_companies_and_joint_ventures","is_revenue_results_from_other_financial_assets","is_revenue_interest_income_from_financial_institutions"],coalesceParent:"l1_is_sum_total_financial_income"},{l1Field:"l1_is_sum_total_financial_income",type:"direct",l2Children:["is_sum_total_financial_income"]},{l1Field:"l1_is_revenue_extraordinary_income",type:"direct",l2Children:["is_revenue_extraordinary_income"]},{l1Field:"l1_is_cost_cost_of_goods_sold",type:"coalesce_sum",l2Children:["is_cost_raw_materials_and_consumables","is_cost_goods_for_resale","is_cost_subcontractors","is_cost_production_overheads","is_cost_other_gross_costs","is_cost_depreciation_and_amortisation_gross_cost","is_cost_change_in_inventory"],coalesceParent:"is_cost_cost_of_goods_sold",coalesceParentNullIfZero:!0,combineCoalesceParentWithChildrenWhenFlag:"is_cogs_direct_additive"},{l1Field:"l1_is_cost_cost_of_sales",type:"direct",l2Children:["is_cost_hosting_and_software_costs"]},{l1Field:"l1_is_sum_total_gross_costs",type:"direct",l2Children:["is_sum_total_gross_costs"]},{l1Field:"l1_is_cost_selling_general_and_administrative_expenses",type:"sum",l2Children:["is_cost_sales_and_marketing_expenses","is_cost_advertising_and_promotion","is_cost_sales_commissions","is_cost_distribution_expenses","is_cost_travel_and_entertainment","is_cost_admin_expenses","is_cost_rent_and_property_costs","is_cost_utilities","is_cost_office_supplies","is_cost_auditor_fees"]},{l1Field:"l1_is_cost_it_and_software_costs",type:"direct",l2Children:["is_cost_it_and_software_costs"]},{l1Field:"l1_is_cost_research_and_development",type:"sum",l2Children:["is_cost_research_and_development_expenses","is_cost_capitalised_research_and_development_costs"]},{l1Field:"l1_is_cost_other_operating_costs",type:"coalesce_sum",l2Children:["is_cost_other_operating_expenses"],coalesceParent:"l1_is_sum_total_other_operating_expenses"},{l1Field:"l1_is_sum_total_other_operating_expenses",type:"direct",l2Children:["is_sum_total_other_operating_expenses"]},{l1Field:"l1_is_cost_personnel_expenses",type:"coalesce_sum",l2Children:["is_cost_wages_and_salaries","is_cost_directors_salaries","is_cost_employee_salaries","is_cost_social_security_costs","is_cost_pension_costs","is_cost_other_employee_costs"],coalesceParent:"l1_is_sum_total_personnel_expenses"},{l1Field:"l1_is_notes_revenue_other_income",type:"sum",l2Children:["is_notes_revenue_other_income","is_notes_revenue_foreign_exchange_gains_or_losses"]},{l1Field:"l1_is_notes_cost_personnel_expenses",type:"coalesce_sum",l2Children:["is_notes_cost_wages_and_salaries","is_notes_cost_directors_salaries","is_notes_cost_employee_salaries","is_notes_cost_social_security_costs","is_notes_cost_pension_costs","is_notes_cost_other_employee_costs"],coalesceParent:"is_notes_sum_total_personnel_expenses"},{l1Field:"l1_is_sum_auditor_fees",type:"direct",l2Children:["is_sum_auditor_fees"]},{l1Field:"l1_is_notes_cost_other_operating_costs",type:"sum",l2Children:["is_notes_sum_auditor_fees","is_notes_cost_other_operating_lease_rentals"]},{l1Field:"l1_is_sum_total_operating_costs",type:"direct",l2Children:["is_sum_total_operating_expenses"]},{l1Field:"l1_is_cost_depreciation_and_amortisation",type:"coalesce_sum",l2Children:["is_cost_depreciation","is_cost_amortisation","is_cost_impairment_and_other_charges_on_tangible_and_intangible_assets","is_cost_impairment_financial_assets_as_da"],coalesceParent:"is_sum_total_depreciation_and_amortisation",coalesceSourceDetails:["ANNUAL_REPORT_DE","FMP"]},{l1Field:"l1_is_sum_total_depreciation_and_amortisation",type:"direct",l2Children:["is_sum_total_depreciation_and_amortisation"]},{l1Field:"l1_is_notes_cost_depreciation_and_amortisation",type:"coalesce_sum",l2Children:["is_notes_cost_depreciation","is_notes_cost_amortisation","is_notes_cost_impairment_and_other_charges_on_tangible_and_intangible_assets","is_notes_cost_profit_or_loss_on_disposals_of_fixed_assets"],coalesceParent:"is_notes_sum_total_depreciation_and_amortisation"},{l1Field:"l1_is_cost_financial_expenses",type:"coalesce_sum",l2Children:["is_cost_financial_expenses","is_cost_interest_expenses_from_financial_institutions","is_cost_lease_interest_expenses","is_cost_other_interest_expenses","is_cost_interest_expense","is_cost_interest_expense_to_group_companies","is_revenue_foreign_exchange_gains_or_losses"],coalesceParent:"l1_is_sum_total_financial_expenses"},{l1Field:"l1_is_cost_impairment_and_other_charges_on_financial_asset",type:"direct",l2Children:["is_cost_impairment_and_other_charges_on_financial_asset"]},{l1Field:"l1_is_sum_total_financial_expenses",type:"direct",l2Children:["is_sum_total_financial_expenses"]},{l1Field:"l1_is_sum_net_financials",type:"direct",l2Children:["is_sum_net_financials"]},{l1Field:"l1_is_cost_extraordinary_costs",type:"direct",l2Children:["is_cost_extraordinary_costs"]},{l1Field:"l1_is_cost_other_extraordinary_items",type:"sum",l2Children:["is_cost_extraordinary_other_items","is_cost_items_affecting_comparability"]},{l1Field:"l1_is_sum_total_extraordinary_items",type:"direct",l2Children:["is_sum_total_extraordinary_items"]},{l1Field:"l1_is_cost_tax_appropriations",type:"coalesce_sum",l2Children:["is_cost_change_in_excess_depreciation","is_cost_change_in_untaxed_reserves","is_cost_group_contributions_made","is_revenue_group_contributions_re
1ceived","is_revenue_other_tax_appropriations","is_cost_tax_appropriations"],coalesceParent:"is_sum_total_tax_appropriations"},{l1Field:"l1_is_sum_total_tax_appropriations",type:"direct",l2Children:["is_sum_total_tax_appropriations"]},{l1Field:"l1_is_cost_taxes",type:"sum",l2Children:["is_cost_tax_expense","is_cost_tax_appropriations_below_ebt"]},{l1Field:"l1_is_profit_gross_profit",type:"direct",l2Children:["is_profit_gross_profit"]},{l1Field:"l1_is_profit_ebitda",type:"direct",l2Children:["is_profit_ebitda"]},{l1Field:"l1_is_profit_ebit",type:"direct",l2Children:["is_profit_ebit"]},{l1Field:"l1_is_profit_result_after_financial_items",type:"direct",l2Children:["is_profit_result_after_financial_items"]},{l1Field:"l1_is_profit_ebt",type:"direct",l2Children:["is_profit_ebt"]},{l1Field:"l1_is_profit_net_income",type:"direct",l2Children:["is_profit_net_income"]},{l1Field:"l1_bs_asset_property_plant_and_equipment",type:"sum",l2Children:["bs_asset_land_and_buildings","bs_asset_plant_and_machinery","bs_asset_machines_and_equipment"]},{l1Field:"l1_bs_asset_other_tangible_assets",type:"sum",l2Children:["bs_asset_other_tangible_assets","bs_asset_investment_properties"]},{l1Field:"l1_bs_sum_total_tangible_assets",type:"direct",l2Children:["bs_sum_total_tangible_assets"]},{l1Field:"l1_bs_asset_intangible_assets",type:"coalesce_sum",l2Children:["bs_asset_goodwill","bs_asset_capitalised_expenses_for_research_and_development","bs_asset_patents","bs_asset_other_intangible_assets"],coalesceParent:"l1_bs_sum_intangible_assets"},{l1Field:"l1_bs_sum_intangible_assets",type:"direct",l2Children:["bs_sum_intangible_assets"]},{l1Field:"l1_bs_asset_non_current_financial_assets",type:"coalesce_sum",l2Children:["bs_asset_shares_in_group_companies","bs_asset_non_current_investments","bs_asset_non_current_loans_to_group","bs_asset_non_current_receivables_from_associated_companies_and_joint_ventures","bs_asset_other_non_current_loans","bs_asset_other_financial_assets","bs_asset_deferred_tax_assets","bs_asset_deferred_tax_assets_financial_asset"],coalesceParent:"l1_bs_sum_non_current_financial_assets"},{l1Field:"l1_bs_sum_non_current_financial_assets",type:"direct",l2Children:["bs_sum_non_current_financial_assets"]},{l1Field:"l1_bs_asset_other_non_current_assets",type:"sum",l2Children:["bs_asset_loans_to_co_owners","bs_asset_other_non_current_assets"]},{l1Field:"l1_bs_sum_total_fixed_assets",type:"direct",l2Children:["bs_sum_total_fixed_assets"]},{l1Field:"l1_bs_asset_inventory",type:"coalesce_sum",l2Children:["bs_asset_raw_materials","bs_asset_work_in_progress","bs_asset_finished_goods","bs_asset_other_inventories","bs_asset_customer_pre_payments_inventory","bs_asset_advances_from_customer","bs_asset_advances_to_suppliers"],coalesceParent:"l1_bs_sum_inventories"},{l1Field:"l1_bs_sum_inventories",type:"direct",l2Children:["bs_sum_total_inventories"]},{l1Field:"l1_bs_asset_accounts_receivable",type:"coalesce_sum",l2Children:["bs_asset_current_accounts_receivables","bs_asset_current_group_receivables","bs_asset_current_receivables_from_associated_companies_and_joint_ventures","bs_asset_other_current_receivables"],coalesceParent:"l1_bs_sum_total_receivables"},{l1Field:"l1_bs_sum_total_receivables",type:"direct",l2Children:["bs_sum_total_receivables"]},{l1Field:"l1_bs_asset_current_financial_assets",type:"direct",l2Children:["bs_asset_current_financial_assets"]},{l1Field:"l1_bs_asset_other_current_assets",type:"sum",l2Children:["bs_asset_current_tax_assets","bs_asset_other_current_assets","bs_asset_prepaid_expenses_and_accrued_income"]},{l1Field:"l1_bs_sum_total_current_assets",type:"direct",l2Children:["bs_sum_total_current_assets"]},{l1Field:"l1_bs_asset_cash_and_cash_equivalents",type:"direct",l2Children:["bs_asset_cash_and_cash_equivalents"]},{l1Field:"l1_bs_asset_other_assets",type:"direct",l2Children:["bs_asset_other_assets"]},{l1Field:"l1_bs_sum_total_assets",type:"direct",l2Children:["bs_sum_total_assets"]},{l1Field:"l1_bs_equity_share_capital",type:"direct",l2Children:["bs_equity_share_capital"]},{l1Field:"l1_bs_equity_share_premium_and_shareholder_contributions",type:"sum",l2Children:["bs_equity_share_premium","bs_equity_shareholder_contribution"]},{l1Field:"l1_bs_equity_retained_earnings",type:"sum",l2Children:["bs_equity_retained_earnings","bs_equity_year_end_results"]},{l1Field:"l1_bs_equity_other_equity",type:"sum",l2Children:["bs_equity_divi
1dends_payable","bs_equity_minority_interest","bs_equity_preferred_equity","bs_equity_other_equity","bs_equity_treasury_shares","bs_equity_other_reserves","bs_equity_development_expenditure_fund"]},{l1Field:"l1_bs_sum_total_equity",type:"direct",l2Children:["bs_sum_total_equity"]},{l1Field:"l1_bs_equity_untaxed_reserves",type:"coalesce_sum",l2Children:["bs_equity_untaxed_reserves","bs_equity_excess_and_accelerated_depreciation","bs_equity_other_untaxed_reserves"],coalesceParent:"bs_equity_sum_untaxed_reserves"},{l1Field:"l1_bs_sum_untaxed_reserves",type:"direct",l2Children:["bs_equity_sum_untaxed_reserves"]},{l1Field:"l1_bs_equity_provisions",type:"coalesce_sum",l2Children:["bs_liability_deferred_tax_liability","bs_equity_pension_provisions","bs_equity_provisions"],coalesceParent:"bs_sum_provisions"},{l1Field:"l1_bs_liability_non_current_interest_bearing_liabilities",type:"coalesce_sum",l2Children:["bs_liability_non_current_liabilities_to_financial_institutions","bs_liability_non_current_interest_bearing_liabilities","bs_liability_non_current_group_payables"],coalesceParent:"l1_bs_sum_total_non_current_interest_bearing_liabilities"},{l1Field:"l1_bs_liability_other_non_current_liabilities",type:"sum",l2Children:["bs_liability_non_current_trade_payables","bs_liability_non_current_lease_liabilities","bs_liability_non_current_pension_liabilities","bs_liability_other_non_current_liabilities","bs_liability_non_current_liabilities_to_associated_companies_and_joint_ventures","bs_liability_non_current_tax_liabilities"]},{l1Field:"l1_bs_sum_total_non_current_interest_bearing_liabilities",type:"sum",l2Children:["bs_sum_non_current_interest_bearing_liabilities","bs_sum_total_non_current_interest_bearing_liabilities"]},{l1Field:"l1_bs_sum_total_non_current_liabilities",type:"direct",l2Children:["bs_sum_total_non_current_liabilities"]},{l1Field:"l1_bs_sum_provisions",type:"coalesce_sum",l2Children:["bs_equity_provisions"],coalesceParent:"bs_sum_provisions"},{l1Field:"l1_bs_liability_current_accounts_payable",type:"direct",l2Children:["bs_liability_current_accounts_payables"]},{l1Field:"l1_bs_liability_current_interest_bearing_liabilities",type:"coalesce_sum",l2Children:["bs_liability_current_liabilities_to_financial_institutions","bs_liability_other_current_interest_bearing_liabilities"],coalesceParent:"l1_bs_sum_total_current_interest_bearing_liabilities"},{l1Field:"l1_bs_sum_total_current_interest_bearing_liabilities",type:"direct",l2Children:["bs_sum_total_current_interest_bearing_liabilities"]},{l1Field:"l1_bs_liability_other_current_liabilities",type:"sum",l2Children:["bs_liability_customer_advances","bs_liability_current_provisions","bs_liability_current_lease_liabilities","bs_liability_current_group_payables","bs_liability_current_liabilities_to_associated_companies_and_joint_ventures","bs_liability_other_current_liabilities","bs_liability_current_tax_liabilities","bs_liability_accrued_expenses_and_deferred_income"]},{l1Field:"l1_bs_sum_other_current_liabilities",type:"direct",l2Children:["bs_sum_other_current_liabilities"]},{l1Field:"l1_bs_sum_total_current_liabilities",type:"direct",l2Children:["bs_sum_total_current_liabilities"]},{l1Field:"l1_bs_sum_total_liabilities",type:"direct",l2Children:["bs_sum_total_liabilities"]},{l1Field:"l1_bs_sum_total_liabilities_and_equity",type:"direct",l2Children:["bs_sum_total_equity_and_liabilities"]}].map(e=>"l1_bs_equity_other_equity"!==e.l1Field||e.l2Children.includes("bs_equity_treasury_shares")?e:{...e,l2Children:[...e.l2Children,"bs_equity_treasury_shares"]}),l=[{l0Field:"l0_total_revenue",type:"coalesce_sum",l1Children:["l1_is_revenue_revenue","l1_is_revenue_other_operating_income"],coalesceParent:"l1_is_sum_total_operating_income",layer:0},{l0Field:"l0_total_gross_cost",type:"coalesce_sum",l1Children:["l1_is_cost_cost_of_goods_sold","l1_is_cost_cost_of_sales"],coalesceParent:"l1_is_sum_total_gross_costs",layer:0},{l0Field:"l0_total_operating_costs",type:"coalesce_sum",l1Children:["l1_is_cost_selling_general_and_administrative_expenses","l1_is_cost_it_and_software_costs","l1_is_cost_research_and_development","l1_is_cost_personnel_expenses","l1_is_cost_other_operating_costs","l1_is_revenue_other_income"],coalesceParent:"l1_is_sum_total_operating_costs",layer:0},{l0Field:"l0_total_depreciation_and_amortisation",type:"coalesce_sum",l1Children:["l1_is_cost_depreciation_and_amortisation"],coalesceParent:"l1_is_sum_total_depreciation_and_amortisation",layer:0},{l0Field:"l0_net_financials",type:"coalesce_sum",l1Children:["l1_is_revenue_financial_income","l1_is_cost_financial_expenses","l1_is_cost_impairment_and_other_charges_on_financial_asset"],coalesceParent:"l1_is_sum_net_financials",layer:0},{l0Field:"l0_total_extraordinary_items",type:"coalesce_sum",l1Children:["l1_is_revenue_extraordinary_income","l1_is_cost_extraordinary_costs","l1_is_cost_other_extraordinary_items"],coalesceParent:"l1_is_sum_total_extraordinary_items",layer:0},{l0Field:"l0_tax_appropriations",type:"coalesce_sum",l1Children:["l1_is_cost_tax_appropriations"],coalesceParent:"l1_is_sum_total_tax_appropriations",layer:0},{l0Field:"l0_taxes",type:"direct",l1Children:["l1_is_cost_taxes"],layer:0},{l0Field:"l0_is_notes",type:"sum",l1Children:["l1_is_notes_revenue_other_income","l1_is_notes_cost_depreciation_and_amortisation","l1_is_notes_cost_personnel_expenses","l1_is_notes_cost_other_operating_costs"],layer:0},{l0Field:"l0_total_tangible_assets",type:"coalesce_sum",l1Children:["l1_bs_asset_property_plant_and_equipment","l1_bs_asset_other_tangible_assets"],coalesceParent:"l1_bs_sum_total_tangible_assets",layer:0},{l0Field:"l0_total_current_assets",type:"coalesce_sum",l1Children:["l1_bs_asset_current_financial_assets","l1_bs_asset_accounts_receivable","l1_bs_asset_inventory","l1_bs_asset_other_current_assets","l1_bs_asset_cash_and_cash_equivalents"],coalesceParent:"l1_bs_sum_total_current_assets",layer:0},{l0Field:"l0_total_equity",type:"coalesce_sum",l1Children:["l1_bs_equity_share_capital","l1_bs_equity_share_premium_and_shareholder_contributions","l1_bs_equity_retained_earnings","l1_bs_equity_other_equity"],coalesceParent:"l1_bs_sum_total_equity",layer:0},{l0Field:"l0_total_non_current_liabilities",type:"coalesce_sum",l1Children:["l1_bs_liability_non_current_interest_bearing_liabilities","l1_bs_liability_other_non_current_liabilities"],coalesceParent:"l1_bs_sum_total_non_current_liabilities",layer:0},{l0Field:"l0_total_current_liabilities",type:"coalesce_sum",l1Children:["l1_bs_liability_current_accounts_payable","l1_bs_liability_current_interest_bearing_liabilities","l1_bs_liability_other_current_liabilities"],coalesceParent:"l1_bs_sum_total_current_liabilities",layer:0},{l0Field:"l0_provisions_and_untaxed_reserves",type:"sum",l1Children:["l1_bs_equity_untaxed_reserves","l1_bs_equity_provisions"],layer:0},{l0Field:"l0_gross_profit",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_gross_profit",l0FallbackChildren:["l0_total_revenue","l0_total_gross_cost"],layer:1},{l0Field:"l0_ebitda",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_ebitda",l0FallbackChildren:["l0_gross_profit","l0_total_operating_costs"],fallbackRequiresAny:["l1_is_profit_gross_profit","l0_total_revenue"],layer:1},{l0Field:"l0_total_fixed_assets",type:"coalesce_sum",l1Children:["l1_bs_asset_intangible_assets","l1_bs_asset_non_current_financial_assets","l1_bs_asset_other_non_current_assets"],coalesceParent:"l1_bs_sum_total_fixed_assets",l0FallbackChildren:["l0_total_tangible_assets"],layer:1},{l0Field:"l0_total_liabilities",type:"sum",l1Children:[],l0FallbackChildren:["l0_total_non_current_liabilities","l0_total_current_liabilities"],layer:1},{l0Field:"l0_ebit",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_ebit",l0FallbackChildren:["l0_ebitda","l0_total_depreciation_and_amortisation"],fallbackRequiresAny:["l0_ebitda"],layer:2},{l0Field:"l0_total_assets",type:"coalesce_sum",l1Children:["l1_bs_asset_other_assets"],coalesceParent:"l1_bs_sum_total_assets",l0FallbackChildren:["l0_total_fixed_assets","l0_total_current_assets"],layer:2},{l0Field:"l0_total_equity_and_liabilities",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_bs_sum_total_liabilities_and_equity",l0FallbackChildren:["l0_total_equity","l0_total_liabilities","l0_provisions_and_untaxed_reserves"],layer:2},{l0Field:"l0_results_after_financial_items",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_result_after_financial_items",l0FallbackChildren:["l0_ebit","l0_net_financials"],layer:3},{l0Field:"l0_ebt",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_ebt",l0FallbackChildren:["l0_ebit","l0_net_financials","l0_total_extraordinary_items","l0_tax_appropriations"],layer:3},{l0Field:"l0_net_income",type:"coalesce_sum",l1Children:[],coalesceParent:"l1_is_profit_net_income",l0FallbackChildren:["l0_ebit","l0_net_financials","l0_total_extraordinary_items","l0_tax_appropriations","l0_taxes"],layer:3}],i=[{id:"l0_total_revenue_plug",parentField:"l1_is_sum_total_operating_income",childFields:["l1_is_revenue_revenue","l1_is_revenue_other_operating_income"],childLevel:"l1",l0Field:"l0_total_revenue"},{id:"l0_total_gross_cost_plug",parentField:"l1_is_sum_total_gross_costs",childFields:["l1_is_cost_cost_of_goods_sold","l1_is_cost_cost_of_sales"],childLevel:"l1",l0Field:"l0_total_gross_cost"},{id:"is_cost_cost_of_goods_sold_plug",parentField:"l1_is_cost_cost_of_goods_sold",childFields:["l2_is_cost_cost_of_goods_sold"],fallbackChildFields:["l2_is_cost_raw_materials_and_consumables","l2_is_cost_goods_for_resale","l2_is_cost_subcontractors","l2_is_cost_production_overheads","l2_is_cost_other_gross_costs","l2_is_cost_depreciation_and_amortisation_gross_cost","l2_is_cost_change_in_inventory"],primaryChildrenNullIfZero:!0,combinePrimaryAndFallbackWhenFlag:"is_cogs_direct_additive",childLevel:"l2",l0Field:"l0_total_gross_cost"},{id:"l0_gross_profit_plug",parentField:"l1_is_profit_gross_profit",childFields:["l0_total_revenue","l0_total_gross_cost"],childLevel:"l0",l0Field:"l0_gross_profit"},{id:"l0_total_operating_costs_plug",parentField:"l1_is_sum_total_operating_costs",childFields:["l1_is_cost_selling_general_and_administrative_expenses","l1_is_cost_it_and_software_costs","l1_is_cost_research_and_development","l1_is_cost_personnel_expenses","l1_is_cost_other_operating_costs","l1_is_revenue_other_income"],childLevel:"l1",l0Field:"l0_total_operating_costs"},{id:"l0_ebitda_plug",parentField:"l1_is_profit_ebitda",childFields:["l0_gross_profit","l0_total_operating_costs"],childLevel:"l0",l0Field:"l0_ebitda"},{id:"l0_total_depreciation_and_amortisation_plug",parentField:"l1_is_sum_total_depreciation_and_amortisation",childFields:["l1_is_cost_depreciation_and_amortisation"],childLevel:"l1",l0Field:"l0_total_depreciation_and_amortisation"},{id:"l0_ebit_plug",parentField:"l1_is_profit_ebit",childFields:["l0_ebitda","l0_total_depreciation_and_amortisation"],childLevel:"l0",l0Field:"l0_ebit"},{id:"l0_net_financials_plug",parentField:"l1_is_sum_net_financials",childFields:["l1_is_revenue_financial_income","l1_is_cost_financial_expenses","l1_is_cost_impairment_and_other_charges_on_financial_asset"],childLevel:"l1",l0Field:"l0_net_financials"},{id:"l0_results_after_financial_items_plug",parentField:"l1_is_profit_result_after_financial_items",childFields:["l0_ebit","l0_net_financials"],childLevel:"l0",l0Field:"l0_results_after_financial_items"},{id:"l0_total_extraordinary_items_plug",parentField:"l1_is_sum_total_extraordinary_items",childFields:["l1_is_revenue_extraordinary_income","l1_is_cost_extraordinary_costs","l1_is_cost_other_extraordinary_items"],childLevel:"l1",l0Field:"l0_total_extraordinary_items"},{id:"l0_ebt_plug",parentField:"l1_is_profit_ebt",childFields:["l0_results_after_financial_items","l0_total_extraordinary_items","l0_tax_appropriations"],childLevel:"l0",l0Field:"l0_ebt"},{id:"l0_net_income_plug",parentField:"l1_is_profit_net_income",childFields:["l0_taxes","l0_ebt"],childLevel:"l0",l0Field:"l0_net_income"},{id:"l0_total_tangible_assets_plug",parentField:"l1_bs_sum_total_tangible_assets",childFields:["l1_bs_asset_property_plant_and_equipment","l1_bs_asset_other_tangible_assets"],childLevel:"l1",l0Field:"l0_total_tangible_assets"},{id:"l0_total_fixed_assets_plug",parentField:"l1_bs_sum_total_fixed_assets",childFields:["l0_total_tangible_assets","l1_bs_asset_intangible_assets","l1_bs_asset_non_current_financial_assets","l1_bs_asset_other_non_current_assets"],childLevel:"l0",l0Field:"l0_total_fixed_assets"},{id:"l0_total_current_assets_plug",parentField:"l1_bs_sum_total_current_assets",childFields:["l1_bs_asset_current_financial_assets","l1_bs_asset_accounts_receivable","l1_bs_asset_inventory","l1_bs_asset_other_current_assets","l1_bs_asset_cash_and_cash_equivalents"],childLevel:"l1",l0Field:"l0_total_current_assets"},{id:"bs_total_receivables_plug",parentField:"l1_bs_sum_total_receivables",childFields:["l2_bs_asset_current_accounts_receivables","l2_bs_asset_current_group_receivables","l2_bs_asset_current_receivables_from_associated_companies_and_joint_ventures","l2_bs_asset_other_current_receivables"],childLevel:"l2",l0Field:"l0_total_current_assets"},{id:"l0_total_assets_plug",parentField:"l1_bs_sum_total_assets",childFields:["l0_total_fixed_assets","l0_total_current_assets","l1_bs_asset_other_assets"],childLevel:"l0",l0Field:"l0_total_assets"},{id:"l0_total_equity_plug",parentField:"l1_bs_sum_total_equity",childFields:["l1_bs_equity_share_capital","l1_bs_equity_share_premium_and_shareholder_contributions","l1_bs_equity_retained_earnings","l1_bs_equity_other_equity"],childLevel:"l1",l0Field:"l0_total_equity"},{id:"l0_total_non_current_liabilities_plug",parentField:"l1_bs_sum_total_non_current_liabilities",childFields:["l1_bs_liability_non_current_interest_bearing_liabilities","l1_bs_liability_other_non_current_liabilities"],childLevel:"l1",l0Field:"l0_total_non_current_liabilities"},{id:"l0_total_current_liabilities_plug",parentField:"l1_bs_sum_total_current_liabilities",childFields:["l1_bs_liability_current_accounts_payable","l1_bs_liability_current_interest_bearing_liabilities","l1_bs_liability_other_current_liabilities"],childLevel:"l1",l0Field:"l0_total_current_liabilities"},{id:"l0_total_liabilities_plug",parentField:"l1_bs_sum_total_liabilities",childFields:["l0_total_non_current_liabilities","l0_total_current_liabilities"],childLevel:"l0",l0Field:"l0_total_liabilities"},{id:"l0_total_equity_and_liabilities_plug",parentField:"l1_bs_sum_total_liabilities_and_equity",childFields:["l0_total_equity","l0_total_liabilities","l0_provisions_and_untaxed_reserves"],childLevel:"l0",l0Field:"l0_total_equity_and_liabilities"},{id:"l0_tax_appropriations_plug",parentField:"l1_is_sum_total_tax_appropriations",childFields:["l1_is_cost_tax_appropriations"],childLevel:"l1",l0Field:"l0_tax_appropriations"},{id:"l0_provisions_and_untaxed_reserves_plug",parentField:"l0_provisions_and_untaxed_reserves",childFields:["l1_bs_equity_untaxed_reserves","l1_bs_equity_provisions"],childLevel:"l1",l0Field:"l0_provisions_and_untaxed_reserves"}];function s(e){return e.startsWith("l1_")||e.startsWith("l2_")?e.slice(3):e}let a=new Map;for(let e of t){for(let t of e.l2Children)a.has(t)||a.set(t,e.l1Field);let t=e.coalesceParent;if(t&&_(e)){let l=s(t);a.has(l)||a.set(l,e.l1Field)}}let n=new Map;for(let e of l){for(let t of e.l1Children)n.has(t)||n.set(t,e.l0Field);
1e.coalesceParent&&!n.has(e.coalesceParent)&&n.set(e.coalesceParent,e.l0Field)}for(let e of t){let t=e.coalesceParent;if(t&&_(e)){let l=n.get(e.l1Field);l&&!n.has(t)&&n.set(t,l)}}for(let e of i)e.parentField.startsWith("l1_")&&!n.has(e.parentField)&&n.set(e.parentField,e.l0Field);let r=new Map;for(let e of t)r.set(e.l1Field,e);let o=new Map;for(let e of l)o.set(e.l0Field,e);function _(e,t={}){return!!e.coalesceParent&&(!e.coalesceSourceDetails?.length||!!(t.dataSourceDetail&&e.coalesceSourceDetails.includes(t.dataSourceDetail)))}function c(e,t){return!!(e&&t.booleanFlags?.[e])}function u(e){return r.get(e)}function d(e){return o.get(e)}function m(e){let t=e.filter(e=>null!==e);return 0===t.length?null:t.reduce((e,t)=>e+t,0)}function p(e){if(null==e)return null;let t=e.trim().replace(/\s/g,"");if(!t)return null;let l=t.match(/^(.+?)([eE][+-]?\d+)$/),i=l?l[1]:t,s=l?l[2]:"",a=i.lastIndexOf(","),n=i.lastIndexOf("."),r=i;-1!==a&&-1!==n&&a>n?r=i.replace(/\./g,"").replace(",","."):-1!==a&&-1!==n&&n>a?r=i.replace(/,/g,""):-1!==a?r=3==i.length-a-1?i.replace(/,/g,""):i.replace(",","."):-1!==n&&(r=3==i.length-n-1?i.replace(/\./g,""):i);let o=Number(`${r}${s}`);return Number.isFinite(o)?o:null}function b(e){let t=new Map,i=Math.max(...l.map(e=>e.layer));for(let s=0;s<=i;s++)for(let i of l)i.layer===s&&t.set(i.l0Field,function(e,t,l){if("coalesce_sum"===e.type&&e.coalesceParent){let l=t.get(e.coalesceParent)??null;if(null!==l)return l}if("direct"===e.type&&e.l1Children.length>0)return t.get(e.l1Children[0])??null;if(e.fallbackRequiresAny?.length&&e.fallbackRequiresAny.every(e=>null===(e.startsWith("l0_")?l?.get(e)??null:t.get(e)??null)))return null;let i=e.l1Children.map(e=>t.get(e)??null),s=(e.l0FallbackChildren??[]).map(e=>l?.get(e)??null),a=[...i,...s];return"direct"===e.type&&e.l0FallbackChildren?.length?m(s):m(a)}(i,e,t));return t}function f(e){let t=o.get(e);return t?[...t.l1Children,...t.l0FallbackChildren??[]]:[]}function h(e){return e.startsWith("l1_")||e.startsWith("l2_")?`l2_${e.slice(3)}`:`l2_${e}`}function g(e,t,l={}){let i=e.fallbackChildFields;return i?.length?c(e.combinePrimaryAndFallbackWhenFlag,l)?{...e,childFields:[...e.childFields,...i]}:e.childFields.some(l=>{let i=t.get(s(l))??null;return null!==i&&(!e.primaryChildrenNullIfZero||0!==i)})?e:{...e,childFields:i}:e}e.s(["L0_DEFINITIONS",0,l,"L1_DEFINITIONS",0,t,"PLUG_DEFINITIONS",0,i,"computeAllL0Values",0,b,"computeAllL0ValuesFromChildRollups",0,function(e){let t=new Map(e);for(let e of l)e.coalesceParent&&t.set(e.coalesceParent,null);return b(t)},"computeAllPlugs",0,function(e,t,l,s={}){let a=new Map;for(let n of i)a.set(n.id,function(e,t,l,i,s={}){let a=g(e,i,s),n=e.parentField.startsWith("l0_")?l.get(e.parentField)??null:t.get(e.parentField)??null;if(null===n||0===n)return null;let r=m(a.childFields.map(e=>{if(e.startsWith("l0_"))return l.get(e)??null;if(e.startsWith("l1_"))return t.get(e)??null;let s=e.startsWith("l2_")?e.slice(3):e;return i.get(s)??null}));return null===r?"l0_gross_profit_plug"===e.id?null:n:n-r}(n,e,t,l,s));return a},"computeL1Value",0,function(e,t,l={}){if("direct"===e.type)return p(t.get(e.l2Children[0])??null);let i=e.coalesceParent,a=e.l2Children.map(e=>p(t.get(e)??null));if("coalesce_sum"===e.type&&i&&_(e,l)){let n=s(i),r=p(t.get(n)??null);if(c(e.combineCoalesceParentWithChildrenWhenFlag,l))return m([r,...a]);if(null!==r&&(!e.coalesceParentNullIfZero||0!==r))return r}return m(a)},"getL0Children",0,f,"getL0Definition",0,d,"getL0ForL1",0,function(e){return n.get(e)},"getL0FormulaDisplay",0,function(e){let t=o.get(e);if(!t)return"";let l=[...t.l1Children,...t.l0FallbackChildren??[]];if("direct"===t.type&&1===l.length)return l[0];if("sum"===t.type)return l.join(" + ");if("coalesce_sum"===t.type&&t.coalesceParent){let e=l.join(" + "),i=t.fallbackRequiresAny?.length?`IF_PRESENT(${t.fallbackRequiresAny.join(" OR ")}, ${e})`:e;return`COALESCE(${t.coalesceParent}, ${i})`}return l.join(" + ")},"getL1Definition",0,u,"getL1ForL2",0,function(e){let t=e.startsWith("l2_")?e.slice(3):e;return a.get(t)},"getL1FormulaDisplay",0,function(e,t={}){let l=r.get(e);if(!l)return"";if("direct"===l.type)return l.l2Children[0]??"";if("coalesce_sum"===l.type){let e=l.l2Children.join(" + "),i=l.coalesceParentNullIfZero?`NULLIF(${l.coalesceParent}, 0)`:l.coalesceParent,s=`COALESCE(${i}, ${e})`,a=l.combineCoalesceParentWithChildrenWhenFlag;if(a){let i=`${l.coalesceParent} + ${e}`;return c(a,t)?i:s}return l.coalesceSourceDetails?.length?`IF_SOURCE(${l.coalesceSourceDetails.join(" OR ")}, ${s}, ${e})`:s}return l.l2Children.join(" + ")},"getL2FieldId",0,h,"getL2FieldsForFinancialField",0,function(e,t={}){let l=new Set,i=new Set,s=e=>{if(e.startsWith("l2_"))return void l.add(e);
1if(!i.has(e)){if(i.add(e),e.startsWith("l1_")){let i=u(e);if(!i){t.includeUnknownL1&&l.add(h(e));return}let a=i.coalesceParent;for(let e of(a&&_(i,t)&&s(a),i.l2Children))l.add(h(e));return}if(e.startsWith("l0_")){let t=d(e);for(let l of(t?.coalesceParent&&s(t.coalesceParent),f(e)))s(l);return}l.add(h(e))}};return s(e),Array.from(l)},"isL1CoalesceParentActive",0,_,"resolvePlugDefinition",0,g],584198)},616308,e=>{"use strict";var t=e.i(149090);function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function i(e,t){return l(e)&&Object.values(e).every(t)}function s(e){return l(e)&&"sum"===e.kind&&Array.isArray(e.terms)&&e.terms.every(e=>l(e)&&"string"==typeof e.citationId&&"string"==typeof e.field&&"number"==typeof e.value)&&"number"==typeof e.result}function a(e){if(!l(e))return!1;if("bbox"===e.citation_approach){var i,a;return"string"==typeof e.fieldKey&&"string"==typeof e.label&&"string"==typeof e.companyName&&Array.isArray(e.citationIds)&&"string"==typeof e.pdfUrl&&"number"==typeof e.pdfPage&&Array.isArray(i=e.bbox)&&4===i.length&&i.every(e=>"number"==typeof e&&Number.isFinite(e))&&(null==(a=e.bboxCoordinateSpace)||t.CITATION_BBOX_COORDINATE_SPACES.some(e=>e===a))&&Array.isArray(e.highlights)&&"boolean"==typeof e.havePreciseBoxes&&(void 0===e.formula||s(e.formula))}if("source_reference"===e.citation_approach){let t="string"==typeof e.country?e.country.toUpperCase():null;return"string"==typeof e.fieldKey&&"string"==typeof e.label&&"string"==typeof e.companyName&&"string"==typeof e.country&&("loxml"===e.sourceFormat&&"DE"===t||"html"===e.sourceFormat&&"GB"===t||"ixbrl_xhtml"===e.sourceFormat&&"DK"===t)&&"string"==typeof e.sourceDocumentId&&Array.isArray(e.citationIds)&&Array.isArray(e.referenceIds)&&Array.isArray(e.sourceHighlights)&&(void 0===e.formula||s(e.formula))}return!1}function n(e){return null===e||a(e)}function r(e){return l(e)&&Object.values(e).every(a)}e.s(["getArCitationsErrorMessage",0,function(e){return l(e)&&"string"==typeof e.error?e.error:"Failed to fetch AR citations"},"isAnnualReportSourcesApiResponse",0,function(e){var t,s;return l(e)&&(void 0===e.companyCitations||l(t=e.companyCitations)&&i(t.citationsByCell,n)&&Array.isArray(s=t.citationYears)&&s.every(e=>"string"==typeof e)&&"boolean"==typeof t.hasAnyCitations)&&(void 0===e.urlCitations||i(e.urlCitations,r))&&(void 0===e.companyIdCitations||i(e.companyIdCitations,r))}])},947620,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(174080),s=e.i(773901),a=e.i(604424),n=e.i(141327),r=e.i(83587),o=e.i(453991);function _(e,t,l){return`panel-width:${e}:${t}:${l}`}function c(e,t,l){return Math.min(Math.max(e,t),l)}let u=(0,l.createContext)(null),d=(0,l.forwardRef)(function({id:e,mode:d,defaultWidths:p,minWidth:b=320,maxWidth:f=1200,onCurrentChange:h,onContentFocusLeave:g,className:y,contentClassName:x,children:v},C){let[F,j]=(0,l.useState)(null),[w,N]=(0,l.useState)(!1),I=(0,l.useRef)(null),S=(0,l.useRef)(null),T=(0,l.useRef)(null),E=(0,l.useCallback)(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]),P=(0,l.useCallback)(()=>{I.current&&(null!==T.current&&(cancelAnimationFrame(T.current),T.current=null),I.current=null,N(!1),E(),S.current=setTimeout(()=>{j(null)},300))},[E]),R=(0,l.useCallback)((e,t)=>{E(),null!==T.current&&cancelAnimationFrame(T.current);let l={type:e,props:t};I.current=l,j(l),w?N(!0):T.current=requestAnimationFrame(()=>{T.current=null,N(!0)})},[E,w]);(0,l.useEffect)(()=>()=>{E(),null!==T.current&&cancelAnimationFrame(T.current)},[E]),(0,l.useEffect)(()=>{h?.(F)},[F,h]),(0,l.useEffect)(()=>{if(F&&I.current)return(0,a.pushEscapeHandler)(P),()=>{(0,a.popEscapeHandler)(P)}},[F,w,P]);let k=(0,l.useRef)(null),A=F?.type??null,D=A?(0,n.getPanelConfig)(A):null,M=D?.closeOnOutsideClick??!1,$=D?.outsideClickExcludeSelector,L=D?.resizable!==!1;(0,l.useEffect)(()=>{if(!w||!M)return;let e=e=>{e.target instanceof Element&&(e.target.closest('[data-radix-popper-content-wrapper], [data-slot="dialog-overlay"], [data-slot="dialog-content"]')||$&&e.target.closest($)||k.current&&k.current.contains(e.target)||P())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[w,M,$,P]);let z=(0,l.useMemo)(()=>({anchorId:e,mode:d,current:F,open:R,close:P}),[e,d,F,R,P]);(0,l.useImperativeHandle)(C,()=>({open:R,close:P,getCurrent:()=>I.current}),[R,P]);let q=(A&&p?.[A])??480,{width:O,setDraftWidth:U,commitWidth:V}=function({anchorId:e,panelType:t,defaultWidth:i,minWidth:s,maxWidth:a}){let[n,r]=(0,l.useState)(i),u=(0,l.useRef)(n);return(0,l.useEffect)(()=>{u.current=n},[n]),(0,l.useEffect)(()=>{t&&r(c(function(e,t,l){try{let i=window.localStorage.getItem(_(e,t,l));if(!i)return null;let s=Number(i);return Number.isFinite(s)?s:null}catch(e){return(0,o.logFrontendError)("Failed to read panel width from localStorage",{error:(0,o.seri
1alizeError)(e)}),null}}(e,t,i)??i,s,a))},[e,t,i,s,a]),{width:n,setDraftWidth:(0,l.useCallback)(e=>{r(c(e,s,a))},[s,a]),commitWidth:(0,l.useCallback)(()=>{if(t){var l=u.current;try{window.localStorage.setItem(_(e,t,i),String(l))}catch(e){(0,o.logFrontendError)("Failed to write panel width to localStorage",{error:(0,o.serializeError)(e)})}}},[e,t,i])}}({anchorId:e,panelType:A,defaultWidth:q,minWidth:b,maxWidth:f}),H=L?O:q,W=(0,l.useCallback)(e=>{let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||g?.()},[g]),[B,Y]=(0,l.useState)(!1),K=(0,l.useCallback)(()=>{Y(!0)},[]),G=(0,l.useCallback)(()=>{Y(!1),V()},[V]),Z=F?(0,t.jsx)(m,{current:F,close:P}):null,Q=F?(0,t.jsx)(r.PanelResizeHandle,{panelWidth:H,isVisible:w,animateWidth:"integrated"===d,isResizing:B,onResize:U,onResizeStart:K,onResizeEnd:G}):null,J=F&&L?Q:null,X=F?(0,t.jsx)("div",{ref:k,style:{width:H,maxWidth:"100%"},className:(0,s.cn)("bg-background pointer-events-auto absolute inset-y-0 right-0 z-20 flex flex-col overflow-hidden border shadow-[-4px_0_12px_-4px_rgba(0,0,0,0.1)]","floating"===d&&"rounded-tr-lg-plus rounded-br-lg-plus","transition-transform duration-300 ease-in-out","[&:has([data-panel-elevated-overlay='true'])]:z-50",!w&&"translate-x-full"),children:Z}):null;return(0,t.jsx)(u.Provider,{value:z,children:"integrated"!==d?(0,t.jsxs)("div",{className:(0,s.cn)("relative flex h-full min-h-0 w-full min-w-0 flex-col",y),children:[(0,t.jsx)("div",{className:(0,s.cn)("flex h-full min-h-0 w-full min-w-0 flex-col",x),onBlur:W,children:v}),"overlay"===d&&F?(0,i.createPortal)((0,t.jsxs)("div",{className:"pointer-events-none fixed inset-0 z-40 overflow-hidden",children:[X,(0,t.jsx)("div",{className:"pointer-events-auto",children:J})]}),document.body):X,"floating"===d&&J]}):(0,t.jsxs)("div",{className:(0,s.cn)("relative flex h-full min-h-0 w-full min-w-0 items-stretch",y),children:[(0,t.jsx)("div",{className:(0,s.cn)("flex min-h-0 min-w-0 flex-1 flex-col",x),onBlur:W,children:v}),(0,t.jsx)("div",{ref:k,style:{width:F&&w?H:0,maxWidth:"100%"},className:(0,s.cn)("bg-background relative flex h-full shrink-0 flex-col overflow-hidden",F&&!L&&"border-l",B?"transition-none":"transition-[width] duration-300 ease-in-out"),children:Z}),J]})})}),m=(0,l.memo)(function({current:e,close:l}){let i=(0,n.getPanelComponent)(e.type);return i?(0,t.jsx)(i,{...e.props,close:l}):null});m.displayName="PanelSlot",e.s(["PanelAnchor",0,d,"usePanelAnchor",0,function(){let e=(0,l.useContext)(u);if(!e)throw Error("usePanelAnchor must be used within a <PanelAnchor>");return e}],947620)},604424,e=>{"use strict";let t=[],l=!1;e.s(["popEscapeHandler",0,function(e){let l=t.lastIndexOf(e);l>=0&&t.splice(l,1)},"pushEscapeHandler",0,function(e){!l&&"u">typeof document&&(l=!0,document.addEventListener("keydown",e=>{var l;l=t.length>0,"Escape"!==e.key||e.defaultPrevented||!l||((0,t[t.length-1])(),e.stopImmediatePropagation())})),t.push(e)}])},141327,e=>{"use strict";let t=new Map;e.s(["getPanelComponent",0,function(e){let l=t.get(e);return l?.Component},"getPanelConfig",0,function(e){let l=t.get(e);return l?.config??{}},"registerPanel",0,function(e,l,i={}){t.set(e,{Component:l,config:i})}])},83587,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(773901),s=e.i(27790);e.s(["PanelResizeHandle",0,function({panelWidth:e,isVisible:a,animateWidth:n,isResizing:r,onResize:o,onResizeStart:_,onResizeEnd:c}){let u=(0,l.useRef)(0),d=(0,l.useRef)(0),m=(0,l.useRef)(null),p=(0,l.useRef)(c);(0,l.useEffect)(()=>{p.current=c},[c]),(0,l.useEffect)(()=>()=>{null!==m.current&&(m.current=null,p.current())},[]),(0,l.useEffect)(()=>{if(!r)return;let e=document.body.style.userSelect,t=document.body.style.cursor;return document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.body.style.userSelect=e,document.body.style.cursor=t}},[r]);let b=(0,l.useCallback)(t=>{if(!t.isPrimary||0!==t.button||null!==m.current)return;t.preventDefault(),t.nativeEvent.stopImmediatePropagation(),t.currentTarget.setPointerCapture(t.pointerId),m.current=t.pointerId,u.current=t.clientX;let l=t.currentTarget.parentElement?.clientWidth??e;d.current=Math.min(e,l),_()},[e,_]),f=(0,l.useCallback)(e=>{if(m.current!==e.pointerId)return;e.preventDefault();let t=u.current-e.clientX;o(d.current+t)},[o]),h=(0,l.useCallback)((e,t)=>{m.current===t&&(m.current=null,e.hasPointerCapture(t)&&e.releasePointerCapture(t),c())},[c]),g=(0,l.useCallback)(e=>{h(e.currentTarget,e.pointerId)},[h]),y=n?a?e:0:e;return(0,t.jsx)("div",{onPointerDown:b,onPointerMove:f,onPointerUp:g,onPointerCancel:g,onLostPointerCapture:g,role:"separator","aria-orientation":"vertical","aria-label":"Resize panel","data-dragging":r,style:{right:`min(${y}px, 100%)`},className:(0,i.cn)(s.resizeHandleStyles.root,"absolute inset-y-0 z-30 w-3 translate-x-1/2 after:bg-[image:var(--workspace-sidebar-divider)]",r?"transition-none":"transition-[right,opacity] duration-300 ease-in-out",a?"cursor-col-resize opacity-100":"pointer-events-none opacity-0"),children:(0,t.jsx)("div",{"aria-hidden":"true",className:s.resizeHandleStyles.grip})})}])},27790,e=>{"use strict";e.s(["resizeHandleStyles",0,{root:"group/resize-handle focus-visible:outline-foreground hover:after:bg-foreground focus-visible:after:bg-foreground data-[dragging=true]:after:bg-foreground w-2 cursor-col-resize touch-none outline-none after:pointer-events-none after:absolute after:inset-y-0 after:left-1/2 after:w-px after:-translate-x-1/2 hover:after:bg-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-solid focus-visible:after:bg-none data-[dragging=true]:after:bg-none",grip:"bg-foreground pointer-events-none absolute top-1/2 left-1/2 h-8 w-[3px] -translate-x-1/2 -translate-y-1/2 roun
1ded-sm opacity-0 group-hover/resize-handle:opacity-100 group-focus-visible/resize-handle:opacity-100 group-data-[dragging=true]/resize-handle:opacity-100"}])}]);

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.