PageSourceSearch

https://firerebuild.com/_next/static/chunks/3679-cadee41e5996049b.js

js firerebuild.com collected 2026-10-07 15:37:34 UTC 141,568 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3679],{33679:function(e,t,n){n.d(t,{ZP:function(){return Jn}});var r=n(9544),i=n(54964),a=n(84661),o=n(67937),s=n(91171),c=n(63064),l=n(84827),d=n(93997),u=n(65599),h=n(50029),f=n(59499),x=n(92965),m=n(4730),p=n(87794),g=n.n(p),v=n(67294),b=n(11163),j=n(10927),y=n(67145),Z=n(30974),w=n(86300),S=n(98360),D=n(45063),C=n(76755),F=n(14161),T=n(86510),k=n(94184),P=n.n(k),A=n(9639),M=n(99333),I=n(24736),W=n(52514),E=(n(9675),n(37411)),O=n(96027),R=n(16429),L=n(34208),N=n(50319),z=n(63365),H=n(15585),U=n(85893),B=function(){return(0,U.jsx)(x.Z,{sx:{width:"100%",bgcolor:"#ffffff",color:"#101828",pt:{xs:6,md:8},pb:{xs:4,md:6}},children:(0,U.jsxs)(E.Z,{maxWidth:"lg",children:[(0,U.jsx)(u.Z,{variant:"h6",component:"p",sx:{color:"#475467",fontWeight:500,lineHeight:1.6,mb:5,fontSize:{xs:"1.05rem",md:"1.2rem"}},children:"Palisades Fire survivors cannot move forward with a full recovery until basic facts are accepted. Based on analysis of the government's own evidence, Michael Kureth has been able to prove:"}),(0,U.jsx)(L.Z,{sx:{borderColor:"#eaeaea",mb:5}}),(0,U.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:3,height:"100%",bgcolor:"#fcfcfc",borderColor:"#eaeaea",borderRadius:3,boxShadow:"0 2px 8px rgba(0,0,0,0.01)",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,U.jsxs)(x.Z,{children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.2,alignItems:"center",sx:{mb:1.5},children:[(0,U.jsx)(N.Z,{sx:{color:"#d32f2f",fontSize:"1.25rem"}}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"900",sx:{color:"#101828",textTransform:"uppercase",letterSpacing:"0.5px",fontSize:"0.85rem"},children:"No Hurricane Force Winds"})]}),(0,U.jsx)(u.Z,{variant:"body2",sx:{color:"#344054",lineHeight:1.6,mb:2},children:"3,196 weather stations within a 150-mile radius and a 5,000-foot elevation differential of the fire's origin point confirm no record of either hurricane-force or 100 MPH winds at the start of the Palisades Fire."})]}),(0,U.jsx)(O.Z,{href:"/wind/summary/2025-01-07-10-30/#timeline-section",target:"_self",rel:"noopener",sx:{color:"#d32f2f",fontWeight:700,fontSize:"0.85rem",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"View Wind Record Data \u2192"})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:3,height:"100%",bgcolor:"#fcfcfc",borderColor:"#eaeaea",borderRadius:3,boxShadow:"0 2px 8px rgba(0,0,0,0.01)",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,U.jsxs)(x.Z,{children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.2,alignItems:"center",sx:{mb:1.5},children:[(0,U.jsx)(z.Z,{sx:{color:"#d32f2f",fontSize:"1.25rem"}}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"900",sx:{color:"#101828",textTransform:"uppercase",letterSpacing:"0.5px",fontSize:"0.85rem"},children:"Not Unprecedented"})]}),(0,U.jsx)(u.Z,{variant:"body2",sx:{color:"#344054",lineHeight:1.6,mb:2},children:"Historical analysis of 46 years of California's Burning Index, fuel moisture tracking datasets, and regional climate records confirms that atmospheric conditions near the Palisades Fire on January 7, 2025, were not unprecedented."})]}),(0,U.jsx)(O.Z,{href:"https://firerebuild.com/climate-change",target:"_self",rel:"noopener",sx:{color:"#d32f2f",fontWeight:700,fontSize:"0.85rem",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"View Climate Change Analysis \u2192"})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:3,height:"100%",bgcolor:"#fcfcfc",borderColor:"#eaeaea",borderRadius:3,boxShadow:"0 2px 8px rgba(0,0,0,0.01)",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,U.jsxs)(x.Z,{children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.2,alignItems:"center",sx:{mb:1.5},children:[(0,U.jsx)(H.Z,{sx:{color:"#d32f2f",fontSize:"1.25rem"}}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"900",sx:{color:"#101828",textTransform:"uppercase",letterSpacing:"0.5px",fontSize:"0.85rem"},children:"No Simultaneous Fires"})]}),(0,U.jsx)(u.Z,{variant:"body2",sx:{color:"#344054",lineHeight:1.6,mb:2},children:"Cal Fire and ArcGIS data confirms that at the time of the Sunset Fire (1 day, 7 hours, and 27 minutes later), 98.03% of all structures ultimately destroyed in the Palisades Fire were already on fire."})]}),(0,U.jsx)(O.Z,{href:"/structures/details/2025-01-08-18-00/#timeline-section",target:"_self",rel:"noopener",sx:{color:"#d32f2f",fontWeight:700,fontSize:"0.85rem",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"View Structures Destroyed Timeline \u2192"})]})})]}),(0,U.jsx)(L.Z,{sx:{borderColor:"#ccc",mb:5,mt:5}}),(0,U.jsx)(u.Z,{variant:"body1",sx:{color:"text.primary",lineHeight:1.5,mt:2},children:"There has been no evidence made to disprove any of the facts presented on FireRebuild."}),(0,U.jsxs)(u.Z,{variant:"body1",sx:{color:"text.primary",lineHeight:1.5,mt:2,display:"none"},children:["Michael Kureth is entirely nonpartisan and has consistently pursued federal intervention since registering FireRebuild.com in September 2024. For nearly a decade following the 2018 Woolsey Fire, his family navigated the recovery process while being actively prevented from rebuilding by city and fire department officials. Just two months after relocating to Pacific Palisades, Kureth lost everything in the 2025 Palisades Fire.",(0,U.jsx)("br",{}),(0,U.jsx)("br",{}),"Driven by the intentional deception, corruption, and malfeasance of municipal and state employees, which caused his family substantial financial harm and intentional emotional distress, Kureth was inspired to investigate the truth behind the Palisades Fire. Relying on his experience that no hurricane force winds occurred, he successfully disproved official claims of 100 MPH winds and unprecedented conditions.",(0,U.jsx)("br",{}),(0,U.jsx)("br",{}),"He has advocated for federal intervention and oversight because these government entities are fully aware of their immunity, actively abusing it to shield themselves while intentionally harming fire survivors who are simply trying to rebuild their lives. Because of this systemic shield, Kureth has escalated demands for federal intervention directly to the President and Vice President of the United States, alongside multiple federal oversight agencies, to halt this corruption and protect other fire survivors.",(0,U.jsx)("br",{}),(0,U.jsx)("br",{}),"While critics falsely claim his opposition is aimed strictly at Democrats like LA Mayor Karen Bass and CA Governor Gavin Newsom, documented evidence proves otherwise. Kureth has explicitly proven that Republican officials who cite his work, including Lee Zeldin (EPA) and Kelly Loeffler (SBA), have similarly ignored and refused communication with Palisades Fire survivors, despite performative public promises to help.",(0,U.jsx)("br",{}),(0,U.jsx)("br",{}),"All content on FireRebuild is based on fact without political affiliation or agenda."]})]})})},G=n(49561),V=n(32833),_=n(75341),Y=n(41718),J=n(91292),K=function(){return(0,U.jsxs)(x.Z,{sx:{width:"100%",maxWidth:1200,mx:"auto",py:4,px:2},children:[(0,U.jsx)(G.Z,{variant:"outlined",sx:{background:"#ffffff",mb:4,borderRadius:2},children:(0,U.jsxs)(V.Z,{sx:{p:3,"&:last-child":{pb:3}},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.5,alignItems:"center",sx:{mb:2},children:[(0,U.jsx)(_.Z,{color:"error",sx:{fontSize:"1.75rem"}}),(0,U.jsxs)(x.Z,{children:[(0,U.jsx)(u.Z,{variant:"h6",component:"h2",fontWeight:"800",sx:{letterSpacing:"-0.01em"},children:"Government Agencies and Representatives Knowingly Made False Claims"}),(0,U.jsx)(u.Z,{variant:"caption",color:"error.main",fontWeight:"700",sx:{textTransform:"uppercase",tracking:"0.05em"},children:"Sovereign Immunity and Statutory Protection Against False Claims"})]})]}),(0,U.jsx)(u.Z,{variant:"body2",color:"text.secondary",sx:{mb:2.5,lineHeight:1.5},children:"Under California statutory frameworks, public entities and their workforce are broadly shielded from legal or financial liabilities stemming from misleading declarations, incorrect metrics, or false assertions issued during official operations."}),(0,U.jsx)(L.Z,{sx:{my:2}}),(0,U.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2.5,height:"100%",bgcolor:"#fafafa"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:1},children:[(0,U.jsx)(J.Z,{sx:{fontSize:"1.1rem",color:"text.secondary"}}),(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"700",color:"text.primary",children:"CA Gov Code \xa7 818.8"})]}),(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",component:"div",sx:{fontStyle:"italic",lineHeight:1.4},children:'"A public entity is not liable for any injury caused by misrepresentation by an employee of the public entity, whether or not such misrepresentation be negligent or intentional."'})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2.5,height:"100%",bgcolor:"#fafafa"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:1},children:[(0,U.jsx)(J.Z,{sx:{fontSize:"1.1rem",color:"text.secondary"}}),(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"700",color:"text.primary",children:"CA Gov Code \xa7 822.2"})]}),(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",component:"div",sx:{fontStyle:"italic",lineHeight:1.4},children:'"A public employee acting in the scope of his employment is not liable for an injury caused by his misrepresentation, whether or not such misrepresentation be negligent or intentional, unless he is guilty of actual fraud, corruption or actual malice."'})]})})]})]})}),(0,U.jsx)(G.Z,{variant:"outlined",sx:{background:"#ffffff",borderRadius:2},children:(0,U.jsxs)(V.Z,{sx:{p:3,"&:last-child":{pb:3}},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.5,alignItems:"center",sx:{mb:2},children:[(0,U.jsx)(Y.Z,{color:"primary",sx:{fontSize:"1.75rem"}}),(0,U.jsxs)(x.Z,{children:[(0,U.jsx)(u.Z,{variant:"h6",component:"h2",fontWeight:"800",sx:{letterSpacing:"-0.01em"},children:"Media & News Stations Made False Claims About The Palisades Fire"}),(0,U.jsx)(u.Z,{variant:"caption",color:"primary.main",fontWeight:"700",sx:{textTransform:"uppercase",tracking:"0.05em"},children:"Privileged Reporting & Platform Protections"})]})]}),(0,U.jsxs)(u.Z,{variant:"body2",color:"text.secondary",sx:{mb:2.5,lineHeight:1.5},children:["News networks, broadcast stations, and content distributors are protected from civil actions regarding false or unverified narratives when conveying official proceedings or distributing third-party details.  For example: Documented records and evidence has proven ",(0,U.jsx)("strong",{children:"there is no evidence of hurricane-force winds or 100 MPH winds"})," at the start of the Palisades Fire."]}),(0,U.jsx)(L.Z,{sx:{my:2}}),(0,U.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2.5,height:"100%",bgcolor:"#fafafa"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:1},children:[(0,U.jsx)(J.Z,{sx:{fontSize:"1.1rem",color:"text.secondary"}}),(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"700",color:"text.primary",children:"CA Civil Code \xa7 47(d)"})]}),(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",component:"div",sx:{fontStyle:"italic",lineHeight:1.4},children:'Establishes a "privileged publication" exception protecting media outlets when publishing a "fair and true report" of public, official, executive, legislative, or judicial proceedings, regardless of downstream inaccuracies.'})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2.5,height:"100%",bgcolor:"#fafafa"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:1},children:[(0,U.jsx)(J.Z,{sx:{fontSize:"1.1rem",color:"text.secondary"}}),(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"700",color:"text.primary",children:"47 U.S.C. \xa7 230"})]}),(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",component:"div",sx:{fontStyle:"italic",lineHeight:1.4},children:'"No provider or user of an interactive computer service shall be treated as the publisher or speaker of any information provided by another information content provider," shielding digital platforms and digital news feeds from liability over external 
1claims.'})]})})]})]})})]})},q=n(32141),X=n(18037),$=n(7431),Q=function(){var e=[{id:1,label:"1. Climate Change",script:"\u201cOur department and city were confronted with extreme and <strong>unprecedented weather conditions</strong> that tested every limit and maximized every resource. This context is essential as we evaluate, analyze, and create actionable plans.\u201d",truth:(0,U.jsxs)(R.Z,{spacing:1,children:[(0,U.jsxs)(u.Z,{variant:"body2",sx:{lineHeight:1.6,color:"text.primary"},children:["Historical analysis of ",(0,U.jsx)("strong",{children:"46 years of California's Burning Index"}),", fuel moisture tracking datasets, and regional climate records confirms that atmospheric conditions near the Palisades Fire on January 7, 2025, were ",(0,U.jsx)("strong",{children:"not unprecedented"}),"."]}),(0,U.jsxs)(O.Z,{href:"https://firerebuild.com/climate-change/",target:"_blank",rel:"noopener",sx:{display:"inline-flex",alignItems:"center",gap:.5,fontSize:"0.8125rem",fontWeight:700,textDecoration:"none",color:"success.main","&:hover":{textDecoration:"underline"}},children:["View Historical Climate Data Source ",(0,U.jsx)($.Z,{sx:{fontSize:"0.9rem"}})]})]})},{id:2,label:"2. Hurricane Force and 100 MPH Wind",script:"\u201cThe Pacific Palisades Fire <strong>broke out</strong> under extraordinary conditions: powerful, <strong>hurricane-level winds</strong> that reached up to <strong>100 MPH</strong> in some locations; dry and overgrown vegetation due to drought conditions; low humidity; and the Palisades\u2019 steep terrain that ultimately accelerated the fire\u2019s spread.\u201d",truth:(0,U.jsxs)(u.Z,{variant:"body2",sx:{lineHeight:1.6,color:"text.primary"},children:[(0,U.jsx)("strong",{children:"There is no record of either hurricane-force or 100 MPH winds"})," at the start of the fire. Comprehensive audits spanning ",(0,U.jsx)("strong",{children:"3,196 weather stations"})," within a 150-mile radius and a 5,000-foot elevation differential of the fire's origin point confirm no such metrics existed."]})},{id:3,label:"3. Simultaneous Fires Timeline",script:"\u201c<strong>Simultaneous fires</strong>, including the <strong>Sunset</strong>, <strong>Eaton</strong>, and <strong>Hurst</strong> fires, utilized LAFD and county-wide resources and contributed to a challenging and complex response.\u201d",truth:(0,U.jsxs)(R.Z,{spacing:1.5,children:[(0,U.jsxs)(x.Z,{sx:{p:1.5,bgcolor:"#ffffff",borderRadius:1,border:"1px solid #e0e0e0"},children:[(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"800",color:"success.main",component:"span",children:"Eaton Fire: "}),(0,U.jsxs)(u.Z,{variant:"body2",component:"span",color:"text.primary",children:["Ignited 7h 48m after. Handled exclusively by ",(0,U.jsx)("strong",{children:"LACoFD"}),", not LAFD resources. At ignition, ",(0,U.jsx)("strong",{children:"11.32%"})," of structures in Palisades Fire were already burning and LAFD units were ordered to stand down from Palisades Fire 3+ hours prior."]})]}),(0,U.jsxs)(x.Z,{sx:{p:1.5,bgcolor:"#ffffff",borderRadius:1,border:"1px solid #e0e0e0"},children:[(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"800",color:"success.main",component:"span",children:"Hurst Fire: "}),(0,U.jsxs)(u.Z,{variant:"body2",component:"span",color:"text.primary",children:["Ignited ",(0,U.jsx)("strong",{children:"11h 59m after"})," the Palisades Fire. LAFD units were ordered to stand down from Palisades Fire 7+ hours prior. At ignition, ",(0,U.jsx)("strong",{children:"28.24%"})," of Palisades Fire structures were already burning."]})]}),(0,U.jsxs)(x.Z,{sx:{p:1.5,bgcolor:"#ffffff",borderRadius:1,border:"1px solid #e0e0e0"},children:[(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"800",color:"success.main",component:"span",children:"Sunset Fire: "}),(0,U.jsxs)(u.Z,{variant:"body2",component:"span",color:"text.primary",children:["Ignited ",(0,U.jsx)("strong",{children:"1d 7h 27m after"}),". Units were ordered to stand down from Palisades Fire 26+ hours prior. At ignition, ",(0,U.jsx)("strong",{children:"98.03%"})," of destroyed structures were already lost in Palisades Fire."]})]})]})},{id:4,label:"4. They Let Us Burn",script:"\u201cWe believe the LAFD is equipped to handle significant disasters\u2013we\u2019ve shown this through decades of response and impact. <strong>This circumstance was an extreme scenario</strong> that no department, in any city, has had to face before.\u201d",truth:(0,U.jsxs)(R.Z,{spacing:1,children:[(0,U.jsxs)(u.Z,{variant:"body2",sx:{lineHeight:1.6,color:"text.primary"},children:["The LAFD, City of LA, and State Parks administration held documented operational awareness of an active fire line from the ",(0,U.jsx)("strong",{children:"Lachman Fire"}),", which was ",(0,U.jsx)("strong",{children:"permitted to burn for 6 days"})," without full containment. No tactical pre-positioning was initiated despite explicit NWS red flag warnings for incoming Santa Ana winds."]}),(0,U.jsxs)(O.Z,{href:"https://firerebuild.com/palisades-fire/",target:"_blank",rel:"noopener",sx:{dis
1play:"inline-flex",alignItems:"center",gap:.5,fontSize:"0.8125rem",fontWeight:700,textDecoration:"none",color:"success.main","&:hover":{textDecoration:"underline"}},children:["View Palisades Fire Origin ",(0,U.jsx)($.Z,{sx:{fontSize:"0.9rem"}})]})]})}];return(0,U.jsxs)(x.Z,{sx:{width:"100%",maxWidth:1200,mx:"auto",py:4,px:2},children:[(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:3,mb:4,bgcolor:"#ffffff",borderRadius:2,borderTop:"4px solid #101828",boxShadow:"0 1px 3px rgba(0,0,0,0.05)"},children:[(0,U.jsxs)(u.Z,{variant:"caption",fontWeight:"800",color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"1px"},children:['"Tough Q&A - Mayor Bass" (Pages 8\u20139)',(0,U.jsx)("br",{}),(0,U.jsx)(O.Z,{href:"https://s3.us-west-1.amazonaws.com/content.firerebuild.com/palisades-files/records/assets/26/26-298/59559278.pdf",target:"_blank",rel:"noopener",sx:{display:"inline-flex",alignItems:"center",gap:.5,fontSize:"0.8125rem",fontWeight:700,textDecoration:"none",color:"success.main","&:hover":{textDecoration:"underline"}},children:"After Action Review Report"}),"- Records Request 26-298"]}),(0,U.jsx)(u.Z,{variant:"h5",fontWeight:"900",sx:{mt:1,tracking:"-0.02em",color:"text.primary"},children:"Question: \u201cWhat challenges did firefighters face upon arrival?\u201d"})]}),(0,U.jsx)(M.Z,{elevation:0,variant:"outlined",sx:{display:{xs:"none",md:"block"},position:"sticky",top:0,zIndex:10,mb:3,p:2,bgcolor:"#ffffff",borderWidth:"1px",borderColor:"#e0e0e0",borderRadius:2,boxShadow:"0 4px 12px rgba(0,0,0,0.03)"},children:(0,U.jsxs)(d.ZP,{container:!0,spacing:4,children:[(0,U.jsx)(d.ZP,{item:!0,xs:6,children:(0,U.jsxs)(R.Z,{direction:"row",spacing:1.5,alignItems:"center",sx:{pl:1},children:[(0,U.jsx)(q.Z,{sx:{color:"error.main",fontSize:"1.4rem"}}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"900",color:"error.main",sx:{textTransform:"uppercase",letterSpacing:"1px"},children:"Official Scripted Claim"})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:6,children:(0,U.jsxs)(R.Z,{direction:"row",spacing:1.5,alignItems:"center",sx:{pl:1},children:[(0,U.jsx)(X.Z,{sx:{color:"#2e7d32",fontSize:"1.4rem"}}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"900",color:"#2e7d32",sx:{textTransform:"uppercase",letterSpacing:"1px"},children:"Verified Record Data"})]})})]})}),(0,U.jsx)(R.Z,{spacing:5,children:e.map((function(e){return(0,U.jsxs)(x.Z,{sx:{p:{xs:2,md:3},bgcolor:"#fcfcfc",borderRadius:3,border:"1px solid #eaeaea",boxShadow:"0 2px 8px rgba(0,0,0,0.01)"},children:[(0,U.jsx)(x.Z,{sx:{display:"inline-block",mb:2.5,px:1.5,py:.5,bgcolor:"#101828",borderRadius:1},children:(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"900",color:"#ffffff",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:e.label})}),(0,U.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsx)(G.Z,{variant:"outlined",sx:{height:"100%",bgcolor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:2},children:(0,U.jsxs)(V.Z,{sx:{p:2.5},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",sx:{display:{xs:"flex",md:"none"},mb:1.5},children:[(0,U.jsx)(q.Z,{sx:{color:"error.main",fontSize:"1rem"}}),(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"800",color:"error.main",sx:{textTransform:"uppercase"},children:"Official Scripted Claim"})]}),(0,U.jsx)(u.Z,{variant:"body2",sx:{fontStyle:"italic",color:"text.secondary",lineHeight:1.6},dangerouslySetInnerHTML:{__html:e.script}})]})})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsx)(G.Z,{variant:"outlined",sx:{height:"100%",borderLeft:"4px solid #2e7d32",bgcolor:"#fbfdfb",boxShadow:"0 4px 12px rgba(46, 125, 50, 0.02)",borderRadius:2},children:(0,U.jsxs)(V.Z,{sx:{p:2.5},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",sx:{display:{xs:"flex",md:"none"},mb:1.5},children:[(0,U.jsx)(X.Z,{sx:{color:"success.main",fontSize:"1rem"}}),(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"800",color:"success.main",sx:{textTransform:"uppercase"},children:"Verified Record Data"})]}),e.truth]})})})]})]},e.id)}))})]})},ee=n(74401),te=(0,A.Z)(ee.Z);(0,I.ZP)(M.Z)((function(e){var t=e.theme;return{padding:t.spacing(3),marginBottom:t.spacing(3),borderRadius:"8px",borderLeft:"5px solid ".concat(t.palette.error.main),backgroundColor:t.palette.background.paper}})),(0,I.ZP)(x.Z)((function(e){var t=e.theme;return{backgroundColor:"#fff0f0",borderLeft:"3px solid ".concat(t.palette.error.main),padding:t.spacing(2),margin:t.spacing(2,0),borderRadius:"0 6px 6px 0","@media (prefers-color-scheme: dark)":{backgroundColor:"#ccc"}}}));function ne(e){e.id,e.onRouteUpdate;v.useEffect((function(){}));var t=te();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:P()(t.main,t.mainRaised),children:(0,U.jsx)("div",{className:t.container,children:(0,U.jsx)("div",{className:t.
1section,children:(0,U.jsx)(W.Z,{justify:"center",children:(0,U.jsx)(B,{})})})})}),(0,U.jsx)("div",{children:(0,U.jsx)("div",{className:t.container,children:(0,U.jsx)("div",{className:t.section,children:(0,U.jsxs)(W.Z,{justify:"center",sx:{mb:6},children:[(0,U.jsxs)(d.ZP,{item:!0,xs:12,children:[(0,U.jsx)(u.Z,{variant:"h4",sx:{fontWeight:800,mb:2},children:"Government and Media Knowingly Lied About the Palisades Fire"}),(0,U.jsx)(u.Z,{variant:"body1",sx:{color:"text.primary",lineHeight:1.5,mb:2},children:"Local government officials and news networks intentionally fabricated the '100 MPH wind', 'hurricane-force wind', 'climate change', and 'unprecedented conditions' narratives to excuse their failure, exploiting California laws that grant absolute legal immunity and explicitly protect them from consequences when misleading the public."})]}),(0,U.jsx)(d.ZP,{item:!0,xs:12,children:(0,U.jsx)(K,{})})]})})})}),(0,U.jsx)("div",{className:P()(t.main,t.mainRaised),children:(0,U.jsx)("div",{className:t.container,children:(0,U.jsx)("div",{className:t.section,children:(0,U.jsxs)(W.Z,{justify:"center",children:[(0,U.jsxs)(d.ZP,{item:!0,xs:12,children:[(0,U.jsx)(u.Z,{variant:"h4",sx:{fontWeight:800,mb:2},children:"Deconstruction of the False Narrative Through Factual Evidence"}),(0,U.jsx)(u.Z,{variant:"body1",sx:{color:"text.primary",lineHeight:1.5,mb:2},children:"Comparing the Mayor's scripted After Action public relations claims directly against 46 years of climate records (6.4B climate metrics), 3,196 weather stations (5.5M wind metrics), and official government records."})]}),(0,U.jsx)(Q,{})]})})})})]})}var re=n(69952),ie=n(15779),ae=n(2582),oe=n(21860),se=n(46027),ce=n(62601),le=new Date(2025,0,7,0,0),de=new Date(2025,0,9,23,45),ue=((0,Z.X)(de,le),{lat:34.07022,lng:-118.54453}),he=[25,50,75,100,125,150],fe=[1e3,2e3,3e3,4e3,5e3];function xe(e){e.selectedSection,e.setSelectedSection,e.activeTab,e.setActiveTab;var t=e.localSelectedDate;return(0,U.jsx)(x.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2,pb:1},children:(0,U.jsxs)(u.Z,{variant:"h4",fontWeight:"700",color:"text.secondary",align:"center",sx:{width:"100%"},children:["2025 Palisades Fire on ",(0,D.WU)(t,"MMMM dd, yyyy")," at ~",(0,D.WU)(t,"h:mm a")]})})}var me=n(84706),pe=n(48382),ge=n(88132);function ve(e){var t=e.handleDayChange,n=e.currentDayIdx,r=e.localValue,i=e.SLIDER_STEP,a=e.daytimeMarks,o=e.handleSliderChange,s=e.handleSliderChangeCommitted,c=e.formatTooltip;return(0,U.jsxs)(x.Z,{display:"flex",flexDirection:{xs:"column",md:"row"},gap:4,alignItems:"center",sx:{px:1,mt:1},children:[(0,U.jsx)(x.Z,{display:"flex",flexDirection:"column",gap:1,sx:{width:{xs:"100%",md:"auto"},minWidth:280},children:(0,U.jsxs)(pe.Z,{value:Number.isNaN(n)?0:n,exclusive:!0,onChange:t,color:"primary",fullWidth:!0,size:"small",children:[(0,U.jsx)(ge.Z,{value:0,sx:{fontWeight:"bold",py:1.5},children:"Jan 7"}),(0,U.jsx)(ge.Z,{value:1,sx:{fontWeight:"bold",py:1.5},children:"Jan 8"}),(0,U.jsx)(ge.Z,{value:2,sx:{fontWeight:"bold",py:1.5},children:"Jan 9"})]})}),(0,U.jsx)(x.Z,{flexGrow:1,sx:{width:"100%",pt:1},children:(0,U.jsx)(x.Z,{sx:{px:2},children:(0,U.jsx)(me.ZP,{value:r,min:0,max:1425,step:i,marks:a,onChange:o,onChangeCommitted:s,valueLabelDisplay:"auto",valueLabelFormat:c,sx:{height:6,"& .MuiSlider-thumb":{width:20,height:20,transition:"0.15s ease","&:hover, &.Mui-focusVisible":{boxShadow:"0px 0px 0px 8px rgba(25, 118, 210, 0.16)"}},"& .MuiSlider-markLabel":{fontWeight:500,fontSize:"0.78rem",top:"28px"},'& .MuiSlider-markLabel[data-index="4"]':{transform:"translateX(-90%)"}}})})})]})}function be(e){var t=e.activeRadiusIndex,n=e.setActiveRadiusIndex,r=e.activeElevationIndex,i=e.setActiveElevationIndex,a=e.activeWindValue;return(0,U.jsx)(x.Z,{sx:{mt:0,borderBottom:1,borderColor:"divider",bgcolor:"background.paper",borderRadius:1},children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2,width:"100%",borderRadius:1.5,bgcolor:"background.paper",display:"flex",flexDirection:"column",gap:2},children:[(0,U.jsx)(x.Z,{children:(0,U.jsxs)(u.Z,{variant:"body",fontWeight:"700",color:"text.primary",children:[a," Weather Stations within a ",he[t].toLocaleStr
1ing()," Mile Radius and ",fe[r].toLocaleString()," Foot Elevation Difference of the Palisades Fire Origin"]})}),(0,U.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:4},children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:"bold",color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Radius Filter:"}),(0,U.jsx)(re.Z,{variant:"outlined",size:"small","aria-label":"Weather station radius filter group",children:he.map((function(e,r){var i=t===r;return(0,U.jsxs)(ie.Z,{onClick:function(){return n(r)},variant:i?"contained":"outlined",sx:{fontWeight:"bold",textTransform:"none",fontSize:"0.8rem",px:2,backgroundColor:i?"primary.main":"transparent",color:i?"primary.contrastText":"primary.main","&:hover":{backgroundColor:i?"primary.dark":"action.hover"}},children:[e," Mi"]},e)}))})]}),(0,U.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:"bold",color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Elevation Filter:"}),(0,U.jsx)(re.Z,{variant:"outlined",size:"small","aria-label":"Weather station elevation filter group",children:fe.map((function(e,t){var n=r===t;return(0,U.jsxs)(ie.Z,{onClick:function(){return i(t)},variant:n?"contained":"outlined",sx:{fontWeight:"bold",textTransform:"none",fontSize:"0.8rem",px:2,backgroundColor:n?"primary.main":"transparent",color:n?"primary.contrastText":"primary.main","&:hover":{backgroundColor:n?"primary.dark":"action.hover"}},children:[e," ft"]},e)}))})]})]})]})})}var je=n(30381),ye=n.n(je);function Ze(e,t){if("Last Updated"===e&&"string"===typeof t&&t.startsWith("2025")){var n=ye()(t,"YYYY-MM-DDTHH:mm");if(n.isValid())return n.format("MMM D, YYYY [at] h:mm A")}return t}var we=function(e){var t=e.currentStatusData,n=e.currentArcGISData;t&&0!==Object.keys(t).length||(t={guid:"#",Name:"Palisades Fire","Start Date/Time":"2025-01-07","Incident Status":"Active",Location:"Southeast of Palisades Drive, Pacific Palisades",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles City Fire Department",Size:"N/A",Containment:"N/A",DateTime:"No Fire Reported"},n={guid:"#",Size:"N/A",DateTime:"No Fire Reported"}),t.lat=34.07022,t.lng=-118.54453,t.elevation=692;var r="https://www.fire.ca.gov/incidents/2025/1/7/palisades-fire/updates/".concat(t.guid),i=Ze("Last Updated",t.DateTime),a=n.Source?"".concat(n.Source):"#",o=Ze("Last Updated",n.DateTime);return(0,U.jsx)(G.Z,{variant:"outlined",sx:{background:"#ffffff",p:2},children:(0,U.jsxs)(d.ZP,{container:!0,spacing:4,children:[(0,U.jsxs)(d.ZP,{item:!0,xs:12,md:6,sx:{borderRight:{md:"1px solid #e2e8f0"},pr:{md:2}},children:[(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"bold",color:"primary",sx:{mb:2},children:"CalFire Data Stream"}),(0,U.jsxs)(d.ZP,{container:!0,spacing:2,alignItems:"center",children:[(0,U.jsx)(d.ZP,{item:!0,xs:3,children:(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"bold",color:"text.secondary",children:"Size (Acres)"})}),(0,U.jsx)(d.ZP,{item:!0,xs:5,children:(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"bold",color:"text.secondary",children:"Last Updated"})}),(0,U.jsx)(d.ZP,{item:!0,xs:4}),(0,U.jsx)(d.ZP,{item:!0,xs:3,children:(0,U.jsx)(u.Z,{variant:"body2",fontWeight:"medium",color:"text.primary",children:t.Size})}),(0,U.jsx)(d.ZP,{item:!0,xs:5,children:(0,U.jsx)(u.Z,{variant:"body2",color:"text.primary",children:i})}),(0,U.jsx)(d.ZP,{item:!0,xs:4,sx:{display:"flex",justifyContent:"flex-end"},children:r&&(0,U.jsx)(ie.Z,{variant:"contained",color:"primary",href:r,target:"_blank",size:"small",rel:"noopener noreferrer",endIcon:(0,U.jsx)($.Z,{}),sx:{width:"100%","&:hover":{color:"#fff"}},children:"Status Portal"})})]})]}),(0,U.jsxs)(d.ZP,{item:!0,xs:12,md:6,children:[(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"bold",color:"secondary",sx:{mb:2},children:"ArcGIS Data Stream"}),(0,U.jsxs)(d.ZP,{container:!0,spacing:2,alignItems:"center",children:[(0,U.jsx)(d.ZP,{item:!0,xs:3,children:(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"bold",color:"text.secondary",children:"Size (Acres)"})}),(0,U.jsx)(d.ZP,{item:!0,xs:5,children:(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"bold",color:"text.secondary",children:"Last Updated"})}),(0,U.jsx)(d.ZP,{item:!0,xs:4}),(0,U.jsx)(d.ZP,{item:!0,xs:3,children:(0,U.jsx)(u.Z,{variant:"body2",fontWeight:"medium",color:"text.primary",children:n.Size})}),(0,U.jsx)(d.ZP,{item:!0,xs:5,children:(0,U.jsx)(u.Z,{variant:"body2",color:"text.primary",children:o})}
1),(0,U.jsx)(d.ZP,{item:!0,xs:4,sx:{display:"flex",justifyContent:"flex-end"},children:a&&(0,U.jsx)(ie.Z,{variant:"contained",color:"primary",href:a,target:"_blank",size:"small",rel:"noopener noreferrer",endIcon:(0,U.jsx)($.Z,{}),sx:{width:"100%","&:hover":{color:"#fff"}},children:"ArcGIS Map"})})]})]})]})})};function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e){if(null===e)return null;var t=e+180;return(t%=360)<0&&(t+=360),t}function Fe(e){return e.slice(0,16).replace(/[:T]/g,"-")}var Te=function(){var e=(0,h.Z)(g().mark((function e(t){var n,r,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[]);case 2:return n=Fe(t),r="https://content.firerebuild.com/interactive-data/wind/map/map-data-full/".concat(n,".json?2026-07-28"),e.prev=4,e.next=7,fetch(r);case 7:if((i=e.sent).ok){e.next=10;break}throw new Error("HTTP error! status: ".concat(i.status));case 10:return e.next=12,i.json();case 12:if(a=e.sent,!Array.isArray(a)){e.next=15;break}return e.abrupt("return",a.map((function(e){return De(De({},e),{},{direction:Ce(e.direction),prefix:"M"})})));case 15:return e.abrupt("return",[]);case 18:return e.prev=18,e.t0=e.catch(4),console.warn("\u26a0\ufe0f Skipped map data interval: ".concat(r," due to:"),e.t0.message),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=(0,h.Z)(g().mark((function e(t){var n,r,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[]);case 2:return n=Fe(t),r="https://content.firerebuild.com/interactive-data/wind/map/synoptic-all/".concat(n,".json?2026-07-28"),e.prev=4,e.next=7,fetch(r);case 7:if((i=e.sent).ok){e.next=10;break}throw new Error("HTTP error! status: ".concat(i.status));case 10:return e.next=12,i.json();case 12:if(a=e.sent,!Array.isArray(a)){e.next=15;break}return e.abrupt("return",a.map((function(e){return De(De({},e),{},{direction:Ce(e.direction),prefix:"S",lat:Number(e.lat),lng:Number(e.lng)})})));case 15:return e.abrupt("return",[]);case 18:return e.prev=18,e.t0=e.catch(4),console.warn("\u26a0\ufe0f Skipped synoptic data interval: ".concat(r," due to:"),e.t0.message),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(t){return e.apply(this,arguments)}}(),Pe=function(){var e=(0,h.Z)(g().mark((function e(t){var n,r,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[]);case 2:return n=Fe(t),r="https://content.firerebuild.com/interactive-data/wind/map/fems-data/".concat(n,".json?2026-07-28"),e.prev=4,e.next=7,fetch(r);case 7:if((i=e.sent).ok){e.next=10;break}throw new Error("HTTP error! status: ".concat(i.status));case 10:return e.next=12,i.json();case 12:if(a=e.sent,!Array.isArray(a)){e.next=15;break}return e.abrupt("return",a.map((function(e){return De(De({},e),{},{direction:Ce(e.direction),prefix:"F"})})));case 15:return e.abrupt("return",[]);case 18:return e.prev=18,e.t0=e.catch(4),console.warn("\u26a0\ufe0f Skipped FEMS data interval: ".concat(r," due to:"),e.t0.message),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(t){return e.apply(this,arguments)}}(),Ae=function(){var e=(0,h.Z)(g().mark((function e(){var t,n,r,i,a,o,s,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for("https://content.firerebuild.com/interactive-data/wind/map/gridmet-data/",t=new Date("2025-01-07"),n=new Date("2025-01-09"),r=[],i=new Date(t);i<=n;i.setDate(i.getDate()+1))a=i.toISOString().split("T")[0],r.push("".concat("https://content.firerebuild.com/interactive-data/wind/map/gridmet-
1data/").concat(a,".json?2026-07-28"));return e.prev=5,o=r.map((function(e){return fetch(e).then((function(t){if(!t.ok)throw new Error("Failed to fetch ".concat(e));return t.json()}))})),e.next=9,Promise.all(o);case 9:return s=e.sent,c={},s.flat().forEach((function(e){c[e.date]||(c[e.date]=[]),e.th=Ce(e.th),e.prefix="G",c[e.date].push(e)})),e.abrupt("return",c);case 15:return e.prev=15,e.t0=e.catch(5),console.error("\u274c Error loading split gridmet data:",e.t0),e.abrupt("return",{});case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));return function(){return e.apply(this,arguments)}}(),Me=function(){return fetch("https://content.firerebuild.com/interactive-data/shared/2025-palisades.json?2026-07-28").then((function(e){return e.json()})).catch((function(e){return console.error("\u274c Error loading Palisades fire data:",e),null}))};function Ie(e){var t=e.localSelectedDate,n=e.selectedDate,r=(0,v.useState)(null),i=r[0],a=r[1],o=(0,v.useState)(null),s=o[0],c=o[1],l=(0,v.useState)(null),d=l[0],u=l[1];return(0,v.useEffect)((function(){Me().then((function(e){var t;if(e){a(e);null===(t=e.acres)||void 0===t||t["2025-01-10T16:45"]}}))}),[]),(0,v.useEffect)((function(){var e=(0,D.WU)(new Date(n),"yyyy-MM-dd'T'HH:mm");if(null!==i&&void 0!==i&&i.times){var t,r,a,o,s,l=i.times[e];if(l)c((null===(t=i.statuses)||void 0===t?void 0:t[l.status])||null),u((null===(r=i.structures)||void 0===r||null===(a=r[l.acre])||void 0===a?void 0:a.arcgis)||(null===(o=i.structures)||void 0===o?void 0:o["2025-01-07T11:19"].arcgis));else c(null),u(null===(s=i.structures)||void 0===s?void 0:s["2025-01-07T11:19"].arcgis)}}),[n,t,i]),(0,U.jsx)(x.Z,{sx:{mt:0,borderBottom:1,borderColor:"divider",bgcolor:"background.paper",borderRadius:1},children:(0,U.jsx)(M.Z,{variant:"outlined",sx:{p:2,width:"100%",borderRadius:1.5,bgcolor:"background.paper",display:"flex",flexDirection:"column",gap:2},children:(0,U.jsx)(we,{currentStatusData:s,currentArcGISData:d})})})}var We=["children","value","index"];function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e){var t=e.children,n=e.value,r=e.index,i=(0,m.Z)(e,We);return(0,U.jsx)("div",Oe(Oe({role:"tabpanel",hidden:n!==r,id:"timeline-tabpanel-".concat(r),"aria-labelledby":"timeline-tab-".concat(r),style:{width:"100%"}},i),{},{children:(0,U.jsx)(x.Z,{sx:{display:n===r?"block":"none"},children:t})}))}function Le(e){var t=e.selectedSection,n=e.setSelectedSection,r=e.selectedDate,i=e.onDateChange,a=e.selectedTab,o=e.onTabChange,s=e.activeRadiusIndex,c=e.setActiveRadiusIndex,l=e.activeElevationIndex,u=e.setActiveElevationIndex,h=e.activeWindValue,f=e.fullMenu,m=void 0===f||f,p=a,g=o,b=new Date(r),j=(0,ae.b)(b),y=(0,ae.b)(new Date(le)),w=Math.round((0,Z.X)(j,y)/1440),S=(0,Z.X)(b,j),C=(0,v.useState)(S),F=C[0],T=C[1];(0,v.useEffect)((function(){T(S)}),[S]);var k=function(e,t){g(t)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(M.Z,{elevation:3,sx:{p:3,display:"flex",flexDirection:"column",gap:0,borderRadius:2},children:[(0,U.jsx)(xe,{selectedSection:t,setSelectedSection:n,activeTab:p,setActiveTab:g,localSelectedDate:b}),(0,U.jsx)(L.Z,{}),(0,U.jsx)(ve,{handleDayChange:function(e,t){if(null!==t){var n=(0,oe.E)((0,ae.b)(new Date(le)),t);(n=(0,se.m)(n,F))<new Date(le)&&(n=new Date(le)),n>new Date(de)&&(n=new Date(de)),i(n,!0)}},currentDayIdx:w,localValue:F,SLIDER_STEP:15,daytimeMarks:[{value:0,label:"12:00 AM"},{value:360,label:"6:00 AM"},{value:720,label:"12:00 PM"},{value:1080,label:"6:00 PM"},{value:1425,label:"11:45 PM"}],handleSliderChange:function(e,t){T(t)},handleSliderChangeCommitted:function(e,t){var n=(0,se.m)((0,ae.b)(new Date(r)),t);n>new Date(de)&&(n=new Date(de)),i(n,!0)},formatTooltip:function(e){var t=(0,se.m)(j,e);return(0,D.WU)(t,"h:mm a")}})]}),!0===m&&(0,U.jsxs)(M.Z,{elevation:3,sx:{p:3,display:"flex",flexDirection:"column",gap:3,borderRadius:2,mt:2},children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,sx:{pt:0},children:(0,U.jsx)(x.Z,{sx:{width:"100%",mb:0},children:(0,U.jsxs)(re.Z,{variant:"outlined",size:"large",fullWidth:!0,"aria-label":"Geospatial Data Layer Selection Group",sx:{height:"56px","& .MuiButtonGroup-grouped":{textTransform:"none",fontWeight:"bold",fontSize:"0.95rem",display:"flex",alignItems:"center",justifyContent:"center",gap:1.5}},children:[(0,U.jsxs)(ie.Z,{onClick:function(e){return k(0,0)},variant:0===p?"contained":"outlined",sx:{borderColor:"#0288d1",color:0===
1p?"#fff":"#0288d1",backgroundColor:0===p?"#0288d1":"transparent","&:hover":{backgroundColor:0===p?"#01579b":"rgba(2, 136, 209, 0.08)",borderColor:"#0288d1"}},children:[(0,U.jsx)(N.Z,{sx:{color:0===p?"#fff":"#0288d1"}}),"Wind Data Layer"]}),(0,U.jsxs)(ie.Z,{onClick:function(e){return k(0,1)},variant:1===p?"contained":"outlined",sx:{borderColor:"#ed6c02",color:1===p?"#fff":"#ed6c02",backgroundColor:1===p?"#ed6c02":"transparent","&:hover":{backgroundColor:1===p?"#e65100":"rgba(237, 108, 2, 0.08)",borderColor:"#ed6c02"}},children:[(0,U.jsx)(H.Z,{sx:{color:1===p?"#fff":"#ed6c02"}}),"Fires Data Layer"]}),(0,U.jsxs)(ie.Z,{onClick:function(e){return k(0,2)},variant:2===p?"contained":"outlined",sx:{borderColor:"#90A4AE",color:2===p?"#fff":"#455A64",backgroundColor:2===p?"#90A4AE":"transparent","&:hover":{backgroundColor:2===p?"#607D8B":"rgba(144, 164, 174, 0.08)",borderColor:"#90A4AE"}},children:[(0,U.jsx)(ce.Z,{sx:{color:2===p?"#fff":"#90A4AE"}}),"Structures Data Layer"]})]})})}),(0,U.jsx)(Re,{value:p,index:0,children:(0,U.jsx)(be,{activeRadiusIndex:s,setActiveRadiusIndex:c,activeElevationIndex:l,setActiveElevationIndex:u,activeWindValue:h})}),(0,U.jsx)(Re,{value:p,index:1,children:(0,U.jsx)(Ie,{localSelectedDate:b,selectedDate:r})})]})]})}var Ne=n(15295),ze=n(15217),He=n(69611),Ue=n(90116),Be=n(17674),Ge=n(50594),Ve=n(326),_e=n(81323),Ye=function(e){var t=e.franklinCoords,n=(0,_e.Sx)(),r=(0,v.useRef)(null),i=(0,v.useRef)(null);return(0,v.useEffect)((function(){var e,a;if(n&&t&&null!==(e=window.google)&&void 0!==e&&null!==(a=e.maps)&&void 0!==a&&a.Polygon){r.current&&r.current.setMap(null),i.current&&i.current.setMap(null);var o=[];try{if(Array.isArray(t[0][0][0]))o=t.map((function(e){return e[0].map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))}));else{if(!Array.isArray(t[0][0]))return void console.error("\u26a0\ufe0f Unexpected GeoJSON structure:",t);o=t.map((function(e){return e.map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))}))}var s=new window.google.maps.Polygon({paths:o,strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.75});s.setMap(n),r.current=s;var c=new window.google.maps.LatLngBounds;o.flat().forEach((function(e){return c.extend(e)}));var l=c.getCenter(),d=new window.google.maps.Marker({position:{lat:l.lat()+.002,lng:l.lng()},map:n,label:{text:"Franklin Fire",color:"#FFFFFF",fontSize:"16px",fontWeight:"bold",className:"fire-label-background"},icon:{path:window.google.maps.SymbolPath.CIRCLE,scale:0}});i.current=d,console.log("\u2705 Polygon + Label drawn successfully")}catch(u){console.error("\u274c Error drawing polygon:",u)}}}),[n,t]),null},Je=function(e){var t=e.acreData,n=(0,_e.Sx)(),r=(0,v.useRef)(null);return(0,v.useEffect)((function(){var e;if(n&&(r.current&&(r.current.setMap(null),r.current=null),null!==t&&void 0!==t&&null!==(e=t.geometry)&&void 0!==e&&e.coordinates&&"MultiPolygon"===t.geometry.type)){try{var i=t.geometry.coordinates.map((function(e){return e[0].map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))})),a=new window.google.maps.Polygon({paths:i,strokeColor:"#FF0000",strokeOpacity:.6,strokeWeight:1.5,fillColor:"#FF0000",fillOpacity:.15});a.setMap(n),r.current=a,console.log("\ud83d\udfe5 Static Palisades Final Polygon drawn")}catch(o){console.error("\u274c Error drawing PalisadesFinalPolygon:",o)}return function(){r.current&&r.current.setMap(null)}}}),[n,t]),null},Ke=function(e){var t=e.acreData,n=(0,_e.Sx)(),r=(0,v.useRef)(null);return(0,v.useEffect)((function(){var e;if(n){if(r.current&&(r.current.setMap(null),r.current=null),null!==t&&void 0!==t&&null!==(e=t.geometry)&&void 0!==e&&e.coordinates&&"MultiPolygon"===t.geometry.type){try{var i=t.geometry.coordinates.map((function(e){return e[0].map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))})),a=new window.google.maps.Polygon({paths:i,strokeColor:"#FF0000",strokeOpacity:.9,strokeWeight:2,fillColor:"#FF0000",fillOpacity:.75});a.setMap(n),r.current=a,console.log("\ud83d\udd25 PalisadesPolygon drawn with",i.length,"subpaths")}catch(o){console.error("\u274c Error drawing PalisadesPolygon:",o)}return function(){r.current&&r.current.setMap(null)}}console.log("\ud83e\uddf9 No acre geometry available")}}),[n,t]),null},qe={lat:34.07022,lng:-118.54453},Xe=function(){var e=(0,U.jsxs)(x.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",transform:"translateY(-10px)"},children:[(0,U.jsx)(x.Z,{sx:{backgroundColor:"rgba(0, 0, 0, 0.7)",borderRadius:"8px",padding:"4px 8px",color:"#FFFFFF",fontSize:"16px",fontWeight:"bold",marginBottom:"4px",whiteSpace:"nowrap"},children:"Palisades Fire"}),(0,U.jsx)(x.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 1.0)",boxShadow:"0 0 6px rgba(0,0,0,1.0)"},children:(0,U.jsx)(H.Z,{sx:{color:"#FF4500",fontSize:24}})})]});return(0,U.jsx)(_e._Q,{position:qe,children:e})},$e=v.memo((function(e){var t,n=e.point,r=e.onClick;if(!n)return console.error('WindMarkerIcon requires a "point" object prop.'),null;t="undefined"===typeof n.speedavg||null===n.speedavg?"MISSING_DATA":0===n.speedavg?"CALM_ZERO_NO_ARROW":"NUMBER_ARROW";var i=function(e){var t=parseFloat(e)||0,n=(t=Math.min(100,Math.max(0,t)))/100,r=Math.round(255*(1-n)),i=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},a=i(255),o=i(r),s=i(0);return"#".concat(a).concat(o).concat(s)}(n.speedavg),a=n.speedavg||0===n.speedavg?"".concat(Math.round(n.speedavg)):"N/A",o=n.direction||0;n.vs&&n.th&&(a=Math.round(n.vs),o=n.th,t="NUMBER_ARROW");var s=36,c=(0,U.jsx)(x.Z,{sx:{width:30,height:30,borderRadius:"50%",backgroundColor:i,border:"".concat(2,"px solid black"),display:"flex",alignItems:"center",justifyContent:"center",zIndex:2},children:(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:"bold",color:"black",lineHeight:1,fontSize:14},children:a})}),l=(0,U.jsxs)(x.Z,{sx:{width:s,height:s,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[c,(0,U.jsx)(x.Z,{sx:{position:"absolute",left:"50%",top:"50%",transformOrigin:"center center",transform:"translate(-50%, -50%) rotate(".concat(o,"deg) translateY(-").concat(26,"px)"),zIndex:1,pointerEvents:"none"},children:(0,U.jsx)("svg",{width:12,height:18,viewBox:"0 0 10 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,U.jsx)("polygon",{points:"5,0 10,18 0,18",fill:i,stroke:"black",strokeWidth:"0.8"})})})]}),d=(0,U.jsx)(x.Z,{sx:{width:s,height:s,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:c}
1),h=(0,U.jsx)(x.Z,{sx:{width:34,height:34,borderRadius:"50%",backgroundColor:"#A0A0A0",border:"".concat(2,"px solid black"),boxShadow:"0 0 4px rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:"bold",color:"black",lineHeight:1,fontSize:12},children:"N/A"})});return(0,U.jsx)(x.Z,{onClick:function(e){e.stopPropagation(),r(n)},sx:{cursor:"pointer",width:s,height:s,borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",transform:"translate(-50%, -50%)",zIndex:10,transition:"transform 0.15s ease-in-out","&:hover":{transform:"translate(-50%, -50%) scale(1.4)"},boxShadow:"0 0 4px rgba(0,0,0,0.6)"},children:"CALM_ZERO_NO_ARROW"===t?d:"NUMBER_ARROW"===t?l:"MISSING_DATA"===t?h:(0,U.jsx)(x.Z,{sx:{width:20,height:20,borderRadius:"50%",backgroundColor:"red",boxShadow:"0 0 4px rgba(0,0,0,0.5)"}})})})),Qe=function(e){var t=e.point,n=e.handleOnCloseClick,r="FIRE"===t.station,i=t.speedavg||0===t.speedavg?"".concat(Math.round(t.speedavg)," mph"):"N/A",a=t.speedhigh||0===t.speedhigh?"".concat(t.speedlow," - ").concat(t.speedhigh," mph"):"N/A",o=t.gusthigh||0===t.gusthigh?"".concat(t.gustlow," - ").concat(t.gusthigh," mph"):"N/A",s=t.elevation||0===t.elevation?"".concat(t.elevation," ft"):"N/A",c=t.height||0===t.height?"".concat(t.height," ft"):"N/A",l="".concat(t.direction,"\xb0"),d="OPERATIONAL";"undefined"==typeof t.speedavg&&(d="BROKEN"),t.vs&&t.th&&(i=Math.round(t.vs),l="".concat(t.th,"\xb0"),d="GRIDMET");var h="";return h="GRIDMET"===d?"GRIDMET":"".concat(t.station),(0,U.jsxs)(x.Z,{sx:{mt:0,padding:1,backgroundColor:r?"#ff000d":"#f0f8ff",borderRadius:"5px",color:r?"#FFF":"#333",minWidth:150,position:"relative"},children:[(0,U.jsx)(He.Z,{"aria-label":"close",onClick:n,size:"small",sx:{position:"absolute",right:4,top:4,color:r?"#FFF":"#333","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.1)"}},children:(0,U.jsx)(Ge.Z,{fontSize:"small"})}),(0,U.jsx)(u.Z,{variant:"h6",sx:{mt:0,mb:1,color:r?"#FFF":"#0056b3"},children:h}),"BROKEN"===d?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(u.Z,{children:(0,U.jsx)("strong",{children:"No Data Recorded"})}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Elevation:"})," ",s]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Station Height:"})," ",c]})]}):"OPERATIONAL"===d&&"M"===t.prefix?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Sustained Speed:"})," ",i]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Speed Range:"})," ",a]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Gust Range:"})," ",o]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Elevation:"})," ",s]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Station Height:"})," ",c]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Wind Direction:"})," ",l]})]}):"OPERATIONAL"===d&&"S"===t.prefix?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Sustained Speed:"})," ",i]}),t.speedhigh&&(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Peak Speed:"})," ",t.speedhigh," mph"]}),t.gustavg&&(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Gust:"})," ",t.gustavg," mph"]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Elevation:"})," ",s]}),l&&(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Wind Direction:"})," ",l]})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Sustained Speed:"})," ",i]}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)("strong",{children:"Wind Direction:"})," ",l]})]}),(0,U.jsx)(ie.Z,{variant:"contained",size:"small",sx:{mt:2,backgroundColor:r?"white":"#1976d2",color:r?"#ff000d":"white","&:hover":{backgroundColor:r?"#ddd":"#1565c0"}},onClick:function(e){var n;e.stopPropagation(),r&&(n="https://www.fire.ca.gov/incidents/2025/1/7/palisades-fire"),t.code?n="https://www.climatologylab.org/gridmet.html":(n=t.station.length>4?"https://www.wunderground.com/dashboard/pws/".concat(t.station,"/table/2025-01-07/2025-01-07/daily"):"https://www.wunderground.com/history/daily/us/ca/los-angeles/".concat(t.station,"/date/2025-1-7"),"CBEV"!==t.station&&"CCHB"!==t.station&&"CLEO"!==t.station&&"CMAL"!==t.station&&"CMCN"!==t.station||(n="https://fems.fs2c.usda.gov/"),"S"===t.prefix&&(n="https://download.synopticdata.com/#a/".concat(t.station))),window.open(n,"_blank")},children:"View Details"})]})},et=n(33057);function tt(e){var t=e.isLoading,n=e.loadingPercentage;return t?(0,U.jsxs)(x.Z,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.85)",zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,p:4},children:[(0,U.jsx)(l.Z,{color:"primary"}),(0,U.jsx)(x.Z,{sx:{width:"300px"},children:(0,U.jsx)(et.Z,{variant:"determinate",value:n})}),(0,U.jsxs)(u.Z,{variant:"body2",color:"text.secondary",fontWeight:"bold",textAlign:"center",children:["Assembling Meteorological Timelines... ",n,"%",(0,U.jsx)("br",{}),"3,042 Weather Stations and Fire Map Data"]})]}):null}var nt=function(e){var t=parseFloat(e)||0,n=(t=Math.min(100,Math.max(0,t)))/100,r=Math.round(255*(1-n)),i=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t};return"#".concat(i(255)).concat(i(r)).concat(i(0))};function rt(){var e=[0,15,30,45,60,75],t=Array.from({length:11}
1,(function(e,t){var n=10*t;return"".concat(nt(7.5*t)," ").concat(n,"%")})).join(", ");return(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:1.5,px:2,width:"100%",borderRadius:1.5,bgcolor:"background.paper",display:"flex",flexDirection:"column",gap:1},children:[(0,U.jsx)(u.Z,{variant:"caption",fontWeight:"700",color:"text.primary",sx:{tracking:.5},children:"Yellow to Red range visualizes sustained wind speed. 75 mph sustained wind speed qualifies as a hurricane force wind."}),(0,U.jsxs)(x.Z,{sx:{width:"100%"},children:[(0,U.jsx)(x.Z,{sx:{height:6,width:"100%",borderRadius:.5,background:"linear-gradient(to right, ".concat(t,")"),mb:.5}}),(0,U.jsx)(x.Z,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:e.map((function(t,n){var r=nt(t),i="center";return 0===n&&(i="flex-start"),n===e.length-1&&(i="flex-end"),(0,U.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",justifyContent:i,gap:.5,minWidth:"30px"},children:[0!==n&&(0,U.jsx)(x.Z,{sx:{width:4,height:4,borderRadius:"50%",bgcolor:r}}),(0,U.jsx)(u.Z,{variant:"caption",fontSize:"0.7rem",fontWeight:"600",color:"text.secondary",children:t}),0===n&&(0,U.jsx)(x.Z,{sx:{width:4,height:4,borderRadius:"50%",bgcolor:r}})]},t)}))})]})]})}var it="https://content.firerebuild.com",at="".concat(it,"/data/cal-fire"),ot="".concat(it,"/assets"),st={D2:{label:"Destroyed (>50%)",icon:"".concat(ot,"/images/icons/destroyed.png"),labelColor:"#F44336"},D4:{label:"Major (26-50%)",icon:"".concat(ot,"/images/icons/major.png"),labelColor:"#FF5722"},D5:{label:"Minor (10-25%)",icon:"".concat(ot,"/images/icons/minor.png"),labelColor:"#FF9800"},D1:{label:"Affected (1-9%)",icon:"".concat(ot,"/images/icons/affected.png"),labelColor:"#FFC107"},D0:{label:"No Damage",icon:"".concat(ot,"/images/icons/smoke.png"),labelColor:"#4CAF50"},D3:{label:"Inaccessible",icon:"".concat(ot,"/images/icons/inaccessible.png"),labelColor:"#9E9E9E"}},ct={T12:"Single Family Residence Multi Story",T13:"Single Family Residence Single Story",T09:"Multi Family Residence Multi Story",T10:"Multi Family Residence Single Story",T05:"Mobile Home Double Wide",T06:"Mobile Home Single Wide",T07:"Mobile Home Triple Wide",T08:"Motor Home",T11:"School",T00:"Church",T01:"Commercial Building Multi Story",T02:"Commercial Building Single Story",T03:"Infrastructure",T04:"Mixed Commercial/Residential",T14:"Utility Misc Structure"},lt={T12:"Single-Family Homes - Standalone houses, including single-story and multi- story residences",T13:"Single-Family Homes - Standalone houses, including single-story and multi- story residences",T09:"Multi-Family Units - Duplexes, apartments, and condominiums with shared walls.",T10:"Multi-Family Units - Duplexes, apartments, and condominiums with shared walls.",T05:"Manufactured and Mobile Homes - Prefabricated housing units placed on either permanent or non-permanent foundations.",T06:"Manufactured and Mobile Homes - Prefabricated housing units placed on either permanent or non-permanent foundations.",T07:"Manufactured and Mobile Homes - Prefabricated housing units placed on either permanent or non-permanent foundations.",T08:"Manufactured and Mobile Homes - Prefabricated housing units placed on either permanent or non-permanent foundations.",T11:"School",T00:"Church",T01:"Commercial Building Multi Story",T02:"Commercial Building Single Story",T03:"Public Infrastructure - Schools, fire stations, hospitals, and government buildings that provide essential services.",T04:"Mixed Commercial/Residential",T14:"Equal or more than 120 ft2 and is non- habitable; Required to have a permanent foundation, four walls, and a roof, including: Garages and Carports; Barns and Agricultural Buildings; Well Houses and Utility Structures; and Storage Sheds."},dt={T12:"Residential Structures",T13:"Residential Structures",T09:"Residential Structures",T10:"Residential Structures",T05:"Residential Structures",T06:"Residential Structures",T07:"Residential Structures",T08:"Residential Structures",T11:"Commercial and Public Buildings",T00:"Commercial and Public Buildings",T01:"Commercial and Public Buildings",T02:"Commercial and Public Buildings",T03:"Commercial and Public Buildings",T04:"Commercial and Public Buildings",T14:"Outbuildings"},ut={"2025 Palisades":"".concat(at,"/fire-structures/2025-palisades.json"),"2025 Eaton":"".concat(at,"/fire-structures/2025-eaton.json"),"2024 Franklin":"".concat(at,"/fire-structures/2024-franklin.json")},ht=("".concat(at,"/fire-status-acre/2025-palisades.json"),"".concat(at,"/fire-status-acre/2025-eaton.json"),"".concat(at,"/fire-status-acre/2024-franklin.json"),"".concat(at,"/fire-maps/data.json"),"".concat(at,"/fire-maps/fires"),{"2025 Palisades":"2025-palisades-fire","2025 Eaton":"2025-eaton-fire","2024 Franklin":"2024-franklin-fire"}),ft=v.memo((function(e){var t=e.paths,n=e.strokeColor,r=e.strokeOpacity,i=e.strokeWeight,a=e.fillColor,o=e.fillOpacity,s=(0,_e.Sx)();return(0,v.useEffect)((function(){if(s&&t){var e=new window.google.maps.Polygon({paths:t,
1strokeColor:n,strokeOpacity:r,strokeWeight:i,fillColor:a,fillOpacity:o,map:s});return function(){return e.setMap(null)}}}),[s,t,n,r,i,a,o]),null}));ft.displayName="PolygonElement";var xt=v.memo((function(e){var t=e.center,n=e.radius,r=e.strokeColor,i=e.strokeOpacity,a=e.strokeWeight,o=e.fillColor,s=e.fillOpacity,c=(0,_e.Sx)();return(0,v.useEffect)((function(){if(c&&t){var e=new window.google.maps.Circle({center:t,radius:n,strokeColor:r,strokeOpacity:i,strokeWeight:a,fillColor:o,fillOpacity:s,map:c});return function(){return e.setMap(null)}}}),[c,t,n,r,i,a,o,s]),null}));function mt(e){var t=e.filteredStructures,n=e.selected,r=e.setSelected,i=e.addressCircle,a=e.acrePolygons,o=void 0===a?[]:a,s=e.loadedFirePerimeters,c=void 0===s?[]:s,l=(e.mapRef,(0,_e.Sx)()),d=(0,v.useRef)([]),u=(0,v.useRef)(null);return(0,v.useEffect)((function(){if(n&&l){l.setZoom(19);var e={lat:n.lat,lng:n.lng};l.panTo(e),l.panBy(-300,0),u.current||(u.current=new window.google.maps.InfoWindow),u.current.setContent('\n        <div style="padding: 4px; font-family: Roboto, sans-serif;">\n          <div style="font-weight: bold; font-size: 14px;">'.concat(dt[n.type]||"Unknown Category",'</div>\n          <div style="font-size: 12px; color: #666; margin-top: 2px;">Details available in Fire Damage Panel.</div>\n        </div>\n      ')),u.current.setPosition(e),u.current.open(l);var t=u.current.addListener("closeclick",(function(){r(null)}));return function(){return window.google.maps.event.removeListener(t)}}!n&&u.current&&u.current.close()}),[n,l,r]),(0,v.useEffect)((function(){if(l){d.current.forEach((function(e){e.setMap(null)})),d.current=[];var e=t.map((function(e){var t,n=null===(t=st[e.damage])||void 0===t?void 0:t.icon,i=new window.google.maps.Marker({position:{lat:e.lat,lng:e.lng},map:l,title:e.address,icon:n?{url:n,scaledSize:new window.google.maps.Size(24,24),anchor:new window.google.maps.Point(12,12)}:void 0});return i.addListener("click",(function(){r(e)})),i}));return d.current=e,function(){d.current.forEach((function(e){e.setMap(null)}))}}}),[t,l,r]),(0,U.jsxs)(U.Fragment,{children:[o.map((function(e,t){return(0,U.jsx)(ft,{paths:e,strokeColor:"#FF0000",strokeOpacity:.8,strokeWeight:2,fillColor:"#FF0000",fillOpacity:.4},"acre-poly-".concat(t))})),c.map((function(e){return e.paths.map((function(t,n){return(0,U.jsx)(ft,{paths:t,strokeColor:e.strokeColor,strokeOpacity:.8,strokeWeight:2,fillColor:e.fillColor,fillOpacity:.5},"".concat(e.id,"-").concat(n))}))})).flat(),i&&(0,U.jsx)(xt,{center:i.center,radius:i.radius,strokeColor:"#FF0000",strokeOpacity:.8,strokeWeight:2,fillColor:"#FF0000",fillOpacity:.35})]})}xt.displayName="CircleElement";var pt=v.memo(mt),gt=n(80542),vt=n(60390),bt=n(81905),jt=n(13437),yt=n(34845),Zt=n(82773),wt=n(23508),St=n(20724),Dt=n(13379);var Ct=function(e){var t,n,r,i=e.selected,a=e.mainSelectedFire,o=(0,v.useState)(0),s=o[0],c=o[1];return(0,v.useEffect)((function(){i&&c(0)}),[i]),i?(0,U.jsx)(x.Z,{sx:{p:2,overflowY:"auto",maxHeight:"calc(100vh - 120px)",width:"660px"},children:(0,U.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,U.jsxs)(d.ZP,{item:!0,md:6,width:"300px",children:[(0,U.jsxs)(u.Z,{variant:"subtitle1",children:[(0,U.jsx)("strong",{children:"Damage:"})," ",null===(t=st[i.damage])||void 0===t?void 0:t.label]}),(0,U.jsxs)(u.Z,{variant:"body2",children:[(0,U.jsx)("strong",{children:"Category:"})," ",dt[i.type]]}),(0,U.jsxs)(u.Z,{variant:"body2",children:[(0,U.jsx)("strong",{children:"Type:"})," ",ct[i.type]]}),(0,U.jsxs)(u.Z,{variant:"body2",children:[(0,U.jsx)("strong",{children:"Details:"})," ",lt[i.type]]})]}),(0,U.jsx)(d.ZP,{item:!0,md:6,width:"300px",children:(null===(n=i.images)||void 0===n?void 0:n.length)>0?(0,U.jsxs)(x.Z,{sx:{mt:2,display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,U.jsx)("img",{src:"".concat((r=ht[a],r?"https://content.firerebuild.com/assets/fires/".concat(r,"/images/"):"")).concat(i.images[s],".jpg"),alt:"Structure Image ".concat(s+1),style:{maxWidth:"100%",maxHeight:"200px",objectFit:"contain",borderRadius:"4px"}}),(0,U.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",mt:1,width:"100%"},children:[(0,U.jsx)(He.Z,{onClick:function(){var e;i&&(null===(e=i.images)||void 0===e?void 0:e.length)>0&&c((function(e){return 0===e?i.images.length-1:e-1}))},size:"small",disabled:i.images.length<=1,children:(0,U.jsx)(St.Z,{fontSize:"small"})}),(0,U.jsxs)(u.Z,{variant:"caption",sx:{mx:1},children:[s+1," / ",i.images.length]}),(0,U.jsx)(He.Z,{onClick:function(){var e;i&&(null===(e=i.images)||void 0===e?void 0:e.length)>0&&c((function(e){return e===i.images.length-1?0:e+1}))},size:"small",disabled:i.images.length<=1,children:(0,U.jsx)(Dt.Z,{fontSize:"small"})})]})]}):(0,U.jsx)(u.Z,{variant:"caption",sx:{mt:1},children:"No images available for this structure."})})]})}):(0,U.jsx)(U.Fragment,{})},Ft=n(90267),Tt=n(12608),kt=n(69308),Pt=n(63343);var At=function(e){var t=e.onPlaceSelected,n=e.label,r=void 0===n?"Search Address (Autocomplete)":n,i=(0,v.useState)(""),a=i[0],o=i[1],s=(0,v.useRef)(null),c=(0,_e.kY)("places");return(0,v.useEffect)((function(){if(c&&s.current){var e=new c.Autocomplete(s.current,{componentRestrictions:{country:"us"},types:["address"],fields:["address_components","geometry.location","formatted_address","place_id","name"]}),n=e.addListener("place_changed",(function(){var n=e.getPlace();n.geometry&&t&&(t(n),o(n.formatted_address||n.name||""))}));return function(){google.maps.event.removeListener(n)}}}),[c,t]),(0,U.jsx)(Ft.Z,{fullWidth:!0,label:r,variant:"outlined",size:"small",value:a,onChange:function(e){return o(e.target.value)},inputRef:s,InputProps:{startAdornment:(0,U.jsx)(Tt.Z,{position:"start",children:(0,U.jsx)(kt.Z,{sx:{color:"text.secondary"}})}),endAdornment:a&&(0,U.jsx)(Tt.Z,{position:"end",children:(0,U.jsx)(He.Z,{"aria-label":"clear input",onClick:function(){o(""),s.current&&s.current.focus()},edge:"end",size:"small",children:(0,U.jsx)(Pt.Z,{})})})}})};var Mt=function(e){e.selectedDataset,e.setSelectedDataset;var t=e.damageFilters,n=e.handleDamageFilterChange,r=e.handleSelectAllDamage,i=e.damageTotals,a=e.structureFilters,o=e.handleStructureFilterChange,s=e.handleSelectAllStructureTypes,c=e.structureTypeTotals,l=e.selected,d=e.mainSelectedFire,h=e.onAddressSearch,f=(0,v.useState)(""),m=(f[0],f[1],(0,v.useMemo)((function(){return Object.values(t).every(Boolean)}),[t])),p=(0,v.useMemo)((function(){return Object.values(a).every(Boolean)}
1),[a]),g=(0,v.useCallback)((function(e){e.geometry&&e.geometry.location&&h&&h(e.formatted_address||e.name,{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()})}),[h]);return(0,U.jsxs)(x.Z,{children:[(0,U.jsx)(u.Z,{variant:"h6",sx:{mt:2,mb:1},children:"Address"}),(0,U.jsx)(x.Z,{sx:{mb:2},children:(0,U.jsx)(At,{onPlaceSelected:g})}),(0,U.jsx)(L.Z,{sx:{my:2}}),(0,U.jsxs)(gt.Z,{children:[(0,U.jsx)(Zt.Z,{expandIcon:(0,U.jsx)(wt.Z,{}),"aria-controls":"damage-filter-content",id:"damage-filter-header",children:(0,U.jsx)(u.Z,{variant:"subtitle1",children:"Filter by Damage"})}),(0,U.jsx)(vt.Z,{children:(0,U.jsxs)(bt.Z,{children:[(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:m,onChange:r}),label:"Select/Deselect All"}),Object.entries(st).map((function(e){var r=(0,Be.Z)(e,2),a=r[0],o=r[1],s=o.label,c=o.icon;return(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:t[s],onChange:n(s)}),label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("img",{src:c,alt:"".concat(s," icon"),style:{marginRight:"8px",verticalAlign:"middle"}}),"".concat(s," (").concat(i[s]||0,")")]})},a)}))]})})]}),(0,U.jsxs)(gt.Z,{children:[(0,U.jsx)(Zt.Z,{expandIcon:(0,U.jsx)(wt.Z,{}),"aria-controls":"structure-type-filter-content",id:"structure-type-filter-header",children:(0,U.jsx)(u.Z,{variant:"subtitle1",children:"Filter by Type"})}),(0,U.jsx)(vt.Z,{children:(0,U.jsxs)(bt.Z,{children:[(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:p,onChange:s}),label:"Select/Deselect All"}),(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Homes"}),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T12],onChange:o(ct.T12)}),label:"".concat(ct.T12," (").concat(c[ct.T12]||0,")")},"T12"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T13],onChange:o(ct.T13)}),label:"".concat(ct.T13," (").concat(c[ct.T13]||0,")")},"T13"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T09],onChange:o(ct.T09)}),label:"".concat(ct.T09," (").concat(c[ct.T09]||0,")")},"T09"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T10],onChange:o(ct.T10)}),label:"".concat(ct.T10," (").concat(c[ct.T10]||0,")")},"T10"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T05],onChange:o(ct.T05)}),label:"".concat(ct.T05," (").concat(c[ct.T05]||0,")")},"T05"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T06],onChange:o(ct.T06)}),label:"".concat(ct.T06," (").concat(c[ct.T06]||0,")")},"T06"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T07],onChange:o(ct.T07)}),label:"".concat(ct.T07," (").concat(c[ct.T07]||0,")")},"T07"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T08],onChange:o(ct.T08)}),label:"".concat(ct.T08," (").concat(c[ct.T08]||0,")")},"T08"),(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Commercial and Public Buildings"}),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T11],onChange:o(ct.T11)}),label:"".concat(ct.T11," (").concat(c[ct.T11]||0,")")},"T11"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T00],onChange:o(ct.T00)}),label:"".concat(ct.T00," (").concat(c[ct.T00]||0,")")},"T00"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T01],onChange:o(ct.T01)}),label:"".concat(ct.T01," (").concat(c[ct.T01]||0,")")},"T01"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T02],onChange:o(ct.T02)}),label:"".concat(ct.T02," (").concat(c[ct.T02]||0,")")},"T02"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T03],onChange:o(ct.T03)}),label:"".concat(ct.T03," (").concat(c[ct.T03]||0,")")},"T03"),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T04],onChange:o(ct.T04)}),label:"".concat(ct.T04," (").concat(c[ct.T04]||0,")")},"T04"),(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Outbuildings"}),(0,U.jsx)(jt.Z,{control:(0,U.jsx)(yt.Z,{checked:a[ct.T14],onChange:o(ct.T14)}),label:"".concat(ct.T14," (").concat(c[ct.T14]||0,")")},"T14")]})})]}),(0,U.jsx)(L.Z,{sx:{my:2}}),(0,U.jsx)(Ct,{selected:l,mainSelectedFire:d})]})};function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?It(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et=function(){var e={};return Object.values(st).forEach((function(t){var n=t.label;return e[n]=!0})),e}(),Ot=function(){var e={};return Object.values(ct).forEach((function(t){return e[t]=!0})),e}();function Rt(e){var t=e.center,n=e.onMapLoad,r=e.franklinCoords,i=e.palisadesFinalData,a=e.currentAcreData,o=e.allPoints,s=e.activeTab,c=e.filteredStructures,l=e.selectedStructure,d=e.setSelectedStructure,u=e.mainSelectedFire,h=(0,v.useState)(null),f=h[0],x=h[1],m=(0,_e.Sx)();return(0,v.useEffect)((function(){m&&t&&(m.setCenter(t),m.setZoom(12))}),[s,m,t]),(0,U.jsxs)(_e.D5,{defaultCenter:t,defaultZoom:12,mapId:"DEMO_MAP_ID",defaultMapTypeId:"satellite",onLoad:function(e){n&&n(e)},onClick:function(){2===s&&d(null)},children:[(0,U.jsx)(Ye,{franklinCoords:r}),(0,U.jsx)(Je,{acreData:i}),(0,U.jsx)(Ke,{acreData:a}),(0,U.jsx)(Xe,{}),0===s&&o.map((function(e){var t,n=null!==(t=e.lng)&&void 0!==t?t:e.lon,r={lat:e.lat,lng:n},i=f&&f.lat===e.lat&&f.lng===n,a="".concat(e.prefix,"-").concat(e.lat.toFixed(5),"_").concat(n.toFixed(5));return(0,U.jsxs)(v.Fragment,{children:[(0,U.jsx)(_e._Q,{position:r,onClick:function(t){t.stopPropagation(),x(Wt(Wt({},e),{},{lng:n}))},children:(0,U.jsx)($e,{point:e,onClick:function(e){return x(Wt(Wt({},e),{},{lng:n}))}})}),i&&(0,U.jsx)(_e.nx,{position:r,onCloseClick:function(){return x(null)},children:(0,U.jsx)(Qe,{point:f,handleOnCloseClick:function(){return x(null)}})})]},a)})),2===s&&m&&(0,U.jsx)(pt,{filteredStructures:c,selected:l,setSelected:d,addressCircle:null,acrePolygons:[],loadedFirePerimeters:[],mainSelectedFire:u,mapRef:{current:m}})]})}var Lt=(0,I.ZP)(x.Z)((function(e){var t=e.theme;return{height:"75vh",minHeight:"700px",width:"100%",marginBottom:"5px",borderRadius:t.shape.borderRadius,overflow:"hidden",boxShadow:t.shadows[4],position:"relative"}}));function Nt(e){var t=e.isLoading,n=e.loadingPercentage,r=e.palisadesOrigin,i=e.franklinCoords,a=e.palisadesFinalData,o=e.currentAcreData,s=e.allPoints,c=e.activeTab,l=e.filteredStructures,d=e.selectedStru
1cture,u=e.setSelectedStructure,h=e.mainSelectedFire,f=(0,v.useRef)(null),x=(0,v.useRef)(null),m=function(e){var t,n;if(i&&null!==(t=window.google)&&void 0!==t&&null!==(n=t.maps)&&void 0!==n&&n.Polygon){x.current&&x.current.setMap(null);var r=[];try{if(Array.isArray(i[0][0][0]))r=i.map((function(e){return e[0].map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))}));else{if(!Array.isArray(i[0][0]))return;r=i.map((function(e){return e.map((function(e){var t=(0,Be.Z)(e,2),n=t[0];return{lat:t[1],lng:n}}))}))}var a=new window.google.maps.Polygon({paths:r,strokeColor:"#00FF00",strokeOpacity:.8,strokeWeight:2,fillColor:"#00FF00",fillOpacity:.35});a.setMap(e),x.current=a}catch(o){console.error("\u274c Error drawing polygon:",o)}}};return(0,v.useEffect)((function(){f.current&&i&&m(f.current)}),[i]),(0,U.jsxs)(Lt,{children:[(0,U.jsx)(tt,{isLoading:t,loadingPercentage:n}),(0,U.jsx)(Rt,{center:r,onMapLoad:function(e){f.current=e;!function t(){var n,r;null!==(n=window.google)&&void 0!==n&&null!==(r=n.maps)&&void 0!==r&&r.Polygon&&i?m(e):setTimeout(t,100)}()},franklinCoords:i,palisadesFinalData:a,currentAcreData:o,allPoints:s,activeTab:c,filteredStructures:l,selectedStru
1cture:d,setSelectedStructure:u,mainSelectedFire:h})]})}function zt(e){var t=e.selectedDate,n=(e.onDateChange,e.selectedTab),r=(e.onTabChange,e.activeRadiusIndex),i=(e.setActiveRadiusIndex,e.activeElevationIndex),a=(e.setActiveElevationIndex,e.activeWindValue,e.setActiveWindValue),o=n,s=(0,v.useState)(0),c=s[0],d=s[1],h=(0,v.useState)(!1),m=h[0],p=h[1],g=(0,v.useState)({}),b=g[0],j=g[1],y=(0,v.useState)({}),Z=y[0],w=y[1],S=(0,v.useState)({}),C=S[0],F=S[1],T=(0,v.useState)({}),k=T[0],P=T[1],A=(0,v.useState)(null),I=A[0],W=A[1],E=(0,v.useState)(null),O=E[0],R=E[1],L=(0,v.useState)(null),N=L[0],z=L[1],H=(0,v.useState)(null),B=H[0],G=H[1],V=(0,v.useState)([]),_=V[0],Y=V[1],J=(0,v.useState)(null),K=J[0],q=J[1],X=(0,v.useState)(Object.keys(ut)[0]||null),$=X[0],Q=X[1],ee=(0,v.useState)(Object.keys(ht)[0]||null),te=ee[0],ne=ee[1],re=(0,v.useState)("fireEventStructureData"),ie=re[0],ae=(re[1],(0,v.useState)(!1)),oe=ae[0],se=ae[1],ce=(0,v.useState)(Et),le=ce[0],de=ce[1],xe=(0,v.useState)(Ot),me=xe[0],pe=xe[1],ge=(0,v.useCallback)((function(e){return function(t){de((function(n){return Wt(Wt({},n),{},(0,f.Z)({},e,t.target.checked))}))}}),[]),ve=(0,v.useCallback)((function(e){return function(t){pe((function(n){return Wt(Wt({},n),{},(0,f.Z)({},e,t.target.checked))}))}}),[]),be=(0,v.useCallback)((function(e){var t={};Object.values(st).forEach((function(n){var r=n.label;return t[r]=e.target.checked})),de(t)}),[]),je=(0,v.useCallback)((function(e){var t={};Object.values(ct).forEach((function(n){return t[n]=e.target.checked})),pe(t)}),[]),ye=(0,v.useCallback)((function(e){Q(e),ne(e),q(null)}),[]);(0,v.useEffect)((function(){var e=ut[$];e&&fetch(e).then((function(e){return e.json()})).then((function(e){return Y(e||[])})).catch((function(e){return console.error("Failed to load dataset:",e)}))}),[$]);var Ze=(0,v.useMemo)((function(){return 2!==o?[]:_.filter((function(e){var t,n=null===(t=st[e.damage])||void 0===t?void 0:t.label,r=ct[e.type];return le[n]&&me[r]}))}),[_,le,me,o]),we=(0,v.useMemo)((function(){var e={};return Object.values(st).forEach((function(t){var n=t.label;return e[n]=0})),Ze.forEach((function(t){var n,r=null===(n=st[t.damage])||void 0===n?void 0:n.label;r&&e[r]++})),e}),[Ze]),Se=(0,v.useMemo)((function(){var e={};return Object.values(ct).forEach((function(t){return e[t]=0})),Ze.forEach((function(t){var n=ct[t.type];n&&e[n]++})),e}),[Ze]),De=(0,v.useMemo)((function(){return t?t instanceof Date?(0,D.WU)(t,"yyyy-MM-dd'T'HH:mm"):t.replace(/^(\d{4}-\d{2}-\d{2})-(\d{2})-(\d{2})$/,"$1T$2:$3"):"2025-01-07T00:00"}),[t]),Ce=(0,v.useMemo)((function(){return De.split("T")[0]}),[De]);(0,v.useEffect)((function(){Ae().then((function(e){return P(e)})).finally((function(){return d((function(e){return e+1}))})),fetch("https://content.firerebuild.com/data/cal-fire/fire-maps/fires/2024/00434928.json?2026-07-28").then((function(e){return e.json()})).then((function(e){var t,n,r;return(null===(t=e.features)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.geometry)||void 0===r?void 0:r.coordinates)||null})).catch((function(e){return console.error("\u274c Error loading Franklin fire map data:",e),null})).then((function(e){return W(e)})).finally((function(){return d((function(e){return e+1}))})),Me().then((function(e){var t,n;if(e){R(e);var r=null===(t=e.acres)||void 0===t?void 0:t["2025-01-10T16:45"];"MultiPolygon"===(null===r||void 0===r||null===(n=r.geometry)||void 0===n?void 0:n.type)&&G(r)}})).finally((function(){return d((function(e){return e+1}))}))}),[]),(0,v.useEffect)((function(){if(!(c<3)){var e=!b[De],t=!Z[De],n=!C[De];if(e||t||n){p(!0);var r=[e?Te(De):Promise.resolve(null),t?ke(De):Promise.resolve(null),n?Pe(De):Promise.resolve(null)];Promise.all(r).then((function(e){var t=(0,Be.Z)(e,3),n=t[0],r=t[1],i=t[2];n&&j((function(e){return Wt(Wt({},e),{},(0,f.Z)({},De,n))})),r&&w((function(e){return Wt(Wt({},e),{},(0,f.Z)({},De,r))})),i&&F((function(e){return Wt(Wt({},e),{},(0,f.Z)({},De,i))}))})).catch((function(e){return console.error("Error updating lazy timestamps:",e)})).finally((function(){return p(!1)}))}}}),[De,c]);var Fe=(0,v.useMemo)((function(){if(0!==o)return[];var e=b[De]||[],t=Z[De]||[],n=C[De]||[],a=k[Ce]||[],s=function(e,t){var n={};return e.filter((function(e){if(e&&"object"===typeof e&&e.hasOwnProperty(t)){var r=String(e[t]);if(!n[r])return n[r]=!0,!0}return!1}))}([].concat((0,Ue.Z)(e),(0,Ue.Z)(t),(0,Ue.Z)(n)),"station"),c=[].concat((0,Ue.Z)(s),(0,Ue.Z)(a)),l=r===he.length-1,d=i===fe.length-1,u=he[r],h=fe[i];return c.filter((function(e){var t,n=null!==(t=e.lng)&&void 0!==t?t:e.lon;if(null==e.lat||null==n)return!1;if(!l&&!(function(e,t,n,r){var i=(n-e)*Math.PI/180,a=(r-t)*Math.PI/180,o=Math.sin(i/2)*Math.sin(i/2)+Math.cos(e*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.sin(a/2)*Math.sin(a/2);
1return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*3958.8}(ue.lat,ue.lng,e.lat,n)<=u))return!1;if(d||null==e.elevation)return!0;var r=Number(e.elevation);return r>=-h&&r<=h}))}),[De,Ce,b,Z,C,k,o,r,i]);(0,v.useEffect)((function(){a(Fe.length.toLocaleString())}),[Fe]),(0,v.useEffect)((function(){var e;if(null!==O&&void 0!==O&&O.times){var t=O.times[De];z(t?null===(e=O.acres)||void 0===e?void 0:e[t.acre]:null)}}),[De,O]);var Ie=c<3||m;return(0,U.jsx)(_e.un,{apiKey:"AIzaSyC_j9tMBT-IjQkmPp886oU5XCYww14XNtI",libraries:["places","geometry"],children:(0,U.jsxs)(M.Z,{elevation:3,sx:{p:3,borderRadius:2,display:"flex",flexDirection:"column",gap:2,position:"relative"},children:[(0,U.jsx)(x.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",children:Ie&&(0,U.jsxs)(x.Z,{display:"flex",alignItems:"center",gap:1,children:[(0,U.jsx)(l.Z,{size:16}),(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",children:c<3?"Caching Baselines (".concat(c,"/").concat(3,")..."):"Downloading interval: ".concat(De.replace("T"," "),"...")})]})}),0===o&&(0,U.jsx)(x.Z,{sx:{mt:0},children:(0,U.jsx)(rt,{})}),(0,U.jsxs)(x.Z,{sx:{position:"relative",width:"100%"},children:[(0,U.jsx)(Nt,{isLoading:c<3,loadingPercentage:Math.round(c/3*100),palisadesOrigin:ue,franklinCoords:I,palisadesFinalData:B,currentAcreData:0!==o?N:null,allPoints:0===o?Fe:[],activeTab:o,filteredStructures:Ze,selectedStru
1cture:K,setSelectedStructure:q,mainSelectedFire:te}),2===o&&(0,U.jsx)(M.Z,{elevation:3,sx:{position:"absolute",top:20,left:20,zIndex:10,display:"flex",flexDirection:"column",width:oe?"auto":"fit-content",maxHeight:"calc(100% - 40px)",transition:"width 0.3s ease-in-out",backgroundColor:"rgba(255, 255, 255, 0.9)"},children:oe?(0,U.jsx)(x.Z,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:(0,U.jsx)(He.Z,{onClick:function(){return se(!1)},children:(0,U.jsx)(Ve.Z,{})})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2,pb:1,borderBottom:1,borderColor:"divider"},children:[(0,U.jsx)(u.Z,{variant:"h6",component:"div",sx:{flexGrow:1,fontWeight:"bold"},children:"Cal Fire Damage Inspection Details"}),(0,U.jsx)(He.Z,{onClick:function(){return se(!0)},sx:{ml:1},children:(0,U.jsx)(Ge.Z,{})})]}),(0,U.jsx)(Ne.ZP,{value:ie,children:(0,U.jsx)(x.Z,{sx:{flexGrow:1,overflowY:"auto"},children:(0,U.jsx)(ze.Z,{value:"fireEventStructureData",sx:{p:2},children:(0,U.jsx)(Mt,{selectedDataset:$,setSelectedDataset:ye,damageFilters:le,handleDamageFilterChange:ge,handleSelectAllDamage:be,damageTotals:we,structureFilters:me,handleStructureFilterChange:ve,handleSelectAllStructureTypes:je,structureTypeTotals:Se,selected:K,mainSelectedFire:te,onAddressSearch:null})})})})]})}),0===o&&(0,U.jsx)(x.Z,{sx:{mt:0},children:(0,U.jsxs)(u.Z,{variant:"body2",sx:{p:2},children:[(0,U.jsx)("strong",{children:"Blue Perimeter: "})," The 2024 Franklin Fire burn scar.",(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Red Perimeter: "})," The 2025 Palisades Fire."]})})]})]})})}var Ht=n(78298),Ut=n(52953),Bt=n(16376),Gt=n(51128),Vt=n(37591),_t=n(57292),Yt=n(54132),Jt=n(27137),Kt=function(e){var t=e.stations,n=void 0===t?[]:t,r=e.title,i=e.description,a=n&&n.length>0;return(0,U.jsxs)(gt.Z,{defaultExpanded:a,sx:{mb:1,boxShadow:"none",border:"1px solid #e0e0e0"},children:[(0,U.jsx)(Zt.Z,{expandMoreIcon:(0,U.jsx)(wt.Z,{}),children:(0,U.jsxs)(R.Z,{spacing:.5,width:"100%",children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"bold",children:r}),(0,U.jsx)(Jt.Z,{label:(null===n||void 0===n?void 0:n.length)||0,size:"small",color:a?"error":"default",variant:"outlined"})]}),i&&(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",dangerouslySetInnerHTML:{__html:i}})]})}),(0,U.jsx)(vt.Z,{sx:{p:0},children:(0,U.jsx)(Ut.Z,{component:M.Z,square:!0,sx:{boxShadow:"none",maxHeight:250,minHeight:"120px",display:"flex",flexDirection:"column"},children:(0,U.jsxs)(Bt.Z,{stickyHeader:!0,size:"small",sx:{flexGrow:1},children:[(0,U.jsx)(Vt.Z,{children:(0,U.jsxs)(_t.Z,{children:[(0,U.jsx)(Yt.Z,{children:(0,U.jsx)("strong",{children:"Station"})}),(0,U.jsx)(Yt.Z,{align:"right",children:(0,U.jsx)("strong",{children:"Sustained (mph)"})}),(0,U.jsx)(Yt.Z,{align:"right",children:(0,U.jsx)("strong",{children:"Gust Max (mph)"})}),(0,U.jsx)(Yt.Z,{align:"right",children:(0,U.jsx)("strong",{children:"Elevation (ft)"})}),(0,U.jsx)(Yt.Z,{align:"right",children:(0,U.jsx)("strong",{children:"Distance (mi)"})})]})}),(0,U.jsx)(Gt.Z,{children:a?n.map((function(e){var t,n;return(0,U.jsxs)(_t.Z,{hover:!0,children:[(0,U.jsx)(Yt.Z,{component:"th",scope:"row",children:(0,U.jsx)("strong",{children:e.Station.split("-")[1]})}),(0,U.jsx)(Yt.Z,{align:"right",children:e["Wind Speed Sustained"]}),(0,U.jsx)(Yt.Z,{align:"right",children:e["Wind Gust High"]}),(0,U.jsx)(Yt.Z,{align:"right",children:null===(t=e.Elevation)||void 0===t?void 0:t.toFixed(0)}),(0,U.jsx)(Yt.Z,{align:"right",children:null===(n=e.Distance)||void 0===n?void 0:n.toFixed(1)})]},e.Station)})):(0,U.jsx)(_t.Z,{children:(0,U.jsx)(Yt.Z,{colSpan:5,align:"center",sx:{py:4,color:"text.secondary",fontStyle:"italic",verticalAlign:"middle"},children:"No stations recorded within these filter thresholds"})})})]})})})]})},qt=function(e){var t,n,r,i,a,o,s=e.displayDate,c=(e.selectedDate,e.data),l=e.activeRadiusIndex,h=void 0===l?0:l,f=e.activeElevationIndex,m=void 0===f?0:f,p=(0,v.useState)(""),g=p[0],b=p[1],j="r".concat(he[h],"_e").
1concat(fe[m]);(0,v.useEffect)((function(){var e;if(s&&null!==c&&void 0!==c&&null!==(e=c.content)&&void 0!==e&&e.wind){var t=he[h],n=fe[m],r="r".concat(t,"_e").concat(n),i="On ".concat((0,D.WU)(s,"MMMM dd, yyyy")," at ~").concat((0,D.WU)(s,"h:mm a"),", "),a=c.content.wind[r],o=(null===a||void 0===a?void 0:a.hurricane)||[],l=(null===a||void 0===a?void 0:a.winds)||[];0===o.length&&0===l.length?i+="there was no evidence of hurricane-force winds or 100 mph winds ":o.length>0&&l.length>0?i+="there was evidence of hurricane-force winds and 100 mph winds ":o.length>0&&0===l.length?i+="there was evidence of hurricane-force winds but not 100 mph winds ":i+="there was evidence of 100 mph winds ";var d="All"===t?"at all distances":"within ".concat(t.toLocaleString()," miles"),u="All"===n?"across all elevations":"within a ".concat(n.toLocaleString(),"-foot elevation differential");i+="".concat(d," and ").concat(u," from the origin of the Palisades Fire."),b(i)}}),[s,c,h,m]);var y=(0,v.useMemo)((function(){var e,t;return(null===c||void 0===c||null===(e=c.content)||void 0===e||null===(t=e.wind)||void 0===t?void 0:t[j])||{hurricane:[],hurricaneWind:[],hurricaneGust:[],winds:[],gusts:[],summary:{min:0,max:0,mean:0,median:0,mode:0}}}),[null===c||void 0===c||null===(t=c.content)||void 0===t?void 0:t.wind,j]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(G.Z,{variant:"outlined",sx:{background:"#ffffff",mb:2},children:(0,U.jsxs)(V.Z,{sx:{p:2,"&:last-child":{pb:2}},children:[(0,U.jsxs)(x.Z,{sx:{mb:2,display:"flex",gap:1,alignItems:"flex-start"},children:[(0,U.jsx)(N.Z,{color:"primary",sx:{mt:.25,flexShrink:0}}),(0,U.jsx)(u.Z,{variant:"subtitle1",component:"h5",fontWeight:"700",color:"text.primary",sx:{lineHeight:1.4,letterSpacing:"-0.01em"},children:g})]}),(0,U.jsx)(L.Z,{sx:{my:1.5}}),(0,U.jsxs)(u.Z,{variant:"caption",color:"textSecondary",fontWeight:"bold",gutterBottom:!0,block:!0,sx:{mb:1.5},children:["SUSTAINED WIND SUMMARY (","All"===he[h]?"ALL POINTS":"WITHIN ".concat(he[h].toLocaleString()," MILE RADIUS")," and ","All"===fe[m]?"ALL ELEVATIONS":"".concat(fe[m].toLocaleString()," FOOT ELEVATION"),")"]}),(0,U.jsx)(d.ZP,{container:!0,spacing:1,children:[{label:"Min",val:null===(n=y.summary)||void 0===n?void 0:n.min},{label:"Median",val:null===(r=y.summary)||void 0===r?void 0:r.median},{label:"Mean",val:null===(i=y.summary)||void 0===i?void 0:i.mean},{label:"Mode",val:null===(a=y.summary)||void 0===a?void 0:a.mode},{label:"Max",val:null===(o=y.summary)||void 0===o?void 0:o.max}].map((function(e){var t;return(0,U.jsx)(d.ZP,{item:!0,xs:2.4,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:1,textAlign:"center",background:"#f8fafc"},children:[(0,U.jsx)(u.Z,{variant:"caption",color:"textSecondary",block:!0,children:e.label}),(0,U.jsxs)(u.Z,{variant:"body2",fontWeight:"bold",children:[null!==(t=e.val)&&void 0!==t?t:0," mph"]})]})},e.label)}))}),function(){var e,t,n,r,i,a,o,s,c,l,d,h,f=Math.max(0,Math.min(100,null!==(e=null===(t=y.summary)||void 0===t?void 0:t.min)&&void 0!==e?e:0)),m=Math.max(0,Math.min(100,null!==(n=null===(r=y.summary)||void 0===r?void 0:r.max)&&void 0!==n?n:0)),p=Math.max(0,Math.min(100,null!==(i=null===(a=y.summary)||void 0===a?void 0:a.mean)&&void 0!==i?i:0)),g="".concat(f,"%"),v="".concat(Math.max(1,m-f),"%"),b="".concat(p,"%");return(0,U.jsxs)(x.Z,{sx:{mt:3,px:1},children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,U.jsx)(u.Z,{variant:"caption",color:"textSecondary",fontWeight:"medium",children:"0 mph"}),(0,U.jsxs)(u.Z,{variant:"caption",color:"primary",fontWeight:"bold",children:["Mean: ",null!==(o=null===(s=y.summary)||void 0===s?void 0:s.mean)&&void 0!==o?o:0," mph"]}),(0,U.jsx)(u.Z,{variant:"caption",color:"textSecondary",fontWeight:"medium",children:"100 mph"})]}),(0,U.jsxs)(x.Z,{sx:{position:"relative",height:"8px",bgcolor:"#e2e8f0",borderRadius:"4px",my:1.5},children:[(0,U.jsx)(x.Z,{sx:{position:"absolute",left:g,width:v,height:"100%",bgcolor:"action.selected",borderLeft:"2px solid #0284c7",borderRight:"2px solid #b91c1c",borderRadius:"2px"}}),(0,U.jsx)(x.Z,{sx:{position:"absolute",left:b,transform:"translateX(-50%)",to
1p:"-8px",display:"flex",flexDirection:"column",alignItems:"center",zIndex:2},children:(0,U.jsx)(x.Z,{sx:{color:"#0284c7",fontSize:"18px",display:"flex"},children:"\ud83d\udccd"})})]}),(0,U.jsxs)(u.Z,{variant:"caption",color:"textSecondary",display:"block",sx:{textAlign:"center",fontStyle:"italic",mt:1},children:["Shaded bar represents spread range from Min (",null!==(c=null===(l=y.summary)||void 0===l?void 0:l.min)&&void 0!==c?c:0," mph) to Max (",null!==(d=null===(h=y.summary)||void 0===h?void 0:h.max)&&void 0!==d?d:0," mph)"]})]})}()]})}),(0,U.jsxs)(x.Z,{children:[(0,U.jsx)(Kt,{stations:y.hurricane,title:"Hurricane Force Winds",description:"Sustained wind speeds <strong>>74 mph</strong>"}),(0,U.jsx)(Kt,{stations:y.winds,title:"100 MPH Wind Speeds",description:"Wind speeds measuring <strong>\u2265100 mph</strong>"}),(0,U.jsx)(Kt,{stations:y.gusts,title:"100 MPH Wind Gusts",description:"Wind gusts peaking at <strong>\u2265100 mph</strong>"})]})]})},Xt=n(79309),$t=n(98602),Qt=n(26730),en=n(64017),tn=n(95642),nn=n(96105),rn=function(e){var t,n=e.displayDate,r=(e.selectedDate,e.data),i=e.activeRadiusIndex,a=void 0===i?0:i,o=e.activeElevationIndex,s=void 0===o?0:o,c="r".concat(he[a],"_e").concat(fe[s]),l=(0,v.useState)(""),h=l[0],f=l[1];(0,v.useEffect)((function(){if(n){var e="Fire summary for ".concat((0,D.WU)(n,"MMMM dd, yyyy")," at ~").concat((0,D.WU)(n,"h:mm a"));f(e)}}),[n]);(0,v.useMemo)((function(){var e,t;return(null===r||void 0===r||null===(e=r.content)||void 0===e||null===(t=e.wind)||void 0===t?void 0:t[c])||{hurricane:[],hurricaneWind:[],hurricaneGust:[],winds:[],gusts:[],summary:{min:0,max:0,mean:0,median:0,mode:0}}}),[null===r||void 0===r||null===(t=r.content)||void 0===t?void 0:t.wind,c]);var m=(0,v.useMemo)((function(){var e=n||new Date(2025,0,7,10,30),t=new Date(2025,0,7,10,30),r=new Date(2025,0,1,4,46),i=(0,Xt.j)(e,r),a=(0,$t.A)(e,r)%24,o=(0,Z.X)(e,r)%60,s="";i>0&&(s+="".concat(i,"d ")),(a>0||i>0)&&(s+="".concat(a,"h ")),s+="".concat(o,"m");var c="Failed to Preposition to a known fire for ".concat(s,".");e>=t&&(c+=" The Palisades Fire could have been entirely prevented if the fire department had prepositioned apparatus and crews.");var l=new Date(2025,0,7,10,50),d=new Date(2025,0,7,14,0),u="",h="";e<l?(u="Water drops had not started.",h="Status: Not Started"):e>=l&&e<=d?(u="Minimal Water drops every 20 to 30 minutes.",h="Status: Active Drops"):(u="No Water drops at this time. Water drops ended at 2:00 PM on Jan 7.",h="Status: Concluded");var f=new Date(2025,0,7,11,0),x=new Date(2025,0,7,15,0),m="",p="";e<f?(m="No fire department were seen or prepositioned in the Pacific Palisades area.",p="Status: Monitoring"):e>=f&&e<=x?(m="LAFD were seen in Highland area of Pacific Palisades until 3:00 PM.",p="Status: Active Presence"):(m='No fire department seen attempting to extinguish the fire. Fire Department was ordered to "stand down" at 3:00 PM and "let it burn out".',p="Status: Stood Down");var g=[],v=new Date(2025,0,7,17,45),b=new Date(2025,0,7,21,45),j=new Date(2025,0,8,5,45),y=new Date(2025,0,8,13,45),w=new Date(2025,0,8,17,45),S=new Date(2025,0,8,20,45),D=new Date(2025,0,9,14,45),C=new Date(2025,0,9,15,45);return g=e<t?[{name:"Lachman Fire",jurisdiction:"Allowed to burn"}]:e>=t&&e<=v?[{name:"Palisades Fire",jurisdiction:"LAFD (Only active fire in LA County)"}]:e>v&&e<=b?[{name:"Palisades Fire",jurisdiction:"LAFD (Only fire active under LAFD)"},{name:"Eaton Fire",jurisdiction:"LACoFD"}]:e>b&&e<=j?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"}]:e>j&&e<=y?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Woodley Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"}]:e>y&&e<=w?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Woodley Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"},{name:"Lidia Fire",jurisdiction:"LACoFD"}]:e>w&&e<=S?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Woodley Fire",jurisdiction:"LAFD"},{name:"Sunset Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"},{name:"Lidia Fire",jurisdiction:"LACoFD"}]:e>S&&e<=D?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Sunset Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"},{name:"Lidia Fire",jurisdiction:"LACoFD"}]:e>D&&e<=C?[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Sunset Fire",jurisdiction:"LAFD"},{name:"Kenneth Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"},{name:"Lidia Fire",jurisdiction:"LACoFD"}]:[{name:"Palisades Fire",jurisdiction:"LAFD"},{name:"Hurst Fire",jurisdiction:"LAFD"},{name:"Kenneth Fire",jurisdiction:"LAFD"},{name:"Eaton Fire",jurisdiction:"LACoFD"},{name:"Lidia Fire",jurisdiction:"LACoFD"}],[{title:"Failed to Preposition",time:"From Jan 1, 2025 4:46 AM",detail
1:c,isList:!1,color:"#b91c1c",bgColor:"#fef2f2",icon:(0,U.jsx)(en.Z,{sx:{color:"#b91c1c"}})},{title:"Water Drops",time:h,detail:u,isList:!1,color:"#0284c7",bgColor:"#f0f9ff",icon:(0,U.jsx)(tn.Z,{sx:{color:"#0284c7"}})},{title:"Fire Department",time:p,detail:m,isList:!1,color:"#ea580c",bgColor:"#fff7ed",icon:(0,U.jsx)(H.Z,{sx:{color:"#ea580c"}})},{title:"Other Fires",time:"Jurisdictional Map Logs",fires:g,isList:!0,color:"#475569",bgColor:"#f8fafc",icon:(0,U.jsx)(nn.Z,{sx:{color:"#475569"}})}]}),[n]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(G.Z,{variant:"outlined",sx:{background:"#ffffff",mb:3},children:(0,U.jsxs)(V.Z,{sx:{p:2.5,"&:last-child":{pb:2.5}},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:2},children:[(0,U.jsx)(Qt.Z,{color:"action"}),(0,U.jsx)(u.Z,{variant:"subtitle1",fontWeight:"700",color:"text.primary",children:h})]}),(0,U.jsx)(d.ZP,{container:!0,spacing:2,children:m.map((function(e,t){return(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,children:(0,U.jsxs)(M.Z,{variant:"outlined",sx:{p:2,height:"100%",backgroundColor:e.bgColor,borderColor:"#e2e8f0",display:"flex",flexDirection:"column",justifyContent:"space-between",gap:1.5},children:[(0,U.jsxs)(x.Z,{children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:1.5,alignItems:"center",sx:{mb:1},children:[e.icon,(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"800",color:"text.primary",children:e.title})]}),e.isList?(0,U.jsx)(x.Z,{component:"ul",sx:{m:0,pl:2.5,color:"text.primary"},children:e.fires.map((function(e,t){return(0,U.jsxs)(x.Z,{component:"li",sx:{mb:.5,fontSize:"0.875rem"},children:[(0,U.jsx)("strong",{children:e.name})," \u2014 ",e.jurisdiction]},t)}))}):(0,U.jsx)(u.Z,{variant:"body2",color:"text.primary",sx:{lineHeight:1.4},children:e.detail})]}),(0,U.jsx)(x.Z,{sx:{mt:"auto"},children:(0,U.jsx)(Jt.Z,{label:e.time,size:"small",sx:{fontWeight:"bold",fontSize:"0.75rem",backgroundColor:"#ffffff",border:"1px solid ".concat(e.color),color:e.color}})})]})},t)}))})]})})})},an=n(76638),on=[{label:"Destroyed Progress",prefix:"Destroyed"},{label:"Major Damage Progress",prefix:"Major"},{label:"Minor Damage Progress",prefix:"Minor"},{label:"Affected Progress",prefix:"Affected"}],sn=function(e){var t,n,r,i,a,o,s=e.label,c=e.percentData,l=e.valueData,d=null!==(t=null===c||void 0===c?void 0:c.min)&&void 0!==t?t:0,h=null!==(n=null===c||void 0===c?void 0:c.max)&&void 0!==n?n:0,f=null!==(r=null===c||void 0===c?void 0:c.estimate)&&void 0!==r?r:0,m=null!==(i=null===l||void 0===l?void 0:l.min)&&void 0!==i?i:0,p=null!==(a=null===l||void 0===l?void 0:l.max)&&void 0!==a?a:0,g=null!==(o=null===l||void 0===l?void 0:l.estimate)&&void 0!==o?o:0,b=(0,v.useMemo)((function(){return[d,f,h]}),[d,f,h]),j=(0,v.useMemo)((function(){return[{value:d,label:"".concat(d,"%")},{value:h,label:"".concat(h,"%")}]}),[d,h]);return(0,U.jsxs)(x.Z,{sx:{mb:2.5},children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,U.jsx)(u.Z,{variant:"body2",fontWeight:"medium",color:"text.primary",children:s}),(0,U.jsxs)(u.Z,{variant:"caption",color:"text.secondary",children:["Est: ",(0,U.jsxs)("strong",{children:[g," (",f,"%)"]})," | Range: ",m,"-",p]})]}),(0,U.jsxs)(x.Z,{sx:{position:"relative",px:1,height:24,display:"flex",alignItems:"center"},children:[(0,U.jsx)(x.Z,{sx:{position:"absolute",left:0,right:0,height:6,bgcolor:"action.hover",borderRadius:1}}),(0,U.jsx)(x.Z,{sx:{position:"absolute",left:"".concat(d,"%"),width:"".concat(h-d,"%"),height:8,bgcolor:"primary.light",opacity:.4,borderRadius:1}}),(0,U.jsx)(me.ZP,{disabled:!0,value:b,min:0,max:100,step:.01,marks:j,sx:{p:0,height:6,"& .MuiSlider-track":{display:"none"},"& .MuiSlider-rail":{display:"none"},"& .MuiSlider-markLabel":{fontSize:"0.65rem",top:16,color:"text.secondary"},"& .MuiSlider-thumb":{width:10,height:10,backgroundColor:"primary.main",'&[data-index="0"]':{backgroundColor:"text.secondary",width:6,height:6},'&[data-index="1"]':{backgroundColor:"error.main",width:12,height:12,zIndex:2},'&[data-index="2"]':{backgroundColor:"text.secondary",width:6,height:6}}}})]})]})},cn=function(e){var t,n=e.data,r=e.displayDate,i=(null===n||void 0===n||null===(t=n.content)||void 0===t?void 0:t.structures)||{},a=Object.keys(i),o=(0,v.useState)(""),s=o[0],c=o[1];return(0,v.useEffect)((function(){if(r){var e="Structure summary for ".concat((0,D.WU)(r,"MMMM dd, yyyy")," at ~").concat((0,D.WU)(r,"h:mm a"));c(e)}}),[r]),0===a.length?(0,U.jsx)(u.Z,{variant:"body2",color:"textSecondary",children:"No dynamic structure data points found for this step."}):(0,U.jsxs)(x.Z,{sx:{width:"100%",mt:1},children:[(0,U.jsxs)(u.Z,{variant:"subtitle1",fontWeight:"bold",gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1},children:[(0,U.jsx)(an.Z,{fontSize:"small",color:"action"})," ",s]}),(0,U.jsx)(d.ZP,{container:!0,spacing:2,children:a.map((function(e){var t=i[e],n="TOTAL"===e;if(n)return(0,U.jsx)(d.ZP,{item:!0,xs:12,md:n?12:6,children:(0,U.jsx)(G.Z,{variant:"outlined",sx:{height:"100%",borderColor:n?"primary.main":"divider",bgcolor:n?"primary.contrastText":"background.paper",boxShadow:n?"0px 2px 8px rgba(0,0,0,0.05)":"none"},children:(0,U.jsxs)(V.Z,{sx:{p:2,"&:last-child":{pb:2}},children:[(0,U.jsx)(u.Z,{variant:"subtitle2",fontWeight:"bold",color:n?"primary.main":"text.primary",gutterBottom:!0,children:e}),(0,U.jsx)(L.Z,{sx:{mb:2}}),on.map((function(e){var n=e.label,r=e.prefix;return(0,U.jsx)(sn,{label:n,percentData:null===t||void 0===t?void 0:t["".concat(r," Percent")],valueData:null===t||void 0===t?void 0:t["".concat(r," Value")]},r)}))]})})},e)}))})]})},ln=["children","value","index"];function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?dn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e){var t=e.children,n=e.value,r=e.index,i=(0,m.Z)(e,ln);return(0,U.jsx)("div",un(un({role:"tabpanel",hidden:n!==r,id:"timeline-tabpanel-".concat(r),"aria-labelledby":"timeline-tab-".concat(r),style:{width:"100%"}},i),{},{children:(0,U.jsx)(x.Z,{sx:{display:n===r?"block":"none"},children:t})}))}var fn=function(e){var t=e.displayDate,n=e.selectedDate,r=e.data,i=e.selectedTab,a=e.activeRadiusIndex,o=e.activeElevationIndex;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(hn,{value:i,index:0,children:(0,U.jsx)(qt,{displayDate:t,selectedDate:n,data:r,activeRadiusIndex:a,activeElevationIndex:o})}),(0,U.jsx)(hn,{value:i,index:1,children:(0,U.jsx)(rn,{displayDate:t,selectedDate:n,data:r})}),(0,U.jsx)(hn,{value:i,index:2,children:(0,U.jsx)(cn,{displayDate:t,data:r})})]})},xn={0:"https://content.firerebuild.com/interactive-data/wind/summary/data.json",1:"https://content.firerebuild.com/interactive-data/fires/summary/data.json",2:"https://content.firerebuild.com/interactive-data/structures/summary/data.json"};function mn(e){var t=e.displayDate,n=e.selectedDate,r=(e.summaryData,e.onDateChange),i=e.selectedTab,a=e.activeRadiusIndex,o=e.activeElevationIndex,s=(0,v.useState)([]),c=s[0],l=s[1],d=(0,v.useState)(!0),u=(d[0],d[1]),f=(0,v.useState)(null),m=(f[0],f[1]);(0,v.useEffect)((function(){var e=function(){var e=(0,h.Z)(g().mark((function e(){var t,n,r,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=xn[i]||"https://content.firerebuild.com/interactive-data/timeline/timeline_events.json",e.prev=1,u(!0),m(null),console.log("\ud83d\udce1 Fetching dataset for tab ".concat(i," from: ").concat(t)),e.next=7,fetch(t);case 7:if((n=e.sent).ok){e.next=10;break}throw new Error("Network response was not ok: ".concat(n.status));case 10:return e.next=12,n.json();case 12:r=e.sent,console.log(r),a=Object.values(r).flat(),l(a),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(1),console.error("Failed to load events for tab ".concat(i,":"),e.t0),m(e.t0.message);case 22:return e.prev=22,u(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[1,18,22,25]])})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var p=(0,v.useMemo)((function(){var e=c.findIndex((function(e){return e.unique_id===n}));return-1!==e?e:0}),[n,c]),b=c[p];return b?(0,U.jsx)(M.Z,{elevation:2,sx:{p:2,minHeight:300,display:"flex",flexDirection:"column"},children:(0,U.jsxs)(x.Z,{sx:{position:"relative",width:"100%",px:"60px",flexGrow:1},children:[(0,U.jsx)(x.Z,{children:(0,U.jsx)(fn,{displayDate:t,selectedDate:n,data:b,selectedTab:i,activeRadiusIndex:a,activeElevationIndex:o})}),(0,U.jsx)(He.Z,{onClick:function(){if(p>0&&r){var e=c[p-1];r(e.unique_id,!0)}},disabled:0===p,disableRipple:!0,sx:{position:"absolute",left:0,top:0,bottom:0,width:"50px",height:"100%",borderRadius:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s ease",backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:disabled":{opacity:.15,pointerEvents:"none"}},children:(0,U.jsx)(Ht.Z,{})}),(0,U.jsx)(He.Z,{onClick:function(){if(p<c.length-1&&r){var e=c[p+1];r(e.unique_id,!0)}},disabled:p===c.length-1,disableRipple:!0,sx:{position:"absolute",right:0,top:0,bottom:0,width:"50px",height:"100%",borderRadius:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s ease",backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:disabled":{opacity:.15,pointerEvents:"none"}},children:(0,U.jsx)(Dt.Z,{})})]})}):null}function pn(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gn(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
1}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vn=(0,I.ZP)(x.Z)((function(e){var t=e.theme;return(0,f.Z)({width:"100%",padding:t.spacing(2),"& .hcg-caption":{padding:t.spacing(2.5)},"& .highcharts-description":{padding:"0 ".concat(t.spacing(2.5))},"& .hcg-credits-container":{display:"none !important"},"& .hcg-credits":{display:"none !important"},"& .hcg-scrollable-content":{"min-height":"1000px !important"},"& .hcg-table thead th .hcg-header-cell-content":{textAlign:"center !important"},"& .hcg-sub-caption":{fontSize:"13px",color:"#666",fontWeight:400,padding:"0 20px",marginBottom:"12px",lineHeight:1.4,display:"block"},"@media (prefers-color-scheme: dark)":{"& .hcg-sub-caption":{color:"#b0b0b0"}},"& .my-theme":{"--hcg-color":"#333","--hcg-background":"#fff","--hcg-border-radius":"5px","--hcg-border-width":"1px","--hcg-column-border-width":0,"--hcg-row-border-color":"#e8e8e8","--hcg-row-even-background":"#fbfbfb","--hcg-caption-font-size":"18px","--hcg-header-column-border-color":"#dfdfdf","--hcg-padding":"15px","--hcg-font-size":"14px","--hcg-border-color":"#e5e5e5","--hcg-header-color":"#fff","--hcg-header-background":"#6c7ae0","--hcg-header-column-border-width":"1px","--hcg-header-vertical-padding":"10px","--hcg-header-hovered-background":"#7b88e3","--hcg-row-border-width":"1px","--hcg-cell-hovered-column-background":"#fcebf5","--hcg-cell-hovered-row-background":"#fcebf5","--hcg-cell-hovered-background":"#e03e9c","--hcg-cell-hovered-header-background":"#7b88e3","--hcg-cell-hovered-color":"#fff","@media (prefers-color-scheme: dark)":{"--hcg-color":"#eee","--hcg-background":"#292929","--hcg-row-border-color":"#434343","--hcg-header-row-border-color":"#525252","--hcg-row-even-background":"#2e2e2e","--hcg-header-column-border-color":"#4e4e4e","--hcg-border-color":"#646a9e","--hcg-header-background":"#343a6c","--hcg-cell-hovered-column-background":"#3d3d3d","--hcg-cell-hovered-row-background":"#3d3d3d","--hcg-cell-hovered-background":"#841857","--hcg-cell-hovered-header-background":"#4b5297"}}},"@media (prefers-color-scheme: dark)",{backgroundColor:"#333"})}));function bn(e,t){var n=ye().utc("2025-01-07T00:00:00Z");return n.add(e,"days"),n.add(15*t,"minutes"),n.format("YYYY-MM-DD-HH-mm")}function jn(e){var t=e.dateSliderValue,n=void 0===t?0:t,r=e.timeSliderValue,i=void 0===r?0:r,a=e.activeRadiusIndex,o=void 0===a?25:a,s=e.activeElevationIndex,c=void 0===s?1e3:s,d=(0,v.useRef)(null),h=(0,v.useRef)(null),f=(0,v.useState)(null),m=f[0],p=f[1],g=(0,v.useState)(null),b=g[0],j=g[1],y=(0,v.useState)(!0),Z=y[0],w=y[1],S=(0,v.useState)(null),D=S[0],C=S[1],F=(0,v.useState)(!1),T=F[0],k=F[1],P=(0,v.useState)(!0),A=P[0],M=(P[1],(0,v.useState)(!1)),I=M[0];M[1];(0,v.useEffect)((function(){!function(){if(!document.getElementById("highcharts-grid-styles")){var e=document.createElement("link");e.id="highcharts-grid-styles",e.rel="stylesheet",e.href="https://cdn.jsdelivr.net/npm/@highcharts/grid-lite/css/grid.css",document.head.appendChild(e)}}(),new Promise((function(e,t){if(window.Grid)e(window.Grid);else{var n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/@highcharts/grid-lite/grid-lite.js",n.async=!0,n.onload=function(){return e(window.Grid)},n.onerror=function(e){return t(e)},document.body.appendChild(n)}})).then((function(e){p(e)})).catch((function(e){console.error("Failed to load Highcharts Grid Core script:",e),C(e.message),w(!1)}))}),[]),(0,v.useEffect)((function(){if(d.current){var e=new ResizeObserver((function(e){var t,n=pn(e);try{for(n.s();!(t=n.n()).done;){t.value.contentRect.width>0&&k((function(e){return!e}))}}catch(r){n.e(r)}finally{n.f()}}));return e.observe(d.current),function(){return e.disconnect()}}}),[]),(0,v.useEffect)((function(){var e=bn(n,i),t="https://content.firerebuild.com/interactive-data/wind/details/".concat(e,".json");w(!0),fetch(t).then((function(t){if(!t.ok)throw new Error('HTTP Error: Data snapshot file "'.concat(e,'.json" not found (Status: ').concat(t.status,")"));return t.json()})).then((function(e){j(e),C(null),w(!1)})).catch((function(e){console.error("Failed to fetch wind dataset timeline step:",e),C(e.message),j(null),w(!1)}))}),[n,i]),(0,v.useEffect)((function(){if(m&&b&&d.current&&0!==d.current.getBoundingClientRect().width){h.current&&"function"===typeof h.current.destroy&&h.current.destroy();var e=o===he.length-1,t=c===fe.length-1,r=he[o]||25,a=fe[c],s=b.dataTable.columns,l=s["Wind Speed Sustained"]||[],u=s.Distance||[],f=s.Elevation||[],x=l.map((function(e,t){var n;return{value:null!==e&&void 0!==e?e:-1,distance:null!==(n=u[t])&&void 0!==n?n:9999,elevation:f[t],index:t}})).filter((function(n){if(!e&&n.distance>r)return!1;if(!t&&null!=n.elevation){var i=Number(n.elevation);if(i<-a||i>a)return!1}return!0})).sort((function(e,t){return t.value-e.value})).map((function(e){return e.index})),p={};
1Object.keys(s).forEach((function(e){Array.isArray(s[e])?p[e]=x.map((function(t){return s[e][t]})):p[e]=s[e]}));bn(n,i);var g=["Station"];return A&&g.push({format:"Wind Speed",columns:[{columnId:"Wind Speed Low",format:"Low"},{columnId:"Wind Speed Sustained",format:"Sustained"},{columnId:"Wind Speed High",format:"High"}]},{format:"Wind Gust",columns:[{columnId:"Wind Gust Low",format:"Low"},{columnId:"Wind Gust Average",format:"Average"},{columnId:"Wind Gust High",format:"High"}]}),I&&g.push({format:"Wind Adjusted",columns:[{columnId:"Wind Adjusted Low",format:"Low"},{columnId:"Wind Adjusted Estimate",format:"Sustained"},{columnId:"Wind Adjusted High",format:"High"}]},{format:"Wind Flight",columns:[{columnId:"Wind Flight Low",format:"Low"},{columnId:"Wind Flight Estimate",format:"Average"},{columnId:"Wind Flight High",format:"High"}]}),g.push({columnId:"Elevation",format:"Elevation<br />Difference"},{columnId:"Distance",format:"Distance<br />from Origin"}),h.current=m.grid(d.current,{dataTable:{columns:p},description:{text:"Wind data is compiled from all available weather station sources. Contact Michael Kureth if any are missing."},rendering:{theme:"hcg-theme-default theme-compact",rows:{strictHeights:!0}},header:g,columns:[{id:"Station",cells:{formatter:function(){if(!this.value)return"";var e=this.value.split("-")[1];return"".concat(e)}}},{id:"Wind Speed Low",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Speed Sustained",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Speed High",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Gust Low",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Gust Average",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Gust High",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Adjusted Low",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Adjusted Estimate",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Adjusted High",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Flight Low",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Flight Estimate",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Wind Flight High",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," mph"):""}}},{id:"Elevation",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toLocaleString(void 0,{minimumFractionDigits:1,maximumFractionDigits:1})," feet"):""}}},{id:"Distance",cells:{formatter:function(){return"number"===typeof this.value?"".concat(this.value.toFixed(1)," miles"):""}}}]}),function(){h.current&&"function"===typeof h.current.destroy&&h.current.destroy()}}}),[m,b,n,i,o,c,A,I,T]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(vn,{style:{marginTop:"1px"},children:[Z&&(0,U.jsx)(x.Z,{sx:{display:"flex",justifyContent:"center",py:8},children:(0,U.jsx)(l.Z,{})}),D&&(0,U.jsxs)(u.Z,{color:"error",variant:"body2",sx:{p:2},children:["Error mounting evaluation data table: ",D]}),(0,U.jsx)("div",{ref:d,className:"my-theme",style:{display:Z?"none":"block"}})]}),(0,U.jsxs)(u.Z,{variant:"body2",sx:{p:2},children:[(0,U.jsx)("strong",{children:"Elevation: "})," The difference between the station's elevation and the fire origin's elevation of ~390 feet.",(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Distance: "})," The distance from the station to the fire origin at 34.07022\xb0 N latitude and 118.54453\xb0 W longitude.",(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Sustained: "})," Hurricane-force winds are measured by sustained wind speed, which must be at least 74 mph."]})]})}var yn=(0,I.ZP)(x.Z)((function(e){var t,n=e.theme;return t={width:"100%",padding:n.spacing(1),"& .hcg-caption":{padding:n.spacing(2.5)},"& .highcharts-description":{padding:"0 ".concat(n.spacing(2.5))},"& .hcg-credits-container":{display:"none !important"},"& .hcg-credits":{display:"none !important"},"& .hcg-scrollable-content":{"min-height":"500px !important"},"& .hcg-table thead th .hcg-header-cell-content":{textAlign:"center !important"},"& .hcg-sub-caption":{fontSize:"13px",color:"#666",fontWeight:400,padding:"0 20px",marginBottom:"12px",lineHeight:1.4,display:"block"},"@media (prefers-color-scheme: dark)":{"& .hcg-sub-caption":{color:"#b0b0b0"}},"& .my-theme":{"--hcg-color":"#333","--hcg-background":"#fff","--hcg-border-radius":"5px","--hcg-border-width":"1px","--hcg-column-border-width":0,"--hcg-row-border-color":"#e8e8e8","--hcg-row-even-background":"#fbfbfb","--hcg-caption-font-size":"18px","--hcg-header-column-border-color":"#dfdfdf","--hcg-padding":"15px","--hcg-font-size":"14px","--hcg-border-color":"#e5e5e5","--hcg-header-color":"#fff","--hcg-header-background":"#6c7ae0","--hcg-header-column-border-width":"1px","--hcg-header-vertical-padding":"10px","--hcg-header-hovered-background":"#7b88e3","--hcg-row-border-width":"1px","--hcg-cell-hovered-column-background":"#fcebf5","--hcg-cell-hovered-row-background":"#fcebf5","--hcg-cell-hovered-background":"#e03e9c","--hcg-cell-hovered-header-background":"#7b88e3","--hcg-cell-hovered-color":"#fff","@media (prefers-color-scheme: dark)":{"--hcg-color":"#eee","--hcg-background":"#292929","--hcg-row-border-color":"#434343","--hcg-header-row-border-color":"#525252","--hcg-row-even-background":"#2e2e2e","--hcg-header-column-border-color":"#4e4e4e","--hcg-border-color":"#646a9e","--hcg-header-background":"#343a6c","--hcg-cell-hovered-column-background":"#3d3d3d","--hcg-cell-hovered-row-background":"#3d3d3d","--hcg-cell-hovered-background":"#841857","--hcg-cell-hovered-header-background":"#4b5297"}}},(0,f.Z)(t,"@media (prefers-color-scheme: dark)",{backgroundColor:"#333"}),(0,f.Z)(t,"& .react-total-footer-container",{position:"sticky",bottom:0,zIndex:10,boxShadow:"0 -3px 6px rgba(0,0,0,0.08)",borderTop:"1px solid #dfdfdf",backgroundColor:"#f1f3f9",fontWeight:"bold"}),(0,f.Z)(t,"& .react-total-footer-table",{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"}),(0,f.Z)(t,"& .react-total-footer-cell",{padding:"12px 15px",fontSize:"14px",color:"#333",borderRight:"1px solid #dfdfdf","&:last-child":{borderRight:"none"}}),t})),Zn=[{prefix:"Destroyed",label:"Destroyed"},{prefix:"Major",label:"Major"},{prefix:"Minor",label:"Minor"},{prefix:"Affected",label:"Affected"},{prefix:"None",label:"Smoke Damage"}];function wn(e){var t,n,r=e.data,i=(0,v.useRef)(null),a=(0,v.useRef)(null),o=(0,v.useState)(null),s=o[0],c=o[1],h=(0,v.useState)(!1),f=h[0],m=h[1],p=(0,v.useState)(null),g=p[0],b=p[1],j=(0,v.useState)("category"),y=j[0],Z=j[1],w=(0,v.useState)(!0),S=w[0],D=w[1],C=(0,v.useState)(null),F=C[0],T=C[1];(0,v.useEffect)((function(){T(r)}),[r]),(0,v.useEffect)((function(){!function(){if(!document.getElementById("highcharts-grid-styles")){var e=document.createElement("link");e.id="highcharts-grid-styles",e.rel="stylesheet",e.href="https://cdn.jsdelivr.net/npm/@highcharts/grid-lite/css/grid.css",document.head.appendChild(e)}}(),new Promise((function(e,t){if(window.Grid)e(window.Grid);else{var n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/@highcharts/grid-lite/grid-lite.js",n.async=!0,n.onload=function(){return e(window.Grid)},n.onerror=function(e){return t(e)},document.body.appendChild(n)}})).then((function(e){c(e)})).catch((function(e){console.error("Highcharts Grid engine load failed:",e),b(e.message)}))}),[]),(0,v.useEffect)((function(){if(s&&i.current&&F){a.current&&"function"===typeof a.current.destroy&&(a.current.destroy(),a.current=null),i.current.innerHTML="";var e=F[y];if(e){var t=Object.keys(e).filter((function(e){return"TOTAL"!==e})),n={StructureGroup:[]};Zn.forEach((function(e){n["".concat(e.prefix," Value")]=[],n["".concat(e.prefix," Percent")]=[]})),S&&(n["Total Value"]=[],n["Total Percent"]=[]),t.forEach((function(t){n.StructureGroup.push(t);var r,i,a=e[t];(Zn.forEach((function(e){var t,r;n["".concat(e.prefix," Value")].push(null!==(t=a["".concat(e.prefix," Value")])&&void 0!==t?t:0),n["".concat(e.prefix," Percent")].push(null!==(r=a["".concat(e.prefix," Percent")])&&void 0!==r?r:0)})),S)&&(n["Total Value"].push(null!==(r=a["Total Value"])&&void 0!==r?r:0),n["Total Percent"].push(null!==(i=a["Total Percent"])&&void 0!==i?i:0))}));var r=[{columnId:"StructureGroup",format:"category"===y?"Structure Category":"Structure Type"}];
1Zn.forEach((function(e){r.push({format:e.label,columns:[{columnId:"".concat(e.prefix," Value"),format:"#"},{columnId:"".concat(e.prefix," Percent"),format:"%"}]})})),S&&r.push({format:"Total",columns:[{columnId:"Total Value",format:"#"},{columnId:"Total Percent",format:"%"}]});var o=[{id:"StructureGroup",width:250,cells:{format:"<strong>{value}</strong>"}}];Zn.forEach((function(e){o.push({id:"".concat(e.prefix," Value"),cells:{formatter:function(){return"number"===typeof this.value?this.value.toLocaleString():""}}},{id:"".concat(e.prefix," Percent"),cells:{formatter:function(){return"number"===typeof this.value?"".concat(Math.round(this.value),"%"):""}}})})),S&&o.push({id:"Total Value",cells:{formatter:function(){return"number"===typeof this.value?this.value.toLocaleString():""}}},{id:"Total Percent",cells:{formatter:function(){return"number"===typeof this.value?"".concat(Math.round(this.value),"%"):""}}});try{a.current=s.grid(i.current,{dataTable:{columns:n},caption:{},rendering:{theme:"hcg-theme-default theme-compact",rows:{strictHeights:!1}},header:r,columns:o}),m(!1)}catch(c){console.error("Grid engine runtime mounting error:",c),m(!1)}return function(){a.current&&"function"===typeof a.current.destroy&&a.current.destroy()}}}}),[s,y,S,F]);var k=null===F||void 0===F?void 0:F[y],P=null===k||void 0===k?void 0:k.TOTAL;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(yn,{style:{marginTop:"5px"},children:[f&&(0,U.jsx)(x.Z,{sx:{display:"flex",justifyContent:"center",py:8},children:(0,U.jsx)(l.Z,{})}),g&&(0,U.jsxs)(u.Z,{color:"error",variant:"body2",sx:{p:2},children:["Error mounting data evaluation grid context: ",g]}),(0,U.jsx)("div",{ref:i,className:"my-theme",style:{display:f?"none":"block",width:"100%"}}),!f&&!g&&P&&(0,U.jsx)("div",{className:"react-total-footer-container",children:(0,U.jsx)("table",{className:"react-total-footer-table",children:(0,U.jsx)("tbody",{children:(0,U.jsxs)("tr",{children:[(0,U.jsx)("td",{className:"react-total-footer-cell",style:{width:"250px"},children:(0,U.jsx)("strong",{children:"TOTAL"})}),Zn.map((function(e){var t,n;return(0,U.jsxs)(v.Fragment,{children:[(0,U.jsx)("td",{className:"react-total-footer-cell",style:{textAlign:"right"},children:(null!==(t=P["".concat(e.prefix," Value")])&&void 0!==t?t:0).toLocaleString()}),(0,U.jsx)("td",{className:"react-total-footer-cell",style:{textAlign:"right"},children:"".concat(Math.round(null!==(n=P["".concat(e.prefix," Percent")])&&void 0!==n?n:0),"%")})]},e.prefix)})),S&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("td",{className:"react-total-footer-cell",style:{textAlign:"right"},children:(null!==(t=P["Total Value"])&&void 0!==t?t:0).toLocaleString()}),(0,U.jsx)("td",{className:"react-total-footer-cell",style:{textAlign:"right"},children:"".concat(Math.round(null!==(n=P["Total Percent"])&&void 0!==n?n:0),"%")})]})]})})})})]}),(0,U.jsxs)(d.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"space-between",children:[(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(u.Z,{variant:"body2",sx:{p:2,color:"text.secondary"},children:[(0,U.jsx)("strong",{children:"Value:"})," Total absolute survey structural counts. ",(0,U.jsx)("br",{}),(0,U.jsx)("strong",{children:"Percent:"})," Scaled ratio representation per localized collection metrics."]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,U.jsxs)(x.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-start",md:"flex-end"}},children:[(0,U.jsx)(jt.Z,{labelPlacement:"start",control:(0,U.jsx)(yt.Z,{name:"viewModeToggle",checked:"type"===y,onChange:function(e){Z(e.target.checked?"type":"category")},color:"primary",disabled:f||!F}),label:"View Structure Types"}),(0,U.jsx)(jt.Z,{labelPlacement:"start",control:(0,U.jsx)(yt.Z,{name:"showTotalsToggle",checked:S,onChange:function(e){D(e.target.checked)},color:"secondary",disabled:f||!F}),label:"Show Totals Column"})]})})]})]})}var Sn=n(3769),Dn=n(31727),Cn=n(90244);function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Tn={"hurst-fire":{Name:"Hurst Fire",Start:"01/07/2025 10:29 PM",Distance:"18.0",Difference:"11 hours, 59 minutes",Geo:[34.32533,-118.478134],Location:"Near Diamond Road, Sylmar",Type:"Fire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles Fire Department",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/7/hurst-fire/updates/"},"woodley-fire":{Name:"Woodley Fire",Start:"01/08/2025 6:15 AM",Distance:"8.5",Difference:"19 hours, 45 minutes",Geo:[34.17973,-118.47438],Location:"North Woodley Avenue, Sepulveda Basin",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles Fire Department",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/8/woodley-fire/updates/"},"sunset-fire":{Name:"Sunset Fire",Start:"01/08/2025 5:57 PM",Distance:"11.2",Difference:"1 day, 7 hours, 27 minutes",Geo:[34.1105,-118.3536],Location:"2300 block Solar Dr, Hollywood Hills",Type:"Fire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles Fire Department",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/8/sunset-fire/updates/"},"kenneth-fire":{Name:"Kenneth Fire",Start:"01/09/2025 3:34 PM",Distance:"10.7",Difference:"2 days, 5 hours, 4 minutes",Geo:[34.185198,-118.66991],Location:"Victory Boulevard west of Gilmore St, West Hills",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles, Ventura","Administration Unit":"Los Angeles Fire Department",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/9/kenneth-fire/updates/"},"archer-fire":{Name:"Archer Fire","Start Date/Time":"2025-01-10",Location:"Sesnon Boulevard, North of Meadowlark Avenue, Granada Hills",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles Fire Department",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/10/archer-fire/updates/"},"eaton-fire":{Name:"Eaton Fire",Start:"01/07/2025 6:18 PM",Distance:"28.7",Difference:"7 hours, 48 minutes",Geo:[34.203483,-118.069155],Location:"Near Altadena Drive and Midwick Drive, Altadena/Pasadena",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles County Fire Department (Not Jurisdiction of Palisades Fire)",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/7/eaton-fire/updates/"},"lidia-fire":{Name:"Lidia Fire",Start:"01/08/2025 2:07 PM",Distance:"30.8",Difference:"1 day, 3 hours, 37 minutes",Geo:[34.4408,-118.2433],Location:"5700 Block of Soledad Canyon Rd, Acton",Type:"Wildfire",Cause:"Under Investigation",Counties:"Los Angeles","Administration Unit":"Los Angeles County Fire Department (Not Jurisdiction of Palisades Fire)",Active:!1,guid:null,Size:"N/A",Containment:null,DateTime:null,BaseURL:"https://www.fire.ca.gov/incidents/2025/1/8/lidia-fire/updates/"}},kn=function(e){if(!e)return"N/A";var t=new Date(e);if(isNaN(t.getTime()))return e;
1return t.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).replace(/,([^,]*)$/," at$1").replace(/,/g,"")};function Pn(e){var t=e.data,n=e.time,r=(0,v.useState)(Tn),i=r[0],a=r[1];(0,v.useEffect)((function(){if(null!==n&&void 0!==n&&n.fires){var e=function(e,t){for(var n=Object.keys(e),r=structuredClone(Tn),i=0;i<n.length;i++){var a,o=n[i],s=t[o],c=e[o];r[o]&&null!==s&&void 0!==s&&null!==(a=s.data)&&void 0!==a&&a[c]&&(r[o].Active=!0,r[o].guid=s.data[c].guid,r[o].Size=s.data[c].Size,r[o].Containment=s.data[c].Containment,r[o].DateTime=s.data[c].DateTime)}return r}(n.fires,t);a(e)}else a(Tn)}),[n,t]);var o=Object.entries(i).reduce((function(e,t){var n=(0,Be.Z)(t,2),r=n[0],i=n[1],a=i["Administration Unit"]||"Other Incidents";return e[a]||(e[a]=[]),e[a].push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:r},i)),e}),{});return(0,U.jsx)(x.Z,{sx:{flexGrow:1,p:{xs:2,sm:4},backgroundColor:"#fdfdfd",minHeight:"100vh"},children:Object.entries(o).map((function(e){var t=(0,Be.Z)(e,2),n=t[0],r=t[1];return(0,U.jsxs)(x.Z,{sx:{mb:5},children:[(0,U.jsx)(u.Z,{variant:"subtitle1",sx:{fontWeight:800,color:"text.secondary",mb:1,letterSpacing:"0.5px",textTransform:"uppercase",fontSize:"0.8rem"},children:n}),(0,U.jsx)(L.Z,{sx:{mb:2.5,borderColor:"divider"}}),(0,U.jsx)(d.ZP,{container:!0,spacing:2.5,children:r.map((function(e){var t=e.Active,n=function(e){if(!e)return 0;var t=parseInt(e.toString().replace(/[^0-9]/g,""),10);return isNaN(t)?0:t}(e.Containment),r=e.Start||e["Start Date/Time"]||"N/A",i=e.guid?"".concat(e.BaseURL).concat(e.guid):"#";if(t)return(0,U.jsx)(d.ZP,{item:!0,xs:12,children:(0,U.jsx)(G.Z,{sx:{width:"100%",transition:"all 0.25s cubic-bezier(0.4, 0, 0.2, 1)",opacity:t?1:.8,borderLeft:6,borderLeftColor:t?"error.main":"text.disabled",boxShadow:t?"0 4px 20px 0 rgba(0,0,0,0.05)":0,border:"1px solid",borderColor:t?"action.selected":"divider","&:hover":{boxShadow:t?"0 8px 30px 0 rgba(0,0,0,0.1)":2,transform:"translateY(-2px)"}},children:(0,U.jsxs)(V.Z,{sx:{p:{xs:2.5,sm:3},"&:last-child":{pb:{xs:2.5,sm:3}}},children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1.5,mb:2.5},children:[(0,U.jsx)(x.Z,{children:(0,U.jsx)(u.Z,{variant:"h6",component:"h2",sx:{fontWeight:800,letterSpacing:"-0.3px",mb:.5},children:e.Name})}),(0,U.jsx)(Jt.Z,{label:t?"Active Incident":"Controlled / Inactive",color:t?"error":"default",size:"medium",variant:t?"filled":"outlined",icon:t?(0,U.jsx)(H.Z,{sx:{fontSize:"16px !important"}}):void 0,sx:{fontWeight:700,px:.5,borderRadius:1.5,textTransform:"uppercase",fontSize:"0.65rem",letterSpacing:"0.5px"}})]}),(0,U.jsxs)(d.ZP,{container:!0,spacing:2,sx:{mb:2.5},children:[(0,U.jsx)(d.ZP,{item:!0,xs:6,md:3,children:(0,U.jsxs)(x.Z,{sx:{bgcolor:"action.hover",p:2,borderRadius:2,height:"100%"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",color:"text.secondary",sx:{mb:.5},children:[(0,U.jsx)(Dn.Z,{sx:{fontSize:14}}),(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:700,letterSpacing:"0.5px"},children:"SIZE"})]}),(0,U.jsxs)(u.Z,{variant:"body1",sx:{fontWeight:800,color:"text.primary"},children:[e.Size||"Unknown"," Acres"]})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:6,md:3,children:(0,U.jsxs)(x.Z,{sx:{bgcolor:"action.hover",p:2,borderRadius:2,height:"100%"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",color:"text.secondary",sx:{mb:.5},children:[(0,U.jsx)(kt.Z,{sx:{fontSize:14}}),(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:700,letterSpacing:"0.5px"},children:"DISTANCE"})]}),(0,U.jsxs)(u.Z,{variant:"body1",sx:{fontWeight:800,color:"text.primary"},children:[e.Distance?"".concat(e.Distance," mi"):"N/A"," ",e.Distance&&(0,U.jsx)(x.Z,{component:"span",sx:{fontSize:"0.75rem",fontWeight:400,color:"text.secondary"},children:"to Palisades Fire"})]})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,U.jsxs)(x.Z,{sx:{bgcolor:"action.hover",p:2,borderRadius:2,height:"100%"},children:[(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",color:"text.secondary",sx:{mb:.5},children:[(0,U.jsx)(Cn.Z,{sx:{fontSize:14}}),(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:700,letterSpacing:"0.5px"},children:"TIME AFTER PALISADES FIRE"})]}),(0,U.jsx)(u.Z,{variant:"body2",sx:{fontWeight:700,color:t?"error.main":"text.primary",lineHeight:1.3},children:e.Difference?"".concat(e.Difference):"N/A"})]})}),(0,U.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,U.jsxs)(x.Z,{sx:{bgcolor:"action.hover",p:2,borderRadius:2,height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},children:[(0,U.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[(0,U.jsx)(u.Z,{variant:"caption",color:"text.secondary",sx:{fontWeight:700,letterSpacing:"0.5px"},children:"CONTAINMENT"}),(0,U.jsx)(u.Z,{variant:"body2",sx:{fontWeight:800,color:n>0&&t?"success.main":"text.primary"},children:null!==e.Containment?e.Containment:"N/A"})]}),null!==e.Containment&&(0,U.jsx)(et.Z,{variant:"determinate",value:n,color:t?"success":"inherit",sx:{height:6,borderRadius:3,bgcolor:"action.selected"}})]})})]}),(0,U.jsxs)(x.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1,pt:1.5,borderTop:"1px solid",borderColor:"divider",color:"text.secondary"},children:[(0,U.jsxs)(u.Z,{variant:"caption",sx:{fontWeight:500},children:[(0,U.jsx)(x.Z,{component:"span",sx:{fontWeight:700},children:"Ignition Start:"})," ",r]}),e.Location&&(0,U.jsxs)(R.Z,{direction:"row",spacing:.5,alignItems:"center",sx:{color:"text.secondary",mb:1},children:[(0,U.jsx)(Sn.Z,{sx:{fontSize:14}}),(0,U.jsx)(u.Z,{variant:"caption",sx:{fontWeight:500},children:e.Location})]}),e.guid?(0,U.jsxs)(O.Z,{href:i,target:"_blank",rel:"noopener",variant:"caption",color:"primary",sx:{dis
1play:"inline-flex",alignItems:"center",gap:.5,fontWeight:600,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:["CAL FIRE Status Update: ",kn(e.DateTime)," ",(0,U.jsx)($.Z,{sx:{fontSize:12}})]}):(0,U.jsx)(u.Z,{variant:"caption",color:"text.disabled",sx:{fontStyle:"italic"},children:"No CAL FIRE update available"})]})]})})},e.key)}))})]},n)}))})}var An=[new Date("2025-01-07T00:00:00"),new Date("2025-01-08T00:00:00"),new Date("2025-01-09T00:00:00")],Mn=new Date("2025-01-07T00:00:00Z"),In=new Date("2025-01-09T23:45:00Z"),Wn=function(){for(var e=[],t=new Date(Mn);t<=In;)e.push(t.toISOString()),t.setMinutes(t.getMinutes()+15);return e}();var En=function(e){var t=e.selectedDate,n=(e.onDateChange,e.selectedTab),r=(e.onTabChange,e.activeRadiusIndex),i=e.activeElevationIndex,a=n,o=(0,v.useState)(null),s=o[0],c=o[1],l=(0,v.useState)(null),d=l[0],h=l[1],f=(0,v.useState)(null),m=f[0],p=f[1],g=(0,v.useState)(null),b=g[0],j=g[1],y=(0,v.useMemo)((function(){return t?t.includes("T")?t.slice(0,16):(e=t)?e.replace(/^(\d{4}-\d{2}-\d{2})-(\d{2})-(\d{2})$/,"$1T$2:$3"):"":null;var e}),[t]),Z=(0,v.useMemo)((function(){if(!y)return 0;var e=y.split("T")[0],t=An.findIndex((function(t){var n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(n,"-").concat(r,"-").concat(i)===e}));return-1!==t?t:0}),[y]),w=(0,v.useMemo)((function(){var e;if(!y)return 42;var t=null===(e=y.split("T")[1])||void 0===e?void 0:e.slice(0,5);if(!t)return 42;var n=Wn.findIndex((function(e){return e.split("T")[1].slice(0,5)===t}));return-1!==n?n:42}),[y]),S=(0,v.useState)(Z),D=S[0],C=S[1],F=(0,v.useState)(w),T=F[0],k=F[1],P=An[D].toISOString().split("T")[0],A=Wn[T].split("T")[1],I="".concat(P,"T").concat(A.slice(0,5));return(0,v.useEffect)((function(){y&&(C(Z),k(w))}),[Z,w,y]),(0,v.useEffect)((function(){fetch("https://content.firerebuild.com/interactive-data/shared/2025-palisades.json").then((function(e){return e.json()})).catch((function(e){return console.error("\u274c Error loading Palisades fire data:",e),null})).then((function(e){e&&c(e)}))}),[]),(0,v.useEffect)((function(){if(null!==s&&void 0!==s&&s.times){var e,t,n,r,i=s.times[I];if(i)h((null===(e=s.structures)||void 0===e?void 0:e[i.acre])||(null===(t=s.structures)||void 0===t?void 0:t["2025-01-07T11:19"])),j(i);else h(null===(n=s.structures)||void 0===n?void 0:n["2025-01-07T11:19"]),j(null===(r=s.times)||void 0===r?void 0:r["2025-01-07T11:00"]);p(s.fires)}}),[I,s]),(0,U.jsx)(M.Z,{elevation:3,sx:{p:1,borderRadius:2,display:"flex",flexDirection:"column",gap:2,position:"relative"},children:(0,U.jsx)(x.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",children:(0,U.jsx)(E.Z,{maxWidth:!1,sx:{},children:(0,U.jsxs)(x.Z,{sx:{mt:3},children:[0===a&&(0,U.jsx)(x.Z,{children:(0,U.jsx)(jn,{dateSliderValue:D,timeSliderValue:T,activeRadiusIndex:r,activeElevationIndex:i})}),1===a&&(0,U.jsx)(x.Z,{sx:{p:.5,textAlign:"center",bgcolor:"action.hover",borderRadius:1},children:(0,U.jsx)(Pn,{data:m,time:b})}),2===a&&(0,U.jsx)(x.Z,{children:d?(0,U.jsx)(wn,{data:d}):(0,U.jsx)(u.Z,{variant:"body2",color:"text.secondary",textAlign:"center",sx:{py:4},children:"No structural payload data accessible for this specific timestamp."})})]})})})})},On=n(53586);function Rn(){return(0,U.jsxs)(x.Z,{component:"blockquote",sx:{position:"relative",my:4,mx:"auto",p:{xs:3,md:4},maxWidth:600,backgroundColor:"background.paper",borderRadius:2,boxShadow:1,borderLeft:"4px solid",borderColor:"primary.main"},children:[(0,U.jsx)(On.Z,{sx:{position:"absolute",top:8,left:8,fontSize:"3rem",color:"action.disabled",opacity:.15}}),(0,U.jsx)(u.Z,{variant:"h5",component:"p",sx:{fontStyle:"italic",fontWeight:400,color:"text.primary",lineHeight:1.5,mb:2,pl:1},children:"\u201cStats aren\u2019t about numbers.\u201d"}),(0,U.jsx)(L.Z,{sx:{my:1.5,opacity:.6}}),(0,U.jsxs)(x.Z,{component:"cite",sx:{display:"block",fontStyle:"normal"},children:[(0,U.jsx)(u.Z,{variant:"subtitle1",component:"span",sx:{fontWeight:"bold",color:"text.primary"},children:"Gavin Newsom"}
1),(0,U.jsxs)(u.Z,{variant:"body2",component:"span",sx:{display:"block",color:"text.secondary",mt:.5},children:[(0,U.jsx)(x.Z,{component:"span",sx:{fontStyle:"italic"},children:"Young Man in a Hurry: A Memoir of Discovery"}),". Penguin Press, 2026, p. 83."]})]})]})}var Ln=["children","value","index"];function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hn=(0,A.Z)(ee.Z),Un="yyyy-MM-dd-HH-mm",Bn="yyyy-MM-dd HH:mm",Gn="2025-01-07-10-30",Vn=new Date(2025,0,7,0,0),_n=new Date(2025,0,9,23,45);(0,Z.X)(_n,Vn);function Yn(e){var t=e.children,n=e.value,r=e.index,i=(0,m.Z)(e,Ln);return(0,U.jsx)("div",zn(zn({role:"tabpanel",hidden:n!==r,id:"timeline-tabpanel-".concat(r),"aria-labelledby":"timeline-tab-".concat(r),style:{width:"100%"}},i),{},{children:(0,U.jsx)(x.Z,{sx:{display:n===r?"block":"none"},children:t})}))}function Jn(e){e.id,e.onRouteUpdate;var t=(0,b.useRouter)(),n=(0,v.useTransition)(),f=(n[0],n[1]),m=(0,v.useState)(Vn),p=m[0],k=m[1],A=(0,v.useState)(0),M=A[0],I=A[1],E=(0,v.useState)(0),O=E[0],R=E[1],L=(0,v.useState)(0),N=L[0],z=L[1],H=(0,v.useState)(0),B=H[0],G=H[1],V=(0,v.useState)(0),_=V[0],Y=V[1],J=(0,v.useState)(!0),K=(J[0],J[1]),q=(0,v.useState)(null),X=q[0],$=q[1],Q=(0,v.useState)(null),ee=Q[0],te=Q[1],re=Hn();(0,v.useEffect)((function(){if(t.isReady){var e=t.query,n=e.data,r=e.view,i=e.date,a=Array.isArray(i)?i[0]:i||Gn,o=(0,w.Qc)(a,Un,new Date);if((0,S.J)(o))k(o),I((0,Z.X)(o,Vn));else{var s=(0,w.Qc)(Gn,Un,new Date);k(s),I((0,Z.X)(s,Vn))}R("fires"===n?1:"structures"===n?2:0),z("map"===r?1:"details"===r?2:0)}}),[t.isReady,t.query]);var ie=(0,v.useCallback)((function(e,n,r){if((0,S.J)(e)){var i,a,o=(0,D.WU)(e,Un),s=1===(i=n)?"fires":2===i?"structures":"wind",c=1===(a=r)?"map":2===a?"details":"summary",l="/".concat(s,"/").concat(c,"/").concat(o);f((function(){t.push(l,l,{shallow:!0,scroll:!1})}))}}),[t]),ae=(0,v.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;"string"===typeof e&&(n=(0,w.Qc)(e,Un,new Date)),(0,S.J)(n)?(I((0,Z.X)(n,Vn)),t&&(k(n),ie(n,O,N))):console.error("Invalid date encountered in global handler:",e)}),[ie,O,N]),oe=(0,v.useCallback)((function(e){R(e),ie(p,e,N)}),[ie,p,N]);(0,v.useEffect)((function(){if(t.isReady){var e=!0,n=function(){var t=(0,h.Z)(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e){t.next=3;break}return t.abrupt("return");case 3:$({timestamp:(0,D.WU)(p,Bn),mapSettings:{center:{lat:34.0416,lng:-118.5273},zoom:12},summary:{headline:"Data Summary for ".concat((0,D.WU)(p,Bn)),metrics:{recordsProcessed:1440,variance:"0.04%",activeNodes:8}},content:{rawPayload:"Detailed metrics payload compiled for index: ".concat((0,D.WU)(p,Un))}}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Error loading metrics:",t.t0);case 9:return t.prev=9,e&&K(!1),t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[0,6,9,12]])})));return function(){return t.apply(this,arguments)}}();return n(),function(){e=!1}}}),[p,t.isReady]);var se=(0,v.useCallback)((function(e){z(e),ie(p,O,e)}),[ie,p,O]);return(0,v.useEffect)((function(){if("#timeline-section"===window.location.hash){var e=document.getElementById("timeline-section");e&&e.scrollIntoView({behavior:"smooth"})}}),[]),(0,U.jsxs)(y._C,{dateAdapter:j.H,children:[(0,U.jsx)(ne,{}),(0,U.jsx)("div",{id:"timeline-section",children:(0,U.jsx)("div",{className:re.container,children:(0,U.jsx)("div",{className:re.section,children:(0,U.jsxs)(W.Z,{justify:"center",sx:{mb:6},children:[(0,U.jsxs)(d.ZP,{item:!0,xs:12,children:[(0,U.jsx)(u.Z,{variant:"h4",sx:{fontWeight:800,mb:2},children:"Interactive Timeline During the Palisades Fire"}),(0,U.jsx)(u.Z,{variant:"body1",sx:{color:"text.primary",lineHeight:1.5,mb:2},children:"The interactive timeline provides 15-minute intervals from January 7 to January 9, 2025, covering all wind records from 3,196 weather stations, fire details from Cal Fire, and structures impacted from ArcGIS. Each data layer features its own summary, map, and detailed view."})]}),(0,U.jsx)(d.ZP,{item:!0,xs:12,children:(0,U.jsx)(Le,{selectedSection:N,setSelectedSection:se,selectedDate:p,sliderValue:M,onDateChange:ae,selectedTab:O,onTabChange:oe,activeRadiusIndex:B,setA
1ctiveRadiusIndex:G,activeElevationIndex:_,setActiveElevationIndex:Y,activeWindValue:ee,fullMenu:!0})})]})})})}),(0,U.jsx)("div",{className:P()(re.main,re.mainRaised),children:(0,U.jsx)("div",{className:re.container,children:(0,U.jsx)("div",{className:re.section,children:(0,U.jsxs)(W.Z,{justify:"center",children:[(0,U.jsx)(c.Z,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:!1,children:(0,U.jsx)(l.Z,{color:"inherit"})}),(0,U.jsxs)(d.ZP,{container:!0,spacing:0,sx:{mb:6},children:[(0,U.jsxs)(d.ZP,{item:!0,xs:12,sx:{mb:2,display:"flex",alignItems:"center",justifyContent:"center",gap:2,flexWrap:"wrap"},children:[(0,U.jsxs)(u.Z,{variant:"h5",sx:{fontWeight:700,color:"text.primary",letterSpacing:"-0.01em"},children:[["Summary View","Map View","Details View"][N]," of the Palisades Fire"]}),(0,U.jsx)(x.Z,{sx:{minWidth:180},children:(0,U.jsx)(a.Z,{fullWidth:!0,variant:"outlined",size:"small",children:(0,U.jsxs)(o.Z,{id:"timeline-tab-dropdown",value:O,onChange:function(e){return oe(e.target.value)},sx:{fontWeight:700,fontSize:"1.25rem","& .MuiSelect-select":{py:.5}},children:[(0,U.jsx)(s.Z,{value:0,children:"Wind Data"}),(0,U.jsx)(s.Z,{value:1,children:"Fires Data"}),(0,U.jsx)(s.Z,{value:2,children:"Structures Data"})]})})})]}),(0,U.jsx)(d.ZP,{item:!0,xs:12,sx:{pt:0},children:(0,U.jsx)(x.Z,{sx:{borderBottom:1,borderColor:"divider",mb:0},children:(0,U.jsxs)(r.Z,{value:N,onChange:function(e,t){z(t),ie(p,O,t)},"aria-label":"timeline sections navigation tabs",variant:"fullWidth",sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:"bold",fontSize:"0.85rem",minHeight:"48px"}},children:[(0,U.jsx)(i.Z,{icon:(0,U.jsx)(C.Z,{sx:{color:"#008080"}}),iconPosition:"start",label:"Summary View",id:"timeline-tab-2","aria-controls":"timeline-tabpanel-0"}),(0,U.jsx)(i.Z,{icon:(0,U.jsx)(F.Z,{sx:{color:"#4a69bd"}}),iconPosition:"start",label:"Map View",id:"timeline-tab-0","aria-controls":"timeline-tabpanel-1"}),(0,U.jsx)(i.Z,{icon:(0,U.jsx)(T.Z,{sx:{color:"#607d8b"}}),iconPosition:"start",label:"Details View",id:"timeline-tab-1","aria-controls":"timeline-tabpanel-2"})]})})}),(0,U.jsxs)(d.ZP,{item:!0,xs:12,sx:{pt:0,mb:0},children:[(0,U.jsx)(Yn,{value:N,index:0,children:(0,U.jsx)(mn,{displayDate:p,selectedDate:(0,D.WU)(p,Un),summaryData:null===X||void 0===X?void 0:X.summary,onDateChange:ae,selectedTab:O,activeRadiusIndex:B,activeElevationIndex:_})}),(0,U.jsx)(Yn,{value:N,index:1,children:(0,U.jsx)(zt,{selectedDate:p,mapSettings:null===X||void 0===X?void 0:X.mapSettings,onDateChange:ae,selectedTab:O,onTabChange:oe,activeRadiusIndex:B,setActiveRadiusIndex:G,activeElevationIndex:_,setActiveElevationIndex:Y,activeWindValue:ee,setActiveWindValue:te})}),(0,U.jsx)(Yn,{value:N,index:2,children:(0,U.jsx)(En,{selectedDate:(0,D.WU)(p,Un),contentData:null===X||void 0===X?void 0:X.content,onDateChange:ae,selectedTab:O,onTabChange:oe,activeRadiusIndex:B,setActiveRadiusIndex:G,activeElevationIndex:_,setActiveElevationIndex:Y})})]})]}),(0,U.jsx)(d.ZP,{item:!0,xs:12,children:(0,U.jsx)(Le,{selectedSection:N,setSelectedSection:se,selectedDate:p,sliderValue:M,onDateChange:ae,selectedTab:O,onTabChange:oe,activeRadiusIndex:B,setActiveRadiusIndex:G,activeElevationIndex:_,setActiveElevationIndex:Y,activeWindValue:ee,fullMenu:!1})})]})})})}),(0,U.jsx)("div",{children:(0,U.jsx)("div",{className:re.container,children:(0,U.jsx)("div",{className:re.section,children:(0,U.jsx)(W.Z,{justify:"center",children:(0,U.jsx)(d.ZP,{item:!0,xs:12,children:(0,U.jsx)(Rn,{})})})})})})]})}}}]);

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.