@olaboot/esm-patient-registration-app 9.2.0 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1339.js +1 -0
- package/dist/1339.js.map +1 -0
- package/dist/1480.js +1 -0
- package/dist/1480.js.map +1 -0
- package/dist/1646.js +1 -0
- package/dist/1646.js.map +1 -0
- package/dist/1789.js +1 -0
- package/dist/1789.js.map +1 -0
- package/dist/1869.js +1 -0
- package/dist/1869.js.map +1 -0
- package/dist/1877.js +1 -0
- package/dist/1877.js.map +1 -0
- package/dist/2317.js +1 -0
- package/dist/2317.js.map +1 -0
- package/dist/2416.js +1 -0
- package/dist/2416.js.map +1 -0
- package/dist/2747.js +1 -0
- package/dist/2747.js.map +1 -0
- package/dist/282.js +1 -0
- package/dist/282.js.map +1 -0
- package/dist/2881.js +1 -0
- package/dist/2881.js.map +1 -0
- package/dist/3378.js +1 -0
- package/dist/3378.js.map +1 -0
- package/dist/3720.js +1 -0
- package/dist/3720.js.map +1 -0
- package/dist/3906.js +1 -0
- package/dist/3906.js.map +1 -0
- package/dist/3963.js +1 -0
- package/dist/3963.js.map +1 -0
- package/dist/3989.js +1 -0
- package/dist/3989.js.map +1 -0
- package/dist/4106.js +1 -0
- package/dist/4106.js.map +1 -0
- package/dist/4111.js +1 -0
- package/dist/4111.js.map +1 -0
- package/dist/434.js +1 -0
- package/dist/434.js.map +1 -0
- package/dist/4348.js +1 -0
- package/dist/4348.js.map +1 -0
- package/dist/4383.js +1 -0
- package/dist/4383.js.map +1 -0
- package/dist/4658.js +1 -0
- package/dist/4658.js.map +1 -0
- package/dist/466.js +1 -0
- package/dist/466.js.map +1 -0
- package/dist/4928.js +1 -0
- package/dist/4928.js.map +1 -0
- package/dist/5117.js +1 -0
- package/dist/5117.js.map +1 -0
- package/dist/5132.js +1 -0
- package/dist/5132.js.map +1 -0
- package/dist/5145.js +1 -0
- package/dist/5145.js.map +1 -0
- package/dist/5208.js +43 -0
- package/dist/5208.js.map +1 -0
- package/dist/527.js +1 -0
- package/dist/527.js.map +1 -0
- package/dist/5280.js +1 -0
- package/dist/5280.js.map +1 -0
- package/dist/5338.js +6 -0
- package/dist/5338.js.map +1 -0
- package/dist/5503.js +1 -0
- package/dist/5503.js.map +1 -0
- package/dist/555.js +1 -0
- package/dist/555.js.map +1 -0
- package/dist/556.js +1 -0
- package/dist/556.js.map +1 -0
- package/dist/5644.js +1 -0
- package/dist/5644.js.map +1 -0
- package/dist/5697.js +1 -0
- package/dist/{4024.js.map → 5697.js.map} +1 -1
- package/dist/5940.js +1 -0
- package/dist/5940.js.map +1 -0
- package/dist/6047.js +1 -0
- package/dist/6047.js.map +1 -0
- package/dist/6371.js +1 -0
- package/dist/6371.js.map +1 -0
- package/dist/6377.js +1 -0
- package/dist/6377.js.map +1 -0
- package/dist/6388.js +1 -0
- package/dist/6388.js.map +1 -0
- package/dist/6444.js +1 -0
- package/dist/6444.js.map +1 -0
- package/dist/6508.js +1 -0
- package/dist/6508.js.map +1 -0
- package/dist/6724.js +1 -0
- package/dist/6724.js.map +1 -0
- package/dist/689.js +1 -0
- package/dist/689.js.map +1 -0
- package/dist/6904.js +1 -0
- package/dist/6904.js.map +1 -0
- package/dist/7045.js +1 -0
- package/dist/7045.js.map +1 -0
- package/dist/7175.js +1 -0
- package/dist/7175.js.map +1 -0
- package/dist/7182.js +1 -0
- package/dist/7182.js.map +1 -0
- package/dist/7649.js +1 -0
- package/dist/7649.js.map +1 -0
- package/dist/7742.js +1 -0
- package/dist/7742.js.map +1 -0
- package/dist/7912.js +1 -0
- package/dist/7912.js.map +1 -0
- package/dist/8358.js +1 -0
- package/dist/8358.js.map +1 -0
- package/dist/8359.js +1 -0
- package/dist/8359.js.map +1 -0
- package/dist/8695.js +1 -0
- package/dist/8695.js.map +1 -0
- package/dist/903.js +1 -0
- package/dist/903.js.map +1 -0
- package/dist/9061.js +1 -0
- package/dist/9061.js.map +1 -0
- package/dist/9072.js +1 -0
- package/dist/9072.js.map +1 -0
- package/dist/9397.js +1 -0
- package/dist/9397.js.map +1 -0
- package/dist/9712.js +1 -0
- package/dist/9712.js.map +1 -0
- package/dist/9771.js +1 -0
- package/dist/9771.js.map +1 -0
- package/dist/9806.js +1 -0
- package/dist/9806.js.map +1 -0
- package/dist/9816.js +1 -0
- package/dist/9816.js.map +1 -0
- package/dist/main.js +7 -6
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-registration-app.js +6 -0
- package/dist/{olaboot-esm-patient-registration-app.js.buildmanifest.json → openmrs-esm-patient-registration-app.js.buildmanifest.json} +540 -455
- package/dist/openmrs-esm-patient-registration-app.js.map +1 -0
- package/dist/routes.json +1 -1
- package/package.json +8 -9
- package/src/add-patient-link.extension.tsx +3 -2
- package/src/add-patient-link.test.tsx +2 -1
- package/src/config-schema.ts +1 -1
- package/src/index.ts +2 -24
- package/src/nav-link.test.tsx +1 -0
- package/src/offline.resources.ts +97 -31
- package/src/patient-registration/before-save-prompt.test.tsx +199 -0
- package/src/patient-registration/field/__mocks__/field.resource.ts +8 -7
- package/src/patient-registration/field/address/address-field.component.tsx +10 -13
- package/src/patient-registration/field/address/address-hierarchy-levels.component.tsx +6 -1
- package/src/patient-registration/field/address/address-hierarchy.test.tsx +191 -198
- package/src/patient-registration/field/address/address-search.component.tsx +20 -8
- package/src/patient-registration/field/address/address-search.scss +19 -2
- package/src/patient-registration/field/address/address-search.test.tsx +249 -57
- package/src/patient-registration/field/address/custom-address-field.component.tsx +1 -1
- package/src/patient-registration/field/cause-of-death/cause-of-death.component.tsx +1 -1
- package/src/patient-registration/field/cause-of-death/cause-of-death.test.tsx +251 -0
- package/src/patient-registration/field/custom-field.component.tsx +1 -1
- package/src/patient-registration/field/date-and-time-of-death/date-and-time-of-death.component.tsx +1 -1
- package/src/patient-registration/field/date-and-time-of-death/date-and-time-of-death.test.tsx +144 -0
- package/src/patient-registration/field/dob/dob.component.tsx +2 -2
- package/src/patient-registration/field/dob/dob.test.tsx +370 -54
- package/src/patient-registration/field/field.component.tsx +1 -1
- package/src/patient-registration/field/field.resource.ts +2 -2
- package/src/patient-registration/field/field.test.tsx +25 -22
- package/src/patient-registration/field/gender/gender-field.test.tsx +240 -54
- package/src/patient-registration/field/id/id-field.component.tsx +15 -5
- package/src/patient-registration/field/id/id-field.test.tsx +103 -47
- package/src/patient-registration/field/id/identifier-selection-overlay.test.tsx +346 -0
- package/src/patient-registration/field/name/name-field.component.tsx +2 -2
- package/src/patient-registration/field/name/name-field.test.tsx +282 -0
- package/src/patient-registration/field/obs/obs-field.test.tsx +294 -118
- package/src/patient-registration/field/person-attributes/coded-person-attribute-field.test.tsx +172 -108
- package/src/patient-registration/field/person-attributes/location-person-attribute-field.component.tsx +3 -3
- package/src/patient-registration/field/person-attributes/location-person-attribute-field.resource.tsx +2 -5
- package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +2 -2
- package/src/patient-registration/field/person-attributes/person-attribute-field.test.tsx +249 -131
- package/src/patient-registration/field/person-attributes/person-attributes.resource.ts +1 -1
- package/src/patient-registration/field/person-attributes/text-person-attribute-field.test.tsx +98 -70
- package/src/patient-registration/field/phone/phone-field.test.tsx +100 -0
- package/src/patient-registration/form-manager.test.ts +6 -5
- package/src/patient-registration/form-manager.ts +5 -2
- package/src/patient-registration/input/basic-input/input/input.component.tsx +3 -121
- package/src/patient-registration/input/basic-input/input/input.test.tsx +151 -51
- package/src/patient-registration/input/basic-input/select/select-input.test.tsx +113 -33
- package/src/patient-registration/input/combo-input/combo-input.component.tsx +60 -24
- package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +10 -101
- package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +144 -108
- package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +241 -177
- package/src/patient-registration/input/custom-input/identifier/utils.test.ts +47 -8
- package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +12 -12
- package/src/patient-registration/input/dummy-data/dummy-data-input.test.tsx +52 -20
- package/src/patient-registration/input/input.scss +1 -2
- package/src/patient-registration/patient-registration-context.ts +5 -3
- package/src/patient-registration/patient-registration-hooks.ts +4 -12
- package/src/patient-registration/patient-registration-utils.test.ts +2 -1
- package/src/patient-registration/patient-registration-utils.ts +2 -98
- package/src/patient-registration/patient-registration.component.tsx +50 -46
- package/src/patient-registration/patient-registration.resource.test.tsx +4 -7
- package/src/patient-registration/patient-registration.resource.ts +1 -4
- package/src/patient-registration/patient-registration.scss +16 -3
- package/src/patient-registration/patient-registration.test.tsx +99 -65
- package/src/patient-registration/patient-registration.types.ts +17 -28
- package/src/patient-registration/section/death-info/death-info-section.test.tsx +130 -34
- package/src/patient-registration/section/demographics/demographics-section.test.tsx +122 -68
- package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +15 -15
- package/src/patient-registration/section/patient-relationships/relationships-section.test.tsx +278 -84
- package/src/patient-registration/section/section-wrapper.component.tsx +1 -1
- package/src/patient-registration/ui-components/overlay/overlay.test.tsx +104 -0
- package/src/patient-registration/validation/patient-registration-validation.test.ts +2 -1
- package/src/patient-registration/validation/patient-registration-validation.ts +9 -3
- package/src/root.component.tsx +2 -5
- package/src/widgets/cancel-patient-edit.test.tsx +48 -11
- package/src/widgets/delete-identifier-confirmation.test.tsx +77 -24
- package/src/widgets/edit-patient-details-button.component.tsx +14 -18
- package/src/widgets/edit-patient-details-button.scss +2 -2
- package/src/widgets/edit-patient-details-button.test.tsx +11 -13
- package/translations/am.json +9 -4
- package/translations/ar.json +9 -4
- package/translations/ar_SY.json +9 -4
- package/translations/bn.json +9 -4
- package/translations/cs.json +9 -4
- package/translations/de.json +120 -115
- package/translations/en.json +9 -4
- package/translations/en_US.json +9 -4
- package/translations/es.json +9 -4
- package/translations/es_MX.json +9 -4
- package/translations/fr.json +9 -4
- package/translations/he.json +9 -4
- package/translations/hi.json +9 -4
- package/translations/hi_IN.json +9 -4
- package/translations/id.json +9 -4
- package/translations/it.json +9 -4
- package/translations/ka.json +9 -4
- package/translations/km.json +9 -4
- package/translations/ku.json +9 -4
- package/translations/ky.json +9 -4
- package/translations/lg.json +9 -4
- package/translations/ne.json +9 -4
- package/translations/pl.json +9 -4
- package/translations/pt.json +9 -4
- package/translations/pt_BR.json +10 -5
- package/translations/qu.json +9 -4
- package/translations/ro_RO.json +9 -4
- package/translations/ru_RU.json +9 -4
- package/translations/si.json +9 -4
- package/translations/sq.json +9 -4
- package/translations/sw.json +9 -4
- package/translations/sw_KE.json +9 -4
- package/translations/tr.json +9 -4
- package/translations/tr_TR.json +9 -4
- package/translations/uk.json +9 -4
- package/translations/uz.json +9 -4
- package/translations/uz@Latn.json +9 -4
- package/translations/uz_UZ.json +9 -4
- package/translations/vi.json +9 -4
- package/translations/zh.json +50 -45
- package/translations/zh_CN.json +9 -4
- package/translations/zh_TW.json +9 -4
- package/vitest.config.ts +4 -0
- package/ADDRESS_CONFIGURATION.md +0 -152
- package/IDENTIFIER_CONFIGURATION.md +0 -142
- package/IMPLEMENTATION_SUMMARY.md +0 -111
- package/QUICK_START.md +0 -95
- package/address-required-fields-config.json +0 -26
- package/dist/126.js +0 -1
- package/dist/15.js +0 -1
- package/dist/1564.js +0 -1
- package/dist/1567.js +0 -1
- package/dist/1845.js +0 -1
- package/dist/1953.js +0 -1
- package/dist/200.js +0 -1
- package/dist/200.js.map +0 -1
- package/dist/215.js +0 -1
- package/dist/2178.js +0 -1
- package/dist/250.js +0 -1
- package/dist/250.js.map +0 -1
- package/dist/2523.js +0 -1
- package/dist/2523.js.map +0 -1
- package/dist/2566.js +0 -1
- package/dist/2586.js +0 -1
- package/dist/2586.js.map +0 -1
- package/dist/2716.js +0 -1
- package/dist/2716.js.map +0 -1
- package/dist/2759.js +0 -1
- package/dist/2821.js +0 -6
- package/dist/2821.js.map +0 -1
- package/dist/3089.js +0 -1
- package/dist/3089.js.map +0 -1
- package/dist/3230.js +0 -1
- package/dist/3441.js +0 -1
- package/dist/3565.js +0 -1
- package/dist/3571.js +0 -1
- package/dist/3571.js.map +0 -1
- package/dist/3746.js +0 -1
- package/dist/3925.js +0 -1
- package/dist/3946.js +0 -1
- package/dist/4024.js +0 -1
- package/dist/4744.js +0 -1
- package/dist/4744.js.map +0 -1
- package/dist/4809.js +0 -1
- package/dist/4894.js +0 -1
- package/dist/4970.js +0 -1
- package/dist/4970.js.map +0 -1
- package/dist/5130.js +0 -1
- package/dist/5187.js +0 -1
- package/dist/5491.js +0 -1
- package/dist/5491.js.map +0 -1
- package/dist/5595.js +0 -1
- package/dist/5961.js +0 -1
- package/dist/6133.js +0 -1
- package/dist/634.js +0 -1
- package/dist/634.js.map +0 -1
- package/dist/6456.js +0 -1
- package/dist/6466.js +0 -1
- package/dist/6613.js +0 -1
- package/dist/6783.js +0 -1
- package/dist/7073.js +0 -38
- package/dist/7073.js.map +0 -1
- package/dist/7154.js +0 -1
- package/dist/7154.js.map +0 -1
- package/dist/7348.js +0 -1
- package/dist/7439.js +0 -1
- package/dist/7439.js.map +0 -1
- package/dist/7543.js +0 -1
- package/dist/7607.js +0 -1
- package/dist/772.js +0 -1
- package/dist/7984.js +0 -1
- package/dist/7984.js.map +0 -1
- package/dist/8538.js +0 -1
- package/dist/8538.js.map +0 -1
- package/dist/8599.js +0 -1
- package/dist/8727.js +0 -1
- package/dist/8847.js +0 -1
- package/dist/9015.js +0 -1
- package/dist/906.js +0 -1
- package/dist/9065.js +0 -1
- package/dist/9182.js +0 -1
- package/dist/9339.js +0 -1
- package/dist/9453.js +0 -1
- package/dist/9833.js +0 -1
- package/dist/9833.js.map +0 -1
- package/dist/9856.js +0 -1
- package/dist/9856.js.map +0 -1
- package/dist/9920.js +0 -1
- package/dist/9938.js +0 -1
- package/dist/9943.js +0 -1
- package/dist/9943.js.map +0 -1
- package/dist/olaboot-esm-patient-registration-app.js +0 -5
- package/dist/olaboot-esm-patient-registration-app.js.map +0 -1
- package/example-config.json +0 -14
- package/jest.config.js +0 -3
- package/src/resource.ts +0 -12
package/dist/7912.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["7912"],{93099(e){e.exports=JSON.parse('{"addPatient":"Agregar paciente","addRelationshipButtonText":"Agregar Relaci\xf3n","addressHeader":"Direcci\xf3n","allFieldsRequiredText":"Todos los campos son obligatorios, a menos que est\xe9n marcados como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"La fecha de nacimiento no puede estar en el futuro","birthdayNotOver140YearsAgo":"La fecha de nacimiento no puede ser de hace m\xe1s de 140 a\xf1os","birthdayRequired":"La fecha de nacimiento es obligatoria","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de muerte","closeOverlay":"Cerrar venta superpuesta","codedPersonAttributeAnswerSetEmpty":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un conjunto de conceptos de respuesta con UUID \'{{answerConceptSetUuid}}\' que no tiene ninguna respuesta de concepto.","codedPersonAttributeAnswerSetInvalid":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un conjunto de conceptos de respuesta con UUID \'{{answerConceptSetUuid}}\' inv\xe1lido.","codedPersonAttributeNoAnswerSet":"El campo de atributo de persona \'{{codedPersonAttributeFieldId}}\' es de tipo \'codificado\', pero se ha definido sin un UUID para el conjunto de conceptos de respuesta. La clave \'answerConceptSetUuid\' es obligatoria.","configure":"Configurar","configureIdentifiers":"Configurar identificadores","confirmDiscardChangesBody":"Sus cambios sin guardar se perder\xe1n si procede a descartar el formulario","confirmDiscardChangesTitle":"\xbfEst\xe1 seguro de que desea descartar estos cambios?","confirmIdentifierDeletionText":"\xbfEst\xe1 seguro de que desea quitar este identificador?","contactSection":"Detalles de Contacto","createNewPatient":"Crear nuevo paciente","dateOfBirthLabelText":"Fecha de nacimiento","deathCauseRequired":"La causa de muerte es obligatoria","deathDateInFuture":"La fecha de fallecimiento no puede estar en el futuro","deathDateInputLabel":"Fecha de fallecimiento","deathDateRequired":"La fecha de fallecimiento es obligatoria","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"La fecha de fallecimiento es obligatoria cuando el paciente est\xe1 marcado como fallecido","deathdayNotInTheFuture":"","deathSection":"Informaci\xf3n de Fallecimiento","deathTimeFormatInvalid":"El formato de hora es inv\xe1lido","deathTimeFormatRequired":"El formato de hora es obligatorio","deathTimeInvalid":"La hora no coincide con el formato \'hh:mm\'","deathTimeRequired":"La hora de fallecimiento es requerida","deleteIdentifierModalHeading":"\xbfQuitar identificador?","deleteIdentifierModalText":"tiene un valor de","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Informaci\xf3n B\xe1sica","discard":"Descartar","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"\xbfSe conoce la Fecha de Nacimiento?","editIdentifierTooltip":"Editar","editPatientDetails":"Editar detalles del paciente","enterNonCodedCauseOfDeath":"Ingresar causa de muerte no codificada","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error al obtener causas de muerte codificadas","errorFetchingOrderedFields":"Ocurri\xf3 un error al obtener campos ordenados para la jerarqu\xeda de direcciones","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en a\xf1os","familyNameLabelText":"Apellidos","familyNameRequired":"Los apellidos son obligatorios","female":"Femenino","fieldsWithErrors":"Los siguientes campos tienen errores:","fullNameLabelText":"Nombre Completo","genderLabelText":"Sexo","genderRequired":"El g\xe9nero es obligatorio","genderUnspecified":"G\xe9nero no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Seleccione los identificadores que le gustar\xeda agregar para este paciente:","inputDummyData":"Input Dummy Data","invalidEmail":"Email inv\xe1lido","invalidInput":"Entrada inv\xe1lida","isDeadInputLabel":"Fallecido","jumpTo":"Saltar a","loading":"Loading","male":"Masculino","middleNameLabelText":"Segundo Nombre","negativeMonths":"Los meses estimados no pueden ser negativos","negativeYears":"Los a\xf1os estimados no pueden ser negativos","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Causa de muerte no codificada","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Los a\xf1os estimados no pueden ser mayores a 140","numberInNameDubious":"El n\xfamero en el nombre es dudoso","obsFieldUnknownDatatype":"El concepto para el campo de observaci\xf3n \'{{fieldDefinitionId}}\' tiene un tipo de dato desconocido \'{{datatypeName}}\'","optional":"opcional","optionalIdentifierLabel":"{{identifierName}} (opcional)","other":"Otro","patientNameKnown":"\xbfEl Nombre del Paciente es Conocido?","refreshOrContactAdmin":"Intente refrescar la p\xe1gina o contactar al administrador de su sistema","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"El paciente ahora se puede encontrar busc\xe1ndolo por su nombre o n\xfamero de identificaci\xf3n","registerPatientSuccessSnackbarTitle":"Nuevo Paciente Creado","registrationErrorSnackbarTitle":"El registro del paciente fall\xf3","relationship":"Relaci\xf3n","relationshipPersonMustExist":"La persona relacionada tiene que ser una persona existente","relationshipPlaceholder":"Relaci\xf3n","relationshipRemovedText":"Relaci\xf3n quitada","relationshipsSection":"Relaciones","relationshipToPatient":"Relaci\xf3n con el paciente","relativeFullNameLabelText":"Nombre completo","relativeNamePlaceholder":"Nombre Apellido","removeIdentifierButton":"Quitar identificador","resetIdentifierTooltip":"Restablecer","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar direcci\xf3n","searchIdentifierPlaceholder":"Buscar identificador","searching":"Searching...","searchLocationPersonAttribute":"Buscar ubicaci\xf3n","selectAnOption":"Seleccione una opci\xf3n","sexFieldLabelText":"Sexo","source":"Fuente","submitting":"Enviando","timeFormat":"Formato de Hora","timeOfDeathInputLabel":"Hora de fallecimiento (hh:mm)","unableToFetch":"No se pudo obtener el tipo de atributo de persona - {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"El tipo de atributo del paciente tiene un formato desconocido {{personAttributeTypeFormat}}","updatePatient":"Actualizar paciente","updatePatientErrorSnackbarTitle":"La actualizaci\xf3n de los detalles del paciente fall\xf3","updatePatientSuccessSnackbarSubtitle":"La informaci\xf3n del paciente ha sido actualizada exitosamente","updatePatientSuccessSnackbarTitle":"Detalles del Paciente Actualizados","yearsEstimateRequired":"Los a\xf1os estimados son obligatorios","yes":"S\xed"}')}}]);
|
package/dist/7912.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"7912.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\es.json"],"names":["JSON"],"mappings":"sKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,ikO"}
|
package/dist/8358.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["8358"],{35173(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","inputDummyData":"Input Dummy Data","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","loading":"Loading","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searching":"Searching...","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
|
package/dist/8358.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"8358.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\qu.json"],"names":["JSON"],"mappings":"sKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,qsM"}
|
package/dist/8359.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["8359"],{60986(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","inputDummyData":"Input Dummy Data","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","loading":"Loading","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searching":"Searching...","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
|
package/dist/8359.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"8359.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\ru_RU.json"],"names":["JSON"],"mappings":"sKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,qsM"}
|
package/dist/8695.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["8695"],{64618(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","inputDummyData":"Input Dummy Data","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","loading":"Loading","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searching":"Searching...","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
|
package/dist/8695.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"8695.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\lg.json"],"names":["JSON"],"mappings":"sKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,qsM"}
|
package/dist/903.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["903"],{88618(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","inputDummyData":"Input Dummy Data","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","loading":"Loading","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searching":"Searching...","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
|
package/dist/903.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"903.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\sw_KE.json"],"names":["JSON"],"mappings":"qKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,qsM"}
|
package/dist/9061.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["9061"],{29876(e,t,r){r.r(t),r.d(t,{default:()=>c,immutable:()=>o});var n=r(43046),i=r.n(n),a=r(58139),u=r(70451);let s=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),d={dedupe:!0};u.OBJECT.defineProperty(u.SWRConfig,"defaultValue",{value:u.defaultConfig});let l=(0,u.withArgs)((e,t,r)=>{let{cache:i,compare:l,suspense:o,fallbackData:c,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:R,refreshWhenOffline:U,keepPreviousData:_}=r,[v,T,h,p]=u.SWRGlobalState.get(i),[V,b]=(0,u.serialize)(e),C=(0,n.useRef)(!1),m=(0,n.useRef)(!1),L=(0,n.useRef)(V),S=(0,n.useRef)(t),w=(0,n.useRef)(r),I=()=>w.current.isVisible()&&w.current.isOnline(),[O,k,A,N]=(0,u.createCacheHelper)(i,V),y=(0,n.useRef)({}).current,D=(0,u.isUndefined)(c)?r.fallback[V]:c,F=(e,t)=>{for(let r in y)if("data"===r){if(!l(e[r],t[r])&&(!(0,u.isUndefined)(e[r])||!l(z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},P=(0,n.useMemo)(()=>{let e=!!V&&!!t&&((0,u.isUndefined)(f)?!w.current.isPaused()&&!o&&(!!(0,u.isUndefined)(E)||E):f),r=t=>{let r=(0,u.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=O(),i=N(),a=r(n),s=n===i?a:r(i),d=a;return[()=>{let e=r(O());return F(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>s]},[i,V]),M=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>A(V,(t,r)=>{F(r,t)||e()}),[i,V]),P[0],P[1]),j=!C.current,G=v[V]&&v[V].length>0,W=M.data,Y=(0,u.isUndefined)(W)?D:W,q=M.error,x=(0,n.useRef)(Y),z=_?(0,u.isUndefined)(W)?x.current:W:Y,B=(!G||!!(0,u.isUndefined)(q))&&(j&&!(0,u.isUndefined)(f)?f:!w.current.isPaused()&&(o?!(0,u.isUndefined)(Y)&&E:(0,u.isUndefined)(Y)||E)),H=!!(V&&t&&j&&B),J=(0,u.isUndefined)(M.isValidating)?H:M.isValidating,K=(0,u.isUndefined)(M.isLoading)?H:M.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,i=S.current;if(!V||!i||m.current||w.current.isPaused())return!1;let a=!0,s=e||{},d=!h[V]||!s.dedupe,o=()=>u.IS_REACT_LEGACY?!m.current&&V===L.current&&C.current:V===L.current,c={isValidating:!1,isLoading:!1},f=()=>{k(c)},E=()=>{let e=h[V];e&&e[1]===n&&delete h[V]},g={isValidating:!0};(0,u.isUndefined)(O().data)&&(g.isLoading=!0);try{if(d&&(k(g),r.loadingTimeout&&(0,u.isUndefined)(O().data)&&setTimeout(()=>{a&&o()&&w.current.onLoadingSlow(V,r)},r.loadingTimeout),h[V]=[i(b),(0,u.getTimestamp)()]),[t,n]=h[V],t=await t,d&&setTimeout(E,r.dedupingInterval),!h[V]||h[V][1]!==n)return d&&o()&&w.current.onDiscarded(V),!1;c.error=u.UNDEFINED;let e=T[V];if(!(0,u.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),d&&o()&&w.current.onDiscarded(V),!1;let s=O().data;c.data=l(s,t)?s:t,d&&o()&&w.current.onSuccess(t,V,r)}catch(r){E();let e=w.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,d&&o()&&(e.onError(r,V,e),(!0===t||(0,u.isFunction)(t)&&t(r))&&(!w.current.revalidateOnFocus||!w.current.revalidateOnReconnect||I())&&e.onErrorRetry(r,V,e,e=>{let t=v[V];t&&t[0]&&t[0](u.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[V,i]),X=(0,n.useCallback)((...e)=>(0,u.internalMutate)(i,L.current,...e),[]);if((0,u.useIsomorphicLayoutEffect)(()=>{S.current=t,w.current=r,(0,u.isUndefined)(W)||(x.current=W)}),(0,u.useIsomorphicLayoutEffect)(()=>{if(!V)return;let e=Q.bind(u.UNDEFINED,d),t=0,r=(0,u.subscribeCallback)(V,v,(r,n={})=>{if(r==u.revalidateEvents.FOCUS_EVENT){let r=Date.now();w.current.revalidateOnFocus&&r>t&&I()&&(t=r+w.current.focusThrottleInterval,e())}else if(r==u.revalidateEvents.RECONNECT_EVENT)w.current.revalidateOnReconnect&&I()&&e();else if(r==u.revalidateEvents.MUTATE_EVENT)return Q();else if(r==u.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(n)});return m.current=!1,L.current=V,C.current=!0,k({_k:b}),B&&((0,u.isUndefined)(Y)||u.IS_SERVER?e():(0,u.rAF)(e)),()=>{m.current=!0,r()}},[V]),(0,u.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,u.isFunction)(g)?g(O().data):g;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!O().error&&(R||w.current.isVisible())&&(U||w.current.isOnline())?Q(d).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,R,U,V]),(0,n.useDebugValue)(z),o&&(0,u.isUndefined)(Y)&&V){if(!u.IS_REACT_LEGACY&&u.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");S.current=t,w.current=r,m.current=!1;let e=p[V];if((0,u.isUndefined)(e)||s(X(e)),(0,u.isUndefined)(q)){let e=Q(d);(0,u.isUndefined)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw q}return{mutate:X,get data(){return y.data=!0,z},get error(){return y.error=!0,q},get isValidating(){return y.isValidating=!0,J},get isLoading(){return y.isLoading=!0,K}}}),o=e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)),c=(0,u.withMiddleware)(l,o)}}]);
|
package/dist/9061.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9061.js","sources":["webpack://@olaboot/esm-patient-registration-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["i","s","f","setTimeout","u","Date","clearTimeout","Error"],"mappings":"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"}
|
package/dist/9072.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["9072"],{60723(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayBeforeBirthday":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingAddresses":"Error fetching address results","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","errorFetchingResults":"Error fetching results","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","inputDummyData":"Input Dummy Data","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","loading":"Loading","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","noAddressResults":"No matching addresses found","noMatchingResults":"No matching results","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequiredWhenSelected":"Non-coded cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searching":"Searching...","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
|
package/dist/9072.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9072.js","sources":["webpack://@olaboot/esm-patient-registration-app/json|C:\\Dev Codes\\NMRS 3.x\\openmrs-esm-patient-management\\packages\\esm-patient-registration-app\\translations\\uk.json"],"names":["JSON"],"mappings":"sKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,qsM"}
|
package/dist/9397.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["9397"],{17828(e,t,n){n.r(t),n.d(t,{default:()=>o});var l=n(43046),i=n.n(l),a=n(42260),r=n(20335);let o=function(e){var t=e.closeModal,n=e.deleteIdentifier,l=e.identifierName,o=e.identifierValue,d=(0,a.useTranslation)().t;return i().createElement(i().Fragment,null,i().createElement(r.rQ0,{closeModal:t,title:d("deleteIdentifierModalHeading","Delete identifier?")}),i().createElement(r.cwr,null,i().createElement("p",null,l&&o&&i().createElement("span",null,i().createElement("strong",null,l),d("deleteIdentifierModalText"," has a value of ")," ",i().createElement("strong",null,o),"."," "),d("confirmIdentifierDeletionText","Are you sure you want to delete this identifier?"))),i().createElement(r.jlY,null,i().createElement(r.$nd,{kind:"secondary",size:"lg",onClick:t},d("cancel","Cancel")),i().createElement(r.$nd,{kind:"danger",size:"lg",onClick:function(){return n(!0)}},d("removeIdentifierButton","Remove identifier"))))}}}]);
|
package/dist/9397.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9397.js","sources":["webpack://@olaboot/esm-patient-registration-app/./src/widgets/delete-identifier-confirmation.modal.tsx"],"names":["closeModal","deleteIdentifier","identifierName","identifierValue","t","useTranslation","ModalHeader","ModalBody","ModalFooter","Button","onClick"],"mappings":"sPA+CA,MApC4F,Y,IAC1FA,EAAAA,EAAAA,UAAU,CACVC,EAAAA,EAAAA,gBAAgB,CAChBC,EAAAA,EAAAA,cAAc,CACdC,EAAAA,EAAAA,eAAe,CAEPC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CAET,OACE,oCACE,kBAACE,EAAAA,GAAWA,CAAAA,CACV,WAAYN,EACZ,MAAOI,EAAE,+BAAgC,qB,GAC3C,kBAACG,EAAAA,GAASA,CAAAA,KACR,kBAAC,SACEL,GAAkBC,GACjB,kBAAC,YACC,kBAAC,cAAQD,GACRE,EAAE,4BAA6B,oBAAoB,IAAC,kBAAC,cAAQD,GAAyB,IAAE,KAG5FC,EAAE,gCAAiC,sDAGxC,kBAACI,EAAAA,GAAWA,CAAAA,KACV,kBAACC,EAAAA,GAAMA,CAAAA,CAAC,KAAK,YAAY,KAAK,KAAK,QAAST,C,EACzCI,EAAE,SAAU,WAEf,kBAACK,EAAAA,GAAMA,CAAAA,CAAC,KAAK,SAAS,KAAK,KAAKC,QAAS,W,OAAMT,EAAiB,G,GAC7DG,EAAE,yBAA0B,uBAKvC,C"}
|
package/dist/9712.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["9712"],{27059(e,t,r){r.r(t),r.d(t,{useFetchers:()=>r_,unstable_HistoryRouter:()=>rp,useLoaderData:()=>tD,ScrollRestoration:()=>rw,Route:()=>tz,MemoryRouter:()=>tN,useMatches:()=>tP,redirect:()=>Z,useOutletContext:()=>ts,createRoutesFromElements:()=>tq,useLinkClickHandler:()=>rR,useRouteError:()=>t_,generatePath:()=>O,replace:()=>et,useHref:()=>te,useParams:()=>tc,UNSAFE_ViewTransitionContext:()=>rn,useRoutes:()=>th,useSubmit:()=>rD,UNSAFE_NavigationContext:()=>e5,Navigate:()=>tB,UNSAFE_ErrorResponseImpl:()=>er,UNSAFE_FetchersContext:()=>ra,useAsyncError:()=>tT,createRoutesFromChildren:()=>tq,unstable_usePrompt:()=>rM,useFetcher:()=>rk,useBlocker:()=>tj,createHashRouter:()=>rt,UNSAFE_useRouteId:()=>tR,useMatch:()=>ta,useNavigation:()=>tx,HashRouter:()=>rf,useFormAction:()=>rL,useResolvedPath:()=>td,defer:()=>Q,Router:()=>tH,Routes:()=>tW,useActionData:()=>tk,useRouteLoaderData:()=>tL,Await:()=>t$,matchPath:()=>F,UNSAFE_DataRouterContext:()=>e4,BrowserRouter:()=>rh,NavigationType:()=>c,Form:()=>rb,UNSAFE_RouteContext:()=>e9,createSearchParams:()=>t4,RouterProvider:()=>rc,UNSAFE_LocationContext:()=>e8,parsePath:()=>D,Outlet:()=>tI,createMemoryRouter:()=>tQ,UNSAFE_useScrollRestoration:()=>rU,useNavigate:()=>ti,matchRoutes:()=>A,createPath:()=>P,resolvePath:()=>I,useInRouterContext:()=>tt,useOutlet:()=>tu,useAsyncValue:()=>tA,useViewTransitionState:()=>rO,Link:()=>ry,AbortedDeferredError:()=>X,renderMatches:()=>tX,NavLink:()=>rg,UNSAFE_DataRouterStateContext:()=>e2,json:()=>q,useSearchParams:()=>rx,redirectDocument:()=>ee,useBeforeUnload:()=>rj,useLocation:()=>tr,createBrowserRouter:()=>re,isRouteErrorResponse:()=>en,useNavigationType:()=>tn,useRevalidator:()=>tC});var n,a,o,i,l,s,u,c,d,h,f,p=r(43046),m=r(43144),v=r.t(m,2);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let g="popstate";function b(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=C(t?t[o].pathname:"/",e,r,n);return R("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:P(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?D(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return C("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:P(t)},null,e)}function E(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=D(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),C("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:P(t))},function(e,t){R("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function S(e,t){if(!1===e||null==e)throw Error(t)}function R(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function x(e,t){return{usr:e.state,key:e.key,idx:t}}function C(e,t,r,n){return void 0===r&&(r=null),y({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?D(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function P(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 D(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 L(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:P(e);return S(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(y({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(g,h),s=e,()=>{a.removeEventListener(g,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=C(p.location,e,t);r&&r(n,e);let h=x(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=C(p.location,e,t);r&&r(n,e);let a=x(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let k=new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(S(!0!==e.index||!e.children,"Cannot specify children on an index route"),S(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=y({},e,t(e),{id:i});return n[i]=r,r}{let r=y({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=_(e.children,t,o,n)),r}})}function A(e,t,r){return void 0===r&&(r="/"),T(e,t,r,!1)}function T(e,t,r,n){let a=B(("string"==typeof t?D(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(S(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=V([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(S(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(M)&&(c+=-2),s&&(c+=2),u.filter(e=>!M(e)).reduce((e,t)=>e+(j.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=N(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=F({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=F({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:V([o,c.pathname]),pathnameBase:J(V([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=V([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function U(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let j=/^:[\w-]+$/,M=e=>"*"===e;function O(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(R(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return S("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function F(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),R("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function N(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return R(!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 B(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 I(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?D(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:K(o),hash:Y(i)}}function z(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 <Link to="..."> and the router will parse it for you.'}function H(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function W(e,t){let r=H(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function $(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=D(e):(S(!(a=y({},e)).pathname||!a.pathname.includes("?"),z("?","pathname","search",a)),S(!a.pathname||!a.pathname.includes("#"),z("#","pathname","hash",a)),S(!a.search||!a.search.includes("#"),z("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=I(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let V=e=>e.join("/").replace(/\/\/+/g,"/"),J=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",q=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),y({},r,{headers:n}))};class X extends Error{}class G{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],S(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new X("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof X)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return S(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let Q=function(e,t){return void 0===t&&(t={}),new G(e,"number"==typeof t?{status:t}:t)},Z=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,y({},r,{headers:n}))},ee=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},et=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Replace","true"),r};class er{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function en(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let ea=["post","put","patch","delete"],eo=new Set(ea),ei=new Set(["get",...ea]),el=new Set([301,302,303,307,308]),es=new Set([307,308]),eu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ed={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ef=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ep="remix-router-transitions";function em(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(S(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ef;let h={},f=_(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eC,v=e.patchRoutesOnNavigation,g=y({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,w=new Set,E=null,x=null,P=null,D=null!=e.hydrationData,L=A(f,e.history.location,p),k=!1,j=null;if(null==L&&!v){let t=eN(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eF(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!ew(e.route,t,r))}else n=L.every(e=>!ew(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(k=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:eu,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,N=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=y({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...w].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>Z.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eJ(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?ej(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ed));let m=!0===F||null!=M.navigation.formMethod&&eJ(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(N){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(y({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:eu,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,N=!1,H=!1,W=!1,$=[]}async function eo(t,r){if("number"==typeof t)return void e.history.go(t);let n=ev(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ey(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=C(M.location,a,r&&r.state);s=y({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eJ(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e6(m,{state:"blocked",location:s,proceed(){e6(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),eo(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ed),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,E&&P&&(E[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),N=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,v=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!k?M.matches:A(h,n,p),g=!0===(a&&a.flushSync);if(v&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eJ(a.submission.formMethod)))return void ea(n,{matches:v},{flushSync:g});let b=to(v,h,n.pathname);if(b.active&&b.matches&&(v=b.matches),!v){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let w=e_(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eO(v).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eJ(a.submission.formMethod)){let t=await em(w,n,a.submission,v,b.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eH(r)&&en(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}v=t.matches||v,c=t.pendingActionResult,m=eZ(n,a.submission),g=!1,b.active=!1,w=e_(e.history,w.url,w.signal)}let{shortCircuited:S,matches:R,loaderData:x,errors:C}=await eg(w,n,v,b.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);S||(o=null,ea(n,y({matches:R||v},eM(c),{loaderData:x,errors:C})))}async function em(e,t,r,n,a,o){var i;let l;if(void 0===o&&(o={}),eI(),er({navigation:{state:"submitting",location:t,formMethod:(i=r).formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},{flushSync:!0===o.flushSync}),a){let r=await ti(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eO(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:d.error,error:r.error}]}}if(r.matches)n=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:r}]}}}let s=eG(n,t);if(s.route.action||s.route.lazy){if(l=(await eA("action",M,e,[s],n,null))[s.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:d.error,error:eN(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(eW(l)){let t;return t=o&&null!=o.replace?o.replace:ek(l.response.headers.get("Location"),new URL(e.url),p)===M.location.pathname+M.location.search,await eD(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(ez(l))throw eN(400,{type:"defer-action"});if(eH(l)){let e=eO(n,s.route.id);return!0!==(o&&o.replace)&&(O=c.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[s.route.id,l]}}async function eg(t,n,a,i,l,s,u,c,d,h,m){let v=l||eZ(n,s),b=s||u||eQ(v),w=!H&&(!g.v7_partialHydration||!d);if(i){if(w){let e=eE(m);er(y({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eO(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eb(e.history,M,a,b,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e5();return ea(n,y({matches:a,loaderData:{},errors:m&&eH(m[1])?{[m[0]]:m[1].error}:null},eM(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(w){let e={};if(!i){e.navigation=v;let t=eE(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e0(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eT(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=eB(C);if(D)return await eD(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=eB(P))return X.add(D.key),await eD(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eU(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=y({},M.errors,k));let _=e5(),A=e8(Y),T=_||A||R.length>0;return y({matches:a,loaderData:L,errors:k},T?{fetchers:new Map(M.fetchers)}:{})}function eE(e){if(e&&!eH(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eS(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eN(405,{method:d.formMethod,pathname:a,routeId:n});return eX(t,n,e,{flushSync:u}),!0}return!1}if(eI(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);e$(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let b=new AbortController,w=e_(e.history,a,b.signal,d);if(s){let e=await ti(l,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eX(t,n,e.error,{flushSync:u});if(!e.matches)return void eX(t,n,eN(404,{pathname:a}),{flushSync:u});if(v(i=eG(l=e.matches,a)))return}J.set(t,b);let E=K,R=(await eA("action",M,w,[i],l,t))[i.route.id];if(w.signal.aborted){J.get(t)===b&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eW(R)||eH(R))return void e$(t,e1(void 0))}else{if(eW(R))return(J.delete(t),Y>E)?void e$(t,e1(void 0)):(X.add(t),e$(t,e0(d)),eD(w,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eH(R))return void eX(t,n,R.error)}if(ez(R))throw eN(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=e_(e.history,x,b.signal),P=r||f,D="idle"!==M.navigation.state?A(P,M.navigation.location,p):M.matches;S(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e0(d,R.data);M.fetchers.set(t,k);let[_,T]=eb(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e0(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e2(e.key));b.signal.addEventListener("abort",U);let{loaderResults:j,fetcherResults:F}=await eT(M,D,_,T,C);if(b.signal.aborted)return;b.signal.removeEventListener("abort",U),q.delete(t),J.delete(t),T.forEach(e=>J.delete(e.key));let N=eB(j);if(N)return eD(C,N.result,!1,{preventScrollReset:c});if(N=eB(F))return X.add(N.key),eD(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eU(M,D,j,void 0,T,F,ee);if(M.fetchers.has(t)){let e=e1(R.data);M.fetchers.set(t,e)}e8(L),"loading"===M.navigation.state&&L>Y?(S(O,"Expected pending action"),o&&o.abort(),ea(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(er({errors:I,loaderData:ej(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function ex(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e$(t,e0(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=e_(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eX(t,r,e.error,{flushSync:l});if(!e.matches)return void eX(t,r,eN(404,{pathname:n}),{flushSync:l});a=eG(o=e.matches,n)}J.set(t,d);let f=K,p=(await eA("loader",M,h,[a],o,t))[a.route.id];if(ez(p)&&(p=await eq(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void e$(t,e1(void 0));if(eW(p))if(Y>f)return void e$(t,e1(void 0));else{X.add(t),await eD(h,p,!1,{preventScrollReset:s});return}if(eH(p))return void eX(t,r,p.error);S(!ez(p),"Unhandled fetcher deferred data"),e$(t,e1(p.data))}}async function eD(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");S(f,"Expected a Location header on the redirect Response"),f=ek(f,new URL(t.url),p);let m=C(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(eh.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==B(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let v=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:b,formEncType:w}=M.navigation;!i&&!u&&g&&b&&w&&(i=eQ(M.navigation));let E=i||u;if(es.has(r.response.status)&&E&&eJ(E.formMethod))await ei(v,m,{submission:y({},E,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?N:void 0});else{let e=eZ(m,i);await ei(v,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?N:void 0})}}async function eA(e,r,n,a,o,i){let l,s={};try{l=await eP(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eV((u=t).result)&&el.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(S(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!eh.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ev(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await eL(t)}return s}async function eT(t,r,n,a,o){let i=t.matches,l=eA("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eN(404,{pathname:r.path})}});{let n=(await eA("loader",t,e_(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eK(r,u,o.signal,i,t.loaderData),eY(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eI(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function e$(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eX(e,t,r,n){void 0===n&&(n={});let a=eO(M.matches,t);e4(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||ec}function e4(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e3(e){for(let t of e){let e=e1(e7(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);S(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e3(e),t}function e8(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);S(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e9(e){M.blockers.delete(e),et.delete(e)}function e6(e,t){let r=M.blockers.get(e)||ed;S("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&R(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eN(404,{pathname:e}),{matches:n,route:a}=eF(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return x&&x(e,t.map(e=>U(e,M.loaderData)))||e.key}function ta(e,t){if(E){let r=E[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(v){if(!e)return{active:!0,matches:T(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:T(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!v)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await v({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eR(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=A(l,n,p);if(u)return{type:"success",matches:u};let c=T(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(b=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}R(0===et.size||null!=a,"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 o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e6(o,{state:"blocked",location:n,proceed(){e6(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ed),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ep);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ep,JSON.stringify(r))}catch(e){R(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,P=t,x=r||null,!D&&M.navigation===eu){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{E=null,P=null,x=null}},navigate:eo,fetch:function(e,t,n,a){if(u)throw 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.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=ev(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=A(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eX(e,t,eN(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ey(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eX(e,t,m,{flushSync:o});let v=eG(s,d),y=!0===(a&&a.preventScrollReset);h&&eJ(h.formMethod)?eS(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),ex(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eI(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===N})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||e4(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){b&&b(),z&&z(),w.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e9(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ed;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e9,patchRoutes:function(e,n){let a=null==r;eR(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=_(e,t,void 0,h={})}}}function ev(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=$(a||".",W(s,o),B(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eX(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:V([r,c.pathname])),P(c)}function ey(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!ei.has(a.toLowerCase())))return{path:r,error:eN(405,{method:n.formMethod})};let l=()=>({path:r,error:eN(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eI(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eJ(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eJ(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(S("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eA(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eA(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eT(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eT(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eJ(d.formMethod))return{path:r,submission:d};let h=D(r);return t&&h.search&&eX(h.search)&&o.append("index",""),h.search="?"+o,{path:P(h),submission:d}}function eg(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eb(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let v=m?eH(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=eg(r,Object.keys(t.errors)[0],!0):m&&eH(m[1])&&(w=eg(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=w.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return ew(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eS(e,y({currentUrl:g,currentParams:f.params,nextUrl:b,nextParams:e.params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||eE(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=A(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eG(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eS(d,y({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function ew(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eE(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eS(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eR(e,t,r,n,a){var o;let i;if(e){let t=n[e];S(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=_(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ex(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];S(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;R(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||k.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,y({},t(a),{lazy:void 0}))}async function eC(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eP(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?ex(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?eD(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return y({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function eD(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eN(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eN(404,{pathname:r})}S(void 0!==i.result,"You defined "+("action"===e?"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(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function eL(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eV(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new er(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return e$(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new er((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:en(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:en(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:e$(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function ek(e,t,r){if(eh.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=B(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function e_(e,t,r,n){let a=e.createURL(eI(t)).toString(),o={signal:r};if(n&&eJ(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eA(n.formData):o.body=n.formData}return new Request(a,o)}function eA(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eT(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eU(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&eH(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(S(!eW(a),"Cannot handle redirect results in processLoaderData"),eH(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eO(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=en(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else ez(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(S(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eH(i)){let t=eO(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=y({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eW(i))S(!1,"Unhandled fetcher revalidation redirect");else if(ez(i))S(!1,"Unhandled fetcher deferred data");else{let t=e1(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function ej(e,t,r,n){let a=y({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eM(e){return e?eH(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eO(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eF(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eN(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="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.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="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 er(e||500,l,Error(s),!0)}function eB(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eW(n))return{key:r,result:n}}}function eI(e){let t="string"==typeof e?D(e):e;return P(y({},t,{hash:""}))}function ez(e){return e.type===d.deferred}function eH(e){return e.type===d.error}function eW(e){return(e&&e.type)===d.redirect}function e$(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eV(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eJ(e){return eo.has(e.toLowerCase())}async function eK(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eE(c,u)&&(a&&a[u.route.id])!==void 0;ez(s)&&d&&await eq(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eY(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&ez(l)&&(S(i,"Expected an AbortController for revalidating fetcher deferred result"),await eq(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eq(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eX(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eG(e,t){let r="string"==typeof t?D(t).search:t.search;if(e[e.length-1].route.index&&eX(r||""))return e[e.length-1];let n=H(e);return n[n.length-1]}function eQ(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eZ(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 e0(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 e1(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 e7(){return(e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Symbol("deferred");let e4=p.createContext(null),e2=p.createContext(null),e3=p.createContext(null),e5=p.createContext(null),e8=p.createContext(null),e9=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e6=p.createContext(null);function te(e,t){let{relative:r}=void 0===t?{}:t;tt()||S(!1);let{basename:n,navigator:a}=p.useContext(e5),{hash:o,pathname:i,search:l}=td(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:V([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tt(){return null!=p.useContext(e8)}function tr(){return tt()||S(!1),p.useContext(e8).location}function tn(){return p.useContext(e8).navigationType}function ta(e){tt()||S(!1);let{pathname:t}=tr();return p.useMemo(()=>F(e,N(t)),[t,e])}function to(e){p.useContext(e5).static||p.useLayoutEffect(e)}function ti(){let{isDataRoute:e}=p.useContext(e9);return e?function(){let{router:e}=tw(tg.UseNavigateStable),t=tS(tb.UseNavigateStable),r=p.useRef(!1);return to(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e7({fromRouteId:t},a)))},[e,t])}():function(){tt()||S(!1);let e=p.useContext(e4),{basename:t,future:r,navigator:n}=p.useContext(e5),{matches:a}=p.useContext(e9),{pathname:o}=tr(),i=JSON.stringify(W(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return to(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=$(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let tl=p.createContext(null);function ts(){return p.useContext(tl)}function tu(e){let t=p.useContext(e9).outlet;return t?p.createElement(tl.Provider,{value:e},t):t}function tc(){let{matches:e}=p.useContext(e9),t=e[e.length-1];return t?t.params:{}}function td(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e5),{matches:a}=p.useContext(e9),{pathname:o}=tr(),i=JSON.stringify(W(a,n.v7_relativeSplatPath));return p.useMemo(()=>$(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function th(e,t){return tf(e,t)}function tf(e,t,r,n){let a;tt()||S(!1);let{navigator:o}=p.useContext(e5),{matches:i}=p.useContext(e9),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=tr();if(t){var h;let e="string"==typeof t?D(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||S(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=A(e,{pathname:m}),y=ty(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:V([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:V([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e8.Provider,{value:{location:e7({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tp=p.createElement(function(){let e=t_(),t=en(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class tm extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(e9.Provider,{value:this.props.routeContext},p.createElement(e6.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tv(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e4);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e9.Provider,{value:t},n)}function ty(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||S(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tp,s&&(u<0&&0===a?(o="route-fallback",tM[o]||(tM[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tv,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(tm,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tg=((o=tg||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tb=((i=tb||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tw(e){let t=p.useContext(e4);return t||S(!1),t}function tE(e){let t=p.useContext(e2);return t||S(!1),t}function tS(e){let t,r=((t=p.useContext(e9))||S(!1),t),n=r.matches[r.matches.length-1];return n.route.id||S(!1),n.route.id}function tR(){return tS(tb.UseRouteId)}function tx(){return tE(tb.UseNavigation).navigation}function tC(){let e=tw(tg.UseRevalidator),t=tE(tb.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tP(){let{matches:e,loaderData:t}=tE(tb.UseMatches);return p.useMemo(()=>e.map(e=>U(e,t)),[e,t])}function tD(){let e=tE(tb.UseLoaderData),t=tS(tb.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tL(e){return tE(tb.UseRouteLoaderData).loaderData[e]}function tk(){let e=tE(tb.UseActionData),t=tS(tb.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function t_(){var e;let t=p.useContext(e6),r=tE(tb.UseRouteError),n=tS(tb.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tA(){let e=p.useContext(e3);return null==e?void 0:e._data}function tT(){let e=p.useContext(e3);return null==e?void 0:e._error}let tU=0;function tj(e){let{router:t,basename:r}=tw(tg.UseBlocker),n=tE(tb.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e7({},n,{pathname:B(n.pathname,r)||n.pathname}),nextLocation:e7({},a,{pathname:B(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tU);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ed}let tM={};function tO(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tF=p.startTransition;function tN(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=b({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tF?tF(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tO(o),[o]),p.createElement(tH,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tB(e){let{to:t,replace:r,state:n,relative:a}=e;tt()||S(!1);let{future:o,static:i}=p.useContext(e5),{matches:l}=p.useContext(e9),{pathname:s}=tr(),u=ti(),c=JSON.stringify($(t,W(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tI(e){return tu(e.context)}function tz(e){S(!1)}function tH(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tt()&&S(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e7({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=D(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=B(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e5.Provider,{value:u},p.createElement(e8.Provider,{children:r,value:y}))}function tW(e){let{children:t,location:r}=e;return tf(tq(t),r)}function t$(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tK,{resolve:n,errorElement:r},p.createElement(tY,null,t))}var tV=((l=tV||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tJ=new Promise(()=>{});class tK extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tV.pending;if(r instanceof Promise)if(this.state.error){a=tV.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tV.error:"_data"in n?tV.success:tV.pending:(a=tV.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tV.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tV.error&&n._error instanceof X)throw tJ;if(a===tV.error&&!t)throw n._error;if(a===tV.error)return p.createElement(e3.Provider,{value:n,children:t});if(a===tV.success)return p.createElement(e3.Provider,{value:n,children:e});throw n}}function tY(e){let{children:t}=e,r=tA(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tq(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tq(e.props.children,a));e.type!==tz&&S(!1),e.props.index&&e.props.children&&S(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tq(e.props.children,a)),r.push(o)}),r}function tX(e){return ty(e)}function tG(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tQ(e,t){return em({basename:null==t?void 0:t.basename,future:e7({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function tZ(){return(tZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t0(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let t1="application/x-www-form-urlencoded";function t7(e){return null!=e&&"string"==typeof e.tagName}function t4(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t2=null,t3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t5(e){return null==e||t3.has(e)?e:null}let t8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t9=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],t6=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function re(e,t){return em({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rt(e,t){return em({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:E({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=tZ({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new er(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let rn=p.createContext({isTransitioning:!1}),ra=p.createContext(new Map),ro=p.startTransition,ri=v.flushSync,rl=p.useId;function rs(e){ri?ri(e):e()}class ru{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rc(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},b=p.useCallback(e=>{if(g)ro?ro(e):e();else e()},[g]),w=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rs(()=>o(e)):b(()=>o(e)));if(a){rs(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rs(()=>o(e))});t.finished.finally(()=>{rs(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rs(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,b]);p.useLayoutEffect(()=>r.subscribe(w),[r,w]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new ru)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[b,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tO(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e4.Provider,{value:R},p.createElement(e2.Provider,{value:a},p.createElement(ra.Provider,{value:y.current},p.createElement(rn.Provider,{value:s},p.createElement(tH,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rd,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rd=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tf(t,void 0,n,r)});function rh(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rf(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=E({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rp(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&ro?ro(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rm="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t0(e,t8),{basename:f}=p.useContext(e5),m=!1;if("string"==typeof u&&rv.test(u)&&(r=u,rm))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=B(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=te(u,{relative:a}),y=rR(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",tZ({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rg=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t0(e,t9),h=td(s,{relative:d.relative}),f=tr(),m=p.useContext(e2),{navigator:v,basename:y}=p.useContext(e5),g=null!=m&&rO(h)&&!0===u,b=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,w=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(w=w.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&y&&(E=B(E,y)||E);let S="/"!==b&&b.endsWith("/")?b.length-1:b.length,R=w===b||!i&&w.startsWith(b)&&"/"===w.charAt(S),x=null!=E&&(E===b||!i&&E.startsWith(b)&&"/"===E.charAt(b.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(ry,tZ({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rb=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t0(e,t6),m=rD(),v=rL(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",tZ({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rw(e){let{getKey:t,storageKey:r}=e;return rU({getKey:t,storageKey:r}),null}function rE(e){let t=p.useContext(e4);return t||S(!1),t}function rS(e){let t=p.useContext(e2);return t||S(!1),t}function rR(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=ti(),u=tr(),c=td(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:P(u)===P(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rx(e){let t=p.useRef(t4(e)),r=p.useRef(!1),n=tr(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t4(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=ti(),i=p.useCallback((e,t)=>{let n=t4("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rC=0,rP=()=>"__"+String(++rC)+"__";function rD(){let{router:e}=rE(h.UseSubmit),{basename:t}=p.useContext(e5),r=tR();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t7(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?B(i,t):null,r=e.getAttribute("method")||"get",a=t5(e.getAttribute("enctype"))||t1,o=new FormData(e)}else if(t7(e)&&"button"===e.tagName.toLowerCase()||t7(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?B(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t5(e.getAttribute("formenctype"))||t5(i.getAttribute("enctype"))||t1,o=new FormData(i,e),!function(){if(null===t2)try{new FormData(document.createElement("form"),0),t2=!1}catch(e){t2=!0}return t2}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t7(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t1,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rP();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function rL(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e5),a=p.useContext(e9);a||S(!1);let[o]=a.matches.slice(-1),i=tZ({},td(e||".",{relative:r})),l=tr();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:V([n,i.pathname])),P(i)}function rk(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rE(h.UseFetcher),a=rS(f.UseFetcher),o=p.useContext(ra),i=p.useContext(e9),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||S(!1),i||S(!1),null==l&&S(!1);let s=rl?rl():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rP()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||S(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rD(),v=p.useCallback((e,t)=>{m(e,tZ({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rb,tZ({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||ec,b=o.get(u);return p.useMemo(()=>tZ({Form:y,submit:v,load:d},g,{data:b}),[y,v,d,g,b])}function r_(){return Array.from(rS(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return tZ({},r,{key:t})})}let rA="react-router-scroll-positions",rT={};function rU(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rE(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rS(f.UseScrollRestoration),{basename:i}=p.useContext(e5),l=tr(),s=tP(),u=tx();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rT[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rA,JSON.stringify(rT))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rA);e&&(rT=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(tZ({},e,{pathname:B(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rT,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rj(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rM(e){let{when:t,message:r}=e,n=tj(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rO(e,t){void 0===t&&(t={});let r=p.useContext(rn);null==r&&S(!1);let{basename:n}=rE(h.useViewTransitionState),a=td(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=B(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=B(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=F(a.pathname,i)||null!=F(a.pathname,o)}}}]);
|