diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 541446eec142896479f8a781632bdee150b991ed..e246fbfce183a76843ba383470565a837fe068c5 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,58 +1,35 @@ /// import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import path from 'node:path' export default defineConfig({ base: '/', plugins: [react()], - resolve: { - dedupe: ['react', 'react-dom'] - }, - optimizeDeps: { - include: ['react', 'react-dom'] - }, - server: { - proxy: { - '/api': { - target: 'http://localhost:8000', - changeOrigin: true, - secure: false, - }, + resolve: { + // Make EVERY import of react/react-dom resolve to this one location + alias: { + react: path.resolve(__dirname, 'node_modules/react'), + 'react-dom': path.resolve(__dirname, 'node_modules/react-dom'), }, + dedupe: ['react', 'react-dom'], + }, + optimizeDeps: { + include: ['react', 'react-dom', 'react/jsx-runtime'], // add jsx-runtime }, build: { - rollupOptions: { - output: { - manualChunks(id) { - if (!id.includes('node_modules')) return - - // Core framework - if (/[\\/]node_modules[\\/](react|react-dom|react-router-dom)[\\/]/.test(id)) { - return 'vendor-react' - } - // UI libs (all @ifrc-go/* + lucide) - if (/[\\/]node_modules[\\/]@ifrc-go[\\/]/.test(id) || /[\\/]node_modules[\\/]lucide-react[\\/]/.test(id)) { - return 'vendor-ui' - } - // Utils - if (/[\\/]node_modules[\\/]jszip[\\/]/.test(id)) return 'vendor-utils' - - // Fallback vendor bucket - return 'vendor' - }, - }, - }, - chunkSizeWarningLimit: 1000 + // ⛔ TEMP: comment out your manualChunks block while we test + // rollupOptions: { output: { manualChunks: { ... } } }, + chunkSizeWarningLimit: 1000, + }, + server: { + proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true, secure: false } }, }, test: { globals: true, environment: 'jsdom', setupFiles: ['./src/test/setup.ts'], css: true, - deps: { - inline: ['@ifrc-go/ui'] - } + deps: { inline: ['@ifrc-go/ui'] }, }, }) - - diff --git a/py_backend/static/assets/AdminPage-Dz89QBtX.js b/py_backend/static/assets/AdminPage-Dz89QBtX.js deleted file mode 100644 index c3307b3acfccbce44ee4ce72dbea25d8406c4b21..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/AdminPage-Dz89QBtX.js +++ /dev/null @@ -1,45 +0,0 @@ -import{r as d,j as a}from"./vendor-react-BxsGb6Ph.js";import{u as we}from"./useAdmin-B_k2Fdj-.js";import{N as B,R as Fe,O as h,z as f,n as t,f as S}from"./vendor-ui-l_DttnRj.js";import"./vendor-DxpCibxB.js";import"./index-Uy48qW96.js";const ke="_adminContainer_j11pf_5",Te="_adminHeader_j11pf_13",Ae="_adminSection_j11pf_20",Pe="_modelSelectionArea_j11pf_29",Ie="_modelSelectionRow_j11pf_36",$e="_modelsTable_j11pf_89",Le="_promptSubsection_j11pf_97",Ee="_promptSubsectionTitle_j11pf_109",Be="_modelCode_j11pf_152",Oe="_modelId_j11pf_157",Re="_modelActions_j11pf_163",De="_addModelButtonContainer_j11pf_169",Ue="_addModelForm_j11pf_177",ze="_addModelFormTitle_j11pf_185",He="_addModelFormGrid_j11pf_193",Ge="_addModelFormField_j11pf_206",Ve="_addModelFormCheckbox_j11pf_250",Je="_addModelFormActions_j11pf_268",Ke="_modalOverlay_j11pf_277",We="_modalContent_j11pf_291",qe="_modalBody_j11pf_302",Ye="_modalTitle_j11pf_312",Qe="_modalText_j11pf_320",Xe="_modalTextLeft_j11pf_332",Ze="_modalButtons_j11pf_355",ea="_modalForm_j11pf_363",aa="_formField_j11pf_372",la="_formLabel_j11pf_376",sa="_formInput_j11pf_385",oa="_textarea_j11pf_407",l={adminContainer:ke,adminHeader:Te,adminSection:Ae,modelSelectionArea:Pe,modelSelectionRow:Ie,modelsTable:$e,promptSubsection:Le,promptSubsectionTitle:Ee,modelCode:Be,modelId:Oe,modelActions:Re,addModelButtonContainer:De,addModelForm:Ue,addModelFormTitle:ze,addModelFormGrid:He,addModelFormField:Ge,addModelFormCheckbox:Ve,addModelFormActions:Je,modalOverlay:Ke,modalContent:We,modalBody:qe,modalTitle:Ye,modalText:Qe,modalTextLeft:Xe,modalButtons:Ze,modalForm:ea,formField:aa,formLabel:la,formInput:sa,textarea:oa},w="selectedVlmModel";function ca(){const{isAuthenticated:F,isLoading:X,login:Z,logout:ee}=we(),[k,O]=d.useState(""),[R,u]=d.useState(""),[D,U]=d.useState(!1),[z,H]=d.useState([]),[ae,b]=d.useState(""),[G,le]=d.useState([]),[se,oe]=d.useState([]),[te,y]=d.useState(!1),[de,N]=d.useState(!1),[ie,T]=d.useState(null),[C,A]=d.useState(null),[n,r]=d.useState({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1}),[V,P]=d.useState(!1),[ne,I]=d.useState(!1),[$,L]=d.useState(null),[o,c]=d.useState({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1}),[re,M]=d.useState(!1),[ce,E]=d.useState(!1),[me,p]=d.useState(!1),[J,K]=d.useState(""),[he,pe]=d.useState(""),[_e,_]=d.useState(""),[ue,j]=d.useState(""),x=d.useCallback(()=>{fetch("/api/models").then(e=>e.json()).then(e=>{console.log("Models data received:",e),H(e.models||[]);const s=localStorage.getItem(w);if(e.models&&e.models.length>0)if(s==="random")b("random");else if(s&&e.models.find(i=>i.m_code===s&&i.is_available))b(s);else{const i=e.models.find(m=>m.is_available)||e.models[0];b(i.m_code),localStorage.setItem(w,i.m_code)}}).catch(()=>{})},[]),v=d.useCallback(()=>{console.log("=== fetchPrompts called ==="),fetch("/api/prompts").then(e=>e.json()).then(e=>{console.log("Prompts data received:",e),le(e||[]),console.log("State update triggered with:",e||[])}).catch(e=>{console.error("Error fetching prompts:",e)})},[]),W=d.useCallback(()=>{fetch("/api/image-types").then(e=>e.json()).then(e=>{console.log("Image types data received:",e),oe(e||[])}).catch(()=>{})},[]);d.useEffect(()=>{F&&(x(),v(),W())},[F,x,v,W]);const q=e=>{A(e),r({p_code:e.p_code,label:e.label||"",metadata_instructions:e.metadata_instructions||"",image_type:e.image_type||"crisis_map",is_active:e.is_active||!1}),y(!0)},je=async()=>{try{if(!C){alert("No prompt selected for editing");return}const e=await fetch(`/api/prompts/${C.p_code}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({label:n.label,metadata_instructions:n.metadata_instructions,image_type:n.image_type,is_active:n.is_active})});if(e.ok)v(),y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to update prompt: ${s.error||"Unknown error"}`)}}catch{alert("Error updating prompt")}},Y=async(e,s)=>{try{const i=await fetch(`/api/prompts/${e}/toggle-active?image_type=${s}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(i.ok)v();else{const m=await i.json();alert(`Failed to toggle prompt active status: ${m.detail||"Unknown error"}`)}}catch{alert("Error toggling prompt active status")}},Q=e=>{T(e),r({p_code:"",label:"",metadata_instructions:"",image_type:e,is_active:!1}),N(!0)},xe=async()=>{try{const e=await fetch("/api/prompts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(e.ok)v(),N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to create prompt: ${s.detail||"Unknown error"}`)}}catch{alert("Error creating prompt")}},ve=async(e,s)=>{try{const i=await fetch(`/api/models/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_available:!s})});if(i.ok)H(m=>m.map(g=>g.m_code===e?{...g,is_available:!s}:g));else{const m=await i.json();alert(`Failed to toggle model availability: ${m.error||"Unknown error"}`)}}catch{alert("Error toggling model availability")}},ge=e=>{b(e),e==="random"?localStorage.setItem(w,"random"):localStorage.setItem(w,e)},fe=async()=>{try{const e=await fetch("/api/admin/models",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(o)});if(e.ok){const s=` -Model "${o.label}" added successfully! - -⚠️ IMPORTANT: Model will NOT work until you complete these steps: - -1. 🔑 Ensure API key is set and valid. - -2. 📝 Verify model_id format. - -3. 📚 Check model specific documentation for details. - `;pe(s),E(!0),P(!1),c({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1}),x()}else{const s=await e.json();alert(`Failed to add model: ${s.detail||"Unknown error"}`)}}catch{alert("Error adding model")}},be=e=>{L(e),c({m_code:e.m_code,label:e.label,model_type:e.model_type||"custom",provider:e.provider||e.config?.provider||"huggingface",model_id:e.model_id||e.config?.model_id||e.m_code,is_available:e.is_available}),I(!0)},ye=async()=>{try{console.log("Updating model with data:",o);const e={label:o.label,model_type:o.model_type,provider:o.provider,model_id:o.model_id,is_available:o.is_available};if(console.log("Update payload:",e),!$){alert("No model selected for editing");return}const s=await fetch(`/api/admin/models/${$.m_code}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(e)});if(console.log("Update response status:",s.status),s.ok){const i=await s.json();console.log("Update successful:",i),I(!1),L(null),c({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1}),console.log("Refreshing models..."),x()}else{const i=await s.json();console.error("Update failed:",i),alert(`Failed to update model: ${i.detail||"Unknown error"}`)}}catch(e){console.error("Update error:",e),alert("Error updating model")}},Ne=async e=>{K(e),M(!0)},Ce=async()=>{try{const e=await fetch(`/api/admin/models/${J}`,{method:"DELETE",headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}});if(e.ok)M(!1),K(""),x();else{const s=await e.json();alert(`Failed to delete model: ${s.detail||"Unknown error"}`)}}catch{alert("Error deleting model")}},Me=async e=>{if(e.preventDefault(),!k.trim()){u("Please enter a password");return}U(!0),u("");try{await Z(k)||u("Invalid password")}catch{u("Login failed. Please try again.")}finally{U(!1)}},Se=()=>{ee(),O(""),u("")};return X?a.jsx(B,{children:a.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-ifrcRed mx-auto mb-4"}),a.jsx("p",{className:"text-gray-600",children:"Loading..."})]})})}):F?a.jsxs(B,{children:[a.jsxs("div",{className:l.adminContainer,children:[a.jsx("div",{className:l.adminHeader,children:a.jsx(t,{name:"logout",variant:"secondary",onClick:Se,children:"Logout"})}),a.jsxs("div",{className:l.adminSection,children:[a.jsx(f,{heading:"VLM Model Selection",headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,children:a.jsxs("div",{className:l.modelSelectionArea,children:[a.jsx("p",{className:"text-gray-700",children:"Select which Vision Language Model to use for caption generation."}),a.jsx("div",{className:l.modelSelectionRow,children:a.jsx(S,{label:"Model",name:"selected-model",value:ae,onChange:e=>ge(e||""),options:[{value:"random",label:"Random"},...z.filter(e=>e.is_available).map(e=>({value:e.m_code,label:e.label}))],keySelector:e=>e.value,labelSelector:e=>e.label})})]})}),a.jsx(f,{heading:"Model Management",headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,children:a.jsxs("div",{className:l.modelManagementArea,children:[a.jsx("div",{className:l.modelsTable,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"Code"}),a.jsx("th",{children:"Label"}),a.jsx("th",{children:"Provider"}),a.jsx("th",{children:"Model ID"}),a.jsx("th",{children:"Available"}),a.jsx("th",{children:"Actions"})]})}),a.jsx("tbody",{children:z.map(e=>a.jsxs("tr",{children:[a.jsx("td",{className:l.modelCode,children:e.m_code}),a.jsx("td",{children:e.label}),a.jsx("td",{children:e.provider||e.config?.provider||"huggingface"}),a.jsx("td",{className:l.modelId,children:e.model_id||e.config?.model_id||e.m_code||"N/A"}),a.jsx("td",{children:a.jsx(t,{name:`toggle-${e.m_code}`,variant:e.is_available?"primary":"secondary",size:1,onClick:()=>ve(e.m_code,e.is_available),children:e.is_available?"Enabled":"Disabled"})}),a.jsx("td",{children:a.jsxs("div",{className:l.modelActions,children:[a.jsx(t,{name:`edit-${e.m_code}`,variant:"secondary",size:1,onClick:()=>be(e),children:"Edit"}),a.jsx(t,{name:`delete-${e.m_code}`,variant:"secondary",size:1,onClick:()=>Ne(e.m_code),children:"Delete"})]})})]},e.m_code))})]})}),!V&&a.jsx("div",{className:l.addModelButtonContainer,children:a.jsx(t,{name:"show-add-form",variant:"primary",onClick:()=>P(!0),children:"Add New Model"})}),V&&a.jsxs("div",{className:l.addModelForm,children:[a.jsx("h4",{className:l.addModelFormTitle,children:"Add New Model"}),a.jsxs("div",{className:l.addModelFormGrid,children:[a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Model Code",name:"model-code",value:o.m_code,onChange:e=>c({...o,m_code:e||""}),placeholder:"e.g., NEW_MODEL_123"})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Label",name:"model-label",value:o.label,onChange:e=>c({...o,label:e||""}),placeholder:"e.g., New Model Name"})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(S,{label:"Provider",name:"model-provider",value:o.provider,onChange:e=>c({...o,provider:e||"huggingface"}),options:[{value:"huggingface",label:"HuggingFace"},{value:"openai",label:"OpenAI"},{value:"google",label:"Google"}],keySelector:e=>e.value,labelSelector:e=>e.label})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Model ID",name:"model-id",value:o.model_id,onChange:e=>c({...o,model_id:e||""}),placeholder:"e.g., org/model-name"})}),a.jsx("div",{className:l.addModelFormField,children:a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:o.is_available,onChange:e=>c({...o,is_available:e.target.checked})}),a.jsx("span",{children:"Available for use"})]})})]}),a.jsxs("div",{className:l.addModelFormActions,children:[a.jsx(t,{name:"save-model",variant:"primary",onClick:fe,disabled:!o.m_code||!o.label||!o.model_id,children:"Save Model"}),a.jsx(t,{name:"cancel-add",variant:"secondary",onClick:()=>P(!1),children:"Cancel"})]})]}),ne&&a.jsxs("div",{className:l.addModelForm,children:[a.jsxs("h4",{className:l.addModelFormTitle,children:["Edit Model: ",$?.label]}),a.jsxs("div",{className:l.addModelFormGrid,children:[a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Model Code",name:"model-code",value:o.m_code,onChange:e=>c({...o,m_code:e||""}),placeholder:"e.g., NEW_MODEL_123",disabled:!0})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Label",name:"model-label",value:o.label,onChange:e=>c({...o,label:e||""}),placeholder:"e.g., New Model Name"})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(S,{label:"Provider",name:"model-provider",value:o.provider,onChange:e=>c({...o,provider:e||"huggingface"}),options:[{value:"huggingface",label:"HuggingFace"},{value:"openai",label:"OpenAI"},{value:"google",label:"Google"}],keySelector:e=>e.value,labelSelector:e=>e.label})}),a.jsx("div",{className:l.addModelFormField,children:a.jsx(h,{label:"Model ID",name:"model-id",value:o.model_id,onChange:e=>c({...o,model_id:e||""}),placeholder:"e.g., org/model-name"})}),a.jsx("div",{className:l.addModelFormField,children:a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:o.is_available,onChange:e=>c({...o,is_available:e.target.checked})}),a.jsx("span",{children:"Available for use"})]})})]}),a.jsxs("div",{className:l.addModelFormActions,children:[a.jsx(t,{name:"update-model",variant:"primary",onClick:ye,disabled:!o.m_code||!o.label||!o.model_id,children:"Update Model"}),a.jsx(t,{name:"cancel-edit",variant:"secondary",onClick:()=>{I(!1),L(null),c({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1})},children:"Cancel"})]})]})]})}),a.jsx(f,{heading:"Prompt Management",headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,children:a.jsxs("div",{className:l.modelManagementArea,children:[a.jsxs("div",{className:l.promptSubsection,children:[a.jsx("h4",{className:l.promptSubsectionTitle,children:"Crisis Maps"}),a.jsx("div",{className:l.modelsTable,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"Code"}),a.jsx("th",{children:"Label"}),a.jsx("th",{children:"Status"}),a.jsx("th",{children:"Actions"})]})}),a.jsx("tbody",{children:G.filter(e=>e.image_type==="crisis_map").sort((e,s)=>e.p_code.localeCompare(s.p_code)).map(e=>a.jsxs("tr",{children:[a.jsx("td",{className:l.modelCode,children:e.p_code}),a.jsx("td",{className:l.promptLabel,children:e.label||"No label"}),a.jsx("td",{children:a.jsx(t,{name:`toggle-crisis-${e.p_code}`,variant:e.is_active?"primary":"secondary",size:1,onClick:()=>Y(e.p_code,"crisis_map"),children:e.is_active?"Active":"Inactive"})}),a.jsx("td",{children:a.jsxs("div",{className:l.modelActions,children:[a.jsx(t,{name:`view-${e.p_code}`,variant:"secondary",size:1,onClick:()=>{_(`=== Prompt Details === -Code: ${e.p_code} -Label: ${e.label} -Image Type: ${e.image_type} -Active: ${e.is_active} - -Metadata Instructions: -${e.metadata_instructions||"No instructions available"}`),j(`Prompt: ${e.p_code}`),p(!0)},children:"View"}),a.jsx(t,{name:`edit-${e.p_code}`,variant:"secondary",size:1,onClick:()=>q(e),children:"Edit"})]})})]},e.p_code))})]})}),a.jsx("div",{className:l.addModelButtonContainer,children:a.jsx(t,{name:"add-crisis-prompt",variant:"primary",onClick:()=>Q("crisis_map"),children:"Add New Crisis Map Prompt"})})]}),a.jsxs("div",{className:l.promptSubsection,children:[a.jsx("h4",{className:l.promptSubsectionTitle,children:"Drone Images"}),a.jsx("div",{className:l.modelsTable,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"Code"}),a.jsx("th",{children:"Label"}),a.jsx("th",{children:"Status"}),a.jsx("th",{children:"Actions"})]})}),a.jsx("tbody",{children:G.filter(e=>e.image_type==="drone_image").sort((e,s)=>e.p_code.localeCompare(s.p_code)).map(e=>a.jsxs("tr",{children:[a.jsx("td",{className:l.modelCode,children:e.p_code}),a.jsx("td",{className:l.promptLabel,children:e.label||"No label"}),a.jsx("td",{children:a.jsx(t,{name:`toggle-drone-${e.p_code}`,variant:e.is_active?"primary":"secondary",size:1,onClick:()=>Y(e.p_code,"drone_image"),children:e.is_active?"Active":"Inactive"})}),a.jsx("td",{children:a.jsxs("div",{className:l.modelActions,children:[a.jsx(t,{name:`view-${e.p_code}`,variant:"secondary",size:1,onClick:()=>{_(`=== Prompt Details === -Code: ${e.p_code} -Label: ${e.label} -Image Type: ${e.image_type} -Active: ${e.is_active} - -Metadata Instructions: -${e.metadata_instructions||"No instructions available"}`),j(`Prompt: ${e.p_code}`),p(!0)},children:"View"}),a.jsx(t,{name:`edit-${e.p_code}`,variant:"secondary",size:1,onClick:()=>q(e),children:"Edit"})]})})]},e.p_code))})]})}),a.jsx("div",{className:l.addModelButtonContainer,children:a.jsx(t,{name:"add-drone-prompt",variant:"primary",onClick:()=>Q("drone_image"),children:"Add New Drone Image Prompt"})})]})]})}),a.jsx(f,{heading:"Utilities",headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(t,{name:"test-connection",variant:"secondary",onClick:async()=>{_("Testing API connection..."),j("Connection Test Results");try{const e=await fetch("/api/models");if(e.ok){const s=await e.json(),i=`✅ API connection successful! - -Found ${s.models?.length||0} models in database. - -Available models: -${s.models?.filter(m=>m.is_available).map(m=>`- ${m.label} (${m.m_code})`).join(` -`)||"None"}`;_(i)}else{const s=`❌ API connection failed: HTTP ${e.status}`;_(s)}p(!0)}catch(e){const s=`❌ Connection error: ${e}`;_(s),p(!0)}},children:"Test Connection"}),a.jsx(t,{name:"view-schemas",variant:"secondary",onClick:()=>{fetch("/api/schemas",{headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}}).then(e=>e.json()).then(e=>{console.log("Schemas Response:",e);let s="",i="Schemas Response";e&&Array.isArray(e)?(s=`Found ${e.length} schemas: - -`,e.forEach((m,g)=>{s+=`=== Schema ${g+1} === -`,s+=JSON.stringify(m,null,2),s+=` - -`})):e&&typeof e=="object"?s=`Prompts Response: - -Response type: ${typeof e} -Keys: ${Object.keys(e).join(", ")} - -Raw data: -${JSON.stringify(e,null,2)}`:s=`Prompts Response: - -Unexpected data type: ${typeof e} -Value: ${e}`,_(s),j(i),p(!0)}).catch(e=>{console.error("Schemas Error:",e);const s=`Failed to fetch prompts: ${e.message||"Unknown error"}`;_(s),j("Schemas Error"),p(!0)})},children:"View Schemas"})]})})]})]}),re&&a.jsx("div",{className:l.modalOverlay,onClick:()=>M(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Delete Model"}),a.jsxs("p",{className:l.modalText,children:["Are you sure you want to delete model ",a.jsx("span",{className:l.modelCode,children:J}),"? This action cannot be undone."]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-delete",variant:"tertiary",onClick:()=>M(!1),children:"Cancel"}),a.jsx(t,{name:"confirm-delete",variant:"secondary",onClick:Ce,children:"Delete"})]})]})})}),ce&&a.jsx("div",{className:l.modalOverlay,onClick:()=>E(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Model Added Successfully!"}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:he}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-setup-instructions",variant:"secondary",onClick:()=>E(!1),children:"Got it!"})})]})})}),me&&a.jsx("div",{className:l.modalOverlay,onClick:()=>p(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:ue}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:a.jsx("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:_e})}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-test-results",variant:"secondary",onClick:()=>p(!1),children:"Close"})})]})})}),te&&a.jsx("div",{className:l.modalOverlay,onClick:()=>y(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Edit Prompt: ",C?.p_code]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:C?.p_code,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(S,{name:"prompt-image-type",value:n.image_type,onChange:e=>r(s=>({...s,image_type:e||"crisis_map"})),options:se,keySelector:e=>e.image_type,labelSelector:e=>e.label})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-edit-prompt",variant:"tertiary",onClick:()=>{y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-prompt",variant:"primary",onClick:je,children:"Save Changes"})]})]})})}),de&&a.jsx("div",{className:l.modalOverlay,onClick:()=>N(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Add New ",ie==="crisis_map"?"Crisis Map":"Drone Image"," Prompt"]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:n.p_code,onChange:e=>r(s=>({...s,p_code:e||""})),placeholder:"e.g., CUSTOM_CRISIS_MAP_001",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),placeholder:"Enter prompt description...",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(h,{name:"prompt-image-type",value:n.image_type,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),placeholder:"Enter metadata extraction instructions...",className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-add-prompt",variant:"tertiary",onClick:()=>{N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-new-prompt",variant:"primary",onClick:xe,disabled:!n.p_code||!n.label,children:"Create Prompt"})]})]})})})]}):a.jsx(B,{children:a.jsxs("div",{className:"mx-auto max-w-md px-4 sm:px-6 lg:px-8 py-6 sm:py-10",children:[a.jsx("div",{className:"text-center mb-8",children:a.jsx(Fe,{level:2,children:"Admin Login"})}),a.jsxs("form",{onSubmit:Me,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Password"}),a.jsx(h,{id:"password",name:"password",type:"password",value:k,onChange:e=>O(e||""),placeholder:"Enter admin password",required:!0,className:"w-full"})]}),R&&a.jsx("div",{className:"bg-ifrcRed/10 border border-ifrcRed/20 rounded-md p-3",children:a.jsx("p",{className:"text-sm text-ifrcRed font-medium",children:R})}),a.jsx("div",{className:"flex justify-center",children:a.jsx(f,{withInternalPadding:!0,className:"p-2",children:a.jsx(t,{name:"login",type:"submit",variant:"primary",size:2,disabled:D,children:D?"Logging in...":"Login"})})})]})]})})}export{ca as default}; diff --git a/py_backend/static/assets/ExportModal-BtNOxnGZ.js b/py_backend/static/assets/ExportModal-BtNOxnGZ.js deleted file mode 100644 index 3809951a0141206a35fc0d7c960bdaad9e515ae7..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/ExportModal-BtNOxnGZ.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,j as e}from"./vendor-react-BxsGb6Ph.js";import{z as i,n as r,F as W,O,f as v,d as P,_ as N,L as B,j as F}from"./vendor-ui-l_DttnRj.js";import{u as A}from"./index-Uy48qW96.js";function ie({sources:_,types:S,regions:f,countries:I,imageTypes:k,isLoadingFilters:a=!1}){const[d,y]=o.useState(!1),{search:T,setSearch:p,srcFilter:w,setSrcFilter:m,catFilter:z,setCatFilter:u,regionFilter:h,setRegionFilter:g,countryFilter:x,setCountryFilter:j,imageTypeFilter:M,setImageTypeFilter:b,uploadTypeFilter:E,setUploadTypeFilter:C,showReferenceExamples:c,setShowReferenceExamples:t,clearAllFilters:n}=A();return e.jsxs("div",{className:"mb-6 space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(r,{name:"toggle-filters",variant:"secondary",onClick:()=>y(!d),className:"whitespace-nowrap",title:d?"Hide Filters":"Show Filters",children:e.jsx(W,{className:"w-4 h-4"})})}),e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:e.jsx(O,{name:"search",placeholder:"Search examples...",value:T,onChange:l=>p(l||"")})}),e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(r,{name:"clear-filters",variant:"secondary",onClick:n,children:"Clear Filters"})})]}),d&&e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-md p-4",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"source",placeholder:a?"Loading...":"All Sources",options:_,value:w||null,onChange:l=>m(l||""),keySelector:l=>l.s_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"category",placeholder:a?"Loading...":"All Categories",options:S,value:z||null,onChange:l=>u(l||""),keySelector:l=>l.t_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"region",placeholder:a?"Loading...":"All Regions",options:f,value:h||null,onChange:l=>g(l||""),keySelector:l=>l.r_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(P,{name:"country",placeholder:a?"Loading...":"All Countries",options:I,value:x?[x]:[],onChange:l=>j(l[0]||""),keySelector:l=>l.c_code,labelSelector:l=>l.label,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"imageType",placeholder:a?"Loading...":"All Image Types",options:k,value:M||null,onChange:l=>b(l||""),keySelector:l=>l.image_type,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"uploadType",placeholder:"All Upload Types",options:[{key:"single",label:"Single Upload"},{key:"multiple",label:"Multiple Upload"}],value:E||null,onChange:l=>C(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})})]})})]})}const R="_fullSizeModalOverlay_cyz3b_1",q="_fullSizeModalContent_cyz3b_29",G="_ratingWarningContent_cyz3b_53",U="_ratingWarningTitle_cyz3b_65",D="_exportModeSection_cyz3b_133",V="_splitConfigSection_cyz3b_143",Y="_splitConfigTitle_cyz3b_153",$="_splitInputsContainer_cyz3b_167",H="_splitInputGroup_cyz3b_183",J="_splitInputLabel_cyz3b_197",K="_splitInput_cyz3b_167",Q="_splitTotal_cyz3b_247",X="_splitTotalError_cyz3b_261",Z="_checkboxesContainer_cyz3b_271",L="_ratingWarningButtons_cyz3b_289",ee="_singleExportMessage_cyz3b_309",le="_navigateButtonContainer_cyz3b_333",se="_loadingOverlay_cyz3b_349",s={fullSizeModalOverlay:R,fullSizeModalContent:q,ratingWarningContent:G,ratingWarningTitle:U,exportModeSection:D,splitConfigSection:V,splitConfigTitle:Y,splitInputsContainer:$,splitInputGroup:H,splitInputLabel:J,splitInput:K,splitTotal:Q,splitTotalError:X,checkboxesContainer:Z,ratingWarningButtons:L,singleExportMessage:ee,navigateButtonContainer:le,loadingOverlay:se};function re({isOpen:_,onClose:S,onExport:f,crisisMapsCount:I,droneImagesCount:k,isLoading:a=!1,exportSuccess:d=!1,variant:y="bulk",onNavigateAndExport:T}){const[p,w]=o.useState("standard"),[m,z]=o.useState(80),[u,h]=o.useState(10),[g,x]=o.useState(10),[j,M]=o.useState(!0),[b,E]=o.useState(!0),C=()=>{if(y==="single"){f(p,["crisis_map","drone_image"]);return}if(!j&&!b){alert("Please select at least one image type to export.");return}const t=[];j&&t.push("crisis_map"),b&&t.push("drone_image"),f(p,t)},c=()=>{S()};return _?y==="single"?e.jsx("div",{className:s.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:s.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:[a&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(N,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),d&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(r,{name:"close-export-success",onClick:c,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:s.ratingWarningContent,children:[e.jsx("h3",{className:s.ratingWarningTitle,children:"Export Single Item"}),e.jsxs("div",{className:s.singleExportMessage,children:[e.jsx("p",{children:"This only exports the 1 item currently on display."}),e.jsx("p",{children:'You may export the entire dataset from the "list view" here:'})]}),e.jsx("div",{className:s.navigateButtonContainer,children:e.jsx(r,{name:"navigate-to-list",variant:"secondary",onClick:T,children:"Navigate to List View"})}),e.jsxs("div",{className:s.ratingWarningButtons,children:[e.jsx(r,{name:"continue-export",onClick:C,disabled:a,children:a?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"text-white"}),"Exporting..."]}):"Continue"}),e.jsx(r,{name:"cancel-export",variant:"tertiary",onClick:c,disabled:a,children:"Cancel"})]})]})]})}):e.jsx("div",{className:s.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:s.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:[a&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(N,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),d&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(r,{name:"close-export-success",onClick:c,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:s.ratingWarningContent,children:[e.jsx("h3",{className:s.ratingWarningTitle,children:"Export Dataset"}),e.jsx("div",{className:s.exportModeSection,children:e.jsx(B,{name:"export-mode",value:p,onChange:t=>{(t==="standard"||t==="fine-tuning")&&w(t)},options:[{key:"standard",label:"Standard"},{key:"fine-tuning",label:"Fine-tuning"}],keySelector:t=>t.key,labelSelector:t=>t.label,disabled:a})}),p==="fine-tuning"&&e.jsxs("div",{className:s.splitConfigSection,children:[e.jsx("div",{className:s.splitConfigTitle,children:"Dataset Split Configuration"}),e.jsxs("div",{className:s.splitInputsContainer,children:[e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"train-split",className:s.splitInputLabel,children:"Train (%)"}),e.jsx("input",{id:"train-split",type:"number",min:"0",max:"100",value:m,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-n;l>=0&&(z(n),u+g>l&&(h(Math.floor(l/2)),x(l-Math.floor(l/2))))},className:s.splitInput,disabled:a})]}),e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"test-split",className:s.splitInputLabel,children:"Test (%)"}),e.jsx("input",{id:"test-split",type:"number",min:"0",max:"100",value:u,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-m-n;l>=0&&(h(n),x(l))},className:s.splitInput,disabled:a})]}),e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"val-split",className:s.splitInputLabel,children:"Val (%)"}),e.jsx("input",{id:"val-split",type:"number",min:"0",max:"100",value:g,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-m-n;l>=0&&(x(n),h(l))},className:s.splitInput,disabled:a})]})]}),m+u+g!==100&&e.jsx("div",{className:s.splitTotal,children:e.jsx("span",{className:s.splitTotalError,children:"Must equal 100%"})})]}),e.jsxs("div",{className:s.checkboxesContainer,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(F,{name:"crisis-maps",label:`Crisis Maps (${I} images)`,value:j,onChange:t=>M(t),disabled:a})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(F,{name:"drone-images",label:`Drone Images (${k} images)`,value:b,onChange:t=>E(t),disabled:a})})]}),e.jsxs("div",{className:s.ratingWarningButtons,children:[e.jsx(r,{name:"confirm-export",onClick:C,disabled:a,children:a?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"text-white"}),"Exporting..."]}):"Export Selected"}),e.jsx(r,{name:"cancel-export",variant:"tertiary",onClick:c,disabled:a,children:"Cancel"})]})]})]})}):null}export{re as E,ie as F}; diff --git a/py_backend/static/assets/ExportModal-DxEvAVvI.js b/py_backend/static/assets/ExportModal-DxEvAVvI.js deleted file mode 100644 index c91d965516f4eaebeff60ee10298e127d4cd8679..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/ExportModal-DxEvAVvI.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,j as e}from"./vendor-react-BxsGb6Ph.js";import{z as i,n as r,F as W,O,f as v,d as P,_ as N,L as B,j as F}from"./vendor-ui-l_DttnRj.js";import{u as A}from"./index-DyXqjI96.js";function ie({sources:_,types:S,regions:f,countries:I,imageTypes:k,isLoadingFilters:a=!1}){const[d,y]=o.useState(!1),{search:T,setSearch:p,srcFilter:w,setSrcFilter:m,catFilter:z,setCatFilter:u,regionFilter:h,setRegionFilter:g,countryFilter:x,setCountryFilter:j,imageTypeFilter:M,setImageTypeFilter:b,uploadTypeFilter:E,setUploadTypeFilter:C,showReferenceExamples:c,setShowReferenceExamples:t,clearAllFilters:n}=A();return e.jsxs("div",{className:"mb-6 space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(r,{name:"toggle-filters",variant:"secondary",onClick:()=>y(!d),className:"whitespace-nowrap",title:d?"Hide Filters":"Show Filters",children:e.jsx(W,{className:"w-4 h-4"})})}),e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:e.jsx(O,{name:"search",placeholder:"Search examples...",value:T,onChange:l=>p(l||"")})}),e.jsx(i,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(r,{name:"clear-filters",variant:"secondary",onClick:n,children:"Clear Filters"})})]}),d&&e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-md p-4",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"source",placeholder:a?"Loading...":"All Sources",options:_,value:w||null,onChange:l=>m(l||""),keySelector:l=>l.s_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"category",placeholder:a?"Loading...":"All Categories",options:S,value:z||null,onChange:l=>u(l||""),keySelector:l=>l.t_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"region",placeholder:a?"Loading...":"All Regions",options:f,value:h||null,onChange:l=>g(l||""),keySelector:l=>l.r_code,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(P,{name:"country",placeholder:a?"Loading...":"All Countries",options:I,value:x?[x]:[],onChange:l=>j(l[0]||""),keySelector:l=>l.c_code,labelSelector:l=>l.label,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"imageType",placeholder:a?"Loading...":"All Image Types",options:k,value:M||null,onChange:l=>b(l||""),keySelector:l=>l.image_type,labelSelector:l=>l.label,required:!1,disabled:a})}),e.jsx(i,{withInternalPadding:!0,className:"p-2",children:e.jsx(v,{name:"uploadType",placeholder:"All Upload Types",options:[{key:"single",label:"Single Upload"},{key:"multiple",label:"Multiple Upload"}],value:E||null,onChange:l=>C(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})})]})})]})}const R="_fullSizeModalOverlay_cyz3b_1",q="_fullSizeModalContent_cyz3b_29",G="_ratingWarningContent_cyz3b_53",U="_ratingWarningTitle_cyz3b_65",D="_exportModeSection_cyz3b_133",V="_splitConfigSection_cyz3b_143",Y="_splitConfigTitle_cyz3b_153",$="_splitInputsContainer_cyz3b_167",H="_splitInputGroup_cyz3b_183",J="_splitInputLabel_cyz3b_197",K="_splitInput_cyz3b_167",Q="_splitTotal_cyz3b_247",X="_splitTotalError_cyz3b_261",Z="_checkboxesContainer_cyz3b_271",L="_ratingWarningButtons_cyz3b_289",ee="_singleExportMessage_cyz3b_309",le="_navigateButtonContainer_cyz3b_333",se="_loadingOverlay_cyz3b_349",s={fullSizeModalOverlay:R,fullSizeModalContent:q,ratingWarningContent:G,ratingWarningTitle:U,exportModeSection:D,splitConfigSection:V,splitConfigTitle:Y,splitInputsContainer:$,splitInputGroup:H,splitInputLabel:J,splitInput:K,splitTotal:Q,splitTotalError:X,checkboxesContainer:Z,ratingWarningButtons:L,singleExportMessage:ee,navigateButtonContainer:le,loadingOverlay:se};function re({isOpen:_,onClose:S,onExport:f,crisisMapsCount:I,droneImagesCount:k,isLoading:a=!1,exportSuccess:d=!1,variant:y="bulk",onNavigateAndExport:T}){const[p,w]=o.useState("standard"),[m,z]=o.useState(80),[u,h]=o.useState(10),[g,x]=o.useState(10),[j,M]=o.useState(!0),[b,E]=o.useState(!0),C=()=>{if(y==="single"){f(p,["crisis_map","drone_image"]);return}if(!j&&!b){alert("Please select at least one image type to export.");return}const t=[];j&&t.push("crisis_map"),b&&t.push("drone_image"),f(p,t)},c=()=>{S()};return _?y==="single"?e.jsx("div",{className:s.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:s.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:[a&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(N,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),d&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(r,{name:"close-export-success",onClick:c,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:s.ratingWarningContent,children:[e.jsx("h3",{className:s.ratingWarningTitle,children:"Export Single Item"}),e.jsxs("div",{className:s.singleExportMessage,children:[e.jsx("p",{children:"This only exports the 1 item currently on display."}),e.jsx("p",{children:'You may export the entire dataset from the "list view" here:'})]}),e.jsx("div",{className:s.navigateButtonContainer,children:e.jsx(r,{name:"navigate-to-list",variant:"secondary",onClick:T,children:"Navigate to List View"})}),e.jsxs("div",{className:s.ratingWarningButtons,children:[e.jsx(r,{name:"continue-export",onClick:C,disabled:a,children:a?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"text-white"}),"Exporting..."]}):"Continue"}),e.jsx(r,{name:"cancel-export",variant:"tertiary",onClick:c,disabled:a,children:"Cancel"})]})]})]})}):e.jsx("div",{className:s.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:s.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:[a&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(N,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),d&&e.jsx("div",{className:s.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(r,{name:"close-export-success",onClick:c,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:s.ratingWarningContent,children:[e.jsx("h3",{className:s.ratingWarningTitle,children:"Export Dataset"}),e.jsx("div",{className:s.exportModeSection,children:e.jsx(B,{name:"export-mode",value:p,onChange:t=>{(t==="standard"||t==="fine-tuning")&&w(t)},options:[{key:"standard",label:"Standard"},{key:"fine-tuning",label:"Fine-tuning"}],keySelector:t=>t.key,labelSelector:t=>t.label,disabled:a})}),p==="fine-tuning"&&e.jsxs("div",{className:s.splitConfigSection,children:[e.jsx("div",{className:s.splitConfigTitle,children:"Dataset Split Configuration"}),e.jsxs("div",{className:s.splitInputsContainer,children:[e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"train-split",className:s.splitInputLabel,children:"Train (%)"}),e.jsx("input",{id:"train-split",type:"number",min:"0",max:"100",value:m,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-n;l>=0&&(z(n),u+g>l&&(h(Math.floor(l/2)),x(l-Math.floor(l/2))))},className:s.splitInput,disabled:a})]}),e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"test-split",className:s.splitInputLabel,children:"Test (%)"}),e.jsx("input",{id:"test-split",type:"number",min:"0",max:"100",value:u,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-m-n;l>=0&&(h(n),x(l))},className:s.splitInput,disabled:a})]}),e.jsxs("div",{className:s.splitInputGroup,children:[e.jsx("label",{htmlFor:"val-split",className:s.splitInputLabel,children:"Val (%)"}),e.jsx("input",{id:"val-split",type:"number",min:"0",max:"100",value:g,onChange:t=>{const n=parseInt(t.target.value)||0,l=100-m-n;l>=0&&(x(n),h(l))},className:s.splitInput,disabled:a})]})]}),m+u+g!==100&&e.jsx("div",{className:s.splitTotal,children:e.jsx("span",{className:s.splitTotalError,children:"Must equal 100%"})})]}),e.jsxs("div",{className:s.checkboxesContainer,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(F,{name:"crisis-maps",label:`Crisis Maps (${I} images)`,value:j,onChange:t=>M(t),disabled:a})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(F,{name:"drone-images",label:`Drone Images (${k} images)`,value:b,onChange:t=>E(t),disabled:a})})]}),e.jsxs("div",{className:s.ratingWarningButtons,children:[e.jsx(r,{name:"confirm-export",onClick:C,disabled:a,children:a?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"text-white"}),"Exporting..."]}):"Export Selected"}),e.jsx(r,{name:"cancel-export",variant:"tertiary",onClick:c,disabled:a,children:"Cancel"})]})]})]})}):null}export{re as E,ie as F}; diff --git a/py_backend/static/assets/index-Bj6KcvNd.js b/py_backend/static/assets/index-Bj6KcvNd.js deleted file mode 100644 index 349af3d4b051635f8eafa536824e2f72bee5c243..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-Bj6KcvNd.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-utils-Db80MiSc.js","assets/vendor-DxpCibxB.js","assets/vendor-react-BxsGb6Ph.js"])))=>i.map(i=>d[i]); -import{u as Se,_ as Te}from"./index-DyXqjI96.js";import{r as m,j as t}from"./vendor-react-BxsGb6Ph.js";import{N as Ie,_ as ie,L as Ee,z as Z,n as D,D as be}from"./vendor-ui-l_DttnRj.js";import{u as Ce}from"./useAdmin-BStaIYmd.js";import{F as $e,E as Pe}from"./ExportModal-DxEvAVvI.js";import{a as Fe,u as De}from"./vendor-DxpCibxB.js";const ke="_tabSelector_o9y1f_1",Le="_metadataTags_o9y1f_8",Oe="_metadataTag_o9y1f_8",Me="_metadataTagSource_o9y1f_32",Re="_metadataTagType_o9y1f_43",Je="_mapItem_o9y1f_54",We="_mapItemImage_o9y1f_72",ze="_mapItemContent_o9y1f_92",Ue="_mapItemTitle_o9y1f_97",Ae="_mapItemMetadata_o9y1f_105",Be="_fullSizeModalOverlay_o9y1f_134",He="_fullSizeModalContent_o9y1f_148",Ve="_ratingWarningContent_o9y1f_159",Ge="_ratingWarningTitle_o9y1f_165",Ze="_ratingWarningText_o9y1f_172",qe="_ratingWarningButtons_o9y1f_179",g={tabSelector:ke,metadataTags:Le,metadataTag:Oe,metadataTagSource:Me,metadataTagType:Re,mapItem:Je,mapItemImage:We,mapItemContent:ze,mapItemTitle:Ue,mapItemMetadata:Ae,fullSizeModalOverlay:Be,fullSizeModalContent:He,ratingWarningContent:Ve,ratingWarningTitle:Ge,ratingWarningText:Ze,ratingWarningButtons:qe};function at(){const k=Fe(),q=De(),{isAuthenticated:ne}=Ce(),[K,oe]=m.useState("explore"),[_,L]=m.useState([]),{search:y,srcFilter:E,catFilter:b,regionFilter:C,countryFilter:$,imageTypeFilter:P,uploadTypeFilter:F,showReferenceExamples:j,setShowReferenceExamples:le}=Se(),[J,re]=m.useState([]),[W,ce]=m.useState([]),[Q,me]=m.useState([]),[ge,de]=m.useState([]),[X,pe]=m.useState([]),[ue,Y]=m.useState(!0),[z,ee]=m.useState(!0),[fe,U]=m.useState(!1),[he,A]=m.useState(!1),[_e,B]=m.useState(!1),[xe,O]=m.useState(!1),[M,te]=m.useState(""),[H,ae]=m.useState(!1),ye=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],se=()=>{ee(!0),fetch("/api/images/grouped").then(e=>e.ok?e.json():(console.error("ExplorePage: Grouped endpoint failed, trying legacy endpoint"),fetch("/api/captions/legacy").then(s=>s.ok?s.json():(console.error("ExplorePage: Legacy endpoint failed, trying regular images endpoint"),fetch("/api/images").then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}))))).then(e=>{if(console.log("ExplorePage: API response data:",e),Array.isArray(e)){const s=e.filter(o=>{const f=o.generated&&o.model,u=o.image_id&&o.image_id!=="undefined"&&o.image_id!=="null";return u||console.error("ExplorePage: Item missing valid image_id:",o),f&&u});console.log("ExplorePage: Filtered images with captions:",s.length),L(s)}else console.error("ExplorePage: API response is not an array:",e),L([])}).catch(()=>{L([])}).finally(()=>{ee(!1)})};m.useEffect(()=>{se()},[]),m.useEffect(()=>{const e=()=>{document.hidden||se()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),m.useEffect(()=>{new URLSearchParams(q.search).get("export")==="true"&&(U(!0),k("/explore",{replace:!0}))},[q.search,k,y,E,b,C,$,P,j]),m.useEffect(()=>{Y(!0),Promise.all([fetch("/api/sources").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/regions").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/countries").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()})]).then(([e,s,o,f,u])=>{re(e),ce(s),me(o),de(f),pe(u)}).catch(()=>{}).finally(()=>{Y(!1)})},[]);const v=m.useMemo(()=>_.filter(e=>{const s=!y||e.title?.toLowerCase().includes(y.toLowerCase())||e.generated?.toLowerCase().includes(y.toLowerCase())||e.source?.toLowerCase().includes(y.toLowerCase())||e.event_type?.toLowerCase().includes(y.toLowerCase()),o=!E||e.source&&e.source.split(", ").some(x=>x.trim()===E),f=!b||e.event_type&&e.event_type.split(", ").some(x=>x.trim()===b),u=!C||e.countries.some(x=>x.r_code===C),N=!$||e.countries.some(x=>x.c_code===$),V=!P||e.image_type===P,R=!F||F==="single"&&(!e.image_count||e.image_count<=1)||F==="multiple"&&e.image_count&&e.image_count>1,w=!j||e.starred===!0;return s&&o&&f&&u&&N&&V&&R&&w}),[_,y,E,b,C,$,P,F,j]),je=async(e,s="fine-tuning")=>{if(e.length===0){alert("No images to export");return}A(!0),B(!1);try{const o=(await Te(async()=>{const{default:i}=await import("./vendor-utils-Db80MiSc.js").then(S=>S.j);return{default:i}},__vite__mapDeps([0,1,2]))).default,f=new o,u=e.filter(i=>i.image_type==="crisis_map"),N=e.filter(i=>i.image_type==="drone_image");if(u.length>0){const i=f.folder("crisis_maps_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of u)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}if(N.length>0){const i=f.folder("drone_images_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of N)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}const V=await f.generateAsync({type:"blob"}),R=URL.createObjectURL(V),w=document.createElement("a");w.href=R,w.download=`datasets_${s}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(R);const x=(u.length||0)+(N.length||0);console.log(`Exported ${s} datasets with ${x} total images:`),u.length>0&&console.log(`- Crisis maps: ${u.length} images`),N.length>0&&console.log(`- Drone images: ${N.length} images`),B(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{A(!1)}},ve=e=>{te(e),O(!0)},Ne=async()=>{if(M){ae(!0);try{console.log("Deleting image with ID:",M),(await fetch(`/api/images/${M}`,{method:"DELETE"})).ok?(L(s=>s.filter(o=>o.image_id!==M)),O(!1),te("")):(console.error("Delete failed"),alert("Failed to delete image. Please try again."))}catch(e){console.error("Delete failed:",e),alert("Failed to delete image. Please try again.")}finally{ae(!1)}}};return t.jsxs(Ie,{children:[z?t.jsx("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}):t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:g.tabSelector,children:[t.jsx(Ee,{name:"explore-view",value:K,onChange:e=>{(e==="explore"||e==="mapDetails")&&(oe(e),e==="mapDetails"&&_.length>0&&(_[0]?.image_id&&_[0].image_id!=="undefined"&&_[0].image_id!=="null"?k(`/map/${_[0].image_id}`):console.error("Invalid image_id for navigation:",_[0]?.image_id)))},options:ye,keySelector:e=>e.key,labelSelector:e=>e.label}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(D,{name:"reference-examples",variant:j?"primary":"secondary",onClick:()=>le(!j),className:"whitespace-nowrap",children:[t.jsx("span",{className:"mr-2",children:j?t.jsx("span",{className:"text-yellow-400",children:"★"}):t.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),t.jsx(D,{name:"export-dataset",variant:"secondary",onClick:()=>U(!0),children:"Export"})]})]}),K==="explore"?t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"mb-6 space-y-4",children:t.jsx("div",{className:"flex flex-wrap items-center gap-4",children:t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:t.jsx($e,{sources:J,types:W,regions:Q,countries:ge,imageTypes:X,isLoadingFilters:ue})})})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-between items-center",children:t.jsxs("p",{className:"text-sm text-gray-600",children:[v.length," of ",_.length," examples"]})}),z&&t.jsx("div",{className:"text-center py-12",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}),!z&&t.jsxs("div",{className:"space-y-4",children:[v.map(e=>t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:`${g.mapItem} flex-1`,onClick:()=>{console.log("ExplorePage: Clicking on image with ID:",e.image_id),console.log("ExplorePage: Image data:",e),e.image_id&&e.image_id!=="undefined"&&e.image_id!=="null"?(console.log("ExplorePage: Navigating to:",`/map/${e.image_id}`),console.log("ExplorePage: Full navigation URL:",`/#/map/${e.image_id}`),k(`/map/${e.image_id}`)):(console.error("Invalid image_id for navigation:",e.image_id),console.error("Full item data:",JSON.stringify(e,null,2)),alert(`Cannot navigate: Invalid image ID (${e.image_id})`))},children:[t.jsx("div",{className:g.mapItemImage,style:{width:"120px",height:"80px"},children:e.image_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: Rendering image with URL:",e.image_url),t.jsx("img",{src:e.image_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Image failed to load:",e.image_url);const o=s.target;o.style.display="none",o.parentElement.innerHTML="Img"},onLoad:()=>console.log("ExplorePage: Image loaded successfully:",e.image_url)})]}):t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No image_url provided for item:",e),"'Img'"]})}),t.jsxs("div",{className:g.mapItemContent,children:[t.jsx("h3",{className:g.mapItemTitle,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{children:e.title||"Untitled"}),e.starred&&t.jsx("span",{className:"text-red-500 text-lg",title:"Starred image",children:"★"})]})}),t.jsx("div",{className:g.mapItemMetadata,children:t.jsxs("div",{className:g.metadataTags,children:[e.image_type!=="drone_image"&&t.jsx("span",{className:g.metadataTagSource,children:e.source&&e.source.includes(", ")?e.source.split(", ").map(s=>J.find(o=>o.s_code===s.trim())?.label||s.trim()).join(", "):J.find(s=>s.s_code===e.source)?.label||e.source}),t.jsx("span",{className:g.metadataTagType,children:e.event_type&&e.event_type.includes(", ")?e.event_type.split(", ").map(s=>W.find(o=>o.t_code===s.trim())?.label||s.trim()).join(", "):W.find(s=>s.t_code===e.event_type)?.label||e.event_type}),t.jsx("span",{className:g.metadataTag,children:X.find(s=>s.image_type===e.image_type)?.label||e.image_type}),e.image_count&&e.image_count>1&&t.jsxs("span",{className:g.metadataTag,title:`Multi-upload with ${e.image_count} images`,children:["📷 ",e.image_count]}),(!e.image_count||e.image_count<=1)&&t.jsx("span",{className:g.metadataTag,title:"Single Upload",children:"Single"}),e.countries&&e.countries.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:g.metadataTag,children:Q.find(s=>s.r_code===e.countries[0].r_code)?.label||"Unknown Region"}),t.jsx("span",{className:g.metadataTag,children:e.countries.map(s=>s.label).join(", ")})]})]})})]})]}),ne&&t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(D,{name:`delete-${e.image_id}`,variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:()=>ve(e.image_id),title:"Delete","aria-label":"Delete saved image",children:t.jsx(be,{className:"w-4 h-4"})})})]},e.image_id)),!v.length&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"No examples found."})})]})]})]}):t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{className:"text-center py-12",children:[t.jsx("p",{className:"text-gray-500",children:"Map Details view coming soon..."}),t.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"This will show detailed information about individual maps"})]})})]}),xe&&t.jsx("div",{className:g.fullSizeModalOverlay,onClick:()=>O(!1),children:t.jsx("div",{className:g.fullSizeModalContent,onClick:e=>e.stopPropagation(),children:t.jsxs("div",{className:g.ratingWarningContent,children:[t.jsx("h3",{className:g.ratingWarningTitle,children:"Delete Image?"}),t.jsx("p",{className:g.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),t.jsxs("div",{className:g.ratingWarningButtons,children:[t.jsx(D,{name:"confirm-delete",variant:"secondary",onClick:Ne,disabled:H,children:H?"Deleting...":"Delete"}),t.jsx(D,{name:"cancel-delete",variant:"tertiary",onClick:()=>O(!1),disabled:H,children:"Cancel"})]})]})})}),t.jsx(Pe,{isOpen:fe,onClose:()=>{U(!1),B(!1),A(!1)},onExport:(e,s)=>{const o=v.filter(f=>s.includes(f.image_type));je(o,e)},filteredCount:v.length,totalCount:_.length,hasFilters:!!(y||E||b||C||$||P||F||j),crisisMapsCount:v.filter(e=>e.image_type==="crisis_map").length,droneImagesCount:v.filter(e=>e.image_type==="drone_image").length,isLoading:he,exportSuccess:_e})]})}export{at as default}; diff --git a/py_backend/static/assets/index-BsrMOmjk.css b/py_backend/static/assets/index-BsrMOmjk.css deleted file mode 100644 index 1a45a4d4436ba40b68c6ff531acb8c99059edefb..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-BsrMOmjk.css +++ /dev/null @@ -1 +0,0 @@ -._tabSelector_vlxoe_1{display:flex;justify-content:center;margin:var(--go-ui-spacing-xl) 0}._summaryStats_vlxoe_7{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._progressSection_vlxoe_14{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._progressLabel_vlxoe_20{display:flex;justify-content:space-between;margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._chartGrid_vlxoe_28{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-xl)}._chartSection_vlxoe_34{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._chartContainer_vlxoe_40{display:flex;justify-content:center;align-items:center;min-height:300px;background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-lg)}._tableContainer_vlxoe_51,._modelPerformance_vlxoe_59{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);overflow:hidden;box-shadow:var(--go-ui-box-shadow-sm)}._loadingContainer_vlxoe_67{display:flex;align-items:center;justify-content:center;min-height:400px;color:var(--go-ui-color-gray-60);font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-medium)}._errorContainer_vlxoe_77{display:flex;align-items:center;justify-content:center;min-height:400px;color:var(--go-ui-color-negative);font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-medium)}@media (min-width: 1024px){._chartSection_vlxoe_34{grid-template-columns:1fr 1fr}}._userInteractionCards_vlxoe_96{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._userInteractionCard_vlxoe_96{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-xl);text-align:center;box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow .2s ease-in-out}._userInteractionCard_vlxoe_96:hover{box-shadow:var(--go-ui-box-shadow-md)}._userInteractionCardValue_vlxoe_116{font-size:var(--go-ui-font-size-2xl);font-weight:var(--go-ui-font-weight-bold);color:var(--go-ui-color-text);margin-bottom:var(--go-ui-spacing-sm)}._userInteractionCardLabel_vlxoe_123{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-text-secondary);margin-bottom:var(--go-ui-spacing-md);font-weight:var(--go-ui-font-weight-medium)}._userInteractionCardButton_vlxoe_130{width:100%}._userInteractionCard_vlxoe_96 ._chartContainer_vlxoe_40{min-height:200px;background-color:transparent;border:none;padding:var(--go-ui-spacing-md);margin-bottom:var(--go-ui-spacing-lg)}._userInteractionCard_vlxoe_96:nth-child(3) ._chartContainer_vlxoe_40{width:110%;margin-left:-5%}._summaryStatsCards_vlxoe_148{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._summaryStatsCard_vlxoe_148{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-xl);text-align:center;box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow .2s ease-in-out}._summaryStatsCard_vlxoe_148:hover{box-shadow:var(--go-ui-box-shadow-md)}._summaryStatsCardValue_vlxoe_169{font-size:var(--go-ui-font-size-2xl);font-weight:var(--go-ui-font-weight-bold);color:var(--go-ui-color-text);margin-bottom:var(--go-ui-spacing-sm)}._summaryStatsCardLabel_vlxoe_176{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-text-secondary)}@media (min-width: 768px){._userInteractionCards_vlxoe_96{grid-template-columns:repeat(3,1fr)}._summaryStatsCards_vlxoe_148{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){._summaryStats_vlxoe_7{grid-template-columns:1fr;gap:var(--go-ui-spacing-md)}._chartContainer_vlxoe_40{min-height:250px;padding:var(--go-ui-spacing-md)}._tabSelector_vlxoe_1{margin:var(--go-ui-spacing-lg) 0}} diff --git a/py_backend/static/assets/index-CwG_dxMe.js b/py_backend/static/assets/index-CwG_dxMe.js deleted file mode 100644 index 8fce1afd28511b5e7996eb798179ea4abafb8692..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-CwG_dxMe.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-utils-Db80MiSc.js","assets/vendor-DxpCibxB.js","assets/vendor-react-BxsGb6Ph.js"])))=>i.map(i=>d[i]); -import{u as Se,_ as Te}from"./index-Uy48qW96.js";import{r as m,j as t}from"./vendor-react-BxsGb6Ph.js";import{N as Ie,_ as ie,L as Ee,z as Z,n as D,D as be}from"./vendor-ui-l_DttnRj.js";import{u as Ce}from"./useAdmin-B_k2Fdj-.js";import{F as $e,E as Pe}from"./ExportModal-BtNOxnGZ.js";import{a as Fe,u as De}from"./vendor-DxpCibxB.js";const ke="_tabSelector_o9y1f_1",Le="_metadataTags_o9y1f_8",Oe="_metadataTag_o9y1f_8",Me="_metadataTagSource_o9y1f_32",Re="_metadataTagType_o9y1f_43",Je="_mapItem_o9y1f_54",We="_mapItemImage_o9y1f_72",ze="_mapItemContent_o9y1f_92",Ue="_mapItemTitle_o9y1f_97",Ae="_mapItemMetadata_o9y1f_105",Be="_fullSizeModalOverlay_o9y1f_134",He="_fullSizeModalContent_o9y1f_148",Ve="_ratingWarningContent_o9y1f_159",Ge="_ratingWarningTitle_o9y1f_165",Ze="_ratingWarningText_o9y1f_172",qe="_ratingWarningButtons_o9y1f_179",g={tabSelector:ke,metadataTags:Le,metadataTag:Oe,metadataTagSource:Me,metadataTagType:Re,mapItem:Je,mapItemImage:We,mapItemContent:ze,mapItemTitle:Ue,mapItemMetadata:Ae,fullSizeModalOverlay:Be,fullSizeModalContent:He,ratingWarningContent:Ve,ratingWarningTitle:Ge,ratingWarningText:Ze,ratingWarningButtons:qe};function at(){const k=Fe(),q=De(),{isAuthenticated:ne}=Ce(),[K,oe]=m.useState("explore"),[_,L]=m.useState([]),{search:y,srcFilter:E,catFilter:b,regionFilter:C,countryFilter:$,imageTypeFilter:P,uploadTypeFilter:F,showReferenceExamples:j,setShowReferenceExamples:le}=Se(),[J,re]=m.useState([]),[W,ce]=m.useState([]),[Q,me]=m.useState([]),[ge,de]=m.useState([]),[X,pe]=m.useState([]),[ue,Y]=m.useState(!0),[z,ee]=m.useState(!0),[fe,U]=m.useState(!1),[he,A]=m.useState(!1),[_e,B]=m.useState(!1),[xe,O]=m.useState(!1),[M,te]=m.useState(""),[H,ae]=m.useState(!1),ye=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],se=()=>{ee(!0),fetch("/api/images/grouped").then(e=>e.ok?e.json():(console.error("ExplorePage: Grouped endpoint failed, trying legacy endpoint"),fetch("/api/captions/legacy").then(s=>s.ok?s.json():(console.error("ExplorePage: Legacy endpoint failed, trying regular images endpoint"),fetch("/api/images").then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}))))).then(e=>{if(console.log("ExplorePage: API response data:",e),Array.isArray(e)){const s=e.filter(o=>{const f=o.generated&&o.model,u=o.image_id&&o.image_id!=="undefined"&&o.image_id!=="null";return u||console.error("ExplorePage: Item missing valid image_id:",o),f&&u});console.log("ExplorePage: Filtered images with captions:",s.length),L(s)}else console.error("ExplorePage: API response is not an array:",e),L([])}).catch(()=>{L([])}).finally(()=>{ee(!1)})};m.useEffect(()=>{se()},[]),m.useEffect(()=>{const e=()=>{document.hidden||se()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),m.useEffect(()=>{new URLSearchParams(q.search).get("export")==="true"&&(U(!0),k("/explore",{replace:!0}))},[q.search,k,y,E,b,C,$,P,j]),m.useEffect(()=>{Y(!0),Promise.all([fetch("/api/sources").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/regions").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/countries").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()})]).then(([e,s,o,f,u])=>{re(e),ce(s),me(o),de(f),pe(u)}).catch(()=>{}).finally(()=>{Y(!1)})},[]);const v=m.useMemo(()=>_.filter(e=>{const s=!y||e.title?.toLowerCase().includes(y.toLowerCase())||e.generated?.toLowerCase().includes(y.toLowerCase())||e.source?.toLowerCase().includes(y.toLowerCase())||e.event_type?.toLowerCase().includes(y.toLowerCase()),o=!E||e.source&&e.source.split(", ").some(x=>x.trim()===E),f=!b||e.event_type&&e.event_type.split(", ").some(x=>x.trim()===b),u=!C||e.countries.some(x=>x.r_code===C),N=!$||e.countries.some(x=>x.c_code===$),V=!P||e.image_type===P,R=!F||F==="single"&&(!e.image_count||e.image_count<=1)||F==="multiple"&&e.image_count&&e.image_count>1,w=!j||e.starred===!0;return s&&o&&f&&u&&N&&V&&R&&w}),[_,y,E,b,C,$,P,F,j]),je=async(e,s="fine-tuning")=>{if(e.length===0){alert("No images to export");return}A(!0),B(!1);try{const o=(await Te(async()=>{const{default:i}=await import("./vendor-utils-Db80MiSc.js").then(S=>S.j);return{default:i}},__vite__mapDeps([0,1,2]))).default,f=new o,u=e.filter(i=>i.image_type==="crisis_map"),N=e.filter(i=>i.image_type==="drone_image");if(u.length>0){const i=f.folder("crisis_maps_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of u)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}if(N.length>0){const i=f.folder("drone_images_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of N)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}const V=await f.generateAsync({type:"blob"}),R=URL.createObjectURL(V),w=document.createElement("a");w.href=R,w.download=`datasets_${s}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(R);const x=(u.length||0)+(N.length||0);console.log(`Exported ${s} datasets with ${x} total images:`),u.length>0&&console.log(`- Crisis maps: ${u.length} images`),N.length>0&&console.log(`- Drone images: ${N.length} images`),B(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{A(!1)}},ve=e=>{te(e),O(!0)},Ne=async()=>{if(M){ae(!0);try{console.log("Deleting image with ID:",M),(await fetch(`/api/images/${M}`,{method:"DELETE"})).ok?(L(s=>s.filter(o=>o.image_id!==M)),O(!1),te("")):(console.error("Delete failed"),alert("Failed to delete image. Please try again."))}catch(e){console.error("Delete failed:",e),alert("Failed to delete image. Please try again.")}finally{ae(!1)}}};return t.jsxs(Ie,{children:[z?t.jsx("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}):t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:g.tabSelector,children:[t.jsx(Ee,{name:"explore-view",value:K,onChange:e=>{(e==="explore"||e==="mapDetails")&&(oe(e),e==="mapDetails"&&_.length>0&&(_[0]?.image_id&&_[0].image_id!=="undefined"&&_[0].image_id!=="null"?k(`/map/${_[0].image_id}`):console.error("Invalid image_id for navigation:",_[0]?.image_id)))},options:ye,keySelector:e=>e.key,labelSelector:e=>e.label}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(D,{name:"reference-examples",variant:j?"primary":"secondary",onClick:()=>le(!j),className:"whitespace-nowrap",children:[t.jsx("span",{className:"mr-2",children:j?t.jsx("span",{className:"text-yellow-400",children:"★"}):t.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),t.jsx(D,{name:"export-dataset",variant:"secondary",onClick:()=>U(!0),children:"Export"})]})]}),K==="explore"?t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"mb-6 space-y-4",children:t.jsx("div",{className:"flex flex-wrap items-center gap-4",children:t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:t.jsx($e,{sources:J,types:W,regions:Q,countries:ge,imageTypes:X,isLoadingFilters:ue})})})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-between items-center",children:t.jsxs("p",{className:"text-sm text-gray-600",children:[v.length," of ",_.length," examples"]})}),z&&t.jsx("div",{className:"text-center py-12",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}),!z&&t.jsxs("div",{className:"space-y-4",children:[v.map(e=>t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:`${g.mapItem} flex-1`,onClick:()=>{console.log("ExplorePage: Clicking on image with ID:",e.image_id),console.log("ExplorePage: Image data:",e),e.image_id&&e.image_id!=="undefined"&&e.image_id!=="null"?(console.log("ExplorePage: Navigating to:",`/map/${e.image_id}`),console.log("ExplorePage: Full navigation URL:",`/#/map/${e.image_id}`),k(`/map/${e.image_id}`)):(console.error("Invalid image_id for navigation:",e.image_id),console.error("Full item data:",JSON.stringify(e,null,2)),alert(`Cannot navigate: Invalid image ID (${e.image_id})`))},children:[t.jsx("div",{className:g.mapItemImage,style:{width:"120px",height:"80px"},children:e.image_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: Rendering image with URL:",e.image_url),t.jsx("img",{src:e.image_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Image failed to load:",e.image_url);const o=s.target;o.style.display="none",o.parentElement.innerHTML="Img"},onLoad:()=>console.log("ExplorePage: Image loaded successfully:",e.image_url)})]}):t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No image_url provided for item:",e),"'Img'"]})}),t.jsxs("div",{className:g.mapItemContent,children:[t.jsx("h3",{className:g.mapItemTitle,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{children:e.title||"Untitled"}),e.starred&&t.jsx("span",{className:"text-red-500 text-lg",title:"Starred image",children:"★"})]})}),t.jsx("div",{className:g.mapItemMetadata,children:t.jsxs("div",{className:g.metadataTags,children:[e.image_type!=="drone_image"&&t.jsx("span",{className:g.metadataTagSource,children:e.source&&e.source.includes(", ")?e.source.split(", ").map(s=>J.find(o=>o.s_code===s.trim())?.label||s.trim()).join(", "):J.find(s=>s.s_code===e.source)?.label||e.source}),t.jsx("span",{className:g.metadataTagType,children:e.event_type&&e.event_type.includes(", ")?e.event_type.split(", ").map(s=>W.find(o=>o.t_code===s.trim())?.label||s.trim()).join(", "):W.find(s=>s.t_code===e.event_type)?.label||e.event_type}),t.jsx("span",{className:g.metadataTag,children:X.find(s=>s.image_type===e.image_type)?.label||e.image_type}),e.image_count&&e.image_count>1&&t.jsxs("span",{className:g.metadataTag,title:`Multi-upload with ${e.image_count} images`,children:["📷 ",e.image_count]}),(!e.image_count||e.image_count<=1)&&t.jsx("span",{className:g.metadataTag,title:"Single Upload",children:"Single"}),e.countries&&e.countries.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:g.metadataTag,children:Q.find(s=>s.r_code===e.countries[0].r_code)?.label||"Unknown Region"}),t.jsx("span",{className:g.metadataTag,children:e.countries.map(s=>s.label).join(", ")})]})]})})]})]}),ne&&t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(D,{name:`delete-${e.image_id}`,variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:()=>ve(e.image_id),title:"Delete","aria-label":"Delete saved image",children:t.jsx(be,{className:"w-4 h-4"})})})]},e.image_id)),!v.length&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"No examples found."})})]})]})]}):t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{className:"text-center py-12",children:[t.jsx("p",{className:"text-gray-500",children:"Map Details view coming soon..."}),t.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"This will show detailed information about individual maps"})]})})]}),xe&&t.jsx("div",{className:g.fullSizeModalOverlay,onClick:()=>O(!1),children:t.jsx("div",{className:g.fullSizeModalContent,onClick:e=>e.stopPropagation(),children:t.jsxs("div",{className:g.ratingWarningContent,children:[t.jsx("h3",{className:g.ratingWarningTitle,children:"Delete Image?"}),t.jsx("p",{className:g.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),t.jsxs("div",{className:g.ratingWarningButtons,children:[t.jsx(D,{name:"confirm-delete",variant:"secondary",onClick:Ne,disabled:H,children:H?"Deleting...":"Delete"}),t.jsx(D,{name:"cancel-delete",variant:"tertiary",onClick:()=>O(!1),disabled:H,children:"Cancel"})]})]})})}),t.jsx(Pe,{isOpen:fe,onClose:()=>{U(!1),B(!1),A(!1)},onExport:(e,s)=>{const o=v.filter(f=>s.includes(f.image_type));je(o,e)},filteredCount:v.length,totalCount:_.length,hasFilters:!!(y||E||b||C||$||P||F||j),crisisMapsCount:v.filter(e=>e.image_type==="crisis_map").length,droneImagesCount:v.filter(e=>e.image_type==="drone_image").length,isLoading:he,exportSuccess:_e})]})}export{at as default}; diff --git a/py_backend/static/assets/index-DMU6q_dg.js b/py_backend/static/assets/index-DMU6q_dg.js deleted file mode 100644 index 930a885f0d33ada94034b2cf231ae9127285310a..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-DMU6q_dg.js +++ /dev/null @@ -1 +0,0 @@ -import{u as Oe,r as d,j as t}from"./vendor-react-BxsGb6Ph.js";import{g as C,h as u,N as $,_ as Qe,L as Ue,z as _,P as be,K as F,n as p,y as h,i as f}from"./vendor-ui-l_DttnRj.js";import"./vendor-DxpCibxB.js";const Ge="_tabSelector_vlxoe_1",$e="_progressSection_vlxoe_14",ze="_progressLabel_vlxoe_20",qe="_chartGrid_vlxoe_28",Ke="_chartContainer_vlxoe_40",We="_tableContainer_vlxoe_51",Je="_modelPerformance_vlxoe_59",Xe="_loadingContainer_vlxoe_67",Ye="_errorContainer_vlxoe_77",Ze="_userInteractionCards_vlxoe_96",et="_userInteractionCard_vlxoe_96",tt="_userInteractionCardValue_vlxoe_116",at="_userInteractionCardLabel_vlxoe_123",st="_userInteractionCardButton_vlxoe_130",nt="_summaryStatsCards_vlxoe_148",rt="_summaryStatsCard_vlxoe_148",it="_summaryStatsCardValue_vlxoe_169",ot="_summaryStatsCardLabel_vlxoe_176",i={tabSelector:Ge,progressSection:$e,progressLabel:ze,chartGrid:qe,chartContainer:Ke,tableContainer:We,modelPerformance:Je,loadingContainer:Xe,errorContainer:Ye,userInteractionCards:Ze,userInteractionCard:et,userInteractionCardValue:tt,userInteractionCardLabel:at,userInteractionCardButton:st,summaryStatsCards:nt,summaryStatsCard:rt,summaryStatsCardValue:it,summaryStatsCardLabel:ot};function ut(){const[z]=Oe(),[c,q]=d.useState(null),[Me,K]=d.useState(!0),[W,J]=d.useState("crisis_maps"),[I,Se]=d.useState([]),[w,Ie]=d.useState([]),[N,we]=d.useState([]),[b,Ne]=d.useState([]),[D,De]=d.useState(!1),[T,Te]=d.useState(!1),[k,ke]=d.useState(!1),[P,Pe]=d.useState(!1),[H,Ee]=d.useState(!1),[E,Le]=d.useState(!1),j=e=>{De(e==="editTime"),Te(e==="percentage"),ke(e==="delete"),Pe(e==="regions"),Ee(e==="sources"),Le(e==="types")},Be=[{key:"crisis_maps",label:"Crisis Maps"},{key:"drone_images",label:"Drone Images"}],G=d.useCallback((e,r)=>{if(!e||!r)return 0;const s=e.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(l=>l.length>0),a=r.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(l=>l.length>0);if(s.length===0&&a.length===0)return 1;if(s.length===0||a.length===0)return 0;const n=new Set(s),o=new Set(a),g=new Set([...n].filter(l=>o.has(l))),y=new Set([...n,...o]);return g.size/y.size},[]),X=d.useCallback(async()=>{K(!0);try{const r=await(await fetch("/api/images")).json(),s={},a=r.filter(l=>l.image_type==="crisis_map"),n=r.filter(l=>l.image_type==="drone_image"),o={totalCaptions:r.length,sources:{},types:{},regions:{},models:{},modelEditTimes:s,percentageModified:0,modelPercentageData:{},totalDeleteCount:0,deleteRate:0,crisisMaps:a,droneImages:n};r.forEach(l=>{if(l.source&&(o.sources[l.source]=(o.sources[l.source]||0)+1),l.event_type&&(o.types[l.event_type]=(o.types[l.event_type]||0)+1),l.countries&&l.countries.forEach(m=>{m.r_code&&(o.regions[m.r_code]=(o.regions[m.r_code]||0)+1)}),l.model){const m=l.model,v=o.models[m]||={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0};if(v.count++,l.accuracy!=null&&(v.avgAccuracy+=l.accuracy),l.context!=null&&(v.avgContext+=l.context),l.usability!=null&&(v.avgUsability+=l.usability),l.created_at&&l.updated_at){const S=new Date(l.created_at).getTime(),U=new Date(l.updated_at).getTime()-S;U>0&&(s[m]||(s[m]=[]),s[m].push(U))}}}),I.forEach(l=>{l.s_code&&!o.sources[l.s_code]&&(o.sources[l.s_code]=0)}),w.forEach(l=>{l.t_code&&!o.types[l.t_code]&&(o.types[l.t_code]=0)}),N.forEach(l=>{l.r_code&&!o.regions[l.r_code]&&(o.regions[l.r_code]=0)}),["GPT-4","Claude","Gemini","Llama","Other"].forEach(l=>{o.models[l]||(o.models[l]={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0})}),Object.values(o.models).forEach(l=>{l.count>0&&(l.avgAccuracy=Math.round(l.avgAccuracy/l.count),l.avgContext=Math.round(l.avgContext/l.count),l.avgUsability=Math.round(l.avgUsability/l.count),l.totalScore=Math.round((l.avgAccuracy+l.avgContext+l.avgUsability)/3))});const y=r.filter(l=>l.generated&&l.edited);if(y.length>0){const m=[...y.map(L=>G(L.generated,L.edited))].sort((L,U)=>L-U),v=Math.floor(m.length/2),S=m.length%2===0?(m[v-1]+m[v])/2:m[v];o.percentageModified=Math.round((1-S)*100)}const x={};r.forEach(l=>{if(l.model&&l.generated&&l.edited){const m=G(l.generated,l.edited),v=Math.round((1-m)*100);x[l.model]||(x[l.model]=[]),x[l.model].push(v)}}),o.modelPercentageData=x;try{const l=await fetch("/api/models");if(l.ok){const m=await l.json();if(m.models){m.models.forEach(S=>{o.models[S.m_code]&&(o.models[S.m_code].deleteCount=S.delete_count||0)});const v=m.models.reduce((S,L)=>S+(L.delete_count||0),0);o.totalDeleteCount=v,o.deleteRate=v>0?Math.round(v/(v+r.length)*100):0}}}catch(l){console.log("Could not fetch model delete counts:",l)}q(o)}catch{q(null)}finally{K(!1)}},[I,w,N,G]),Y=d.useCallback(async()=>{try{const[e,r,s,a]=await Promise.all([fetch("/api/sources"),fetch("/api/types"),fetch("/api/regions"),fetch("/api/models")]),n=await e.json(),o=await r.json(),g=await s.json(),y=await a.json();Se(n),Ie(o),we(g),Ne(y.models||[])}catch(e){console.log("Could not fetch lookup data:",e)}},[]);d.useEffect(()=>{const e=z.get("view");(e==="crisis_maps"||e==="drone_images")&&J(e)},[z]),d.useEffect(()=>{Y()},[Y]),d.useEffect(()=>{I.length>0&&w.length>0&&N.length>0&&b.length>0&&X()},[I,w,N,b,X]);const O=d.useCallback(e=>{const r=I.find(s=>s.s_code===e);return r?r.label:e},[I]),B=d.useCallback(e=>{if(e.length===0)return 0;const r=[...e].sort((a,n)=>a-n),s=Math.floor(r.length/2);return r.length%2===0?Math.round((r[s-1]+r[s])/2):r[s]},[]),A=d.useCallback(e=>{const r=Math.floor(e/1e3),s=Math.floor(r/60),a=Math.floor(s/60);return a>0?`${a}h ${s%60}m`:s>0?`${s}m ${r%60}s`:`${r}s`},[]),Q=d.useCallback(e=>{const r=w.find(s=>s.t_code===e);return r?r.label:e},[w]),M=d.useCallback(e=>{const r=b.find(s=>s.m_code===e);return r?r.label:e},[b]),Z=d.useMemo(()=>c?Object.entries(c.modelEditTimes||{}).filter(([,e])=>e.length>0).sort(([,e],[,r])=>B(r)-B(e)).map(([e,r],s)=>({id:s+1,name:M(e),count:r.length,avgEditTime:B(r),minEditTime:Math.min(...r),maxEditTime:Math.max(...r)})):[],[c,B,M]),ee=d.useMemo(()=>c?Object.entries(c.modelPercentageData||{}).filter(([,e])=>e.length>0).sort(([,e],[,r])=>{const s=[...e].sort((x,l)=>x-l),a=[...r].sort((x,l)=>x-l),n=Math.floor(s.length/2),o=Math.floor(a.length/2),g=s.length%2===0?(s[n-1]+s[n])/2:s[n];return(a.length%2===0?(a[o-1]+a[o])/2:a[o])-g}).map(([e,r],s)=>{const a=[...r].sort((g,y)=>g-y),n=Math.floor(a.length/2),o=a.length%2===0?Math.round((a[n-1]+a[n])/2):a[n];return{id:s+1,name:M(e),count:r.length,avgPercentageModified:o,minPercentageModified:Math.min(...r),maxPercentageModified:Math.max(...r)}}):[],[c,M]),te=d.useMemo(()=>c?Object.entries(c.models).filter(([,e])=>e.count>0).map(([e,r],s)=>{const a=[r.avgAccuracy,r.avgContext,r.avgUsability],n=a.reduce((y,x)=>y+x,0)/a.length,o=a.reduce((y,x)=>y+Math.pow(x-n,2),0)/a.length,g=Math.round(100-Math.sqrt(o));return{id:s+1,name:M(e),consistency:Math.max(0,g),avgScore:Math.round(n),count:r.count}}).sort((e,r)=>r.consistency-e.consistency):[],[c,M]),ae=d.useMemo(()=>[C("name","Region",e=>e.name),u("count","Count",e=>e.count),u("percentage","% of Total",e=>e.percentage,{suffix:"%",maximumFractionDigits:0})],[]),se=d.useMemo(()=>[C("name","Type",e=>e.name),u("count","Count",e=>e.count),u("percentage","% of Total",e=>e.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Ve=d.useMemo(()=>[C("name","Source",e=>e.name),u("count","Count",e=>e.count),u("percentage","% of Total",e=>e.percentage,{suffix:"%",maximumFractionDigits:0})],[]),ne=d.useMemo(()=>[C("name","Model",e=>e.name),u("count","Count",e=>e.count),u("accuracy","Accuracy",e=>e.accuracy,{suffix:"%",maximumFractionDigits:0}),u("context","Context",e=>e.context,{suffix:"%",maximumFractionDigits:0}),u("usability","Usability",e=>e.usability,{suffix:"%",maximumFractionDigits:0}),u("totalScore","Total Score",e=>e.totalScore,{suffix:"%",maximumFractionDigits:0})],[]),re=d.useMemo(()=>[C("name","Model",e=>e.name),u("count","Count",e=>e.count),C("avgEditTime","Median Edit Time",e=>A(e.avgEditTime)),C("minEditTime","Min Edit Time",e=>A(e.minEditTime)),C("maxEditTime","Max Edit Time",e=>A(e.maxEditTime))],[]),ie=d.useMemo(()=>[C("name","Model",e=>e.name),u("count","Count",e=>e.count),u("avgPercentageModified","Median % Modified",e=>e.avgPercentageModified,{suffix:"%",maximumFractionDigits:0}),u("minPercentageModified","Min % Modified",e=>e.minPercentageModified,{suffix:"%",maximumFractionDigits:0}),u("maxPercentageModified","Max % Modified",e=>e.maxPercentageModified,{suffix:"%",maximumFractionDigits:0})],[]),oe=d.useMemo(()=>[C("name","Model",e=>e.name),u("count","Total Count",e=>e.count),u("deleteCount","Delete Count",e=>e.deleteCount),u("deleteRate","Delete Rate",e=>e.deleteRate,{suffix:"%",maximumFractionDigits:1})],[]),Ae=d.useMemo(()=>[C("source","Source",e=>e.source),u("avgQuality","Average Quality",e=>e.avgQuality,{suffix:"%",maximumFractionDigits:0}),u("count","Count",e=>e.count)],[]),ce=d.useMemo(()=>[C("eventType","Event Type",e=>e.eventType),u("avgQuality","Average Quality",e=>e.avgQuality,{suffix:"%",maximumFractionDigits:0}),u("count","Count",e=>e.count)],[]),le=d.useMemo(()=>[C("name","Model",e=>e.name),u("consistency","Consistency",e=>e.consistency,{suffix:"%",maximumFractionDigits:0}),u("avgScore","Average Score",e=>e.avgScore,{suffix:"%",maximumFractionDigits:0}),u("count","Count",e=>e.count)],[]),V=d.useCallback(e=>c?e==="crisis_map"?c.crisisMaps.length:e==="drone_image"?c.droneImages.length:0:0,[c]),de=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.countries&&a.countries.forEach(n=>{n.r_code&&(s[n.r_code]=(s[n.r_code]||0)+1)})}),Object.entries(s).filter(([,a])=>a>0).map(([a,n])=>({name:N.find(o=>o.r_code===a)?.label||a,value:n}))},[c,N]),ue=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};r.forEach(n=>{n.countries&&n.countries.forEach(o=>{o.r_code&&(s[o.r_code]=(s[o.r_code]||0)+1)})});const a=N.reduce((n,o)=>(o.r_code&&(n[o.r_code]={name:o.label,count:s[o.r_code]||0}),n),{});return Object.entries(a).sort(([,n],[,o])=>o.count-n.count).map(([,{name:n,count:o}],g)=>({id:g+1,name:n,count:o,percentage:r.length>0?Math.round(o/r.length*100):0}))},[c,N]),Re=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.source&&(s[a.source]=(s[a.source]||0)+1)}),Object.entries(s).filter(([,a])=>a>0).map(([a,n])=>({name:I.find(o=>o.s_code===a)?.label||a,value:n}))},[c,I]),Fe=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.source&&(s[a.source]=(s[a.source]||0)+1)}),Object.entries(s).sort(([,a],[,n])=>n-a).map(([a,n],o)=>({id:o+1,name:O(a),count:n,percentage:r.length>0?Math.round(n/r.length*100):0}))},[c,O]),me=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.event_type&&(s[a.event_type]=(s[a.event_type]||0)+1)}),Object.entries(s).filter(([,a])=>a>0).map(([a,n])=>({name:w.find(o=>o.t_code===a)?.label||a,value:n}))},[c,w]),ge=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.event_type&&(s[a.event_type]=(s[a.event_type]||0)+1)}),Object.entries(s).sort(([,a],[,n])=>n-a).map(([a,n],o)=>({id:o+1,name:Q(a),count:n,percentage:r.length>0?Math.round(n/r.length*100):0}))},[c,Q]),he=d.useCallback(e=>{if(!c)return"No data available";const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s=new Set;r.forEach(o=>{o.model&&s.add(o.model)}),console.log(`Debug ${e}:`,{totalImages:r.length,usedModels:Array.from(s),availableEditTimes:Object.keys(c.modelEditTimes),modelEditTimesData:c.modelEditTimes});const n=Object.entries(c.modelEditTimes).filter(([o])=>s.has(o)).flatMap(([,o])=>o);return n.length===0?"No data available":A(B(n))},[c,A,B]),fe=d.useCallback(()=>{if(!c)return"No data available";const e=c.totalCaptions||0,r=c.percentageModified||0;return e>0?Math.round(r/e*100):0},[c]),ye=d.useCallback(()=>c&&c.deleteRate>=0?`${c.deleteRate}%`:"No data available",[c]),xe=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s=new Set;return r.forEach(n=>{n.model&&s.add(n.model)}),Z.filter(n=>{const o=b.find(g=>g.label===n.name)?.m_code;return o&&s.has(o)})},[c,Z,b]),ve=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s=new Set;return r.forEach(n=>{n.model&&s.add(n.model)}),ee.filter(n=>{const o=b.find(g=>g.label===n.name)?.m_code;return o&&s.has(o)})},[c,ee,b]),Ce=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.model&&(s[a.model]||(s[a.model]={count:0,deleteCount:0}),s[a.model].count++)}),Object.entries(s).map(([a,n],o)=>{const y=c.models?.[a]?.deleteCount||0,x=n.count>0?Math.round(y/n.count*100*10)/10:0;return{id:o+1,name:M(a),count:n.count,deleteCount:y,deleteRate:x}}).sort((a,n)=>n.count-a.count)},[c,M]),_e=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.model&&(s[a.model]||(s[a.model]={count:0,totalAccuracy:0,totalContext:0,totalUsability:0}),s[a.model].count++,a.accuracy!=null&&(s[a.model].totalAccuracy+=a.accuracy),a.context!=null&&(s[a.model].totalContext+=a.context),a.usability!=null&&(s[a.model].totalUsability+=a.usability))}),Object.entries(s).map(([a,n],o)=>({id:o+1,name:M(a),count:n.count,accuracy:n.count>0?Math.round(n.totalAccuracy/n.count):0,context:n.count>0?Math.round(n.totalContext/n.count):0,usability:n.count>0?Math.round(n.totalUsability/n.count):0,totalScore:n.count>0?Math.round((n.totalAccuracy+n.totalContext+n.totalUsability)/(3*n.count)):0})).sort((a,n)=>n.totalScore-a.totalScore)},[c,M]),He=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.source&&(s[a.source]||(s[a.source]={total:0,count:0,totalImages:0}),s[a.source].totalImages+=1,a.accuracy!=null&&(s[a.source].total+=a.accuracy,s[a.source].count+=1))}),Object.entries(s).map(([a,n],o)=>({id:o+1,source:O(a),avgQuality:n.count>0?Math.round(n.total/n.count):0,count:n.totalImages}))},[c,O]),je=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s={};return r.forEach(a=>{a.event_type&&(s[a.event_type]||(s[a.event_type]={total:0,count:0,totalImages:0}),s[a.event_type].totalImages+=1,a.accuracy!=null&&(s[a.event_type].total+=a.accuracy,s[a.event_type].count+=1))}),Object.entries(s).map(([a,n],o)=>({id:o+1,eventType:Q(a),avgQuality:n.count>0?Math.round(n.total/n.count):0,count:n.totalImages}))},[c,Q]),pe=d.useCallback(e=>{if(!c)return[];const r=e==="crisis_map"?c.crisisMaps:c.droneImages,s=new Set;return r.forEach(n=>{n.model&&s.add(n.model)}),te.filter(n=>{const o=b.find(g=>g.label===n.name)?.m_code;return o&&s.has(o)})},[c,te,b]);if(Me)return t.jsx($,{children:t.jsx("div",{className:i.loadingContainer,children:t.jsx(Qe,{})})});if(!c)return t.jsx($,{children:t.jsx("div",{className:i.errorContainer,children:t.jsx("div",{className:"text-red-500",children:"Failed to load analytics data. Please try again."})})});const R=["#F5333F","#F64752","#F75C65","#F87079","#F9858C","#FA999F","#FBADB2","#FCC2C5"];return t.jsx($,{children:t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsx("div",{className:i.tabSelector,children:t.jsx(Ue,{name:"analytics-view",value:W,onChange:e=>{(e==="crisis_maps"||e==="drone_images")&&J(e)},options:Be,keySelector:e=>e.key,labelSelector:e=>e.label})}),W==="crisis_maps"?t.jsxs("div",{className:i.chartGrid,children:[t.jsxs(_,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.summaryStatsCards,children:[t.jsxs("div",{className:i.summaryStatsCard,children:[t.jsx("div",{className:i.summaryStatsCardValue,children:V("crisis_map")}),t.jsx("div",{className:i.summaryStatsCardLabel,children:"Total Crisis Maps"})]}),t.jsxs("div",{className:i.summaryStatsCard,children:[t.jsx("div",{className:i.summaryStatsCardValue,children:"2000"}),t.jsx("div",{className:i.summaryStatsCardLabel,children:"Target Amount"})]})]}),t.jsxs("div",{className:i.progressSection,children:[t.jsxs("div",{className:i.progressLabel,children:[t.jsx("span",{children:"Progress towards target"}),t.jsxs("span",{children:[Math.round(V("crisis_map")/2e3*100),"%"]})]}),t.jsx(be,{value:V("crisis_map"),totalValue:2e3})]})]}),t.jsxs(_,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.userInteractionCards,children:[t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardLabel,children:"Regions Distribution"}),t.jsx("div",{className:i.chartContainer,children:t.jsx(F,{data:de("crisis_map"),valueSelector:e=>e.value,labelSelector:e=>e.name,keySelector:e=>e.name,colors:R,showPercentageInLegend:!0})}),t.jsx(p,{name:"view-regions-details",variant:P?"primary":"secondary",onClick:()=>j(P?"none":"regions"),className:i.userInteractionCardButton,children:P?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardLabel,children:"Sources Distribution"}),t.jsx("div",{className:i.chartContainer,children:t.jsx(F,{data:Re("crisis_map"),valueSelector:e=>e.value,labelSelector:e=>e.name,keySelector:e=>e.name,colors:R,showPercentageInLegend:!0})}),t.jsx(p,{name:"view-sources-details",variant:H?"primary":"secondary",onClick:()=>j(H?"none":"sources"),className:i.userInteractionCardButton,children:H?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardLabel,children:"Types Distribution"}),t.jsx("div",{className:i.chartContainer,children:t.jsx(F,{data:me("crisis_map"),valueSelector:e=>e.value,labelSelector:e=>e.name,keySelector:e=>e.name,colors:R,showPercentageInLegend:!0})}),t.jsx(p,{name:"view-types-details",variant:E?"primary":"secondary",onClick:()=>j(E?"none":"types"),className:i.userInteractionCardButton,children:E?"Hide Details":"View Details"})]})]}),P&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ue("crisis_map"),columns:ae,keySelector:f,filtered:!1,pending:!1})}),H&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:Fe("crisis_map"),columns:Ve,keySelector:f,filtered:!1,pending:!1})}),E&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ge("crisis_map"),columns:se,keySelector:f,filtered:!1,pending:!1})})]}),t.jsxs(_,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.userInteractionCards,children:[t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:he("crisis_map")}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Median Edit Time"}),t.jsx(p,{name:"view-edit-time-details",variant:D?"primary":"secondary",onClick:()=>j(D?"none":"editTime"),className:i.userInteractionCardButton,children:D?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:fe()}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Median % Modified"}),t.jsx(p,{name:"view-percentage-details",variant:T?"primary":"secondary",onClick:()=>j(T?"none":"percentage"),className:i.userInteractionCardButton,children:T?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:ye()}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Delete Rate"}),t.jsx(p,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>j(k?"none":"delete"),className:i.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),D&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:xe("crisis_map"),columns:re,keySelector:f,filtered:!1,pending:!1})}),T&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ve("crisis_map"),columns:ie,keySelector:f,filtered:!1,pending:!1})}),k&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:Ce("crisis_map"),columns:oe,keySelector:f,filtered:!1,pending:!1})})]}),t.jsx(_,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:_e("crisis_map"),columns:ne,keySelector:f,filtered:!1,pending:!1})})}),t.jsx(_,{heading:"Quality-Source Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.tableContainer,children:t.jsx(h,{data:He("crisis_map"),columns:Ae,keySelector:f,filtered:!1,pending:!1})})}),t.jsx(_,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.tableContainer,children:t.jsx(h,{data:je("crisis_map"),columns:ce,keySelector:f,filtered:!1,pending:!1})})}),t.jsx(_,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.tableContainer,children:t.jsx(h,{data:pe("crisis_map"),columns:le,keySelector:f,filtered:!1,pending:!1})})})]}):t.jsxs("div",{className:i.chartGrid,children:[t.jsxs(_,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.summaryStatsCards,children:[t.jsxs("div",{className:i.summaryStatsCard,children:[t.jsx("div",{className:i.summaryStatsCardValue,children:V("drone_image")}),t.jsx("div",{className:i.summaryStatsCardLabel,children:"Total Drone Images"})]}),t.jsxs("div",{className:i.summaryStatsCard,children:[t.jsx("div",{className:i.summaryStatsCardValue,children:"2000"}),t.jsx("div",{className:i.summaryStatsCardLabel,children:"Target Amount"})]})]}),t.jsxs("div",{className:i.progressSection,children:[t.jsxs("div",{className:i.progressLabel,children:[t.jsx("span",{children:"Progress towards target"}),t.jsxs("span",{children:[Math.round(V("drone_image")/2e3*100),"%"]})]}),t.jsx(be,{value:V("drone_image"),totalValue:2e3})]})]}),t.jsxs(_,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.userInteractionCards,children:[t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardLabel,children:"Regions Distribution"}),t.jsx("div",{className:i.chartContainer,children:t.jsx(F,{data:de("drone_image"),valueSelector:e=>e.value,labelSelector:e=>e.name,keySelector:e=>e.name,colors:R,showPercentageInLegend:!0})}),t.jsx(p,{name:"view-regions-details",variant:P?"primary":"secondary",onClick:()=>j(P?"none":"regions"),className:i.userInteractionCardButton,children:P?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardLabel,children:"Types Distribution"}),t.jsx("div",{className:i.chartContainer,children:t.jsx(F,{data:me("drone_image"),valueSelector:e=>e.value,labelSelector:e=>e.name,keySelector:e=>e.name,colors:R,showPercentageInLegend:!0})}),t.jsx(p,{name:"view-types-details",variant:E?"primary":"secondary",onClick:()=>j(E?"none":"types"),className:i.userInteractionCardButton,children:E?"Hide Details":"View Details"})]})]}),P&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ue("drone_image"),columns:ae,keySelector:f,filtered:!1,pending:!1})}),E&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ge("drone_image"),columns:se,keySelector:f,filtered:!1,pending:!1})})]}),t.jsxs(_,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[t.jsxs("div",{className:i.userInteractionCards,children:[t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:he("drone_image")}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Median Edit Time"}),t.jsx(p,{name:"view-edit-time-details",variant:D?"primary":"secondary",onClick:()=>j(D?"none":"editTime"),className:i.userInteractionCardButton,children:D?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:fe()}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Median % Modified"}),t.jsx(p,{name:"view-percentage-details",variant:T?"primary":"secondary",onClick:()=>j(T?"none":"percentage"),className:i.userInteractionCardButton,children:T?"Hide Details":"View Details"})]}),t.jsxs("div",{className:i.userInteractionCard,children:[t.jsx("div",{className:i.userInteractionCardValue,children:ye()}),t.jsx("div",{className:i.userInteractionCardLabel,children:"Delete Rate"}),t.jsx(p,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>j(k?"none":"delete"),className:i.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),D&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:xe("drone_image"),columns:re,keySelector:f,filtered:!1,pending:!1})}),T&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:ve("drone_image"),columns:ie,keySelector:f,filtered:!1,pending:!1})}),k&&t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:Ce("drone_image"),columns:oe,keySelector:f,filtered:!1,pending:!1})})]}),t.jsx(_,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.modelPerformance,children:t.jsx(h,{data:_e("drone_image"),columns:ne,keySelector:f,filtered:!1,pending:!1})})}),t.jsx(_,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.tableContainer,children:t.jsx(h,{data:je("drone_image"),columns:ce,keySelector:f,filtered:!1,pending:!1})})}),t.jsx(_,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:t.jsx("div",{className:i.tableContainer,children:t.jsx(h,{data:pe("drone_image"),columns:le,keySelector:f,filtered:!1,pending:!1})})})]})]})})}export{ut as default}; diff --git a/py_backend/static/assets/index-DyXqjI96.js b/py_backend/static/assets/index-DyXqjI96.js deleted file mode 100644 index f39c78ad54010c710f5aeb8a1e351fe85b59aebd..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-DyXqjI96.js +++ /dev/null @@ -1,17 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DMU6q_dg.js","assets/vendor-react-BxsGb6Ph.js","assets/vendor-DxpCibxB.js","assets/vendor-ui-l_DttnRj.js","assets/vendor-ui-DpEM1HT6.css","assets/index-BsrMOmjk.css","assets/index-Bj6KcvNd.js","assets/useAdmin-BStaIYmd.js","assets/ExportModal-DxEvAVvI.js","assets/ExportModal-BoB3JpqO.css","assets/index-BzPMJFRS.css","assets/AdminPage-C_7rpuzO.js","assets/AdminPage-VgSjQ50W.css","assets/index-iAxVbTZE.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); -import{r as a,j as e,L as zt,u as Ot,c as $t,R as Bt,b as Ut}from"./vendor-react-BxsGb6Ph.js";import{N as ln,G as Wt,U as Fn,S as Ht,A as Vt,z as U,n as w,M as Gt,Q as qt,a as Yt,b as Zt,L as Kt,B as cn,D as dn,C as Jt,c as Qt,O as D,f as J,d as Ln,e as Xt,_ as rn,R as te,l as ea,t as na}from"./vendor-ui-l_DttnRj.js";import{u as ta,a as un,O as aa,k as sa}from"./vendor-DxpCibxB.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))p(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const _ of d.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&p(_)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function p(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();const ia="modulepreload",oa=function(i){return"/"+i},Tn={},B=function(s,o,p){let c=Promise.resolve();if(o&&o.length>0){let S=function(x){return Promise.all(x.map(l=>Promise.resolve(l).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const _=document.querySelector("meta[property=csp-nonce]"),C=_?.nonce||_?.getAttribute("nonce");c=S(o.map(x=>{if(x=oa(x),x in Tn)return;Tn[x]=!0;const l=x.endsWith(".css"),b=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${b}`))return;const M=document.createElement("link");if(M.rel=l?"stylesheet":ia,l||(M.as="script"),M.crossOrigin="",M.href=x,C&&M.setAttribute("nonce",C),document.head.appendChild(M),l)return new Promise((E,j)=>{M.addEventListener("load",E),M.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${x}`)))})}))}function d(_){const C=new Event("vite:preloadError",{cancelable:!0});if(C.payload=_,window.dispatchEvent(C),!C.defaultPrevented)throw _}return c.then(_=>{for(const C of _||[])C.status==="rejected"&&d(C.reason);return s().catch(d)})},ra="_dropdownContainer_1six7_3",la="_dropdownMenu_1six7_15",ca="_dropdownContent_1six7_43",on={dropdownContainer:ra,dropdownMenu:la,dropdownContent:ca},da=[{to:"/upload",label:"Upload",Icon:Fn},{to:"/explore",label:"Explore",Icon:Ht},{to:"/analytics",label:"Analytics",Icon:Vt}];function ua(){const i=ta(),s=un(),[o,p]=a.useState(!1),c=a.useRef(null);return a.useEffect(()=>{const d=_=>{c.current&&!c.current.contains(_.target)&&p(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),e.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:e.jsxs(ln,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[e.jsxs("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(i.pathname==="/upload"||i.pathname==="/")){if(i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/")}},children:[e.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:e.jsx(Wt,{className:"h-8 w-8 flex-shrink-0 text-ifrcRed"})}),e.jsx("div",{className:"flex flex-col",children:e.jsx("span",{className:"font-bold text-xl text-gray-900 leading-tight",children:"PromptAid Vision"})})]}),e.jsx("div",{className:"flex justify-center",children:e.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:da.map(({to:d,label:_,Icon:C})=>{const S=i.pathname===d||d==="/upload"&&i.pathname==="/"||d==="/explore"&&i.pathname.startsWith("/map/"),x=i.pathname==="/upload"||i.pathname==="/",l=d==="/upload"||d==="/";return e.jsxs("div",{className:"relative",children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:_.toLowerCase(),variant:S?"primary":"tertiary",size:1,className:`transition-all duration-200 ${S?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(x&&l)){if(i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(d);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s(d)}},children:[e.jsx(C,{className:`w-4 h-4 transition-transform duration-200 ${S?"scale-110":"group-hover:scale-110"}`}),e.jsx("span",{className:"inline ml-2 font-semibold",children:_})]})}),S&&e.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},d)})})}),e.jsx("div",{className:"flex justify-end",children:e.jsxs("div",{className:on.dropdownContainer,ref:c,children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsx(w,{name:"more-options",variant:o?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>p(!o),children:e.jsx(Gt,{className:"w-4 h-4"})})}),o&&e.jsx("div",{className:on.dropdownMenu,children:e.jsxs("div",{className:on.dropdownContent,children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(p(!1),i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/help")},children:[e.jsx(qt,{className:"w-4 h-4"}),e.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(p(!1),i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/admin")},children:[e.jsx(Yt,{className:"w-4 h-4"}),e.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function ga(){return e.jsxs(e.Fragment,{children:[e.jsx(ua,{}),e.jsx(aa,{})]})}const pa="_uploadContainer_1w5i1_1",ma="_dropZone_1w5i1_9",ha="_hasFile_1w5i1_30",fa="_dropZoneIcon_1w5i1_37",xa="_dropZoneText_1w5i1_43",va="_dropZoneSubtext_1w5i1_49",_a="_filePreview_1w5i1_55",ja="_filePreviewImage_1w5i1_64",wa="_fileName_1w5i1_110",Ca="_fileInfo_1w5i1_118",ya="_helpLink_1w5i1_125",Sa="_loadingContainer_1w5i1_145",ba="_loadingText_1w5i1_153",Na="_generateButtonContainer_1w5i1_157",ka="_uploadedMapContainer_1w5i1_165",Ia="_uploadedMapImage_1w5i1_169",Ma="_formGrid_1w5i1_209",La="_titleField_1w5i1_222",Ta="_ratingDescription_1w5i1_230",Da="_ratingSlider_1w5i1_235",Ea="_ratingLabel_1w5i1_242",Pa="_ratingInput_1w5i1_251",Fa="_ratingValue_1w5i1_256",Ra="_submitSection_1w5i1_266",Aa="_successContainer_1w5i1_275",za="_successHeading_1w5i1_280",Oa="_successText_1w5i1_285",$a="_successButton_1w5i1_291",Ba="_viewFullSizeButton_1w5i1_297",Ua="_fullSizeModalOverlay_1w5i1_306",Wa="_lightModalOverlay_1w5i1_320",Ha="_fullSizeModalContent_1w5i1_334",Va="_fullSizeModalHeader_1w5i1_345",Ga="_fullSizeModalImage_1w5i1_361",qa="_confirmSection_1w5i1_398",Ya="_step2Layout_1w5i1_407",Za="_topRow_1w5i1_413",Ka="_ratingHidden_1w5i1_421",Ja="_imageSection_1w5i1_425",Qa="_ratingContent_1w5i1_435",Xa="_mapColumn_1w5i1_453",es="_contentColumn_1w5i1_458",ns="_step2bLayout_1w5i1_465",ts="_metadataSectionCard_1w5i1_562",as="_droneMetadataSection_1w5i1_571",ss="_droneMetadataHeading_1w5i1_577",is="_droneMetadataGrid_1w5i1_585",os="_rtkFixContainer_1w5i1_591",rs="_rtkFixLabel_1w5i1_597",ls="_rtkFixCheckbox_1w5i1_606",cs="_confirmButtonContainer_1w5i1_621",ds="_ratingWarningContent_1w5i1_629",us="_ratingWarningTitle_1w5i1_637",gs="_ratingWarningText_1w5i1_644",ps="_ratingWarningButtons_1w5i1_651",ms="_preprocessingProgress_1w5i1_658",hs="_carouselContainer_1w5i1_711",fs="_carouselImageWrapper_1w5i1_716",xs="_carouselImage_1w5i1_716",vs="_carouselNavigation_1w5i1_739",_s="_carouselButton_1w5i1_751",js="_carouselIndicators_1w5i1_775",ws="_carouselIndicator_1w5i1_775",Cs="_carouselIndicatorActive_1w5i1_804",ys="_viewImageButtonContainer_1w5i1_840",t={uploadContainer:pa,dropZone:ma,hasFile:ha,dropZoneIcon:fa,dropZoneText:xa,dropZoneSubtext:va,filePreview:_a,filePreviewImage:ja,fileName:wa,fileInfo:Ca,helpLink:ya,loadingContainer:Sa,loadingText:ba,generateButtonContainer:Na,uploadedMapContainer:ka,uploadedMapImage:Ia,formGrid:Ma,titleField:La,ratingDescription:Ta,ratingSlider:Da,ratingLabel:Ea,ratingInput:Pa,ratingValue:Fa,submitSection:Ra,successContainer:Aa,successHeading:za,successText:Oa,successButton:$a,viewFullSizeButton:Ba,fullSizeModalOverlay:Ua,lightModalOverlay:Wa,fullSizeModalContent:Ha,fullSizeModalHeader:Va,fullSizeModalImage:Ga,confirmSection:qa,step2Layout:Ya,topRow:Za,ratingHidden:Ka,imageSection:Ja,ratingContent:Qa,mapColumn:Xa,contentColumn:es,step2bLayout:ns,metadataSectionCard:ts,droneMetadataSection:as,droneMetadataHeading:ss,droneMetadataGrid:is,rtkFixContainer:os,rtkFixLabel:rs,rtkFixCheckbox:ls,confirmButtonContainer:cs,ratingWarningContent:ds,ratingWarningTitle:us,ratingWarningText:gs,ratingWarningButtons:ps,preprocessingProgress:ms,carouselContainer:hs,carouselImageWrapper:fs,carouselImage:xs,carouselNavigation:vs,carouselButton:_s,carouselIndicators:js,carouselIndicator:ws,carouselIndicatorActive:Cs,viewImageButtonContainer:ys},Rn=a.createContext(void 0),Ss=({children:i})=>{const[s,o]=a.useState(""),[p,c]=a.useState(""),[d,_]=a.useState(""),[C,S]=a.useState(""),[x,l]=a.useState(""),[b,M]=a.useState(""),[E,j]=a.useState(""),[F,A]=a.useState(!1),L={search:s,srcFilter:p,catFilter:d,regionFilter:C,countryFilter:x,imageTypeFilter:b,uploadTypeFilter:E,showReferenceExamples:F,setSearch:o,setSrcFilter:c,setCatFilter:_,setRegionFilter:S,setCountryFilter:l,setImageTypeFilter:M,setUploadTypeFilter:j,setShowReferenceExamples:A,clearAllFilters:()=>{o(""),c(""),_(""),S(""),l(""),M(""),j(""),A(!1)}};return e.jsx(Rn.Provider,{value:L,children:i})},bs=()=>{const i=a.useContext(Rn);if(i===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return i};function Dn({files:i,file:s,preview:o,imageType:p,onFileChange:c,onRemoveImage:d,onAddImage:_,onImageTypeChange:C,onChangeFile:S}){const x=l=>{l.preventDefault();const b=l.dataTransfer.files?.[0];b&&c(b)};return e.jsxs("div",{className:"space-y-6",children:[e.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),e.jsx("div",{className:t.helpLink,children:e.jsxs(zt,{to:"/help",className:t.helpLink,children:["More ",e.jsx(Zt,{className:"w-3 h-3"})]})}),e.jsx("div",{className:"flex justify-center",children:e.jsx(U,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:e.jsx(Kt,{name:"image-type",value:p,onChange:l=>C(l),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:l=>l.key,labelSelector:l=>l.label})})}),e.jsxs("div",{className:`${t.dropZone} ${s?t.hasFile:""}`,onDragOver:l=>l.preventDefault(),onDrop:x,children:[i.length>1?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:i.map((l,b)=>e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:URL.createObjectURL(l),alt:`Image ${b+1}`,className:"w-full h-32 object-cover rounded"}),e.jsx(cn,{name:"remove-image",variant:"tertiary",onClick:()=>d(b),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:e.jsx(dn,{className:"w-4 h-4"})}),e.jsx("div",{className:"text-xs text-center mt-1",children:l.name})]},b))}):s&&o?e.jsxs("div",{className:t.filePreview,children:[e.jsx("div",{className:t.filePreviewImage,children:e.jsx("img",{src:o,alt:"File preview"})}),e.jsx("p",{className:t.fileName,children:s.name}),e.jsxs("p",{className:t.fileInfo,children:[(s.size/1024/1024).toFixed(2)," MB"]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Fn,{className:t.dropZoneIcon}),e.jsx("p",{className:t.dropZoneText,children:"Drag & Drop any file here"}),e.jsx("p",{className:t.dropZoneSubtext,children:"or"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("label",{className:"inline-block cursor-pointer",children:[e.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:l=>{s&&S?S(l.target.files?.[0]):c(l.target.files?.[0])}}),e.jsx(w,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:s?"Change Image":"Browse Files"})]}),s&&i.length<5&&e.jsx(w,{name:"add-image",variant:"secondary",size:1,onClick:_,children:"Add Image"})]})]})]})}function En({files:i,imageUrl:s,preview:o,onViewFullSize:p,currentImageIndex:c=0,onGoToPrevious:d,onGoToNext:_,onGoToImage:C,showCarousel:S=!1}){return S&&i.length>1?e.jsx(U,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.carouselContainer,children:[e.jsx("div",{className:t.carouselImageWrapper,children:i[c]?e.jsx("img",{src:URL.createObjectURL(i[c]),alt:`Image ${c+1}`,className:t.carouselImage}):e.jsx("div",{className:t.imagePlaceholder,children:"No image available"})}),e.jsxs("div",{className:t.carouselNavigation,children:[e.jsx(w,{name:"previous-image",variant:"tertiary",size:1,onClick:d,className:t.carouselButton,children:e.jsx(Jt,{className:"w-4 h-4"})}),e.jsx("div",{className:t.carouselIndicators,children:i.map((x,l)=>e.jsx("button",{onClick:()=>C?.(l),className:`${t.carouselIndicator} ${l===c?t.carouselIndicatorActive:""}`,children:l+1},l))}),e.jsx(w,{name:"next-image",variant:"tertiary",size:1,onClick:_,className:t.carouselButton,children:e.jsx(Qt,{className:"w-4 h-4"})})]}),e.jsx("div",{className:t.viewImageButtonContainer,children:e.jsx(w,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>p({file:i[c],index:c}),disabled:!i[c],children:"View Image"})})]})}):i.length>1?e.jsx("div",{className:"space-y-6",children:i.map((x,l)=>e.jsx(U,{heading:`Image ${l+1}: ${x.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.uploadedMapContainer,children:[e.jsx("div",{className:t.uploadedMapImage,children:e.jsx("img",{src:URL.createObjectURL(x),alt:`Image ${l+1}`})}),e.jsx("div",{className:t.viewFullSizeButton,children:e.jsx(w,{name:`view-full-size-${l}`,variant:"secondary",size:1,onClick:()=>p({file:x,index:l}),children:"View Image"})})]})},l))}):e.jsx(U,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.uploadedMapContainer,children:[e.jsx("div",{className:t.uploadedMapImage,children:e.jsx("img",{src:s||o||void 0,alt:"Uploaded image preview"})}),e.jsx("div",{className:t.viewFullSizeButton,children:e.jsx(w,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>p(),children:"View Image"})})]})})}function Ns({files:i,imageType:s,title:o,source:p,eventType:c,epsg:d,countries:_,centerLon:C,centerLat:S,amslM:x,aglM:l,headingDeg:b,yawDeg:M,pitchDeg:E,rollDeg:j,rtkFix:F,stdHM:A,stdVM:z,metadataArray:L,sources:G,types:q,spatialReferences:Y,imageTypes:R,countriesOptions:Q,onTitleChange:Z,onSourceChange:ae,onEventTypeChange:K,onEpsgChange:se,onCountriesChange:ie,onCenterLonChange:oe,onCenterLatChange:re,onAmslMChange:le,onAglMChange:ce,onHeadingDegChange:de,onYawDegChange:ue,onPitchDegChange:ge,onRollDegChange:pe,onRtkFixChange:me,onStdHMChange:he,onStdVMChange:fe,onImageTypeChange:xe,updateMetadataForImage:P}){return i.length>1?e.jsxs("div",{children:[e.jsx("div",{className:"mb-4",children:e.jsx(D,{label:"Shared Title",name:"title",value:o,onChange:Z,placeholder:"Enter a title for all images...",required:!0})}),i.map((N,m)=>e.jsx("div",{className:"mb-6",children:e.jsx(U,{heading:`Image ${m+1}: ${N.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.formGrid,children:[s!=="drone_image"&&e.jsx(J,{label:"Source",name:`source_${m}`,value:L[m]?.source||"",onChange:h=>P(m,"source",h),options:G,keySelector:h=>h.s_code,labelSelector:h=>h.label,required:!0}),e.jsx(J,{label:"Event Type",name:`event_type_${m}`,value:L[m]?.eventType||"",onChange:h=>P(m,"eventType",h),options:q,keySelector:h=>h.t_code,labelSelector:h=>h.label,required:s!=="drone_image"}),e.jsx(J,{label:"EPSG",name:`epsg_${m}`,value:L[m]?.epsg||"",onChange:h=>P(m,"epsg",h),options:Y,keySelector:h=>h.epsg,labelSelector:h=>`${h.srid} (EPSG:${h.epsg})`,placeholder:"EPSG",required:s!=="drone_image"}),e.jsx(Ln,{label:"Countries (optional)",name:`countries_${m}`,value:L[m]?.countries||[],onChange:h=>P(m,"countries",h),options:Q,keySelector:h=>h.c_code,labelSelector:h=>h.label,placeholder:"Select one or more"}),s==="drone_image"&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:t.droneMetadataSection,children:[e.jsx("h4",{className:t.droneMetadataHeading,children:"Drone Flight Data"}),e.jsxs("div",{className:t.droneMetadataGrid,children:[e.jsx(D,{label:"Center Longitude",name:`center_lon_${m}`,value:L[m]?.centerLon||"",onChange:h=>P(m,"centerLon",h),placeholder:"e.g., -122.4194",step:"any"}),e.jsx(D,{label:"Center Latitude",name:`center_lat_${m}`,value:L[m]?.centerLat||"",onChange:h=>P(m,"centerLat",h),placeholder:"e.g., 37.7749",step:"any"}),e.jsx(D,{label:"Altitude AMSL (m)",name:`amsl_m_${m}`,value:L[m]?.amslM||"",onChange:h=>P(m,"amslM",h),placeholder:"e.g., 100.5",step:"any"}),e.jsx(D,{label:"Altitude AGL (m)",name:`agl_m_${m}`,value:L[m]?.aglM||"",onChange:h=>P(m,"aglM",h),placeholder:"e.g., 50.2",step:"any"}),e.jsx(D,{label:"Heading (degrees)",name:`heading_deg_${m}`,value:L[m]?.headingDeg||"",onChange:h=>P(m,"headingDeg",h),placeholder:"e.g., 180.0",step:"any"}),e.jsx(D,{label:"Yaw (degrees)",name:`yaw_deg_${m}`,value:L[m]?.yawDeg||"",onChange:h=>P(m,"yawDeg",h),placeholder:"e.g., 90.0",step:"any"}),e.jsx(D,{label:"Pitch (degrees)",name:`pitch_deg_${m}`,value:L[m]?.pitchDeg||"",onChange:h=>P(m,"pitchDeg",h),placeholder:"e.g., 0.0",step:"any"}),e.jsx(D,{label:"Roll (degrees)",name:`roll_deg_${m}`,value:L[m]?.rollDeg||"",onChange:h=>P(m,"rollDeg",h),placeholder:"e.g., 0.0",step:"any"}),e.jsx("div",{className:t.rtkFixContainer,children:e.jsxs("label",{className:t.rtkFixLabel,children:[e.jsx("input",{type:"checkbox",checked:L[m]?.rtkFix||!1,onChange:h=>P(m,"rtkFix",h.target.checked),className:t.rtkFixCheckbox}),"RTK Fix Available"]})}),e.jsx(D,{label:"Horizontal Std Dev (m)",name:`std_h_m_${m}`,value:L[m]?.stdHM||"",onChange:h=>P(m,"stdHM",h),placeholder:"e.g., 0.1",step:"any"}),e.jsx(D,{label:"Vertical Std Dev (m)",name:`std_v_m_${m}`,value:L[m]?.stdVM||"",onChange:h=>P(m,"stdVM",h),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},m))]}):e.jsxs("div",{className:t.formGrid,children:[e.jsx("div",{className:t.titleField,children:e.jsx(D,{label:"Title",name:"title",value:o,onChange:Z,placeholder:"Enter a title for this map...",required:!0})}),s!=="drone_image"&&e.jsx(J,{label:"Source",name:"source",value:p,onChange:ae,options:G,keySelector:N=>N.s_code,labelSelector:N=>N.label,required:!0}),e.jsx(J,{label:"Event Type",name:"event_type",value:c,onChange:K,options:q,keySelector:N=>N.t_code,labelSelector:N=>N.label,required:s!=="drone_image"}),e.jsx(J,{label:"EPSG",name:"epsg",value:d,onChange:se,options:Y,keySelector:N=>N.epsg,labelSelector:N=>`${N.srid} (EPSG:${N.epsg})`,placeholder:"EPSG",required:s!=="drone_image"}),e.jsx(J,{label:"Image Type",name:"image_type",value:s,onChange:xe,options:R,keySelector:N=>N.image_type,labelSelector:N=>N.label,required:!0}),e.jsx(Ln,{label:"Countries (optional)",name:"countries",value:_,onChange:ie,options:Q,keySelector:N=>N.c_code,labelSelector:N=>N.label,placeholder:"Select one or more"}),s==="drone_image"&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:t.droneMetadataSection,children:[e.jsx("h4",{className:t.droneMetadataHeading,children:"Drone Flight Data"}),e.jsxs("div",{className:t.droneMetadataGrid,children:[e.jsx(D,{label:"Center Longitude",name:"center_lon",value:C,onChange:oe,placeholder:"e.g., -122.4194",step:"any"}),e.jsx(D,{label:"Center Latitude",name:"center_lat",value:S,onChange:re,placeholder:"e.g., 37.7749",step:"any"}),e.jsx(D,{label:"Altitude AMSL (m)",name:"amsl_m",value:x,onChange:le,placeholder:"e.g., 100.5",step:"any"}),e.jsx(D,{label:"Altitude AGL (m)",name:"agl_m",value:l,onChange:ce,placeholder:"e.g., 50.2",step:"any"}),e.jsx(D,{label:"Heading (degrees)",name:"heading_deg",value:b,onChange:de,placeholder:"e.g., 180.0",step:"any"}),e.jsx(D,{label:"Yaw (degrees)",name:"yaw_deg",value:M,onChange:ue,placeholder:"e.g., 90.0",step:"any"}),e.jsx(D,{label:"Pitch (degrees)",name:"pitch_deg",value:E,onChange:ge,placeholder:"e.g., 0.0",step:"any"}),e.jsx(D,{label:"Roll (degrees)",name:"roll_deg",value:j,onChange:pe,placeholder:"e.g., 0.0",step:"any"}),e.jsx("div",{className:t.rtkFixContainer,children:e.jsxs("label",{className:t.rtkFixLabel,children:[e.jsx("input",{type:"checkbox",checked:F,onChange:N=>me(N.target.checked),className:t.rtkFixCheckbox}),"RTK Fix Available"]})}),e.jsx(D,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:A,onChange:he,placeholder:"e.g., 0.1",step:"any"}),e.jsx(D,{label:"Vertical Std Dev (m)",name:"std_v_m",value:z,onChange:fe,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function ks({isPerformanceConfirmed:i,scores:s,onScoreChange:o,onConfirmRatings:p,onEditRatings:c}){return i?null:e.jsx(U,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.ratingContent,children:[e.jsx("p",{className:t.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(d=>e.jsxs("div",{className:t.ratingSlider,children:[e.jsx("label",{className:t.ratingLabel,children:d}),e.jsx("input",{type:"range",min:0,max:100,value:s[d],onChange:_=>o(d,Number(_.target.value)),className:t.ratingInput}),e.jsx("span",{className:t.ratingValue,children:s[d]})]},d)),e.jsx("div",{className:t.confirmButtonContainer,children:e.jsx(w,{name:"confirm-ratings",variant:"secondary",onClick:p,children:"Confirm Ratings"})})]})})}function Is({description:i,analysis:s,recommendedActions:o,onDescriptionChange:p,onAnalysisChange:c,onRecommendedActionsChange:d,onBack:_,onDelete:C,onSubmit:S,onEditRatings:x,isPerformanceConfirmed:l=!1}){const b=M=>{if(M){const E=M.split(` -`),j=E.findIndex(z=>z.startsWith("Description:")),F=E.findIndex(z=>z.startsWith("Analysis:")),A=E.findIndex(z=>z.startsWith("Recommended Actions:"));j!==-1&&F!==-1&&A!==-1&&(p(E.slice(j+1,F).join(` -`).trim()),c(E.slice(F+1,A).join(` -`).trim()),d(E.slice(A+1).join(` -`).trim()))}};return e.jsxs(U,{heading:"Generated Text",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsx("div",{className:"text-left space-y-4",children:e.jsx("div",{children:e.jsx(Xt,{name:"generatedContent",value:`Description: -${i||"AI-generated description will appear here..."} - -Analysis: -${s||"AI-generated analysis will appear here..."} - -Recommended Actions: -${o||"AI-generated recommended actions will appear here..."}`,onChange:b,rows:12,placeholder:"AI-generated content will appear here..."})})}),e.jsxs("div",{className:t.submitSection,children:[e.jsx(w,{name:"back",variant:"secondary",onClick:_,children:"Back"}),l&&x&&e.jsx(w,{name:"edit-ratings",variant:"secondary",onClick:x,children:"Edit Ratings"}),e.jsx(cn,{name:"delete",variant:"tertiary",onClick:C,title:"Delete",ariaLabel:"Delete uploaded image",children:e.jsx(dn,{})}),e.jsx(w,{name:"submit",onClick:S,children:"Submit"})]})]})}function Ms({isOpen:i,imageUrl:s,preview:o,selectedImageData:p,onClose:c}){if(!i)return null;let d,_;return p?(d=URL.createObjectURL(p.file),_=`Image ${p.index+1}: ${p.file.name}`):(d=s||o||void 0,_="Full size map"),e.jsx("div",{className:t.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:C=>C.stopPropagation(),children:[e.jsx("div",{className:t.fullSizeModalHeader,children:e.jsx(w,{name:"close-modal",variant:"tertiary",size:1,onClick:c,children:"✕"})}),e.jsx("div",{className:t.fullSizeModalImage,children:e.jsx("img",{src:d,alt:_})})]})})}function Ls({isOpen:i,onClose:s}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:s,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Please Confirm Your Ratings"}),e.jsx("p",{className:t.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-warning",variant:"secondary",onClick:s,children:"Close"})})]})})}):null}function Ts({isOpen:i,onConfirm:s,onCancel:o}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Delete Image?"}),e.jsx("p",{className:t.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-delete",variant:"secondary",onClick:s,children:"Delete"}),e.jsx(w,{name:"cancel-delete",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})}):null}function Ds({isOpen:i,onConfirm:s,onCancel:o}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Leave Page?"}),e.jsx("p",{className:t.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-navigation",variant:"secondary",onClick:s,children:"Leave Page"}),e.jsx(w,{name:"cancel-navigation",variant:"tertiary",onClick:o,children:"Stay"})]})]})})}):null}function Es({isOpen:i,fallbackInfo:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Model Changed"}),e.jsxs("p",{className:t.ratingWarningText,children:[s.originalModel," is currently unavailable. We've automatically switched to ",s.fallbackModel," to complete your request."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-fallback",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function Ps({isOpen:i,preprocessingInfo:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Converted"}),e.jsxs("p",{className:t.ratingWarningText,children:["Your file ",e.jsx("strong",{children:s.original_filename})," has been converted from",e.jsxs("strong",{children:[" ",s.original_mime_type]})," to",e.jsxs("strong",{children:[" ",s.processed_mime_type]})," for optimal processing.",e.jsx("br",{}),e.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-preprocessing",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function Fs({isOpen:i,preprocessingFile:s,isPreprocessing:o,preprocessingProgress:p,onConfirm:c,onCancel:d}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o?void 0:d,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:_=>_.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Conversion Required"}),e.jsx("p",{className:t.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!o&&e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-preprocessing",variant:"secondary",onClick:c,children:"Convert File"}),e.jsx(w,{name:"cancel-preprocessing",variant:"tertiary",onClick:d,children:"Cancel"})]}),o&&e.jsxs("div",{className:t.preprocessingProgress,children:[e.jsx("p",{children:p}),e.jsx(rn,{className:"text-ifrcRed"})]})]})})}):null}function Rs({isOpen:i,unsupportedFile:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Unsupported File Format"}),e.jsxs("p",{className:t.ratingWarningText,children:["The file ",e.jsx("strong",{children:s.name})," is not supported for upload.",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Supported formats:"}),e.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",e.jsx("br",{}),"• Documents: PDF (will be converted to image)",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-unsupported",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function As({isOpen:i,oversizedFile:s,onClose:o,onCancel:p}){return!i||!s?null:e.jsx("div",{className:t.lightModalOverlay,onClick:p,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:c=>c.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Size Warning"}),e.jsxs("p",{className:t.ratingWarningText,children:["The file ",e.jsx("strong",{children:s.name})," is large (",(s.size/(1024*1024)).toFixed(1),"MB).",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",e.jsx("br",{}),e.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"continue-size-warning",variant:"secondary",onClick:o,children:"Continue"}),e.jsx(w,{name:"cancel-size-warning",variant:"tertiary",onClick:p,children:"Cancel"})]})]})})})}const Pe="selectedVlmModel";function Pn(){const[i]=Ot(),s=un(),[o,p]=a.useState(1),[c,d]=a.useState(!1),[_,C]=a.useState(!1),S=a.useRef(o),x=a.useRef(null),[l,b]=a.useState(null),[M,E]=a.useState(null),[j,F]=a.useState([]),[A,z]=a.useState(""),[L,G]=a.useState(""),[q,Y]=a.useState(""),[R,Q]=a.useState("crisis_map"),[Z,ae]=a.useState([]),[K,se]=a.useState(""),[ie,oe]=a.useState(""),[re,le]=a.useState(""),[ce,de]=a.useState(""),[ue,ge]=a.useState(""),[pe,me]=a.useState(""),[he,fe]=a.useState(""),[xe,P]=a.useState(""),[N,m]=a.useState(""),[h,Fe]=a.useState(!1),[Re,Ae]=a.useState(""),[ze,Oe]=a.useState(""),[$e,Se]=a.useState([]),[An,zn]=a.useState([]),[On,$n]=a.useState([]),[Bn,Un]=a.useState([]),[Wn,Hn]=a.useState([]),[Vn,Gn]=a.useState([]),[W,be]=a.useState(null),[Be,X]=a.useState([]),[Ne,gn]=a.useState(null),[qn,pn]=a.useState(""),[mn,Ue]=a.useState(""),[hn,We]=a.useState(""),[fn,He]=a.useState(""),[ke,xn]=a.useState({accuracy:50,context:50,usability:50}),[Yn,Ve]=a.useState(!1),[Zn,Ge]=a.useState(null),[ve,Ie]=a.useState(!1),[Kn,vn]=a.useState(!1),[Jn,qe]=a.useState(!1),[Qn,Me]=a.useState(!1),[Ye,Ze]=a.useState(null),[Xn,Ke]=a.useState(!1),[et,_n]=a.useState(null),[nt,Je]=a.useState(!1),[tt,jn]=a.useState(null),[at,ee]=a.useState(!1),[Qe,ne]=a.useState(null),[st,_e]=a.useState(!1),[it,H]=a.useState(""),[ot,Le]=a.useState(!1),[rt,Xe]=a.useState(null),[lt,je]=a.useState(!1),[ct,en]=a.useState(null),[dt,Te]=a.useState(0);S.current=o,x.current=W;const ut=n=>z(n||""),gt=n=>G(n||""),pt=n=>Y(n||""),nn=n=>Q(n||""),mt=n=>ae(Array.isArray(n)?n:[]),ht=n=>oe(n||""),ft=n=>le(n||""),xt=n=>de(n||""),vt=n=>ge(n||""),_t=n=>me(n||""),jt=n=>fe(n||""),wt=n=>P(n||""),Ct=n=>m(n||""),yt=n=>Fe(n||!1),St=n=>Ae(n||""),bt=n=>Oe(n||""),De=n=>p(n),Nt=a.useCallback(()=>{j.length>1&&Te(n=>n>0?n-1:j.length-1)},[j.length]),kt=a.useCallback(()=>{j.length>1&&Te(n=>n{n>=0&&n{if(j.length<5){const n=document.createElement("input");n.type="file",n.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",n.onchange=f=>{const u=f.target;if(u.files&&u.files[0]){const g=u.files[0];tn(g)}},n.click()}},Cn=n=>{F(f=>{const u=f.filter((g,r)=>r!==n);return u.length===1?E(u[0]):u.length===0&&E(null),u}),Se(f=>f.filter((u,g)=>g!==n))},Mt=(n,f,u)=>{Se(g=>{const r=[...g];return r[n]||(r[n]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),r[n]={...r[n],[f]:u},r})},yn=n=>{const f=["image/jpeg","image/jpg","image/png"],u=[".jpg",".jpeg",".png"];let g=!f.includes(n.type);if(!g&&n.name){const r=n.name.toLowerCase().substring(n.name.lastIndexOf("."));g=!u.includes(r)}return g},Sn=n=>{const f=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const u of f)if(n.type.startsWith(u))return!0;if(n.name){const u=n.name.toLowerCase().substring(n.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(u))return!0}return!1},tn=n=>{if(n){if(console.log("File selected:",n.name,"Type:",n.type,"Size:",n.size),n.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),en(n),je(!0)),Sn(n)){console.log("File format not supported at all, showing unsupported format modal"),Xe(n),Le(!0);return}yn(n)?(console.log("File needs preprocessing, showing modal"),ne(n),ee(!0)):(console.log("File does not need preprocessing, setting directly"),j.length===0?(E(n),F([n])):F(u=>[...u,n]))}},bn=n=>{if(n){if(console.log("File changed:",n.name,"Type:",n.type,"Size:",n.size),n.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),en(n),je(!0)),Sn(n)){console.log("File format not supported at all, showing unsupported format modal"),Xe(n),Le(!0);return}yn(n)?(console.log("File needs preprocessing, showing modal"),ne(n),ee(!0)):(console.log("File does not need preprocessing, replacing last file"),j.length>1?(F(u=>{const g=[...u];return g[g.length-1]=n,g}),j.length===1&&E(n)):(E(n),F([n])))}};async function we(n){const f=await n.text();try{return f?JSON.parse(f):{}}catch{return{error:f}}}function an(n,f){const u=n instanceof Error?n.message:`Failed to ${f.toLowerCase()}`;alert(u)}async function Nn(){if(j.length!==0){d(!0);try{j.length===1?await Lt():await Tt()}catch(n){an(n,"Upload")}finally{d(!1)}}}async function Lt(){console.log("DEBUG: Starting single image upload");const n=new FormData;n.append("file",j[0]),n.append("title",K),n.append("image_type",R),A&&n.append("source",A),L&&n.append("event_type",L),q&&n.append("epsg",q),Z.length>0&&Z.forEach(r=>n.append("countries",r)),R==="drone_image"&&(ie&&n.append("center_lon",ie),re&&n.append("center_lat",re),ce&&n.append("amsl_m",ce),ue&&n.append("agl_m",ue),pe&&n.append("heading_deg",pe),he&&n.append("yaw_deg",he),xe&&n.append("pitch_deg",xe),N&&n.append("roll_deg",N),h&&n.append("rtk_fix",h.toString()),Re&&n.append("std_h_m",Re),ze&&n.append("std_v_m",ze));const f=localStorage.getItem(Pe);f&&n.append("model_name",f);const u=await fetch("/api/images/",{method:"POST",body:n}),g=await we(u);if(!u.ok)throw new Error(g.error||"Upload failed");console.log("DEBUG: Single upload response:",g),await kn(g,!1)}async function Tt(){console.log("DEBUG: Starting multi-image upload");const n=new FormData;j.forEach(r=>n.append("files",r)),n.append("title",K),n.append("image_type",R),$e.forEach((r,v)=>{r.source&&n.append(`source_${v}`,r.source),r.eventType&&n.append(`event_type_${v}`,r.eventType),r.epsg&&n.append(`epsg_${v}`,r.epsg),r.countries.length>0&&r.countries.forEach(T=>n.append(`countries_${v}`,T)),R==="drone_image"&&(r.centerLon&&n.append(`center_lon_${v}`,r.centerLon),r.centerLat&&n.append(`center_lat_${v}`,r.centerLat),r.amslM&&n.append(`amsl_m_${v}`,r.amslM),r.aglM&&n.append(`agl_m_${v}`,r.aglM),r.headingDeg&&n.append(`heading_deg_${v}`,r.headingDeg),r.yawDeg&&n.append(`yaw_deg_${v}`,r.yawDeg),r.pitchDeg&&n.append(`pitch_deg_${v}`,r.pitchDeg),r.rollDeg&&n.append(`roll_deg_${v}`,r.rollDeg),r.rtkFix&&n.append(`rtk_fix_${v}`,r.rtkFix.toString()),r.stdHM&&n.append(`std_h_m_${v}`,r.stdHM),r.stdVM&&n.append(`std_v_m_${v}`,r.stdVM))});const f=localStorage.getItem(Pe);f&&n.append("model_name",f);const u=await fetch("/api/images/multi",{method:"POST",body:n}),g=await we(u);if(!u.ok)throw new Error(g.error||"Upload failed");console.log("DEBUG: Multi upload response:",g),await kn(g,!0)}async function kn(n,f){gn(n.image_url),n.preprocessing_info&&typeof n.preprocessing_info=="object"&&"was_preprocessed"in n.preprocessing_info&&n.preprocessing_info.was_preprocessed===!0&&(jn(n.preprocessing_info),Je(!0));const u=n.image_id;if(!u)throw new Error("Upload failed: image_id not found");if(be(u),f)if(n.image_ids&&Array.isArray(n.image_ids)){const y=n.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",y),X(y)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),X([u]);else console.log("DEBUG: Storing single image ID:",u),X([u]);const g=n,r=g.raw_json?.fallback_info;r&&(_n({originalModel:r.original_model,fallbackModel:r.fallback_model,reason:r.reason}),Ke(!0));const v=g.raw_json?.metadata;if(v){const y=v.metadata||v;if(y&&typeof y=="object"){const O=[];if(f){const k=y.metadata_images;if(k&&typeof k=="object")for(let $=1;$<=j.length;$++){const Ce=`image${$}`,sn=k[Ce];if(sn&&typeof sn=="object"){const ye=sn;O.push({source:ye.source||"",eventType:ye.type||"",epsg:ye.epsg||"",countries:Array.isArray(ye.countries)?ye.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else O.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const $={source:y.source||"",eventType:y.type||"",epsg:y.epsg||"",countries:Array.isArray(y.countries)?y.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let Ce=0;Ce0){const k=O[0];if(y&&typeof y=="object"){const $=y.title;$&&se($||"")}z(k.source||""),G(k.eventType||""),Y(k.epsg||""),ae(k.countries||[]),R==="drone_image"&&(oe(k.centerLon||""),le(k.centerLat||""),de(k.amslM||""),ge(k.aglM||""),me(k.headingDeg||""),fe(k.yawDeg||""),P(k.pitchDeg||""),m(k.rollDeg||""),Fe(k.rtkFix||!1),Ae(k.stdHM||""),Oe(k.stdVM||""))}}}const T=g.raw_json?.metadata;T&&(T.description&&Ue(T.description),T.analysis&&We(T.analysis),T.recommended_actions&&He(T.recommended_actions)),g.generated&&pn(g.generated),De("2a")}async function Dt(){if(console.log("handleSubmit called with:",{uploadedImageId:W,title:K,draft:qn}),!W)return alert("No image to submit");if(!ve){vn(!0);return}try{const n=Be.length>0?Be:[W];console.log("DEBUG: Submit - Using image IDs:",n),console.log("DEBUG: Submit - uploadedImageIds:",Be),console.log("DEBUG: Submit - uploadedImageId:",W);for(let v=0;v{Ie(!1),p(1),E(null),F([]),b(null),be(null),X([]),gn(null),se(""),z(""),G(""),Y(""),ae([]),oe(""),le(""),de(""),ge(""),me(""),fe(""),P(""),m(""),Fe(!1),Ae(""),Oe(""),xn({accuracy:50,context:50,usability:50}),pn(""),Ue(""),We(""),He(""),Se([]),Ke(!1),_n(null),Je(!1),jn(null),ee(!1),ne(null),_e(!1),H(""),Le(!1),Xe(null),je(!1),en(null),s("/upload",{replace:!0})},Ee=a.useCallback(n=>{n==="/upload"||n==="/"||(x.current?(Ze(n),Me(!0)):s(n))},[s]);async function Pt(){if(Ye&&x.current)try{await fetch(`/api/images/${x.current}`,{method:"DELETE"}),Me(!1),Ze(null),s(Ye)}catch(n){console.error("Failed to delete image before navigation:",n),Me(!1),Ze(null),s(Ye)}}const Ft=async()=>{if(Qe){_e(!0),H("Starting file conversion...");try{const n=new FormData;n.append("file",Qe),n.append("preprocess_only","true"),H("Converting file format...");const f=await fetch("/api/images/preprocess",{method:"POST",body:n});if(!f.ok)throw new Error("Preprocessing failed");const u=await f.json();H("Finalizing conversion...");const g=atob(u.processed_content),r=new Uint8Array(g.length);for(let y=0;y[...y,v]),b(T),H("Conversion complete!"),setTimeout(()=>{ee(!1),ne(null),_e(!1),H("")},1e3)}catch(n){console.error("Preprocessing error:",n),H("Conversion failed. Please try again."),setTimeout(()=>{ee(!1),ne(null),_e(!1),H("")},2e3)}}},Rt=()=>{ee(!1),ne(null),_e(!1),H("")},At=async n=>{C(!0);try{const f=n.map(async v=>{const T=await fetch(`/api/images/${v}`);if(!T.ok)throw new Error(`Failed to fetch image ${v}`);const y=await T.json(),O=await fetch(`/api/images/${v}/file`);if(!O.ok)throw new Error(`Failed to fetch image file ${v}`);const k=await O.blob(),$=y.file_key.split("/").pop()||`contributed_${v}.png`;return{file:new File([k],$,{type:k.type}),imageData:y}}),u=await Promise.all(f),g=u.map(v=>v.file),r=u[0]?.imageData;F(g),X(n),n.length===1&&be(n[0]),g.length>=1&&E(g[0]),r?.image_type&&Q(r.image_type)}catch(f){console.error("Failed to fetch contributed images:",f),alert(`Failed to load contributed images: ${f instanceof Error?f.message:"Unknown error"}`)}finally{C(!1)}};return a.useEffect(()=>{Promise.all([fetch("/api/sources").then(n=>n.json()),fetch("/api/types").then(n=>n.json()),fetch("/api/spatial-references").then(n=>n.json()),fetch("/api/image-types").then(n=>n.json()),fetch("/api/countries").then(n=>n.json()),fetch("/api/models").then(n=>n.json())]).then(([n,f,u,g,r,v])=>{!localStorage.getItem(Pe)&&v?.length&&localStorage.setItem(Pe,v[0].m_code),zn(n),$n(f),Un(u),Hn(g),Gn(r),n.length>0&&z(n[0].s_code),G("OTHER"),Y("OTHER"),g.length>0&&!i.get("imageType")&&!R&&Q(g[0].image_type)})},[i,R]),a.useEffect(()=>(window.confirmNavigationIfNeeded=n=>{Ee(n)},()=>{delete window.confirmNavigationIfNeeded}),[Ee]),a.useEffect(()=>{const n=g=>{if(x.current){const r="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return g.preventDefault(),g.returnValue=r,r}},f=()=>{x.current&&fetch(`/api/images/${x.current}`,{method:"DELETE"}).catch(console.error)},u=g=>{const r=g.target,v=r.closest("a[href]")||r.closest("[data-navigate]");if(v&&x.current){const T=v.getAttribute("href")||v.getAttribute("data-navigate");T&&T!=="#"&&!T.startsWith("javascript:")&&!T.startsWith("mailto:")&&(g.preventDefault(),g.stopPropagation(),Ee(T))}};return window.addEventListener("beforeunload",n),document.addEventListener("click",u,!0),()=>{window.removeEventListener("beforeunload",n),document.removeEventListener("click",u,!0),f()}},[Ee]),a.useEffect(()=>{if(!M){b(null);return}const n=URL.createObjectURL(M);return b(n),()=>URL.revokeObjectURL(n)},[M]),a.useEffect(()=>{const n=i.get("contribute"),f=i.get("imageIds");if(n==="true"&&f){const u=f.split(",").filter(g=>g.trim());u.length>0&&At(u)}},[i]),a.useEffect(()=>{o==="2b"&&Te(0)},[o]),e.jsxs(ln,{children:[o!==3&&e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:t.uploadContainer,"data-step":o,children:[o===1&&!i.get("step")&&!_&&e.jsx(Dn,{files:j,file:M,preview:l,imageType:R,onFileChange:tn,onRemoveImage:Cn,onAddImage:wn,onImageTypeChange:nn,onChangeFile:bn}),o===1&&i.get("contribute")==="true"&&!_&&j.length>0&&e.jsx(Dn,{files:j,file:M,preview:l,imageType:R,onFileChange:tn,onRemoveImage:Cn,onAddImage:wn,onImageTypeChange:nn,onChangeFile:bn}),c&&e.jsxs("div",{className:t.loadingContainer,children:[e.jsx(rn,{className:"text-ifrcRed"}),e.jsx("p",{className:t.loadingText,children:"Generating..."})]}),_&&e.jsxs("div",{className:t.loadingContainer,children:[e.jsx(rn,{className:"text-ifrcRed"}),e.jsx("p",{className:t.loadingText,children:"Loading contribution..."})]}),(o===1&&!c&&!_||o===1&&i.get("contribute")==="true"&&!c&&!_&&j.length>0)&&e.jsx("div",{className:t.generateButtonContainer,children:Ne?e.jsx(w,{name:"generate-from-url",onClick:Nn,children:"Generate Caption"}):e.jsx(w,{name:"generate",disabled:j.length===0,onClick:Nn,children:"Generate"})}),o==="2a"&&e.jsxs("div",{className:t.step2Layout,children:[e.jsx("div",{className:t.mapColumn,children:e.jsx(En,{files:j,imageUrl:Ne,preview:l,onViewFullSize:n=>{Ge(n||null),Ve(!0)}})}),e.jsx("div",{className:t.contentColumn,children:e.jsxs("div",{className:t.metadataSectionCard,children:[e.jsx(Ns,{files:j,imageType:R,title:K,source:A,eventType:L,epsg:q,countries:Z,centerLon:ie,centerLat:re,amslM:ce,aglM:ue,headingDeg:pe,yawDeg:he,pitchDeg:xe,rollDeg:N,rtkFix:h,stdHM:Re,stdVM:ze,metadataArray:$e,sources:An,types:On,spatialReferences:Bn,imageTypes:Wn,countriesOptions:Vn,onTitleChange:n=>se(n||""),onSourceChange:ut,onEventTypeChange:gt,onEpsgChange:pt,onCountriesChange:mt,onCenterLonChange:ht,onCenterLatChange:ft,onAmslMChange:xt,onAglMChange:vt,onHeadingDegChange:_t,onYawDegChange:jt,onPitchDegChange:wt,onRollDegChange:Ct,onRtkFixChange:yt,onStdHMChange:St,onStdVMChange:bt,onImageTypeChange:nn,updateMetadataForImage:Mt}),e.jsxs("div",{className:t.confirmSection,children:[e.jsx(cn,{name:"delete",variant:"tertiary",onClick:In,title:"Delete",ariaLabel:"Delete uploaded image",children:e.jsx(dn,{})}),e.jsx(w,{name:"confirm-metadata",onClick:()=>De("2b"),children:"Next"})]})]})})]}),o==="2b"&&e.jsxs("div",{className:t.step2bLayout,children:[e.jsxs("div",{className:`${t.topRow} ${ve?t.ratingHidden:""}`,children:[e.jsx("div",{className:t.imageSection,children:e.jsx(En,{files:j,imageUrl:Ne,preview:l,onViewFullSize:n=>{Ge(n||null),Ve(!0)},currentImageIndex:dt,onGoToPrevious:Nt,onGoToNext:kt,onGoToImage:It,showCarousel:!0})}),!ve&&e.jsx("div",{className:t.metadataSectionCard,children:e.jsx(ks,{isPerformanceConfirmed:ve,scores:ke,onScoreChange:(n,f)=>xn(u=>({...u,[n]:f})),onConfirmRatings:()=>Ie(!0),onEditRatings:()=>Ie(!1)})})]}),e.jsx("div",{className:t.metadataSectionCard,children:e.jsx(Is,{description:mn,analysis:hn,recommendedActions:fn,onDescriptionChange:n=>Ue(n||""),onAnalysisChange:n=>We(n||""),onRecommendedActionsChange:n=>He(n||""),onBack:()=>De("2a"),onDelete:In,onSubmit:Dt,onEditRatings:()=>Ie(!1),isPerformanceConfirmed:ve})})]})]})}),o===3&&e.jsxs("div",{className:t.successContainer,children:[e.jsx(te,{level:2,className:t.successHeading,children:"Saved!"}),e.jsx("p",{className:t.successText,children:i.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),e.jsx("div",{className:t.successButton,children:e.jsx(w,{name:"upload-another",onClick:()=>{Mn()},children:"Upload Another"})})]}),e.jsx(Ms,{isOpen:Yn,imageUrl:Ne,preview:l,selectedImageData:Zn,onClose:()=>{Ve(!1),Ge(null)}}),e.jsx(Ls,{isOpen:Kn,onClose:()=>vn(!1)}),e.jsx(Ts,{isOpen:Jn,onConfirm:Et,onCancel:()=>qe(!1)}),e.jsx(Ds,{isOpen:Qn,onConfirm:Pt,onCancel:()=>Me(!1)}),e.jsx(Es,{isOpen:Xn,fallbackInfo:et,onClose:()=>Ke(!1)}),e.jsx(Ps,{isOpen:nt,preprocessingInfo:tt,onClose:()=>Je(!1)}),e.jsx(Fs,{isOpen:at,preprocessingFile:Qe,isPreprocessing:st,preprocessingProgress:it,onConfirm:Ft,onCancel:Rt}),e.jsx(Rs,{isOpen:ot,unsupportedFile:rt,onClose:()=>Le(!1)}),e.jsx(As,{isOpen:lt,oversizedFile:ct,onClose:()=>je(!1),onCancel:()=>je(!1)})]})}const zs="_helpContainer_1wavj_1",Os="_helpSection_1wavj_13",$s="_sectionHeader_1wavj_49",Bs="_sectionTitle_1wavj_91",Us="_sectionContent_1wavj_105",Ws="_guidelinesList_1wavj_119",Hs="_buttonContainer_1wavj_181",I={helpContainer:zs,helpSection:Os,sectionHeader:$s,sectionTitle:Bs,sectionContent:Us,guidelinesList:Ws,buttonContainer:Hs};function Vs(){const i=un(),{setShowReferenceExamples:s}=bs(),o=()=>{i("/upload")},p=()=>{s(!0),i("/explore")},c=()=>{i("/analytics?view=crisis_maps")};return e.jsx(ln,{className:"py-10",children:e.jsx("div",{className:I.helpContainer,children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Introduction"})}),e.jsx("div",{className:I.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"upload-now",variant:"secondary",onClick:o,children:"Upload now →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Guidelines"})}),e.jsxs("div",{className:I.sectionContent,children:["To make the process smoother, please follow the guidelines below:",e.jsxs("ul",{className:I.guidelinesList,children:[e.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),e.jsx("li",{children:"Confirm the image details prior to modifying the description."}),e.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),e.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"see-examples",variant:"secondary",onClick:p,children:"See examples →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"VLMs"})}),e.jsx("div",{className:I.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"view-vlm-details",variant:"secondary",onClick:c,children:"View VLM details →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Dataset"})}),e.jsx("div",{className:I.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"export-dataset",variant:"secondary",onClick:()=>{s(!1),i("/explore"),setTimeout(()=>{const d=document.querySelector('[name="export-dataset"]');d&&d.click()},100)},children:"Export dataset →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Contact us"})}),e.jsx("div",{className:I.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const Gs=a.createContext(void 0),qs=({children:i})=>{const[s,o]=a.useState(!1),[p,c]=a.useState(!0),d=async()=>{const x=localStorage.getItem("adminToken");if(!x){o(!1),c(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`}})).ok?o(!0):(localStorage.removeItem("adminToken"),o(!1))}catch(l){console.error("Error verifying admin token:",l),localStorage.removeItem("adminToken"),o(!1)}finally{c(!1)}},_=async x=>{try{const l=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:x})});if(l.ok){const b=await l.json();return localStorage.setItem("adminToken",b.access_token),o(!0),!0}else return!1}catch(l){return console.error("Login error:",l),!1}},C=()=>{localStorage.removeItem("adminToken"),o(!1)};a.useEffect(()=>{d()},[]);const S={isAuthenticated:s,isLoading:p,login:_,logout:C,verifyToken:d};return e.jsx(Gs.Provider,{value:S,children:i})},Ys=a.lazy(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),Zs=a.lazy(()=>B(()=>import("./index-Bj6KcvNd.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),Ks=a.lazy(()=>B(()=>import("./AdminPage-C_7rpuzO.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),Js=a.lazy(()=>B(()=>import("./index-iAxVbTZE.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])));class Qs extends a.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(s,o){console.error("Error caught by boundary:",s,o)}render(){return this.state.hasError?e.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[e.jsx("h2",{children:"Something went wrong"}),e.jsx("p",{children:"Please refresh the page to try again."}),e.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const V=i=>{const s=i();return s.catch(()=>{}),s},Xs=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{V(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),V(()=>B(()=>import("./index-Bj6KcvNd.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),V(()=>B(()=>import("./AdminPage-C_7rpuzO.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),V(()=>B(()=>import("./index-iAxVbTZE.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])))}):setTimeout(()=>{V(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),V(()=>B(()=>import("./index-Bj6KcvNd.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),V(()=>B(()=>import("./AdminPage-C_7rpuzO.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),V(()=>B(()=>import("./index-iAxVbTZE.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])))},1e3)},ei=$t([{element:e.jsx(ga,{}),children:[{path:"/",element:e.jsx(Pn,{})},{path:"/upload",element:e.jsx(Pn,{})},{path:"/analytics",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Analytics..."}),children:e.jsx(Ys,{})})},{path:"/explore",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Explore..."}),children:e.jsx(Zs,{})})},{path:"/help",element:e.jsx(Vs,{})},{path:"/admin",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Admin..."}),children:e.jsx(Ks,{})})},{path:"/map/:mapId",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Map Details..."}),children:e.jsx(Js,{})})}]}],{basename:"/"});function ni(){const[i,s]=a.useState([]);a.useEffect(()=>{Xs()},[]);const o=a.useCallback(C=>{s(S=>sa([...S,C],x=>x.name)??S)},[s]),p=a.useCallback(C=>{s(S=>{const x=S.findIndex(b=>b.name===C);if(x===-1)return S;const l=[...S];return l.splice(x,1),l})},[s]),c=a.useCallback((C,S)=>{s(x=>{const l=x.findIndex(M=>M.name===C);if(l===-1)return x;const b=[...x];return b[l]={...b[l],...S},b})},[s]),d=a.useMemo(()=>({alerts:i,addAlert:o,removeAlert:p,updateAlert:c}),[i,o,p,c]),_=a.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return e.jsx(Qs,{children:e.jsx(ea.Provider,{value:d,children:e.jsx(na.Provider,{value:_,children:e.jsx(qs,{children:e.jsx(Ss,{children:e.jsx(Bt,{router:ei})})})})})})}function ti(){return e.jsx(ni,{})}console.log("React version at runtime:",a.version,"createContext exists?",!!a.createContext);Ut.createRoot(document.getElementById("root")).render(e.jsx(a.StrictMode,{children:e.jsx(ti,{})}));export{Gs as A,Ms as F,B as _,bs as u}; diff --git a/py_backend/static/assets/index-Uy48qW96.js b/py_backend/static/assets/index-Uy48qW96.js deleted file mode 100644 index c4443b2e2b62c6cddd903227005c953bc349d86a..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-Uy48qW96.js +++ /dev/null @@ -1,17 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DMU6q_dg.js","assets/vendor-react-BxsGb6Ph.js","assets/vendor-DxpCibxB.js","assets/vendor-ui-l_DttnRj.js","assets/vendor-ui-DpEM1HT6.css","assets/index-BsrMOmjk.css","assets/index-CwG_dxMe.js","assets/useAdmin-B_k2Fdj-.js","assets/ExportModal-BtNOxnGZ.js","assets/ExportModal-BoB3JpqO.css","assets/index-BzPMJFRS.css","assets/AdminPage-Dz89QBtX.js","assets/AdminPage-VgSjQ50W.css","assets/index-jo0G9peP.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); -import{r as a,j as e,L as zt,u as Ot,c as $t,R as Bt,b as Ut}from"./vendor-react-BxsGb6Ph.js";import{N as ln,G as Wt,U as Fn,S as Ht,A as Vt,z as U,n as w,M as Gt,Q as qt,a as Yt,b as Zt,L as Kt,B as cn,D as dn,C as Jt,c as Qt,O as D,f as J,d as Ln,e as Xt,_ as rn,R as te,l as ea,t as na}from"./vendor-ui-l_DttnRj.js";import{u as ta,a as un,O as aa,k as sa}from"./vendor-DxpCibxB.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))p(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const _ of d.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&p(_)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function p(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();const ia="modulepreload",oa=function(i){return"/"+i},Tn={},B=function(s,o,p){let c=Promise.resolve();if(o&&o.length>0){let S=function(x){return Promise.all(x.map(l=>Promise.resolve(l).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const _=document.querySelector("meta[property=csp-nonce]"),C=_?.nonce||_?.getAttribute("nonce");c=S(o.map(x=>{if(x=oa(x),x in Tn)return;Tn[x]=!0;const l=x.endsWith(".css"),b=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${b}`))return;const M=document.createElement("link");if(M.rel=l?"stylesheet":ia,l||(M.as="script"),M.crossOrigin="",M.href=x,C&&M.setAttribute("nonce",C),document.head.appendChild(M),l)return new Promise((E,j)=>{M.addEventListener("load",E),M.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${x}`)))})}))}function d(_){const C=new Event("vite:preloadError",{cancelable:!0});if(C.payload=_,window.dispatchEvent(C),!C.defaultPrevented)throw _}return c.then(_=>{for(const C of _||[])C.status==="rejected"&&d(C.reason);return s().catch(d)})},ra="_dropdownContainer_1six7_3",la="_dropdownMenu_1six7_15",ca="_dropdownContent_1six7_43",on={dropdownContainer:ra,dropdownMenu:la,dropdownContent:ca},da=[{to:"/upload",label:"Upload",Icon:Fn},{to:"/explore",label:"Explore",Icon:Ht},{to:"/analytics",label:"Analytics",Icon:Vt}];function ua(){const i=ta(),s=un(),[o,p]=a.useState(!1),c=a.useRef(null);return a.useEffect(()=>{const d=_=>{c.current&&!c.current.contains(_.target)&&p(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),e.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:e.jsxs(ln,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[e.jsxs("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(i.pathname==="/upload"||i.pathname==="/")){if(i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/")}},children:[e.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:e.jsx(Wt,{className:"h-8 w-8 flex-shrink-0 text-ifrcRed"})}),e.jsx("div",{className:"flex flex-col",children:e.jsx("span",{className:"font-bold text-xl text-gray-900 leading-tight",children:"PromptAid Vision"})})]}),e.jsx("div",{className:"flex justify-center",children:e.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:da.map(({to:d,label:_,Icon:C})=>{const S=i.pathname===d||d==="/upload"&&i.pathname==="/"||d==="/explore"&&i.pathname.startsWith("/map/"),x=i.pathname==="/upload"||i.pathname==="/",l=d==="/upload"||d==="/";return e.jsxs("div",{className:"relative",children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:_.toLowerCase(),variant:S?"primary":"tertiary",size:1,className:`transition-all duration-200 ${S?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(x&&l)){if(i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(d);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s(d)}},children:[e.jsx(C,{className:`w-4 h-4 transition-transform duration-200 ${S?"scale-110":"group-hover:scale-110"}`}),e.jsx("span",{className:"inline ml-2 font-semibold",children:_})]})}),S&&e.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},d)})})}),e.jsx("div",{className:"flex justify-end",children:e.jsxs("div",{className:on.dropdownContainer,ref:c,children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsx(w,{name:"more-options",variant:o?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>p(!o),children:e.jsx(Gt,{className:"w-4 h-4"})})}),o&&e.jsx("div",{className:on.dropdownMenu,children:e.jsxs("div",{className:on.dropdownContent,children:[e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(p(!1),i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/help")},children:[e.jsx(qt,{className:"w-4 h-4"}),e.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),e.jsx(U,{withInternalPadding:!0,className:"p-2",children:e.jsxs(w,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(p(!1),i.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}s("/admin")},children:[e.jsx(Yt,{className:"w-4 h-4"}),e.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function ga(){return e.jsxs(e.Fragment,{children:[e.jsx(ua,{}),e.jsx(aa,{})]})}const pa="_uploadContainer_1w5i1_1",ma="_dropZone_1w5i1_9",ha="_hasFile_1w5i1_30",fa="_dropZoneIcon_1w5i1_37",xa="_dropZoneText_1w5i1_43",va="_dropZoneSubtext_1w5i1_49",_a="_filePreview_1w5i1_55",ja="_filePreviewImage_1w5i1_64",wa="_fileName_1w5i1_110",Ca="_fileInfo_1w5i1_118",ya="_helpLink_1w5i1_125",Sa="_loadingContainer_1w5i1_145",ba="_loadingText_1w5i1_153",Na="_generateButtonContainer_1w5i1_157",ka="_uploadedMapContainer_1w5i1_165",Ia="_uploadedMapImage_1w5i1_169",Ma="_formGrid_1w5i1_209",La="_titleField_1w5i1_222",Ta="_ratingDescription_1w5i1_230",Da="_ratingSlider_1w5i1_235",Ea="_ratingLabel_1w5i1_242",Pa="_ratingInput_1w5i1_251",Fa="_ratingValue_1w5i1_256",Ra="_submitSection_1w5i1_266",Aa="_successContainer_1w5i1_275",za="_successHeading_1w5i1_280",Oa="_successText_1w5i1_285",$a="_successButton_1w5i1_291",Ba="_viewFullSizeButton_1w5i1_297",Ua="_fullSizeModalOverlay_1w5i1_306",Wa="_lightModalOverlay_1w5i1_320",Ha="_fullSizeModalContent_1w5i1_334",Va="_fullSizeModalHeader_1w5i1_345",Ga="_fullSizeModalImage_1w5i1_361",qa="_confirmSection_1w5i1_398",Ya="_step2Layout_1w5i1_407",Za="_topRow_1w5i1_413",Ka="_ratingHidden_1w5i1_421",Ja="_imageSection_1w5i1_425",Qa="_ratingContent_1w5i1_435",Xa="_mapColumn_1w5i1_453",es="_contentColumn_1w5i1_458",ns="_step2bLayout_1w5i1_465",ts="_metadataSectionCard_1w5i1_562",as="_droneMetadataSection_1w5i1_571",ss="_droneMetadataHeading_1w5i1_577",is="_droneMetadataGrid_1w5i1_585",os="_rtkFixContainer_1w5i1_591",rs="_rtkFixLabel_1w5i1_597",ls="_rtkFixCheckbox_1w5i1_606",cs="_confirmButtonContainer_1w5i1_621",ds="_ratingWarningContent_1w5i1_629",us="_ratingWarningTitle_1w5i1_637",gs="_ratingWarningText_1w5i1_644",ps="_ratingWarningButtons_1w5i1_651",ms="_preprocessingProgress_1w5i1_658",hs="_carouselContainer_1w5i1_711",fs="_carouselImageWrapper_1w5i1_716",xs="_carouselImage_1w5i1_716",vs="_carouselNavigation_1w5i1_739",_s="_carouselButton_1w5i1_751",js="_carouselIndicators_1w5i1_775",ws="_carouselIndicator_1w5i1_775",Cs="_carouselIndicatorActive_1w5i1_804",ys="_viewImageButtonContainer_1w5i1_840",t={uploadContainer:pa,dropZone:ma,hasFile:ha,dropZoneIcon:fa,dropZoneText:xa,dropZoneSubtext:va,filePreview:_a,filePreviewImage:ja,fileName:wa,fileInfo:Ca,helpLink:ya,loadingContainer:Sa,loadingText:ba,generateButtonContainer:Na,uploadedMapContainer:ka,uploadedMapImage:Ia,formGrid:Ma,titleField:La,ratingDescription:Ta,ratingSlider:Da,ratingLabel:Ea,ratingInput:Pa,ratingValue:Fa,submitSection:Ra,successContainer:Aa,successHeading:za,successText:Oa,successButton:$a,viewFullSizeButton:Ba,fullSizeModalOverlay:Ua,lightModalOverlay:Wa,fullSizeModalContent:Ha,fullSizeModalHeader:Va,fullSizeModalImage:Ga,confirmSection:qa,step2Layout:Ya,topRow:Za,ratingHidden:Ka,imageSection:Ja,ratingContent:Qa,mapColumn:Xa,contentColumn:es,step2bLayout:ns,metadataSectionCard:ts,droneMetadataSection:as,droneMetadataHeading:ss,droneMetadataGrid:is,rtkFixContainer:os,rtkFixLabel:rs,rtkFixCheckbox:ls,confirmButtonContainer:cs,ratingWarningContent:ds,ratingWarningTitle:us,ratingWarningText:gs,ratingWarningButtons:ps,preprocessingProgress:ms,carouselContainer:hs,carouselImageWrapper:fs,carouselImage:xs,carouselNavigation:vs,carouselButton:_s,carouselIndicators:js,carouselIndicator:ws,carouselIndicatorActive:Cs,viewImageButtonContainer:ys},Rn=a.createContext(void 0),Ss=({children:i})=>{const[s,o]=a.useState(""),[p,c]=a.useState(""),[d,_]=a.useState(""),[C,S]=a.useState(""),[x,l]=a.useState(""),[b,M]=a.useState(""),[E,j]=a.useState(""),[F,A]=a.useState(!1),L={search:s,srcFilter:p,catFilter:d,regionFilter:C,countryFilter:x,imageTypeFilter:b,uploadTypeFilter:E,showReferenceExamples:F,setSearch:o,setSrcFilter:c,setCatFilter:_,setRegionFilter:S,setCountryFilter:l,setImageTypeFilter:M,setUploadTypeFilter:j,setShowReferenceExamples:A,clearAllFilters:()=>{o(""),c(""),_(""),S(""),l(""),M(""),j(""),A(!1)}};return e.jsx(Rn.Provider,{value:L,children:i})},bs=()=>{const i=a.useContext(Rn);if(i===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return i};function Dn({files:i,file:s,preview:o,imageType:p,onFileChange:c,onRemoveImage:d,onAddImage:_,onImageTypeChange:C,onChangeFile:S}){const x=l=>{l.preventDefault();const b=l.dataTransfer.files?.[0];b&&c(b)};return e.jsxs("div",{className:"space-y-6",children:[e.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),e.jsx("div",{className:t.helpLink,children:e.jsxs(zt,{to:"/help",className:t.helpLink,children:["More ",e.jsx(Zt,{className:"w-3 h-3"})]})}),e.jsx("div",{className:"flex justify-center",children:e.jsx(U,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:e.jsx(Kt,{name:"image-type",value:p,onChange:l=>C(l),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:l=>l.key,labelSelector:l=>l.label})})}),e.jsxs("div",{className:`${t.dropZone} ${s?t.hasFile:""}`,onDragOver:l=>l.preventDefault(),onDrop:x,children:[i.length>1?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:i.map((l,b)=>e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:URL.createObjectURL(l),alt:`Image ${b+1}`,className:"w-full h-32 object-cover rounded"}),e.jsx(cn,{name:"remove-image",variant:"tertiary",onClick:()=>d(b),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:e.jsx(dn,{className:"w-4 h-4"})}),e.jsx("div",{className:"text-xs text-center mt-1",children:l.name})]},b))}):s&&o?e.jsxs("div",{className:t.filePreview,children:[e.jsx("div",{className:t.filePreviewImage,children:e.jsx("img",{src:o,alt:"File preview"})}),e.jsx("p",{className:t.fileName,children:s.name}),e.jsxs("p",{className:t.fileInfo,children:[(s.size/1024/1024).toFixed(2)," MB"]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Fn,{className:t.dropZoneIcon}),e.jsx("p",{className:t.dropZoneText,children:"Drag & Drop any file here"}),e.jsx("p",{className:t.dropZoneSubtext,children:"or"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("label",{className:"inline-block cursor-pointer",children:[e.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:l=>{s&&S?S(l.target.files?.[0]):c(l.target.files?.[0])}}),e.jsx(w,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:s?"Change Image":"Browse Files"})]}),s&&i.length<5&&e.jsx(w,{name:"add-image",variant:"secondary",size:1,onClick:_,children:"Add Image"})]})]})]})}function En({files:i,imageUrl:s,preview:o,onViewFullSize:p,currentImageIndex:c=0,onGoToPrevious:d,onGoToNext:_,onGoToImage:C,showCarousel:S=!1}){return S&&i.length>1?e.jsx(U,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.carouselContainer,children:[e.jsx("div",{className:t.carouselImageWrapper,children:i[c]?e.jsx("img",{src:URL.createObjectURL(i[c]),alt:`Image ${c+1}`,className:t.carouselImage}):e.jsx("div",{className:t.imagePlaceholder,children:"No image available"})}),e.jsxs("div",{className:t.carouselNavigation,children:[e.jsx(w,{name:"previous-image",variant:"tertiary",size:1,onClick:d,className:t.carouselButton,children:e.jsx(Jt,{className:"w-4 h-4"})}),e.jsx("div",{className:t.carouselIndicators,children:i.map((x,l)=>e.jsx("button",{onClick:()=>C?.(l),className:`${t.carouselIndicator} ${l===c?t.carouselIndicatorActive:""}`,children:l+1},l))}),e.jsx(w,{name:"next-image",variant:"tertiary",size:1,onClick:_,className:t.carouselButton,children:e.jsx(Qt,{className:"w-4 h-4"})})]}),e.jsx("div",{className:t.viewImageButtonContainer,children:e.jsx(w,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>p({file:i[c],index:c}),disabled:!i[c],children:"View Image"})})]})}):i.length>1?e.jsx("div",{className:"space-y-6",children:i.map((x,l)=>e.jsx(U,{heading:`Image ${l+1}: ${x.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.uploadedMapContainer,children:[e.jsx("div",{className:t.uploadedMapImage,children:e.jsx("img",{src:URL.createObjectURL(x),alt:`Image ${l+1}`})}),e.jsx("div",{className:t.viewFullSizeButton,children:e.jsx(w,{name:`view-full-size-${l}`,variant:"secondary",size:1,onClick:()=>p({file:x,index:l}),children:"View Image"})})]})},l))}):e.jsx(U,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.uploadedMapContainer,children:[e.jsx("div",{className:t.uploadedMapImage,children:e.jsx("img",{src:s||o||void 0,alt:"Uploaded image preview"})}),e.jsx("div",{className:t.viewFullSizeButton,children:e.jsx(w,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>p(),children:"View Image"})})]})})}function Ns({files:i,imageType:s,title:o,source:p,eventType:c,epsg:d,countries:_,centerLon:C,centerLat:S,amslM:x,aglM:l,headingDeg:b,yawDeg:M,pitchDeg:E,rollDeg:j,rtkFix:F,stdHM:A,stdVM:z,metadataArray:L,sources:G,types:q,spatialReferences:Y,imageTypes:R,countriesOptions:Q,onTitleChange:Z,onSourceChange:ae,onEventTypeChange:K,onEpsgChange:se,onCountriesChange:ie,onCenterLonChange:oe,onCenterLatChange:re,onAmslMChange:le,onAglMChange:ce,onHeadingDegChange:de,onYawDegChange:ue,onPitchDegChange:ge,onRollDegChange:pe,onRtkFixChange:me,onStdHMChange:he,onStdVMChange:fe,onImageTypeChange:xe,updateMetadataForImage:P}){return i.length>1?e.jsxs("div",{children:[e.jsx("div",{className:"mb-4",children:e.jsx(D,{label:"Shared Title",name:"title",value:o,onChange:Z,placeholder:"Enter a title for all images...",required:!0})}),i.map((N,m)=>e.jsx("div",{className:"mb-6",children:e.jsx(U,{heading:`Image ${m+1}: ${N.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.formGrid,children:[s!=="drone_image"&&e.jsx(J,{label:"Source",name:`source_${m}`,value:L[m]?.source||"",onChange:h=>P(m,"source",h),options:G,keySelector:h=>h.s_code,labelSelector:h=>h.label,required:!0}),e.jsx(J,{label:"Event Type",name:`event_type_${m}`,value:L[m]?.eventType||"",onChange:h=>P(m,"eventType",h),options:q,keySelector:h=>h.t_code,labelSelector:h=>h.label,required:s!=="drone_image"}),e.jsx(J,{label:"EPSG",name:`epsg_${m}`,value:L[m]?.epsg||"",onChange:h=>P(m,"epsg",h),options:Y,keySelector:h=>h.epsg,labelSelector:h=>`${h.srid} (EPSG:${h.epsg})`,placeholder:"EPSG",required:s!=="drone_image"}),e.jsx(Ln,{label:"Countries (optional)",name:`countries_${m}`,value:L[m]?.countries||[],onChange:h=>P(m,"countries",h),options:Q,keySelector:h=>h.c_code,labelSelector:h=>h.label,placeholder:"Select one or more"}),s==="drone_image"&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:t.droneMetadataSection,children:[e.jsx("h4",{className:t.droneMetadataHeading,children:"Drone Flight Data"}),e.jsxs("div",{className:t.droneMetadataGrid,children:[e.jsx(D,{label:"Center Longitude",name:`center_lon_${m}`,value:L[m]?.centerLon||"",onChange:h=>P(m,"centerLon",h),placeholder:"e.g., -122.4194",step:"any"}),e.jsx(D,{label:"Center Latitude",name:`center_lat_${m}`,value:L[m]?.centerLat||"",onChange:h=>P(m,"centerLat",h),placeholder:"e.g., 37.7749",step:"any"}),e.jsx(D,{label:"Altitude AMSL (m)",name:`amsl_m_${m}`,value:L[m]?.amslM||"",onChange:h=>P(m,"amslM",h),placeholder:"e.g., 100.5",step:"any"}),e.jsx(D,{label:"Altitude AGL (m)",name:`agl_m_${m}`,value:L[m]?.aglM||"",onChange:h=>P(m,"aglM",h),placeholder:"e.g., 50.2",step:"any"}),e.jsx(D,{label:"Heading (degrees)",name:`heading_deg_${m}`,value:L[m]?.headingDeg||"",onChange:h=>P(m,"headingDeg",h),placeholder:"e.g., 180.0",step:"any"}),e.jsx(D,{label:"Yaw (degrees)",name:`yaw_deg_${m}`,value:L[m]?.yawDeg||"",onChange:h=>P(m,"yawDeg",h),placeholder:"e.g., 90.0",step:"any"}),e.jsx(D,{label:"Pitch (degrees)",name:`pitch_deg_${m}`,value:L[m]?.pitchDeg||"",onChange:h=>P(m,"pitchDeg",h),placeholder:"e.g., 0.0",step:"any"}),e.jsx(D,{label:"Roll (degrees)",name:`roll_deg_${m}`,value:L[m]?.rollDeg||"",onChange:h=>P(m,"rollDeg",h),placeholder:"e.g., 0.0",step:"any"}),e.jsx("div",{className:t.rtkFixContainer,children:e.jsxs("label",{className:t.rtkFixLabel,children:[e.jsx("input",{type:"checkbox",checked:L[m]?.rtkFix||!1,onChange:h=>P(m,"rtkFix",h.target.checked),className:t.rtkFixCheckbox}),"RTK Fix Available"]})}),e.jsx(D,{label:"Horizontal Std Dev (m)",name:`std_h_m_${m}`,value:L[m]?.stdHM||"",onChange:h=>P(m,"stdHM",h),placeholder:"e.g., 0.1",step:"any"}),e.jsx(D,{label:"Vertical Std Dev (m)",name:`std_v_m_${m}`,value:L[m]?.stdVM||"",onChange:h=>P(m,"stdVM",h),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},m))]}):e.jsxs("div",{className:t.formGrid,children:[e.jsx("div",{className:t.titleField,children:e.jsx(D,{label:"Title",name:"title",value:o,onChange:Z,placeholder:"Enter a title for this map...",required:!0})}),s!=="drone_image"&&e.jsx(J,{label:"Source",name:"source",value:p,onChange:ae,options:G,keySelector:N=>N.s_code,labelSelector:N=>N.label,required:!0}),e.jsx(J,{label:"Event Type",name:"event_type",value:c,onChange:K,options:q,keySelector:N=>N.t_code,labelSelector:N=>N.label,required:s!=="drone_image"}),e.jsx(J,{label:"EPSG",name:"epsg",value:d,onChange:se,options:Y,keySelector:N=>N.epsg,labelSelector:N=>`${N.srid} (EPSG:${N.epsg})`,placeholder:"EPSG",required:s!=="drone_image"}),e.jsx(J,{label:"Image Type",name:"image_type",value:s,onChange:xe,options:R,keySelector:N=>N.image_type,labelSelector:N=>N.label,required:!0}),e.jsx(Ln,{label:"Countries (optional)",name:"countries",value:_,onChange:ie,options:Q,keySelector:N=>N.c_code,labelSelector:N=>N.label,placeholder:"Select one or more"}),s==="drone_image"&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:t.droneMetadataSection,children:[e.jsx("h4",{className:t.droneMetadataHeading,children:"Drone Flight Data"}),e.jsxs("div",{className:t.droneMetadataGrid,children:[e.jsx(D,{label:"Center Longitude",name:"center_lon",value:C,onChange:oe,placeholder:"e.g., -122.4194",step:"any"}),e.jsx(D,{label:"Center Latitude",name:"center_lat",value:S,onChange:re,placeholder:"e.g., 37.7749",step:"any"}),e.jsx(D,{label:"Altitude AMSL (m)",name:"amsl_m",value:x,onChange:le,placeholder:"e.g., 100.5",step:"any"}),e.jsx(D,{label:"Altitude AGL (m)",name:"agl_m",value:l,onChange:ce,placeholder:"e.g., 50.2",step:"any"}),e.jsx(D,{label:"Heading (degrees)",name:"heading_deg",value:b,onChange:de,placeholder:"e.g., 180.0",step:"any"}),e.jsx(D,{label:"Yaw (degrees)",name:"yaw_deg",value:M,onChange:ue,placeholder:"e.g., 90.0",step:"any"}),e.jsx(D,{label:"Pitch (degrees)",name:"pitch_deg",value:E,onChange:ge,placeholder:"e.g., 0.0",step:"any"}),e.jsx(D,{label:"Roll (degrees)",name:"roll_deg",value:j,onChange:pe,placeholder:"e.g., 0.0",step:"any"}),e.jsx("div",{className:t.rtkFixContainer,children:e.jsxs("label",{className:t.rtkFixLabel,children:[e.jsx("input",{type:"checkbox",checked:F,onChange:N=>me(N.target.checked),className:t.rtkFixCheckbox}),"RTK Fix Available"]})}),e.jsx(D,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:A,onChange:he,placeholder:"e.g., 0.1",step:"any"}),e.jsx(D,{label:"Vertical Std Dev (m)",name:"std_v_m",value:z,onChange:fe,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function ks({isPerformanceConfirmed:i,scores:s,onScoreChange:o,onConfirmRatings:p,onEditRatings:c}){return i?null:e.jsx(U,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsxs("div",{className:t.ratingContent,children:[e.jsx("p",{className:t.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(d=>e.jsxs("div",{className:t.ratingSlider,children:[e.jsx("label",{className:t.ratingLabel,children:d}),e.jsx("input",{type:"range",min:0,max:100,value:s[d],onChange:_=>o(d,Number(_.target.value)),className:t.ratingInput}),e.jsx("span",{className:t.ratingValue,children:s[d]})]},d)),e.jsx("div",{className:t.confirmButtonContainer,children:e.jsx(w,{name:"confirm-ratings",variant:"secondary",onClick:p,children:"Confirm Ratings"})})]})})}function Is({description:i,analysis:s,recommendedActions:o,onDescriptionChange:p,onAnalysisChange:c,onRecommendedActionsChange:d,onBack:_,onDelete:C,onSubmit:S,onEditRatings:x,isPerformanceConfirmed:l=!1}){const b=M=>{if(M){const E=M.split(` -`),j=E.findIndex(z=>z.startsWith("Description:")),F=E.findIndex(z=>z.startsWith("Analysis:")),A=E.findIndex(z=>z.startsWith("Recommended Actions:"));j!==-1&&F!==-1&&A!==-1&&(p(E.slice(j+1,F).join(` -`).trim()),c(E.slice(F+1,A).join(` -`).trim()),d(E.slice(A+1).join(` -`).trim()))}};return e.jsxs(U,{heading:"Generated Text",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsx("div",{className:"text-left space-y-4",children:e.jsx("div",{children:e.jsx(Xt,{name:"generatedContent",value:`Description: -${i||"AI-generated description will appear here..."} - -Analysis: -${s||"AI-generated analysis will appear here..."} - -Recommended Actions: -${o||"AI-generated recommended actions will appear here..."}`,onChange:b,rows:12,placeholder:"AI-generated content will appear here..."})})}),e.jsxs("div",{className:t.submitSection,children:[e.jsx(w,{name:"back",variant:"secondary",onClick:_,children:"Back"}),l&&x&&e.jsx(w,{name:"edit-ratings",variant:"secondary",onClick:x,children:"Edit Ratings"}),e.jsx(cn,{name:"delete",variant:"tertiary",onClick:C,title:"Delete",ariaLabel:"Delete uploaded image",children:e.jsx(dn,{})}),e.jsx(w,{name:"submit",onClick:S,children:"Submit"})]})]})}function Ms({isOpen:i,imageUrl:s,preview:o,selectedImageData:p,onClose:c}){if(!i)return null;let d,_;return p?(d=URL.createObjectURL(p.file),_=`Image ${p.index+1}: ${p.file.name}`):(d=s||o||void 0,_="Full size map"),e.jsx("div",{className:t.fullSizeModalOverlay,onClick:c,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:C=>C.stopPropagation(),children:[e.jsx("div",{className:t.fullSizeModalHeader,children:e.jsx(w,{name:"close-modal",variant:"tertiary",size:1,onClick:c,children:"✕"})}),e.jsx("div",{className:t.fullSizeModalImage,children:e.jsx("img",{src:d,alt:_})})]})})}function Ls({isOpen:i,onClose:s}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:s,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Please Confirm Your Ratings"}),e.jsx("p",{className:t.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-warning",variant:"secondary",onClick:s,children:"Close"})})]})})}):null}function Ts({isOpen:i,onConfirm:s,onCancel:o}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Delete Image?"}),e.jsx("p",{className:t.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-delete",variant:"secondary",onClick:s,children:"Delete"}),e.jsx(w,{name:"cancel-delete",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})}):null}function Ds({isOpen:i,onConfirm:s,onCancel:o}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Leave Page?"}),e.jsx("p",{className:t.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-navigation",variant:"secondary",onClick:s,children:"Leave Page"}),e.jsx(w,{name:"cancel-navigation",variant:"tertiary",onClick:o,children:"Stay"})]})]})})}):null}function Es({isOpen:i,fallbackInfo:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Model Changed"}),e.jsxs("p",{className:t.ratingWarningText,children:[s.originalModel," is currently unavailable. We've automatically switched to ",s.fallbackModel," to complete your request."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-fallback",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function Ps({isOpen:i,preprocessingInfo:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Converted"}),e.jsxs("p",{className:t.ratingWarningText,children:["Your file ",e.jsx("strong",{children:s.original_filename})," has been converted from",e.jsxs("strong",{children:[" ",s.original_mime_type]})," to",e.jsxs("strong",{children:[" ",s.processed_mime_type]})," for optimal processing.",e.jsx("br",{}),e.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-preprocessing",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function Fs({isOpen:i,preprocessingFile:s,isPreprocessing:o,preprocessingProgress:p,onConfirm:c,onCancel:d}){return i?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o?void 0:d,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:_=>_.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Conversion Required"}),e.jsx("p",{className:t.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!o&&e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"confirm-preprocessing",variant:"secondary",onClick:c,children:"Convert File"}),e.jsx(w,{name:"cancel-preprocessing",variant:"tertiary",onClick:d,children:"Cancel"})]}),o&&e.jsxs("div",{className:t.preprocessingProgress,children:[e.jsx("p",{children:p}),e.jsx(rn,{className:"text-ifrcRed"})]})]})})}):null}function Rs({isOpen:i,unsupportedFile:s,onClose:o}){return!i||!s?null:e.jsx("div",{className:t.fullSizeModalOverlay,onClick:o,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Unsupported File Format"}),e.jsxs("p",{className:t.ratingWarningText,children:["The file ",e.jsx("strong",{children:s.name})," is not supported for upload.",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Supported formats:"}),e.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",e.jsx("br",{}),"• Documents: PDF (will be converted to image)",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),e.jsx("div",{className:t.ratingWarningButtons,children:e.jsx(w,{name:"close-unsupported",variant:"secondary",onClick:o,children:"Got it"})})]})})})}function As({isOpen:i,oversizedFile:s,onClose:o,onCancel:p}){return!i||!s?null:e.jsx("div",{className:t.lightModalOverlay,onClick:p,children:e.jsx("div",{className:t.fullSizeModalContent,onClick:c=>c.stopPropagation(),children:e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"File Size Warning"}),e.jsxs("p",{className:t.ratingWarningText,children:["The file ",e.jsx("strong",{children:s.name})," is large (",(s.size/(1024*1024)).toFixed(1),"MB).",e.jsx("br",{}),e.jsx("br",{}),e.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",e.jsx("br",{}),e.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(w,{name:"continue-size-warning",variant:"secondary",onClick:o,children:"Continue"}),e.jsx(w,{name:"cancel-size-warning",variant:"tertiary",onClick:p,children:"Cancel"})]})]})})})}const Pe="selectedVlmModel";function Pn(){const[i]=Ot(),s=un(),[o,p]=a.useState(1),[c,d]=a.useState(!1),[_,C]=a.useState(!1),S=a.useRef(o),x=a.useRef(null),[l,b]=a.useState(null),[M,E]=a.useState(null),[j,F]=a.useState([]),[A,z]=a.useState(""),[L,G]=a.useState(""),[q,Y]=a.useState(""),[R,Q]=a.useState("crisis_map"),[Z,ae]=a.useState([]),[K,se]=a.useState(""),[ie,oe]=a.useState(""),[re,le]=a.useState(""),[ce,de]=a.useState(""),[ue,ge]=a.useState(""),[pe,me]=a.useState(""),[he,fe]=a.useState(""),[xe,P]=a.useState(""),[N,m]=a.useState(""),[h,Fe]=a.useState(!1),[Re,Ae]=a.useState(""),[ze,Oe]=a.useState(""),[$e,Se]=a.useState([]),[An,zn]=a.useState([]),[On,$n]=a.useState([]),[Bn,Un]=a.useState([]),[Wn,Hn]=a.useState([]),[Vn,Gn]=a.useState([]),[W,be]=a.useState(null),[Be,X]=a.useState([]),[Ne,gn]=a.useState(null),[qn,pn]=a.useState(""),[mn,Ue]=a.useState(""),[hn,We]=a.useState(""),[fn,He]=a.useState(""),[ke,xn]=a.useState({accuracy:50,context:50,usability:50}),[Yn,Ve]=a.useState(!1),[Zn,Ge]=a.useState(null),[ve,Ie]=a.useState(!1),[Kn,vn]=a.useState(!1),[Jn,qe]=a.useState(!1),[Qn,Me]=a.useState(!1),[Ye,Ze]=a.useState(null),[Xn,Ke]=a.useState(!1),[et,_n]=a.useState(null),[nt,Je]=a.useState(!1),[tt,jn]=a.useState(null),[at,ee]=a.useState(!1),[Qe,ne]=a.useState(null),[st,_e]=a.useState(!1),[it,H]=a.useState(""),[ot,Le]=a.useState(!1),[rt,Xe]=a.useState(null),[lt,je]=a.useState(!1),[ct,en]=a.useState(null),[dt,Te]=a.useState(0);S.current=o,x.current=W;const ut=n=>z(n||""),gt=n=>G(n||""),pt=n=>Y(n||""),nn=n=>Q(n||""),mt=n=>ae(Array.isArray(n)?n:[]),ht=n=>oe(n||""),ft=n=>le(n||""),xt=n=>de(n||""),vt=n=>ge(n||""),_t=n=>me(n||""),jt=n=>fe(n||""),wt=n=>P(n||""),Ct=n=>m(n||""),yt=n=>Fe(n||!1),St=n=>Ae(n||""),bt=n=>Oe(n||""),De=n=>p(n),Nt=a.useCallback(()=>{j.length>1&&Te(n=>n>0?n-1:j.length-1)},[j.length]),kt=a.useCallback(()=>{j.length>1&&Te(n=>n{n>=0&&n{if(j.length<5){const n=document.createElement("input");n.type="file",n.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",n.onchange=f=>{const u=f.target;if(u.files&&u.files[0]){const g=u.files[0];tn(g)}},n.click()}},Cn=n=>{F(f=>{const u=f.filter((g,r)=>r!==n);return u.length===1?E(u[0]):u.length===0&&E(null),u}),Se(f=>f.filter((u,g)=>g!==n))},Mt=(n,f,u)=>{Se(g=>{const r=[...g];return r[n]||(r[n]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),r[n]={...r[n],[f]:u},r})},yn=n=>{const f=["image/jpeg","image/jpg","image/png"],u=[".jpg",".jpeg",".png"];let g=!f.includes(n.type);if(!g&&n.name){const r=n.name.toLowerCase().substring(n.name.lastIndexOf("."));g=!u.includes(r)}return g},Sn=n=>{const f=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const u of f)if(n.type.startsWith(u))return!0;if(n.name){const u=n.name.toLowerCase().substring(n.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(u))return!0}return!1},tn=n=>{if(n){if(console.log("File selected:",n.name,"Type:",n.type,"Size:",n.size),n.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),en(n),je(!0)),Sn(n)){console.log("File format not supported at all, showing unsupported format modal"),Xe(n),Le(!0);return}yn(n)?(console.log("File needs preprocessing, showing modal"),ne(n),ee(!0)):(console.log("File does not need preprocessing, setting directly"),j.length===0?(E(n),F([n])):F(u=>[...u,n]))}},bn=n=>{if(n){if(console.log("File changed:",n.name,"Type:",n.type,"Size:",n.size),n.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),en(n),je(!0)),Sn(n)){console.log("File format not supported at all, showing unsupported format modal"),Xe(n),Le(!0);return}yn(n)?(console.log("File needs preprocessing, showing modal"),ne(n),ee(!0)):(console.log("File does not need preprocessing, replacing last file"),j.length>1?(F(u=>{const g=[...u];return g[g.length-1]=n,g}),j.length===1&&E(n)):(E(n),F([n])))}};async function we(n){const f=await n.text();try{return f?JSON.parse(f):{}}catch{return{error:f}}}function an(n,f){const u=n instanceof Error?n.message:`Failed to ${f.toLowerCase()}`;alert(u)}async function Nn(){if(j.length!==0){d(!0);try{j.length===1?await Lt():await Tt()}catch(n){an(n,"Upload")}finally{d(!1)}}}async function Lt(){console.log("DEBUG: Starting single image upload");const n=new FormData;n.append("file",j[0]),n.append("title",K),n.append("image_type",R),A&&n.append("source",A),L&&n.append("event_type",L),q&&n.append("epsg",q),Z.length>0&&Z.forEach(r=>n.append("countries",r)),R==="drone_image"&&(ie&&n.append("center_lon",ie),re&&n.append("center_lat",re),ce&&n.append("amsl_m",ce),ue&&n.append("agl_m",ue),pe&&n.append("heading_deg",pe),he&&n.append("yaw_deg",he),xe&&n.append("pitch_deg",xe),N&&n.append("roll_deg",N),h&&n.append("rtk_fix",h.toString()),Re&&n.append("std_h_m",Re),ze&&n.append("std_v_m",ze));const f=localStorage.getItem(Pe);f&&n.append("model_name",f);const u=await fetch("/api/images/",{method:"POST",body:n}),g=await we(u);if(!u.ok)throw new Error(g.error||"Upload failed");console.log("DEBUG: Single upload response:",g),await kn(g,!1)}async function Tt(){console.log("DEBUG: Starting multi-image upload");const n=new FormData;j.forEach(r=>n.append("files",r)),n.append("title",K),n.append("image_type",R),$e.forEach((r,v)=>{r.source&&n.append(`source_${v}`,r.source),r.eventType&&n.append(`event_type_${v}`,r.eventType),r.epsg&&n.append(`epsg_${v}`,r.epsg),r.countries.length>0&&r.countries.forEach(T=>n.append(`countries_${v}`,T)),R==="drone_image"&&(r.centerLon&&n.append(`center_lon_${v}`,r.centerLon),r.centerLat&&n.append(`center_lat_${v}`,r.centerLat),r.amslM&&n.append(`amsl_m_${v}`,r.amslM),r.aglM&&n.append(`agl_m_${v}`,r.aglM),r.headingDeg&&n.append(`heading_deg_${v}`,r.headingDeg),r.yawDeg&&n.append(`yaw_deg_${v}`,r.yawDeg),r.pitchDeg&&n.append(`pitch_deg_${v}`,r.pitchDeg),r.rollDeg&&n.append(`roll_deg_${v}`,r.rollDeg),r.rtkFix&&n.append(`rtk_fix_${v}`,r.rtkFix.toString()),r.stdHM&&n.append(`std_h_m_${v}`,r.stdHM),r.stdVM&&n.append(`std_v_m_${v}`,r.stdVM))});const f=localStorage.getItem(Pe);f&&n.append("model_name",f);const u=await fetch("/api/images/multi",{method:"POST",body:n}),g=await we(u);if(!u.ok)throw new Error(g.error||"Upload failed");console.log("DEBUG: Multi upload response:",g),await kn(g,!0)}async function kn(n,f){gn(n.image_url),n.preprocessing_info&&typeof n.preprocessing_info=="object"&&"was_preprocessed"in n.preprocessing_info&&n.preprocessing_info.was_preprocessed===!0&&(jn(n.preprocessing_info),Je(!0));const u=n.image_id;if(!u)throw new Error("Upload failed: image_id not found");if(be(u),f)if(n.image_ids&&Array.isArray(n.image_ids)){const y=n.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",y),X(y)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),X([u]);else console.log("DEBUG: Storing single image ID:",u),X([u]);const g=n,r=g.raw_json?.fallback_info;r&&(_n({originalModel:r.original_model,fallbackModel:r.fallback_model,reason:r.reason}),Ke(!0));const v=g.raw_json?.metadata;if(v){const y=v.metadata||v;if(y&&typeof y=="object"){const O=[];if(f){const k=y.metadata_images;if(k&&typeof k=="object")for(let $=1;$<=j.length;$++){const Ce=`image${$}`,sn=k[Ce];if(sn&&typeof sn=="object"){const ye=sn;O.push({source:ye.source||"",eventType:ye.type||"",epsg:ye.epsg||"",countries:Array.isArray(ye.countries)?ye.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else O.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const $={source:y.source||"",eventType:y.type||"",epsg:y.epsg||"",countries:Array.isArray(y.countries)?y.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let Ce=0;Ce0){const k=O[0];if(y&&typeof y=="object"){const $=y.title;$&&se($||"")}z(k.source||""),G(k.eventType||""),Y(k.epsg||""),ae(k.countries||[]),R==="drone_image"&&(oe(k.centerLon||""),le(k.centerLat||""),de(k.amslM||""),ge(k.aglM||""),me(k.headingDeg||""),fe(k.yawDeg||""),P(k.pitchDeg||""),m(k.rollDeg||""),Fe(k.rtkFix||!1),Ae(k.stdHM||""),Oe(k.stdVM||""))}}}const T=g.raw_json?.metadata;T&&(T.description&&Ue(T.description),T.analysis&&We(T.analysis),T.recommended_actions&&He(T.recommended_actions)),g.generated&&pn(g.generated),De("2a")}async function Dt(){if(console.log("handleSubmit called with:",{uploadedImageId:W,title:K,draft:qn}),!W)return alert("No image to submit");if(!ve){vn(!0);return}try{const n=Be.length>0?Be:[W];console.log("DEBUG: Submit - Using image IDs:",n),console.log("DEBUG: Submit - uploadedImageIds:",Be),console.log("DEBUG: Submit - uploadedImageId:",W);for(let v=0;v{Ie(!1),p(1),E(null),F([]),b(null),be(null),X([]),gn(null),se(""),z(""),G(""),Y(""),ae([]),oe(""),le(""),de(""),ge(""),me(""),fe(""),P(""),m(""),Fe(!1),Ae(""),Oe(""),xn({accuracy:50,context:50,usability:50}),pn(""),Ue(""),We(""),He(""),Se([]),Ke(!1),_n(null),Je(!1),jn(null),ee(!1),ne(null),_e(!1),H(""),Le(!1),Xe(null),je(!1),en(null),s("/upload",{replace:!0})},Ee=a.useCallback(n=>{n==="/upload"||n==="/"||(x.current?(Ze(n),Me(!0)):s(n))},[s]);async function Pt(){if(Ye&&x.current)try{await fetch(`/api/images/${x.current}`,{method:"DELETE"}),Me(!1),Ze(null),s(Ye)}catch(n){console.error("Failed to delete image before navigation:",n),Me(!1),Ze(null),s(Ye)}}const Ft=async()=>{if(Qe){_e(!0),H("Starting file conversion...");try{const n=new FormData;n.append("file",Qe),n.append("preprocess_only","true"),H("Converting file format...");const f=await fetch("/api/images/preprocess",{method:"POST",body:n});if(!f.ok)throw new Error("Preprocessing failed");const u=await f.json();H("Finalizing conversion...");const g=atob(u.processed_content),r=new Uint8Array(g.length);for(let y=0;y[...y,v]),b(T),H("Conversion complete!"),setTimeout(()=>{ee(!1),ne(null),_e(!1),H("")},1e3)}catch(n){console.error("Preprocessing error:",n),H("Conversion failed. Please try again."),setTimeout(()=>{ee(!1),ne(null),_e(!1),H("")},2e3)}}},Rt=()=>{ee(!1),ne(null),_e(!1),H("")},At=async n=>{C(!0);try{const f=n.map(async v=>{const T=await fetch(`/api/images/${v}`);if(!T.ok)throw new Error(`Failed to fetch image ${v}`);const y=await T.json(),O=await fetch(`/api/images/${v}/file`);if(!O.ok)throw new Error(`Failed to fetch image file ${v}`);const k=await O.blob(),$=y.file_key.split("/").pop()||`contributed_${v}.png`;return{file:new File([k],$,{type:k.type}),imageData:y}}),u=await Promise.all(f),g=u.map(v=>v.file),r=u[0]?.imageData;F(g),X(n),n.length===1&&be(n[0]),g.length>=1&&E(g[0]),r?.image_type&&Q(r.image_type)}catch(f){console.error("Failed to fetch contributed images:",f),alert(`Failed to load contributed images: ${f instanceof Error?f.message:"Unknown error"}`)}finally{C(!1)}};return a.useEffect(()=>{Promise.all([fetch("/api/sources").then(n=>n.json()),fetch("/api/types").then(n=>n.json()),fetch("/api/spatial-references").then(n=>n.json()),fetch("/api/image-types").then(n=>n.json()),fetch("/api/countries").then(n=>n.json()),fetch("/api/models").then(n=>n.json())]).then(([n,f,u,g,r,v])=>{!localStorage.getItem(Pe)&&v?.length&&localStorage.setItem(Pe,v[0].m_code),zn(n),$n(f),Un(u),Hn(g),Gn(r),n.length>0&&z(n[0].s_code),G("OTHER"),Y("OTHER"),g.length>0&&!i.get("imageType")&&!R&&Q(g[0].image_type)})},[i,R]),a.useEffect(()=>(window.confirmNavigationIfNeeded=n=>{Ee(n)},()=>{delete window.confirmNavigationIfNeeded}),[Ee]),a.useEffect(()=>{const n=g=>{if(x.current){const r="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return g.preventDefault(),g.returnValue=r,r}},f=()=>{x.current&&fetch(`/api/images/${x.current}`,{method:"DELETE"}).catch(console.error)},u=g=>{const r=g.target,v=r.closest("a[href]")||r.closest("[data-navigate]");if(v&&x.current){const T=v.getAttribute("href")||v.getAttribute("data-navigate");T&&T!=="#"&&!T.startsWith("javascript:")&&!T.startsWith("mailto:")&&(g.preventDefault(),g.stopPropagation(),Ee(T))}};return window.addEventListener("beforeunload",n),document.addEventListener("click",u,!0),()=>{window.removeEventListener("beforeunload",n),document.removeEventListener("click",u,!0),f()}},[Ee]),a.useEffect(()=>{if(!M){b(null);return}const n=URL.createObjectURL(M);return b(n),()=>URL.revokeObjectURL(n)},[M]),a.useEffect(()=>{const n=i.get("contribute"),f=i.get("imageIds");if(n==="true"&&f){const u=f.split(",").filter(g=>g.trim());u.length>0&&At(u)}},[i]),a.useEffect(()=>{o==="2b"&&Te(0)},[o]),e.jsxs(ln,{children:[o!==3&&e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:t.uploadContainer,"data-step":o,children:[o===1&&!i.get("step")&&!_&&e.jsx(Dn,{files:j,file:M,preview:l,imageType:R,onFileChange:tn,onRemoveImage:Cn,onAddImage:wn,onImageTypeChange:nn,onChangeFile:bn}),o===1&&i.get("contribute")==="true"&&!_&&j.length>0&&e.jsx(Dn,{files:j,file:M,preview:l,imageType:R,onFileChange:tn,onRemoveImage:Cn,onAddImage:wn,onImageTypeChange:nn,onChangeFile:bn}),c&&e.jsxs("div",{className:t.loadingContainer,children:[e.jsx(rn,{className:"text-ifrcRed"}),e.jsx("p",{className:t.loadingText,children:"Generating..."})]}),_&&e.jsxs("div",{className:t.loadingContainer,children:[e.jsx(rn,{className:"text-ifrcRed"}),e.jsx("p",{className:t.loadingText,children:"Loading contribution..."})]}),(o===1&&!c&&!_||o===1&&i.get("contribute")==="true"&&!c&&!_&&j.length>0)&&e.jsx("div",{className:t.generateButtonContainer,children:Ne?e.jsx(w,{name:"generate-from-url",onClick:Nn,children:"Generate Caption"}):e.jsx(w,{name:"generate",disabled:j.length===0,onClick:Nn,children:"Generate"})}),o==="2a"&&e.jsxs("div",{className:t.step2Layout,children:[e.jsx("div",{className:t.mapColumn,children:e.jsx(En,{files:j,imageUrl:Ne,preview:l,onViewFullSize:n=>{Ge(n||null),Ve(!0)}})}),e.jsx("div",{className:t.contentColumn,children:e.jsxs("div",{className:t.metadataSectionCard,children:[e.jsx(Ns,{files:j,imageType:R,title:K,source:A,eventType:L,epsg:q,countries:Z,centerLon:ie,centerLat:re,amslM:ce,aglM:ue,headingDeg:pe,yawDeg:he,pitchDeg:xe,rollDeg:N,rtkFix:h,stdHM:Re,stdVM:ze,metadataArray:$e,sources:An,types:On,spatialReferences:Bn,imageTypes:Wn,countriesOptions:Vn,onTitleChange:n=>se(n||""),onSourceChange:ut,onEventTypeChange:gt,onEpsgChange:pt,onCountriesChange:mt,onCenterLonChange:ht,onCenterLatChange:ft,onAmslMChange:xt,onAglMChange:vt,onHeadingDegChange:_t,onYawDegChange:jt,onPitchDegChange:wt,onRollDegChange:Ct,onRtkFixChange:yt,onStdHMChange:St,onStdVMChange:bt,onImageTypeChange:nn,updateMetadataForImage:Mt}),e.jsxs("div",{className:t.confirmSection,children:[e.jsx(cn,{name:"delete",variant:"tertiary",onClick:In,title:"Delete",ariaLabel:"Delete uploaded image",children:e.jsx(dn,{})}),e.jsx(w,{name:"confirm-metadata",onClick:()=>De("2b"),children:"Next"})]})]})})]}),o==="2b"&&e.jsxs("div",{className:t.step2bLayout,children:[e.jsxs("div",{className:`${t.topRow} ${ve?t.ratingHidden:""}`,children:[e.jsx("div",{className:t.imageSection,children:e.jsx(En,{files:j,imageUrl:Ne,preview:l,onViewFullSize:n=>{Ge(n||null),Ve(!0)},currentImageIndex:dt,onGoToPrevious:Nt,onGoToNext:kt,onGoToImage:It,showCarousel:!0})}),!ve&&e.jsx("div",{className:t.metadataSectionCard,children:e.jsx(ks,{isPerformanceConfirmed:ve,scores:ke,onScoreChange:(n,f)=>xn(u=>({...u,[n]:f})),onConfirmRatings:()=>Ie(!0),onEditRatings:()=>Ie(!1)})})]}),e.jsx("div",{className:t.metadataSectionCard,children:e.jsx(Is,{description:mn,analysis:hn,recommendedActions:fn,onDescriptionChange:n=>Ue(n||""),onAnalysisChange:n=>We(n||""),onRecommendedActionsChange:n=>He(n||""),onBack:()=>De("2a"),onDelete:In,onSubmit:Dt,onEditRatings:()=>Ie(!1),isPerformanceConfirmed:ve})})]})]})}),o===3&&e.jsxs("div",{className:t.successContainer,children:[e.jsx(te,{level:2,className:t.successHeading,children:"Saved!"}),e.jsx("p",{className:t.successText,children:i.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),e.jsx("div",{className:t.successButton,children:e.jsx(w,{name:"upload-another",onClick:()=>{Mn()},children:"Upload Another"})})]}),e.jsx(Ms,{isOpen:Yn,imageUrl:Ne,preview:l,selectedImageData:Zn,onClose:()=>{Ve(!1),Ge(null)}}),e.jsx(Ls,{isOpen:Kn,onClose:()=>vn(!1)}),e.jsx(Ts,{isOpen:Jn,onConfirm:Et,onCancel:()=>qe(!1)}),e.jsx(Ds,{isOpen:Qn,onConfirm:Pt,onCancel:()=>Me(!1)}),e.jsx(Es,{isOpen:Xn,fallbackInfo:et,onClose:()=>Ke(!1)}),e.jsx(Ps,{isOpen:nt,preprocessingInfo:tt,onClose:()=>Je(!1)}),e.jsx(Fs,{isOpen:at,preprocessingFile:Qe,isPreprocessing:st,preprocessingProgress:it,onConfirm:Ft,onCancel:Rt}),e.jsx(Rs,{isOpen:ot,unsupportedFile:rt,onClose:()=>Le(!1)}),e.jsx(As,{isOpen:lt,oversizedFile:ct,onClose:()=>je(!1),onCancel:()=>je(!1)})]})}const zs="_helpContainer_1wavj_1",Os="_helpSection_1wavj_13",$s="_sectionHeader_1wavj_49",Bs="_sectionTitle_1wavj_91",Us="_sectionContent_1wavj_105",Ws="_guidelinesList_1wavj_119",Hs="_buttonContainer_1wavj_181",I={helpContainer:zs,helpSection:Os,sectionHeader:$s,sectionTitle:Bs,sectionContent:Us,guidelinesList:Ws,buttonContainer:Hs};function Vs(){const i=un(),{setShowReferenceExamples:s}=bs(),o=()=>{i("/upload")},p=()=>{s(!0),i("/explore")},c=()=>{i("/analytics?view=crisis_maps")};return e.jsx(ln,{className:"py-10",children:e.jsx("div",{className:I.helpContainer,children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Introduction"})}),e.jsx("div",{className:I.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"upload-now",variant:"secondary",onClick:o,children:"Upload now →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Guidelines"})}),e.jsxs("div",{className:I.sectionContent,children:["To make the process smoother, please follow the guidelines below:",e.jsxs("ul",{className:I.guidelinesList,children:[e.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),e.jsx("li",{children:"Confirm the image details prior to modifying the description."}),e.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),e.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"see-examples",variant:"secondary",onClick:p,children:"See examples →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"VLMs"})}),e.jsx("div",{className:I.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"view-vlm-details",variant:"secondary",onClick:c,children:"View VLM details →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Dataset"})}),e.jsx("div",{className:I.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"export-dataset",variant:"secondary",onClick:()=>{s(!1),i("/explore"),setTimeout(()=>{const d=document.querySelector('[name="export-dataset"]');d&&d.click()},100)},children:"Export dataset →"})})]}),e.jsxs("div",{className:I.helpSection,children:[e.jsx("div",{className:I.sectionHeader,children:e.jsx(te,{level:3,className:I.sectionTitle,children:"Contact us"})}),e.jsx("div",{className:I.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),e.jsx("div",{className:I.buttonContainer,children:e.jsx(w,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const Gs=a.createContext(void 0),qs=({children:i})=>{const[s,o]=a.useState(!1),[p,c]=a.useState(!0),d=async()=>{const x=localStorage.getItem("adminToken");if(!x){o(!1),c(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`}})).ok?o(!0):(localStorage.removeItem("adminToken"),o(!1))}catch(l){console.error("Error verifying admin token:",l),localStorage.removeItem("adminToken"),o(!1)}finally{c(!1)}},_=async x=>{try{const l=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:x})});if(l.ok){const b=await l.json();return localStorage.setItem("adminToken",b.access_token),o(!0),!0}else return!1}catch(l){return console.error("Login error:",l),!1}},C=()=>{localStorage.removeItem("adminToken"),o(!1)};a.useEffect(()=>{d()},[]);const S={isAuthenticated:s,isLoading:p,login:_,logout:C,verifyToken:d};return e.jsx(Gs.Provider,{value:S,children:i})},Ys=a.lazy(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),Zs=a.lazy(()=>B(()=>import("./index-CwG_dxMe.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),Ks=a.lazy(()=>B(()=>import("./AdminPage-Dz89QBtX.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),Js=a.lazy(()=>B(()=>import("./index-jo0G9peP.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])));class Qs extends a.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(s,o){console.error("Error caught by boundary:",s,o)}render(){return this.state.hasError?e.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[e.jsx("h2",{children:"Something went wrong"}),e.jsx("p",{children:"Please refresh the page to try again."}),e.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const V=i=>{const s=i();return s.catch(()=>{}),s},Xs=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{V(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),V(()=>B(()=>import("./index-CwG_dxMe.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),V(()=>B(()=>import("./AdminPage-Dz89QBtX.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),V(()=>B(()=>import("./index-jo0G9peP.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])))}):setTimeout(()=>{V(()=>B(()=>import("./index-DMU6q_dg.js"),__vite__mapDeps([0,1,2,3,4,5]))),V(()=>B(()=>import("./index-CwG_dxMe.js"),__vite__mapDeps([6,1,2,3,4,7,8,9,10]))),V(()=>B(()=>import("./AdminPage-Dz89QBtX.js"),__vite__mapDeps([11,1,2,7,3,4,12]))),V(()=>B(()=>import("./index-jo0G9peP.js"),__vite__mapDeps([13,1,2,3,4,7,8,9,14])))},1e3)},ei=$t([{element:e.jsx(ga,{}),children:[{path:"/",element:e.jsx(Pn,{})},{path:"/upload",element:e.jsx(Pn,{})},{path:"/analytics",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Analytics..."}),children:e.jsx(Ys,{})})},{path:"/explore",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Explore..."}),children:e.jsx(Zs,{})})},{path:"/help",element:e.jsx(Vs,{})},{path:"/admin",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Admin..."}),children:e.jsx(Ks,{})})},{path:"/map/:mapId",element:e.jsx(a.Suspense,{fallback:e.jsx("div",{children:"Loading Map Details..."}),children:e.jsx(Js,{})})}]}],{basename:"/"});function ni(){const[i,s]=a.useState([]);a.useEffect(()=>{Xs()},[]);const o=a.useCallback(C=>{s(S=>sa([...S,C],x=>x.name)??S)},[s]),p=a.useCallback(C=>{s(S=>{const x=S.findIndex(b=>b.name===C);if(x===-1)return S;const l=[...S];return l.splice(x,1),l})},[s]),c=a.useCallback((C,S)=>{s(x=>{const l=x.findIndex(M=>M.name===C);if(l===-1)return x;const b=[...x];return b[l]={...b[l],...S},b})},[s]),d=a.useMemo(()=>({alerts:i,addAlert:o,removeAlert:p,updateAlert:c}),[i,o,p,c]),_=a.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return e.jsx(Qs,{children:e.jsx(ea.Provider,{value:d,children:e.jsx(na.Provider,{value:_,children:e.jsx(qs,{children:e.jsx(Ss,{children:e.jsx(Bt,{router:ei})})})})})})}function ti(){return e.jsx(ni,{})}Ut.createRoot(document.getElementById("root")).render(e.jsx(a.StrictMode,{children:e.jsx(ti,{})}));export{Gs as A,Ms as F,B as _,bs as u}; diff --git a/py_backend/static/assets/index-iAxVbTZE.js b/py_backend/static/assets/index-iAxVbTZE.js deleted file mode 100644 index 43c55c09af052dfe45ac259b2089642501ea716a..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-iAxVbTZE.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-utils-Db80MiSc.js","assets/vendor-DxpCibxB.js","assets/vendor-react-BxsGb6Ph.js"])))=>i.map(i=>d[i]); -import{u as Xe,F as Ye,_ as ea}from"./index-DyXqjI96.js";import{j as a,r as g}from"./vendor-react-BxsGb6Ph.js";import{N as X,n as T,_ as ve,L as aa,z as E,C as se,c as ie,D as ta}from"./vendor-ui-l_DttnRj.js";import{u as sa}from"./useAdmin-BStaIYmd.js";import{F as ia,E as na}from"./ExportModal-DxEvAVvI.js";import{n as oa,a as ra}from"./vendor-DxpCibxB.js";const la="_tabSelector_usssr_1",ca="_imageContainer_usssr_12",da="_imagePlaceholder_usssr_33",ga="_metadataTags_usssr_45",ma="_metadataTag_usssr_45",ua="_captionContainer_usssr_67",pa="_captionText_usssr_74",fa="_gridLayout_usssr_131",ha="_detailsSection_usssr_155",_a="_loadingContainer_usssr_161",xa="_errorContainer_usssr_171",ya="_fullSizeModalOverlay_usssr_205",va="_fullSizeModalContent_usssr_219",wa="_ratingWarningContent_usssr_230",Ca="_ratingWarningTitle_usssr_236",ja="_ratingWarningText_usssr_243",Ia="_ratingWarningButtons_usssr_250",Na="_carouselContainer_usssr_365",ba="_carouselImageWrapper_usssr_370",Sa="_carouselImage_usssr_370",La="_carouselNavigation_usssr_393",Da="_carouselButton_usssr_405",ka="_carouselIndicators_usssr_429",Ma="_carouselIndicator_usssr_429",Ta="_carouselIndicatorActive_usssr_458",Fa="_singleImageContainer_usssr_488",Ea="_viewImageButtonContainer_usssr_494",p={tabSelector:la,imageContainer:ca,imagePlaceholder:da,metadataTags:ga,metadataTag:ma,captionContainer:ua,captionText:pa,gridLayout:fa,detailsSection:ha,loadingContainer:_a,errorContainer:xa,fullSizeModalOverlay:ya,fullSizeModalContent:va,ratingWarningContent:wa,ratingWarningTitle:Ca,ratingWarningText:ja,ratingWarningButtons:Ia,carouselContainer:Na,carouselImageWrapper:ba,carouselImage:Sa,carouselNavigation:La,carouselButton:Da,carouselIndicators:ka,carouselIndicator:Ma,carouselIndicatorActive:Ta,singleImageContainer:Fa,viewImageButtonContainer:Ea};function it(){const{mapId:u}=oa(),y=ra(),{isAuthenticated:ne}=sa();console.log("MapDetailsPage: Current URL:",window.location.href),console.log("MapDetailsPage: Hash:",window.location.hash),console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId length:",u?.length),console.log("MapDetailsPage: mapId value:",JSON.stringify(u));const we=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;if(!u||u==="undefined"||u==="null"||u.trim()===""||!we.test(u))return a.jsx(X,{children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center py-12",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Invalid Map ID"}),a.jsx("div",{children:"The map ID provided is not valid."}),a.jsxs("div",{className:"text-sm text-gray-500 mt-2",children:['Debug Info: mapId = "',u,'" (type: ',typeof u,")"]}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})});const[oe,Ce]=g.useState("mapDetails"),[e,Y]=g.useState(null),[W,P]=g.useState(!0),[re,O]=g.useState(null),[le,je]=g.useState([]),[ce,Ie]=g.useState([]),[de,Ne]=g.useState([]),[ge,be]=g.useState([]),[Se,Le]=g.useState([]),[De,ke]=g.useState(!1),[Me,Te]=g.useState(!1),[B,q]=g.useState(!1),[Fe,G]=g.useState(!1),[me,Z]=g.useState(!1),[Ee,ee]=g.useState(!1),[Re,ae]=g.useState(!1),[Ra,$a]=g.useState("standard"),[R,Pa]=g.useState(80),[J,Aa]=g.useState(10),[za,Oa]=g.useState(10),[Ua,Wa]=g.useState(!0),[Ba,Ja]=g.useState(!0),[K,Q]=g.useState(!1),[$e,ue]=g.useState(!1),[Pe,pe]=g.useState(null),[D,H]=g.useState([]),[A,z]=g.useState(0),[V,fe]=g.useState(!1),{search:d,setSearch:Ha,srcFilter:v,setSrcFilter:Va,catFilter:w,setCatFilter:qa,regionFilter:C,setRegionFilter:Ga,countryFilter:j,setCountryFilter:Za,imageTypeFilter:I,setImageTypeFilter:Ka,uploadTypeFilter:N,setUploadTypeFilter:Qa,showReferenceExamples:k,setShowReferenceExamples:Ae,clearAllFilters:ze}=Xe(),Oe=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],he=g.useCallback(async t=>{if(console.log("fetchMapData called with id:",t),console.log("fetchMapData id type:",typeof t),!t||t==="undefined"||t==="null"||t.trim()===""){console.log("fetchMapData: Invalid ID detected:",t),O("Invalid Map ID"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)){console.log("fetchMapData: Invalid UUID format:",t),O("Invalid Map ID format"),P(!1);return}console.log("fetchMapData: Making API call for id:",t),q(!0),P(!0);try{const f=await fetch(`/api/images/${t}`);if(!f.ok)throw new Error("Map not found");const s=await f.json();if(Y(s),s.all_image_ids&&s.all_image_ids.length>1)await _e(s.all_image_ids);else if(s.image_count&&s.image_count>1){console.log("Multi-upload detected but no all_image_ids, trying grouped endpoint");try{const l=await fetch("/api/images/grouped");if(l.ok){const r=(await l.json()).find(c=>c.all_image_ids&&c.all_image_ids.includes(s.image_id));r&&r.all_image_ids?await _e(r.all_image_ids):(H([s]),z(0))}else H([s]),z(0)}catch(l){console.error("Failed to fetch from grouped endpoint:",l),H([s]),z(0)}}else H([s]),z(0);await te(t)}catch(f){O(f instanceof Error?f.message:"Unknown error occurred")}finally{P(!1),q(!1)}},[]),_e=g.useCallback(async t=>{console.log("fetchAllImages called with imageIds:",t),fe(!0);try{const o=t.map(async s=>{const l=await fetch(`/api/images/${s}`);if(!l.ok)throw new Error(`Failed to fetch image ${s}`);return l.json()}),f=await Promise.all(o);H(f),z(0),console.log("fetchAllImages: Loaded",f.length,"images")}catch(o){console.error("fetchAllImages error:",o),O(o instanceof Error?o.message:"Failed to load all images")}finally{fe(!1)}},[]),Ue=g.useCallback(()=>{D.length>1&&z(t=>t>0?t-1:D.length-1)},[D.length]),We=g.useCallback(()=>{D.length>1&&z(t=>t{t>=0&&t{const o=t||(D.length>0?D[A]:e);o&&(pe(o),ue(!0))},[D,A,e]),Je=g.useCallback(()=>{ue(!1),pe(null)},[]);g.useEffect(()=>{if(console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId value:",u),!u||u==="undefined"||u==="null"||u.trim()===""||u===void 0||u===null){console.log("MapDetailsPage: Invalid mapId, setting error"),O("Map ID is required"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("MapDetailsPage: Invalid UUID format:",u),O("Invalid Map ID format"),P(!1);return}console.log("MapDetailsPage: Fetching data for mapId:",u),he(u)},[u,he]),g.useEffect(()=>{if(!e||W||K)return;if(!u||u==="undefined"||u==="null"||u.trim()===""){console.log("Auto-navigation skipped: Invalid mapId");return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("Auto-navigation skipped: Invalid mapId format");return}(()=>{const f=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),s=!v||e.source===v,l=!w||e.event_type===w,i=!C||e.countries.some(M=>M.r_code===C),r=!j||e.countries.some(M=>M.c_code===j),c=!I||e.image_type===I,n=!k||e.starred===!0,x=f&&s&&l&&i&&r&&c&&n;return console.log("Auto-navigation check:",{mapId:u,search:d,srcFilter:v,catFilter:w,regionFilter:C,countryFilter:j,imageTypeFilter:I,showReferenceExamples:k,matchesSearch:f,matchesSource:s,matchesCategory:l,matchesRegion:i,matchesCountry:r,matchesImageType:c,matchesReferenceExamples:n,matches:x}),x})()||(console.log("Current map does not match filters, looking for first matching item"),fetch("/api/images").then(f=>f.json()).then(f=>{console.log("Auto-navigation: Received images from API:",f.length),console.log("Auto-navigation: First few images:",f.slice(0,3).map(l=>({image_id:l.image_id,title:l.title})));const s=f.find(l=>{const i=!d||l.title?.toLowerCase().includes(d.toLowerCase())||l.generated?.toLowerCase().includes(d.toLowerCase())||l.source?.toLowerCase().includes(d.toLowerCase())||l.event_type?.toLowerCase().includes(d.toLowerCase()),r=!v||l.source===v,c=!w||l.event_type===w,n=!C||l.countries?.some(m=>m.r_code===C),x=!j||l.countries?.some(m=>m.c_code===j),M=!I||l.image_type===I,S=!k||l.starred===!0;return i&&r&&c&&n&&x&&M&&S});console.log("Auto-navigation: Found first matching image:",s?{image_id:s.image_id,title:s.title,source:s.source}:"No matching image found"),s&&s.image_id&&s.image_id!=="undefined"&&s.image_id!=="null"&&s.image_id.trim()!==""&&s.image_id!==u&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s.image_id)?(console.log("Auto-navigating to:",s.image_id),y(`/map/${s.image_id}`)):console.error("Auto-navigation blocked: Invalid image_id format:",s.image_id))}).catch(console.error))},[e,d,v,w,C,j,I,k,u,y,W,K]);const te=async t=>{if(!(!t||t==="undefined"||t==="null"||t.trim()===""))try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.findIndex(i=>i.image_id===t);ke(s.length>1&&l>0),Te(s.length>1&&l{if(!B){q(!0);try{const o=await fetch("/api/images/grouped");if(o.ok){const f=await o.json(),s=f.filter(n=>{const x=!d||n.title?.toLowerCase().includes(d.toLowerCase())||n.generated?.toLowerCase().includes(d.toLowerCase())||n.source?.toLowerCase().includes(d.toLowerCase())||n.event_type?.toLowerCase().includes(d.toLowerCase()),M=!v||n.source===v,S=!w||n.event_type===w,m=!C||n.countries?.some($=>$.r_code===C),b=!j||n.countries?.some($=>$.c_code===j),_=!I||n.image_type===I,L=!N||N==="single"&&(!n.image_count||n.image_count<=1)||N==="multiple"&&n.image_count&&n.image_count>1,U=!k||n.starred===!0;return x&&M&&S&&m&&b&&_&&L&&U});if(s.findIndex(n=>n.image_id===u)===-1){const n=f.find(x=>x.image_id===u);n&&s.push(n)}const i=s.findIndex(n=>n.image_id===u);if(i===-1){console.error("Current image not found in filtered list");return}let r;t==="previous"?r=i>0?i-1:s.length-1:r=i{e&&u&&!W&&!K&&te(u)},[e,u,d,v,w,C,j,I,N,k,W,K,te]),g.useEffect(()=>{Promise.all([fetch("/api/sources").then(t=>t.json()),fetch("/api/types").then(t=>t.json()),fetch("/api/image-types").then(t=>t.json()),fetch("/api/regions").then(t=>t.json()),fetch("/api/countries").then(t=>t.json())]).then(([t,o,f,s,l])=>{je(t),Ie(o),Ne(f),be(s),Le(l)}).catch(console.error)},[]);const He=async()=>{e&&G(!0)},Ve=async()=>{if(e)try{(await fetch(`/api/images/${e.image_id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({starred:!e.starred})})).ok?Y(o=>o?{...o,starred:!o.starred}:null):console.error("Failed to toggle starred status")}catch(t){console.error("Error toggling starred status:",t)}},qe=async()=>{if(e){Q(!0);try{if(console.log("Deleting image with ID:",e.image_id),(await fetch(`/api/images/${e.image_id}`,{method:"DELETE"})).ok){Y(o=>o?{...o,starred:!o.starred}:null),G(!1);try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.filter(i=>i.image_id!==e.image_id);if(l.length>0){const i=s.findIndex(c=>c.image_id===e.image_id);let r;if(i===s.length-1?r=i-1:r=i,console.log("Navigation target:",{currentIndex:i,targetIndex:r,targetId:l[r]?.image_id}),r>=0&&r{if(!e)return null;if(!d&&!v&&!w&&!C&&!j&&!I&&!N&&!k)return e;const t=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),o=!v||e.source===v,f=!w||e.event_type===w,s=!C||e.countries.some(x=>x.r_code===C),l=!j||e.countries.some(x=>x.c_code===j),i=!I||e.image_type===I,r=!N||N==="single"&&(!e.image_count||e.image_count<=1)||N==="multiple"&&e.image_count&&e.image_count>1,c=!k||e.starred===!0,n=t&&o&&f&&s&&l&&i&&r&&c;return!n&&(d||v||w||C||j||I||N||k)?(setTimeout(()=>{Ge()},100),e):n?e:null},[e,d,v,w,C,j,I,N,k]),Ge=g.useCallback(async()=>{P(!0);try{const t=await fetch("/api/images/grouped");if(t.ok){const f=(await t.json()).filter(s=>{const l=!d||s.title?.toLowerCase().includes(d.toLowerCase())||s.generated?.toLowerCase().includes(d.toLowerCase())||s.source?.toLowerCase().includes(d.toLowerCase())||s.event_type?.toLowerCase().includes(d.toLowerCase()),i=!v||s.source===v,r=!w||s.event_type===w,c=!C||s.countries?.some(m=>m.r_code===C),n=!j||s.countries?.some(m=>m.c_code===j),x=!I||s.image_type===I,M=!N||N==="single"&&(!s.image_count||s.image_count<=1)||N==="multiple"&&s.image_count&&s.image_count>1,S=!k||s.starred===!0;return l&&i&&r&&c&&n&&x&&M&&S});if(f.length>0){const s=f[0];s&&s.image_id&&y(`/map/${s.image_id}`)}else y("/explore")}}catch(t){console.error("Failed to navigate to matching image:",t),y("/explore")}finally{P(!1)}},[d,v,w,C,j,I,N,k,y]),Ze=()=>{if(!e)return;if(!e.all_image_ids||e.all_image_ids.length<=1){const s=`/upload?step=1&contribute=true&imageIds=${[e.image_id].join(",")}`;y(s);return}const o=`/upload?step=1&contribute=true&imageIds=${e.all_image_ids.join(",")}`;y(o)},F=(t,o)=>({image:`images/${o}`,caption:t.edited||t.generated||"",metadata:{image_id:t.image_count&&t.image_count>1?t.all_image_ids||[t.image_id]:t.image_id,title:t.title,source:t.source,event_type:t.event_type,image_type:t.image_type,countries:t.countries,starred:t.starred,image_count:t.image_count||1}}),Ke=async t=>{if(e){ee(!0),ae(!1);try{const o=(await ea(async()=>{const{default:r}=await import("./vendor-utils-Db80MiSc.js").then(c=>c.j);return{default:r}},__vite__mapDeps([0,1,2]))).default,f=new o;if(e.image_type==="crisis_map"){const r=f.folder("crisis_maps_dataset"),c=r?.folder("images");if(c)try{const n=e.image_count&&e.image_count>1?e.all_image_ids||[e.image_id]:[e.image_id],x=n.map(async(m,b)=>{try{const _=await fetch(`/api/images/${m}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${m}`);const L=await _.blob(),U=e.file_key.split(".").pop()||"jpg",$=`0001_${String(b+1).padStart(2,"0")}.${U}`;return c.file($,L),{success:!0,fileName:$,imageId:m}}catch(_){return console.error(`Failed to process image ${m}:`,_),{success:!1,fileName:"",imageId:m}}}),S=(await Promise.all(x)).filter(m=>m.success);if(S.length===0)throw new Error("No images could be processed");if(t==="fine-tuning"){const m=[],b=[],_=[],L=S.map(Qe=>`images/${Qe.fileName}`),U=Math.random(),$={image:L.length===1?L[0]:L,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};U`images/${_.fileName}`),b={image:m.length===1?m[0]:m,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(b,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else if(e.image_type==="drone_image"){const r=f.folder("drone_images_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else{const r=f.folder("generic_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}const s=await f.generateAsync({type:"blob"}),l=URL.createObjectURL(s),i=document.createElement("a");i.href=l,i.download=`dataset_${e.image_type}_${e.image_id}_${t}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),console.log(`Exported ${e.image_type} dataset with 1 image in ${t} mode`),ae(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{ee(!1)}}};return W?a.jsx(X,{children:a.jsx("div",{className:p.loadingContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading map details..."})]})})}):re||!e?a.jsx(X,{children:a.jsx("div",{className:p.errorContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Unable to load map"}),a.jsx("div",{children:re||"Map not found"}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})})}):a.jsxs(X,{children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:p.tabSelector,children:[a.jsx(aa,{name:"map-details-view",value:oe,onChange:t=>{(t==="mapDetails"||t==="explore")&&(Ce(t),t==="explore"&&y("/explore"))},options:Oe,keySelector:t=>t.key,labelSelector:t=>t.label}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs(T,{name:"reference-examples",variant:k?"primary":"secondary",onClick:()=>Ae(!k),className:"whitespace-nowrap",children:[a.jsx("span",{className:"mr-2",children:k?a.jsx("span",{className:"text-yellow-400",children:"★"}):a.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),a.jsx(T,{name:"export-dataset",variant:"secondary",onClick:()=>Z(!0),children:"Export"})]})]}),a.jsx(ia,{sources:le,types:ce,regions:ge,countries:Se,imageTypes:de,isLoadingFilters:!1}),oe==="mapDetails"?a.jsx("div",{className:"relative",children:h?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:p.gridLayout,children:[a.jsxs(E,{heading:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:h.title||"Map Image"}),h.starred&&a.jsx("span",{className:"text-red-500 text-xl",title:"Starred image",children:"★"})]}),headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:[a.jsx("div",{className:p.imageContainer,children:e?.image_count&&e.image_count>1||D.length>1?a.jsxs("div",{className:p.carouselContainer,children:[a.jsx("div",{className:p.carouselImageWrapper,children:V?a.jsxs("div",{className:p.imagePlaceholder,children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading images..."})]}):D[A]?.image_url?a.jsx("img",{src:D[A].image_url,alt:D[A].file_key,className:p.carouselImage}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"})}),a.jsxs("div",{className:p.carouselNavigation,children:[a.jsx(T,{name:"previous-image",variant:"tertiary",size:1,onClick:Ue,disabled:V,className:p.carouselButton,children:a.jsx(se,{className:"w-4 h-4"})}),a.jsx("div",{className:p.carouselIndicators,children:D.map((t,o)=>a.jsx("button",{onClick:()=>Be(o),className:`${p.carouselIndicator} ${o===A?p.carouselIndicatorActive:""}`,disabled:V,children:o+1},o))}),a.jsx(T,{name:"next-image",variant:"tertiary",size:1,onClick:We,disabled:V,className:p.carouselButton,children:a.jsx(ie,{className:"w-4 h-4"})})]}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>xe(D[A]),disabled:V||!D[A]?.image_url,children:"View Image"})})]}):a.jsxs("div",{className:p.singleImageContainer,children:[h.image_url?a.jsx("img",{src:h.image_url,alt:h.file_key}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-single",variant:"secondary",size:1,onClick:()=>xe(h),disabled:!h.image_url,children:"View Image"})})]})}),a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs("div",{className:p.metadataTags,children:[h.image_type!=="drone_image"&&a.jsx("span",{className:p.metadataTag,children:le.find(t=>t.s_code===h.source)?.label||h.source}),a.jsx("span",{className:p.metadataTag,children:ce.find(t=>t.t_code===h.event_type)?.label||h.event_type}),a.jsx("span",{className:p.metadataTag,children:de.find(t=>t.image_type===h.image_type)?.label||h.image_type}),h.countries&&h.countries.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:p.metadataTag,children:ge.find(t=>t.r_code===h.countries[0].r_code)?.label||"Unknown Region"}),a.jsx("span",{className:p.metadataTag,children:h.countries.map(t=>t.label).join(", ")})]}),h.image_count&&h.image_count>1&&a.jsxs("span",{className:p.metadataTag,title:`Multi-upload with ${h.image_count} images`,children:["📷 ",h.image_count]}),(!h.image_count||h.image_count<=1)&&a.jsx("span",{className:p.metadataTag,title:"Single Upload",children:"Single"})]})})]}),a.jsx("div",{className:p.detailsSection,children:h.edited&&h.edited.includes("Description:")||h.generated&&h.generated.includes("Description:")?a.jsx(E,{heading:"AI Generated Content",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:a.jsx("div",{className:p.captionText,children:(h.edited||h.generated||"").split(` -`).map((t,o)=>a.jsx("div",{children:t.startsWith("Description:")||t.startsWith("Analysis:")||t.startsWith("Recommended Actions:")?a.jsx("h4",{className:"font-semibold text-gray-800 mt-4 mb-2",children:t}):t.trim()===""?a.jsx("br",{}):a.jsx("p",{className:"mb-2",children:t})},o))})})}):a.jsx(E,{heading:"Description",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:h.generated?a.jsx("div",{className:p.captionText,children:a.jsx("p",{children:h.edited||h.generated})}):a.jsx("p",{children:"— no caption yet —"})})})})]}),a.jsx("div",{className:"flex items-center justify-center mt-8",children:a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-lg p-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[De&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"previous-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("previous"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(se,{className:"w-4 h-4"}),a.jsx(se,{className:"w-4 h-4"})]}),a.jsx("span",{className:"font-semibold",children:"Previous"})]})})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"delete",variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:He,title:"Delete","aria-label":"Delete saved image",children:a.jsx(ta,{className:"w-4 h-4"})})}),a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"contribute",onClick:Ze,children:"Contribute"})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"toggle-star",variant:"tertiary",size:1,className:`${e?.starred?"bg-red-100 hover:bg-red-200 text-red-800 border-2 border-red-400":"bg-gray-100 hover:bg-gray-200 text-gray-600 border-2 border-gray-300"} w-16 h-8 rounded-full transition-all duration-200 flex items-center justify-center`,onClick:Ve,title:e?.starred?"Unstar image":"Star image","aria-label":e?.starred?"Unstar image":"Star image",children:a.jsx("span",{className:`text-lg transition-all duration-200 ${e?.starred?"text-red-600":"text-gray-500"}`,children:e?.starred?"★":"☆"})})}),Me&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"next-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("next"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-semibold",children:"Next"}),a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(ie,{className:"w-4 h-4"}),a.jsx(ie,{className:"w-4 h-4"})]})]})})})]})})})]}):a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"text-xl font-semibold text-gray-600 mb-4",children:"No matches found"}),a.jsx("div",{className:"mt-4",children:a.jsx(T,{name:"clear-filters",variant:"secondary",onClick:ze,children:"Clear Filters"})})]})}):null]}),Fe&&a.jsx("div",{className:p.fullSizeModalOverlay,onClick:()=>G(!1),children:a.jsx("div",{className:p.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:a.jsxs("div",{className:p.ratingWarningContent,children:[a.jsx("h3",{className:p.ratingWarningTitle,children:"Delete Image?"}),a.jsx("p",{className:p.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),a.jsxs("div",{className:p.ratingWarningButtons,children:[a.jsx(T,{name:"confirm-delete",variant:"secondary",onClick:qe,children:"Delete"}),a.jsx(T,{name:"cancel-delete",variant:"tertiary",onClick:()=>G(!1),children:"Cancel"})]})]})})}),me&&a.jsx(na,{isOpen:me,onClose:()=>{Z(!1),ae(!1),ee(!1)},onExport:(t,o)=>{o.includes(e.image_type)&&Ke(t)},filteredCount:1,totalCount:1,hasFilters:!1,crisisMapsCount:e.image_type==="crisis_map"?1:0,droneImagesCount:e.image_type==="drone_image"?1:0,isLoading:Ee,exportSuccess:Re,variant:"single",onNavigateToList:()=>{Z(!1),y("/explore")},onNavigateAndExport:()=>{Z(!1),y("/explore?export=true")}}),a.jsx(Ye,{isOpen:$e,imageUrl:Pe?.image_url||null,preview:null,selectedImageData:null,onClose:Je})]})}export{it as default}; diff --git a/py_backend/static/assets/index-jo0G9peP.js b/py_backend/static/assets/index-jo0G9peP.js deleted file mode 100644 index 11f8d3965545f9b0e645bb921d56d3e458932749..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-jo0G9peP.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-utils-Db80MiSc.js","assets/vendor-DxpCibxB.js","assets/vendor-react-BxsGb6Ph.js"])))=>i.map(i=>d[i]); -import{u as Xe,F as Ye,_ as ea}from"./index-Uy48qW96.js";import{j as a,r as g}from"./vendor-react-BxsGb6Ph.js";import{N as X,n as T,_ as ve,L as aa,z as E,C as se,c as ie,D as ta}from"./vendor-ui-l_DttnRj.js";import{u as sa}from"./useAdmin-B_k2Fdj-.js";import{F as ia,E as na}from"./ExportModal-BtNOxnGZ.js";import{n as oa,a as ra}from"./vendor-DxpCibxB.js";const la="_tabSelector_usssr_1",ca="_imageContainer_usssr_12",da="_imagePlaceholder_usssr_33",ga="_metadataTags_usssr_45",ma="_metadataTag_usssr_45",ua="_captionContainer_usssr_67",pa="_captionText_usssr_74",fa="_gridLayout_usssr_131",ha="_detailsSection_usssr_155",_a="_loadingContainer_usssr_161",xa="_errorContainer_usssr_171",ya="_fullSizeModalOverlay_usssr_205",va="_fullSizeModalContent_usssr_219",wa="_ratingWarningContent_usssr_230",Ca="_ratingWarningTitle_usssr_236",ja="_ratingWarningText_usssr_243",Ia="_ratingWarningButtons_usssr_250",Na="_carouselContainer_usssr_365",ba="_carouselImageWrapper_usssr_370",Sa="_carouselImage_usssr_370",La="_carouselNavigation_usssr_393",Da="_carouselButton_usssr_405",ka="_carouselIndicators_usssr_429",Ma="_carouselIndicator_usssr_429",Ta="_carouselIndicatorActive_usssr_458",Fa="_singleImageContainer_usssr_488",Ea="_viewImageButtonContainer_usssr_494",p={tabSelector:la,imageContainer:ca,imagePlaceholder:da,metadataTags:ga,metadataTag:ma,captionContainer:ua,captionText:pa,gridLayout:fa,detailsSection:ha,loadingContainer:_a,errorContainer:xa,fullSizeModalOverlay:ya,fullSizeModalContent:va,ratingWarningContent:wa,ratingWarningTitle:Ca,ratingWarningText:ja,ratingWarningButtons:Ia,carouselContainer:Na,carouselImageWrapper:ba,carouselImage:Sa,carouselNavigation:La,carouselButton:Da,carouselIndicators:ka,carouselIndicator:Ma,carouselIndicatorActive:Ta,singleImageContainer:Fa,viewImageButtonContainer:Ea};function it(){const{mapId:u}=oa(),y=ra(),{isAuthenticated:ne}=sa();console.log("MapDetailsPage: Current URL:",window.location.href),console.log("MapDetailsPage: Hash:",window.location.hash),console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId length:",u?.length),console.log("MapDetailsPage: mapId value:",JSON.stringify(u));const we=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;if(!u||u==="undefined"||u==="null"||u.trim()===""||!we.test(u))return a.jsx(X,{children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center py-12",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Invalid Map ID"}),a.jsx("div",{children:"The map ID provided is not valid."}),a.jsxs("div",{className:"text-sm text-gray-500 mt-2",children:['Debug Info: mapId = "',u,'" (type: ',typeof u,")"]}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})});const[oe,Ce]=g.useState("mapDetails"),[e,Y]=g.useState(null),[W,P]=g.useState(!0),[re,O]=g.useState(null),[le,je]=g.useState([]),[ce,Ie]=g.useState([]),[de,Ne]=g.useState([]),[ge,be]=g.useState([]),[Se,Le]=g.useState([]),[De,ke]=g.useState(!1),[Me,Te]=g.useState(!1),[B,q]=g.useState(!1),[Fe,G]=g.useState(!1),[me,Z]=g.useState(!1),[Ee,ee]=g.useState(!1),[Re,ae]=g.useState(!1),[Ra,$a]=g.useState("standard"),[R,Pa]=g.useState(80),[J,Aa]=g.useState(10),[za,Oa]=g.useState(10),[Ua,Wa]=g.useState(!0),[Ba,Ja]=g.useState(!0),[K,Q]=g.useState(!1),[$e,ue]=g.useState(!1),[Pe,pe]=g.useState(null),[D,H]=g.useState([]),[A,z]=g.useState(0),[V,fe]=g.useState(!1),{search:d,setSearch:Ha,srcFilter:v,setSrcFilter:Va,catFilter:w,setCatFilter:qa,regionFilter:C,setRegionFilter:Ga,countryFilter:j,setCountryFilter:Za,imageTypeFilter:I,setImageTypeFilter:Ka,uploadTypeFilter:N,setUploadTypeFilter:Qa,showReferenceExamples:k,setShowReferenceExamples:Ae,clearAllFilters:ze}=Xe(),Oe=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],he=g.useCallback(async t=>{if(console.log("fetchMapData called with id:",t),console.log("fetchMapData id type:",typeof t),!t||t==="undefined"||t==="null"||t.trim()===""){console.log("fetchMapData: Invalid ID detected:",t),O("Invalid Map ID"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)){console.log("fetchMapData: Invalid UUID format:",t),O("Invalid Map ID format"),P(!1);return}console.log("fetchMapData: Making API call for id:",t),q(!0),P(!0);try{const f=await fetch(`/api/images/${t}`);if(!f.ok)throw new Error("Map not found");const s=await f.json();if(Y(s),s.all_image_ids&&s.all_image_ids.length>1)await _e(s.all_image_ids);else if(s.image_count&&s.image_count>1){console.log("Multi-upload detected but no all_image_ids, trying grouped endpoint");try{const l=await fetch("/api/images/grouped");if(l.ok){const r=(await l.json()).find(c=>c.all_image_ids&&c.all_image_ids.includes(s.image_id));r&&r.all_image_ids?await _e(r.all_image_ids):(H([s]),z(0))}else H([s]),z(0)}catch(l){console.error("Failed to fetch from grouped endpoint:",l),H([s]),z(0)}}else H([s]),z(0);await te(t)}catch(f){O(f instanceof Error?f.message:"Unknown error occurred")}finally{P(!1),q(!1)}},[]),_e=g.useCallback(async t=>{console.log("fetchAllImages called with imageIds:",t),fe(!0);try{const o=t.map(async s=>{const l=await fetch(`/api/images/${s}`);if(!l.ok)throw new Error(`Failed to fetch image ${s}`);return l.json()}),f=await Promise.all(o);H(f),z(0),console.log("fetchAllImages: Loaded",f.length,"images")}catch(o){console.error("fetchAllImages error:",o),O(o instanceof Error?o.message:"Failed to load all images")}finally{fe(!1)}},[]),Ue=g.useCallback(()=>{D.length>1&&z(t=>t>0?t-1:D.length-1)},[D.length]),We=g.useCallback(()=>{D.length>1&&z(t=>t{t>=0&&t{const o=t||(D.length>0?D[A]:e);o&&(pe(o),ue(!0))},[D,A,e]),Je=g.useCallback(()=>{ue(!1),pe(null)},[]);g.useEffect(()=>{if(console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId value:",u),!u||u==="undefined"||u==="null"||u.trim()===""||u===void 0||u===null){console.log("MapDetailsPage: Invalid mapId, setting error"),O("Map ID is required"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("MapDetailsPage: Invalid UUID format:",u),O("Invalid Map ID format"),P(!1);return}console.log("MapDetailsPage: Fetching data for mapId:",u),he(u)},[u,he]),g.useEffect(()=>{if(!e||W||K)return;if(!u||u==="undefined"||u==="null"||u.trim()===""){console.log("Auto-navigation skipped: Invalid mapId");return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("Auto-navigation skipped: Invalid mapId format");return}(()=>{const f=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),s=!v||e.source===v,l=!w||e.event_type===w,i=!C||e.countries.some(M=>M.r_code===C),r=!j||e.countries.some(M=>M.c_code===j),c=!I||e.image_type===I,n=!k||e.starred===!0,x=f&&s&&l&&i&&r&&c&&n;return console.log("Auto-navigation check:",{mapId:u,search:d,srcFilter:v,catFilter:w,regionFilter:C,countryFilter:j,imageTypeFilter:I,showReferenceExamples:k,matchesSearch:f,matchesSource:s,matchesCategory:l,matchesRegion:i,matchesCountry:r,matchesImageType:c,matchesReferenceExamples:n,matches:x}),x})()||(console.log("Current map does not match filters, looking for first matching item"),fetch("/api/images").then(f=>f.json()).then(f=>{console.log("Auto-navigation: Received images from API:",f.length),console.log("Auto-navigation: First few images:",f.slice(0,3).map(l=>({image_id:l.image_id,title:l.title})));const s=f.find(l=>{const i=!d||l.title?.toLowerCase().includes(d.toLowerCase())||l.generated?.toLowerCase().includes(d.toLowerCase())||l.source?.toLowerCase().includes(d.toLowerCase())||l.event_type?.toLowerCase().includes(d.toLowerCase()),r=!v||l.source===v,c=!w||l.event_type===w,n=!C||l.countries?.some(m=>m.r_code===C),x=!j||l.countries?.some(m=>m.c_code===j),M=!I||l.image_type===I,S=!k||l.starred===!0;return i&&r&&c&&n&&x&&M&&S});console.log("Auto-navigation: Found first matching image:",s?{image_id:s.image_id,title:s.title,source:s.source}:"No matching image found"),s&&s.image_id&&s.image_id!=="undefined"&&s.image_id!=="null"&&s.image_id.trim()!==""&&s.image_id!==u&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s.image_id)?(console.log("Auto-navigating to:",s.image_id),y(`/map/${s.image_id}`)):console.error("Auto-navigation blocked: Invalid image_id format:",s.image_id))}).catch(console.error))},[e,d,v,w,C,j,I,k,u,y,W,K]);const te=async t=>{if(!(!t||t==="undefined"||t==="null"||t.trim()===""))try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.findIndex(i=>i.image_id===t);ke(s.length>1&&l>0),Te(s.length>1&&l{if(!B){q(!0);try{const o=await fetch("/api/images/grouped");if(o.ok){const f=await o.json(),s=f.filter(n=>{const x=!d||n.title?.toLowerCase().includes(d.toLowerCase())||n.generated?.toLowerCase().includes(d.toLowerCase())||n.source?.toLowerCase().includes(d.toLowerCase())||n.event_type?.toLowerCase().includes(d.toLowerCase()),M=!v||n.source===v,S=!w||n.event_type===w,m=!C||n.countries?.some($=>$.r_code===C),b=!j||n.countries?.some($=>$.c_code===j),_=!I||n.image_type===I,L=!N||N==="single"&&(!n.image_count||n.image_count<=1)||N==="multiple"&&n.image_count&&n.image_count>1,U=!k||n.starred===!0;return x&&M&&S&&m&&b&&_&&L&&U});if(s.findIndex(n=>n.image_id===u)===-1){const n=f.find(x=>x.image_id===u);n&&s.push(n)}const i=s.findIndex(n=>n.image_id===u);if(i===-1){console.error("Current image not found in filtered list");return}let r;t==="previous"?r=i>0?i-1:s.length-1:r=i{e&&u&&!W&&!K&&te(u)},[e,u,d,v,w,C,j,I,N,k,W,K,te]),g.useEffect(()=>{Promise.all([fetch("/api/sources").then(t=>t.json()),fetch("/api/types").then(t=>t.json()),fetch("/api/image-types").then(t=>t.json()),fetch("/api/regions").then(t=>t.json()),fetch("/api/countries").then(t=>t.json())]).then(([t,o,f,s,l])=>{je(t),Ie(o),Ne(f),be(s),Le(l)}).catch(console.error)},[]);const He=async()=>{e&&G(!0)},Ve=async()=>{if(e)try{(await fetch(`/api/images/${e.image_id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({starred:!e.starred})})).ok?Y(o=>o?{...o,starred:!o.starred}:null):console.error("Failed to toggle starred status")}catch(t){console.error("Error toggling starred status:",t)}},qe=async()=>{if(e){Q(!0);try{if(console.log("Deleting image with ID:",e.image_id),(await fetch(`/api/images/${e.image_id}`,{method:"DELETE"})).ok){Y(o=>o?{...o,starred:!o.starred}:null),G(!1);try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.filter(i=>i.image_id!==e.image_id);if(l.length>0){const i=s.findIndex(c=>c.image_id===e.image_id);let r;if(i===s.length-1?r=i-1:r=i,console.log("Navigation target:",{currentIndex:i,targetIndex:r,targetId:l[r]?.image_id}),r>=0&&r{if(!e)return null;if(!d&&!v&&!w&&!C&&!j&&!I&&!N&&!k)return e;const t=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),o=!v||e.source===v,f=!w||e.event_type===w,s=!C||e.countries.some(x=>x.r_code===C),l=!j||e.countries.some(x=>x.c_code===j),i=!I||e.image_type===I,r=!N||N==="single"&&(!e.image_count||e.image_count<=1)||N==="multiple"&&e.image_count&&e.image_count>1,c=!k||e.starred===!0,n=t&&o&&f&&s&&l&&i&&r&&c;return!n&&(d||v||w||C||j||I||N||k)?(setTimeout(()=>{Ge()},100),e):n?e:null},[e,d,v,w,C,j,I,N,k]),Ge=g.useCallback(async()=>{P(!0);try{const t=await fetch("/api/images/grouped");if(t.ok){const f=(await t.json()).filter(s=>{const l=!d||s.title?.toLowerCase().includes(d.toLowerCase())||s.generated?.toLowerCase().includes(d.toLowerCase())||s.source?.toLowerCase().includes(d.toLowerCase())||s.event_type?.toLowerCase().includes(d.toLowerCase()),i=!v||s.source===v,r=!w||s.event_type===w,c=!C||s.countries?.some(m=>m.r_code===C),n=!j||s.countries?.some(m=>m.c_code===j),x=!I||s.image_type===I,M=!N||N==="single"&&(!s.image_count||s.image_count<=1)||N==="multiple"&&s.image_count&&s.image_count>1,S=!k||s.starred===!0;return l&&i&&r&&c&&n&&x&&M&&S});if(f.length>0){const s=f[0];s&&s.image_id&&y(`/map/${s.image_id}`)}else y("/explore")}}catch(t){console.error("Failed to navigate to matching image:",t),y("/explore")}finally{P(!1)}},[d,v,w,C,j,I,N,k,y]),Ze=()=>{if(!e)return;if(!e.all_image_ids||e.all_image_ids.length<=1){const s=`/upload?step=1&contribute=true&imageIds=${[e.image_id].join(",")}`;y(s);return}const o=`/upload?step=1&contribute=true&imageIds=${e.all_image_ids.join(",")}`;y(o)},F=(t,o)=>({image:`images/${o}`,caption:t.edited||t.generated||"",metadata:{image_id:t.image_count&&t.image_count>1?t.all_image_ids||[t.image_id]:t.image_id,title:t.title,source:t.source,event_type:t.event_type,image_type:t.image_type,countries:t.countries,starred:t.starred,image_count:t.image_count||1}}),Ke=async t=>{if(e){ee(!0),ae(!1);try{const o=(await ea(async()=>{const{default:r}=await import("./vendor-utils-Db80MiSc.js").then(c=>c.j);return{default:r}},__vite__mapDeps([0,1,2]))).default,f=new o;if(e.image_type==="crisis_map"){const r=f.folder("crisis_maps_dataset"),c=r?.folder("images");if(c)try{const n=e.image_count&&e.image_count>1?e.all_image_ids||[e.image_id]:[e.image_id],x=n.map(async(m,b)=>{try{const _=await fetch(`/api/images/${m}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${m}`);const L=await _.blob(),U=e.file_key.split(".").pop()||"jpg",$=`0001_${String(b+1).padStart(2,"0")}.${U}`;return c.file($,L),{success:!0,fileName:$,imageId:m}}catch(_){return console.error(`Failed to process image ${m}:`,_),{success:!1,fileName:"",imageId:m}}}),S=(await Promise.all(x)).filter(m=>m.success);if(S.length===0)throw new Error("No images could be processed");if(t==="fine-tuning"){const m=[],b=[],_=[],L=S.map(Qe=>`images/${Qe.fileName}`),U=Math.random(),$={image:L.length===1?L[0]:L,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};U`images/${_.fileName}`),b={image:m.length===1?m[0]:m,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(b,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else if(e.image_type==="drone_image"){const r=f.folder("drone_images_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else{const r=f.folder("generic_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}const s=await f.generateAsync({type:"blob"}),l=URL.createObjectURL(s),i=document.createElement("a");i.href=l,i.download=`dataset_${e.image_type}_${e.image_id}_${t}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),console.log(`Exported ${e.image_type} dataset with 1 image in ${t} mode`),ae(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{ee(!1)}}};return W?a.jsx(X,{children:a.jsx("div",{className:p.loadingContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading map details..."})]})})}):re||!e?a.jsx(X,{children:a.jsx("div",{className:p.errorContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Unable to load map"}),a.jsx("div",{children:re||"Map not found"}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})})}):a.jsxs(X,{children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:p.tabSelector,children:[a.jsx(aa,{name:"map-details-view",value:oe,onChange:t=>{(t==="mapDetails"||t==="explore")&&(Ce(t),t==="explore"&&y("/explore"))},options:Oe,keySelector:t=>t.key,labelSelector:t=>t.label}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs(T,{name:"reference-examples",variant:k?"primary":"secondary",onClick:()=>Ae(!k),className:"whitespace-nowrap",children:[a.jsx("span",{className:"mr-2",children:k?a.jsx("span",{className:"text-yellow-400",children:"★"}):a.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),a.jsx(T,{name:"export-dataset",variant:"secondary",onClick:()=>Z(!0),children:"Export"})]})]}),a.jsx(ia,{sources:le,types:ce,regions:ge,countries:Se,imageTypes:de,isLoadingFilters:!1}),oe==="mapDetails"?a.jsx("div",{className:"relative",children:h?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:p.gridLayout,children:[a.jsxs(E,{heading:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:h.title||"Map Image"}),h.starred&&a.jsx("span",{className:"text-red-500 text-xl",title:"Starred image",children:"★"})]}),headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:[a.jsx("div",{className:p.imageContainer,children:e?.image_count&&e.image_count>1||D.length>1?a.jsxs("div",{className:p.carouselContainer,children:[a.jsx("div",{className:p.carouselImageWrapper,children:V?a.jsxs("div",{className:p.imagePlaceholder,children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading images..."})]}):D[A]?.image_url?a.jsx("img",{src:D[A].image_url,alt:D[A].file_key,className:p.carouselImage}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"})}),a.jsxs("div",{className:p.carouselNavigation,children:[a.jsx(T,{name:"previous-image",variant:"tertiary",size:1,onClick:Ue,disabled:V,className:p.carouselButton,children:a.jsx(se,{className:"w-4 h-4"})}),a.jsx("div",{className:p.carouselIndicators,children:D.map((t,o)=>a.jsx("button",{onClick:()=>Be(o),className:`${p.carouselIndicator} ${o===A?p.carouselIndicatorActive:""}`,disabled:V,children:o+1},o))}),a.jsx(T,{name:"next-image",variant:"tertiary",size:1,onClick:We,disabled:V,className:p.carouselButton,children:a.jsx(ie,{className:"w-4 h-4"})})]}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>xe(D[A]),disabled:V||!D[A]?.image_url,children:"View Image"})})]}):a.jsxs("div",{className:p.singleImageContainer,children:[h.image_url?a.jsx("img",{src:h.image_url,alt:h.file_key}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-single",variant:"secondary",size:1,onClick:()=>xe(h),disabled:!h.image_url,children:"View Image"})})]})}),a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs("div",{className:p.metadataTags,children:[h.image_type!=="drone_image"&&a.jsx("span",{className:p.metadataTag,children:le.find(t=>t.s_code===h.source)?.label||h.source}),a.jsx("span",{className:p.metadataTag,children:ce.find(t=>t.t_code===h.event_type)?.label||h.event_type}),a.jsx("span",{className:p.metadataTag,children:de.find(t=>t.image_type===h.image_type)?.label||h.image_type}),h.countries&&h.countries.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:p.metadataTag,children:ge.find(t=>t.r_code===h.countries[0].r_code)?.label||"Unknown Region"}),a.jsx("span",{className:p.metadataTag,children:h.countries.map(t=>t.label).join(", ")})]}),h.image_count&&h.image_count>1&&a.jsxs("span",{className:p.metadataTag,title:`Multi-upload with ${h.image_count} images`,children:["📷 ",h.image_count]}),(!h.image_count||h.image_count<=1)&&a.jsx("span",{className:p.metadataTag,title:"Single Upload",children:"Single"})]})})]}),a.jsx("div",{className:p.detailsSection,children:h.edited&&h.edited.includes("Description:")||h.generated&&h.generated.includes("Description:")?a.jsx(E,{heading:"AI Generated Content",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:a.jsx("div",{className:p.captionText,children:(h.edited||h.generated||"").split(` -`).map((t,o)=>a.jsx("div",{children:t.startsWith("Description:")||t.startsWith("Analysis:")||t.startsWith("Recommended Actions:")?a.jsx("h4",{className:"font-semibold text-gray-800 mt-4 mb-2",children:t}):t.trim()===""?a.jsx("br",{}):a.jsx("p",{className:"mb-2",children:t})},o))})})}):a.jsx(E,{heading:"Description",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:h.generated?a.jsx("div",{className:p.captionText,children:a.jsx("p",{children:h.edited||h.generated})}):a.jsx("p",{children:"— no caption yet —"})})})})]}),a.jsx("div",{className:"flex items-center justify-center mt-8",children:a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-lg p-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[De&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"previous-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("previous"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(se,{className:"w-4 h-4"}),a.jsx(se,{className:"w-4 h-4"})]}),a.jsx("span",{className:"font-semibold",children:"Previous"})]})})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"delete",variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:He,title:"Delete","aria-label":"Delete saved image",children:a.jsx(ta,{className:"w-4 h-4"})})}),a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"contribute",onClick:Ze,children:"Contribute"})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"toggle-star",variant:"tertiary",size:1,className:`${e?.starred?"bg-red-100 hover:bg-red-200 text-red-800 border-2 border-red-400":"bg-gray-100 hover:bg-gray-200 text-gray-600 border-2 border-gray-300"} w-16 h-8 rounded-full transition-all duration-200 flex items-center justify-center`,onClick:Ve,title:e?.starred?"Unstar image":"Star image","aria-label":e?.starred?"Unstar image":"Star image",children:a.jsx("span",{className:`text-lg transition-all duration-200 ${e?.starred?"text-red-600":"text-gray-500"}`,children:e?.starred?"★":"☆"})})}),Me&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"next-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("next"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-semibold",children:"Next"}),a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(ie,{className:"w-4 h-4"}),a.jsx(ie,{className:"w-4 h-4"})]})]})})})]})})})]}):a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"text-xl font-semibold text-gray-600 mb-4",children:"No matches found"}),a.jsx("div",{className:"mt-4",children:a.jsx(T,{name:"clear-filters",variant:"secondary",onClick:ze,children:"Clear Filters"})})]})}):null]}),Fe&&a.jsx("div",{className:p.fullSizeModalOverlay,onClick:()=>G(!1),children:a.jsx("div",{className:p.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:a.jsxs("div",{className:p.ratingWarningContent,children:[a.jsx("h3",{className:p.ratingWarningTitle,children:"Delete Image?"}),a.jsx("p",{className:p.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),a.jsxs("div",{className:p.ratingWarningButtons,children:[a.jsx(T,{name:"confirm-delete",variant:"secondary",onClick:qe,children:"Delete"}),a.jsx(T,{name:"cancel-delete",variant:"tertiary",onClick:()=>G(!1),children:"Cancel"})]})]})})}),me&&a.jsx(na,{isOpen:me,onClose:()=>{Z(!1),ae(!1),ee(!1)},onExport:(t,o)=>{o.includes(e.image_type)&&Ke(t)},filteredCount:1,totalCount:1,hasFilters:!1,crisisMapsCount:e.image_type==="crisis_map"?1:0,droneImagesCount:e.image_type==="drone_image"?1:0,isLoading:Ee,exportSuccess:Re,variant:"single",onNavigateToList:()=>{Z(!1),y("/explore")},onNavigateAndExport:()=>{Z(!1),y("/explore?export=true")}}),a.jsx(Ye,{isOpen:$e,imageUrl:Pe?.image_url||null,preview:null,selectedImageData:null,onClose:Je})]})}export{it as default}; diff --git a/py_backend/static/assets/index-om3EFqpn.css b/py_backend/static/assets/index-om3EFqpn.css deleted file mode 100644 index 091f584b622b56d93de7cf5f4baba7313f60a481..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/index-om3EFqpn.css +++ /dev/null @@ -1 +0,0 @@ -/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.left-1\/2{left:50%}.z-50{z-index:50}.mx-auto{margin-inline:auto}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.min-h-\[60vh\]{min-height:60vh}.min-h-\[400px\]{min-height:400px}.w-full{width:100%}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-105{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-none{--tw-border-style:none;border-style:none}.bg-transparent{background-color:#0000}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.object-cover{-o-object-fit:cover;object-fit:cover}.text-center{text-align:center}.text-left{text-align:left}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.opacity-50{opacity:.5}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}}*{box-sizing:border-box}@media screen{html{scrollbar-gutter:stable;margin:0;padding:0}}body{line-height:var(--go-ui-line-height-md);color:var(--go-ui-color-text);font-family:var(--go-ui-font-family-sans-serif);font-size:var(--go-ui-font-size-md);font-weight:var(--go-ui-font-weight-normal)}@media screen{body{background-color:var(--go-ui-color-background);margin:0;padding:0}}ul,ol,p{margin:0}@media print{@page{size:portrait A4;margin:10mm 10mm 16mm}body{font-family:Open Sans,sans-serif}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}._dropdownContainer_1six7_3{position:relative}._dropdownMenu_1six7_15{position:absolute;right:0;top:100%;margin-top:.5rem;width:180px;background:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-lg);border:1px solid var(--go-ui-color-separator);z-index:50;animation:_dropdownSlideIn_1six7_1 .15s ease-out}._dropdownContent_1six7_43{padding:var(--go-ui-spacing-xs) 0}@keyframes _dropdownSlideIn_1six7_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._dropdownMenu_1six7_15{width:160px;right:-.25rem}._dropdownItem_1six7_89{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-xs)}}._uploadContainer_1w5i1_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);text-align:center;padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md);overflow-x:hidden}._dropZone_1w5i1_9{border:var(--go-ui-width-separator-thick) dashed var(--go-ui-color-gray-40);background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl) var(--go-ui-spacing-lg);display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);transition:all var(--go-ui-duration-transition-medium) ease;max-width:var(--go-ui-width-screen-md);margin:0 auto;min-height:250px;justify-content:center}._dropZone_1w5i1_9:hover{background-color:var(--go-ui-color-gray-30);border-color:var(--go-ui-color-gray-50)}._dropZone_1w5i1_9._hasFile_1w5i1_30{background-color:var(--go-ui-color-white);border-color:var(--go-ui-color-gray-30);min-height:300px;padding:var(--go-ui-spacing-lg)}._dropZoneIcon_1w5i1_37{width:2.5rem;height:2.5rem;color:var(--go-ui-color-red-90)}._dropZoneText_1w5i1_43{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70);text-align:center}._dropZoneSubtext_1w5i1_49{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-50);margin:var(--go-ui-spacing-md) 0}._filePreview_1w5i1_55{width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;animation:_fadeIn_1w5i1_1 .3s ease-in-out}._filePreviewImage_1w5i1_64{position:relative;max-width:100%;max-height:20rem;overflow:visible;border-radius:var(--go-ui-border-radius-lg);background-color:var(--go-ui-color-gray-20);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1w5i1_64:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._filePreviewImage_1w5i1_64 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1w5i1_64 img:hover{transform:scale(1.02)}@keyframes _fadeIn_1w5i1_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._fileName_1w5i1_110{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-80);margin-top:var(--go-ui-spacing-sm);text-align:center}._fileInfo_1w5i1_118{font-size:var(--go-ui-font-size-xs);color:var(--go-ui-color-gray-60);margin-top:var(--go-ui-spacing-xs);text-align:center}._helpLink_1w5i1_125{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md)}._helpLink_1w5i1_125 a{color:var(--go-ui-color-red-90);font-size:var(--go-ui-font-size-xs);transition:color var(--go-ui-duration-transition-fast) ease;display:flex;align-items:center;gap:var(--go-ui-spacing-2xs)}._helpLink_1w5i1_125 a:hover{color:var(--go-ui-color-red-hover);text-decoration:underline}._loadingContainer_1w5i1_145{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._loadingText_1w5i1_153{color:var(--go-ui-color-gray-60)}._generateButtonContainer_1w5i1_157{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._uploadedMapContainer_1w5i1_165{margin-bottom:var(--go-ui-spacing-lg)}._uploadedMapImage_1w5i1_169{width:100%;max-width:var(--go-ui-width-screen-lg);max-height:20rem;overflow:visible;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-sm);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1w5i1_169:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._uploadedMapImage_1w5i1_169 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1w5i1_169 img:hover{transform:scale(1.02)}._formSection_1w5i1_205{margin-bottom:var(--go-ui-spacing-lg)}._formGrid_1w5i1_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (min-width: 1024px){._formGrid_1w5i1_209{grid-template-columns:1fr 1fr}}._titleField_1w5i1_222{grid-column:1 / -1}._ratingSection_1w5i1_226{text-align:left}._ratingDescription_1w5i1_230{color:var(--go-ui-color-gray-70);margin-bottom:var(--go-ui-spacing-lg)}._ratingSlider_1w5i1_235{margin-top:var(--go-ui-spacing-lg);display:flex;align-items:center;gap:var(--go-ui-spacing-sm)}._ratingLabel_1w5i1_242{display:block;font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);text-transform:capitalize;width:5rem;flex-shrink:0}._ratingInput_1w5i1_251{width:100%;accent-color:var(--go-ui-color-red-90)}._ratingValue_1w5i1_256{margin-left:var(--go-ui-spacing-sm);width:2.5rem;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70)}._submitSection_1w5i1_266{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-2xl);flex-wrap:wrap}._successContainer_1w5i1_275{text-align:center;padding:var(--go-ui-spacing-2xl)}._successHeading_1w5i1_280{color:var(--go-ui-color-green-90);margin-bottom:var(--go-ui-spacing-lg)}._successText_1w5i1_285{color:var(--go-ui-color-gray-700);margin-bottom:var(--go-ui-spacing-xl);font-size:var(--go-ui-font-size-lg)}._successButton_1w5i1_291{display:flex;justify-content:center}._viewFullSizeButton_1w5i1_297{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding-top:var(--go-ui-spacing-md);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._fullSizeModalOverlay_1w5i1_306{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._lightModalOverlay_1w5i1_320{position:fixed;inset:0;background-color:#0000004d;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._fullSizeModalContent_1w5i1_334{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);max-width:95vw;max-height:95vh;overflow:hidden;box-shadow:var(--go-ui-box-shadow-xl);display:flex;flex-direction:column}._fullSizeModalHeader_1w5i1_345{display:flex;justify-content:space-between;align-items:center;padding:var(--go-ui-spacing-lg);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-gray-10)}._fullSizeModalTitle_1w5i1_354{margin:0;font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900)}._fullSizeModalImage_1w5i1_361{flex:1;display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-lg);overflow:auto}._fullSizeModalImage_1w5i1_361 img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-md)}@media (max-width: 768px){._fullSizeModalOverlay_1w5i1_306{padding:var(--go-ui-spacing-sm)}._fullSizeModalContent_1w5i1_334{max-width:100vw;max-height:100vh}._fullSizeModalHeader_1w5i1_345,._fullSizeModalImage_1w5i1_361{padding:var(--go-ui-spacing-md)}}._confirmSection_1w5i1_398{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-xl);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._step2Layout_1w5i1_407{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._topRow_1w5i1_413{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._topRow_1w5i1_413._ratingHidden_1w5i1_421{grid-template-columns:1fr}._imageSection_1w5i1_425{position:sticky;top:var(--go-ui-spacing-lg)}._ratingSection_1w5i1_226{display:flex;flex-direction:column}._ratingContent_1w5i1_435{display:flex;flex-direction:column;gap:var(--go-ui-spacing-md)}._bottomRow_1w5i1_441{width:100%}._step2Layout_1w5i1_407{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._mapColumn_1w5i1_453{position:sticky;top:var(--go-ui-spacing-lg)}._contentColumn_1w5i1_458{display:flex;flex-direction:column;gap:var(--go-ui-spacing-lg)}._step2bLayout_1w5i1_465{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._contentColumn_1w5i1_458 ._formGrid_1w5i1_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (max-width: 1024px){._step2Layout_1w5i1_407,._topRow_1w5i1_413{grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._topRow_1w5i1_413._ratingHidden_1w5i1_421{grid-template-columns:1fr}._mapColumn_1w5i1_453,._imageSection_1w5i1_425{position:static}}@media (max-width: 768px){._uploadContainer_1w5i1_1{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm) var(--go-ui-spacing-xl) var(--go-ui-spacing-sm)}._dropZone_1w5i1_9{padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md);min-height:200px}._dropZone_1w5i1_9._hasFile_1w5i1_30{min-height:250px;padding:var(--go-ui-spacing-md)}._filePreviewImage_1w5i1_64{max-width:100%;max-height:15rem;padding:var(--go-ui-spacing-xs)}._filePreviewImage_1w5i1_64 img{max-height:13rem}._ratingSlider_1w5i1_235{gap:var(--go-ui-spacing-xs)}._ratingLabel_1w5i1_242{width:4rem;font-size:var(--go-ui-font-size-xs)}._ratingValue_1w5i1_256{width:2rem;font-size:var(--go-ui-font-size-xs)}}@media (max-width: 480px){._dropZone_1w5i1_9{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm);min-height:180px}._dropZone_1w5i1_9._hasFile_1w5i1_30{min-height:220px}._filePreviewImage_1w5i1_64{max-height:12rem}._filePreviewImage_1w5i1_64 img{max-height:10rem}}._metadataSectionCard_1w5i1_562{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);box-shadow:var(--go-ui-box-shadow-xs)}._droneMetadataSection_1w5i1_571{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._droneMetadataHeading_1w5i1_577{font-size:var(--go-ui-font-size-md);font-weight:600;color:var(--go-ui-color-gray-90);margin-bottom:var(--go-ui-spacing-md);text-align:left}._droneMetadataGrid_1w5i1_585{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-md)}._rtkFixContainer_1w5i1_591{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) 0}._rtkFixLabel_1w5i1_597{display:flex;align-items:center;gap:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-80);cursor:pointer}._rtkFixCheckbox_1w5i1_606{width:1rem;height:1rem;accent-color:var(--go-ui-color-red-90)}@media (max-width: 768px){._droneMetadataGrid_1w5i1_585{grid-template-columns:1fr;gap:var(--go-ui-spacing-sm)}}._confirmButtonContainer_1w5i1_621{margin-top:var(--go-ui-spacing-lg);display:flex;justify-content:center;align-items:center}._ratingWarningContent_1w5i1_629{padding:var(--go-ui-spacing-xl);text-align:center;max-width:500px}._ratingWarningTitle_1w5i1_637{font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900);margin-bottom:var(--go-ui-spacing-md)}._ratingWarningText_1w5i1_644{font-size:var(--go-ui-font-size-md);color:var(--go-ui-color-gray-700);line-height:1.6;margin-bottom:var(--go-ui-spacing-xl)}._ratingWarningButtons_1w5i1_651{display:flex;gap:var(--go-ui-spacing-md);justify-content:center;margin-top:var(--go-ui-spacing-lg)}._preprocessingProgress_1w5i1_658{margin-top:var(--go-ui-spacing-lg);text-align:center;padding:var(--go-ui-spacing-lg);background-color:var(--go-ui-color-background-light);border-radius:var(--go-ui-border-radius-md)}._preprocessingProgress_1w5i1_658 p{margin-bottom:var(--go-ui-spacing-md);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._cropZoomSlider_1w5i1_673{flex:1;height:.5rem;background-color:var(--go-ui-color-gray-30);border-radius:var(--go-ui-border-radius-lg);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none}._cropZoomSlider_1w5i1_673::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm)}._cropZoomSlider_1w5i1_673::-moz-range-thumb{width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm);border:none}._cropZoomSlider_1w5i1_673:focus{outline:none;box-shadow:0 0 0 2px var(--go-ui-color-red-40)}._carouselContainer_1w5i1_711{position:relative;width:100%}._carouselImageWrapper_1w5i1_716{position:relative;width:100%;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);overflow:hidden;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow var(--go-ui-duration-transition-medium) ease}._carouselImageWrapper_1w5i1_716:hover{box-shadow:var(--go-ui-box-shadow-md)}._carouselImage_1w5i1_716{width:100%;height:auto;-o-object-fit:contain;object-fit:contain;image-rendering:pixelated;display:block}._carouselNavigation_1w5i1_739{display:flex;align-items:center;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._carouselButton_1w5i1_751{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-fast) ease;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}._carouselButton_1w5i1_751:hover:not(:disabled){background-color:var(--go-ui-color-gray-20);border-color:var(--go-ui-color-gray-40);transform:translateY(-1px)}._carouselButton_1w5i1_751:disabled{opacity:.5;cursor:not-allowed}._carouselIndicators_1w5i1_775{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._carouselIndicator_1w5i1_775{background-color:var(--go-ui-color-gray-30);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-sm);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);cursor:pointer;transition:all var(--go-ui-duration-transition-fast) ease;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center}._carouselIndicator_1w5i1_775:hover:not(:disabled){background-color:var(--go-ui-color-gray-40);border-color:var(--go-ui-color-gray-50);color:var(--go-ui-color-gray-90)}._carouselIndicatorActive_1w5i1_804{background-color:var(--go-ui-color-red-90);border-color:var(--go-ui-color-red-90);color:var(--go-ui-color-white)}._carouselIndicatorActive_1w5i1_804:hover:not(:disabled){background-color:var(--go-ui-color-red-hover);border-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._carouselIndicator_1w5i1_775:disabled{opacity:.5;cursor:not-allowed}._imageCounter_1w5i1_821{text-align:center;margin-top:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);background-color:var(--go-ui-color-gray-10);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);border-radius:var(--go-ui-border-radius-sm);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._singleImageContainer_1w5i1_834{position:relative;width:100%}._viewImageButtonContainer_1w5i1_840{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}@media (max-width: 768px){._carouselNavigation_1w5i1_739{flex-direction:column;gap:var(--go-ui-spacing-sm)}._carouselIndicators_1w5i1_775{order:-1;margin-bottom:var(--go-ui-spacing-sm)}._carouselButton_1w5i1_751{min-width:36px;height:36px}._carouselIndicator_1w5i1_775{min-width:28px;height:28px;font-size:var(--go-ui-font-size-xs)}._imageCounter_1w5i1_821{font-size:var(--go-ui-font-size-xs)}._viewImageButtonContainer_1w5i1_840{margin-top:var(--go-ui-spacing-sm)}}._helpContainer_1wavj_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md)}._helpSection_1wavj_13{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl);margin-bottom:var(--go-ui-spacing-xl);box-shadow:var(--go-ui-box-shadow-sm);transition:all var(--go-ui-duration-transition-medium) ease;position:relative;overflow:hidden}._helpSection_1wavj_13:hover{box-shadow:var(--go-ui-box-shadow-md);transform:translateY(-2px);border-color:var(--go-ui-color-gray-30)}._sectionHeader_1wavj_49{display:flex;align-items:center;margin-bottom:var(--go-ui-spacing-lg);padding-bottom:var(--go-ui-spacing-md);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._sectionIcon_1wavj_65{width:2rem;height:2rem;margin-right:var(--go-ui-spacing-md);color:var(--go-ui-color-red-90);background-color:var(--go-ui-color-red-5);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._sectionTitle_1wavj_91{color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-semibold);font-size:var(--go-ui-font-size-xl);margin:0}._sectionContent_1wavj_105{color:var(--go-ui-color-gray-700);line-height:1.7;font-size:var(--go-ui-font-size-base);margin-bottom:var(--go-ui-spacing-lg)}._guidelinesList_1wavj_119{list-style:none;padding:0;margin:var(--go-ui-spacing-md) 0}._guidelinesList_1wavj_119 li{position:relative;padding:var(--go-ui-spacing-sm) 0 var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-700);line-height:1.6}._guidelinesList_1wavj_119 li:before{content:"✓";position:absolute;left:0;top:var(--go-ui-spacing-sm);color:var(--go-ui-color-green-70);font-weight:var(--go-ui-font-weight-bold);font-size:var(--go-ui-font-size-sm);background-color:var(--go-ui-color-green-5);border-radius:50%;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}._buttonContainer_1wavj_181{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-xl)}._featureHighlight_1wavj_193{background:linear-gradient(135deg,var(--go-ui-color-blue-5),var(--go-ui-color-blue-10));border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-blue-20);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);margin:var(--go-ui-spacing-lg) 0;position:relative}._featureHighlight_1wavj_193:before{content:"💡";position:absolute;top:var(--go-ui-spacing-md);right:var(--go-ui-spacing-md);font-size:1.5rem}._featureHighlightText_1wavj_227{color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium);margin:0;font-size:var(--go-ui-font-size-sm)}@media (max-width: 768px){._helpSection_1wavj_13{padding:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._sectionHeader_1wavj_49{flex-direction:column;text-align:center;gap:var(--go-ui-spacing-sm)}._sectionIcon_1wavj_65{margin-right:0;margin-bottom:var(--go-ui-spacing-sm)}._actionButton_1wavj_277{padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);font-size:var(--go-ui-font-size-sm)}} diff --git a/py_backend/static/assets/useAdmin-BStaIYmd.js b/py_backend/static/assets/useAdmin-BStaIYmd.js deleted file mode 100644 index 1e05cb6077aa91ba2989027f7a25c3232e7509ad..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/useAdmin-BStaIYmd.js +++ /dev/null @@ -1 +0,0 @@ -import{r}from"./vendor-react-BxsGb6Ph.js";import{A as o}from"./index-DyXqjI96.js";const i=()=>{const t=r.useContext(o);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{i as u}; diff --git a/py_backend/static/assets/useAdmin-B_k2Fdj-.js b/py_backend/static/assets/useAdmin-B_k2Fdj-.js deleted file mode 100644 index 056c46669fdbd4cd337c47bd6b92c07a504bec8a..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/useAdmin-B_k2Fdj-.js +++ /dev/null @@ -1 +0,0 @@ -import{r}from"./vendor-react-BxsGb6Ph.js";import{A as o}from"./index-Uy48qW96.js";const i=()=>{const t=r.useContext(o);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{i as u}; diff --git a/py_backend/static/assets/vendor-DxpCibxB.js b/py_backend/static/assets/vendor-DxpCibxB.js deleted file mode 100644 index 62519081e13de4cda6d263b5a3aba9a92cb60a02..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/vendor-DxpCibxB.js +++ /dev/null @@ -1,28 +0,0 @@ -import{r as C}from"./vendor-react-BxsGb6Ph.js";var na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}},vt={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Vt;function zr(){return Vt||(Vt=1,function(e){function t(y,L){var U=y.length;y.push(L);e:for(;0>>1,W=y[H];if(0>>1;Ha(ie,U))oea(ce,ie)?(y[H]=ce,y[oe]=U,H=oe):(y[H]=ie,y[ue]=U,H=ue);else if(oea(ce,U))y[H]=ce,y[oe]=U,H=oe;else break e}}return L}function a(y,L){var U=y.sortIndex-L.sortIndex;return U!==0?U:y.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var s=[],m=[],v=1,f=null,g=3,w=!1,S=!1,R=!1,_=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(y){for(var L=r(m);L!==null;){if(L.callback===null)n(m);else if(L.startTime<=y)n(m),L.sortIndex=L.expirationTime,t(s,L);else break;L=r(m)}}function re(y){if(R=!1,G(y),!S)if(r(s)!==null)S=!0,Re(Z);else{var L=r(m);L!==null&&Pe(re,L.startTime-y)}}function Z(y,L){S=!1,R&&(R=!1,z(B),B=-1),w=!0;var U=g;try{for(G(L),f=r(s);f!==null&&(!(f.expirationTime>L)||y&&!ne());){var H=f.callback;if(typeof H=="function"){f.callback=null,g=f.priorityLevel;var W=H(f.expirationTime<=L);L=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(s)&&n(s),G(L)}else n(s);f=r(s)}if(f!==null)var fe=!0;else{var ue=r(m);ue!==null&&Pe(re,ue.startTime-L),fe=!1}return fe}finally{f=null,g=U,w=!1}}var me=!1,h=null,B=-1,Q=5,V=-1;function ne(){return!(e.unstable_now()-Vy||125H?(y.sortIndex=U,t(m,y),r(s)===null&&y===r(m)&&(R?(z(B),B=-1):R=!0,Pe(re,U-H))):(y.sortIndex=W,t(s,y),S||w||(S=!0,Re(Z))),y},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(y){var L=g;return function(){var U=g;g=L;try{return y.apply(this,arguments)}finally{g=U}}}}(vt)),vt}var $t;function ia(){return $t||($t=1,pt.exports=zr()),pt.exports}/** - * @remix-run/router v1.23.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ke(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hr(){return Math.random().toString(36).substr(2,8)}function Kt(e,t){return{usr:e.state,key:e.key,idx:t}}function Ge(e,t,r,n){return r===void 0&&(r=null),J({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ce(t):t,{state:r,key:t&&t.key||n||Hr()})}function qe(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ce(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Wr(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:u=!1}=n,o=a.history,c=q.Pop,s=null,m=v();m==null&&(m=0,o.replaceState(J({},o.state,{idx:m}),""));function v(){return(o.state||{idx:null}).idx}function f(){c=q.Pop;let _=v(),z=_==null?null:_-m;m=_,s&&s({action:c,location:R.location,delta:z})}function g(_,z){c=q.Push;let F=Ge(R.location,_,z);m=v()+1;let G=Kt(F,m),re=R.createHref(F);try{o.pushState(G,"",re)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;a.location.assign(re)}u&&s&&s({action:c,location:R.location,delta:1})}function w(_,z){c=q.Replace;let F=Ge(R.location,_,z);m=v();let G=Kt(F,m),re=R.createHref(F);o.replaceState(G,"",re),u&&s&&s({action:c,location:R.location,delta:0})}function S(_){let z=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof _=="string"?_:qe(_);return F=F.replace(/ $/,"%20"),N(z,"No window.location.(origin|href) available to create URL for href: "+F),new URL(F,z)}let R={get action(){return c},get location(){return e(a,o)},listen(_){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Jt,f),s=_,()=>{a.removeEventListener(Jt,f),s=null}},createHref(_){return t(a,_)},createURL:S,encodeLocation(_){let z=S(_);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:g,replace:w,go(_){return o.go(_)}};return R}var k;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(k||(k={}));const Vr=new Set(["lazy","caseSensitive","path","id","index","children"]);function $r(e){return e.index===!0}function ut(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,u)=>{let o=[...r,String(u)],c=typeof a.id=="string"?a.id:o.join("-");if(N(a.index!==!0||!a.children,"Cannot specify children on an index route"),N(!n[c],'Found a route id collision on id "'+c+`". Route id's must be globally unique within Data Router usages`),$r(a)){let s=J({},a,t(a),{id:c});return n[c]=s,s}else{let s=J({},a,t(a),{id:c,children:void 0});return n[c]=s,a.children&&(s.children=ut(a.children,t,o,n)),s}})}function Ue(e,t,r){return r===void 0&&(r="/"),st(e,t,r,!1)}function st(e,t,r,n){let a=typeof t=="string"?Ce(t):t,u=Qe(a.pathname||"/",r);if(u==null)return null;let o=dr(e);Kr(o);let c=null;for(let s=0;c==null&&s{let s={relativePath:c===void 0?u.path||"":c,caseSensitive:u.caseSensitive===!0,childrenIndex:o,route:u};s.relativePath.startsWith("/")&&(N(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let m=we([n,s.relativePath]),v=r.concat(s);u.children&&u.children.length>0&&(N(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),dr(u.children,t,v,m)),!(u.path==null&&!u.index)&&t.push({path:m,score:en(m,u.index),routesMeta:v})};return e.forEach((u,o)=>{var c;if(u.path===""||!((c=u.path)!=null&&c.includes("?")))a(u,o);else for(let s of cr(u.path))a(u,o,s)}),t}function cr(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return a?[u,""]:[u];let o=cr(n.join("/")),c=[];return c.push(...o.map(s=>s===""?u:[u,s].join("/"))),a&&c.push(...o),c.map(s=>e.startsWith("/")&&s===""?"/":s)}function Kr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:tn(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Yr=/^:[\w-]+$/,Gr=3,Xr=2,qr=1,Qr=10,Zr=-2,Yt=e=>e==="*";function en(e,t){let r=e.split("/"),n=r.length;return r.some(Yt)&&(n+=Zr),t&&(n+=Xr),r.filter(a=>!Yt(a)).reduce((a,u)=>a+(Yr.test(u)?Gr:u===""?qr:Qr),n)}function tn(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function rn(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},u="/",o=[];for(let c=0;c{let{paramName:g,isOptional:w}=v;if(g==="*"){let R=c[f]||"";o=u.slice(0,u.length-R.length).replace(/(.)\/+$/,"$1")}const S=c[f];return w&&!S?m[g]=void 0:m[g]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:o,pattern:e}}function nn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ke(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,s)=>(n.push({paramName:c,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function an(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ke(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Qe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function on(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Ce(e):e;return{pathname:r?r.startsWith("/")?r:ln(r,t):t,search:un(n),hash:dn(a)}}function ln(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function gt(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function fr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dt(e,t){let r=fr(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xt(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Ce(e):(a=J({},e),N(!a.pathname||!a.pathname.includes("?"),gt("?","pathname","search",a)),N(!a.pathname||!a.pathname.includes("#"),gt("#","pathname","hash",a)),N(!a.search||!a.search.includes("#"),gt("#","search","hash",a)));let u=e===""||a.pathname==="",o=u?"/":a.pathname,c;if(o==null)c=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),f-=1;a.pathname=g.join("/")}c=f>=0?t[f]:"/"}let s=on(a,c),m=o&&o!=="/"&&o.endsWith("/"),v=(u||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(m||v)&&(s.pathname+="/"),s}const we=e=>e.join("/").replace(/\/\/+/g,"/"),sn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),un=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wt{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Xe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hr=["post","put","patch","delete"],cn=new Set(hr),fn=["get",...hr],hn=new Set(fn),mn=new Set([301,302,303,307,308]),pn=new Set([307,308]),yt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vn={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Je={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},St=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),mr="remix-router-transitions";function la(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;N(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let i=e.detectErrorBoundary;a=l=>({hasErrorBoundary:i(l)})}else a=gn;let u={},o=ut(e.routes,a,void 0,u),c,s=e.basename||"/",m=e.dataStrategy||En,v=e.patchRoutesOnNavigation,f=J({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,w=new Set,S=null,R=null,_=null,z=e.hydrationData!=null,F=Ue(o,e.history.location,s),G=!1,re=null;if(F==null&&!v){let i=se(404,{pathname:e.history.location.pathname}),{matches:l,route:d}=or(o);F=l,re={[d.id]:i}}F&&!e.hydrationData&&nt(F,o,e.history.location.pathname).active&&(F=null);let Z;if(F)if(F.some(i=>i.route.lazy))Z=!1;else if(!F.some(i=>i.route.loader))Z=!0;else if(f.v7_partialHydration){let i=e.hydrationData?e.hydrationData.loaderData:null,l=e.hydrationData?e.hydrationData.errors:null;if(l){let d=F.findIndex(p=>l[p.route.id]!==void 0);Z=F.slice(0,d+1).every(p=>!Rt(p.route,i,l))}else Z=F.every(d=>!Rt(d.route,i,l))}else Z=e.hydrationData!=null;else if(Z=!1,F=[],f.v7_partialHydration){let i=nt(null,o,e.history.location.pathname);i.active&&i.matches&&(G=!0,F=i.matches)}let me,h={historyAction:e.history.action,location:e.history.location,matches:F,initialized:Z,navigation:yt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||re,fetchers:new Map,blockers:new Map},B=q.Pop,Q=!1,V,ne=!1,ae=new Map,ee=null,ve=!1,ge=!1,Re=[],Pe=new Set,y=new Map,L=0,U=-1,H=new Map,W=new Set,fe=new Map,ue=new Map,ie=new Set,oe=new Map,ce=new Map,et;function Dr(){if(g=e.history.listen(i=>{let{action:l,location:d,delta:p}=i;if(et){et(),et=void 0;return}ke(ce.size===0||p!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let b=kt({currentLocation:h.location,nextLocation:d,historyAction:l});if(b&&p!=null){let M=new Promise(T=>{et=T});e.history.go(p*-1),rt(b,{state:"blocked",location:d,proceed(){rt(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),M.then(()=>e.history.go(p))},reset(){let T=new Map(h.blockers);T.set(b,Je),le({blockers:T})}});return}return Le(l,d)}),r){Nn(t,ae);let i=()=>jn(t,ae);t.addEventListener("pagehide",i),ee=()=>t.removeEventListener("pagehide",i)}return h.initialized||Le(q.Pop,h.location,{initialHydration:!0}),me}function xr(){g&&g(),ee&&ee(),w.clear(),V&&V.abort(),h.fetchers.forEach((i,l)=>tt(l)),h.blockers.forEach((i,l)=>Bt(l))}function Sr(i){return w.add(i),()=>w.delete(i)}function le(i,l){l===void 0&&(l={}),h=J({},h,i);let d=[],p=[];f.v7_fetcherPersist&&h.fetchers.forEach((b,M)=>{b.state==="idle"&&(ie.has(M)?p.push(M):d.push(M))}),ie.forEach(b=>{!h.fetchers.has(b)&&!y.has(b)&&p.push(b)}),[...w].forEach(b=>b(h,{deletedFetchers:p,viewTransitionOpts:l.viewTransitionOpts,flushSync:l.flushSync===!0})),f.v7_fetcherPersist?(d.forEach(b=>h.fetchers.delete(b)),p.forEach(b=>tt(b))):p.forEach(b=>ie.delete(b))}function Ne(i,l,d){var p,b;let{flushSync:M}=d===void 0?{}:d,T=h.actionData!=null&&h.navigation.formMethod!=null&&he(h.navigation.formMethod)&&h.navigation.state==="loading"&&((p=i.state)==null?void 0:p._isRedirect)!==!0,P;l.actionData?Object.keys(l.actionData).length>0?P=l.actionData:P=null:T?P=h.actionData:P=null;let D=l.loaderData?ar(h.loaderData,l.loaderData,l.matches||[],l.errors):h.loaderData,E=h.blockers;E.size>0&&(E=new Map(E),E.forEach((j,te)=>E.set(te,Je)));let x=Q===!0||h.navigation.formMethod!=null&&he(h.navigation.formMethod)&&((b=i.state)==null?void 0:b._isRedirect)!==!0;c&&(o=c,c=void 0),ve||B===q.Pop||(B===q.Push?e.history.push(i,i.state):B===q.Replace&&e.history.replace(i,i.state));let I;if(B===q.Pop){let j=ae.get(h.location.pathname);j&&j.has(i.pathname)?I={currentLocation:h.location,nextLocation:i}:ae.has(i.pathname)&&(I={currentLocation:i,nextLocation:h.location})}else if(ne){let j=ae.get(h.location.pathname);j?j.add(i.pathname):(j=new Set([i.pathname]),ae.set(h.location.pathname,j)),I={currentLocation:h.location,nextLocation:i}}le(J({},l,{actionData:P,loaderData:D,historyAction:B,location:i,initialized:!0,navigation:yt,revalidation:"idle",restoreScrollPosition:Ht(i,l.matches||h.matches),preventScrollReset:x,blockers:E}),{viewTransitionOpts:I,flushSync:M===!0}),B=q.Pop,Q=!1,ne=!1,ve=!1,ge=!1,Re=[]}async function Ut(i,l){if(typeof i=="number"){e.history.go(i);return}let d=Et(h.location,h.matches,s,f.v7_prependBasename,i,f.v7_relativeSplatPath,l?.fromRouteId,l?.relative),{path:p,submission:b,error:M}=Xt(f.v7_normalizeFormMethod,!1,d,l),T=h.location,P=Ge(h.location,p,l&&l.state);P=J({},P,e.history.encodeLocation(P));let D=l&&l.replace!=null?l.replace:void 0,E=q.Push;D===!0?E=q.Replace:D===!1||b!=null&&he(b.formMethod)&&b.formAction===h.location.pathname+h.location.search&&(E=q.Replace);let x=l&&"preventScrollReset"in l?l.preventScrollReset===!0:void 0,I=(l&&l.flushSync)===!0,j=kt({currentLocation:T,nextLocation:P,historyAction:E});if(j){rt(j,{state:"blocked",location:P,proceed(){rt(j,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),Ut(i,l)},reset(){let te=new Map(h.blockers);te.set(j,Je),le({blockers:te})}});return}return await Le(E,P,{submission:b,pendingError:M,preventScrollReset:x,replace:l&&l.replace,enableViewTransition:l&&l.viewTransition,flushSync:I})}function Mr(){if(ct(),le({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){Le(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}Le(B||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation,enableViewTransition:ne===!0})}}async function Le(i,l,d){V&&V.abort(),V=null,B=i,ve=(d&&d.startUninterruptedRevalidation)===!0,Or(h.location,h.matches),Q=(d&&d.preventScrollReset)===!0,ne=(d&&d.enableViewTransition)===!0;let p=c||o,b=d&&d.overrideNavigation,M=d!=null&&d.initialHydration&&h.matches&&h.matches.length>0&&!G?h.matches:Ue(p,l,s),T=(d&&d.flushSync)===!0;if(M&&h.initialized&&!ge&&Mn(h.location,l)&&!(d&&d.submission&&he(d.submission.formMethod))){Ne(l,{matches:M},{flushSync:T});return}let P=nt(M,p,l.pathname);if(P.active&&P.matches&&(M=P.matches),!M){let{error:$,notFoundMatches:A,route:K}=ft(l.pathname);Ne(l,{matches:A,loaderData:{},errors:{[K.id]:$}},{flushSync:T});return}V=new AbortController;let D=Be(e.history,l,V.signal,d&&d.submission),E;if(d&&d.pendingError)E=[Fe(M).route.id,{type:k.error,error:d.pendingError}];else if(d&&d.submission&&he(d.submission.formMethod)){let $=await Cr(D,l,d.submission,M,P.active,{replace:d.replace,flushSync:T});if($.shortCircuited)return;if($.pendingActionResult){let[A,K]=$.pendingActionResult;if(de(K)&&Xe(K.error)&&K.error.status===404){V=null,Ne(l,{matches:$.matches,loaderData:{},errors:{[A]:K.error}});return}}M=$.matches||M,E=$.pendingActionResult,b=bt(l,d.submission),T=!1,P.active=!1,D=Be(e.history,D.url,D.signal)}let{shortCircuited:x,matches:I,loaderData:j,errors:te}=await Lr(D,l,M,P.active,b,d&&d.submission,d&&d.fetcherSubmission,d&&d.replace,d&&d.initialHydration===!0,T,E);x||(V=null,Ne(l,J({matches:I||M},ir(E),{loaderData:j,errors:te})))}async function Cr(i,l,d,p,b,M){M===void 0&&(M={}),ct();let T=Fn(l,d);if(le({navigation:T},{flushSync:M.flushSync===!0}),b){let E=await at(p,l.pathname,i.signal);if(E.type==="aborted")return{shortCircuited:!0};if(E.type==="error"){let x=Fe(E.partialMatches).route.id;return{matches:E.partialMatches,pendingActionResult:[x,{type:k.error,error:E.error}]}}else if(E.matches)p=E.matches;else{let{notFoundMatches:x,error:I,route:j}=ft(l.pathname);return{matches:x,pendingActionResult:[j.id,{type:k.error,error:I}]}}}let P,D=Ye(p,l);if(!D.route.action&&!D.route.lazy)P={type:k.error,error:se(405,{method:i.method,pathname:l.pathname,routeId:D.route.id})};else if(P=(await He("action",h,i,[D],p,null))[D.route.id],i.signal.aborted)return{shortCircuited:!0};if(Ie(P)){let E;return M&&M.replace!=null?E=M.replace:E=tr(P.response.headers.get("Location"),new URL(i.url),s)===h.location.pathname+h.location.search,await Te(i,P,!0,{submission:d,replace:E}),{shortCircuited:!0}}if(Me(P))throw se(400,{type:"defer-action"});if(de(P)){let E=Fe(p,D.route.id);return(M&&M.replace)!==!0&&(B=q.Push),{matches:p,pendingActionResult:[E.route.id,P]}}return{matches:p,pendingActionResult:[D.route.id,P]}}async function Lr(i,l,d,p,b,M,T,P,D,E,x){let I=b||bt(l,M),j=M||T||sr(I),te=!ve&&(!f.v7_partialHydration||!D);if(p){if(te){let Y=Ft(x);le(J({navigation:I},Y!==void 0?{actionData:Y}:{}),{flushSync:E})}let O=await at(d,l.pathname,i.signal);if(O.type==="aborted")return{shortCircuited:!0};if(O.type==="error"){let Y=Fe(O.partialMatches).route.id;return{matches:O.partialMatches,loaderData:{},errors:{[Y]:O.error}}}else if(O.matches)d=O.matches;else{let{error:Y,notFoundMatches:Oe,route:$e}=ft(l.pathname);return{matches:Oe,loaderData:{},errors:{[$e.id]:Y}}}}let $=c||o,[A,K]=Qt(e.history,h,d,j,l,f.v7_partialHydration&&D===!0,f.v7_skipActionErrorRevalidation,ge,Re,Pe,ie,fe,W,$,s,x);if(ht(O=>!(d&&d.some(Y=>Y.route.id===O))||A&&A.some(Y=>Y.route.id===O)),U=++L,A.length===0&&K.length===0){let O=Ot();return Ne(l,J({matches:d,loaderData:{},errors:x&&de(x[1])?{[x[0]]:x[1].error}:null},ir(x),O?{fetchers:new Map(h.fetchers)}:{}),{flushSync:E}),{shortCircuited:!0}}if(te){let O={};if(!p){O.navigation=I;let Y=Ft(x);Y!==void 0&&(O.actionData=Y)}K.length>0&&(O.fetchers=Tr(K)),le(O,{flushSync:E})}K.forEach(O=>{xe(O.key),O.controller&&y.set(O.key,O.controller)});let je=()=>K.forEach(O=>xe(O.key));V&&V.signal.addEventListener("abort",je);let{loaderResults:We,fetcherResults:be}=await It(h,d,A,K,i);if(i.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",je),K.forEach(O=>y.delete(O.key));let pe=lt(We);if(pe)return await Te(i,pe.result,!0,{replace:P}),{shortCircuited:!0};if(pe=lt(be),pe)return W.add(pe.key),await Te(i,pe.result,!0,{replace:P}),{shortCircuited:!0};let{loaderData:mt,errors:Ve}=nr(h,d,We,x,K,be,oe);oe.forEach((O,Y)=>{O.subscribe(Oe=>{(Oe||O.done)&&oe.delete(Y)})}),f.v7_partialHydration&&D&&h.errors&&(Ve=J({},h.errors,Ve));let _e=Ot(),it=At(U),ot=_e||it||K.length>0;return J({matches:d,loaderData:mt,errors:Ve},ot?{fetchers:new Map(h.fetchers)}:{})}function Ft(i){if(i&&!de(i[1]))return{[i[0]]:i[1].data};if(h.actionData)return Object.keys(h.actionData).length===0?null:h.actionData}function Tr(i){return i.forEach(l=>{let d=h.fetchers.get(l.key),p=Ke(void 0,d?d.data:void 0);h.fetchers.set(l.key,p)}),new Map(h.fetchers)}function _r(i,l,d,p){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");xe(i);let b=(p&&p.flushSync)===!0,M=c||o,T=Et(h.location,h.matches,s,f.v7_prependBasename,d,f.v7_relativeSplatPath,l,p?.relative),P=Ue(M,T,s),D=nt(P,M,T);if(D.active&&D.matches&&(P=D.matches),!P){ye(i,l,se(404,{pathname:T}),{flushSync:b});return}let{path:E,submission:x,error:I}=Xt(f.v7_normalizeFormMethod,!0,T,p);if(I){ye(i,l,I,{flushSync:b});return}let j=Ye(P,E),te=(p&&p.preventScrollReset)===!0;if(x&&he(x.formMethod)){Ur(i,l,E,j,P,D.active,b,te,x);return}fe.set(i,{routeId:l,path:E}),Fr(i,l,E,j,P,D.active,b,te,x)}async function Ur(i,l,d,p,b,M,T,P,D){ct(),fe.delete(i);function E(X){if(!X.route.action&&!X.route.lazy){let Ae=se(405,{method:D.formMethod,pathname:d,routeId:l});return ye(i,l,Ae,{flushSync:T}),!0}return!1}if(!M&&E(p))return;let x=h.fetchers.get(i);De(i,In(D,x),{flushSync:T});let I=new AbortController,j=Be(e.history,d,I.signal,D);if(M){let X=await at(b,new URL(j.url).pathname,j.signal,i);if(X.type==="aborted")return;if(X.type==="error"){ye(i,l,X.error,{flushSync:T});return}else if(X.matches){if(b=X.matches,p=Ye(b,d),E(p))return}else{ye(i,l,se(404,{pathname:d}),{flushSync:T});return}}y.set(i,I);let te=L,A=(await He("action",h,j,[p],b,i))[p.route.id];if(j.signal.aborted){y.get(i)===I&&y.delete(i);return}if(f.v7_fetcherPersist&&ie.has(i)){if(Ie(A)||de(A)){De(i,Se(void 0));return}}else{if(Ie(A))if(y.delete(i),U>te){De(i,Se(void 0));return}else return W.add(i),De(i,Ke(D)),Te(j,A,!1,{fetcherSubmission:D,preventScrollReset:P});if(de(A)){ye(i,l,A.error);return}}if(Me(A))throw se(400,{type:"defer-action"});let K=h.navigation.location||h.location,je=Be(e.history,K,I.signal),We=c||o,be=h.navigation.state!=="idle"?Ue(We,h.navigation.location,s):h.matches;N(be,"Didn't find any matches after fetcher action");let pe=++L;H.set(i,pe);let mt=Ke(D,A.data);h.fetchers.set(i,mt);let[Ve,_e]=Qt(e.history,h,be,D,K,!1,f.v7_skipActionErrorRevalidation,ge,Re,Pe,ie,fe,W,We,s,[p.route.id,A]);_e.filter(X=>X.key!==i).forEach(X=>{let Ae=X.key,Wt=h.fetchers.get(Ae),kr=Ke(void 0,Wt?Wt.data:void 0);h.fetchers.set(Ae,kr),xe(Ae),X.controller&&y.set(Ae,X.controller)}),le({fetchers:new Map(h.fetchers)});let it=()=>_e.forEach(X=>xe(X.key));I.signal.addEventListener("abort",it);let{loaderResults:ot,fetcherResults:O}=await It(h,be,Ve,_e,je);if(I.signal.aborted)return;I.signal.removeEventListener("abort",it),H.delete(i),y.delete(i),_e.forEach(X=>y.delete(X.key));let Y=lt(ot);if(Y)return Te(je,Y.result,!1,{preventScrollReset:P});if(Y=lt(O),Y)return W.add(Y.key),Te(je,Y.result,!1,{preventScrollReset:P});let{loaderData:Oe,errors:$e}=nr(h,be,ot,void 0,_e,O,oe);if(h.fetchers.has(i)){let X=Se(A.data);h.fetchers.set(i,X)}At(pe),h.navigation.state==="loading"&&pe>U?(N(B,"Expected pending action"),V&&V.abort(),Ne(h.navigation.location,{matches:be,loaderData:Oe,errors:$e,fetchers:new Map(h.fetchers)})):(le({errors:$e,loaderData:ar(h.loaderData,Oe,be,$e),fetchers:new Map(h.fetchers)}),ge=!1)}async function Fr(i,l,d,p,b,M,T,P,D){let E=h.fetchers.get(i);De(i,Ke(D,E?E.data:void 0),{flushSync:T});let x=new AbortController,I=Be(e.history,d,x.signal);if(M){let A=await at(b,new URL(I.url).pathname,I.signal,i);if(A.type==="aborted")return;if(A.type==="error"){ye(i,l,A.error,{flushSync:T});return}else if(A.matches)b=A.matches,p=Ye(b,d);else{ye(i,l,se(404,{pathname:d}),{flushSync:T});return}}y.set(i,x);let j=L,$=(await He("loader",h,I,[p],b,i))[p.route.id];if(Me($)&&($=await Mt($,I.signal,!0)||$),y.get(i)===x&&y.delete(i),!I.signal.aborted){if(ie.has(i)){De(i,Se(void 0));return}if(Ie($))if(U>j){De(i,Se(void 0));return}else{W.add(i),await Te(I,$,!1,{preventScrollReset:P});return}if(de($)){ye(i,l,$.error);return}N(!Me($),"Unhandled fetcher deferred data"),De(i,Se($.data))}}async function Te(i,l,d,p){let{submission:b,fetcherSubmission:M,preventScrollReset:T,replace:P}=p===void 0?{}:p;l.response.headers.has("X-Remix-Revalidate")&&(ge=!0);let D=l.response.headers.get("Location");N(D,"Expected a Location header on the redirect Response"),D=tr(D,new URL(i.url),s);let E=Ge(h.location,D,{_isRedirect:!0});if(r){let A=!1;if(l.response.headers.has("X-Remix-Reload-Document"))A=!0;else if(St.test(D)){const K=e.history.createURL(D);A=K.origin!==t.location.origin||Qe(K.pathname,s)==null}if(A){P?t.location.replace(D):t.location.assign(D);return}}V=null;let x=P===!0||l.response.headers.has("X-Remix-Replace")?q.Replace:q.Push,{formMethod:I,formAction:j,formEncType:te}=h.navigation;!b&&!M&&I&&j&&te&&(b=sr(h.navigation));let $=b||M;if(pn.has(l.response.status)&&$&&he($.formMethod))await Le(x,E,{submission:J({},$,{formAction:D}),preventScrollReset:T||Q,enableViewTransition:d?ne:void 0});else{let A=bt(E,b);await Le(x,E,{overrideNavigation:A,fetcherSubmission:M,preventScrollReset:T||Q,enableViewTransition:d?ne:void 0})}}async function He(i,l,d,p,b,M){let T,P={};try{T=await Rn(m,i,l,d,p,b,M,u,a)}catch(D){return p.forEach(E=>{P[E.route.id]={type:k.error,error:D}}),P}for(let[D,E]of Object.entries(T))if(Cn(E)){let x=E.result;P[D]={type:k.redirect,response:xn(x,d,D,b,s,f.v7_relativeSplatPath)}}else P[D]=await Dn(E);return P}async function It(i,l,d,p,b){let M=i.matches,T=He("loader",i,b,d,l,null),P=Promise.all(p.map(async x=>{if(x.matches&&x.match&&x.controller){let j=(await He("loader",i,Be(e.history,x.path,x.controller.signal),[x.match],x.matches,x.key))[x.match.route.id];return{[x.key]:j}}else return Promise.resolve({[x.key]:{type:k.error,error:se(404,{pathname:x.path})}})})),D=await T,E=(await P).reduce((x,I)=>Object.assign(x,I),{});return await Promise.all([_n(l,D,b.signal,M,i.loaderData),Un(l,E,p)]),{loaderResults:D,fetcherResults:E}}function ct(){ge=!0,Re.push(...ht()),fe.forEach((i,l)=>{y.has(l)&&Pe.add(l),xe(l)})}function De(i,l,d){d===void 0&&(d={}),h.fetchers.set(i,l),le({fetchers:new Map(h.fetchers)},{flushSync:(d&&d.flushSync)===!0})}function ye(i,l,d,p){p===void 0&&(p={});let b=Fe(h.matches,l);tt(i),le({errors:{[b.route.id]:d},fetchers:new Map(h.fetchers)},{flushSync:(p&&p.flushSync)===!0})}function Nt(i){return ue.set(i,(ue.get(i)||0)+1),ie.has(i)&&ie.delete(i),h.fetchers.get(i)||vn}function tt(i){let l=h.fetchers.get(i);y.has(i)&&!(l&&l.state==="loading"&&H.has(i))&&xe(i),fe.delete(i),H.delete(i),W.delete(i),f.v7_fetcherPersist&&ie.delete(i),Pe.delete(i),h.fetchers.delete(i)}function Ir(i){let l=(ue.get(i)||0)-1;l<=0?(ue.delete(i),ie.add(i),f.v7_fetcherPersist||tt(i)):ue.set(i,l),le({fetchers:new Map(h.fetchers)})}function xe(i){let l=y.get(i);l&&(l.abort(),y.delete(i))}function jt(i){for(let l of i){let d=Nt(l),p=Se(d.data);h.fetchers.set(l,p)}}function Ot(){let i=[],l=!1;for(let d of W){let p=h.fetchers.get(d);N(p,"Expected fetcher: "+d),p.state==="loading"&&(W.delete(d),i.push(d),l=!0)}return jt(i),l}function At(i){let l=[];for(let[d,p]of H)if(p0}function Nr(i,l){let d=h.blockers.get(i)||Je;return ce.get(i)!==l&&ce.set(i,l),d}function Bt(i){h.blockers.delete(i),ce.delete(i)}function rt(i,l){let d=h.blockers.get(i)||Je;N(d.state==="unblocked"&&l.state==="blocked"||d.state==="blocked"&&l.state==="blocked"||d.state==="blocked"&&l.state==="proceeding"||d.state==="blocked"&&l.state==="unblocked"||d.state==="proceeding"&&l.state==="unblocked","Invalid blocker state transition: "+d.state+" -> "+l.state);let p=new Map(h.blockers);p.set(i,l),le({blockers:p})}function kt(i){let{currentLocation:l,nextLocation:d,historyAction:p}=i;if(ce.size===0)return;ce.size>1&&ke(!1,"A router only supports one blocker at a time");let b=Array.from(ce.entries()),[M,T]=b[b.length-1],P=h.blockers.get(M);if(!(P&&P.state==="proceeding")&&T({currentLocation:l,nextLocation:d,historyAction:p}))return M}function ft(i){let l=se(404,{pathname:i}),d=c||o,{matches:p,route:b}=or(d);return ht(),{notFoundMatches:p,route:b,error:l}}function ht(i){let l=[];return oe.forEach((d,p)=>{(!i||i(p))&&(d.cancel(),l.push(p),oe.delete(p))}),l}function jr(i,l,d){if(S=i,_=l,R=d||null,!z&&h.navigation===yt){z=!0;let p=Ht(h.location,h.matches);p!=null&&le({restoreScrollPosition:p})}return()=>{S=null,_=null,R=null}}function zt(i,l){return R&&R(i,l.map(p=>Jr(p,h.loaderData)))||i.key}function Or(i,l){if(S&&_){let d=zt(i,l);S[d]=_()}}function Ht(i,l){if(S){let d=zt(i,l),p=S[d];if(typeof p=="number")return p}return null}function nt(i,l,d){if(v)if(i){if(Object.keys(i[0].params).length>0)return{active:!0,matches:st(l,d,s,!0)}}else return{active:!0,matches:st(l,d,s,!0)||[]};return{active:!1,matches:null}}async function at(i,l,d,p){if(!v)return{type:"success",matches:i};let b=i;for(;;){let M=c==null,T=c||o,P=u;try{await v({signal:d,path:l,matches:b,fetcherKey:p,patch:(x,I)=>{d.aborted||er(x,I,T,P,a)}})}catch(x){return{type:"error",error:x,partialMatches:b}}finally{M&&!d.aborted&&(o=[...o])}if(d.aborted)return{type:"aborted"};let D=Ue(T,l,s);if(D)return{type:"success",matches:D};let E=st(T,l,s,!0);if(!E||b.length===E.length&&b.every((x,I)=>x.route.id===E[I].route.id))return{type:"success",matches:null};b=E}}function Ar(i){u={},c=ut(i,a,void 0,u)}function Br(i,l){let d=c==null;er(i,l,c||o,u,a),d&&(o=[...o],le({}))}return me={get basename(){return s},get future(){return f},get state(){return h},get routes(){return o},get window(){return t},initialize:Dr,subscribe:Sr,enableScrollRestoration:jr,navigate:Ut,fetch:_r,revalidate:Mr,createHref:i=>e.history.createHref(i),encodeLocation:i=>e.history.encodeLocation(i),getFetcher:Nt,deleteFetcher:Ir,dispose:xr,getBlocker:Nr,deleteBlocker:Bt,patchRoutes:Br,_internalFetchControllers:y,_internalActiveDeferreds:oe,_internalSetRoutes:Ar},me}function yn(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Et(e,t,r,n,a,u,o,c){let s,m;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){m=f;break}}else s=t,m=t[t.length-1];let v=xt(a||".",Dt(s,u),Qe(e.pathname,r)||e.pathname,c==="path");if(a==null&&(v.search=e.search,v.hash=e.hash),(a==null||a===""||a===".")&&m){let f=Ct(v.search);if(m.route.index&&!f)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&f){let g=new URLSearchParams(v.search),w=g.getAll("index");g.delete("index"),w.filter(R=>R).forEach(R=>g.append("index",R));let S=g.toString();v.search=S?"?"+S:""}}return n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:we([r,v.pathname])),qe(v)}function Xt(e,t,r,n){if(!n||!yn(n))return{path:r};if(n.formMethod&&!Tn(n.formMethod))return{path:r,error:se(405,{method:n.formMethod})};let a=()=>({path:r,error:se(400,{type:"invalid-body"})}),u=n.formMethod||"get",o=e?u.toUpperCase():u.toLowerCase(),c=gr(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!he(o))return a();let g=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,S)=>{let[R,_]=S;return""+w+R+"="+_+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:g}}}else if(n.formEncType==="application/json"){if(!he(o))return a();try{let g=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:g,text:void 0}}}catch{return a()}}}N(typeof FormData=="function","FormData is not available in this environment");let s,m;if(n.formData)s=Pt(n.formData),m=n.formData;else if(n.body instanceof FormData)s=Pt(n.body),m=n.body;else if(n.body instanceof URLSearchParams)s=n.body,m=rr(s);else if(n.body==null)s=new URLSearchParams,m=new FormData;else try{s=new URLSearchParams(n.body),m=rr(s)}catch{return a()}let v={formMethod:o,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(he(v.formMethod))return{path:r,submission:v};let f=Ce(r);return t&&f.search&&Ct(f.search)&&s.append("index",""),f.search="?"+s,{path:qe(f),submission:v}}function qt(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Qt(e,t,r,n,a,u,o,c,s,m,v,f,g,w,S,R){let _=R?de(R[1])?R[1].error:R[1].data:void 0,z=e.createURL(t.location),F=e.createURL(a),G=r;u&&t.errors?G=qt(r,Object.keys(t.errors)[0],!0):R&&de(R[1])&&(G=qt(r,R[0]));let re=R?R[1].statusCode:void 0,Z=o&&re&&re>=400,me=G.filter((B,Q)=>{let{route:V}=B;if(V.lazy)return!0;if(V.loader==null)return!1;if(u)return Rt(V,t.loaderData,t.errors);if(bn(t.loaderData,t.matches[Q],B)||s.some(ee=>ee===B.route.id))return!0;let ne=t.matches[Q],ae=B;return Zt(B,J({currentUrl:z,currentParams:ne.params,nextUrl:F,nextParams:ae.params},n,{actionResult:_,actionStatus:re,defaultShouldRevalidate:Z?!1:c||z.pathname+z.search===F.pathname+F.search||z.search!==F.search||pr(ne,ae)}))}),h=[];return f.forEach((B,Q)=>{if(u||!r.some(ve=>ve.route.id===B.routeId)||v.has(Q))return;let V=Ue(w,B.path,S);if(!V){h.push({key:Q,routeId:B.routeId,path:B.path,matches:null,match:null,controller:null});return}let ne=t.fetchers.get(Q),ae=Ye(V,B.path),ee=!1;g.has(Q)?ee=!1:m.has(Q)?(m.delete(Q),ee=!0):ne&&ne.state!=="idle"&&ne.data===void 0?ee=c:ee=Zt(ae,J({currentUrl:z,currentParams:t.matches[t.matches.length-1].params,nextUrl:F,nextParams:r[r.length-1].params},n,{actionResult:_,actionStatus:re,defaultShouldRevalidate:Z?!1:c})),ee&&h.push({key:Q,routeId:B.routeId,path:B.path,matches:V,match:ae,controller:new AbortController})}),[me,h]}function Rt(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function bn(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function pr(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zt(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function er(e,t,r,n,a){var u;let o;if(e){let m=n[e];N(m,"No route found to patch children into: routeId = "+e),m.children||(m.children=[]),o=m.children}else o=r;let c=t.filter(m=>!o.some(v=>vr(m,v))),s=ut(c,a,[e||"_","patch",String(((u=o)==null?void 0:u.length)||"0")],n);o.push(...s)}function vr(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(u=>vr(r,u))}):!1}async function wn(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];N(a,"No route found in manifest");let u={};for(let o in n){let s=a[o]!==void 0&&o!=="hasErrorBoundary";ke(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!Vr.has(o)&&(u[o]=n[o])}Object.assign(a,u),Object.assign(a,J({},t(a),{lazy:void 0}))}async function En(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,u,o)=>Object.assign(a,{[r[o].route.id]:u}),{})}async function Rn(e,t,r,n,a,u,o,c,s,m){let v=u.map(w=>w.route.lazy?wn(w.route,s,c):void 0),f=u.map((w,S)=>{let R=v[S],_=a.some(F=>F.route.id===w.route.id);return J({},w,{shouldLoad:_,resolve:async F=>(F&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(_=!0),_?Pn(t,n,w,R,F,m):Promise.resolve({type:k.data,result:void 0}))})}),g=await e({matches:f,request:n,params:u[0].params,fetcherKey:o,context:m});try{await Promise.all(v)}catch{}return g}async function Pn(e,t,r,n,a,u){let o,c,s=m=>{let v,f=new Promise((S,R)=>v=R);c=()=>v(),t.signal.addEventListener("abort",c);let g=S=>typeof m!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):m({request:t,params:r.params,context:u},...S!==void 0?[S]:[]),w=(async()=>{try{return{type:"data",result:await(a?a(R=>g(R)):g())}}catch(S){return{type:"error",result:S}}})();return Promise.race([w,f])};try{let m=r.route[e];if(n)if(m){let v,[f]=await Promise.all([s(m).catch(g=>{v=g}),n]);if(v!==void 0)throw v;o=f}else if(await n,m=r.route[e],m)o=await s(m);else if(e==="action"){let v=new URL(t.url),f=v.pathname+v.search;throw se(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:k.data,result:void 0};else if(m)o=await s(m);else{let v=new URL(t.url),f=v.pathname+v.search;throw se(404,{pathname:f})}N(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){return{type:k.error,result:m}}finally{c&&t.signal.removeEventListener("abort",c)}return o}async function Dn(e){let{result:t,type:r}=e;if(yr(t)){let f;try{let g=t.headers.get("Content-Type");g&&/\bapplication\/json\b/.test(g)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(g){return{type:k.error,error:g}}return r===k.error?{type:k.error,error:new wt(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:k.data,data:f,statusCode:t.status,headers:t.headers}}if(r===k.error){if(lr(t)){var n,a;if(t.data instanceof Error){var u,o;return{type:k.error,error:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:k.error,error:new wt(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Xe(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:k.error,error:t,statusCode:Xe(t)?t.status:void 0}}if(Ln(t)){var c,s;return{type:k.deferred,deferredData:t,statusCode:(c=t.init)==null?void 0:c.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(lr(t)){var m,v;return{type:k.data,data:t.data,statusCode:(m=t.init)==null?void 0:m.status,headers:(v=t.init)!=null&&v.headers?new Headers(t.init.headers):void 0}}return{type:k.data,data:t}}function xn(e,t,r,n,a,u){let o=e.headers.get("Location");if(N(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!St.test(o)){let c=n.slice(0,n.findIndex(s=>s.route.id===r)+1);o=Et(new URL(t.url),c,a,!0,o,u),e.headers.set("Location",o)}return e}function tr(e,t,r){if(St.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),u=Qe(a.pathname,r)!=null;if(a.origin===t.origin&&u)return a.pathname+a.search+a.hash}return e}function Be(e,t,r,n){let a=e.createURL(gr(t)).toString(),u={signal:r};if(n&&he(n.formMethod)){let{formMethod:o,formEncType:c}=n;u.method=o.toUpperCase(),c==="application/json"?(u.headers=new Headers({"Content-Type":c}),u.body=JSON.stringify(n.json)):c==="text/plain"?u.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?u.body=Pt(n.formData):u.body=n.formData}return new Request(a,u)}function Pt(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function rr(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Sn(e,t,r,n,a){let u={},o=null,c,s=!1,m={},v=r&&de(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let g=f.route.id,w=t[g];if(N(!Ie(w),"Cannot handle redirect results in processLoaderData"),de(w)){let S=w.error;v!==void 0&&(S=v,v=void 0),o=o||{};{let R=Fe(e,g);o[R.route.id]==null&&(o[R.route.id]=S)}u[g]=void 0,s||(s=!0,c=Xe(w.error)?w.error.status:500),w.headers&&(m[g]=w.headers)}else Me(w)?(n.set(g,w.deferredData),u[g]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(c=w.statusCode),w.headers&&(m[g]=w.headers)):(u[g]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(c=w.statusCode),w.headers&&(m[g]=w.headers))}),v!==void 0&&r&&(o={[r[0]]:v},u[r[0]]=void 0),{loaderData:u,errors:o,statusCode:c||200,loaderHeaders:m}}function nr(e,t,r,n,a,u,o){let{loaderData:c,errors:s}=Sn(t,r,n,o);return a.forEach(m=>{let{key:v,match:f,controller:g}=m,w=u[v];if(N(w,"Did not find corresponding fetcher result"),!(g&&g.signal.aborted))if(de(w)){let S=Fe(e.matches,f?.route.id);s&&s[S.route.id]||(s=J({},s,{[S.route.id]:w.error})),e.fetchers.delete(v)}else if(Ie(w))N(!1,"Unhandled fetcher revalidation redirect");else if(Me(w))N(!1,"Unhandled fetcher deferred data");else{let S=Se(w.data);e.fetchers.set(v,S)}}),{loaderData:c,errors:s}}function ar(e,t,r,n){let a=J({},t);for(let u of r){let o=u.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&u.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function ir(e){return e?de(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fe(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function or(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function se(e,t){let{pathname:r,routeId:n,method:a,type:u,message:o}=t===void 0?{}:t,c="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":u==="defer-action"?s="defer() is not supported in actions":u==="invalid-body"&&(s="Unable to encode submission body")):e===403?(c="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(c="Not Found",s='No route matches URL "'+r+'"'):e===405&&(c="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new wt(e||500,c,new Error(s),!0)}function lt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Ie(a))return{key:n,result:a}}}function gr(e){let t=typeof e=="string"?Ce(e):e;return qe(J({},t,{hash:""}))}function Mn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Cn(e){return yr(e.result)&&mn.has(e.result.status)}function Me(e){return e.type===k.deferred}function de(e){return e.type===k.error}function Ie(e){return(e&&e.type)===k.redirect}function lr(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ln(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function yr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Tn(e){return hn.has(e.toLowerCase())}function he(e){return cn.has(e.toLowerCase())}async function _n(e,t,r,n,a){let u=Object.entries(t);for(let o=0;og?.route.id===c);if(!m)continue;let v=n.find(g=>g.route.id===m.route.id),f=v!=null&&!pr(v,m)&&(a&&a[m.route.id])!==void 0;Me(s)&&f&&await Mt(s,r,!1).then(g=>{g&&(t[c]=g)})}}async function Un(e,t,r){for(let n=0;nm?.route.id===u)&&Me(c)&&(N(o,"Expected an AbortController for revalidating fetcher deferred result"),await Mt(c,o.signal,!0).then(m=>{m&&(t[a]=m)}))}}async function Mt(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:k.data,data:e.deferredData.unwrappedData}}catch(a){return{type:k.error,error:a}}return{type:k.data,data:e.deferredData.data}}}function Ct(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ye(e,t){let r=typeof t=="string"?Ce(t).search:t.search;if(e[e.length-1].route.index&&Ct(r||""))return e[e.length-1];let n=fr(e);return n[n.length-1]}function sr(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:u,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(u!=null)return{formMethod:t,formAction:r,formEncType:n,formData:u,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function bt(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Fn(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ke(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function In(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Se(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Nn(e,t){try{let r=e.sessionStorage.getItem(mr);if(r){let n=JSON.parse(r);for(let[a,u]of Object.entries(n||{}))u&&Array.isArray(u)&&t.set(a,new Set(u||[]))}}catch{}}function jn(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(mr,JSON.stringify(r))}catch(n){ke(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.30.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),C.useCallback(function(m,v){if(v===void 0&&(v={}),!c.current)return;if(typeof m=="number"){n.go(m);return}let f=xt(m,JSON.parse(o),u,v.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:we([t,f.pathname])),(v.replace?n.replace:n.push)(f,v.state,v)},[t,n,o,u,e])}const Bn=C.createContext(null);function kn(e){let t=C.useContext(Ee).outlet;return t&&C.createElement(Bn.Provider,{value:e},t)}function da(){let{matches:e}=C.useContext(Ee),t=e[e.length-1];return t?t.params:{}}function zn(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=C.useContext(ze),{matches:a}=C.useContext(Ee),{pathname:u}=_t(),o=JSON.stringify(Dt(a,n.v7_relativeSplatPath));return C.useMemo(()=>xt(e,JSON.parse(o),u,r==="path"),[e,o,u,r])}function ca(e,t,r,n){Ze()||N(!1);let{navigator:a}=C.useContext(ze),{matches:u}=C.useContext(Ee),o=u[u.length-1],c=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let m=_t(),v;v=m;let f=v.pathname||"/",g=f;if(s!=="/"){let R=s.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=Ue(e,{pathname:g});return Jn(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},c,R.params),pathname:we([s,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?s:we([s,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),u,r,n)}function Hn(){let e=Xn(),t=Xe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),r?C.createElement("pre",{style:a},r):null,null)}const Wn=C.createElement(Hn,null);class Vn extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?C.createElement(Ee.Provider,{value:this.props.routeContext},C.createElement(br.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $n(e){let{routeContext:t,match:r,children:n}=e,a=C.useContext(Lt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(Ee.Provider,{value:t},n)}function Jn(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var u;if(!r)return null;if(r.errors)e=r.matches;else if((u=n)!=null&&u.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,c=(a=r)==null?void 0:a.errors;if(c!=null){let v=o.findIndex(f=>f.route.id&&c?.[f.route.id]!==void 0);v>=0||N(!1),o=o.slice(0,Math.min(o.length,v+1))}let s=!1,m=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((v,f,g)=>{let w,S=!1,R=null,_=null;r&&(w=c&&f.route.id?c[f.route.id]:void 0,R=f.route.errorElement||Wn,s&&(m<0&&g===0?(Qn("route-fallback"),S=!0,_=null):m===g&&(S=!0,_=f.route.hydrateFallbackElement||null)));let z=t.concat(o.slice(0,g+1)),F=()=>{let G;return w?G=R:S?G=_:f.route.Component?G=C.createElement(f.route.Component,null):f.route.element?G=f.route.element:G=v,C.createElement($n,{match:f,routeContext:{outlet:v,matches:z,isDataRoute:r!=null},children:G})};return r&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?C.createElement(Vn,{location:r.location,revalidation:r.revalidation,component:R,error:w,children:F(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):F()},null)}var Er=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Er||{}),Rr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rr||{});function Kn(e){let t=C.useContext(Lt);return t||N(!1),t}function Yn(e){let t=C.useContext(On);return t||N(!1),t}function Gn(e){let t=C.useContext(Ee);return t||N(!1),t}function Pr(e){let t=Gn(),r=t.matches[t.matches.length-1];return r.route.id||N(!1),r.route.id}function Xn(){var e;let t=C.useContext(br),r=Yn(),n=Pr();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function qn(){let{router:e}=Kn(Er.UseNavigateStable),t=Pr(Rr.UseNavigateStable),r=C.useRef(!1);return wr(()=>{r.current=!0}),C.useCallback(function(a,u){u===void 0&&(u={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,dt({fromRouteId:t},u)))},[e,t])}const ur={};function Qn(e,t,r){ur[e]||(ur[e]=!0)}function fa(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function ha(e){return kn(e.context)}function ma(e){let{basename:t="/",children:r=null,location:n,navigationType:a=q.Pop,navigator:u,static:o=!1,future:c}=e;Ze()&&N(!1);let s=t.replace(/^\/*/,"/"),m=C.useMemo(()=>({basename:s,navigator:u,static:o,future:dt({v7_relativeSplatPath:!1},c)}),[s,c,u,o]);typeof n=="string"&&(n=Ce(n));let{pathname:v="/",search:f="",hash:g="",state:w=null,key:S="default"}=n,R=C.useMemo(()=>{let _=Qe(v,s);return _==null?null:{location:{pathname:_,search:f,hash:g,state:w,key:S},navigationType:a}},[s,v,f,g,w,S,a]);return R==null?null:C.createElement(ze.Provider,{value:m},C.createElement(Tt.Provider,{children:r,value:R}))}new Promise(()=>{});function pa(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:C.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Zn(e){return typeof e=="number"?Number.isNaN(e):!1}function ea(e){return e==null||Zn(e)}function va(e,t){if(ea(e))return;const r={},n=[];return e.forEach(a=>{const u=t?t(a):JSON.stringify(a);r[u]||(r[u]=!0,n.push(a))}),e.length===n.length?e:n}const ta=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];ta.reduce((e,t)=>({...e,[`[object ${t}]`]:t.toLowerCase()}),{});export{Lt as D,wt as E,ze as N,ha as O,ma as R,ua as a,oa as b,la as c,On as d,sa as e,ca as f,aa as g,zn as h,qe as i,na as j,va as k,fa as l,pa as m,da as n,ia as r,Qe as s,_t as u}; diff --git a/py_backend/static/assets/vendor-react-BxsGb6Ph.js b/py_backend/static/assets/vendor-react-BxsGb6Ph.js deleted file mode 100644 index 38c1060d300e40d7b0b2b6a651e33ac0aa1b9ed9..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/vendor-react-BxsGb6Ph.js +++ /dev/null @@ -1,41 +0,0 @@ -import{g as ja,r as Af,u as Ia,a as Ua,c as Bf,b as Hf,E as Wf,l as $f,D as Qf,d as Kf,R as Yf,N as Xf,s as Gf,e as Zf,f as Jf,h as qf,i as Ca,m as bf}from"./vendor-DxpCibxB.js";function Va(w,k){for(var d=0;dT[N]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var Co={exports:{}},hr={},_o={exports:{}},M={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var _a;function ed(){if(_a)return M;_a=1;var w=Symbol.for("react.element"),k=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Y=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ce=Symbol.iterator;function pe(c){return c===null||typeof c!="object"?null:(c=ce&&c[ce]||c["@@iterator"],typeof c=="function"?c:null)}var ze={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ae=Object.assign,J={};function A(c,S,F){this.props=c,this.context=S,this.refs=J,this.updater=F||ze}A.prototype.isReactComponent={},A.prototype.setState=function(c,S){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,S,"setState")},A.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function be(){}be.prototype=A.prototype;function Te(c,S,F){this.props=c,this.context=S,this.refs=J,this.updater=F||ze}var me=Te.prototype=new be;me.constructor=Te,Ae(me,A.prototype),me.isPureReactComponent=!0;var oe=Array.isArray,Le=Object.prototype.hasOwnProperty,Ke={current:null},et={key:!0,ref:!0,__self:!0,__source:!0};function q(c,S,F){var Q,W={},re=null,ee=null;if(S!=null)for(Q in S.ref!==void 0&&(ee=S.ref),S.key!==void 0&&(re=""+S.key),S)Le.call(S,Q)&&!et.hasOwnProperty(Q)&&(W[Q]=S[Q]);var le=arguments.length-2;if(le===1)W.children=F;else if(1"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),U=Object.prototype.hasOwnProperty,Y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V={},ce={};function pe(e){return U.call(ce,e)?!0:U.call(V,e)?!1:Y.test(e)?ce[e]=!0:(V[e]=!0,!1)}function ze(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ae(e,t,n,r){if(t===null||typeof t>"u"||ze(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){A[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];A[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){A[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){A[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){A[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){A[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){A[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){A[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){A[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var be=/[\-:]([a-z])/g;function Te(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(be,Te);A[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(be,Te);A[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(be,Te);A[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){A[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),A.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){A[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function me(e,t,n,r){var l=A.hasOwnProperty(t)?A[t]:null;(l!==null?l.type!==0:r||!(2i||l[o]!==u[i]){var s=` -`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function re(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function ee(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case et:return"Fragment";case Ke:return"Portal";case Be:return"Profiler";case q:return"StrictMode";case vt:return"Suspense";case Ee:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wt:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case Oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case st:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case at:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}function le(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(t);case 8:return t===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function De(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ha(e){var t=De(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){e._valueTracker||(e._valueTracker=Ha(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=De(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tl(e,t){var n=t.checked;return c({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function To(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lo(e,t){t=t.checked,t!=null&&me(e,"checked",t,!1)}function Ll(e,t){Lo(e,t);var n=$(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ol(e,t.type,$(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ol(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function On(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wa=["Webkit","ms","Moz","O"];Object.keys(Dn).forEach(function(e){Wa.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dn[t]=Dn[e]})});function Uo(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dn.hasOwnProperty(e)&&Dn[e]?(""+t).trim():t+"px"}function Vo(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Uo(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var $a=c({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fl(e,t){if(t){if($a[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(d(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(d(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(d(61))}if(t.style!=null&&typeof t.style!="object")throw Error(d(62))}}function jl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Il=null;function Ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,on=null,sn=null;function Ao(e){if(e=tr(e)){if(typeof Vl!="function")throw Error(d(280));var t=e.stateNode;t&&(t=$r(t),Vl(e.stateNode,e.type,t))}}function Bo(e){on?sn?sn.push(e):sn=[e]:on=e}function Ho(){if(on){var e=on,t=sn;if(sn=on=null,Ao(e),t)for(e=0;e>>=0,e===0?32:31-(tc(e)/nc|0)|0}var Pr=64,Nr=4194304;function In(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,o=n&268435455;if(o!==0){var i=o&~l;i!==0?r=In(i):(u&=o,u!==0&&(r=In(u)))}else o=n&~l,o!==0?r=In(o):u!==0&&(r=In(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Un(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tt(t),e[t]=n}function oc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Kn),hi=" ",yi=!1;function gi(e,t){switch(e){case"keyup":return Mc.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fn=!1;function jc(e,t){switch(e){case"compositionend":return wi(t);case"keypress":return t.which!==32?null:(yi=!0,hi);case"textInput":return e=t.data,e===hi&&yi?null:e;default:return null}}function Ic(e,t){if(fn)return e==="compositionend"||!ru&&gi(e,t)?(e=ci(),Dr=Jl=Rt=null,fn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pi(n)}}function Ri(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ri(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zi(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sr(e.document)}return t}function ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kc(e){var t=zi(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ri(n.ownerDocument.documentElement,n)){if(r!==null&&ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=Ni(n,u);var o=Ni(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,dn=null,iu=null,Zn=null,su=!1;function Ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;su||dn==null||dn!==Sr(r)||(r=dn,"selectionStart"in r&&ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zn&&Gn(Zn,r)||(Zn=r,r=Br(iu,"onSelect"),0yn||(e.current=Su[yn],Su[yn]=null,yn--)}function X(e,t){yn++,Su[yn]=e.current,e.current=t}var Ot={},xe=Lt(Ot),Me=Lt(!1),Xt=Ot;function gn(e,t){var n=e.type.contextTypes;if(!n)return Ot;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Fe(e){return e=e.childContextTypes,e!=null}function Qr(){Z(Me),Z(xe)}function Qi(e,t,n){if(xe.current!==Ot)throw Error(d(168));X(xe,t),X(Me,n)}function Ki(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(d(108,le(e)||"Unknown",l));return c({},n,r)}function Kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,Xt=xe.current,X(xe,e),X(Me,Me.current),!0}function Yi(e,t,n){var r=e.stateNode;if(!r)throw Error(d(169));n?(e=Ki(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,Z(Me),Z(xe),X(xe,e)):Z(Me),X(Me,n)}var yt=null,Yr=!1,ku=!1;function Xi(e){yt===null?yt=[e]:yt.push(e)}function lf(e){Yr=!0,Xi(e)}function Dt(){if(!ku&&yt!==null){ku=!0;var e=0,t=K;try{var n=yt;for(K=1;e>=o,l-=o,gt=1<<32-tt(t)+l|n<L?(ge=z,z=null):ge=z.sibling;var I=v(f,z,p[L],g);if(I===null){z===null&&(z=ge);break}e&&z&&I.alternate===null&&t(f,z),a=u(I,a,L),R===null?P=I:R.sibling=I,R=I,z=ge}if(L===p.length)return n(f,z),b&&Zt(f,L),P;if(z===null){for(;LL?(ge=z,z=null):ge=z.sibling;var Ht=v(f,z,I.value,g);if(Ht===null){z===null&&(z=ge);break}e&&z&&Ht.alternate===null&&t(f,z),a=u(Ht,a,L),R===null?P=Ht:R.sibling=Ht,R=Ht,z=ge}if(I.done)return n(f,z),b&&Zt(f,L),P;if(z===null){for(;!I.done;L++,I=p.next())I=y(f,I.value,g),I!==null&&(a=u(I,a,L),R===null?P=I:R.sibling=I,R=I);return b&&Zt(f,L),P}for(z=r(f,z);!I.done;L++,I=p.next())I=E(z,f,L,I.value,g),I!==null&&(e&&I.alternate!==null&&z.delete(I.key===null?L:I.key),a=u(I,a,L),R===null?P=I:R.sibling=I,R=I);return e&&z.forEach(function(Vf){return t(f,Vf)}),b&&Zt(f,L),P}function se(f,a,p,g){if(typeof p=="object"&&p!==null&&p.type===et&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Le:e:{for(var P=p.key,R=a;R!==null;){if(R.key===P){if(P=p.type,P===et){if(R.tag===7){n(f,R.sibling),a=l(R,p.props.children),a.return=f,f=a;break e}}else if(R.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===at&&ss(P)===R.type){n(f,R.sibling),a=l(R,p.props),a.ref=nr(f,R,p),a.return=f,f=a;break e}n(f,R);break}else t(f,R);R=R.sibling}p.type===et?(a=ln(p.props.children,f.mode,g,p.key),a.return=f,f=a):(g=kl(p.type,p.key,p.props,null,f.mode,g),g.ref=nr(f,a,p),g.return=f,f=g)}return o(f);case Ke:e:{for(R=p.key;a!==null;){if(a.key===R)if(a.tag===4&&a.stateNode.containerInfo===p.containerInfo&&a.stateNode.implementation===p.implementation){n(f,a.sibling),a=l(a,p.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=wo(p,f.mode,g),a.return=f,f=a}return o(f);case at:return R=p._init,se(f,a,R(p._payload),g)}if(Ln(p))return C(f,a,p,g);if(Qt(p))return _(f,a,p,g);nl(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,p),a.return=f,f=a):(n(f,a),a=go(p,f.mode,g),a.return=f,f=a),o(f)):n(f,a)}return se}var Cn=as(!0),cs=as(!1),rr={},dt=Lt(rr),lr=Lt(rr),ur=Lt(rr);function qt(e){if(e===rr)throw Error(d(174));return e}function Fu(e,t){switch(X(ur,t),X(lr,e),X(dt,rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ml(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ml(t,e)}Z(dt),X(dt,t)}function _n(){Z(dt),Z(lr),Z(ur)}function fs(e){qt(ur.current);var t=qt(dt.current),n=Ml(t,e.type);t!==n&&(X(lr,e),X(dt,n))}function ju(e){lr.current===e&&(Z(dt),Z(lr))}var te=Lt(0);function rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Iu=[];function Uu(){for(var e=0;en?n:4,e(!0);var r=Vu.transition;Vu.transition={};try{e(!1),t()}finally{K=n,Vu.transition=r}}function zs(){return Ze().memoizedState}function af(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ts(e))Ls(t,n);else if(n=es(e,t,n,r),n!==null){var l=Re();it(n,e,r,l),Os(n,t,r)}}function cf(e,t,n){var r=Vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ts(e))Ls(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,i=u(o,n);if(l.hasEagerState=!0,l.eagerState=i,nt(i,o)){var s=t.interleaved;s===null?(l.next=l,Lu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=es(e,t,l,r),n!==null&&(l=Re(),it(n,e,r,l),Os(n,t,r))}}function Ts(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Ls(e,t){or=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Os(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kl(e,n)}}var sl={readContext:Ge,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},ff={readContext:Ge,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:ks,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ol(4194308,4,Cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=af.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:ws,useDebugValue:Ku,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=ws(!1),t=e[0];return e=sf.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,l=pt();if(b){if(n===void 0)throw Error(d(407));n=n()}else{if(n=t(),ye===null)throw Error(d(349));(bt&30)!==0||ms(r,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,ks(hs.bind(null,r,u,e),[e]),r.flags|=2048,ar(9,vs.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=pt(),t=ye.identifierPrefix;if(b){var n=wt,r=gt;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ft]=t,e[er]=r,Gs(e,t,!1,!1),t.stateNode=e;e:{switch(o=jl(n,r),n){case"dialog":G("cancel",e),G("close",e),l=r;break;case"iframe":case"object":case"embed":G("load",e),l=r;break;case"video":case"audio":for(l=0;lzn&&(t.flags|=128,r=!0,cr(u,!1),t.lanes=4194304)}else{if(!r)if(e=rl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!b)return _e(t),null}else 2*ie()-u.renderingStartTime>zn&&n!==1073741824&&(t.flags|=128,r=!0,cr(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(n=u.last,n!==null?n.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ie(),t.sibling=null,n=te.current,X(te,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return vo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Qe&1073741824)!==0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(d(156,t.tag))}function wf(e,t){switch(xu(t),t.tag){case 1:return Fe(t.type)&&Qr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),Z(Me),Z(xe),Uu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ju(t),null;case 13:if(Z(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(d(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(te),null;case 4:return _n(),null;case 10:return zu(t.type._context),null;case 22:case 23:return vo(),null;case 24:return null;default:return null}}var fl=!1,Pe=!1,Sf=typeof WeakSet=="function"?WeakSet:Set,x=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function no(e,t,n){try{n()}catch(r){ue(e,t,r)}}var qs=!1;function kf(e,t){if(mu=Lr,e=zi(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var o=0,i=-1,s=-1,m=0,h=0,y=e,v=null;t:for(;;){for(var E;y!==n||l!==0&&y.nodeType!==3||(i=o+l),y!==u||r!==0&&y.nodeType!==3||(s=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(E=y.firstChild)!==null;)v=y,y=E;for(;;){if(y===e)break t;if(v===n&&++m===l&&(i=o),v===u&&++h===r&&(s=o),(E=y.nextSibling)!==null)break;y=v,v=y.parentNode}y=E}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Lr=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var C=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var _=C.memoizedProps,se=C.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?_:lt(t.type,_),se);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(d(163))}}catch(g){ue(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return C=qs,qs=!1,C}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&no(t,n,u)}l=l.next}while(l!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ro(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function bs(e){var t=e.alternate;t!==null&&(e.alternate=null,bs(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[er],delete t[wu],delete t[nf],delete t[rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ea(e){return e.tag===5||e.tag===3||e.tag===4}function ta(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ea(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wr));else if(r!==4&&(e=e.child,e!==null))for(lo(e,t,n),e=e.sibling;e!==null;)lo(e,t,n),e=e.sibling}function uo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(uo(e,t,n),e=e.sibling;e!==null;)uo(e,t,n),e=e.sibling}var Se=null,ut=!1;function jt(e,t,n){for(n=n.child;n!==null;)na(e,t,n),n=n.sibling}function na(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(_r,n)}catch{}switch(n.tag){case 5:Pe||Nn(n,t);case 6:var r=Se,l=ut;Se=null,jt(e,t,n),Se=r,ut=l,Se!==null&&(ut?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(ut?(e=Se,n=n.stateNode,e.nodeType===8?gu(e.parentNode,n):e.nodeType===1&&gu(e,n),Wn(e)):gu(Se,n.stateNode));break;case 4:r=Se,l=ut,Se=n.stateNode.containerInfo,ut=!0,jt(e,t,n),Se=r,ut=l;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&((u&2)!==0||(u&4)!==0)&&no(n,t,o),l=l.next}while(l!==r)}jt(e,t,n);break;case 1:if(!Pe&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){ue(n,t,i)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,jt(e,t,n),Pe=r):jt(e,t,n);break;default:jt(e,t,n)}}function ra(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sf),t.forEach(function(r){var l=Tf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~u}if(r=l,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xf(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,yl=0,(j&6)!==0)throw Error(d(331));var l=j;for(j|=4,x=e.current;x!==null;){var u=x,o=u.child;if((x.flags&16)!==0){var i=u.deletions;if(i!==null){for(var s=0;sie()-so?nn(e,0):io|=n),Ue(e,t)}function ha(e,t){t===0&&((e.mode&1)===0?t=1:(t=Nr,Nr<<=1,(Nr&130023424)===0&&(Nr=4194304)));var n=Re();e=St(e,t),e!==null&&(Un(e,t,n),Ue(e,n))}function zf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ha(e,n)}function Tf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(d(314))}r!==null&&r.delete(t),ha(e,n)}var ya;ya=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)je=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return je=!1,yf(e,t,n);je=(e.flags&131072)!==0}else je=!1,b&&(t.flags&1048576)!==0&&Gi(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var l=gn(t,xe.current);xn(t,n),l=Bu(null,t,r,e,l,n);var u=Hu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(u=!0,Kr(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ou(t),l.updater=tl,t.stateNode=l,l._reactInternals=t,Mu(t,r,e,n),t=Zu(null,t,r,!0,u,n)):(t.tag=0,b&&u&&Eu(t),Ne(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Of(r),e=lt(r,e),l){case 0:t=Gu(null,t,r,e,n);break e;case 1:t=Ws(null,t,r,e,n);break e;case 11:t=Us(null,t,r,e,n);break e;case 14:t=Vs(null,t,r,lt(r.type,e),n);break e}throw Error(d(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lt(r,l),Gu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lt(r,l),Ws(e,t,r,l,n);case 3:e:{if($s(t),e===null)throw Error(d(387));r=t.pendingProps,u=t.memoizedState,l=u.element,ts(e,t),el(t,r,null,n);var o=t.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=Pn(Error(d(423)),t),t=Qs(e,t,r,n,l);break e}else if(r!==l){l=Pn(Error(d(424)),t),t=Qs(e,t,r,n,l);break e}else for($e=Tt(t.stateNode.containerInfo.firstChild),We=t,b=!0,rt=null,n=cs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kn(),r===l){t=Et(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return fs(t),e===null&&_u(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,hu(r,l)?o=null:u!==null&&hu(r,u)&&(t.flags|=32),Hs(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&_u(t),null;case 13:return Ks(e,t,n);case 4:return Fu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cn(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lt(r,l),Us(e,t,r,l,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,u=t.memoizedProps,o=l.value,X(Jr,r._currentValue),r._currentValue=o,u!==null)if(nt(u.value,o)){if(u.children===l.children&&!Me.current){t=Et(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){o=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=kt(-1,n&-n),s.tag=2;var m=u.updateQueue;if(m!==null){m=m.shared;var h=m.pending;h===null?s.next=s:(s.next=h.next,h.next=s),m.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Tu(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)o=u.type===t.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(d(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Tu(o,n,t),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}Ne(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,xn(t,n),l=Ge(l),r=r(l),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,l=lt(r,t.pendingProps),l=lt(r.type,l),Vs(e,t,r,l,n);case 15:return As(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lt(r,l),cl(e,t),t.tag=1,Fe(r)?(e=!0,Kr(t)):e=!1,xn(t,n),os(t,r,l),Mu(t,r,l,n),Zu(null,t,r,!0,e,n);case 19:return Xs(e,t,n);case 22:return Bs(e,t,n)}throw Error(d(156,t.tag))};function ga(e,t){return Zo(e,t)}function Lf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,r){return new Lf(e,t,n,r)}function yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Of(e){if(typeof e=="function")return yo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oe)return 11;if(e===st)return 14}return 2}function Bt(e,t){var n=e.alternate;return n===null?(n=qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kl(e,t,n,r,l,u){var o=2;if(r=e,typeof e=="function")yo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case et:return ln(n.children,l,u,t);case q:o=8,l|=8;break;case Be:return e=qe(12,n,t,l|2),e.elementType=Be,e.lanes=u,e;case vt:return e=qe(13,n,t,l),e.elementType=vt,e.lanes=u,e;case Ee:return e=qe(19,n,t,l),e.elementType=Ee,e.lanes=u,e;case ve:return El(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:o=10;break e;case Wt:o=9;break e;case Oe:o=11;break e;case st:o=14;break e;case at:o=16,r=null;break e}throw Error(d(130,e==null?e:typeof e,""))}return t=qe(o,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function ln(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=qe(22,e,r,t),e.elementType=ve,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Df(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function So(e,t,n,r,l,u,o,i,s){return e=new Df(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=qe(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(u),e}function Mf(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(w)}catch(k){console.error(k)}}return w(),Po.exports=ud(),Po.exports}var La;function od(){if(La)return zl;La=1;var w=Aa();return zl.createRoot=w.createRoot,zl.hydrateRoot=w.hydrateRoot,zl}var Td=od(),Ba=Aa();const id=ja(Ba),sd=Va({__proto__:null,default:id},[Ba]);/** - * React Router DOM v6.30.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function gr(){return gr=Object.assign?Object.assign.bind():function(w){for(var k=1;k=0)&&(d[N]=w[N]);return d}function cd(w){return!!(w.metaKey||w.altKey||w.ctrlKey||w.shiftKey)}function fd(w,k){return w.button===0&&(!k||k==="_self")&&!cd(w)}function No(w){return w===void 0&&(w=""),new URLSearchParams(typeof w=="string"||Array.isArray(w)||w instanceof URLSearchParams?w:Object.keys(w).reduce((k,d)=>{let T=w[d];return k.concat(Array.isArray(T)?T.map(N=>[d,N]):[[d,T]])},[]))}function dd(w,k){let d=No(w);return k&&k.forEach((T,N)=>{d.has(N)||k.getAll(N).forEach(O=>{d.append(N,O)})}),d}const pd=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],md="6";try{window.__reactRouterVersion=md}catch{}function Ld(w,k){return Bf({basename:k?.basename,future:gr({},k?.future,{v7_prependBasename:!0}),history:Hf({window:k?.window}),hydrationData:k?.hydrationData||vd(),routes:w,mapRouteProperties:bf,dataStrategy:k?.dataStrategy,patchRoutesOnNavigation:k?.patchRoutesOnNavigation,window:k?.window}).initialize()}function vd(){var w;let k=(w=window)==null?void 0:w.__staticRouterHydrationData;return k&&k.errors&&(k=gr({},k,{errors:hd(k.errors)})),k}function hd(w){if(!w)return null;let k=Object.entries(w),d={};for(let[T,N]of k)if(N&&N.__type==="RouteErrorResponse")d[T]=new Wf(N.status,N.statusText,N.data,N.internal===!0);else if(N&&N.__type==="Error"){if(N.__subType){let O=window[N.__subType];if(typeof O=="function")try{let B=new O(N.message);B.stack="",d[T]=B}catch{}}if(d[T]==null){let O=new Error(N.message);O.stack="",d[T]=O}}else d[T]=N;return d}const yd=D.createContext({isTransitioning:!1}),gd=D.createContext(new Map),wd="startTransition",Oa=ld[wd],Sd="flushSync",Da=sd[Sd];function kd(w){Oa?Oa(w):w()}function yr(w){Da?Da(w):w()}class Ed{constructor(){this.status="pending",this.promise=new Promise((k,d)=>{this.resolve=T=>{this.status==="pending"&&(this.status="resolved",k(T))},this.reject=T=>{this.status==="pending"&&(this.status="rejected",d(T))}})}}function Od(w){let{fallbackElement:k,router:d,future:T}=w,[N,O]=D.useState(d.state),[B,H]=D.useState(),[U,Y]=D.useState({isTransitioning:!1}),[V,ce]=D.useState(),[pe,ze]=D.useState(),[Ae,J]=D.useState(),A=D.useRef(new Map),{v7_startTransition:be}=T||{},Te=D.useCallback(q=>{be?kd(q):q()},[be]),me=D.useCallback((q,Be)=>{let{deletedFetchers:we,flushSync:Wt,viewTransitionOpts:Oe}=Be;q.fetchers.forEach((Ee,st)=>{Ee.data!==void 0&&A.current.set(st,Ee.data)}),we.forEach(Ee=>A.current.delete(Ee));let vt=d.window==null||d.window.document==null||typeof d.window.document.startViewTransition!="function";if(!Oe||vt){Wt?yr(()=>O(q)):Te(()=>O(q));return}if(Wt){yr(()=>{pe&&(V&&V.resolve(),pe.skipTransition()),Y({isTransitioning:!0,flushSync:!0,currentLocation:Oe.currentLocation,nextLocation:Oe.nextLocation})});let Ee=d.window.document.startViewTransition(()=>{yr(()=>O(q))});Ee.finished.finally(()=>{yr(()=>{ce(void 0),ze(void 0),H(void 0),Y({isTransitioning:!1})})}),yr(()=>ze(Ee));return}pe?(V&&V.resolve(),pe.skipTransition(),J({state:q,currentLocation:Oe.currentLocation,nextLocation:Oe.nextLocation})):(H(q),Y({isTransitioning:!0,flushSync:!1,currentLocation:Oe.currentLocation,nextLocation:Oe.nextLocation}))},[d.window,pe,V,A,Te]);D.useLayoutEffect(()=>d.subscribe(me),[d,me]),D.useEffect(()=>{U.isTransitioning&&!U.flushSync&&ce(new Ed)},[U]),D.useEffect(()=>{if(V&&B&&d.window){let q=B,Be=V.promise,we=d.window.document.startViewTransition(async()=>{Te(()=>O(q)),await Be});we.finished.finally(()=>{ce(void 0),ze(void 0),H(void 0),Y({isTransitioning:!1})}),ze(we)}},[Te,B,V,d.window]),D.useEffect(()=>{V&&B&&N.location.key===B.location.key&&V.resolve()},[V,pe,N.location,B]),D.useEffect(()=>{!U.isTransitioning&&Ae&&(H(Ae.state),Y({isTransitioning:!0,flushSync:!1,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation}),J(void 0))},[U.isTransitioning,Ae]),D.useEffect(()=>{},[]);let oe=D.useMemo(()=>({createHref:d.createHref,encodeLocation:d.encodeLocation,go:q=>d.navigate(q),push:(q,Be,we)=>d.navigate(q,{state:Be,preventScrollReset:we?.preventScrollReset}),replace:(q,Be,we)=>d.navigate(q,{replace:!0,state:Be,preventScrollReset:we?.preventScrollReset})}),[d]),Le=d.basename||"/",Ke=D.useMemo(()=>({router:d,navigator:oe,static:!1,basename:Le}),[d,oe,Le]),et=D.useMemo(()=>({v7_relativeSplatPath:d.future.v7_relativeSplatPath}),[d.future.v7_relativeSplatPath]);return D.useEffect(()=>$f(T,d.future),[T,d.future]),D.createElement(D.Fragment,null,D.createElement(Qf.Provider,{value:Ke},D.createElement(Kf.Provider,{value:N},D.createElement(gd.Provider,{value:A.current},D.createElement(yd.Provider,{value:U},D.createElement(Yf,{basename:Le,location:N.location,navigationType:N.historyAction,navigator:oe,future:et},N.initialized||d.future.v7_partialHydration?D.createElement(xd,{routes:d.routes,future:d.future,state:N}):k))))),null)}const xd=D.memo(Cd);function Cd(w){let{routes:k,future:d,state:T}=w;return Jf(k,void 0,T,d)}const _d=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dd=D.forwardRef(function(k,d){let{onClick:T,relative:N,reloadDocument:O,replace:B,state:H,target:U,to:Y,preventScrollReset:V,viewTransition:ce}=k,pe=ad(k,pd),{basename:ze}=D.useContext(Xf),Ae,J=!1;if(typeof Y=="string"&&Pd.test(Y)&&(Ae=Y,_d))try{let me=new URL(window.location.href),oe=Y.startsWith("//")?new URL(me.protocol+Y):new URL(Y),Le=Gf(oe.pathname,ze);oe.origin===me.origin&&Le!=null?Y=Le+oe.search+oe.hash:J=!0}catch{}let A=Zf(Y,{relative:N}),be=Nd(Y,{replace:B,state:H,target:U,preventScrollReset:V,relative:N,viewTransition:ce});function Te(me){T&&T(me),me.defaultPrevented||be(me)}return D.createElement("a",gr({},pe,{href:Ae||A,onClick:J||O?T:Te,ref:d,target:U}))});var Ma;(function(w){w.UseScrollRestoration="useScrollRestoration",w.UseSubmit="useSubmit",w.UseSubmitFetcher="useSubmitFetcher",w.UseFetcher="useFetcher",w.useViewTransitionState="useViewTransitionState"})(Ma||(Ma={}));var Fa;(function(w){w.UseFetcher="useFetcher",w.UseFetchers="useFetchers",w.UseScrollRestoration="useScrollRestoration"})(Fa||(Fa={}));function Nd(w,k){let{target:d,replace:T,state:N,preventScrollReset:O,relative:B,viewTransition:H}=k===void 0?{}:k,U=Ua(),Y=Ia(),V=qf(w,{relative:B});return D.useCallback(ce=>{if(fd(ce,d)){ce.preventDefault();let pe=T!==void 0?T:Ca(Y)===Ca(V);U(w,{replace:pe,state:N,preventScrollReset:O,relative:B,viewTransition:H})}},[Y,U,V,T,N,d,w,O,B,H])}function Md(w){let k=D.useRef(No(w)),d=D.useRef(!1),T=Ia(),N=D.useMemo(()=>dd(T.search,d.current?null:k.current),[T.search]),O=Ua(),B=D.useCallback((H,U)=>{const Y=No(typeof H=="function"?H(N):H);d.current=!0,O("?"+Y,U)},[O,N]);return[N,B]}export{Dd as L,Od as R,Ba as a,Td as b,Ld as c,rd as i,zd as j,D as r,Md as u}; diff --git a/py_backend/static/assets/vendor-ui-DpEM1HT6.css b/py_backend/static/assets/vendor-ui-DpEM1HT6.css deleted file mode 100644 index c034b077048f866bd6c76cf7bfa875506381c2b6..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/vendor-ui-DpEM1HT6.css +++ /dev/null @@ -1 +0,0 @@ -:root{--go-ui-font-family-sans-serif: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;--go-ui-font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;--go-ui-font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;--base-font-size: .875rem;--go-ui-font-size-export: .6875rem;--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: var(--base-font-size);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.5);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.875);--go-ui-font-size-4xl: calc(var(--base-font-size) * 2.375);--go-ui-height-icon-multiplier: 1.33em;--go-ui-height-brand-icon: 2.5rem;--go-ui-height-social-icon: 2.5rem;--go-ui-height-key-figure-icon: 3rem;--go-ui-height-status-icon: 2.5rem;--go-ui-height-compact-status-icon: 2rem;--go-ui-line-height-none: 1;--go-ui-line-height-xs: 1.25;--go-ui-line-height-sm: 1.375;--go-ui-line-height-md: 1.5;--go-ui-font-weight-light: 300;--go-ui-font-weight-normal: 400;--go-ui-font-weight-medium: 500;--go-ui-font-weight-semibold: 600;--go-ui-font-weight-bold: 700;--go-ui-width-screen-sm: 640px;--go-ui-width-screen-md: 768px;--go-ui-width-screen-lg: 1024px;--go-ui-width-screen-xl: 1280px;--go-ui-width-screen-2xl: 1536px;--base-spacing: 1rem;--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.5);--go-ui-spacing-xl: calc(var(--base-spacing) * 2.25);--go-ui-spacing-2xl: calc(var(--base-spacing) * 3.5);--go-ui-spacing-3xl: calc(var(--base-spacing) * 4.75);--go-ui-spacing-4xl: calc(var(--base-spacing) * 6);--go-ui-spacing-5xl: calc(var(--base-spacing) * 7.25);--go-ui-width-separator-sm: 1pt;--go-ui-width-separator-md: 2pt;--go-ui-width-separator-lg: 4pt;--go-ui-width-separator-xl: 8pt;--go-ui-width-separator-thin: 1pt;--go-ui-width-separator-small: 2pt;--go-ui-width-separator-thick: 4pt;--go-ui-width-separator-medium: 6pt;--go-ui-width-separator-large: 8pt;--go-ui-width-separator-dense: 12pt;--go-ui-width-separator-extra-dense: 14pt;--go-ui-border-radius-none: 0;--go-ui-border-radius-sm: .125rem;--go-ui-border-radius-md: .25rem;--go-ui-border-radius-lg: .5rem;--go-ui-border-radius-xl: .75rem;--go-ui-border-radius-2xl: 1rem;--go-ui-border-radius-3xl: 1.5rem;--go-ui-border-radius-full: 9999px;--go-ui-box-shadow-xs: 0 1pt 2pt rgba(0, 0, 0, .2);--go-ui-box-shadow-sm: 0 1pt 4pt rgba(0, 0, 0, .2);--go-ui-box-shadow-md: 0 1pt 5pt -2pt rgba(0, 0, 0, .375);--go-ui-box-shadow-lg: 0 2pt 8pt -4pt rgba(0, 0, 0, .5);--go-ui-box-shadow-xl: 0 3pt 16pt -6pt rgba(0, 0, 0, .5);--go-ui-box-shadow-2xl: 0 4pt 16pt -6pt rgba(0, 0, 0, 1);--go-ui-box-shadow-inner: inset 0 2pt 4pt 0 rgba(0, 0, 0, .375);--go-ui-box-shadow-none: 0 0 rgba(0,0,0,0);--go-ui-duration-transition-fast: .1s;--go-ui-duration-transition-medium: .2s;--go-ui-duration-transition-slow: .5s;--go-ui-duration-animation-fast: .5s;--go-ui-duration-animation-medium: 1s;--go-ui-duration-animation-slow: 2s;--go-ui-color-orange: #FF8000;--go-ui-color-green: #7FB845;--go-ui-color-blue: #3FA2F7;--go-ui-color-red: #F75C65;--go-ui-color-yellow: #d9b100;--go-ui-color-semantic-yellow: #FFB443;--go-ui-color-black: #000000;--go-ui-color-white: #ffffff;--go-ui-color-gray-10: #FAFAFA;--go-ui-color-gray-20: #F2F2F2;--go-ui-color-gray-30: #E0E0E0;--go-ui-color-gray-40: #C6C6C6;--go-ui-color-gray-50: #A8A8A8;--go-ui-color-gray-60: #8D8D8D;--go-ui-color-gray-70: #6F6F6F;--go-ui-color-gray-80: #525252;--go-ui-color-gray-90: #323232;--go-ui-color-red-10: #FDD6D9;--go-ui-color-red-20: #FCC2C5;--go-ui-color-red-30: #FBADB2;--go-ui-color-red-40: #FA999F;--go-ui-color-red-50: #F9858C;--go-ui-color-red-60: #F87079;--go-ui-color-red-70: #F75C65;--go-ui-color-red-80: #F64752;--go-ui-color-red-90: #F5333F;--go-ui-color-dark-blue-10: #009CDD;--go-ui-color-dark-blue-20: #418FDE;--go-ui-color-dark-blue-30: #236192;--go-ui-color-dark-blue-40: #1B365D;--go-ui-color-blue-10: #E0E3E7;--go-ui-color-blue-20: #CCD2D9;--go-ui-color-blue-30: #AEB7C2;--go-ui-color-blue-40: #99A5B3;--go-ui-color-blue-50: #7D8B9D;--go-ui-color-blue-60: #67788D;--go-ui-color-blue-70: #4D617A;--go-ui-color-blue-80: #344B67;--go-ui-color-blue-90: #011E41;--go-ui-color-primary-red: var(--go-ui-color-red-90);--go-ui-color-primary-blue: var(--go-ui-color-blue-90);--go-ui-color-primary-gray: var(--go-ui-color-gray-90);--go-ui-color-red-hover: #DE2934;--go-ui-color-purple-per: #8648B3;--go-ui-color-orange-per: #FF8654;--go-ui-color-blue-per: #418FDE;--go-ui-color-teal-per: #00B2A2;--go-ui-color-red-per: #DA283D;--go-ui-color-text-black: rgba(0, 0, 0, 1);--go-ui-color-text: rgba(0, 0, 0, .8);--go-ui-color-text-light: rgba(0, 0, 0, .5);--go-ui-color-positive: var(--go-ui-color-green);--go-ui-color-information: var(--go-ui-color-blue);--go-ui-color-warning: var(--go-ui-color-yellow);--go-ui-color-negative: var(--go-ui-color-red);--go-ui-color-separator: rgba(0, 0, 0, .1);--go-ui-color-separator-light: rgba(0, 0, 0, .05);--go-ui-color-background: #f7f7f7;--go-ui-color-foreground: #ffffff;--go-ui-color-element-background: rgba(0, 0, 0, .06);--go-ui-color-readonly-element-background: rgba(0, 0, 0, .03);--go-ui-color-background-overlay: rgba(255, 255, 255, .88);--go-ui-color-background-overlay-dark: rgba(0, 0, 0, .5);--go-ui-color-background-hover: rgba(0, 0, 0, .06);--go-ui-opacity-disabled-element: .5;--go-ui-opacity-chart-point: .8;--go-ui-opacity-message: .8;--go-ui-content-min-height: 13rem;--go-ui-compact-content-min-height: 7rem;--go-ui-width-min-modal: 18rem;--go-ui-height-min-modal: 11rem;--go-ui-width-modal-sm: 32rem;--go-ui-height-modal-sm: 100%;--go-ui-width-modal-md: 42rem;--go-ui-height-modal-md: 100%;--go-ui-width-modal-lg: 64rem;--go-ui-height-modal-lg: 100%;--go-ui-width-modal-xl: 92rem;--go-ui-height-modal-xl: 100%;--go-ui-saturate-0: 0;--go-ui-saturate-50: .5;--go-ui-saturate-100: 1;--go-ui-saturate-150: 1.5;--go-ui-saturate-200: 2;--go-ui-color-hazard-fi: #b7c992;--go-ui-color-map-dot-appeals: #f5333f;--go-ui-color-map-dot-dref: #ff9e00;--go-ui-color-map-dot-fba: #ff6b00;--go-ui-color-map-dot-multiple-types: #4c5d9b;--go-ui-width-content-max: 50rem;--go-ui-page-header-description-width-max: var(--go-ui-width-content-max);--go-ui-page-width-max: 90rem;--mapbox-icon-width: 88px;--go-ui-export-page-margin: 10mm 10mm 16mm 10mm}@media screen and (max-width: 40rem){:root{--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: calc(var(--base-font-size) * 1);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.4);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.6);--go-ui-font-size-4xl: calc(var(--base-font-size) * 1.8)}}@media screen and (max-width: 40rem){:root{--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.25);--go-ui-spacing-xl: calc(var(--base-spacing) * 1.5625);--go-ui-spacing-2xl: calc(var(--base-spacing) * 1.95);--go-ui-spacing-3xl: calc(var(--base-spacing) * 2.44);--go-ui-spacing-4xl: calc(var(--base-spacing) * 3);--go-ui-spacing-5xl: calc(var(--base-spacing) * 3.8)}}._raw-button_1p3om_1{position:relative;outline-offset:var(--go-ui-width-separator-lg);border:0;background-color:transparent;cursor:pointer;padding:0;color:inherit;font-family:inherit;font-size:inherit}._raw-button_1p3om_1:focus-visible,._raw-button_1p3om_1._focused_1p3om_13{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:-4px}._button_18a84_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--font-size: inherit;--border-radius: var(--go-ui-border-radius-full);--text-transform: none;--cursor: default;--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-lg);display:inline-flex;position:relative;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);line-height:var(--go-ui-line-height-xs);color:inherit;color:var(--color-text);font-family:inherit;font-size:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-medium)}._button_18a84_1._ellipsized_18a84_29{flex-grow:1}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32{display:block;min-width:0}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32 ._overflow-wrapper_18a84_36{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._button_18a84_1._primary_18a84_44 ._children_18a84_32,._button_18a84_1._secondary_18a84_45 ._children_18a84_32{text-align:center}._button_18a84_1._primary_18a84_44._no-spacing_18a84_50,._button_18a84_1._secondary_18a84_45._no-spacing_18a84_50{--padding: 0}._button_18a84_1._primary_18a84_44._condensed-spacing_18a84_54,._button_18a84_1._secondary_18a84_45._condensed-spacing_18a84_54,._button_18a84_1._primary_18a84_44._compact-spacing_18a84_58,._button_18a84_1._secondary_18a84_45._compact-spacing_18a84_58{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._button_18a84_1._primary_18a84_44._cozy-spacing_18a84_62,._button_18a84_1._secondary_18a84_45._cozy-spacing_18a84_62,._button_18a84_1._primary_18a84_44._default-spacing_18a84_66,._button_18a84_1._secondary_18a84_45._default-spacing_18a84_66{--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._button_18a84_1._primary_18a84_44._comfortable-spacing_18a84_70,._button_18a84_1._secondary_18a84_45._comfortable-spacing_18a84_70{--padding: var(--go-ui-spacing-2xs) var(--go-ui-spacing-lg)}._button_18a84_1._primary_18a84_44._relaxed-spacing_18a84_74,._button_18a84_1._secondary_18a84_45._relaxed-spacing_18a84_74{--padding: var(--go-ui-spacing-xs) var(--go-ui-spacing-xl)}._button_18a84_1._primary_18a84_44._loose-spacing_18a84_78,._button_18a84_1._secondary_18a84_45._loose-spacing_18a84_78{--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-2xl)}._button_18a84_1._primary_18a84_44{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_18a84_1._primary_18a84_44._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._primary_18a84_44:not(._disabled_18a84_88):hover{--color-background: var(--go-ui-color-red-hover)}._button_18a84_1._secondary_18a84_45{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._secondary_18a84_45._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._secondary_18a84_45:not(._disabled_18a84_88):hover{background-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._button_18a84_1._tertiary_18a84_116{--color-border: transparent;--color-background: transparent;--color-text: inherit;--padding: 0;--border-radius: unset}._button_18a84_1._tertiary_18a84_116:not(._disabled_18a84_88):hover{--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._tertiary-on-dark_18a84_130{--color-border: transparent;--color-background: transparent;--color-text: var(--go-ui-color-white);--padding: 0;--border-radius: unset}._button_18a84_1._tertiary-on-dark_18a84_130:not(._disabled_18a84_88):hover{opacity:.8}._button_18a84_1._dropdown-item_18a84_144{display:flex;width:100%;text-align:left;--border-radius: unset;--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._button_18a84_1._dropdown-item_18a84_144:hover{background-color:var(--go-ui-color-background-hover)}._button_18a84_1._disabled_18a84_88{opacity:var(--go-ui-opacity-disabled-element);--cursor: not-allowed}._button_18a84_1:not(._disabled_18a84_88){--cursor: pointer}._basic-layout_v9jro_1{display:flex;align-items:flex-start}._basic-layout_v9jro_1._with-wrap_v9jro_5{flex-wrap:wrap}._basic-layout_v9jro_1 ._icons-container_v9jro_9{display:flex;align-items:flex-start}._basic-layout_v9jro_1 ._children-container_v9jro_14{display:flex;flex-grow:1}._basic-layout_v9jro_1 ._actions-container_v9jro_19{display:flex;align-items:flex-start}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._icons-container_v9jro_9{flex-shrink:0}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._actions-container_v9jro_19{flex-shrink:0}._alert_uuuo4_1{display:flex;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-2xl);width:calc(14rem + 16vw);color:var(--go-ui-color-white)}._alert_uuuo4_1 ._icon_uuuo4_8,._alert_uuuo4_1 ._close-icon_uuuo4_12{font-size:var(--go-ui-font-size-2xl)}._alert_uuuo4_1._info_uuuo4_16{background-color:var(--go-ui-color-gray-80)}._alert_uuuo4_1._success_uuuo4_20{background-color:var(--go-ui-color-positive)}._alert_uuuo4_1._danger_uuuo4_24{background-color:var(--go-ui-color-negative)}._alert_uuuo4_1._warning_uuuo4_28{background-color:var(--go-ui-color-warning)}._container_lyve2_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:flex;flex-direction:column}._container_lyve2_1 ._header_lyve2_8{flex-shrink:0}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11{display:flex;flex-direction:row;justify-content:center}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11 ._centered-description_lyve2_16{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._container_lyve2_1._with-border-and-header-background_lyve2_23{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md)}._container_lyve2_1._with-border-and-header-background_lyve2_23 ._header_lyve2_8{border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-background)}._container_lyve2_1 ._border_lyve2_33{flex-shrink:0;margin:0;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._container_lyve2_1 ._content_lyve2_39{flex-grow:1}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42{isolation:isolate;position:relative;min-height:6rem}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42 ._message_lyve2_47{z-index:1}._container_lyve2_1 ._footer_lyve2_53{flex-shrink:0}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr))}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39 ._message_lyve2_47{grid-column:1 / -1}._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--num-columns: 2}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--num-columns: 3}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._four-columns_lyve2_96{--num-columns: 4}._container_lyve2_1._with-grid-view_lyve2_57._five-columns_lyve2_100{--num-columns: 5}._container_lyve2_1._with-vertical-view_lyve2_105>._content_lyve2_39{display:flex;flex-direction:column}._container_lyve2_1._with-overflow-in-content_lyve2_112>._content_lyve2_39{overflow:auto}._default-message_wu986_1._overlay_wu986_2{position:absolute;top:0;left:0;width:100%;height:100%}._message_176iw_1{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-sm);justify-content:center;opacity:var(--go-ui-opacity-message);background-color:var(--go-ui-color-foreground);padding:var(--go-ui-spacing-md);min-height:var(--go-ui-content-min-height);text-align:center}._message_176iw_1 ._icon_176iw_13{color:var(--go-ui-color-text-light);font-size:var(--go-ui-height-status-icon)}._message_176iw_1 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-height-compact-status-icon)}._message_176iw_1 ._title_176iw_22{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._errored_176iw_27 ._title_176iw_22{color:var(--go-ui-color-primary-red)}._message_176iw_1._compact_176iw_33{padding:var(--go-ui-spacing-sm);min-height:var(--go-ui-compact-content-min-height)}._message_176iw_1._compact_176iw_33 ._title_176iw_22{font-size:var(--go-ui-font-size-lg)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13{font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-font-size-xl)}._spinner_50bgg_1{display:inline-flex;border-radius:var(--go-ui-border-radius-full);background:var(--go-ui-color-gray-40);padding:.2em;line-height:0;gap:.2em}._spinner_50bgg_1 ._spinner-bounce_50bgg_9{border-radius:50%;background:var(--go-ui-color-white);width:.6em;height:.6em;animation:_spinner-bounce-delay_50bgg_1 var(--go-ui-duration-animation-slow) infinite ease-in-out both}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(1){animation-delay:calc(var(--go-ui-duration-animation-fast))}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(2){animation-delay:calc(var(--go-ui-duration-animation-fast) * 2)}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(3){animation-delay:calc(var(--go-ui-duration-animation-fast) * 3)}@keyframes _spinner-bounce-delay_50bgg_1{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}._filter-bar_16xsj_1{display:flex;flex-direction:column}._grid-with-actions_16xsj_6{display:flex}._grid-with-actions_16xsj_6 ._grid_16xsj_6{display:grid;flex-grow:1;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._grid-with-actions_16xsj_6 ._actions_16xsj_15{display:flex}@media screen and (max-width: 30rem){._grid-with-actions_16xsj_6{flex-wrap:wrap}}._header_537v1_1{display:flex;flex-direction:column}._heading_1uxwj_1{--font-size: var(--go-ui-font-size-xl);--line-height: var(--go-ui-line-height-sm);margin:0;line-height:var(--line-height);font-size:var(--font-size);font-weight:var(--go-ui-font-weight-semibold)}._heading_1uxwj_1._level-one_1uxwj_9{--font-size: var(--go-ui-font-size-4xl)}@media print{._heading_1uxwj_1._level-one_1uxwj_9{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-two_1uxwj_17{--font-size: var(--go-ui-font-size-2xl)}@media print{._heading_1uxwj_1._level-two_1uxwj_17{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-three_1uxwj_25{--font-size: var(--go-ui-font-size-xl)}@media print{._heading_1uxwj_1._level-three_1uxwj_25{color:var(--go-ui-color-primary-red)}}._heading_1uxwj_1._level-four_1uxwj_33{--font-size: var(--go-ui-font-size-lg)}._heading_1uxwj_1._level-five_1uxwj_37{--font-size: var(--go-ui-font-size-md)}._heading_1uxwj_1._level-six_1uxwj_41{--font-size: var(--go-ui-font-size-sm)}._heading_1uxwj_1 ._ellipsized-text_1uxwj_45{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._heading_1uxwj_1._ellipsized_1uxwj_45{width:100%;overflow:auto}._alert-container_rcayz_1{isolation:isolate;position:fixed;top:0;left:50%;transform:translate(-50%);z-index:1;padding:var(--go-ui-spacing-2xl) 0;max-height:calc(100vh - 2 * var(--go-ui-spacing-2xl));overflow:auto;scrollbar-width:none}._alert-container_rcayz_1::-webkit-scrollbar{display:none}._alert-container_rcayz_1 ._alert_rcayz_1{margin:var(--go-ui-spacing-sm) 0}._bar-chart_3dbpc_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-sm)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6{display:flex;align-items:center;gap:var(--go-ui-spacing-md)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6._hoverable_3dbpc_11:hover{background-color:var(--go-ui-color-background-hover)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._label_3dbpc_17{width:30%;font-weight:var(--go-ui-font-weight-medium)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22{border-radius:.3rem;background-color:var(--go-ui-color-gray-30);width:60%;height:.6rem}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22 ._bar_3dbpc_1{border-radius:.3rem;background-color:var(--go-ui-color-primary-red);height:100%}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._value_3dbpc_36{width:10%;font-weight:var(--go-ui-font-weight-medium)}._number-output_1blvi_1{display:inline;font-size:inherit}._tooltip-dummy_rbf3f_1{opacity:0;width:0;height:0}._tooltip-content_rbf3f_7{opacity:0;padding:0;animation:_slide-down_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast)}._pointer_rbf3f_14{opacity:0;animation:_fade-in_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium)}@keyframes _slide-down_rbf3f_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_rbf3f_1{0%{opacity:0}to{opacity:1}}._popup_cws49_1{position:fixed;border-radius:var(--go-ui-spacing-xs);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);max-height:40vh;overflow:auto}._popup_cws49_1._top-orientation_cws49_9{box-shadow:0 -8pt 20pt -5pt #00000080}._pointer_cws49_15{position:fixed;transform:translate(-50%);background-color:transparent;line-height:0;color:var(--go-ui-color-white);font-size:.5rem;pointer-events:none;filter:drop-shadow(0 -1pt 1pt rgba(0,0,0,.1))}._pointer_cws49_15 ._icon_cws49_25{width:2em;height:1em;fill:currentColor}._pointer_cws49_15._top-orientation_cws49_9{transform:translate(-50%) rotate(180deg)}._block-loading_1jl3q_1{display:flex;padding:var(--go-ui-spacing-sm);width:100%;min-height:var(--go-ui-content-min-height)}._block-loading_1jl3q_1 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-4xl)}._block-loading_1jl3q_1 ._inner_1jl3q_11{display:flex;align-items:center;flex-direction:column;flex-grow:1;justify-content:center;padding:var(--go-ui-spacing-sm);gap:var(--go-ui-spacing-md)}._block-loading_1jl3q_1._with-border_1jl3q_21 ._inner_1jl3q_11{border:var(--go-ui-width-separator-md) dashed var(--go-ui-color-gray-40);border-radius:var(--go-ui-border-radius-xl)}._block-loading_1jl3q_1._compact_1jl3q_28{min-height:var(--go-ui-compact-content-min-height)}._block-loading_1jl3q_1._compact_1jl3q_28 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-xl)}._overlay_cnygi_1{position:absolute;background-color:var(--go-ui-color-background-overlay);width:100%;height:100%}._overlay_cnygi_1._dark_cnygi_7{background-color:var(--go-ui-color-background-overlay-dark)}._body-overlay_1iouu_1{display:flex;position:fixed;top:0;left:0;align-items:center;justify-content:center;width:100vw;height:100vh}._radio-input_17cft_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._radio-input_17cft_1 ._radio-list-container_17cft_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);min-height:1em}._radio-input_17cft_1._disabled_17cft_13{opacity:var(--go-ui-opacity-disabled-element);filter:saturate(50%)}._radio-input_17cft_1 ._input-hint_17cft_18{padding:var(--go-ui-spacing-xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._input-error_1sxiz_1{display:flex;align-items:center;opacity:0;background-color:var(--go-ui-color-red);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);animation:_slide-down_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast);color:var(--go-ui-color-white);gap:var(--go-ui-spacing-sm)}._pointer_1sxiz_14{opacity:0;animation:_fade-in_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium);color:var(--go-ui-color-red)}@keyframes _slide-down_1sxiz_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_1sxiz_1{0%{opacity:0}to{opacity:1}}._input-label_3lsx4_1{display:flex;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);gap:var(--go-ui-spacing-xs)}._input-label_3lsx4_1._disabled_3lsx4_7{color:var(--go-ui-color-gray-40)}._input-label_3lsx4_1 ._required_3lsx4_11{color:var(--go-ui-color-primary-red)}._radio_1uudv_1{--cursor: default;cursor:default;cursor:var(--cursor)}._radio_1uudv_1 ._icon_1uudv_5{transition:var(--go-ui-duration-transition-medium) color ease-in-out;font-size:var(--go-ui-height-icon-multiplier)}._radio_1uudv_1 ._content_1uudv_10{flex-direction:column;gap:0;line-height:var(--go-ui-line-height-sm)}._radio_1uudv_1 ._description_1uudv_16{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._radio_1uudv_1 ._input_1uudv_21{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._radio_1uudv_1 ._input_1uudv_21:focus-visible+div{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:1px;border-radius:50%}._radio_1uudv_1._active_1uudv_37 ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1._disabled_1uudv_43{opacity:var(--go-ui-opacity-disabled-element)}._radio_1uudv_1:not(._disabled_1uudv_43):focus ._icon_1uudv_5,._radio_1uudv_1:not(._disabled_1uudv_43):hover ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1:not(._disabled_1uudv_43):not(._read-only_1uudv_55){--cursor: pointer}._boolean-output_kg1uq_1{color:inherit}._breadcrumbs_c7c54_1{display:flex;align-items:center;flex-wrap:wrap}._breadcrumbs_c7c54_1 ._item_c7c54_6{display:flex}._breadcrumbs_c7c54_1 ._item_c7c54_6:not(:last-child){color:var(--go-ui-color-gray-70)}._breadcrumbs_c7c54_1 ._item_c7c54_6:last-child{color:var(--go-ui-color-black)}._breadcrumbs_c7c54_1 ._separator_c7c54_18{display:flex;justify-content:center;color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-xl)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2{transform:rotate(-90deg)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2 ._y-axis-label_8lppt_2{display:flex;justify-content:center;width:100%;height:100%}._chart-axes_8lppt_1 ._y-axis-tick-text_8lppt_13{display:flex;align-items:center;justify-content:flex-end;padding:0 var(--go-ui-spacing-2xs);text-align:right;word-break:break-word;font-size:var(--go-ui-font-size-xs)}._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transition:var(--go-ui-duration-transition-medium) ease-in-out transform;padding:var(--go-ui-spacing-2xs) 0;text-align:center;word-break:break-word;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transform:rotate(-30deg) translate(-10%) translateY(20%);padding:0;font-size:var(--go-ui-font-size-2xs)}}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.5}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40._hovered_8lppt_46,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41._hovered_8lppt_46{stroke-opacity:1}._chart-axes_8lppt_1 ._bound-rect_8lppt_51{fill:var(--go-ui-color-gray-60);fill-opacity:0;transition:fill-opacity var(--go-ui-duration-transition-slow) ease-in-out}._chart-axes_8lppt_1 ._bound-rect_8lppt_51:hover{fill-opacity:.2}._chart-container_z2i5d_1{width:100%;height:16rem}._chart-container_z2i5d_1 ._svg_z2i5d_5{width:100%;height:100%}._chip_3wch9_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--border-radius: var(--go-ui-border-radius-full);--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm);display:flex;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);padding:var(--padding);color:inherit;color:var(--color-text);gap:var(--go-ui-spacing-3xs)}._chip_3wch9_1._no-delete-icon_3wch9_17{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._chip_3wch9_1._primary_3wch9_21{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._chip_3wch9_1._secondary_3wch9_27{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._chip_3wch9_1._tertiary_3wch9_33{--color-border: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-30);--color-text: inherit}._chip_3wch9_1 ._close-icon_3wch9_39{font-size:var(--go-ui-font-size-sm)}._button_1vbet_1{--color-border: transparent;--color-text: transparent;--color-background: transparent;--font-size: var(--go-ui-height-icon-multiplier);--border-radius: var(--go-ui-border-radius-md);--text-transform: none;--cursor: default;--spacing: var(--go-ui-spacing-2xs);--padding: var(--go-ui-spacing-2xs);display:flex;position:relative;align-items:center;justify-content:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);color:transparent;color:var(--color-text);font-family:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-normal);gap:var(--spacing)}._button_1vbet_1._round_1vbet_31{--border-radius: 50%}._button_1vbet_1._primary_1vbet_34{--border-color: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_1vbet_1._primary_1vbet_34:disabled{--border-color: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-40)}._button_1vbet_1._primary_1vbet_34:not(:disabled):hover{--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._secondary_1vbet_51{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1._secondary_1vbet_51:disabled{--color-text: var(--go-ui-color-gray-40);--color-border: var(--go-ui-color-gray-40)}._button_1vbet_1._secondary_1vbet_51:not(:disabled):hover{--color-text: var(--go-ui-color-white);--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._tertiary_1vbet_69{--color-background: transparent;--color-text: inherit}._button_1vbet_1._tertiary_1vbet_69:disabled{--color-text: var(--go-ui-color-gray-40)}._button_1vbet_1._tertiary_1vbet_69:not(:disabled):hover{--color-background: var(--go-ui-color-gray-20);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1:disabled{--cursor: not-allowed}._button_1vbet_1:not(:disabled){--cursor: pointer}._checkbox_12g7n_1{display:flex;align-items:flex-start;cursor:pointer;gap:var(--go-ui-spacing-sm)}._checkbox_12g7n_1._with-background_12g7n_7{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12{position:relative;flex-shrink:0;line-height:0;font-size:var(--go-ui-height-icon-multiplier)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18:focus-visible+svg{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40)}._checkbox_12g7n_1 ._content_12g7n_33{flex-direction:column;flex-grow:1;line-height:var(--go-ui-line-height-sm);gap:0}._checkbox_12g7n_1 ._description_12g7n_40{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-xs)}._checkbox_12g7n_1._checked_12g7n_45 ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1:focus ._checkmark_12g7n_12,._checkbox_12g7n_1:hover ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58{display:flex;align-items:flex-start;cursor:not-allowed;gap:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-40)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58 ._checkmark_12g7n_12{color:var(--go-ui-color-gray-40)}._checklist_nwqu8_1{--spacing: var(--go-ui-spacing-md);display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._vertical_nwqu8_7 ._checklist-container_nwqu8_8{display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._horizontal_nwqu8_15 ._checklist-container_nwqu8_8{display:grid;grid-gap:var(--spacing);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}._input-hint_1p19h_1{display:inline-block;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._overlay_1iffn_1{overflow:auto;animation:_fade-in_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5{display:block;width:calc(100% - var(--go-ui-spacing-md) * 2);max-height:calc(100% - var(--go-ui-spacing-md) * 2);overflow:auto;animation:_slide-down_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5._size-sm_1iffn_12{max-width:var(--go-ui-width-modal-sm)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-md_1iffn_16{max-width:var(--go-ui-width-modal-md)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-lg_1iffn_20,._overlay_1iffn_1 ._modal-container_1iffn_5._size-xl_1iffn_24{max-width:var(--go-ui-width-modal-lg)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-full_1iffn_28{width:calc(100vw - var(--go-ui-spacing-md) * 2);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._page-width_1iffn_33{max-width:var(--go-ui-page-width-max);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-auto_1iffn_38{max-width:-moz-fit-content;max-width:fit-content}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);width:100%;min-width:var(--go-ui-width-min-modal);height:100%;min-height:var(--go-ui-height-min-modal);overflow:auto}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._close-icon_1iffn_53{font-size:var(--go-ui-height-icon-multiplier)}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._content_1iffn_57{flex-grow:1;overflow:auto}@keyframes _fade-in_1iffn_1{0%{opacity:0}to{opacity:1}}@keyframes _slide-down_1iffn_1{0%{transform:translateY(-5pt)}to{transform:translateY(0)}}._input-container_1b4m7_1{position:relative}._input-container_1b4m7_1 ._input-section_1b4m7_4{align-items:center;transition:var(--go-ui-duration-transition-medium) var(--go-ui-color-gray-10) ease-in-out;border-bottom:var(--go-ui-width-separator-thin) solid transparent;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-element-background);padding:0 var(--go-ui-spacing-sm)}._input-container_1b4m7_1 ._input-section_1b4m7_4 ._input_1b4m7_1{padding:var(--go-ui-spacing-xs) 0}._input-container_1b4m7_1._disabled_1b4m7_17{opacity:var(--go-ui-opacity-disabled-element)}._input-container_1b4m7_1._disabled_1b4m7_17 ._input-section_1b4m7_4{cursor:not-allowed}._input-container_1b4m7_1._errored_1b4m7_25 ._input-section_1b4m7_4{border-color:var(--go-ui-color-red)}._input-container_1b4m7_1._general_1b4m7_31 ._input-section_1b4m7_4{border-radius:0;border-bottom-color:var(--go-ui-color-separator)}._input-container_1b4m7_1._read-only_1b4m7_38 ._input-section_1b4m7_4{background-color:var(--go-ui-color-readonly-element-background)}._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:hover,._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:focus-within{border-bottom-color:var(--go-ui-color-primary-red)}._input-container_1b4m7_1 ._input-hint_1b4m7_53{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._input-container_1b4m7_1 ._input-error_1b4m7_58{position:absolute;min-width:10rem}._input-container_1b4m7_1:not(._disabled_1b4m7_17):not(._read-only_1b4m7_38):hover:enabled ._input-section_1b4m7_4{border-bottom-color:var(--go-ui-color-primary-red)}._raw-input_8rtzt_1{margin:0;margin:initial;outline:medium none invert;outline:initial;border:medium none currentColor;border:initial;background-color:transparent;background-color:initial;padding:0;padding:initial;width:100%;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}._raw-input_8rtzt_1:disabled{cursor:not-allowed}._date-output_4jzjo_1{display:inline}._date-range_k6lnj_1{display:flex;gap:var(--go-ui-spacing-md);flex-wrap:wrap}._dropdown-menu_16hml_1{align-items:center}._dropdown-menu_16hml_1 ._icons_16hml_4,._dropdown-menu_16hml_1 ._content_16hml_5,._dropdown-menu_16hml_1 ._actions_16hml_6{pointer-events:none}._dropdown-menu_16hml_1 ._dropdown-icon_16hml_10{margin-left:-.3em;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-content_16hml_16{display:flex;flex-direction:column;padding:var(--go-ui-spacing-sm) 0}._expandable-container_17290_1{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._header_17290_5{background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._icon_17290_9{display:flex;font-size:var(--go-ui-height-icon-multiplier)}._expandable-container_17290_1:hover ._icon_17290_9{animation:_wiggle_17290_1 var(--go-ui-duration-transition-medium) ease-out}@keyframes _wiggle_17290_1{0%{transform:translateY(0)}50%{transform:translateY(-.1rem)}to{transform:translateY(0)}}._grid_1n8b5_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / 2),1fr));grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr));position:relative;min-height:var(--go-ui-content-min-height)}._grid_1n8b5_1 ._message_1n8b5_10{grid-column:-1 / 1}._grid_1n8b5_1._compact_1n8b5_14{min-height:0;min-height:initial}._grid_1n8b5_1._compact_1n8b5_14._pending_1n8b5_17{min-height:var(--go-ui-compact-content-min-height)}._grid_1n8b5_1._two-columns_1n8b5_22{--num-columns: 2}@media screen and (max-width: 55rem){._grid_1n8b5_1._two-columns_1n8b5_22{--max-width: 60rem}}._grid_1n8b5_1._three-columns_1n8b5_31{--num-columns: 3}@media screen and (max-width: 55rem){._grid_1n8b5_1._three-columns_1n8b5_31{--max-width: 60rem}}._grid_1n8b5_1._four-columns_1n8b5_39{--num-columns: 4}._grid_1n8b5_1._five-columns_1n8b5_43{--num-columns: 5}._html-output_3s7du_1 p{margin:var(--go-ui-spacing-xs)}._html-output_3s7du_1 iframe{width:100%}._image_yrvu8_1{display:flex;flex-direction:column;margin:0}._image_yrvu8_1 ._img-element_yrvu8_6{background-color:var(--go-ui-color-background);width:100%;height:auto;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center}._image_yrvu8_1._expandable_yrvu8_14{cursor:pointer}._image_yrvu8_1 ._caption_yrvu8_18{text-align:center}._expanded-modal_yrvu8_23 ._content_yrvu8_24{display:flex}._expanded-modal_yrvu8_23 ._content_yrvu8_24 ._img-element_yrvu8_6{margin:0;background-color:var(--go-ui-color-background);width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._input-section_1cptl_1{display:grid;grid-gap:var(--go-ui-spacing-md);grid-template-columns:1fr 2fr;background-color:var(--go-ui-color-white)}._input-section_1cptl_1 ._header_1cptl_7 ._heading-container_1cptl_8 ._heading_1cptl_8{flex-grow:initial}@media screen and (max-width: 60rem){._input-section_1cptl_1{grid-template-columns:1fr}}._input-section_1cptl_1._with-compact-title-section_1cptl_19{grid-template-columns:1fr 3fr}._input-section_1cptl_1._with-padding_1cptl_23{padding:var(--go-ui-spacing-lg)}._input-section_1cptl_1 ._asterisk_1cptl_27{color:var(--go-ui-color-primary-red)}._input-section_1cptl_1 ._description_1cptl_31{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._input-section_1cptl_1 ._content-section_1cptl_37{display:grid;grid-gap:var(--go-ui-spacing-sm);align-items:start}._input-section_1cptl_1 ._content-section_1cptl_37._one-column_1cptl_42{grid-template-columns:1fr}._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}._input-section_1cptl_1 ._content-section_1cptl_37._four-column_1cptl_58{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._input-section_1cptl_1._without-title-section_1cptl_63{grid-template-columns:1fr}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(28rem,1fr))}@media screen and (max-width: 70rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(22rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._info-popup_i3rna_1 ._label_i3rna_2{display:inline-flex;align-items:center;gap:var(--go-ui-spacing-xs)}._info-popup_i3rna_1 ._label_i3rna_2 ._icon_i3rna_7{display:inline-flex;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-container_i3rna_15{padding:0;min-width:min(20rem,100vw);max-width:25rem}._dropdown-container_i3rna_15 ._content_i3rna_20{display:flex;flex-direction:column;white-space:pre-wrap;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1{display:flex;position:relative;flex-direction:column;padding:var(--go-ui-spacing-md);gap:var(--go-ui-spacing-xs)}._key-figure_1owjn_1 ._icon-section_1owjn_8{display:flex}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._icon_1owjn_8{display:flex;align-items:center;flex-grow:1;justify-content:flex-start;color:var(--go-ui-color-primary-red);font-size:var(--go-ui-height-key-figure-icon)}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._info_1owjn_20{flex-shrink:0}._key-figure_1owjn_1 ._info-section-without-icon_1owjn_25{position:absolute;top:0;right:0}._key-figure_1owjn_1 ._value_1owjn_31{font-size:var(--go-ui-font-size-3xl);font-weight:var(--go-ui-font-weight-medium)}._key-figure_1owjn_1 ._description_1owjn_36{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1._with-icon_1owjn_41 ._value_1owjn_31{font-size:var(--go-ui-font-size-4xl)}._progress-wrapper_x340w_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xs);color:var(--go-ui-color-primary-red)}._progress-wrapper_x340w_1 ._title_x340w_7{color:var(--go-ui-color-text)}._progress-wrapper_x340w_1 ._total_x340w_11{display:flex;flex-shrink:0;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-separator);height:.5rem}._progress-wrapper_x340w_1 ._total_x340w_11 ._progress_x340w_1{transition:var(--go-ui-duration-transition-medium) width ease-in-out;border-radius:var(--go-ui-border-radius-md)}._legend_77ox6_1{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._legend_77ox6_1 ._legend-items_77ox6_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._legend-element_1a9ic_1{display:flex;align-items:center;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._legend-element_1a9ic_1 ._color_1a9ic_7{flex-shrink:0;border-radius:.4em;width:.8em;height:.8em}._legend-element_1a9ic_1 ._icon-container_1a9ic_14{display:flex;align-items:center;justify-content:center;border-radius:50%;padding:var(--go-ui-spacing-2xs);width:1.2rem;height:1.2rem}._legend-element_1a9ic_1 ._icon-container_1a9ic_14 ._icon_1a9ic_14{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._legend-element_1a9ic_1 ._label_1a9ic_31{font-size:1em}._list_1whuj_1{position:relative;min-height:var(--go-ui-content-min-height)}._list_1whuj_1._compact_1whuj_5{min-height:0;min-height:initial}._list_1whuj_1._compact_1whuj_5._pending_1whuj_8{min-height:var(--go-ui-compact-content-min-height)}._option_1kpl9_1{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-md);overflow:auto}._option_1kpl9_1._active_1kpl9_7{color:var(--go-ui-color-primary-red)}._option_1kpl9_1 ._icon_1kpl9_11{display:flex;align-items:center;flex-shrink:0}._option_1kpl9_1 ._label_1kpl9_17{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._popup_poyjv_1{padding:var(--go-ui-spacing-sm) 0}._popup_poyjv_1 ._list_poyjv_4{display:flex;flex-direction:column;overflow:auto}._popup_poyjv_1 ._list_poyjv_4 ._list-item_poyjv_9{flex-shrink:0}._popup_poyjv_1 ._info-message_poyjv_14{padding:var(--go-ui-spacing-sm);text-align:center;color:var(--go-ui-color-text-light)}._icon_poyjv_21{font-size:var(--go-ui-height-icon-multiplier)}._generic-option_zv1n8_1{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);text-align:left}._generic-option_zv1n8_1:hover{background-color:var(--go-ui-color-gray-20)}._navigation-tab-list_19mw3_1{display:flex;position:relative}._navigation-tab-list_19mw3_1._primary_19mw3_5{overflow-x:auto}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._primary_19mw3_5 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._navigation-tab-list_19mw3_1._secondary_19mw3_20{display:flex;overflow-x:auto}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._content_19mw3_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._end-dummy-content_19mw3_13{flex-grow:1}._navigation-tab-list_19mw3_1._tertiary_19mw3_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._content_19mw3_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._end-dummy-content_19mw3_13{display:none}._navigation-tab-list_19mw3_1._step_19mw3_56{overflow-x:auto}._navigation-tab-list_19mw3_1._step_19mw3_56 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._step_19mw3_56 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._step_19mw3_56 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._content_19mw3_8{display:flex;flex-direction:column}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._end-dummy-content_19mw3_13{display:none}._page-container_1cfro_1 ._content_1cfro_2{margin:0 auto;padding:var(--go-ui-spacing-lg);width:100%}@media screen{._page-container_1cfro_1 ._content_1cfro_2{max-width:var(--go-ui-page-width-max)}}._page-header_1r8r3_1{padding:var(--go-ui-spacing-lg) 0}._page-header_1r8r3_1 ._container_1r8r3_4{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xl)}._page-header_1r8r3_1 ._container_1r8r3_4 ._breadcrumbs-container_1r8r3_9{flex-shrink:initial}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-lg)}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._heading_1r8r3_19{text-align:center}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._description_1r8r3_23{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._pager_83zz4_1 ._page-list_83zz4_2{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;line-height:1}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._active_83zz4_15{border-radius:50%;background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._compact_83zz4_21{font-size:var(--go-ui-font-size-xs);font-weight:var(--go-ui-font-weight-medium)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7:disabled{opacity:var(--go-ui-opacity-disabled-element)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7 ._icon_83zz4_30{font-size:var(--go-ui-font-size-2xl)}._top-banner_1w8lu_1{background-color:var(--go-ui-color-negative);padding:var(--go-ui-spacing-md);text-align:center;color:var(--go-ui-color-white);font-weight:var(--go-ui-font-weight-medium)}._warning_1w8lu_9{background-color:var(--go-ui-color-warning)}._positive_1w8lu_13{background-color:var(--go-ui-color-positive)}._information_1w8lu_17{background-color:var(--go-ui-color-information)}._pie-chart_pyr7m_1{display:flex;align-items:center;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._pie-chart_pyr7m_1 ._legend_pyr7m_7{display:flex;flex-direction:column;flex-grow:1;justify-content:center}._pie-chart_pyr7m_1 ._legend_pyr7m_7 ._legend-item_pyr7m_13{font-size:var(--go-ui-font-size-xs)}._text-output_10oza_1{display:flex;flex-wrap:wrap;gap:0 var(--go-ui-spacing-sm)}._text-output_10oza_1._with-background_10oza_6{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._text-output_10oza_1 ._label_10oza_11._with-colon_10oza_12:after{content:":"}._text-output_10oza_1 ._value_10oza_17._text-type_10oza_18{text-align:justify;white-space:pre-wrap}._text-output_10oza_1 ._strong_10oza_24{font-weight:var(--go-ui-font-weight-semibold)}._file-input_tu4re_1 ._input_tu4re_2{visibility:hidden;width:0;height:0}._raw-input_145mq_1{margin:0;outline:0;border:0;background-color:transparent;padding:0;width:100%;color:inherit;font-family:inherit;font-size:inherit}._reduced-list-display_1czue_1{display:inline-block}._reduced-list-label_1czue_5{padding:0;-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium)}._reduced-list-label_1czue_5:hover,._reduced-list-label_1czue_5:focus{opacity:1;color:var(--go-ui-color-primary-red)}._option-container_2k92q_1{display:flex;overflow:auto}._option-container_2k92q_1 ._option_2k92q_1{flex-grow:1}._option-container_2k92q_1._active_2k92q_9{color:var(--go-ui-color-primary-red)}._option-container_2k92q_1._active_2k92q_9 ._icon_2k92q_12{opacity:1}._option_11p37_1{display:flex;gap:var(--go-ui-spacing-sm);overflow:auto}._option_11p37_1 ._icon_11p37_6{display:flex;align-items:center;flex-shrink:0;opacity:0;font-size:var(--go-ui-height-icon-multiplier)}._option_11p37_1 ._label_11p37_14{display:flex;flex-direction:column;flex-grow:1;overflow:auto}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20._description_11p37_25{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._segment-input_bykt7_1{width:-moz-fit-content;width:fit-content}._segment-input_bykt7_1 ._segment-list_bykt7_4{flex-wrap:nowrap;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-background);padding:0;width:-moz-fit-content;width:fit-content;gap:0}._segment-input_bykt7_1 ._segment_bykt7_1{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._segment-input_bykt7_1 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._segment-input_bykt7_1._secondary-variant_bykt7_24 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-blue-90);color:var(--go-ui-color-white)}._stacked-bar-chart_gqsj2_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6{display:flex}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6{display:flex;align-items:baseline;justify-content:center;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._value_gqsj2_15{font-weight:var(--go-ui-font-weight-semibold)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._percentage_gqsj2_19{font-size:var(--go-ui-font-size-sm)}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25{--height: 1rem;display:flex;border-radius:.5rem;border-radius:calc(.5 * var(--height));background-color:var(--go-ui-color-gray-50);height:1rem;height:var(--height);overflow:hidden}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25 ._bar_gqsj2_6{height:100%}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43{display:flex;align-items:baseline;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._color-dot_gqsj2_48{flex-shrink:0;border-radius:.3rem;width:.6rem;height:.6rem}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._label_gqsj2_38{padding:0 var(--go-ui-spacing-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--go-ui-font-size-sm)}._switch_1bdw6_1 ._checkmark-container_1bdw6_2{--width: var(--go-ui-font-size-4xl)}._switch_1bdw6_1._with-inverted-view_1bdw6_6{flex-direction:row-reverse}._switch-icon_w9df3_1{--gap: .05em;--border-width: var(--go-ui-width-separator-sm);--knob-diameter: calc(1em - 2 * var(--gap) - 2 * var(--border-width));--background-color: var(--go-ui-color-gray-50);--border-color: var(--go-ui-color-gray-30);--knob-color: var(--go-ui-color-white);display:flex;align-items:center;transition:var(--go-ui-duration-transition-medium) background-color ease-in-out;border:var(--border-width) solid var(--border-color);border-radius:.5em;background-color:var(--background-color);padding:.05em;padding:var(--gap);width:calc(1em + var(--knob-diameter));height:1em}._switch-icon_w9df3_1 ._knob_w9df3_19{transition:var(--go-ui-duration-transition-medium) transform ease-in-out,var(--go-ui-duration-transition-medium) background-color ease-in-out;border-radius:calc((1em - var(--gap) * 2) / 2);border-radius:calc(calc(1em - var(--gap) * 2) / 2);background-color:var(--knob-color);width:var(--knob-diameter);height:var(--knob-diameter)}._switch-icon_w9df3_1._on_w9df3_27{background-color:var(--go-ui-color-primary-red)}._switch-icon_w9df3_1._on_w9df3_27 ._knob_w9df3_19{transform:translate(100%)}._table_nilhy_1{display:flex;position:relative;flex-direction:column;min-height:var(--go-ui-content-min-height);overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8{display:flex;flex-direction:column;overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13{position:relative;z-index:0;border-collapse:separate;border-spacing:0;font-size:inherit}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24{position:sticky;top:0;z-index:1}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24 ._header-component_nilhy_29{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm)}._table_nilhy_1 ._message_nilhy_38._pending_nilhy_39{position:absolute;top:0;left:0;width:100%;height:100%}._row_1829z_1 ._cell_1829z_2{padding:var(--go-ui-spacing-sm);overflow:hidden;word-break:break-word}._row_1829z_1:hover ._cell_1829z_2{background-color:var(--go-ui-color-background-hover)}._td_1k4cn_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator)}._th_cdv41_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-white);overflow:hidden;vertical-align:bottom;text-align:left}._th_cdv41_1 ._resize-handle_cdv41_8{position:absolute;top:0;right:0;z-index:1;border-right:var(--go-ui-width-separator-sm) solid transparent;cursor:col-resize;width:var(--go-ui-width-separator-lg);height:calc(100% - var(--go-ui-spacing-sm))}._th_cdv41_1:hover ._resize-handle_cdv41_8{border-right-color:var(--go-ui-color-gray-30)}._th_cdv41_1:hover ._resize-handle_cdv41_8:hover{border-right-color:var(--go-ui-color-gray-50)}._header-cell_vn24d_1{display:flex;align-items:center;color:var(--go-ui-color-text-black);font-weight:var(--go-ui-font-weight-semibold);gap:var(--go-ui-spacing-2xs)}._header-cell_vn24d_1 ._sort-button_vn24d_8{flex-shrink:0}._header-cell_vn24d_1 ._icon_vn24d_12{flex-shrink:0;font-size:var(--go-ui-height-icon-multiplier)}._header-cell_vn24d_1 ._info-popup-icon_vn24d_17{flex-shrink:0}._table-actions_171sq_1{display:flex;justify-content:flex-end;gap:var(--go-ui-spacing-sm)}._table-actions_171sq_1 ._more-icon_171sq_6{font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1{--border-color: var(--go-ui-color-gray-30);--border-width: var(--go-ui-width-separator-thin);display:inline-flex;align-items:stretch;border-radius:0;-webkit-text-decoration:none;text-decoration:none;color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-medium)}._tab_12kk2_1 ._dummy_12kk2_12{flex-grow:1;border-bottom:var(--border-width) solid var(--border-color);width:var(--go-ui-spacing-xs)}._tab_12kk2_1 ._children-wrapper_12kk2_18{display:flex;align-items:center;flex-grow:1;border:var(--border-width) solid transparent;text-align:center}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18,._tab_12kk2_1._vertical_12kk2_26 ._children-wrapper_12kk2_18{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-md) 0;text-align:left}._tab_12kk2_1._vertical-compact_12kk2_26._active_12kk2_35,._tab_12kk2_1._vertical_12kk2_26._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18{padding:0}._tab_12kk2_1._primary_12kk2_48{position:relative;font-size:var(--go-ui-font-size-lg)}._tab_12kk2_1._primary_12kk2_48 ._children-wrapper_12kk2_18{border-bottom-color:var(--border-color);background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-lg)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35 ._children-wrapper_12kk2_18{border-color:var(--border-color);border-bottom-color:transparent;background-color:var(--go-ui-color-white)}._tab_12kk2_1._primary_12kk2_48:not(._active_12kk2_35) ._active-border_12kk2_69{display:none}._tab_12kk2_1._step_12kk2_75{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-md);transition:var(--go-ui-duration-transition-medium) color,background-color ease-in-out;padding:var(--go-ui-spacing-md) 0;text-transform:uppercase;color:var(--go-ui-color-gray-70)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85{display:flex;align-items:center;align-self:stretch}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90{flex-shrink:0;transition:var(--go-ui-duration-transition-slow) border-color ease-in-out;border:var(--border-width) solid transparent;border-radius:50%;background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-2xs)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{display:flex;align-items:center;justify-content:center;transition:var(--go-ui-duration-transition-slow) background-color ease-in-out;border-radius:50%;background-color:var(--go-ui-color-gray-60);width:1rem;height:1rem}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98 ._icon_12kk2_108{color:var(--go-ui-color-white);font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{flex-grow:1;background-color:var(--go-ui-color-separator);height:var(--go-ui-width-separator-thin)}._tab_12kk2_1._step_12kk2_75 ._children-wrapper_12kk2_18{padding:0 var(--go-ui-spacing-lg)}._tab_12kk2_1._step_12kk2_75._errored_12kk2_128 ._children-wrapper_12kk2_18{-webkit-text-decoration:underline wavy var(--go-ui-color-primary-red);text-decoration:underline wavy var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75:hover{color:var(--go-ui-color-black)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90{border-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{background-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._progress-bar-start_12kk2_116,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._step-circle_12kk2_90 ._inner-circle_12kk2_98,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-start_12kk2_116{background-color:var(--go-ui-color-primary-blue)}._tab_12kk2_1._step_12kk2_75:first-child ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{background-color:transparent}._tab_12kk2_1._step_12kk2_75:last-child ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115{background-color:transparent}._tab_12kk2_1._secondary_12kk2_183{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-xl)}._tab_12kk2_1._secondary_12kk2_183._active_12kk2_35{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._tab_12kk2_1._tertiary_12kk2_193:hover,._tab_12kk2_1._tertiary_12kk2_193._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._disabled_12kk2_205{pointer-events:none;opacity:var(--go-ui-opacity-disabled-element)}._tab-list_1d752_1{display:flex;position:relative}._tab-list_1d752_1._primary_1d752_5{overflow-x:auto}._tab-list_1d752_1._primary_1d752_5 ._content_1d752_8{display:flex}._tab-list_1d752_1._primary_1d752_5 ._start-dummy-content_1d752_12,._tab-list_1d752_1._primary_1d752_5 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._tab-list_1d752_1._secondary_1d752_20{display:flex;overflow-x:auto}._tab-list_1d752_1._secondary_1d752_20 ._content_1d752_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._tab-list_1d752_1._secondary_1d752_20 ._start-dummy-content_1d752_12,._tab-list_1d752_1._secondary_1d752_20 ._end-dummy-content_1d752_13{flex-grow:1}._tab-list_1d752_1._tertiary_1d752_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._tab-list_1d752_1._tertiary_1d752_36 ._content_1d752_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-md)}._tab-list_1d752_1._tertiary_1d752_36 ._start-dummy-content_1d752_12,._tab-list_1d752_1._tertiary_1d752_36 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._step_1d752_56{overflow-x:auto}._tab-list_1d752_1._step_1d752_56 ._content_1d752_8{display:flex}._tab-list_1d752_1._step_1d752_56 ._start-dummy-content_1d752_12,._tab-list_1d752_1._step_1d752_56 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8,._tab-list_1d752_1._vertical_1d752_70 ._content_1d752_8{display:flex;flex-direction:column}._tab-list_1d752_1._vertical-compact_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical-compact_1d752_70 ._end-dummy-content_1d752_13,._tab-list_1d752_1._vertical_1d752_70 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8{gap:var(--go-ui-spacing-xs)}._timeline-chart_1mks7_1{flex-grow:1;height:100%;--path-stroke-width: 1pt}._timeline-chart_1mks7_1 ._y-axis-tick-text_1mks7_6{text-anchor:middle;font-size:var(--go-ui-font-size-xs)}._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{text-anchor:middle;transition:var(--go-ui-duration-transition-medium) ease-in-out transform;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{transform:rotate(-30deg)}}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.2;transition:var(--go-ui-duration-transition-medium) ease-in-out stroke-opacity}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21._hovered_1mks7_28,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22._hovered_1mks7_28{stroke-opacity:1}._timeline-chart_1mks7_1 ._rect_1mks7_33{transition:var(--go-ui-duration-transition-medium) ease-in-out fill-opacity;cursor:pointer;fill-opacity:0;fill:var(--go-ui-color-white)}._chart-point_aqsix_1{--point-radius: 4pt;--point-hover-radius: 5pt;--point-outline-radius: 7pt;--point-stroke-width: 2pt}._chart-point_aqsix_1 ._point_aqsix_7{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r,var(--go-ui-duration-transition-medium) ease-in-out fill}._chart-point_aqsix_1 ._point_aqsix_7._active_aqsix_14,._chart-point_aqsix_1 ._point_aqsix_7._hovered_aqsix_18{fill:currentColor}._chart-point_aqsix_1 ._point-outline_aqsix_23{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r}._chart-point_aqsix_1 ._point-outline_aqsix_23._active_aqsix_14{r:var(--point-outline-radius)}._chart-point_aqsix_1._hoverable_aqsix_35:hover ._point_aqsix_7{fill:currentColor}._title_1rjpr_1{color:inherit,}._expansion-indicator-cell-container_1rjpr_5,._timeline-cell-container_1rjpr_9{position:relative}._date-column_1rjpr_13{width:0%;min-width:7rem}._expand-button_1bf2c_1 ._icon_1bf2c_2{font-size:var(--go-ui-height-icon-multiplier)}._expansion-indicator_jys9u_1{display:flex;position:absolute;inset:0;align-items:center;flex-direction:column;width:100%;overflow:auto}._expansion-indicator_jys9u_1 ._end-border_jys9u_13,._expansion-indicator_jys9u_1 ._start-border_jys9u_14{flex-grow:1;background-color:var(--go-ui-color-separator);width:var(--go-ui-width-separator-thin)}._expansion-indicator_jys9u_1 ._indicator_jys9u_20{flex-shrink:0;border-radius:50%;background-color:var(--go-ui-color-primary-red);width:.8rem;height:.8rem}._expansion-indicator_jys9u_1._start_jys9u_14 ._start-border_jys9u_14,._expansion-indicator_jys9u_1._end_jys9u_13 ._end-border_jys9u_13,._expansion-indicator_jys9u_1._single_jys9u_40 ._end-border_jys9u_13,._expansion-indicator_jys9u_1._single_jys9u_40 ._start-border_jys9u_14{background-color:transparent}._timeline-header_1sebe_1 ._title_1sebe_2{display:flex;flex-grow:1;justify-content:space-between}._timeline-item_1g3u0_1{position:absolute;top:0;left:var(--go-ui-spacing-sm);width:calc(100% - 2 * var(--go-ui-spacing-sm));height:100%}._timeline-item_1g3u0_1 ._timeline-progress_1g3u0_8{position:absolute;top:50%;transform:translateY(-50%);border-radius:.25em;background-color:var(--go-ui-color-primary-red);height:.5rem}._timeline-item_1g3u0_1 ._today-marker_1g3u0_17{position:absolute;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-primary-blue);height:100%}._timeline-item_1g3u0_1 ._start-date-marker_1g3u0_23{position:absolute;left:0;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-separator);height:100%}._timeline-item_1g3u0_1 ._end-date-marker_1g3u0_30{position:absolute;right:0;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-separator);height:100%} diff --git a/py_backend/static/assets/vendor-ui-l_DttnRj.js b/py_backend/static/assets/vendor-ui-l_DttnRj.js deleted file mode 100644 index a0f3092f87678e23f9999a7a46592cb4884dea6f..0000000000000000000000000000000000000000 --- a/py_backend/static/assets/vendor-ui-l_DttnRj.js +++ /dev/null @@ -1,78 +0,0 @@ -import{r as u,i as ce,j as g,a as Gs}from"./vendor-react-BxsGb6Ph.js";function Zs(e){return typeof e=="number"?Number.isNaN(e):!1}function O(e){return e==null||Zs(e)}function V(e){return!O(e)}function Xs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O(e)||e===!1||t.includes(e)}function Fr(e){return Xs(e,[""])}function Vt(e){return!Fr(e)}const Qs=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Qs.reduce((e,t)=>({...e,[`[object ${t}]`]:t.toLowerCase()}),{});const Ys={sorting:void 0,setSorting:e=>{console.warn("Trying to set to ",e)}},Js=u.createContext(Ys),mv=u.createContext({alerts:[],addAlert:()=>{console.warn("AlertContext::addAlert called before it was initialized")},removeAlert:()=>{console.warn("AlertContext::removeAlert called before it was initialized")},updateAlert:()=>{console.warn("AlertContext::updateAlert called before it was initialized")}}),Ks=u.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),Io=u.createContext({currentLanguage:"en",setCurrentLanguage:()=>{console.warn("LanguageContext::setCurrentLanguage called without a provider")},languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{console.warn("LanguageContext::setLanguageNamespaceStatus called without a provider")},strings:{},setStrings:()=>{console.warn("LanguageContext::setStrings called without a provider")},registerNamespace:()=>{console.warn("LanguageContext::registerNamespace called without a provider")}});u.createContext({variant:"primary"});function S(){for(var e=arguments.length,t=new Array(e),n=0;n{s&&s(o,f)},[s,o]);return g.jsx("button",{ref:i,name:typeof o=="string"?o:void 0,type:d,className:S($i.rawButton,a&&$i.focused,n),disabled:r,onClick:s?p:void 0,...h,children:t})}function vt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";if(O(e))return"";const r=String(e);return r.length>=t?r:Array(t-r.length+1).join(n)+r}function Lo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n="";const r=t?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;it+n,0)}function Ur(e,t,n){const r=Math.min(t,n),i=Math.max(t,n);return Math.max(r,Math.min(i,e))}function Ee(e){const[t]=u.useState(()=>`_${Lo()}`),{spacing:n,variant:r="md",mode:i="gap",inner:o}=e;return u.useEffect(()=>{const s=["var(--go-ui-spacing-4xs)","var(--go-ui-spacing-3xs)","var(--go-ui-spacing-2xs)","var(--go-ui-spacing-xs)","var(--go-ui-spacing-sm)","var(--go-ui-spacing-md)","var(--go-ui-spacing-lg)","var(--go-ui-spacing-xl)","var(--go-ui-spacing-2xl)","var(--go-ui-spacing-3xl)","var(--go-ui-spacing-4xl)"];let a="0";if(n!=="none"){const p={condensed:-3,compact:-2,cozy:-1,default:0,comfortable:1,relaxed:2,loose:3},f={xs:3,sm:4,md:5,lg:6,xl:7},l=o?f[r]-1:f[r],c=p[n];a=s[Ur(l+c,0,s.length-1)]}if(O(n))return;const d=document.createElement("style");if(document.head.appendChild(d),!d.sheet){d.remove();return}let h;return i==="gap"||i==="grid-gap"?h=`gap: ${a};`:i==="padding-h"?h=`padding-left: ${a}; padding-right: ${a};`:i==="padding-v"&&(h=`padding-top: ${a}; padding-bottom: ${a};`),d.sheet.insertRule(`.${t} { ${h} }`),()=>{d.remove()}},[n,r,i,o,t]),t}const il="_basic-layout_v9jro_1",ol="_with-wrap_v9jro_5",al="_icons-container_v9jro_9",sl="_children-container_v9jro_14",ll="_actions-container_v9jro_19",bt={basicLayout:il,withWrap:ol,iconsContainer:al,childrenContainer:sl,actionsContainer:ll};function zt(e){const{className:t,icons:n,children:r,actions:i,iconsContainerClassName:o,childrenContainerClassName:s,actionsContainerClassName:a,withoutWrap:d,spacing:h="default",variant:p="md"}=e,f=Ee({spacing:h,variant:p,mode:"gap"}),l=Ee({spacing:h,variant:p,mode:"gap",inner:!0}),c=S(bt.basicLayout,!d&&bt.withWrap,f,t),v=O(n)&&O(r)&&O(i)?null:g.jsxs(g.Fragment,{children:[n&&g.jsx("div",{className:S(bt.iconsContainer,l,o),children:n}),g.jsx("div",{className:S(bt.childrenContainer,l,s),children:r}),i&&g.jsx("div",{className:S(bt.actionsContainer,l,a),children:i})]});return{containerClassName:c,content:v}}const cl="_button_18a84_1",ul="_ellipsized_18a84_29",dl="_children_18a84_32",hl="_overflow-wrapper_18a84_36",pl="_primary_18a84_44",fl="_secondary_18a84_45",ml="_no-spacing_18a84_50",gl="_condensed-spacing_18a84_54",vl="_compact-spacing_18a84_58",bl="_cozy-spacing_18a84_62",yl="_default-spacing_18a84_66",wl="_comfortable-spacing_18a84_70",xl="_relaxed-spacing_18a84_74",Cl="_loose-spacing_18a84_78",_l="_disabled_18a84_88",El="_tertiary_18a84_116",Nl="_tertiary-on-dark_18a84_130",Sl="_dropdown-item_18a84_144",te={button:cl,ellipsized:ul,children:dl,overflowWrapper:hl,primary:pl,secondary:fl,noSpacing:ml,condensedSpacing:gl,compactSpacing:vl,cozySpacing:bl,defaultSpacing:yl,comfortableSpacing:wl,relaxedSpacing:xl,looseSpacing:Cl,disabled:_l,tertiary:El,tertiaryOnDark:Nl,dropdownItem:Sl},kl={primary:te.primary,secondary:te.secondary,tertiary:te.tertiary,"tertiary-on-dark":te.tertiaryOnDark,"dropdown-item":te.dropdownItem},Tl={none:te.noSpacing,condensed:te.condensedSpacing,compact:te.compactSpacing,cozy:te.cozySpacing,default:te.defaultSpacing,comfortable:te.comfortableSpacing,relaxed:te.relaxedSpacing,loose:te.looseSpacing};function Ol(e){const{actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,disabled:s,icons:a,iconsContainerClassName:d,variant:h="primary",spacing:p="default",ellipsize:f}=e,l=S(te.button,kl[h],Tl[p],s&&te.disabled,f&&te.ellipsized,o),c=u.useMemo(()=>f?g.jsx("div",{className:te.overflowWrapper,children:r}):r,[f,r]),{content:v,containerClassName:m}=zt({className:l,icons:a,children:c,actions:t,iconsContainerClassName:d,childrenContainerClassName:S(te.children,i),actionsContainerClassName:n,spacing:p,withoutWrap:!0,variant:"xs"});return{className:m,children:v,disabled:s}}function it(e){const{actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,disabled:s,icons:a,iconsContainerClassName:d,name:h,onClick:p,variant:f,type:l="button",spacing:c,...v}=e,m=u.useCallback((b,x)=>{p&&p(b,x)},[p]),w=Ol({variant:f,className:o,actionsContainerClassName:n,iconsContainerClassName:d,childrenContainerClassName:i,children:r,icons:a,actions:t,spacing:c,disabled:s||l!=="submit"&&O(p)});return g.jsx(Hr,{name:h,type:l,onClick:m,...v,...w})}const Al=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#alert-line_svg__a)"},u.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0Zm-8.66 16h15.588L12 5.5 4.206 19ZM11 16h2v2h-2v-2Zm0-7h2v5h-2V9Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"alert-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),$l=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56","aria-hidden":"true",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#analysis_svg__a)"},u.createElement("path",{d:"m12.384 37.796-7.179 7.18a4.115 4.115 0 0 0 5.82 5.819l7.179-7.18a24.009 24.009 0 0 1-5.82-5.819Zm13.619-13.798h-4a1.003 1.003 0 0 0-1 1v4.94a12.572 12.572 0 0 0 6 5.518V24.998a1.003 1.003 0 0 0-1-1Zm15.998-6h-4a1.003 1.003 0 0 0-1 1v16.458a12.572 12.572 0 0 0 6-5.519V18.998a1.003 1.003 0 0 0-1-1Zm-7.999 3h-4a1.003 1.003 0 0 0-1 1v14.138c1.972.48 4.029.48 6 0V21.998a1.003 1.003 0 0 0-1-1Z"}),u.createElement("path",{d:"M32.002 4a19.998 19.998 0 1 0 0 39.995 19.998 19.998 0 0 0 0-39.995Zm10.999 30.177a14.998 14.998 0 1 1-21.998-20.394 14.998 14.998 0 0 1 21.998 20.394Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"analysis_svg__a"},u.createElement("path",{d:"M0 0h56v56H0z"})))),Do=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},u.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),jl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#arrow-drop-down-line_svg__a)"},u.createElement("path",{d:"m12 15-4.243-4.243 1.415-1.414L12 12.172l2.828-2.83 1.415 1.415L12 15Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"arrow-drop-down-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Ml=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#arrow-drop-up-line_svg__a)"},u.createElement("path",{d:"m12 11.828-2.828 2.829-1.415-1.414L12 9l4.243 4.243-1.415 1.414L12 11.828Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"arrow-drop-up-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),gv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},u.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"arrow-right-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Ro=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},u.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Pl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},u.createElement("path",{d:"m11.602 13.76 1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412Zm.002-2.829 4.952-4.952 1.41 1.41-4.952 4.952-1.41-1.41Zm-2.827 5.656L7.364 18 1 11.636l1.414-1.414 1.413 1.412-.001.002 4.951 4.95Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"check-double-fill_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Il=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#check-line_svg__a)"},u.createElement("path",{d:"m10 15.171 9.192-9.192 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"check-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Ll=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},u.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),qo=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},u.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Dl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#checkbox-indeterminate-line_svg__a)"},u.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm2 6h10v2H7v-2Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"checkbox-indeterminate-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Bo=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},u.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm6.003 11L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"checkbox-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),vv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},u.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"chevron-left-line_svg__a"},u.createElement("path",{d:"M0 24h24V0H0z"})))),bv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},u.createElement("path",{d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414 4.95-4.95Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"chevron-right-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Rl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{fillRule:"evenodd",d:"m13.057 11.996 4.716-4.716a.75.75 0 1 0-1.06-1.06l-4.717 4.716L7.28 6.22a.75.75 0 1 0-1.06 1.06l4.716 4.716-4.716 4.716a.75.75 0 1 0 1.06 1.06l4.716-4.715 4.716 4.716a.748.748 0 0 0 1.061 0 .75.75 0 0 0 0-1.061l-4.716-4.716Z",clipRule:"evenodd"})),yv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},u.createElement("path",{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3Zm1 2H6v12h12V8Zm-9 3h2v6H9v-6Zm4 0h2v6h-2v-6ZM9 4v2h6V4H9Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"delete-bin-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),wv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#filter-line_svg__a)"},u.createElement("path",{d:"M9 13.5 4 6H3V4h18v2h-1l-5 7.5V22H9v-8.5ZM6.404 6 11 12.894V20h2v-7.106L17.596 6H6.404Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"filter-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),xv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{d:"M17.949 6.651a1.834 1.834 0 1 0-1.833 1.834c1.01 0 1.833-.822 1.833-1.834Zm-7.806 15.847a1.836 1.836 0 0 0-1.833 1.834c0 1.01.822 1.832 1.833 1.832a1.835 1.835 0 0 0 1.833-1.832 1.836 1.836 0 0 0-1.833-1.834Zm5.973-10.343a2.506 2.506 0 1 0 .001 5.012 2.506 2.506 0 0 0-.001-5.012Zm5.973 10.343a1.834 1.834 0 1 0 1.833 1.834 1.836 1.836 0 0 0-1.833-1.834Z"}),u.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.164 0 16 0c8.837 0 16 7.163 16 16 0 8.836-7.164 16-16 16S0 24.836 0 16Zm22.089 11.044a2.716 2.716 0 0 1-2.713-2.713c0-.828.375-1.57.962-2.068l-2.589-4.324a3.643 3.643 0 0 1-3.266 0l-2.589 4.324a2.7 2.7 0 0 1 .962 2.068 2.716 2.716 0 0 1-2.713 2.713A2.716 2.716 0 0 1 7.43 24.33a2.716 2.716 0 0 1 2.713-2.713c.352 0 .688.07.997.192l2.606-4.354a3.664 3.664 0 0 1 1.93-6.43v-1.7a2.714 2.714 0 0 1-2.273-2.674 2.716 2.716 0 0 1 2.714-2.713 2.716 2.716 0 0 1 2.712 2.713 2.714 2.714 0 0 1-2.272 2.674v1.7a3.664 3.664 0 0 1 3.226 3.636 3.651 3.651 0 0 1-1.297 2.794l2.607 4.354c.31-.122.645-.192.997-.192a2.716 2.716 0 0 1 2.712 2.713 2.716 2.716 0 0 1-2.713 2.713ZM4.497 14.677c0-1.958 1.228-3.59 3.282-3.59 1.497 0 2.754.798 2.936 2.342H9.544c-.114-.901-.901-1.363-1.765-1.363-1.47 0-2.083 1.295-2.083 2.61 0 1.316.613 2.61 2.083 2.61 1.227.02 1.899-.719 1.919-1.88H7.875v-.912h2.917v3.609h-.768l-.182-.806c-.643.73-1.227.969-2.062.969-2.055 0-3.283-1.632-3.283-3.59Z",clipRule:"evenodd"})),ql=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#information-line_svg__a)"},u.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"information-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Cv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#menu-line_svg__a)"},u.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"menu-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),_v=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#question-line_svg__a)"},u.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm-1-5h2v2h-2v-2Zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"question-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Bl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},u.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm0-3a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"radio-button-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Ev=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#search-line_svg__a)"},u.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"search-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Nv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 25 25",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{d:"M8.775 9.71a2.284 2.284 0 0 0-2.2 1.66H4.623a.623.623 0 0 0 0 1.247h1.952a2.284 2.284 0 0 0 4.401 0h8.804a.623.623 0 0 0 0-1.246h-8.804a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.076 1.038 1.038 0 0 1 0 2.076ZM15.627 4a2.284 2.284 0 0 0-2.2 1.661H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 1 0 0-1.246h-1.952A2.284 2.284 0 0 0 15.628 4Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Zm0 8.098a2.284 2.284 0 0 0-2.2 1.66H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 0 0 0-1.245h-1.952a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Z"})),Fl=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"}),u.createElement("mask",{id:"table-sorting-line_svg__a",width:8,height:5,x:8,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},u.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"})),u.createElement("g",{mask:"url(#table-sorting-line_svg__a)"},u.createElement("path",{d:"M-24-22h72v72h-72z"})),u.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"}),u.createElement("mask",{id:"table-sorting-line_svg__b",width:8,height:5,x:8,y:6,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},u.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"})),u.createElement("g",{mask:"url(#table-sorting-line_svg__b)"},u.createElement("path",{d:"M48 45h-72v-72h72z"}))),Sv=({title:e,titleId:t,...n})=>u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},u.createElement("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12l-10 .02c-3.356-.275-6-3.079-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6 6 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.31l.173.012h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"})),u.createElement("defs",null,u.createElement("clipPath",{id:"upload-cloud-line_svg__a"},u.createElement("path",{d:"M0 0h24v24H0z"})))),Hl="_spinner_50bgg_1",Ul="_spinner-bounce_50bgg_9",Yt={spinner:Hl,spinnerBounce:Ul};function Vl(e){const{className:t}=e;return g.jsxs("div",{className:S(Yt.spinner,t),children:[g.jsx("div",{className:Yt.spinnerBounce}),g.jsx("div",{className:Yt.spinnerBounce}),g.jsx("div",{className:Yt.spinnerBounce})]})}const zl="_message_176iw_1",Wl="_icon_176iw_13",Gl="_spinner_176iw_17",Zl="_title_176iw_22",Xl="_errored_176iw_27",Ql="_compact_176iw_33",Pe={message:zl,icon:Wl,spinner:Gl,title:Zl,errored:Xl,compact:Ql};function Yl(e){const{className:t,pending:n=!1,variant:r,icon:i,title:o,description:s,actions:a,compact:d=!1,errored:h,erroredTitle:p,erroredDescription:f}=e,l=V(h?p:o),c=V(h?f:s);return g.jsxs("div",{className:S(Pe.message,r==="error"&&Pe.errored,d&&Pe.compact,t),children:[(i||n)&&g.jsxs("div",{className:Pe.icon,children:[n&&g.jsx(Vl,{className:Pe.spinner}),!n&&i]}),l&&g.jsx("div",{className:Pe.title,children:h?p:o}),c&&g.jsx("div",{className:Pe.description,children:s}),a&&g.jsx("div",{className:Pe.actions,children:a})]})}function Mn(e){const{strings:t,registerNamespace:n}=u.useContext(Io);return u.useEffect(()=>{n(e.namespace,e.strings)},[n,e]),t[e.namespace]??e.strings}const Jl="common",Kl={messageTitleFetching:"Fetching data...",messageTitleFilteredDataNotAvailable:"Data is not available for selected filter!",messageTitleDataNotAvailable:"Data is not available!",messageTitleDataFailedToFetch:"Failed to fetch data!"},ec={namespace:Jl,strings:Kl},tc="_default-message_wu986_1",nc="_overlay_wu986_2",ji={defaultMessage:tc,overlay:nc};function Vr(e){const{className:t,compact:n,pending:r,overlayPending:i,filtered:o,empty:s,errored:a,emptyMessage:d,filteredEmptyMessage:h,pendingMessage:p,errorMessage:f}=e,l=Mn(ec),c=u.useMemo(()=>r?p??l.messageTitleFetching:a?f??l.messageTitleDataFailedToFetch:o?h??l.messageTitleFilteredDataNotAvailable:s?d??l.messageTitleDataNotAvailable:null,[s,r,o,a,d,h,p,f,l]);return!s&&!r&&!a?null:g.jsx(Yl,{className:S(ji.defaultMessage,r&&i&&ji.overlay,t),icon:g.jsx($l,{}),compact:n,title:c,pending:r})}const rc="_filter-bar_16xsj_1",ic="_grid-with-actions_16xsj_6",oc="_grid_16xsj_6",ac="_actions_16xsj_15",$t={filterBar:rc,gridWithActions:ic,grid:oc,actions:ac};function Mi(e){const{grid:t,actions:n,spacing:r="default"}=e,i=Ee({spacing:r,mode:"gap"}),o=Ee({spacing:r,mode:"gap",inner:!0}),s=Ee({spacing:r,mode:"grid-gap"});return O(t)&&O(n)?null:g.jsxs("div",{className:S($t.gridWithActions,i),children:[g.jsx("div",{className:S($t.grid,s),children:t}),V(n)&&g.jsx("div",{className:S($t.actions,o),children:n})]})}function sc(e){const{className:t,filters:n,filterActions:r,search:i,searchActions:o,filterPreview:s,spacing:a}=e;return O(n)&&O(r)&&O(i)&&O(o)&&O(s)?null:g.jsxs("div",{className:S($t.filterBar,t),children:[g.jsx(Mi,{grid:n,actions:r,spacing:a}),g.jsx(Mi,{grid:i,actions:o,spacing:a}),V(s)&&g.jsx("div",{className:$t.filterPreview,children:s})]})}function lc(e){const{actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,icons:s,iconsContainerClassName:a,spacing:d,withoutWrap:h}=e,{content:p,containerClassName:f}=zt({actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,icons:s,iconsContainerClassName:a,spacing:d,withoutWrap:h});return g.jsx("div",{className:f,children:p})}function cc(e,t,n){const[r,i]=u.useState(()=>e);return u.useEffect(()=>{const o=setTimeout(()=>{i(e)},300);return()=>{clearTimeout(o)}},[e,t,n]),r}function uc(e,t=!1){const[n,r]=u.useState(()=>{var i;const o=(i=e.current)==null?void 0:i.getBoundingClientRect();return{width:o?.width??0,height:o?.height??0}});return u.useEffect(()=>{const i=new ResizeObserver(s=>{const a=s.at(0),d=a?.contentRect;d&&r({width:d.width,height:d.height})}),o=e.current;return!t&&V(o)&&i.observe(o),()=>{!t&&V(o)&&i.unobserve(o)}},[t,e]),cc(n)}const dc="_heading_1uxwj_1",hc="_level-one_1uxwj_9",pc="_level-two_1uxwj_17",fc="_level-three_1uxwj_25",mc="_level-four_1uxwj_33",gc="_level-five_1uxwj_37",vc="_level-six_1uxwj_41",bc="_ellipsized-text_1uxwj_45",yc="_ellipsized_1uxwj_45",Oe={heading:dc,levelOne:hc,levelTwo:pc,levelThree:fc,levelFour:mc,levelFive:gc,levelSix:vc,ellipsizedText:bc,ellipsized:yc},wc={1:Oe.levelOne,2:Oe.levelTwo,3:Oe.levelThree,4:Oe.levelFour,5:Oe.levelFive,6:Oe.levelSix};function xc(e){const{className:t,level:n=3,children:r,ellipsize:i}=e,o=`h${n}`,s=u.useRef(null),a=uc(s);return r?g.jsxs(o,{className:S(Oe.heading,i&&Oe.ellipsized,wc[n],t),ref:s,children:[i&&g.jsx("div",{className:Oe.ellipsizedText,style:{width:`${a.width}px`},title:typeof r=="string"?r:void 0,children:r}),!i&&r]}):null}const Cc="_header_537v1_1",_c={header:Cc};function Ec(e){const{actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,elementRef:s,ellipsizeHeading:a,heading:d,headingClassName:h,headingLevel:p,headingDescription:f,headingDescriptionContainerClassName:l,icons:c,iconsContainerClassName:v,headingSectionClassName:m,headingContainerClassName:w,wrapHeadingContent:b=!1,spacing:x="default"}=e,C=u.useMemo(()=>O(d)&&O(f)?null:g.jsxs(g.Fragment,{children:[g.jsx(xc,{level:p,className:h,ellipsize:a,children:d}),f&&g.jsx("div",{className:l,children:f})]}),[d,a,f,h,l,p]),{content:N,containerClassName:k}=zt({actions:t,actionsContainerClassName:n,children:C,childrenContainerClassName:w,className:m,icons:c,iconsContainerClassName:v,withoutWrap:!b,spacing:x,variant:"sm"}),j=Ee({spacing:x,inner:!0});return!N&&!r?null:g.jsxs("div",{className:S(_c.header,j,o),ref:s,children:[N&&g.jsx("div",{className:k,children:N}),r&&g.jsx("div",{className:i,children:r})]})}const Nc="_container_lyve2_1",Sc="_header_lyve2_8",kc="_centered-header-description-container_lyve2_11",Tc="_centered-description_lyve2_16",Oc="_with-border-and-header-background_lyve2_23",Ac="_border_lyve2_33",$c="_content_lyve2_39",jc="_pending-overlaid_lyve2_42",Mc="_message_lyve2_47",Pc="_footer_lyve2_53",Ic="_with-grid-view_lyve2_57",Lc="_two-columns_lyve2_67",Dc="_three-columns_lyve2_82",Rc="_four-columns_lyve2_96",qc="_five-columns_lyve2_100",Bc="_with-vertical-view_lyve2_105",Fc="_with-overflow-in-content_lyve2_112",ee={container:Nc,header:Sc,centeredHeaderDescriptionContainer:kc,centeredDescription:Tc,withBorderAndHeaderBackground:Oc,border:Ac,content:$c,pendingOverlaid:jc,message:Mc,footer:Pc,withGridView:Ic,twoColumns:Lc,threeColumns:Dc,fourColumns:Rc,fiveColumns:qc,withVerticalView:Bc,withOverflowInContent:Fc},Hc={2:ee.twoColumns,3:ee.threeColumns,4:ee.fourColumns,5:ee.fiveColumns};function Fo(e){const{actions:t,actionsContainerClassName:n,children:r,childrenContainerClassName:i,className:o,containerRef:s,contentViewType:a="default",ellipsizeHeading:d,filters:h,filterActions:p,footerActions:f,footerActionsContainerClassName:l,footerClassName:c,footerContent:v,footerContentClassName:m,footerIcons:w,headerClassName:b,headerDescription:x,withCenteredHeaderDescription:C,headerDescriptionContainerClassName:N,headerElementRef:k,heading:j,headingClassName:M,headingContainerClassName:R,headingDescription:L,headingDescriptionContainerClassName:B,headingLevel:y,headingSectionClassName:_,icons:E,iconsContainerClassName:T,numPreferredGridContentColumns:A=2,spacing:P="default",withHeaderBorder:$=!1,withFooterBorder:Z=!1,withBorderAndHeaderBackground:X=!1,withOverflowInContent:J=!1,withInternalPadding:Y=!1,withoutWrapInHeading:K=!1,withoutWrapInFooter:re=!1,pending:H=!1,overlayPending:q=!1,empty:U=!1,errored:G=!1,filtered:Q=!1,compactMessage:ye=!1,errorMessage:Re,emptyMessage:Qe,pendingMessage:mt,filteredEmptyMessage:qe}=e,ie=w||v||f,oe=j||t||E||x||L,ve=Ee({spacing:P}),ae=Ee({spacing:P,mode:"padding-h"}),se=Ee({spacing:P,mode:"padding-v"}),Ye=Ee({spacing:P,mode:"gap",inner:!0}),Wn=u.useMemo(()=>O(x)?null:C?g.jsx("div",{className:ee.centeredDescription,children:x}):x,[x,C]);return!oe&&!h&&!r&&!ie&&!U&&!H&&!G&&!Q?null:g.jsxs("div",{ref:s,className:S(ee.container,!X&&ve,Y&&se,J&&ee.withOverflowInContent,X&&ee.withBorderAndHeaderBackground,a==="grid"&&ee.withGridView,a==="grid"&&Hc[A],a==="vertical"&&ee.withVerticalView,o),children:[oe&&g.jsx(Ec,{actions:t,className:S(ee.header,X&&se,(Y||X)&&ae,b),elementRef:k,actionsContainerClassName:n,ellipsizeHeading:d,heading:j,headingLevel:y,icons:E,iconsContainerClassName:T,childrenContainerClassName:S(C&&ee.centeredHeaderDescriptionContainer,N),headingSectionClassName:_,headingClassName:M,headingContainerClassName:R,wrapHeadingContent:!K,headingDescription:L,headingDescriptionContainerClassName:B,spacing:P,children:Wn}),$&&g.jsx("div",{className:ee.border}),g.jsx(sc,{filters:h,filterActions:p,spacing:P,className:S(Y&&ae)}),(r||U||H||G||Q)&&g.jsxs("div",{className:S(ee.content,a!=="default"&&Ye,(Y||X)&&ae,X&&se,q&&H&&ee.pendingOverlaid,i),children:[g.jsx(Vr,{className:ee.message,pending:H,filtered:Q,errored:G,empty:U,compact:ye,overlayPending:q,emptyMessage:Qe,filteredEmptyMessage:qe,pendingMessage:mt,errorMessage:Re}),!U&&!G&&(!H||q)&&r]}),ie&&Z&&g.jsx("div",{className:ee.border}),ie&&g.jsx(lc,{actions:f,icons:w,childrenContainerClassName:m,className:S(ee.footer,Y&&ae,X&&se,c),actionsContainerClassName:l,spacing:P,withoutWrap:re,children:v})]})}function Uc(e){const{children:t,container:n=document.body,portalKey:r}=e;return g.jsx(g.Fragment,{children:Gs.createPortal(t,n,r)})}const Vc="yyyy-MM-dd",Ho="-",zc=108;function ot(e,t,n){return O(e)?void 0:e.reduce((r,i,o)=>{const s=t(i,o);return r[s]=n?n(i,s,o,r):i,r},{})}function zr(e,t){return function(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const o=V(n)?e(n):void 0,s=V(r)?e(r):void 0;return o===s?0:O(o)?i*1:O(s)?i*-1:i*t(o,s)}}const Wc=zr(e=>e,(e,t)=>e.localeCompare(t)),Gc=zr(e=>e,(e,t)=>e-t),Zc=(e,t,n,r)=>n?zr(i=>i,(i,o)=>{const s=n.toLowerCase(),a=i.toLowerCase().indexOf(s),d=o.toLowerCase().indexOf(s);return a===d||a===-1&&d===-1?i.localeCompare(o):d===-1?-1:a===-1?1:a-d})(e,t,r):0,Xc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var Ae=function(e){return e.time="time",e.date="date",e}(Ae||{});function Pi(e,t){let n,r;return t.forEach(i=>{const o=e.indexOf(i);if(o===-1)return;const s=o+i.length;(n===void 0||or)&&(r=s)}),{start:n,end:r}}function Yc(e){const{start:t,end:n}=Pi(e,["yyyy","yy","MMM","MM","dd","EEE"]),{start:r,end:i}=Pi(e,["hh","mm","ss","aaa"]),o=e.length,s=(a,d)=>a===void 0||d===void 0?"":e.substring(a,d);return t===void 0&&r===void 0?[{value:e}].filter(a=>a.value!==""):t===void 0?[{value:s(0,r)},{type:Ae.time,value:s(r,i)},{value:s(i,o)}].filter(a=>a.value!==""):r===void 0?[{value:s(0,t)},{type:Ae.date,value:s(t,n)},{value:s(n,o)}].filter(a=>a.value!==""):ta.value!==""):[{value:s(0,r)},{type:Ae.time,value:s(r,i)},{value:s(i,t)},{type:Ae.date,value:s(t,n)},{value:s(n,o)}].filter(a=>a.value!=="")}function Jc(e,t){return e.map(n=>{if(n.type===Ae.date){const r=t.getFullYear(),i=t.getMonth(),o=t.getDate(),s=Qc[t.getDay()],a={...n};return a.value=a.value.replace("yyyy",String(r)).replace("yy",String(r%100)).replace("MMM",Xc[i]).replace("MM",vt(i+1,2)).replace("EEE",s).replace("dd",vt(o,2)),a}if(n.type===Ae.time){const r=n.value.indexOf("aaa"),i=t.getHours(),o=r>=0?(i-1)%12+1:i,s=i>=12?"PM":"AM",a=t.getMinutes(),d=t.getSeconds(),h={...n};return h.value=h.value.replace("hh",vt(o,2)).replace("mm",vt(a,2)).replace("ss",vt(d,2)).replace("aaa",s),h}return n})}function Kc(e,t,n=!0){if(O(e)||O(t))return;if(t===0)return 0;const r=e*100/t;return n?Ur(r,0,100):r}function eu(e){if(O(e))return;const t=e.filter(V);if(t.length!==0)return t}function tu(e){const t=eu(e);if(!O(t))return At(t)}function We(e,t,n){return Fr(t)?e:e.filter(r=>nl(n(r),t)).sort((r,i)=>Zc(n(r),n(i),t))}function Ii(e){if(e<1e3)return 2;const t=new Intl.NumberFormat("default",{notation:"compact"}).formatToParts(e).find(({type:n})=>n==="fraction");return O(t)||Fr(t.value)?0:Number(t.value)>.1?1:0}function nu(e,t){if(O(e))return;const n={};if(O(t))return n.maximumFractionDigits=Ii(e),new Intl.NumberFormat("default",n).format(e);const{currency:r,unit:i,maximumFractionDigits:o,compact:s,separatorHidden:a,language:d}=t;return Vt(i)&&(n.unit=i,n.unitDisplay="short"),r&&(n.currencyDisplay="narrowSymbol",n.style="currency"),s&&(n.notation="compact",n.compactDisplay="short"),n.useGrouping=!a,V(o)?n.maximumFractionDigits=o:n.maximumFractionDigits=Ii(e),new Intl.NumberFormat(d,n).format(e)}function ru(e,t=Vc){if(O(e))return;const n=new Date(e);return Number.isNaN(n.getTime())?void 0:Jc(Yc(t),n).map(r=>r.value).join("")}const iu="_number-output_1blvi_1",ou={numberOutput:iu};function Wr(e){const{className:t,invalidText:n=Ho,separatorHidden:r,compact:i,currency:o,value:s,tooltip:a,unit:d,prefix:h,suffix:p,maximumFractionDigits:f=1}=e,{currentLanguage:l}=u.useContext(Io),c=u.useMemo(()=>{if(O(s))return n;const v=nu(s,{currency:o,compact:i,separatorHidden:r,maximumFractionDigits:f,unit:d,language:l});return g.jsxs(g.Fragment,{children:[h,v,p]})},[n,s,i,r,o,d,f,h,l,p]);return g.jsx("div",{className:S(ou.numberOutput,t),title:V(a)?String(a):void 0,children:c})}const xn=parseFloat(getComputedStyle(document.documentElement).fontSize),au=16*xn,Qn=.5*xn,su={vertical:"bottom",horizontal:"right"};function lu(e){const t=window.innerWidth/2,n=window.innerHeight/2,r=e.x+e.width/2,i=e.y+e.height/2;return{horizontal:r{if(O(e.current))return;const o=e.current.getBoundingClientRect(),{x:s,y:a,width:d,height:h}=o,p=xn,f=p,l=window.innerWidth-p,c=window.innerWidth-2*p,v=lu(o),m=s+d/2,w=Ur(V(t)?t*xn:d,au,c);let b=m-w/2,x=m+w/2;if(bl){const C=x-l-p;x=l,b-=C}r({content:{bottom:v.vertical==="bottom"?`${window.innerHeight-a+Qn}px`:"unset",top:v.vertical==="top"?`${a+h+Qn}px`:"unset",left:v.horizontal==="left"?`${b}px`:"unset",right:v.horizontal==="right"?`${window.innerWidth-x}px`:"unset"},pointer:{left:`${m}px`,top:v.vertical==="top"?`${a+h}px`:`${a-Qn}px`,right:"unset",bottom:"unset"},width:`${x-b}px`,orientation:v})},[e,t]);return u.useEffect(()=>{i();const o=i,s=i;return window.addEventListener("scroll",o,!0),window.addEventListener("resize",s,!0),()=>{window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",s,!0)}},[i]),n}const uu="_popup_cws49_1",du="_top-orientation_cws49_9",hu="_pointer_cws49_15",pu="_icon_cws49_25",yt={popup:uu,topOrientation:du,pointer:hu,icon:pu};function Pn(e){const{parentRef:t,elementRef:n,children:r,className:i,pointerClassName:o,preferredWidth:s}=e,{content:a,pointer:d,width:h,orientation:p}=cu(t,s);return g.jsxs(Uc,{children:[g.jsx("div",{ref:n,style:{...a,width:h},className:S(yt.popup,p.vertical==="bottom"&&yt.topOrientation,i),children:r}),g.jsx("div",{className:S(yt.pointer,p.vertical==="bottom"&&yt.topOrientation,o),style:{...d},children:g.jsx("svg",{className:yt.icon,viewBox:"0 0 200 100",children:g.jsx("path",{d:"M0 100 L100 0 L200 100Z"})})})]})}const fu="_tooltip-dummy_rbf3f_1",mu="_tooltip-content_rbf3f_7",gu="_pointer_rbf3f_14",Yn={tooltipDummy:fu,tooltipContent:mu,pointer:gu};function vu(e){const{className:t,title:n,description:r,preferredWidth:i}=e,[o,s]=u.useState(!1),[a,d]=u.useState(!1),h=u.useRef(),p=u.useRef(null);return u.useEffect(()=>{const f=()=>{d(!0)},l=()=>{d(!1)};if(O(p.current))return;const{current:{parentNode:c}}=p;if(!O(c))return h.current=c,c.addEventListener("mouseover",f),c.addEventListener("mouseout",l),s(!0),()=>{c.removeEventListener("mouseover",f),c.removeEventListener("mouseout",l)}},[]),g.jsxs(g.Fragment,{children:[!o&&g.jsx("div",{className:Yn.tooltipDummy,ref:p}),a&&g.jsx(Pn,{className:S(Yn.tooltipContent,t),parentRef:h,pointerClassName:Yn.pointer,preferredWidth:i,children:g.jsx(Fo,{heading:n,withInternalPadding:!0,contentViewType:"vertical",children:r})})]})}const bu="_input-error_1sxiz_1",yu="_pointer_1sxiz_14",Jt={inputError:bu,pointer:yu};function Gr(e){const{children:t,className:n,disabled:r}=e,[i,o]=u.useState(!1),s=u.useRef(),a=u.useRef(null);return u.useEffect(()=>{if(O(a.current))return;const{current:{parentElement:d}}=a;O(d)||(s.current=d,o(!0))},[]),g.jsxs(g.Fragment,{children:[!i&&g.jsx("div",{className:Jt.tooltipDummy,ref:a}),t&&!r&&g.jsxs(Pn,{className:S(Jt.inputError,n),pointerClassName:Jt.pointer,parentRef:s,children:[g.jsx(Al,{className:Jt.icon}),t]})]})}const wu="_input-label_3lsx4_1",xu="_disabled_3lsx4_7",Cu="_required_3lsx4_11",Jn={inputLabel:wu,disabled:xu,required:Cu};function Uo(e){const{children:t,className:n,disabled:r,required:i}=e;return t?g.jsxs("div",{className:S(Jn.inputLabel,r&&Jn.disabled,n),children:[t,i&&g.jsx("span",{"aria-hidden":!0,className:Jn.required,children:"*"})]}):null}function Vo(e){const{data:t,keySelector:n,renderer:r,rendererParams:i}=e;return O(t)?null:t.map((o,s)=>{const a=n(o,s),d=i(a,o,s,t);return g.jsx(r,{...d},String(a))})}const _u="_radio_1uudv_1",Eu="_icon_1uudv_5",Nu="_content_1uudv_10",Su="_description_1uudv_16",ku="_input_1uudv_21",Tu="_active_1uudv_37",Ou="_disabled_1uudv_43",Au="_read-only_1uudv_55",ke={radio:_u,icon:Eu,content:Nu,description:Su,input:ku,active:Tu,disabled:Ou,readOnly:Au};function $u(e){const{name:t,label:n,description:r,className:i,value:o,inputName:s,onClick:a,disabled:d,readOnly:h,actions:p}=e,f=ce.useCallback(()=>{a&&a(t)},[t,a]),{content:l,containerClassName:c}=zt({icons:o?g.jsx(Bl,{className:ke.icon}):g.jsx(Ll,{className:ke.icon}),actions:p,childrenContainerClassName:ke.content,children:g.jsxs(g.Fragment,{children:[n,r&&g.jsx("div",{className:ke.description,children:r})]}),spacing:"compact",withoutWrap:!0});return g.jsxs("label",{className:S(ke.radio,o&&ke.active,d&&ke.disabled,h&&ke.readOnly,c,i),children:[g.jsx("input",{className:ke.input,type:"radio",name:typeof s=="string"?s:void 0,checked:o,onClick:f,disabled:d,readOnly:!0}),l]})}const ju="_radio-input_17cft_1",Mu="_radio-list-container_17cft_6",Pu="_disabled_17cft_13",Iu="_input-hint_17cft_18",Kt={radioInput:ju,radioListContainer:Mu,disabled:Pu,inputHint:Iu};function Lu(e){return!!e.clearable}function Du(e){const t=Lu(e),{className:n,name:r,options:i,value:o,keySelector:s,labelSelector:a,descriptionSelector:d,label:h,labelContainerClassName:p,hint:f,hintContainerClassName:l,listContainerClassName:c,error:v,renderer:m=$u,rendererParams:w,disabled:b,readOnly:x,required:C,onChange:N,withAsterisk:k}=e,j=ce.useCallback(L=>{x||(t&&e.onChange(L===o?void 0:L,r),!t&&V(L)&&N(L,r))},[o,e,N,t,x,r]),M=ce.useCallback((L,B)=>{const y={inputName:r,label:a(B),description:d?d(B):void 0,name:L,onClick:j,value:L===o,disabled:b,readOnly:x};return{...w?w(B):void 0,...y}},[r,a,o,j,w,b,x,d]),R=k??C;return g.jsxs("div",{className:S(Kt.radioInput,b&&Kt.disabled,n),children:[g.jsx(Uo,{className:p,disabled:b,required:R,children:h}),g.jsx("div",{className:S(Kt.radioListContainer,c),children:g.jsx(Vo,{data:i,rendererParams:M,renderer:m,keySelector:s})}),f&&g.jsx("div",{className:S(Kt.inputHint,l),children:f}),g.jsx(Gr,{children:v})]})}function kv(e){return e.id}const Ru="common",qu={booleanYesLabel:"Yes",booleanNoLabel:"No"},Bu={namespace:Ru,strings:qu},Fu="_boolean-output_kg1uq_1",Hu={booleanOutput:Fu};function Uu(e){const{className:t,invalidText:n,value:r}=e,i=Mn(Bu);let o;return r===!0?o=i.booleanYesLabel:r===!1?o=i.booleanNoLabel:o=n,g.jsx("div",{className:S(Hu.booleanOutput,t),children:o})}const Vu="_button_1vbet_1",zu="_round_1vbet_31",Wu="_primary_1vbet_34",Gu="_secondary_1vbet_51",Zu="_tertiary_1vbet_69",Kn={button:Vu,round:zu,primary:Wu,secondary:Gu,tertiary:Zu};function Tv(e){const{ariaLabel:t,children:n,className:r,variant:i,round:o=!0,...s}=e,a=S(Kn.button,Kn[i],o&&Kn.round,r);return g.jsx(Hr,{className:a,"aria-label":t,...s,children:n})}function Xu(e){const{className:t,indeterminate:n,value:r}=e;return g.jsxs(g.Fragment,{children:[n&&g.jsx(Dl,{className:t}),r&&!n&&g.jsx(Bo,{className:t}),!r&&!n&&g.jsx(qo,{className:t})]})}const Qu="_checkbox_12g7n_1",Yu="_with-background_12g7n_7",Ju="_checkmark-container_12g7n_12",Ku="_input_12g7n_18",ed="_content_12g7n_33",td="_description_12g7n_40",nd="_checked_12g7n_45",rd="_checkmark_12g7n_12",id="_disabled-checkbox_12g7n_58",we={checkbox:Qu,withBackground:Yu,checkmarkContainer:Ju,input:Ku,content:ed,description:td,checked:nd,checkmark:rd,disabledCheckbox:id};function Ov(e){const{className:t,checkmark:n=Xu,checkmarkClassName:r,checkmarkContainerClassName:i,disabled:o,error:s,indeterminate:a,inputClassName:d,invertedLogic:h=!1,label:p,labelContainerClassName:f,name:l,onChange:c,readOnly:v,tooltip:m,value:w,description:b,withBackground:x,...C}=e,N=u.useCallback(M=>{const R=M.currentTarget.checked;c(h?!R:R,l)},[l,c,h]),k=h?!w:w,j=S(we.checkbox,t,!a&&k&&we.checked,x&&we.withBackground,o&&we.disabledCheckbox,v&&we.readOnly);return g.jsxs("label",{className:j,title:m,children:[g.jsxs("div",{className:S(we.checkmarkContainer,i),children:[g.jsx("input",{onChange:N,className:S(we.input,d),type:"checkbox",checked:k??!1,disabled:o||v,readOnly:v,...C}),g.jsx(n,{className:S(we.checkmark,r),value:k??!1,indeterminate:a,"aria-hidden":"true"})]}),(p||b)&&g.jsxs("div",{className:we.content,children:[p&&g.jsx("div",{className:f,children:p}),b&&g.jsx("div",{className:we.description,children:b})]}),s&&g.jsx(Gr,{children:s})]})}var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function od(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var he=function(){return he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0}).sort(Ld)},Rd=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],ti=Rd.join(","),qd="".concat(ti,", [data-focus-guard]"),da=function(e,t){return Se((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?qd:ti)?[r]:[],da(r))},[])},Bd=function(e,t){var n;return e instanceof HTMLIFrameElement&&!((n=e.contentDocument)===null||n===void 0)&&n.body?ct([e.contentDocument.body],t):[e]},ct=function(e,t){return e.reduce(function(n,r){var i,o=da(r,t),s=(i=[]).concat.apply(i,o.map(function(a){return Bd(a,t)}));return n.concat(s,r.parentNode?Se(r.parentNode.querySelectorAll(ti)).filter(function(a){return a===r}):[])},[])},Fd=function(e){var t=e.querySelectorAll("[".concat(md,"]"));return Se(t).map(function(n){return ct([n])}).reduce(function(n,r){return n.concat(r)},[])},ni=function(e,t){return Se(e).filter(function(n){return aa(t,n)}).filter(function(n){return Md(n)})},Bi=function(e,t){return t===void 0&&(t=new Map),Se(e).filter(function(n){return sa(t,n)})},ri=function(e,t,n){return ei(ni(ct(e,n),t),!0,n)},It=function(e,t){return ei(ni(ct(e),t),!1)},Hd=function(e,t){return ni(Fd(e),t)},ze=function(e,t){return e.shadowRoot?ze(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Se(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?ze(i,t):!1}return ze(n,t)})},Ud=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,a){return!t.has(a)})},ha=function(e){return e.parentNode?ha(e.parentNode):e},ii=function(e){var t=Ge(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(vr);return n.push.apply(n,i?Ud(Se(ha(r).querySelectorAll("[".concat(vr,'="').concat(i,'"]:not([').concat(Qo,'="disabled"])')))):[r]),n},[])},Vd=function(e){try{return e()}catch{return}},Lt=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Lt(t.shadowRoot):t instanceof HTMLIFrameElement&&Vd(function(){return t.contentWindow.document})?Lt(t.contentWindow.document):t}},zd=function(e,t){return e===t},Wd=function(e,t){return!!Se(e.querySelectorAll("iframe")).some(function(n){return zd(n,t)})},pa=function(e,t){return t===void 0&&(t=Lt(ra(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:ii(e).some(function(n){return ze(n,t)||Wd(n,t)})},Gd=function(e){e===void 0&&(e=document);var t=Lt(e);return t?Se(e.querySelectorAll("[".concat(fd,"]"))).some(function(n){return ze(n,t)}):!1},Zd=function(e,t){return t.filter(ua).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},oi=function(e,t){return ua(e)&&e.name?Zd(e,t):e},Xd=function(e){var t=new Set;return e.forEach(function(n){return t.add(oi(n,e))}),e.filter(function(n){return t.has(n)})},Fi=function(e){return e[0]&&e.length>1?oi(e[0],e):e[0]},Hi=function(e,t){return e.indexOf(oi(t,e))},wr="NEW_FOCUS",Qd=function(e,t,n,r,i){var o=e.length,s=e[0],a=e[o-1],d=Kr(r);if(!(r&&e.indexOf(r)>=0)){var h=r!==void 0?n.indexOf(r):-1,p=i?n.indexOf(i):h,f=i?e.indexOf(i):-1;if(h===-1)return f!==-1?f:wr;if(f===-1)return wr;var l=h-p,c=n.indexOf(s),v=n.indexOf(a),m=Xd(n),w=r!==void 0?m.indexOf(r):-1,b=w-(i?m.indexOf(i):h);if(!l&&f>=0||t.length===0)return f;var x=Hi(e,t[0]),C=Hi(e,t[t.length-1]);if(h<=c&&d&&Math.abs(l)>1)return C;if(h>=v&&d&&Math.abs(l)>1)return x;if(l&&Math.abs(b)>1)return f;if(h<=c)return C;if(h>v)return x;if(l)return Math.abs(l)>1?f:(o+f+l)%o}},Yd=function(e){return function(t){var n,r=(n=la(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},Ui=function(e,t,n){var r=e.map(function(o){var s=o.node;return s}),i=Bi(r.filter(Yd(n)));return i&&i.length?Fi(i):Fi(Bi(t))},xr=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&xr(e.parentNode.host||e.parentNode,t),t},or=function(e,t){for(var n=xr(e),r=xr(t),i=0;i=0)return o}return!1},fa=function(e,t,n){var r=Ge(e),i=Ge(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(a){s=or(s||a,a)||s,n.filter(Boolean).forEach(function(d){var h=or(o,d);h&&(!s||ze(h,s)?s=h:s=or(h,s))})}),s},Vi=function(e,t){return e.reduce(function(n,r){return n.concat(Hd(r,t))},[])},Jd=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(Id)},Kd=function(e,t){var n=Lt(Ge(e).length>0?document:ra(e).ownerDocument),r=ii(e).filter(yr),i=fa(n||e,e,r),o=new Map,s=It(r,o),a=s.filter(function(v){var m=v.node;return yr(m)});if(a[0]){var d=It([i],o).map(function(v){var m=v.node;return m}),h=Jd(d,a),p=h.map(function(v){var m=v.node;return m}),f=h.filter(function(v){var m=v.tabIndex;return m>=0}).map(function(v){var m=v.node;return m}),l=Qd(p,f,d,n,t);if(l===wr){var c=Ui(s,f,Vi(r,o))||Ui(s,p,Vi(r,o));if(c)return{node:c};console.warn("focus-lock: cannot find any node to move focus into");return}return l===void 0?l:h[l]}},eh=function(e){var t=ii(e).filter(yr),n=fa(e,e,t),r=ei(ct([n],!0),!0,!0),i=ct(t,!1);return r.map(function(o){var s=o.node,a=o.index;return{node:s,index:a,lockItem:i.indexOf(s)>=0,guard:Kr(s)}})},ai=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},ar=0,sr=!1,ma=function(e,t,n){n===void 0&&(n={});var r=Kd(e,t);if(!sr&&r){if(ar>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),sr=!0,setTimeout(function(){sr=!1},1);return}ar++,ai(r.node,n.focusOptions),ar--}};function wt(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return t?.deref()||null}}var th=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:wt(n),parent:wt(n.parentElement),left:wt(n.previousElementSibling),right:wt(n.nextElementSibling)}),n=n.parentElement;return{element:wt(e),stack:t,ownerDocument:e.ownerDocument}},nh=function(e){var t,n,r,i,o;if(e)for(var s=e.stack,a=e.ownerDocument,d=new Map,h=0,p=s;h-1&&(m.filter(function(b){var x=b.guard,C=b.node;return x&&C.dataset.focusAutoGuard}).forEach(function(b){var x=b.node;return x.removeAttribute("tabIndex")}),Wi(w,m.length,1,m),Wi(w,-1,-1,m))}}}return e},xa=function(e){En()&&e&&(e.stopPropagation(),e.preventDefault())},li=function(){return Jr(En)},yh=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||ph(n,t)},wh=function(){return null},Ca=function(){si=!0},_a=function(){si=!1,Dt="just",Jr(function(){Dt="meanwhile"})},xh=function(){document.addEventListener("focusin",xa),document.addEventListener("focusout",li),window.addEventListener("focus",Ca),window.addEventListener("blur",_a)},Ch=function(){document.removeEventListener("focusin",xa),document.removeEventListener("focusout",li),window.removeEventListener("focus",Ca),window.removeEventListener("blur",_a)};function _h(e){return e.filter(function(t){var n=t.disabled;return!n})}var Ea={moveFocusInside:ma,focusInside:pa,focusNextElement:ah,focusPrevElement:sh,focusFirstElement:lh,focusLastElement:ch,captureFocusRestore:ga};function Eh(e){var t=e.slice(-1)[0];t&&!at&&xh();var n=at,r=n&&t&&t.id===n.id;at=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(fe=null,(!r||n.observed!==t.observed)&&t.onActivation(Ea),En(),Jr(En)):(Ch(),fe=null)}Yo.assignSyncMedium(yh);Jo.assignMedium(li);vd.assignMedium(function(e){return e(Ea)});const Nh=kd(_h,Eh)(wh);Qr(Ko,Nh);var Sh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sh();return t&&e.setAttribute("nonce",t),e}function Th(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ah=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kh())&&(Th(t,n),Oh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$h=function(){var e=Ah();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ci=function(){var e=$h(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},jh={left:0,top:0,right:0,gap:0},lr=function(e){return parseInt(e||"",10)||0},Mh=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[lr(n),lr(r),lr(i)]},Ph=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jh;var t=Mh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ih=ci(),lt="data-scroll-locked",Lh=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(ld,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(lt,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(o,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(mn,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(gn,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(mn," .").concat(mn,` { - right: 0 `).concat(r,`; - } - - .`).concat(gn," .").concat(gn,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(lt,`] { - `).concat(cd,": ").concat(a,`px; - } -`)},Gi=function(){var e=parseInt(document.body.getAttribute(lt)||"0",10);return isFinite(e)?e:0},Dh=function(){u.useEffect(function(){return document.body.setAttribute(lt,(Gi()+1).toString()),function(){var e=Gi()-1;e<=0?document.body.removeAttribute(lt):document.body.setAttribute(lt,e.toString())}},[])},Rh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Dh();var o=u.useMemo(function(){return Ph(i)},[i]);return u.createElement(Ih,{styles:Lh(o,!t,i,n?"":"!important")})},Cr=!1;if(typeof window<"u")try{var en=Object.defineProperty({},"passive",{get:function(){return Cr=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{Cr=!1}var Je=Cr?{passive:!1}:!1,qh=function(e){return e.tagName==="TEXTAREA"},Na=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qh(e)&&n[t]==="visible")},Bh=function(e){return Na(e,"overflowY")},Fh=function(e){return Na(e,"overflowX")},Zi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Sa(e,r);if(i){var o=ka(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Uh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sa=function(e,t){return e==="v"?Bh(t):Fh(t)},ka=function(e,t){return e==="v"?Hh(t):Uh(t)},Vh=function(e,t){return e==="h"&&t==="rtl"?-1:1},zh=function(e,t,n,r,i){var o=Vh(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,d=t.contains(a),h=!1,p=s>0,f=0,l=0;do{var c=ka(e,a),v=c[0],m=c[1],w=c[2],b=m-w-o*v;(v||b)&&Sa(e,a)&&(f+=b,l+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(p&&Math.abs(f)<1||!p&&Math.abs(l)<1)&&(h=!0),h},tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xi=function(e){return[e.deltaX,e.deltaY]},Qi=function(e){return e&&"current"in e?e.current:e},Wh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gh=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Zh=0,Ke=[];function Xh(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),i=u.useState(Zh++)[0],o=u.useState(ci)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=sd([e.lockRef.current],(e.shards||[]).map(Qi)).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(m,w){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=tn(m),x=n.current,C="deltaX"in m?m.deltaX:x[0]-b[0],N="deltaY"in m?m.deltaY:x[1]-b[1],k,j=m.target,M=Math.abs(C)>Math.abs(N)?"h":"v";if("touches"in m&&M==="h"&&j.type==="range")return!1;var R=Zi(M,j);if(!R)return!0;if(R?k=M:(k=M==="v"?"h":"v",R=Zi(M,j)),!R)return!1;if(!r.current&&"changedTouches"in m&&(C||N)&&(r.current=k),!k)return!0;var L=r.current||k;return zh(L,w,m,L==="h"?C:N)},[]),d=u.useCallback(function(m){var w=m;if(!(!Ke.length||Ke[Ke.length-1]!==o)){var b="deltaY"in w?Xi(w):tn(w),x=t.current.filter(function(k){return k.name===w.type&&(k.target===w.target||w.target===k.shadowParent)&&Wh(k.delta,b)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(Qi).filter(Boolean).filter(function(k){return k.contains(w.target)}),N=C.length>0?a(w,C[0]):!s.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),h=u.useCallback(function(m,w,b,x){var C={name:m,delta:w,target:b,should:x,shadowParent:Qh(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(N){return N!==C})},1)},[]),p=u.useCallback(function(m){n.current=tn(m),r.current=void 0},[]),f=u.useCallback(function(m){h(m.type,Xi(m),m.target,a(m,e.lockRef.current))},[]),l=u.useCallback(function(m){h(m.type,tn(m),m.target,a(m,e.lockRef.current))},[]);u.useEffect(function(){return Ke.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:l}),document.addEventListener("wheel",d,Je),document.addEventListener("touchmove",d,Je),document.addEventListener("touchstart",p,Je),function(){Ke=Ke.filter(function(m){return m!==o}),document.removeEventListener("wheel",d,Je),document.removeEventListener("touchmove",d,Je),document.removeEventListener("touchstart",p,Je)}},[]);var c=e.removeScrollBar,v=e.inert;return u.createElement(u.Fragment,null,v?u.createElement(o,{styles:Gh(i)}):null,c?u.createElement(Rh,{gapMode:e.gapMode}):null)}function Qh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Qr(Xo,Xh);var Yh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,nn=new WeakMap,rn={},cr=0,Ta=function(e){return e&&(e.host||Ta(e.parentNode))},Jh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ta(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Kh=function(e,t,n,r){var i=Jh(t,Array.isArray(e)?e:[e]);rn[n]||(rn[n]=new WeakMap);var o=rn[n],s=[],a=new Set,d=new Set(i),h=function(f){!f||a.has(f)||(a.add(f),h(f.parentNode))};i.forEach(h);var p=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(l){if(a.has(l))p(l);else try{var c=l.getAttribute(r),v=c!==null&&c!=="false",m=(et.get(l)||0)+1,w=(o.get(l)||0)+1;et.set(l,m),o.set(l,w),s.push(l),m===1&&v&&nn.set(l,!0),w===1&&l.setAttribute(n,"true"),v||l.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",l,b)}})};return p(t),a.clear(),cr++,function(){s.forEach(function(f){var l=et.get(f)-1,c=o.get(f)-1;et.set(f,l),o.set(f,c),l||(nn.has(f)||f.removeAttribute(r),nn.delete(f)),c||f.removeAttribute(n)}),cr--,cr||(et=new WeakMap,et=new WeakMap,nn=new WeakMap,rn={})}},ep=function(e,t,n){var r=Array.from(Array.isArray(e)?e:[e]),i=t||Yh(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Kh(r,i,n,"aria-hidden")):function(){return null}},tp=ci(),np=` - [`+na+`] { - pointer-events: none !important; - } -`,rp=function(){return u.createElement(tp,{styles:np})},Yi=function(e){return"current"in e?e.current:e};function ip(e){var t=e.setLockProps,n=e.onEscapeKey,r=e.onClickOutside,i=e.shards,o=e.onActivation,s=e.onDeactivation,a=e.noIsolation,d=u.useState(void 0),h=d[0],p=d[1],f=u.useRef(null),l=u.useRef(0);return u.useEffect(function(){var c=function(b){b.defaultPrevented||(b.code==="Escape"||b.key==="Escape"||b.keyCode===27)&&n&&n(b)},v=function(b){b.defaultPrevented||b.target===f.current||b instanceof MouseEvent&&b.button!==0||i&&i.map(Yi).some(function(x){return x&&x.contains(b.target)||x===b.target})||r&&r(b)},m=function(b){v(b),l.current=b.touches.length},w=function(b){l.current=b.touches.length};if(h)return document.addEventListener("keydown",c),document.addEventListener("mousedown",v),document.addEventListener("touchstart",m),document.addEventListener("touchend",w),function(){document.removeEventListener("keydown",c),document.removeEventListener("mousedown",v),document.removeEventListener("touchstart",m),document.removeEventListener("touchend",w)}},[h,r,n]),u.useEffect(function(){if(h)return o&&o(h),function(){s&&s()}},[!!h]),u.useEffect(function(){var c=function(){return null},v=!1,m=function(b){a||(c=ep(ad([b],(i||[]).map(Yi)),document.body,na)),p(function(){return b})},w=function(){c(),v||p(null)};return t({onMouseDown:function(b){f.current=b.target},onTouchStart:function(b){f.current=b.target},onActivation:m,onDeactivation:w}),function(){v=!0,t(!1)}},[]),u.createElement(rp,null)}const op=Qr(ta,ip);var ap=function(e){return u.createElement(op,he({},e))};u.forwardRef(function(e,t){return u.createElement(Cd,he({},e,{ref:t,sideCar:ap}))});const sp="_input-container_1b4m7_1",lp="_input-section_1b4m7_4",cp="_input_1b4m7_1",up="_disabled_1b4m7_17",dp="_errored_1b4m7_25",hp="_general_1b4m7_31",pp="_read-only_1b4m7_38",fp="_input-hint_1b4m7_53",mp="_input-error_1b4m7_58",xe={inputContainer:sp,inputSection:lp,input:cp,disabled:up,errored:dp,general:hp,readOnly:pp,inputHint:fp,inputError:mp};function ui(e){const{containerRef:t,inputSectionRef:n,actions:r,className:i,disabled:o,error:s,errorOnTooltip:a=!1,hint:d,icons:h,input:p,inputSectionClassName:f,label:l,labelClassName:c,readOnly:v,required:m,variant:w="form",withAsterisk:b,actionsContainerClassName:x,errorContainerClassName:C,hintContainerClassName:N,iconsContainerClassName:k,spacing:j}=e,M=b??m,{content:R,containerClassName:L}=zt({className:S(xe.inputSection,f),icons:h,iconsContainerClassName:k,actions:r,actionsContainerClassName:x,children:p,childrenContainerClassName:xe.input,spacing:j,withoutWrap:!0,variant:"xs"});return g.jsxs("div",{ref:t,className:S(xe.inputContainer,!!s&&xe.errored,v&&xe.readOnly,w==="form"&&xe.form,w==="general"&&xe.general,o&&xe.disabled,i),title:a&&s&&typeof s=="string"?s:void 0,children:[g.jsx(Uo,{className:c,disabled:o,required:M,children:l}),g.jsx("div",{ref:n,className:L,children:R}),d&&g.jsx("div",{className:S(xe.inputHint,N),children:d}),!a&&g.jsx(Gr,{disabled:o,className:S(xe.inputError,C),children:s})]})}const gp="_raw-input_8rtzt_1",vp={rawInput:gp};function Oa(e){const{className:t,onChange:n,elementRef:r,value:i,name:o,...s}=e,a=ce.useCallback(d=>{const h=d.currentTarget.value;n&&n(h===""?void 0:h,o,d)},[o,n]);return g.jsx("input",{...s,ref:r,className:S(vp.rawInput,t),name:V(o)?String(o):void 0,onChange:a,value:i??""})}const bp="_date-output_4jzjo_1",yp={dateOutput:bp};function wp(e){const{value:t,format:n,className:r,invalidText:i}=e,o=u.useMemo(()=>ru(t,n),[t,n]);return g.jsx("div",{className:S(yp.dateOutput,r),children:o??i})}function Aa(e,t,n,r){ce.useEffect(()=>{if(!e)return;const i=o=>{const{current:s}=n,{current:a}=r,d=o.target,h=o&&s?s===o.target||s.contains(d):!1,p=a?a===o.target||a.contains(d):!1;t(h,p,o)};return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}},[e,t,n,r])}const xp="_dropdown-menu_16hml_1",Cp="_icons_16hml_4",_p="_content_16hml_5",Ep="_actions_16hml_6",Np="_dropdown-icon_16hml_10",Sp="_dropdown-content_16hml_16",Fe={dropdownMenu:xp,icons:Cp,content:_p,actions:Ep,dropdownIcon:Np,dropdownContent:Sp};function kp(e){const t=u.useRef(null),{className:n,popupClassName:r,children:i,label:o,activeClassName:s,icons:a,variant:d="secondary",actions:h,withoutDropdownIcon:p,componentRef:f,elementRef:l=t,persistent:c,preferredPopupWidth:v}=e,m=u.useRef(null),[w,b]=u.useState(!1);u.useEffect(()=>{f&&(f.current={setShowDropdown:b})},[f,b]);const x=u.useCallback(()=>{b(j=>!j)},[b]),C=u.useCallback((j,M)=>{M||j&&c||b(!1)},[b,c]);Aa(w,C,m,l);const N=u.useMemo(()=>({setShowDropdown:b}),[b]),k=!!h||!p;return g.jsxs(Ks.Provider,{value:N,children:[g.jsx(it,{name:void 0,className:S(Fe.dropdownMenu,w&&s,n),elementRef:l,onClick:x,variant:d,actionsContainerClassName:Fe.actions,iconsContainerClassName:Fe.icons,childrenContainerClassName:Fe.content,actions:k?g.jsxs(g.Fragment,{children:[h,!p&&(w?g.jsx(Ro,{className:Fe.dropdownIcon}):g.jsx(Do,{className:Fe.dropdownIcon}))]}):void 0,icons:a,children:o}),w&&g.jsx(Pn,{elementRef:m,className:S(Fe.dropdownContent,r),parentRef:l,preferredWidth:v,children:i})]})}var Ji={},Tp={},Rt={},di={},qt={},hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var _r={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(o){var s="";return o>65535&&(o-=65536,s+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),s+=String.fromCharCode(o),s};function r(o){var s;return o>=55296&&o<=57343||o>1114111?65533:(s=n.get(o))!==null&&s!==void 0?s:o}e.replaceCodePoint=r;function i(o){return(0,e.fromCodePoint)(r(o))}e.default=i})(_r);(function(e){var t=I&&I.__createBinding||(Object.create?function(y,_,E,T){T===void 0&&(T=E);var A=Object.getOwnPropertyDescriptor(_,E);(!A||("get"in A?!_.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return _[E]}}),Object.defineProperty(y,T,A)}:function(y,_,E,T){T===void 0&&(T=E),y[T]=_[E]}),n=I&&I.__setModuleDefault||(Object.create?function(y,_){Object.defineProperty(y,"default",{enumerable:!0,value:_})}:function(y,_){y.default=_}),r=I&&I.__importStar||function(y){if(y&&y.__esModule)return y;var _={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&t(_,y,E);return n(_,y),_},i=I&&I.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var o=i(hi);e.htmlDecodeTree=o.default;var s=i(pi);e.xmlDecodeTree=s.default;var a=r(_r);e.decodeCodePoint=a.default;var d=_r;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}});var h;(function(y){y[y.NUM=35]="NUM",y[y.SEMI=59]="SEMI",y[y.EQUALS=61]="EQUALS",y[y.ZERO=48]="ZERO",y[y.NINE=57]="NINE",y[y.LOWER_A=97]="LOWER_A",y[y.LOWER_F=102]="LOWER_F",y[y.LOWER_X=120]="LOWER_X",y[y.LOWER_Z=122]="LOWER_Z",y[y.UPPER_A=65]="UPPER_A",y[y.UPPER_F=70]="UPPER_F",y[y.UPPER_Z=90]="UPPER_Z"})(h||(h={}));var p=32,f;(function(y){y[y.VALUE_LENGTH=49152]="VALUE_LENGTH",y[y.BRANCH_LENGTH=16256]="BRANCH_LENGTH",y[y.JUMP_TABLE=127]="JUMP_TABLE"})(f=e.BinTrieFlags||(e.BinTrieFlags={}));function l(y){return y>=h.ZERO&&y<=h.NINE}function c(y){return y>=h.UPPER_A&&y<=h.UPPER_F||y>=h.LOWER_A&&y<=h.LOWER_F}function v(y){return y>=h.UPPER_A&&y<=h.UPPER_Z||y>=h.LOWER_A&&y<=h.LOWER_Z||l(y)}function m(y){return y===h.EQUALS||v(y)}var w;(function(y){y[y.EntityStart=0]="EntityStart",y[y.NumericStart=1]="NumericStart",y[y.NumericDecimal=2]="NumericDecimal",y[y.NumericHex=3]="NumericHex",y[y.NamedEntity=4]="NamedEntity"})(w||(w={}));var b;(function(y){y[y.Legacy=0]="Legacy",y[y.Strict=1]="Strict",y[y.Attribute=2]="Attribute"})(b=e.DecodingMode||(e.DecodingMode={}));var x=function(){function y(_,E,T){this.decodeTree=_,this.emitCodePoint=E,this.errors=T,this.state=w.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b.Strict}return y.prototype.startEntity=function(_){this.decodeMode=_,this.state=w.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},y.prototype.write=function(_,E){switch(this.state){case w.EntityStart:return _.charCodeAt(E)===h.NUM?(this.state=w.NumericStart,this.consumed+=1,this.stateNumericStart(_,E+1)):(this.state=w.NamedEntity,this.stateNamedEntity(_,E));case w.NumericStart:return this.stateNumericStart(_,E);case w.NumericDecimal:return this.stateNumericDecimal(_,E);case w.NumericHex:return this.stateNumericHex(_,E);case w.NamedEntity:return this.stateNamedEntity(_,E)}},y.prototype.stateNumericStart=function(_,E){return E>=_.length?-1:(_.charCodeAt(E)|p)===h.LOWER_X?(this.state=w.NumericHex,this.consumed+=1,this.stateNumericHex(_,E+1)):(this.state=w.NumericDecimal,this.stateNumericDecimal(_,E))},y.prototype.addToNumericResult=function(_,E,T,A){if(E!==T){var P=T-E;this.result=this.result*Math.pow(A,P)+parseInt(_.substr(E,P),A),this.consumed+=P}},y.prototype.stateNumericHex=function(_,E){for(var T=E;E<_.length;){var A=_.charCodeAt(E);if(l(A)||c(A))E+=1;else return this.addToNumericResult(_,T,E,16),this.emitNumericEntity(A,3)}return this.addToNumericResult(_,T,E,16),-1},y.prototype.stateNumericDecimal=function(_,E){for(var T=E;E<_.length;){var A=_.charCodeAt(E);if(l(A))E+=1;else return this.addToNumericResult(_,T,E,10),this.emitNumericEntity(A,2)}return this.addToNumericResult(_,T,E,10),-1},y.prototype.emitNumericEntity=function(_,E){var T;if(this.consumed<=E)return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(_===h.SEMI)this.consumed+=1;else if(this.decodeMode===b.Strict)return 0;return this.emitCodePoint((0,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(_!==h.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},y.prototype.stateNamedEntity=function(_,E){for(var T=this.decodeTree,A=T[this.treeIndex],P=(A&f.VALUE_LENGTH)>>14;E<_.length;E++,this.excess++){var $=_.charCodeAt(E);if(this.treeIndex=N(T,A,this.treeIndex+Math.max(1,P),$),this.treeIndex<0)return this.result===0||this.decodeMode===b.Attribute&&(P===0||m($))?0:this.emitNotTerminatedNamedEntity();if(A=T[this.treeIndex],P=(A&f.VALUE_LENGTH)>>14,P!==0){if($===h.SEMI)return this.emitNamedEntityData(this.treeIndex,P,this.consumed+this.excess);this.decodeMode!==b.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},y.prototype.emitNotTerminatedNamedEntity=function(){var _,E=this,T=E.result,A=E.decodeTree,P=(A[T]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData(T,P,this.consumed),(_=this.errors)===null||_===void 0||_.missingSemicolonAfterCharacterReference(),this.consumed},y.prototype.emitNamedEntityData=function(_,E,T){var A=this.decodeTree;return this.emitCodePoint(E===1?A[_]&~f.VALUE_LENGTH:A[_+1],T),E===3&&this.emitCodePoint(A[_+2],T),T},y.prototype.end=function(){var _;switch(this.state){case w.NamedEntity:return this.result!==0&&(this.decodeMode!==b.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case w.NumericDecimal:return this.emitNumericEntity(0,2);case w.NumericHex:return this.emitNumericEntity(0,3);case w.NumericStart:return(_=this.errors)===null||_===void 0||_.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case w.EntityStart:return 0}},y}();e.EntityDecoder=x;function C(y){var _="",E=new x(y,function(T){return _+=(0,a.fromCodePoint)(T)});return function(T,A){for(var P=0,$=0;($=T.indexOf("&",$))>=0;){_+=T.slice(P,$),E.startEntity(A);var Z=E.write(T,$+1);if(Z<0){P=$+E.end();break}P=$+Z,$=Z===0?P+1:P}var X=_+T.slice(P);return _="",X}}function N(y,_,E,T){var A=(_&f.BRANCH_LENGTH)>>7,P=_&f.JUMP_TABLE;if(A===0)return P!==0&&T===P?E:-1;if(P){var $=T-P;return $<0||$>=A?-1:y[E+$]-1}for(var Z=E,X=Z+A-1;Z<=X;){var J=Z+X>>>1,Y=y[J];if(YT)X=J-1;else return y[J+A]}return-1}e.determineBranch=N;var k=C(o.default),j=C(s.default);function M(y,_){return _===void 0&&(_=b.Legacy),k(y,_)}e.decodeHTML=M;function R(y){return k(y,b.Attribute)}e.decodeHTMLAttribute=R;function L(y){return k(y,b.Strict)}e.decodeHTMLStrict=L;function B(y){return j(y,b.Strict)}e.decodeXML=B})(qt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=qt,n;(function(l){l[l.Tab=9]="Tab",l[l.NewLine=10]="NewLine",l[l.FormFeed=12]="FormFeed",l[l.CarriageReturn=13]="CarriageReturn",l[l.Space=32]="Space",l[l.ExclamationMark=33]="ExclamationMark",l[l.Number=35]="Number",l[l.Amp=38]="Amp",l[l.SingleQuote=39]="SingleQuote",l[l.DoubleQuote=34]="DoubleQuote",l[l.Dash=45]="Dash",l[l.Slash=47]="Slash",l[l.Zero=48]="Zero",l[l.Nine=57]="Nine",l[l.Semi=59]="Semi",l[l.Lt=60]="Lt",l[l.Eq=61]="Eq",l[l.Gt=62]="Gt",l[l.Questionmark=63]="Questionmark",l[l.UpperA=65]="UpperA",l[l.LowerA=97]="LowerA",l[l.UpperF=70]="UpperF",l[l.LowerF=102]="LowerF",l[l.UpperZ=90]="UpperZ",l[l.LowerZ=122]="LowerZ",l[l.LowerX=120]="LowerX",l[l.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(l){l[l.Text=1]="Text",l[l.BeforeTagName=2]="BeforeTagName",l[l.InTagName=3]="InTagName",l[l.InSelfClosingTag=4]="InSelfClosingTag",l[l.BeforeClosingTagName=5]="BeforeClosingTagName",l[l.InClosingTagName=6]="InClosingTagName",l[l.AfterClosingTagName=7]="AfterClosingTagName",l[l.BeforeAttributeName=8]="BeforeAttributeName",l[l.InAttributeName=9]="InAttributeName",l[l.AfterAttributeName=10]="AfterAttributeName",l[l.BeforeAttributeValue=11]="BeforeAttributeValue",l[l.InAttributeValueDq=12]="InAttributeValueDq",l[l.InAttributeValueSq=13]="InAttributeValueSq",l[l.InAttributeValueNq=14]="InAttributeValueNq",l[l.BeforeDeclaration=15]="BeforeDeclaration",l[l.InDeclaration=16]="InDeclaration",l[l.InProcessingInstruction=17]="InProcessingInstruction",l[l.BeforeComment=18]="BeforeComment",l[l.CDATASequence=19]="CDATASequence",l[l.InSpecialComment=20]="InSpecialComment",l[l.InCommentLike=21]="InCommentLike",l[l.BeforeSpecialS=22]="BeforeSpecialS",l[l.SpecialStartSequence=23]="SpecialStartSequence",l[l.InSpecialTag=24]="InSpecialTag",l[l.BeforeEntity=25]="BeforeEntity",l[l.BeforeNumericEntity=26]="BeforeNumericEntity",l[l.InNamedEntity=27]="InNamedEntity",l[l.InNumericEntity=28]="InNumericEntity",l[l.InHexEntity=29]="InHexEntity"})(r||(r={}));function i(l){return l===n.Space||l===n.NewLine||l===n.Tab||l===n.FormFeed||l===n.CarriageReturn}function o(l){return l===n.Slash||l===n.Gt||i(l)}function s(l){return l>=n.Zero&&l<=n.Nine}function a(l){return l>=n.LowerA&&l<=n.LowerZ||l>=n.UpperA&&l<=n.UpperZ}function d(l){return l>=n.UpperA&&l<=n.UpperF||l>=n.LowerA&&l<=n.LowerF}var h;(function(l){l[l.NoValue=0]="NoValue",l[l.Unquoted=1]="Unquoted",l[l.Single=2]="Single",l[l.Double=3]="Double"})(h=e.QuoteType||(e.QuoteType={}));var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function l(c,v){var m=c.xmlMode,w=m===void 0?!1:m,b=c.decodeEntities,x=b===void 0?!0:b;this.cbs=v,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=w,this.decodeEntities=x,this.entityTrie=w?t.xmlDecodeTree:t.htmlDecodeTree}return l.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},l.prototype.write=function(c){this.offset+=this.buffer.length,this.buffer=c,this.parse()},l.prototype.end=function(){this.running&&this.finish()},l.prototype.pause=function(){this.running=!1},l.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&c===n.Amp&&(this.state=r.BeforeEntity)},l.prototype.stateSpecialStartSequence=function(c){var v=this.sequenceIndex===this.currentSequence.length,m=v?o(c):(c|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!v){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(c)},l.prototype.stateInSpecialTag=function(c){if(this.sequenceIndex===this.currentSequence.length){if(c===n.Gt||i(c)){var v=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&c!==n.Semi)this.trieIndex+=m;else{var w=this.index-this.entityExcess+1;w>this.sectionStart&&this.emitPartial(this.sectionStart,w),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},l.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var c=(this.entityTrie[this.entityResult]&t.BinTrieFlags.VALUE_LENGTH)>>14;switch(c){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~t.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},l.prototype.stateBeforeNumericEntity=function(c){(c|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(c))},l.prototype.emitNumericEntity=function(c){var v=this.index-this.entityExcess-1,m=v+2+ +(this.state===r.InHexEntity);m!==this.index&&(v>this.sectionStart&&this.emitPartial(this.sectionStart,v),this.sectionStart=this.index+Number(c),this.emitCodePoint((0,t.replaceCodePoint)(this.entityResult))),this.state=this.baseState},l.prototype.stateInNumericEntity=function(c){c===n.Semi?this.emitNumericEntity(!0):s(c)?(this.entityResult=this.entityResult*10+(c-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},l.prototype.stateInHexEntity=function(c){c===n.Semi?this.emitNumericEntity(!0):s(c)?(this.entityResult=this.entityResult*16+(c-n.Zero),this.entityExcess++):d(c)?(this.entityResult=this.entityResult*16+((c|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},l.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},l.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},l.prototype.shouldContinue=function(){return this.index0&&s.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,a,!0)}this.isVoidElement(t)||(this.stack.push(t),ro.has(t)?this.foreignContext.push(!0):io.has(t)&&this.foreignContext.push(!1)),(o=(i=this.cbs).onopentagname)===null||o===void 0||o.call(i,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,n){var r,i,o,s,a,d;this.endIndex=n;var h=this.getSlice(t,n);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(ro.has(h)||io.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((i=(r=this.cbs).onopentagname)===null||i===void 0||i.call(r,"br"),(s=(o=this.cbs).onopentag)===null||s===void 0||s.call(o,"br",{},!0),(d=(a=this.cbs).onclosetag)===null||d===void 0||d.call(a,"br",!1));else{var p=this.stack.lastIndexOf(h);if(p!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-p;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=p;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var n,r,i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!t),this.stack.pop())},e.prototype.onattribname=function(t,n){this.startIndex=t;var r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(t,n){this.attribvalue+=this.getSlice(t,n)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,Ki.fromCodePoint)(t)},e.prototype.onattribend=function(t,n){var r,i;this.endIndex=n,(i=(r=this.cbs).onattribute)===null||i===void 0||i.call(r,this.attribname,this.attribvalue,t===on.QuoteType.Double?'"':t===on.QuoteType.Single?"'":t===on.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var n=t.search(Pp),r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(r))}this.startIndex=n+1},e.prototype.onprocessinginstruction=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(r))}this.startIndex=n+1},e.prototype.oncomment=function(t,n,r){var i,o,s,a;this.endIndex=n,(o=(i=this.cbs).oncomment)===null||o===void 0||o.call(i,this.getSlice(t,n-r)),(a=(s=this.cbs).oncommentend)===null||a===void 0||a.call(s),this.startIndex=n+1},e.prototype.oncdata=function(t,n,r){var i,o,s,a,d,h,p,f,l,c;this.endIndex=n;var v=this.getSlice(t,n-r);this.options.xmlMode||this.options.recognizeCDATA?((o=(i=this.cbs).oncdatastart)===null||o===void 0||o.call(i),(a=(s=this.cbs).ontext)===null||a===void 0||a.call(s,v),(h=(d=this.cbs).oncdataend)===null||h===void 0||h.call(d)):((f=(p=this.cbs).oncomment)===null||f===void 0||f.call(p,"[CDATA[".concat(v,"]]")),(c=(l=this.cbs).oncommentend)===null||c===void 0||c.call(l)),this.startIndex=n+1},e.prototype.onend=function(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)},e.prototype.reset=function(){var t,n,r,i;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(r=this.cbs).onparserinit)===null||i===void 0||i.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(fi);F.NodeWithChildren=Ln;var Pa=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=pe.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Ln);F.CDATA=Pa;var Ia=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=pe.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Ln);F.Document=Ia;var La=function(e){De(t,e);function t(n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=n==="script"?pe.ElementType.Script:n==="style"?pe.ElementType.Style:pe.ElementType.Tag);var s=e.call(this,i)||this;return s.name=n,s.attribs=r,s.type=o,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=n["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),t}(Ln);F.Element=La;function Da(e){return(0,pe.isTag)(e)}F.isTag=Da;function Ra(e){return e.type===pe.ElementType.CDATA}F.isCDATA=Ra;function qa(e){return e.type===pe.ElementType.Text}F.isText=qa;function Ba(e){return e.type===pe.ElementType.Comment}F.isComment=Ba;function Fa(e){return e.type===pe.ElementType.Directive}F.isDirective=Fa;function Ha(e){return e.type===pe.ElementType.Root}F.isDocument=Ha;function Lp(e){return Object.prototype.hasOwnProperty.call(e,"children")}F.hasChildren=Lp;function mi(e,t){t===void 0&&(t=!1);var n;if(qa(e))n=new $a(e.data);else if(Ba(e))n=new ja(e.data);else if(Da(e)){var r=t?ur(e.children):[],i=new La(e.name,jt({},e.attribs),r);r.forEach(function(d){return d.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=jt({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=jt({},e["x-attribsPrefix"])),n=i}else if(Ra(e)){var r=t?ur(e.children):[],o=new Pa(r);r.forEach(function(h){return h.parent=o}),n=o}else if(Ha(e)){var r=t?ur(e.children):[],s=new Ia(r);r.forEach(function(h){return h.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(Fa(e)){var a=new Ma(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}F.cloneNode=mi;function ur(e){for(var t=e.map(function(r){return mi(r,!0)}),n=1;n$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(i,o){return i.codePointAt(o)}:function(i,o){return(i.charCodeAt(o)&64512)===55296?(i.charCodeAt(o)-55296)*1024+i.charCodeAt(o+1)-56320+65536:i.charCodeAt(o)};function n(i){for(var o="",s=0,a;(a=e.xmlReplacer.exec(i))!==null;){var d=a.index,h=i.charCodeAt(d),p=t.get(h);p!==void 0?(o+=i.substring(s,d)+p,s=d+1):(o+="".concat(i.substring(s,d),"&#x").concat((0,e.getCodePoint)(i,d).toString(16),";"),s=e.xmlReplacer.lastIndex+=+((h&64512)===55296))}return o+i.substr(s)}e.encodeXML=n,e.escape=n;function r(i,o){return function(s){for(var a,d=0,h="";a=i.exec(s);)d!==a.index&&(h+=s.substring(d,a.index)),h+=o.get(a[0].charCodeAt(0)),d=a.index+1;return h+s.substring(d)}}e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Nn);var Dp=I&&I.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.encodeNonAsciiHTML=Ze.encodeHTML=void 0;var Rp=Dp(gi),Va=Nn,qp=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Bp(e){return za(qp,e)}Ze.encodeHTML=Bp;function Fp(e){return za(Va.xmlReplacer,e)}Ze.encodeNonAsciiHTML=Fp;function za(e,t){for(var n="",r=0,i;(i=e.exec(t))!==null;){var o=i.index;n+=t.substring(r,o);var s=t.charCodeAt(o),a=Rp.default.get(s);if(typeof a=="object"){if(o+10&&(r+=Dn(e.children,t)),(t.xmlMode||!oo.has(e.name))&&(r+=""))),r}function Jp(e){return"<".concat(e.data,">")}function Kp(e,t){var n,r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&zp.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?(0,Sn.encodeXML)(r):(0,Sn.escapeText)(r)),r}function ef(e){return"")}function tf(e){return"")}var nf=I&&I.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(me,"__esModule",{value:!0});me.innerText=me.textContent=me.getText=me.getInnerHTML=me.getOuterHTML=void 0;var Ne=$e,rf=nf(Wt),of=ft;function Ga(e,t){return(0,rf.default)(e,t)}me.getOuterHTML=Ga;function af(e,t){return(0,Ne.hasChildren)(e)?e.children.map(function(n){return Ga(n,t)}).join(""):""}me.getInnerHTML=af;function bn(e){return Array.isArray(e)?e.map(bn).join(""):(0,Ne.isTag)(e)?e.name==="br"?` -`:bn(e.children):(0,Ne.isCDATA)(e)?bn(e.children):(0,Ne.isText)(e)?e.data:""}me.getText=bn;function Er(e){return Array.isArray(e)?e.map(Er).join(""):(0,Ne.hasChildren)(e)&&!(0,Ne.isComment)(e)?Er(e.children):(0,Ne.isText)(e)?e.data:""}me.textContent=Er;function Nr(e){return Array.isArray(e)?e.map(Nr).join(""):(0,Ne.hasChildren)(e)&&(e.type===of.ElementType.Tag||(0,Ne.isCDATA)(e))?Nr(e.children):(0,Ne.isText)(e)?e.data:""}me.innerText=Nr;var ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.prevElementSibling=ne.nextElementSibling=ne.getName=ne.hasAttrib=ne.getAttributeValue=ne.getSiblings=ne.getParent=ne.getChildren=void 0;var vi=$e;function Za(e){return(0,vi.hasChildren)(e)?e.children:[]}ne.getChildren=Za;function Xa(e){return e.parent||null}ne.getParent=Xa;function sf(e){var t,n,r=Xa(e);if(r!=null)return Za(r);for(var i=[e],o=e.prev,s=e.next;o!=null;)i.unshift(o),t=o,o=t.prev;for(;s!=null;)i.push(s),n=s,s=n.next;return i}ne.getSiblings=sf;function lf(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}ne.getAttributeValue=lf;function cf(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}ne.hasAttrib=cf;function uf(e){return e.name}ne.getName=uf;function df(e){for(var t,n=e.next;n!==null&&!(0,vi.isTag)(n);)t=n,n=t.next;return n}ne.nextElementSibling=df;function hf(e){for(var t,n=e.prev;n!==null&&!(0,vi.isTag)(n);)t=n,n=t.prev;return n}ne.prevElementSibling=hf;var de={};Object.defineProperty(de,"__esModule",{value:!0});de.prepend=de.prependChild=de.append=de.appendChild=de.replaceElement=de.removeElement=void 0;function Gt(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}de.removeElement=Gt;function pf(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}}de.replaceElement=pf;function ff(e,t){if(Gt(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}de.appendChild=ff;function mf(e,t){Gt(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}de.append=mf;function gf(e,t){if(Gt(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var n=e.children[1];n.prev=t,t.next=n}else t.next=null}de.prependChild=gf;function vf(e,t){Gt(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}de.prepend=vf;var le={};Object.defineProperty(le,"__esModule",{value:!0});le.findAll=le.existsOne=le.findOne=le.findOneChild=le.find=le.filter=void 0;var Rn=$e;function bf(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),Qa(e,Array.isArray(t)?t:[t],n,r)}le.filter=bf;function Qa(e,t,n,r){for(var i=[],o=[t],s=[0];;){if(s[0]>=o[0].length){if(s.length===1)return i;o.shift(),s.shift();continue}var a=o[0][s[0]++];if(e(a)&&(i.push(a),--r<=0))return i;n&&(0,Rn.hasChildren)(a)&&a.children.length>0&&(s.unshift(0),o.unshift(a.children))}}le.find=Qa;function yf(e,t){return t.find(e)}le.findOneChild=yf;function Ya(e,t,n){n===void 0&&(n=!0);for(var r=null,i=0;i0&&(r=Ya(e,o.children,!0));else continue}return r}le.findOne=Ya;function Ja(e,t){return t.some(function(n){return(0,Rn.isTag)(n)&&(e(n)||Ja(e,n.children))})}le.existsOne=Ja;function wf(e,t){for(var n=[],r=[t],i=[0];;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}var o=r[0][i[0]++];(0,Rn.isTag)(o)&&(e(o)&&n.push(o),o.children.length>0&&(i.unshift(0),r.unshift(o.children)))}}le.findAll=wf;var ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.getElementsByTagType=ge.getElementsByTagName=ge.getElementById=ge.getElements=ge.testElement=void 0;var Ve=$e,qn=le,kn={tag_name:function(e){return typeof e=="function"?function(t){return(0,Ve.isTag)(t)&&e(t.name)}:e==="*"?Ve.isTag:function(t){return(0,Ve.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,Ve.isText)(t)&&e(t.data)}:function(t){return(0,Ve.isText)(t)&&t.data===e}}};function Ka(e,t){return typeof t=="function"?function(n){return(0,Ve.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,Ve.isTag)(n)&&n.attribs[e]===t}}function xf(e,t){return function(n){return e(n)||t(n)}}function es(e){var t=Object.keys(e).map(function(n){var r=e[n];return Object.prototype.hasOwnProperty.call(kn,n)?kn[n](r):Ka(n,r)});return t.length===0?null:t.reduce(xf)}function Cf(e,t){var n=es(e);return n?n(t):!0}ge.testElement=Cf;function _f(e,t,n,r){r===void 0&&(r=1/0);var i=es(e);return i?(0,qn.filter)(i,t,n,r):[]}ge.getElements=_f;function Ef(e,t,n){return n===void 0&&(n=!0),Array.isArray(t)||(t=[t]),(0,qn.findOne)(Ka("id",e),t,n)}ge.getElementById=Ef;function Nf(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,qn.filter)(kn.tag_name(e),t,n,r)}ge.getElementsByTagName=Nf;function Sf(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,qn.filter)(kn.tag_type(e),t,n,r)}ge.getElementsByTagType=Sf;var ts={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=$e;function n(s){for(var a=s.length;--a>=0;){var d=s[a];if(a>0&&s.lastIndexOf(d,a-1)>=0){s.splice(a,1);continue}for(var h=d.parent;h;h=h.parent)if(s.includes(h)){s.splice(a,1);break}}return s}e.removeSubsets=n;var r;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(r=e.DocumentPosition||(e.DocumentPosition={}));function i(s,a){var d=[],h=[];if(s===a)return 0;for(var p=(0,t.hasChildren)(s)?s:s.parent;p;)d.unshift(p),p=p.parent;for(p=(0,t.hasChildren)(a)?a:a.parent;p;)h.unshift(p),p=p.parent;for(var f=Math.min(d.length,h.length),l=0;lv.indexOf(w)?c===a?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:c===s?r.PRECEDING|r.CONTAINS:r.PRECEDING}e.compareDocumentPosition=i;function o(s){return s=s.filter(function(a,d,h){return!h.includes(a,d+1)}),s.sort(function(a,d){var h=i(a,d);return h&r.PRECEDING?-1:h&r.FOLLOWING?1:0}),s}e.uniqueSort=o})(ts);var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.getFeed=void 0;var kf=me,Zt=ge;function Tf(e){var t=Tn(Mf,e);return t?t.name==="feed"?Of(t):Af(t):null}Bn.getFeed=Tf;function Of(e){var t,n=e.children,r={type:"atom",items:(0,Zt.getElementsByTagName)("entry",n).map(function(s){var a,d=s.children,h={media:ns(d)};ue(h,"id","id",d),ue(h,"title","title",d);var p=(a=Tn("link",d))===null||a===void 0?void 0:a.attribs.href;p&&(h.link=p);var f=Le("summary",d)||Le("content",d);f&&(h.description=f);var l=Le("updated",d);return l&&(h.pubDate=new Date(l)),h})};ue(r,"id","id",n),ue(r,"title","title",n);var i=(t=Tn("link",n))===null||t===void 0?void 0:t.attribs.href;i&&(r.link=i),ue(r,"description","subtitle",n);var o=Le("updated",n);return o&&(r.updated=new Date(o)),ue(r,"author","email",n,!0),r}function Af(e){var t,n,r=(n=(t=Tn("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],i={type:e.name.substr(0,3),id:"",items:(0,Zt.getElementsByTagName)("item",e.children).map(function(s){var a=s.children,d={media:ns(a)};ue(d,"id","guid",a),ue(d,"title","title",a),ue(d,"link","link",a),ue(d,"description","description",a);var h=Le("pubDate",a)||Le("dc:date",a);return h&&(d.pubDate=new Date(h)),d})};ue(i,"title","title",r),ue(i,"link","link",r),ue(i,"description","description",r);var o=Le("lastBuildDate",r);return o&&(i.updated=new Date(o)),ue(i,"author","managingEditor",r,!0),i}var $f=["url","type","lang"],jf=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ns(e){return(0,Zt.getElementsByTagName)("media:content",e).map(function(t){for(var n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},i=0,o=$f;i - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function ao(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pf(e){var t,n;return ao(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ao(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}bi.isPlainObject=Pf;var If={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.parseSrcset=n()})(I,function(){return function(t){function n(N){return N===" "||N===" "||N===` -`||N==="\f"||N==="\r"}function r(N){var k,j=N.exec(t.substring(w));if(j)return k=j[0],w+=k.length,k}for(var i=t.length,o=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,h=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f,l,c,v,m,w=0,b=[];;){if(r(s),w>=i)return b;f=r(a),l=[],f.slice(-1)===","?(f=f.replace(d,""),C()):x()}function x(){for(r(o),c="",v="in descriptor";;){if(m=t.charAt(w),v==="in descriptor")if(n(m))c&&(l.push(c),c="",v="after descriptor");else if(m===","){w+=1,c&&l.push(c),C();return}else if(m==="(")c=c+m,v="in parens";else if(m===""){c&&l.push(c),C();return}else c=c+m;else if(v==="in parens")if(m===")")c=c+m,v="in descriptor";else if(m===""){l.push(c),C();return}else c=c+m;else if(v==="after descriptor"&&!n(m))if(m===""){C();return}else v="in descriptor",w-=1;w+=1}}function C(){var N=!1,k,j,M,R,L={},B,y,_,E,T;for(R=0;R",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=so.isColorSupported);let r=p=>p,i=p=>p,o=p=>p;if(t){let{bold:p,gray:f,red:l}=so.createColors(!0);i=c=>p(l(c)),r=c=>f(c),lo&&(o=c=>lo(c))}let s=n.split(/\r?\n/),a=Math.max(this.line-3,0),d=Math.min(this.line+2,s.length),h=String(d).length;return s.slice(a,d).map((p,f)=>{let l=a+1+f,c=" "+(" "+l).slice(-h)+" | ";if(l===this.line){if(p.length>160){let m=20,w=Math.max(0,this.column-m),b=Math.max(this.column+m,this.endColumn+m),x=p.slice(w,b),C=r(c.replace(/\d/g," "))+p.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(c)+o(x)+` - `+C+i("^")}let v=r(c.replace(/\d/g," "))+p.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(c)+o(p)+` - `+v+i("^")}return" "+r(c)+o(p)}).join(` -`)}toString(){let t=this.showSourceCode();return t&&(t=` - -`+t+` -`),this.name+": "+this.message+t}};var wi=Sr;Sr.default=Sr;const co={after:` -`,beforeClose:` -`,beforeComment:` -`,beforeDecl:` -`,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function qf(e){return e[0].toUpperCase()+e.slice(1)}let kr=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&r.type!=="root";)i+=1,r=r.parent;if(n.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let s=0;s0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r{if(r=a.raws[t],typeof r<"u")return!1})}return typeof r>"u"&&(r=co[n]),o.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(` -`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(` -`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof n.raws.before<"u"){let i=n.raws.before.split(` -`);return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var os=kr;kr.default=kr;let Bf=os;function Tr(e,t){new Bf(t).stringify(e)}var Fn=Tr;Tr.default=Tr;var Xt={};Xt.isClean=Symbol("isClean");Xt.my=Symbol("my");let Ff=wi,Hf=os,Uf=Fn,{isClean:xt,my:Vf}=Xt;function Or(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let i=e[r],o=typeof i;r==="parent"&&o==="object"?t&&(n[r]=t):r==="source"?n[r]=i:Array.isArray(i)?n[r]=i.map(s=>Or(s,n)):(o==="object"&&i!==null&&(i=Or(i)),n[r]=i)}return n}let Ar=class{constructor(e={}){this.raws={},this[xt]=!1,this[Vf]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Or(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new Ff(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[xt]=!0}markDirty(){if(this[xt]){this[xt]=!1;let e=this;for(;e=e.parent;)e[xt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let o=0;otypeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof s=="object"&&s.toJSON)n[o]=s.toJSON(null,t);else if(o==="source"){let a=t.get(s.input);a==null&&(a=i,t.set(s.input,i),i++),n[o]={end:s.end,inputId:a,start:s.start}}else n[o]=s}return r&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Uf){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let r={node:this};for(let i in n)r[i]=n[i];return e.warn(t,r)}get proxyOf(){return this}};var Hn=Ar;Ar.default=Ar;let zf=Hn,$r=class extends zf{constructor(e){super(e),this.type="comment"}};var Un=$r;$r.default=$r;let Wf=Hn,jr=class extends Wf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Vn=jr;jr.default=jr;let as=Un,ss=Vn,Gf=Hn,{isClean:ls,my:cs}=Xt,xi,us,ds,Ci;function hs(e){return e.map(t=>(t.nodes&&(t.nodes=hs(t.nodes)),delete t.source,t))}function ps(e){if(e[ls]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)ps(t)}let je=class fs extends Gf{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,i;for(;this.indexes[n]t[n](...r.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):n==="every"||n==="some"?r=>t[n]((i,...o)=>r(i.toProxy(),...o)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),i=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new ss(t)]}else if(t.selector||t.selectors)t=[new Ci(t)];else if(t.name)t=[new xi(t)];else if(t.text)t=[new as(t)];else throw new Error("Unknown node type in node creation");return t.map(r=>(r[cs]||fs.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[ls]&&ps(r),r.raws||(r.raws={}),typeof r.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(r.raws.before=n.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(i=>{n.props&&!n.props.includes(i.prop)||n.fast&&!i.value.includes(n.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let i;try{i=t(n,r)}catch(o){throw n.addToError(o)}return i!==!1&&n.walk&&(i=n.walk(t)),i})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===t)return n(r,i)}):(n=t,this.walk((r,i)=>{if(r.type==="atrule")return n(r,i)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===t)return n(r,i)}):(n=t,this.walk((r,i)=>{if(r.type==="decl")return n(r,i)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===t)return n(r,i)}):(n=t,this.walk((r,i)=>{if(r.type==="rule")return n(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};je.registerParse=e=>{us=e};je.registerRule=e=>{Ci=e};je.registerAtRule=e=>{xi=e};je.registerRoot=e=>{ds=e};var Xe=je;je.default=je;je.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,xi.prototype):e.type==="rule"?Object.setPrototypeOf(e,Ci.prototype):e.type==="decl"?Object.setPrototypeOf(e,ss.prototype):e.type==="comment"?Object.setPrototypeOf(e,as.prototype):e.type==="root"&&Object.setPrototypeOf(e,ds.prototype),e[cs]=!0,e.nodes&&e.nodes.forEach(t=>{je.rebuild(t)})};let ms=Xe,On=class extends ms{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var _i=On;On.default=On;ms.registerAtRule(On);let Zf=Xe,gs,vs,Bt=class extends Zf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new gs(new vs,this,e).stringify()}};Bt.registerLazyResult=e=>{gs=e};Bt.registerProcessor=e=>{vs=e};var Ei=Bt;Bt.default=Bt;let Xf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Qf=(e=21)=>{let t="",n=e;for(;n--;)t+=Xf[Math.random()*64|0];return t};var Yf={nanoid:Qf};let{existsSync:Jf,readFileSync:Kf}=be,{dirname:dr,join:em}=be,{SourceMapConsumer:uo,SourceMapGenerator:ho}=be;function tm(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Mr=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=dr(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new uo(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,o=e.match(r)||e.match(i);if(o)return decodeURIComponent(e.substr(o[0].length));let s=e.match(t)||e.match(n);if(s)return tm(e.substr(s[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=dr(e),Jf(e))return this.mapFile=e,Kf(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(t instanceof uo)return ho.fromSourceMap(t).toString();if(t instanceof ho)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=em(dr(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var bs=Mr;Mr.default=Mr;let{nanoid:nm}=Yf,{isAbsolute:Pr,resolve:Ir}=be,{SourceMapConsumer:rm,SourceMapGenerator:im}=be,{fileURLToPath:po,pathToFileURL:sn}=be,fo=wi,om=bs,hr=be,pr=Symbol("fromOffsetCache"),am=!!(rm&&im),mo=!!(Ir&&Pr),An=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!mo||/^\w+:\/\//.test(t.from)||Pr(t.from)?this.file=t.from:this.file=Ir(t.from)),mo&&am){let n=new om(this.css,t);if(n.text){this.map=n;let r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&typeof t=="object"){let d=t,h=n;if(typeof d.offset=="number"){let p=this.fromOffset(d.offset);t=p.line,n=p.col}else t=d.line,n=d.column;if(typeof h.offset=="number"){let p=this.fromOffset(h.offset);o=p.line,i=p.col}else o=h.line,i=h.column}else if(!n){let d=this.fromOffset(t);t=d.line,n=d.col}let a=this.origin(t,n,o,i);return a?s=new fo(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):s=new fo(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:i,line:o},this.css,this.file,r.plugin),s.input={column:n,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(sn&&(s.input.url=sn(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[pr])n=this[pr];else{let i=this.css.split(` -`);n=new Array(i.length);let o=0;for(let s=0,a=i.length;s=t)r=n.length-1;else{let i=n.length-2,o;for(;r>1),e=n[o+1])r=o+1;else{r=o;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ir(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;let s;typeof n=="number"&&(s=i.originalPositionFor({column:r,line:n}));let a;Pr(o.source)?a=sn(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||sn(this.map.mapFile));let d={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(po)d.file=po(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=i.sourceContentFor(o.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var zn=An;An.default=An;hr&&hr.registerInput&&hr.registerInput(An);let ys=Xe,ws,xs,dt=class extends ys{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let i=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let o of i)o.raws.before=n.raws.before}return i}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new ws(new xs,this,t).stringify()}};dt.registerLazyResult=e=>{ws=e};dt.registerProcessor=e=>{xs=e};var Qt=dt;dt.default=dt;ys.registerRoot(dt);let Ft={comma(e){return Ft.split(e,[","],!0)},space(e){let t=[" ",` -`," "];return Ft.split(e,t)},split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,d="",h=!1;for(let p of e)h?h=!1:p==="\\"?h=!0:a?p===d&&(a=!1):p==='"'||p==="'"?(a=!0,d=p):p==="("?s+=1:p===")"?s>0&&(s-=1):s===0&&t.includes(p)&&(o=!0),o?(i!==""&&r.push(i.trim()),i="",o=!1):i+=p;return(n||i!=="")&&r.push(i.trim()),r}};var Cs=Ft;Ft.default=Ft;let _s=Xe,sm=Cs,$n=class extends _s{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return sm.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Ni=$n;$n.default=$n;_s.registerRule($n);let lm=_i,cm=Un,um=Vn,dm=zn,hm=bs,pm=Qt,fm=Ni;function Ht(e,t){if(Array.isArray(e))return e.map(i=>Ht(i));let{inputs:n,...r}=e;if(n){t=[];for(let i of n){let o={...i,__proto__:dm.prototype};o.map&&(o.map={...o.map,__proto__:hm.prototype}),t.push(o)}}if(r.nodes&&(r.nodes=e.nodes.map(i=>Ht(i,t))),r.source){let{inputId:i,...o}=r.source;r.source=o,i!=null&&(r.source.input=t[i])}if(r.type==="root")return new pm(r);if(r.type==="decl")return new um(r);if(r.type==="rule")return new fm(r);if(r.type==="comment")return new cm(r);if(r.type==="atrule")return new lm(r);throw new Error("Unknown node type: "+e.type)}var mm=Ht;Ht.default=Ht;let{dirname:yn,relative:Es,resolve:Ns,sep:Ss}=be,{SourceMapConsumer:ks,SourceMapGenerator:wn}=be,{pathToFileURL:go}=be,gm=zn,vm=!!(ks&&wn),bm=!!(yn&&Ns&&Es&&Ss),ym=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=` -`;this.css.includes(`\r -`)&&(t=`\r -`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||yn(e.file),r;this.mapOpts.sourcesContent===!1?(r=new ks(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),bm&&vm&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new wn({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n="",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,o;this.stringify(this.root,(s,a,d)=>{if(this.css+=s,a&&d!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=s.match(/\n/g),o?(e+=o.length,i=s.lastIndexOf(` -`),t=s.length-i):t+=s.length,a&&d!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=yn(Ns(n,this.mapOpts.annotation)));let r=Es(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new gm(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(go){let n=go(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ss==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Ts=ym;const fr=39,vo=34,ln=92,bo=47,cn=10,Ct=32,un=12,dn=9,hn=13,wm=91,xm=93,Cm=40,_m=41,Em=123,Nm=125,Sm=59,km=42,Tm=58,Om=64,pn=/[\t\n\f\r "#'()/;[\\\]{}]/g,fn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Am=/.[\r\n"'(/\\]/,yo=/[\da-f]/i;var $m=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,i,o,s,a,d,h,p,f,l,c,v=n.length,m=0,w=[],b=[];function x(){return m}function C(M){throw e.error("Unclosed "+M,m)}function N(){return b.length===0&&m>=v}function k(M){if(b.length)return b.pop();if(m>=v)return;let R=M?M.ignoreUnclosed:!1;switch(i=n.charCodeAt(m),i){case cn:case Ct:case dn:case hn:case un:{a=m;do a+=1,i=n.charCodeAt(a);while(i===Ct||i===cn||i===dn||i===hn||i===un);h=["space",n.slice(m,a)],m=a-1;break}case wm:case xm:case Em:case Nm:case Tm:case Sm:case _m:{let L=String.fromCharCode(i);h=[L,L,m];break}case Cm:{if(c=w.length?w.pop()[1]:"",l=n.charCodeAt(m+1),c==="url"&&l!==fr&&l!==vo&&l!==Ct&&l!==cn&&l!==dn&&l!==un&&l!==hn){a=m;do{if(p=!1,a=n.indexOf(")",a+1),a===-1)if(r||R){a=m;break}else C("bracket");for(f=a;n.charCodeAt(f-1)===ln;)f-=1,p=!p}while(p);h=["brackets",n.slice(m,a+1),m,a],m=a}else a=n.indexOf(")",m+1),o=n.slice(m,a+1),a===-1||Am.test(o)?h=["(","(",m]:(h=["brackets",o,m,a],m=a);break}case fr:case vo:{d=i===fr?"'":'"',a=m;do{if(p=!1,a=n.indexOf(d,a+1),a===-1)if(r||R){a=m+1;break}else C("string");for(f=a;n.charCodeAt(f-1)===ln;)f-=1,p=!p}while(p);h=["string",n.slice(m,a+1),m,a],m=a;break}case Om:{pn.lastIndex=m+1,pn.test(n),pn.lastIndex===0?a=n.length-1:a=pn.lastIndex-2,h=["at-word",n.slice(m,a+1),m,a],m=a;break}case ln:{for(a=m,s=!0;n.charCodeAt(a+1)===ln;)a+=1,s=!s;if(i=n.charCodeAt(a+1),s&&i!==bo&&i!==Ct&&i!==cn&&i!==dn&&i!==hn&&i!==un&&(a+=1,yo.test(n.charAt(a)))){for(;yo.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===Ct&&(a+=1)}h=["word",n.slice(m,a+1),m,a],m=a;break}default:{i===bo&&n.charCodeAt(m+1)===km?(a=n.indexOf("*/",m+2)+1,a===0&&(r||R?a=n.length:C("comment")),h=["comment",n.slice(m,a+1),m,a],m=a):(fn.lastIndex=m+1,fn.test(n),fn.lastIndex===0?a=n.length-1:a=fn.lastIndex-2,h=["word",n.slice(m,a+1),m,a],w.push(h),m=a);break}}return m++,h}function j(M){b.push(M)}return{back:j,endOfFile:N,nextToken:k,position:x}};let jm=_i,Mm=Un,Pm=Vn,Im=Qt,wo=Ni,Lm=$m;const xo={empty:!0,space:!0};function Dm(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let Rm=class{constructor(e){this.input=e,this.root=new Im,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new jm;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,r,i,o=!1,s=!1,a=[],d=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?d.push(n==="("?")":"]"):n==="{"&&d.length>0?d.push("}"):n===d[d.length-1]&&d.pop(),d.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){s=!0;break}else if(n==="}"){if(a.length>0){for(i=a.length-1,r=a[i];r&&r[0]==="space";)r=a[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!=="space"&&(n+=1,n===2)));i--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[o,s]of e.entries()){if(r=s,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Mm;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Lm(this.input)}decl(e,t){let n=new Pm;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||Dm(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){n.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(i=e[a],i[1].toLowerCase()==="!important"){n.important=!0;let d=this.stringFrom(e,a);d=this.spacesFromEnd(e)+d,d!==" !important"&&(n.raws.important=d);break}else if(i[1].toLowerCase()==="important"){let d=e.slice(0),h="";for(let p=a;p>0;p--){let f=d[p][0];if(h.trim().startsWith("!")&&f!=="space")break;h=d.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=d)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(a=>a[0]!=="space"&&a[0]!=="comment")&&(n.raws.between+=o.map(a=>a[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new wo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],d=e;for(;d;){if(n=d[0],a.push(d),n==="("||n==="[")i||(i=d),o.push(n==="("?")":"]");else if(s&&r&&n==="{")i||(i=d),o.push("}");else if(o.length===0)if(n===";")if(r){this.decl(a,s);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(r=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s=n.length,a="",d=!0,h,p;for(let f=0;fl+c[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new wo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;re.type==="warning")}get content(){return this.css}};var ki=Dr;Dr.default=Dr;let Vm=Xe,zm=Ei,Wm=Ts,Gm=Si,Co=ki,Zm=Qt,Xm=Fn,{isClean:_e,my:Qm}=Xt;const Ym={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Jm={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Km={Once:!0,postcssPlugin:!0,prepare:!0},ht=0;function _t(e){return typeof e=="object"&&typeof e.then=="function"}function As(e){let t=!1,n=Ym[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,ht,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,ht,n+"Exit"]:[n,n+"Exit"]}function _o(e){let t;return e.type==="document"?t=["Document",ht,"DocumentExit"]:e.type==="root"?t=["Root",ht,"RootExit"]:t=As(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Rr(e){return e[_e]=!1,e.nodes&&e.nodes.forEach(t=>Rr(t)),e}let qr={},pt=class $s{constructor(t,n,r){this.stringified=!1,this.processed=!1;let i;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))i=Rr(n);else if(n instanceof $s||n instanceof Co)i=Rr(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let o=Gm;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(n,r)}catch(s){this.processed=!0,this.error=s}i&&!i[Qm]&&Vm.rebuild(i)}this.result=new Co(t,i,r),this.helpers={...qr,postcss:qr,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return t}prepareVisitors(){this.listeners={};let t=(n,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,i])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!Jm[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Km[r])if(typeof n[r]=="object")for(let i in n[r])i==="*"?t(n,r,n[r][i]):t(n,r+"-"+i.toLowerCase(),n[r][i]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t0;){let r=this.visitTick(n);if(_t(r))try{await r}catch(i){let o=n[n.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let i=t.nodes.map(o=>r(o,this.helpers));await Promise.all(i)}else await r(t,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return _t(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=Xm;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let r=new Wm(n,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(_t(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[_e];)t[_e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,i]of t){this.result.lastPlugin=r;let o;try{o=i(n,this.helpers)}catch(s){throw this.handleError(s,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(_t(o))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:i}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(i.length>0&&n.visitorIndex{i[_e]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};pt.registerPostcss=e=>{qr=e};var js=pt;pt.default=pt;Zm.registerLazyResult(pt);zm.registerLazyResult(pt);let e0=Ts,t0=Si;const n0=ki;let r0=Fn,Br=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let r,i=r0;this.result=new n0(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let s=new e0(i,r,this._opts,t);if(s.isMap()){let[a,d]=s.generate();a&&(this.result.css=a),d&&(this.result.map=d)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=t0;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var i0=Br;Br.default=Br;let o0=Ei,a0=js,s0=i0,l0=Qt,Ut=class{constructor(t=[]){this.version="8.4.47",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new s0(this,t,n):new a0(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var c0=Ut;Ut.default=Ut;l0.registerProcessor(Ut);o0.registerProcessor(Ut);let Ms=_i,Ps=Un,u0=Xe,d0=wi,Is=Vn,Ls=Ei,h0=mm,p0=zn,f0=js,m0=Cs,g0=Hn,v0=Si,Ti=c0,b0=ki,Ds=Qt,Rs=Ni,y0=Fn,w0=Os;function z(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Ti(e)}z.plugin=function(e,t){let n=!1;function r(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Ji.LANG&&Ji.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南: -https://www.w3ctech.com/topic/2226`));let s=t(...o);return s.postcssPlugin=e,s.postcssVersion=new Ti().version,s}let i;return Object.defineProperty(r,"postcss",{get(){return i||(i=r()),i}}),r.process=function(o,s,a){return z([r(a)]).process(o,s)},r};z.stringify=y0;z.parse=v0;z.fromJSON=h0;z.list=m0;z.comment=e=>new Ps(e);z.atRule=e=>new Ms(e);z.decl=e=>new Is(e);z.rule=e=>new Rs(e);z.root=e=>new Ds(e);z.document=e=>new Ls(e);z.CssSyntaxError=d0;z.Declaration=Is;z.Container=u0;z.Processor=Ti;z.Document=Ls;z.Comment=Ps;z.Warning=w0;z.AtRule=Ms;z.Result=b0;z.Input=p0;z.Rule=Rs;z.Root=Ds;z.Node=g0;f0.registerPostcss(z);var x0=z;z.default=z;const{isPlainObject:jv}=bi,{parse:Mv}=x0,C0="_info-popup_i3rna_1",_0="_label_i3rna_2",E0="_icon_i3rna_7",N0="_dropdown-container_i3rna_15",S0="_content_i3rna_20",Et={infoPopup:C0,label:_0,icon:E0,dropdownContainer:N0,content:S0};function k0(e){const{className:t,icon:n=g.jsx(ql,{}),infoLabel:r,title:i,description:o,withoutIcon:s,popupClassName:a,descriptionClassName:d}=e;return g.jsx(kp,{label:g.jsxs("div",{className:Et.label,children:[r,!s&&n&&g.jsx("div",{className:Et.icon,children:n})]}),popupClassName:S(Et.dropdownContainer,a),className:S(Et.infoPopup,t),variant:"tertiary",withoutDropdownIcon:!0,children:g.jsx(Fo,{heading:i,childrenContainerClassName:S(d,Et.content),withInternalPadding:!0,children:o})})}const T0="_progress-wrapper_x340w_1",O0="_title_x340w_7",A0="_total_x340w_11",$0="_progress_x340w_1",Nt={progressWrapper:T0,title:O0,total:A0,progress:$0};function Pv(e){const{className:t,title:n,description:r,totalValue:i,value:o,showPercentageInTitle:s,children:a,color:d="var(--go-ui-color-primary-red)"}=e,h=V(o)?o:0,p=V(i)?i:0;let f;return p===0?f=0:f=h/p*100,g.jsxs("div",{className:S(Nt.progressWrapper,t),children:[(n||s)&&g.jsxs("div",{className:Nt.title,children:[n,s&&g.jsx(Wr,{value:f,suffix:"%"})]}),g.jsx("div",{className:Nt.total,children:g.jsx("div",{className:Nt.progress,style:{width:`${f}%`,backgroundColor:d}})}),r&&g.jsx("div",{className:Nt.description,children:r}),a]})}const j0="_legend-element_1a9ic_1",M0="_color_1a9ic_7",P0="_icon-container_1a9ic_14",I0="_icon_1a9ic_14",L0="_label_1a9ic_31",St={legendElement:j0,color:M0,iconContainer:P0,icon:I0,label:L0};function D0(e){const{className:t,colorClassName:n,iconClassName:r,color:i,label:o,iconSrc:s}=e;return g.jsxs("div",{className:S(St.legendElement,t),children:[s?g.jsx("div",{style:{backgroundColor:i},className:St.iconContainer,children:g.jsx("img",{className:S(St.icon,r),src:s,alt:""})}):g.jsx("div",{style:{backgroundColor:i},className:S(St.color,n)}),g.jsx("div",{className:St.label,children:o})]})}const R0="_list_1whuj_1",q0="_compact_1whuj_5",B0="_pending_1whuj_8",mr={list:R0,compact:q0,pending:B0};function F0(e){const{className:t,data:n,keySelector:r,renderer:i,rendererParams:o,pending:s,errored:a,filtered:d,errorMessage:h,emptyMessage:p,pendingMessage:f,filteredEmptyMessage:l,compact:c,withoutMessage:v=!1,messageClassName:m}=e,w=O(n)||n.length===0;return g.jsxs("div",{className:S(mr.list,c&&mr.compact,s&&mr.pending,t),children:[g.jsx(Vo,{data:n,keySelector:r,renderer:i,rendererParams:o}),!v&&g.jsx(Vr,{className:m,pending:s,filtered:d,empty:w,errored:a,compact:c,emptyMessage:p,filteredEmptyMessage:l,pendingMessage:f,errorMessage:h,overlayPending:!0})]})}function qs(e,t){if(O(e))return;const n={},r=[];return e.forEach(i=>{const o=t?t(i):JSON.stringify(i);n[o]||(n[o]=!0,r.push(i))}),e.length===r.length?e:r}const H0=[40,38,13,8];function U0(e,t,n){return t.findIndex((r,i)=>n(r,i)===e)}function Eo(e,t,n,r){if(n.length<=0)return;let i=U0(e,n,r);i===-1&&(i=t>0?-1:0);const o=rl(i+t,n.length);return r(n[o],o)}function V0(e,t,n,r,i,o,s,a,d){return u.useCallback(h=>{const{keyCode:p}=h,f=e?.key;if(r&&(p===9||p===27))o();else if(!r&&H0.includes(p))h.stopPropagation(),h.preventDefault(),s();else if(p===13)if(V(f)){h.stopPropagation(),h.preventDefault();const l=n.find((c,v)=>t(c,v)===f);l&&a(f,l)}else h.stopPropagation(),h.preventDefault(),d&&d();else if(p===40){h.stopPropagation(),h.preventDefault();const l=Eo(f,1,n,t);i(l?{key:l}:void 0)}else if(p===38){h.stopPropagation(),h.preventDefault();const l=Eo(f,-1,n,t);i(l?{key:l}:void 0)}},[e,r,t,i,o,a,s,d,n])}const z0="_generic-option_zv1n8_1",W0={genericOption:z0};function G0(e){const{optionContainerClassName:t,contentRenderer:n,contentRendererParam:r,option:i,onClick:o,optionKey:s,focusedKey:a}=e,d=r(s,i),{containerClassName:h,title:p,...f}=d,l=a?.key===s,c=u.useRef(null);u.useEffect(()=>{a&&a.key===s&&!a.mouse&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"center"})},[s,a]);const v=u.useCallback(()=>{o(s,i)},[s,i,o]);return g.jsx(Hr,{elementRef:c,className:S(W0.genericOption,t,h),onClick:v,title:p,name:s,focused:l,children:n(f)})}const Z0="common",X0={infoMessageAnd:"and",infoMessageMore:"more",buttonTitleSelect:"Select all",buttonTitleClear:"Clear",buttonTitleClose:"Close",buttonTitleOpen:"Open",selectInputPendingMessage:"Fetching options...",selectInputEmptyMessage:"No option available",selectInputFilteredMessage:"No option available for the search",selectInputErrorMessage:"Could not load options"},Q0={namespace:Z0,strings:X0},Y0="_popup_poyjv_1",J0="_list_poyjv_4",K0="_list-item_poyjv_9",eg="_info-message_poyjv_14",tg="_icon_poyjv_21",Ie={popup:Y0,list:J0,listItem:K0,infoMessage:eg,icon:tg},ng=[];function Bs(e){const{actions:t,actionsContainerClassName:n,className:r,disabled:i,error:o,errorContainerClassName:s,hint:a,hintContainerClassName:d,icons:h,iconsContainerClassName:p,inputSectionClassName:f,label:l,labelClassName:c,name:v,onOptionClick:m,searchText:w,onSearchTextChange:b,optionContainerClassName:x,optionKeySelector:C,optionRenderer:N,optionRendererParams:k,options:j,optionsPopupClassName:M,persistentOptionPopup:R,readOnly:L,placeholder:B,valueDisplay:y="",nonClearable:_,onClearButtonClick:E,onSelectAllButtonClick:T,optionsPending:A=!1,optionsFiltered:P=!1,optionsErrored:$=!1,focused:Z,focusedKey:X,onFocusedKeyChange:J,onFocusedChange:Y,dropdownShown:K,onDropdownShownChange:re,totalOptionsCount:H=0,hasValue:q,autoFocus:U,onEnterWithoutOption:G,withAsterisk:Q,required:ye,variant:Re,errorOnTooltip:Qe,dropdownHidden:mt}=e,qe=j??ng,ie=Mn(Q0),oe=u.useRef(null),ve=u.useRef(null),ae=u.useRef(null),se=u.useRef(null),Ye=u.useCallback(Me=>{K||re(!0),b(Me)},[K,re,b]),Wn=u.useCallback((Me,Be)=>{Be.stopPropagation(),re(!K)},[K,re]),Gn=u.useCallback(()=>{K||re(!0)},[K,re]),gt=u.useCallback(()=>{re(!1)},[re]),Us=u.useCallback(()=>{L||Gn()},[L,Gn]),Vs=u.useCallback((Me,Be)=>{Me||Be?R&&ae.current&&ae.current.focus():gt()},[gt,R]),Zn=u.useCallback((Me,Be)=>{m(Me,Be,v),R||gt()},[m,gt,R,v]),zs=u.useCallback((Me,Be)=>({contentRendererParam:k,option:Be,optionKey:Me,focusedKey:X,contentRenderer:N,onClick:Zn,onFocus:J,optionContainerClassName:S(x,Ie.listItem)}),[X,Zn,J,x,N,k]);Aa(K,Vs,se,oe);const Ws=V0(X,C,qe,K,J,gt,Gn,Zn,G),Oi=qe.length,Ai=H-Oi>0?`${ie.infoMessageAnd} ${H-Oi} ${ie.infoMessageMore}`:void 0,Xn=K&&!mt;return g.jsxs(g.Fragment,{children:[g.jsx(ui,{actionsContainerClassName:n,className:r,containerRef:oe,disabled:i,errorContainerClassName:s,error:o,errorOnTooltip:Qe,hintContainerClassName:d,hint:a,iconsContainerClassName:p,icons:h,inputSectionClassName:f,inputSectionRef:ve,labelClassName:c,label:l,readOnly:L,required:ye,variant:Re,withAsterisk:Q,actions:g.jsxs(g.Fragment,{children:[t,!L&&T&&g.jsx(it,{onClick:T,disabled:i,variant:"tertiary",name:void 0,title:ie.buttonTitleSelect,children:g.jsx(Pl,{className:Ie.icon})}),!L&&!_&&q&&g.jsx(it,{onClick:E,disabled:i,variant:"tertiary",name:void 0,title:ie.buttonTitleClear,children:g.jsx(Rl,{className:Ie.icon})}),!L&&g.jsx(it,{onClick:Wn,variant:"tertiary",name:void 0,title:Xn?ie.buttonTitleClose:ie.buttonTitleOpen,children:Xn?g.jsx(Ro,{className:Ie.icon}):g.jsx(Do,{className:Ie.icon})})]}),input:g.jsx(Oa,{name:v,elementRef:ae,readOnly:L,disabled:i,value:K||Z?w:y,onChange:Ye,onClick:Us,onFocus:()=>Y(!0),onBlur:()=>Y(!1),placeholder:Vt(y)?y:B,autoComplete:"off",onKeyDown:Ws,autoFocus:U})}),Xn&&g.jsxs(Pn,{elementRef:se,parentRef:ve,className:S(M,Ie.popup),children:[g.jsx(F0,{className:Ie.list,data:qe,keySelector:C,renderer:G0,rendererParams:zs,errored:$,filtered:P,pending:A,pendingMessage:ie.selectInputPendingMessage,emptyMessage:ie.selectInputEmptyMessage,filteredEmptyMessage:ie.selectInputFilteredMessage,errorMessage:ie.selectInputErrorMessage,compact:!0}),!A&&!$&&!!Ai&&g.jsx("div",{className:Ie.infoMessage,children:Ai})]})]})}function rg(e){const{children:t,isActive:n,iconClassName:r,labelClassName:i}=e;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:r,children:n?g.jsx(Bo,{}):g.jsx(qo,{})}),g.jsx("div",{className:i,children:t})]})}const ig="_option_1kpl9_1",og="_active_1kpl9_7",ag="_icon_1kpl9_11",sg="_label_1kpl9_17",kt={option:ig,active:og,icon:ag,label:sg},gr=[];function lg(e){const{keySelector:t,labelSelector:n,name:r,onChange:i,onOptionsChange:o,options:s,optionsPending:a,optionsErrored:d,value:h,sortFunction:p,searchOptions:f,onSearchValueChange:l,onShowDropdownChange:c,hideOptionFilter:v,selectedOnTop:m,...w}=e,b=s??gr,x=f??gr,C=h??gr,[N,k]=u.useState(),[j,M]=u.useState(!1),[R,L]=u.useState(!1),[B,y]=u.useState(),[_,E]=u.useState({}),T=u.useMemo(()=>ot(b,t,H=>H),[b,t]),A=u.useMemo(()=>ot(b,t,n),[b,t,n]),P=u.useMemo(()=>C.map(H=>A[H]??"?").join(", "),[C,A]),$=u.useMemo(()=>C.map(H=>T[H]).filter(V),[C,T]),Z=u.useMemo(()=>{const H=qs([...x,...$],t);if(!m)return p?p(H,N,n):H;const q=H.filter(G=>_[t(G)]),U=H.filter(G=>!_[t(G)]&&(O(v)||v(G)));return p?[...We(q,N,n),...p(U,N,n)]:[...We(q,N,n),...U]},[m,t,n,N,x,_,$,p,v]),X=u.useCallback(H=>{k(H),l&&l(H)},[l]),J=u.useCallback(H=>{M(H),c&&c(H),H?(E(ot(C,q=>q,()=>!0)),y(void 0)):(E({}),y(void 0),k(void 0),l&&l(void 0))},[C,l,c]),Y=u.useCallback((H,q)=>{const U=C.findIndex(G=>G===H)!==-1;return{children:n(q),containerClassName:S(kt.option,U&&kt.active),title:n(q),isActive:U,labelClassName:kt.label,iconClassName:kt.icon}},[n,C]),K=u.useCallback((H,q)=>{const U=[...C],G=C.findIndex(Q=>Q===H);G!==-1?U.splice(G,1):(U.push(H),o&&o(Q=>{const ye=Q??[];return ye.find(Re=>t(Re)===H)?Q:[...ye,q]})),i(U,r)},[C,i,r,o,t]),re=u.useCallback(()=>{i([],r)},[r,i]);return g.jsx(Bs,{...w,name:r,options:Z,optionsPending:a,optionsFiltered:Vt(N)&&N.length>0,optionsErrored:d,optionKeySelector:t,optionRenderer:rg,optionRendererParams:Y,optionContainerClassName:kt.optionContainer,onOptionClick:K,valueDisplay:P,onClearButtonClick:re,searchText:N,onSearchTextChange:X,dropdownShown:j,onDropdownShownChange:J,focused:R,onFocusedChange:L,focusedKey:B,onFocusedKeyChange:y,persistentOptionPopup:!0,nonClearable:!1,hasValue:V(C)&&C.length>0})}function Iv(e){const{name:t,options:n,keySelector:r,onChange:i,withSelectAll:o,...s}=e,a=u.useCallback(()=>{if(O(n))return;const d=n.map(r);i(d,t)},[n,t,i,r]);return g.jsx(lg,{...s,name:t,onChange:i,options:n,keySelector:r,sortFunction:We,searchOptions:n,onSelectAllButtonClick:o?a:void 0,selectedOnTop:!1})}const cg="_page-container_1cfro_1",ug="_content_1cfro_2",No={pageContainer:cg,content:ug};function Lv(e){const{className:t,contentClassName:n,children:r,contentAs:i="div",containerAs:o="div"}=e,s=i;return g.jsx(o,{className:S(No.pageContainer,t),children:g.jsx(s,{className:S(No.content,n),children:r})})}const dg="_text-output_10oza_1",hg="_with-background_10oza_6",pg="_label_10oza_11",fg="_with-colon_10oza_12",mg="_value_10oza_17",gg="_text-type_10oza_18",vg="_strong_10oza_24",Ce={textOutput:dg,withBackground:hg,label:pg,withColon:fg,value:mg,textType:gg,strong:vg};function So(e){const{className:t,label:n,icon:r,description:i,labelClassName:o,descriptionClassName:s,valueClassName:a,strongLabel:d,strongValue:h,strongDescription:p,withoutLabelColon:f,withBackground:l,invalidText:c=Ho,...v}=e,{value:m}=e;let w=c;return v.valueType==="number"?w=g.jsx(Wr,{...v,invalidText:c}):v.valueType==="date"?w=g.jsx(wp,{...v,invalidText:c}):v.valueType==="boolean"?w=g.jsx(Uu,{...v,invalidText:c}):m instanceof Date||(w=m||c),g.jsxs("div",{className:S(Ce.textOutput,l&&Ce.withBackground,t),children:[r,n&&g.jsx("div",{className:S(Ce.label,d&&Ce.strong,o,!f&&Ce.withColon),children:n}),g.jsx("div",{className:S(Ce.value,h&&Ce.strong,v.valueType==="text"&&Ce.textType,a),children:w}),i&&g.jsx("div",{className:S(Ce.description,p&&Ce.strong,s),children:i})]})}const bg="_pie-chart_pyr7m_1",yg="_legend_pyr7m_7",wg="_legend-item_pyr7m_13",Tt={pieChart:bg,legend:yg,legendItem:wg},xg=70,Cg=40;function ko(e,t=1){return Math.round(e*10**t)/10**t}function To(e,t){const n=(t-90)*Math.PI/180;return{x:ko(e+e*Math.cos(n)),y:ko(e+e*Math.sin(n))}}function _g(e,t,n){let r=n;const i=r-t===360;i&&(r-=1);const o=To(e,t),s=To(e,r),a=r-t<=180?0:1,d=["M",o.x,o.y,"A",e,e,0,a,1,s.x,s.y];return i?d.push("Z"):d.push("L",e,e,"L",o.x,o.y,"Z"),d.join(" ")}function Dv(e){const{className:t,data:n,valueSelector:r,labelSelector:i,keySelector:o,colorSelector:s,colors:a,pieRadius:d=xg,chartPadding:h=Cg,legendClassName:p,showPercentageInLegend:f}=e,l=tu(n?.map(m=>r(m))),c=O(l)||l===0?1:l,v=u.useMemo(()=>{let m=0;const w=n?.map(b=>{const x=r(b);if(O(x))return;const C=360*(x/c);return m+=C,{key:o(b),value:x,label:i(b),startAngle:m-C,percentage:Kc(x,c),endAngle:m,datum:b}}).filter(V)??[];return s?w.map(({datum:b,...x})=>({...x,color:s(b)})):w.map(({datum:b,...x},C)=>({...x,color:a[C%a.length]}))},[n,o,r,i,c,s,a]);return g.jsxs("div",{className:S(Tt.pieChart,t),children:[g.jsx("svg",{className:Tt.svg,style:{width:`${h+d*2}px`,height:`${h+d*2}px`},children:g.jsx("g",{style:{transform:`translate(${h/2}px, ${h/2}px)`},children:v.map(m=>g.jsx("path",{className:Tt.path,d:_g(d,m.startAngle,m.endAngle),fill:m.color,children:g.jsx(vu,{description:g.jsx(So,{label:m.label,value:m.value})})},m.key))})}),g.jsx("div",{className:S(Tt.legend,p),children:v.map(m=>g.jsx(D0,{className:Tt.legendItem,label:f?g.jsx(So,{label:m.label,value:m.percentage,valueType:"number",prefix:"(",suffix:"%)",withoutLabelColon:!0}):m.label,color:m.color},m.key))})]})}const Eg="_raw-input_145mq_1",Ng={rawInput:Eg};function Sg(e){const{className:t,onChange:n,elementRef:r,value:i,name:o,...s}=e,a=ce.useCallback(d=>{var h;const p=(h=d?.target)==null?void 0:h.value;n&&n(p===""?void 0:p,o,d)},[o,n]);return g.jsx("textarea",{...s,ref:r,className:S(Ng.rawInput,t),name:V(o)?String(o):void 0,onChange:a,value:i??""})}const kg="_option_11p37_1",Tg="_icon_11p37_6",Og="_label_11p37_14",Ag="_overflow-container_11p37_20",$g="_description_11p37_25",nt={option:kg,icon:Tg,label:Og,overflowContainer:Ag,description:$g};function jg(e){const{className:t,label:n,description:r,iconClassName:i,labelClassName:o}=e;return g.jsxs("div",{className:S(nt.option,t),children:[g.jsx("div",{className:S(nt.icon,i),children:g.jsx(Il,{})}),g.jsxs("div",{className:S(nt.label,o),children:[g.jsx("div",{className:nt.overflowContainer,children:n}),g.jsx("div",{className:S(nt.overflowContainer,nt.description),children:r})]})]})}const Mg="_option-container_2k92q_1",Pg="_option_2k92q_1",Ig="_active_2k92q_9",Lg="_icon_2k92q_12",Ot={optionContainer:Mg,option:Pg,active:Ig,icon:Lg},Oo=[];function Ao(e){const{keySelector:t,labelSelector:n,descriptionSelector:r,name:i,onChange:o,onOptionsChange:s,options:a,optionsPending:d,optionsErrored:h,value:p,sortFunction:f,searchOptions:l,onSearchValueChange:c,onShowDropdownChange:v,hideOptionFilter:m,selectedOnTop:w,onEnterWithoutOption:b,...x}=e,C=a??Oo,N=l??Oo,[k,j]=u.useState(),[M,R]=u.useState(!1),[L,B]=u.useState(!1),[y,_]=u.useState(),[E,T]=u.useState({}),A=u.useMemo(()=>ot(C,t,n),[C,t,n]),P=V(p)?A[p]??"?":"",$=u.useMemo(()=>{const q=C?.find(U=>t(U)===p);return O(q)?[]:[q]},[p,C,t]),Z=u.useMemo(()=>{const q=qs([...N,...$],t);if(!w)return f?f(q,k,n):q;const U=q.filter(Q=>E[t(Q)]),G=q.filter(Q=>!E[t(Q)]&&(O(m)||m(Q)));return f?[...We(U,k,n),...f(G,k,n)]:[...We(U,k,n),...G]},[w,t,n,k,N,E,$,f,m]),X=u.useCallback(q=>{j(q),c&&c(q)},[c]),J=u.useCallback(()=>{R(!1),v&&v(!1),j(void 0),c&&c(void 0),b&&b(k)},[k,v,b,c]),Y=u.useCallback(q=>{R(q),v&&v(q),q?(T(ot(p?[p]:[],U=>U,()=>!0)),_(p?{key:p}:void 0)):(T({}),_(void 0),j(void 0),c&&c(void 0))},[p,c,v]),K=u.useCallback((q,U)=>{const G=q===p;return{label:n(U),description:r?r(U):void 0,containerClassName:S(Ot.optionContainer,G&&Ot.active),title:n(U),className:Ot.option,iconClassName:Ot.icon}},[p,n,r]),re=u.useCallback((q,U)=>{s&&s(G=>{const Q=G??[];return Q.find(ye=>t(ye)===q)?G:[...Q,U]}),o(q,i,U)},[o,i,s,t]),H=u.useCallback(()=>{if(!e.nonClearable){const q=e.onChange;q(void 0,i,void 0)}},[i,e.onChange,e.nonClearable]);return g.jsx(Bs,{...x,name:i,options:Z,optionsPending:d,optionsErrored:h,optionsFiltered:Vt(k)&&k.length>0,optionKeySelector:t,optionRenderer:jg,optionRendererParams:K,optionContainerClassName:Ot.optionContainer,onOptionClick:re,valueDisplay:P,onClearButtonClick:H,searchText:k,onSearchTextChange:X,dropdownShown:M,onDropdownShownChange:Y,focused:L,onFocusedChange:B,focusedKey:y,onFocusedKeyChange:_,hasValue:V(p),persistentOptionPopup:!1,onEnterWithoutOption:J})}const Dg="_segment-input_bykt7_1",Rg="_segment-list_bykt7_4",qg="_segment_bykt7_1",Bg="_active_bykt7_18",Fg="_secondary-variant_bykt7_24",Mt={segmentInput:Dg,segmentList:Rg,segment:qg,active:Bg,secondaryVariant:Fg};function Hg(e){const{label:t,name:n,onClick:r,value:i,className:o,variant:s="primary",inputName:a,...d}=e;return g.jsx(it,{...d,className:S(Mt.segment,i&&Mt.active,s==="secondary"&&Mt.secondaryVariant,o),name:n,onClick:r,variant:"tertiary",children:t})}function Rv(e){const{rendererParams:t,listContainerClassName:n,keySelector:r,labelSelector:i,className:o,...s}=e;return g.jsx(Du,{className:S(o,Mt.segmentInput),...s,renderer:Hg,rendererParams:t,listContainerClassName:S(n,Mt.segmentList),keySelector:r,labelSelector:i})}function qv(e){const{name:t,options:n,nonClearable:r,onChange:i,...o}=e;return e.nonClearable?g.jsx(Ao,{...o,onChange:e.onChange,nonClearable:e.nonClearable,name:t,options:n,sortFunction:We,searchOptions:n,selectedOnTop:!1}):g.jsx(Ao,{...o,onChange:e.onChange,nonClearable:e.nonClearable,name:t,options:n,sortFunction:We,searchOptions:n,selectedOnTop:!1})}const Ug="_td_1k4cn_1",Vg={td:Ug};function zg(e){const{className:t,children:n,...r}=e;return g.jsx("td",{className:S(t,Vg.td),...r,children:n})}function Fs(e){const{className:t,children:n,...r}=e;return g.jsx("tr",{className:t,...r,children:n})}const Wg="_row_1829z_1",Gg="_cell_1829z_2",$o={row:Wg,cell:Gg};function Zg(e){const{data:t,keySelector:n,columns:r,rowClassName:i,cellClassName:o,rowModifier:s}=e;return g.jsx(g.Fragment,{children:t?.map((a,d)=>{const h=n(a,d),p=r.map(c=>{const{id:v,cellRenderer:m,cellRendererClassName:w,cellRendererParams:b,cellContainerClassName:x}=c,C=b(h,a,d,t),N=g.jsx(m,{className:w,...C,name:v});return g.jsx(zg,{className:S($o.cell,x,typeof o=="function"?o(h,a,v):o),children:N},v)}),f=g.jsx(Fs,{className:S($o.row,typeof i=="function"?i(h,a):i),children:p});let l=f;return s&&(l=s({rowKey:h,row:f,cells:p,columns:r,datum:a})),g.jsx(u.Fragment,{children:l},h)})})}const Xg="_th_cdv41_1",Qg="_resize-handle_cdv41_8",jo={th:Xg,resizeHandle:Qg};function Yg(e){const{className:t,children:n,onResize:r,onResizeComplete:i,name:o,...s}=e,a=u.useRef(null),d=u.useRef(),h=u.useRef(),p=u.useRef(),f=u.useCallback(c=>{var v;if(V(d.current)&&a.current&&r){c.preventDefault(),c.stopPropagation();const m=c.clientX-d.current;if(V(h.current)){const w=h.current+m;p.current=w,r(w,o)}else h.current=(v=a.current)==null?void 0:v.offsetWidth}},[r,o]),l=u.useCallback(c=>{var v;c.preventDefault(),d.current=c.clientX,h.current=(v=a.current)==null?void 0:v.offsetWidth,window.addEventListener("mousemove",f,!0)},[f]);return u.useEffect(()=>{const c=()=>{d.current=void 0,h.current=void 0,i&&V(p.current)&&i(p.current,o),window.removeEventListener("mousemove",f,!0)};return window.addEventListener("mouseup",c,!0),()=>{window.removeEventListener("mouseup",c,!0),window.removeEventListener("mousemove",f,!0)}},[f,o,i]),g.jsxs("th",{ref:a,className:S(t,jo.th),...s,children:[r&&g.jsx("div",{role:"presentation",className:jo.resizeHandle,onMouseDown:l}),n]})}const Jg="_table_nilhy_1",Kg="_table-overflow-wrapper_nilhy_8",ev="_table-element_nilhy_13",tv="_header-row_nilhy_23",nv="_header-element_nilhy_24",rv="_header-component_nilhy_29",He={table:Jg,tableOverflowWrapper:Kg,tableElement:ev,headerRow:tv,headerElement:nv,headerComponent:rv};function iv(e,t){return t??e.columnWidth??zc}function Bv(e){const{data:t,keySelector:n,columns:r,caption:i,className:o,captionClassName:s,headerRowClassName:a,headerCellClassName:d,rowClassName:h,cellClassName:p,rowModifier:f,fixedColumnWidth:l,resizableColumn:c,headersHidden:v,pending:m,filtered:w,errored:b=!1}=e,x=u.useRef(null),[C]=ce.useState(()=>Lo()),[N,k]=ce.useState({});u.useEffect(()=>{k(B=>{if(O(x.current))return B;const y=x.current.getBoundingClientRect(),{width:_}=y;let E=r.map($=>({id:$.id,stretch:!!$.columnStretch,width:iv($,B[$.id])}));const T=At(E.filter($=>$.stretch).map($=>$.width)),A=At(E.filter($=>!$.stretch).map($=>$.width)),P=(_-A)/T;return P>1&&(E=E.map($=>({...$,width:$.stretch?$.width*P:$.width}))),ot(E,$=>$.id,$=>$.width)})},[r]);const j=ce.useCallback((B,y)=>{const _=document.getElementById(`${C}-${y}`),E=Math.max(B,80);if(O(_)||(_.style.width=`${E}px`,!l))return;const T=document.getElementById(C);if(O(T))return;const A=At(r.map(P=>P.id===y?E:N[P.id]));T.style.width=`${A}px`},[C,N,r,l]),M=ce.useCallback((B,y)=>{V(y)&&k(_=>({..._,[y]:Math.max(B,80)}))},[k]),R=ce.useMemo(()=>At(r.map(B=>N[B.id])),[N,r]),L=O(t)||t.length===0||Object.keys(N).length===0;return g.jsxs("div",{ref:x,className:S(He.table,o),children:[!L&&g.jsx("div",{className:He.tableOverflowWrapper,children:g.jsxs("table",{className:He.tableElement,style:l?{width:`${R}px`}:void 0,id:C,children:[i&&g.jsx("caption",{className:s,children:i}),g.jsx("colgroup",{children:r.map(B=>{const{id:y,columnClassName:_}=B,E=N[y],T=l?{width:`${E}px`}:void 0;return g.jsx("col",{id:`${C}-${y}`,style:T,className:S(He.column,_)},y)})}),!v&&g.jsx("thead",{children:g.jsx(Fs,{className:S(He.headerRow,a),children:r.map((B,y)=>{const{id:_,title:E,headerCellRenderer:T,headerCellRendererClassName:A,headerCellRendererParams:P,headerContainerClassName:$}=B,Z=g.jsx(T,{...P,name:_,title:E,index:y,className:S(A,He.headerComponent)});return g.jsx(Yg,{scope:"col",name:_,onResize:c?j:void 0,onResizeComplete:c?M:void 0,className:S(He.headerElement,typeof d=="function"?d(_):d,$),children:Z},_)})})}),g.jsx("tbody",{children:g.jsx(Zg,{data:t,keySelector:n,columns:r,rowClassName:h,cellClassName:p,rowModifier:f})})]})}),g.jsx(Vr,{filtered:w,empty:L,errored:b,pending:m,overlayPending:!0})]})}function ov(e){const{className:t,value:n}=e;return O(n)?null:g.jsx("div",{className:t,children:n})}const av="common",sv={sortTableButtonTitle:"Sort Table"},lv={namespace:av,strings:sv},cv="_header-cell_vn24d_1",uv="_sort-button_vn24d_8",dv="_icon_vn24d_12",hv="_info-popup-icon_vn24d_17",Ue={headerCell:cv,sortButton:uv,icon:dv,infoPopupIcon:hv};function Hs(e){const{className:t,titleClassName:n,title:r,name:i,sortable:o,defaultSortDirection:s="asc",infoTitle:a,infoDescription:d}=e,{sorting:h,setSorting:p}=u.useContext(Js),f=Mn(lv),l=h?.name===i?h.direction:void 0,c=u.useRef(null),v=u.useCallback(()=>{if(O(p))return;let m;O(l)?m=s:l==="asc"?m="dsc":l==="dsc"&&(m="asc"),p(m?{name:i,direction:m}:void 0)},[i,p,l,s]);return g.jsxs("div",{ref:c,className:S(t,Ue.headerCell),children:[o&&g.jsxs(it,{name:void 0,variant:"tertiary",onClick:v,title:f.sortTableButtonTitle,className:Ue.sortButton,children:[O(l)&&g.jsx(Fl,{className:Ue.icon}),l==="asc"&&g.jsx(Ml,{className:Ue.icon}),l==="dsc"&&g.jsx(jl,{className:Ue.icon})]}),g.jsx("div",{className:S(n,Ue.title),children:r}),a&&d&&g.jsx(k0,{className:Ue.infoPopupIcon,title:a,description:d})]})}u.createContext({tabs:[],step:0,disabled:!1,activeTab:"",variant:"primary",setActiveTab:()=>{console.warn("setActiveTab called before it was initialized")},registerTab:()=>{console.warn("registerTab called before it was initialized")},unregisterTab:()=>{console.warn("unregisterTab called before it was initialized")}});const Mo="•",pv="Enter";function Fv(e){const{actions:t,className:n,disabled:r,error:i,errorOnTooltip:o,hint:s,icons:a,inputClassName:d,label:h,labelClassName:p,readOnly:f,required:l,variant:c,inputSectionClassName:v,withAsterisk:m,onChange:w,name:b,autoBullets:x=!1,rows:C=5,...N}=e,k=ce.useCallback(M=>{O(w)||M.target.value===""&&w(`${Mo} `,b)},[w,b]),j=ce.useCallback(M=>{O(w)||M.key===pv&&w(`${M.currentTarget.value}${Mo} `,b)},[w,b]);return g.jsx(ui,{actions:t,className:n,disabled:r,error:i,errorOnTooltip:o,hint:s,icons:a,inputSectionClassName:v,labelClassName:p,label:h,readOnly:f,required:l,variant:c,withAsterisk:m,input:g.jsx(Sg,{...N,readOnly:f,disabled:r,className:d,onChange:w,name:b,onFocus:x?k:void 0,onKeyUp:x?j:void 0,rows:C})})}function Hv(e){const{actions:t,className:n,disabled:r,error:i,errorOnTooltip:o,hint:s,icons:a,inputClassName:d,inputSectionClassName:h,label:p,readOnly:f,required:l,variant:c,withAsterisk:v,type:m="text",...w}=e;return g.jsx(ui,{className:n,actions:t,disabled:r,error:i,errorOnTooltip:o,hint:s,icons:a,inputSectionClassName:h,label:p,required:l,readOnly:f,variant:c,withAsterisk:v,input:g.jsx(Oa,{...w,required:l,readOnly:f,disabled:r,className:d,type:m})})}const Po={};function Uv(e,t,n,r){return{id:e,title:t,columnClassName:r?.columnClassName,headerCellRenderer:Hs,headerCellRendererClassName:r?.headerCellRendererClassName,headerContainerClassName:r?.headerContainerClassName,headerCellRendererParams:{sortable:r?.sortable,infoTitle:r?.headerInfoTitle,infoDescription:r?.headerInfoDescription},cellRendererClassName:r?.cellRendererClassName,cellContainerClassName:r?.cellContainerClassName,cellRenderer:ov,cellRendererParams:(i,o)=>({value:n(o)||"--"}),valueSelector:n,valueComparator:(i,o)=>Wc(n(i),n(o)),columnWidth:r?.columnWidth,columnStretch:r?.columnStretch,columnStyle:r?.columnStyle}}function Vv(e,t,n,r){return{id:e,title:t,columnClassName:r?.columnClassName,headerCellRenderer:Hs,headerCellRendererClassName:S(Po.numberCellHeader,r?.headerCellRendererClassName),headerContainerClassName:r?.headerContainerClassName,headerCellRendererParams:{sortable:r?.sortable,infoTitle:r?.headerInfoTitle,infoDescription:r?.headerInfoDescription},cellRendererClassName:S(Po.numberCell,r?.cellRendererClassName),cellContainerClassName:r?.cellContainerClassName,cellRenderer:Wr,cellRendererParams:(i,o)=>({value:n(o),suffix:r?.suffix,maximumFractionDigits:r?.maximumFractionDigits,invalidText:"--"}),valueSelector:n,valueComparator:(i,o)=>Gc(n(i),n(o)),columnWidth:r?.columnWidth,columnStretch:r?.columnStretch,columnStyle:r?.columnStyle}}export{$l as A,Tv as B,vv as C,yv as D,wv as F,xv as G,Dv as K,Rv as L,Cv as M,Lv as N,Hv as O,Pv as P,_v as Q,xc as R,Ev as S,Sv as U,Vl as _,Nv as a,gv as b,bv as c,Iv as d,Fv as e,qv as f,Uv as g,Vv as h,kv as i,Ov as j,mv as l,it as n,Io as t,Bv as y,Fo as z}; diff --git a/py_backend/static/assets/AdminPage-C_7rpuzO.js "b/py\342\200\224backend/static/AdminPage-Ba_QXeaN.js" similarity index 77% rename from py_backend/static/assets/AdminPage-C_7rpuzO.js rename to "py\342\200\224backend/static/AdminPage-Ba_QXeaN.js" index 08ccb59f456a8793ea151c25e4bbb9ad99cb4a23..d6c4f0aee4499b9dfb459720bc6923573097d585 100644 --- a/py_backend/static/assets/AdminPage-C_7rpuzO.js +++ "b/py\342\200\224backend/static/AdminPage-Ba_QXeaN.js" @@ -1,4 +1,4 @@ -import{r as d,j as a}from"./vendor-react-BxsGb6Ph.js";import{u as we}from"./useAdmin-BStaIYmd.js";import{N as B,R as Fe,O as h,z as f,n as t,f as S}from"./vendor-ui-l_DttnRj.js";import"./vendor-DxpCibxB.js";import"./index-DyXqjI96.js";const ke="_adminContainer_j11pf_5",Te="_adminHeader_j11pf_13",Ae="_adminSection_j11pf_20",Pe="_modelSelectionArea_j11pf_29",Ie="_modelSelectionRow_j11pf_36",$e="_modelsTable_j11pf_89",Le="_promptSubsection_j11pf_97",Ee="_promptSubsectionTitle_j11pf_109",Be="_modelCode_j11pf_152",Oe="_modelId_j11pf_157",Re="_modelActions_j11pf_163",De="_addModelButtonContainer_j11pf_169",Ue="_addModelForm_j11pf_177",ze="_addModelFormTitle_j11pf_185",He="_addModelFormGrid_j11pf_193",Ge="_addModelFormField_j11pf_206",Ve="_addModelFormCheckbox_j11pf_250",Je="_addModelFormActions_j11pf_268",Ke="_modalOverlay_j11pf_277",We="_modalContent_j11pf_291",qe="_modalBody_j11pf_302",Ye="_modalTitle_j11pf_312",Qe="_modalText_j11pf_320",Xe="_modalTextLeft_j11pf_332",Ze="_modalButtons_j11pf_355",ea="_modalForm_j11pf_363",aa="_formField_j11pf_372",la="_formLabel_j11pf_376",sa="_formInput_j11pf_385",oa="_textarea_j11pf_407",l={adminContainer:ke,adminHeader:Te,adminSection:Ae,modelSelectionArea:Pe,modelSelectionRow:Ie,modelsTable:$e,promptSubsection:Le,promptSubsectionTitle:Ee,modelCode:Be,modelId:Oe,modelActions:Re,addModelButtonContainer:De,addModelForm:Ue,addModelFormTitle:ze,addModelFormGrid:He,addModelFormField:Ge,addModelFormCheckbox:Ve,addModelFormActions:Je,modalOverlay:Ke,modalContent:We,modalBody:qe,modalTitle:Ye,modalText:Qe,modalTextLeft:Xe,modalButtons:Ze,modalForm:ea,formField:aa,formLabel:la,formInput:sa,textarea:oa},w="selectedVlmModel";function ca(){const{isAuthenticated:F,isLoading:X,login:Z,logout:ee}=we(),[k,O]=d.useState(""),[R,u]=d.useState(""),[D,U]=d.useState(!1),[z,H]=d.useState([]),[ae,b]=d.useState(""),[G,le]=d.useState([]),[se,oe]=d.useState([]),[te,y]=d.useState(!1),[de,N]=d.useState(!1),[ie,T]=d.useState(null),[C,A]=d.useState(null),[n,r]=d.useState({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1}),[V,P]=d.useState(!1),[ne,I]=d.useState(!1),[$,L]=d.useState(null),[o,c]=d.useState({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1}),[re,M]=d.useState(!1),[ce,E]=d.useState(!1),[me,p]=d.useState(!1),[J,K]=d.useState(""),[he,pe]=d.useState(""),[_e,_]=d.useState(""),[ue,j]=d.useState(""),x=d.useCallback(()=>{fetch("/api/models").then(e=>e.json()).then(e=>{console.log("Models data received:",e),H(e.models||[]);const s=localStorage.getItem(w);if(e.models&&e.models.length>0)if(s==="random")b("random");else if(s&&e.models.find(i=>i.m_code===s&&i.is_available))b(s);else{const i=e.models.find(m=>m.is_available)||e.models[0];b(i.m_code),localStorage.setItem(w,i.m_code)}}).catch(()=>{})},[]),v=d.useCallback(()=>{console.log("=== fetchPrompts called ==="),fetch("/api/prompts").then(e=>e.json()).then(e=>{console.log("Prompts data received:",e),le(e||[]),console.log("State update triggered with:",e||[])}).catch(e=>{console.error("Error fetching prompts:",e)})},[]),W=d.useCallback(()=>{fetch("/api/image-types").then(e=>e.json()).then(e=>{console.log("Image types data received:",e),oe(e||[])}).catch(()=>{})},[]);d.useEffect(()=>{F&&(x(),v(),W())},[F,x,v,W]);const q=e=>{A(e),r({p_code:e.p_code,label:e.label||"",metadata_instructions:e.metadata_instructions||"",image_type:e.image_type||"crisis_map",is_active:e.is_active||!1}),y(!0)},je=async()=>{try{if(!C){alert("No prompt selected for editing");return}const e=await fetch(`/api/prompts/${C.p_code}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({label:n.label,metadata_instructions:n.metadata_instructions,image_type:n.image_type,is_active:n.is_active})});if(e.ok)v(),y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to update prompt: ${s.error||"Unknown error"}`)}}catch{alert("Error updating prompt")}},Y=async(e,s)=>{try{const i=await fetch(`/api/prompts/${e}/toggle-active?image_type=${s}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(i.ok)v();else{const m=await i.json();alert(`Failed to toggle prompt active status: ${m.detail||"Unknown error"}`)}}catch{alert("Error toggling prompt active status")}},Q=e=>{T(e),r({p_code:"",label:"",metadata_instructions:"",image_type:e,is_active:!1}),N(!0)},xe=async()=>{try{const e=await fetch("/api/prompts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(e.ok)v(),N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to create prompt: ${s.detail||"Unknown error"}`)}}catch{alert("Error creating prompt")}},ve=async(e,s)=>{try{const i=await fetch(`/api/models/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_available:!s})});if(i.ok)H(m=>m.map(g=>g.m_code===e?{...g,is_available:!s}:g));else{const m=await i.json();alert(`Failed to toggle model availability: ${m.error||"Unknown error"}`)}}catch{alert("Error toggling model availability")}},ge=e=>{b(e),e==="random"?localStorage.setItem(w,"random"):localStorage.setItem(w,e)},fe=async()=>{try{const e=await fetch("/api/admin/models",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(o)});if(e.ok){const s=` +import{r as d,j as a,N as B,F as we,O as h,z as f,n as t,G as S}from"./index-oPRJTRcN.js";import{u as Fe}from"./useAdmin-DytkUHQc.js";const ke="_adminContainer_j11pf_5",Te="_adminHeader_j11pf_13",Ae="_adminSection_j11pf_20",Pe="_modelSelectionArea_j11pf_29",Ie="_modelSelectionRow_j11pf_36",$e="_modelsTable_j11pf_89",Le="_promptSubsection_j11pf_97",Ee="_promptSubsectionTitle_j11pf_109",Be="_modelCode_j11pf_152",Oe="_modelId_j11pf_157",Re="_modelActions_j11pf_163",De="_addModelButtonContainer_j11pf_169",Ue="_addModelForm_j11pf_177",ze="_addModelFormTitle_j11pf_185",He="_addModelFormGrid_j11pf_193",Ge="_addModelFormField_j11pf_206",Ve="_addModelFormCheckbox_j11pf_250",Je="_addModelFormActions_j11pf_268",Ke="_modalOverlay_j11pf_277",We="_modalContent_j11pf_291",qe="_modalBody_j11pf_302",Ye="_modalTitle_j11pf_312",Qe="_modalText_j11pf_320",Xe="_modalTextLeft_j11pf_332",Ze="_modalButtons_j11pf_355",ea="_modalForm_j11pf_363",aa="_formField_j11pf_372",la="_formLabel_j11pf_376",sa="_formInput_j11pf_385",oa="_textarea_j11pf_407",l={adminContainer:ke,adminHeader:Te,adminSection:Ae,modelSelectionArea:Pe,modelSelectionRow:Ie,modelsTable:$e,promptSubsection:Le,promptSubsectionTitle:Ee,modelCode:Be,modelId:Oe,modelActions:Re,addModelButtonContainer:De,addModelForm:Ue,addModelFormTitle:ze,addModelFormGrid:He,addModelFormField:Ge,addModelFormCheckbox:Ve,addModelFormActions:Je,modalOverlay:Ke,modalContent:We,modalBody:qe,modalTitle:Ye,modalText:Qe,modalTextLeft:Xe,modalButtons:Ze,modalForm:ea,formField:aa,formLabel:la,formInput:sa,textarea:oa},w="selectedVlmModel";function ia(){const{isAuthenticated:F,isLoading:X,login:Z,logout:ee}=Fe(),[k,O]=d.useState(""),[R,u]=d.useState(""),[D,U]=d.useState(!1),[z,H]=d.useState([]),[ae,b]=d.useState(""),[G,le]=d.useState([]),[se,oe]=d.useState([]),[te,y]=d.useState(!1),[de,N]=d.useState(!1),[ie,T]=d.useState(null),[C,A]=d.useState(null),[n,r]=d.useState({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1}),[V,P]=d.useState(!1),[ne,I]=d.useState(!1),[$,L]=d.useState(null),[o,c]=d.useState({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1}),[re,M]=d.useState(!1),[ce,E]=d.useState(!1),[me,p]=d.useState(!1),[J,K]=d.useState(""),[he,pe]=d.useState(""),[_e,_]=d.useState(""),[ue,j]=d.useState(""),x=d.useCallback(()=>{fetch("/api/models").then(e=>e.json()).then(e=>{console.log("Models data received:",e),H(e.models||[]);const s=localStorage.getItem(w);if(e.models&&e.models.length>0)if(s==="random")b("random");else if(s&&e.models.find(i=>i.m_code===s&&i.is_available))b(s);else{const i=e.models.find(m=>m.is_available)||e.models[0];b(i.m_code),localStorage.setItem(w,i.m_code)}}).catch(()=>{})},[]),v=d.useCallback(()=>{console.log("=== fetchPrompts called ==="),fetch("/api/prompts").then(e=>e.json()).then(e=>{console.log("Prompts data received:",e),le(e||[]),console.log("State update triggered with:",e||[])}).catch(e=>{console.error("Error fetching prompts:",e)})},[]),W=d.useCallback(()=>{fetch("/api/image-types").then(e=>e.json()).then(e=>{console.log("Image types data received:",e),oe(e||[])}).catch(()=>{})},[]);d.useEffect(()=>{F&&(x(),v(),W())},[F,x,v,W]);const q=e=>{A(e),r({p_code:e.p_code,label:e.label||"",metadata_instructions:e.metadata_instructions||"",image_type:e.image_type||"crisis_map",is_active:e.is_active||!1}),y(!0)},je=async()=>{try{if(!C){alert("No prompt selected for editing");return}const e=await fetch(`/api/prompts/${C.p_code}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({label:n.label,metadata_instructions:n.metadata_instructions,image_type:n.image_type,is_active:n.is_active})});if(e.ok)v(),y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to update prompt: ${s.error||"Unknown error"}`)}}catch{alert("Error updating prompt")}},Y=async(e,s)=>{try{const i=await fetch(`/api/prompts/${e}/toggle-active?image_type=${s}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(i.ok)v();else{const m=await i.json();alert(`Failed to toggle prompt active status: ${m.detail||"Unknown error"}`)}}catch{alert("Error toggling prompt active status")}},Q=e=>{T(e),r({p_code:"",label:"",metadata_instructions:"",image_type:e,is_active:!1}),N(!0)},xe=async()=>{try{const e=await fetch("/api/prompts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(e.ok)v(),N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to create prompt: ${s.detail||"Unknown error"}`)}}catch{alert("Error creating prompt")}},ve=async(e,s)=>{try{const i=await fetch(`/api/models/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_available:!s})});if(i.ok)H(m=>m.map(g=>g.m_code===e?{...g,is_available:!s}:g));else{const m=await i.json();alert(`Failed to toggle model availability: ${m.error||"Unknown error"}`)}}catch{alert("Error toggling model availability")}},ge=e=>{b(e),e==="random"?localStorage.setItem(w,"random"):localStorage.setItem(w,e)},fe=async()=>{try{const e=await fetch("/api/admin/models",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(o)});if(e.ok){const s=` Model "${o.label}" added successfully! ⚠️ IMPORTANT: Model will NOT work until you complete these steps: @@ -42,4 +42,4 @@ Raw data: ${JSON.stringify(e,null,2)}`:s=`Prompts Response: Unexpected data type: ${typeof e} -Value: ${e}`,_(s),j(i),p(!0)}).catch(e=>{console.error("Schemas Error:",e);const s=`Failed to fetch prompts: ${e.message||"Unknown error"}`;_(s),j("Schemas Error"),p(!0)})},children:"View Schemas"})]})})]})]}),re&&a.jsx("div",{className:l.modalOverlay,onClick:()=>M(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Delete Model"}),a.jsxs("p",{className:l.modalText,children:["Are you sure you want to delete model ",a.jsx("span",{className:l.modelCode,children:J}),"? This action cannot be undone."]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-delete",variant:"tertiary",onClick:()=>M(!1),children:"Cancel"}),a.jsx(t,{name:"confirm-delete",variant:"secondary",onClick:Ce,children:"Delete"})]})]})})}),ce&&a.jsx("div",{className:l.modalOverlay,onClick:()=>E(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Model Added Successfully!"}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:he}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-setup-instructions",variant:"secondary",onClick:()=>E(!1),children:"Got it!"})})]})})}),me&&a.jsx("div",{className:l.modalOverlay,onClick:()=>p(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:ue}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:a.jsx("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:_e})}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-test-results",variant:"secondary",onClick:()=>p(!1),children:"Close"})})]})})}),te&&a.jsx("div",{className:l.modalOverlay,onClick:()=>y(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Edit Prompt: ",C?.p_code]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:C?.p_code,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(S,{name:"prompt-image-type",value:n.image_type,onChange:e=>r(s=>({...s,image_type:e||"crisis_map"})),options:se,keySelector:e=>e.image_type,labelSelector:e=>e.label})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-edit-prompt",variant:"tertiary",onClick:()=>{y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-prompt",variant:"primary",onClick:je,children:"Save Changes"})]})]})})}),de&&a.jsx("div",{className:l.modalOverlay,onClick:()=>N(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Add New ",ie==="crisis_map"?"Crisis Map":"Drone Image"," Prompt"]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:n.p_code,onChange:e=>r(s=>({...s,p_code:e||""})),placeholder:"e.g., CUSTOM_CRISIS_MAP_001",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),placeholder:"Enter prompt description...",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(h,{name:"prompt-image-type",value:n.image_type,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),placeholder:"Enter metadata extraction instructions...",className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-add-prompt",variant:"tertiary",onClick:()=>{N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-new-prompt",variant:"primary",onClick:xe,disabled:!n.p_code||!n.label,children:"Create Prompt"})]})]})})})]}):a.jsx(B,{children:a.jsxs("div",{className:"mx-auto max-w-md px-4 sm:px-6 lg:px-8 py-6 sm:py-10",children:[a.jsx("div",{className:"text-center mb-8",children:a.jsx(Fe,{level:2,children:"Admin Login"})}),a.jsxs("form",{onSubmit:Me,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Password"}),a.jsx(h,{id:"password",name:"password",type:"password",value:k,onChange:e=>O(e||""),placeholder:"Enter admin password",required:!0,className:"w-full"})]}),R&&a.jsx("div",{className:"bg-ifrcRed/10 border border-ifrcRed/20 rounded-md p-3",children:a.jsx("p",{className:"text-sm text-ifrcRed font-medium",children:R})}),a.jsx("div",{className:"flex justify-center",children:a.jsx(f,{withInternalPadding:!0,className:"p-2",children:a.jsx(t,{name:"login",type:"submit",variant:"primary",size:2,disabled:D,children:D?"Logging in...":"Login"})})})]})]})})}export{ca as default}; +Value: ${e}`,_(s),j(i),p(!0)}).catch(e=>{console.error("Schemas Error:",e);const s=`Failed to fetch prompts: ${e.message||"Unknown error"}`;_(s),j("Schemas Error"),p(!0)})},children:"View Schemas"})]})})]})]}),re&&a.jsx("div",{className:l.modalOverlay,onClick:()=>M(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Delete Model"}),a.jsxs("p",{className:l.modalText,children:["Are you sure you want to delete model ",a.jsx("span",{className:l.modelCode,children:J}),"? This action cannot be undone."]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-delete",variant:"tertiary",onClick:()=>M(!1),children:"Cancel"}),a.jsx(t,{name:"confirm-delete",variant:"secondary",onClick:Ce,children:"Delete"})]})]})})}),ce&&a.jsx("div",{className:l.modalOverlay,onClick:()=>E(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:"Model Added Successfully!"}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:he}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-setup-instructions",variant:"secondary",onClick:()=>E(!1),children:"Got it!"})})]})})}),me&&a.jsx("div",{className:l.modalOverlay,onClick:()=>p(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsx("h3",{className:l.modalTitle,children:ue}),a.jsx("div",{className:`${l.modalText} ${l.modalTextLeft}`,children:a.jsx("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:_e})}),a.jsx("div",{className:l.modalButtons,children:a.jsx(t,{name:"close-test-results",variant:"secondary",onClick:()=>p(!1),children:"Close"})})]})})}),te&&a.jsx("div",{className:l.modalOverlay,onClick:()=>y(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Edit Prompt: ",C?.p_code]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:C?.p_code,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(S,{name:"prompt-image-type",value:n.image_type,onChange:e=>r(s=>({...s,image_type:e||"crisis_map"})),options:se,keySelector:e=>e.image_type,labelSelector:e=>e.label})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-edit-prompt",variant:"tertiary",onClick:()=>{y(!1),A(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-prompt",variant:"primary",onClick:je,children:"Save Changes"})]})]})})}),de&&a.jsx("div",{className:l.modalOverlay,onClick:()=>N(!1),children:a.jsx("div",{className:l.modalContent,onClick:e=>e.stopPropagation(),children:a.jsxs("div",{className:l.modalBody,children:[a.jsxs("h3",{className:l.modalTitle,children:["Add New ",ie==="crisis_map"?"Crisis Map":"Drone Image"," Prompt"]}),a.jsxs("div",{className:l.modalForm,children:[a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Code:"}),a.jsx(h,{name:"prompt-code",value:n.p_code,onChange:e=>r(s=>({...s,p_code:e||""})),placeholder:"e.g., CUSTOM_CRISIS_MAP_001",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Label:"}),a.jsx(h,{name:"prompt-label",value:n.label,onChange:e=>r(s=>({...s,label:e||""})),placeholder:"Enter prompt description...",className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Image Type:"}),a.jsx(h,{name:"prompt-image-type",value:n.image_type,onChange:()=>{},disabled:!0,className:l.formInput})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Active Status:"}),a.jsxs("div",{className:l.addModelFormCheckbox,children:[a.jsx("input",{type:"checkbox",checked:n.is_active,onChange:e=>r(s=>({...s,is_active:e.target.checked}))}),a.jsx("span",{children:"Active for this image type"})]})]}),a.jsxs("div",{className:l.formField,children:[a.jsx("label",{className:l.formLabel,children:"Metadata Instructions:"}),a.jsx("textarea",{name:"prompt-instructions",value:n.metadata_instructions,onChange:e=>r(s=>({...s,metadata_instructions:e.target.value})),placeholder:"Enter metadata extraction instructions...",className:`${l.formInput} ${l.textarea}`,rows:8})]})]}),a.jsxs("div",{className:l.modalButtons,children:[a.jsx(t,{name:"cancel-add-prompt",variant:"tertiary",onClick:()=>{N(!1),T(null),r({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1})},children:"Cancel"}),a.jsx(t,{name:"save-new-prompt",variant:"primary",onClick:xe,disabled:!n.p_code||!n.label,children:"Create Prompt"})]})]})})})]}):a.jsx(B,{children:a.jsxs("div",{className:"mx-auto max-w-md px-4 sm:px-6 lg:px-8 py-6 sm:py-10",children:[a.jsx("div",{className:"text-center mb-8",children:a.jsx(we,{level:2,children:"Admin Login"})}),a.jsxs("form",{onSubmit:Me,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Password"}),a.jsx(h,{id:"password",name:"password",type:"password",value:k,onChange:e=>O(e||""),placeholder:"Enter admin password",required:!0,className:"w-full"})]}),R&&a.jsx("div",{className:"bg-ifrcRed/10 border border-ifrcRed/20 rounded-md p-3",children:a.jsx("p",{className:"text-sm text-ifrcRed font-medium",children:R})}),a.jsx("div",{className:"flex justify-center",children:a.jsx(f,{withInternalPadding:!0,className:"p-2",children:a.jsx(t,{name:"login",type:"submit",variant:"primary",size:2,disabled:D,children:D?"Logging in...":"Login"})})})]})]})})}export{ia as default}; diff --git a/py_backend/static/assets/AdminPage-VgSjQ50W.css "b/py\342\200\224backend/static/AdminPage-VgSjQ50W.css" similarity index 100% rename from py_backend/static/assets/AdminPage-VgSjQ50W.css rename to "py\342\200\224backend/static/AdminPage-VgSjQ50W.css" diff --git a/py_backend/static/assets/ExportModal-BoB3JpqO.css "b/py\342\200\224backend/static/ExportModal-BoB3JpqO.css" similarity index 100% rename from py_backend/static/assets/ExportModal-BoB3JpqO.css rename to "py\342\200\224backend/static/ExportModal-BoB3JpqO.css" diff --git "a/py\342\200\224backend/static/ExportModal-CrJtybXx.js" "b/py\342\200\224backend/static/ExportModal-CrJtybXx.js" new file mode 100644 index 0000000000000000000000000000000000000000..283030d24750311903c61e59b18da12941e566f8 --- /dev/null +++ "b/py\342\200\224backend/static/ExportModal-CrJtybXx.js" @@ -0,0 +1 @@ +import{r as n,j as e,M as P,P as W,o as F,S as A,x as H,z as b,n as v,O as V,G as z,T as G,_ as O,L as q}from"./index-oPRJTRcN.js";const R=({title:c,titleId:i,...r})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":i},r),c?n.createElement("title",{id:i},c):null,n.createElement("g",{clipPath:"url(#checkbox-indeterminate-line_svg__a)"},n.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm2 6h10v2H7v-2Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"checkbox-indeterminate-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),$=({title:c,titleId:i,...r})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":i},r),c?n.createElement("title",{id:i},c):null,n.createElement("g",{clipPath:"url(#filter-line_svg__a)"},n.createElement("path",{d:"M9 13.5 4 6H3V4h18v2h-1l-5 7.5V22H9v-8.5ZM6.404 6 11 12.894V20h2v-7.106L17.596 6H6.404Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"filter-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"}))));function D(c){const{className:i,indeterminate:r,value:j}=c;return e.jsxs(e.Fragment,{children:[r&&e.jsx(R,{className:i}),j&&!r&&e.jsx(P,{className:i}),!j&&!r&&e.jsx(W,{className:i})]})}const U="_checkbox_12g7n_1",Z="_with-background_12g7n_7",Y="_checkmark-container_12g7n_12",J="_input_12g7n_18",K="_content_12g7n_33",Q="_description_12g7n_40",X="_checked_12g7n_45",L="_checkmark_12g7n_12",ee="_disabled-checkbox_12g7n_58",m={checkbox:U,withBackground:Z,checkmarkContainer:Y,input:J,content:K,description:Q,checked:X,checkmark:L,disabledCheckbox:ee};function B(c){const{className:i,checkmark:r=D,checkmarkClassName:j,checkmarkContainerClassName:I,disabled:t,error:p,indeterminate:N,inputClassName:E,invertedLogic:d=!1,label:y,labelContainerClassName:_,name:w,onChange:f,readOnly:h,tooltip:k,value:x,description:u,withBackground:T,...S}=c,M=n.useCallback(s=>{const o=s.currentTarget.checked;f(d?!o:o,w)},[w,f,d]),C=d?!x:x,g=F(m.checkbox,i,!N&&C&&m.checked,T&&m.withBackground,t&&m.disabledCheckbox,h&&m.readOnly);return e.jsxs("label",{className:g,title:k,children:[e.jsxs("div",{className:F(m.checkmarkContainer,I),children:[e.jsx("input",{onChange:M,className:F(m.input,E),type:"checkbox",checked:C??!1,disabled:t||h,readOnly:h,...S}),e.jsx(r,{className:F(m.checkmark,j),value:C??!1,indeterminate:N,"aria-hidden":"true"})]}),(y||u)&&e.jsxs("div",{className:m.content,children:[y&&e.jsx("div",{className:_,children:y}),u&&e.jsx("div",{className:m.description,children:u})]}),p&&e.jsx(A,{children:p})]})}function _e({sources:c,types:i,regions:r,countries:j,imageTypes:I,isLoadingFilters:t=!1}){const[p,N]=n.useState(!1),{search:E,setSearch:d,srcFilter:y,setSrcFilter:_,catFilter:w,setCatFilter:f,regionFilter:h,setRegionFilter:k,countryFilter:x,setCountryFilter:u,imageTypeFilter:T,setImageTypeFilter:S,uploadTypeFilter:M,setUploadTypeFilter:C,showReferenceExamples:g,setShowReferenceExamples:s,clearAllFilters:o}=H();return e.jsxs("div",{className:"mb-6 space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(v,{name:"toggle-filters",variant:"secondary",onClick:()=>N(!p),className:"whitespace-nowrap",title:p?"Hide Filters":"Show Filters",children:e.jsx($,{className:"w-4 h-4"})})}),e.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:e.jsx(V,{name:"search",placeholder:"Search examples...",value:E,onChange:a=>d(a||"")})}),e.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(v,{name:"clear-filters",variant:"secondary",onClick:o,children:"Clear Filters"})})]}),p&&e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-md p-4",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(z,{name:"source",placeholder:t?"Loading...":"All Sources",options:c,value:y||null,onChange:a=>_(a||""),keySelector:a=>a.s_code,labelSelector:a=>a.label,required:!1,disabled:t})}),e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(z,{name:"category",placeholder:t?"Loading...":"All Categories",options:i,value:w||null,onChange:a=>f(a||""),keySelector:a=>a.t_code,labelSelector:a=>a.label,required:!1,disabled:t})}),e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(z,{name:"region",placeholder:t?"Loading...":"All Regions",options:r,value:h||null,onChange:a=>k(a||""),keySelector:a=>a.r_code,labelSelector:a=>a.label,required:!1,disabled:t})}),e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(G,{name:"country",placeholder:t?"Loading...":"All Countries",options:j,value:x?[x]:[],onChange:a=>u(a[0]||""),keySelector:a=>a.c_code,labelSelector:a=>a.label,disabled:t})}),e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(z,{name:"imageType",placeholder:t?"Loading...":"All Image Types",options:I,value:T||null,onChange:a=>S(a||""),keySelector:a=>a.image_type,labelSelector:a=>a.label,required:!1,disabled:t})}),e.jsx(b,{withInternalPadding:!0,className:"p-2",children:e.jsx(z,{name:"uploadType",placeholder:"All Upload Types",options:[{key:"single",label:"Single Upload"},{key:"multiple",label:"Multiple Upload"}],value:M||null,onChange:a=>C(a||""),keySelector:a=>a.key,labelSelector:a=>a.label,required:!1,disabled:!1})})]})})]})}const ae="_fullSizeModalOverlay_cyz3b_1",le="_fullSizeModalContent_cyz3b_29",te="_ratingWarningContent_cyz3b_53",se="_ratingWarningTitle_cyz3b_65",ne="_exportModeSection_cyz3b_133",ie="_splitConfigSection_cyz3b_143",re="_splitConfigTitle_cyz3b_153",ce="_splitInputsContainer_cyz3b_167",oe="_splitInputGroup_cyz3b_183",de="_splitInputLabel_cyz3b_197",me="_splitInput_cyz3b_167",pe="_splitTotal_cyz3b_247",he="_splitTotalError_cyz3b_261",xe="_checkboxesContainer_cyz3b_271",ue="_ratingWarningButtons_cyz3b_289",ge="_singleExportMessage_cyz3b_309",be="_navigateButtonContainer_cyz3b_333",ve="_loadingOverlay_cyz3b_349",l={fullSizeModalOverlay:ae,fullSizeModalContent:le,ratingWarningContent:te,ratingWarningTitle:se,exportModeSection:ne,splitConfigSection:ie,splitConfigTitle:re,splitInputsContainer:ce,splitInputGroup:oe,splitInputLabel:de,splitInput:me,splitTotal:pe,splitTotalError:he,checkboxesContainer:xe,ratingWarningButtons:ue,singleExportMessage:ge,navigateButtonContainer:be,loadingOverlay:ve};function fe({isOpen:c,onClose:i,onExport:r,crisisMapsCount:j,droneImagesCount:I,isLoading:t=!1,exportSuccess:p=!1,variant:N="bulk",onNavigateAndExport:E}){const[d,y]=n.useState("standard"),[_,w]=n.useState(80),[f,h]=n.useState(10),[k,x]=n.useState(10),[u,T]=n.useState(!0),[S,M]=n.useState(!0),C=()=>{if(N==="single"){r(d,["crisis_map","drone_image"]);return}if(!u&&!S){alert("Please select at least one image type to export.");return}const s=[];u&&s.push("crisis_map"),S&&s.push("drone_image"),r(d,s)},g=()=>{i()};return c?N==="single"?e.jsx("div",{className:l.fullSizeModalOverlay,onClick:g,children:e.jsxs("div",{className:l.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:[t&&e.jsx("div",{className:l.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(O,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),p&&e.jsx("div",{className:l.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(v,{name:"close-export-success",onClick:g,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:l.ratingWarningContent,children:[e.jsx("h3",{className:l.ratingWarningTitle,children:"Export Single Item"}),e.jsxs("div",{className:l.singleExportMessage,children:[e.jsx("p",{children:"This only exports the 1 item currently on display."}),e.jsx("p",{children:'You may export the entire dataset from the "list view" here:'})]}),e.jsx("div",{className:l.navigateButtonContainer,children:e.jsx(v,{name:"navigate-to-list",variant:"secondary",onClick:E,children:"Navigate to List View"})}),e.jsxs("div",{className:l.ratingWarningButtons,children:[e.jsx(v,{name:"continue-export",onClick:C,disabled:t,children:t?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(O,{className:"text-white"}),"Exporting..."]}):"Continue"}),e.jsx(v,{name:"cancel-export",variant:"tertiary",onClick:g,disabled:t,children:"Cancel"})]})]})]})}):e.jsx("div",{className:l.fullSizeModalOverlay,onClick:g,children:e.jsxs("div",{className:l.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:[t&&e.jsx("div",{className:l.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(O,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),p&&e.jsx("div",{className:l.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(v,{name:"close-export-success",onClick:g,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:l.ratingWarningContent,children:[e.jsx("h3",{className:l.ratingWarningTitle,children:"Export Dataset"}),e.jsx("div",{className:l.exportModeSection,children:e.jsx(q,{name:"export-mode",value:d,onChange:s=>{(s==="standard"||s==="fine-tuning")&&y(s)},options:[{key:"standard",label:"Standard"},{key:"fine-tuning",label:"Fine-tuning"}],keySelector:s=>s.key,labelSelector:s=>s.label,disabled:t})}),d==="fine-tuning"&&e.jsxs("div",{className:l.splitConfigSection,children:[e.jsx("div",{className:l.splitConfigTitle,children:"Dataset Split Configuration"}),e.jsxs("div",{className:l.splitInputsContainer,children:[e.jsxs("div",{className:l.splitInputGroup,children:[e.jsx("label",{htmlFor:"train-split",className:l.splitInputLabel,children:"Train (%)"}),e.jsx("input",{id:"train-split",type:"number",min:"0",max:"100",value:_,onChange:s=>{const o=parseInt(s.target.value)||0,a=100-o;a>=0&&(w(o),f+k>a&&(h(Math.floor(a/2)),x(a-Math.floor(a/2))))},className:l.splitInput,disabled:t})]}),e.jsxs("div",{className:l.splitInputGroup,children:[e.jsx("label",{htmlFor:"test-split",className:l.splitInputLabel,children:"Test (%)"}),e.jsx("input",{id:"test-split",type:"number",min:"0",max:"100",value:f,onChange:s=>{const o=parseInt(s.target.value)||0,a=100-_-o;a>=0&&(h(o),x(a))},className:l.splitInput,disabled:t})]}),e.jsxs("div",{className:l.splitInputGroup,children:[e.jsx("label",{htmlFor:"val-split",className:l.splitInputLabel,children:"Val (%)"}),e.jsx("input",{id:"val-split",type:"number",min:"0",max:"100",value:k,onChange:s=>{const o=parseInt(s.target.value)||0,a=100-_-o;a>=0&&(x(o),h(a))},className:l.splitInput,disabled:t})]})]}),_+f+k!==100&&e.jsx("div",{className:l.splitTotal,children:e.jsx("span",{className:l.splitTotalError,children:"Must equal 100%"})})]}),e.jsxs("div",{className:l.checkboxesContainer,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(B,{name:"crisis-maps",label:`Crisis Maps (${j} images)`,value:u,onChange:s=>T(s),disabled:t})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(B,{name:"drone-images",label:`Drone Images (${I} images)`,value:S,onChange:s=>M(s),disabled:t})})]}),e.jsxs("div",{className:l.ratingWarningButtons,children:[e.jsx(v,{name:"confirm-export",onClick:C,disabled:t,children:t?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(O,{className:"text-white"}),"Exporting..."]}):"Export Selected"}),e.jsx(v,{name:"cancel-export",variant:"tertiary",onClick:g,disabled:t,children:"Cancel"})]})]})]})}):null}export{fe as E,_e as F}; diff --git "a/py\342\200\224backend/static/index-B1uKTNcW.css" "b/py\342\200\224backend/static/index-B1uKTNcW.css" new file mode 100644 index 0000000000000000000000000000000000000000..1dbdb1ec34813c421c0e996a68bf09bbdca16a04 --- /dev/null +++ "b/py\342\200\224backend/static/index-B1uKTNcW.css" @@ -0,0 +1 @@ +._title_1rjpr_1{color:inherit,}._expansion-indicator-cell-container_1rjpr_5,._timeline-cell-container_1rjpr_9{position:relative}._date-column_1rjpr_13{width:0%;min-width:7rem}._expand-button_1bf2c_1 ._icon_1bf2c_2{font-size:var(--go-ui-height-icon-multiplier)}._expansion-indicator_jys9u_1{display:flex;position:absolute;inset:0;align-items:center;flex-direction:column;width:100%;overflow:auto}._expansion-indicator_jys9u_1 ._end-border_jys9u_13,._expansion-indicator_jys9u_1 ._start-border_jys9u_14{flex-grow:1;background-color:var(--go-ui-color-separator);width:var(--go-ui-width-separator-thin)}._expansion-indicator_jys9u_1 ._indicator_jys9u_20{flex-shrink:0;border-radius:50%;background-color:var(--go-ui-color-primary-red);width:.8rem;height:.8rem}._expansion-indicator_jys9u_1._start_jys9u_14 ._start-border_jys9u_14,._expansion-indicator_jys9u_1._end_jys9u_13 ._end-border_jys9u_13,._expansion-indicator_jys9u_1._single_jys9u_40 ._end-border_jys9u_13,._expansion-indicator_jys9u_1._single_jys9u_40 ._start-border_jys9u_14{background-color:transparent}._timeline-header_1sebe_1 ._title_1sebe_2{display:flex;flex-grow:1;justify-content:space-between}._timeline-item_1g3u0_1{position:absolute;top:0;left:var(--go-ui-spacing-sm);width:calc(100% - 2 * var(--go-ui-spacing-sm));height:100%}._timeline-item_1g3u0_1 ._timeline-progress_1g3u0_8{position:absolute;top:50%;transform:translateY(-50%);border-radius:.25em;background-color:var(--go-ui-color-primary-red);height:.5rem}._timeline-item_1g3u0_1 ._today-marker_1g3u0_17{position:absolute;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-primary-blue);height:100%}._timeline-item_1g3u0_1 ._start-date-marker_1g3u0_23{position:absolute;left:0;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-separator);height:100%}._timeline-item_1g3u0_1 ._end-date-marker_1g3u0_30{position:absolute;right:0;border-left:var(--go-ui-width-separator-sm) dashed var(--go-ui-color-separator);height:100%}._tabSelector_vlxoe_1{display:flex;justify-content:center;margin:var(--go-ui-spacing-xl) 0}._summaryStats_vlxoe_7{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._progressSection_vlxoe_14{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._progressLabel_vlxoe_20{display:flex;justify-content:space-between;margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._chartGrid_vlxoe_28{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-xl)}._chartSection_vlxoe_34{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._chartContainer_vlxoe_40{display:flex;justify-content:center;align-items:center;min-height:300px;background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-lg)}._tableContainer_vlxoe_51,._modelPerformance_vlxoe_59{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);overflow:hidden;box-shadow:var(--go-ui-box-shadow-sm)}._loadingContainer_vlxoe_67{display:flex;align-items:center;justify-content:center;min-height:400px;color:var(--go-ui-color-gray-60);font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-medium)}._errorContainer_vlxoe_77{display:flex;align-items:center;justify-content:center;min-height:400px;color:var(--go-ui-color-negative);font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-medium)}@media (min-width: 1024px){._chartSection_vlxoe_34{grid-template-columns:1fr 1fr}}._userInteractionCards_vlxoe_96{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._userInteractionCard_vlxoe_96{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-xl);text-align:center;box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow .2s ease-in-out}._userInteractionCard_vlxoe_96:hover{box-shadow:var(--go-ui-box-shadow-md)}._userInteractionCardValue_vlxoe_116{font-size:var(--go-ui-font-size-2xl);font-weight:var(--go-ui-font-weight-bold);color:var(--go-ui-color-text);margin-bottom:var(--go-ui-spacing-sm)}._userInteractionCardLabel_vlxoe_123{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-text-secondary);margin-bottom:var(--go-ui-spacing-md);font-weight:var(--go-ui-font-weight-medium)}._userInteractionCardButton_vlxoe_130{width:100%}._userInteractionCard_vlxoe_96 ._chartContainer_vlxoe_40{min-height:200px;background-color:transparent;border:none;padding:var(--go-ui-spacing-md);margin-bottom:var(--go-ui-spacing-lg)}._userInteractionCard_vlxoe_96:nth-child(3) ._chartContainer_vlxoe_40{width:110%;margin-left:-5%}._summaryStatsCards_vlxoe_148{display:grid;grid-template-columns:1fr;gap:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._summaryStatsCard_vlxoe_148{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);padding:var(--go-ui-spacing-xl);text-align:center;box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow .2s ease-in-out}._summaryStatsCard_vlxoe_148:hover{box-shadow:var(--go-ui-box-shadow-md)}._summaryStatsCardValue_vlxoe_169{font-size:var(--go-ui-font-size-2xl);font-weight:var(--go-ui-font-weight-bold);color:var(--go-ui-color-text);margin-bottom:var(--go-ui-spacing-sm)}._summaryStatsCardLabel_vlxoe_176{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-text-secondary)}@media (min-width: 768px){._userInteractionCards_vlxoe_96{grid-template-columns:repeat(3,1fr)}._summaryStatsCards_vlxoe_148{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){._summaryStats_vlxoe_7{grid-template-columns:1fr;gap:var(--go-ui-spacing-md)}._chartContainer_vlxoe_40{min-height:250px;padding:var(--go-ui-spacing-md)}._tabSelector_vlxoe_1{margin:var(--go-ui-spacing-lg) 0}} diff --git "a/py\342\200\224backend/static/index-B3hZqJuM.js" "b/py\342\200\224backend/static/index-B3hZqJuM.js" new file mode 100644 index 0000000000000000000000000000000000000000..6580179e52e3b77f36475673ae257d7a67efe5c8 --- /dev/null +++ "b/py\342\200\224backend/static/index-B3hZqJuM.js" @@ -0,0 +1,3 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-DHOAM-1s.js","assets/index-oPRJTRcN.js","assets/index-DkIjYZRi.css"])))=>i.map(i=>d[i]); +import{H as Xe,v as Ye,j as a,N as X,n as T,r as g,x as ea,_ as ve,L as aa,z as E,I as se,J as ie,D as ta,K as sa,B as ia}from"./index-oPRJTRcN.js";import{u as na}from"./useAdmin-DytkUHQc.js";import{F as oa,E as ra}from"./ExportModal-CrJtybXx.js";const la="_tabSelector_usssr_1",ca="_imageContainer_usssr_12",da="_imagePlaceholder_usssr_33",ga="_metadataTags_usssr_45",ma="_metadataTag_usssr_45",ua="_captionContainer_usssr_67",pa="_captionText_usssr_74",fa="_gridLayout_usssr_131",ha="_detailsSection_usssr_155",_a="_loadingContainer_usssr_161",xa="_errorContainer_usssr_171",ya="_fullSizeModalOverlay_usssr_205",va="_fullSizeModalContent_usssr_219",wa="_ratingWarningContent_usssr_230",Ca="_ratingWarningTitle_usssr_236",ja="_ratingWarningText_usssr_243",Ia="_ratingWarningButtons_usssr_250",Na="_carouselContainer_usssr_365",ba="_carouselImageWrapper_usssr_370",Sa="_carouselImage_usssr_370",La="_carouselNavigation_usssr_393",Da="_carouselButton_usssr_405",ka="_carouselIndicators_usssr_429",Ma="_carouselIndicator_usssr_429",Ta="_carouselIndicatorActive_usssr_458",Fa="_singleImageContainer_usssr_488",Ea="_viewImageButtonContainer_usssr_494",p={tabSelector:la,imageContainer:ca,imagePlaceholder:da,metadataTags:ga,metadataTag:ma,captionContainer:ua,captionText:pa,gridLayout:fa,detailsSection:ha,loadingContainer:_a,errorContainer:xa,fullSizeModalOverlay:ya,fullSizeModalContent:va,ratingWarningContent:wa,ratingWarningTitle:Ca,ratingWarningText:ja,ratingWarningButtons:Ia,carouselContainer:Na,carouselImageWrapper:ba,carouselImage:Sa,carouselNavigation:La,carouselButton:Da,carouselIndicators:ka,carouselIndicator:Ma,carouselIndicatorActive:Ta,singleImageContainer:Fa,viewImageButtonContainer:Ea};function at(){const{mapId:u}=Xe(),y=Ye(),{isAuthenticated:ne}=na();console.log("MapDetailsPage: Current URL:",window.location.href),console.log("MapDetailsPage: Hash:",window.location.hash),console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId length:",u?.length),console.log("MapDetailsPage: mapId value:",JSON.stringify(u));const we=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;if(!u||u==="undefined"||u==="null"||u.trim()===""||!we.test(u))return a.jsx(X,{children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center py-12",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Invalid Map ID"}),a.jsx("div",{children:"The map ID provided is not valid."}),a.jsxs("div",{className:"text-sm text-gray-500 mt-2",children:['Debug Info: mapId = "',u,'" (type: ',typeof u,")"]}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})});const[oe,Ce]=g.useState("mapDetails"),[e,Y]=g.useState(null),[W,P]=g.useState(!0),[re,O]=g.useState(null),[le,je]=g.useState([]),[ce,Ie]=g.useState([]),[de,Ne]=g.useState([]),[ge,be]=g.useState([]),[Se,Le]=g.useState([]),[De,ke]=g.useState(!1),[Me,Te]=g.useState(!1),[B,q]=g.useState(!1),[Fe,G]=g.useState(!1),[me,K]=g.useState(!1),[Ee,ee]=g.useState(!1),[Re,ae]=g.useState(!1),[Ra,$a]=g.useState("standard"),[R,Pa]=g.useState(80),[J,Aa]=g.useState(10),[za,Oa]=g.useState(10),[Ua,Wa]=g.useState(!0),[Ba,Ja]=g.useState(!0),[Z,Q]=g.useState(!1),[$e,ue]=g.useState(!1),[Pe,pe]=g.useState(null),[D,H]=g.useState([]),[A,z]=g.useState(0),[V,fe]=g.useState(!1),{search:d,setSearch:Ha,srcFilter:v,setSrcFilter:Va,catFilter:w,setCatFilter:qa,regionFilter:C,setRegionFilter:Ga,countryFilter:j,setCountryFilter:Ka,imageTypeFilter:I,setImageTypeFilter:Za,uploadTypeFilter:N,setUploadTypeFilter:Qa,showReferenceExamples:k,setShowReferenceExamples:Ae,clearAllFilters:ze}=ea(),Oe=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],he=g.useCallback(async t=>{if(console.log("fetchMapData called with id:",t),console.log("fetchMapData id type:",typeof t),!t||t==="undefined"||t==="null"||t.trim()===""){console.log("fetchMapData: Invalid ID detected:",t),O("Invalid Map ID"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)){console.log("fetchMapData: Invalid UUID format:",t),O("Invalid Map ID format"),P(!1);return}console.log("fetchMapData: Making API call for id:",t),q(!0),P(!0);try{const f=await fetch(`/api/images/${t}`);if(!f.ok)throw new Error("Map not found");const s=await f.json();if(Y(s),s.all_image_ids&&s.all_image_ids.length>1)await _e(s.all_image_ids);else if(s.image_count&&s.image_count>1){console.log("Multi-upload detected but no all_image_ids, trying grouped endpoint");try{const l=await fetch("/api/images/grouped");if(l.ok){const r=(await l.json()).find(c=>c.all_image_ids&&c.all_image_ids.includes(s.image_id));r&&r.all_image_ids?await _e(r.all_image_ids):(H([s]),z(0))}else H([s]),z(0)}catch(l){console.error("Failed to fetch from grouped endpoint:",l),H([s]),z(0)}}else H([s]),z(0);await te(t)}catch(f){O(f instanceof Error?f.message:"Unknown error occurred")}finally{P(!1),q(!1)}},[]),_e=g.useCallback(async t=>{console.log("fetchAllImages called with imageIds:",t),fe(!0);try{const o=t.map(async s=>{const l=await fetch(`/api/images/${s}`);if(!l.ok)throw new Error(`Failed to fetch image ${s}`);return l.json()}),f=await Promise.all(o);H(f),z(0),console.log("fetchAllImages: Loaded",f.length,"images")}catch(o){console.error("fetchAllImages error:",o),O(o instanceof Error?o.message:"Failed to load all images")}finally{fe(!1)}},[]),Ue=g.useCallback(()=>{D.length>1&&z(t=>t>0?t-1:D.length-1)},[D.length]),We=g.useCallback(()=>{D.length>1&&z(t=>t{t>=0&&t{const o=t||(D.length>0?D[A]:e);o&&(pe(o),ue(!0))},[D,A,e]),Je=g.useCallback(()=>{ue(!1),pe(null)},[]);g.useEffect(()=>{if(console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId value:",u),!u||u==="undefined"||u==="null"||u.trim()===""||u===void 0||u===null){console.log("MapDetailsPage: Invalid mapId, setting error"),O("Map ID is required"),P(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("MapDetailsPage: Invalid UUID format:",u),O("Invalid Map ID format"),P(!1);return}console.log("MapDetailsPage: Fetching data for mapId:",u),he(u)},[u,he]),g.useEffect(()=>{if(!e||W||Z)return;if(!u||u==="undefined"||u==="null"||u.trim()===""){console.log("Auto-navigation skipped: Invalid mapId");return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("Auto-navigation skipped: Invalid mapId format");return}(()=>{const f=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),s=!v||e.source===v,l=!w||e.event_type===w,i=!C||e.countries.some(M=>M.r_code===C),r=!j||e.countries.some(M=>M.c_code===j),c=!I||e.image_type===I,n=!k||e.starred===!0,x=f&&s&&l&&i&&r&&c&&n;return console.log("Auto-navigation check:",{mapId:u,search:d,srcFilter:v,catFilter:w,regionFilter:C,countryFilter:j,imageTypeFilter:I,showReferenceExamples:k,matchesSearch:f,matchesSource:s,matchesCategory:l,matchesRegion:i,matchesCountry:r,matchesImageType:c,matchesReferenceExamples:n,matches:x}),x})()||(console.log("Current map does not match filters, looking for first matching item"),fetch("/api/images").then(f=>f.json()).then(f=>{console.log("Auto-navigation: Received images from API:",f.length),console.log("Auto-navigation: First few images:",f.slice(0,3).map(l=>({image_id:l.image_id,title:l.title})));const s=f.find(l=>{const i=!d||l.title?.toLowerCase().includes(d.toLowerCase())||l.generated?.toLowerCase().includes(d.toLowerCase())||l.source?.toLowerCase().includes(d.toLowerCase())||l.event_type?.toLowerCase().includes(d.toLowerCase()),r=!v||l.source===v,c=!w||l.event_type===w,n=!C||l.countries?.some(m=>m.r_code===C),x=!j||l.countries?.some(m=>m.c_code===j),M=!I||l.image_type===I,S=!k||l.starred===!0;return i&&r&&c&&n&&x&&M&&S});console.log("Auto-navigation: Found first matching image:",s?{image_id:s.image_id,title:s.title,source:s.source}:"No matching image found"),s&&s.image_id&&s.image_id!=="undefined"&&s.image_id!=="null"&&s.image_id.trim()!==""&&s.image_id!==u&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s.image_id)?(console.log("Auto-navigating to:",s.image_id),y(`/map/${s.image_id}`)):console.error("Auto-navigation blocked: Invalid image_id format:",s.image_id))}).catch(console.error))},[e,d,v,w,C,j,I,k,u,y,W,Z]);const te=async t=>{if(!(!t||t==="undefined"||t==="null"||t.trim()===""))try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.findIndex(i=>i.image_id===t);ke(s.length>1&&l>0),Te(s.length>1&&l{if(!B){q(!0);try{const o=await fetch("/api/images/grouped");if(o.ok){const f=await o.json(),s=f.filter(n=>{const x=!d||n.title?.toLowerCase().includes(d.toLowerCase())||n.generated?.toLowerCase().includes(d.toLowerCase())||n.source?.toLowerCase().includes(d.toLowerCase())||n.event_type?.toLowerCase().includes(d.toLowerCase()),M=!v||n.source===v,S=!w||n.event_type===w,m=!C||n.countries?.some($=>$.r_code===C),b=!j||n.countries?.some($=>$.c_code===j),_=!I||n.image_type===I,L=!N||N==="single"&&(!n.image_count||n.image_count<=1)||N==="multiple"&&n.image_count&&n.image_count>1,U=!k||n.starred===!0;return x&&M&&S&&m&&b&&_&&L&&U});if(s.findIndex(n=>n.image_id===u)===-1){const n=f.find(x=>x.image_id===u);n&&s.push(n)}const i=s.findIndex(n=>n.image_id===u);if(i===-1){console.error("Current image not found in filtered list");return}let r;t==="previous"?r=i>0?i-1:s.length-1:r=i{e&&u&&!W&&!Z&&te(u)},[e,u,d,v,w,C,j,I,N,k,W,Z,te]),g.useEffect(()=>{Promise.all([fetch("/api/sources").then(t=>t.json()),fetch("/api/types").then(t=>t.json()),fetch("/api/image-types").then(t=>t.json()),fetch("/api/regions").then(t=>t.json()),fetch("/api/countries").then(t=>t.json())]).then(([t,o,f,s,l])=>{je(t),Ie(o),Ne(f),be(s),Le(l)}).catch(console.error)},[]);const He=async()=>{e&&G(!0)},Ve=async()=>{if(e)try{(await fetch(`/api/images/${e.image_id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({starred:!e.starred})})).ok?Y(o=>o?{...o,starred:!o.starred}:null):console.error("Failed to toggle starred status")}catch(t){console.error("Error toggling starred status:",t)}},qe=async()=>{if(e){Q(!0);try{if(console.log("Deleting image with ID:",e.image_id),(await fetch(`/api/images/${e.image_id}`,{method:"DELETE"})).ok){Y(o=>o?{...o,starred:!o.starred}:null),G(!1);try{const o=await fetch("/api/images/grouped");if(o.ok){const s=(await o.json()).filter(i=>{const r=!d||i.title?.toLowerCase().includes(d.toLowerCase())||i.generated?.toLowerCase().includes(d.toLowerCase())||i.source?.toLowerCase().includes(d.toLowerCase())||i.event_type?.toLowerCase().includes(d.toLowerCase()),c=!v||i.source===v,n=!w||i.event_type===w,x=!C||i.countries?.some(_=>_.r_code===C),M=!j||i.countries?.some(_=>_.c_code===j),S=!I||i.image_type===I,m=!N||N==="single"&&(!i.image_count||i.image_count<=1)||N==="multiple"&&i.image_count&&i.image_count>1,b=!k||i.starred===!0;return r&&c&&n&&x&&M&&S&&m&&b}),l=s.filter(i=>i.image_id!==e.image_id);if(l.length>0){const i=s.findIndex(c=>c.image_id===e.image_id);let r;if(i===s.length-1?r=i-1:r=i,console.log("Navigation target:",{currentIndex:i,targetIndex:r,targetId:l[r]?.image_id}),r>=0&&r{if(!e)return null;if(!d&&!v&&!w&&!C&&!j&&!I&&!N&&!k)return e;const t=!d||e.title?.toLowerCase().includes(d.toLowerCase())||e.generated?.toLowerCase().includes(d.toLowerCase())||e.source?.toLowerCase().includes(d.toLowerCase())||e.event_type?.toLowerCase().includes(d.toLowerCase()),o=!v||e.source===v,f=!w||e.event_type===w,s=!C||e.countries.some(x=>x.r_code===C),l=!j||e.countries.some(x=>x.c_code===j),i=!I||e.image_type===I,r=!N||N==="single"&&(!e.image_count||e.image_count<=1)||N==="multiple"&&e.image_count&&e.image_count>1,c=!k||e.starred===!0,n=t&&o&&f&&s&&l&&i&&r&&c;return!n&&(d||v||w||C||j||I||N||k)?(setTimeout(()=>{Ge()},100),e):n?e:null},[e,d,v,w,C,j,I,N,k]),Ge=g.useCallback(async()=>{P(!0);try{const t=await fetch("/api/images/grouped");if(t.ok){const f=(await t.json()).filter(s=>{const l=!d||s.title?.toLowerCase().includes(d.toLowerCase())||s.generated?.toLowerCase().includes(d.toLowerCase())||s.source?.toLowerCase().includes(d.toLowerCase())||s.event_type?.toLowerCase().includes(d.toLowerCase()),i=!v||s.source===v,r=!w||s.event_type===w,c=!C||s.countries?.some(m=>m.r_code===C),n=!j||s.countries?.some(m=>m.c_code===j),x=!I||s.image_type===I,M=!N||N==="single"&&(!s.image_count||s.image_count<=1)||N==="multiple"&&s.image_count&&s.image_count>1,S=!k||s.starred===!0;return l&&i&&r&&c&&n&&x&&M&&S});if(f.length>0){const s=f[0];s&&s.image_id&&y(`/map/${s.image_id}`)}else y("/explore")}}catch(t){console.error("Failed to navigate to matching image:",t),y("/explore")}finally{P(!1)}},[d,v,w,C,j,I,N,k,y]),Ke=()=>{if(!e)return;if(!e.all_image_ids||e.all_image_ids.length<=1){const s=`/upload?step=1&contribute=true&imageIds=${[e.image_id].join(",")}`;y(s);return}const o=`/upload?step=1&contribute=true&imageIds=${e.all_image_ids.join(",")}`;y(o)},F=(t,o)=>({image:`images/${o}`,caption:t.edited||t.generated||"",metadata:{image_id:t.image_count&&t.image_count>1?t.all_image_ids||[t.image_id]:t.image_id,title:t.title,source:t.source,event_type:t.event_type,image_type:t.image_type,countries:t.countries,starred:t.starred,image_count:t.image_count||1}}),Ze=async t=>{if(e){ee(!0),ae(!1);try{const o=(await ia(async()=>{const{default:r}=await import("./jszip.min-DHOAM-1s.js").then(c=>c.j);return{default:r}},__vite__mapDeps([0,1,2]))).default,f=new o;if(e.image_type==="crisis_map"){const r=f.folder("crisis_maps_dataset"),c=r?.folder("images");if(c)try{const n=e.image_count&&e.image_count>1?e.all_image_ids||[e.image_id]:[e.image_id],x=n.map(async(m,b)=>{try{const _=await fetch(`/api/images/${m}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${m}`);const L=await _.blob(),U=e.file_key.split(".").pop()||"jpg",$=`0001_${String(b+1).padStart(2,"0")}.${U}`;return c.file($,L),{success:!0,fileName:$,imageId:m}}catch(_){return console.error(`Failed to process image ${m}:`,_),{success:!1,fileName:"",imageId:m}}}),S=(await Promise.all(x)).filter(m=>m.success);if(S.length===0)throw new Error("No images could be processed");if(t==="fine-tuning"){const m=[],b=[],_=[],L=S.map(Qe=>`images/${Qe.fileName}`),U=Math.random(),$={image:L.length===1?L[0]:L,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};U`images/${_.fileName}`),b={image:m.length===1?m[0]:m,caption:e.edited||e.generated||"",metadata:{image_id:n,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(b,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else if(e.image_type==="drone_image"){const r=f.folder("drone_images_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}else{const r=f.folder("generic_dataset"),c=r?.folder("images");if(c)try{const n=await fetch(`/api/images/${e.image_id}/file`);if(!n.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const x=await n.blob(),S=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(c.file(S,x),t==="fine-tuning"){const m=[],b=[],_=[];if(String(e?.image_type)==="crisis_map"){const L=Math.random();L1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(m,null,2))}}catch(n){throw console.error(`Failed to process image ${e.image_id}:`,n),n}}const s=await f.generateAsync({type:"blob"}),l=URL.createObjectURL(s),i=document.createElement("a");i.href=l,i.download=`dataset_${e.image_type}_${e.image_id}_${t}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),console.log(`Exported ${e.image_type} dataset with 1 image in ${t} mode`),ae(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{ee(!1)}}};return W?a.jsx(X,{children:a.jsx("div",{className:p.loadingContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading map details..."})]})})}):re||!e?a.jsx(X,{children:a.jsx("div",{className:p.errorContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Unable to load map"}),a.jsx("div",{children:re||"Map not found"}),a.jsx(T,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})})}):a.jsxs(X,{children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:p.tabSelector,children:[a.jsx(aa,{name:"map-details-view",value:oe,onChange:t=>{(t==="mapDetails"||t==="explore")&&(Ce(t),t==="explore"&&y("/explore"))},options:Oe,keySelector:t=>t.key,labelSelector:t=>t.label}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs(T,{name:"reference-examples",variant:k?"primary":"secondary",onClick:()=>Ae(!k),className:"whitespace-nowrap",children:[a.jsx("span",{className:"mr-2",children:k?a.jsx("span",{className:"text-yellow-400",children:"★"}):a.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),a.jsx(T,{name:"export-dataset",variant:"secondary",onClick:()=>K(!0),children:"Export"})]})]}),a.jsx(oa,{sources:le,types:ce,regions:ge,countries:Se,imageTypes:de,isLoadingFilters:!1}),oe==="mapDetails"?a.jsx("div",{className:"relative",children:h?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:p.gridLayout,children:[a.jsxs(E,{heading:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:h.title||"Map Image"}),h.starred&&a.jsx("span",{className:"text-red-500 text-xl",title:"Starred image",children:"★"})]}),headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:[a.jsx("div",{className:p.imageContainer,children:e?.image_count&&e.image_count>1||D.length>1?a.jsxs("div",{className:p.carouselContainer,children:[a.jsx("div",{className:p.carouselImageWrapper,children:V?a.jsxs("div",{className:p.imagePlaceholder,children:[a.jsx(ve,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading images..."})]}):D[A]?.image_url?a.jsx("img",{src:D[A].image_url,alt:D[A].file_key,className:p.carouselImage}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"})}),a.jsxs("div",{className:p.carouselNavigation,children:[a.jsx(T,{name:"previous-image",variant:"tertiary",size:1,onClick:Ue,disabled:V,className:p.carouselButton,children:a.jsx(se,{className:"w-4 h-4"})}),a.jsx("div",{className:p.carouselIndicators,children:D.map((t,o)=>a.jsx("button",{onClick:()=>Be(o),className:`${p.carouselIndicator} ${o===A?p.carouselIndicatorActive:""}`,disabled:V,children:o+1},o))}),a.jsx(T,{name:"next-image",variant:"tertiary",size:1,onClick:We,disabled:V,className:p.carouselButton,children:a.jsx(ie,{className:"w-4 h-4"})})]}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>xe(D[A]),disabled:V||!D[A]?.image_url,children:"View Image"})})]}):a.jsxs("div",{className:p.singleImageContainer,children:[h.image_url?a.jsx("img",{src:h.image_url,alt:h.file_key}):a.jsx("div",{className:p.imagePlaceholder,children:"No image available"}),a.jsx("div",{className:p.viewImageButtonContainer,children:a.jsx(T,{name:"view-full-size-single",variant:"secondary",size:1,onClick:()=>xe(h),disabled:!h.image_url,children:"View Image"})})]})}),a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs("div",{className:p.metadataTags,children:[h.image_type!=="drone_image"&&a.jsx("span",{className:p.metadataTag,children:le.find(t=>t.s_code===h.source)?.label||h.source}),a.jsx("span",{className:p.metadataTag,children:ce.find(t=>t.t_code===h.event_type)?.label||h.event_type}),a.jsx("span",{className:p.metadataTag,children:de.find(t=>t.image_type===h.image_type)?.label||h.image_type}),h.countries&&h.countries.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:p.metadataTag,children:ge.find(t=>t.r_code===h.countries[0].r_code)?.label||"Unknown Region"}),a.jsx("span",{className:p.metadataTag,children:h.countries.map(t=>t.label).join(", ")})]}),h.image_count&&h.image_count>1&&a.jsxs("span",{className:p.metadataTag,title:`Multi-upload with ${h.image_count} images`,children:["📷 ",h.image_count]}),(!h.image_count||h.image_count<=1)&&a.jsx("span",{className:p.metadataTag,title:"Single Upload",children:"Single"})]})})]}),a.jsx("div",{className:p.detailsSection,children:h.edited&&h.edited.includes("Description:")||h.generated&&h.generated.includes("Description:")?a.jsx(E,{heading:"AI Generated Content",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:a.jsx("div",{className:p.captionText,children:(h.edited||h.generated||"").split(` +`).map((t,o)=>a.jsx("div",{children:t.startsWith("Description:")||t.startsWith("Analysis:")||t.startsWith("Recommended Actions:")?a.jsx("h4",{className:"font-semibold text-gray-800 mt-4 mb-2",children:t}):t.trim()===""?a.jsx("br",{}):a.jsx("p",{className:"mb-2",children:t})},o))})})}):a.jsx(E,{heading:"Description",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:p.captionContainer,children:h.generated?a.jsx("div",{className:p.captionText,children:a.jsx("p",{children:h.edited||h.generated})}):a.jsx("p",{children:"— no caption yet —"})})})})]}),a.jsx("div",{className:"flex items-center justify-center mt-8",children:a.jsx(E,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-lg p-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[De&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"previous-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("previous"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(se,{className:"w-4 h-4"}),a.jsx(se,{className:"w-4 h-4"})]}),a.jsx("span",{className:"font-semibold",children:"Previous"})]})})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"delete",variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:He,title:"Delete","aria-label":"Delete saved image",children:a.jsx(ta,{className:"w-4 h-4"})})}),a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"contribute",onClick:Ke,children:"Contribute"})}),ne&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"toggle-star",variant:"tertiary",size:1,className:`${e?.starred?"bg-red-100 hover:bg-red-200 text-red-800 border-2 border-red-400":"bg-gray-100 hover:bg-gray-200 text-gray-600 border-2 border-gray-300"} w-16 h-8 rounded-full transition-all duration-200 flex items-center justify-center`,onClick:Ve,title:e?.starred?"Unstar image":"Star image","aria-label":e?.starred?"Unstar image":"Star image",children:a.jsx("span",{className:`text-lg transition-all duration-200 ${e?.starred?"text-red-600":"text-gray-500"}`,children:e?.starred?"★":"☆"})})}),Me&&a.jsx(E,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(T,{name:"next-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${B?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>ye("next"),disabled:B,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-semibold",children:"Next"}),a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(ie,{className:"w-4 h-4"}),a.jsx(ie,{className:"w-4 h-4"})]})]})})})]})})})]}):a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"text-xl font-semibold text-gray-600 mb-4",children:"No matches found"}),a.jsx("div",{className:"mt-4",children:a.jsx(T,{name:"clear-filters",variant:"secondary",onClick:ze,children:"Clear Filters"})})]})}):null]}),Fe&&a.jsx("div",{className:p.fullSizeModalOverlay,onClick:()=>G(!1),children:a.jsx("div",{className:p.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:a.jsxs("div",{className:p.ratingWarningContent,children:[a.jsx("h3",{className:p.ratingWarningTitle,children:"Delete Image?"}),a.jsx("p",{className:p.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),a.jsxs("div",{className:p.ratingWarningButtons,children:[a.jsx(T,{name:"confirm-delete",variant:"secondary",onClick:qe,children:"Delete"}),a.jsx(T,{name:"cancel-delete",variant:"tertiary",onClick:()=>G(!1),children:"Cancel"})]})]})})}),me&&a.jsx(ra,{isOpen:me,onClose:()=>{K(!1),ae(!1),ee(!1)},onExport:(t,o)=>{o.includes(e.image_type)&&Ze(t)},filteredCount:1,totalCount:1,hasFilters:!1,crisisMapsCount:e.image_type==="crisis_map"?1:0,droneImagesCount:e.image_type==="drone_image"?1:0,isLoading:Ee,exportSuccess:Re,variant:"single",onNavigateToList:()=>{K(!1),y("/explore")},onNavigateAndExport:()=>{K(!1),y("/explore?export=true")}}),a.jsx(sa,{isOpen:$e,imageUrl:Pe?.image_url||null,preview:null,selectedImageData:null,onClose:Je})]})}export{at as default}; diff --git "a/py\342\200\224backend/static/index-B5YX0VGQ.js" "b/py\342\200\224backend/static/index-B5YX0VGQ.js" new file mode 100644 index 0000000000000000000000000000000000000000..a65d29e36f496ac1525a624c8a569ffd08185a7d --- /dev/null +++ "b/py\342\200\224backend/static/index-B5YX0VGQ.js" @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-DHOAM-1s.js","assets/index-oPRJTRcN.js","assets/index-DkIjYZRi.css"])))=>i.map(i=>d[i]); +import{v as Se,w as Te,r as m,x as Ie,j as t,N as Ee,_ as ie,L as be,z as Z,n as D,D as Ce,B as $e}from"./index-oPRJTRcN.js";import{u as Pe}from"./useAdmin-DytkUHQc.js";import{F as Fe,E as De}from"./ExportModal-CrJtybXx.js";const ke="_tabSelector_o9y1f_1",Le="_metadataTags_o9y1f_8",Oe="_metadataTag_o9y1f_8",Me="_metadataTagSource_o9y1f_32",Re="_metadataTagType_o9y1f_43",Je="_mapItem_o9y1f_54",We="_mapItemImage_o9y1f_72",ze="_mapItemContent_o9y1f_92",Ue="_mapItemTitle_o9y1f_97",Ae="_mapItemMetadata_o9y1f_105",Be="_fullSizeModalOverlay_o9y1f_134",He="_fullSizeModalContent_o9y1f_148",Ve="_ratingWarningContent_o9y1f_159",Ge="_ratingWarningTitle_o9y1f_165",Ze="_ratingWarningText_o9y1f_172",qe="_ratingWarningButtons_o9y1f_179",g={tabSelector:ke,metadataTags:Le,metadataTag:Oe,metadataTagSource:Me,metadataTagType:Re,mapItem:Je,mapItemImage:We,mapItemContent:ze,mapItemTitle:Ue,mapItemMetadata:Ae,fullSizeModalOverlay:Be,fullSizeModalContent:He,ratingWarningContent:Ve,ratingWarningTitle:Ge,ratingWarningText:Ze,ratingWarningButtons:qe};function Ye(){const k=Se(),q=Te(),{isAuthenticated:ne}=Pe(),[K,oe]=m.useState("explore"),[_,L]=m.useState([]),{search:y,srcFilter:E,catFilter:b,regionFilter:C,countryFilter:$,imageTypeFilter:P,uploadTypeFilter:F,showReferenceExamples:j,setShowReferenceExamples:le}=Ie(),[J,re]=m.useState([]),[W,ce]=m.useState([]),[Q,me]=m.useState([]),[ge,de]=m.useState([]),[X,pe]=m.useState([]),[ue,Y]=m.useState(!0),[z,ee]=m.useState(!0),[fe,U]=m.useState(!1),[he,A]=m.useState(!1),[_e,B]=m.useState(!1),[xe,O]=m.useState(!1),[M,te]=m.useState(""),[H,ae]=m.useState(!1),ye=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],se=()=>{ee(!0),fetch("/api/images/grouped").then(e=>e.ok?e.json():(console.error("ExplorePage: Grouped endpoint failed, trying legacy endpoint"),fetch("/api/captions/legacy").then(s=>s.ok?s.json():(console.error("ExplorePage: Legacy endpoint failed, trying regular images endpoint"),fetch("/api/images").then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}))))).then(e=>{if(console.log("ExplorePage: API response data:",e),Array.isArray(e)){const s=e.filter(o=>{const f=o.generated&&o.model,u=o.image_id&&o.image_id!=="undefined"&&o.image_id!=="null";return u||console.error("ExplorePage: Item missing valid image_id:",o),f&&u});console.log("ExplorePage: Filtered images with captions:",s.length),L(s)}else console.error("ExplorePage: API response is not an array:",e),L([])}).catch(()=>{L([])}).finally(()=>{ee(!1)})};m.useEffect(()=>{se()},[]),m.useEffect(()=>{const e=()=>{document.hidden||se()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),m.useEffect(()=>{new URLSearchParams(q.search).get("export")==="true"&&(U(!0),k("/explore",{replace:!0}))},[q.search,k,y,E,b,C,$,P,j]),m.useEffect(()=>{Y(!0),Promise.all([fetch("/api/sources").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/regions").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/countries").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()})]).then(([e,s,o,f,u])=>{re(e),ce(s),me(o),de(f),pe(u)}).catch(()=>{}).finally(()=>{Y(!1)})},[]);const v=m.useMemo(()=>_.filter(e=>{const s=!y||e.title?.toLowerCase().includes(y.toLowerCase())||e.generated?.toLowerCase().includes(y.toLowerCase())||e.source?.toLowerCase().includes(y.toLowerCase())||e.event_type?.toLowerCase().includes(y.toLowerCase()),o=!E||e.source&&e.source.split(", ").some(x=>x.trim()===E),f=!b||e.event_type&&e.event_type.split(", ").some(x=>x.trim()===b),u=!C||e.countries.some(x=>x.r_code===C),N=!$||e.countries.some(x=>x.c_code===$),V=!P||e.image_type===P,R=!F||F==="single"&&(!e.image_count||e.image_count<=1)||F==="multiple"&&e.image_count&&e.image_count>1,w=!j||e.starred===!0;return s&&o&&f&&u&&N&&V&&R&&w}),[_,y,E,b,C,$,P,F,j]),je=async(e,s="fine-tuning")=>{if(e.length===0){alert("No images to export");return}A(!0),B(!1);try{const o=(await $e(async()=>{const{default:i}=await import("./jszip.min-DHOAM-1s.js").then(S=>S.j);return{default:i}},__vite__mapDeps([0,1,2]))).default,f=new o,u=e.filter(i=>i.image_type==="crisis_map"),N=e.filter(i=>i.image_type==="drone_image");if(u.length>0){const i=f.folder("crisis_maps_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of u)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}if(N.length>0){const i=f.folder("drone_images_dataset"),S=i?.folder("images");if(S){let T=1;for(const a of N)try{const h=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],G=h.map(async(n,p)=>{try{const l=await fetch(`/api/images/${n}/file`);if(!l.ok)throw new Error(`Failed to fetch image ${n}`);const r=await l.blob(),c=a.file_key.split(".").pop()||"jpg",d=`${String(T).padStart(4,"0")}_${String(p+1).padStart(2,"0")}.${c}`;return S.file(d,r),{success:!0,fileName:d,imageId:n}}catch(l){return console.error(`Failed to process image ${n}:`,l),{success:!1,fileName:"",imageId:n}}}),I=(await Promise.all(G)).filter(n=>n.success);if(I.length>0){if(s==="fine-tuning"){const n=I.map(r=>`images/${r.fileName}`),p=Math.random(),l={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(p<.8){const r=i.file("train.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("train.jsonl",JSON.stringify(c,null,2))}else i.file("train.jsonl",JSON.stringify([l],null,2))}else if(p<.9){const r=i.file("test.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("test.jsonl",JSON.stringify(c,null,2))}else i.file("test.jsonl",JSON.stringify([l],null,2))}else{const r=i.file("val.jsonl");if(r){const c=await r.async("string").then(d=>JSON.parse(d||"[]")).catch(()=>[]);c.push(l),i.file("val.jsonl",JSON.stringify(c,null,2))}else i.file("val.jsonl",JSON.stringify([l],null,2))}}else{const n=I.map(l=>`images/${l.fileName}`),p={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:h,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(T).padStart(4,"0")}.json`,JSON.stringify(p,null,2))}T++}}catch(h){console.error(`Failed to process caption ${a.image_id}:`,h)}}}const V=await f.generateAsync({type:"blob"}),R=URL.createObjectURL(V),w=document.createElement("a");w.href=R,w.download=`datasets_${s}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(R);const x=(u.length||0)+(N.length||0);console.log(`Exported ${s} datasets with ${x} total images:`),u.length>0&&console.log(`- Crisis maps: ${u.length} images`),N.length>0&&console.log(`- Drone images: ${N.length} images`),B(!0)}catch(o){console.error("Export failed:",o),alert("Failed to export dataset. Please try again.")}finally{A(!1)}},ve=e=>{te(e),O(!0)},Ne=async()=>{if(M){ae(!0);try{console.log("Deleting image with ID:",M),(await fetch(`/api/images/${M}`,{method:"DELETE"})).ok?(L(s=>s.filter(o=>o.image_id!==M)),O(!1),te("")):(console.error("Delete failed"),alert("Failed to delete image. Please try again."))}catch(e){console.error("Delete failed:",e),alert("Failed to delete image. Please try again.")}finally{ae(!1)}}};return t.jsxs(Ee,{children:[z?t.jsx("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}):t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:g.tabSelector,children:[t.jsx(be,{name:"explore-view",value:K,onChange:e=>{(e==="explore"||e==="mapDetails")&&(oe(e),e==="mapDetails"&&_.length>0&&(_[0]?.image_id&&_[0].image_id!=="undefined"&&_[0].image_id!=="null"?k(`/map/${_[0].image_id}`):console.error("Invalid image_id for navigation:",_[0]?.image_id)))},options:ye,keySelector:e=>e.key,labelSelector:e=>e.label}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(D,{name:"reference-examples",variant:j?"primary":"secondary",onClick:()=>le(!j),className:"whitespace-nowrap",children:[t.jsx("span",{className:"mr-2",children:j?t.jsx("span",{className:"text-yellow-400",children:"★"}):t.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),t.jsx(D,{name:"export-dataset",variant:"secondary",onClick:()=>U(!0),children:"Export"})]})]}),K==="explore"?t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"mb-6 space-y-4",children:t.jsx("div",{className:"flex flex-wrap items-center gap-4",children:t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:t.jsx(Fe,{sources:J,types:W,regions:Q,countries:ge,imageTypes:X,isLoadingFilters:ue})})})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-between items-center",children:t.jsxs("p",{className:"text-sm text-gray-600",children:[v.length," of ",_.length," examples"]})}),z&&t.jsx("div",{className:"text-center py-12",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ie,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}),!z&&t.jsxs("div",{className:"space-y-4",children:[v.map(e=>t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:`${g.mapItem} flex-1`,onClick:()=>{console.log("ExplorePage: Clicking on image with ID:",e.image_id),console.log("ExplorePage: Image data:",e),e.image_id&&e.image_id!=="undefined"&&e.image_id!=="null"?(console.log("ExplorePage: Navigating to:",`/map/${e.image_id}`),console.log("ExplorePage: Full navigation URL:",`/#/map/${e.image_id}`),k(`/map/${e.image_id}`)):(console.error("Invalid image_id for navigation:",e.image_id),console.error("Full item data:",JSON.stringify(e,null,2)),alert(`Cannot navigate: Invalid image ID (${e.image_id})`))},children:[t.jsx("div",{className:g.mapItemImage,style:{width:"120px",height:"80px"},children:e.image_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: Rendering image with URL:",e.image_url),t.jsx("img",{src:e.image_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Image failed to load:",e.image_url);const o=s.target;o.style.display="none",o.parentElement.innerHTML="Img"},onLoad:()=>console.log("ExplorePage: Image loaded successfully:",e.image_url)})]}):t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No image_url provided for item:",e),"'Img'"]})}),t.jsxs("div",{className:g.mapItemContent,children:[t.jsx("h3",{className:g.mapItemTitle,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{children:e.title||"Untitled"}),e.starred&&t.jsx("span",{className:"text-red-500 text-lg",title:"Starred image",children:"★"})]})}),t.jsx("div",{className:g.mapItemMetadata,children:t.jsxs("div",{className:g.metadataTags,children:[e.image_type!=="drone_image"&&t.jsx("span",{className:g.metadataTagSource,children:e.source&&e.source.includes(", ")?e.source.split(", ").map(s=>J.find(o=>o.s_code===s.trim())?.label||s.trim()).join(", "):J.find(s=>s.s_code===e.source)?.label||e.source}),t.jsx("span",{className:g.metadataTagType,children:e.event_type&&e.event_type.includes(", ")?e.event_type.split(", ").map(s=>W.find(o=>o.t_code===s.trim())?.label||s.trim()).join(", "):W.find(s=>s.t_code===e.event_type)?.label||e.event_type}),t.jsx("span",{className:g.metadataTag,children:X.find(s=>s.image_type===e.image_type)?.label||e.image_type}),e.image_count&&e.image_count>1&&t.jsxs("span",{className:g.metadataTag,title:`Multi-upload with ${e.image_count} images`,children:["📷 ",e.image_count]}),(!e.image_count||e.image_count<=1)&&t.jsx("span",{className:g.metadataTag,title:"Single Upload",children:"Single"}),e.countries&&e.countries.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:g.metadataTag,children:Q.find(s=>s.r_code===e.countries[0].r_code)?.label||"Unknown Region"}),t.jsx("span",{className:g.metadataTag,children:e.countries.map(s=>s.label).join(", ")})]})]})})]})]}),ne&&t.jsx(Z,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(D,{name:`delete-${e.image_id}`,variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:()=>ve(e.image_id),title:"Delete","aria-label":"Delete saved image",children:t.jsx(Ce,{className:"w-4 h-4"})})})]},e.image_id)),!v.length&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"No examples found."})})]})]})]}):t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{className:"text-center py-12",children:[t.jsx("p",{className:"text-gray-500",children:"Map Details view coming soon..."}),t.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"This will show detailed information about individual maps"})]})})]}),xe&&t.jsx("div",{className:g.fullSizeModalOverlay,onClick:()=>O(!1),children:t.jsx("div",{className:g.fullSizeModalContent,onClick:e=>e.stopPropagation(),children:t.jsxs("div",{className:g.ratingWarningContent,children:[t.jsx("h3",{className:g.ratingWarningTitle,children:"Delete Image?"}),t.jsx("p",{className:g.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),t.jsxs("div",{className:g.ratingWarningButtons,children:[t.jsx(D,{name:"confirm-delete",variant:"secondary",onClick:Ne,disabled:H,children:H?"Deleting...":"Delete"}),t.jsx(D,{name:"cancel-delete",variant:"tertiary",onClick:()=>O(!1),disabled:H,children:"Cancel"})]})]})})}),t.jsx(De,{isOpen:fe,onClose:()=>{U(!1),B(!1),A(!1)},onExport:(e,s)=>{const o=v.filter(f=>s.includes(f.image_type));je(o,e)},filteredCount:v.length,totalCount:_.length,hasFilters:!!(y||E||b||C||$||P||F||j),crisisMapsCount:v.filter(e=>e.image_type==="crisis_map").length,droneImagesCount:v.filter(e=>e.image_type==="drone_image").length,isLoading:he,exportSuccess:_e})]})}export{Ye as default}; diff --git a/py_backend/static/assets/index-BzPMJFRS.css "b/py\342\200\224backend/static/index-BzPMJFRS.css" similarity index 100% rename from py_backend/static/assets/index-BzPMJFRS.css rename to "py\342\200\224backend/static/index-BzPMJFRS.css" diff --git "a/py\342\200\224backend/static/index-CLLTwnqd.js" "b/py\342\200\224backend/static/index-CLLTwnqd.js" new file mode 100644 index 0000000000000000000000000000000000000000..83d4b2f1a186922bcc35cdfd99d1b1ed34f193e2 --- /dev/null +++ "b/py\342\200\224backend/static/index-CLLTwnqd.js" @@ -0,0 +1 @@ +import{r as s,y as nt,t as ht,a as q,c as gt,j as e,o as N,b as se,R as st,z,g as rt,d as ft,m as vt,e as pt,n as Z,A as xt,f as _t,h as Ct,i as yt,k as he,l as bt,p as ye,q as jt,s as Nt,E as wt,C as St,U as Mt,Q as It,u as Dt,N as je,_ as Et,L as Tt}from"./index-oPRJTRcN.js";const kt=({title:m,titleId:a,...h})=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?s.createElement("title",{id:a},m):null,s.createElement("g",{clipPath:"url(#arrow-drop-down-line_svg__a)"},s.createElement("path",{d:"m12 15-4.243-4.243 1.415-1.414L12 12.172l2.828-2.83 1.415 1.415L12 15Z"})),s.createElement("defs",null,s.createElement("clipPath",{id:"arrow-drop-down-line_svg__a"},s.createElement("path",{d:"M0 0h24v24H0z"})))),Lt=({title:m,titleId:a,...h})=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?s.createElement("title",{id:a},m):null,s.createElement("g",{clipPath:"url(#arrow-drop-up-line_svg__a)"},s.createElement("path",{d:"m12 11.828-2.828 2.829-1.415-1.414L12 9l4.243 4.243-1.415 1.414L12 11.828Z"})),s.createElement("defs",null,s.createElement("clipPath",{id:"arrow-drop-up-line_svg__a"},s.createElement("path",{d:"M0 0h24v24H0z"})))),Pt=({title:m,titleId:a,...h})=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?s.createElement("title",{id:a},m):null,s.createElement("g",{clipPath:"url(#information-line_svg__a)"},s.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"})),s.createElement("defs",null,s.createElement("clipPath",{id:"information-line_svg__a"},s.createElement("path",{d:"M0 0h24v24H0z"})))),Rt=({title:m,titleId:a,...h})=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?s.createElement("title",{id:a},m):null,s.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"}),s.createElement("mask",{id:"table-sorting-line_svg__a",width:8,height:5,x:8,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},s.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"})),s.createElement("g",{mask:"url(#table-sorting-line_svg__a)"},s.createElement("path",{d:"M-24-22h72v72h-72z"})),s.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"}),s.createElement("mask",{id:"table-sorting-line_svg__b",width:8,height:5,x:8,y:6,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},s.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"})),s.createElement("g",{mask:"url(#table-sorting-line_svg__b)"},s.createElement("path",{d:"M48 45h-72v-72h72z"}))),$t="_number-output_1blvi_1",Bt={numberOutput:$t};function we(m){const{className:a,invalidText:h=nt,separatorHidden:r,compact:f,currency:g,value:b,tooltip:_,unit:y,prefix:x,suffix:w,maximumFractionDigits:C=1}=m,{currentLanguage:j}=s.useContext(ht),v=s.useMemo(()=>{if(q(b))return h;const S=gt(b,{currency:g,compact:f,separatorHidden:r,maximumFractionDigits:C,unit:y,language:j});return e.jsxs(e.Fragment,{children:[x,S,w]})},[h,b,f,r,g,y,C,x,j,w]);return e.jsx("div",{className:N(Bt.numberOutput,a),title:se(_)?String(_):void 0,children:v})}const At="_tooltip-dummy_rbf3f_1",Ft="_tooltip-content_rbf3f_7",Ot="_pointer_rbf3f_14",Ne={tooltipDummy:At,tooltipContent:Ft,pointer:Ot};function Ht(m){const{className:a,title:h,description:r,preferredWidth:f}=m,[g,b]=s.useState(!1),[_,y]=s.useState(!1),x=s.useRef(),w=s.useRef(null);return s.useEffect(()=>{const C=()=>{y(!0)},j=()=>{y(!1)};if(q(w.current))return;const{current:{parentNode:v}}=w;if(!q(v))return x.current=v,v.addEventListener("mouseover",C),v.addEventListener("mouseout",j),b(!0),()=>{v.removeEventListener("mouseover",C),v.removeEventListener("mouseout",j)}},[]),e.jsxs(e.Fragment,{children:[!g&&e.jsx("div",{className:Ne.tooltipDummy,ref:w}),_&&e.jsx(st,{className:N(Ne.tooltipContent,a),parentRef:x,pointerClassName:Ne.pointer,preferredWidth:f,children:e.jsx(z,{heading:h,withInternalPadding:!0,contentViewType:"vertical",children:r})})]})}function $(m){return m.id}const Vt="common",zt={booleanYesLabel:"Yes",booleanNoLabel:"No"},Ut={namespace:Vt,strings:zt},Wt="_boolean-output_kg1uq_1",Qt={booleanOutput:Wt};function Zt(m){const{className:a,invalidText:h,value:r}=m,f=rt(Ut);let g;return r===!0?g=f.booleanYesLabel:r===!1?g=f.booleanNoLabel:g=h,e.jsx("div",{className:N(Qt.booleanOutput,a),children:g})}const qt="_date-output_4jzjo_1",Gt={dateOutput:qt};function Yt(m){const{value:a,format:h,className:r,invalidText:f}=m,g=s.useMemo(()=>ft(a,h),[a,h]);return e.jsx("div",{className:N(Gt.dateOutput,r),children:g??f})}const Kt="_dropdown-menu_16hml_1",Xt="_icons_16hml_4",Jt="_content_16hml_5",ea="_actions_16hml_6",ta="_dropdown-icon_16hml_10",aa="_dropdown-content_16hml_16",le={dropdownMenu:Kt,icons:Xt,content:Jt,actions:ea,dropdownIcon:ta,dropdownContent:aa};function na(m){const a=s.useRef(null),{className:h,popupClassName:r,children:f,label:g,activeClassName:b,icons:_,variant:y="secondary",actions:x,withoutDropdownIcon:w,componentRef:C,elementRef:j=a,persistent:v,preferredPopupWidth:S}=m,p=s.useRef(null),[k,I]=s.useState(!1);s.useEffect(()=>{C&&(C.current={setShowDropdown:I})},[C,I]);const R=s.useCallback(()=>{I(re=>!re)},[I]),T=s.useCallback((re,ae)=>{ae||re&&v||I(!1)},[I,v]);vt(k,T,p,j);const G=s.useMemo(()=>({setShowDropdown:I}),[I]),U=!!x||!w;return e.jsxs(pt.Provider,{value:G,children:[e.jsx(Z,{name:void 0,className:N(le.dropdownMenu,k&&b,h),elementRef:j,onClick:R,variant:y,actionsContainerClassName:le.actions,iconsContainerClassName:le.icons,childrenContainerClassName:le.content,actions:U?e.jsxs(e.Fragment,{children:[x,!w&&(k?e.jsx(xt,{className:le.dropdownIcon}):e.jsx(_t,{className:le.dropdownIcon}))]}):void 0,icons:_,children:g}),k&&e.jsx(st,{elementRef:p,className:N(le.dropdownContent,r),parentRef:j,preferredWidth:S,children:f})]})}const sa="_info-popup_i3rna_1",ra="_label_i3rna_2",ia="_icon_i3rna_7",oa="_dropdown-container_i3rna_15",la="_content_i3rna_20",ge={infoPopup:sa,label:ra,icon:ia,dropdownContainer:oa,content:la};function ca(m){const{className:a,icon:h=e.jsx(Pt,{}),infoLabel:r,title:f,description:g,withoutIcon:b,popupClassName:_,descriptionClassName:y}=m;return e.jsx(na,{label:e.jsxs("div",{className:ge.label,children:[r,!b&&h&&e.jsx("div",{className:ge.icon,children:h})]}),popupClassName:N(ge.dropdownContainer,_),className:N(ge.infoPopup,a),variant:"tertiary",withoutDropdownIcon:!0,children:e.jsx(z,{heading:f,childrenContainerClassName:N(y,ge.content),withInternalPadding:!0,children:g})})}const da="_progress-wrapper_x340w_1",ua="_title_x340w_7",ma="_total_x340w_11",ha="_progress_x340w_1",fe={progressWrapper:da,title:ua,total:ma,progress:ha};function Ye(m){const{className:a,title:h,description:r,totalValue:f,value:g,showPercentageInTitle:b,children:_,color:y="var(--go-ui-color-primary-red)"}=m,x=se(g)?g:0,w=se(f)?f:0;let C;return w===0?C=0:C=x/w*100,e.jsxs("div",{className:N(fe.progressWrapper,a),children:[(h||b)&&e.jsxs("div",{className:fe.title,children:[h,b&&e.jsx(we,{value:C,suffix:"%"})]}),e.jsx("div",{className:fe.total,children:e.jsx("div",{className:fe.progress,style:{width:`${C}%`,backgroundColor:y}})}),r&&e.jsx("div",{className:fe.description,children:r}),_]})}const ga="_legend-element_1a9ic_1",fa="_color_1a9ic_7",va="_icon-container_1a9ic_14",pa="_icon_1a9ic_14",xa="_label_1a9ic_31",ve={legendElement:ga,color:fa,iconContainer:va,icon:pa,label:xa};function _a(m){const{className:a,colorClassName:h,iconClassName:r,color:f,label:g,iconSrc:b}=m;return e.jsxs("div",{className:N(ve.legendElement,a),children:[b?e.jsx("div",{style:{backgroundColor:f},className:ve.iconContainer,children:e.jsx("img",{className:N(ve.icon,r),src:b,alt:""})}):e.jsx("div",{style:{backgroundColor:f},className:N(ve.color,h)}),e.jsx("div",{className:ve.label,children:g})]})}const Ca="_text-output_10oza_1",ya="_with-background_10oza_6",ba="_label_10oza_11",ja="_with-colon_10oza_12",Na="_value_10oza_17",wa="_text-type_10oza_18",Sa="_strong_10oza_24",ee={textOutput:Ca,withBackground:ya,label:ba,withColon:ja,value:Na,textType:wa,strong:Sa};function Ke(m){const{className:a,label:h,icon:r,description:f,labelClassName:g,descriptionClassName:b,valueClassName:_,strongLabel:y,strongValue:x,strongDescription:w,withoutLabelColon:C,withBackground:j,invalidText:v=nt,...S}=m,{value:p}=m;let k=v;return S.valueType==="number"?k=e.jsx(we,{...S,invalidText:v}):S.valueType==="date"?k=e.jsx(Yt,{...S,invalidText:v}):S.valueType==="boolean"?k=e.jsx(Zt,{...S,invalidText:v}):p instanceof Date||(k=p||v),e.jsxs("div",{className:N(ee.textOutput,j&&ee.withBackground,a),children:[r,h&&e.jsx("div",{className:N(ee.label,y&&ee.strong,g,!C&&ee.withColon),children:h}),e.jsx("div",{className:N(ee.value,x&&ee.strong,S.valueType==="text"&&ee.textType,_),children:k}),f&&e.jsx("div",{className:N(ee.description,w&&ee.strong,b),children:f})]})}const Ma="_pie-chart_pyr7m_1",Ia="_legend_pyr7m_7",Da="_legend-item_pyr7m_13",pe={pieChart:Ma,legend:Ia,legendItem:Da},Ea=70,Ta=40;function Xe(m,a=1){return Math.round(m*10**a)/10**a}function Je(m,a){const h=(a-90)*Math.PI/180;return{x:Xe(m+m*Math.cos(h)),y:Xe(m+m*Math.sin(h))}}function ka(m,a,h){let r=h;const f=r-a===360;f&&(r-=1);const g=Je(m,a),b=Je(m,r),_=r-a<=180?0:1,y=["M",g.x,g.y,"A",m,m,0,_,1,b.x,b.y];return f?y.push("Z"):y.push("L",m,m,"L",g.x,g.y,"Z"),y.join(" ")}function xe(m){const{className:a,data:h,valueSelector:r,labelSelector:f,keySelector:g,colorSelector:b,colors:_,pieRadius:y=Ea,chartPadding:x=Ta,legendClassName:w,showPercentageInLegend:C}=m,j=Ct(h?.map(p=>r(p))),v=q(j)||j===0?1:j,S=s.useMemo(()=>{let p=0;const k=h?.map(I=>{const R=r(I);if(q(R))return;const T=360*(R/v);return p+=T,{key:g(I),value:R,label:f(I),startAngle:p-T,percentage:yt(R,v),endAngle:p,datum:I}}).filter(se)??[];return b?k.map(({datum:I,...R})=>({...R,color:b(I)})):k.map(({datum:I,...R},T)=>({...R,color:_[T%_.length]}))},[h,g,r,f,v,b,_]);return e.jsxs("div",{className:N(pe.pieChart,a),children:[e.jsx("svg",{className:pe.svg,style:{width:`${x+y*2}px`,height:`${x+y*2}px`},children:e.jsx("g",{style:{transform:`translate(${x/2}px, ${x/2}px)`},children:S.map(p=>e.jsx("path",{className:pe.path,d:ka(y,p.startAngle,p.endAngle),fill:p.color,children:e.jsx(Ht,{description:e.jsx(Ke,{label:p.label,value:p.value})})},p.key))})}),e.jsx("div",{className:N(pe.legend,w),children:S.map(p=>e.jsx(_a,{className:pe.legendItem,label:C?e.jsx(Ke,{label:p.label,value:p.percentage,valueType:"number",prefix:"(",suffix:"%)",withoutLabelColon:!0}):p.label,color:p.color},p.key))})]})}const La="_td_1k4cn_1",Pa={td:La};function Ra(m){const{className:a,children:h,...r}=m;return e.jsx("td",{className:N(a,Pa.td),...r,children:h})}function it(m){const{className:a,children:h,...r}=m;return e.jsx("tr",{className:a,...r,children:h})}const $a="_row_1829z_1",Ba="_cell_1829z_2",et={row:$a,cell:Ba};function Aa(m){const{data:a,keySelector:h,columns:r,rowClassName:f,cellClassName:g,rowModifier:b}=m;return e.jsx(e.Fragment,{children:a?.map((_,y)=>{const x=h(_,y),w=r.map(v=>{const{id:S,cellRenderer:p,cellRendererClassName:k,cellRendererParams:I,cellContainerClassName:R}=v,T=I(x,_,y,a),G=e.jsx(p,{className:k,...T,name:S});return e.jsx(Ra,{className:N(et.cell,R,typeof g=="function"?g(x,_,S):g),children:G},S)}),C=e.jsx(it,{className:N(et.row,typeof f=="function"?f(x,_):f),children:w});let j=C;return b&&(j=b({rowKey:x,row:C,cells:w,columns:r,datum:_})),e.jsx(s.Fragment,{children:j},x)})})}const Fa="_th_cdv41_1",Oa="_resize-handle_cdv41_8",tt={th:Fa,resizeHandle:Oa};function Ha(m){const{className:a,children:h,onResize:r,onResizeComplete:f,name:g,...b}=m,_=s.useRef(null),y=s.useRef(),x=s.useRef(),w=s.useRef(),C=s.useCallback(v=>{var S;if(se(y.current)&&_.current&&r){v.preventDefault(),v.stopPropagation();const p=v.clientX-y.current;if(se(x.current)){const k=x.current+p;w.current=k,r(k,g)}else x.current=(S=_.current)==null?void 0:S.offsetWidth}},[r,g]),j=s.useCallback(v=>{var S;v.preventDefault(),y.current=v.clientX,x.current=(S=_.current)==null?void 0:S.offsetWidth,window.addEventListener("mousemove",C,!0)},[C]);return s.useEffect(()=>{const v=()=>{y.current=void 0,x.current=void 0,f&&se(w.current)&&f(w.current,g),window.removeEventListener("mousemove",C,!0)};return window.addEventListener("mouseup",v,!0),()=>{window.removeEventListener("mouseup",v,!0),window.removeEventListener("mousemove",C,!0)}},[C,g,f]),e.jsxs("th",{ref:_,className:N(a,tt.th),...b,children:[r&&e.jsx("div",{role:"presentation",className:tt.resizeHandle,onMouseDown:j}),h]})}const Va="_table_nilhy_1",za="_table-overflow-wrapper_nilhy_8",Ua="_table-element_nilhy_13",Wa="_header-row_nilhy_23",Qa="_header-element_nilhy_24",Za="_header-component_nilhy_29",ce={table:Va,tableOverflowWrapper:za,tableElement:Ua,headerRow:Wa,headerElement:Qa,headerComponent:Za};function qa(m,a){return a??m.columnWidth??wt}function B(m){const{data:a,keySelector:h,columns:r,caption:f,className:g,captionClassName:b,headerRowClassName:_,headerCellClassName:y,rowClassName:x,cellClassName:w,rowModifier:C,fixedColumnWidth:j,resizableColumn:v,headersHidden:S,pending:p,filtered:k,errored:I=!1}=m,R=s.useRef(null),[T]=he.useState(()=>bt()),[G,U]=he.useState({});s.useEffect(()=>{U(W=>{if(q(R.current))return W;const E=R.current.getBoundingClientRect(),{width:O}=E;let A=r.map(M=>({id:M.id,stretch:!!M.columnStretch,width:qa(M,W[M.id])}));const X=ye(A.filter(M=>M.stretch).map(M=>M.width)),ne=ye(A.filter(M=>!M.stretch).map(M=>M.width)),Y=(O-ne)/X;return Y>1&&(A=A.map(M=>({...M,width:M.stretch?M.width*Y:M.width}))),jt(A,M=>M.id,M=>M.width)})},[r]);const re=he.useCallback((W,E)=>{const O=document.getElementById(`${T}-${E}`),A=Math.max(W,80);if(q(O)||(O.style.width=`${A}px`,!j))return;const X=document.getElementById(T);if(q(X))return;const ne=ye(r.map(Y=>Y.id===E?A:G[Y.id]));X.style.width=`${ne}px`},[T,G,r,j]),ae=he.useCallback((W,E)=>{se(E)&&U(O=>({...O,[E]:Math.max(W,80)}))},[U]),be=he.useMemo(()=>ye(r.map(W=>G[W.id])),[G,r]),K=q(a)||a.length===0||Object.keys(G).length===0;return e.jsxs("div",{ref:R,className:N(ce.table,g),children:[!K&&e.jsx("div",{className:ce.tableOverflowWrapper,children:e.jsxs("table",{className:ce.tableElement,style:j?{width:`${be}px`}:void 0,id:T,children:[f&&e.jsx("caption",{className:b,children:f}),e.jsx("colgroup",{children:r.map(W=>{const{id:E,columnClassName:O}=W,A=G[E],X=j?{width:`${A}px`}:void 0;return e.jsx("col",{id:`${T}-${E}`,style:X,className:N(ce.column,O)},E)})}),!S&&e.jsx("thead",{children:e.jsx(it,{className:N(ce.headerRow,_),children:r.map((W,E)=>{const{id:O,title:A,headerCellRenderer:X,headerCellRendererClassName:ne,headerCellRendererParams:Y,headerContainerClassName:M}=W,ie=e.jsx(X,{...Y,name:O,title:A,index:E,className:N(ne,ce.headerComponent)});return e.jsx(Ha,{scope:"col",name:O,onResize:v?re:void 0,onResizeComplete:v?ae:void 0,className:N(ce.headerElement,typeof y=="function"?y(O):y,M),children:ie},O)})})}),e.jsx("tbody",{children:e.jsx(Aa,{data:a,keySelector:h,columns:r,rowClassName:x,cellClassName:w,rowModifier:C})})]})}),e.jsx(Nt,{filtered:k,empty:K,errored:I,pending:p,overlayPending:!0})]})}function Ga(m){const{className:a,value:h}=m;return q(h)?null:e.jsx("div",{className:a,children:h})}const Ya="common",Ka={sortTableButtonTitle:"Sort Table"},Xa={namespace:Ya,strings:Ka},Ja="_header-cell_vn24d_1",en="_sort-button_vn24d_8",tn="_icon_vn24d_12",an="_info-popup-icon_vn24d_17",de={headerCell:Ja,sortButton:en,icon:tn,infoPopupIcon:an};function ot(m){const{className:a,titleClassName:h,title:r,name:f,sortable:g,defaultSortDirection:b="asc",infoTitle:_,infoDescription:y}=m,{sorting:x,setSorting:w}=s.useContext(St),C=rt(Xa),j=x?.name===f?x.direction:void 0,v=s.useRef(null),S=s.useCallback(()=>{if(q(w))return;let p;q(j)?p=b:j==="asc"?p="dsc":j==="dsc"&&(p="asc"),w(p?{name:f,direction:p}:void 0)},[f,w,j,b]);return e.jsxs("div",{ref:v,className:N(a,de.headerCell),children:[g&&e.jsxs(Z,{name:void 0,variant:"tertiary",onClick:S,title:C.sortTableButtonTitle,className:de.sortButton,children:[q(j)&&e.jsx(Rt,{className:de.icon}),j==="asc"&&e.jsx(Lt,{className:de.icon}),j==="dsc"&&e.jsx(kt,{className:de.icon})]}),e.jsx("div",{className:N(h,de.title),children:r}),_&&y&&e.jsx(ca,{className:de.infoPopupIcon,title:_,description:y})]})}const at={};function Q(m,a,h,r){return{id:m,title:a,columnClassName:r?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:r?.headerCellRendererClassName,headerContainerClassName:r?.headerContainerClassName,headerCellRendererParams:{sortable:r?.sortable,infoTitle:r?.headerInfoTitle,infoDescription:r?.headerInfoDescription},cellRendererClassName:r?.cellRendererClassName,cellContainerClassName:r?.cellContainerClassName,cellRenderer:Ga,cellRendererParams:(f,g)=>({value:h(g)||"--"}),valueSelector:h,valueComparator:(f,g)=>Mt(h(f),h(g)),columnWidth:r?.columnWidth,columnStretch:r?.columnStretch,columnStyle:r?.columnStyle}}function D(m,a,h,r){return{id:m,title:a,columnClassName:r?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:N(at.numberCellHeader,r?.headerCellRendererClassName),headerContainerClassName:r?.headerContainerClassName,headerCellRendererParams:{sortable:r?.sortable,infoTitle:r?.headerInfoTitle,infoDescription:r?.headerInfoDescription},cellRendererClassName:N(at.numberCell,r?.cellRendererClassName),cellContainerClassName:r?.cellContainerClassName,cellRenderer:we,cellRendererParams:(f,g)=>({value:h(g),suffix:r?.suffix,maximumFractionDigits:r?.maximumFractionDigits,invalidText:"--"}),valueSelector:h,valueComparator:(f,g)=>It(h(f),h(g)),columnWidth:r?.columnWidth,columnStretch:r?.columnStretch,columnStyle:r?.columnStyle}}const nn="_tabSelector_vlxoe_1",sn="_progressSection_vlxoe_14",rn="_progressLabel_vlxoe_20",on="_chartGrid_vlxoe_28",ln="_chartContainer_vlxoe_40",cn="_tableContainer_vlxoe_51",dn="_modelPerformance_vlxoe_59",un="_loadingContainer_vlxoe_67",mn="_errorContainer_vlxoe_77",hn="_userInteractionCards_vlxoe_96",gn="_userInteractionCard_vlxoe_96",fn="_userInteractionCardValue_vlxoe_116",vn="_userInteractionCardLabel_vlxoe_123",pn="_userInteractionCardButton_vlxoe_130",xn="_summaryStatsCards_vlxoe_148",_n="_summaryStatsCard_vlxoe_148",Cn="_summaryStatsCardValue_vlxoe_169",yn="_summaryStatsCardLabel_vlxoe_176",c={tabSelector:nn,progressSection:sn,progressLabel:rn,chartGrid:on,chartContainer:ln,tableContainer:cn,modelPerformance:dn,loadingContainer:un,errorContainer:mn,userInteractionCards:hn,userInteractionCard:gn,userInteractionCardValue:fn,userInteractionCardLabel:vn,userInteractionCardButton:pn,summaryStatsCards:xn,summaryStatsCard:_n,summaryStatsCardValue:Cn,summaryStatsCardLabel:yn};function jn(){const[m]=Dt(),[a,h]=s.useState(null),[r,f]=s.useState(!0),[g,b]=s.useState("crisis_maps"),[_,y]=s.useState([]),[x,w]=s.useState([]),[C,j]=s.useState([]),[v,S]=s.useState([]),[p,k]=s.useState(!1),[I,R]=s.useState(!1),[T,G]=s.useState(!1),[U,re]=s.useState(!1),[ae,be]=s.useState(!1),[K,W]=s.useState(!1),E=t=>{k(t==="editTime"),R(t==="percentage"),G(t==="delete"),re(t==="regions"),be(t==="sources"),W(t==="types")},O=[{key:"crisis_maps",label:"Crisis Maps"},{key:"drone_images",label:"Drone Images"}],A=s.useCallback((t,l)=>{if(!t||!l)return 0;const i=t.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0),n=l.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0);if(i.length===0&&n.length===0)return 1;if(i.length===0||n.length===0)return 0;const o=new Set(i),d=new Set(n),P=new Set([...o].filter(u=>d.has(u))),F=new Set([...o,...d]);return P.size/F.size},[]),X=s.useCallback(async()=>{f(!0);try{const l=await(await fetch("/api/images")).json(),i={},n=l.filter(u=>u.image_type==="crisis_map"),o=l.filter(u=>u.image_type==="drone_image"),d={totalCaptions:l.length,sources:{},types:{},regions:{},models:{},modelEditTimes:i,percentageModified:0,modelPercentageData:{},totalDeleteCount:0,deleteRate:0,crisisMaps:n,droneImages:o};l.forEach(u=>{if(u.source&&(d.sources[u.source]=(d.sources[u.source]||0)+1),u.event_type&&(d.types[u.event_type]=(d.types[u.event_type]||0)+1),u.countries&&u.countries.forEach(L=>{L.r_code&&(d.regions[L.r_code]=(d.regions[L.r_code]||0)+1)}),u.model){const L=u.model,V=d.models[L]||={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0};if(V.count++,u.accuracy!=null&&(V.avgAccuracy+=u.accuracy),u.context!=null&&(V.avgContext+=u.context),u.usability!=null&&(V.avgUsability+=u.usability),u.created_at&&u.updated_at){const te=new Date(u.created_at).getTime(),Ce=new Date(u.updated_at).getTime()-te;Ce>0&&(i[L]||(i[L]=[]),i[L].push(Ce))}}}),_.forEach(u=>{u.s_code&&!d.sources[u.s_code]&&(d.sources[u.s_code]=0)}),x.forEach(u=>{u.t_code&&!d.types[u.t_code]&&(d.types[u.t_code]=0)}),C.forEach(u=>{u.r_code&&!d.regions[u.r_code]&&(d.regions[u.r_code]=0)}),["GPT-4","Claude","Gemini","Llama","Other"].forEach(u=>{d.models[u]||(d.models[u]={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0})}),Object.values(d.models).forEach(u=>{u.count>0&&(u.avgAccuracy=Math.round(u.avgAccuracy/u.count),u.avgContext=Math.round(u.avgContext/u.count),u.avgUsability=Math.round(u.avgUsability/u.count),u.totalScore=Math.round((u.avgAccuracy+u.avgContext+u.avgUsability)/3))});const F=l.filter(u=>u.generated&&u.edited);if(F.length>0){const L=[...F.map(oe=>A(oe.generated,oe.edited))].sort((oe,Ce)=>oe-Ce),V=Math.floor(L.length/2),te=L.length%2===0?(L[V-1]+L[V])/2:L[V];d.percentageModified=Math.round((1-te)*100)}const H={};l.forEach(u=>{if(u.model&&u.generated&&u.edited){const L=A(u.generated,u.edited),V=Math.round((1-L)*100);H[u.model]||(H[u.model]=[]),H[u.model].push(V)}}),d.modelPercentageData=H;try{const u=await fetch("/api/models");if(u.ok){const L=await u.json();if(L.models){L.models.forEach(te=>{d.models[te.m_code]&&(d.models[te.m_code].deleteCount=te.delete_count||0)});const V=L.models.reduce((te,oe)=>te+(oe.delete_count||0),0);d.totalDeleteCount=V,d.deleteRate=V>0?Math.round(V/(V+l.length)*100):0}}}catch(u){console.log("Could not fetch model delete counts:",u)}h(d)}catch{h(null)}finally{f(!1)}},[_,x,C,A]),ne=s.useCallback(async()=>{try{const[t,l,i,n]=await Promise.all([fetch("/api/sources"),fetch("/api/types"),fetch("/api/regions"),fetch("/api/models")]),o=await t.json(),d=await l.json(),P=await i.json(),F=await n.json();y(o),w(d),j(P),S(F.models||[])}catch(t){console.log("Could not fetch lookup data:",t)}},[]);s.useEffect(()=>{const t=m.get("view");(t==="crisis_maps"||t==="drone_images")&&b(t)},[m]),s.useEffect(()=>{ne()},[ne]),s.useEffect(()=>{_.length>0&&x.length>0&&C.length>0&&v.length>0&&X()},[_,x,C,v,X]);const Y=s.useCallback(t=>{const l=_.find(i=>i.s_code===t);return l?l.label:t},[_]),M=s.useCallback(t=>{if(t.length===0)return 0;const l=[...t].sort((n,o)=>n-o),i=Math.floor(l.length/2);return l.length%2===0?Math.round((l[i-1]+l[i])/2):l[i]},[]),ie=s.useCallback(t=>{const l=Math.floor(t/1e3),i=Math.floor(l/60),n=Math.floor(i/60);return n>0?`${n}h ${i%60}m`:i>0?`${i}m ${l%60}s`:`${l}s`},[]),_e=s.useCallback(t=>{const l=x.find(i=>i.t_code===t);return l?l.label:t},[x]),J=s.useCallback(t=>{const l=v.find(i=>i.m_code===t);return l?l.label:t},[v]),Se=s.useMemo(()=>a?Object.entries(a.modelEditTimes||{}).filter(([,t])=>t.length>0).sort(([,t],[,l])=>M(l)-M(t)).map(([t,l],i)=>({id:i+1,name:J(t),count:l.length,avgEditTime:M(l),minEditTime:Math.min(...l),maxEditTime:Math.max(...l)})):[],[a,M,J]),Me=s.useMemo(()=>a?Object.entries(a.modelPercentageData||{}).filter(([,t])=>t.length>0).sort(([,t],[,l])=>{const i=[...t].sort((H,u)=>H-u),n=[...l].sort((H,u)=>H-u),o=Math.floor(i.length/2),d=Math.floor(n.length/2),P=i.length%2===0?(i[o-1]+i[o])/2:i[o];return(n.length%2===0?(n[d-1]+n[d])/2:n[d])-P}).map(([t,l],i)=>{const n=[...l].sort((P,F)=>P-F),o=Math.floor(n.length/2),d=n.length%2===0?Math.round((n[o-1]+n[o])/2):n[o];return{id:i+1,name:J(t),count:l.length,avgPercentageModified:d,minPercentageModified:Math.min(...l),maxPercentageModified:Math.max(...l)}}):[],[a,J]),Ie=s.useMemo(()=>a?Object.entries(a.models).filter(([,t])=>t.count>0).map(([t,l],i)=>{const n=[l.avgAccuracy,l.avgContext,l.avgUsability],o=n.reduce((F,H)=>F+H,0)/n.length,d=n.reduce((F,H)=>F+Math.pow(H-o,2),0)/n.length,P=Math.round(100-Math.sqrt(d));return{id:i+1,name:J(t),consistency:Math.max(0,P),avgScore:Math.round(o),count:l.count}}).sort((t,l)=>l.consistency-t.consistency):[],[a,J]),De=s.useMemo(()=>[Q("name","Region",t=>t.name),D("count","Count",t=>t.count),D("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Ee=s.useMemo(()=>[Q("name","Type",t=>t.name),D("count","Count",t=>t.count),D("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),lt=s.useMemo(()=>[Q("name","Source",t=>t.name),D("count","Count",t=>t.count),D("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Te=s.useMemo(()=>[Q("name","Model",t=>t.name),D("count","Count",t=>t.count),D("accuracy","Accuracy",t=>t.accuracy,{suffix:"%",maximumFractionDigits:0}),D("context","Context",t=>t.context,{suffix:"%",maximumFractionDigits:0}),D("usability","Usability",t=>t.usability,{suffix:"%",maximumFractionDigits:0}),D("totalScore","Total Score",t=>t.totalScore,{suffix:"%",maximumFractionDigits:0})],[]),ke=s.useMemo(()=>[Q("name","Model",t=>t.name),D("count","Count",t=>t.count),Q("avgEditTime","Median Edit Time",t=>ie(t.avgEditTime)),Q("minEditTime","Min Edit Time",t=>ie(t.minEditTime)),Q("maxEditTime","Max Edit Time",t=>ie(t.maxEditTime))],[]),Le=s.useMemo(()=>[Q("name","Model",t=>t.name),D("count","Count",t=>t.count),D("avgPercentageModified","Median % Modified",t=>t.avgPercentageModified,{suffix:"%",maximumFractionDigits:0}),D("minPercentageModified","Min % Modified",t=>t.minPercentageModified,{suffix:"%",maximumFractionDigits:0}),D("maxPercentageModified","Max % Modified",t=>t.maxPercentageModified,{suffix:"%",maximumFractionDigits:0})],[]),Pe=s.useMemo(()=>[Q("name","Model",t=>t.name),D("count","Total Count",t=>t.count),D("deleteCount","Delete Count",t=>t.deleteCount),D("deleteRate","Delete Rate",t=>t.deleteRate,{suffix:"%",maximumFractionDigits:1})],[]),ct=s.useMemo(()=>[Q("source","Source",t=>t.source),D("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),D("count","Count",t=>t.count)],[]),Re=s.useMemo(()=>[Q("eventType","Event Type",t=>t.eventType),D("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),D("count","Count",t=>t.count)],[]),$e=s.useMemo(()=>[Q("name","Model",t=>t.name),D("consistency","Consistency",t=>t.consistency,{suffix:"%",maximumFractionDigits:0}),D("avgScore","Average Score",t=>t.avgScore,{suffix:"%",maximumFractionDigits:0}),D("count","Count",t=>t.count)],[]),ue=s.useCallback(t=>a?t==="crisis_map"?a.crisisMaps.length:t==="drone_image"?a.droneImages.length:0:0,[a]),Be=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.countries&&n.countries.forEach(o=>{o.r_code&&(i[o.r_code]=(i[o.r_code]||0)+1)})}),Object.entries(i).filter(([,n])=>n>0).map(([n,o])=>({name:C.find(d=>d.r_code===n)?.label||n,value:o}))},[a,C]),Ae=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};l.forEach(o=>{o.countries&&o.countries.forEach(d=>{d.r_code&&(i[d.r_code]=(i[d.r_code]||0)+1)})});const n=C.reduce((o,d)=>(d.r_code&&(o[d.r_code]={name:d.label,count:i[d.r_code]||0}),o),{});return Object.entries(n).sort(([,o],[,d])=>d.count-o.count).map(([,{name:o,count:d}],P)=>({id:P+1,name:o,count:d,percentage:l.length>0?Math.round(d/l.length*100):0}))},[a,C]),dt=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.source&&(i[n.source]=(i[n.source]||0)+1)}),Object.entries(i).filter(([,n])=>n>0).map(([n,o])=>({name:_.find(d=>d.s_code===n)?.label||n,value:o}))},[a,_]),ut=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.source&&(i[n.source]=(i[n.source]||0)+1)}),Object.entries(i).sort(([,n],[,o])=>o-n).map(([n,o],d)=>({id:d+1,name:Y(n),count:o,percentage:l.length>0?Math.round(o/l.length*100):0}))},[a,Y]),Fe=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.event_type&&(i[n.event_type]=(i[n.event_type]||0)+1)}),Object.entries(i).filter(([,n])=>n>0).map(([n,o])=>({name:x.find(d=>d.t_code===n)?.label||n,value:o}))},[a,x]),Oe=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.event_type&&(i[n.event_type]=(i[n.event_type]||0)+1)}),Object.entries(i).sort(([,n],[,o])=>o-n).map(([n,o],d)=>({id:d+1,name:_e(n),count:o,percentage:l.length>0?Math.round(o/l.length*100):0}))},[a,_e]),He=s.useCallback(t=>{if(!a)return"No data available";const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i=new Set;l.forEach(d=>{d.model&&i.add(d.model)}),console.log(`Debug ${t}:`,{totalImages:l.length,usedModels:Array.from(i),availableEditTimes:Object.keys(a.modelEditTimes),modelEditTimesData:a.modelEditTimes});const o=Object.entries(a.modelEditTimes).filter(([d])=>i.has(d)).flatMap(([,d])=>d);return o.length===0?"No data available":ie(M(o))},[a,ie,M]),Ve=s.useCallback(()=>{if(!a)return"No data available";const t=a.totalCaptions||0,l=a.percentageModified||0;return t>0?Math.round(l/t*100):0},[a]),ze=s.useCallback(()=>a&&a.deleteRate>=0?`${a.deleteRate}%`:"No data available",[a]),Ue=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i=new Set;return l.forEach(o=>{o.model&&i.add(o.model)}),Se.filter(o=>{const d=v.find(P=>P.label===o.name)?.m_code;return d&&i.has(d)})},[a,Se,v]),We=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i=new Set;return l.forEach(o=>{o.model&&i.add(o.model)}),Me.filter(o=>{const d=v.find(P=>P.label===o.name)?.m_code;return d&&i.has(d)})},[a,Me,v]),Qe=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.model&&(i[n.model]||(i[n.model]={count:0,deleteCount:0}),i[n.model].count++)}),Object.entries(i).map(([n,o],d)=>{const F=a.models?.[n]?.deleteCount||0,H=o.count>0?Math.round(F/o.count*100*10)/10:0;return{id:d+1,name:J(n),count:o.count,deleteCount:F,deleteRate:H}}).sort((n,o)=>o.count-n.count)},[a,J]),Ze=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.model&&(i[n.model]||(i[n.model]={count:0,totalAccuracy:0,totalContext:0,totalUsability:0}),i[n.model].count++,n.accuracy!=null&&(i[n.model].totalAccuracy+=n.accuracy),n.context!=null&&(i[n.model].totalContext+=n.context),n.usability!=null&&(i[n.model].totalUsability+=n.usability))}),Object.entries(i).map(([n,o],d)=>({id:d+1,name:J(n),count:o.count,accuracy:o.count>0?Math.round(o.totalAccuracy/o.count):0,context:o.count>0?Math.round(o.totalContext/o.count):0,usability:o.count>0?Math.round(o.totalUsability/o.count):0,totalScore:o.count>0?Math.round((o.totalAccuracy+o.totalContext+o.totalUsability)/(3*o.count)):0})).sort((n,o)=>o.totalScore-n.totalScore)},[a,J]),mt=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.source&&(i[n.source]||(i[n.source]={total:0,count:0,totalImages:0}),i[n.source].totalImages+=1,n.accuracy!=null&&(i[n.source].total+=n.accuracy,i[n.source].count+=1))}),Object.entries(i).map(([n,o],d)=>({id:d+1,source:Y(n),avgQuality:o.count>0?Math.round(o.total/o.count):0,count:o.totalImages}))},[a,Y]),qe=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i={};return l.forEach(n=>{n.event_type&&(i[n.event_type]||(i[n.event_type]={total:0,count:0,totalImages:0}),i[n.event_type].totalImages+=1,n.accuracy!=null&&(i[n.event_type].total+=n.accuracy,i[n.event_type].count+=1))}),Object.entries(i).map(([n,o],d)=>({id:d+1,eventType:_e(n),avgQuality:o.count>0?Math.round(o.total/o.count):0,count:o.totalImages}))},[a,_e]),Ge=s.useCallback(t=>{if(!a)return[];const l=t==="crisis_map"?a.crisisMaps:a.droneImages,i=new Set;return l.forEach(o=>{o.model&&i.add(o.model)}),Ie.filter(o=>{const d=v.find(P=>P.label===o.name)?.m_code;return d&&i.has(d)})},[a,Ie,v]);if(r)return e.jsx(je,{children:e.jsx("div",{className:c.loadingContainer,children:e.jsx(Et,{})})});if(!a)return e.jsx(je,{children:e.jsx("div",{className:c.errorContainer,children:e.jsx("div",{className:"text-red-500",children:"Failed to load analytics data. Please try again."})})});const me=["#F5333F","#F64752","#F75C65","#F87079","#F9858C","#FA999F","#FBADB2","#FCC2C5"];return e.jsx(je,{children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsx("div",{className:c.tabSelector,children:e.jsx(Tt,{name:"analytics-view",value:g,onChange:t=>{(t==="crisis_maps"||t==="drone_images")&&b(t)},options:O,keySelector:t=>t.key,labelSelector:t=>t.label})}),g==="crisis_maps"?e.jsxs("div",{className:c.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.summaryStatsCards,children:[e.jsxs("div",{className:c.summaryStatsCard,children:[e.jsx("div",{className:c.summaryStatsCardValue,children:ue("crisis_map")}),e.jsx("div",{className:c.summaryStatsCardLabel,children:"Total Crisis Maps"})]}),e.jsxs("div",{className:c.summaryStatsCard,children:[e.jsx("div",{className:c.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:c.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:c.progressSection,children:[e.jsxs("div",{className:c.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("crisis_map")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("crisis_map"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.userInteractionCards,children:[e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:c.chartContainer,children:e.jsx(xe,{data:Be("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>E(U?"none":"regions"),className:c.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardLabel,children:"Sources Distribution"}),e.jsx("div",{className:c.chartContainer,children:e.jsx(xe,{data:dt("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-sources-details",variant:ae?"primary":"secondary",onClick:()=>E(ae?"none":"sources"),className:c.userInteractionCardButton,children:ae?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:c.chartContainer,children:e.jsx(xe,{data:Fe("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>E(K?"none":"types"),className:c.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ae("crisis_map"),columns:De,keySelector:$,filtered:!1,pending:!1})}),ae&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:ut("crisis_map"),columns:lt,keySelector:$,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Oe("crisis_map"),columns:Ee,keySelector:$,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.userInteractionCards,children:[e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:He("crisis_map")}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>E(p?"none":"editTime"),className:c.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>E(I?"none":"percentage"),className:c.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:ze()}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:T?"primary":"secondary",onClick:()=>E(T?"none":"delete"),className:c.userInteractionCardButton,children:T?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ue("crisis_map"),columns:ke,keySelector:$,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:We("crisis_map"),columns:Le,keySelector:$,filtered:!1,pending:!1})}),T&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Qe("crisis_map"),columns:Pe,keySelector:$,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ze("crisis_map"),columns:Te,keySelector:$,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Source Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.tableContainer,children:e.jsx(B,{data:mt("crisis_map"),columns:ct,keySelector:$,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.tableContainer,children:e.jsx(B,{data:qe("crisis_map"),columns:Re,keySelector:$,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.tableContainer,children:e.jsx(B,{data:Ge("crisis_map"),columns:$e,keySelector:$,filtered:!1,pending:!1})})})]}):e.jsxs("div",{className:c.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.summaryStatsCards,children:[e.jsxs("div",{className:c.summaryStatsCard,children:[e.jsx("div",{className:c.summaryStatsCardValue,children:ue("drone_image")}),e.jsx("div",{className:c.summaryStatsCardLabel,children:"Total Drone Images"})]}),e.jsxs("div",{className:c.summaryStatsCard,children:[e.jsx("div",{className:c.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:c.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:c.progressSection,children:[e.jsxs("div",{className:c.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("drone_image")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("drone_image"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.userInteractionCards,children:[e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:c.chartContainer,children:e.jsx(xe,{data:Be("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>E(U?"none":"regions"),className:c.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:c.chartContainer,children:e.jsx(xe,{data:Fe("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>E(K?"none":"types"),className:c.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ae("drone_image"),columns:De,keySelector:$,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Oe("drone_image"),columns:Ee,keySelector:$,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:c.userInteractionCards,children:[e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:He("drone_image")}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>E(p?"none":"editTime"),className:c.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>E(I?"none":"percentage"),className:c.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:c.userInteractionCard,children:[e.jsx("div",{className:c.userInteractionCardValue,children:ze()}),e.jsx("div",{className:c.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:T?"primary":"secondary",onClick:()=>E(T?"none":"delete"),className:c.userInteractionCardButton,children:T?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ue("drone_image"),columns:ke,keySelector:$,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:We("drone_image"),columns:Le,keySelector:$,filtered:!1,pending:!1})}),T&&e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Qe("drone_image"),columns:Pe,keySelector:$,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.modelPerformance,children:e.jsx(B,{data:Ze("drone_image"),columns:Te,keySelector:$,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.tableContainer,children:e.jsx(B,{data:qe("drone_image"),columns:Re,keySelector:$,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:c.tableContainer,children:e.jsx(B,{data:Ge("drone_image"),columns:$e,keySelector:$,filtered:!1,pending:!1})})})]})]})})}export{jn as default}; diff --git "a/py\342\200\224backend/static/index-DkIjYZRi.css" "b/py\342\200\224backend/static/index-DkIjYZRi.css" new file mode 100644 index 0000000000000000000000000000000000000000..a8760da17730268fcd786eb88d9c911e4ccab0b8 --- /dev/null +++ "b/py\342\200\224backend/static/index-DkIjYZRi.css" @@ -0,0 +1 @@ +:root{--go-ui-font-family-sans-serif: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;--go-ui-font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;--go-ui-font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;--base-font-size: .875rem;--go-ui-font-size-export: .6875rem;--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: var(--base-font-size);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.5);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.875);--go-ui-font-size-4xl: calc(var(--base-font-size) * 2.375);--go-ui-height-icon-multiplier: 1.33em;--go-ui-height-brand-icon: 2.5rem;--go-ui-height-social-icon: 2.5rem;--go-ui-height-key-figure-icon: 3rem;--go-ui-height-status-icon: 2.5rem;--go-ui-height-compact-status-icon: 2rem;--go-ui-line-height-none: 1;--go-ui-line-height-xs: 1.25;--go-ui-line-height-sm: 1.375;--go-ui-line-height-md: 1.5;--go-ui-font-weight-light: 300;--go-ui-font-weight-normal: 400;--go-ui-font-weight-medium: 500;--go-ui-font-weight-semibold: 600;--go-ui-font-weight-bold: 700;--go-ui-width-screen-sm: 640px;--go-ui-width-screen-md: 768px;--go-ui-width-screen-lg: 1024px;--go-ui-width-screen-xl: 1280px;--go-ui-width-screen-2xl: 1536px;--base-spacing: 1rem;--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.5);--go-ui-spacing-xl: calc(var(--base-spacing) * 2.25);--go-ui-spacing-2xl: calc(var(--base-spacing) * 3.5);--go-ui-spacing-3xl: calc(var(--base-spacing) * 4.75);--go-ui-spacing-4xl: calc(var(--base-spacing) * 6);--go-ui-spacing-5xl: calc(var(--base-spacing) * 7.25);--go-ui-width-separator-sm: 1pt;--go-ui-width-separator-md: 2pt;--go-ui-width-separator-lg: 4pt;--go-ui-width-separator-xl: 8pt;--go-ui-width-separator-thin: 1pt;--go-ui-width-separator-small: 2pt;--go-ui-width-separator-thick: 4pt;--go-ui-width-separator-medium: 6pt;--go-ui-width-separator-large: 8pt;--go-ui-width-separator-dense: 12pt;--go-ui-width-separator-extra-dense: 14pt;--go-ui-border-radius-none: 0;--go-ui-border-radius-sm: .125rem;--go-ui-border-radius-md: .25rem;--go-ui-border-radius-lg: .5rem;--go-ui-border-radius-xl: .75rem;--go-ui-border-radius-2xl: 1rem;--go-ui-border-radius-3xl: 1.5rem;--go-ui-border-radius-full: 9999px;--go-ui-box-shadow-xs: 0 1pt 2pt rgba(0, 0, 0, .2);--go-ui-box-shadow-sm: 0 1pt 4pt rgba(0, 0, 0, .2);--go-ui-box-shadow-md: 0 1pt 5pt -2pt rgba(0, 0, 0, .375);--go-ui-box-shadow-lg: 0 2pt 8pt -4pt rgba(0, 0, 0, .5);--go-ui-box-shadow-xl: 0 3pt 16pt -6pt rgba(0, 0, 0, .5);--go-ui-box-shadow-2xl: 0 4pt 16pt -6pt rgba(0, 0, 0, 1);--go-ui-box-shadow-inner: inset 0 2pt 4pt 0 rgba(0, 0, 0, .375);--go-ui-box-shadow-none: 0 0 rgba(0,0,0,0);--go-ui-duration-transition-fast: .1s;--go-ui-duration-transition-medium: .2s;--go-ui-duration-transition-slow: .5s;--go-ui-duration-animation-fast: .5s;--go-ui-duration-animation-medium: 1s;--go-ui-duration-animation-slow: 2s;--go-ui-color-orange: #FF8000;--go-ui-color-green: #7FB845;--go-ui-color-blue: #3FA2F7;--go-ui-color-red: #F75C65;--go-ui-color-yellow: #d9b100;--go-ui-color-semantic-yellow: #FFB443;--go-ui-color-black: #000000;--go-ui-color-white: #ffffff;--go-ui-color-gray-10: #FAFAFA;--go-ui-color-gray-20: #F2F2F2;--go-ui-color-gray-30: #E0E0E0;--go-ui-color-gray-40: #C6C6C6;--go-ui-color-gray-50: #A8A8A8;--go-ui-color-gray-60: #8D8D8D;--go-ui-color-gray-70: #6F6F6F;--go-ui-color-gray-80: #525252;--go-ui-color-gray-90: #323232;--go-ui-color-red-10: #FDD6D9;--go-ui-color-red-20: #FCC2C5;--go-ui-color-red-30: #FBADB2;--go-ui-color-red-40: #FA999F;--go-ui-color-red-50: #F9858C;--go-ui-color-red-60: #F87079;--go-ui-color-red-70: #F75C65;--go-ui-color-red-80: #F64752;--go-ui-color-red-90: #F5333F;--go-ui-color-dark-blue-10: #009CDD;--go-ui-color-dark-blue-20: #418FDE;--go-ui-color-dark-blue-30: #236192;--go-ui-color-dark-blue-40: #1B365D;--go-ui-color-blue-10: #E0E3E7;--go-ui-color-blue-20: #CCD2D9;--go-ui-color-blue-30: #AEB7C2;--go-ui-color-blue-40: #99A5B3;--go-ui-color-blue-50: #7D8B9D;--go-ui-color-blue-60: #67788D;--go-ui-color-blue-70: #4D617A;--go-ui-color-blue-80: #344B67;--go-ui-color-blue-90: #011E41;--go-ui-color-primary-red: var(--go-ui-color-red-90);--go-ui-color-primary-blue: var(--go-ui-color-blue-90);--go-ui-color-primary-gray: var(--go-ui-color-gray-90);--go-ui-color-red-hover: #DE2934;--go-ui-color-purple-per: #8648B3;--go-ui-color-orange-per: #FF8654;--go-ui-color-blue-per: #418FDE;--go-ui-color-teal-per: #00B2A2;--go-ui-color-red-per: #DA283D;--go-ui-color-text-black: rgba(0, 0, 0, 1);--go-ui-color-text: rgba(0, 0, 0, .8);--go-ui-color-text-light: rgba(0, 0, 0, .5);--go-ui-color-positive: var(--go-ui-color-green);--go-ui-color-information: var(--go-ui-color-blue);--go-ui-color-warning: var(--go-ui-color-yellow);--go-ui-color-negative: var(--go-ui-color-red);--go-ui-color-separator: rgba(0, 0, 0, .1);--go-ui-color-separator-light: rgba(0, 0, 0, .05);--go-ui-color-background: #f7f7f7;--go-ui-color-foreground: #ffffff;--go-ui-color-element-background: rgba(0, 0, 0, .06);--go-ui-color-readonly-element-background: rgba(0, 0, 0, .03);--go-ui-color-background-overlay: rgba(255, 255, 255, .88);--go-ui-color-background-overlay-dark: rgba(0, 0, 0, .5);--go-ui-color-background-hover: rgba(0, 0, 0, .06);--go-ui-opacity-disabled-element: .5;--go-ui-opacity-chart-point: .8;--go-ui-opacity-message: .8;--go-ui-content-min-height: 13rem;--go-ui-compact-content-min-height: 7rem;--go-ui-width-min-modal: 18rem;--go-ui-height-min-modal: 11rem;--go-ui-width-modal-sm: 32rem;--go-ui-height-modal-sm: 100%;--go-ui-width-modal-md: 42rem;--go-ui-height-modal-md: 100%;--go-ui-width-modal-lg: 64rem;--go-ui-height-modal-lg: 100%;--go-ui-width-modal-xl: 92rem;--go-ui-height-modal-xl: 100%;--go-ui-saturate-0: 0;--go-ui-saturate-50: .5;--go-ui-saturate-100: 1;--go-ui-saturate-150: 1.5;--go-ui-saturate-200: 2;--go-ui-color-hazard-fi: #b7c992;--go-ui-color-map-dot-appeals: #f5333f;--go-ui-color-map-dot-dref: #ff9e00;--go-ui-color-map-dot-fba: #ff6b00;--go-ui-color-map-dot-multiple-types: #4c5d9b;--go-ui-width-content-max: 50rem;--go-ui-page-header-description-width-max: var(--go-ui-width-content-max);--go-ui-page-width-max: 90rem;--mapbox-icon-width: 88px;--go-ui-export-page-margin: 10mm 10mm 16mm 10mm}@media screen and (max-width: 40rem){:root{--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: calc(var(--base-font-size) * 1);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.4);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.6);--go-ui-font-size-4xl: calc(var(--base-font-size) * 1.8)}}@media screen and (max-width: 40rem){:root{--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.25);--go-ui-spacing-xl: calc(var(--base-spacing) * 1.5625);--go-ui-spacing-2xl: calc(var(--base-spacing) * 1.95);--go-ui-spacing-3xl: calc(var(--base-spacing) * 2.44);--go-ui-spacing-4xl: calc(var(--base-spacing) * 3);--go-ui-spacing-5xl: calc(var(--base-spacing) * 3.8)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.left-1\/2{left:50%}.z-50{z-index:50}.mx-auto{margin-inline:auto}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.min-h-\[60vh\]{min-height:60vh}.min-h-\[400px\]{min-height:400px}.w-full{width:100%}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-105{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-none{--tw-border-style:none;border-style:none}.bg-transparent{background-color:#0000}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.object-cover{-o-object-fit:cover;object-fit:cover}.text-center{text-align:center}.text-left{text-align:left}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.opacity-50{opacity:.5}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}}*{box-sizing:border-box}@media screen{html{scrollbar-gutter:stable;margin:0;padding:0}}body{line-height:var(--go-ui-line-height-md);color:var(--go-ui-color-text);font-family:var(--go-ui-font-family-sans-serif);font-size:var(--go-ui-font-size-md);font-weight:var(--go-ui-font-weight-normal)}@media screen{body{background-color:var(--go-ui-color-background);margin:0;padding:0}}ul,ol,p{margin:0}@media print{@page{size:portrait A4;margin:10mm 10mm 16mm}body{font-family:Open Sans,sans-serif}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}._raw-button_1p3om_1{position:relative;outline-offset:var(--go-ui-width-separator-lg);border:0;background-color:transparent;cursor:pointer;padding:0;color:inherit;font-family:inherit;font-size:inherit}._raw-button_1p3om_1:focus-visible,._raw-button_1p3om_1._focused_1p3om_13{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:-4px}._button_18a84_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--font-size: inherit;--border-radius: var(--go-ui-border-radius-full);--text-transform: none;--cursor: default;--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-lg);display:inline-flex;position:relative;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);line-height:var(--go-ui-line-height-xs);color:inherit;color:var(--color-text);font-family:inherit;font-size:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-medium)}._button_18a84_1._ellipsized_18a84_29{flex-grow:1}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32{display:block;min-width:0}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32 ._overflow-wrapper_18a84_36{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._button_18a84_1._primary_18a84_44 ._children_18a84_32,._button_18a84_1._secondary_18a84_45 ._children_18a84_32{text-align:center}._button_18a84_1._primary_18a84_44._no-spacing_18a84_50,._button_18a84_1._secondary_18a84_45._no-spacing_18a84_50{--padding: 0}._button_18a84_1._primary_18a84_44._condensed-spacing_18a84_54,._button_18a84_1._secondary_18a84_45._condensed-spacing_18a84_54,._button_18a84_1._primary_18a84_44._compact-spacing_18a84_58,._button_18a84_1._secondary_18a84_45._compact-spacing_18a84_58{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._button_18a84_1._primary_18a84_44._cozy-spacing_18a84_62,._button_18a84_1._secondary_18a84_45._cozy-spacing_18a84_62,._button_18a84_1._primary_18a84_44._default-spacing_18a84_66,._button_18a84_1._secondary_18a84_45._default-spacing_18a84_66{--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._button_18a84_1._primary_18a84_44._comfortable-spacing_18a84_70,._button_18a84_1._secondary_18a84_45._comfortable-spacing_18a84_70{--padding: var(--go-ui-spacing-2xs) var(--go-ui-spacing-lg)}._button_18a84_1._primary_18a84_44._relaxed-spacing_18a84_74,._button_18a84_1._secondary_18a84_45._relaxed-spacing_18a84_74{--padding: var(--go-ui-spacing-xs) var(--go-ui-spacing-xl)}._button_18a84_1._primary_18a84_44._loose-spacing_18a84_78,._button_18a84_1._secondary_18a84_45._loose-spacing_18a84_78{--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-2xl)}._button_18a84_1._primary_18a84_44{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_18a84_1._primary_18a84_44._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._primary_18a84_44:not(._disabled_18a84_88):hover{--color-background: var(--go-ui-color-red-hover)}._button_18a84_1._secondary_18a84_45{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._secondary_18a84_45._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._secondary_18a84_45:not(._disabled_18a84_88):hover{background-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._button_18a84_1._tertiary_18a84_116{--color-border: transparent;--color-background: transparent;--color-text: inherit;--padding: 0;--border-radius: unset}._button_18a84_1._tertiary_18a84_116:not(._disabled_18a84_88):hover{--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._tertiary-on-dark_18a84_130{--color-border: transparent;--color-background: transparent;--color-text: var(--go-ui-color-white);--padding: 0;--border-radius: unset}._button_18a84_1._tertiary-on-dark_18a84_130:not(._disabled_18a84_88):hover{opacity:.8}._button_18a84_1._dropdown-item_18a84_144{display:flex;width:100%;text-align:left;--border-radius: unset;--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._button_18a84_1._dropdown-item_18a84_144:hover{background-color:var(--go-ui-color-background-hover)}._button_18a84_1._disabled_18a84_88{opacity:var(--go-ui-opacity-disabled-element);--cursor: not-allowed}._button_18a84_1:not(._disabled_18a84_88){--cursor: pointer}._basic-layout_v9jro_1{display:flex;align-items:flex-start}._basic-layout_v9jro_1._with-wrap_v9jro_5{flex-wrap:wrap}._basic-layout_v9jro_1 ._icons-container_v9jro_9{display:flex;align-items:flex-start}._basic-layout_v9jro_1 ._children-container_v9jro_14{display:flex;flex-grow:1}._basic-layout_v9jro_1 ._actions-container_v9jro_19{display:flex;align-items:flex-start}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._icons-container_v9jro_9{flex-shrink:0}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._actions-container_v9jro_19{flex-shrink:0}._alert_uuuo4_1{display:flex;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-2xl);width:calc(14rem + 16vw);color:var(--go-ui-color-white)}._alert_uuuo4_1 ._icon_uuuo4_8,._alert_uuuo4_1 ._close-icon_uuuo4_12{font-size:var(--go-ui-font-size-2xl)}._alert_uuuo4_1._info_uuuo4_16{background-color:var(--go-ui-color-gray-80)}._alert_uuuo4_1._success_uuuo4_20{background-color:var(--go-ui-color-positive)}._alert_uuuo4_1._danger_uuuo4_24{background-color:var(--go-ui-color-negative)}._alert_uuuo4_1._warning_uuuo4_28{background-color:var(--go-ui-color-warning)}._container_lyve2_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:flex;flex-direction:column}._container_lyve2_1 ._header_lyve2_8{flex-shrink:0}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11{display:flex;flex-direction:row;justify-content:center}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11 ._centered-description_lyve2_16{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._container_lyve2_1._with-border-and-header-background_lyve2_23{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md)}._container_lyve2_1._with-border-and-header-background_lyve2_23 ._header_lyve2_8{border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-background)}._container_lyve2_1 ._border_lyve2_33{flex-shrink:0;margin:0;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._container_lyve2_1 ._content_lyve2_39{flex-grow:1}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42{isolation:isolate;position:relative;min-height:6rem}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42 ._message_lyve2_47{z-index:1}._container_lyve2_1 ._footer_lyve2_53{flex-shrink:0}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr))}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39 ._message_lyve2_47{grid-column:1 / -1}._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--num-columns: 2}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--num-columns: 3}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._four-columns_lyve2_96{--num-columns: 4}._container_lyve2_1._with-grid-view_lyve2_57._five-columns_lyve2_100{--num-columns: 5}._container_lyve2_1._with-vertical-view_lyve2_105>._content_lyve2_39{display:flex;flex-direction:column}._container_lyve2_1._with-overflow-in-content_lyve2_112>._content_lyve2_39{overflow:auto}._default-message_wu986_1._overlay_wu986_2{position:absolute;top:0;left:0;width:100%;height:100%}._message_176iw_1{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-sm);justify-content:center;opacity:var(--go-ui-opacity-message);background-color:var(--go-ui-color-foreground);padding:var(--go-ui-spacing-md);min-height:var(--go-ui-content-min-height);text-align:center}._message_176iw_1 ._icon_176iw_13{color:var(--go-ui-color-text-light);font-size:var(--go-ui-height-status-icon)}._message_176iw_1 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-height-compact-status-icon)}._message_176iw_1 ._title_176iw_22{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._errored_176iw_27 ._title_176iw_22{color:var(--go-ui-color-primary-red)}._message_176iw_1._compact_176iw_33{padding:var(--go-ui-spacing-sm);min-height:var(--go-ui-compact-content-min-height)}._message_176iw_1._compact_176iw_33 ._title_176iw_22{font-size:var(--go-ui-font-size-lg)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13{font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-font-size-xl)}._spinner_50bgg_1{display:inline-flex;border-radius:var(--go-ui-border-radius-full);background:var(--go-ui-color-gray-40);padding:.2em;line-height:0;gap:.2em}._spinner_50bgg_1 ._spinner-bounce_50bgg_9{border-radius:50%;background:var(--go-ui-color-white);width:.6em;height:.6em;animation:_spinner-bounce-delay_50bgg_1 var(--go-ui-duration-animation-slow) infinite ease-in-out both}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(1){animation-delay:calc(var(--go-ui-duration-animation-fast))}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(2){animation-delay:calc(var(--go-ui-duration-animation-fast) * 2)}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(3){animation-delay:calc(var(--go-ui-duration-animation-fast) * 3)}@keyframes _spinner-bounce-delay_50bgg_1{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}._filter-bar_16xsj_1{display:flex;flex-direction:column}._grid-with-actions_16xsj_6{display:flex}._grid-with-actions_16xsj_6 ._grid_16xsj_6{display:grid;flex-grow:1;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._grid-with-actions_16xsj_6 ._actions_16xsj_15{display:flex}@media screen and (max-width: 30rem){._grid-with-actions_16xsj_6{flex-wrap:wrap}}._header_537v1_1{display:flex;flex-direction:column}._heading_1uxwj_1{--font-size: var(--go-ui-font-size-xl);--line-height: var(--go-ui-line-height-sm);margin:0;line-height:var(--line-height);font-size:var(--font-size);font-weight:var(--go-ui-font-weight-semibold)}._heading_1uxwj_1._level-one_1uxwj_9{--font-size: var(--go-ui-font-size-4xl)}@media print{._heading_1uxwj_1._level-one_1uxwj_9{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-two_1uxwj_17{--font-size: var(--go-ui-font-size-2xl)}@media print{._heading_1uxwj_1._level-two_1uxwj_17{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-three_1uxwj_25{--font-size: var(--go-ui-font-size-xl)}@media print{._heading_1uxwj_1._level-three_1uxwj_25{color:var(--go-ui-color-primary-red)}}._heading_1uxwj_1._level-four_1uxwj_33{--font-size: var(--go-ui-font-size-lg)}._heading_1uxwj_1._level-five_1uxwj_37{--font-size: var(--go-ui-font-size-md)}._heading_1uxwj_1._level-six_1uxwj_41{--font-size: var(--go-ui-font-size-sm)}._heading_1uxwj_1 ._ellipsized-text_1uxwj_45{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._heading_1uxwj_1._ellipsized_1uxwj_45{width:100%;overflow:auto}._alert-container_rcayz_1{isolation:isolate;position:fixed;top:0;left:50%;transform:translate(-50%);z-index:1;padding:var(--go-ui-spacing-2xl) 0;max-height:calc(100vh - 2 * var(--go-ui-spacing-2xl));overflow:auto;scrollbar-width:none}._alert-container_rcayz_1::-webkit-scrollbar{display:none}._alert-container_rcayz_1 ._alert_rcayz_1{margin:var(--go-ui-spacing-sm) 0}._bar-chart_3dbpc_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-sm)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6{display:flex;align-items:center;gap:var(--go-ui-spacing-md)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6._hoverable_3dbpc_11:hover{background-color:var(--go-ui-color-background-hover)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._label_3dbpc_17{width:30%;font-weight:var(--go-ui-font-weight-medium)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22{border-radius:.3rem;background-color:var(--go-ui-color-gray-30);width:60%;height:.6rem}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22 ._bar_3dbpc_1{border-radius:.3rem;background-color:var(--go-ui-color-primary-red);height:100%}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._value_3dbpc_36{width:10%;font-weight:var(--go-ui-font-weight-medium)}._number-output_1blvi_1{display:inline;font-size:inherit}._tooltip-dummy_rbf3f_1{opacity:0;width:0;height:0}._tooltip-content_rbf3f_7{opacity:0;padding:0;animation:_slide-down_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast)}._pointer_rbf3f_14{opacity:0;animation:_fade-in_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium)}@keyframes _slide-down_rbf3f_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_rbf3f_1{0%{opacity:0}to{opacity:1}}._popup_cws49_1{position:fixed;border-radius:var(--go-ui-spacing-xs);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);max-height:40vh;overflow:auto}._popup_cws49_1._top-orientation_cws49_9{box-shadow:0 -8pt 20pt -5pt #00000080}._pointer_cws49_15{position:fixed;transform:translate(-50%);background-color:transparent;line-height:0;color:var(--go-ui-color-white);font-size:.5rem;pointer-events:none;filter:drop-shadow(0 -1pt 1pt rgba(0,0,0,.1))}._pointer_cws49_15 ._icon_cws49_25{width:2em;height:1em;fill:currentColor}._pointer_cws49_15._top-orientation_cws49_9{transform:translate(-50%) rotate(180deg)}._block-loading_1jl3q_1{display:flex;padding:var(--go-ui-spacing-sm);width:100%;min-height:var(--go-ui-content-min-height)}._block-loading_1jl3q_1 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-4xl)}._block-loading_1jl3q_1 ._inner_1jl3q_11{display:flex;align-items:center;flex-direction:column;flex-grow:1;justify-content:center;padding:var(--go-ui-spacing-sm);gap:var(--go-ui-spacing-md)}._block-loading_1jl3q_1._with-border_1jl3q_21 ._inner_1jl3q_11{border:var(--go-ui-width-separator-md) dashed var(--go-ui-color-gray-40);border-radius:var(--go-ui-border-radius-xl)}._block-loading_1jl3q_1._compact_1jl3q_28{min-height:var(--go-ui-compact-content-min-height)}._block-loading_1jl3q_1._compact_1jl3q_28 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-xl)}._overlay_cnygi_1{position:absolute;background-color:var(--go-ui-color-background-overlay);width:100%;height:100%}._overlay_cnygi_1._dark_cnygi_7{background-color:var(--go-ui-color-background-overlay-dark)}._body-overlay_1iouu_1{display:flex;position:fixed;top:0;left:0;align-items:center;justify-content:center;width:100vw;height:100vh}._radio-input_17cft_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._radio-input_17cft_1 ._radio-list-container_17cft_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);min-height:1em}._radio-input_17cft_1._disabled_17cft_13{opacity:var(--go-ui-opacity-disabled-element);filter:saturate(50%)}._radio-input_17cft_1 ._input-hint_17cft_18{padding:var(--go-ui-spacing-xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._input-error_1sxiz_1{display:flex;align-items:center;opacity:0;background-color:var(--go-ui-color-red);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);animation:_slide-down_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast);color:var(--go-ui-color-white);gap:var(--go-ui-spacing-sm)}._pointer_1sxiz_14{opacity:0;animation:_fade-in_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium);color:var(--go-ui-color-red)}@keyframes _slide-down_1sxiz_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_1sxiz_1{0%{opacity:0}to{opacity:1}}._input-label_3lsx4_1{display:flex;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);gap:var(--go-ui-spacing-xs)}._input-label_3lsx4_1._disabled_3lsx4_7{color:var(--go-ui-color-gray-40)}._input-label_3lsx4_1 ._required_3lsx4_11{color:var(--go-ui-color-primary-red)}._radio_1uudv_1{--cursor: default;cursor:default;cursor:var(--cursor)}._radio_1uudv_1 ._icon_1uudv_5{transition:var(--go-ui-duration-transition-medium) color ease-in-out;font-size:var(--go-ui-height-icon-multiplier)}._radio_1uudv_1 ._content_1uudv_10{flex-direction:column;gap:0;line-height:var(--go-ui-line-height-sm)}._radio_1uudv_1 ._description_1uudv_16{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._radio_1uudv_1 ._input_1uudv_21{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._radio_1uudv_1 ._input_1uudv_21:focus-visible+div{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:1px;border-radius:50%}._radio_1uudv_1._active_1uudv_37 ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1._disabled_1uudv_43{opacity:var(--go-ui-opacity-disabled-element)}._radio_1uudv_1:not(._disabled_1uudv_43):focus ._icon_1uudv_5,._radio_1uudv_1:not(._disabled_1uudv_43):hover ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1:not(._disabled_1uudv_43):not(._read-only_1uudv_55){--cursor: pointer}._boolean-output_kg1uq_1{color:inherit}._breadcrumbs_c7c54_1{display:flex;align-items:center;flex-wrap:wrap}._breadcrumbs_c7c54_1 ._item_c7c54_6{display:flex}._breadcrumbs_c7c54_1 ._item_c7c54_6:not(:last-child){color:var(--go-ui-color-gray-70)}._breadcrumbs_c7c54_1 ._item_c7c54_6:last-child{color:var(--go-ui-color-black)}._breadcrumbs_c7c54_1 ._separator_c7c54_18{display:flex;justify-content:center;color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-xl)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2{transform:rotate(-90deg)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2 ._y-axis-label_8lppt_2{display:flex;justify-content:center;width:100%;height:100%}._chart-axes_8lppt_1 ._y-axis-tick-text_8lppt_13{display:flex;align-items:center;justify-content:flex-end;padding:0 var(--go-ui-spacing-2xs);text-align:right;word-break:break-word;font-size:var(--go-ui-font-size-xs)}._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transition:var(--go-ui-duration-transition-medium) ease-in-out transform;padding:var(--go-ui-spacing-2xs) 0;text-align:center;word-break:break-word;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transform:rotate(-30deg) translate(-10%) translateY(20%);padding:0;font-size:var(--go-ui-font-size-2xs)}}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.5}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40._hovered_8lppt_46,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41._hovered_8lppt_46{stroke-opacity:1}._chart-axes_8lppt_1 ._bound-rect_8lppt_51{fill:var(--go-ui-color-gray-60);fill-opacity:0;transition:fill-opacity var(--go-ui-duration-transition-slow) ease-in-out}._chart-axes_8lppt_1 ._bound-rect_8lppt_51:hover{fill-opacity:.2}._chart-container_z2i5d_1{width:100%;height:16rem}._chart-container_z2i5d_1 ._svg_z2i5d_5{width:100%;height:100%}._chip_3wch9_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--border-radius: var(--go-ui-border-radius-full);--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm);display:flex;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);padding:var(--padding);color:inherit;color:var(--color-text);gap:var(--go-ui-spacing-3xs)}._chip_3wch9_1._no-delete-icon_3wch9_17{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._chip_3wch9_1._primary_3wch9_21{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._chip_3wch9_1._secondary_3wch9_27{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._chip_3wch9_1._tertiary_3wch9_33{--color-border: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-30);--color-text: inherit}._chip_3wch9_1 ._close-icon_3wch9_39{font-size:var(--go-ui-font-size-sm)}._button_1vbet_1{--color-border: transparent;--color-text: transparent;--color-background: transparent;--font-size: var(--go-ui-height-icon-multiplier);--border-radius: var(--go-ui-border-radius-md);--text-transform: none;--cursor: default;--spacing: var(--go-ui-spacing-2xs);--padding: var(--go-ui-spacing-2xs);display:flex;position:relative;align-items:center;justify-content:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);color:transparent;color:var(--color-text);font-family:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-normal);gap:var(--spacing)}._button_1vbet_1._round_1vbet_31{--border-radius: 50%}._button_1vbet_1._primary_1vbet_34{--border-color: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_1vbet_1._primary_1vbet_34:disabled{--border-color: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-40)}._button_1vbet_1._primary_1vbet_34:not(:disabled):hover{--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._secondary_1vbet_51{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1._secondary_1vbet_51:disabled{--color-text: var(--go-ui-color-gray-40);--color-border: var(--go-ui-color-gray-40)}._button_1vbet_1._secondary_1vbet_51:not(:disabled):hover{--color-text: var(--go-ui-color-white);--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._tertiary_1vbet_69{--color-background: transparent;--color-text: inherit}._button_1vbet_1._tertiary_1vbet_69:disabled{--color-text: var(--go-ui-color-gray-40)}._button_1vbet_1._tertiary_1vbet_69:not(:disabled):hover{--color-background: var(--go-ui-color-gray-20);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1:disabled{--cursor: not-allowed}._button_1vbet_1:not(:disabled){--cursor: pointer}._checkbox_12g7n_1{display:flex;align-items:flex-start;cursor:pointer;gap:var(--go-ui-spacing-sm)}._checkbox_12g7n_1._with-background_12g7n_7{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12{position:relative;flex-shrink:0;line-height:0;font-size:var(--go-ui-height-icon-multiplier)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18:focus-visible+svg{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40)}._checkbox_12g7n_1 ._content_12g7n_33{flex-direction:column;flex-grow:1;line-height:var(--go-ui-line-height-sm);gap:0}._checkbox_12g7n_1 ._description_12g7n_40{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-xs)}._checkbox_12g7n_1._checked_12g7n_45 ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1:focus ._checkmark_12g7n_12,._checkbox_12g7n_1:hover ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58{display:flex;align-items:flex-start;cursor:not-allowed;gap:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-40)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58 ._checkmark_12g7n_12{color:var(--go-ui-color-gray-40)}._checklist_nwqu8_1{--spacing: var(--go-ui-spacing-md);display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._vertical_nwqu8_7 ._checklist-container_nwqu8_8{display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._horizontal_nwqu8_15 ._checklist-container_nwqu8_8{display:grid;grid-gap:var(--spacing);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}._input-hint_1p19h_1{display:inline-block;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._overlay_1iffn_1{overflow:auto;animation:_fade-in_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5{display:block;width:calc(100% - var(--go-ui-spacing-md) * 2);max-height:calc(100% - var(--go-ui-spacing-md) * 2);overflow:auto;animation:_slide-down_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5._size-sm_1iffn_12{max-width:var(--go-ui-width-modal-sm)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-md_1iffn_16{max-width:var(--go-ui-width-modal-md)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-lg_1iffn_20,._overlay_1iffn_1 ._modal-container_1iffn_5._size-xl_1iffn_24{max-width:var(--go-ui-width-modal-lg)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-full_1iffn_28{width:calc(100vw - var(--go-ui-spacing-md) * 2);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._page-width_1iffn_33{max-width:var(--go-ui-page-width-max);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-auto_1iffn_38{max-width:-moz-fit-content;max-width:fit-content}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);width:100%;min-width:var(--go-ui-width-min-modal);height:100%;min-height:var(--go-ui-height-min-modal);overflow:auto}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._close-icon_1iffn_53{font-size:var(--go-ui-height-icon-multiplier)}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._content_1iffn_57{flex-grow:1;overflow:auto}@keyframes _fade-in_1iffn_1{0%{opacity:0}to{opacity:1}}@keyframes _slide-down_1iffn_1{0%{transform:translateY(-5pt)}to{transform:translateY(0)}}._input-container_1b4m7_1{position:relative}._input-container_1b4m7_1 ._input-section_1b4m7_4{align-items:center;transition:var(--go-ui-duration-transition-medium) var(--go-ui-color-gray-10) ease-in-out;border-bottom:var(--go-ui-width-separator-thin) solid transparent;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-element-background);padding:0 var(--go-ui-spacing-sm)}._input-container_1b4m7_1 ._input-section_1b4m7_4 ._input_1b4m7_1{padding:var(--go-ui-spacing-xs) 0}._input-container_1b4m7_1._disabled_1b4m7_17{opacity:var(--go-ui-opacity-disabled-element)}._input-container_1b4m7_1._disabled_1b4m7_17 ._input-section_1b4m7_4{cursor:not-allowed}._input-container_1b4m7_1._errored_1b4m7_25 ._input-section_1b4m7_4{border-color:var(--go-ui-color-red)}._input-container_1b4m7_1._general_1b4m7_31 ._input-section_1b4m7_4{border-radius:0;border-bottom-color:var(--go-ui-color-separator)}._input-container_1b4m7_1._read-only_1b4m7_38 ._input-section_1b4m7_4{background-color:var(--go-ui-color-readonly-element-background)}._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:hover,._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:focus-within{border-bottom-color:var(--go-ui-color-primary-red)}._input-container_1b4m7_1 ._input-hint_1b4m7_53{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._input-container_1b4m7_1 ._input-error_1b4m7_58{position:absolute;min-width:10rem}._input-container_1b4m7_1:not(._disabled_1b4m7_17):not(._read-only_1b4m7_38):hover:enabled ._input-section_1b4m7_4{border-bottom-color:var(--go-ui-color-primary-red)}._raw-input_8rtzt_1{margin:0;margin:initial;outline:medium none invert;outline:initial;border:medium none currentColor;border:initial;background-color:transparent;background-color:initial;padding:0;padding:initial;width:100%;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}._raw-input_8rtzt_1:disabled{cursor:not-allowed}._date-output_4jzjo_1{display:inline}._date-range_k6lnj_1{display:flex;gap:var(--go-ui-spacing-md);flex-wrap:wrap}._dropdown-menu_16hml_1{align-items:center}._dropdown-menu_16hml_1 ._icons_16hml_4,._dropdown-menu_16hml_1 ._content_16hml_5,._dropdown-menu_16hml_1 ._actions_16hml_6{pointer-events:none}._dropdown-menu_16hml_1 ._dropdown-icon_16hml_10{margin-left:-.3em;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-content_16hml_16{display:flex;flex-direction:column;padding:var(--go-ui-spacing-sm) 0}._expandable-container_17290_1{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._header_17290_5{background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._icon_17290_9{display:flex;font-size:var(--go-ui-height-icon-multiplier)}._expandable-container_17290_1:hover ._icon_17290_9{animation:_wiggle_17290_1 var(--go-ui-duration-transition-medium) ease-out}@keyframes _wiggle_17290_1{0%{transform:translateY(0)}50%{transform:translateY(-.1rem)}to{transform:translateY(0)}}._grid_1n8b5_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / 2),1fr));grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr));position:relative;min-height:var(--go-ui-content-min-height)}._grid_1n8b5_1 ._message_1n8b5_10{grid-column:-1 / 1}._grid_1n8b5_1._compact_1n8b5_14{min-height:0;min-height:initial}._grid_1n8b5_1._compact_1n8b5_14._pending_1n8b5_17{min-height:var(--go-ui-compact-content-min-height)}._grid_1n8b5_1._two-columns_1n8b5_22{--num-columns: 2}@media screen and (max-width: 55rem){._grid_1n8b5_1._two-columns_1n8b5_22{--max-width: 60rem}}._grid_1n8b5_1._three-columns_1n8b5_31{--num-columns: 3}@media screen and (max-width: 55rem){._grid_1n8b5_1._three-columns_1n8b5_31{--max-width: 60rem}}._grid_1n8b5_1._four-columns_1n8b5_39{--num-columns: 4}._grid_1n8b5_1._five-columns_1n8b5_43{--num-columns: 5}._html-output_3s7du_1 p{margin:var(--go-ui-spacing-xs)}._html-output_3s7du_1 iframe{width:100%}._image_yrvu8_1{display:flex;flex-direction:column;margin:0}._image_yrvu8_1 ._img-element_yrvu8_6{background-color:var(--go-ui-color-background);width:100%;height:auto;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center}._image_yrvu8_1._expandable_yrvu8_14{cursor:pointer}._image_yrvu8_1 ._caption_yrvu8_18{text-align:center}._expanded-modal_yrvu8_23 ._content_yrvu8_24{display:flex}._expanded-modal_yrvu8_23 ._content_yrvu8_24 ._img-element_yrvu8_6{margin:0;background-color:var(--go-ui-color-background);width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._input-section_1cptl_1{display:grid;grid-gap:var(--go-ui-spacing-md);grid-template-columns:1fr 2fr;background-color:var(--go-ui-color-white)}._input-section_1cptl_1 ._header_1cptl_7 ._heading-container_1cptl_8 ._heading_1cptl_8{flex-grow:initial}@media screen and (max-width: 60rem){._input-section_1cptl_1{grid-template-columns:1fr}}._input-section_1cptl_1._with-compact-title-section_1cptl_19{grid-template-columns:1fr 3fr}._input-section_1cptl_1._with-padding_1cptl_23{padding:var(--go-ui-spacing-lg)}._input-section_1cptl_1 ._asterisk_1cptl_27{color:var(--go-ui-color-primary-red)}._input-section_1cptl_1 ._description_1cptl_31{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._input-section_1cptl_1 ._content-section_1cptl_37{display:grid;grid-gap:var(--go-ui-spacing-sm);align-items:start}._input-section_1cptl_1 ._content-section_1cptl_37._one-column_1cptl_42{grid-template-columns:1fr}._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}._input-section_1cptl_1 ._content-section_1cptl_37._four-column_1cptl_58{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._input-section_1cptl_1._without-title-section_1cptl_63{grid-template-columns:1fr}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(28rem,1fr))}@media screen and (max-width: 70rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(22rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._info-popup_i3rna_1 ._label_i3rna_2{display:inline-flex;align-items:center;gap:var(--go-ui-spacing-xs)}._info-popup_i3rna_1 ._label_i3rna_2 ._icon_i3rna_7{display:inline-flex;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-container_i3rna_15{padding:0;min-width:min(20rem,100vw);max-width:25rem}._dropdown-container_i3rna_15 ._content_i3rna_20{display:flex;flex-direction:column;white-space:pre-wrap;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1{display:flex;position:relative;flex-direction:column;padding:var(--go-ui-spacing-md);gap:var(--go-ui-spacing-xs)}._key-figure_1owjn_1 ._icon-section_1owjn_8{display:flex}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._icon_1owjn_8{display:flex;align-items:center;flex-grow:1;justify-content:flex-start;color:var(--go-ui-color-primary-red);font-size:var(--go-ui-height-key-figure-icon)}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._info_1owjn_20{flex-shrink:0}._key-figure_1owjn_1 ._info-section-without-icon_1owjn_25{position:absolute;top:0;right:0}._key-figure_1owjn_1 ._value_1owjn_31{font-size:var(--go-ui-font-size-3xl);font-weight:var(--go-ui-font-weight-medium)}._key-figure_1owjn_1 ._description_1owjn_36{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1._with-icon_1owjn_41 ._value_1owjn_31{font-size:var(--go-ui-font-size-4xl)}._progress-wrapper_x340w_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xs);color:var(--go-ui-color-primary-red)}._progress-wrapper_x340w_1 ._title_x340w_7{color:var(--go-ui-color-text)}._progress-wrapper_x340w_1 ._total_x340w_11{display:flex;flex-shrink:0;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-separator);height:.5rem}._progress-wrapper_x340w_1 ._total_x340w_11 ._progress_x340w_1{transition:var(--go-ui-duration-transition-medium) width ease-in-out;border-radius:var(--go-ui-border-radius-md)}._legend_77ox6_1{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._legend_77ox6_1 ._legend-items_77ox6_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._legend-element_1a9ic_1{display:flex;align-items:center;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._legend-element_1a9ic_1 ._color_1a9ic_7{flex-shrink:0;border-radius:.4em;width:.8em;height:.8em}._legend-element_1a9ic_1 ._icon-container_1a9ic_14{display:flex;align-items:center;justify-content:center;border-radius:50%;padding:var(--go-ui-spacing-2xs);width:1.2rem;height:1.2rem}._legend-element_1a9ic_1 ._icon-container_1a9ic_14 ._icon_1a9ic_14{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._legend-element_1a9ic_1 ._label_1a9ic_31{font-size:1em}._list_1whuj_1{position:relative;min-height:var(--go-ui-content-min-height)}._list_1whuj_1._compact_1whuj_5{min-height:0;min-height:initial}._list_1whuj_1._compact_1whuj_5._pending_1whuj_8{min-height:var(--go-ui-compact-content-min-height)}._option_1kpl9_1{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-md);overflow:auto}._option_1kpl9_1._active_1kpl9_7{color:var(--go-ui-color-primary-red)}._option_1kpl9_1 ._icon_1kpl9_11{display:flex;align-items:center;flex-shrink:0}._option_1kpl9_1 ._label_1kpl9_17{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._popup_poyjv_1{padding:var(--go-ui-spacing-sm) 0}._popup_poyjv_1 ._list_poyjv_4{display:flex;flex-direction:column;overflow:auto}._popup_poyjv_1 ._list_poyjv_4 ._list-item_poyjv_9{flex-shrink:0}._popup_poyjv_1 ._info-message_poyjv_14{padding:var(--go-ui-spacing-sm);text-align:center;color:var(--go-ui-color-text-light)}._icon_poyjv_21{font-size:var(--go-ui-height-icon-multiplier)}._generic-option_zv1n8_1{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);text-align:left}._generic-option_zv1n8_1:hover{background-color:var(--go-ui-color-gray-20)}._navigation-tab-list_19mw3_1{display:flex;position:relative}._navigation-tab-list_19mw3_1._primary_19mw3_5{overflow-x:auto}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._primary_19mw3_5 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._navigation-tab-list_19mw3_1._secondary_19mw3_20{display:flex;overflow-x:auto}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._content_19mw3_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._end-dummy-content_19mw3_13{flex-grow:1}._navigation-tab-list_19mw3_1._tertiary_19mw3_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._content_19mw3_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._end-dummy-content_19mw3_13{display:none}._navigation-tab-list_19mw3_1._step_19mw3_56{overflow-x:auto}._navigation-tab-list_19mw3_1._step_19mw3_56 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._step_19mw3_56 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._step_19mw3_56 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._content_19mw3_8{display:flex;flex-direction:column}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._end-dummy-content_19mw3_13{display:none}._page-container_1cfro_1 ._content_1cfro_2{margin:0 auto;padding:var(--go-ui-spacing-lg);width:100%}@media screen{._page-container_1cfro_1 ._content_1cfro_2{max-width:var(--go-ui-page-width-max)}}._page-header_1r8r3_1{padding:var(--go-ui-spacing-lg) 0}._page-header_1r8r3_1 ._container_1r8r3_4{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xl)}._page-header_1r8r3_1 ._container_1r8r3_4 ._breadcrumbs-container_1r8r3_9{flex-shrink:initial}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-lg)}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._heading_1r8r3_19{text-align:center}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._description_1r8r3_23{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._pager_83zz4_1 ._page-list_83zz4_2{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;line-height:1}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._active_83zz4_15{border-radius:50%;background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._compact_83zz4_21{font-size:var(--go-ui-font-size-xs);font-weight:var(--go-ui-font-weight-medium)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7:disabled{opacity:var(--go-ui-opacity-disabled-element)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7 ._icon_83zz4_30{font-size:var(--go-ui-font-size-2xl)}._top-banner_1w8lu_1{background-color:var(--go-ui-color-negative);padding:var(--go-ui-spacing-md);text-align:center;color:var(--go-ui-color-white);font-weight:var(--go-ui-font-weight-medium)}._warning_1w8lu_9{background-color:var(--go-ui-color-warning)}._positive_1w8lu_13{background-color:var(--go-ui-color-positive)}._information_1w8lu_17{background-color:var(--go-ui-color-information)}._pie-chart_pyr7m_1{display:flex;align-items:center;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._pie-chart_pyr7m_1 ._legend_pyr7m_7{display:flex;flex-direction:column;flex-grow:1;justify-content:center}._pie-chart_pyr7m_1 ._legend_pyr7m_7 ._legend-item_pyr7m_13{font-size:var(--go-ui-font-size-xs)}._text-output_10oza_1{display:flex;flex-wrap:wrap;gap:0 var(--go-ui-spacing-sm)}._text-output_10oza_1._with-background_10oza_6{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._text-output_10oza_1 ._label_10oza_11._with-colon_10oza_12:after{content:":"}._text-output_10oza_1 ._value_10oza_17._text-type_10oza_18{text-align:justify;white-space:pre-wrap}._text-output_10oza_1 ._strong_10oza_24{font-weight:var(--go-ui-font-weight-semibold)}._file-input_tu4re_1 ._input_tu4re_2{visibility:hidden;width:0;height:0}._raw-input_145mq_1{margin:0;outline:0;border:0;background-color:transparent;padding:0;width:100%;color:inherit;font-family:inherit;font-size:inherit}._reduced-list-display_1czue_1{display:inline-block}._reduced-list-label_1czue_5{padding:0;-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium)}._reduced-list-label_1czue_5:hover,._reduced-list-label_1czue_5:focus{opacity:1;color:var(--go-ui-color-primary-red)}._option-container_2k92q_1{display:flex;overflow:auto}._option-container_2k92q_1 ._option_2k92q_1{flex-grow:1}._option-container_2k92q_1._active_2k92q_9{color:var(--go-ui-color-primary-red)}._option-container_2k92q_1._active_2k92q_9 ._icon_2k92q_12{opacity:1}._option_11p37_1{display:flex;gap:var(--go-ui-spacing-sm);overflow:auto}._option_11p37_1 ._icon_11p37_6{display:flex;align-items:center;flex-shrink:0;opacity:0;font-size:var(--go-ui-height-icon-multiplier)}._option_11p37_1 ._label_11p37_14{display:flex;flex-direction:column;flex-grow:1;overflow:auto}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20._description_11p37_25{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._segment-input_bykt7_1{width:-moz-fit-content;width:fit-content}._segment-input_bykt7_1 ._segment-list_bykt7_4{flex-wrap:nowrap;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-background);padding:0;width:-moz-fit-content;width:fit-content;gap:0}._segment-input_bykt7_1 ._segment_bykt7_1{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._segment-input_bykt7_1 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._segment-input_bykt7_1._secondary-variant_bykt7_24 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-blue-90);color:var(--go-ui-color-white)}._stacked-bar-chart_gqsj2_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6{display:flex}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6{display:flex;align-items:baseline;justify-content:center;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._value_gqsj2_15{font-weight:var(--go-ui-font-weight-semibold)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._percentage_gqsj2_19{font-size:var(--go-ui-font-size-sm)}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25{--height: 1rem;display:flex;border-radius:.5rem;border-radius:calc(.5 * var(--height));background-color:var(--go-ui-color-gray-50);height:1rem;height:var(--height);overflow:hidden}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25 ._bar_gqsj2_6{height:100%}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43{display:flex;align-items:baseline;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._color-dot_gqsj2_48{flex-shrink:0;border-radius:.3rem;width:.6rem;height:.6rem}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._label_gqsj2_38{padding:0 var(--go-ui-spacing-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--go-ui-font-size-sm)}._switch_1bdw6_1 ._checkmark-container_1bdw6_2{--width: var(--go-ui-font-size-4xl)}._switch_1bdw6_1._with-inverted-view_1bdw6_6{flex-direction:row-reverse}._switch-icon_w9df3_1{--gap: .05em;--border-width: var(--go-ui-width-separator-sm);--knob-diameter: calc(1em - 2 * var(--gap) - 2 * var(--border-width));--background-color: var(--go-ui-color-gray-50);--border-color: var(--go-ui-color-gray-30);--knob-color: var(--go-ui-color-white);display:flex;align-items:center;transition:var(--go-ui-duration-transition-medium) background-color ease-in-out;border:var(--border-width) solid var(--border-color);border-radius:.5em;background-color:var(--background-color);padding:.05em;padding:var(--gap);width:calc(1em + var(--knob-diameter));height:1em}._switch-icon_w9df3_1 ._knob_w9df3_19{transition:var(--go-ui-duration-transition-medium) transform ease-in-out,var(--go-ui-duration-transition-medium) background-color ease-in-out;border-radius:calc((1em - var(--gap) * 2) / 2);border-radius:calc(calc(1em - var(--gap) * 2) / 2);background-color:var(--knob-color);width:var(--knob-diameter);height:var(--knob-diameter)}._switch-icon_w9df3_1._on_w9df3_27{background-color:var(--go-ui-color-primary-red)}._switch-icon_w9df3_1._on_w9df3_27 ._knob_w9df3_19{transform:translate(100%)}._table_nilhy_1{display:flex;position:relative;flex-direction:column;min-height:var(--go-ui-content-min-height);overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8{display:flex;flex-direction:column;overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13{position:relative;z-index:0;border-collapse:separate;border-spacing:0;font-size:inherit}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24{position:sticky;top:0;z-index:1}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24 ._header-component_nilhy_29{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm)}._table_nilhy_1 ._message_nilhy_38._pending_nilhy_39{position:absolute;top:0;left:0;width:100%;height:100%}._row_1829z_1 ._cell_1829z_2{padding:var(--go-ui-spacing-sm);overflow:hidden;word-break:break-word}._row_1829z_1:hover ._cell_1829z_2{background-color:var(--go-ui-color-background-hover)}._td_1k4cn_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator)}._th_cdv41_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-white);overflow:hidden;vertical-align:bottom;text-align:left}._th_cdv41_1 ._resize-handle_cdv41_8{position:absolute;top:0;right:0;z-index:1;border-right:var(--go-ui-width-separator-sm) solid transparent;cursor:col-resize;width:var(--go-ui-width-separator-lg);height:calc(100% - var(--go-ui-spacing-sm))}._th_cdv41_1:hover ._resize-handle_cdv41_8{border-right-color:var(--go-ui-color-gray-30)}._th_cdv41_1:hover ._resize-handle_cdv41_8:hover{border-right-color:var(--go-ui-color-gray-50)}._header-cell_vn24d_1{display:flex;align-items:center;color:var(--go-ui-color-text-black);font-weight:var(--go-ui-font-weight-semibold);gap:var(--go-ui-spacing-2xs)}._header-cell_vn24d_1 ._sort-button_vn24d_8{flex-shrink:0}._header-cell_vn24d_1 ._icon_vn24d_12{flex-shrink:0;font-size:var(--go-ui-height-icon-multiplier)}._header-cell_vn24d_1 ._info-popup-icon_vn24d_17{flex-shrink:0}._table-actions_171sq_1{display:flex;justify-content:flex-end;gap:var(--go-ui-spacing-sm)}._table-actions_171sq_1 ._more-icon_171sq_6{font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1{--border-color: var(--go-ui-color-gray-30);--border-width: var(--go-ui-width-separator-thin);display:inline-flex;align-items:stretch;border-radius:0;-webkit-text-decoration:none;text-decoration:none;color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-medium)}._tab_12kk2_1 ._dummy_12kk2_12{flex-grow:1;border-bottom:var(--border-width) solid var(--border-color);width:var(--go-ui-spacing-xs)}._tab_12kk2_1 ._children-wrapper_12kk2_18{display:flex;align-items:center;flex-grow:1;border:var(--border-width) solid transparent;text-align:center}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18,._tab_12kk2_1._vertical_12kk2_26 ._children-wrapper_12kk2_18{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-md) 0;text-align:left}._tab_12kk2_1._vertical-compact_12kk2_26._active_12kk2_35,._tab_12kk2_1._vertical_12kk2_26._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18{padding:0}._tab_12kk2_1._primary_12kk2_48{position:relative;font-size:var(--go-ui-font-size-lg)}._tab_12kk2_1._primary_12kk2_48 ._children-wrapper_12kk2_18{border-bottom-color:var(--border-color);background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-lg)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35 ._children-wrapper_12kk2_18{border-color:var(--border-color);border-bottom-color:transparent;background-color:var(--go-ui-color-white)}._tab_12kk2_1._primary_12kk2_48:not(._active_12kk2_35) ._active-border_12kk2_69{display:none}._tab_12kk2_1._step_12kk2_75{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-md);transition:var(--go-ui-duration-transition-medium) color,background-color ease-in-out;padding:var(--go-ui-spacing-md) 0;text-transform:uppercase;color:var(--go-ui-color-gray-70)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85{display:flex;align-items:center;align-self:stretch}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90{flex-shrink:0;transition:var(--go-ui-duration-transition-slow) border-color ease-in-out;border:var(--border-width) solid transparent;border-radius:50%;background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-2xs)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{display:flex;align-items:center;justify-content:center;transition:var(--go-ui-duration-transition-slow) background-color ease-in-out;border-radius:50%;background-color:var(--go-ui-color-gray-60);width:1rem;height:1rem}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98 ._icon_12kk2_108{color:var(--go-ui-color-white);font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{flex-grow:1;background-color:var(--go-ui-color-separator);height:var(--go-ui-width-separator-thin)}._tab_12kk2_1._step_12kk2_75 ._children-wrapper_12kk2_18{padding:0 var(--go-ui-spacing-lg)}._tab_12kk2_1._step_12kk2_75._errored_12kk2_128 ._children-wrapper_12kk2_18{-webkit-text-decoration:underline wavy var(--go-ui-color-primary-red);text-decoration:underline wavy var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75:hover{color:var(--go-ui-color-black)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90{border-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{background-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._progress-bar-start_12kk2_116,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._step-circle_12kk2_90 ._inner-circle_12kk2_98,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-start_12kk2_116{background-color:var(--go-ui-color-primary-blue)}._tab_12kk2_1._step_12kk2_75:first-child ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{background-color:transparent}._tab_12kk2_1._step_12kk2_75:last-child ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115{background-color:transparent}._tab_12kk2_1._secondary_12kk2_183{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-xl)}._tab_12kk2_1._secondary_12kk2_183._active_12kk2_35{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._tab_12kk2_1._tertiary_12kk2_193:hover,._tab_12kk2_1._tertiary_12kk2_193._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._disabled_12kk2_205{pointer-events:none;opacity:var(--go-ui-opacity-disabled-element)}._tab-list_1d752_1{display:flex;position:relative}._tab-list_1d752_1._primary_1d752_5{overflow-x:auto}._tab-list_1d752_1._primary_1d752_5 ._content_1d752_8{display:flex}._tab-list_1d752_1._primary_1d752_5 ._start-dummy-content_1d752_12,._tab-list_1d752_1._primary_1d752_5 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._tab-list_1d752_1._secondary_1d752_20{display:flex;overflow-x:auto}._tab-list_1d752_1._secondary_1d752_20 ._content_1d752_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._tab-list_1d752_1._secondary_1d752_20 ._start-dummy-content_1d752_12,._tab-list_1d752_1._secondary_1d752_20 ._end-dummy-content_1d752_13{flex-grow:1}._tab-list_1d752_1._tertiary_1d752_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._tab-list_1d752_1._tertiary_1d752_36 ._content_1d752_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-md)}._tab-list_1d752_1._tertiary_1d752_36 ._start-dummy-content_1d752_12,._tab-list_1d752_1._tertiary_1d752_36 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._step_1d752_56{overflow-x:auto}._tab-list_1d752_1._step_1d752_56 ._content_1d752_8{display:flex}._tab-list_1d752_1._step_1d752_56 ._start-dummy-content_1d752_12,._tab-list_1d752_1._step_1d752_56 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8,._tab-list_1d752_1._vertical_1d752_70 ._content_1d752_8{display:flex;flex-direction:column}._tab-list_1d752_1._vertical-compact_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical-compact_1d752_70 ._end-dummy-content_1d752_13,._tab-list_1d752_1._vertical_1d752_70 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8{gap:var(--go-ui-spacing-xs)}._timeline-chart_1mks7_1{flex-grow:1;height:100%;--path-stroke-width: 1pt}._timeline-chart_1mks7_1 ._y-axis-tick-text_1mks7_6{text-anchor:middle;font-size:var(--go-ui-font-size-xs)}._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{text-anchor:middle;transition:var(--go-ui-duration-transition-medium) ease-in-out transform;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{transform:rotate(-30deg)}}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.2;transition:var(--go-ui-duration-transition-medium) ease-in-out stroke-opacity}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21._hovered_1mks7_28,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22._hovered_1mks7_28{stroke-opacity:1}._timeline-chart_1mks7_1 ._rect_1mks7_33{transition:var(--go-ui-duration-transition-medium) ease-in-out fill-opacity;cursor:pointer;fill-opacity:0;fill:var(--go-ui-color-white)}._chart-point_aqsix_1{--point-radius: 4pt;--point-hover-radius: 5pt;--point-outline-radius: 7pt;--point-stroke-width: 2pt}._chart-point_aqsix_1 ._point_aqsix_7{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r,var(--go-ui-duration-transition-medium) ease-in-out fill}._chart-point_aqsix_1 ._point_aqsix_7._active_aqsix_14,._chart-point_aqsix_1 ._point_aqsix_7._hovered_aqsix_18{fill:currentColor}._chart-point_aqsix_1 ._point-outline_aqsix_23{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r}._chart-point_aqsix_1 ._point-outline_aqsix_23._active_aqsix_14{r:var(--point-outline-radius)}._chart-point_aqsix_1._hoverable_aqsix_35:hover ._point_aqsix_7{fill:currentColor}._dropdownContainer_1six7_3{position:relative}._dropdownMenu_1six7_15{position:absolute;right:0;top:100%;margin-top:.5rem;width:180px;background:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-lg);border:1px solid var(--go-ui-color-separator);z-index:50;animation:_dropdownSlideIn_1six7_1 .15s ease-out}._dropdownContent_1six7_43{padding:var(--go-ui-spacing-xs) 0}@keyframes _dropdownSlideIn_1six7_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._dropdownMenu_1six7_15{width:160px;right:-.25rem}._dropdownItem_1six7_89{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-xs)}}._uploadContainer_1w5i1_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);text-align:center;padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md);overflow-x:hidden}._dropZone_1w5i1_9{border:var(--go-ui-width-separator-thick) dashed var(--go-ui-color-gray-40);background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl) var(--go-ui-spacing-lg);display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);transition:all var(--go-ui-duration-transition-medium) ease;max-width:var(--go-ui-width-screen-md);margin:0 auto;min-height:250px;justify-content:center}._dropZone_1w5i1_9:hover{background-color:var(--go-ui-color-gray-30);border-color:var(--go-ui-color-gray-50)}._dropZone_1w5i1_9._hasFile_1w5i1_30{background-color:var(--go-ui-color-white);border-color:var(--go-ui-color-gray-30);min-height:300px;padding:var(--go-ui-spacing-lg)}._dropZoneIcon_1w5i1_37{width:2.5rem;height:2.5rem;color:var(--go-ui-color-red-90)}._dropZoneText_1w5i1_43{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70);text-align:center}._dropZoneSubtext_1w5i1_49{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-50);margin:var(--go-ui-spacing-md) 0}._filePreview_1w5i1_55{width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;animation:_fadeIn_1w5i1_1 .3s ease-in-out}._filePreviewImage_1w5i1_64{position:relative;max-width:100%;max-height:20rem;overflow:visible;border-radius:var(--go-ui-border-radius-lg);background-color:var(--go-ui-color-gray-20);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1w5i1_64:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._filePreviewImage_1w5i1_64 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1w5i1_64 img:hover{transform:scale(1.02)}@keyframes _fadeIn_1w5i1_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._fileName_1w5i1_110{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-80);margin-top:var(--go-ui-spacing-sm);text-align:center}._fileInfo_1w5i1_118{font-size:var(--go-ui-font-size-xs);color:var(--go-ui-color-gray-60);margin-top:var(--go-ui-spacing-xs);text-align:center}._helpLink_1w5i1_125{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md)}._helpLink_1w5i1_125 a{color:var(--go-ui-color-red-90);font-size:var(--go-ui-font-size-xs);transition:color var(--go-ui-duration-transition-fast) ease;display:flex;align-items:center;gap:var(--go-ui-spacing-2xs)}._helpLink_1w5i1_125 a:hover{color:var(--go-ui-color-red-hover);text-decoration:underline}._loadingContainer_1w5i1_145{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._loadingText_1w5i1_153{color:var(--go-ui-color-gray-60)}._generateButtonContainer_1w5i1_157{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._uploadedMapContainer_1w5i1_165{margin-bottom:var(--go-ui-spacing-lg)}._uploadedMapImage_1w5i1_169{width:100%;max-width:var(--go-ui-width-screen-lg);max-height:20rem;overflow:visible;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-sm);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1w5i1_169:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._uploadedMapImage_1w5i1_169 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1w5i1_169 img:hover{transform:scale(1.02)}._formSection_1w5i1_205{margin-bottom:var(--go-ui-spacing-lg)}._formGrid_1w5i1_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (min-width: 1024px){._formGrid_1w5i1_209{grid-template-columns:1fr 1fr}}._titleField_1w5i1_222{grid-column:1 / -1}._ratingSection_1w5i1_226{text-align:left}._ratingDescription_1w5i1_230{color:var(--go-ui-color-gray-70);margin-bottom:var(--go-ui-spacing-lg)}._ratingSlider_1w5i1_235{margin-top:var(--go-ui-spacing-lg);display:flex;align-items:center;gap:var(--go-ui-spacing-sm)}._ratingLabel_1w5i1_242{display:block;font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);text-transform:capitalize;width:5rem;flex-shrink:0}._ratingInput_1w5i1_251{width:100%;accent-color:var(--go-ui-color-red-90)}._ratingValue_1w5i1_256{margin-left:var(--go-ui-spacing-sm);width:2.5rem;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70)}._submitSection_1w5i1_266{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-2xl);flex-wrap:wrap}._successContainer_1w5i1_275{text-align:center;padding:var(--go-ui-spacing-2xl)}._successHeading_1w5i1_280{color:var(--go-ui-color-green-90);margin-bottom:var(--go-ui-spacing-lg)}._successText_1w5i1_285{color:var(--go-ui-color-gray-700);margin-bottom:var(--go-ui-spacing-xl);font-size:var(--go-ui-font-size-lg)}._successButton_1w5i1_291{display:flex;justify-content:center}._viewFullSizeButton_1w5i1_297{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding-top:var(--go-ui-spacing-md);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._fullSizeModalOverlay_1w5i1_306{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._lightModalOverlay_1w5i1_320{position:fixed;inset:0;background-color:#0000004d;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._fullSizeModalContent_1w5i1_334{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);max-width:95vw;max-height:95vh;overflow:hidden;box-shadow:var(--go-ui-box-shadow-xl);display:flex;flex-direction:column}._fullSizeModalHeader_1w5i1_345{display:flex;justify-content:space-between;align-items:center;padding:var(--go-ui-spacing-lg);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-gray-10)}._fullSizeModalTitle_1w5i1_354{margin:0;font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900)}._fullSizeModalImage_1w5i1_361{flex:1;display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-lg);overflow:auto}._fullSizeModalImage_1w5i1_361 img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-md)}@media (max-width: 768px){._fullSizeModalOverlay_1w5i1_306{padding:var(--go-ui-spacing-sm)}._fullSizeModalContent_1w5i1_334{max-width:100vw;max-height:100vh}._fullSizeModalHeader_1w5i1_345,._fullSizeModalImage_1w5i1_361{padding:var(--go-ui-spacing-md)}}._confirmSection_1w5i1_398{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-xl);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._step2Layout_1w5i1_407{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._topRow_1w5i1_413{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._topRow_1w5i1_413._ratingHidden_1w5i1_421{grid-template-columns:1fr}._imageSection_1w5i1_425{position:sticky;top:var(--go-ui-spacing-lg)}._ratingSection_1w5i1_226{display:flex;flex-direction:column}._ratingContent_1w5i1_435{display:flex;flex-direction:column;gap:var(--go-ui-spacing-md)}._bottomRow_1w5i1_441{width:100%}._step2Layout_1w5i1_407{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._mapColumn_1w5i1_453{position:sticky;top:var(--go-ui-spacing-lg)}._contentColumn_1w5i1_458{display:flex;flex-direction:column;gap:var(--go-ui-spacing-lg)}._step2bLayout_1w5i1_465{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._contentColumn_1w5i1_458 ._formGrid_1w5i1_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (max-width: 1024px){._step2Layout_1w5i1_407,._topRow_1w5i1_413{grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._topRow_1w5i1_413._ratingHidden_1w5i1_421{grid-template-columns:1fr}._mapColumn_1w5i1_453,._imageSection_1w5i1_425{position:static}}@media (max-width: 768px){._uploadContainer_1w5i1_1{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm) var(--go-ui-spacing-xl) var(--go-ui-spacing-sm)}._dropZone_1w5i1_9{padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md);min-height:200px}._dropZone_1w5i1_9._hasFile_1w5i1_30{min-height:250px;padding:var(--go-ui-spacing-md)}._filePreviewImage_1w5i1_64{max-width:100%;max-height:15rem;padding:var(--go-ui-spacing-xs)}._filePreviewImage_1w5i1_64 img{max-height:13rem}._ratingSlider_1w5i1_235{gap:var(--go-ui-spacing-xs)}._ratingLabel_1w5i1_242{width:4rem;font-size:var(--go-ui-font-size-xs)}._ratingValue_1w5i1_256{width:2rem;font-size:var(--go-ui-font-size-xs)}}@media (max-width: 480px){._dropZone_1w5i1_9{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm);min-height:180px}._dropZone_1w5i1_9._hasFile_1w5i1_30{min-height:220px}._filePreviewImage_1w5i1_64{max-height:12rem}._filePreviewImage_1w5i1_64 img{max-height:10rem}}._metadataSectionCard_1w5i1_562{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);box-shadow:var(--go-ui-box-shadow-xs)}._droneMetadataSection_1w5i1_571{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._droneMetadataHeading_1w5i1_577{font-size:var(--go-ui-font-size-md);font-weight:600;color:var(--go-ui-color-gray-90);margin-bottom:var(--go-ui-spacing-md);text-align:left}._droneMetadataGrid_1w5i1_585{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-md)}._rtkFixContainer_1w5i1_591{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) 0}._rtkFixLabel_1w5i1_597{display:flex;align-items:center;gap:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-80);cursor:pointer}._rtkFixCheckbox_1w5i1_606{width:1rem;height:1rem;accent-color:var(--go-ui-color-red-90)}@media (max-width: 768px){._droneMetadataGrid_1w5i1_585{grid-template-columns:1fr;gap:var(--go-ui-spacing-sm)}}._confirmButtonContainer_1w5i1_621{margin-top:var(--go-ui-spacing-lg);display:flex;justify-content:center;align-items:center}._ratingWarningContent_1w5i1_629{padding:var(--go-ui-spacing-xl);text-align:center;max-width:500px}._ratingWarningTitle_1w5i1_637{font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900);margin-bottom:var(--go-ui-spacing-md)}._ratingWarningText_1w5i1_644{font-size:var(--go-ui-font-size-md);color:var(--go-ui-color-gray-700);line-height:1.6;margin-bottom:var(--go-ui-spacing-xl)}._ratingWarningButtons_1w5i1_651{display:flex;gap:var(--go-ui-spacing-md);justify-content:center;margin-top:var(--go-ui-spacing-lg)}._preprocessingProgress_1w5i1_658{margin-top:var(--go-ui-spacing-lg);text-align:center;padding:var(--go-ui-spacing-lg);background-color:var(--go-ui-color-background-light);border-radius:var(--go-ui-border-radius-md)}._preprocessingProgress_1w5i1_658 p{margin-bottom:var(--go-ui-spacing-md);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._cropZoomSlider_1w5i1_673{flex:1;height:.5rem;background-color:var(--go-ui-color-gray-30);border-radius:var(--go-ui-border-radius-lg);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none}._cropZoomSlider_1w5i1_673::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm)}._cropZoomSlider_1w5i1_673::-moz-range-thumb{width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm);border:none}._cropZoomSlider_1w5i1_673:focus{outline:none;box-shadow:0 0 0 2px var(--go-ui-color-red-40)}._carouselContainer_1w5i1_711{position:relative;width:100%}._carouselImageWrapper_1w5i1_716{position:relative;width:100%;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);overflow:hidden;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow var(--go-ui-duration-transition-medium) ease}._carouselImageWrapper_1w5i1_716:hover{box-shadow:var(--go-ui-box-shadow-md)}._carouselImage_1w5i1_716{width:100%;height:auto;-o-object-fit:contain;object-fit:contain;image-rendering:pixelated;display:block}._carouselNavigation_1w5i1_739{display:flex;align-items:center;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._carouselButton_1w5i1_751{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-fast) ease;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}._carouselButton_1w5i1_751:hover:not(:disabled){background-color:var(--go-ui-color-gray-20);border-color:var(--go-ui-color-gray-40);transform:translateY(-1px)}._carouselButton_1w5i1_751:disabled{opacity:.5;cursor:not-allowed}._carouselIndicators_1w5i1_775{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._carouselIndicator_1w5i1_775{background-color:var(--go-ui-color-gray-30);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-sm);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);cursor:pointer;transition:all var(--go-ui-duration-transition-fast) ease;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center}._carouselIndicator_1w5i1_775:hover:not(:disabled){background-color:var(--go-ui-color-gray-40);border-color:var(--go-ui-color-gray-50);color:var(--go-ui-color-gray-90)}._carouselIndicatorActive_1w5i1_804{background-color:var(--go-ui-color-red-90);border-color:var(--go-ui-color-red-90);color:var(--go-ui-color-white)}._carouselIndicatorActive_1w5i1_804:hover:not(:disabled){background-color:var(--go-ui-color-red-hover);border-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._carouselIndicator_1w5i1_775:disabled{opacity:.5;cursor:not-allowed}._imageCounter_1w5i1_821{text-align:center;margin-top:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);background-color:var(--go-ui-color-gray-10);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);border-radius:var(--go-ui-border-radius-sm);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._singleImageContainer_1w5i1_834{position:relative;width:100%}._viewImageButtonContainer_1w5i1_840{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}@media (max-width: 768px){._carouselNavigation_1w5i1_739{flex-direction:column;gap:var(--go-ui-spacing-sm)}._carouselIndicators_1w5i1_775{order:-1;margin-bottom:var(--go-ui-spacing-sm)}._carouselButton_1w5i1_751{min-width:36px;height:36px}._carouselIndicator_1w5i1_775{min-width:28px;height:28px;font-size:var(--go-ui-font-size-xs)}._imageCounter_1w5i1_821{font-size:var(--go-ui-font-size-xs)}._viewImageButtonContainer_1w5i1_840{margin-top:var(--go-ui-spacing-sm)}}._helpContainer_1wavj_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md)}._helpSection_1wavj_13{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl);margin-bottom:var(--go-ui-spacing-xl);box-shadow:var(--go-ui-box-shadow-sm);transition:all var(--go-ui-duration-transition-medium) ease;position:relative;overflow:hidden}._helpSection_1wavj_13:hover{box-shadow:var(--go-ui-box-shadow-md);transform:translateY(-2px);border-color:var(--go-ui-color-gray-30)}._sectionHeader_1wavj_49{display:flex;align-items:center;margin-bottom:var(--go-ui-spacing-lg);padding-bottom:var(--go-ui-spacing-md);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._sectionIcon_1wavj_65{width:2rem;height:2rem;margin-right:var(--go-ui-spacing-md);color:var(--go-ui-color-red-90);background-color:var(--go-ui-color-red-5);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._sectionTitle_1wavj_91{color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-semibold);font-size:var(--go-ui-font-size-xl);margin:0}._sectionContent_1wavj_105{color:var(--go-ui-color-gray-700);line-height:1.7;font-size:var(--go-ui-font-size-base);margin-bottom:var(--go-ui-spacing-lg)}._guidelinesList_1wavj_119{list-style:none;padding:0;margin:var(--go-ui-spacing-md) 0}._guidelinesList_1wavj_119 li{position:relative;padding:var(--go-ui-spacing-sm) 0 var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-700);line-height:1.6}._guidelinesList_1wavj_119 li:before{content:"✓";position:absolute;left:0;top:var(--go-ui-spacing-sm);color:var(--go-ui-color-green-70);font-weight:var(--go-ui-font-weight-bold);font-size:var(--go-ui-font-size-sm);background-color:var(--go-ui-color-green-5);border-radius:50%;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}._buttonContainer_1wavj_181{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-xl)}._featureHighlight_1wavj_193{background:linear-gradient(135deg,var(--go-ui-color-blue-5),var(--go-ui-color-blue-10));border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-blue-20);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);margin:var(--go-ui-spacing-lg) 0;position:relative}._featureHighlight_1wavj_193:before{content:"💡";position:absolute;top:var(--go-ui-spacing-md);right:var(--go-ui-spacing-md);font-size:1.5rem}._featureHighlightText_1wavj_227{color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium);margin:0;font-size:var(--go-ui-font-size-sm)}@media (max-width: 768px){._helpSection_1wavj_13{padding:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._sectionHeader_1wavj_49{flex-direction:column;text-align:center;gap:var(--go-ui-spacing-sm)}._sectionIcon_1wavj_65{margin-right:0;margin-bottom:var(--go-ui-spacing-sm)}._actionButton_1wavj_277{padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);font-size:var(--go-ui-font-size-sm)}} diff --git "a/py\342\200\224backend/static/index-oPRJTRcN.js" "b/py\342\200\224backend/static/index-oPRJTRcN.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8199a47e8cfeaad9e9aa8bcd6c392b1eee1a9ef --- /dev/null +++ "b/py\342\200\224backend/static/index-oPRJTRcN.js" @@ -0,0 +1,161 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CLLTwnqd.js","assets/index-B1uKTNcW.css","assets/index-B5YX0VGQ.js","assets/useAdmin-DytkUHQc.js","assets/ExportModal-CrJtybXx.js","assets/ExportModal-BoB3JpqO.css","assets/index-BzPMJFRS.css","assets/AdminPage-Ba_QXeaN.js","assets/AdminPage-VgSjQ50W.css","assets/index-B3hZqJuM.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); +function $g(e,n){for(var i=0;io[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();var _P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zc={exports:{}},Oa={},Qc={exports:{}},Ze={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var am;function I1(){if(am)return Ze;am=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.iterator;function m(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function T(N,U,oe){this.props=N,this.context=U,this.refs=_,this.updater=oe||x}T.prototype.isReactComponent={},T.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,U,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function M(){}M.prototype=T.prototype;function D(N,U,oe){this.props=N,this.context=U,this.refs=_,this.updater=oe||x}var $=D.prototype=new M;$.constructor=D,b($,T.prototype),$.isPureReactComponent=!0;var V=Array.isArray,Z=Object.prototype.hasOwnProperty,ce={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function te(N,U,oe){var Se,se={},re=null,J=null;if(U!=null)for(Se in U.ref!==void 0&&(J=U.ref),U.key!==void 0&&(re=""+U.key),U)Z.call(U,Se)&&!O.hasOwnProperty(Se)&&(se[Se]=U[Se]);var Q=arguments.length-2;if(Q===1)se.children=oe;else if(1>>1,oe=G[U];if(0>>1;Us(re,N))Js(Q,re)?(G[U]=Q,G[J]=N,U=J):(G[U]=re,G[se]=N,U=se);else if(Js(Q,N))G[U]=Q,G[J]=N,U=J;else break e}}return le}function s(G,le){var N=G.sortIndex-le.sortIndex;return N!==0?N:G.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],v=[],w=1,C=null,m=3,x=!1,b=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(G){for(var le=i(v);le!==null;){if(le.callback===null)o(v);else if(le.startTime<=G)o(v),le.sortIndex=le.expirationTime,n(p,le);else break;le=i(v)}}function V(G){if(_=!1,$(G),!b)if(i(p)!==null)b=!0,xe(Z);else{var le=i(v);le!==null&&be(V,le.startTime-G)}}function Z(G,le){b=!1,_&&(_=!1,M(te),te=-1),x=!0;var N=m;try{for($(le),C=i(p);C!==null&&(!(C.expirationTime>le)||G&&!I());){var U=C.callback;if(typeof U=="function"){C.callback=null,m=C.priorityLevel;var oe=U(C.expirationTime<=le);le=e.unstable_now(),typeof oe=="function"?C.callback=oe:C===i(p)&&o(p),$(le)}else o(p);C=i(p)}if(C!==null)var Se=!0;else{var se=i(v);se!==null&&be(V,se.startTime-le),Se=!1}return Se}finally{C=null,m=N,x=!1}}var ce=!1,O=null,te=-1,de=5,fe=-1;function I(){return!(e.unstable_now()-feG||125U?(G.sortIndex=N,n(v,G),i(p)===null&&G===i(v)&&(_?(M(te),te=-1):_=!0,be(V,N-U))):(G.sortIndex=oe,n(p,G),b||x||(b=!0,xe(Z))),G},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(G){var le=m;return function(){var N=m;m=le;try{return G.apply(this,arguments)}finally{m=N}}}}(Xc)),Xc}var dm;function B1(){return dm||(dm=1,Yc.exports=z1()),Yc.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fm;function U1(){if(fm)return yn;fm=1;var e=Yd(),n=B1();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},C={};function m(t){return p.call(C,t)?!0:p.call(w,t)?!1:v.test(t)?C[t]=!0:(w[t]=!0,!1)}function x(t,r,a,l){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function b(t,r,a,l){if(r===null||typeof r>"u"||x(t,r,a,l))return!0;if(l)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function _(t,r,a,l,c,h,S){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=a,this.propertyName=t,this.type=r,this.sanitizeURL=h,this.removeEmptyString=S}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){T[t]=new _(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];T[r]=new _(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){T[t]=new _(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){T[t]=new _(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){T[t]=new _(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){T[t]=new _(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){T[t]=new _(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){T[t]=new _(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){T[t]=new _(t,5,!1,t.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function D(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(M,D);T[r]=new _(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(M,D);T[r]=new _(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(M,D);T[r]=new _(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){T[t]=new _(t,1,!1,t.toLowerCase(),null,!1,!1)}),T.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){T[t]=new _(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,a,l){var c=T.hasOwnProperty(r)?T[r]:null;(c!==null?c.type!==0:l||!(2E||c[S]!==h[E]){var P=` +`+c[S].replace(" at new "," at ");return t.displayName&&P.includes("")&&(P=P.replace("",t.displayName)),P}while(1<=S&&0<=E);break}}}finally{Se=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?oe(t):""}function re(t){switch(t.tag){case 5:return oe(t.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return t=se(t.type,!1),t;case 11:return t=se(t.type.render,!1),t;case 1:return t=se(t.type,!0),t;default:return""}}function J(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case ce:return"Portal";case de:return"Profiler";case te:return"StrictMode";case W:return"Suspense";case ne:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case I:return(t.displayName||"Context")+".Consumer";case fe:return(t._context.displayName||"Context")+".Provider";case H:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case he:return r=t.displayName||null,r!==null?r:J(t.type)||"Memo";case xe:r=t._payload,t=t._init;try{return J(t(r))}catch{}}return null}function Q(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(r);case 8:return r===te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Y(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function tt(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function tn(t){var r=tt(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,h=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(S){l=""+S,h.call(this,S)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Wt(t){t._valueTracker||(t._valueTracker=tn(t))}function lt(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return t&&(l=tt(t)?t.checked?"true":"false":t.value),t=l,t!==a?(r.setValue(t),!0):!1}function wt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ct(t,r){var a=r.checked;return N({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function ht(t,r){var a=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;a=Y(r.value!=null?r.value:a),t._wrapperState={initialChecked:l,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function gt(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function xt(t,r){gt(t,r);var a=Y(r.value),l=r.type;if(a!=null)l==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?nn(t,r.type,a):r.hasOwnProperty("defaultValue")&&nn(t,r.type,Y(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function _t(t,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,a||r===t.value||(t.value=r),t.defaultValue=r}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function nn(t,r,a){(r!=="number"||wt(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var bn=Array.isArray;function sn(t,r,a,l){if(t=t.options,r){r={};for(var c=0;c"+r.valueOf().toString()+"",r=Lt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Gt(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nn=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(t){Nn.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),Et[r]=Et[t]})});function dn(t,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||Et.hasOwnProperty(t)&&Et[t]?(""+r).trim():r+"px"}function Zr(t,r){t=t.style;for(var a in r)if(r.hasOwnProperty(a)){var l=a.indexOf("--")===0,c=dn(a,r[a],l);a==="float"&&(a="cssFloat"),l?t.setProperty(a,c):t[a]=c}}var Qr=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Er(t,r){if(r){if(Qr[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Nr(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kr=null;function Fn(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kn=null,kn=null,$n=null;function Kr(t){if(t=wa(t)){if(typeof Kn!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Ls(r),Kn(t.stateNode,t.type,r))}}function bi(t){kn?$n?$n.push(t):$n=[t]:kn=t}function Yr(){if(kn){var t=kn,r=$n;if($n=kn=null,Kr(t),r)for(t=0;t>>=0,t===0?32:31-(pr(t)/io|0)|0}var Jr=64,oo=4194304;function ki(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ao(t,r){var a=t.pendingLanes;if(a===0)return 0;var l=0,c=t.suspendedLanes,h=t.pingedLanes,S=a&268435455;if(S!==0){var E=S&~c;E!==0?l=ki(E):(h&=S,h!==0&&(l=ki(h)))}else S=a&~c,S!==0?l=ki(S):h!==0&&(l=ki(h));if(l===0)return 0;if(r!==0&&r!==l&&(r&c)===0&&(c=l&-l,h=r&-r,c>=h||c===16&&(h&4194240)!==0))return r;if((l&4)!==0&&(l|=a&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0a;a++)r.push(t);return r}function Ti(t,r,a){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ge(r),t[r]=a}function xu(t,r){var a=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0=ca),Xf=" ",Jf=!1;function eh(t,r){switch(t){case"keyup":return My.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ho=!1;function Dy(t,r){switch(t){case"compositionend":return th(r);case"keypress":return r.which!==32?null:(Jf=!0,Xf);case"textInput":return t=r.data,t===Xf&&Jf?null:t;default:return null}}function Oy(t,r){if(ho)return t==="compositionend"||!Tu&&eh(t,r)?(t=it(),$t=We=rt=null,ho=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:a,offset:r-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=lh(a)}}function ch(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?ch(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function dh(){for(var t=window,r=wt();r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=wt(t.document)}return r}function Mu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Hy(t){var r=dh(),a=t.focusedElem,l=t.selectionRange;if(r!==a&&a&&a.ownerDocument&&ch(a.ownerDocument.documentElement,a)){if(l!==null&&Mu(a)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(t,a.value.length);else if(t=(r=a.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=a.textContent.length,h=Math.min(l.start,c);l=l.end===void 0?h:Math.min(l.end,c),!t.extend&&h>l&&(c=l,l=h,h=c),c=uh(a,h);var S=uh(a,l);c&&S&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==S.node||t.focusOffset!==S.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),h>l?(t.addRange(r),t.extend(S.node,S.offset)):(r.setEnd(S.node,S.offset),t.addRange(r)))}}for(r=[],t=a;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,po=null,Lu=null,pa=null,Du=!1;function fh(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Du||po==null||po!==wt(l)||(l=po,"selectionStart"in l&&Mu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pa&&ha(pa,l)||(pa=l,l=js(Lu,"onSelect"),0wo||(t.current=qu[wo],qu[wo]=null,wo--)}function ft(t,r){wo++,qu[wo]=t.current,t.current=r}var oi={},Yt=ii(oi),hn=ii(!1),Oi=oi;function xo(t,r){var a=t.type.contextTypes;if(!a)return oi;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var c={},h;for(h in a)c[h]=r[h];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function pn(t){return t=t.childContextTypes,t!=null}function Ds(){mt(hn),mt(Yt)}function kh(t,r,a){if(Yt.current!==oi)throw Error(i(168));ft(Yt,r),ft(hn,a)}function Th(t,r,a){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return a;l=l.getChildContext();for(var c in l)if(!(c in r))throw Error(i(108,Q(t)||"Unknown",c));return N({},a,l)}function Os(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||oi,Oi=Yt.current,ft(Yt,t),ft(hn,hn.current),!0}function jh(t,r,a){var l=t.stateNode;if(!l)throw Error(i(169));a?(t=Th(t,r,Oi),l.__reactInternalMemoizedMergedChildContext=t,mt(hn),mt(Yt),ft(Yt,t)):mt(hn),ft(hn,a)}var Lr=null,Rs=!1,Wu=!1;function Ph(t){Lr===null?Lr=[t]:Lr.push(t)}function t1(t){Rs=!0,Ph(t)}function ai(){if(!Wu&&Lr!==null){Wu=!0;var t=0,r=nt;try{var a=Lr;for(nt=1;t>=S,c-=S,Dr=1<<32-Ge(r)+c|a<Ie?(Ut=De,De=null):Ut=De.sibling;var et=X(A,De,F[Ie],ae);if(et===null){De===null&&(De=Ut);break}t&&De&&et.alternate===null&&r(A,De),L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et,De=Ut}if(Ie===F.length)return a(A,De),vt&&Ii(A,Ie),ke;if(De===null){for(;IeIe?(Ut=De,De=null):Ut=De.sibling;var mi=X(A,De,et.value,ae);if(mi===null){De===null&&(De=Ut);break}t&&De&&mi.alternate===null&&r(A,De),L=h(mi,L,Ie),Le===null?ke=mi:Le.sibling=mi,Le=mi,De=Ut}if(et.done)return a(A,De),vt&&Ii(A,Ie),ke;if(De===null){for(;!et.done;Ie++,et=F.next())et=ie(A,et.value,ae),et!==null&&(L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et);return vt&&Ii(A,Ie),ke}for(De=l(A,De);!et.done;Ie++,et=F.next())et=pe(De,A,Ie,et.value,ae),et!==null&&(t&&et.alternate!==null&&De.delete(et.key===null?Ie:et.key),L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et);return t&&De.forEach(function(R1){return r(A,R1)}),vt&&Ii(A,Ie),ke}function Pt(A,L,F,ae){if(typeof F=="object"&&F!==null&&F.type===O&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case Z:e:{for(var ke=F.key,Le=L;Le!==null;){if(Le.key===ke){if(ke=F.type,ke===O){if(Le.tag===7){a(A,Le.sibling),L=c(Le,F.props.children),L.return=A,A=L;break e}}else if(Le.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===xe&&Vh(ke)===Le.type){a(A,Le.sibling),L=c(Le,F.props),L.ref=xa(A,Le,F),L.return=A,A=L;break e}a(A,Le);break}else r(A,Le);Le=Le.sibling}F.type===O?(L=Vi(F.props.children,A.mode,ae,F.key),L.return=A,A=L):(ae=ul(F.type,F.key,F.props,null,A.mode,ae),ae.ref=xa(A,L,F),ae.return=A,A=ae)}return S(A);case ce:e:{for(Le=F.key;L!==null;){if(L.key===Le)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){a(A,L.sibling),L=c(L,F.children||[]),L.return=A,A=L;break e}else{a(A,L);break}else r(A,L);L=L.sibling}L=Hc(F,A.mode,ae),L.return=A,A=L}return S(A);case xe:return Le=F._init,Pt(A,L,Le(F._payload),ae)}if(bn(F))return _e(A,L,F,ae);if(le(F))return Ee(A,L,F,ae);Vs(A,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,L!==null&&L.tag===6?(a(A,L.sibling),L=c(L,F),L.return=A,A=L):(a(A,L),L=Uc(F,A.mode,ae),L.return=A,A=L),S(A)):a(A,L)}return Pt}var No=qh(!0),Wh=qh(!1),Ca={},vr=ii(Ca),Sa=ii(Ca),_a=ii(Ca);function Fi(t){if(t===Ca)throw Error(i(174));return t}function ac(t,r){switch(ft(_a,r),ft(Sa,t),ft(vr,Ca),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:cn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=cn(r,t)}mt(vr),ft(vr,r)}function ko(){mt(vr),mt(Sa),mt(_a)}function Gh(t){Fi(_a.current);var r=Fi(vr.current),a=cn(r,t.type);r!==a&&(ft(Sa,t),ft(vr,a))}function sc(t){Sa.current===t&&(mt(vr),mt(Sa))}var Ct=ii(0);function qs(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var lc=[];function uc(){for(var t=0;ta?a:4,t(!0);var l=cc.transition;cc.transition={};try{t(!1),r()}finally{nt=a,cc.transition=l}}function dp(){return Wn().memoizedState}function o1(t,r,a){var l=fi(t);if(a={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null},fp(t))hp(r,a);else if(a=Ih(t,r,a,l),a!==null){var c=on();lr(a,t,l,c),pp(a,r,l)}}function a1(t,r,a){var l=fi(t),c={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null};if(fp(t))hp(r,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var S=r.lastRenderedState,E=h(S,a);if(c.hasEagerState=!0,c.eagerState=E,rr(E,S)){var P=r.interleaved;P===null?(c.next=c,nc(r)):(c.next=P.next,P.next=c),r.interleaved=c;return}}catch{}finally{}a=Ih(t,r,c,l),a!==null&&(c=on(),lr(a,t,l,c),pp(a,r,l))}}function fp(t){var r=t.alternate;return t===St||r!==null&&r===St}function hp(t,r){ba=Gs=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function pp(t,r,a){if((a&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,ta(t,a)}}var Ks={readContext:qn,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},s1={readContext:qn,useCallback:function(t,r){return yr().memoizedState=[t,r===void 0?null:r],t},useContext:qn,useEffect:rp,useImperativeHandle:function(t,r,a){return a=a!=null?a.concat([t]):null,Zs(4194308,4,ap.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Zs(4194308,4,t,r)},useInsertionEffect:function(t,r){return Zs(4,2,t,r)},useMemo:function(t,r){var a=yr();return r=r===void 0?null:r,t=t(),a.memoizedState=[t,r],t},useReducer:function(t,r,a){var l=yr();return r=a!==void 0?a(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=o1.bind(null,St,t),[l.memoizedState,t]},useRef:function(t){var r=yr();return t={current:t},r.memoizedState=t},useState:tp,useDebugValue:vc,useDeferredValue:function(t){return yr().memoizedState=t},useTransition:function(){var t=tp(!1),r=t[0];return t=i1.bind(null,t[1]),yr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,a){var l=St,c=yr();if(vt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=r(),Bt===null)throw Error(i(349));($i&30)!==0||Kh(l,r,a)}c.memoizedState=a;var h={value:a,getSnapshot:r};return c.queue=h,rp(Xh.bind(null,l,h,t),[t]),l.flags|=2048,ka(9,Yh.bind(null,l,h,a,r),void 0,null),a},useId:function(){var t=yr(),r=Bt.identifierPrefix;if(vt){var a=Or,l=Dr;a=(l&~(1<<32-Ge(l)-1)).toString(32)+a,r=":"+r+"R"+a,a=Ea++,0<\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=S.createElement(a,{is:l.is}):(t=S.createElement(a),a==="select"&&(S=t,l.multiple?S.multiple=!0:l.size&&(S.size=l.size))):t=S.createElementNS(t,a),t[gr]=r,t[ya]=l,Mp(t,r,!1,!1),r.stateNode=t;e:{switch(S=Nr(a,l),a){case"dialog":pt("cancel",t),pt("close",t),c=l;break;case"iframe":case"object":case"embed":pt("load",t),c=l;break;case"video":case"audio":for(c=0;cMo&&(r.flags|=128,l=!0,Ta(h,!1),r.lanes=4194304)}else{if(!l)if(t=qs(S),t!==null){if(r.flags|=128,l=!0,a=t.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),Ta(h,!0),h.tail===null&&h.tailMode==="hidden"&&!S.alternate&&!vt)return Jt(r),null}else 2*ze()-h.renderingStartTime>Mo&&a!==1073741824&&(r.flags|=128,l=!0,Ta(h,!1),r.lanes=4194304);h.isBackwards?(S.sibling=r.child,r.child=S):(a=h.last,a!==null?a.sibling=S:r.child=S,h.last=S)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=ze(),r.sibling=null,a=Ct.current,ft(Ct,l?a&1|2:a&1),r):(Jt(r),null);case 22:case 23:return $c(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(Dn&1073741824)!==0&&(Jt(r),r.subtreeFlags&6&&(r.flags|=8192)):Jt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function m1(t,r){switch(Zu(r),r.tag){case 1:return pn(r.type)&&Ds(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ko(),mt(hn),mt(Yt),uc(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return sc(r),null;case 13:if(mt(Ct),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));_o()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return mt(Ct),null;case 4:return ko(),null;case 10:return ec(r.type._context),null;case 22:case 23:return $c(),null;case 24:return null;default:return null}}var Js=!1,en=!1,g1=typeof WeakSet=="function"?WeakSet:Set,we=null;function jo(t,r){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(l){Nt(t,r,l)}else a.current=null}function kc(t,r,a){try{a()}catch(l){Nt(t,r,l)}}var Op=!1;function v1(t,r){if($u=uo,t=dh(),Mu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var S=0,E=-1,P=-1,B=0,ee=0,ie=t,X=null;t:for(;;){for(var pe;ie!==a||c!==0&&ie.nodeType!==3||(E=S+c),ie!==h||l!==0&&ie.nodeType!==3||(P=S+l),ie.nodeType===3&&(S+=ie.nodeValue.length),(pe=ie.firstChild)!==null;)X=ie,ie=pe;for(;;){if(ie===t)break t;if(X===a&&++B===c&&(E=S),X===h&&++ee===l&&(P=S),(pe=ie.nextSibling)!==null)break;ie=X,X=ie.parentNode}ie=pe}a=E===-1||P===-1?null:{start:E,end:P}}else a=null}a=a||{start:0,end:0}}else a=null;for(zu={focusedElem:t,selectionRange:a},uo=!1,we=r;we!==null;)if(r=we,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,we=t;else for(;we!==null;){r=we;try{var _e=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Ee=_e.memoizedProps,Pt=_e.memoizedState,A=r.stateNode,L=A.getSnapshotBeforeUpdate(r.elementType===r.type?Ee:or(r.type,Ee),Pt);A.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ae){Nt(r,r.return,ae)}if(t=r.sibling,t!==null){t.return=r.return,we=t;break}we=r.return}return _e=Op,Op=!1,_e}function ja(t,r,a){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&t)===t){var h=c.destroy;c.destroy=void 0,h!==void 0&&kc(r,a,h)}c=c.next}while(c!==l)}}function el(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var l=a.create;a.destroy=l()}a=a.next}while(a!==r)}}function Tc(t){var r=t.ref;if(r!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof r=="function"?r(t):r.current=t}}function Rp(t){var r=t.alternate;r!==null&&(t.alternate=null,Rp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[gr],delete r[ya],delete r[Vu],delete r[Jy],delete r[e1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ip(t){return t.tag===5||t.tag===3||t.tag===4}function Ap(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ip(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.nodeType===8?a.parentNode.insertBefore(t,r):a.insertBefore(t,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(t,a)):(r=a,r.appendChild(t)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Ms));else if(l!==4&&(t=t.child,t!==null))for(jc(t,r,a),t=t.sibling;t!==null;)jc(t,r,a),t=t.sibling}function Pc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Pc(t,r,a),t=t.sibling;t!==null;)Pc(t,r,a),t=t.sibling}var Qt=null,ar=!1;function ui(t,r,a){for(a=a.child;a!==null;)Fp(t,r,a),a=a.sibling}function Fp(t,r,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(ot,a)}catch{}switch(a.tag){case 5:en||jo(a,r);case 6:var l=Qt,c=ar;Qt=null,ui(t,r,a),Qt=l,ar=c,Qt!==null&&(ar?(t=Qt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):Qt.removeChild(a.stateNode));break;case 18:Qt!==null&&(ar?(t=Qt,a=a.stateNode,t.nodeType===8?Hu(t.parentNode,a):t.nodeType===1&&Hu(t,a),Li(t)):Hu(Qt,a.stateNode));break;case 4:l=Qt,c=ar,Qt=a.stateNode.containerInfo,ar=!0,ui(t,r,a),Qt=l,ar=c;break;case 0:case 11:case 14:case 15:if(!en&&(l=a.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var h=c,S=h.destroy;h=h.tag,S!==void 0&&((h&2)!==0||(h&4)!==0)&&kc(a,r,S),c=c.next}while(c!==l)}ui(t,r,a);break;case 1:if(!en&&(jo(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=a.memoizedProps,l.state=a.memoizedState,l.componentWillUnmount()}catch(E){Nt(a,r,E)}ui(t,r,a);break;case 21:ui(t,r,a);break;case 22:a.mode&1?(en=(l=en)||a.memoizedState!==null,ui(t,r,a),en=l):ui(t,r,a);break;default:ui(t,r,a)}}function $p(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new g1),r.forEach(function(l){var c=N1.bind(null,t,l);a.has(l)||(a.add(l),l.then(c,c))})}}function sr(t,r){var a=r.deletions;if(a!==null)for(var l=0;lc&&(c=S),l&=~h}if(l=c,l=ze()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*w1(l/1960))-l,10t?16:t,di===null)var l=!1;else{if(t=di,di=null,ol=0,(Xe&6)!==0)throw Error(i(331));var c=Xe;for(Xe|=4,we=t.current;we!==null;){var h=we,S=h.child;if((we.flags&16)!==0){var E=h.deletions;if(E!==null){for(var P=0;Pze()-Dc?Ui(t,0):Lc|=a),vn(t,r)}function Xp(t,r){r===0&&((t.mode&1)===0?r=1:(r=oo,oo<<=1,(oo&130023424)===0&&(oo=4194304)));var a=on();t=Rr(t,r),t!==null&&(Ti(t,r,a),vn(t,a))}function E1(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),Xp(t,a)}function N1(t,r){var a=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),Xp(t,a)}var Jp;Jp=function(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps||hn.current)mn=!0;else{if((t.lanes&a)===0&&(r.flags&128)===0)return mn=!1,h1(t,r,a);mn=(t.flags&131072)!==0}else mn=!1,vt&&(r.flags&1048576)!==0&&Mh(r,As,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;Xs(t,r),t=r.pendingProps;var c=xo(r,Yt.current);Eo(r,a),c=fc(null,r,l,t,c,a);var h=hc();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,pn(l)?(h=!0,Os(r)):h=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,rc(r),c.updater=Hs,r.stateNode=c,c._reactInternals=r,oc(r,l,t,a),r=Cc(null,r,l,!0,h,a)):(r.tag=0,vt&&h&&Gu(r),rn(null,r,c,a),r=r.child),r;case 16:l=r.elementType;e:{switch(Xs(t,r),t=r.pendingProps,c=l._init,l=c(l._payload),r.type=l,c=r.tag=T1(l),t=or(l,t),c){case 0:r=xc(null,r,l,t,a);break e;case 1:r=Ep(null,r,l,t,a);break e;case 11:r=xp(null,r,l,t,a);break e;case 14:r=Cp(null,r,l,or(l.type,t),a);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(l,c),xc(t,r,l,c,a);case 1:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(l,c),Ep(t,r,l,c,a);case 3:e:{if(Np(r),t===null)throw Error(i(387));l=r.pendingProps,h=r.memoizedState,c=h.element,Ah(t,r),Us(r,l,null,a);var S=r.memoizedState;if(l=S.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){c=To(Error(i(423)),r),r=kp(t,r,l,a,c);break e}else if(l!==c){c=To(Error(i(424)),r),r=kp(t,r,l,a,c);break e}else for(Ln=ri(r.stateNode.containerInfo.firstChild),Mn=r,vt=!0,ir=null,a=Wh(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(_o(),l===c){r=Ar(t,r,a);break e}rn(t,r,l,a)}r=r.child}return r;case 5:return Gh(r),t===null&&Ku(r),l=r.type,c=r.pendingProps,h=t!==null?t.memoizedProps:null,S=c.children,Bu(l,c)?S=null:h!==null&&Bu(l,h)&&(r.flags|=32),bp(t,r),rn(t,r,S,a),r.child;case 6:return t===null&&Ku(r),null;case 13:return Tp(t,r,a);case 4:return ac(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=No(r,null,l,a):rn(t,r,l,a),r.child;case 11:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(l,c),xp(t,r,l,c,a);case 7:return rn(t,r,r.pendingProps,a),r.child;case 8:return rn(t,r,r.pendingProps.children,a),r.child;case 12:return rn(t,r,r.pendingProps.children,a),r.child;case 10:e:{if(l=r.type._context,c=r.pendingProps,h=r.memoizedProps,S=c.value,ft($s,l._currentValue),l._currentValue=S,h!==null)if(rr(h.value,S)){if(h.children===c.children&&!hn.current){r=Ar(t,r,a);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var E=h.dependencies;if(E!==null){S=h.child;for(var P=E.firstContext;P!==null;){if(P.context===l){if(h.tag===1){P=Ir(-1,a&-a),P.tag=2;var B=h.updateQueue;if(B!==null){B=B.shared;var ee=B.pending;ee===null?P.next=P:(P.next=ee.next,ee.next=P),B.pending=P}}h.lanes|=a,P=h.alternate,P!==null&&(P.lanes|=a),tc(h.return,a,r),E.lanes|=a;break}P=P.next}}else if(h.tag===10)S=h.type===r.type?null:h.child;else if(h.tag===18){if(S=h.return,S===null)throw Error(i(341));S.lanes|=a,E=S.alternate,E!==null&&(E.lanes|=a),tc(S,a,r),S=h.sibling}else S=h.child;if(S!==null)S.return=h;else for(S=h;S!==null;){if(S===r){S=null;break}if(h=S.sibling,h!==null){h.return=S.return,S=h;break}S=S.return}h=S}rn(t,r,c.children,a),r=r.child}return r;case 9:return c=r.type,l=r.pendingProps.children,Eo(r,a),c=qn(c),l=l(c),r.flags|=1,rn(t,r,l,a),r.child;case 14:return l=r.type,c=or(l,r.pendingProps),c=or(l.type,c),Cp(t,r,l,c,a);case 15:return Sp(t,r,r.type,r.pendingProps,a);case 17:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(l,c),Xs(t,r),r.tag=1,pn(l)?(t=!0,Os(r)):t=!1,Eo(r,a),Uh(r,l,c),oc(r,l,c,a),Cc(null,r,l,!0,t,a);case 19:return Pp(t,r,a);case 22:return _p(t,r,a)}throw Error(i(156,r.tag))};function em(t,r){return Je(t,r)}function k1(t,r,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(t,r,a,l){return new k1(t,r,a,l)}function Bc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function T1(t){if(typeof t=="function")return Bc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===H)return 11;if(t===he)return 14}return 2}function pi(t,r){var a=t.alternate;return a===null?(a=Zn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function ul(t,r,a,l,c,h){var S=2;if(l=t,typeof t=="function")Bc(t)&&(S=1);else if(typeof t=="string")S=5;else e:switch(t){case O:return Vi(a.children,c,h,r);case te:S=8,c|=8;break;case de:return t=Zn(12,a,r,c|2),t.elementType=de,t.lanes=h,t;case W:return t=Zn(13,a,r,c),t.elementType=W,t.lanes=h,t;case ne:return t=Zn(19,a,r,c),t.elementType=ne,t.lanes=h,t;case be:return cl(a,c,h,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case fe:S=10;break e;case I:S=9;break e;case H:S=11;break e;case he:S=14;break e;case xe:S=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Zn(S,a,r,c),r.elementType=t,r.type=l,r.lanes=h,r}function Vi(t,r,a,l){return t=Zn(7,t,l,r),t.lanes=a,t}function cl(t,r,a,l){return t=Zn(22,t,l,r),t.elementType=be,t.lanes=a,t.stateNode={isHidden:!1},t}function Uc(t,r,a){return t=Zn(6,t,null,r),t.lanes=a,t}function Hc(t,r,a){return r=Zn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function j1(t,r,a,l,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Vc(t,r,a,l,c,h,S,E,P){return t=new j1(t,r,a,E,P),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Zn(3,null,null,r),t.current=h,h.stateNode=t,h.memoizedState={element:l,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},rc(h),t}function P1(t,r,a){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Kc.exports=U1(),Kc.exports}var pm;function H1(){if(pm)return vl;pm=1;var e=Bg();return vl.createRoot=e.createRoot,vl.hydrateRoot=e.hydrateRoot,vl}var V1=H1();const q1="modulepreload",W1=function(e){return"/"+e},mm={},Qn=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let p=function(v){return Promise.all(v.map(w=>Promise.resolve(w).then(C=>({status:"fulfilled",value:C}),C=>({status:"rejected",reason:C}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");s=p(i.map(v=>{if(v=W1(v),v in mm)return;mm[v]=!0;const w=v.endsWith(".css"),C=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${C}`))return;const m=document.createElement("link");if(m.rel=w?"stylesheet":q1,w||(m.as="script"),m.crossOrigin="",m.href=v,f&&m.setAttribute("nonce",f),document.head.appendChild(m),w)return new Promise((x,b)=>{m.addEventListener("load",x),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${v}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return s.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};var Xd=Bg();const G1=zg(Xd),Z1=$g({__proto__:null,default:G1},[Xd]);/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var n=1;n"u")throw new Error(n)}function Ho(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function K1(){return Math.random().toString(36).substr(2,8)}function vm(e,n){return{usr:e.state,key:e.key,idx:n}}function Xa(e,n,i,o){return i===void 0&&(i=null),yt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Si(n):n,{state:i,key:n&&n.key||o||K1()})}function Xi(e){let{pathname:n="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Si(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function Y1(e,n,i,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:u=!1}=o,d=s.history,f=Ot.Pop,p=null,v=w();v==null&&(v=0,d.replaceState(yt({},d.state,{idx:v}),""));function w(){return(d.state||{idx:null}).idx}function C(){f=Ot.Pop;let T=w(),M=T==null?null:T-v;v=T,p&&p({action:f,location:_.location,delta:M})}function m(T,M){f=Ot.Push;let D=Xa(_.location,T,M);v=w()+1;let $=vm(D,v),V=_.createHref(D);try{d.pushState($,"",V)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;s.location.assign(V)}u&&p&&p({action:f,location:_.location,delta:1})}function x(T,M){f=Ot.Replace;let D=Xa(_.location,T,M);v=w();let $=vm(D,v),V=_.createHref(D);d.replaceState($,"",V),u&&p&&p({action:f,location:_.location,delta:0})}function b(T){let M=s.location.origin!=="null"?s.location.origin:s.location.href,D=typeof T=="string"?T:Xi(T);return D=D.replace(/ $/,"%20"),Ye(M,"No window.location.(origin|href) available to create URL for href: "+D),new URL(D,M)}let _={get action(){return f},get location(){return e(s,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(gm,C),p=T,()=>{s.removeEventListener(gm,C),p=null}},createHref(T){return n(s,T)},createURL:b,encodeLocation(T){let M=b(T);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:m,replace:x,go(T){return d.go(T)}};return _}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));const X1=new Set(["lazy","caseSensitive","path","id","index","children"]);function J1(e){return e.index===!0}function Vl(e,n,i,o){return i===void 0&&(i=[]),o===void 0&&(o={}),e.map((s,u)=>{let d=[...i,String(u)],f=typeof s.id=="string"?s.id:d.join("-");if(Ye(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ye(!o[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),J1(s)){let p=yt({},s,n(s),{id:f});return o[f]=p,p}else{let p=yt({},s,n(s),{id:f,children:void 0});return o[f]=p,s.children&&(p.children=Vl(s.children,n,d,o)),p}})}function Wi(e,n,i){return i===void 0&&(i="/"),Al(e,n,i,!1)}function Al(e,n,i,o){let s=typeof n=="string"?Si(n):n,u=Qo(s.pathname||"/",i);if(u==null)return null;let d=Ug(e);tw(d);let f=null;for(let p=0;f==null&&p{let p={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Ye(p.relativePath.startsWith(o),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(o.length));let v=Hr([o,p.relativePath]),w=i.concat(p);u.children&&u.children.length>0&&(Ye(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),Ug(u.children,n,w,v)),!(u.path==null&&!u.index)&&n.push({path:v,score:lw(v,u.index),routesMeta:w})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let p of Hg(u.path))s(u,d,p)}),n}function Hg(e){let n=e.split("/");if(n.length===0)return[];let[i,...o]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(o.length===0)return s?[u,""]:[u];let d=Hg(o.join("/")),f=[];return f.push(...d.map(p=>p===""?u:[u,p].join("/"))),s&&f.push(...d),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function tw(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:uw(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const nw=/^:[\w-]+$/,rw=3,iw=2,ow=1,aw=10,sw=-2,ym=e=>e==="*";function lw(e,n){let i=e.split("/"),o=i.length;return i.some(ym)&&(o+=sw),n&&(o+=iw),i.filter(s=>!ym(s)).reduce((s,u)=>s+(nw.test(u)?rw:u===""?ow:aw),o)}function uw(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function cw(e,n,i){i===void 0&&(i=!1);let{routesMeta:o}=e,s={},u="/",d=[];for(let f=0;f{let{paramName:m,isOptional:x}=w;if(m==="*"){let _=f[C]||"";d=u.slice(0,u.length-_.length).replace(/(.)\/+$/,"$1")}const b=f[C];return x&&!b?v[m]=void 0:v[m]=(b||"").replace(/%2F/g,"/"),v},{}),pathname:u,pathnameBase:d,pattern:e}}function dw(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!0),Ho(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,p)=>(o.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function fw(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ho(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function Qo(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}function hw(e,n){n===void 0&&(n="/");let{pathname:i,search:o="",hash:s=""}=typeof e=="string"?Si(e):e;return{pathname:i?i.startsWith("/")?i:pw(i,n):n,search:gw(o),hash:vw(s)}}function pw(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function Jc(e,n,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Vg(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Jd(e,n){let i=Vg(e);return n?i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function ef(e,n,i,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=Si(e):(s=yt({},e),Ye(!s.pathname||!s.pathname.includes("?"),Jc("?","pathname","search",s)),Ye(!s.pathname||!s.pathname.includes("#"),Jc("#","pathname","hash",s)),Ye(!s.search||!s.search.includes("#"),Jc("#","search","hash",s)));let u=e===""||s.pathname==="",d=u?"/":s.pathname,f;if(d==null)f=i;else{let C=n.length-1;if(!o&&d.startsWith("..")){let m=d.split("/");for(;m[0]==="..";)m.shift(),C-=1;s.pathname=m.join("/")}f=C>=0?n[C]:"/"}let p=hw(s,f),v=d&&d!=="/"&&d.endsWith("/"),w=(u||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(v||w)&&(p.pathname+="/"),p}const Hr=e=>e.join("/").replace(/\/\/+/g,"/"),mw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ql{constructor(n,i,o,s){s===void 0&&(s=!1),this.status=n,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function Ja(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qg=["post","put","patch","delete"],yw=new Set(qg),ww=["get",...qg],xw=new Set(ww),Cw=new Set([301,302,303,307,308]),Sw=new Set([307,308]),ed={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_w={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ra={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},tf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Wg="remix-router-transitions";function Ew(e){const n=e.window?e.window:typeof window<"u"?window:void 0,i=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",o=!i;Ye(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;s=R=>({hasErrorBoundary:j(R)})}else s=bw;let u={},d=Vl(e.routes,s,void 0,u),f,p=e.basename||"/",v=e.dataStrategy||jw,w=e.patchRoutesOnNavigation,C=yt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,x=new Set,b=null,_=null,T=null,M=e.hydrationData!=null,D=Wi(d,e.history.location,p),$=!1,V=null;if(D==null&&!w){let j=wn(404,{pathname:e.history.location.pathname}),{matches:R,route:z}=Pm(d);D=R,V={[z.id]:j}}D&&!e.hydrationData&&zn(D,d,e.history.location.pathname).active&&(D=null);let Z;if(D)if(D.some(j=>j.route.lazy))Z=!1;else if(!D.some(j=>j.route.loader))Z=!0;else if(C.v7_partialHydration){let j=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null;if(R){let z=D.findIndex(K=>R[K.route.id]!==void 0);Z=D.slice(0,z+1).every(K=>!bd(K.route,j,R))}else Z=D.every(z=>!bd(z.route,j,R))}else Z=e.hydrationData!=null;else if(Z=!1,D=[],C.v7_partialHydration){let j=zn(null,d,e.history.location.pathname);j.active&&j.matches&&($=!0,D=j.matches)}let ce,O={historyAction:e.history.action,location:e.history.location,matches:D,initialized:Z,navigation:ed,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||V,fetchers:new Map,blockers:new Map},te=Ot.Pop,de=!1,fe,I=!1,H=new Map,W=null,ne=!1,he=!1,xe=[],be=new Set,G=new Map,le=0,N=-1,U=new Map,oe=new Set,Se=new Map,se=new Map,re=new Set,J=new Map,Q=new Map,Y;function tt(){if(m=e.history.listen(j=>{let{action:R,location:z,delta:K}=j;if(Y){Y(),Y=void 0;return}Ho(Q.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ue=Kn({currentLocation:O.location,nextLocation:z,historyAction:R});if(ue&&K!=null){let Ne=new Promise(Pe=>{Y=Pe});e.history.go(K*-1),Fn(ue,{state:"blocked",location:z,proceed(){Fn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),Ne.then(()=>e.history.go(K))},reset(){let Pe=new Map(O.blockers);Pe.set(ue,Ra),lt({blockers:Pe})}});return}return gt(R,z)}),i){Hw(n,H);let j=()=>Vw(n,H);n.addEventListener("pagehide",j),W=()=>n.removeEventListener("pagehide",j)}return O.initialized||gt(Ot.Pop,O.location,{initialHydration:!0}),ce}function tn(){m&&m(),W&&W(),x.clear(),fe&&fe.abort(),O.fetchers.forEach((j,R)=>Et(R)),O.blockers.forEach((j,R)=>kr(R))}function Wt(j){return x.add(j),()=>x.delete(j)}function lt(j,R){R===void 0&&(R={}),O=yt({},O,j);let z=[],K=[];C.v7_fetcherPersist&&O.fetchers.forEach((ue,Ne)=>{ue.state==="idle"&&(re.has(Ne)?K.push(Ne):z.push(Ne))}),re.forEach(ue=>{!O.fetchers.has(ue)&&!G.has(ue)&&K.push(ue)}),[...x].forEach(ue=>ue(O,{deletedFetchers:K,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),C.v7_fetcherPersist?(z.forEach(ue=>O.fetchers.delete(ue)),K.forEach(ue=>Et(ue))):K.forEach(ue=>re.delete(ue))}function wt(j,R,z){var K,ue;let{flushSync:Ne}=z===void 0?{}:z,Pe=O.actionData!=null&&O.navigation.formMethod!=null&&ur(O.navigation.formMethod)&&O.navigation.state==="loading"&&((K=j.state)==null?void 0:K._isRedirect)!==!0,ye;R.actionData?Object.keys(R.actionData).length>0?ye=R.actionData:ye=null:Pe?ye=O.actionData:ye=null;let Ce=R.loaderData?Tm(O.loaderData,R.loaderData,R.matches||[],R.errors):O.loaderData,ve=O.blockers;ve.size>0&&(ve=new Map(ve),ve.forEach((Ve,Tt)=>ve.set(Tt,Ra)));let me=de===!0||O.navigation.formMethod!=null&&ur(O.navigation.formMethod)&&((ue=j.state)==null?void 0:ue._isRedirect)!==!0;f&&(d=f,f=void 0),ne||te===Ot.Pop||(te===Ot.Push?e.history.push(j,j.state):te===Ot.Replace&&e.history.replace(j,j.state));let Fe;if(te===Ot.Pop){let Ve=H.get(O.location.pathname);Ve&&Ve.has(j.pathname)?Fe={currentLocation:O.location,nextLocation:j}:H.has(j.pathname)&&(Fe={currentLocation:j,nextLocation:O.location})}else if(I){let Ve=H.get(O.location.pathname);Ve?Ve.add(j.pathname):(Ve=new Set([j.pathname]),H.set(O.location.pathname,Ve)),Fe={currentLocation:O.location,nextLocation:j}}lt(yt({},R,{actionData:ye,loaderData:Ce,historyAction:te,location:j,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:Yn(j,R.matches||O.matches),preventScrollReset:me,blockers:ve}),{viewTransitionOpts:Fe,flushSync:Ne===!0}),te=Ot.Pop,de=!1,I=!1,ne=!1,he=!1,xe=[]}async function ct(j,R){if(typeof j=="number"){e.history.go(j);return}let z=_d(O.location,O.matches,p,C.v7_prependBasename,j,C.v7_relativeSplatPath,R?.fromRouteId,R?.relative),{path:K,submission:ue,error:Ne}=xm(C.v7_normalizeFormMethod,!1,z,R),Pe=O.location,ye=Xa(O.location,K,R&&R.state);ye=yt({},ye,e.history.encodeLocation(ye));let Ce=R&&R.replace!=null?R.replace:void 0,ve=Ot.Push;Ce===!0?ve=Ot.Replace:Ce===!1||ue!=null&&ur(ue.formMethod)&&ue.formAction===O.location.pathname+O.location.search&&(ve=Ot.Replace);let me=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Fe=(R&&R.flushSync)===!0,Ve=Kn({currentLocation:Pe,nextLocation:ye,historyAction:ve});if(Ve){Fn(Ve,{state:"blocked",location:ye,proceed(){Fn(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ct(j,R)},reset(){let Tt=new Map(O.blockers);Tt.set(Ve,Ra),lt({blockers:Tt})}});return}return await gt(ve,ye,{submission:ue,pendingError:Ne,preventScrollReset:me,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:Fe})}function ht(){if(cn(),lt({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){gt(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}gt(te||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:I===!0})}}async function gt(j,R,z){fe&&fe.abort(),fe=null,te=j,ne=(z&&z.startUninterruptedRevalidation)===!0,Yr(O.location,O.matches),de=(z&&z.preventScrollReset)===!0,I=(z&&z.enableViewTransition)===!0;let K=f||d,ue=z&&z.overrideNavigation,Ne=z!=null&&z.initialHydration&&O.matches&&O.matches.length>0&&!$?O.matches:Wi(K,R,p),Pe=(z&&z.flushSync)===!0;if(Ne&&O.initialized&&!he&&Rw(O.location,R)&&!(z&&z.submission&&ur(z.submission.formMethod))){wt(R,{matches:Ne},{flushSync:Pe});return}let ye=zn(Ne,K,R.pathname);if(ye.active&&ye.matches&&(Ne=ye.matches),!Ne){let{error:Ke,notFoundMatches:qe,route:Je}=kn(R.pathname);wt(R,{matches:qe,loaderData:{},errors:{[Je.id]:Ke}},{flushSync:Pe});return}fe=new AbortController;let Ce=Do(e.history,R,fe.signal,z&&z.submission),ve;if(z&&z.pendingError)ve=[Gi(Ne).route.id,{type:at.error,error:z.pendingError}];else if(z&&z.submission&&ur(z.submission.formMethod)){let Ke=await xt(Ce,R,z.submission,Ne,ye.active,{replace:z.replace,flushSync:Pe});if(Ke.shortCircuited)return;if(Ke.pendingActionResult){let[qe,Je]=Ke.pendingActionResult;if(Rn(Je)&&Ja(Je.error)&&Je.error.status===404){fe=null,wt(R,{matches:Ke.matches,loaderData:{},errors:{[qe]:Je.error}});return}}Ne=Ke.matches||Ne,ve=Ke.pendingActionResult,ue=td(R,z.submission),Pe=!1,ye.active=!1,Ce=Do(e.history,Ce.url,Ce.signal)}let{shortCircuited:me,matches:Fe,loaderData:Ve,errors:Tt}=await _t(Ce,R,Ne,ye.active,ue,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,Pe,ve);me||(fe=null,wt(R,yt({matches:Fe||Ne},jm(ve),{loaderData:Ve,errors:Tt})))}async function xt(j,R,z,K,ue,Ne){Ne===void 0&&(Ne={}),cn();let Pe=Bw(R,z);if(lt({navigation:Pe},{flushSync:Ne.flushSync===!0}),ue){let ve=await hr(K,R.pathname,j.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){let me=Gi(ve.partialMatches).route.id;return{matches:ve.partialMatches,pendingActionResult:[me,{type:at.error,error:ve.error}]}}else if(ve.matches)K=ve.matches;else{let{notFoundMatches:me,error:Fe,route:Ve}=kn(R.pathname);return{matches:me,pendingActionResult:[Ve.id,{type:at.error,error:Fe}]}}}let ye,Ce=Ga(K,R);if(!Ce.route.action&&!Ce.route.lazy)ye={type:at.error,error:wn(405,{method:j.method,pathname:R.pathname,routeId:Ce.route.id})};else if(ye=(await un("action",O,j,[Ce],K,null))[Ce.route.id],j.signal.aborted)return{shortCircuited:!0};if(Ki(ye)){let ve;return Ne&&Ne.replace!=null?ve=Ne.replace:ve=Em(ye.response.headers.get("Location"),new URL(j.url),p)===O.location.pathname+O.location.search,await ln(j,ye,!0,{submission:z,replace:ve}),{shortCircuited:!0}}if(xi(ye))throw wn(400,{type:"defer-action"});if(Rn(ye)){let ve=Gi(K,Ce.route.id);return(Ne&&Ne.replace)!==!0&&(te=Ot.Push),{matches:K,pendingActionResult:[ve.route.id,ye]}}return{matches:K,pendingActionResult:[Ce.route.id,ye]}}async function _t(j,R,z,K,ue,Ne,Pe,ye,Ce,ve,me){let Fe=ue||td(R,Ne),Ve=Ne||Pe||Lm(Fe),Tt=!ne&&(!C.v7_partialHydration||!Ce);if(K){if(Tt){let ot=nn(me);lt(yt({navigation:Fe},ot!==void 0?{actionData:ot}:{}),{flushSync:ve})}let Be=await hr(z,R.pathname,j.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let ot=Gi(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[ot]:Be.error}}}else if(Be.matches)z=Be.matches;else{let{error:ot,notFoundMatches:jt,route:jr}=kn(R.pathname);return{matches:jt,loaderData:{},errors:{[jr.id]:ot}}}}let Ke=f||d,[qe,Je]=Sm(e.history,O,z,Ve,R,C.v7_partialHydration&&Ce===!0,C.v7_skipActionErrorRevalidation,he,xe,be,re,Se,oe,Ke,p,me);if($n(Be=>!(z&&z.some(ot=>ot.route.id===Be))||qe&&qe.some(ot=>ot.route.id===Be)),N=++le,qe.length===0&&Je.length===0){let Be=Qr();return wt(R,yt({matches:z,loaderData:{},errors:me&&Rn(me[1])?{[me[0]]:me[1].error}:null},jm(me),Be?{fetchers:new Map(O.fetchers)}:{}),{flushSync:ve}),{shortCircuited:!0}}if(Tt){let Be={};if(!K){Be.navigation=Fe;let ot=nn(me);ot!==void 0&&(Be.actionData=ot)}Je.length>0&&(Be.fetchers=bn(Je)),lt(Be,{flushSync:ve})}Je.forEach(Be=>{dn(Be.key),Be.controller&&G.set(Be.key,Be.controller)});let Xn=()=>Je.forEach(Be=>dn(Be.key));fe&&fe.signal.addEventListener("abort",Xn);let{loaderResults:Tn,fetcherResults:jn}=await Ft(O,z,qe,Je,j);if(j.signal.aborted)return{shortCircuited:!0};fe&&fe.signal.removeEventListener("abort",Xn),Je.forEach(Be=>G.delete(Be.key));let ze=yl(Tn);if(ze)return await ln(j,ze.result,!0,{replace:ye}),{shortCircuited:!0};if(ze=yl(jn),ze)return oe.add(ze.key),await ln(j,ze.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Ni,errors:fn}=km(O,z,Tn,me,Je,jn,J);J.forEach((Be,ot)=>{Be.subscribe(jt=>{(jt||Be.done)&&J.delete(ot)})}),C.v7_partialHydration&&Ce&&O.errors&&(fn=yt({},O.errors,fn));let Bn=Qr(),Pn=Er(N),Xr=Bn||Pn||Je.length>0;return yt({matches:z,loaderData:Ni,errors:fn},Xr?{fetchers:new Map(O.fetchers)}:{})}function nn(j){if(j&&!Rn(j[1]))return{[j[0]]:j[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function bn(j){return j.forEach(R=>{let z=O.fetchers.get(R.key),K=Ia(void 0,z?z.data:void 0);O.fetchers.set(R.key,K)}),new Map(O.fetchers)}function sn(j,R,z,K){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");dn(j);let ue=(K&&K.flushSync)===!0,Ne=f||d,Pe=_d(O.location,O.matches,p,C.v7_prependBasename,z,C.v7_relativeSplatPath,R,K?.relative),ye=Wi(Ne,Pe,p),Ce=zn(ye,Ne,Pe);if(Ce.active&&Ce.matches&&(ye=Ce.matches),!ye){bt(j,R,wn(404,{pathname:Pe}),{flushSync:ue});return}let{path:ve,submission:me,error:Fe}=xm(C.v7_normalizeFormMethod,!0,Pe,K);if(Fe){bt(j,R,Fe,{flushSync:ue});return}let Ve=Ga(ye,ve),Tt=(K&&K.preventScrollReset)===!0;if(me&&ur(me.formMethod)){En(j,R,ve,Ve,ye,Ce.active,ue,Tt,me);return}Se.set(j,{routeId:R,path:ve}),Gr(j,R,ve,Ve,ye,Ce.active,ue,Tt,me)}async function En(j,R,z,K,ue,Ne,Pe,ye,Ce){cn(),Se.delete(j);function ve(Ge){if(!Ge.route.action&&!Ge.route.lazy){let pr=wn(405,{method:Ce.formMethod,pathname:z,routeId:R});return bt(j,R,pr,{flushSync:Pe}),!0}return!1}if(!Ne&&ve(K))return;let me=O.fetchers.get(j);Lt(j,Uw(Ce,me),{flushSync:Pe});let Fe=new AbortController,Ve=Do(e.history,z,Fe.signal,Ce);if(Ne){let Ge=await hr(ue,new URL(Ve.url).pathname,Ve.signal,j);if(Ge.type==="aborted")return;if(Ge.type==="error"){bt(j,R,Ge.error,{flushSync:Pe});return}else if(Ge.matches){if(ue=Ge.matches,K=Ga(ue,z),ve(K))return}else{bt(j,R,wn(404,{pathname:z}),{flushSync:Pe});return}}G.set(j,Fe);let Tt=le,qe=(await un("action",O,Ve,[K],ue,j))[K.route.id];if(Ve.signal.aborted){G.get(j)===Fe&&G.delete(j);return}if(C.v7_fetcherPersist&&re.has(j)){if(Ki(qe)||Rn(qe)){Lt(j,wi(void 0));return}}else{if(Ki(qe))if(G.delete(j),N>Tt){Lt(j,wi(void 0));return}else return oe.add(j),Lt(j,Ia(Ce)),ln(Ve,qe,!1,{fetcherSubmission:Ce,preventScrollReset:ye});if(Rn(qe)){bt(j,R,qe.error);return}}if(xi(qe))throw wn(400,{type:"defer-action"});let Je=O.navigation.location||O.location,Xn=Do(e.history,Je,Fe.signal),Tn=f||d,jn=O.navigation.state!=="idle"?Wi(Tn,O.navigation.location,p):O.matches;Ye(jn,"Didn't find any matches after fetcher action");let ze=++le;U.set(j,ze);let Ni=Ia(Ce,qe.data);O.fetchers.set(j,Ni);let[fn,Bn]=Sm(e.history,O,jn,Ce,Je,!1,C.v7_skipActionErrorRevalidation,he,xe,be,re,Se,oe,Tn,p,[K.route.id,qe]);Bn.filter(Ge=>Ge.key!==j).forEach(Ge=>{let pr=Ge.key,io=O.fetchers.get(pr),Xo=Ia(void 0,io?io.data:void 0);O.fetchers.set(pr,Xo),dn(pr),Ge.controller&&G.set(pr,Ge.controller)}),lt({fetchers:new Map(O.fetchers)});let Pn=()=>Bn.forEach(Ge=>dn(Ge.key));Fe.signal.addEventListener("abort",Pn);let{loaderResults:Xr,fetcherResults:Be}=await Ft(O,jn,fn,Bn,Xn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Pn),U.delete(j),G.delete(j),Bn.forEach(Ge=>G.delete(Ge.key));let ot=yl(Xr);if(ot)return ln(Xn,ot.result,!1,{preventScrollReset:ye});if(ot=yl(Be),ot)return oe.add(ot.key),ln(Xn,ot.result,!1,{preventScrollReset:ye});let{loaderData:jt,errors:jr}=km(O,jn,Xr,void 0,Bn,Be,J);if(O.fetchers.has(j)){let Ge=wi(qe.data);O.fetchers.set(j,Ge)}Er(ze),O.navigation.state==="loading"&&ze>N?(Ye(te,"Expected pending action"),fe&&fe.abort(),wt(O.navigation.location,{matches:jn,loaderData:jt,errors:jr,fetchers:new Map(O.fetchers)})):(lt({errors:jr,loaderData:Tm(O.loaderData,jt,jn,jr),fetchers:new Map(O.fetchers)}),he=!1)}async function Gr(j,R,z,K,ue,Ne,Pe,ye,Ce){let ve=O.fetchers.get(j);Lt(j,Ia(Ce,ve?ve.data:void 0),{flushSync:Pe});let me=new AbortController,Fe=Do(e.history,z,me.signal);if(Ne){let qe=await hr(ue,new URL(Fe.url).pathname,Fe.signal,j);if(qe.type==="aborted")return;if(qe.type==="error"){bt(j,R,qe.error,{flushSync:Pe});return}else if(qe.matches)ue=qe.matches,K=Ga(ue,z);else{bt(j,R,wn(404,{pathname:z}),{flushSync:Pe});return}}G.set(j,me);let Ve=le,Ke=(await un("loader",O,Fe,[K],ue,j))[K.route.id];if(xi(Ke)&&(Ke=await nf(Ke,Fe.signal,!0)||Ke),G.get(j)===me&&G.delete(j),!Fe.signal.aborted){if(re.has(j)){Lt(j,wi(void 0));return}if(Ki(Ke))if(N>Ve){Lt(j,wi(void 0));return}else{oe.add(j),await ln(Fe,Ke,!1,{preventScrollReset:ye});return}if(Rn(Ke)){bt(j,R,Ke.error);return}Ye(!xi(Ke),"Unhandled fetcher deferred data"),Lt(j,wi(Ke.data))}}async function ln(j,R,z,K){let{submission:ue,fetcherSubmission:Ne,preventScrollReset:Pe,replace:ye}=K===void 0?{}:K;R.response.headers.has("X-Remix-Revalidate")&&(he=!0);let Ce=R.response.headers.get("Location");Ye(Ce,"Expected a Location header on the redirect Response"),Ce=Em(Ce,new URL(j.url),p);let ve=Xa(O.location,Ce,{_isRedirect:!0});if(i){let qe=!1;if(R.response.headers.has("X-Remix-Reload-Document"))qe=!0;else if(tf.test(Ce)){const Je=e.history.createURL(Ce);qe=Je.origin!==n.location.origin||Qo(Je.pathname,p)==null}if(qe){ye?n.location.replace(Ce):n.location.assign(Ce);return}}fe=null;let me=ye===!0||R.response.headers.has("X-Remix-Replace")?Ot.Replace:Ot.Push,{formMethod:Fe,formAction:Ve,formEncType:Tt}=O.navigation;!ue&&!Ne&&Fe&&Ve&&Tt&&(ue=Lm(O.navigation));let Ke=ue||Ne;if(Sw.has(R.response.status)&&Ke&&ur(Ke.formMethod))await gt(me,ve,{submission:yt({},Ke,{formAction:Ce}),preventScrollReset:Pe||de,enableViewTransition:z?I:void 0});else{let qe=td(ve,ue);await gt(me,ve,{overrideNavigation:qe,fetcherSubmission:Ne,preventScrollReset:Pe||de,enableViewTransition:z?I:void 0})}}async function un(j,R,z,K,ue,Ne){let Pe,ye={};try{Pe=await Pw(v,j,R,z,K,ue,Ne,u,s)}catch(Ce){return K.forEach(ve=>{ye[ve.route.id]={type:at.error,error:Ce}}),ye}for(let[Ce,ve]of Object.entries(Pe))if(Iw(ve)){let me=ve.result;ye[Ce]={type:at.redirect,response:Dw(me,z,Ce,ue,p,C.v7_relativeSplatPath)}}else ye[Ce]=await Lw(ve);return ye}async function Ft(j,R,z,K,ue){let Ne=j.matches,Pe=un("loader",j,ue,z,R,null),ye=Promise.all(K.map(async me=>{if(me.matches&&me.match&&me.controller){let Ve=(await un("loader",j,Do(e.history,me.path,me.controller.signal),[me.match],me.matches,me.key))[me.match.route.id];return{[me.key]:Ve}}else return Promise.resolve({[me.key]:{type:at.error,error:wn(404,{pathname:me.path})}})})),Ce=await Pe,ve=(await ye).reduce((me,Fe)=>Object.assign(me,Fe),{});return await Promise.all([$w(R,Ce,ue.signal,Ne,j.loaderData),zw(R,ve,K)]),{loaderResults:Ce,fetcherResults:ve}}function cn(){he=!0,xe.push(...$n()),Se.forEach((j,R)=>{G.has(R)&&be.add(R),dn(R)})}function Lt(j,R,z){z===void 0&&(z={}),O.fetchers.set(j,R),lt({fetchers:new Map(O.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function bt(j,R,z,K){K===void 0&&(K={});let ue=Gi(O.matches,R);Et(j),lt({errors:{[ue.route.id]:z},fetchers:new Map(O.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Gt(j){return se.set(j,(se.get(j)||0)+1),re.has(j)&&re.delete(j),O.fetchers.get(j)||_w}function Et(j){let R=O.fetchers.get(j);G.has(j)&&!(R&&R.state==="loading"&&U.has(j))&&dn(j),Se.delete(j),U.delete(j),oe.delete(j),C.v7_fetcherPersist&&re.delete(j),be.delete(j),O.fetchers.delete(j)}function Nn(j){let R=(se.get(j)||0)-1;R<=0?(se.delete(j),re.add(j),C.v7_fetcherPersist||Et(j)):se.set(j,R),lt({fetchers:new Map(O.fetchers)})}function dn(j){let R=G.get(j);R&&(R.abort(),G.delete(j))}function Zr(j){for(let R of j){let z=Gt(R),K=wi(z.data);O.fetchers.set(R,K)}}function Qr(){let j=[],R=!1;for(let z of oe){let K=O.fetchers.get(z);Ye(K,"Expected fetcher: "+z),K.state==="loading"&&(oe.delete(z),j.push(z),R=!0)}return Zr(j),R}function Er(j){let R=[];for(let[z,K]of U)if(K0}function Nr(j,R){let z=O.blockers.get(j)||Ra;return Q.get(j)!==R&&Q.set(j,R),z}function kr(j){O.blockers.delete(j),Q.delete(j)}function Fn(j,R){let z=O.blockers.get(j)||Ra;Ye(z.state==="unblocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="proceeding"||z.state==="blocked"&&R.state==="unblocked"||z.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+z.state+" -> "+R.state);let K=new Map(O.blockers);K.set(j,R),lt({blockers:K})}function Kn(j){let{currentLocation:R,nextLocation:z,historyAction:K}=j;if(Q.size===0)return;Q.size>1&&Ho(!1,"A router only supports one blocker at a time");let ue=Array.from(Q.entries()),[Ne,Pe]=ue[ue.length-1],ye=O.blockers.get(Ne);if(!(ye&&ye.state==="proceeding")&&Pe({currentLocation:R,nextLocation:z,historyAction:K}))return Ne}function kn(j){let R=wn(404,{pathname:j}),z=f||d,{matches:K,route:ue}=Pm(z);return $n(),{notFoundMatches:K,route:ue,error:R}}function $n(j){let R=[];return J.forEach((z,K)=>{(!j||j(K))&&(z.cancel(),R.push(K),J.delete(K))}),R}function Kr(j,R,z){if(b=j,T=R,_=z||null,!M&&O.navigation===ed){M=!0;let K=Yn(O.location,O.matches);K!=null&<({restoreScrollPosition:K})}return()=>{b=null,T=null,_=null}}function bi(j,R){return _&&_(j,R.map(K=>ew(K,O.loaderData)))||j.key}function Yr(j,R){if(b&&T){let z=bi(j,R);b[z]=T()}}function Yn(j,R){if(b){let z=bi(j,R),K=b[z];if(typeof K=="number")return K}return null}function zn(j,R,z){if(w)if(j){if(Object.keys(j[0].params).length>0)return{active:!0,matches:Al(R,z,p,!0)}}else return{active:!0,matches:Al(R,z,p,!0)||[]};return{active:!1,matches:null}}async function hr(j,R,z,K){if(!w)return{type:"success",matches:j};let ue=j;for(;;){let Ne=f==null,Pe=f||d,ye=u;try{await w({signal:z,path:R,matches:ue,fetcherKey:K,patch:(me,Fe)=>{z.aborted||bm(me,Fe,Pe,ye,s)}})}catch(me){return{type:"error",error:me,partialMatches:ue}}finally{Ne&&!z.aborted&&(d=[...d])}if(z.aborted)return{type:"aborted"};let Ce=Wi(Pe,R,p);if(Ce)return{type:"success",matches:Ce};let ve=Al(Pe,R,p,!0);if(!ve||ue.length===ve.length&&ue.every((me,Fe)=>me.route.id===ve[Fe].route.id))return{type:"success",matches:null};ue=ve}}function Ei(j){u={},f=Vl(j,s,void 0,u)}function Tr(j,R){let z=f==null;bm(j,R,f||d,u,s),z&&(d=[...d],lt({}))}return ce={get basename(){return p},get future(){return C},get state(){return O},get routes(){return d},get window(){return n},initialize:tt,subscribe:Wt,enableScrollRestoration:Kr,navigate:ct,fetch:sn,revalidate:ht,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Gt,deleteFetcher:Nn,dispose:tn,getBlocker:Nr,deleteBlocker:kr,patchRoutes:Tr,_internalFetchControllers:G,_internalActiveDeferreds:J,_internalSetRoutes:Ei},ce}function Nw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function _d(e,n,i,o,s,u,d,f){let p,v;if(d){p=[];for(let C of n)if(p.push(C),C.route.id===d){v=C;break}}else p=n,v=n[n.length-1];let w=ef(s||".",Jd(p,u),Qo(e.pathname,i)||e.pathname,f==="path");if(s==null&&(w.search=e.search,w.hash=e.hash),(s==null||s===""||s===".")&&v){let C=rf(w.search);if(v.route.index&&!C)w.search=w.search?w.search.replace(/^\?/,"?index&"):"?index";else if(!v.route.index&&C){let m=new URLSearchParams(w.search),x=m.getAll("index");m.delete("index"),x.filter(_=>_).forEach(_=>m.append("index",_));let b=m.toString();w.search=b?"?"+b:""}}return o&&i!=="/"&&(w.pathname=w.pathname==="/"?i:Hr([i,w.pathname])),Xi(w)}function xm(e,n,i,o){if(!o||!Nw(o))return{path:i};if(o.formMethod&&!Fw(o.formMethod))return{path:i,error:wn(405,{method:o.formMethod})};let s=()=>({path:i,error:wn(400,{type:"invalid-body"})}),u=o.formMethod||"get",d=e?u.toUpperCase():u.toLowerCase(),f=Qg(i);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!ur(d))return s();let m=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((x,b)=>{let[_,T]=b;return""+x+_+"="+T+` +`},""):String(o.body);return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:void 0,text:m}}}else if(o.formEncType==="application/json"){if(!ur(d))return s();try{let m=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:m,text:void 0}}}catch{return s()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let p,v;if(o.formData)p=Ed(o.formData),v=o.formData;else if(o.body instanceof FormData)p=Ed(o.body),v=o.body;else if(o.body instanceof URLSearchParams)p=o.body,v=Nm(p);else if(o.body==null)p=new URLSearchParams,v=new FormData;else try{p=new URLSearchParams(o.body),v=Nm(p)}catch{return s()}let w={formMethod:d,formAction:f,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(ur(w.formMethod))return{path:i,submission:w};let C=Si(i);return n&&C.search&&rf(C.search)&&p.append("index",""),C.search="?"+p,{path:Xi(C),submission:w}}function Cm(e,n,i){i===void 0&&(i=!1);let o=e.findIndex(s=>s.route.id===n);return o>=0?e.slice(0,i?o+1:o):e}function Sm(e,n,i,o,s,u,d,f,p,v,w,C,m,x,b,_){let T=_?Rn(_[1])?_[1].error:_[1].data:void 0,M=e.createURL(n.location),D=e.createURL(s),$=i;u&&n.errors?$=Cm(i,Object.keys(n.errors)[0],!0):_&&Rn(_[1])&&($=Cm(i,_[0]));let V=_?_[1].statusCode:void 0,Z=d&&V&&V>=400,ce=$.filter((te,de)=>{let{route:fe}=te;if(fe.lazy)return!0;if(fe.loader==null)return!1;if(u)return bd(fe,n.loaderData,n.errors);if(kw(n.loaderData,n.matches[de],te)||p.some(W=>W===te.route.id))return!0;let I=n.matches[de],H=te;return _m(te,yt({currentUrl:M,currentParams:I.params,nextUrl:D,nextParams:H.params},o,{actionResult:T,actionStatus:V,defaultShouldRevalidate:Z?!1:f||M.pathname+M.search===D.pathname+D.search||M.search!==D.search||Gg(I,H)}))}),O=[];return C.forEach((te,de)=>{if(u||!i.some(ne=>ne.route.id===te.routeId)||w.has(de))return;let fe=Wi(x,te.path,b);if(!fe){O.push({key:de,routeId:te.routeId,path:te.path,matches:null,match:null,controller:null});return}let I=n.fetchers.get(de),H=Ga(fe,te.path),W=!1;m.has(de)?W=!1:v.has(de)?(v.delete(de),W=!0):I&&I.state!=="idle"&&I.data===void 0?W=f:W=_m(H,yt({currentUrl:M,currentParams:n.matches[n.matches.length-1].params,nextUrl:D,nextParams:i[i.length-1].params},o,{actionResult:T,actionStatus:V,defaultShouldRevalidate:Z?!1:f})),W&&O.push({key:de,routeId:te.routeId,path:te.path,matches:fe,match:H,controller:new AbortController})}),[ce,O]}function bd(e,n,i){if(e.lazy)return!0;if(!e.loader)return!1;let o=n!=null&&n[e.id]!==void 0,s=i!=null&&i[e.id]!==void 0;return!o&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!o&&!s}function kw(e,n,i){let o=!n||i.route.id!==n.route.id,s=e[i.route.id]===void 0;return o||s}function Gg(e,n){let i=e.route.path;return e.pathname!==n.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==n.params["*"]}function _m(e,n){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(n);if(typeof i=="boolean")return i}return n.defaultShouldRevalidate}function bm(e,n,i,o,s){var u;let d;if(e){let v=o[e];Ye(v,"No route found to patch children into: routeId = "+e),v.children||(v.children=[]),d=v.children}else d=i;let f=n.filter(v=>!d.some(w=>Zg(v,w))),p=Vl(f,s,[e||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],o);d.push(...p)}function Zg(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((i,o)=>{var s;return(s=n.children)==null?void 0:s.some(u=>Zg(i,u))}):!1}async function Tw(e,n,i){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let s=i[e.id];Ye(s,"No route found in manifest");let u={};for(let d in o){let p=s[d]!==void 0&&d!=="hasErrorBoundary";Ho(!p,'Route "'+s.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!p&&!X1.has(d)&&(u[d]=o[d])}Object.assign(s,u),Object.assign(s,yt({},n(s),{lazy:void 0}))}async function jw(e){let{matches:n}=e,i=n.filter(s=>s.shouldLoad);return(await Promise.all(i.map(s=>s.resolve()))).reduce((s,u,d)=>Object.assign(s,{[i[d].route.id]:u}),{})}async function Pw(e,n,i,o,s,u,d,f,p,v){let w=u.map(x=>x.route.lazy?Tw(x.route,p,f):void 0),C=u.map((x,b)=>{let _=w[b],T=s.some(D=>D.route.id===x.route.id);return yt({},x,{shouldLoad:T,resolve:async D=>(D&&o.method==="GET"&&(x.route.lazy||x.route.loader)&&(T=!0),T?Mw(n,o,x,_,D,v):Promise.resolve({type:at.data,result:void 0}))})}),m=await e({matches:C,request:o,params:u[0].params,fetcherKey:d,context:v});try{await Promise.all(w)}catch{}return m}async function Mw(e,n,i,o,s,u){let d,f,p=v=>{let w,C=new Promise((b,_)=>w=_);f=()=>w(),n.signal.addEventListener("abort",f);let m=b=>typeof v!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+i.route.id+"]"))):v({request:n,params:i.params,context:u},...b!==void 0?[b]:[]),x=(async()=>{try{return{type:"data",result:await(s?s(_=>m(_)):m())}}catch(b){return{type:"error",result:b}}})();return Promise.race([x,C])};try{let v=i.route[e];if(o)if(v){let w,[C]=await Promise.all([p(v).catch(m=>{w=m}),o]);if(w!==void 0)throw w;d=C}else if(await o,v=i.route[e],v)d=await p(v);else if(e==="action"){let w=new URL(n.url),C=w.pathname+w.search;throw wn(405,{method:n.method,pathname:C,routeId:i.route.id})}else return{type:at.data,result:void 0};else if(v)d=await p(v);else{let w=new URL(n.url),C=w.pathname+w.search;throw wn(404,{pathname:C})}Ye(d.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+i.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){return{type:at.error,result:v}}finally{f&&n.signal.removeEventListener("abort",f)}return d}async function Lw(e){let{result:n,type:i}=e;if(Kg(n)){let C;try{let m=n.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?n.body==null?C=null:C=await n.json():C=await n.text()}catch(m){return{type:at.error,error:m}}return i===at.error?{type:at.error,error:new ql(n.status,n.statusText,C),statusCode:n.status,headers:n.headers}:{type:at.data,data:C,statusCode:n.status,headers:n.headers}}if(i===at.error){if(Mm(n)){var o,s;if(n.data instanceof Error){var u,d;return{type:at.error,error:n.data,statusCode:(u=n.init)==null?void 0:u.status,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}}return{type:at.error,error:new ql(((o=n.init)==null?void 0:o.status)||500,void 0,n.data),statusCode:Ja(n)?n.status:void 0,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}}return{type:at.error,error:n,statusCode:Ja(n)?n.status:void 0}}if(Aw(n)){var f,p;return{type:at.deferred,deferredData:n,statusCode:(f=n.init)==null?void 0:f.status,headers:((p=n.init)==null?void 0:p.headers)&&new Headers(n.init.headers)}}if(Mm(n)){var v,w;return{type:at.data,data:n.data,statusCode:(v=n.init)==null?void 0:v.status,headers:(w=n.init)!=null&&w.headers?new Headers(n.init.headers):void 0}}return{type:at.data,data:n}}function Dw(e,n,i,o,s,u){let d=e.headers.get("Location");if(Ye(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!tf.test(d)){let f=o.slice(0,o.findIndex(p=>p.route.id===i)+1);d=_d(new URL(n.url),f,s,!0,d,u),e.headers.set("Location",d)}return e}function Em(e,n,i){if(tf.test(e)){let o=e,s=o.startsWith("//")?new URL(n.protocol+o):new URL(o),u=Qo(s.pathname,i)!=null;if(s.origin===n.origin&&u)return s.pathname+s.search+s.hash}return e}function Do(e,n,i,o){let s=e.createURL(Qg(n)).toString(),u={signal:i};if(o&&ur(o.formMethod)){let{formMethod:d,formEncType:f}=o;u.method=d.toUpperCase(),f==="application/json"?(u.headers=new Headers({"Content-Type":f}),u.body=JSON.stringify(o.json)):f==="text/plain"?u.body=o.text:f==="application/x-www-form-urlencoded"&&o.formData?u.body=Ed(o.formData):u.body=o.formData}return new Request(s,u)}function Ed(e){let n=new URLSearchParams;for(let[i,o]of e.entries())n.append(i,typeof o=="string"?o:o.name);return n}function Nm(e){let n=new FormData;for(let[i,o]of e.entries())n.append(i,o);return n}function Ow(e,n,i,o,s){let u={},d=null,f,p=!1,v={},w=i&&Rn(i[1])?i[1].error:void 0;return e.forEach(C=>{if(!(C.route.id in n))return;let m=C.route.id,x=n[m];if(Ye(!Ki(x),"Cannot handle redirect results in processLoaderData"),Rn(x)){let b=x.error;w!==void 0&&(b=w,w=void 0),d=d||{};{let _=Gi(e,m);d[_.route.id]==null&&(d[_.route.id]=b)}u[m]=void 0,p||(p=!0,f=Ja(x.error)?x.error.status:500),x.headers&&(v[m]=x.headers)}else xi(x)?(o.set(m,x.deferredData),u[m]=x.deferredData.data,x.statusCode!=null&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(v[m]=x.headers)):(u[m]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(v[m]=x.headers))}),w!==void 0&&i&&(d={[i[0]]:w},u[i[0]]=void 0),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:v}}function km(e,n,i,o,s,u,d){let{loaderData:f,errors:p}=Ow(n,i,o,d);return s.forEach(v=>{let{key:w,match:C,controller:m}=v,x=u[w];if(Ye(x,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Rn(x)){let b=Gi(e.matches,C?.route.id);p&&p[b.route.id]||(p=yt({},p,{[b.route.id]:x.error})),e.fetchers.delete(w)}else if(Ki(x))Ye(!1,"Unhandled fetcher revalidation redirect");else if(xi(x))Ye(!1,"Unhandled fetcher deferred data");else{let b=wi(x.data);e.fetchers.set(w,b)}}),{loaderData:f,errors:p}}function Tm(e,n,i,o){let s=yt({},n);for(let u of i){let d=u.route.id;if(n.hasOwnProperty(d)?n[d]!==void 0&&(s[d]=n[d]):e[d]!==void 0&&u.route.loader&&(s[d]=e[d]),o&&o.hasOwnProperty(d))break}return s}function jm(e){return e?Rn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gi(e,n){return(n?e.slice(0,e.findIndex(o=>o.route.id===n)+1):[...e]).reverse().find(o=>o.route.hasErrorBoundary===!0)||e[0]}function Pm(e){let n=e.length===1?e[0]:e.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function wn(e,n){let{pathname:i,routeId:o,method:s,type:u,message:d}=n===void 0?{}:n,f="Unknown Server Error",p="Unknown @remix-run/router error";return e===400?(f="Bad Request",s&&i&&o?p="You made a "+s+' request to "'+i+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":u==="defer-action"?p="defer() is not supported in actions":u==="invalid-body"&&(p="Unable to encode submission body")):e===403?(f="Forbidden",p='Route "'+o+'" does not match URL "'+i+'"'):e===404?(f="Not Found",p='No route matches URL "'+i+'"'):e===405&&(f="Method Not Allowed",s&&i&&o?p="You made a "+s.toUpperCase()+' request to "'+i+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":s&&(p='Invalid request method "'+s.toUpperCase()+'"')),new ql(e||500,f,new Error(p),!0)}function yl(e){let n=Object.entries(e);for(let i=n.length-1;i>=0;i--){let[o,s]=n[i];if(Ki(s))return{key:o,result:s}}}function Qg(e){let n=typeof e=="string"?Si(e):e;return Xi(yt({},n,{hash:""}))}function Rw(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function Iw(e){return Kg(e.result)&&Cw.has(e.result.status)}function xi(e){return e.type===at.deferred}function Rn(e){return e.type===at.error}function Ki(e){return(e&&e.type)===at.redirect}function Mm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Aw(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function Kg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Fw(e){return xw.has(e.toLowerCase())}function ur(e){return yw.has(e.toLowerCase())}async function $w(e,n,i,o,s){let u=Object.entries(n);for(let d=0;dm?.route.id===f);if(!v)continue;let w=o.find(m=>m.route.id===v.route.id),C=w!=null&&!Gg(w,v)&&(s&&s[v.route.id])!==void 0;xi(p)&&C&&await nf(p,i,!1).then(m=>{m&&(n[f]=m)})}}async function zw(e,n,i){for(let o=0;ov?.route.id===u)&&xi(f)&&(Ye(d,"Expected an AbortController for revalidating fetcher deferred result"),await nf(f,d.signal,!0).then(v=>{v&&(n[s]=v)}))}}async function nf(e,n,i){if(i===void 0&&(i=!1),!await e.deferredData.resolveData(n)){if(i)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(s){return{type:at.error,error:s}}return{type:at.data,data:e.deferredData.data}}}function rf(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function Ga(e,n){let i=typeof n=="string"?Si(n).search:n.search;if(e[e.length-1].route.index&&rf(i||""))return e[e.length-1];let o=Vg(e);return o[o.length-1]}function Lm(e){let{formMethod:n,formAction:i,formEncType:o,text:s,formData:u,json:d}=e;if(!(!n||!i||!o)){if(s!=null)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:n,formAction:i,formEncType:o,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:d,text:void 0}}}function td(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bw(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Ia(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Uw(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function wi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hw(e,n){try{let i=e.sessionStorage.getItem(Wg);if(i){let o=JSON.parse(i);for(let[s,u]of Object.entries(o||{}))u&&Array.isArray(u)&&n.set(s,new Set(u||[]))}}catch{}}function Vw(e,n){if(n.size>0){let i={};for(let[o,s]of n)i[o]=[...s];try{e.sessionStorage.setItem(Wg,JSON.stringify(i))}catch(o){Ho(!1,"Failed to save applied view transitions in sessionStorage ("+o+").")}}}/** + * React Router v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var n=1;n{f.current=!0}),y.useCallback(function(v,w){if(w===void 0&&(w={}),!f.current)return;if(typeof v=="number"){o.go(v);return}let C=ef(v,JSON.parse(d),u,w.relative==="path");e==null&&n!=="/"&&(C.pathname=C.pathname==="/"?n:Hr([n,C.pathname])),(w.replace?o.replace:o.push)(C,w.state,w)},[n,o,d,u,e])}const Gw=y.createContext(null);function Zw(e){let n=y.useContext(Wr).outlet;return n&&y.createElement(Gw.Provider,{value:e},n)}function bP(){let{matches:e}=y.useContext(Wr),n=e[e.length-1];return n?n.params:{}}function e0(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=y.useContext(no),{matches:s}=y.useContext(Wr),{pathname:u}=Ko(),d=JSON.stringify(Jd(s,o.v7_relativeSplatPath));return y.useMemo(()=>ef(e,JSON.parse(d),u,i==="path"),[e,d,u,i])}function Qw(e,n,i,o){ds()||Ye(!1);let{navigator:s}=y.useContext(no),{matches:u}=y.useContext(Wr),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let v=Ko(),w;w=v;let C=w.pathname||"/",m=C;if(p!=="/"){let _=p.replace(/^\//,"").split("/");m="/"+C.replace(/^\//,"").split("/").slice(_.length).join("/")}let x=Wi(e,{pathname:m});return ex(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:Hr([p,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:Hr([p,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),u,i,o)}function Kw(){let e=ix(),n=Ja(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},n),i?y.createElement("pre",{style:s},i):null,null)}const Yw=y.createElement(Kw,null);class Xw extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?y.createElement(Wr.Provider,{value:this.props.routeContext},y.createElement(Xg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jw(e){let{routeContext:n,match:i,children:o}=e,s=y.useContext(au);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(Wr.Provider,{value:n},o)}function ex(e,n,i,o){var s;if(n===void 0&&(n=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var u;if(!i)return null;if(i.errors)e=i.matches;else if((u=o)!=null&&u.v7_partialHydration&&n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let d=e,f=(s=i)==null?void 0:s.errors;if(f!=null){let w=d.findIndex(C=>C.route.id&&f?.[C.route.id]!==void 0);w>=0||Ye(!1),d=d.slice(0,Math.min(d.length,w+1))}let p=!1,v=-1;if(i&&o&&o.v7_partialHydration)for(let w=0;w=0?d=d.slice(0,v+1):d=[d[0]];break}}}return d.reduceRight((w,C,m)=>{let x,b=!1,_=null,T=null;i&&(x=f&&C.route.id?f[C.route.id]:void 0,_=C.route.errorElement||Yw,p&&(v<0&&m===0?(ax("route-fallback"),b=!0,T=null):v===m&&(b=!0,T=C.route.hydrateFallbackElement||null)));let M=n.concat(d.slice(0,m+1)),D=()=>{let $;return x?$=_:b?$=T:C.route.Component?$=y.createElement(C.route.Component,null):C.route.element?$=C.route.element:$=w,y.createElement(Jw,{match:C,routeContext:{outlet:w,matches:M,isDataRoute:i!=null},children:$})};return i&&(C.route.ErrorBoundary||C.route.errorElement||m===0)?y.createElement(Xw,{location:i.location,revalidation:i.revalidation,component:_,error:x,children:D(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):D()},null)}var t0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(t0||{}),n0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(n0||{});function tx(e){let n=y.useContext(au);return n||Ye(!1),n}function nx(e){let n=y.useContext(Yg);return n||Ye(!1),n}function rx(e){let n=y.useContext(Wr);return n||Ye(!1),n}function r0(e){let n=rx(),i=n.matches[n.matches.length-1];return i.route.id||Ye(!1),i.route.id}function ix(){var e;let n=y.useContext(Xg),i=nx(),o=r0();return n!==void 0?n:(e=i.errors)==null?void 0:e[o]}function ox(){let{router:e}=tx(t0.UseNavigateStable),n=r0(n0.UseNavigateStable),i=y.useRef(!1);return Jg(()=>{i.current=!0}),y.useCallback(function(s,u){u===void 0&&(u={}),i.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Wl({fromRouteId:n},u)))},[e,n])}const Dm={};function ax(e,n,i){Dm[e]||(Dm[e]=!0)}function sx(e,n){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!n||n.v7_relativeSplatPath),n&&(n.v7_fetcherPersist,n.v7_normalizeFormMethod,n.v7_partialHydration,n.v7_skipActionErrorRevalidation)}function lx(e){return Zw(e.context)}function ux(e){let{basename:n="/",children:i=null,location:o,navigationType:s=Ot.Pop,navigator:u,static:d=!1,future:f}=e;ds()&&Ye(!1);let p=n.replace(/^\/*/,"/"),v=y.useMemo(()=>({basename:p,navigator:u,static:d,future:Wl({v7_relativeSplatPath:!1},f)}),[p,f,u,d]);typeof o=="string"&&(o=Si(o));let{pathname:w="/",search:C="",hash:m="",state:x=null,key:b="default"}=o,_=y.useMemo(()=>{let T=Qo(w,p);return T==null?null:{location:{pathname:T,search:C,hash:m,state:x,key:b},navigationType:s}},[p,w,C,m,x,b,s]);return _==null?null:y.createElement(no.Provider,{value:v},y.createElement(of.Provider,{children:i,value:_}))}new Promise(()=>{});function cx(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/** + * React Router DOM v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function es(){return es=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(i[s]=e[s]);return i}function fx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hx(e,n){return e.button===0&&(!n||n==="_self")&&!fx(e)}function Nd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let o=e[i];return n.concat(Array.isArray(o)?o.map(s=>[i,s]):[[i,o]])},[]))}function px(e,n){let i=Nd(e);return n&&n.forEach((o,s)=>{i.has(s)||n.getAll(s).forEach(u=>{i.append(s,u)})}),i}const mx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gx="6";try{window.__reactRouterVersion=gx}catch{}function vx(e,n){return Ew({basename:n?.basename,future:es({},n?.future,{v7_prependBasename:!0}),history:Q1({window:n?.window}),hydrationData:n?.hydrationData||yx(),routes:e,mapRouteProperties:cx,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize()}function yx(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=es({},n,{errors:wx(n.errors)})),n}function wx(e){if(!e)return null;let n=Object.entries(e),i={};for(let[o,s]of n)if(s&&s.__type==="RouteErrorResponse")i[o]=new ql(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let u=window[s.__subType];if(typeof u=="function")try{let d=new u(s.message);d.stack="",i[o]=d}catch{}}if(i[o]==null){let u=new Error(s.message);u.stack="",i[o]=u}}else i[o]=s;return i}const xx=y.createContext({isTransitioning:!1}),Cx=y.createContext(new Map),Sx="startTransition",Om=$1[Sx],_x="flushSync",Rm=Z1[_x];function bx(e){Om?Om(e):e()}function Aa(e){Rm?Rm(e):e()}class Ex{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",n(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",i(o))}})}}function Nx(e){let{fallbackElement:n,router:i,future:o}=e,[s,u]=y.useState(i.state),[d,f]=y.useState(),[p,v]=y.useState({isTransitioning:!1}),[w,C]=y.useState(),[m,x]=y.useState(),[b,_]=y.useState(),T=y.useRef(new Map),{v7_startTransition:M}=o||{},D=y.useCallback(te=>{M?bx(te):te()},[M]),$=y.useCallback((te,de)=>{let{deletedFetchers:fe,flushSync:I,viewTransitionOpts:H}=de;te.fetchers.forEach((ne,he)=>{ne.data!==void 0&&T.current.set(he,ne.data)}),fe.forEach(ne=>T.current.delete(ne));let W=i.window==null||i.window.document==null||typeof i.window.document.startViewTransition!="function";if(!H||W){I?Aa(()=>u(te)):D(()=>u(te));return}if(I){Aa(()=>{m&&(w&&w.resolve(),m.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ne=i.window.document.startViewTransition(()=>{Aa(()=>u(te))});ne.finished.finally(()=>{Aa(()=>{C(void 0),x(void 0),f(void 0),v({isTransitioning:!1})})}),Aa(()=>x(ne));return}m?(w&&w.resolve(),m.skipTransition(),_({state:te,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(f(te),v({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[i.window,m,w,T,D]);y.useLayoutEffect(()=>i.subscribe($),[i,$]),y.useEffect(()=>{p.isTransitioning&&!p.flushSync&&C(new Ex)},[p]),y.useEffect(()=>{if(w&&d&&i.window){let te=d,de=w.promise,fe=i.window.document.startViewTransition(async()=>{D(()=>u(te)),await de});fe.finished.finally(()=>{C(void 0),x(void 0),f(void 0),v({isTransitioning:!1})}),x(fe)}},[D,d,w,i.window]),y.useEffect(()=>{w&&d&&s.location.key===d.location.key&&w.resolve()},[w,m,s.location,d]),y.useEffect(()=>{!p.isTransitioning&&b&&(f(b.state),v({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),_(void 0))},[p.isTransitioning,b]),y.useEffect(()=>{},[]);let V=y.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:te=>i.navigate(te),push:(te,de,fe)=>i.navigate(te,{state:de,preventScrollReset:fe?.preventScrollReset}),replace:(te,de,fe)=>i.navigate(te,{replace:!0,state:de,preventScrollReset:fe?.preventScrollReset})}),[i]),Z=i.basename||"/",ce=y.useMemo(()=>({router:i,navigator:V,static:!1,basename:Z}),[i,V,Z]),O=y.useMemo(()=>({v7_relativeSplatPath:i.future.v7_relativeSplatPath}),[i.future.v7_relativeSplatPath]);return y.useEffect(()=>sx(o,i.future),[o,i.future]),y.createElement(y.Fragment,null,y.createElement(au.Provider,{value:ce},y.createElement(Yg.Provider,{value:s},y.createElement(Cx.Provider,{value:T.current},y.createElement(xx.Provider,{value:p},y.createElement(ux,{basename:Z,location:s.location,navigationType:s.historyAction,navigator:V,future:O},s.initialized||i.future.v7_partialHydration?y.createElement(kx,{routes:i.routes,future:i.future,state:s}):n))))),null)}const kx=y.memo(Tx);function Tx(e){let{routes:n,future:i,state:o}=e;return Qw(n,void 0,o,i)}const jx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Px=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mx=y.forwardRef(function(n,i){let{onClick:o,relative:s,reloadDocument:u,replace:d,state:f,target:p,to:v,preventScrollReset:w,viewTransition:C}=n,m=dx(n,mx),{basename:x}=y.useContext(no),b,_=!1;if(typeof v=="string"&&Px.test(v)&&(b=v,jx))try{let $=new URL(window.location.href),V=v.startsWith("//")?new URL($.protocol+v):new URL(v),Z=Qo(V.pathname,x);V.origin===$.origin&&Z!=null?v=Z+V.search+V.hash:_=!0}catch{}let T=qw(v,{relative:s}),M=Lx(v,{replace:d,state:f,target:p,preventScrollReset:w,relative:s,viewTransition:C});function D($){o&&o($),$.defaultPrevented||M($)}return y.createElement("a",es({},m,{href:b||T,onClick:_||u?o:D,ref:i,target:p}))});var Im;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Im||(Im={}));var Am;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Am||(Am={}));function Lx(e,n){let{target:i,replace:o,state:s,preventScrollReset:u,relative:d,viewTransition:f}=n===void 0?{}:n,p=fs(),v=Ko(),w=e0(e,{relative:d});return y.useCallback(C=>{if(hx(C,i)){C.preventDefault();let m=o!==void 0?o:Xi(v)===Xi(w);p(e,{replace:m,state:s,preventScrollReset:u,relative:d,viewTransition:f})}},[v,p,w,o,s,i,e,u,d,f])}function Dx(e){let n=y.useRef(Nd(e)),i=y.useRef(!1),o=Ko(),s=y.useMemo(()=>px(o.search,i.current?null:n.current),[o.search]),u=fs(),d=y.useCallback((f,p)=>{const v=Nd(typeof f=="function"?f(s):f);i.current=!0,u("?"+v,p)},[u,s]);return[s,d]}function Ox(e){return typeof e=="number"?Number.isNaN(e):!1}function $e(e){return e==null||Ox(e)}function Mt(e){return!$e(e)}function Rx(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $e(e)||e===!1||n.includes(e)}function af(e){return Rx(e,[""])}function hs(e){return!af(e)}const Ix=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Ix.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});const Ax={sorting:void 0,setSorting:e=>{console.warn("Trying to set to ",e)}},EP=y.createContext(Ax),Fx=y.createContext({alerts:[],addAlert:()=>{console.warn("AlertContext::addAlert called before it was initialized")},removeAlert:()=>{console.warn("AlertContext::removeAlert called before it was initialized")},updateAlert:()=>{console.warn("AlertContext::updateAlert called before it was initialized")}}),NP=y.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),i0=y.createContext({currentLanguage:"en",setCurrentLanguage:()=>{console.warn("LanguageContext::setCurrentLanguage called without a provider")},languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{console.warn("LanguageContext::setLanguageNamespaceStatus called without a provider")},strings:{},setStrings:()=>{console.warn("LanguageContext::setStrings called without a provider")},registerNamespace:()=>{console.warn("LanguageContext::registerNamespace called without a provider")}});y.createContext({variant:"primary"});function $x(e){return typeof e=="number"?Number.isNaN(e):!1}function zx(e){return e==null||$x(e)}function Bx(e,n){if(zx(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Ux=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Ux.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});function Oe(){for(var e=arguments.length,n=new Array(e),i=0;i{d&&d(u,C)},[d,u]);return g.jsx("button",{ref:s,name:typeof u=="string"?u:void 0,type:p,className:Oe(Fm.rawButton,f&&Fm.focused,i),disabled:o,onClick:d?w:void 0,...v,children:n})}function Fa(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";if($e(e))return"";const o=String(e);return o.length>=n?o:Array(n-o.length+1).join(i)+o}function qx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i="";const o=n?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;sn+i,0)}function lf(e,n,i){const o=Math.min(n,i),s=Math.max(n,i);return Math.max(o,Math.min(s,e))}function Sr(e){const[n]=y.useState(()=>`_${qx()}`),{spacing:i,variant:o="md",mode:s="gap",inner:u}=e;return y.useEffect(()=>{const d=["var(--go-ui-spacing-4xs)","var(--go-ui-spacing-3xs)","var(--go-ui-spacing-2xs)","var(--go-ui-spacing-xs)","var(--go-ui-spacing-sm)","var(--go-ui-spacing-md)","var(--go-ui-spacing-lg)","var(--go-ui-spacing-xl)","var(--go-ui-spacing-2xl)","var(--go-ui-spacing-3xl)","var(--go-ui-spacing-4xl)"];let f="0";if(i!=="none"){const w={condensed:-3,compact:-2,cozy:-1,default:0,comfortable:1,relaxed:2,loose:3},C={xs:3,sm:4,md:5,lg:6,xl:7},m=u?C[o]-1:C[o],x=w[i];f=d[lf(m+x,0,d.length-1)]}if($e(i))return;const p=document.createElement("style");if(document.head.appendChild(p),!p.sheet){p.remove();return}let v;return s==="gap"||s==="grid-gap"?v=`gap: ${f};`:s==="padding-h"?v=`padding-left: ${f}; padding-right: ${f};`:s==="padding-v"&&(v=`padding-top: ${f}; padding-bottom: ${f};`),p.sheet.insertRule(`.${n} { ${v} }`),()=>{p.remove()}},[i,o,s,u,n]),n}const Qx="_basic-layout_v9jro_1",Kx="_with-wrap_v9jro_5",Yx="_icons-container_v9jro_9",Xx="_children-container_v9jro_14",Jx="_actions-container_v9jro_19",$a={basicLayout:Qx,withWrap:Kx,iconsContainer:Yx,childrenContainer:Xx,actionsContainer:Jx};function ps(e){const{className:n,icons:i,children:o,actions:s,iconsContainerClassName:u,childrenContainerClassName:d,actionsContainerClassName:f,withoutWrap:p,spacing:v="default",variant:w="md"}=e,C=Sr({spacing:v,variant:w,mode:"gap"}),m=Sr({spacing:v,variant:w,mode:"gap",inner:!0}),x=Oe($a.basicLayout,!p&&$a.withWrap,C,n),b=$e(i)&&$e(o)&&$e(s)?null:g.jsxs(g.Fragment,{children:[i&&g.jsx("div",{className:Oe($a.iconsContainer,m,u),children:i}),g.jsx("div",{className:Oe($a.childrenContainer,m,d),children:o}),s&&g.jsx("div",{className:Oe($a.actionsContainer,m,f),children:s})]});return{containerClassName:x,content:b}}const eC="_button_18a84_1",tC="_ellipsized_18a84_29",nC="_children_18a84_32",rC="_overflow-wrapper_18a84_36",iC="_primary_18a84_44",oC="_secondary_18a84_45",aC="_no-spacing_18a84_50",sC="_condensed-spacing_18a84_54",lC="_compact-spacing_18a84_58",uC="_cozy-spacing_18a84_62",cC="_default-spacing_18a84_66",dC="_comfortable-spacing_18a84_70",fC="_relaxed-spacing_18a84_74",hC="_loose-spacing_18a84_78",pC="_disabled_18a84_88",mC="_tertiary_18a84_116",gC="_tertiary-on-dark_18a84_130",vC="_dropdown-item_18a84_144",Vt={button:eC,ellipsized:tC,children:nC,overflowWrapper:rC,primary:iC,secondary:oC,noSpacing:aC,condensedSpacing:sC,compactSpacing:lC,cozySpacing:uC,defaultSpacing:cC,comfortableSpacing:dC,relaxedSpacing:fC,looseSpacing:hC,disabled:pC,tertiary:mC,tertiaryOnDark:gC,dropdownItem:vC},yC={primary:Vt.primary,secondary:Vt.secondary,tertiary:Vt.tertiary,"tertiary-on-dark":Vt.tertiaryOnDark,"dropdown-item":Vt.dropdownItem},wC={none:Vt.noSpacing,condensed:Vt.condensedSpacing,compact:Vt.compactSpacing,cozy:Vt.cozySpacing,default:Vt.defaultSpacing,comfortable:Vt.comfortableSpacing,relaxed:Vt.relaxedSpacing,loose:Vt.looseSpacing};function xC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:p,variant:v="primary",spacing:w="default",ellipsize:C}=e,m=Oe(Vt.button,yC[v],wC[w],d&&Vt.disabled,C&&Vt.ellipsized,u),x=y.useMemo(()=>C?g.jsx("div",{className:Vt.overflowWrapper,children:o}):o,[C,o]),{content:b,containerClassName:_}=ps({className:m,icons:f,children:x,actions:n,iconsContainerClassName:p,childrenContainerClassName:Oe(Vt.children,s),actionsContainerClassName:i,spacing:w,withoutWrap:!0,variant:"xs"});return{className:_,children:b,disabled:d}}function He(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:p,name:v,onClick:w,variant:C,type:m="button",spacing:x,...b}=e,_=y.useCallback((M,D)=>{w&&w(M,D)},[w]),T=xC({variant:C,className:u,actionsContainerClassName:i,iconsContainerClassName:p,childrenContainerClassName:s,children:o,icons:f,actions:n,spacing:x,disabled:d||m!=="submit"&&$e(w)});return g.jsx(sf,{name:v,type:m,onClick:_,...b,...T})}const CC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#alert-line_svg__a)"},y.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0Zm-8.66 16h15.588L12 5.5 4.206 19ZM11 16h2v2h-2v-2Zm0-7h2v5h-2V9Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"alert-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),o0=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56","aria-hidden":"true",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#analysis_svg__a)"},y.createElement("path",{d:"m12.384 37.796-7.179 7.18a4.115 4.115 0 0 0 5.82 5.819l7.179-7.18a24.009 24.009 0 0 1-5.82-5.819Zm13.619-13.798h-4a1.003 1.003 0 0 0-1 1v4.94a12.572 12.572 0 0 0 6 5.518V24.998a1.003 1.003 0 0 0-1-1Zm15.998-6h-4a1.003 1.003 0 0 0-1 1v16.458a12.572 12.572 0 0 0 6-5.519V18.998a1.003 1.003 0 0 0-1-1Zm-7.999 3h-4a1.003 1.003 0 0 0-1 1v14.138c1.972.48 4.029.48 6 0V21.998a1.003 1.003 0 0 0-1-1Z"}),y.createElement("path",{d:"M32.002 4a19.998 19.998 0 1 0 0 39.995 19.998 19.998 0 0 0 0-39.995Zm10.999 30.177a14.998 14.998 0 1 1-21.998-20.394 14.998 14.998 0 0 1 21.998 20.394Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"analysis_svg__a"},y.createElement("path",{d:"M0 0h56v56H0z"})))),SC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},y.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),_C=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},y.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-right-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),bC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},y.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),EC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},y.createElement("path",{d:"m11.602 13.76 1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412Zm.002-2.829 4.952-4.952 1.41 1.41-4.952 4.952-1.41-1.41Zm-2.827 5.656L7.364 18 1 11.636l1.414-1.414 1.413 1.412-.001.002 4.951 4.95Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"check-double-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),NC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#check-line_svg__a)"},y.createElement("path",{d:"m10 15.171 9.192-9.192 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"check-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),kC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},y.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),TC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},y.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),jC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},y.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm6.003 11L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),PC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},y.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"chevron-left-line_svg__a"},y.createElement("path",{d:"M0 24h24V0H0z"})))),MC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},y.createElement("path",{d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414 4.95-4.95Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"chevron-right-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),LC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("path",{fillRule:"evenodd",d:"m13.057 11.996 4.716-4.716a.75.75 0 1 0-1.06-1.06l-4.717 4.716L7.28 6.22a.75.75 0 1 0-1.06 1.06l4.716 4.716-4.716 4.716a.75.75 0 1 0 1.06 1.06l4.716-4.715 4.716 4.716a.748.748 0 0 0 1.061 0 .75.75 0 0 0 0-1.061l-4.716-4.716Z",clipRule:"evenodd"})),uf=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},y.createElement("path",{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3Zm1 2H6v12h12V8Zm-9 3h2v6H9v-6Zm4 0h2v6h-2v-6ZM9 4v2h6V4H9Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"delete-bin-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),DC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("path",{d:"M17.949 6.651a1.834 1.834 0 1 0-1.833 1.834c1.01 0 1.833-.822 1.833-1.834Zm-7.806 15.847a1.836 1.836 0 0 0-1.833 1.834c0 1.01.822 1.832 1.833 1.832a1.835 1.835 0 0 0 1.833-1.832 1.836 1.836 0 0 0-1.833-1.834Zm5.973-10.343a2.506 2.506 0 1 0 .001 5.012 2.506 2.506 0 0 0-.001-5.012Zm5.973 10.343a1.834 1.834 0 1 0 1.833 1.834 1.836 1.836 0 0 0-1.833-1.834Z"}),y.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.164 0 16 0c8.837 0 16 7.163 16 16 0 8.836-7.164 16-16 16S0 24.836 0 16Zm22.089 11.044a2.716 2.716 0 0 1-2.713-2.713c0-.828.375-1.57.962-2.068l-2.589-4.324a3.643 3.643 0 0 1-3.266 0l-2.589 4.324a2.7 2.7 0 0 1 .962 2.068 2.716 2.716 0 0 1-2.713 2.713A2.716 2.716 0 0 1 7.43 24.33a2.716 2.716 0 0 1 2.713-2.713c.352 0 .688.07.997.192l2.606-4.354a3.664 3.664 0 0 1 1.93-6.43v-1.7a2.714 2.714 0 0 1-2.273-2.674 2.716 2.716 0 0 1 2.714-2.713 2.716 2.716 0 0 1 2.712 2.713 2.714 2.714 0 0 1-2.272 2.674v1.7a3.664 3.664 0 0 1 3.226 3.636 3.651 3.651 0 0 1-1.297 2.794l2.607 4.354c.31-.122.645-.192.997-.192a2.716 2.716 0 0 1 2.712 2.713 2.716 2.716 0 0 1-2.713 2.713ZM4.497 14.677c0-1.958 1.228-3.59 3.282-3.59 1.497 0 2.754.798 2.936 2.342H9.544c-.114-.901-.901-1.363-1.765-1.363-1.47 0-2.083 1.295-2.083 2.61 0 1.316.613 2.61 2.083 2.61 1.227.02 1.899-.719 1.919-1.88H7.875v-.912h2.917v3.609h-.768l-.182-.806c-.643.73-1.227.969-2.062.969-2.055 0-3.283-1.632-3.283-3.59Z",clipRule:"evenodd"})),OC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#menu-line_svg__a)"},y.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"menu-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),RC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#question-line_svg__a)"},y.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm-1-5h2v2h-2v-2Zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"question-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),IC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},y.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm0-3a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"radio-button-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),AC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#search-line_svg__a)"},y.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"search-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),FC=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 25 25",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("path",{d:"M8.775 9.71a2.284 2.284 0 0 0-2.2 1.66H4.623a.623.623 0 0 0 0 1.247h1.952a2.284 2.284 0 0 0 4.401 0h8.804a.623.623 0 0 0 0-1.246h-8.804a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.076 1.038 1.038 0 0 1 0 2.076ZM15.627 4a2.284 2.284 0 0 0-2.2 1.661H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 1 0 0-1.246h-1.952A2.284 2.284 0 0 0 15.628 4Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Zm0 8.098a2.284 2.284 0 0 0-2.2 1.66H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 0 0 0-1.245h-1.952a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Z"})),a0=({title:e,titleId:n,...i})=>y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},y.createElement("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12l-10 .02c-3.356-.275-6-3.079-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6 6 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.31l.173.012h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"upload-cloud-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),$C="_spinner_50bgg_1",zC="_spinner-bounce_50bgg_9",wl={spinner:$C,spinnerBounce:zC};function Gl(e){const{className:n}=e;return g.jsxs("div",{className:Oe(wl.spinner,n),children:[g.jsx("div",{className:wl.spinnerBounce}),g.jsx("div",{className:wl.spinnerBounce}),g.jsx("div",{className:wl.spinnerBounce})]})}const BC="_message_176iw_1",UC="_icon_176iw_13",HC="_spinner_176iw_17",VC="_title_176iw_22",qC="_errored_176iw_27",WC="_compact_176iw_33",gi={message:BC,icon:UC,spinner:HC,title:VC,errored:qC,compact:WC};function GC(e){const{className:n,pending:i=!1,variant:o,icon:s,title:u,description:d,actions:f,compact:p=!1,errored:v,erroredTitle:w,erroredDescription:C}=e,m=Mt(v?w:u),x=Mt(v?C:d);return g.jsxs("div",{className:Oe(gi.message,o==="error"&&gi.errored,p&&gi.compact,n),children:[(s||i)&&g.jsxs("div",{className:gi.icon,children:[i&&g.jsx(Gl,{className:gi.spinner}),!i&&s]}),m&&g.jsx("div",{className:gi.title,children:v?w:u}),x&&g.jsx("div",{className:gi.description,children:d}),f&&g.jsx("div",{className:gi.actions,children:f})]})}function s0(e){const{strings:n,registerNamespace:i}=y.useContext(i0);return y.useEffect(()=>{i(e.namespace,e.strings)},[i,e]),n[e.namespace]??e.strings}const ZC="common",QC={messageTitleFetching:"Fetching data...",messageTitleFilteredDataNotAvailable:"Data is not available for selected filter!",messageTitleDataNotAvailable:"Data is not available!",messageTitleDataFailedToFetch:"Failed to fetch data!"},KC={namespace:ZC,strings:QC},YC="_default-message_wu986_1",XC="_overlay_wu986_2",$m={defaultMessage:YC,overlay:XC};function l0(e){const{className:n,compact:i,pending:o,overlayPending:s,filtered:u,empty:d,errored:f,emptyMessage:p,filteredEmptyMessage:v,pendingMessage:w,errorMessage:C}=e,m=s0(KC),x=y.useMemo(()=>o?w??m.messageTitleFetching:f?C??m.messageTitleDataFailedToFetch:u?v??m.messageTitleFilteredDataNotAvailable:d?p??m.messageTitleDataNotAvailable:null,[d,o,u,f,p,v,w,C,m]);return!d&&!o&&!f?null:g.jsx(GC,{className:Oe($m.defaultMessage,o&&s&&$m.overlay,n),icon:g.jsx(o0,{}),compact:i,title:x,pending:o})}const JC="_filter-bar_16xsj_1",eS="_grid-with-actions_16xsj_6",tS="_grid_16xsj_6",nS="_actions_16xsj_15",Za={filterBar:JC,gridWithActions:eS,grid:tS,actions:nS};function zm(e){const{grid:n,actions:i,spacing:o="default"}=e,s=Sr({spacing:o,mode:"gap"}),u=Sr({spacing:o,mode:"gap",inner:!0}),d=Sr({spacing:o,mode:"grid-gap"});return $e(n)&&$e(i)?null:g.jsxs("div",{className:Oe(Za.gridWithActions,s),children:[g.jsx("div",{className:Oe(Za.grid,d),children:n}),Mt(i)&&g.jsx("div",{className:Oe(Za.actions,u),children:i})]})}function rS(e){const{className:n,filters:i,filterActions:o,search:s,searchActions:u,filterPreview:d,spacing:f}=e;return $e(i)&&$e(o)&&$e(s)&&$e(u)&&$e(d)?null:g.jsxs("div",{className:Oe(Za.filterBar,n),children:[g.jsx(zm,{grid:i,actions:o,spacing:f}),g.jsx(zm,{grid:s,actions:u,spacing:f}),Mt(d)&&g.jsx("div",{className:Za.filterPreview,children:d})]})}function iS(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:v}=e,{content:w,containerClassName:C}=ps({actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:v});return g.jsx("div",{className:C,children:w})}function oS(e,n,i){const[o,s]=y.useState(()=>e);return y.useEffect(()=>{const u=setTimeout(()=>{s(e)},300);return()=>{clearTimeout(u)}},[e,n,i]),o}function aS(e,n=!1){const[i,o]=y.useState(()=>{var s;const u=(s=e.current)==null?void 0:s.getBoundingClientRect();return{width:u?.width??0,height:u?.height??0}});return y.useEffect(()=>{const s=new ResizeObserver(d=>{const f=d.at(0),p=f?.contentRect;p&&o({width:p.width,height:p.height})}),u=e.current;return!n&&Mt(u)&&s.observe(u),()=>{!n&&Mt(u)&&s.unobserve(u)}},[n,e]),oS(i)}const sS="_heading_1uxwj_1",lS="_level-one_1uxwj_9",uS="_level-two_1uxwj_17",cS="_level-three_1uxwj_25",dS="_level-four_1uxwj_33",fS="_level-five_1uxwj_37",hS="_level-six_1uxwj_41",pS="_ellipsized-text_1uxwj_45",mS="_ellipsized_1uxwj_45",Br={heading:sS,levelOne:lS,levelTwo:uS,levelThree:cS,levelFour:dS,levelFive:fS,levelSix:hS,ellipsizedText:pS,ellipsized:mS},gS={1:Br.levelOne,2:Br.levelTwo,3:Br.levelThree,4:Br.levelFour,5:Br.levelFive,6:Br.levelSix};function Zi(e){const{className:n,level:i=3,children:o,ellipsize:s}=e,u=`h${i}`,d=y.useRef(null),f=aS(d);return o?g.jsxs(u,{className:Oe(Br.heading,s&&Br.ellipsized,gS[i],n),ref:d,children:[s&&g.jsx("div",{className:Br.ellipsizedText,style:{width:`${f.width}px`},title:typeof o=="string"?o:void 0,children:o}),!s&&o]}):null}const vS="_header_537v1_1",yS={header:vS};function wS(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,elementRef:d,ellipsizeHeading:f,heading:p,headingClassName:v,headingLevel:w,headingDescription:C,headingDescriptionContainerClassName:m,icons:x,iconsContainerClassName:b,headingSectionClassName:_,headingContainerClassName:T,wrapHeadingContent:M=!1,spacing:D="default"}=e,$=y.useMemo(()=>$e(p)&&$e(C)?null:g.jsxs(g.Fragment,{children:[g.jsx(Zi,{level:w,className:v,ellipsize:f,children:p}),C&&g.jsx("div",{className:m,children:C})]}),[p,f,C,v,m,w]),{content:V,containerClassName:Z}=ps({actions:n,actionsContainerClassName:i,children:$,childrenContainerClassName:T,className:_,icons:x,iconsContainerClassName:b,withoutWrap:!M,spacing:D,variant:"sm"}),ce=Sr({spacing:D,inner:!0});return!V&&!o?null:g.jsxs("div",{className:Oe(yS.header,ce,u),ref:d,children:[V&&g.jsx("div",{className:Z,children:V}),o&&g.jsx("div",{className:s,children:o})]})}const xS="_container_lyve2_1",CS="_header_lyve2_8",SS="_centered-header-description-container_lyve2_11",_S="_centered-description_lyve2_16",bS="_with-border-and-header-background_lyve2_23",ES="_border_lyve2_33",NS="_content_lyve2_39",kS="_pending-overlaid_lyve2_42",TS="_message_lyve2_47",jS="_footer_lyve2_53",PS="_with-grid-view_lyve2_57",MS="_two-columns_lyve2_67",LS="_three-columns_lyve2_82",DS="_four-columns_lyve2_96",OS="_five-columns_lyve2_100",RS="_with-vertical-view_lyve2_105",IS="_with-overflow-in-content_lyve2_112",Ht={container:xS,header:CS,centeredHeaderDescriptionContainer:SS,centeredDescription:_S,withBorderAndHeaderBackground:bS,border:ES,content:NS,pendingOverlaid:kS,message:TS,footer:jS,withGridView:PS,twoColumns:MS,threeColumns:LS,fourColumns:DS,fiveColumns:OS,withVerticalView:RS,withOverflowInContent:IS},AS={2:Ht.twoColumns,3:Ht.threeColumns,4:Ht.fourColumns,5:Ht.fiveColumns};function cr(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,containerRef:d,contentViewType:f="default",ellipsizeHeading:p,filters:v,filterActions:w,footerActions:C,footerActionsContainerClassName:m,footerClassName:x,footerContent:b,footerContentClassName:_,footerIcons:T,headerClassName:M,headerDescription:D,withCenteredHeaderDescription:$,headerDescriptionContainerClassName:V,headerElementRef:Z,heading:ce,headingClassName:O,headingContainerClassName:te,headingDescription:de,headingDescriptionContainerClassName:fe,headingLevel:I,headingSectionClassName:H,icons:W,iconsContainerClassName:ne,numPreferredGridContentColumns:he=2,spacing:xe="default",withHeaderBorder:be=!1,withFooterBorder:G=!1,withBorderAndHeaderBackground:le=!1,withOverflowInContent:N=!1,withInternalPadding:U=!1,withoutWrapInHeading:oe=!1,withoutWrapInFooter:Se=!1,pending:se=!1,overlayPending:re=!1,empty:J=!1,errored:Q=!1,filtered:Y=!1,compactMessage:tt=!1,errorMessage:tn,emptyMessage:Wt,pendingMessage:lt,filteredEmptyMessage:wt}=e,ct=T||b||C,ht=ce||n||W||D||de,gt=Sr({spacing:xe}),xt=Sr({spacing:xe,mode:"padding-h"}),_t=Sr({spacing:xe,mode:"padding-v"}),nn=Sr({spacing:xe,mode:"gap",inner:!0}),bn=y.useMemo(()=>$e(D)?null:$?g.jsx("div",{className:Ht.centeredDescription,children:D}):D,[D,$]);return!ht&&!v&&!o&&!ct&&!J&&!se&&!Q&&!Y?null:g.jsxs("div",{ref:d,className:Oe(Ht.container,!le&>,U&&_t,N&&Ht.withOverflowInContent,le&&Ht.withBorderAndHeaderBackground,f==="grid"&&Ht.withGridView,f==="grid"&&AS[he],f==="vertical"&&Ht.withVerticalView,u),children:[ht&&g.jsx(wS,{actions:n,className:Oe(Ht.header,le&&_t,(U||le)&&xt,M),elementRef:Z,actionsContainerClassName:i,ellipsizeHeading:p,heading:ce,headingLevel:I,icons:W,iconsContainerClassName:ne,childrenContainerClassName:Oe($&&Ht.centeredHeaderDescriptionContainer,V),headingSectionClassName:H,headingClassName:O,headingContainerClassName:te,wrapHeadingContent:!oe,headingDescription:de,headingDescriptionContainerClassName:fe,spacing:xe,children:bn}),be&&g.jsx("div",{className:Ht.border}),g.jsx(rS,{filters:v,filterActions:w,spacing:xe,className:Oe(U&&xt)}),(o||J||se||Q||Y)&&g.jsxs("div",{className:Oe(Ht.content,f!=="default"&&nn,(U||le)&&xt,le&&_t,re&&se&&Ht.pendingOverlaid,s),children:[g.jsx(l0,{className:Ht.message,pending:se,filtered:Y,errored:Q,empty:J,compact:tt,overlayPending:re,emptyMessage:Wt,filteredEmptyMessage:wt,pendingMessage:lt,errorMessage:tn}),!J&&!Q&&(!se||re)&&o]}),ct&&G&&g.jsx("div",{className:Ht.border}),ct&&g.jsx(iS,{actions:C,icons:T,childrenContainerClassName:_,className:Oe(Ht.footer,U&&xt,le&&_t,x),actionsContainerClassName:m,spacing:xe,withoutWrap:Se,children:b})]})}function FS(e){const{children:n,container:i=document.body,portalKey:o}=e;return g.jsx(g.Fragment,{children:Xd.createPortal(n,i,o)})}const $S="yyyy-MM-dd",kP="-",TP=108;function Qa(e,n,i){return $e(e)?void 0:e.reduce((o,s,u)=>{const d=n(s,u);return o[d]=i?i(s,d,u,o):s,o},{})}function cf(e,n){return function(i,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const u=Mt(i)?e(i):void 0,d=Mt(o)?e(o):void 0;return u===d?0:$e(u)?s*1:$e(d)?s*-1:s*n(u,d)}}const jP=cf(e=>e,(e,n)=>e.localeCompare(n)),PP=cf(e=>e,(e,n)=>e-n),zS=(e,n,i,o)=>i?cf(s=>s,(s,u)=>{const d=i.toLowerCase(),f=s.toLowerCase().indexOf(d),p=u.toLowerCase().indexOf(d);return f===p||f===-1&&p===-1?s.localeCompare(u):p===-1?-1:f===-1?1:f-p})(e,n,o):0,BS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],US=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var Ur=function(e){return e.time="time",e.date="date",e}(Ur||{});function Bm(e,n){let i,o;return n.forEach(s=>{const u=e.indexOf(s);if(u===-1)return;const d=u+s.length;(i===void 0||uo)&&(o=d)}),{start:i,end:o}}function HS(e){const{start:n,end:i}=Bm(e,["yyyy","yy","MMM","MM","dd","EEE"]),{start:o,end:s}=Bm(e,["hh","mm","ss","aaa"]),u=e.length,d=(f,p)=>f===void 0||p===void 0?"":e.substring(f,p);return n===void 0&&o===void 0?[{value:e}].filter(f=>f.value!==""):n===void 0?[{value:d(0,o)},{type:Ur.time,value:d(o,s)},{value:d(s,u)}].filter(f=>f.value!==""):o===void 0?[{value:d(0,n)},{type:Ur.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!==""):nf.value!==""):[{value:d(0,o)},{type:Ur.time,value:d(o,s)},{value:d(s,n)},{type:Ur.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!=="")}function VS(e,n){return e.map(i=>{if(i.type===Ur.date){const o=n.getFullYear(),s=n.getMonth(),u=n.getDate(),d=US[n.getDay()],f={...i};return f.value=f.value.replace("yyyy",String(o)).replace("yy",String(o%100)).replace("MMM",BS[s]).replace("MM",Fa(s+1,2)).replace("EEE",d).replace("dd",Fa(u,2)),f}if(i.type===Ur.time){const o=i.value.indexOf("aaa"),s=n.getHours(),u=o>=0?(s-1)%12+1:s,d=s>=12?"PM":"AM",f=n.getMinutes(),p=n.getSeconds(),v={...i};return v.value=v.value.replace("hh",Fa(u,2)).replace("mm",Fa(f,2)).replace("ss",Fa(p,2)).replace("aaa",d),v}return i})}function MP(e,n,i=!0){if($e(e)||$e(n))return;if(n===0)return 0;const o=e*100/n;return i?lf(o,0,100):o}function qS(e){if($e(e))return;const n=e.filter(Mt);if(n.length!==0)return n}function LP(e){const n=qS(e);if(!$e(n))return Zx(n)}function Ji(e,n,i){return af(n)?e:e.filter(o=>Wx(i(o),n)).sort((o,s)=>zS(i(o),i(s),n))}function Um(e){if(e<1e3)return 2;const n=new Intl.NumberFormat("default",{notation:"compact"}).formatToParts(e).find(({type:i})=>i==="fraction");return $e(n)||af(n.value)?0:Number(n.value)>.1?1:0}function DP(e,n){if($e(e))return;const i={};if($e(n))return i.maximumFractionDigits=Um(e),new Intl.NumberFormat("default",i).format(e);const{currency:o,unit:s,maximumFractionDigits:u,compact:d,separatorHidden:f,language:p}=n;return hs(s)&&(i.unit=s,i.unitDisplay="short"),o&&(i.currencyDisplay="narrowSymbol",i.style="currency"),d&&(i.notation="compact",i.compactDisplay="short"),i.useGrouping=!f,Mt(u)?i.maximumFractionDigits=u:i.maximumFractionDigits=Um(e),new Intl.NumberFormat(p,i).format(e)}function OP(e,n=$S){if($e(e))return;const i=new Date(e);return Number.isNaN(i.getTime())?void 0:VS(HS(n),i).map(o=>o.value).join("")}const Zl=parseFloat(getComputedStyle(document.documentElement).fontSize),WS=16*Zl,nd=.5*Zl,GS={vertical:"bottom",horizontal:"right"};function ZS(e){const n=window.innerWidth/2,i=window.innerHeight/2,o=e.x+e.width/2,s=e.y+e.height/2;return{horizontal:o{if($e(e.current))return;const u=e.current.getBoundingClientRect(),{x:d,y:f,width:p,height:v}=u,w=Zl,C=w,m=window.innerWidth-w,x=window.innerWidth-2*w,b=ZS(u),_=d+p/2,T=lf(Mt(n)?n*Zl:p,WS,x);let M=_-T/2,D=_+T/2;if(Mm){const $=D-m-w;D=m,M-=$}o({content:{bottom:b.vertical==="bottom"?`${window.innerHeight-f+nd}px`:"unset",top:b.vertical==="top"?`${f+v+nd}px`:"unset",left:b.horizontal==="left"?`${M}px`:"unset",right:b.horizontal==="right"?`${window.innerWidth-D}px`:"unset"},pointer:{left:`${_}px`,top:b.vertical==="top"?`${f+v}px`:`${f-nd}px`,right:"unset",bottom:"unset"},width:`${D-M}px`,orientation:b})},[e,n]);return y.useEffect(()=>{s();const u=s,d=s;return window.addEventListener("scroll",u,!0),window.addEventListener("resize",d,!0),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",d,!0)}},[s]),i}const KS="_popup_cws49_1",YS="_top-orientation_cws49_9",XS="_pointer_cws49_15",JS="_icon_cws49_25",za={popup:KS,topOrientation:YS,pointer:XS,icon:JS};function u0(e){const{parentRef:n,elementRef:i,children:o,className:s,pointerClassName:u,preferredWidth:d}=e,{content:f,pointer:p,width:v,orientation:w}=QS(n,d);return g.jsxs(FS,{children:[g.jsx("div",{ref:i,style:{...f,width:v},className:Oe(za.popup,w.vertical==="bottom"&&za.topOrientation,s),children:o}),g.jsx("div",{className:Oe(za.pointer,w.vertical==="bottom"&&za.topOrientation,u),style:{...p},children:g.jsx("svg",{className:za.icon,viewBox:"0 0 200 100",children:g.jsx("path",{d:"M0 100 L100 0 L200 100Z"})})})]})}const e_="_input-error_1sxiz_1",t_="_pointer_1sxiz_14",xl={inputError:e_,pointer:t_};function c0(e){const{children:n,className:i,disabled:o}=e,[s,u]=y.useState(!1),d=y.useRef(),f=y.useRef(null);return y.useEffect(()=>{if($e(f.current))return;const{current:{parentElement:p}}=f;$e(p)||(d.current=p,u(!0))},[]),g.jsxs(g.Fragment,{children:[!s&&g.jsx("div",{className:xl.tooltipDummy,ref:f}),n&&!o&&g.jsxs(u0,{className:Oe(xl.inputError,i),pointerClassName:xl.pointer,parentRef:d,children:[g.jsx(CC,{className:xl.icon}),n]})]})}const n_="_input-label_3lsx4_1",r_="_disabled_3lsx4_7",i_="_required_3lsx4_11",rd={inputLabel:n_,disabled:r_,required:i_};function d0(e){const{children:n,className:i,disabled:o,required:s}=e;return n?g.jsxs("div",{className:Oe(rd.inputLabel,o&&rd.disabled,i),children:[n,s&&g.jsx("span",{"aria-hidden":!0,className:rd.required,children:"*"})]}):null}function f0(e){const{data:n,keySelector:i,renderer:o,rendererParams:s}=e;return $e(n)?null:n.map((u,d)=>{const f=i(u,d),p=s(f,u,d,n);return g.jsx(o,{...p},String(f))})}const o_="_radio_1uudv_1",a_="_icon_1uudv_5",s_="_content_1uudv_10",l_="_description_1uudv_16",u_="_input_1uudv_21",c_="_active_1uudv_37",d_="_disabled_1uudv_43",f_="_read-only_1uudv_55",$r={radio:o_,icon:a_,content:s_,description:l_,input:u_,active:c_,disabled:d_,readOnly:f_};function h_(e){const{name:n,label:i,description:o,className:s,value:u,inputName:d,onClick:f,disabled:p,readOnly:v,actions:w}=e,C=dr.useCallback(()=>{f&&f(n)},[n,f]),{content:m,containerClassName:x}=ps({icons:u?g.jsx(IC,{className:$r.icon}):g.jsx(kC,{className:$r.icon}),actions:w,childrenContainerClassName:$r.content,children:g.jsxs(g.Fragment,{children:[i,o&&g.jsx("div",{className:$r.description,children:o})]}),spacing:"compact",withoutWrap:!0});return g.jsxs("label",{className:Oe($r.radio,u&&$r.active,p&&$r.disabled,v&&$r.readOnly,x,s),children:[g.jsx("input",{className:$r.input,type:"radio",name:typeof d=="string"?d:void 0,checked:u,onClick:C,disabled:p,readOnly:!0}),m]})}const p_="_radio-input_17cft_1",m_="_radio-list-container_17cft_6",g_="_disabled_17cft_13",v_="_input-hint_17cft_18",Cl={radioInput:p_,radioListContainer:m_,disabled:g_,inputHint:v_};function y_(e){return!!e.clearable}function w_(e){const n=y_(e),{className:i,name:o,options:s,value:u,keySelector:d,labelSelector:f,descriptionSelector:p,label:v,labelContainerClassName:w,hint:C,hintContainerClassName:m,listContainerClassName:x,error:b,renderer:_=h_,rendererParams:T,disabled:M,readOnly:D,required:$,onChange:V,withAsterisk:Z}=e,ce=dr.useCallback(de=>{D||(n&&e.onChange(de===u?void 0:de,o),!n&&Mt(de)&&V(de,o))},[u,e,V,n,D,o]),O=dr.useCallback((de,fe)=>{const I={inputName:o,label:f(fe),description:p?p(fe):void 0,name:de,onClick:ce,value:de===u,disabled:M,readOnly:D};return{...T?T(fe):void 0,...I}},[o,f,u,ce,T,M,D,p]),te=Z??$;return g.jsxs("div",{className:Oe(Cl.radioInput,M&&Cl.disabled,i),children:[g.jsx(d0,{className:w,disabled:M,required:te,children:v}),g.jsx("div",{className:Oe(Cl.radioListContainer,x),children:g.jsx(f0,{data:s,rendererParams:O,renderer:_,keySelector:d})}),C&&g.jsx("div",{className:Oe(Cl.inputHint,m),children:C}),g.jsx(c0,{children:b})]})}const x_="_button_1vbet_1",C_="_round_1vbet_31",S_="_primary_1vbet_34",__="_secondary_1vbet_51",b_="_tertiary_1vbet_69",id={button:x_,round:C_,primary:S_,secondary:__,tertiary:b_};function df(e){const{ariaLabel:n,children:i,className:o,variant:s,round:u=!0,...d}=e,f=Oe(id.button,id[s],u&&id.round,o);return g.jsx(sf,{className:f,"aria-label":n,...d,children:i})}var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E_(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),i}var Sn=function(){return Sn=Object.assign||function(e){for(var n,i=1,o=arguments.length;i=0}).sort(nb)},ib=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],wf=ib.join(","),ob="".concat(wf,", [data-focus-guard]"),D0=function(e,n){return br((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?ob:wf)?[o]:[],D0(o))},[])},ab=function(e,n){var i;return e instanceof HTMLIFrameElement&&!((i=e.contentDocument)===null||i===void 0)&&i.body?Vo([e.contentDocument.body],n):[e]},Vo=function(e,n){return e.reduce(function(i,o){var s,u=D0(o,n),d=(s=[]).concat.apply(s,u.map(function(f){return ab(f,n)}));return i.concat(d,o.parentNode?br(o.parentNode.querySelectorAll(wf)).filter(function(f){return f===o}):[])},[])},sb=function(e){var n=e.querySelectorAll("[".concat(R_,"]"));return br(n).map(function(i){return Vo([i])}).reduce(function(i,o){return i.concat(o)},[])},xf=function(e,n){return br(e).filter(function(i){return T0(n,i)}).filter(function(i){return J_(i)})},Gm=function(e,n){return n===void 0&&(n=new Map),br(e).filter(function(i){return j0(n,i)})},Cf=function(e,n,i){return yf(xf(Vo(e,i),n),!0,i)},ns=function(e,n){return yf(xf(Vo(e),n),!1)},lb=function(e,n){return xf(sb(e),n)},Yi=function(e,n){return e.shadowRoot?Yi(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:br(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?Yi(s,n):!1}return Yi(i,n)})},ub=function(e){for(var n=new Set,i=e.length,o=0;o0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(d,f){return!n.has(f)})},O0=function(e){return e.parentNode?O0(e.parentNode):e},Sf=function(e){var n=eo(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(kd);return i.push.apply(i,s?ub(br(O0(o).querySelectorAll("[".concat(kd,'="').concat(s,'"]:not([').concat(y0,'="disabled"])')))):[o]),i},[])},cb=function(e){try{return e()}catch{return}},rs=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?rs(n.shadowRoot):n instanceof HTMLIFrameElement&&cb(function(){return n.contentWindow.document})?rs(n.contentWindow.document):n}},db=function(e,n){return e===n},fb=function(e,n){return!!br(e.querySelectorAll("iframe")).some(function(i){return db(i,n)})},R0=function(e,n){return n===void 0&&(n=rs(E0(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:Sf(e).some(function(i){return Yi(i,n)||fb(i,n)})},hb=function(e){e===void 0&&(e=document);var n=rs(e);return n?br(e.querySelectorAll("[".concat(O_,"]"))).some(function(i){return Yi(i,n)}):!1},pb=function(e,n){return n.filter(L0).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},_f=function(e,n){return L0(e)&&e.name?pb(e,n):e},mb=function(e){var n=new Set;return e.forEach(function(i){return n.add(_f(i,e))}),e.filter(function(i){return n.has(i)})},Zm=function(e){return e[0]&&e.length>1?_f(e[0],e):e[0]},Qm=function(e,n){return e.indexOf(_f(n,e))},Pd="NEW_FOCUS",gb=function(e,n,i,o,s){var u=e.length,d=e[0],f=e[u-1],p=vf(o);if(!(o&&e.indexOf(o)>=0)){var v=o!==void 0?i.indexOf(o):-1,w=s?i.indexOf(s):v,C=s?e.indexOf(s):-1;if(v===-1)return C!==-1?C:Pd;if(C===-1)return Pd;var m=v-w,x=i.indexOf(d),b=i.indexOf(f),_=mb(i),T=o!==void 0?_.indexOf(o):-1,M=T-(s?_.indexOf(s):v);if(!m&&C>=0||n.length===0)return C;var D=Qm(e,n[0]),$=Qm(e,n[n.length-1]);if(v<=x&&p&&Math.abs(m)>1)return $;if(v>=b&&p&&Math.abs(m)>1)return D;if(m&&Math.abs(M)>1)return C;if(v<=x)return $;if(v>b)return D;if(m)return Math.abs(m)>1?C:(u+C+m)%u}},vb=function(e){return function(n){var i,o=(i=P0(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},Km=function(e,n,i){var o=e.map(function(u){var d=u.node;return d}),s=Gm(o.filter(vb(i)));return s&&s.length?Zm(s):Zm(Gm(n))},Md=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Md(e.parentNode.host||e.parentNode,n),n},cd=function(e,n){for(var i=Md(e),o=Md(n),s=0;s=0)return u}return!1},I0=function(e,n,i){var o=eo(e),s=eo(n),u=o[0],d=!1;return s.filter(Boolean).forEach(function(f){d=cd(d||f,f)||d,i.filter(Boolean).forEach(function(p){var v=cd(u,p);v&&(!d||Yi(v,d)?d=v:d=cd(v,d))})}),d},Ym=function(e,n){return e.reduce(function(i,o){return i.concat(lb(o,n))},[])},yb=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(tb)},wb=function(e,n){var i=rs(eo(e).length>0?document:E0(e).ownerDocument),o=Sf(e).filter(jd),s=I0(i||e,e,o),u=new Map,d=ns(o,u),f=d.filter(function(b){var _=b.node;return jd(_)});if(f[0]){var p=ns([s],u).map(function(b){var _=b.node;return _}),v=yb(p,f),w=v.map(function(b){var _=b.node;return _}),C=v.filter(function(b){var _=b.tabIndex;return _>=0}).map(function(b){var _=b.node;return _}),m=gb(w,C,p,i,n);if(m===Pd){var x=Km(d,C,Ym(o,u))||Km(d,w,Ym(o,u));if(x)return{node:x};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:v[m]}},xb=function(e){var n=Sf(e).filter(jd),i=I0(e,e,n),o=yf(Vo([i],!0),!0,!0),s=Vo(n,!1);return o.map(function(u){var d=u.node,f=u.index;return{node:d,index:f,lockItem:s.indexOf(d)>=0,guard:vf(d)}})},bf=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},dd=0,fd=!1,A0=function(e,n,i){i===void 0&&(i={});var o=wb(e,n);if(!fd&&o){if(dd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),fd=!0,setTimeout(function(){fd=!1},1);return}dd++,bf(o.node,i.focusOptions),dd--}};function Ba(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var Cb=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:Ba(i),parent:Ba(i.parentElement),left:Ba(i.previousElementSibling),right:Ba(i.nextElementSibling)}),i=i.parentElement;return{element:Ba(e),stack:n,ownerDocument:e.ownerDocument}},Sb=function(e){var n,i,o,s,u;if(e)for(var d=e.stack,f=e.ownerDocument,p=new Map,v=0,w=d;v-1&&(_.filter(function(M){var D=M.guard,$=M.node;return D&&$.dataset.focusAutoGuard}).forEach(function(M){var D=M.node;return D.removeAttribute("tabIndex")}),Jm(T,_.length,1,_),Jm(T,-1,-1,_))}}}return e},H0=function(e){Yl()&&e&&(e.stopPropagation(),e.preventDefault())},Nf=function(){return gf(Yl)},$b=function(e){var n=e.target,i=e.currentTarget;i.contains(n)||Db(i,n)},zb=function(){return null},V0=function(){Ef=!0},q0=function(){Ef=!1,is="just",gf(function(){is="meanwhile"})},Bb=function(){document.addEventListener("focusin",H0),document.addEventListener("focusout",Nf),window.addEventListener("focus",V0),window.addEventListener("blur",q0)},Ub=function(){document.removeEventListener("focusin",H0),document.removeEventListener("focusout",Nf),window.removeEventListener("focus",V0),window.removeEventListener("blur",q0)};function Hb(e){return e.filter(function(n){var i=n.disabled;return!i})}var W0={moveFocusInside:A0,focusInside:R0,focusNextElement:Nb,focusPrevElement:kb,focusFirstElement:Tb,focusLastElement:jb,captureFocusRestore:F0};function Vb(e){var n=e.slice(-1)[0];n&&!zo&&Bb();var i=zo,o=i&&n&&n.id===i.id;zo=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(On=null,(!o||i.observed!==n.observed)&&n.onActivation(W0),Yl(),gf(Yl)):(Ub(),On=null)}w0.assignSyncMedium($b);x0.assignMedium(Nf);A_.assignMedium(function(e){return e(W0)});const qb=G_(Hb,Vb)(zb);pf(C0,qb);var Wb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Wb();return n&&e.setAttribute("nonce",n),e}function Zb(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Qb(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Kb=function(){var e=0,n=null;return{add:function(i){e==0&&(n=Gb())&&(Zb(n,i),Qb(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Yb=function(){var e=Kb();return function(n,i){y.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},kf=function(){var e=Yb(),n=function(i){var o=i.styles,s=i.dynamic;return e(o,s),null};return n},Xb={left:0,top:0,right:0,gap:0},hd=function(e){return parseInt(e||"",10)||0},Jb=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[hd(i),hd(o),hd(s)]},eE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xb;var n=Jb(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-i+n[2]-n[0])}},tE=kf(),Uo="data-scroll-locked",nE=function(e,n,i,o){var s=e.left,u=e.top,d=e.right,f=e.gap;return i===void 0&&(i="margin"),` + .`.concat(T_,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(f,"px ").concat(o,`; + } + body[`).concat(Uo,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([n&&"position: relative ".concat(o,";"),i==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(u,`px; + padding-right: `).concat(d,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(f,"px ").concat(o,`; + `),i==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(Fl,` { + right: `).concat(f,"px ").concat(o,`; + } + + .`).concat($l,` { + margin-right: `).concat(f,"px ").concat(o,`; + } + + .`).concat(Fl," .").concat(Fl,` { + right: 0 `).concat(o,`; + } + + .`).concat($l," .").concat($l,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Uo,`] { + `).concat(j_,": ").concat(f,`px; + } +`)},eg=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},rE=function(){y.useEffect(function(){return document.body.setAttribute(Uo,(eg()+1).toString()),function(){var e=eg()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},iE=function(e){var n=e.noRelative,i=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;rE();var u=y.useMemo(function(){return eE(s)},[s]);return y.createElement(tE,{styles:nE(u,!n,s,i?"":"!important")})},Ld=!1;if(typeof window<"u")try{var Sl=Object.defineProperty({},"passive",{get:function(){return Ld=!0,!0}});window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Ld=!1}var Oo=Ld?{passive:!1}:!1,oE=function(e){return e.tagName==="TEXTAREA"},G0=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!oE(e)&&i[n]==="visible")},aE=function(e){return G0(e,"overflowY")},sE=function(e){return G0(e,"overflowX")},tg=function(e,n){var i=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Z0(e,o);if(s){var u=Q0(e,o),d=u[1],f=u[2];if(d>f)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},lE=function(e){var n=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[n,i,o]},uE=function(e){var n=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[n,i,o]},Z0=function(e,n){return e==="v"?aE(n):sE(n)},Q0=function(e,n){return e==="v"?lE(n):uE(n)},cE=function(e,n){return e==="h"&&n==="rtl"?-1:1},dE=function(e,n,i,o,s){var u=cE(e,window.getComputedStyle(n).direction),d=u*o,f=i.target,p=n.contains(f),v=!1,w=d>0,C=0,m=0;do{var x=Q0(e,f),b=x[0],_=x[1],T=x[2],M=_-T-u*b;(b||M)&&Z0(e,f)&&(C+=M,m+=b),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(w&&Math.abs(C)<1||!w&&Math.abs(m)<1)&&(v=!0),v},_l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ng=function(e){return[e.deltaX,e.deltaY]},rg=function(e){return e&&"current"in e?e.current:e},fE=function(e,n){return e[0]===n[0]&&e[1]===n[1]},hE=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},pE=0,Ro=[];function mE(e){var n=y.useRef([]),i=y.useRef([0,0]),o=y.useRef(),s=y.useState(pE++)[0],u=y.useState(kf)[0],d=y.useRef(e);y.useEffect(function(){d.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var _=k_([e.lockRef.current],(e.shards||[]).map(rg)).filter(Boolean);return _.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=y.useCallback(function(_,T){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!d.current.allowPinchZoom;var M=_l(_),D=i.current,$="deltaX"in _?_.deltaX:D[0]-M[0],V="deltaY"in _?_.deltaY:D[1]-M[1],Z,ce=_.target,O=Math.abs($)>Math.abs(V)?"h":"v";if("touches"in _&&O==="h"&&ce.type==="range")return!1;var te=tg(O,ce);if(!te)return!0;if(te?Z=O:(Z=O==="v"?"h":"v",te=tg(O,ce)),!te)return!1;if(!o.current&&"changedTouches"in _&&($||V)&&(o.current=Z),!Z)return!0;var de=o.current||Z;return dE(de,T,_,de==="h"?$:V)},[]),p=y.useCallback(function(_){var T=_;if(!(!Ro.length||Ro[Ro.length-1]!==u)){var M="deltaY"in T?ng(T):_l(T),D=n.current.filter(function(Z){return Z.name===T.type&&(Z.target===T.target||T.target===Z.shadowParent)&&fE(Z.delta,M)})[0];if(D&&D.should){T.cancelable&&T.preventDefault();return}if(!D){var $=(d.current.shards||[]).map(rg).filter(Boolean).filter(function(Z){return Z.contains(T.target)}),V=$.length>0?f(T,$[0]):!d.current.noIsolation;V&&T.cancelable&&T.preventDefault()}}},[]),v=y.useCallback(function(_,T,M,D){var $={name:_,delta:T,target:M,should:D,shadowParent:gE(M)};n.current.push($),setTimeout(function(){n.current=n.current.filter(function(V){return V!==$})},1)},[]),w=y.useCallback(function(_){i.current=_l(_),o.current=void 0},[]),C=y.useCallback(function(_){v(_.type,ng(_),_.target,f(_,e.lockRef.current))},[]),m=y.useCallback(function(_){v(_.type,_l(_),_.target,f(_,e.lockRef.current))},[]);y.useEffect(function(){return Ro.push(u),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:m}),document.addEventListener("wheel",p,Oo),document.addEventListener("touchmove",p,Oo),document.addEventListener("touchstart",w,Oo),function(){Ro=Ro.filter(function(_){return _!==u}),document.removeEventListener("wheel",p,Oo),document.removeEventListener("touchmove",p,Oo),document.removeEventListener("touchstart",w,Oo)}},[]);var x=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(u,{styles:hE(s)}):null,x?y.createElement(iE,{gapMode:e.gapMode}):null)}function gE(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}pf(v0,mE);var vE=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Io=new WeakMap,bl=new WeakMap,El={},pd=0,K0=function(e){return e&&(e.host||K0(e.parentNode))},yE=function(e,n){return n.map(function(i){if(e.contains(i))return i;var o=K0(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},wE=function(e,n,i,o){var s=yE(n,Array.isArray(e)?e:[e]);El[i]||(El[i]=new WeakMap);var u=El[i],d=[],f=new Set,p=new Set(s),v=function(C){!C||f.has(C)||(f.add(C),v(C.parentNode))};s.forEach(v);var w=function(C){!C||p.has(C)||Array.prototype.forEach.call(C.children,function(m){if(f.has(m))w(m);else try{var x=m.getAttribute(o),b=x!==null&&x!=="false",_=(Io.get(m)||0)+1,T=(u.get(m)||0)+1;Io.set(m,_),u.set(m,T),d.push(m),_===1&&b&&bl.set(m,!0),T===1&&m.setAttribute(i,"true"),b||m.setAttribute(o,"true")}catch(M){console.error("aria-hidden: cannot operate on ",m,M)}})};return w(n),f.clear(),pd++,function(){d.forEach(function(C){var m=Io.get(C)-1,x=u.get(C)-1;Io.set(C,m),u.set(C,x),m||(bl.has(C)||C.removeAttribute(o),bl.delete(C)),x||C.removeAttribute(i)}),pd--,pd||(Io=new WeakMap,Io=new WeakMap,bl=new WeakMap,El={})}},xE=function(e,n,i){var o=Array.from(Array.isArray(e)?e:[e]),s=n||vE(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),wE(o,s,i,"aria-hidden")):function(){return null}},CE=kf(),SE=` + [`+b0+`] { + pointer-events: none !important; + } +`,_E=function(){return y.createElement(CE,{styles:SE})},ig=function(e){return"current"in e?e.current:e};function bE(e){var n=e.setLockProps,i=e.onEscapeKey,o=e.onClickOutside,s=e.shards,u=e.onActivation,d=e.onDeactivation,f=e.noIsolation,p=y.useState(void 0),v=p[0],w=p[1],C=y.useRef(null),m=y.useRef(0);return y.useEffect(function(){var x=function(M){M.defaultPrevented||(M.code==="Escape"||M.key==="Escape"||M.keyCode===27)&&i&&i(M)},b=function(M){M.defaultPrevented||M.target===C.current||M instanceof MouseEvent&&M.button!==0||s&&s.map(ig).some(function(D){return D&&D.contains(M.target)||D===M.target})||o&&o(M)},_=function(M){b(M),m.current=M.touches.length},T=function(M){m.current=M.touches.length};if(v)return document.addEventListener("keydown",x),document.addEventListener("mousedown",b),document.addEventListener("touchstart",_),document.addEventListener("touchend",T),function(){document.removeEventListener("keydown",x),document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",_),document.removeEventListener("touchend",T)}},[v,o,i]),y.useEffect(function(){if(v)return u&&u(v),function(){d&&d()}},[!!v]),y.useEffect(function(){var x=function(){return null},b=!1,_=function(M){f||(x=xE(N_([M],(s||[]).map(ig)),document.body,b0)),w(function(){return M})},T=function(){x(),b||w(null)};return n({onMouseDown:function(M){C.current=M.target},onTouchStart:function(M){C.current=M.target},onActivation:_,onDeactivation:T}),function(){b=!0,n(!1)}},[]),y.createElement(_E,null)}const EE=pf(_0,bE);var NE=function(e){return y.createElement(EE,Sn({},e))};y.forwardRef(function(e,n){return y.createElement(U_,Sn({},e,{ref:n,sideCar:NE}))});const kE="_input-container_1b4m7_1",TE="_input-section_1b4m7_4",jE="_input_1b4m7_1",PE="_disabled_1b4m7_17",ME="_errored_1b4m7_25",LE="_general_1b4m7_31",DE="_read-only_1b4m7_38",OE="_input-hint_1b4m7_53",RE="_input-error_1b4m7_58",xr={inputContainer:kE,inputSection:TE,input:jE,disabled:PE,errored:ME,general:LE,readOnly:DE,inputHint:OE,inputError:RE};function Tf(e){const{containerRef:n,inputSectionRef:i,actions:o,className:s,disabled:u,error:d,errorOnTooltip:f=!1,hint:p,icons:v,input:w,inputSectionClassName:C,label:m,labelClassName:x,readOnly:b,required:_,variant:T="form",withAsterisk:M,actionsContainerClassName:D,errorContainerClassName:$,hintContainerClassName:V,iconsContainerClassName:Z,spacing:ce}=e,O=M??_,{content:te,containerClassName:de}=ps({className:Oe(xr.inputSection,C),icons:v,iconsContainerClassName:Z,actions:o,actionsContainerClassName:D,children:w,childrenContainerClassName:xr.input,spacing:ce,withoutWrap:!0,variant:"xs"});return g.jsxs("div",{ref:n,className:Oe(xr.inputContainer,!!d&&xr.errored,b&&xr.readOnly,T==="form"&&xr.form,T==="general"&&xr.general,u&&xr.disabled,s),title:f&&d&&typeof d=="string"?d:void 0,children:[g.jsx(d0,{className:x,disabled:u,required:O,children:m}),g.jsx("div",{ref:i,className:de,children:te}),p&&g.jsx("div",{className:Oe(xr.inputHint,V),children:p}),!f&&g.jsx(c0,{disabled:u,className:Oe(xr.inputError,$),children:d})]})}const IE="_raw-input_8rtzt_1",AE={rawInput:IE};function Y0(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=dr.useCallback(p=>{const v=p.currentTarget.value;i&&i(v===""?void 0:v,u,p)},[u,i]);return g.jsx("input",{...d,ref:o,className:Oe(AE.rawInput,n),name:Mt(u)?String(u):void 0,onChange:f,value:s??""})}function FE(e,n,i,o){dr.useEffect(()=>{if(!e)return;const s=u=>{const{current:d}=i,{current:f}=o,p=u.target,v=u&&d?d===u.target||d.contains(p):!1,w=f?f===u.target||f.contains(p):!1;n(v,w,u)};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[e,n,i,o])}var og={},$E={},os={},jf={},as={},Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Dd={};(function(e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(n=String.fromCodePoint)!==null&&n!==void 0?n:function(u){var d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function o(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=i.get(u))!==null&&d!==void 0?d:u}e.replaceCodePoint=o;function s(u){return(0,e.fromCodePoint)(o(u))}e.default=s})(Dd);(function(e){var n=Ae&&Ae.__createBinding||(Object.create?function(I,H,W,ne){ne===void 0&&(ne=W);var he=Object.getOwnPropertyDescriptor(H,W);(!he||("get"in he?!H.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return H[W]}}),Object.defineProperty(I,ne,he)}:function(I,H,W,ne){ne===void 0&&(ne=W),I[ne]=H[W]}),i=Ae&&Ae.__setModuleDefault||(Object.create?function(I,H){Object.defineProperty(I,"default",{enumerable:!0,value:H})}:function(I,H){I.default=H}),o=Ae&&Ae.__importStar||function(I){if(I&&I.__esModule)return I;var H={};if(I!=null)for(var W in I)W!=="default"&&Object.prototype.hasOwnProperty.call(I,W)&&n(H,I,W);return i(H,I),H},s=Ae&&Ae.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var u=s(Pf);e.htmlDecodeTree=u.default;var d=s(Mf);e.xmlDecodeTree=d.default;var f=o(Dd);e.decodeCodePoint=f.default;var p=Dd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return p.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return p.fromCodePoint}});var v;(function(I){I[I.NUM=35]="NUM",I[I.SEMI=59]="SEMI",I[I.EQUALS=61]="EQUALS",I[I.ZERO=48]="ZERO",I[I.NINE=57]="NINE",I[I.LOWER_A=97]="LOWER_A",I[I.LOWER_F=102]="LOWER_F",I[I.LOWER_X=120]="LOWER_X",I[I.LOWER_Z=122]="LOWER_Z",I[I.UPPER_A=65]="UPPER_A",I[I.UPPER_F=70]="UPPER_F",I[I.UPPER_Z=90]="UPPER_Z"})(v||(v={}));var w=32,C;(function(I){I[I.VALUE_LENGTH=49152]="VALUE_LENGTH",I[I.BRANCH_LENGTH=16256]="BRANCH_LENGTH",I[I.JUMP_TABLE=127]="JUMP_TABLE"})(C=e.BinTrieFlags||(e.BinTrieFlags={}));function m(I){return I>=v.ZERO&&I<=v.NINE}function x(I){return I>=v.UPPER_A&&I<=v.UPPER_F||I>=v.LOWER_A&&I<=v.LOWER_F}function b(I){return I>=v.UPPER_A&&I<=v.UPPER_Z||I>=v.LOWER_A&&I<=v.LOWER_Z||m(I)}function _(I){return I===v.EQUALS||b(I)}var T;(function(I){I[I.EntityStart=0]="EntityStart",I[I.NumericStart=1]="NumericStart",I[I.NumericDecimal=2]="NumericDecimal",I[I.NumericHex=3]="NumericHex",I[I.NamedEntity=4]="NamedEntity"})(T||(T={}));var M;(function(I){I[I.Legacy=0]="Legacy",I[I.Strict=1]="Strict",I[I.Attribute=2]="Attribute"})(M=e.DecodingMode||(e.DecodingMode={}));var D=function(){function I(H,W,ne){this.decodeTree=H,this.emitCodePoint=W,this.errors=ne,this.state=T.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=M.Strict}return I.prototype.startEntity=function(H){this.decodeMode=H,this.state=T.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},I.prototype.write=function(H,W){switch(this.state){case T.EntityStart:return H.charCodeAt(W)===v.NUM?(this.state=T.NumericStart,this.consumed+=1,this.stateNumericStart(H,W+1)):(this.state=T.NamedEntity,this.stateNamedEntity(H,W));case T.NumericStart:return this.stateNumericStart(H,W);case T.NumericDecimal:return this.stateNumericDecimal(H,W);case T.NumericHex:return this.stateNumericHex(H,W);case T.NamedEntity:return this.stateNamedEntity(H,W)}},I.prototype.stateNumericStart=function(H,W){return W>=H.length?-1:(H.charCodeAt(W)|w)===v.LOWER_X?(this.state=T.NumericHex,this.consumed+=1,this.stateNumericHex(H,W+1)):(this.state=T.NumericDecimal,this.stateNumericDecimal(H,W))},I.prototype.addToNumericResult=function(H,W,ne,he){if(W!==ne){var xe=ne-W;this.result=this.result*Math.pow(he,xe)+parseInt(H.substr(W,xe),he),this.consumed+=xe}},I.prototype.stateNumericHex=function(H,W){for(var ne=W;W>14;W>14,xe!==0){if(be===v.SEMI)return this.emitNamedEntityData(this.treeIndex,xe,this.consumed+this.excess);this.decodeMode!==M.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},I.prototype.emitNotTerminatedNamedEntity=function(){var H,W=this,ne=W.result,he=W.decodeTree,xe=(he[ne]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ne,xe,this.consumed),(H=this.errors)===null||H===void 0||H.missingSemicolonAfterCharacterReference(),this.consumed},I.prototype.emitNamedEntityData=function(H,W,ne){var he=this.decodeTree;return this.emitCodePoint(W===1?he[H]&~C.VALUE_LENGTH:he[H+1],ne),W===3&&this.emitCodePoint(he[H+2],ne),ne},I.prototype.end=function(){var H;switch(this.state){case T.NamedEntity:return this.result!==0&&(this.decodeMode!==M.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case T.NumericDecimal:return this.emitNumericEntity(0,2);case T.NumericHex:return this.emitNumericEntity(0,3);case T.NumericStart:return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case T.EntityStart:return 0}},I}();e.EntityDecoder=D;function $(I){var H="",W=new D(I,function(ne){return H+=(0,f.fromCodePoint)(ne)});return function(ne,he){for(var xe=0,be=0;(be=ne.indexOf("&",be))>=0;){H+=ne.slice(xe,be),W.startEntity(he);var G=W.write(ne,be+1);if(G<0){xe=be+W.end();break}xe=be+G,be=G===0?xe+1:xe}var le=H+ne.slice(xe);return H="",le}}function V(I,H,W,ne){var he=(H&C.BRANCH_LENGTH)>>7,xe=H&C.JUMP_TABLE;if(he===0)return xe!==0&&ne===xe?W:-1;if(xe){var be=ne-xe;return be<0||be>=he?-1:I[W+be]-1}for(var G=W,le=G+he-1;G<=le;){var N=G+le>>>1,U=I[N];if(Une)le=N-1;else return I[N+he]}return-1}e.determineBranch=V;var Z=$(u.default),ce=$(d.default);function O(I,H){return H===void 0&&(H=M.Legacy),Z(I,H)}e.decodeHTML=O;function te(I){return Z(I,M.Attribute)}e.decodeHTMLAttribute=te;function de(I){return Z(I,M.Strict)}e.decodeHTMLStrict=de;function fe(I){return ce(I,M.Strict)}e.decodeXML=fe})(as);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var n=as,i;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(i||(i={}));var o;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(o||(o={}));function s(m){return m===i.Space||m===i.NewLine||m===i.Tab||m===i.FormFeed||m===i.CarriageReturn}function u(m){return m===i.Slash||m===i.Gt||s(m)}function d(m){return m>=i.Zero&&m<=i.Nine}function f(m){return m>=i.LowerA&&m<=i.LowerZ||m>=i.UpperA&&m<=i.UpperZ}function p(m){return m>=i.UpperA&&m<=i.UpperF||m>=i.LowerA&&m<=i.LowerF}var v;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(v=e.QuoteType||(e.QuoteType={}));var w={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},C=function(){function m(x,b){var _=x.xmlMode,T=_===void 0?!1:_,M=x.decodeEntities,D=M===void 0?!0:M;this.cbs=b,this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=T,this.decodeEntities=D,this.entityTrie=T?n.xmlDecodeTree:n.htmlDecodeTree}return m.prototype.reset=function(){this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(x){this.offset+=this.buffer.length,this.buffer=x,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&x===i.Amp&&(this.state=o.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(x){var b=this.sequenceIndex===this.currentSequence.length,_=b?u(x):(x|32)===this.currentSequence[this.sequenceIndex];if(!_)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(x)},m.prototype.stateInSpecialTag=function(x){if(this.sequenceIndex===this.currentSequence.length){if(x===i.Gt||s(x)){var b=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&x!==i.Semi)this.trieIndex+=_;else{var T=this.index-this.entityExcess+1;T>this.sectionStart&&this.emitPartial(this.sectionStart,T),this.entityResult=this.trieIndex,this.trieIndex+=_,this.entityExcess=0,this.sectionStart=this.index+1,_===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var x=(this.entityTrie[this.entityResult]&n.BinTrieFlags.VALUE_LENGTH)>>14;switch(x){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~n.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(x){(x|32)===i.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(x))},m.prototype.emitNumericEntity=function(x){var b=this.index-this.entityExcess-1,_=b+2+ +(this.state===o.InHexEntity);_!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(x),this.emitCodePoint((0,n.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(x){x===i.Semi?this.emitNumericEntity(!0):d(x)?(this.entityResult=this.entityResult*10+(x-i.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(x){x===i.Semi?this.emitNumericEntity(!0):d(x)?(this.entityResult=this.entityResult*16+(x-i.Zero),this.entityExcess++):p(x)?(this.entityResult=this.entityResult*16+((x|32)-i.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===o.InAttributeValueDq||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index0&&d.has(this.stack[this.stack.length-1]);){var f=this.stack.pop();(o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,f,!0)}this.isVoidElement(n)||(this.stack.push(n),cg.has(n)?this.foreignContext.push(!0):dg.has(n)&&this.foreignContext.push(!1)),(u=(s=this.cbs).onopentagname)===null||u===void 0||u.call(s,n),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(n){var i,o;this.startIndex=this.openTagStart,this.attribs&&((o=(i=this.cbs).onopentag)===null||o===void 0||o.call(i,this.tagname,this.attribs,n),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(n){this.endIndex=n,this.endOpenTag(!1),this.startIndex=n+1},e.prototype.onclosetag=function(n,i){var o,s,u,d,f,p;this.endIndex=i;var v=this.getSlice(n,i);if(this.lowerCaseTagNames&&(v=v.toLowerCase()),(cg.has(v)||dg.has(v))&&this.foreignContext.pop(),this.isVoidElement(v))!this.options.xmlMode&&v==="br"&&((s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,"br"),(d=(u=this.cbs).onopentag)===null||d===void 0||d.call(u,"br",{},!0),(p=(f=this.cbs).onclosetag)===null||p===void 0||p.call(f,"br",!1));else{var w=this.stack.lastIndexOf(v);if(w!==-1)if(this.cbs.onclosetag)for(var C=this.stack.length-w;C--;)this.cbs.onclosetag(this.stack.pop(),C!==0);else this.stack.length=w;else!this.options.xmlMode&&v==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+1},e.prototype.onselfclosingtag=function(n){this.endIndex=n,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=n+1):this.onopentagend(n)},e.prototype.closeCurrentTag=function(n){var i,o,s=this.tagname;this.endOpenTag(n),this.stack[this.stack.length-1]===s&&((o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,s,!n),this.stack.pop())},e.prototype.onattribname=function(n,i){this.startIndex=n;var o=this.getSlice(n,i);this.attribname=this.lowerCaseAttributeNames?o.toLowerCase():o},e.prototype.onattribdata=function(n,i){this.attribvalue+=this.getSlice(n,i)},e.prototype.onattribentity=function(n){this.attribvalue+=(0,ag.fromCodePoint)(n)},e.prototype.onattribend=function(n,i){var o,s;this.endIndex=i,(s=(o=this.cbs).onattribute)===null||s===void 0||s.call(o,this.attribname,this.attribvalue,n===Nl.QuoteType.Double?'"':n===Nl.QuoteType.Single?"'":n===Nl.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(n){var i=n.search(qE),o=i<0?n:n.substr(0,i);return this.lowerCaseTagNames&&(o=o.toLowerCase()),o},e.prototype.ondeclaration=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(o))}this.startIndex=i+1},e.prototype.onprocessinginstruction=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(o))}this.startIndex=i+1},e.prototype.oncomment=function(n,i,o){var s,u,d,f;this.endIndex=i,(u=(s=this.cbs).oncomment)===null||u===void 0||u.call(s,this.getSlice(n,i-o)),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d),this.startIndex=i+1},e.prototype.oncdata=function(n,i,o){var s,u,d,f,p,v,w,C,m,x;this.endIndex=i;var b=this.getSlice(n,i-o);this.options.xmlMode||this.options.recognizeCDATA?((u=(s=this.cbs).oncdatastart)===null||u===void 0||u.call(s),(f=(d=this.cbs).ontext)===null||f===void 0||f.call(d,b),(v=(p=this.cbs).oncdataend)===null||v===void 0||v.call(p)):((C=(w=this.cbs).oncomment)===null||C===void 0||C.call(w,"[CDATA[".concat(b,"]]")),(x=(m=this.cbs).oncommentend)===null||x===void 0||x.call(m)),this.startIndex=i+1},e.prototype.onend=function(){var n,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var o=this.stack.length;o>0;this.cbs.onclosetag(this.stack[--o],!0));}(i=(n=this.cbs).onend)===null||i===void 0||i.call(n)},e.prototype.reset=function(){var n,i,o,s;(i=(n=this.cbs).onreset)===null||i===void 0||i.call(n),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(o=this.cbs).onparserinit)===null||s===void 0||s.call(o,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(n){this.reset(),this.end(n)},e.prototype.getSlice=function(n,i){for(;n-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var o=this.buffers[0].slice(n-this.bufferOffset,i-this.bufferOffset);i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),o+=this.buffers[0].slice(0,i-this.bufferOffset);return o},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".write() after done!"));return}this.buffers.push(n),this.tokenizer.running&&(this.tokenizer.write(n),this.writeIndex++)},e.prototype.end=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".end() after done!"));return}n&&this.write(n),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(i){this.children=i},enumerable:!1,configurable:!0}),n}(Lf);Qe.NodeWithChildren=lu;var tv=function(e){_i(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=_n.ElementType.CDATA,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(lu);Qe.CDATA=tv;var nv=function(e){_i(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=_n.ElementType.Root,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(lu);Qe.Document=nv;var rv=function(e){_i(n,e);function n(i,o,s,u){s===void 0&&(s=[]),u===void 0&&(u=i==="script"?_n.ElementType.Script:i==="style"?_n.ElementType.Style:_n.ElementType.Tag);var d=e.call(this,s)||this;return d.name=i,d.attribs=o,d.type=u,d}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(i){this.name=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var i=this;return Object.keys(this.attribs).map(function(o){var s,u;return{name:o,value:i.attribs[o],namespace:(s=i["x-attribsNamespace"])===null||s===void 0?void 0:s[o],prefix:(u=i["x-attribsPrefix"])===null||u===void 0?void 0:u[o]}})},enumerable:!1,configurable:!0}),n}(lu);Qe.Element=rv;function iv(e){return(0,_n.isTag)(e)}Qe.isTag=iv;function ov(e){return e.type===_n.ElementType.CDATA}Qe.isCDATA=ov;function av(e){return e.type===_n.ElementType.Text}Qe.isText=av;function sv(e){return e.type===_n.ElementType.Comment}Qe.isComment=sv;function lv(e){return e.type===_n.ElementType.Directive}Qe.isDirective=lv;function uv(e){return e.type===_n.ElementType.Root}Qe.isDocument=uv;function GE(e){return Object.prototype.hasOwnProperty.call(e,"children")}Qe.hasChildren=GE;function Df(e,n){n===void 0&&(n=!1);var i;if(av(e))i=new X0(e.data);else if(sv(e))i=new J0(e.data);else if(iv(e)){var o=n?md(e.children):[],s=new rv(e.name,Ka({},e.attribs),o);o.forEach(function(p){return p.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Ka({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Ka({},e["x-attribsPrefix"])),i=s}else if(ov(e)){var o=n?md(e.children):[],u=new tv(o);o.forEach(function(v){return v.parent=u}),i=u}else if(uv(e)){var o=n?md(e.children):[],d=new nv(o);o.forEach(function(v){return v.parent=d}),e["x-mode"]&&(d["x-mode"]=e["x-mode"]),i=d}else if(lv(e)){var f=new ev(e.name,e.data);e["x-name"]!=null&&(f["x-name"]=e["x-name"],f["x-publicId"]=e["x-publicId"],f["x-systemId"]=e["x-systemId"]),i=f}else throw new Error("Not implemented yet: ".concat(e.type));return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}Qe.cloneNode=Df;function md(e){for(var n=e.map(function(o){return Df(o,!0)}),i=1;i$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,u){return s.codePointAt(u)}:function(s,u){return(s.charCodeAt(u)&64512)===55296?(s.charCodeAt(u)-55296)*1024+s.charCodeAt(u+1)-56320+65536:s.charCodeAt(u)};function i(s){for(var u="",d=0,f;(f=e.xmlReplacer.exec(s))!==null;){var p=f.index,v=s.charCodeAt(p),w=n.get(v);w!==void 0?(u+=s.substring(d,p)+w,d=p+1):(u+="".concat(s.substring(d,p),"&#x").concat((0,e.getCodePoint)(s,p).toString(16),";"),d=e.xmlReplacer.lastIndex+=+((v&64512)===55296))}return u+s.substr(d)}e.encodeXML=i,e.escape=i;function o(s,u){return function(d){for(var f,p=0,v="";f=s.exec(d);)p!==f.index&&(v+=d.substring(p,f.index)),v+=u.get(f[0].charCodeAt(0)),p=f.index+1;return v+d.substring(p)}}e.escapeUTF8=o(/[&<>'"]/g,n),e.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Xl);var ZE=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.encodeNonAsciiHTML=to.encodeHTML=void 0;var QE=ZE(Of),dv=Xl,KE=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function YE(e){return fv(KE,e)}to.encodeHTML=YE;function XE(e){return fv(dv.xmlReplacer,e)}to.encodeNonAsciiHTML=XE;function fv(e,n){for(var i="",o=0,s;(s=e.exec(n))!==null;){var u=s.index;i+=n.substring(o,u);var d=n.charCodeAt(u),f=QE.default.get(d);if(typeof f=="object"){if(u+10&&(o+=uu(e.children,n)),(n.xmlMode||!fg.has(e.name))&&(o+=""))),o}function uN(e){return"<".concat(e.data,">")}function cN(e,n){var i,o=e.data||"";return((i=n.encodeEntities)!==null&&i!==void 0?i:n.decodeEntities)!==!1&&!(!n.xmlMode&&e.parent&&nN.has(e.parent.name))&&(o=n.xmlMode||n.encodeEntities!=="utf8"?(0,Jl.encodeXML)(o):(0,Jl.escapeText)(o)),o}function dN(e){return"")}function fN(e){return"")}var hN=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0});In.innerText=In.textContent=In.getText=In.getInnerHTML=In.getOuterHTML=void 0;var _r=Vr,pN=hN(ms),mN=Yo;function pv(e,n){return(0,pN.default)(e,n)}In.getOuterHTML=pv;function gN(e,n){return(0,_r.hasChildren)(e)?e.children.map(function(i){return pv(i,n)}).join(""):""}In.getInnerHTML=gN;function Bl(e){return Array.isArray(e)?e.map(Bl).join(""):(0,_r.isTag)(e)?e.name==="br"?` +`:Bl(e.children):(0,_r.isCDATA)(e)?Bl(e.children):(0,_r.isText)(e)?e.data:""}In.getText=Bl;function Od(e){return Array.isArray(e)?e.map(Od).join(""):(0,_r.hasChildren)(e)&&!(0,_r.isComment)(e)?Od(e.children):(0,_r.isText)(e)?e.data:""}In.textContent=Od;function Rd(e){return Array.isArray(e)?e.map(Rd).join(""):(0,_r.hasChildren)(e)&&(e.type===mN.ElementType.Tag||(0,_r.isCDATA)(e))?Rd(e.children):(0,_r.isText)(e)?e.data:""}In.innerText=Rd;var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.prevElementSibling=qt.nextElementSibling=qt.getName=qt.hasAttrib=qt.getAttributeValue=qt.getSiblings=qt.getParent=qt.getChildren=void 0;var Rf=Vr;function mv(e){return(0,Rf.hasChildren)(e)?e.children:[]}qt.getChildren=mv;function gv(e){return e.parent||null}qt.getParent=gv;function vN(e){var n,i,o=gv(e);if(o!=null)return mv(o);for(var s=[e],u=e.prev,d=e.next;u!=null;)s.unshift(u),n=u,u=n.prev;for(;d!=null;)s.push(d),i=d,d=i.next;return s}qt.getSiblings=vN;function yN(e,n){var i;return(i=e.attribs)===null||i===void 0?void 0:i[n]}qt.getAttributeValue=yN;function wN(e,n){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,n)&&e.attribs[n]!=null}qt.hasAttrib=wN;function xN(e){return e.name}qt.getName=xN;function CN(e){for(var n,i=e.next;i!==null&&!(0,Rf.isTag)(i);)n=i,i=n.next;return i}qt.nextElementSibling=CN;function SN(e){for(var n,i=e.prev;i!==null&&!(0,Rf.isTag)(i);)n=i,i=n.prev;return i}qt.prevElementSibling=SN;var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.prepend=Cn.prependChild=Cn.append=Cn.appendChild=Cn.replaceElement=Cn.removeElement=void 0;function gs(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var n=e.parent.children,i=n.lastIndexOf(e);i>=0&&n.splice(i,1)}e.next=null,e.prev=null,e.parent=null}Cn.removeElement=gs;function _N(e,n){var i=n.prev=e.prev;i&&(i.next=n);var o=n.next=e.next;o&&(o.prev=n);var s=n.parent=e.parent;if(s){var u=s.children;u[u.lastIndexOf(e)]=n,e.parent=null}}Cn.replaceElement=_N;function bN(e,n){if(gs(n),n.next=null,n.parent=e,e.children.push(n)>1){var i=e.children[e.children.length-2];i.next=n,n.prev=i}else n.prev=null}Cn.appendChild=bN;function EN(e,n){gs(n);var i=e.parent,o=e.next;if(n.next=o,n.prev=e,e.next=n,n.parent=i,o){if(o.prev=n,i){var s=i.children;s.splice(s.lastIndexOf(o),0,n)}}else i&&i.children.push(n)}Cn.append=EN;function NN(e,n){if(gs(n),n.parent=e,n.prev=null,e.children.unshift(n)!==1){var i=e.children[1];i.prev=n,n.next=i}else n.next=null}Cn.prependChild=NN;function kN(e,n){gs(n);var i=e.parent;if(i){var o=i.children;o.splice(o.indexOf(e),0,n)}e.prev&&(e.prev.next=n),n.parent=i,n.prev=e.prev,n.next=e,e.prev=n}Cn.prepend=kN;var an={};Object.defineProperty(an,"__esModule",{value:!0});an.findAll=an.existsOne=an.findOne=an.findOneChild=an.find=an.filter=void 0;var cu=Vr;function TN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),vv(e,Array.isArray(n)?n:[n],i,o)}an.filter=TN;function vv(e,n,i,o){for(var s=[],u=[n],d=[0];;){if(d[0]>=u[0].length){if(d.length===1)return s;u.shift(),d.shift();continue}var f=u[0][d[0]++];if(e(f)&&(s.push(f),--o<=0))return s;i&&(0,cu.hasChildren)(f)&&f.children.length>0&&(d.unshift(0),u.unshift(f.children))}}an.find=vv;function jN(e,n){return n.find(e)}an.findOneChild=jN;function yv(e,n,i){i===void 0&&(i=!0);for(var o=null,s=0;s0&&(o=yv(e,u.children,!0));else continue}return o}an.findOne=yv;function wv(e,n){return n.some(function(i){return(0,cu.isTag)(i)&&(e(i)||wv(e,i.children))})}an.existsOne=wv;function PN(e,n){for(var i=[],o=[n],s=[0];;){if(s[0]>=o[0].length){if(o.length===1)return i;o.shift(),s.shift();continue}var u=o[0][s[0]++];(0,cu.isTag)(u)&&(e(u)&&i.push(u),u.children.length>0&&(s.unshift(0),o.unshift(u.children)))}}an.findAll=PN;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.getElementsByTagType=An.getElementsByTagName=An.getElementById=An.getElements=An.testElement=void 0;var Qi=Vr,du=an,eu={tag_name:function(e){return typeof e=="function"?function(n){return(0,Qi.isTag)(n)&&e(n.name)}:e==="*"?Qi.isTag:function(n){return(0,Qi.isTag)(n)&&n.name===e}},tag_type:function(e){return typeof e=="function"?function(n){return e(n.type)}:function(n){return n.type===e}},tag_contains:function(e){return typeof e=="function"?function(n){return(0,Qi.isText)(n)&&e(n.data)}:function(n){return(0,Qi.isText)(n)&&n.data===e}}};function xv(e,n){return typeof n=="function"?function(i){return(0,Qi.isTag)(i)&&n(i.attribs[e])}:function(i){return(0,Qi.isTag)(i)&&i.attribs[e]===n}}function MN(e,n){return function(i){return e(i)||n(i)}}function Cv(e){var n=Object.keys(e).map(function(i){var o=e[i];return Object.prototype.hasOwnProperty.call(eu,i)?eu[i](o):xv(i,o)});return n.length===0?null:n.reduce(MN)}function LN(e,n){var i=Cv(e);return i?i(n):!0}An.testElement=LN;function DN(e,n,i,o){o===void 0&&(o=1/0);var s=Cv(e);return s?(0,du.filter)(s,n,i,o):[]}An.getElements=DN;function ON(e,n,i){return i===void 0&&(i=!0),Array.isArray(n)||(n=[n]),(0,du.findOne)(xv("id",e),n,i)}An.getElementById=ON;function RN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,du.filter)(eu.tag_name(e),n,i,o)}An.getElementsByTagName=RN;function IN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,du.filter)(eu.tag_type(e),n,i,o)}An.getElementsByTagType=IN;var Sv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var n=Vr;function i(d){for(var f=d.length;--f>=0;){var p=d[f];if(f>0&&d.lastIndexOf(p,f-1)>=0){d.splice(f,1);continue}for(var v=p.parent;v;v=v.parent)if(d.includes(v)){d.splice(f,1);break}}return d}e.removeSubsets=i;var o;(function(d){d[d.DISCONNECTED=1]="DISCONNECTED",d[d.PRECEDING=2]="PRECEDING",d[d.FOLLOWING=4]="FOLLOWING",d[d.CONTAINS=8]="CONTAINS",d[d.CONTAINED_BY=16]="CONTAINED_BY"})(o=e.DocumentPosition||(e.DocumentPosition={}));function s(d,f){var p=[],v=[];if(d===f)return 0;for(var w=(0,n.hasChildren)(d)?d:d.parent;w;)p.unshift(w),w=w.parent;for(w=(0,n.hasChildren)(f)?f:f.parent;w;)v.unshift(w),w=w.parent;for(var C=Math.min(p.length,v.length),m=0;mb.indexOf(T)?x===f?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:x===d?o.PRECEDING|o.CONTAINS:o.PRECEDING}e.compareDocumentPosition=s;function u(d){return d=d.filter(function(f,p,v){return!v.includes(f,p+1)}),d.sort(function(f,p){var v=s(f,p);return v&o.PRECEDING?-1:v&o.FOLLOWING?1:0}),d}e.uniqueSort=u})(Sv);var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.getFeed=void 0;var AN=In,vs=An;function FN(e){var n=tu(HN,e);return n?n.name==="feed"?$N(n):zN(n):null}fu.getFeed=FN;function $N(e){var n,i=e.children,o={type:"atom",items:(0,vs.getElementsByTagName)("entry",i).map(function(d){var f,p=d.children,v={media:_v(p)};xn(v,"id","id",p),xn(v,"title","title",p);var w=(f=tu("link",p))===null||f===void 0?void 0:f.attribs.href;w&&(v.link=w);var C=Ci("summary",p)||Ci("content",p);C&&(v.description=C);var m=Ci("updated",p);return m&&(v.pubDate=new Date(m)),v})};xn(o,"id","id",i),xn(o,"title","title",i);var s=(n=tu("link",i))===null||n===void 0?void 0:n.attribs.href;s&&(o.link=s),xn(o,"description","subtitle",i);var u=Ci("updated",i);return u&&(o.updated=new Date(u)),xn(o,"author","email",i,!0),o}function zN(e){var n,i,o=(i=(n=tu("channel",e.children))===null||n===void 0?void 0:n.children)!==null&&i!==void 0?i:[],s={type:e.name.substr(0,3),id:"",items:(0,vs.getElementsByTagName)("item",e.children).map(function(d){var f=d.children,p={media:_v(f)};xn(p,"id","guid",f),xn(p,"title","title",f),xn(p,"link","link",f),xn(p,"description","description",f);var v=Ci("pubDate",f)||Ci("dc:date",f);return v&&(p.pubDate=new Date(v)),p})};xn(s,"title","title",o),xn(s,"link","link",o),xn(s,"description","description",o);var u=Ci("lastBuildDate",o);return u&&(s.updated=new Date(u)),xn(s,"author","managingEditor",o,!0),s}var BN=["url","type","lang"],UN=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function _v(e){return(0,vs.getElementsByTagName)("media:content",e).map(function(n){for(var i=n.attribs,o={medium:i.medium,isDefault:!!i.isDefault},s=0,u=BN;s + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function hg(e){return Object.prototype.toString.call(e)==="[object Object]"}function VN(e){var n,i;return hg(e)===!1?!1:(n=e.constructor,n===void 0?!0:(i=n.prototype,!(hg(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}If.isPlainObject=VN;var qN={exports:{}};(function(e){(function(n,i){e.exports?e.exports=i():n.parseSrcset=i()})(Ae,function(){return function(n){function i(V){return V===" "||V===" "||V===` +`||V==="\f"||V==="\r"}function o(V){var Z,ce=V.exec(n.substring(T));if(ce)return Z=ce[0],T+=Z.length,Z}for(var s=n.length,u=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,v=/^\d+$/,w=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,C,m,x,b,_,T=0,M=[];;){if(o(d),T>=s)return M;C=o(f),m=[],C.slice(-1)===","?(C=C.replace(p,""),$()):D()}function D(){for(o(u),x="",b="in descriptor";;){if(_=n.charAt(T),b==="in descriptor")if(i(_))x&&(m.push(x),x="",b="after descriptor");else if(_===","){T+=1,x&&m.push(x),$();return}else if(_==="(")x=x+_,b="in parens";else if(_===""){x&&m.push(x),$();return}else x=x+_;else if(b==="in parens")if(_===")")x=x+_,b="in descriptor";else if(_===""){m.push(x),$();return}else x=x+_;else if(b==="after descriptor"&&!i(_))if(_===""){$();return}else b="in descriptor",T-=1;T+=1}}function $(){var V=!1,Z,ce,O,te,de={},fe,I,H,W,ne;for(te=0;te",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let i=this.source;n==null&&(n=pg.isColorSupported);let o=w=>w,s=w=>w,u=w=>w;if(n){let{bold:w,gray:C,red:m}=pg.createColors(!0);s=x=>w(m(x)),o=x=>C(x),mg&&(u=x=>mg(x))}let d=i.split(/\r?\n/),f=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),v=String(p).length;return d.slice(f,p).map((w,C)=>{let m=f+1+C,x=" "+(" "+m).slice(-v)+" | ";if(m===this.line){if(w.length>160){let _=20,T=Math.max(0,this.column-_),M=Math.max(this.column+_,this.endColumn+_),D=w.slice(T,M),$=o(x.replace(/\d/g," "))+w.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return s(">")+o(x)+u(D)+` + `+$+s("^")}let b=o(x.replace(/\d/g," "))+w.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+o(x)+u(w)+` + `+b+s("^")}return" "+o(x)+u(w)}).join(` +`)}toString(){let n=this.showSourceCode();return n&&(n=` + +`+n+` +`),this.name+": "+this.message+n}};var Ff=Id;Id.default=Id;const gg={after:` +`,beforeClose:` +`,beforeComment:` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function QN(e){return e[0].toUpperCase()+e.slice(1)}let Ad=class{constructor(e){this.builder=e}atrule(e,n){let i="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o);else{let s=(e.raws.between||"")+(n?";":"");this.builder(i+o+s,e)}}beforeAfter(e,n){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):n==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(` +`)){let u=this.raw(e,null,"indent");if(u.length)for(let d=0;d0&&e.nodes[n].type==="comment";)n-=1;let i=this.raw(e,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=gg[i]),u.rawCache[i]=o,o}rawBeforeClose(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let i;return e.walkComments(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` +`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,n){let i;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` +`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let n;return e.walk(i=>{if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(i=>{let o=i.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof i.raws.before<"u"){let s=i.raws.before.split(` +`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let i=e[n],o=e.raws[n];return o&&o.value===i?o.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var Nv=Ad;Ad.default=Ad;let KN=Nv;function Fd(e,n){new KN(n).stringify(e)}var hu=Fd;Fd.default=Fd;var ys={};ys.isClean=Symbol("isClean");ys.my=Symbol("my");let YN=Ff,XN=Nv,JN=hu,{isClean:Ua,my:ek}=ys;function $d(e,n){let i=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="proxyCache")continue;let s=e[o],u=typeof s;o==="parent"&&u==="object"?n&&(i[o]=n):o==="source"?i[o]=s:Array.isArray(s)?i[o]=s.map(d=>$d(d,i)):(u==="object"&&s!==null&&(s=$d(s)),i[o]=s)}return i}let zd=class{constructor(e={}){this.raws={},this[Ua]=!1,this[ek]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let i of e[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=$d(this);for(let i in e)n[i]=e[i];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:i,start:o}=this.rangeBy(n);return this.source.input.error(e,{column:o.column,line:o.line},{column:i.column,line:i.line},n)}return new YN(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,i){return e[n]===i||(e[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markClean(){this[Ua]=!0}markDirty(){if(this[Ua]){this[Ua]=!1;let e=this;for(;e=e.parent;)e[Ua]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){n=this.toString();let o=n.indexOf(e.word);o!==-1&&(i=this.positionInside(o,n))}return i}positionInside(e,n){let i=n||this.toString(),o=this.source.start.column,s=this.source.start.line;for(let u=0;utypeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof d=="object"&&d.toJSON)i[u]=d.toJSON(null,n);else if(u==="source"){let f=n.get(d.input);f==null&&(f=s,n.set(d.input,s),s++),i[u]={end:d.end,inputId:f,start:d.start}}else i[u]=d}return o&&(i.inputs=[...n.keys()].map(u=>u.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=JN){e.stringify&&(e=e.stringify);let n="";return e(this,i=>{n+=i}),n}warn(e,n,i){let o={node:this};for(let s in i)o[s]=i[s];return e.warn(n,o)}get proxyOf(){return this}};var pu=zd;zd.default=zd;let tk=pu,Bd=class extends tk{constructor(e){super(e),this.type="comment"}};var mu=Bd;Bd.default=Bd;let nk=pu,Ud=class extends nk{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var gu=Ud;Ud.default=Ud;let kv=mu,Tv=gu,rk=pu,{isClean:jv,my:Pv}=ys,$f,Mv,Lv,zf;function Dv(e){return e.map(n=>(n.nodes&&(n.nodes=Dv(n.nodes)),delete n.source,n))}function Ov(e){if(e[jv]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)Ov(n)}let qr=class Rv extends rk{append(...n){for(let i of n){let o=this.normalize(i,this.last);for(let s of o)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let i=this.getIterator(),o,s;for(;this.indexes[i]n[i](...o.map(s=>typeof s=="function"?(u,d)=>s(u.toProxy(),d):s)):i==="every"||i==="some"?o=>n[i]((s,...u)=>o(s.toProxy(),...u)):i==="root"?()=>n.root().toProxy():i==="nodes"?n.nodes.map(o=>o.toProxy()):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set(n,i,o){return n[i]===o||(n[i]=o,(i==="name"||i==="params"||i==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,i){let o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(let d of s)this.proxyOf.nodes.splice(o+1,0,d);let u;for(let d in this.indexes)u=this.indexes[d],o"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Tv(n)]}else if(n.selector||n.selectors)n=[new zf(n)];else if(n.name)n=[new $f(n)];else if(n.text)n=[new kv(n)];else throw new Error("Unknown node type in node creation");return n.map(o=>(o[Pv]||Rv.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[jv]&&Ov(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(o.raws.before=i.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...n){n=n.reverse();for(let i of n){let o=this.normalize(i,this.first,"prepend").reverse();for(let s of o)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+o.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this}replaceValues(n,i,o){return o||(o=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((i,o)=>{let s;try{s=n(i,o)}catch(u){throw i.addToError(u)}return s!==!1&&i.walk&&(s=i.walk(n)),s})}walkAtRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk((o,s)=>{if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="atrule")return i(o,s)}))}walkComments(n){return this.walk((i,o)=>{if(i.type==="comment")return n(i,o)})}walkDecls(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk((o,s)=>{if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="decl")return i(o,s)}))}walkRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk((o,s)=>{if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="rule")return i(o,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};qr.registerParse=e=>{Mv=e};qr.registerRule=e=>{zf=e};qr.registerAtRule=e=>{$f=e};qr.registerRoot=e=>{Lv=e};var ro=qr;qr.default=qr;qr.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,$f.prototype):e.type==="rule"?Object.setPrototypeOf(e,zf.prototype):e.type==="decl"?Object.setPrototypeOf(e,Tv.prototype):e.type==="comment"?Object.setPrototypeOf(e,kv.prototype):e.type==="root"&&Object.setPrototypeOf(e,Lv.prototype),e[Pv]=!0,e.nodes&&e.nodes.forEach(n=>{qr.rebuild(n)})};let Iv=ro,nu=class extends Iv{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Bf=nu;nu.default=nu;Iv.registerAtRule(nu);let ik=ro,Av,Fv,ss=class extends ik{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Av(new Fv,this,e).stringify()}};ss.registerLazyResult=e=>{Av=e};ss.registerProcessor=e=>{Fv=e};var Uf=ss;ss.default=ss;let ok="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ak=(e=21)=>{let n="",i=e;for(;i--;)n+=ok[Math.random()*64|0];return n};var sk={nanoid:ak};let{existsSync:lk,readFileSync:uk}=fr,{dirname:gd,join:ck}=fr,{SourceMapConsumer:vg,SourceMapGenerator:yg}=fr;function dk(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Hd=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=gd(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new vg(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,u=e.match(o)||e.match(s);if(u)return decodeURIComponent(e.substr(u[0].length));let d=e.match(n)||e.match(i);if(d)return dk(e.substr(d[0].length));let f=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let i=e.lastIndexOf(n.pop()),o=e.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,o)))}loadFile(e){if(this.root=gd(e),lk(e))return this.mapFile=e,uk(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let i=n(e);if(i){let o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(n instanceof vg)return yg.fromSourceMap(n).toString();if(n instanceof yg)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=ck(gd(e),i)),this.loadFile(i)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $v=Hd;Hd.default=Hd;let{nanoid:fk}=sk,{isAbsolute:Vd,resolve:qd}=fr,{SourceMapConsumer:hk,SourceMapGenerator:pk}=fr,{fileURLToPath:wg,pathToFileURL:Tl}=fr,xg=Ff,mk=$v,vd=fr,yd=Symbol("fromOffsetCache"),gk=!!(hk&&pk),Cg=!!(qd&&Vd),ru=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Cg||/^\w+:\/\//.test(n.from)||Vd(n.from)?this.file=n.from:this.file=qd(n.from)),Cg&&gk){let i=new mk(this.css,n);if(i.text){this.map=i;let o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,i,o={}){let s,u,d;if(n&&typeof n=="object"){let p=n,v=i;if(typeof p.offset=="number"){let w=this.fromOffset(p.offset);n=w.line,i=w.col}else n=p.line,i=p.column;if(typeof v.offset=="number"){let w=this.fromOffset(v.offset);u=w.line,s=w.col}else u=v.line,s=v.column}else if(!i){let p=this.fromOffset(n);n=p.line,i=p.col}let f=this.origin(n,i,u,s);return f?d=new xg(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,o.plugin):d=new xg(e,u===void 0?n:{column:i,line:n},u===void 0?i:{column:s,line:u},this.css,this.file,o.plugin),d.input={column:i,endColumn:s,endLine:u,line:n,source:this.css},this.file&&(Tl&&(d.input.url=Tl(this.file).toString()),d.input.file=this.file),d}fromOffset(e){let n,i;if(this[yd])i=this[yd];else{let s=this.css.split(` +`);i=new Array(s.length);let u=0;for(let d=0,f=s.length;d=n)o=i.length-1;else{let s=i.length-2,u;for(;o>1),e=i[u+1])o=u+1;else{o=u;break}}return{col:e-i[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:qd(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,i,o){if(!this.map)return!1;let s=this.map.consumer(),u=s.originalPositionFor({column:n,line:e});if(!u.source)return!1;let d;typeof i=="number"&&(d=s.originalPositionFor({column:o,line:i}));let f;Vd(u.source)?f=Tl(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Tl(this.map.mapFile));let p={column:u.column,endColumn:d&&d.column,endLine:d&&d.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(wg)p.file=wg(f);else throw new Error("file: protocol is not available in this PostCSS build");let v=s.sourceContentFor(u.source);return v&&(p.source=v),p}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var vu=ru;ru.default=ru;vd&&vd.registerInput&&vd.registerInput(ru);let zv=ro,Bv,Uv,Wo=class extends zv{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,i){let o=super.normalize(e);if(n){if(i==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of o)s.raws.before=n.raws.before}return o}removeChild(e,n){let i=this.index(e);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Bv(new Uv,this,e).stringify()}};Wo.registerLazyResult=e=>{Bv=e};Wo.registerProcessor=e=>{Uv=e};var ws=Wo;Wo.default=Wo;zv.registerRoot(Wo);let ls={comma(e){return ls.split(e,[","],!0)},space(e){let n=[" ",` +`," "];return ls.split(e,n)},split(e,n,i){let o=[],s="",u=!1,d=0,f=!1,p="",v=!1;for(let w of e)v?v=!1:w==="\\"?v=!0:f?w===p&&(f=!1):w==='"'||w==="'"?(f=!0,p=w):w==="("?d+=1:w===")"?d>0&&(d-=1):d===0&&n.includes(w)&&(u=!0),u?(s!==""&&o.push(s.trim()),s="",u=!1):s+=w;return(i||s!=="")&&o.push(s.trim()),o}};var Hv=ls;ls.default=ls;let Vv=ro,vk=Hv,iu=class extends Vv{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vk.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Hf=iu;iu.default=iu;Vv.registerRule(iu);let yk=Bf,wk=mu,xk=gu,Ck=vu,Sk=$v,_k=ws,bk=Hf;function us(e,n){if(Array.isArray(e))return e.map(s=>us(s));let{inputs:i,...o}=e;if(i){n=[];for(let s of i){let u={...s,__proto__:Ck.prototype};u.map&&(u.map={...u.map,__proto__:Sk.prototype}),n.push(u)}}if(o.nodes&&(o.nodes=e.nodes.map(s=>us(s,n))),o.source){let{inputId:s,...u}=o.source;o.source=u,s!=null&&(o.source.input=n[s])}if(o.type==="root")return new _k(o);if(o.type==="decl")return new xk(o);if(o.type==="rule")return new bk(o);if(o.type==="comment")return new wk(o);if(o.type==="atrule")return new yk(o);throw new Error("Unknown node type: "+e.type)}var Ek=us;us.default=us;let{dirname:Ul,relative:qv,resolve:Wv,sep:Gv}=fr,{SourceMapConsumer:Zv,SourceMapGenerator:Hl}=fr,{pathToFileURL:Sg}=fr,Nk=vu,kk=!!(Zv&&Hl),Tk=!!(Ul&&Wv&&qv&&Gv),jk=class{constructor(e,n,i,o){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=` +`;this.css.includes(`\r +`)&&(n=`\r +`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),i=e.root||Ul(e.file),o;this.mapOpts.sourcesContent===!1?(o=new Zv(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Tk&&kk&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hl.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hl({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Hl({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,n=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,u;this.stringify(this.root,(d,f,p)=>{if(this.css+=d,f&&p!=="end"&&(o.generated.line=e,o.generated.column=n-1,f.source&&f.source.start?(o.source=this.sourcePath(f),o.original.line=f.source.start.line,o.original.column=f.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),u=d.match(/\n/g),u?(e+=u.length,s=d.lastIndexOf(` +`),n=d.length-s):n+=d.length,f&&p!=="start"){let v=f.parent||{raws:{}};(!(f.type==="decl"||f.type==="atrule"&&!f.nodes)||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(o.source=this.sourcePath(f),o.original.line=f.source.end.line,o.original.column=f.source.end.column-1,o.generated.line=e,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let i=this.opts.to?Ul(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Ul(Wv(i,this.mapOpts.annotation)));let o=qv(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Nk(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!e[i]){e[i]=!0;let o=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(Sg){let i=Sg(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;Gv==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Qv=jk;const wd=39,_g=34,jl=92,bg=47,Pl=10,Ha=32,Ml=12,Ll=9,Dl=13,Pk=91,Mk=93,Lk=40,Dk=41,Ok=123,Rk=125,Ik=59,Ak=42,Fk=58,$k=64,Ol=/[\t\n\f\r "#'()/;[\\\]{}]/g,Rl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zk=/.[\r\n"'(/\\]/,Eg=/[\da-f]/i;var Bk=function(e,n={}){let i=e.css.valueOf(),o=n.ignoreErrors,s,u,d,f,p,v,w,C,m,x,b=i.length,_=0,T=[],M=[];function D(){return _}function $(O){throw e.error("Unclosed "+O,_)}function V(){return M.length===0&&_>=b}function Z(O){if(M.length)return M.pop();if(_>=b)return;let te=O?O.ignoreUnclosed:!1;switch(s=i.charCodeAt(_),s){case Pl:case Ha:case Ll:case Dl:case Ml:{f=_;do f+=1,s=i.charCodeAt(f);while(s===Ha||s===Pl||s===Ll||s===Dl||s===Ml);v=["space",i.slice(_,f)],_=f-1;break}case Pk:case Mk:case Ok:case Rk:case Fk:case Ik:case Dk:{let de=String.fromCharCode(s);v=[de,de,_];break}case Lk:{if(x=T.length?T.pop()[1]:"",m=i.charCodeAt(_+1),x==="url"&&m!==wd&&m!==_g&&m!==Ha&&m!==Pl&&m!==Ll&&m!==Ml&&m!==Dl){f=_;do{if(w=!1,f=i.indexOf(")",f+1),f===-1)if(o||te){f=_;break}else $("bracket");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);v=["brackets",i.slice(_,f+1),_,f],_=f}else f=i.indexOf(")",_+1),u=i.slice(_,f+1),f===-1||zk.test(u)?v=["(","(",_]:(v=["brackets",u,_,f],_=f);break}case wd:case _g:{p=s===wd?"'":'"',f=_;do{if(w=!1,f=i.indexOf(p,f+1),f===-1)if(o||te){f=_+1;break}else $("string");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);v=["string",i.slice(_,f+1),_,f],_=f;break}case $k:{Ol.lastIndex=_+1,Ol.test(i),Ol.lastIndex===0?f=i.length-1:f=Ol.lastIndex-2,v=["at-word",i.slice(_,f+1),_,f],_=f;break}case jl:{for(f=_,d=!0;i.charCodeAt(f+1)===jl;)f+=1,d=!d;if(s=i.charCodeAt(f+1),d&&s!==bg&&s!==Ha&&s!==Pl&&s!==Ll&&s!==Dl&&s!==Ml&&(f+=1,Eg.test(i.charAt(f)))){for(;Eg.test(i.charAt(f+1));)f+=1;i.charCodeAt(f+1)===Ha&&(f+=1)}v=["word",i.slice(_,f+1),_,f],_=f;break}default:{s===bg&&i.charCodeAt(_+1)===Ak?(f=i.indexOf("*/",_+2)+1,f===0&&(o||te?f=i.length:$("comment")),v=["comment",i.slice(_,f+1),_,f],_=f):(Rl.lastIndex=_+1,Rl.test(i),Rl.lastIndex===0?f=i.length-1:f=Rl.lastIndex-2,v=["word",i.slice(_,f+1),_,f],T.push(v),_=f);break}}return _++,v}function ce(O){M.push(O)}return{back:ce,endOfFile:V,nextToken:Z,position:D}};let Uk=Bf,Hk=mu,Vk=gu,qk=ws,Ng=Hf,Wk=Bk;const kg={empty:!0,space:!0};function Gk(e){for(let n=e.length-1;n>=0;n--){let i=e[n],o=i[3]||i[2];if(o)return o}}let Zk=class{constructor(e){this.input=e,this.root=new qk,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new Uk;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i,o,s,u=!1,d=!1,f=[],p=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?p.push(i==="("?")":"]"):i==="{"&&p.length>0?p.push("}"):i===p[p.length-1]&&p.pop(),p.length===0)if(i===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){d=!0;break}else if(i==="}"){if(f.length>0){for(s=f.length-1,o=f[s];o&&o[0]==="space";)o=f[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(n.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(n,"params",f),u&&(e=f[f.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),d&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let i=0,o;for(let s=n-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let n=0,i,o,s;for(let[u,d]of e.entries()){if(o=d,s=o[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(o);else{if(i[0]==="word"&&i[1]==="progid")continue;return u}i=o}return!1}comment(e){let n=new Hk;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=Wk(this.input)}decl(e,n){let i=new Vk;this.init(i,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||Gk(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){i.important=!0;let p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(i.raws.important=p);break}else if(s[1].toLowerCase()==="important"){let p=e.slice(0),v="";for(let w=f;w>0;w--){let C=p[w][0];if(v.trim().startsWith("!")&&C!=="space")break;v=p.pop()[1]+v}v.trim().startsWith("!")&&(i.important=!0,i.raws.important=v,e=p)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(i.raws.between+=u.map(f=>f[1]).join(""),u=[]),this.raw(i,"value",u.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new Ng;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,i=null,o=!1,s=null,u=[],d=e[1].startsWith("--"),f=[],p=e;for(;p;){if(i=p[0],f.push(p),i==="("||i==="[")s||(s=p),u.push(i==="("?")":"]");else if(d&&o&&i==="{")s||(s=p),u.push("}");else if(u.length===0)if(i===";")if(o){this.decl(f,d);return}else break;else if(i==="{"){this.rule(f);return}else if(i==="}"){this.tokenizer.back(f.pop()),n=!0;break}else i===":"&&(o=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(s=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),u.length>0&&this.unclosedBracket(s),n&&o){if(!d)for(;f.length&&(p=f[f.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,d)}else this.unknownWord(f)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,i,o){let s,u,d=i.length,f="",p=!0,v,w;for(let C=0;Cm+x[1],"");e.raws[n]={raw:C,value:f}}e[n]=f}rule(e){e.pop();let n=new Ng;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let n,i="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],n==="space");)i=e.pop()[1]+i;return i}stringFrom(e,n){let i="";for(let o=n;oe.type==="warning")}get content(){return this.css}};var qf=Gd;Gd.default=Gd;let e2=ro,t2=Uf,n2=Qv,r2=Vf,Tg=qf,i2=ws,o2=hu,{isClean:Cr,my:a2}=ys;const s2={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l2={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u2={Once:!0,postcssPlugin:!0,prepare:!0},Go=0;function Va(e){return typeof e=="object"&&typeof e.then=="function"}function Yv(e){let n=!1,i=s2[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Go,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Go,i+"Exit"]:[i,i+"Exit"]}function jg(e){let n;return e.type==="document"?n=["Document",Go,"DocumentExit"]:e.type==="root"?n=["Root",Go,"RootExit"]:n=Yv(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zd(e){return e[Cr]=!1,e.nodes&&e.nodes.forEach(n=>Zd(n)),e}let Qd={},Zo=class Xv{constructor(n,i,o){this.stringified=!1,this.processed=!1;let s;if(typeof i=="object"&&i!==null&&(i.type==="root"||i.type==="document"))s=Zd(i);else if(i instanceof Xv||i instanceof Tg)s=Zd(i.root),i.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=i.map);else{let u=r2;o.syntax&&(u=o.syntax.parse),o.parser&&(u=o.parser),u.parse&&(u=u.parse);try{s=u(i,o)}catch(d){this.processed=!0,this.error=d}s&&!s[a2]&&e2.rebuild(s)}this.result=new Tg(n,s,o),this.helpers={...Qd,postcss:Qd,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(n){return this.async().catch(n)}finally(n){return this.async().then(n,n)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(n,i){let o=this.result.lastPlugin;try{i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin?(n.plugin=o.postcssPlugin,n.setMessage()):o.postcssVersion}catch(s){console&&console.error&&console.error(s)}return n}prepareVisitors(){this.listeners={};let n=(i,o,s)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([i,s])};for(let i of this.plugins)if(typeof i=="object")for(let o in i){if(!l2[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${i.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u2[o])if(typeof i[o]=="object")for(let s in i[o])s==="*"?n(i,o,i[o][s]):n(i,o+"-"+s.toLowerCase(),i[o][s]);else typeof i[o]=="function"&&n(i,o,i[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let n=0;n0;){let o=this.visitTick(i);if(Va(o))try{await o}catch(s){let u=i[i.length-1].node;throw this.handleError(s,u)}}}if(this.listeners.OnceExit)for(let[i,o]of this.listeners.OnceExit){this.result.lastPlugin=i;try{if(n.type==="document"){let s=n.nodes.map(u=>o(u,this.helpers));await Promise.all(s)}else await o(n,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(n){this.result.lastPlugin=n;try{if(typeof n=="object"&&n.Once){if(this.result.root.type==="document"){let i=this.result.root.nodes.map(o=>n.Once(o,this.helpers));return Va(i[0])?Promise.all(i):i}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(i){throw this.handleError(i)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let n=this.result.opts,i=o2;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);let o=new n2(i,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let n of this.plugins){let i=this.runOnRoot(n);if(Va(i))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let n=this.result.root;for(;!n[Cr];)n[Cr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if(n.type==="document")for(let i of n.nodes)this.visitSync(this.listeners.OnceExit,i);else this.visitSync(this.listeners.OnceExit,n)}return this.result}then(n,i){return this.async().then(n,i)}toString(){return this.css}visitSync(n,i){for(let[o,s]of n){this.result.lastPlugin=o;let u;try{u=s(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(Va(u))throw this.getAsyncError()}}visitTick(n){let i=n[n.length-1],{node:o,visitors:s}=i;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(s.length>0&&i.visitorIndex{s[Cr]||this.walkSync(s)});else{let s=this.listeners[o];if(s&&this.visitSync(s,n.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Zo.registerPostcss=e=>{Qd=e};var Jv=Zo;Zo.default=Zo;i2.registerLazyResult(Zo);t2.registerLazyResult(Zo);let c2=Qv,d2=Vf;const f2=qf;let h2=hu,Kd=class{constructor(e,n,i){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;let o,s=h2;this.result=new f2(this._processor,o,this._opts),this.result.css=n;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let d=new c2(s,o,this._opts,n);if(d.isMap()){let[f,p]=d.generate();f&&(this.result.css=f),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=d2;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var p2=Kd;Kd.default=Kd;let m2=Uf,g2=Jv,v2=p2,y2=ws,cs=class{constructor(n=[]){this.version="8.4.47",this.plugins=this.normalize(n)}normalize(n){let i=[];for(let o of n)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))i=i.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)i.push(o);else if(typeof o=="function")i.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return i}process(n,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new v2(this,n,i):new g2(this,n,i)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}};var w2=cs;cs.default=cs;y2.registerProcessor(cs);m2.registerProcessor(cs);let ey=Bf,ty=mu,x2=ro,C2=Ff,ny=gu,ry=Uf,S2=Ek,_2=vu,b2=Jv,E2=Hv,N2=pu,k2=Vf,Wf=w2,T2=qf,iy=ws,oy=Hf,j2=hu,P2=Kv;function st(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Wf(e)}st.plugin=function(e,n){let i=!1;function o(...u){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`),og.LANG&&og.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南: +https://www.w3ctech.com/topic/2226`));let d=n(...u);return d.postcssPlugin=e,d.postcssVersion=new Wf().version,d}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(u,d,f){return st([o(f)]).process(u,d)},o};st.stringify=j2;st.parse=k2;st.fromJSON=S2;st.list=E2;st.comment=e=>new ty(e);st.atRule=e=>new ey(e);st.decl=e=>new ny(e);st.rule=e=>new oy(e);st.root=e=>new iy(e);st.document=e=>new ry(e);st.CssSyntaxError=C2;st.Declaration=ny;st.Container=x2;st.Processor=Wf;st.Document=ry;st.Comment=ty;st.Warning=P2;st.AtRule=ey;st.Result=T2;st.Input=_2;st.Rule=oy;st.Root=iy;st.Node=N2;b2.registerPostcss(st);var M2=st;st.default=st;const{isPlainObject:IP}=If,{parse:AP}=M2,L2="_list_1whuj_1",D2="_compact_1whuj_5",O2="_pending_1whuj_8",xd={list:L2,compact:D2,pending:O2};function R2(e){const{className:n,data:i,keySelector:o,renderer:s,rendererParams:u,pending:d,errored:f,filtered:p,errorMessage:v,emptyMessage:w,pendingMessage:C,filteredEmptyMessage:m,compact:x,withoutMessage:b=!1,messageClassName:_}=e,T=$e(i)||i.length===0;return g.jsxs("div",{className:Oe(xd.list,x&&xd.compact,d&&xd.pending,n),children:[g.jsx(f0,{data:i,keySelector:o,renderer:s,rendererParams:u}),!b&&g.jsx(l0,{className:_,pending:d,filtered:p,empty:T,errored:f,compact:x,emptyMessage:w,filteredEmptyMessage:m,pendingMessage:C,errorMessage:v,overlayPending:!0})]})}function ay(e,n){if($e(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const I2=[40,38,13,8];function A2(e,n,i){return n.findIndex((o,s)=>i(o,s)===e)}function Pg(e,n,i,o){if(i.length<=0)return;let s=A2(e,i,o);s===-1&&(s=n>0?-1:0);const u=Gx(s+n,i.length);return o(i[u],u)}function F2(e,n,i,o,s,u,d,f,p){return y.useCallback(v=>{const{keyCode:w}=v,C=e?.key;if(o&&(w===9||w===27))u();else if(!o&&I2.includes(w))v.stopPropagation(),v.preventDefault(),d();else if(w===13)if(Mt(C)){v.stopPropagation(),v.preventDefault();const m=i.find((x,b)=>n(x,b)===C);m&&f(C,m)}else v.stopPropagation(),v.preventDefault(),p&&p();else if(w===40){v.stopPropagation(),v.preventDefault();const m=Pg(C,1,i,n);s(m?{key:m}:void 0)}else if(w===38){v.stopPropagation(),v.preventDefault();const m=Pg(C,-1,i,n);s(m?{key:m}:void 0)}},[e,o,n,s,u,f,d,p,i])}const $2="_generic-option_zv1n8_1",z2={genericOption:$2};function B2(e){const{optionContainerClassName:n,contentRenderer:i,contentRendererParam:o,option:s,onClick:u,optionKey:d,focusedKey:f}=e,p=o(d,s),{containerClassName:v,title:w,...C}=p,m=f?.key===d,x=y.useRef(null);y.useEffect(()=>{f&&f.key===d&&!f.mouse&&x.current&&x.current.scrollIntoView({behavior:"smooth",block:"center"})},[d,f]);const b=y.useCallback(()=>{u(d,s)},[d,s,u]);return g.jsx(sf,{elementRef:x,className:Oe(z2.genericOption,n,v),onClick:b,title:w,name:d,focused:m,children:i(C)})}const U2="common",H2={infoMessageAnd:"and",infoMessageMore:"more",buttonTitleSelect:"Select all",buttonTitleClear:"Clear",buttonTitleClose:"Close",buttonTitleOpen:"Open",selectInputPendingMessage:"Fetching options...",selectInputEmptyMessage:"No option available",selectInputFilteredMessage:"No option available for the search",selectInputErrorMessage:"Could not load options"},V2={namespace:U2,strings:H2},q2="_popup_poyjv_1",W2="_list_poyjv_4",G2="_list-item_poyjv_9",Z2="_info-message_poyjv_14",Q2="_icon_poyjv_21",vi={popup:q2,list:W2,listItem:G2,infoMessage:Z2,icon:Q2},K2=[];function sy(e){const{actions:n,actionsContainerClassName:i,className:o,disabled:s,error:u,errorContainerClassName:d,hint:f,hintContainerClassName:p,icons:v,iconsContainerClassName:w,inputSectionClassName:C,label:m,labelClassName:x,name:b,onOptionClick:_,searchText:T,onSearchTextChange:M,optionContainerClassName:D,optionKeySelector:$,optionRenderer:V,optionRendererParams:Z,options:ce,optionsPopupClassName:O,persistentOptionPopup:te,readOnly:de,placeholder:fe,valueDisplay:I="",nonClearable:H,onClearButtonClick:W,onSelectAllButtonClick:ne,optionsPending:he=!1,optionsFiltered:xe=!1,optionsErrored:be=!1,focused:G,focusedKey:le,onFocusedKeyChange:N,onFocusedChange:U,dropdownShown:oe,onDropdownShownChange:Se,totalOptionsCount:se=0,hasValue:re,autoFocus:J,onEnterWithoutOption:Q,withAsterisk:Y,required:tt,variant:tn,errorOnTooltip:Wt,dropdownHidden:lt}=e,wt=ce??K2,ct=s0(V2),ht=y.useRef(null),gt=y.useRef(null),xt=y.useRef(null),_t=y.useRef(null),nn=y.useCallback(Et=>{oe||Se(!0),M(Et)},[oe,Se,M]),bn=y.useCallback((Et,Nn)=>{Nn.stopPropagation(),Se(!oe)},[oe,Se]),sn=y.useCallback(()=>{oe||Se(!0)},[oe,Se]),En=y.useCallback(()=>{Se(!1)},[Se]),Gr=y.useCallback(()=>{de||sn()},[de,sn]),ln=y.useCallback((Et,Nn)=>{Et||Nn?te&&xt.current&&xt.current.focus():En()},[En,te]),un=y.useCallback((Et,Nn)=>{_(Et,Nn,b),te||En()},[_,En,te,b]),Ft=y.useCallback((Et,Nn)=>({contentRendererParam:Z,option:Nn,optionKey:Et,focusedKey:le,contentRenderer:V,onClick:un,onFocus:N,optionContainerClassName:Oe(D,vi.listItem)}),[le,un,N,D,V,Z]);FE(oe,ln,_t,ht);const cn=F2(le,$,wt,oe,N,En,sn,un,Q),Lt=wt.length,bt=se-Lt>0?`${ct.infoMessageAnd} ${se-Lt} ${ct.infoMessageMore}`:void 0,Gt=oe&&!lt;return g.jsxs(g.Fragment,{children:[g.jsx(Tf,{actionsContainerClassName:i,className:o,containerRef:ht,disabled:s,errorContainerClassName:d,error:u,errorOnTooltip:Wt,hintContainerClassName:p,hint:f,iconsContainerClassName:w,icons:v,inputSectionClassName:C,inputSectionRef:gt,labelClassName:x,label:m,readOnly:de,required:tt,variant:tn,withAsterisk:Y,actions:g.jsxs(g.Fragment,{children:[n,!de&&ne&&g.jsx(He,{onClick:ne,disabled:s,variant:"tertiary",name:void 0,title:ct.buttonTitleSelect,children:g.jsx(EC,{className:vi.icon})}),!de&&!H&&re&&g.jsx(He,{onClick:W,disabled:s,variant:"tertiary",name:void 0,title:ct.buttonTitleClear,children:g.jsx(LC,{className:vi.icon})}),!de&&g.jsx(He,{onClick:bn,variant:"tertiary",name:void 0,title:Gt?ct.buttonTitleClose:ct.buttonTitleOpen,children:Gt?g.jsx(bC,{className:vi.icon}):g.jsx(SC,{className:vi.icon})})]}),input:g.jsx(Y0,{name:b,elementRef:xt,readOnly:de,disabled:s,value:oe||G?T:I,onChange:nn,onClick:Gr,onFocus:()=>U(!0),onBlur:()=>U(!1),placeholder:hs(I)?I:fe,autoComplete:"off",onKeyDown:cn,autoFocus:J})}),Gt&&g.jsxs(u0,{elementRef:_t,parentRef:gt,className:Oe(O,vi.popup),children:[g.jsx(R2,{className:vi.list,data:wt,keySelector:$,renderer:B2,rendererParams:Ft,errored:be,filtered:xe,pending:he,pendingMessage:ct.selectInputPendingMessage,emptyMessage:ct.selectInputEmptyMessage,filteredEmptyMessage:ct.selectInputFilteredMessage,errorMessage:ct.selectInputErrorMessage,compact:!0}),!he&&!be&&!!bt&&g.jsx("div",{className:vi.infoMessage,children:bt})]})]})}function Y2(e){const{children:n,isActive:i,iconClassName:o,labelClassName:s}=e;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:o,children:i?g.jsx(jC,{}):g.jsx(TC,{})}),g.jsx("div",{className:s,children:n})]})}const X2="_option_1kpl9_1",J2="_active_1kpl9_7",eT="_icon_1kpl9_11",tT="_label_1kpl9_17",qa={option:X2,active:J2,icon:eT,label:tT},Cd=[];function nT(e){const{keySelector:n,labelSelector:i,name:o,onChange:s,onOptionsChange:u,options:d,optionsPending:f,optionsErrored:p,value:v,sortFunction:w,searchOptions:C,onSearchValueChange:m,onShowDropdownChange:x,hideOptionFilter:b,selectedOnTop:_,...T}=e,M=d??Cd,D=C??Cd,$=v??Cd,[V,Z]=y.useState(),[ce,O]=y.useState(!1),[te,de]=y.useState(!1),[fe,I]=y.useState(),[H,W]=y.useState({}),ne=y.useMemo(()=>Qa(M,n,se=>se),[M,n]),he=y.useMemo(()=>Qa(M,n,i),[M,n,i]),xe=y.useMemo(()=>$.map(se=>he[se]??"?").join(", "),[$,he]),be=y.useMemo(()=>$.map(se=>ne[se]).filter(Mt),[$,ne]),G=y.useMemo(()=>{const se=ay([...D,...be],n);if(!_)return w?w(se,V,i):se;const re=se.filter(Q=>H[n(Q)]),J=se.filter(Q=>!H[n(Q)]&&($e(b)||b(Q)));return w?[...Ji(re,V,i),...w(J,V,i)]:[...Ji(re,V,i),...J]},[_,n,i,V,D,H,be,w,b]),le=y.useCallback(se=>{Z(se),m&&m(se)},[m]),N=y.useCallback(se=>{O(se),x&&x(se),se?(W(Qa($,re=>re,()=>!0)),I(void 0)):(W({}),I(void 0),Z(void 0),m&&m(void 0))},[$,m,x]),U=y.useCallback((se,re)=>{const J=$.findIndex(Q=>Q===se)!==-1;return{children:i(re),containerClassName:Oe(qa.option,J&&qa.active),title:i(re),isActive:J,labelClassName:qa.label,iconClassName:qa.icon}},[i,$]),oe=y.useCallback((se,re)=>{const J=[...$],Q=$.findIndex(Y=>Y===se);Q!==-1?J.splice(Q,1):(J.push(se),u&&u(Y=>{const tt=Y??[];return tt.find(tn=>n(tn)===se)?Y:[...tt,re]})),s(J,o)},[$,s,o,u,n]),Se=y.useCallback(()=>{s([],o)},[o,s]);return g.jsx(sy,{...T,name:o,options:G,optionsPending:f,optionsFiltered:hs(V)&&V.length>0,optionsErrored:p,optionKeySelector:n,optionRenderer:Y2,optionRendererParams:U,optionContainerClassName:qa.optionContainer,onOptionClick:oe,valueDisplay:xe,onClearButtonClick:Se,searchText:V,onSearchTextChange:le,dropdownShown:ce,onDropdownShownChange:N,focused:te,onFocusedChange:de,focusedKey:fe,onFocusedKeyChange:I,persistentOptionPopup:!0,nonClearable:!1,hasValue:Mt($)&&$.length>0})}function Mg(e){const{name:n,options:i,keySelector:o,onChange:s,withSelectAll:u,...d}=e,f=y.useCallback(()=>{if($e(i))return;const p=i.map(o);s(p,n)},[i,n,s,o]);return g.jsx(nT,{...d,name:n,onChange:s,options:i,keySelector:o,sortFunction:Ji,searchOptions:i,onSelectAllButtonClick:u?f:void 0,selectedOnTop:!1})}const rT="_page-container_1cfro_1",iT="_content_1cfro_2",Lg={pageContainer:rT,content:iT};function Gf(e){const{className:n,contentClassName:i,children:o,contentAs:s="div",containerAs:u="div"}=e,d=s;return g.jsx(u,{className:Oe(Lg.pageContainer,n),children:g.jsx(d,{className:Oe(Lg.content,i),children:o})})}const oT="_raw-input_145mq_1",aT={rawInput:oT};function sT(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=dr.useCallback(p=>{var v;const w=(v=p?.target)==null?void 0:v.value;i&&i(w===""?void 0:w,u,p)},[u,i]);return g.jsx("textarea",{...d,ref:o,className:Oe(aT.rawInput,n),name:Mt(u)?String(u):void 0,onChange:f,value:s??""})}const lT="_option_11p37_1",uT="_icon_11p37_6",cT="_label_11p37_14",dT="_overflow-container_11p37_20",fT="_description_11p37_25",Fo={option:lT,icon:uT,label:cT,overflowContainer:dT,description:fT};function hT(e){const{className:n,label:i,description:o,iconClassName:s,labelClassName:u}=e;return g.jsxs("div",{className:Oe(Fo.option,n),children:[g.jsx("div",{className:Oe(Fo.icon,s),children:g.jsx(NC,{})}),g.jsxs("div",{className:Oe(Fo.label,u),children:[g.jsx("div",{className:Fo.overflowContainer,children:i}),g.jsx("div",{className:Oe(Fo.overflowContainer,Fo.description),children:o})]})]})}const pT="_option-container_2k92q_1",mT="_option_2k92q_1",gT="_active_2k92q_9",vT="_icon_2k92q_12",Wa={optionContainer:pT,option:mT,active:gT,icon:vT},Dg=[];function Og(e){const{keySelector:n,labelSelector:i,descriptionSelector:o,name:s,onChange:u,onOptionsChange:d,options:f,optionsPending:p,optionsErrored:v,value:w,sortFunction:C,searchOptions:m,onSearchValueChange:x,onShowDropdownChange:b,hideOptionFilter:_,selectedOnTop:T,onEnterWithoutOption:M,...D}=e,$=f??Dg,V=m??Dg,[Z,ce]=y.useState(),[O,te]=y.useState(!1),[de,fe]=y.useState(!1),[I,H]=y.useState(),[W,ne]=y.useState({}),he=y.useMemo(()=>Qa($,n,i),[$,n,i]),xe=Mt(w)?he[w]??"?":"",be=y.useMemo(()=>{const re=$?.find(J=>n(J)===w);return $e(re)?[]:[re]},[w,$,n]),G=y.useMemo(()=>{const re=ay([...V,...be],n);if(!T)return C?C(re,Z,i):re;const J=re.filter(Y=>W[n(Y)]),Q=re.filter(Y=>!W[n(Y)]&&($e(_)||_(Y)));return C?[...Ji(J,Z,i),...C(Q,Z,i)]:[...Ji(J,Z,i),...Q]},[T,n,i,Z,V,W,be,C,_]),le=y.useCallback(re=>{ce(re),x&&x(re)},[x]),N=y.useCallback(()=>{te(!1),b&&b(!1),ce(void 0),x&&x(void 0),M&&M(Z)},[Z,b,M,x]),U=y.useCallback(re=>{te(re),b&&b(re),re?(ne(Qa(w?[w]:[],J=>J,()=>!0)),H(w?{key:w}:void 0)):(ne({}),H(void 0),ce(void 0),x&&x(void 0))},[w,x,b]),oe=y.useCallback((re,J)=>{const Q=re===w;return{label:i(J),description:o?o(J):void 0,containerClassName:Oe(Wa.optionContainer,Q&&Wa.active),title:i(J),className:Wa.option,iconClassName:Wa.icon}},[w,i,o]),Se=y.useCallback((re,J)=>{d&&d(Q=>{const Y=Q??[];return Y.find(tt=>n(tt)===re)?Q:[...Y,J]}),u(re,s,J)},[u,s,d,n]),se=y.useCallback(()=>{if(!e.nonClearable){const re=e.onChange;re(void 0,s,void 0)}},[s,e.onChange,e.nonClearable]);return g.jsx(sy,{...D,name:s,options:G,optionsPending:p,optionsErrored:v,optionsFiltered:hs(Z)&&Z.length>0,optionKeySelector:n,optionRenderer:hT,optionRendererParams:oe,optionContainerClassName:Wa.optionContainer,onOptionClick:Se,valueDisplay:xe,onClearButtonClick:se,searchText:Z,onSearchTextChange:le,dropdownShown:O,onDropdownShownChange:U,focused:de,onFocusedChange:fe,focusedKey:I,onFocusedKeyChange:H,hasValue:Mt(w),persistentOptionPopup:!1,onEnterWithoutOption:N})}const yT="_segment-input_bykt7_1",wT="_segment-list_bykt7_4",xT="_segment_bykt7_1",CT="_active_bykt7_18",ST="_secondary-variant_bykt7_24",Ya={segmentInput:yT,segmentList:wT,segment:xT,active:CT,secondaryVariant:ST};function _T(e){const{label:n,name:i,onClick:o,value:s,className:u,variant:d="primary",inputName:f,...p}=e;return g.jsx(He,{...p,className:Oe(Ya.segment,s&&Ya.active,d==="secondary"&&Ya.secondaryVariant,u),name:i,onClick:o,variant:"tertiary",children:n})}function bT(e){const{rendererParams:n,listContainerClassName:i,keySelector:o,labelSelector:s,className:u,...d}=e;return g.jsx(w_,{className:Oe(u,Ya.segmentInput),...d,renderer:_T,rendererParams:n,listContainerClassName:Oe(i,Ya.segmentList),keySelector:o,labelSelector:s})}function qi(e){const{name:n,options:i,nonClearable:o,onChange:s,...u}=e;return e.nonClearable?g.jsx(Og,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:Ji,searchOptions:i,selectedOnTop:!1}):g.jsx(Og,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:Ji,searchOptions:i,selectedOnTop:!1})}y.createContext({tabs:[],step:0,disabled:!1,activeTab:"",variant:"primary",setActiveTab:()=>{console.warn("setActiveTab called before it was initialized")},registerTab:()=>{console.warn("registerTab called before it was initialized")},unregisterTab:()=>{console.warn("unregisterTab called before it was initialized")}});const Rg="•",ET="Enter";function NT(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:p,label:v,labelClassName:w,readOnly:C,required:m,variant:x,inputSectionClassName:b,withAsterisk:_,onChange:T,name:M,autoBullets:D=!1,rows:$=5,...V}=e,Z=dr.useCallback(O=>{$e(T)||O.target.value===""&&T(`${Rg} `,M)},[T,M]),ce=dr.useCallback(O=>{$e(T)||O.key===ET&&T(`${O.currentTarget.value}${Rg} `,M)},[T,M]);return g.jsx(Tf,{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:b,labelClassName:w,label:v,readOnly:C,required:m,variant:x,withAsterisk:_,input:g.jsx(sT,{...V,readOnly:C,disabled:o,className:p,onChange:T,name:M,onFocus:D?Z:void 0,onKeyUp:D?ce:void 0,rows:$})})}function kt(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:p,inputSectionClassName:v,label:w,readOnly:C,required:m,variant:x,withAsterisk:b,type:_="text",...T}=e;return g.jsx(Tf,{className:i,actions:n,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:v,label:w,required:m,readOnly:C,variant:x,withAsterisk:b,input:g.jsx(Y0,{...T,required:m,readOnly:C,disabled:o,className:p,type:_})})}const kT="_dropdownContainer_1six7_3",TT="_dropdownMenu_1six7_15",jT="_dropdownContent_1six7_43",Sd={dropdownContainer:kT,dropdownMenu:TT,dropdownContent:jT},PT=[{to:"/upload",label:"Upload",Icon:a0},{to:"/explore",label:"Explore",Icon:AC},{to:"/analytics",label:"Analytics",Icon:o0}];function MT(){const e=Ko(),n=fs(),[i,o]=y.useState(!1),s=y.useRef(null);return y.useEffect(()=>{const u=d=>{s.current&&!s.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),g.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:g.jsxs(Gf,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[g.jsxs("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(e.pathname==="/upload"||e.pathname==="/")){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/")}},children:[g.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:g.jsx(DC,{className:"h-8 w-8 flex-shrink-0 text-ifrcRed"})}),g.jsx("div",{className:"flex flex-col",children:g.jsx("span",{className:"font-bold text-xl text-gray-900 leading-tight",children:"PromptAid Vision"})})]}),g.jsx("div",{className:"flex justify-center",children:g.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:PT.map(({to:u,label:d,Icon:f})=>{const p=e.pathname===u||u==="/upload"&&e.pathname==="/"||u==="/explore"&&e.pathname.startsWith("/map/"),v=e.pathname==="/upload"||e.pathname==="/",w=u==="/upload"||u==="/";return g.jsxs("div",{className:"relative",children:[g.jsx(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{name:d.toLowerCase(),variant:p?"primary":"tertiary",size:1,className:`transition-all duration-200 ${p?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(v&&w)){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(u);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n(u)}},children:[g.jsx(f,{className:`w-4 h-4 transition-transform duration-200 ${p?"scale-110":"group-hover:scale-110"}`}),g.jsx("span",{className:"inline ml-2 font-semibold",children:d})]})}),p&&g.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},u)})})}),g.jsx("div",{className:"flex justify-end",children:g.jsxs("div",{className:Sd.dropdownContainer,ref:s,children:[g.jsx(cr,{withInternalPadding:!0,className:"p-2",children:g.jsx(He,{name:"more-options",variant:i?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>o(!i),children:g.jsx(OC,{className:"w-4 h-4"})})}),i&&g.jsx("div",{className:Sd.dropdownMenu,children:g.jsxs("div",{className:Sd.dropdownContent,children:[g.jsx(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/help")},children:[g.jsx(RC,{className:"w-4 h-4"}),g.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),g.jsx(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/admin")},children:[g.jsx(FC,{className:"w-4 h-4"}),g.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function LT(){return g.jsxs(g.Fragment,{children:[g.jsx(MT,{}),g.jsx(lx,{})]})}const DT="_uploadContainer_1w5i1_1",OT="_dropZone_1w5i1_9",RT="_hasFile_1w5i1_30",IT="_dropZoneIcon_1w5i1_37",AT="_dropZoneText_1w5i1_43",FT="_dropZoneSubtext_1w5i1_49",$T="_filePreview_1w5i1_55",zT="_filePreviewImage_1w5i1_64",BT="_fileName_1w5i1_110",UT="_fileInfo_1w5i1_118",HT="_helpLink_1w5i1_125",VT="_loadingContainer_1w5i1_145",qT="_loadingText_1w5i1_153",WT="_generateButtonContainer_1w5i1_157",GT="_uploadedMapContainer_1w5i1_165",ZT="_uploadedMapImage_1w5i1_169",QT="_formGrid_1w5i1_209",KT="_titleField_1w5i1_222",YT="_ratingDescription_1w5i1_230",XT="_ratingSlider_1w5i1_235",JT="_ratingLabel_1w5i1_242",ej="_ratingInput_1w5i1_251",tj="_ratingValue_1w5i1_256",nj="_submitSection_1w5i1_266",rj="_successContainer_1w5i1_275",ij="_successHeading_1w5i1_280",oj="_successText_1w5i1_285",aj="_successButton_1w5i1_291",sj="_viewFullSizeButton_1w5i1_297",lj="_fullSizeModalOverlay_1w5i1_306",uj="_lightModalOverlay_1w5i1_320",cj="_fullSizeModalContent_1w5i1_334",dj="_fullSizeModalHeader_1w5i1_345",fj="_fullSizeModalImage_1w5i1_361",hj="_confirmSection_1w5i1_398",pj="_step2Layout_1w5i1_407",mj="_topRow_1w5i1_413",gj="_ratingHidden_1w5i1_421",vj="_imageSection_1w5i1_425",yj="_ratingContent_1w5i1_435",wj="_mapColumn_1w5i1_453",xj="_contentColumn_1w5i1_458",Cj="_step2bLayout_1w5i1_465",Sj="_metadataSectionCard_1w5i1_562",_j="_droneMetadataSection_1w5i1_571",bj="_droneMetadataHeading_1w5i1_577",Ej="_droneMetadataGrid_1w5i1_585",Nj="_rtkFixContainer_1w5i1_591",kj="_rtkFixLabel_1w5i1_597",Tj="_rtkFixCheckbox_1w5i1_606",jj="_confirmButtonContainer_1w5i1_621",Pj="_ratingWarningContent_1w5i1_629",Mj="_ratingWarningTitle_1w5i1_637",Lj="_ratingWarningText_1w5i1_644",Dj="_ratingWarningButtons_1w5i1_651",Oj="_preprocessingProgress_1w5i1_658",Rj="_carouselContainer_1w5i1_711",Ij="_carouselImageWrapper_1w5i1_716",Aj="_carouselImage_1w5i1_716",Fj="_carouselNavigation_1w5i1_739",$j="_carouselButton_1w5i1_751",zj="_carouselIndicators_1w5i1_775",Bj="_carouselIndicator_1w5i1_775",Uj="_carouselIndicatorActive_1w5i1_804",Hj="_viewImageButtonContainer_1w5i1_840",q={uploadContainer:DT,dropZone:OT,hasFile:RT,dropZoneIcon:IT,dropZoneText:AT,dropZoneSubtext:FT,filePreview:$T,filePreviewImage:zT,fileName:BT,fileInfo:UT,helpLink:HT,loadingContainer:VT,loadingText:qT,generateButtonContainer:WT,uploadedMapContainer:GT,uploadedMapImage:ZT,formGrid:QT,titleField:KT,ratingDescription:YT,ratingSlider:XT,ratingLabel:JT,ratingInput:ej,ratingValue:tj,submitSection:nj,successContainer:rj,successHeading:ij,successText:oj,successButton:aj,viewFullSizeButton:sj,fullSizeModalOverlay:lj,lightModalOverlay:uj,fullSizeModalContent:cj,fullSizeModalHeader:dj,fullSizeModalImage:fj,confirmSection:hj,step2Layout:pj,topRow:mj,ratingHidden:gj,imageSection:vj,ratingContent:yj,mapColumn:wj,contentColumn:xj,step2bLayout:Cj,metadataSectionCard:Sj,droneMetadataSection:_j,droneMetadataHeading:bj,droneMetadataGrid:Ej,rtkFixContainer:Nj,rtkFixLabel:kj,rtkFixCheckbox:Tj,confirmButtonContainer:jj,ratingWarningContent:Pj,ratingWarningTitle:Mj,ratingWarningText:Lj,ratingWarningButtons:Dj,preprocessingProgress:Oj,carouselContainer:Rj,carouselImageWrapper:Ij,carouselImage:Aj,carouselNavigation:Fj,carouselButton:$j,carouselIndicators:zj,carouselIndicator:Bj,carouselIndicatorActive:Uj,viewImageButtonContainer:Hj},ly=y.createContext(void 0),Vj=({children:e})=>{const[n,i]=y.useState(""),[o,s]=y.useState(""),[u,d]=y.useState(""),[f,p]=y.useState(""),[v,w]=y.useState(""),[C,m]=y.useState(""),[x,b]=y.useState(""),[_,T]=y.useState(!1),D={search:n,srcFilter:o,catFilter:u,regionFilter:f,countryFilter:v,imageTypeFilter:C,uploadTypeFilter:x,showReferenceExamples:_,setSearch:i,setSrcFilter:s,setCatFilter:d,setRegionFilter:p,setCountryFilter:w,setImageTypeFilter:m,setUploadTypeFilter:b,setShowReferenceExamples:T,clearAllFilters:()=>{i(""),s(""),d(""),p(""),w(""),m(""),b(""),T(!1)}};return g.jsx(ly.Provider,{value:D,children:e})},qj=()=>{const e=y.useContext(ly);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e};function Ig({files:e,file:n,preview:i,imageType:o,onFileChange:s,onRemoveImage:u,onAddImage:d,onImageTypeChange:f,onChangeFile:p}){const v=w=>{w.preventDefault();const C=w.dataTransfer.files?.[0];C&&s(C)};return g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),g.jsx("div",{className:q.helpLink,children:g.jsxs(Mx,{to:"/help",className:q.helpLink,children:["More ",g.jsx(_C,{className:"w-3 h-3"})]})}),g.jsx("div",{className:"flex justify-center",children:g.jsx(cr,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:g.jsx(bT,{name:"image-type",value:o,onChange:w=>f(w),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:w=>w.key,labelSelector:w=>w.label})})}),g.jsxs("div",{className:`${q.dropZone} ${n?q.hasFile:""}`,onDragOver:w=>w.preventDefault(),onDrop:v,children:[e.length>1?g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:e.map((w,C)=>g.jsxs("div",{className:"relative",children:[g.jsx("img",{src:URL.createObjectURL(w),alt:`Image ${C+1}`,className:"w-full h-32 object-cover rounded"}),g.jsx(df,{name:"remove-image",variant:"tertiary",onClick:()=>u(C),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:g.jsx(uf,{className:"w-4 h-4"})}),g.jsx("div",{className:"text-xs text-center mt-1",children:w.name})]},C))}):n&&i?g.jsxs("div",{className:q.filePreview,children:[g.jsx("div",{className:q.filePreviewImage,children:g.jsx("img",{src:i,alt:"File preview"})}),g.jsx("p",{className:q.fileName,children:n.name}),g.jsxs("p",{className:q.fileInfo,children:[(n.size/1024/1024).toFixed(2)," MB"]})]}):g.jsxs(g.Fragment,{children:[g.jsx(a0,{className:q.dropZoneIcon}),g.jsx("p",{className:q.dropZoneText,children:"Drag & Drop any file here"}),g.jsx("p",{className:q.dropZoneSubtext,children:"or"})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("label",{className:"inline-block cursor-pointer",children:[g.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:w=>{n&&p?p(w.target.files?.[0]):s(w.target.files?.[0])}}),g.jsx(He,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:n?"Change Image":"Browse Files"})]}),n&&e.length<5&&g.jsx(He,{name:"add-image",variant:"secondary",size:1,onClick:d,children:"Add Image"})]})]})]})}function Ag({files:e,imageUrl:n,preview:i,onViewFullSize:o,currentImageIndex:s=0,onGoToPrevious:u,onGoToNext:d,onGoToImage:f,showCarousel:p=!1}){return p&&e.length>1?g.jsx(cr,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.carouselContainer,children:[g.jsx("div",{className:q.carouselImageWrapper,children:e[s]?g.jsx("img",{src:URL.createObjectURL(e[s]),alt:`Image ${s+1}`,className:q.carouselImage}):g.jsx("div",{className:q.imagePlaceholder,children:"No image available"})}),g.jsxs("div",{className:q.carouselNavigation,children:[g.jsx(He,{name:"previous-image",variant:"tertiary",size:1,onClick:u,className:q.carouselButton,children:g.jsx(PC,{className:"w-4 h-4"})}),g.jsx("div",{className:q.carouselIndicators,children:e.map((v,w)=>g.jsx("button",{onClick:()=>f?.(w),className:`${q.carouselIndicator} ${w===s?q.carouselIndicatorActive:""}`,children:w+1},w))}),g.jsx(He,{name:"next-image",variant:"tertiary",size:1,onClick:d,className:q.carouselButton,children:g.jsx(MC,{className:"w-4 h-4"})})]}),g.jsx("div",{className:q.viewImageButtonContainer,children:g.jsx(He,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>o({file:e[s],index:s}),disabled:!e[s],children:"View Image"})})]})}):e.length>1?g.jsx("div",{className:"space-y-6",children:e.map((v,w)=>g.jsx(cr,{heading:`Image ${w+1}: ${v.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.uploadedMapContainer,children:[g.jsx("div",{className:q.uploadedMapImage,children:g.jsx("img",{src:URL.createObjectURL(v),alt:`Image ${w+1}`})}),g.jsx("div",{className:q.viewFullSizeButton,children:g.jsx(He,{name:`view-full-size-${w}`,variant:"secondary",size:1,onClick:()=>o({file:v,index:w}),children:"View Image"})})]})},w))}):g.jsx(cr,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.uploadedMapContainer,children:[g.jsx("div",{className:q.uploadedMapImage,children:g.jsx("img",{src:n||i||void 0,alt:"Uploaded image preview"})}),g.jsx("div",{className:q.viewFullSizeButton,children:g.jsx(He,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>o(),children:"View Image"})})]})})}function Wj({files:e,imageType:n,title:i,source:o,eventType:s,epsg:u,countries:d,centerLon:f,centerLat:p,amslM:v,aglM:w,headingDeg:C,yawDeg:m,pitchDeg:x,rollDeg:b,rtkFix:_,stdHM:T,stdVM:M,metadataArray:D,sources:$,types:V,spatialReferences:Z,imageTypes:ce,countriesOptions:O,onTitleChange:te,onSourceChange:de,onEventTypeChange:fe,onEpsgChange:I,onCountriesChange:H,onCenterLonChange:W,onCenterLatChange:ne,onAmslMChange:he,onAglMChange:xe,onHeadingDegChange:be,onYawDegChange:G,onPitchDegChange:le,onRollDegChange:N,onRtkFixChange:U,onStdHMChange:oe,onStdVMChange:Se,onImageTypeChange:se,updateMetadataForImage:re}){return e.length>1?g.jsxs("div",{children:[g.jsx("div",{className:"mb-4",children:g.jsx(kt,{label:"Shared Title",name:"title",value:i,onChange:te,placeholder:"Enter a title for all images...",required:!0})}),e.map((J,Q)=>g.jsx("div",{className:"mb-6",children:g.jsx(cr,{heading:`Image ${Q+1}: ${J.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.formGrid,children:[n!=="drone_image"&&g.jsx(qi,{label:"Source",name:`source_${Q}`,value:D[Q]?.source||"",onChange:Y=>re(Q,"source",Y),options:$,keySelector:Y=>Y.s_code,labelSelector:Y=>Y.label,required:!0}),g.jsx(qi,{label:"Event Type",name:`event_type_${Q}`,value:D[Q]?.eventType||"",onChange:Y=>re(Q,"eventType",Y),options:V,keySelector:Y=>Y.t_code,labelSelector:Y=>Y.label,required:n!=="drone_image"}),g.jsx(qi,{label:"EPSG",name:`epsg_${Q}`,value:D[Q]?.epsg||"",onChange:Y=>re(Q,"epsg",Y),options:Z,keySelector:Y=>Y.epsg,labelSelector:Y=>`${Y.srid} (EPSG:${Y.epsg})`,placeholder:"EPSG",required:n!=="drone_image"}),g.jsx(Mg,{label:"Countries (optional)",name:`countries_${Q}`,value:D[Q]?.countries||[],onChange:Y=>re(Q,"countries",Y),options:O,keySelector:Y=>Y.c_code,labelSelector:Y=>Y.label,placeholder:"Select one or more"}),n==="drone_image"&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:q.droneMetadataSection,children:[g.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:q.droneMetadataGrid,children:[g.jsx(kt,{label:"Center Longitude",name:`center_lon_${Q}`,value:D[Q]?.centerLon||"",onChange:Y=>re(Q,"centerLon",Y),placeholder:"e.g., -122.4194",step:"any"}),g.jsx(kt,{label:"Center Latitude",name:`center_lat_${Q}`,value:D[Q]?.centerLat||"",onChange:Y=>re(Q,"centerLat",Y),placeholder:"e.g., 37.7749",step:"any"}),g.jsx(kt,{label:"Altitude AMSL (m)",name:`amsl_m_${Q}`,value:D[Q]?.amslM||"",onChange:Y=>re(Q,"amslM",Y),placeholder:"e.g., 100.5",step:"any"}),g.jsx(kt,{label:"Altitude AGL (m)",name:`agl_m_${Q}`,value:D[Q]?.aglM||"",onChange:Y=>re(Q,"aglM",Y),placeholder:"e.g., 50.2",step:"any"}),g.jsx(kt,{label:"Heading (degrees)",name:`heading_deg_${Q}`,value:D[Q]?.headingDeg||"",onChange:Y=>re(Q,"headingDeg",Y),placeholder:"e.g., 180.0",step:"any"}),g.jsx(kt,{label:"Yaw (degrees)",name:`yaw_deg_${Q}`,value:D[Q]?.yawDeg||"",onChange:Y=>re(Q,"yawDeg",Y),placeholder:"e.g., 90.0",step:"any"}),g.jsx(kt,{label:"Pitch (degrees)",name:`pitch_deg_${Q}`,value:D[Q]?.pitchDeg||"",onChange:Y=>re(Q,"pitchDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx(kt,{label:"Roll (degrees)",name:`roll_deg_${Q}`,value:D[Q]?.rollDeg||"",onChange:Y=>re(Q,"rollDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:q.rtkFixContainer,children:g.jsxs("label",{className:q.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:D[Q]?.rtkFix||!1,onChange:Y=>re(Q,"rtkFix",Y.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(kt,{label:"Horizontal Std Dev (m)",name:`std_h_m_${Q}`,value:D[Q]?.stdHM||"",onChange:Y=>re(Q,"stdHM",Y),placeholder:"e.g., 0.1",step:"any"}),g.jsx(kt,{label:"Vertical Std Dev (m)",name:`std_v_m_${Q}`,value:D[Q]?.stdVM||"",onChange:Y=>re(Q,"stdVM",Y),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},Q))]}):g.jsxs("div",{className:q.formGrid,children:[g.jsx("div",{className:q.titleField,children:g.jsx(kt,{label:"Title",name:"title",value:i,onChange:te,placeholder:"Enter a title for this map...",required:!0})}),n!=="drone_image"&&g.jsx(qi,{label:"Source",name:"source",value:o,onChange:de,options:$,keySelector:J=>J.s_code,labelSelector:J=>J.label,required:!0}),g.jsx(qi,{label:"Event Type",name:"event_type",value:s,onChange:fe,options:V,keySelector:J=>J.t_code,labelSelector:J=>J.label,required:n!=="drone_image"}),g.jsx(qi,{label:"EPSG",name:"epsg",value:u,onChange:I,options:Z,keySelector:J=>J.epsg,labelSelector:J=>`${J.srid} (EPSG:${J.epsg})`,placeholder:"EPSG",required:n!=="drone_image"}),g.jsx(qi,{label:"Image Type",name:"image_type",value:n,onChange:se,options:ce,keySelector:J=>J.image_type,labelSelector:J=>J.label,required:!0}),g.jsx(Mg,{label:"Countries (optional)",name:"countries",value:d,onChange:H,options:O,keySelector:J=>J.c_code,labelSelector:J=>J.label,placeholder:"Select one or more"}),n==="drone_image"&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:q.droneMetadataSection,children:[g.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:q.droneMetadataGrid,children:[g.jsx(kt,{label:"Center Longitude",name:"center_lon",value:f,onChange:W,placeholder:"e.g., -122.4194",step:"any"}),g.jsx(kt,{label:"Center Latitude",name:"center_lat",value:p,onChange:ne,placeholder:"e.g., 37.7749",step:"any"}),g.jsx(kt,{label:"Altitude AMSL (m)",name:"amsl_m",value:v,onChange:he,placeholder:"e.g., 100.5",step:"any"}),g.jsx(kt,{label:"Altitude AGL (m)",name:"agl_m",value:w,onChange:xe,placeholder:"e.g., 50.2",step:"any"}),g.jsx(kt,{label:"Heading (degrees)",name:"heading_deg",value:C,onChange:be,placeholder:"e.g., 180.0",step:"any"}),g.jsx(kt,{label:"Yaw (degrees)",name:"yaw_deg",value:m,onChange:G,placeholder:"e.g., 90.0",step:"any"}),g.jsx(kt,{label:"Pitch (degrees)",name:"pitch_deg",value:x,onChange:le,placeholder:"e.g., 0.0",step:"any"}),g.jsx(kt,{label:"Roll (degrees)",name:"roll_deg",value:b,onChange:N,placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:q.rtkFixContainer,children:g.jsxs("label",{className:q.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:_,onChange:J=>U(J.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(kt,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:T,onChange:oe,placeholder:"e.g., 0.1",step:"any"}),g.jsx(kt,{label:"Vertical Std Dev (m)",name:"std_v_m",value:M,onChange:Se,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function Gj({isPerformanceConfirmed:e,scores:n,onScoreChange:i,onConfirmRatings:o,onEditRatings:s}){return e?null:g.jsx(cr,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.ratingContent,children:[g.jsx("p",{className:q.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(u=>g.jsxs("div",{className:q.ratingSlider,children:[g.jsx("label",{className:q.ratingLabel,children:u}),g.jsx("input",{type:"range",min:0,max:100,value:n[u],onChange:d=>i(u,Number(d.target.value)),className:q.ratingInput}),g.jsx("span",{className:q.ratingValue,children:n[u]})]},u)),g.jsx("div",{className:q.confirmButtonContainer,children:g.jsx(He,{name:"confirm-ratings",variant:"secondary",onClick:o,children:"Confirm Ratings"})})]})})}function Zj({description:e,analysis:n,recommendedActions:i,onDescriptionChange:o,onAnalysisChange:s,onRecommendedActionsChange:u,onBack:d,onDelete:f,onSubmit:p,onEditRatings:v,isPerformanceConfirmed:w=!1}){const C=m=>{if(m){const x=m.split(` +`),b=x.findIndex(M=>M.startsWith("Description:")),_=x.findIndex(M=>M.startsWith("Analysis:")),T=x.findIndex(M=>M.startsWith("Recommended Actions:"));b!==-1&&_!==-1&&T!==-1&&(o(x.slice(b+1,_).join(` +`).trim()),s(x.slice(_+1,T).join(` +`).trim()),u(x.slice(T+1).join(` +`).trim()))}};return g.jsxs(cr,{heading:"Generated Text",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[g.jsx("div",{className:"text-left space-y-4",children:g.jsx("div",{children:g.jsx(NT,{name:"generatedContent",value:`Description: +${e||"AI-generated description will appear here..."} + +Analysis: +${n||"AI-generated analysis will appear here..."} + +Recommended Actions: +${i||"AI-generated recommended actions will appear here..."}`,onChange:C,rows:12,placeholder:"AI-generated content will appear here..."})})}),g.jsxs("div",{className:q.submitSection,children:[g.jsx(He,{name:"back",variant:"secondary",onClick:d,children:"Back"}),w&&v&&g.jsx(He,{name:"edit-ratings",variant:"secondary",onClick:v,children:"Edit Ratings"}),g.jsx(df,{name:"delete",variant:"tertiary",onClick:f,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(He,{name:"submit",onClick:p,children:"Submit"})]})]})}function Qj({isOpen:e,imageUrl:n,preview:i,selectedImageData:o,onClose:s}){if(!e)return null;let u,d;return o?(u=URL.createObjectURL(o.file),d=`Image ${o.index+1}: ${o.file.name}`):(u=n||i||void 0,d="Full size map"),g.jsx("div",{className:q.fullSizeModalOverlay,onClick:s,children:g.jsxs("div",{className:q.fullSizeModalContent,onClick:f=>f.stopPropagation(),children:[g.jsx("div",{className:q.fullSizeModalHeader,children:g.jsx(He,{name:"close-modal",variant:"tertiary",size:1,onClick:s,children:"✕"})}),g.jsx("div",{className:q.fullSizeModalImage,children:g.jsx("img",{src:u,alt:d})})]})})}function Kj({isOpen:e,onClose:n}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:n,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:i=>i.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Please Confirm Your Ratings"}),g.jsx("p",{className:q.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),g.jsx("div",{className:q.ratingWarningButtons,children:g.jsx(He,{name:"close-warning",variant:"secondary",onClick:n,children:"Close"})})]})})}):null}function Yj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Delete Image?"}),g.jsx("p",{className:q.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-delete",variant:"secondary",onClick:n,children:"Delete"}),g.jsx(He,{name:"cancel-delete",variant:"tertiary",onClick:i,children:"Cancel"})]})]})})}):null}function Xj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Leave Page?"}),g.jsx("p",{className:q.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-navigation",variant:"secondary",onClick:n,children:"Leave Page"}),g.jsx(He,{name:"cancel-navigation",variant:"tertiary",onClick:i,children:"Stay"})]})]})})}):null}function Jj({isOpen:e,fallbackInfo:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Model Changed"}),g.jsxs("p",{className:q.ratingWarningText,children:[n.originalModel," is currently unavailable. We've automatically switched to ",n.fallbackModel," to complete your request."]}),g.jsx("div",{className:q.ratingWarningButtons,children:g.jsx(He,{name:"close-fallback",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function eP({isOpen:e,preprocessingInfo:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Converted"}),g.jsxs("p",{className:q.ratingWarningText,children:["Your file ",g.jsx("strong",{children:n.original_filename})," has been converted from",g.jsxs("strong",{children:[" ",n.original_mime_type]})," to",g.jsxs("strong",{children:[" ",n.processed_mime_type]})," for optimal processing.",g.jsx("br",{}),g.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),g.jsx("div",{className:q.ratingWarningButtons,children:g.jsx(He,{name:"close-preprocessing",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function tP({isOpen:e,preprocessingFile:n,isPreprocessing:i,preprocessingProgress:o,onConfirm:s,onCancel:u}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i?void 0:u,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:d=>d.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Conversion Required"}),g.jsx("p",{className:q.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!i&&g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-preprocessing",variant:"secondary",onClick:s,children:"Convert File"}),g.jsx(He,{name:"cancel-preprocessing",variant:"tertiary",onClick:u,children:"Cancel"})]}),i&&g.jsxs("div",{className:q.preprocessingProgress,children:[g.jsx("p",{children:o}),g.jsx(Gl,{className:"text-ifrcRed"})]})]})})}):null}function nP({isOpen:e,unsupportedFile:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Unsupported File Format"}),g.jsxs("p",{className:q.ratingWarningText,children:["The file ",g.jsx("strong",{children:n.name})," is not supported for upload.",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Supported formats:"}),g.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",g.jsx("br",{}),"• Documents: PDF (will be converted to image)",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),g.jsx("div",{className:q.ratingWarningButtons,children:g.jsx(He,{name:"close-unsupported",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function rP({isOpen:e,oversizedFile:n,onClose:i,onCancel:o}){return!e||!n?null:g.jsx("div",{className:q.lightModalOverlay,onClick:o,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Size Warning"}),g.jsxs("p",{className:q.ratingWarningText,children:["The file ",g.jsx("strong",{children:n.name})," is large (",(n.size/(1024*1024)).toFixed(1),"MB).",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",g.jsx("br",{}),g.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"continue-size-warning",variant:"secondary",onClick:i,children:"Continue"}),g.jsx(He,{name:"cancel-size-warning",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})})}const Il="selectedVlmModel";function Fg(){const[e]=Dx(),n=fs(),[i,o]=y.useState(1),[s,u]=y.useState(!1),[d,f]=y.useState(!1),p=y.useRef(i),v=y.useRef(null),[w,C]=y.useState(null),[m,x]=y.useState(null),[b,_]=y.useState([]),[T,M]=y.useState(""),[D,$]=y.useState(""),[V,Z]=y.useState(""),[ce,O]=y.useState("crisis_map"),[te,de]=y.useState([]),[fe,I]=y.useState(""),[H,W]=y.useState(""),[ne,he]=y.useState(""),[xe,be]=y.useState(""),[G,le]=y.useState(""),[N,U]=y.useState(""),[oe,Se]=y.useState(""),[se,re]=y.useState(""),[J,Q]=y.useState(""),[Y,tt]=y.useState(!1),[tn,Wt]=y.useState(""),[lt,wt]=y.useState(""),[ct,ht]=y.useState([]),[gt,xt]=y.useState([]),[_t,nn]=y.useState([]),[bn,sn]=y.useState([]),[En,Gr]=y.useState([]),[ln,un]=y.useState([]),[Ft,cn]=y.useState(null),[Lt,bt]=y.useState([]),[Gt,Et]=y.useState(null),[Nn,dn]=y.useState(""),[Zr,Qr]=y.useState(""),[Er,Nr]=y.useState(""),[kr,Fn]=y.useState(""),[Kn,kn]=y.useState({accuracy:50,context:50,usability:50}),[$n,Kr]=y.useState(!1),[bi,Yr]=y.useState(null),[Yn,zn]=y.useState(!1),[hr,Ei]=y.useState(!1),[Tr,j]=y.useState(!1),[R,z]=y.useState(!1),[K,ue]=y.useState(null),[Ne,Pe]=y.useState(!1),[ye,Ce]=y.useState(null),[ve,me]=y.useState(!1),[Fe,Ve]=y.useState(null),[Tt,Ke]=y.useState(!1),[qe,Je]=y.useState(null),[Xn,Tn]=y.useState(!1),[jn,ze]=y.useState(""),[Ni,fn]=y.useState(!1),[Bn,Pn]=y.useState(null),[Xr,Be]=y.useState(!1),[ot,jt]=y.useState(null),[jr,Ge]=y.useState(0);p.current=i,v.current=Ft;const pr=k=>M(k||""),io=k=>$(k||""),Xo=k=>Z(k||""),Jr=k=>O(k||""),oo=k=>de(Array.isArray(k)?k:[]),ki=k=>W(k||""),ao=k=>he(k||""),yu=k=>be(k||""),wu=k=>le(k||""),Jo=k=>U(k||""),xs=k=>Se(k||""),ea=k=>re(k||""),Ti=k=>Q(k||""),xu=k=>tt(k||!1),ta=k=>Wt(k||""),nt=k=>wt(k||""),ji=k=>o(k),Cs=y.useCallback(()=>{b.length>1&&Ge(k=>k>0?k-1:b.length-1)},[b.length]),na=y.useCallback(()=>{b.length>1&&Ge(k=>k{k>=0&&k{if(b.length<5){const k=document.createElement("input");k.type="file",k.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",k.onchange=Me=>{const Te=Me.target;if(Te.files&&Te.files[0]){const je=Te.files[0];Un(je)}},k.click()}},ia=k=>{_(Me=>{const Te=Me.filter((je,ge)=>ge!==k);return Te.length===1?x(Te[0]):Te.length===0&&x(null),Te}),ht(Me=>Me.filter((Te,je)=>je!==k))},oa=(k,Me,Te)=>{ht(je=>{const ge=[...je];return ge[k]||(ge[k]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),ge[k]={...ge[k],[Me]:Te},ge})},Pi=k=>{const Me=["image/jpeg","image/jpg","image/png"],Te=[".jpg",".jpeg",".png"];let je=!Me.includes(k.type);if(!je&&k.name){const ge=k.name.toLowerCase().substring(k.name.lastIndexOf("."));je=!Te.includes(ge)}return je},Jn=k=>{const Me=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const Te of Me)if(k.type.startsWith(Te))return!0;if(k.name){const Te=k.name.toLowerCase().substring(k.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(Te))return!0}return!1},Un=k=>{if(k){if(console.log("File selected:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),jt(k),Be(!0)),Jn(k)){console.log("File format not supported at all, showing unsupported format modal"),Pn(k),fn(!0);return}Pi(k)?(console.log("File needs preprocessing, showing modal"),Je(k),Ke(!0)):(console.log("File does not need preprocessing, setting directly"),b.length===0?(x(k),_([k])):_(Te=>[...Te,k]))}},er=k=>{if(k){if(console.log("File changed:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),jt(k),Be(!0)),Jn(k)){console.log("File format not supported at all, showing unsupported format modal"),Pn(k),fn(!0);return}Pi(k)?(console.log("File needs preprocessing, showing modal"),Je(k),Ke(!0)):(console.log("File does not need preprocessing, replacing last file"),b.length>1?(_(Te=>{const je=[...Te];return je[je.length-1]=k,je}),b.length===1&&x(k)):(x(k),_([k])))}};async function tr(k){const Me=await k.text();try{return Me?JSON.parse(Me):{}}catch{return{error:Me}}}function Pr(k,Me){const Te=k instanceof Error?k.message:`Failed to ${Me.toLowerCase()}`;alert(Te)}async function nr(){if(b.length!==0){u(!0);try{b.length===1?await Cu():await _s()}catch(k){Pr(k,"Upload")}finally{u(!1)}}}async function Cu(){console.log("DEBUG: Starting single image upload");const k=new FormData;k.append("file",b[0]),k.append("title",fe),k.append("image_type",ce),T&&k.append("source",T),D&&k.append("event_type",D),V&&k.append("epsg",V),te.length>0&&te.forEach(ge=>k.append("countries",ge)),ce==="drone_image"&&(H&&k.append("center_lon",H),ne&&k.append("center_lat",ne),xe&&k.append("amsl_m",xe),G&&k.append("agl_m",G),N&&k.append("heading_deg",N),oe&&k.append("yaw_deg",oe),se&&k.append("pitch_deg",se),J&&k.append("roll_deg",J),Y&&k.append("rtk_fix",Y.toString()),tn&&k.append("std_h_m",tn),lt&&k.append("std_v_m",lt));const Me=localStorage.getItem(Il);Me&&k.append("model_name",Me);const Te=await fetch("/api/images/",{method:"POST",body:k}),je=await tr(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Single upload response:",je),await ei(je,!1)}async function _s(){console.log("DEBUG: Starting multi-image upload");const k=new FormData;b.forEach(ge=>k.append("files",ge)),k.append("title",fe),k.append("image_type",ce),ct.forEach((ge,Re)=>{ge.source&&k.append(`source_${Re}`,ge.source),ge.eventType&&k.append(`event_type_${Re}`,ge.eventType),ge.epsg&&k.append(`epsg_${Re}`,ge.epsg),ge.countries.length>0&&ge.countries.forEach(rt=>k.append(`countries_${Re}`,rt)),ce==="drone_image"&&(ge.centerLon&&k.append(`center_lon_${Re}`,ge.centerLon),ge.centerLat&&k.append(`center_lat_${Re}`,ge.centerLat),ge.amslM&&k.append(`amsl_m_${Re}`,ge.amslM),ge.aglM&&k.append(`agl_m_${Re}`,ge.aglM),ge.headingDeg&&k.append(`heading_deg_${Re}`,ge.headingDeg),ge.yawDeg&&k.append(`yaw_deg_${Re}`,ge.yawDeg),ge.pitchDeg&&k.append(`pitch_deg_${Re}`,ge.pitchDeg),ge.rollDeg&&k.append(`roll_deg_${Re}`,ge.rollDeg),ge.rtkFix&&k.append(`rtk_fix_${Re}`,ge.rtkFix.toString()),ge.stdHM&&k.append(`std_h_m_${Re}`,ge.stdHM),ge.stdVM&&k.append(`std_v_m_${Re}`,ge.stdVM))});const Me=localStorage.getItem(Il);Me&&k.append("model_name",Me);const Te=await fetch("/api/images/multi",{method:"POST",body:k}),je=await tr(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Multi upload response:",je),await ei(je,!0)}async function ei(k,Me){Et(k.image_url),k.preprocessing_info&&typeof k.preprocessing_info=="object"&&"was_preprocessed"in k.preprocessing_info&&k.preprocessing_info.was_preprocessed===!0&&(Ve(k.preprocessing_info),me(!0));const Te=k.image_id;if(!Te)throw new Error("Upload failed: image_id not found");if(cn(Te),Me)if(k.image_ids&&Array.isArray(k.image_ids)){const We=k.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",We),bt(We)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),bt([Te]);else console.log("DEBUG: Storing single image ID:",Te),bt([Te]);const je=k,ge=je.raw_json?.fallback_info;ge&&(Ce({originalModel:ge.original_model,fallbackModel:ge.fallback_model,reason:ge.reason}),Pe(!0));const Re=je.raw_json?.metadata;if(Re){const We=Re.metadata||Re;if(We&&typeof We=="object"){const $t=[];if(Me){const it=We.metadata_images;if(it&&typeof it=="object")for(let Zt=1;Zt<=b.length;Zt++){const mr=`image${Zt}`,co=it[mr];if(co&&typeof co=="object"){const Rt=co;$t.push({source:Rt.source||"",eventType:Rt.type||"",epsg:Rt.epsg||"",countries:Array.isArray(Rt.countries)?Rt.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else $t.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const Zt={source:We.source||"",eventType:We.type||"",epsg:We.epsg||"",countries:Array.isArray(We.countries)?We.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let mr=0;mr0){const it=$t[0];if(We&&typeof We=="object"){const Zt=We.title;Zt&&I(Zt||"")}M(it.source||""),$(it.eventType||""),Z(it.epsg||""),de(it.countries||[]),ce==="drone_image"&&(W(it.centerLon||""),he(it.centerLat||""),be(it.amslM||""),le(it.aglM||""),U(it.headingDeg||""),Se(it.yawDeg||""),re(it.pitchDeg||""),Q(it.rollDeg||""),tt(it.rtkFix||!1),Wt(it.stdHM||""),wt(it.stdVM||""))}}}const rt=je.raw_json?.metadata;rt&&(rt.description&&Qr(rt.description),rt.analysis&&Nr(rt.analysis),rt.recommended_actions&&Fn(rt.recommended_actions)),je.generated&&dn(je.generated),ji("2a")}async function Su(){if(console.log("handleSubmit called with:",{uploadedImageId:Ft,title:fe,draft:Nn}),!Ft)return alert("No image to submit");if(!Yn){Ei(!0);return}try{const k=Lt.length>0?Lt:[Ft];console.log("DEBUG: Submit - Using image IDs:",k),console.log("DEBUG: Submit - uploadedImageIds:",Lt),console.log("DEBUG: Submit - uploadedImageId:",Ft);for(let Re=0;Re{zn(!1),o(1),x(null),_([]),C(null),cn(null),bt([]),Et(null),I(""),M(""),$(""),Z(""),de([]),W(""),he(""),be(""),le(""),U(""),Se(""),re(""),Q(""),tt(!1),Wt(""),wt(""),kn({accuracy:50,context:50,usability:50}),dn(""),Qr(""),Nr(""),Fn(""),ht([]),Pe(!1),Ce(null),me(!1),Ve(null),Ke(!1),Je(null),Tn(!1),ze(""),fn(!1),Pn(null),Be(!1),jt(null),n("/upload",{replace:!0})},lo=y.useCallback(k=>{k==="/upload"||k==="/"||(v.current?(ue(k),z(!0)):n(k))},[n]);async function Mi(){if(K&&v.current)try{await fetch(`/api/images/${v.current}`,{method:"DELETE"}),z(!1),ue(null),n(K)}catch(k){console.error("Failed to delete image before navigation:",k),z(!1),ue(null),n(K)}}const Li=async()=>{if(qe){Tn(!0),ze("Starting file conversion...");try{const k=new FormData;k.append("file",qe),k.append("preprocess_only","true"),ze("Converting file format...");const Me=await fetch("/api/images/preprocess",{method:"POST",body:k});if(!Me.ok)throw new Error("Preprocessing failed");const Te=await Me.json();ze("Finalizing conversion...");const je=atob(Te.processed_content),ge=new Uint8Array(je.length);for(let We=0;We[...We,Re]),C(rt),ze("Conversion complete!"),setTimeout(()=>{Ke(!1),Je(null),Tn(!1),ze("")},1e3)}catch(k){console.error("Preprocessing error:",k),ze("Conversion failed. Please try again."),setTimeout(()=>{Ke(!1),Je(null),Tn(!1),ze("")},2e3)}}},ti=()=>{Ke(!1),Je(null),Tn(!1),ze("")},uo=async k=>{f(!0);try{const Me=k.map(async Re=>{const rt=await fetch(`/api/images/${Re}`);if(!rt.ok)throw new Error(`Failed to fetch image ${Re}`);const We=await rt.json(),$t=await fetch(`/api/images/${Re}/file`);if(!$t.ok)throw new Error(`Failed to fetch image file ${Re}`);const it=await $t.blob(),Zt=We.file_key.split("/").pop()||`contributed_${Re}.png`;return{file:new File([it],Zt,{type:it.type}),imageData:We}}),Te=await Promise.all(Me),je=Te.map(Re=>Re.file),ge=Te[0]?.imageData;_(je),bt(k),k.length===1&&cn(k[0]),je.length>=1&&x(je[0]),ge?.image_type&&O(ge.image_type)}catch(Me){console.error("Failed to fetch contributed images:",Me),alert(`Failed to load contributed images: ${Me instanceof Error?Me.message:"Unknown error"}`)}finally{f(!1)}};return y.useEffect(()=>{Promise.all([fetch("/api/sources").then(k=>k.json()),fetch("/api/types").then(k=>k.json()),fetch("/api/spatial-references").then(k=>k.json()),fetch("/api/image-types").then(k=>k.json()),fetch("/api/countries").then(k=>k.json()),fetch("/api/models").then(k=>k.json())]).then(([k,Me,Te,je,ge,Re])=>{!localStorage.getItem(Il)&&Re?.length&&localStorage.setItem(Il,Re[0].m_code),xt(k),nn(Me),sn(Te),Gr(je),un(ge),k.length>0&&M(k[0].s_code),$("OTHER"),Z("OTHER"),je.length>0&&!e.get("imageType")&&!ce&&O(je[0].image_type)})},[e,ce]),y.useEffect(()=>(window.confirmNavigationIfNeeded=k=>{lo(k)},()=>{delete window.confirmNavigationIfNeeded}),[lo]),y.useEffect(()=>{const k=je=>{if(v.current){const ge="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return je.preventDefault(),je.returnValue=ge,ge}},Me=()=>{v.current&&fetch(`/api/images/${v.current}`,{method:"DELETE"}).catch(console.error)},Te=je=>{const ge=je.target,Re=ge.closest("a[href]")||ge.closest("[data-navigate]");if(Re&&v.current){const rt=Re.getAttribute("href")||Re.getAttribute("data-navigate");rt&&rt!=="#"&&!rt.startsWith("javascript:")&&!rt.startsWith("mailto:")&&(je.preventDefault(),je.stopPropagation(),lo(rt))}};return window.addEventListener("beforeunload",k),document.addEventListener("click",Te,!0),()=>{window.removeEventListener("beforeunload",k),document.removeEventListener("click",Te,!0),Me()}},[lo]),y.useEffect(()=>{if(!m){C(null);return}const k=URL.createObjectURL(m);return C(k),()=>URL.revokeObjectURL(k)},[m]),y.useEffect(()=>{const k=e.get("contribute"),Me=e.get("imageIds");if(k==="true"&&Me){const Te=Me.split(",").filter(je=>je.trim());Te.length>0&&uo(Te)}},[e]),y.useEffect(()=>{i==="2b"&&Ge(0)},[i]),g.jsxs(Gf,{children:[i!==3&&g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:q.uploadContainer,"data-step":i,children:[i===1&&!e.get("step")&&!d&&g.jsx(Ig,{files:b,file:m,preview:w,imageType:ce,onFileChange:Un,onRemoveImage:ia,onAddImage:ra,onImageTypeChange:Jr,onChangeFile:er}),i===1&&e.get("contribute")==="true"&&!d&&b.length>0&&g.jsx(Ig,{files:b,file:m,preview:w,imageType:ce,onFileChange:Un,onRemoveImage:ia,onAddImage:ra,onImageTypeChange:Jr,onChangeFile:er}),s&&g.jsxs("div",{className:q.loadingContainer,children:[g.jsx(Gl,{className:"text-ifrcRed"}),g.jsx("p",{className:q.loadingText,children:"Generating..."})]}),d&&g.jsxs("div",{className:q.loadingContainer,children:[g.jsx(Gl,{className:"text-ifrcRed"}),g.jsx("p",{className:q.loadingText,children:"Loading contribution..."})]}),(i===1&&!s&&!d||i===1&&e.get("contribute")==="true"&&!s&&!d&&b.length>0)&&g.jsx("div",{className:q.generateButtonContainer,children:Gt?g.jsx(He,{name:"generate-from-url",onClick:nr,children:"Generate Caption"}):g.jsx(He,{name:"generate",disabled:b.length===0,onClick:nr,children:"Generate"})}),i==="2a"&&g.jsxs("div",{className:q.step2Layout,children:[g.jsx("div",{className:q.mapColumn,children:g.jsx(Ag,{files:b,imageUrl:Gt,preview:w,onViewFullSize:k=>{Yr(k||null),Kr(!0)}})}),g.jsx("div",{className:q.contentColumn,children:g.jsxs("div",{className:q.metadataSectionCard,children:[g.jsx(Wj,{files:b,imageType:ce,title:fe,source:T,eventType:D,epsg:V,countries:te,centerLon:H,centerLat:ne,amslM:xe,aglM:G,headingDeg:N,yawDeg:oe,pitchDeg:se,rollDeg:J,rtkFix:Y,stdHM:tn,stdVM:lt,metadataArray:ct,sources:gt,types:_t,spatialReferences:bn,imageTypes:En,countriesOptions:ln,onTitleChange:k=>I(k||""),onSourceChange:pr,onEventTypeChange:io,onEpsgChange:Xo,onCountriesChange:oo,onCenterLonChange:ki,onCenterLatChange:ao,onAmslMChange:yu,onAglMChange:wu,onHeadingDegChange:Jo,onYawDegChange:xs,onPitchDegChange:ea,onRollDegChange:Ti,onRtkFixChange:xu,onStdHMChange:ta,onStdVMChange:nt,onImageTypeChange:Jr,updateMetadataForImage:oa}),g.jsxs("div",{className:q.confirmSection,children:[g.jsx(df,{name:"delete",variant:"tertiary",onClick:aa,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(He,{name:"confirm-metadata",onClick:()=>ji("2b"),children:"Next"})]})]})})]}),i==="2b"&&g.jsxs("div",{className:q.step2bLayout,children:[g.jsxs("div",{className:`${q.topRow} ${Yn?q.ratingHidden:""}`,children:[g.jsx("div",{className:q.imageSection,children:g.jsx(Ag,{files:b,imageUrl:Gt,preview:w,onViewFullSize:k=>{Yr(k||null),Kr(!0)},currentImageIndex:jr,onGoToPrevious:Cs,onGoToNext:na,onGoToImage:Ss,showCarousel:!0})}),!Yn&&g.jsx("div",{className:q.metadataSectionCard,children:g.jsx(Gj,{isPerformanceConfirmed:Yn,scores:Kn,onScoreChange:(k,Me)=>kn(Te=>({...Te,[k]:Me})),onConfirmRatings:()=>zn(!0),onEditRatings:()=>zn(!1)})})]}),g.jsx("div",{className:q.metadataSectionCard,children:g.jsx(Zj,{description:Zr,analysis:Er,recommendedActions:kr,onDescriptionChange:k=>Qr(k||""),onAnalysisChange:k=>Nr(k||""),onRecommendedActionsChange:k=>Fn(k||""),onBack:()=>ji("2a"),onDelete:aa,onSubmit:Su,onEditRatings:()=>zn(!1),isPerformanceConfirmed:Yn})})]})]})}),i===3&&g.jsxs("div",{className:q.successContainer,children:[g.jsx(Zi,{level:2,className:q.successHeading,children:"Saved!"}),g.jsx("p",{className:q.successText,children:e.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),g.jsx("div",{className:q.successButton,children:g.jsx(He,{name:"upload-another",onClick:()=>{sa()},children:"Upload Another"})})]}),g.jsx(Qj,{isOpen:$n,imageUrl:Gt,preview:w,selectedImageData:bi,onClose:()=>{Kr(!1),Yr(null)}}),g.jsx(Kj,{isOpen:hr,onClose:()=>Ei(!1)}),g.jsx(Yj,{isOpen:Tr,onConfirm:so,onCancel:()=>j(!1)}),g.jsx(Xj,{isOpen:R,onConfirm:Mi,onCancel:()=>z(!1)}),g.jsx(Jj,{isOpen:Ne,fallbackInfo:ye,onClose:()=>Pe(!1)}),g.jsx(eP,{isOpen:ve,preprocessingInfo:Fe,onClose:()=>me(!1)}),g.jsx(tP,{isOpen:Tt,preprocessingFile:qe,isPreprocessing:Xn,preprocessingProgress:jn,onConfirm:Li,onCancel:ti}),g.jsx(nP,{isOpen:Ni,unsupportedFile:Bn,onClose:()=>fn(!1)}),g.jsx(rP,{isOpen:Xr,oversizedFile:ot,onClose:()=>Be(!1),onCancel:()=>Be(!1)})]})}const iP="_helpContainer_1wavj_1",oP="_helpSection_1wavj_13",aP="_sectionHeader_1wavj_49",sP="_sectionTitle_1wavj_91",lP="_sectionContent_1wavj_105",uP="_guidelinesList_1wavj_119",cP="_buttonContainer_1wavj_181",dt={helpContainer:iP,helpSection:oP,sectionHeader:aP,sectionTitle:sP,sectionContent:lP,guidelinesList:uP,buttonContainer:cP};function dP(){const e=fs(),{setShowReferenceExamples:n}=qj(),i=()=>{e("/upload")},o=()=>{n(!0),e("/explore")},s=()=>{e("/analytics?view=crisis_maps")};return g.jsx(Gf,{className:"py-10",children:g.jsx("div",{className:dt.helpContainer,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Introduction"})}),g.jsx("div",{className:dt.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"upload-now",variant:"secondary",onClick:i,children:"Upload now →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Guidelines"})}),g.jsxs("div",{className:dt.sectionContent,children:["To make the process smoother, please follow the guidelines below:",g.jsxs("ul",{className:dt.guidelinesList,children:[g.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),g.jsx("li",{children:"Confirm the image details prior to modifying the description."}),g.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),g.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"see-examples",variant:"secondary",onClick:o,children:"See examples →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"VLMs"})}),g.jsx("div",{className:dt.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"view-vlm-details",variant:"secondary",onClick:s,children:"View VLM details →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Dataset"})}),g.jsx("div",{className:dt.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"export-dataset",variant:"secondary",onClick:()=>{n(!1),e("/explore"),setTimeout(()=>{const u=document.querySelector('[name="export-dataset"]');u&&u.click()},100)},children:"Export dataset →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Contact us"})}),g.jsx("div",{className:dt.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const fP=y.createContext(void 0),hP=({children:e})=>{const[n,i]=y.useState(!1),[o,s]=y.useState(!0),u=async()=>{const v=localStorage.getItem("adminToken");if(!v){i(!1),s(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`}})).ok?i(!0):(localStorage.removeItem("adminToken"),i(!1))}catch(w){console.error("Error verifying admin token:",w),localStorage.removeItem("adminToken"),i(!1)}finally{s(!1)}},d=async v=>{try{const w=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:v})});if(w.ok){const C=await w.json();return localStorage.setItem("adminToken",C.access_token),i(!0),!0}else return!1}catch(w){return console.error("Login error:",w),!1}},f=()=>{localStorage.removeItem("adminToken"),i(!1)};y.useEffect(()=>{u()},[]);const p={isAuthenticated:n,isLoading:o,login:d,logout:f,verifyToken:u};return g.jsx(fP.Provider,{value:p,children:e})},pP=y.lazy(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),mP=y.lazy(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),gP=y.lazy(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),vP=y.lazy(()=>Qn(()=>import("./index-B3hZqJuM.js"),__vite__mapDeps([9,3,4,5,10])));class yP extends y.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,i){console.error("Error caught by boundary:",n,i)}render(){return this.state.hasError?g.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[g.jsx("h2",{children:"Something went wrong"}),g.jsx("p",{children:"Please refresh the page to try again."}),g.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const yi=e=>{const n=e();return n.catch(()=>{}),n},wP=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{yi(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),yi(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),yi(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),yi(()=>Qn(()=>import("./index-B3hZqJuM.js"),__vite__mapDeps([9,3,4,5,10])))}):setTimeout(()=>{yi(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),yi(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),yi(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),yi(()=>Qn(()=>import("./index-B3hZqJuM.js"),__vite__mapDeps([9,3,4,5,10])))},1e3)},xP=vx([{element:g.jsx(LT,{}),children:[{path:"/",element:g.jsx(Fg,{})},{path:"/upload",element:g.jsx(Fg,{})},{path:"/analytics",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Analytics..."}),children:g.jsx(pP,{})})},{path:"/explore",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Explore..."}),children:g.jsx(mP,{})})},{path:"/help",element:g.jsx(dP,{})},{path:"/admin",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Admin..."}),children:g.jsx(gP,{})})},{path:"/map/:mapId",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Map Details..."}),children:g.jsx(vP,{})})}]}],{basename:"/"});function CP(){const[e,n]=y.useState([]);y.useEffect(()=>{wP()},[]);const i=y.useCallback(f=>{n(p=>Bx([...p,f],v=>v.name)??p)},[n]),o=y.useCallback(f=>{n(p=>{const v=p.findIndex(C=>C.name===f);if(v===-1)return p;const w=[...p];return w.splice(v,1),w})},[n]),s=y.useCallback((f,p)=>{n(v=>{const w=v.findIndex(m=>m.name===f);if(w===-1)return v;const C=[...v];return C[w]={...C[w],...p},C})},[n]),u=y.useMemo(()=>({alerts:e,addAlert:i,removeAlert:o,updateAlert:s}),[e,i,o,s]),d=y.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return g.jsx(yP,{children:g.jsx(Fx.Provider,{value:u,children:g.jsx(i0.Provider,{value:d,children:g.jsx(hP,{children:g.jsx(Vj,{children:g.jsx(Nx,{router:xP})})})})})})}function SP(){return g.jsx(CP,{})}console.log("React version at runtime:",y.version,"createContext exists?",!!y.createContext);V1.createRoot(document.getElementById("root")).render(g.jsx(y.StrictMode,{children:g.jsx(SP,{})}));export{bC as A,Qn as B,EP as C,uf as D,TP as E,Zi as F,qi as G,bP as H,PC as I,MC as J,Qj as K,bT as L,jC as M,Gf as N,kt as O,TC as P,PP as Q,u0 as R,c0 as S,Mg as T,jP as U,fP as V,_P as W,zg as X,Gl as _,$e as a,Mt as b,DP as c,OP as d,NP as e,SC as f,s0 as g,LP as h,MP as i,g as j,dr as k,qx as l,FE as m,He as n,Oe as o,Zx as p,Qa as q,y as r,l0 as s,i0 as t,Dx as u,fs as v,Ko as w,qj as x,kP as y,cr as z}; diff --git a/py_backend/static/assets/index-tDgjKyWF.css "b/py\342\200\224backend/static/index-tDgjKyWF.css" similarity index 100% rename from py_backend/static/assets/index-tDgjKyWF.css rename to "py\342\200\224backend/static/index-tDgjKyWF.css" diff --git a/py_backend/static/index.html "b/py\342\200\224backend/static/index.html" similarity index 78% rename from py_backend/static/index.html rename to "py\342\200\224backend/static/index.html" index 9f4426ee2ae5de06cae51be15a1445ecef9e219c..56c7ace430b4e5d07c241149d74d2c9af5e25309 100644 --- a/py_backend/static/index.html +++ "b/py\342\200\224backend/static/index.html" @@ -42,12 +42,8 @@ }); } - - - - - - + +
diff --git a/py_backend/static/assets/vendor-utils-Db80MiSc.js "b/py\342\200\224backend/static/jszip.min-DHOAM-1s.js" similarity index 99% rename from py_backend/static/assets/vendor-utils-Db80MiSc.js rename to "py\342\200\224backend/static/jszip.min-DHOAM-1s.js" index 19cfd238c6f2166cf5b83b7d079ba453e70dd154..98f672d1d6d68fe1a9375cd9f5060f169210a1b9 100644 --- a/py_backend/static/assets/vendor-utils-Db80MiSc.js +++ "b/py\342\200\224backend/static/jszip.min-DHOAM-1s.js" @@ -1,4 +1,4 @@ -import{j as bt,g as It}from"./vendor-DxpCibxB.js";function vt(yt){throw new Error('Could not dynamically require "'+yt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kt={exports:{}};/*! +import{W as bt,X as It}from"./index-oPRJTRcN.js";function vt(yt){throw new Error('Could not dynamically require "'+yt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kt={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files diff --git a/py_backend/static/manifest.json "b/py\342\200\224backend/static/manifest.json" similarity index 100% rename from py_backend/static/manifest.json rename to "py\342\200\224backend/static/manifest.json" diff --git a/py_backend/static/sw.js "b/py\342\200\224backend/static/sw.js" similarity index 100% rename from py_backend/static/sw.js rename to "py\342\200\224backend/static/sw.js" diff --git "a/py\342\200\224backend/static/useAdmin-DytkUHQc.js" "b/py\342\200\224backend/static/useAdmin-DytkUHQc.js" new file mode 100644 index 0000000000000000000000000000000000000000..a21863b8cde0c8806084cd5e8c08d080480f665e --- /dev/null +++ "b/py\342\200\224backend/static/useAdmin-DytkUHQc.js" @@ -0,0 +1 @@ +import{r,V as e}from"./index-oPRJTRcN.js";const o=()=>{const t=r.useContext(e);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{o as u}; diff --git a/py_backend/static/vite.svg "b/py\342\200\224backend/static/vite.svg" similarity index 100% rename from py_backend/static/vite.svg rename to "py\342\200\224backend/static/vite.svg"