@sap/ux-specification 1.124.28 → 1.124.29

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ListReportNew.html +2 -2
  6. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  7. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  8. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  9. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  10. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  11. package/dist/documentation/v4/v4-ListReport.html +2 -2
  12. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  13. package/dist/index-min.js +24 -24
  14. package/dist/index-min.js.map +3 -3
  15. package/dist/specification/package.json +4 -4
  16. package/dist/specification/src/sync/common/dist_tag.json +19 -4
  17. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  18. package/dist/specification/src/sync/v4/application.js +2 -1
  19. package/dist/specification/src/sync/v4/application.js.map +1 -1
  20. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  21. package/dist/specification/src/sync/v4/export/export.js +3 -1
  22. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  23. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  24. package/dist/specification/src/sync/v4/import/pages/objectPage.js +2 -1
  25. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  26. package/package.json +4 -4
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var A5=Object.create;var Ll=Object.defineProperty;var FL=Object.getOwnPropertyDescriptor;var E5=Object.getOwnPropertyNames;var P5=Object.getPrototypeOf,x5=Object.prototype.hasOwnProperty;var o=(e,t)=>Ll(e,"name",{value:t,configurable:!0});var Je=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vc=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Yg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of E5(t))!x5.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(i=FL(t,r))||i.enumerable});return e},bc=(e,t,n)=>(Yg(e,t,"default"),n&&Yg(n,t,"default")),Z=(e,t,n)=>(n=e!=null?A5(P5(e)):{},Yg(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),zg=e=>Yg(Ll({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?FL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Ll(t,n,r),r};var lN=Ze((bee,cN)=>{var bb=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,I5=Object.getOwnPropertyNames,O5=Object.prototype.hasOwnProperty,Sb=o((e,t)=>{for(var n in t)bb(e,n,{get:t[n],enumerable:!0})},"C"),R5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of I5(t))!O5.call(e,r)&&r!==n&&bb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=C5(t,r))||i.enumerable});return e},"et"),L5=o(e=>R5(bb({},"__esModule",{value:!0}),e),"tt"),NL={};Sb(NL,{ACTIONTITLEPREFIX:o(()=>_5,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>jL,"ALPViewType"),ActionType:o(()=>BL,"ActionType"),ArtifactType:o(()=>$L,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>w5,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>XL,"ChangeIndicator"),ChartColor:o(()=>fF,"ChartColor"),CloudDevAdaptationStatus:o(()=>oF,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>cF,"ColorPaletteDefinitionType"),ControlType:o(()=>HL,"ControlType"),CustomExtensionType:o(()=>gF,"CustomExtensionType"),DATESETTINGSPATH:o(()=>W5,"DATESETTINGSPATH"),DataSourceType:o(()=>aF,"DataSourceType"),DefinitionName:o(()=>YL,"DefinitionName"),DirName:o(()=>WL,"DirName"),DraftDiscardEnabledSettings:o(()=>tF,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>kL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>D5,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>q5,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>Q5,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>K5,"FRAGMENTNAMEPART"),FacetBase:o(()=>QL,"FacetBase"),Features:o(()=>mF,"Features"),FileName:o(()=>KL,"FileName"),FioriElementsVersion:o(()=>DL,"FioriElementsVersion"),FlexChangeLayer:o(()=>wL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>rF,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>VL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>X5,"GENERICAPPSETTINGS"),LogSeverity:o(()=>uF,"LogSeverity"),MANIFESTPATH:o(()=>M5,"MANIFESTPATH"),MacrosPropertyType:o(()=>eF,"MacrosPropertyType"),ManifestSection:o(()=>sF,"ManifestSection"),OdataVersion:o(()=>_L,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>N5,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>F5,"PageType"),PageTypeV2:o(()=>Ab,"PageTypeV2"),PageTypeV4:o(()=>Eb,"PageTypeV4"),PropertyMessageType:o(()=>pF,"PropertyMessageType"),PropertyName:o(()=>zL,"PropertyName"),QUICKVARPATH:o(()=>H5,"QUICKVARPATH"),QUICKVARPATHX:o(()=>G5,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>z5,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>Y5,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>ZL,"SchemaKeyName"),SchemaTag:o(()=>JL,"SchemaTag"),SchemaType:o(()=>ML,"SchemaType"),SectionType:o(()=>UL,"SectionType"),StatePreservationMode:o(()=>iF,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>nF,"TableColumnVerticalAlignment"),TemplateType:o(()=>dF,"TemplateType"),UIVOCABULARY:o(()=>U5,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>B5,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>$5,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>j5,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>k5,"VOCWITHSLASH"),ViewTemplateType:o(()=>qL,"ViewTemplateType"),ViewTypes:o(()=>lF,"ViewTypes"),Visualization:o(()=>GL,"Visualization"),defaultExportResult:o(()=>V5,"defaultExportResult"),logSeverityLabel:o(()=>J5,"logSeverityLabel"),v2:o(()=>hF,"v2"),v4:o(()=>$F,"v4")});cN.exports=L5(NL);var Ab=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ab||{}),Eb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Eb||{}),F5={...Ab,...Eb},N5=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),DL=(e=>(e.v2="v2",e.v4="v4",e))(DL||{}),_L=(e=>(e.v2="v2",e.v4="v4",e))(_L||{}),VL=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(VL||{}),wL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(wL||{}),ML=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(ML||{}),kL=(e=>(e.flex="flex",e.manifest="manifest",e))(kL||{}),jL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(jL||{}),UL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(UL||{}),$L=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))($L||{}),BL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(BL||{}),HL=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(HL||{}),GL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(GL||{}),WL=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(WL||{}),KL=(e=>(e.App="app.json",e))(KL||{}),D5="Facet ID: ",_5="Action ID: ",XL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(XL||{}),V5={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},QL=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(QL||{}),w5="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",qL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(qL||{}),YL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(YL||{}),zL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(zL||{}),JL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(JL||{}),ZL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(ZL||{}),M5="webapp/manifest.json",k5="/@com.sap.vocabularies",j5="::@com.sap.vocabularies",U5="com.sap.vocabularies.UI.v1",$5="com.sap.vocabularies.UI.v1.",B5="@com.sap.vocabularies.UI.v1.",H5="/quickVariantSelection",G5="/quickVariantSelectionX",W5="/filterSettings/dateSettings",K5=".fragment.",eF=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(eF||{}),tF=(e=>(e.restricted="restricted",e))(tF||{}),nF=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(nF||{}),iF=(e=>(e.persistence="persistence",e.discovery="discovery",e))(iF||{}),rF=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(rF||{}),oF=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(oF||{}),aF=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(aF||{}),sF=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(sF||{}),X5="sap.ui.generic.app/settings",cF=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(cF||{}),Q5="sap.fe.templates.RootContainer.view.Fcl",q5="appRootView",lF=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(lF||{}),Y5="sap.ui.core.mvc.View",z5="sap.ui.core.Fragment",fF=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(fF||{}),uF=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(uF||{}),J5={error:"Error",warning:"Warning",info:"Information"},pF=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(pF||{}),dF=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(dF||{}),gF=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(gF||{}),mF=(e=>(e.BuildingBlocks="BuildingBlocks",e))(mF||{}),hF={};Sb(hF,{CardSettingsType:o(()=>vF,"CardSettingsType"),CardTemplateType:o(()=>TF,"CardTemplateType"),ChartCardType:o(()=>yF,"ChartCardType"),ChartType:o(()=>wF,"ChartType"),ContainerLayoutType:o(()=>UF,"ContainerLayoutType"),CreateMode:o(()=>jF,"CreateMode"),DateRangeType:o(()=>xF,"DateRangeType"),DefaultContentView:o(()=>DF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CF,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>_F,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>kF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>tW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>rW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>iW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>nW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>IF,"FilterPathType"),IgnoredFieldsType:o(()=>NF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>PF,"LinkListFlavorType"),ListFlavorType:o(()=>SF,"ListFlavorType"),ListTypeType:o(()=>AF,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>VF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>bF,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>aW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>oW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>lW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>cW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>sW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>MF,"SectionPosition"),SortOrderType:o(()=>EF,"SortOrderType"),Strategy:o(()=>FF,"Strategy"),TableColumnExtensionTypeV2:o(()=>LF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>RF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>eW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Z5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>OF,"customColumnViewTypes")});var yF=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yF||{}),TF=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(TF||{}),Z5={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},eW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vF=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(vF||{}),bF=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(bF||{}),SF=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(SF||{}),AF=(e=>(e.extended="extended",e.condensed="condensed",e))(AF||{}),EF=(e=>(e.ascending="ascending",e.descending="descending",e))(EF||{}),PF=(e=>(e.standard="standard",e.carousel="carousel",e))(PF||{}),xF=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(xF||{}),CF=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(CF||{}),IF=(e=>(e.key="key",e.catgory="category",e))(IF||{}),OF=(e=>(e.XML="XML",e))(OF||{}),RF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(RF||{}),LF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LF||{}),FF=(e=>(e.extension="extension",e))(FF||{}),NF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NF||{}),DF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(DF||{}),_F=(e=>(e.visual="visual",e.compact="compact",e))(_F||{}),VF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(VF||{}),wF=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(wF||{}),MF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MF||{}),kF=(e=>(e.XML="XML",e))(kF||{}),jF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(jF||{}),tW="sap.suite.ui.generic.template",nW="sap.suite.ui.generic.template.ObjectPage",iW="sap.suite.ui.generic.template.ListReport",rW="sap.suite.ui.generic.template.AnalyticalListPage",oW="sap.ui.viewExtensions",aW="sap.ui.controllerExtensions",sW="sap.suite.ui.generic.template.ObjectPage.view.Details",cW="sap.suite.ui.generic.template.ListReport.view.ListReport",lW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",UF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(UF||{}),$F={};Sb($F,{ActionPlacement:o(()=>BF,"ActionPlacement"),Availability:o(()=>rN,"Availability"),CustomSectionViewTypesV4:o(()=>eN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>fW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>gW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>uW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>dW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>pW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>hW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>YF,"FilterFieldPlacement"),HorizontalAlign:o(()=>oN,"HorizontalAlign"),InitialLayoutType:o(()=>qF,"InitialLayoutType"),InitialLoadType:o(()=>KF,"InitialLoadType"),LayoutType:o(()=>QF,"LayoutType"),Placement:o(()=>iN,"Placement"),RowCountMode:o(()=>GF,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>TW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>yW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>mW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>bW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>vW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JF,"SectionLayoutType"),SectionPosition:o(()=>ZF,"SectionPosition"),SectionPositionV4:o(()=>nN,"SectionPositionV4"),SelectType:o(()=>zF,"SelectType"),SelectionMode:o(()=>HF,"SelectionMode"),TableCreationModeType:o(()=>tN,"TableCreationModeType"),TableTypeV4:o(()=>WF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aN,"VariantManagementTypeObjectPage")});var BF=(e=>(e.After="After",e.Before="Before",e))(BF||{}),HF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(HF||{}),GF=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(GF||{}),WF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(WF||{}),KF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KF||{}),XF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XF||{}),QF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QF||{}),qF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qF||{}),YF=(e=>(e.After="After",e.Before="Before",e))(YF||{}),zF=(e=>(e.single="single",e.multi="multi",e))(zF||{}),JF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JF||{}),ZF=(e=>(e.After="After",e.Before="Before",e))(ZF||{}),eN=(e=>(e.XML="XML",e))(eN||{}),tN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tN||{}),fW="sap.fe",uW="sap.fe.core.fpm",pW="sap.fe.templates.ObjectPage",dW="sap.fe.templates.ListReport",gW="sap.fe.templates.AnalyticalListPage",mW="XMLFragment",nN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nN||{}),hW="sap.f.routing.Router",yW="sap.f",TW="sap.ui.controllerExtensions",vW="sap.fe.templates.ObjectPage.ObjectPageController",bW="sap.fe.templates.ListReport.ListReportController",iN=(e=>(e.After="After",e.Before="Before",e))(iN||{}),rN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rN||{}),oN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oN||{}),aN=(e=>(e.None="None",e.Control="Control",e))(aN||{}),sN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sN||{})});var mN=Ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Features=Ji.CustomExtensionType=Ji.TemplateType=Ji.PropertyMessageType=Ji.logSeverityLabel=Ji.LogSeverity=void 0;var fN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(fN||(Ji.LogSeverity=fN={}));Ji.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var uN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(uN||(Ji.PropertyMessageType=uN={}));var pN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(pN||(Ji.TemplateType=pN={}));var dN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(dN||(Ji.CustomExtensionType=dN={}));var gN;(function(e){e.BuildingBlocks="BuildingBlocks"})(gN||(Ji.Features=gN={}))});var BN=Ze((Eee,$N)=>{var Pb=Object.defineProperty,SW=Object.getOwnPropertyDescriptor,AW=Object.getOwnPropertyNames,EW=Object.prototype.hasOwnProperty,PW=o((e,t)=>{for(var n in t)Pb(e,n,{get:t[n],enumerable:!0})},"h"),xW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of AW(t))!EW.call(e,r)&&r!==n&&Pb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=SW(t,r))||i.enumerable});return e},"M"),CW=o(e=>xW(Pb({},"__esModule",{value:!0}),e),"Q"),hN={};PW(hN,{CardSettingsType:o(()=>vN,"CardSettingsType"),CardTemplateType:o(()=>TN,"CardTemplateType"),ChartCardType:o(()=>yN,"ChartCardType"),ChartType:o(()=>wN,"ChartType"),ContainerLayoutType:o(()=>UN,"ContainerLayoutType"),CreateMode:o(()=>jN,"CreateMode"),DateRangeType:o(()=>xN,"DateRangeType"),DefaultContentView:o(()=>DN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>_N,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>kN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>RW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>NW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>FW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>LW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>IN,"FilterPathType"),IgnoredFieldsType:o(()=>NN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>PN,"LinkListFlavorType"),ListFlavorType:o(()=>SN,"ListFlavorType"),ListTypeType:o(()=>AN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>VN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>bN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>_W,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>DW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>MW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>wW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>VW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>MN,"SectionPosition"),SortOrderType:o(()=>EN,"SortOrderType"),Strategy:o(()=>FN,"Strategy"),TableColumnExtensionTypeV2:o(()=>LN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>RN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>OW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>IW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>ON,"customColumnViewTypes")});$N.exports=CW(hN);var yN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yN||{}),TN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(TN||{}),IW={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},OW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(vN||{}),bN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(bN||{}),SN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(SN||{}),AN=(e=>(e.extended="extended",e.condensed="condensed",e))(AN||{}),EN=(e=>(e.ascending="ascending",e.descending="descending",e))(EN||{}),PN=(e=>(e.standard="standard",e.carousel="carousel",e))(PN||{}),xN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(xN||{}),CN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(CN||{}),IN=(e=>(e.key="key",e.catgory="category",e))(IN||{}),ON=(e=>(e.XML="XML",e))(ON||{}),RN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(RN||{}),LN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LN||{}),FN=(e=>(e.extension="extension",e))(FN||{}),NN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NN||{}),DN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(DN||{}),_N=(e=>(e.visual="visual",e.compact="compact",e))(_N||{}),VN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(VN||{}),wN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(wN||{}),MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MN||{}),kN=(e=>(e.XML="XML",e))(kN||{}),jN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(jN||{}),RW="sap.suite.ui.generic.template",LW="sap.suite.ui.generic.template.ObjectPage",FW="sap.suite.ui.generic.template.ListReport",NW="sap.suite.ui.generic.template.AnalyticalListPage",DW="sap.ui.viewExtensions",_W="sap.ui.controllerExtensions",VW="sap.suite.ui.generic.template.ObjectPage.view.Details",wW="sap.suite.ui.generic.template.ListReport.view.ListReport",MW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",UN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(UN||{})});var uD=Ze((xee,fD)=>{var xb=Object.defineProperty,kW=Object.getOwnPropertyDescriptor,jW=Object.getOwnPropertyNames,UW=Object.prototype.hasOwnProperty,$W=o((e,t)=>{for(var n in t)xb(e,n,{get:t[n],enumerable:!0})},"j"),BW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of jW(t))!UW.call(e,r)&&r!==n&&xb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=kW(t,r))||i.enumerable});return e},"R"),HW=o(e=>BW(xb({},"__esModule",{value:!0}),e),"h"),HN={};$W(HN,{ActionPlacement:o(()=>GN,"ActionPlacement"),Availability:o(()=>aD,"Availability"),CustomSectionViewTypesV4:o(()=>nD,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>qN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>GW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>QW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>WW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>XW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>KW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>YW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>JN,"FilterFieldPlacement"),HorizontalAlign:o(()=>sD,"HorizontalAlign"),InitialLayoutType:o(()=>zN,"InitialLayoutType"),InitialLoadType:o(()=>QN,"InitialLoadType"),LayoutType:o(()=>YN,"LayoutType"),Placement:o(()=>oD,"Placement"),RowCountMode:o(()=>KN,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>JW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>zW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>qW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>e8,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>ZW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>eD,"SectionLayoutType"),SectionPosition:o(()=>tD,"SectionPosition"),SectionPositionV4:o(()=>rD,"SectionPositionV4"),SelectType:o(()=>ZN,"SelectType"),SelectionMode:o(()=>WN,"SelectionMode"),TableCreationModeType:o(()=>iD,"TableCreationModeType"),TableTypeV4:o(()=>XN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>lD,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>cD,"VariantManagementTypeObjectPage")});fD.exports=HW(HN);var GN=(e=>(e.After="After",e.Before="Before",e))(GN||{}),WN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(WN||{}),KN=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(KN||{}),XN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(XN||{}),QN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(QN||{}),qN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(qN||{}),YN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(YN||{}),zN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(zN||{}),JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),ZN=(e=>(e.single="single",e.multi="multi",e))(ZN||{}),eD=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eD||{}),tD=(e=>(e.After="After",e.Before="Before",e))(tD||{}),nD=(e=>(e.XML="XML",e))(nD||{}),iD=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(iD||{}),GW="sap.fe",WW="sap.fe.core.fpm",KW="sap.fe.templates.ObjectPage",XW="sap.fe.templates.ListReport",QW="sap.fe.templates.AnalyticalListPage",qW="XMLFragment",rD=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(rD||{}),YW="sap.f.routing.Router",zW="sap.f",JW="sap.ui.controllerExtensions",ZW="sap.fe.templates.ObjectPage.ObjectPageController",e8="sap.fe.templates.ListReport.ListReportController",oD=(e=>(e.After="After",e.Before="Before",e))(oD||{}),aD=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(aD||{}),sD=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sD||{}),cD=(e=>(e.None="None",e.Control="Control",e))(cD||{}),lD=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lD||{})});var re=Ze(Ei=>{"use strict";var pD=Ei&&Ei.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),t8=Ei&&Ei.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),dD=Ei&&Ei.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pD(t,e,n)},gD=Ei&&Ei.__importStar||(function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&pD(n,t,i[r]);return t8(n,t),n}})();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.v4=Ei.v2=void 0;dD(lN(),Ei);dD(mN(),Ei);Ei.v2=gD(BN());Ei.v4=gD(uD())});var Gb=Ze((Wee,FD)=>{"use strict";var y8=o(function(t){return T8(t)&&!v8(t)},"isMergeableObject");function T8(e){return!!e&&typeof e=="object"}o(T8,"isNonNullObject");function v8(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||A8(e)}o(v8,"isSpecial");var b8=typeof Symbol=="function"&&Symbol.for,S8=b8?Symbol.for("react.element"):60103;function A8(e){return e.$$typeof===S8}o(A8,"isReactElement");function E8(e){return Array.isArray(e)?[]:{}}o(E8,"emptyTarget");function _u(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Dl(E8(e),e,t):e}o(_u,"cloneUnlessOtherwiseSpecified");function P8(e,t,n){return e.concat(t).map(function(i){return _u(i,n)})}o(P8,"defaultArrayMerge");function x8(e,t){if(!t.customMerge)return Dl;var n=t.customMerge(e);return typeof n=="function"?n:Dl}o(x8,"getMergeFunction");function C8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(C8,"getEnumerableOwnPropertySymbols");function RD(e){return Object.keys(e).concat(C8(e))}o(RD,"getKeys");function LD(e,t){try{return t in e}catch{return!1}}o(LD,"propertyIsOnObject");function I8(e,t){return LD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(I8,"propertyIsUnsafe");function O8(e,t,n){var i={};return n.isMergeableObject(e)&&RD(e).forEach(function(r){i[r]=_u(e[r],n)}),RD(t).forEach(function(r){I8(e,r)||(LD(e,r)&&n.isMergeableObject(t[r])?i[r]=x8(r,n)(e[r],t[r],n):i[r]=_u(t[r],n))}),i}o(O8,"mergeObject");function Dl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||P8,n.isMergeableObject=n.isMergeableObject||y8,n.cloneUnlessOtherwiseSpecified=_u;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):O8(e,t,n):_u(t,n)}o(Dl,"deepmerge");Dl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Dl(i,r,n)},{})},"deepmergeAll");var R8=Dl;FD.exports=R8});var am=Ze(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.Double=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var L8=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return L8.EnumIsFlag},"get")});var F8=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return F8.TermToTypes},"get")});var N8=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return N8.VocabularyReferences},"get")});function ND(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(ND,"splitAt");function DD(e,t){return t<0?e:e.substring(0,t)}o(DD,"substringAt");function om(e,t){return ND(e,e.indexOf(t))}o(om,"splitAtFirst");Tt.splitAtFirst=om;function _D(e,t){return ND(e,e.lastIndexOf(t))}o(_D,"splitAtLast");Tt.splitAtLast=_D;function D8(e,t){return DD(e,e.indexOf(t))}o(D8,"substringBeforeFirst");Tt.substringBeforeFirst=D8;function _8(e,t){return DD(e,e.lastIndexOf(t))}o(_8,"substringBeforeLast");Tt.substringBeforeLast=_8;function VD(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=_D(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=om(t,"@");return`${a}@${VD(e,s)}`}else return t}o(VD,"alias");Tt.alias=VD;function Wb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=om(a,".");if(!l||l.includes("."))return a;let f=s.startsWith("@"),p=f?s.substring(1):s,d=e.referenceMap[p];return d?f?`@${d.namespace}.${l}`:`${d.namespace}.${l}`:n&&!f?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,f]=om(s,"("),p=[r(l)];if(f){let d=f.slice(0,-1);p.push(`(${r(d)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Wb,"unalias");Tt.unalias=Wb;function V8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(V8,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=V8;function w8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(w8,"Double");Tt.Double=w8;function M8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(M8,"Decimal");Tt.Decimal=M8;function k8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(k8,"lazy");Tt.lazy=k8;function wD(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(wD,"createIndexedFind");Tt.createIndexedFind=wD;function j8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:wD(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(j8,"addGetByValue");Tt.addGetByValue=j8;function U8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let f=(a=Wb(e,s))!==null&&a!==void 0?a:s;n[f]||(n[f]=[]);let p=l.map(d=>{var m;return d.term=(m=Wb(e,d.term))!==null&&m!==void 0?m:d.term,d.fullyQualifiedName=d.qualifier?`${f}@${d.term}#${d.qualifier}`:`${f}@${d.term}`,d.__source=i,d}).filter(d=>!n[f].some(m=>m.term===d.term&&m.qualifier===d.qualifier));n[f].push(...p)}return n},{})}o(U8,"mergeAnnotations");Tt.mergeAnnotations=U8});var YD=Ze(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.convert=void 0;var sm=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ee=am(),mo=Symbol("Annotation Target");function ma(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ma,"appendObjectPath");function br(e,t,n,i){var r,a,s,l,f;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,v)=>{if(v.includes("@")){let[S,b]=(0,Ee.splitAtFirst)(v,"@");m.push(S),m.push(`@${b}`)}else m.push(v);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[mo]!==void 0)t=t[mo];else if(t._type==="Property"){let m=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(f=e.getConvertedEntityType(m))!==null&&f!==void 0?f:e.getConvertedComplexType(m)}let d=p.reduce((m,v)=>{var S,b,I,F,j;let W=o(U=>(m.messages.push({message:U}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ma(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[U,se]=e.splitTerm(v),ee=(S=m.target.annotations[U.substring(1)])===null||S===void 0?void 0:S[se];return ee!==void 0?(m.target=ee,m):W(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let U;if(v==="$AnnotationPath"?U=m.target.value:v==="$Path"&&(U=m.target.path),U!==void 0){let se=br(e,m.target[mo],U);return se.objectPath.forEach(ee=>{m.objectPath.includes(ee)||(m.objectPath=ma(m.objectPath,ee))}),m.target=se.target,m.objectPath=ma(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let ee=m.target;if(v===""||e.unalias(v)===ee.fullyQualifiedName)return m;let le=(F=(I=ee.entitySets.by_name(v))!==null&&I!==void 0?I:ee.singletons.by_name(v))!==null&&F!==void 0?F:ee.actionImports.by_name(v);if(le)return m.target=le,m}break;case"EntitySet":case"Singleton":{let ee=m.target;if(v===""||v==="$Type")return m.target=ee.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Le=ee.navigationPropertyBinding;return m.target=Le,m}let le=br(e,ee.entityType,v);return m.target=le.target,m.objectPath=le.objectPath.reduce(ma,m.objectPath),m}case"EntityType":{let ee=m.target;if(v===""||v==="$Type")return m;let le=ee.entityProperties.by_name(v);if(le)return m.target=le,m;let Le=ee.navigationProperties.by_name(v);if(Le)return m.target=Le,m;let D=(0,Ee.substringBeforeFirst)(e.unalias(v),"("),Ue=ee.actions[D];if(Ue)return m.target=Ue,m}break;case"ActionImport":{let ee=br(e,m.target.action,v);return m.target=ee.target,m.objectPath=ee.objectPath.reduce(ma,m.objectPath),m}case"Action":{let ee=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&ee.isBound)return m.target=ee.parameters,m;let le=(j=ee.parameters[v])!==null&&j!==void 0?j:ee.parameters.find(Le=>Le.name===v);if(le)return m.target=le,m;break}case"Property":{let le=m.target.targetType;if(le!==void 0){let Le=le.properties.by_name(v);if(Le)return m.target=Le,m;let D=le.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let U=m.target.typeReference;if(U!==void 0){let ee=br(e,U,v);return m.target=ee.target,m.objectPath=ee.objectPath.reduce(ma,m.objectPath),m}break;case"NavigationProperty":let se=br(e,m.target.targetType,v);return m.target=se.target,m.objectPath=se.objectPath.reduce(ma,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=ma(m.objectPath,m.target),m}return W(`Element '${v}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(d.messages.forEach(m=>e.logError(m.message)),!d.target)if(i){let m=$D(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var AG=Object.create;var Ll=Object.defineProperty;var FL=Object.getOwnPropertyDescriptor;var EG=Object.getOwnPropertyNames;var PG=Object.getPrototypeOf,xG=Object.prototype.hasOwnProperty;var o=(e,t)=>Ll(e,"name",{value:t,configurable:!0});var Je=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vc=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Yg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of EG(t))!xG.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(i=FL(t,r))||i.enumerable});return e},bc=(e,t,n)=>(Yg(e,t,"default"),n&&Yg(n,t,"default")),Z=(e,t,n)=>(n=e!=null?AG(PG(e)):{},Yg(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),zg=e=>Yg(Ll({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?FL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Ll(t,n,r),r};var lN=Ze((bee,cN)=>{var bb=Object.defineProperty,CG=Object.getOwnPropertyDescriptor,IG=Object.getOwnPropertyNames,OG=Object.prototype.hasOwnProperty,Sb=o((e,t)=>{for(var n in t)bb(e,n,{get:t[n],enumerable:!0})},"C"),RG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of IG(t))!OG.call(e,r)&&r!==n&&bb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=CG(t,r))||i.enumerable});return e},"et"),LG=o(e=>RG(bb({},"__esModule",{value:!0}),e),"tt"),NL={};Sb(NL,{ACTIONTITLEPREFIX:o(()=>_G,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>jL,"ALPViewType"),ActionType:o(()=>BL,"ActionType"),ArtifactType:o(()=>$L,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>wG,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>XL,"ChangeIndicator"),ChartColor:o(()=>fF,"ChartColor"),CloudDevAdaptationStatus:o(()=>oF,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>cF,"ColorPaletteDefinitionType"),ControlType:o(()=>HL,"ControlType"),CustomExtensionType:o(()=>gF,"CustomExtensionType"),DATESETTINGSPATH:o(()=>WG,"DATESETTINGSPATH"),DataSourceType:o(()=>aF,"DataSourceType"),DefinitionName:o(()=>YL,"DefinitionName"),DirName:o(()=>WL,"DirName"),DraftDiscardEnabledSettings:o(()=>tF,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>kL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>DG,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>qG,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>QG,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>KG,"FRAGMENTNAMEPART"),FacetBase:o(()=>QL,"FacetBase"),Features:o(()=>mF,"Features"),FileName:o(()=>KL,"FileName"),FioriElementsVersion:o(()=>DL,"FioriElementsVersion"),FlexChangeLayer:o(()=>wL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>rF,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>VL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>XG,"GENERICAPPSETTINGS"),LogSeverity:o(()=>uF,"LogSeverity"),MANIFESTPATH:o(()=>MG,"MANIFESTPATH"),MacrosPropertyType:o(()=>eF,"MacrosPropertyType"),ManifestSection:o(()=>sF,"ManifestSection"),OdataVersion:o(()=>_L,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>NG,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>FG,"PageType"),PageTypeV2:o(()=>Ab,"PageTypeV2"),PageTypeV4:o(()=>Eb,"PageTypeV4"),PropertyMessageType:o(()=>pF,"PropertyMessageType"),PropertyName:o(()=>zL,"PropertyName"),QUICKVARPATH:o(()=>HG,"QUICKVARPATH"),QUICKVARPATHX:o(()=>GG,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>zG,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>YG,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>ZL,"SchemaKeyName"),SchemaTag:o(()=>JL,"SchemaTag"),SchemaType:o(()=>ML,"SchemaType"),SectionType:o(()=>UL,"SectionType"),StatePreservationMode:o(()=>iF,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>nF,"TableColumnVerticalAlignment"),TemplateType:o(()=>dF,"TemplateType"),UIVOCABULARY:o(()=>UG,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>BG,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>$G,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>jG,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>kG,"VOCWITHSLASH"),ViewTemplateType:o(()=>qL,"ViewTemplateType"),ViewTypes:o(()=>lF,"ViewTypes"),Visualization:o(()=>GL,"Visualization"),defaultExportResult:o(()=>VG,"defaultExportResult"),logSeverityLabel:o(()=>JG,"logSeverityLabel"),v2:o(()=>hF,"v2"),v4:o(()=>$F,"v4")});cN.exports=LG(NL);var Ab=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ab||{}),Eb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Eb||{}),FG={...Ab,...Eb},NG=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),DL=(e=>(e.v2="v2",e.v4="v4",e))(DL||{}),_L=(e=>(e.v2="v2",e.v4="v4",e))(_L||{}),VL=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(VL||{}),wL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(wL||{}),ML=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(ML||{}),kL=(e=>(e.flex="flex",e.manifest="manifest",e))(kL||{}),jL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(jL||{}),UL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(UL||{}),$L=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))($L||{}),BL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(BL||{}),HL=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(HL||{}),GL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(GL||{}),WL=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(WL||{}),KL=(e=>(e.App="app.json",e))(KL||{}),DG="Facet ID: ",_G="Action ID: ",XL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(XL||{}),VG={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},QL=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(QL||{}),wG="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",qL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(qL||{}),YL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(YL||{}),zL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(zL||{}),JL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(JL||{}),ZL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(ZL||{}),MG="webapp/manifest.json",kG="/@com.sap.vocabularies",jG="::@com.sap.vocabularies",UG="com.sap.vocabularies.UI.v1",$G="com.sap.vocabularies.UI.v1.",BG="@com.sap.vocabularies.UI.v1.",HG="/quickVariantSelection",GG="/quickVariantSelectionX",WG="/filterSettings/dateSettings",KG=".fragment.",eF=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(eF||{}),tF=(e=>(e.restricted="restricted",e))(tF||{}),nF=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(nF||{}),iF=(e=>(e.persistence="persistence",e.discovery="discovery",e))(iF||{}),rF=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(rF||{}),oF=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(oF||{}),aF=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(aF||{}),sF=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(sF||{}),XG="sap.ui.generic.app/settings",cF=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(cF||{}),QG="sap.fe.templates.RootContainer.view.Fcl",qG="appRootView",lF=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(lF||{}),YG="sap.ui.core.mvc.View",zG="sap.ui.core.Fragment",fF=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(fF||{}),uF=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(uF||{}),JG={error:"Error",warning:"Warning",info:"Information"},pF=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(pF||{}),dF=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(dF||{}),gF=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(gF||{}),mF=(e=>(e.BuildingBlocks="BuildingBlocks",e))(mF||{}),hF={};Sb(hF,{CardSettingsType:o(()=>vF,"CardSettingsType"),CardTemplateType:o(()=>TF,"CardTemplateType"),ChartCardType:o(()=>yF,"ChartCardType"),ChartType:o(()=>wF,"ChartType"),ContainerLayoutType:o(()=>UF,"ContainerLayoutType"),CreateMode:o(()=>jF,"CreateMode"),DateRangeType:o(()=>xF,"DateRangeType"),DefaultContentView:o(()=>DF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CF,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>_F,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>kF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>tW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>rW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>iW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>nW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>IF,"FilterPathType"),IgnoredFieldsType:o(()=>NF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>PF,"LinkListFlavorType"),ListFlavorType:o(()=>SF,"ListFlavorType"),ListTypeType:o(()=>AF,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>VF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>bF,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>aW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>oW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>lW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>cW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>sW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>MF,"SectionPosition"),SortOrderType:o(()=>EF,"SortOrderType"),Strategy:o(()=>FF,"Strategy"),TableColumnExtensionTypeV2:o(()=>LF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>RF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>eW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>ZG,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>OF,"customColumnViewTypes")});var yF=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yF||{}),TF=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(TF||{}),ZG={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},eW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vF=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(vF||{}),bF=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(bF||{}),SF=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(SF||{}),AF=(e=>(e.extended="extended",e.condensed="condensed",e))(AF||{}),EF=(e=>(e.ascending="ascending",e.descending="descending",e))(EF||{}),PF=(e=>(e.standard="standard",e.carousel="carousel",e))(PF||{}),xF=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(xF||{}),CF=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(CF||{}),IF=(e=>(e.key="key",e.catgory="category",e))(IF||{}),OF=(e=>(e.XML="XML",e))(OF||{}),RF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(RF||{}),LF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LF||{}),FF=(e=>(e.extension="extension",e))(FF||{}),NF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NF||{}),DF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(DF||{}),_F=(e=>(e.visual="visual",e.compact="compact",e))(_F||{}),VF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(VF||{}),wF=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(wF||{}),MF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MF||{}),kF=(e=>(e.XML="XML",e))(kF||{}),jF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(jF||{}),tW="sap.suite.ui.generic.template",nW="sap.suite.ui.generic.template.ObjectPage",iW="sap.suite.ui.generic.template.ListReport",rW="sap.suite.ui.generic.template.AnalyticalListPage",oW="sap.ui.viewExtensions",aW="sap.ui.controllerExtensions",sW="sap.suite.ui.generic.template.ObjectPage.view.Details",cW="sap.suite.ui.generic.template.ListReport.view.ListReport",lW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",UF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(UF||{}),$F={};Sb($F,{ActionPlacement:o(()=>BF,"ActionPlacement"),Availability:o(()=>rN,"Availability"),CustomSectionViewTypesV4:o(()=>eN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>fW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>gW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>uW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>dW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>pW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>hW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>YF,"FilterFieldPlacement"),HorizontalAlign:o(()=>oN,"HorizontalAlign"),InitialLayoutType:o(()=>qF,"InitialLayoutType"),InitialLoadType:o(()=>KF,"InitialLoadType"),LayoutType:o(()=>QF,"LayoutType"),Placement:o(()=>iN,"Placement"),RowCountMode:o(()=>GF,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>TW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>yW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>mW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>bW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>vW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JF,"SectionLayoutType"),SectionPosition:o(()=>ZF,"SectionPosition"),SectionPositionV4:o(()=>nN,"SectionPositionV4"),SelectType:o(()=>zF,"SelectType"),SelectionMode:o(()=>HF,"SelectionMode"),TableCreationModeType:o(()=>tN,"TableCreationModeType"),TableTypeV4:o(()=>WF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aN,"VariantManagementTypeObjectPage")});var BF=(e=>(e.After="After",e.Before="Before",e))(BF||{}),HF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(HF||{}),GF=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(GF||{}),WF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(WF||{}),KF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KF||{}),XF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XF||{}),QF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QF||{}),qF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qF||{}),YF=(e=>(e.After="After",e.Before="Before",e))(YF||{}),zF=(e=>(e.single="single",e.multi="multi",e))(zF||{}),JF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JF||{}),ZF=(e=>(e.After="After",e.Before="Before",e))(ZF||{}),eN=(e=>(e.XML="XML",e))(eN||{}),tN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tN||{}),fW="sap.fe",uW="sap.fe.core.fpm",pW="sap.fe.templates.ObjectPage",dW="sap.fe.templates.ListReport",gW="sap.fe.templates.AnalyticalListPage",mW="XMLFragment",nN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nN||{}),hW="sap.f.routing.Router",yW="sap.f",TW="sap.ui.controllerExtensions",vW="sap.fe.templates.ObjectPage.ObjectPageController",bW="sap.fe.templates.ListReport.ListReportController",iN=(e=>(e.After="After",e.Before="Before",e))(iN||{}),rN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rN||{}),oN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oN||{}),aN=(e=>(e.None="None",e.Control="Control",e))(aN||{}),sN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sN||{})});var mN=Ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Features=Ji.CustomExtensionType=Ji.TemplateType=Ji.PropertyMessageType=Ji.logSeverityLabel=Ji.LogSeverity=void 0;var fN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(fN||(Ji.LogSeverity=fN={}));Ji.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var uN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(uN||(Ji.PropertyMessageType=uN={}));var pN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(pN||(Ji.TemplateType=pN={}));var dN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(dN||(Ji.CustomExtensionType=dN={}));var gN;(function(e){e.BuildingBlocks="BuildingBlocks"})(gN||(Ji.Features=gN={}))});var BN=Ze((Eee,$N)=>{var Pb=Object.defineProperty,SW=Object.getOwnPropertyDescriptor,AW=Object.getOwnPropertyNames,EW=Object.prototype.hasOwnProperty,PW=o((e,t)=>{for(var n in t)Pb(e,n,{get:t[n],enumerable:!0})},"h"),xW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of AW(t))!EW.call(e,r)&&r!==n&&Pb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=SW(t,r))||i.enumerable});return e},"M"),CW=o(e=>xW(Pb({},"__esModule",{value:!0}),e),"Q"),hN={};PW(hN,{CardSettingsType:o(()=>vN,"CardSettingsType"),CardTemplateType:o(()=>TN,"CardTemplateType"),ChartCardType:o(()=>yN,"ChartCardType"),ChartType:o(()=>wN,"ChartType"),ContainerLayoutType:o(()=>UN,"ContainerLayoutType"),CreateMode:o(()=>jN,"CreateMode"),DateRangeType:o(()=>xN,"DateRangeType"),DefaultContentView:o(()=>DN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>_N,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>kN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>RW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>NW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>FW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>LW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>IN,"FilterPathType"),IgnoredFieldsType:o(()=>NN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>PN,"LinkListFlavorType"),ListFlavorType:o(()=>SN,"ListFlavorType"),ListTypeType:o(()=>AN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>VN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>bN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>_W,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>DW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>MW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>wW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>VW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>MN,"SectionPosition"),SortOrderType:o(()=>EN,"SortOrderType"),Strategy:o(()=>FN,"Strategy"),TableColumnExtensionTypeV2:o(()=>LN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>RN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>OW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>IW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>ON,"customColumnViewTypes")});$N.exports=CW(hN);var yN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yN||{}),TN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(TN||{}),IW={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},OW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(vN||{}),bN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(bN||{}),SN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(SN||{}),AN=(e=>(e.extended="extended",e.condensed="condensed",e))(AN||{}),EN=(e=>(e.ascending="ascending",e.descending="descending",e))(EN||{}),PN=(e=>(e.standard="standard",e.carousel="carousel",e))(PN||{}),xN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(xN||{}),CN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(CN||{}),IN=(e=>(e.key="key",e.catgory="category",e))(IN||{}),ON=(e=>(e.XML="XML",e))(ON||{}),RN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(RN||{}),LN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LN||{}),FN=(e=>(e.extension="extension",e))(FN||{}),NN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NN||{}),DN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(DN||{}),_N=(e=>(e.visual="visual",e.compact="compact",e))(_N||{}),VN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(VN||{}),wN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(wN||{}),MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MN||{}),kN=(e=>(e.XML="XML",e))(kN||{}),jN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(jN||{}),RW="sap.suite.ui.generic.template",LW="sap.suite.ui.generic.template.ObjectPage",FW="sap.suite.ui.generic.template.ListReport",NW="sap.suite.ui.generic.template.AnalyticalListPage",DW="sap.ui.viewExtensions",_W="sap.ui.controllerExtensions",VW="sap.suite.ui.generic.template.ObjectPage.view.Details",wW="sap.suite.ui.generic.template.ListReport.view.ListReport",MW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",UN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(UN||{})});var uD=Ze((xee,fD)=>{var xb=Object.defineProperty,kW=Object.getOwnPropertyDescriptor,jW=Object.getOwnPropertyNames,UW=Object.prototype.hasOwnProperty,$W=o((e,t)=>{for(var n in t)xb(e,n,{get:t[n],enumerable:!0})},"j"),BW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of jW(t))!UW.call(e,r)&&r!==n&&xb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=kW(t,r))||i.enumerable});return e},"R"),HW=o(e=>BW(xb({},"__esModule",{value:!0}),e),"h"),HN={};$W(HN,{ActionPlacement:o(()=>GN,"ActionPlacement"),Availability:o(()=>aD,"Availability"),CustomSectionViewTypesV4:o(()=>nD,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>qN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>GW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>QW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>WW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>XW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>KW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>YW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>JN,"FilterFieldPlacement"),HorizontalAlign:o(()=>sD,"HorizontalAlign"),InitialLayoutType:o(()=>zN,"InitialLayoutType"),InitialLoadType:o(()=>QN,"InitialLoadType"),LayoutType:o(()=>YN,"LayoutType"),Placement:o(()=>oD,"Placement"),RowCountMode:o(()=>KN,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>JW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>zW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>qW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>e8,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>ZW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>eD,"SectionLayoutType"),SectionPosition:o(()=>tD,"SectionPosition"),SectionPositionV4:o(()=>rD,"SectionPositionV4"),SelectType:o(()=>ZN,"SelectType"),SelectionMode:o(()=>WN,"SelectionMode"),TableCreationModeType:o(()=>iD,"TableCreationModeType"),TableTypeV4:o(()=>XN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>lD,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>cD,"VariantManagementTypeObjectPage")});fD.exports=HW(HN);var GN=(e=>(e.After="After",e.Before="Before",e))(GN||{}),WN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(WN||{}),KN=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(KN||{}),XN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(XN||{}),QN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(QN||{}),qN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(qN||{}),YN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(YN||{}),zN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(zN||{}),JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),ZN=(e=>(e.single="single",e.multi="multi",e))(ZN||{}),eD=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eD||{}),tD=(e=>(e.After="After",e.Before="Before",e))(tD||{}),nD=(e=>(e.XML="XML",e))(nD||{}),iD=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(iD||{}),GW="sap.fe",WW="sap.fe.core.fpm",KW="sap.fe.templates.ObjectPage",XW="sap.fe.templates.ListReport",QW="sap.fe.templates.AnalyticalListPage",qW="XMLFragment",rD=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(rD||{}),YW="sap.f.routing.Router",zW="sap.f",JW="sap.ui.controllerExtensions",ZW="sap.fe.templates.ObjectPage.ObjectPageController",e8="sap.fe.templates.ListReport.ListReportController",oD=(e=>(e.After="After",e.Before="Before",e))(oD||{}),aD=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(aD||{}),sD=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sD||{}),cD=(e=>(e.None="None",e.Control="Control",e))(cD||{}),lD=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lD||{})});var re=Ze(Ei=>{"use strict";var pD=Ei&&Ei.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),t8=Ei&&Ei.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),dD=Ei&&Ei.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pD(t,e,n)},gD=Ei&&Ei.__importStar||(function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&pD(n,t,i[r]);return t8(n,t),n}})();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.v4=Ei.v2=void 0;dD(lN(),Ei);dD(mN(),Ei);Ei.v2=gD(BN());Ei.v4=gD(uD())});var Gb=Ze((Wee,FD)=>{"use strict";var y8=o(function(t){return T8(t)&&!v8(t)},"isMergeableObject");function T8(e){return!!e&&typeof e=="object"}o(T8,"isNonNullObject");function v8(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||A8(e)}o(v8,"isSpecial");var b8=typeof Symbol=="function"&&Symbol.for,S8=b8?Symbol.for("react.element"):60103;function A8(e){return e.$$typeof===S8}o(A8,"isReactElement");function E8(e){return Array.isArray(e)?[]:{}}o(E8,"emptyTarget");function _u(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Dl(E8(e),e,t):e}o(_u,"cloneUnlessOtherwiseSpecified");function P8(e,t,n){return e.concat(t).map(function(i){return _u(i,n)})}o(P8,"defaultArrayMerge");function x8(e,t){if(!t.customMerge)return Dl;var n=t.customMerge(e);return typeof n=="function"?n:Dl}o(x8,"getMergeFunction");function C8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(C8,"getEnumerableOwnPropertySymbols");function RD(e){return Object.keys(e).concat(C8(e))}o(RD,"getKeys");function LD(e,t){try{return t in e}catch{return!1}}o(LD,"propertyIsOnObject");function I8(e,t){return LD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(I8,"propertyIsUnsafe");function O8(e,t,n){var i={};return n.isMergeableObject(e)&&RD(e).forEach(function(r){i[r]=_u(e[r],n)}),RD(t).forEach(function(r){I8(e,r)||(LD(e,r)&&n.isMergeableObject(t[r])?i[r]=x8(r,n)(e[r],t[r],n):i[r]=_u(t[r],n))}),i}o(O8,"mergeObject");function Dl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||P8,n.isMergeableObject=n.isMergeableObject||y8,n.cloneUnlessOtherwiseSpecified=_u;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):O8(e,t,n):_u(t,n)}o(Dl,"deepmerge");Dl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Dl(i,r,n)},{})},"deepmergeAll");var R8=Dl;FD.exports=R8});var am=Ze(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.Double=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var L8=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return L8.EnumIsFlag},"get")});var F8=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return F8.TermToTypes},"get")});var N8=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return N8.VocabularyReferences},"get")});function ND(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(ND,"splitAt");function DD(e,t){return t<0?e:e.substring(0,t)}o(DD,"substringAt");function om(e,t){return ND(e,e.indexOf(t))}o(om,"splitAtFirst");Tt.splitAtFirst=om;function _D(e,t){return ND(e,e.lastIndexOf(t))}o(_D,"splitAtLast");Tt.splitAtLast=_D;function D8(e,t){return DD(e,e.indexOf(t))}o(D8,"substringBeforeFirst");Tt.substringBeforeFirst=D8;function _8(e,t){return DD(e,e.lastIndexOf(t))}o(_8,"substringBeforeLast");Tt.substringBeforeLast=_8;function VD(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=_D(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=om(t,"@");return`${a}@${VD(e,s)}`}else return t}o(VD,"alias");Tt.alias=VD;function Wb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=om(a,".");if(!l||l.includes("."))return a;let f=s.startsWith("@"),p=f?s.substring(1):s,d=e.referenceMap[p];return d?f?`@${d.namespace}.${l}`:`${d.namespace}.${l}`:n&&!f?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,f]=om(s,"("),p=[r(l)];if(f){let d=f.slice(0,-1);p.push(`(${r(d)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Wb,"unalias");Tt.unalias=Wb;function V8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(V8,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=V8;function w8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(w8,"Double");Tt.Double=w8;function M8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(M8,"Decimal");Tt.Decimal=M8;function k8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(k8,"lazy");Tt.lazy=k8;function wD(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(wD,"createIndexedFind");Tt.createIndexedFind=wD;function j8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:wD(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(j8,"addGetByValue");Tt.addGetByValue=j8;function U8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let f=(a=Wb(e,s))!==null&&a!==void 0?a:s;n[f]||(n[f]=[]);let p=l.map(d=>{var m;return d.term=(m=Wb(e,d.term))!==null&&m!==void 0?m:d.term,d.fullyQualifiedName=d.qualifier?`${f}@${d.term}#${d.qualifier}`:`${f}@${d.term}`,d.__source=i,d}).filter(d=>!n[f].some(m=>m.term===d.term&&m.qualifier===d.qualifier));n[f].push(...p)}return n},{})}o(U8,"mergeAnnotations");Tt.mergeAnnotations=U8});var YD=Ze(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.convert=void 0;var sm=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ee=am(),mo=Symbol("Annotation Target");function ma(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ma,"appendObjectPath");function br(e,t,n,i){var r,a,s,l,f;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,v)=>{if(v.includes("@")){let[S,b]=(0,Ee.splitAtFirst)(v,"@");m.push(S),m.push(`@${b}`)}else m.push(v);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[mo]!==void 0)t=t[mo];else if(t._type==="Property"){let m=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(f=e.getConvertedEntityType(m))!==null&&f!==void 0?f:e.getConvertedComplexType(m)}let d=p.reduce((m,v)=>{var S,b,I,F,j;let W=o(U=>(m.messages.push({message:U}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ma(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[U,se]=e.splitTerm(v),ee=(S=m.target.annotations[U.substring(1)])===null||S===void 0?void 0:S[se];return ee!==void 0?(m.target=ee,m):W(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let U;if(v==="$AnnotationPath"?U=m.target.value:v==="$Path"&&(U=m.target.path),U!==void 0){let se=br(e,m.target[mo],U);return se.objectPath.forEach(ee=>{m.objectPath.includes(ee)||(m.objectPath=ma(m.objectPath,ee))}),m.target=se.target,m.objectPath=ma(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let ee=m.target;if(v===""||e.unalias(v)===ee.fullyQualifiedName)return m;let le=(F=(I=ee.entitySets.by_name(v))!==null&&I!==void 0?I:ee.singletons.by_name(v))!==null&&F!==void 0?F:ee.actionImports.by_name(v);if(le)return m.target=le,m}break;case"EntitySet":case"Singleton":{let ee=m.target;if(v===""||v==="$Type")return m.target=ee.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Le=ee.navigationPropertyBinding;return m.target=Le,m}let le=br(e,ee.entityType,v);return m.target=le.target,m.objectPath=le.objectPath.reduce(ma,m.objectPath),m}case"EntityType":{let ee=m.target;if(v===""||v==="$Type")return m;let le=ee.entityProperties.by_name(v);if(le)return m.target=le,m;let Le=ee.navigationProperties.by_name(v);if(Le)return m.target=Le,m;let D=(0,Ee.substringBeforeFirst)(e.unalias(v),"("),Ue=ee.actions[D];if(Ue)return m.target=Ue,m}break;case"ActionImport":{let ee=br(e,m.target.action,v);return m.target=ee.target,m.objectPath=ee.objectPath.reduce(ma,m.objectPath),m}case"Action":{let ee=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&ee.isBound)return m.target=ee.parameters,m;let le=(j=ee.parameters[v])!==null&&j!==void 0?j:ee.parameters.find(Le=>Le.name===v);if(le)return m.target=le,m;break}case"Property":{let le=m.target.targetType;if(le!==void 0){let Le=le.properties.by_name(v);if(Le)return m.target=Le,m;let D=le.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let U=m.target.typeReference;if(U!==void 0){let ee=br(e,U,v);return m.target=ee.target,m.objectPath=ee.objectPath.reduce(ma,m.objectPath),m}break;case"NavigationProperty":let se=br(e,m.target.targetType,v);return m.target=se.target,m.objectPath=se.objectPath.reduce(ma,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=ma(m.objectPath,m.target),m}return W(`Element '${v}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(d.messages.forEach(m=>e.logError(m.message)),!d.target)if(i){let m=$D(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
2
2
  `+n+`
3
3
 
4
4
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
@@ -16,7 +16,7 @@ Hint: If possible, try to maintain the Type property for each Record.
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),r}o($D,"inferTypeFromTerm");function H8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(H8,"isDataFieldWithForAction");function G8(e,t,n,i,r){let a;return!r.type&&t?a=$D(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(G8,"parseRecordType");function Qb(e,t,n,i,r,a,s){let l={$Type:G8(e,t,n,i,a),fullyQualifiedName:s,[mo]:n,__source:r};for(let f of a.propertyValues)(0,Ee.lazy)(l,f.name,()=>UD(e,n,t,f.name,r,f.value,`${s}/${f.name}`));return(0,Ee.lazy)(l,"annotations",GD(e,a,l)),H8(l)&&(0,Ee.lazy)(l,"ActionTarget",()=>{var f,p;let d=e.unalias((f=l.Action)===null||f===void 0?void 0:f.toString()),m=n.actions[d];return m||(m=(p=e.getConvertedActionImport(d))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(d),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${d}')`),m}),l}o(Qb,"parseRecord");function W8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(W8,"getOrInferCollectionType");function BD(e,t,n,i,r,a,s){switch(W8(a)){case"PropertyPath":return a.map((f,p)=>MD(e,f,`${s}/${p}`,t,n));case"Path":return a.map(f=>br(e,t,f.Path,n).target);case"AnnotationPath":return a.map((f,p)=>kD(e,f,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((f,p)=>jD(e,f,`${s}/${p}`,t,n));case"Record":return a.map((f,p)=>Qb(e,n,t,i,r,f,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(f=>f);case"String":return a.map(f=>typeof f=="string"||f===void 0?f:f.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(BD,"parseCollection");function K8(e){return!!e.targetTypeName}o(K8,"isV4NavigationProperty");function X8(e,t,n){var i;let r;if(n.record)r=Qb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=UD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=BD(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[mo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,sm.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ee.lazy)(r,"annotations",GD(e,n,r))}catch{}return r}o(X8,"convertAnnotation");var qb=class qb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ee.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,WD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ee.addGetByValue)(i,"name"),(0,Ee.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ee.alias)(sm.VocabularyReferences,t);return(0,Ee.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ee.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(qb,"Converter");var Kb=qb;function Vu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Vu,"resolveEntityType");function HD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ee.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(HD,"resolveNavigationPropertyBindings");function ha(e,t){let n=t.annotations;return()=>cm(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ha,"resolveAnnotations");function GD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[mo]=n[mo],a.fullyQualifiedName=`${i}@${a.term}`}),cm(e,n,r??[])}}o(GD,"resolveAnnotationsOnAnnotation");function cm(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(l)||(i[a]._keys.push(l),(0,Ee.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(f,p)=>X8(f,t,p)))),i},{})}o(cm,"createAnnotationsObject");function WD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,XD)),(0,Ee.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,KD)),(0,Ee.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,qD)),n}o(WD,"convertEntityContainer");function KD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Vu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ha(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",HD(e,i)),n}o(KD,"convertSingleton");function XD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Vu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ha(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",HD(e,i)),n}o(XD,"convertEntitySet");function Q8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"keys",e.convert(t.keys,Xb)),(0,Ee.lazy)(n,"entityProperties",e.convert(t.entityProperties,Xb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,QD)),(0,Ee.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=br(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(Q8,"convertEntityType");function Xb(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Xb,"convertProperty");function QD(e,t){var n,i,r,a,s;let l=t;if(l.referentialConstraint=(n=l.referentialConstraint)!==null&&n!==void 0?n:[],l.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(d=>d.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(l.referentialConstraint=(r=(i=p.collection)===null||i===void 0?void 0:i.map(d=>{var m,v;return{sourceProperty:((m=d.propertyValues.find(S=>S.name==="Property"))===null||m===void 0?void 0:m.value).PropertyPath,targetTypeName:l.targetTypeName,targetProperty:((v=d.propertyValues.find(S=>S.name==="ReferencedProperty"))===null||v===void 0?void 0:v.value).PropertyPath}}))!==null&&r!==void 0?r:[])}if(!K8(t)){let f=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);l.isCollection=(f==null?void 0:f.multiplicity)==="*",l.targetTypeName=(s=f==null?void 0:f.type)!==null&&s!==void 0?s:""}return(0,Ee.lazy)(l,"targetType",Vu(e,t.targetTypeName)),(0,Ee.lazy)(l,"annotations",ha(e,t)),l}o(QD,"convertNavigationProperty");function qD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(qD,"convertActionImport");function q8(e,t){let n=t;return n.sourceType&&(0,Ee.lazy)(n,"sourceEntityType",Vu(e,t.sourceType)),n.returnType&&(0,Ee.lazy)(n,"returnEntityType",Vu(e,t.returnType)),(0,Ee.lazy)(n,"parameters",e.convert(t.parameters,Y8)),(0,Ee.lazy)(n,"annotations",()=>{let i=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return cm(e,t,a)}),n}o(q8,"convertAction");function Y8(e,t){let n=t;return(0,Ee.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ee.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return cm(e,t,a)}),n}o(Y8,"convertActionParameter");function z8(e,t){let n=t;return(0,Ee.lazy)(n,"properties",e.convert(t.properties,Xb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,QD)),(0,Ee.lazy)(n,"annotations",ha(e,t)),n}o(z8,"convertComplexType");function J8(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),n}o(J8,"convertTypeDefinition");function Z8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:sm.VocabularyReferences,diagnostics:[]},n=new Kb(e,t);return(0,Ee.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,WD)),(0,Ee.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,XD)),(0,Ee.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,KD)),(0,Ee.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,Q8)),(0,Ee.lazy)(t,"actions",n.convert(n.rawSchema.actions,q8)),(0,Ee.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,z8)),(0,Ee.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,qD)),(0,Ee.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,J8)),t.resolvePath=o(function(r){let a=br(n,void 0,r);return a.target&&ma(a.objectPath,a.target),a},"resolvePath"),t}o(Z8,"convert");lm.convert=Z8});var e0=Ze(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.revertTermToGenericType=void 0;var Yb=am();function eK(e,t){var n,i,r,a,s,l,f;let p;if(Array.isArray(t)){let d=t[0],m=!1;if(d&&typeof d=="string"){let v=d.valueOf().split(".");v.length>1&&e.find(S=>S.alias===v[0])&&(m=Yb.EnumIsFlag[(0,Yb.substringBeforeFirst)(d,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>fm(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let d=t.valueOf().split(".");d.length>1&&e.find(m=>m.alias===d[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((f=t.isBoolean)===null||f===void 0)&&f.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:fm(e,t)});return p}o(eK,"revertObjectToRawType");function zD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=eK(e,t);break}return n}o(zD,"revertValueToRawType");var tK=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function JD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(r=>r!=="_keys").forEach(r=>{let a=ZD(e,t[i][r]);if(!a.term){let s=(0,Yb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(JD,"revertAnnotationsToRawType");function fm(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(tK.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:zD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],JD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(fm,"revertCollectionItemToRawType");function ZD(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],JD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>fm(e,i))}):t.hasOwnProperty("$Type")?{...n,record:fm(e,t)}:{...n,value:zD(e,t)}}o(ZD,"revertTermToGenericType");um.revertTermToGenericType=ZD});var t0=Ze(ya=>{"use strict";var nK=ya&&ya.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),zb=ya&&ya.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&nK(t,e,n)};Object.defineProperty(ya,"__esModule",{value:!0});zb(YD(),ya);zb(am(),ya);zb(e0(),ya)});var nS=Ze(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.MergedRawMetadata=ss.RawMetadataInstance=ss.ensureArray=void 0;function iK(e){return e==null?[]:Array.isArray(e)?e:[e]}o(iK,"ensureArray");ss.ensureArray=iK;var eS=class eS{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(eS,"RawMetadataInstance");var Jb=eS;ss.RawMetadataInstance=Jb;var tS=class tS{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(tS,"MergedRawMetadata");var Zb=tS;ss.MergedRawMetadata=Zb});var n0=Ze(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.merge=void 0;var rK=nS();function oK(...e){let t=new rK.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(oK,"merge");pm.merge=oK});var i0=Ze(dm=>{(function(e){e.parser=function(O,E){return new n(O,E)},e.SAXParser=n,e.SAXStream=p,e.createStream=f,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,E){if(!(this instanceof n))return new n(O,E);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=E||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function E(){}o(E,"F"),E.prototype=O;var Y=new E;return Y}),Object.keys||(Object.keys=function(O){var E=[];for(var Y in O)O.hasOwnProperty(Y)&&E.push(Y);return E});function i(O){for(var E=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Nt=O[t[V]].length;if(Nt>E)switch(t[V]){case"textNode":rn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:At(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Nt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var E=0,Y=t.length;E<Y;E++)O[t[E]]=""}o(r,"clearBuffers");function a(O){rn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Yt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function f(O,E){return new p(O,E)}o(f,"createStream");function p(O,E){if(!(this instanceof p))return new p(O,E);s.apply(this),this._parser=new n(O,E),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var E=require("string_decoder").StringDecoder;this._decoder=new E("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,E){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,E)};var d="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:S},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function U(O){return O===" "||O===`
19
+ </Annotations>`),r}o($D,"inferTypeFromTerm");function H8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(H8,"isDataFieldWithForAction");function G8(e,t,n,i,r){let a;return!r.type&&t?a=$D(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(G8,"parseRecordType");function Qb(e,t,n,i,r,a,s){let l={$Type:G8(e,t,n,i,a),fullyQualifiedName:s,[mo]:n,__source:r};for(let f of a.propertyValues)(0,Ee.lazy)(l,f.name,()=>UD(e,n,t,f.name,r,f.value,`${s}/${f.name}`));return(0,Ee.lazy)(l,"annotations",GD(e,a,l)),H8(l)&&(0,Ee.lazy)(l,"ActionTarget",()=>{var f,p;let d=e.unalias((f=l.Action)===null||f===void 0?void 0:f.toString()),m=n.actions[d];return m||(m=(p=e.getConvertedActionImport(d))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(d),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${d}')`),m}),l}o(Qb,"parseRecord");function W8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(W8,"getOrInferCollectionType");function BD(e,t,n,i,r,a,s){switch(W8(a)){case"PropertyPath":return a.map((f,p)=>MD(e,f,`${s}/${p}`,t,n));case"Path":return a.map(f=>br(e,t,f.Path,n).target);case"AnnotationPath":return a.map((f,p)=>kD(e,f,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((f,p)=>jD(e,f,`${s}/${p}`,t,n));case"Record":return a.map((f,p)=>Qb(e,n,t,i,r,f,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(f=>f);case"String":return a.map(f=>typeof f=="string"||f===void 0?f:f.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(BD,"parseCollection");function K8(e){return!!e.targetTypeName}o(K8,"isV4NavigationProperty");function X8(e,t,n){var i;let r;if(n.record)r=Qb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=UD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=BD(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[mo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,sm.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ee.lazy)(r,"annotations",GD(e,n,r))}catch{}return r}o(X8,"convertAnnotation");var qb=class qb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ee.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,WD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ee.addGetByValue)(i,"name"),(0,Ee.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ee.alias)(sm.VocabularyReferences,t);return(0,Ee.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ee.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(qb,"Converter");var Kb=qb;function Vu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Vu,"resolveEntityType");function HD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ee.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(HD,"resolveNavigationPropertyBindings");function ha(e,t){let n=t.annotations;return()=>cm(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ha,"resolveAnnotations");function GD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[mo]=n[mo],a.fullyQualifiedName=`${i}@${a.term}`}),cm(e,n,r??[])}}o(GD,"resolveAnnotationsOnAnnotation");function cm(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(l)||(i[a]._keys.push(l),(0,Ee.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(f,p)=>X8(f,t,p)))),i},{})}o(cm,"createAnnotationsObject");function WD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,XD)),(0,Ee.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,KD)),(0,Ee.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,qD)),n}o(WD,"convertEntityContainer");function KD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Vu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ha(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",HD(e,i)),n}o(KD,"convertSingleton");function XD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Vu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ha(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",HD(e,i)),n}o(XD,"convertEntitySet");function Q8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"keys",e.convert(t.keys,Xb)),(0,Ee.lazy)(n,"entityProperties",e.convert(t.entityProperties,Xb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,QD)),(0,Ee.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=br(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(Q8,"convertEntityType");function Xb(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Xb,"convertProperty");function QD(e,t){var n,i,r,a,s;let l=t;if(l.referentialConstraint=(n=l.referentialConstraint)!==null&&n!==void 0?n:[],l.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(d=>d.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(l.referentialConstraint=(r=(i=p.collection)===null||i===void 0?void 0:i.map(d=>{var m,v;let S=(m=d.propertyValues.find(I=>I.name==="ReferencedProperty"))===null||m===void 0?void 0:m.value,b="";if(S.PropertyPath){let I=S.PropertyPath.split("/");I.shift(),b=I.join("/")}return{sourceProperty:((v=d.propertyValues.find(I=>I.name==="Property"))===null||v===void 0?void 0:v.value).PropertyPath,targetTypeName:l.targetTypeName,targetProperty:b}}))!==null&&r!==void 0?r:[])}if(!K8(t)){let f=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);l.isCollection=(f==null?void 0:f.multiplicity)==="*",l.targetTypeName=(s=f==null?void 0:f.type)!==null&&s!==void 0?s:""}return(0,Ee.lazy)(l,"targetType",Vu(e,t.targetTypeName)),(0,Ee.lazy)(l,"annotations",ha(e,t)),l}o(QD,"convertNavigationProperty");function qD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),(0,Ee.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(qD,"convertActionImport");function q8(e,t){let n=t;return n.sourceType&&(0,Ee.lazy)(n,"sourceEntityType",Vu(e,t.sourceType)),n.returnType&&(0,Ee.lazy)(n,"returnEntityType",Vu(e,t.returnType)),(0,Ee.lazy)(n,"parameters",e.convert(t.parameters,Y8)),(0,Ee.lazy)(n,"annotations",()=>{let i=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return cm(e,t,a)}),n}o(q8,"convertAction");function Y8(e,t){let n=t;return(0,Ee.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ee.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return cm(e,t,a)}),n}o(Y8,"convertActionParameter");function z8(e,t){let n=t;return(0,Ee.lazy)(n,"properties",e.convert(t.properties,Xb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,QD)),(0,Ee.lazy)(n,"annotations",ha(e,t)),n}o(z8,"convertComplexType");function J8(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ha(e,t)),n}o(J8,"convertTypeDefinition");function Z8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:sm.VocabularyReferences,diagnostics:[]},n=new Kb(e,t);return(0,Ee.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,WD)),(0,Ee.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,XD)),(0,Ee.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,KD)),(0,Ee.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,Q8)),(0,Ee.lazy)(t,"actions",n.convert(n.rawSchema.actions,q8)),(0,Ee.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,z8)),(0,Ee.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,qD)),(0,Ee.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,J8)),t.resolvePath=o(function(r){let a=br(n,void 0,r);return a.target&&ma(a.objectPath,a.target),a},"resolvePath"),t}o(Z8,"convert");lm.convert=Z8});var e0=Ze(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.revertTermToGenericType=void 0;var Yb=am();function eK(e,t){var n,i,r,a,s,l,f;let p;if(Array.isArray(t)){let d=t[0],m=!1;if(d&&typeof d=="string"){let v=d.valueOf().split(".");v.length>1&&e.find(S=>S.alias===v[0])&&(m=Yb.EnumIsFlag[(0,Yb.substringBeforeFirst)(d,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>fm(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let d=t.valueOf().split(".");d.length>1&&e.find(m=>m.alias===d[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((f=t.isBoolean)===null||f===void 0)&&f.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:fm(e,t)});return p}o(eK,"revertObjectToRawType");function zD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=eK(e,t);break}return n}o(zD,"revertValueToRawType");var tK=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function JD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(r=>r!=="_keys").forEach(r=>{let a=ZD(e,t[i][r]);if(!a.term){let s=(0,Yb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(JD,"revertAnnotationsToRawType");function fm(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(tK.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:zD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],JD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(fm,"revertCollectionItemToRawType");function ZD(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],JD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>fm(e,i))}):t.hasOwnProperty("$Type")?{...n,record:fm(e,t)}:{...n,value:zD(e,t)}}o(ZD,"revertTermToGenericType");um.revertTermToGenericType=ZD});var t0=Ze(ya=>{"use strict";var nK=ya&&ya.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),zb=ya&&ya.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&nK(t,e,n)};Object.defineProperty(ya,"__esModule",{value:!0});zb(YD(),ya);zb(am(),ya);zb(e0(),ya)});var nS=Ze(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.MergedRawMetadata=cs.RawMetadataInstance=cs.ensureArray=void 0;function iK(e){return e==null?[]:Array.isArray(e)?e:[e]}o(iK,"ensureArray");cs.ensureArray=iK;var eS=class eS{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(eS,"RawMetadataInstance");var Jb=eS;cs.RawMetadataInstance=Jb;var tS=class tS{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(tS,"MergedRawMetadata");var Zb=tS;cs.MergedRawMetadata=Zb});var n0=Ze(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.merge=void 0;var rK=nS();function oK(...e){let t=new rK.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(oK,"merge");pm.merge=oK});var i0=Ze(dm=>{(function(e){e.parser=function(O,E){return new n(O,E)},e.SAXParser=n,e.SAXStream=p,e.createStream=f,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,E){if(!(this instanceof n))return new n(O,E);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=E||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function E(){}o(E,"F"),E.prototype=O;var Y=new E;return Y}),Object.keys||(Object.keys=function(O){var E=[];for(var Y in O)O.hasOwnProperty(Y)&&E.push(Y);return E});function i(O){for(var E=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Nt=O[t[V]].length;if(Nt>E)switch(t[V]){case"textNode":rn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:At(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Nt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var E=0,Y=t.length;E<Y;E++)O[t[E]]=""}o(r,"clearBuffers");function a(O){rn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Yt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function f(O,E){return new p(O,E)}o(f,"createStream");function p(O,E){if(!(this instanceof p))return new p(O,E);s.apply(this),this._parser=new n(O,E),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var E=require("string_decoder").StringDecoder;this._decoder=new E("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,E){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,E)};var d="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:S},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function U(O){return O===" "||O===`
20
20
  `||O==="\r"||O===" "}o(U,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function ee(O){return O===">"||U(O)}o(ee,"isAttribEnd");function le(O,E){return O.test(E)}o(le,"isMatch");function Le(O,E){return!le(O,E)}o(Le,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var E=e.ENTITIES[O],Y=typeof E=="number"?String.fromCharCode(E):E;e.ENTITIES[O]=Y});for(var Ue in e.STATE)e.STATE[e.STATE[Ue]]=Ue;D=e.STATE;function $e(O,E,Y){O[E]&&O[E](Y)}o($e,"emit");function qe(O,E,Y){O.textNode&&rn(O),$e(O,E,Y)}o(qe,"emitNode");function rn(O){O.textNode=Bt(O.opt,O.textNode),O.textNode&&$e(O,"ontext",O.textNode),O.textNode=""}o(rn,"closeText");function Bt(O,E){return O.trim&&(E=E.trim()),O.normalize&&(E=E.replace(/\s+/g," ")),E}o(Bt,"textopts");function At(O,E){return rn(O),O.trackPosition&&(E+=`
21
21
  Line: `+O.line+`
22
22
  Column: `+O.column+`
@@ -26,7 +26,7 @@ Actual: `+O.attribValue);else{var _e=O.tag,Nt=O.tags[O.tags.length-1]||O;_e.ns==
26
26
  `?(E.line++,E.column=0):E.column++),E.state){case D.BEGIN:if(E.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;fn(E,V);continue;case D.BEGIN_WHITESPACE:fn(E,V);continue;case D.TEXT:if(E.sawRoot&&!E.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Fi(O,Y++),V&&E.trackPosition&&(E.position++,V===`
27
27
  `?(E.line++,E.column=0):E.column++);E.textNode+=O.substring(_e,Y-1)}V==="<"&&!(E.sawRoot&&E.closedRoot&&!E.strict)?(E.state=D.OPEN_WAKA,E.startTagPosition=E.position):(!U(V)&&(!E.sawRoot||E.closedRoot)&&Fe(E,"Text data outside of root node."),V==="&"?E.state=D.TEXT_ENTITY:E.textNode+=V);continue;case D.SCRIPT:V==="<"?E.state=D.SCRIPT_ENDING:E.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?E.state=D.CLOSE_TAG:(E.script+="<"+V,E.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")E.state=D.SGML_DECL,E.sgmlDecl="";else if(!U(V))if(le(I,V))E.state=D.OPEN_TAG,E.tagName=V;else if(V==="/")E.state=D.CLOSE_TAG,E.tagName="";else if(V==="?")E.state=D.PROC_INST,E.procInstName=E.procInstBody="";else{if(Fe(E,"Unencoded <"),E.startTagPosition+1<E.position){var Nt=E.position-E.startTagPosition;V=new Array(Nt).join(" ")+V}E.textNode+="<"+V,E.state=D.TEXT}continue;case D.SGML_DECL:if(E.sgmlDecl+V==="--"){E.state=D.COMMENT,E.comment="",E.sgmlDecl="";continue}E.doctype&&E.doctype!==!0&&E.sgmlDecl?(E.state=D.DOCTYPE_DTD,E.doctype+="<!"+E.sgmlDecl+V,E.sgmlDecl=""):(E.sgmlDecl+V).toUpperCase()===d?(qe(E,"onopencdata"),E.state=D.CDATA,E.sgmlDecl="",E.cdata=""):(E.sgmlDecl+V).toUpperCase()===m?(E.state=D.DOCTYPE,(E.doctype||E.sawRoot)&&Fe(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):V===">"?(qe(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=D.TEXT):(se(V)&&(E.state=D.SGML_DECL_QUOTED),E.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===E.q&&(E.state=D.SGML_DECL,E.q=""),E.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(E.state=D.TEXT,qe(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=V,V==="["?E.state=D.DOCTYPE_DTD:se(V)&&(E.state=D.DOCTYPE_QUOTED,E.q=V));continue;case D.DOCTYPE_QUOTED:E.doctype+=V,V===E.q&&(E.q="",E.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(E.doctype+=V,E.state=D.DOCTYPE):V==="<"?(E.state=D.OPEN_WAKA,E.startTagPosition=E.position):se(V)?(E.doctype+=V,E.state=D.DOCTYPE_DTD_QUOTED,E.q=V):E.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:E.doctype+=V,V===E.q&&(E.state=D.DOCTYPE_DTD,E.q="");continue;case D.COMMENT:V==="-"?E.state=D.COMMENT_ENDING:E.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(E.state=D.COMMENT_ENDED,E.comment=Bt(E.opt,E.comment),E.comment&&qe(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+V,E.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Fe(E,"Malformed comment"),E.comment+="--"+V,E.state=D.COMMENT):E.doctype&&E.doctype!==!0?E.state=D.DOCTYPE_DTD:E.state=D.TEXT;continue;case D.CDATA:V==="]"?E.state=D.CDATA_ENDING:E.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?E.state=D.CDATA_ENDING_2:(E.cdata+="]"+V,E.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(E.cdata&&qe(E,"oncdata",E.cdata),qe(E,"onclosecdata"),E.cdata="",E.state=D.TEXT):V==="]"?E.cdata+="]":(E.cdata+="]]"+V,E.state=D.CDATA);continue;case D.PROC_INST:V==="?"?E.state=D.PROC_INST_ENDING:U(V)?E.state=D.PROC_INST_BODY:E.procInstName+=V;continue;case D.PROC_INST_BODY:if(!E.procInstBody&&U(V))continue;V==="?"?E.state=D.PROC_INST_ENDING:E.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(qe(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=D.TEXT):(E.procInstBody+="?"+V,E.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:le(F,V)?E.tagName+=V:(vn(E),V===">"?Rn(E):V==="/"?E.state=D.OPEN_TAG_SLASH:(U(V)||Fe(E,"Invalid character in tag name"),E.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(Rn(E,!0),an(E)):(Fe(E,"Forward-slash in opening tag not followed by >"),E.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?Rn(E):V==="/"?E.state=D.OPEN_TAG_SLASH:le(I,V)?(E.attribName=V,E.attribValue="",E.state=D.ATTRIB_NAME):Fe(E,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?E.state=D.ATTRIB_VALUE:V===">"?(Fe(E,"Attribute without value"),E.attribValue=E.attribName,on(E),Rn(E)):U(V)?E.state=D.ATTRIB_NAME_SAW_WHITE:le(F,V)?E.attribName+=V:Fe(E,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")E.state=D.ATTRIB_VALUE;else{if(U(V))continue;Fe(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",qe(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",V===">"?Rn(E):le(I,V)?(E.attribName=V,E.state=D.ATTRIB_NAME):(Fe(E,"Invalid attribute name"),E.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;se(V)?(E.q=V,E.state=D.ATTRIB_VALUE_QUOTED):(E.opt.unquotedAttributeValues||At(E,"Unquoted attribute value"),E.state=D.ATTRIB_VALUE_UNQUOTED,E.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==E.q){V==="&"?E.state=D.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=V;continue}on(E),E.q="",E.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?E.state=D.ATTRIB:V===">"?Rn(E):V==="/"?E.state=D.OPEN_TAG_SLASH:le(I,V)?(Fe(E,"No whitespace between attributes"),E.attribName=V,E.attribValue="",E.state=D.ATTRIB_NAME):Fe(E,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!ee(V)){V==="&"?E.state=D.ATTRIB_VALUE_ENTITY_U:E.attribValue+=V;continue}on(E),V===">"?Rn(E):E.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(E.tagName)V===">"?an(E):le(F,V)?E.tagName+=V:E.script?(E.script+="</"+E.tagName,E.tagName="",E.state=D.SCRIPT):(U(V)||Fe(E,"Invalid tagname in closing tag"),E.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Le(I,V)?E.script?(E.script+="</"+V,E.state=D.SCRIPT):Fe(E,"Invalid tagname in closing tag."):E.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(U(V))continue;V===">"?an(E):Fe(E,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var ze,kt;switch(E.state){case D.TEXT_ENTITY:ze=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ze=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ze=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var Sn=Oe(E);E.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Sn)?(E.entity="",E.state=ze,E.write(Sn)):(E[kt]+=Sn,E.entity="",E.state=ze)}else le(E.entity.length?W:j,V)?E.entity+=V:(Fe(E,"Invalid character in entity name"),E[kt]+="&"+E.entity+V,E.entity="",E.state=ze);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&i(E),E}o(tt,"write");String.fromCodePoint||(function(){var O=String.fromCharCode,E=Math.floor,Y=o(function(){var V=16384,_e=[],Nt,ze,kt=-1,Sn=arguments.length;if(!Sn)return"";for(var un="";++kt<Sn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||E(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Nt=(Ht>>10)+55296,ze=Ht%1024+56320,_e.push(Nt,ze)),(kt+1===Sn||_e.length>V)&&(un+=O.apply(null,_e),_e.length=0)}return un},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y})()})(typeof dm>"u"?dm.sax={}:dm)});var gm=Ze((ste,r0)=>{r0.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var mm=Ze((lte,o0)=>{var aK=gm().isArray;o0.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!aK(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var rS=Ze((ute,d0)=>{var sK=i0(),cK={on:o(function(){},"on"),parse:o(function(){},"parse")},ot=mm(),_l=gm().isArray,H,iS=!0,He;function lK(e){return H=ot.copyOptions(e),ot.ensureFlagExists("ignoreDeclaration",H),ot.ensureFlagExists("ignoreInstruction",H),ot.ensureFlagExists("ignoreAttributes",H),ot.ensureFlagExists("ignoreText",H),ot.ensureFlagExists("ignoreComment",H),ot.ensureFlagExists("ignoreCdata",H),ot.ensureFlagExists("ignoreDoctype",H),ot.ensureFlagExists("compact",H),ot.ensureFlagExists("alwaysChildren",H),ot.ensureFlagExists("addParent",H),ot.ensureFlagExists("trim",H),ot.ensureFlagExists("nativeType",H),ot.ensureFlagExists("nativeTypeAttributes",H),ot.ensureFlagExists("sanitize",H),ot.ensureFlagExists("instructionHasAttributes",H),ot.ensureFlagExists("captureSpacesBetweenElements",H),ot.ensureAlwaysArrayExists(H),ot.ensureKeyExists("declaration",H),ot.ensureKeyExists("instruction",H),ot.ensureKeyExists("attributes",H),ot.ensureKeyExists("text",H),ot.ensureKeyExists("comment",H),ot.ensureKeyExists("cdata",H),ot.ensureKeyExists("doctype",H),ot.ensureKeyExists("type",H),ot.ensureKeyExists("name",H),ot.ensureKeyExists("elements",H),ot.ensureKeyExists("parent",H),ot.checkFnExists("doctype",H),ot.checkFnExists("instruction",H),ot.checkFnExists("cdata",H),ot.checkFnExists("comment",H),ot.checkFnExists("text",H),ot.checkFnExists("instructionName",H),ot.checkFnExists("elementName",H),ot.checkFnExists("attributeName",H),ot.checkFnExists("attributeValue",H),ot.checkFnExists("attributes",H),H}o(lK,"validateOptions");function u0(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(u0,"nativeType");function wu(e,t){var n;if(H.compact){if(!He[H[e+"Key"]]&&(_l(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(He[H[e+"Key"]]=[]),He[H[e+"Key"]]&&!_l(He[H[e+"Key"]])&&(He[H[e+"Key"]]=[He[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,He)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,He);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,He)]=i}}_l(He[H[e+"Key"]])?He[H[e+"Key"]].push(t):He[H[e+"Key"]]=t}else{He[H.elementsKey]||(He[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,He):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,He))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,He)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,He)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=He),He[H.elementsKey].push(r)}}o(wu,"addField");function p0(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,He)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=u0(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,He)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],He)]=n}}return e}o(p0,"manipulateAttributes");function fK(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=p0(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;He[H.declarationKey]={},Object.keys(t).length&&(He[H.declarationKey][H.attributesKey]=t),H.addParent&&(He[H.declarationKey][H.parentKey]=He)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,wu("instruction",r)}}o(fK,"onInstruction");function a0(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=p0(t),"elementNameFn"in H&&(e=H.elementNameFn(e,He)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in He)&&(_l(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(He[e]=[]),He[e]&&!_l(He[e])&&(He[e]=[He[e]]),_l(He[e])?He[e].push(n):He[e]=n}else He[H.elementsKey]||(He[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),He[H.elementsKey].push(n);n[H.parentKey]=He,He=n}o(a0,"onStartElement");function s0(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=u0(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),wu("text",e))}o(s0,"onText");function c0(e){H.ignoreComment||(H.trim&&(e=e.trim()),wu("comment",e))}o(c0,"onComment");function l0(e){var t=He[H.parentKey];H.addParent||delete He[H.parentKey],He=t}o(l0,"onEndElement");function uK(e){H.ignoreCdata||(H.trim&&(e=e.trim()),wu("cdata",e))}o(uK,"onCdata");function pK(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),wu("doctype",e))}o(pK,"onDoctype");function f0(e){e.note=e}o(f0,"onError");d0.exports=function(e,t){var n=iS?sK.parser(!0,{}):n=new cK.Parser("UTF-8"),i={};if(He=i,H=lK(t),iS?(n.opt={strictEntities:!0},n.onopentag=a0,n.ontext=s0,n.oncomment=c0,n.onclosetag=l0,n.onerror=f0,n.oncdata=uK,n.ondoctype=pK,n.onprocessinginstruction=fK):(n.on("startElement",a0),n.on("text",s0),n.on("comment",c0),n.on("endElement",l0),n.on("error",f0)),iS)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var h0=Ze((dte,m0)=>{var g0=mm(),dK=rS();function gK(e){var t=g0.copyOptions(e);return g0.ensureSpacesExists(t),t}o(gK,"validateOptions");m0.exports=function(e,t){var n,i,r,a;return n=gK(t),i=dK(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var aS=Ze((mte,x0)=>{var ft=mm(),mK=gm().isArray,Pi,xi;function hK(e){var t=ft.copyOptions(e);return ft.ensureFlagExists("ignoreDeclaration",t),ft.ensureFlagExists("ignoreInstruction",t),ft.ensureFlagExists("ignoreAttributes",t),ft.ensureFlagExists("ignoreText",t),ft.ensureFlagExists("ignoreComment",t),ft.ensureFlagExists("ignoreCdata",t),ft.ensureFlagExists("ignoreDoctype",t),ft.ensureFlagExists("compact",t),ft.ensureFlagExists("indentText",t),ft.ensureFlagExists("indentCdata",t),ft.ensureFlagExists("indentAttributes",t),ft.ensureFlagExists("indentInstruction",t),ft.ensureFlagExists("fullTagEmptyElement",t),ft.ensureFlagExists("noQuotesForNativeAttributes",t),ft.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ft.ensureKeyExists("declaration",t),ft.ensureKeyExists("instruction",t),ft.ensureKeyExists("attributes",t),ft.ensureKeyExists("text",t),ft.ensureKeyExists("comment",t),ft.ensureKeyExists("cdata",t),ft.ensureKeyExists("doctype",t),ft.ensureKeyExists("type",t),ft.ensureKeyExists("name",t),ft.ensureKeyExists("elements",t),ft.checkFnExists("doctype",t),ft.checkFnExists("instruction",t),ft.checkFnExists("cdata",t),ft.checkFnExists("comment",t),ft.checkFnExists("text",t),ft.checkFnExists("instructionName",t),ft.checkFnExists("elementName",t),ft.checkFnExists("attributeName",t),ft.checkFnExists("attributeValue",t),ft.checkFnExists("attributes",t),ft.checkFnExists("fullTagEmptyElement",t),t}o(hK,"validateOptions");function wo(e,t,n){return(!n&&e.spaces?`
28
28
  `:"")+Array(t+1).join(e.spaces)}o(wo,"writeIndentation");function hm(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,xi,Pi));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,r,xi,Pi):i,l.push(t.spaces&&t.indentAttributes?wo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,xi,Pi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(wo(t,n,!1)),l.join("")}o(hm,"writeAttributes");function y0(e,t,n){return Pi=e,xi="xml",t.ignoreDeclaration?"":"<?xml"+hm(e[t.attributesKey],t,n)+"?>"}o(y0,"writeDeclaration");function T0(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],xi,Pi):i;if(typeof e[i]=="object")return Pi=e,xi=r,"<?"+r+hm(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,xi,Pi)),"<?"+r+(a?" "+a:"")+"?>"}o(T0,"writeInstruction");function v0(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,xi,Pi):e)+"-->"}o(v0,"writeComment");function b0(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,xi,Pi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(b0,"writeCdata");function S0(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,xi,Pi):e)+">"}o(S0,"writeDoctype");function oS(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,xi,Pi):e)}o(oS,"writeText");function yK(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(yK,"hasContent");function TK(e,t,n){Pi=e,xi=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(hm(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(A0(e[t.elementsKey],t,n+1)),Pi=e,xi=e.name),i.push(t.spaces&&yK(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(TK,"writeElement");function A0(e,t,n,i){return e.reduce(function(r,a){var s=wo(t,n,i&&!r);switch(a.type){case"element":return r+s+TK(a,t,n);case"comment":return r+s+v0(a[t.commentKey],t);case"doctype":return r+s+S0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+b0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+oS(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+T0(l,t,n)}},"")}o(A0,"writeElements");function E0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(E0,"hasContentCompact");function vK(e,t,n,i,r){Pi=e,xi=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+oS(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(hm(e[n.attributesKey],n,i));var l=E0(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(P0(e,n,i+1,!1)),Pi=e,xi=t,t&&s.push((r?wo(n,i,!1):"")+"</"+a+">"),s.join("")}o(vK,"writeElementCompact");function P0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=mK(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(y0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?wo(t,n,i):"")+T0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?wo(t,n,i):"")+oS(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?wo(t,n,i):"")+b0(s[r],t));break;case t.doctypeKey:l.push(wo(t,n,i)+S0(s[r],t));break;case t.commentKey:l.push(wo(t,n,i)+v0(s[r],t));break;default:l.push(wo(t,n,i)+vK(s[r],a,t,n,E0(s[r],t)))}i=i&&!l.length}return l.join("")}o(P0,"writeElementsCompact");x0.exports=function(e,t){t=hK(t);var n=[];return Pi=e,xi="_root_",t.compact?n.push(P0(e,t,0,!0)):(e[t.declarationKey]&&n.push(y0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(A0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var I0=Ze((yte,C0)=>{var bK=aS();C0.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return bK(n,t)}});var Sc=Ze((Tte,O0)=>{var SK=rS(),AK=h0(),EK=aS(),PK=I0();O0.exports={xml2js:SK,xml2json:AK,js2xml:EK,json2xml:PK}});var _0=Ze(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.convertEntityTypeAnnotations=Zi.convertPropertyAnnotations=Zi.convertNavigationPropertyAnnotations=Zi.convertEntitySetAnnotations=Zi.convertGenericAnnotations=Zi.convertV2Annotations=void 0;function xK(e,t,n){let i=[];switch(t){case"EntitySet":L0(e,i);break;case"EntityType":D0(e,i);break;case"NavigationProperty":F0(e,n,i);break;case"Property":N0(e,n,i);break;case"Singleton":break;default:break}return R0(e,n,i),i}o(xK,"convertV2Annotations");Zi.convertV2Annotations=xK;function R0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(R0,"convertGenericAnnotations");Zi.convertGenericAnnotations=R0;function L0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(L0,"convertEntitySetAnnotations");Zi.convertEntitySetAnnotations=L0;function F0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(F0,"convertNavigationPropertyAnnotations");Zi.convertNavigationPropertyAnnotations=F0;function N0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(N0,"convertPropertyAnnotations");Zi.convertPropertyAnnotations=N0;function D0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(D0,"convertEntityTypeAnnotations");Zi.convertEntityTypeAnnotations=D0});var U0=Ze(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.parse=void 0;var CK=Sc(),Ge=nS(),wl=_0(),vm=/^Collection\((.+)\)$/;function IK(e){return e.Type!==null&&e.Type!==void 0}o(IK,"isV4NavProperty");function OK(e){return e.map(t=>t._attributes.Name)}o(OK,"getEntityTypeKeys");function M0(e,t,n,i){return e.reduce((r,a)=>{var s,l,f,p;let d={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Vl(a._attributes.Type).type};if(a._attributes.MaxLength&&(d.maxLength=((l=(s=a._attributes.MaxLength)===null||s===void 0?void 0:s.toLowerCase)===null||l===void 0?void 0:l.call(s))==="max"?5e3:parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(d.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(((p=(f=a._attributes.Scale)===null||f===void 0?void 0:f.toLowerCase)===null||p===void 0?void 0:p.call(f))==="variable"?d.scale="variable":d.scale=parseInt(a._attributes.Scale,10)),d.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(d.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":d.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":d.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":d.defaultValue=a._attributes.DefaultValue==="true";break;default:d.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(d),t.indexOf(d.name)!==-1&&r.entityKeys.push(d);let m=(0,wl.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return m.length>0&&i.push(cs(d.fullyQualifiedName,m)),r},{entityProperties:[],entityKeys:[]})}o(M0,"parseProperties");function RK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(RK,"parseReferentialConstraint");function LK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(f=>f.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let f of s){let p=s.indexOf(f);n.push({sourceTypeName:r.type,sourceProperty:f._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(LK,"parseV2ReferentialConstraint");function k0(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(IK(s)){let l=s.Type.match(vm),f=l!==null,p=Mo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:f,targetTypeName:p,referentialConstraint:RK((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:f,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:f,fromRole:p});let d=(0,wl.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(cs(`${n}/${s.Name}`,d))}return r},[])}o(k0,"parseNavigationProperties");function FK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(FK,"parseAssociationSets");function NK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:LK((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(NK,"parseAssociations");function DK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?OK((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:f}=M0((0,Ge.ensureArray)(r.Property),a,s,t),p=k0((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),d={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:f,entityProperties:l,actions:{},navigationProperties:p},m=(0,wl.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(cs(d.fullyQualifiedName,m)),i.push(d),i},[])}o(DK,"parseEntityTypes");function _K(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=M0((0,Ge.ensureArray)(r.Property),[],a,t),l=k0((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(_K,"parseComplexTypes");function VK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(VK,"parseTypeDefinitions");function wK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Mo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},f=(0,wl.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return f.length>0&&i.push(cs(l.fullyQualifiedName,f)),l})}o(wK,"parseEntitySets");function MK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Mo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},f=(0,wl.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return f.length>0&&i.push(cs(l.fullyQualifiedName,f)),l})}o(MK,"parseSingletons");function V0(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(f=>Vl(f._attributes.Type).type).join(","):s=a?Vl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Vl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(f=>{var p,d,m,v;let{isCollection:S,type:b}=Vl(f._attributes.Type),I={_type:"ActionParameter",fullyQualifiedName:`${l}/${f._attributes.Name}`,name:`${f._attributes.Name}`,type:b,isCollection:S};return f._attributes.MaxLength&&(I.maxLength=((d=(p=f._attributes.MaxLength)===null||p===void 0?void 0:p.toLowerCase)===null||d===void 0?void 0:d.call(p))==="max"?5e3:parseInt(f._attributes.MaxLength,10)),f._attributes.Precision&&(I.precision=parseInt(f._attributes.Precision,10)),f._attributes.Scale&&(((v=(m=f._attributes.Scale)===null||m===void 0?void 0:m.toLowerCase)===null||v===void 0?void 0:v.call(m))==="variable"?I.scale="variable":I.scale=parseInt(f._attributes.Scale,10)),I.nullable=f._attributes.Nullable!=="false",I}),returnType:i.ReturnType?Vl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(vm)!==null:!1}})}o(V0,"parseActions");function kK(e,t,n,i,r){return e.map(a=>{let s=t.find(d=>d.name===a._attributes.EntitySet),l=`${i}/${a._attributes.Name}`,f=s==null?void 0:s.entityTypeName;if(a._attributes["sap:action-for"]){let d=n.find(m=>m.fullyQualifiedName===a._attributes["sap:action-for"]);d&&(f=d.fullyQualifiedName)}let p=(0,Ge.ensureArray)(a.Parameter).map(d=>{let m=(0,wl.convertV2Annotations)(d._attributes,"ActionParameter",d._attributes.Name),v=`${l}/${d._attributes.Name}`;return m.length>0&&r.push(cs(v,m)),{_type:"ActionParameter",name:d._attributes.Name,fullyQualifiedName:v,type:d._attributes.Type,isCollection:d._attributes.Type.match(/^Collection\(.+\)$/)!==null}});return{_type:"Action",name:a._attributes.Name,isBound:!1,sourceType:f??"",fullyQualifiedName:l,isFunction:!1,parameters:p,returnType:a._attributes.ReturnType?a._attributes.ReturnType:"",returnCollection:a._attributes.ReturnType?a._attributes.ReturnType.match(vm)!==null:!1}})}o(kK,"parseV2FunctionImport");function w0(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Mo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Mo(r)}})}o(w0,"parseActionImports");function jK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let f=Object.keys(a).find(d=>d!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Tm(s,p,n,!1):f&&(l.value=j0({[f]:a[f]},p,n)),i.Annotation){let d=Sm((0,Ge.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(cs(p,d))}}return l})}o(jK,"parsePropertyValues");function bm(e,t,n){let i=Sm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Mo(e._attributes.Type):void 0,propertyValues:jK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(bm,"parseRecord");function Ta(e,t){return e[t]!=null}o(Ta,"isExpressionOfType");function ym(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(ym,"parseModelPath");function cS(e,t,n){if(Ta(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>bm(r,t+"/"+a,n));return i.type="Record",i}else if(Ta(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>ym(r,"PropertyPath"));return i.type="PropertyPath",i}else if(Ta(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>ym(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(Ta(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>({type:"String",String:r._text}));return i.type="String",i}else if(Ta(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>ym(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(Ta(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>ym(r,"Path"));return i.type="Path",i}else if(Ta(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(cS,"parseCollection");function En(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Tm({[i]:r},"",[],!0))):n.push(Tm({[i]:e[i]},"",[],!0))}),n}o(En,"parseChildren");function j0(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:cS(e.Collection,t,n)};case"Record":return{type:"Record",Record:bm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:En(e.Function)};case"And":return{type:"And",$And:En(e.And)};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};case"If":return{type:"If",$If:En(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(j0,"parseInlineExpression");function Tm(e,t,n,i){let r=Object.keys(e).filter(s=>s!=="_text");if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:En(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:cS(e.Collection,t,n)};case"Record":return{type:"Record",Record:bm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:En(e.And)};case"Ne":return{type:"Ne",$Ne:En(e.Ne)};case"Not":return{type:"Not",$Not:En(e.Not)[0]};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"If":return{type:"If",$If:En(e.If)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Tm,"parseExpression");function UK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Mo(i),qualifier:r},l=`${t}@${Mo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=j0(a,l,n)),e.Annotation){let p=Sm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let f=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return Ta(e,"Record")?s.record=bm(e.Record,l,n):Ta(e,"Collection")?s.collection=cS(e.Collection,l,n):f.length===1?s.value=Tm({[f[0]]:e[f[0]]},l,n,!1):f.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(UK,"parseAnnotation");function Sm(e,t,n){return e.map(i=>UK(i,t,n))}o(Sm,"parseAnnotations");function cs(e,t){return{target:e,annotations:t}}o(cs,"createAnnotationList");function $K(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(cs(Mo(n._attributes.Target),Sm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o($K,"parseAnnotationLists");function BK(e,t,n){let i=e._attributes.Namespace,r=[],a=DK((0,Ge.ensureArray)(e.EntityType),r,i),s=_K((0,Ge.ensureArray)(e.ComplexType),r,i),l=VK((0,Ge.ensureArray)(e.TypeDefinition),i),f=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],S=[];if(e.EntityContainer)if(f=wK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=MK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=FK((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(kK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),f,a,m.fullyQualifiedName,r));else if(t.startsWith("4."))S=S.concat(w0((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(w0((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(v=v.concat(V0((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(V0((0,Ge.ensureArray)(e.Function),i,!0)));let b=NK((0,Ge.ensureArray)(e.Association),i);$K((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:d,annotations:I,entityContainer:m,namespace:i,entitySets:f,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:S,entityTypes:a}}o(BK,"parseSchema");function HK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(HK,"parseReferences");var sS={};function Vl(e){let t=e.match(vm),n=t?t[1]:e,i=Mo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Vl,"unaliasType");function Mo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let f=e.substring(r,a);i.push((t=sS[f])!==null&&t!==void 0?t:f),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Mo,"unalias");function GK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),f=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),d={};e.forEach(S=>{d=Object.assign(d,S.annotations)});let m,v;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,v=S.namespace)}),i.forEach(S=>{let b=a.find(I=>I.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(W=>W.association===F.relationship);if(j){let W=j.associationEnd.find(U=>U.entitySet!==S.fullyQualifiedName);W&&(S.navigationPropertyBinding[I.name]=W.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:d,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:f,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(GK,"mergeSchemas");function WK(e,t){sS=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{sS[n._attributes.Alias]=n._attributes.Namespace})}o(WK,"createAliasMap");function KK(e,t="serviceFile"){let n=(0,CK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=HK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));WK(a,r);let s=r.map(f=>BK(f,i,t));return new Ge.RawMetadataInstance(t,i,GK(s),a)}o(KK,"parse");Am.parse=KK});var $0=Ze(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.parse=Ml.merge=void 0;var XK=n0();Object.defineProperty(Ml,"merge",{enumerable:!0,get:o(function(){return XK.merge},"get")});var QK=U0();Object.defineProperty(Ml,"parse",{enumerable:!0,get:o(function(){return QK.parse},"get")})});var t_=Ze(()=>{var e_;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(f,p){return function(d,m){Object.defineProperty(f,d,{configurable:!0,writable:!0,value:m}),p&&p(d,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",f={__proto__:[]}instanceof Array,p=!l&&!f,d={create:l?function(){return lc(Object.create(null))}:f?function(){return lc({__proto__:null})}:function(){return lc({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:fu(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:uu(),b=typeof WeakMap=="function"?WeakMap:pu(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Xi(),j=lu(F);function W(k,B,q,ce){if(Oe(q)){if(!Nt(k))throw new TypeError;if(!kt(B))throw new TypeError;return rn(k,B)}else{if(!Nt(k))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Oe(ce)&&!fn(ce))throw new TypeError;return fn(ce)&&(ce=void 0),q=_e(q),Bt(k,B,q,ce)}}o(W,"decorate"),t("decorate",W);function U(k,B){function q(ce,Ne){if(!tt(ce))throw new TypeError;if(!Oe(Ne)&&!Sn(Ne))throw new TypeError;bn(k,B,ce,Ne)}return o(q,"decorator"),q}o(U,"metadata"),t("metadata",U);function se(k,B,q,ce){if(!tt(q))throw new TypeError;return Oe(ce)||(ce=_e(ce)),bn(k,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function ee(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),At(k,B,q)}o(ee,"hasMetadata"),t("hasMetadata",ee);function le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Yt(k,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Fe(k,B,q)}o(Le,"getMetadata"),t("getMetadata",Le);function D(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),vn(k,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),on(k,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),Rn(k,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(k,B,q){if(!tt(B))throw new TypeError;if(Oe(q)||(q=_e(q)),!tt(B))throw new TypeError;Oe(q)||(q=_e(q));var ce=Vr(B,q,!1);return Oe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function rn(k,B){for(var q=k.length-1;q>=0;--q){var ce=k[q],Ne=ce(B);if(!Oe(Ne)&&!fn(Ne)){if(!kt(Ne))throw new TypeError;B=Ne}}return B}o(rn,"DecorateConstructor");function Bt(k,B,q,ce){for(var Ne=k.length-1;Ne>=0;--Ne){var yn=k[Ne],Ln=yn(B,q,ce);if(!Oe(Ln)&&!fn(Ln)){if(!tt(Ln))throw new TypeError;ce=Ln}}return ce}o(Bt,"DecorateProperty");function At(k,B,q){var ce=Yt(k,B,q);if(ce)return!0;var Ne=Gt(B);return fn(Ne)?!1:At(k,Ne,q)}o(At,"OrdinaryHasMetadata");function Yt(k,B,q){var ce=Vr(B,q,!1);return Oe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,q))}o(Yt,"OrdinaryHasOwnMetadata");function Fe(k,B,q){var ce=Yt(k,B,q);if(ce)return vn(k,B,q);var Ne=Gt(B);if(!fn(Ne))return Fe(k,Ne,q)}o(Fe,"OrdinaryGetMetadata");function vn(k,B,q){var ce=Vr(B,q,!1);if(!Oe(ce))return ce.OrdinaryGetOwnMetadata(k,B,q)}o(vn,"OrdinaryGetOwnMetadata");function bn(k,B,q,ce){var Ne=Vr(q,ce,!0);Ne.OrdinaryDefineOwnMetadata(k,B,q,ce)}o(bn,"OrdinaryDefineOwnMetadata");function on(k,B){var q=Rn(k,B),ce=Gt(k);if(ce===null)return q;var Ne=on(ce,B);if(Ne.length<=0)return q;if(q.length<=0)return Ne;for(var yn=new S,Ln=[],it=0,he=q;it<he.length;it++){var be=he[it],Pe=yn.has(be);Pe||(yn.add(be),Ln.push(be))}for(var Ie=0,st=Ne;Ie<st.length;Ie++){var be=st[Ie],Pe=yn.has(be);Pe||(yn.add(be),Ln.push(be))}return Ln}o(on,"OrdinaryMetadataKeys");function Rn(k,B){var q=Vr(k,B,!1);return q?q.OrdinaryOwnMetadataKeys(k,B):[]}o(Rn,"OrdinaryOwnMetadataKeys");function an(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(an,"Type");function Oe(k){return k===void 0}o(Oe,"IsUndefined");function fn(k){return k===null}o(fn,"IsNull");function Fi(k){return typeof k=="symbol"}o(Fi,"IsSymbol");function tt(k){return typeof k=="object"?k!==null:typeof k=="function"}o(tt,"IsObject");function O(k,B){switch(an(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var q=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Ne=ce.call(k,q);if(tt(Ne))throw new TypeError;return Ne}return E(k,q==="default"?"number":q)}o(O,"ToPrimitive");function E(k,B){if(B==="string"){var q=k.toString;if(ze(q)){var ce=q.call(k);if(!tt(ce))return ce}var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}}else{var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}var yn=k.toString;if(ze(yn)){var ce=yn.call(k);if(!tt(ce))return ce}}throw new TypeError}o(E,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Fi(B)?B:V(B)}o(_e,"ToPropertyKey");function Nt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Nt,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function Sn(k){switch(an(k)){case 3:return!0;case 4:return!0;default:return!1}}o(Sn,"IsPropertyKey");function un(k,B){return k===B||k!==k&&B!==B}o(un,"SameValueZero");function Ht(k,B){var q=k[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ii(k){var B=Ht(k,s);if(!ze(B))throw new TypeError;var q=B.call(k);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function pr(k){return k.value}o(pr,"IteratorValue");function hn(k){var B=k.next();return B.done?!1:B}o(hn,"IteratorStep");function bi(k){var B=k.return;B&&B.call(k)}o(bi,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var q=k.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Ne=ce.constructor;return typeof Ne!="function"||Ne===k?B:Ne}o(Gt,"OrdinaryGetPrototypeOf");function oa(){var k;!Oe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=cc(n.Reflect));var B,q,ce,Ne=new b,yn={registerProvider:Ln,getProvider:he,setProvider:Pe};return yn;function Ln(Ie){if(!Object.isExtensible(yn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Oe(B):B=Ie;break;case B===Ie:break;case Oe(q):q=Ie;break;case q===Ie:break;default:ce===void 0&&(ce=new S),ce.add(Ie);break}}function it(Ie,st){if(!Oe(B)){if(B.isProviderFor(Ie,st))return B;if(!Oe(q)){if(q.isProviderFor(Ie,st))return B;if(!Oe(ce))for(var Wt=ii(ce);;){var pn=hn(Wt);if(!pn)return;var dr=pr(pn);if(dr.isProviderFor(Ie,st))return bi(Wt),dr}}}if(!Oe(k)&&k.isProviderFor(Ie,st))return k}function he(Ie,st){var Wt=Ne.get(Ie),pn;return Oe(Wt)||(pn=Wt.get(st)),Oe(pn)&&(pn=it(Ie,st),Oe(pn)||(Oe(Wt)&&(Wt=new v,Ne.set(Ie,Wt)),Wt.set(st,pn))),pn}function be(Ie){if(Oe(Ie))throw new TypeError;return B===Ie||q===Ie||!Oe(ce)&&ce.has(Ie)}function Pe(Ie,st,Wt){if(!be(Wt))throw new Error("Metadata provider not registered.");var pn=he(Ie,st);if(pn!==Wt){if(!Oe(pn))return!1;var dr=Ne.get(Ie);Oe(dr)&&(dr=new v,Ne.set(Ie,dr)),dr.set(st,Wt)}return!0}}o(oa,"CreateMetadataRegistry");function Xi(){var k;return!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Oe(k)&&(k=oa()),!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Xi,"GetOrCreateMetadataRegistry");function lu(k){var B=new b,q={isProviderFor:o(function(be,Pe){var Ie=B.get(be);return Oe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Ln,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:yn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:he};return F.registerProvider(q),q;function ce(be,Pe,Ie){var st=B.get(be),Wt=!1;if(Oe(st)){if(!Ie)return;st=new v,B.set(be,st),Wt=!0}var pn=st.get(Pe);if(Oe(pn)){if(!Ie)return;if(pn=new v,st.set(Pe,pn),!k.setProvider(be,Pe,q))throw st.delete(Pe),Wt&&B.delete(be),new Error("Wrong provider for target.")}return pn}o(ce,"GetOrCreateMetadataMap");function Ne(be,Pe,Ie){var st=ce(Pe,Ie,!1);return Oe(st)?!1:Y(st.has(be))}o(Ne,"OrdinaryHasOwnMetadata");function yn(be,Pe,Ie){var st=ce(Pe,Ie,!1);if(!Oe(st))return st.get(be)}o(yn,"OrdinaryGetOwnMetadata");function Ln(be,Pe,Ie,st){var Wt=ce(Ie,st,!0);Wt.set(be,Pe)}o(Ln,"OrdinaryDefineOwnMetadata");function it(be,Pe){var Ie=[],st=ce(be,Pe,!1);if(Oe(st))return Ie;for(var Wt=st.keys(),pn=ii(Wt),dr=0;;){var sg=hn(pn);if(!sg)return Ie.length=dr,Ie;var cv=pr(sg);try{Ie[dr]=cv}catch(du){try{bi(pn)}finally{throw du}}dr++}}o(it,"OrdinaryOwnMetadataKeys");function he(be,Pe,Ie){var st=ce(Pe,Ie,!1);if(Oe(st)||!st.delete(be))return!1;if(st.size===0){var Wt=B.get(Pe);Oe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(lu,"CreateMetadataProvider");function cc(k){var B=k.defineMetadata,q=k.hasOwnMetadata,ce=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,yn=k.deleteMetadata,Ln=new b,it={isProviderFor:o(function(he,be){var Pe=Ln.get(he);return!Oe(Pe)&&Pe.has(be)?!0:Ne(he,be).length?(Oe(Pe)&&(Pe=new S,Ln.set(he,Pe)),Pe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:yn};return it}o(cc,"CreateFallbackProvider");function Vr(k,B,q){var ce=F.getProvider(k,B);if(!Oe(ce))return ce;if(q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Vr,"GetMetadataProvider");function fu(){var k={},B=[],q=(function(){function it(he,be,Pe){this._index=0,this._keys=he,this._values=be,this._selector=Pe}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},it.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},it})(),ce=(function(){function it(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(he){return this._find(he,!1)>=0},it.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},it.prototype.set=function(he,be){var Pe=this._find(he,!0);return this._values[Pe]=be,this},it.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Pe=this._keys.length,Ie=be+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,un(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Ne)},it.prototype.values=function(){return new q(this._keys,this._values,yn)},it.prototype.entries=function(){return new q(this._keys,this._values,Ln)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(he,be){if(!un(this._cacheKey,he)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(un(this._keys[Pe],he)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},it})();return ce;function Ne(it,he){return it}function yn(it,he){return he}function Ln(it,he){return[it,he]}}o(fu,"CreateMapPolyfill");function uu(){var k=(function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B})();return k}o(uu,"CreateSetPolyfill");function pu(){var k=16,B=d.create(),q=ce();return(function(){function he(){this._key=ce()}return o(he,"WeakMap"),he.prototype.has=function(be){var Pe=Ne(be,!1);return Pe!==void 0?d.has(Pe,this._key):!1},he.prototype.get=function(be){var Pe=Ne(be,!1);return Pe!==void 0?d.get(Pe,this._key):void 0},he.prototype.set=function(be,Pe){var Ie=Ne(be,!0);return Ie[this._key]=Pe,this},he.prototype.delete=function(be){var Pe=Ne(be,!1);return Pe!==void 0?delete Pe[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he})();function ce(){var he;do he="@@WeakMap@@"+it();while(d.has(B,he));return B[he]=!0,he}function Ne(he,be){if(!i.call(he,q)){if(!be)return;Object.defineProperty(he,q,{value:d.create()})}return he[q]}function yn(he,be){for(var Pe=0;Pe<be;++Pe)he[Pe]=Math.random()*255|0;return he}function Ln(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):yn(be,he),be}return yn(new Array(he),he)}function it(){var he=Ln(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",Pe=0;Pe<k;++Pe){var Ie=he[Pe];(Pe===4||Pe===6||Pe===8)&&(be+="-"),Ie<16&&(be+="0"),be+=Ie.toString(16).toLowerCase()}return be}}o(pu,"CreateWeakMapPolyfill");function lc(k){return k.__=void 0,delete k.__,k}o(lc,"MakeDictionary")})})(e_||(e_={}))});var s_=Ze((Ute,a_)=>{var SX=0,o_="changeUtils: ";function AX(){return"id-"+new Date().valueOf()+"-"+SX++}o(AX,"uid");function EX(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(EX,"appendComponentToReference");function PX(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return EX(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(PX,"getFlexReference");function xX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(xX,"getAppVersion");function CX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(CX,"getProjectId");function r_(e){return JSON.stringify({fileName:e.id||AX().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:o_+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(r_,"createString");a_.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(o_,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=PX(t),e.appVersion=xX(t),e.projectId=CX(t,e.reference),r_(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return r_(e)},"toString")}});var l_=Ze((Bte,c_)=>{c_.exports={change:s_()}});var fV=Ze(qr=>{"use strict";var v3=/[|\\{}()[\]^$+*?.]/g,b3=Object.prototype.hasOwnProperty,FA=o(function(e,t){return b3.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(v3,"\\$&"):""};var S3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},A3=/[&<>'"]/g;function E3(e){return S3[e]||e}o(E3,"encode_char");var P3=`var _ENCODE_HTML_RULES = {
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(TK,"writeElement");function A0(e,t,n,i){return e.reduce(function(r,a){var s=wo(t,n,i&&!r);switch(a.type){case"element":return r+s+TK(a,t,n);case"comment":return r+s+v0(a[t.commentKey],t);case"doctype":return r+s+S0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+b0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+oS(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+T0(l,t,n)}},"")}o(A0,"writeElements");function E0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(E0,"hasContentCompact");function vK(e,t,n,i,r){Pi=e,xi=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+oS(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(hm(e[n.attributesKey],n,i));var l=E0(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(P0(e,n,i+1,!1)),Pi=e,xi=t,t&&s.push((r?wo(n,i,!1):"")+"</"+a+">"),s.join("")}o(vK,"writeElementCompact");function P0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=mK(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(y0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?wo(t,n,i):"")+T0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?wo(t,n,i):"")+oS(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?wo(t,n,i):"")+b0(s[r],t));break;case t.doctypeKey:l.push(wo(t,n,i)+S0(s[r],t));break;case t.commentKey:l.push(wo(t,n,i)+v0(s[r],t));break;default:l.push(wo(t,n,i)+vK(s[r],a,t,n,E0(s[r],t)))}i=i&&!l.length}return l.join("")}o(P0,"writeElementsCompact");x0.exports=function(e,t){t=hK(t);var n=[];return Pi=e,xi="_root_",t.compact?n.push(P0(e,t,0,!0)):(e[t.declarationKey]&&n.push(y0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(A0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var I0=Ze((yte,C0)=>{var bK=aS();C0.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return bK(n,t)}});var Sc=Ze((Tte,O0)=>{var SK=rS(),AK=h0(),EK=aS(),PK=I0();O0.exports={xml2js:SK,xml2json:AK,js2xml:EK,json2xml:PK}});var _0=Ze(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.convertEntityTypeAnnotations=Zi.convertPropertyAnnotations=Zi.convertNavigationPropertyAnnotations=Zi.convertEntitySetAnnotations=Zi.convertGenericAnnotations=Zi.convertV2Annotations=void 0;function xK(e,t,n){let i=[];switch(t){case"EntitySet":L0(e,i);break;case"EntityType":D0(e,i);break;case"NavigationProperty":F0(e,n,i);break;case"Property":N0(e,n,i);break;case"Singleton":break;default:break}return R0(e,n,i),i}o(xK,"convertV2Annotations");Zi.convertV2Annotations=xK;function R0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(R0,"convertGenericAnnotations");Zi.convertGenericAnnotations=R0;function L0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(L0,"convertEntitySetAnnotations");Zi.convertEntitySetAnnotations=L0;function F0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(F0,"convertNavigationPropertyAnnotations");Zi.convertNavigationPropertyAnnotations=F0;function N0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(N0,"convertPropertyAnnotations");Zi.convertPropertyAnnotations=N0;function D0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(D0,"convertEntityTypeAnnotations");Zi.convertEntityTypeAnnotations=D0});var U0=Ze(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.parse=void 0;var CK=Sc(),Ge=nS(),wl=_0(),vm=/^Collection\((.+)\)$/;function IK(e){return e.Type!==null&&e.Type!==void 0}o(IK,"isV4NavProperty");function OK(e){return e.map(t=>t._attributes.Name)}o(OK,"getEntityTypeKeys");function M0(e,t,n,i){return e.reduce((r,a)=>{var s,l,f,p;let d={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Vl(a._attributes.Type).type};if(a._attributes.MaxLength&&(d.maxLength=((l=(s=a._attributes.MaxLength)===null||s===void 0?void 0:s.toLowerCase)===null||l===void 0?void 0:l.call(s))==="max"?5e3:parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(d.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(((p=(f=a._attributes.Scale)===null||f===void 0?void 0:f.toLowerCase)===null||p===void 0?void 0:p.call(f))==="variable"?d.scale="variable":d.scale=parseInt(a._attributes.Scale,10)),d.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(d.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":d.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":d.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":d.defaultValue=a._attributes.DefaultValue==="true";break;default:d.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(d),t.indexOf(d.name)!==-1&&r.entityKeys.push(d);let m=(0,wl.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return m.length>0&&i.push(ls(d.fullyQualifiedName,m)),r},{entityProperties:[],entityKeys:[]})}o(M0,"parseProperties");function RK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(RK,"parseReferentialConstraint");function LK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(f=>f.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let f of s){let p=s.indexOf(f);n.push({sourceTypeName:r.type,sourceProperty:f._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(LK,"parseV2ReferentialConstraint");function k0(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(IK(s)){let l=s.Type.match(vm),f=l!==null,p=Mo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:f,targetTypeName:p,referentialConstraint:RK((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:f,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:f,fromRole:p});let d=(0,wl.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(ls(`${n}/${s.Name}`,d))}return r},[])}o(k0,"parseNavigationProperties");function FK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(FK,"parseAssociationSets");function NK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:LK((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(NK,"parseAssociations");function DK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?OK((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:f}=M0((0,Ge.ensureArray)(r.Property),a,s,t),p=k0((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),d={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:f,entityProperties:l,actions:{},navigationProperties:p},m=(0,wl.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(ls(d.fullyQualifiedName,m)),i.push(d),i},[])}o(DK,"parseEntityTypes");function _K(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=M0((0,Ge.ensureArray)(r.Property),[],a,t),l=k0((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(_K,"parseComplexTypes");function VK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(VK,"parseTypeDefinitions");function wK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Mo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},f=(0,wl.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return f.length>0&&i.push(ls(l.fullyQualifiedName,f)),l})}o(wK,"parseEntitySets");function MK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Mo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},f=(0,wl.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return f.length>0&&i.push(ls(l.fullyQualifiedName,f)),l})}o(MK,"parseSingletons");function V0(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(f=>Vl(f._attributes.Type).type).join(","):s=a?Vl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Vl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(f=>{var p,d,m,v;let{isCollection:S,type:b}=Vl(f._attributes.Type),I={_type:"ActionParameter",fullyQualifiedName:`${l}/${f._attributes.Name}`,name:`${f._attributes.Name}`,type:b,isCollection:S};return f._attributes.MaxLength&&(I.maxLength=((d=(p=f._attributes.MaxLength)===null||p===void 0?void 0:p.toLowerCase)===null||d===void 0?void 0:d.call(p))==="max"?5e3:parseInt(f._attributes.MaxLength,10)),f._attributes.Precision&&(I.precision=parseInt(f._attributes.Precision,10)),f._attributes.Scale&&(((v=(m=f._attributes.Scale)===null||m===void 0?void 0:m.toLowerCase)===null||v===void 0?void 0:v.call(m))==="variable"?I.scale="variable":I.scale=parseInt(f._attributes.Scale,10)),I.nullable=f._attributes.Nullable!=="false",I}),returnType:i.ReturnType?Vl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(vm)!==null:!1}})}o(V0,"parseActions");function kK(e,t,n,i,r){return e.map(a=>{let s=t.find(d=>d.name===a._attributes.EntitySet),l=`${i}/${a._attributes.Name}`,f=s==null?void 0:s.entityTypeName;if(a._attributes["sap:action-for"]){let d=n.find(m=>m.fullyQualifiedName===a._attributes["sap:action-for"]);d&&(f=d.fullyQualifiedName)}let p=(0,Ge.ensureArray)(a.Parameter).map(d=>{let m=(0,wl.convertV2Annotations)(d._attributes,"ActionParameter",d._attributes.Name),v=`${l}/${d._attributes.Name}`;return m.length>0&&r.push(ls(v,m)),{_type:"ActionParameter",name:d._attributes.Name,fullyQualifiedName:v,type:d._attributes.Type,isCollection:d._attributes.Type.match(/^Collection\(.+\)$/)!==null}});return{_type:"Action",name:a._attributes.Name,isBound:!1,sourceType:f??"",fullyQualifiedName:l,isFunction:!1,parameters:p,returnType:a._attributes.ReturnType?a._attributes.ReturnType:"",returnCollection:a._attributes.ReturnType?a._attributes.ReturnType.match(vm)!==null:!1}})}o(kK,"parseV2FunctionImport");function w0(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Mo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Mo(r)}})}o(w0,"parseActionImports");function jK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let f=Object.keys(a).find(d=>d!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Tm(s,p,n,!1):f&&(l.value=j0({[f]:a[f]},p,n)),i.Annotation){let d=Sm((0,Ge.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(ls(p,d))}}return l})}o(jK,"parsePropertyValues");function bm(e,t,n){let i=Sm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Mo(e._attributes.Type):void 0,propertyValues:jK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(bm,"parseRecord");function Ta(e,t){return e[t]!=null}o(Ta,"isExpressionOfType");function ym(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(ym,"parseModelPath");function cS(e,t,n){if(Ta(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>bm(r,t+"/"+a,n));return i.type="Record",i}else if(Ta(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>ym(r,"PropertyPath"));return i.type="PropertyPath",i}else if(Ta(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>ym(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(Ta(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>({type:"String",String:r._text}));return i.type="String",i}else if(Ta(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>ym(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(Ta(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>ym(r,"Path"));return i.type="Path",i}else if(Ta(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(cS,"parseCollection");function En(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Tm({[i]:r},"",[],!0))):n.push(Tm({[i]:e[i]},"",[],!0))}),n}o(En,"parseChildren");function j0(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:cS(e.Collection,t,n)};case"Record":return{type:"Record",Record:bm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:En(e.Function)};case"And":return{type:"And",$And:En(e.And)};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};case"If":return{type:"If",$If:En(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(j0,"parseInlineExpression");function Tm(e,t,n,i){let r=Object.keys(e).filter(s=>s!=="_text");if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:En(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:cS(e.Collection,t,n)};case"Record":return{type:"Record",Record:bm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:En(e.And)};case"Ne":return{type:"Ne",$Ne:En(e.Ne)};case"Not":return{type:"Not",$Not:En(e.Not)[0]};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"If":return{type:"If",$If:En(e.If)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Tm,"parseExpression");function UK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Mo(i),qualifier:r},l=`${t}@${Mo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=j0(a,l,n)),e.Annotation){let p=Sm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let f=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return Ta(e,"Record")?s.record=bm(e.Record,l,n):Ta(e,"Collection")?s.collection=cS(e.Collection,l,n):f.length===1?s.value=Tm({[f[0]]:e[f[0]]},l,n,!1):f.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(UK,"parseAnnotation");function Sm(e,t,n){return e.map(i=>UK(i,t,n))}o(Sm,"parseAnnotations");function ls(e,t){return{target:e,annotations:t}}o(ls,"createAnnotationList");function $K(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(ls(Mo(n._attributes.Target),Sm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o($K,"parseAnnotationLists");function BK(e,t,n){let i=e._attributes.Namespace,r=[],a=DK((0,Ge.ensureArray)(e.EntityType),r,i),s=_K((0,Ge.ensureArray)(e.ComplexType),r,i),l=VK((0,Ge.ensureArray)(e.TypeDefinition),i),f=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],S=[];if(e.EntityContainer)if(f=wK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=MK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=FK((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(kK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),f,a,m.fullyQualifiedName,r));else if(t.startsWith("4."))S=S.concat(w0((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(w0((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(v=v.concat(V0((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(V0((0,Ge.ensureArray)(e.Function),i,!0)));let b=NK((0,Ge.ensureArray)(e.Association),i);$K((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:d,annotations:I,entityContainer:m,namespace:i,entitySets:f,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:S,entityTypes:a}}o(BK,"parseSchema");function HK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(HK,"parseReferences");var sS={};function Vl(e){let t=e.match(vm),n=t?t[1]:e,i=Mo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Vl,"unaliasType");function Mo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let f=e.substring(r,a);i.push((t=sS[f])!==null&&t!==void 0?t:f),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Mo,"unalias");function GK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),f=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),d={};e.forEach(S=>{d=Object.assign(d,S.annotations)});let m,v;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,v=S.namespace)}),i.forEach(S=>{let b=a.find(I=>I.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(W=>W.association===F.relationship);if(j){let W=j.associationEnd.find(U=>U.entitySet!==S.fullyQualifiedName);W&&(S.navigationPropertyBinding[I.name]=W.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:d,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:f,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(GK,"mergeSchemas");function WK(e,t){sS=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{sS[n._attributes.Alias]=n._attributes.Namespace})}o(WK,"createAliasMap");function KK(e,t="serviceFile"){let n=(0,CK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=HK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));WK(a,r);let s=r.map(f=>BK(f,i,t));return new Ge.RawMetadataInstance(t,i,GK(s),a)}o(KK,"parse");Am.parse=KK});var $0=Ze(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.parse=Ml.merge=void 0;var XK=n0();Object.defineProperty(Ml,"merge",{enumerable:!0,get:o(function(){return XK.merge},"get")});var QK=U0();Object.defineProperty(Ml,"parse",{enumerable:!0,get:o(function(){return QK.parse},"get")})});var t_=Ze(()=>{var e_;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(f,p){return function(d,m){Object.defineProperty(f,d,{configurable:!0,writable:!0,value:m}),p&&p(d,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",f={__proto__:[]}instanceof Array,p=!l&&!f,d={create:l?function(){return lc(Object.create(null))}:f?function(){return lc({__proto__:null})}:function(){return lc({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:fu(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:uu(),b=typeof WeakMap=="function"?WeakMap:pu(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Xi(),j=lu(F);function W(k,B,q,ce){if(Oe(q)){if(!Nt(k))throw new TypeError;if(!kt(B))throw new TypeError;return rn(k,B)}else{if(!Nt(k))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Oe(ce)&&!fn(ce))throw new TypeError;return fn(ce)&&(ce=void 0),q=_e(q),Bt(k,B,q,ce)}}o(W,"decorate"),t("decorate",W);function U(k,B){function q(ce,Ne){if(!tt(ce))throw new TypeError;if(!Oe(Ne)&&!Sn(Ne))throw new TypeError;bn(k,B,ce,Ne)}return o(q,"decorator"),q}o(U,"metadata"),t("metadata",U);function se(k,B,q,ce){if(!tt(q))throw new TypeError;return Oe(ce)||(ce=_e(ce)),bn(k,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function ee(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),At(k,B,q)}o(ee,"hasMetadata"),t("hasMetadata",ee);function le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Yt(k,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Fe(k,B,q)}o(Le,"getMetadata"),t("getMetadata",Le);function D(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),vn(k,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),on(k,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),Rn(k,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(k,B,q){if(!tt(B))throw new TypeError;if(Oe(q)||(q=_e(q)),!tt(B))throw new TypeError;Oe(q)||(q=_e(q));var ce=Vr(B,q,!1);return Oe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function rn(k,B){for(var q=k.length-1;q>=0;--q){var ce=k[q],Ne=ce(B);if(!Oe(Ne)&&!fn(Ne)){if(!kt(Ne))throw new TypeError;B=Ne}}return B}o(rn,"DecorateConstructor");function Bt(k,B,q,ce){for(var Ne=k.length-1;Ne>=0;--Ne){var yn=k[Ne],Ln=yn(B,q,ce);if(!Oe(Ln)&&!fn(Ln)){if(!tt(Ln))throw new TypeError;ce=Ln}}return ce}o(Bt,"DecorateProperty");function At(k,B,q){var ce=Yt(k,B,q);if(ce)return!0;var Ne=Gt(B);return fn(Ne)?!1:At(k,Ne,q)}o(At,"OrdinaryHasMetadata");function Yt(k,B,q){var ce=Vr(B,q,!1);return Oe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,q))}o(Yt,"OrdinaryHasOwnMetadata");function Fe(k,B,q){var ce=Yt(k,B,q);if(ce)return vn(k,B,q);var Ne=Gt(B);if(!fn(Ne))return Fe(k,Ne,q)}o(Fe,"OrdinaryGetMetadata");function vn(k,B,q){var ce=Vr(B,q,!1);if(!Oe(ce))return ce.OrdinaryGetOwnMetadata(k,B,q)}o(vn,"OrdinaryGetOwnMetadata");function bn(k,B,q,ce){var Ne=Vr(q,ce,!0);Ne.OrdinaryDefineOwnMetadata(k,B,q,ce)}o(bn,"OrdinaryDefineOwnMetadata");function on(k,B){var q=Rn(k,B),ce=Gt(k);if(ce===null)return q;var Ne=on(ce,B);if(Ne.length<=0)return q;if(q.length<=0)return Ne;for(var yn=new S,Ln=[],it=0,he=q;it<he.length;it++){var be=he[it],Pe=yn.has(be);Pe||(yn.add(be),Ln.push(be))}for(var Ie=0,st=Ne;Ie<st.length;Ie++){var be=st[Ie],Pe=yn.has(be);Pe||(yn.add(be),Ln.push(be))}return Ln}o(on,"OrdinaryMetadataKeys");function Rn(k,B){var q=Vr(k,B,!1);return q?q.OrdinaryOwnMetadataKeys(k,B):[]}o(Rn,"OrdinaryOwnMetadataKeys");function an(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(an,"Type");function Oe(k){return k===void 0}o(Oe,"IsUndefined");function fn(k){return k===null}o(fn,"IsNull");function Fi(k){return typeof k=="symbol"}o(Fi,"IsSymbol");function tt(k){return typeof k=="object"?k!==null:typeof k=="function"}o(tt,"IsObject");function O(k,B){switch(an(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var q=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Ne=ce.call(k,q);if(tt(Ne))throw new TypeError;return Ne}return E(k,q==="default"?"number":q)}o(O,"ToPrimitive");function E(k,B){if(B==="string"){var q=k.toString;if(ze(q)){var ce=q.call(k);if(!tt(ce))return ce}var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}}else{var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}var yn=k.toString;if(ze(yn)){var ce=yn.call(k);if(!tt(ce))return ce}}throw new TypeError}o(E,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Fi(B)?B:V(B)}o(_e,"ToPropertyKey");function Nt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Nt,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function Sn(k){switch(an(k)){case 3:return!0;case 4:return!0;default:return!1}}o(Sn,"IsPropertyKey");function un(k,B){return k===B||k!==k&&B!==B}o(un,"SameValueZero");function Ht(k,B){var q=k[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ii(k){var B=Ht(k,s);if(!ze(B))throw new TypeError;var q=B.call(k);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function pr(k){return k.value}o(pr,"IteratorValue");function hn(k){var B=k.next();return B.done?!1:B}o(hn,"IteratorStep");function bi(k){var B=k.return;B&&B.call(k)}o(bi,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var q=k.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Ne=ce.constructor;return typeof Ne!="function"||Ne===k?B:Ne}o(Gt,"OrdinaryGetPrototypeOf");function oa(){var k;!Oe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=cc(n.Reflect));var B,q,ce,Ne=new b,yn={registerProvider:Ln,getProvider:he,setProvider:Pe};return yn;function Ln(Ie){if(!Object.isExtensible(yn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Oe(B):B=Ie;break;case B===Ie:break;case Oe(q):q=Ie;break;case q===Ie:break;default:ce===void 0&&(ce=new S),ce.add(Ie);break}}function it(Ie,st){if(!Oe(B)){if(B.isProviderFor(Ie,st))return B;if(!Oe(q)){if(q.isProviderFor(Ie,st))return B;if(!Oe(ce))for(var Wt=ii(ce);;){var pn=hn(Wt);if(!pn)return;var dr=pr(pn);if(dr.isProviderFor(Ie,st))return bi(Wt),dr}}}if(!Oe(k)&&k.isProviderFor(Ie,st))return k}function he(Ie,st){var Wt=Ne.get(Ie),pn;return Oe(Wt)||(pn=Wt.get(st)),Oe(pn)&&(pn=it(Ie,st),Oe(pn)||(Oe(Wt)&&(Wt=new v,Ne.set(Ie,Wt)),Wt.set(st,pn))),pn}function be(Ie){if(Oe(Ie))throw new TypeError;return B===Ie||q===Ie||!Oe(ce)&&ce.has(Ie)}function Pe(Ie,st,Wt){if(!be(Wt))throw new Error("Metadata provider not registered.");var pn=he(Ie,st);if(pn!==Wt){if(!Oe(pn))return!1;var dr=Ne.get(Ie);Oe(dr)&&(dr=new v,Ne.set(Ie,dr)),dr.set(st,Wt)}return!0}}o(oa,"CreateMetadataRegistry");function Xi(){var k;return!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Oe(k)&&(k=oa()),!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Xi,"GetOrCreateMetadataRegistry");function lu(k){var B=new b,q={isProviderFor:o(function(be,Pe){var Ie=B.get(be);return Oe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Ln,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:yn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:he};return F.registerProvider(q),q;function ce(be,Pe,Ie){var st=B.get(be),Wt=!1;if(Oe(st)){if(!Ie)return;st=new v,B.set(be,st),Wt=!0}var pn=st.get(Pe);if(Oe(pn)){if(!Ie)return;if(pn=new v,st.set(Pe,pn),!k.setProvider(be,Pe,q))throw st.delete(Pe),Wt&&B.delete(be),new Error("Wrong provider for target.")}return pn}o(ce,"GetOrCreateMetadataMap");function Ne(be,Pe,Ie){var st=ce(Pe,Ie,!1);return Oe(st)?!1:Y(st.has(be))}o(Ne,"OrdinaryHasOwnMetadata");function yn(be,Pe,Ie){var st=ce(Pe,Ie,!1);if(!Oe(st))return st.get(be)}o(yn,"OrdinaryGetOwnMetadata");function Ln(be,Pe,Ie,st){var Wt=ce(Ie,st,!0);Wt.set(be,Pe)}o(Ln,"OrdinaryDefineOwnMetadata");function it(be,Pe){var Ie=[],st=ce(be,Pe,!1);if(Oe(st))return Ie;for(var Wt=st.keys(),pn=ii(Wt),dr=0;;){var sg=hn(pn);if(!sg)return Ie.length=dr,Ie;var cv=pr(sg);try{Ie[dr]=cv}catch(du){try{bi(pn)}finally{throw du}}dr++}}o(it,"OrdinaryOwnMetadataKeys");function he(be,Pe,Ie){var st=ce(Pe,Ie,!1);if(Oe(st)||!st.delete(be))return!1;if(st.size===0){var Wt=B.get(Pe);Oe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(lu,"CreateMetadataProvider");function cc(k){var B=k.defineMetadata,q=k.hasOwnMetadata,ce=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,yn=k.deleteMetadata,Ln=new b,it={isProviderFor:o(function(he,be){var Pe=Ln.get(he);return!Oe(Pe)&&Pe.has(be)?!0:Ne(he,be).length?(Oe(Pe)&&(Pe=new S,Ln.set(he,Pe)),Pe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:yn};return it}o(cc,"CreateFallbackProvider");function Vr(k,B,q){var ce=F.getProvider(k,B);if(!Oe(ce))return ce;if(q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Vr,"GetMetadataProvider");function fu(){var k={},B=[],q=(function(){function it(he,be,Pe){this._index=0,this._keys=he,this._values=be,this._selector=Pe}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},it.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},it})(),ce=(function(){function it(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(he){return this._find(he,!1)>=0},it.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},it.prototype.set=function(he,be){var Pe=this._find(he,!0);return this._values[Pe]=be,this},it.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Pe=this._keys.length,Ie=be+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,un(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Ne)},it.prototype.values=function(){return new q(this._keys,this._values,yn)},it.prototype.entries=function(){return new q(this._keys,this._values,Ln)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(he,be){if(!un(this._cacheKey,he)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(un(this._keys[Pe],he)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},it})();return ce;function Ne(it,he){return it}function yn(it,he){return he}function Ln(it,he){return[it,he]}}o(fu,"CreateMapPolyfill");function uu(){var k=(function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B})();return k}o(uu,"CreateSetPolyfill");function pu(){var k=16,B=d.create(),q=ce();return(function(){function he(){this._key=ce()}return o(he,"WeakMap"),he.prototype.has=function(be){var Pe=Ne(be,!1);return Pe!==void 0?d.has(Pe,this._key):!1},he.prototype.get=function(be){var Pe=Ne(be,!1);return Pe!==void 0?d.get(Pe,this._key):void 0},he.prototype.set=function(be,Pe){var Ie=Ne(be,!0);return Ie[this._key]=Pe,this},he.prototype.delete=function(be){var Pe=Ne(be,!1);return Pe!==void 0?delete Pe[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he})();function ce(){var he;do he="@@WeakMap@@"+it();while(d.has(B,he));return B[he]=!0,he}function Ne(he,be){if(!i.call(he,q)){if(!be)return;Object.defineProperty(he,q,{value:d.create()})}return he[q]}function yn(he,be){for(var Pe=0;Pe<be;++Pe)he[Pe]=Math.random()*255|0;return he}function Ln(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):yn(be,he),be}return yn(new Array(he),he)}function it(){var he=Ln(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",Pe=0;Pe<k;++Pe){var Ie=he[Pe];(Pe===4||Pe===6||Pe===8)&&(be+="-"),Ie<16&&(be+="0"),be+=Ie.toString(16).toLowerCase()}return be}}o(pu,"CreateWeakMapPolyfill");function lc(k){return k.__=void 0,delete k.__,k}o(lc,"MakeDictionary")})})(e_||(e_={}))});var s_=Ze((Ute,a_)=>{var SX=0,o_="changeUtils: ";function AX(){return"id-"+new Date().valueOf()+"-"+SX++}o(AX,"uid");function EX(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(EX,"appendComponentToReference");function PX(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return EX(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(PX,"getFlexReference");function xX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(xX,"getAppVersion");function CX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(CX,"getProjectId");function r_(e){return JSON.stringify({fileName:e.id||AX().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:o_+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(r_,"createString");a_.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(o_,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=PX(t),e.appVersion=xX(t),e.projectId=CX(t,e.reference),r_(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return r_(e)},"toString")}});var l_=Ze((Bte,c_)=>{c_.exports={change:s_()}});var fV=Ze(qr=>{"use strict";var v3=/[|\\{}()[\]^$+*?.]/g,b3=Object.prototype.hasOwnProperty,FA=o(function(e,t){return b3.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(v3,"\\$&"):""};var S3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},A3=/[&<>'"]/g;function E3(e){return S3[e]||e}o(E3,"encode_char");var P3=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -79,7 +79,7 @@ try {
79
79
  `;break;case Xn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+yV(e)+`))
80
80
  `;break;case Xn.modes.RAW:this.source+=" ; __append("+yV(e)+`)
81
81
  `;break;case Xn.modes.COMMENT:break;case Xn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Pt.escapeXML=Dn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=C3;Pt.name=L3;typeof window<"u"&&(window.ejs=Pt)});var $p,FP=Je(()=>{$p="7.1.1"});function ct(e){return e&&e.length===0}function Ui(e){return e==null?[]:Object.keys(e)}function Un(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function C1(e,t){for(var n=[],i=Ui(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function de(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function _n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(_n(i)):t.push(i)}return t}function Oi(e){return ct(e)?void 0:e[0]}function Ry(e){var t=e&&e.length;return t?e[t-1]:void 0}function Te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ly(e))for(var i=Ui(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function to(e){return typeof e=="string"}function Ri(e){return e===void 0}function Po(e){return e instanceof Function}function $n(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function Us(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function no(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ka(e,t){return no(e,function(n){return!t(n)})}function Ir(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function xe(e,t){return Ly(e)?e.hasOwnProperty(t):!1}function wt(e,t){return ja(e,function(n){return n===t})!==void 0}function xn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function $s(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ja(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function I1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function gn(e,t,n){for(var i=Array.isArray(e),r=i?e:Un(e),a=i?[]:Ui(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ua(e){return ka(e,function(t){return t==null})}function Bp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return gn(e,function(i,r){var a=t(r);return wt(n,a)?i:(n.push(a),i.concat(r))},[])}function sfe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function di(e){return Array.isArray(e)}function xo(e){return e instanceof RegExp}function Ly(e){return e instanceof Object}function gi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function il(e,t){return ka(e,function(n){return wt(t,n)})}function Fy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function O1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function cfe(e,t){var n=xn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function lfe(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Or(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Ui(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function S6(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Ui(r),s=0;s<a.length;s++){var l=a[s];xe(e,l)||(e[l]=r[l])}return e}function Hp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S6.apply(null,[{}].concat(e))}function R1(e,t){var n={};return Te(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function NP(e,t){for(var n=$s(e),i=Ui(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Bn(){}function DP(e){return e}function L1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Gp(e){console&&console.error&&console.error("Error: "+e)}function Ny(e){console&&console.warn&&console.warn("Warning: "+e)}function _P(){return typeof Map=="function"}function F1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function Dy(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Wp(e){return e[e.length-1]}function _y(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Je(()=>{o(ct,"isEmpty");o(Ui,"keys");o(Un,"values");o(C1,"mapValues");o(de,"map");o(_n,"flatten");o(Oi,"first");o(Ry,"last");o(Te,"forEach");o(to,"isString");o(Ri,"isUndefined");o(Po,"isFunction");o($n,"drop");o(Us,"dropRight");o(no,"filter");o(ka,"reject");o(Ir,"pick");o(xe,"has");o(wt,"contains");o(xn,"cloneArr");o($s,"cloneObj");o(ja,"find");o(I1,"findAll");o(gn,"reduce");o(Ua,"compact");o(Bp,"uniq");o(sfe,"partial");o(di,"isArray");o(xo,"isRegExp");o(Ly,"isObject");o(gi,"every");o(il,"difference");o(Fy,"some");o(O1,"indexOf");o(cfe,"sortBy");o(lfe,"zipObject");o(Or,"assign");o(S6,"assignNoOverwrite");o(Hp,"defaults");o(R1,"groupBy");o(NP,"merge");o(Bn,"NOOP");o(DP,"IDENTITY");o(L1,"packArray");o(Gp,"PRINT_ERROR");o(Ny,"PRINT_WARNING");o(_P,"isES2015MapSupported");o(F1,"applyMixins");o(Dy,"toFastProperties");o(Wp,"peek");o(_y,"timer")});var wy=Ze((D1,Vy)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Vy=="object"&&Vy.exports?Vy.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:D1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var F={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var F=this.disjunction();return this.consumeChar(")"),{type:I,value:F,loc:this.loc(b)}}f()},e.prototype.quantifier=function(b){var I,F=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var W;this.isDigit()?(W=this.integerIncludingZero(),I={atLeast:j,atMost:W}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(F),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
82
+ `)},"scanLine")};Pt.escapeXML=Dn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=C3;Pt.name=L3;typeof window<"u"&&(window.ejs=Pt)});var $p,FP=Je(()=>{$p="7.1.1"});function ct(e){return e&&e.length===0}function Ui(e){return e==null?[]:Object.keys(e)}function Un(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function C1(e,t){for(var n=[],i=Ui(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function de(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function _n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(_n(i)):t.push(i)}return t}function Oi(e){return ct(e)?void 0:e[0]}function Ry(e){var t=e&&e.length;return t?e[t-1]:void 0}function Te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ly(e))for(var i=Ui(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function to(e){return typeof e=="string"}function Ri(e){return e===void 0}function Po(e){return e instanceof Function}function $n(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function $s(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function no(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ka(e,t){return no(e,function(n){return!t(n)})}function Ir(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function xe(e,t){return Ly(e)?e.hasOwnProperty(t):!1}function wt(e,t){return ja(e,function(n){return n===t})!==void 0}function xn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Bs(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ja(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function I1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function gn(e,t,n){for(var i=Array.isArray(e),r=i?e:Un(e),a=i?[]:Ui(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ua(e){return ka(e,function(t){return t==null})}function Bp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return gn(e,function(i,r){var a=t(r);return wt(n,a)?i:(n.push(a),i.concat(r))},[])}function sfe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function di(e){return Array.isArray(e)}function xo(e){return e instanceof RegExp}function Ly(e){return e instanceof Object}function gi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function il(e,t){return ka(e,function(n){return wt(t,n)})}function Fy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function O1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function cfe(e,t){var n=xn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function lfe(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Or(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Ui(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function S6(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Ui(r),s=0;s<a.length;s++){var l=a[s];xe(e,l)||(e[l]=r[l])}return e}function Hp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S6.apply(null,[{}].concat(e))}function R1(e,t){var n={};return Te(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function NP(e,t){for(var n=Bs(e),i=Ui(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Bn(){}function DP(e){return e}function L1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Gp(e){console&&console.error&&console.error("Error: "+e)}function Ny(e){console&&console.warn&&console.warn("Warning: "+e)}function _P(){return typeof Map=="function"}function F1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function Dy(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Wp(e){return e[e.length-1]}function _y(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Je(()=>{o(ct,"isEmpty");o(Ui,"keys");o(Un,"values");o(C1,"mapValues");o(de,"map");o(_n,"flatten");o(Oi,"first");o(Ry,"last");o(Te,"forEach");o(to,"isString");o(Ri,"isUndefined");o(Po,"isFunction");o($n,"drop");o($s,"dropRight");o(no,"filter");o(ka,"reject");o(Ir,"pick");o(xe,"has");o(wt,"contains");o(xn,"cloneArr");o(Bs,"cloneObj");o(ja,"find");o(I1,"findAll");o(gn,"reduce");o(Ua,"compact");o(Bp,"uniq");o(sfe,"partial");o(di,"isArray");o(xo,"isRegExp");o(Ly,"isObject");o(gi,"every");o(il,"difference");o(Fy,"some");o(O1,"indexOf");o(cfe,"sortBy");o(lfe,"zipObject");o(Or,"assign");o(S6,"assignNoOverwrite");o(Hp,"defaults");o(R1,"groupBy");o(NP,"merge");o(Bn,"NOOP");o(DP,"IDENTITY");o(L1,"packArray");o(Gp,"PRINT_ERROR");o(Ny,"PRINT_WARNING");o(_P,"isES2015MapSupported");o(F1,"applyMixins");o(Dy,"toFastProperties");o(Wp,"peek");o(_y,"timer")});var wy=Ze((D1,Vy)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Vy=="object"&&Vy.exports?Vy.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:D1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var F={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var F=this.disjunction();return this.consumeChar(")"),{type:I,value:F,loc:this.loc(b)}}f()},e.prototype.quantifier=function(b){var I,F=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var W;this.isDigit()?(W=this.integerIncludingZero(),I={atLeast:j,atMost:W}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(F),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
83
  `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,I=!1;switch(this.popChar()){case"d":b=d;break;case"D":b=d,I=!0;break;case"s":b=v;break;case"S":b=v,I=!0;break;case"w":b=m;break;case"W":b=m,I=!0;break}return l(b),{type:"Set",value:b,complement:I}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
84
84
  `);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var I=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:I}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
85
  `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var F=this.classAtom(),j=F.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var W=this.classAtom(),U=W.type==="Character";if(U){if(W.value<F.value)throw Error("Range out of order in character class");b.push({from:F.value,to:W.value})}else a(F.value,b),b.push(r("-")),a(W.value,b)}else a(F.value,b)}return this.consumeChar("]"),{type:"Set",complement:I,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
@@ -108,9 +108,9 @@ try {
108
108
  Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
109
109
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:mn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function _6(e){var t=no(e,function(i){var r=i[Jo];return r instanceof RegExp&&(r.multiline||r.global)}),n=de(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:mn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function V6(e){var t=[],n=de(e,function(a){return gn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!wt(t,l)&&l.PATTERN!==$i.NA&&(t.push(l),s.push(l)),s},[])});n=Ua(n);var i=no(n,function(a){return a.length>1}),r=de(i,function(a){var s=de(a,function(f){return f.name}),l=Oi(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:mn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function w6(e){var t=no(e,function(i){if(!xe(i,"GROUP"))return!1;var r=i.GROUP;return r!==$i.SKIPPED&&r!==$i.NA&&!to(r)}),n=de(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:mn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function M6(e,t){var n=no(e,function(r){return r.PUSH_MODE!==void 0&&!wt(t,r.PUSH_MODE)}),i=de(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:mn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function k6(e){var t=[],n=gn(e,function(i,r,a){var s=r.PATTERN;return s===$i.NA||(to(s)?i.push({str:s,idx:a,tokenType:r}):xo(s)&&U6(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return Te(e,function(i,r){Te(n,function(a){var s=a.str,l=a.idx,f=a.tokenType;if(r<l&&j6(s,i.PATTERN)){var p="Token: ->"+f.name+`<- can never be matched.
110
110
  `+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
111
- See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:mn.UNREACHABLE_PATTERN,tokenTypes:[i,f]})}})}),t}function j6(e,t){if(xo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(Po(t))return t(e,0,[],{});if(xe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function U6(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ja(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function U1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function $1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function W1(e,t,n){var i=[];return xe(e,Bs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Bs+`> property in its definition
111
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:mn.UNREACHABLE_PATTERN,tokenTypes:[i,f]})}})}),t}function j6(e,t){if(xo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(Po(t))return t(e,0,[],{});if(xe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function U6(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ja(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function U1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function $1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function W1(e,t,n){var i=[];return xe(e,Hs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Hs+`> property in its definition
112
112
  `,type:mn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),xe(e,By)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+By+`> property in its definition
113
- `,type:mn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),xe(e,By)&&xe(e,Bs)&&!xe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Bs+": <"+e.defaultMode+`>which does not exist
113
+ `,type:mn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),xe(e,By)&&xe(e,Hs)&&!xe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Hs+": <"+e.defaultMode+`>which does not exist
114
114
  `,type:mn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),xe(e,By)&&Te(e.modes,function(r,a){Te(r,function(s,l){Ri(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
115
115
  `),type:mn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function K1(e,t,n){var i=[],r=!1,a=Ua(_n(C1(e.modes,function(f){return f}))),s=ka(a,function(f){return f[Jo]===$i.NA}),l=z1(n);return t&&Te(s,function(f){var p=Y1(f,l);if(p!==!1){var d=B6(f,p),m={message:d,type:p.issue,tokenType:f};i.push(m)}else xe(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(r=!0):$y(l,f.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
116
116
  This Lexer has been defined to track line and column information,
@@ -121,23 +121,23 @@ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNRE
121
121
  `)+(" Root cause: "+t.errMsg+`.
122
122
  `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===mn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
123
123
  `+(" The problem is in the <"+e.name+`> Token Type
124
- `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function z1(e){var t=de(e,function(n){return to(n)&&n.length>0?n.charCodeAt(0):n});return t}function kP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function zo(e){return e<Af?e:Hy[e]}function H6(){if(ct(Hy)){Hy=new Array(65536);for(var e=0;e<65536;e++)Hy[e]=e>255?255+~~(e/255):e}}var jP,B1,Jo,Bs,By,UP,R6,N6,q1,Af,Hy,MP=Je(()=>{jP=Z(wy());Xp();bt();j1();ky();B1=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Jo="PATTERN",Bs="defaultMode",By="modes",UP=typeof new RegExp("(?:)").sticky=="boolean";o(H1,"analyzeTokenTypes");o(G1,"validatePatterns");o(C6,"validateRegExpPattern");o(I6,"findMissingPatterns");o(O6,"findInvalidPatterns");R6=/[^\\][\$]/;o(L6,"findEndOfInputAnchor");o(F6,"findEmptyMatchRegExps");N6=/[^\\[][\^]|^\^/;o(D6,"findStartOfInputAnchor");o(_6,"findUnsupportedFlags");o(V6,"findDuplicatePatterns");o(w6,"findInvalidGroupType");o(M6,"findModesThatDoNotExist");o(k6,"findUnreachablePatterns");o(j6,"testTokenType");o(U6,"noMetaChar");o(U1,"addStartOfInput");o($1,"addStickyFlag");o(W1,"performRuntimeChecks");o(K1,"performWarningRuntimeChecks");o(X1,"cloneEmptyGroups");o(Q1,"isCustomPattern");o($6,"isShortPattern");q1={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(Y1,"checkLineBreaksIssues");o(B6,"buildLineBreakIssueMessage");o(z1,"getCharCodes");o(kP,"addToMapOfArrays");Af=256;o(zo,"charCodeToOptimizedIndex");Hy=[];o(H6,"initCharCodeToOptimizedIndexMap")});function rl(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Ef(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function $a(e){var t=G6(e);W6(t),X6(t),K6(t),Te(t,function(n){n.isParent=n.categoryMatches.length>0})}function G6(e){for(var t=xn(e),n=e,i=!0;i;){n=Ua(_n(de(n,function(a){return a.CATEGORIES})));var r=il(n,t);t=t.concat(r),ct(r)?i=!1:n=r}return t}function W6(e){Te(e,function(t){$P(t)||(ew[J1]=t,t.tokenTypeIdx=J1++),Z1(t)&&!di(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Z1(t)||(t.CATEGORIES=[]),Q6(t)||(t.categoryMatches=[]),q6(t)||(t.categoryMatchesMap={})})}function K6(e){Te(e,function(t){t.categoryMatches=[],Te(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(ew[i].tokenTypeIdx)})})}function X6(e){Te(e,function(t){tw([],t)})}function tw(e,t){Te(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),Te(t.CATEGORIES,function(n){var i=e.concat(t);wt(i,n)||tw(i,n)})}function $P(e){return xe(e,"tokenTypeIdx")}function Z1(e){return xe(e,"CATEGORIES")}function Q6(e){return xe(e,"categoryMatches")}function q6(e){return xe(e,"categoryMatchesMap")}function nw(e){return xe(e,"tokenTypeIdx")}var J1,ew,Pf=Je(()=>{bt();o(rl,"tokenStructuredMatcher");o(Ef,"tokenStructuredMatcherNoCategories");J1=1,ew={};o($a,"augmentTokenTypes");o(G6,"expandCategories");o(W6,"assignTokenDefaultProps");o(K6,"assignCategoriesTokensProp");o(X6,"assignCategoriesMapProp");o(tw,"singleAssignCategoriesToksMap");o($P,"hasShortKeyProperty");o(Z1,"hasCategoriesProperty");o(Q6,"hasExtendingTokensTypesProperty");o(q6,"hasExtendingTokensTypesMapProperty");o(nw,"isTokenType")});var Gy,BP=Je(()=>{Gy={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var mn,Qp,$i,Xp=Je(()=>{MP();bt();Pf();BP();ky();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(mn||(mn={}));Qp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
124
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function z1(e){var t=de(e,function(n){return to(n)&&n.length>0?n.charCodeAt(0):n});return t}function kP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function zo(e){return e<Af?e:Hy[e]}function H6(){if(ct(Hy)){Hy=new Array(65536);for(var e=0;e<65536;e++)Hy[e]=e>255?255+~~(e/255):e}}var jP,B1,Jo,Hs,By,UP,R6,N6,q1,Af,Hy,MP=Je(()=>{jP=Z(wy());Xp();bt();j1();ky();B1=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Jo="PATTERN",Hs="defaultMode",By="modes",UP=typeof new RegExp("(?:)").sticky=="boolean";o(H1,"analyzeTokenTypes");o(G1,"validatePatterns");o(C6,"validateRegExpPattern");o(I6,"findMissingPatterns");o(O6,"findInvalidPatterns");R6=/[^\\][\$]/;o(L6,"findEndOfInputAnchor");o(F6,"findEmptyMatchRegExps");N6=/[^\\[][\^]|^\^/;o(D6,"findStartOfInputAnchor");o(_6,"findUnsupportedFlags");o(V6,"findDuplicatePatterns");o(w6,"findInvalidGroupType");o(M6,"findModesThatDoNotExist");o(k6,"findUnreachablePatterns");o(j6,"testTokenType");o(U6,"noMetaChar");o(U1,"addStartOfInput");o($1,"addStickyFlag");o(W1,"performRuntimeChecks");o(K1,"performWarningRuntimeChecks");o(X1,"cloneEmptyGroups");o(Q1,"isCustomPattern");o($6,"isShortPattern");q1={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(Y1,"checkLineBreaksIssues");o(B6,"buildLineBreakIssueMessage");o(z1,"getCharCodes");o(kP,"addToMapOfArrays");Af=256;o(zo,"charCodeToOptimizedIndex");Hy=[];o(H6,"initCharCodeToOptimizedIndexMap")});function rl(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Ef(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function $a(e){var t=G6(e);W6(t),X6(t),K6(t),Te(t,function(n){n.isParent=n.categoryMatches.length>0})}function G6(e){for(var t=xn(e),n=e,i=!0;i;){n=Ua(_n(de(n,function(a){return a.CATEGORIES})));var r=il(n,t);t=t.concat(r),ct(r)?i=!1:n=r}return t}function W6(e){Te(e,function(t){$P(t)||(ew[J1]=t,t.tokenTypeIdx=J1++),Z1(t)&&!di(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Z1(t)||(t.CATEGORIES=[]),Q6(t)||(t.categoryMatches=[]),q6(t)||(t.categoryMatchesMap={})})}function K6(e){Te(e,function(t){t.categoryMatches=[],Te(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(ew[i].tokenTypeIdx)})})}function X6(e){Te(e,function(t){tw([],t)})}function tw(e,t){Te(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),Te(t.CATEGORIES,function(n){var i=e.concat(t);wt(i,n)||tw(i,n)})}function $P(e){return xe(e,"tokenTypeIdx")}function Z1(e){return xe(e,"CATEGORIES")}function Q6(e){return xe(e,"categoryMatches")}function q6(e){return xe(e,"categoryMatchesMap")}function nw(e){return xe(e,"tokenTypeIdx")}var J1,ew,Pf=Je(()=>{bt();o(rl,"tokenStructuredMatcher");o(Ef,"tokenStructuredMatcherNoCategories");J1=1,ew={};o($a,"augmentTokenTypes");o(G6,"expandCategories");o(W6,"assignTokenDefaultProps");o(K6,"assignCategoriesTokensProp");o(X6,"assignCategoriesMapProp");o(tw,"singleAssignCategoriesToksMap");o($P,"hasShortKeyProperty");o(Z1,"hasCategoriesProperty");o(Q6,"hasExtendingTokensTypesProperty");o(q6,"hasExtendingTokensTypesMapProperty");o(nw,"isTokenType")});var Gy,BP=Je(()=>{Gy={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var mn,Qp,$i,Xp=Je(()=>{MP();bt();Pf();BP();ky();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(mn||(mn={}));Qp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
125
  `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Gy,traceInitPerf:!1,skipValidations:!1};Object.freeze(Qp);$i=(function(){function e(t,n){var i=this;if(n===void 0&&(n=Qp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
126
  a boolean 2nd argument is no longer supported`);this.config=NP(Qp,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Qp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=q1;else if(i.config.lineTerminatorCharacters===Qp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
127
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),di(t)?(a={modes:{}},a.modes[Bs]=xn(t),a[Bs]=Bs):(s=!1,a=$s(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(W1(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(K1(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},Te(a.modes,function(d,m){a.modes[m]=ka(d,function(v){return Ri(v)})});var l=Ui(a.modes);if(Te(a.modes,function(d,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(G1(d,l))}),ct(i.lexerDefinitionErrors)){$a(d);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=H1(d,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=NP(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ct(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var f=de(i.lexerDefinitionErrors,function(d){return d.message}),p=f.join(`-----------------------
127
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),di(t)?(a={modes:{}},a.modes[Hs]=xn(t),a[Hs]=Hs):(s=!1,a=Bs(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(W1(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(K1(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},Te(a.modes,function(d,m){a.modes[m]=ka(d,function(v){return Ri(v)})});var l=Ui(a.modes);if(Te(a.modes,function(d,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(G1(d,l))}),ct(i.lexerDefinitionErrors)){$a(d);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=H1(d,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=NP(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ct(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var f=de(i.lexerDefinitionErrors,function(d){return d.message}),p=f.join(`-----------------------
128
128
  `);throw new Error(`Errors detected in definition of Lexer:
129
129
  `+p)}Te(i.lexerDefinitionWarning,function(d){Ny(d.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(UP?(i.chopInput=DP,i.match=i.matchWithTest):(i.updateLastIndex=Bn,i.match=i.matchWithExec),s&&(i.handleModes=Bn),i.trackStartLines===!1&&(i.computeNewColumn=DP),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Bn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var d=gn(i.canModeBeOptimized,function(m,v,S){return v===!1&&m.push(S),m},[]);if(n.ensureOptimizations&&!ct(d))throw Error("Lexer Modes: < "+d.join(", ")+` > cannot be optimized.
130
130
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
131
131
  Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){V1()}),i.TRACE_INIT("toFastProperties",function(){Dy(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ct(this.lexerDefinitionErrors)){var i=de(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
132
132
  `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
133
133
  `+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,f,p,d,m,v,S,b,I,F,j,W,U=t,se=U.length,ee=0,le=0,Le=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Le),Ue=[],$e=this.trackStartLines?1:void 0,qe=this.trackStartLines?1:void 0,rn=X1(this.emptyGroups),Bt=this.trackStartLines,At=this.config.lineTerminatorsPattern,Yt=0,Fe=[],vn=[],bn=[],on=[];Object.freeze(on);var Rn=void 0;function an(){return Fe}o(an,"getPossiblePatternsSlow");function Oe(Gt){var oa=zo(Gt),Xi=vn[oa];return Xi===void 0?on:Xi}o(Oe,"getPossiblePatternsOptimized");var fn=o(function(Gt){if(bn.length===1&&Gt.tokenType.PUSH_MODE===void 0){var oa=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);Ue.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:oa})}else{bn.pop();var Xi=Ry(bn);Fe=i.patternIdxToConfig[Xi],vn=i.charCodeToPatternIdxToConfig[Xi],Yt=Fe.length;var lu=i.canModeBeOptimized[Xi]&&i.config.safeMode===!1;vn&&lu?Rn=Oe:Rn=an}},"pop_mode");function Fi(Gt){bn.push(Gt),vn=this.charCodeToPatternIdxToConfig[Gt],Fe=this.patternIdxToConfig[Gt],Yt=Fe.length,Yt=Fe.length;var oa=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;vn&&oa?Rn=Oe:Rn=an}o(Fi,"push_mode"),Fi.call(this,n);for(var tt;ee<se;){f=null;var O=U.charCodeAt(ee),E=Rn(O),Y=E.length;for(r=0;r<Y;r++){tt=E[r];var V=tt.pattern;p=null;var _e=tt.short;if(_e!==!1?O===_e&&(f=V):tt.isCustom===!0?(W=V.exec(U,ee,D,rn),W!==null?(f=W[0],W.payload!==void 0&&(p=W.payload)):f=null):(this.updateLastIndex(V,ee),f=this.match(V,t,ee)),f!==null){if(l=tt.longerAlt,l!==void 0){var Nt=Fe[l],ze=Nt.pattern;d=null,Nt.isCustom===!0?(W=ze.exec(U,ee,D,rn),W!==null?(s=W[0],W.payload!==void 0&&(d=W.payload)):s=null):(this.updateLastIndex(ze,ee),s=this.match(ze,t,ee)),s&&s.length>f.length&&(f=s,p=d,tt=Nt)}break}}if(f!==null){if(m=f.length,v=tt.group,v!==void 0&&(S=tt.tokenTypeIdx,b=this.createTokenInstance(f,ee,S,tt.tokenType,$e,qe,m),this.handlePayload(b,p),v===!1?le=this.addToken(D,le,b):rn[v].push(b)),t=this.chopInput(t,m),ee=ee+m,qe=this.computeNewColumn(qe,m),Bt===!0&&tt.canLineTerminator===!0){var kt=0,Sn=void 0,un=void 0;At.lastIndex=0;do Sn=At.test(f),Sn===!0&&(un=At.lastIndex-1,kt++);while(Sn===!0);kt!==0&&($e=$e+kt,qe=m-un,this.updateTokenEndLineColumnLocation(b,v,un,kt,$e,qe,m))}this.handleModes(tt,fn,Fi,b)}else{for(var Ht=ee,ii=$e,pr=qe,hn=!1;!hn&&ee<se;)for(F=U.charCodeAt(ee),t=this.chopInput(t,1),ee++,a=0;a<Yt;a++){var bi=Fe[a],V=bi.pattern,_e=bi.short;if(_e!==!1?U.charCodeAt(ee)===_e&&(hn=!0):bi.isCustom===!0?hn=V.exec(U,ee,D,rn)!==null:(this.updateLastIndex(V,ee),hn=V.exec(t)!==null),hn===!0)break}I=ee-Ht,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Ht,I,ii,pr),Ue.push({offset:Ht,line:ii,column:pr,length:I,message:j})}}return this.hasCustom||(D.length=le),{tokens:D,groups:rn,errors:Ue}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var f,p;n!==void 0&&(f=i===l-1,p=f?-1:0,r===1&&f===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=_y(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e})()});function Zo(e){return HP(e)?e.LABEL:e.name}function uw(e){return e.name}function HP(e){return to(e.LABEL)&&e.LABEL!==""}function qp(e){return z6(e)}function z6(e){var t=e.pattern,n={};if(n.name=e.name,Ri(t)||(n.PATTERN=t),xe(e,Y6))throw`The parent property is no longer supported.
134
- See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,iw)&&(n.CATEGORIES=e[iw]),$a([n]),xe(e,rw)&&(n.LABEL=e[rw]),xe(e,ow)&&(n.GROUP=e[ow]),xe(e,sw)&&(n.POP_MODE=e[sw]),xe(e,aw)&&(n.PUSH_MODE=e[aw]),xe(e,cw)&&(n.LONGER_ALT=e[cw]),xe(e,lw)&&(n.LINE_BREAKS=e[lw]),xe(e,fw)&&(n.START_CHARS_HINT=e[fw]),n}function Hs(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function pw(e,t){return rl(e,t)}var Y6,iw,rw,ow,aw,sw,cw,lw,fw,io,Gs=Je(()=>{bt();Xp();Pf();o(Zo,"tokenLabel");o(uw,"tokenName");o(HP,"hasTokenLabel");Y6="parent",iw="categories",rw="label",ow="group",aw="push_mode",sw="pop_mode",cw="longer_alt",lw="line_breaks",fw="start_chars_hint";o(qp,"createToken");o(z6,"createTokenInternal");io=qp({name:"EOF",pattern:$i.NA});$a([io]);o(Hs,"createTokenInstance");o(pw,"tokenMatcher")});function Wy(e){return de(e,xf)}function xf(e){function t(r){return de(r,xf)}if(o(t,"convertDefinition"),e instanceof cn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof tn)return{type:"Alternative",definition:t(e.definition)};if(e instanceof ln)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof wn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:xf(new yt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Cn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:xf(new yt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof In)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof yt){var n={type:"Terminal",name:e.terminalType.name,label:Zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=xo(i)?i.source:i),n}else{if(e instanceof Rr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ba,Co,cn,Rr,tn,ln,Vn,wn,Lt,Cn,In,yt,Bi=Je(()=>{bt();Gs();Ba=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Co=(function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),Te(this.definition,function(n){n.accept(t)})},e})(),cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t})(Co),Rr=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t})(Co),tn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t})(Co),ln=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Option"),t})(Co),Vn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t})(Co),wn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t})(Co),Lt=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t})(Co),Cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t})(Co),In=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t})(Co),yt=(function(){function e(t){this.idx=1,Or(this,Ir(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e})();o(Wy,"serializeGrammar");o(xf,"serializeProduction")});function dw(e,t,n){var i=[new ln({definition:[new yt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var ol,Ky=Je(()=>{bt();Bi();ol=(function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=$n(t.definition,a+1);if(r instanceof cn)i.walkProdRef(r,s,n);else if(r instanceof yt)i.walkTerminal(r,s,n);else if(r instanceof tn)i.walkFlat(r,s,n);else if(r instanceof ln)i.walkOption(r,s,n);else if(r instanceof Vn)i.walkAtLeastOne(r,s,n);else if(r instanceof wn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Cn)i.walkManySep(r,s,n);else if(r instanceof Lt)i.walkMany(r,s,n);else if(r instanceof In)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new ln({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=dw(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new ln({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=dw(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new tn({definition:[s]});r.walk(l,a)})},e})();o(dw,"restForRepetitionWithSeparator")});var ro,Cf=Je(()=>{Bi();ro=(function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case cn:return this.visitNonTerminal(n);case tn:return this.visitAlternative(n);case ln:return this.visitOption(n);case Vn:return this.visitRepetitionMandatory(n);case wn:return this.visitRepetitionMandatoryWithSeparator(n);case Cn:return this.visitRepetitionWithSeparator(n);case Lt:return this.visitRepetition(n);case In:return this.visitAlternation(n);case yt:return this.visitTerminal(n);case Rr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e})()});function gw(e){return e instanceof tn||e instanceof ln||e instanceof Lt||e instanceof Vn||e instanceof wn||e instanceof Cn||e instanceof yt||e instanceof Rr}function If(e,t){t===void 0&&(t=[]);var n=e instanceof ln||e instanceof Lt||e instanceof Cn;return n?!0:e instanceof In?Fy(e.definition,function(i){return If(i,t)}):e instanceof cn&&wt(t,e)?!1:e instanceof Co?(e instanceof cn&&t.push(e),gi(e.definition,function(i){return If(i,t)})):!1}function mw(e){return e instanceof In}function Lr(e){if(e instanceof cn)return"SUBRULE";if(e instanceof ln)return"OPTION";if(e instanceof In)return"OR";if(e instanceof Vn)return"AT_LEAST_ONE";if(e instanceof wn)return"AT_LEAST_ONE_SEP";if(e instanceof Cn)return"MANY_SEP";if(e instanceof Lt)return"MANY";if(e instanceof yt)return"CONSUME";throw Error("non exhaustive match")}function hw(e){Xy.reset(),e.accept(Xy);var t=Xy.dslMethods;return Xy.reset(),t}var J6,GP,Xy,Of=Je(()=>{bt();Bi();Cf();J6=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(gw,"isSequenceProd");o(If,"isOptionalProd");o(mw,"isBranchingProd");o(Lr,"getProductionDslName");GP=(function(e){J6(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t})(ro),Xy=new GP;o(hw,"collectMethods")});function al(e){if(e instanceof cn)return al(e.referencedRule);if(e instanceof yt)return tq(e);if(gw(e))return Z6(e);if(mw(e))return eq(e);throw Error("non exhaustive match")}function Z6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=If(a),t=t.concat(al(a)),i=i+1,r=n.length>i;return Bp(t)}function eq(e){var t=de(e.definition,function(n){return al(n)});return Bp(_n(t))}function tq(e){return[e.terminalType]}var WP=Je(()=>{bt();Bi();Of();o(al,"first");o(Z6,"firstForSequence");o(eq,"firstForBranching");o(tq,"firstForTerminal")});var Qy,KP=Je(()=>{Qy="_~IN~_"});function yw(e){var t={};return Te(e,function(n){var i=new iq(n).startWalking();Or(t,i)}),t}function rq(e,t){return e.name+t+Qy}var nq,iq,Tw=Je(()=>{Ky();WP();bt();KP();Bi();nq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),iq=(function(e){nq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=rq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new tn({definition:s}),f=al(l);this.follows[a]=f},t})(ol);o(yw,"computeAllProdsFollows");o(rq,"buildBetweenProdsFollowPrefix")});var Yp,qy,Ws,zp=Je(()=>{Gs();bt();bt();Bi();Of();Yp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=HP(t),s=a?"--> "+Zo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Oi(n).image,f=`
134
+ See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,iw)&&(n.CATEGORIES=e[iw]),$a([n]),xe(e,rw)&&(n.LABEL=e[rw]),xe(e,ow)&&(n.GROUP=e[ow]),xe(e,sw)&&(n.POP_MODE=e[sw]),xe(e,aw)&&(n.PUSH_MODE=e[aw]),xe(e,cw)&&(n.LONGER_ALT=e[cw]),xe(e,lw)&&(n.LINE_BREAKS=e[lw]),xe(e,fw)&&(n.START_CHARS_HINT=e[fw]),n}function Gs(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function pw(e,t){return rl(e,t)}var Y6,iw,rw,ow,aw,sw,cw,lw,fw,io,Ws=Je(()=>{bt();Xp();Pf();o(Zo,"tokenLabel");o(uw,"tokenName");o(HP,"hasTokenLabel");Y6="parent",iw="categories",rw="label",ow="group",aw="push_mode",sw="pop_mode",cw="longer_alt",lw="line_breaks",fw="start_chars_hint";o(qp,"createToken");o(z6,"createTokenInternal");io=qp({name:"EOF",pattern:$i.NA});$a([io]);o(Gs,"createTokenInstance");o(pw,"tokenMatcher")});function Wy(e){return de(e,xf)}function xf(e){function t(r){return de(r,xf)}if(o(t,"convertDefinition"),e instanceof cn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof tn)return{type:"Alternative",definition:t(e.definition)};if(e instanceof ln)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof wn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:xf(new yt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Cn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:xf(new yt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof In)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof yt){var n={type:"Terminal",name:e.terminalType.name,label:Zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=xo(i)?i.source:i),n}else{if(e instanceof Rr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ba,Co,cn,Rr,tn,ln,Vn,wn,Lt,Cn,In,yt,Bi=Je(()=>{bt();Ws();Ba=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Co=(function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),Te(this.definition,function(n){n.accept(t)})},e})(),cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t})(Co),Rr=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t})(Co),tn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t})(Co),ln=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Option"),t})(Co),Vn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t})(Co),wn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t})(Co),Lt=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t})(Co),Cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t})(Co),In=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Or(i,Ir(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t})(Co),yt=(function(){function e(t){this.idx=1,Or(this,Ir(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e})();o(Wy,"serializeGrammar");o(xf,"serializeProduction")});function dw(e,t,n){var i=[new ln({definition:[new yt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var ol,Ky=Je(()=>{bt();Bi();ol=(function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=$n(t.definition,a+1);if(r instanceof cn)i.walkProdRef(r,s,n);else if(r instanceof yt)i.walkTerminal(r,s,n);else if(r instanceof tn)i.walkFlat(r,s,n);else if(r instanceof ln)i.walkOption(r,s,n);else if(r instanceof Vn)i.walkAtLeastOne(r,s,n);else if(r instanceof wn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Cn)i.walkManySep(r,s,n);else if(r instanceof Lt)i.walkMany(r,s,n);else if(r instanceof In)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new ln({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=dw(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new ln({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=dw(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new tn({definition:[s]});r.walk(l,a)})},e})();o(dw,"restForRepetitionWithSeparator")});var ro,Cf=Je(()=>{Bi();ro=(function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case cn:return this.visitNonTerminal(n);case tn:return this.visitAlternative(n);case ln:return this.visitOption(n);case Vn:return this.visitRepetitionMandatory(n);case wn:return this.visitRepetitionMandatoryWithSeparator(n);case Cn:return this.visitRepetitionWithSeparator(n);case Lt:return this.visitRepetition(n);case In:return this.visitAlternation(n);case yt:return this.visitTerminal(n);case Rr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e})()});function gw(e){return e instanceof tn||e instanceof ln||e instanceof Lt||e instanceof Vn||e instanceof wn||e instanceof Cn||e instanceof yt||e instanceof Rr}function If(e,t){t===void 0&&(t=[]);var n=e instanceof ln||e instanceof Lt||e instanceof Cn;return n?!0:e instanceof In?Fy(e.definition,function(i){return If(i,t)}):e instanceof cn&&wt(t,e)?!1:e instanceof Co?(e instanceof cn&&t.push(e),gi(e.definition,function(i){return If(i,t)})):!1}function mw(e){return e instanceof In}function Lr(e){if(e instanceof cn)return"SUBRULE";if(e instanceof ln)return"OPTION";if(e instanceof In)return"OR";if(e instanceof Vn)return"AT_LEAST_ONE";if(e instanceof wn)return"AT_LEAST_ONE_SEP";if(e instanceof Cn)return"MANY_SEP";if(e instanceof Lt)return"MANY";if(e instanceof yt)return"CONSUME";throw Error("non exhaustive match")}function hw(e){Xy.reset(),e.accept(Xy);var t=Xy.dslMethods;return Xy.reset(),t}var J6,GP,Xy,Of=Je(()=>{bt();Bi();Cf();J6=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(gw,"isSequenceProd");o(If,"isOptionalProd");o(mw,"isBranchingProd");o(Lr,"getProductionDslName");GP=(function(e){J6(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t})(ro),Xy=new GP;o(hw,"collectMethods")});function al(e){if(e instanceof cn)return al(e.referencedRule);if(e instanceof yt)return tq(e);if(gw(e))return Z6(e);if(mw(e))return eq(e);throw Error("non exhaustive match")}function Z6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=If(a),t=t.concat(al(a)),i=i+1,r=n.length>i;return Bp(t)}function eq(e){var t=de(e.definition,function(n){return al(n)});return Bp(_n(t))}function tq(e){return[e.terminalType]}var WP=Je(()=>{bt();Bi();Of();o(al,"first");o(Z6,"firstForSequence");o(eq,"firstForBranching");o(tq,"firstForTerminal")});var Qy,KP=Je(()=>{Qy="_~IN~_"});function yw(e){var t={};return Te(e,function(n){var i=new iq(n).startWalking();Or(t,i)}),t}function rq(e,t){return e.name+t+Qy}var nq,iq,Tw=Je(()=>{Ky();WP();bt();KP();Bi();nq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),iq=(function(e){nq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=rq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new tn({definition:s}),f=al(l);this.follows[a]=f},t})(ol);o(yw,"computeAllProdsFollows");o(rq,"buildBetweenProdsFollowPrefix")});var Yp,qy,Ks,zp=Je(()=>{Ws();bt();bt();Bi();Of();Yp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=HP(t),s=a?"--> "+Zo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Oi(n).image,f=`
135
135
  but found: '`+l+"'";if(r)return s+r+f;var p=gn(t,function(S,b){return S.concat(b)},[]),d=de(p,function(S){return"["+de(S,function(b){return Zo(b)}).join(", ")+"]"}),m=de(d,function(S,b){return" "+(b+1)+". "+S}),v=`one of these possible Token sequences:
136
136
  `+m.join(`
137
137
  `);return s+v+f},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Oi(n).image,l=`
138
138
  but found: '`+s+"'";if(i)return a+i+l;var f=de(t,function(d){return"["+de(d,function(m){return Zo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
139
139
  `+("<"+f.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(Yp);qy={buildRuleNotFoundError:o(function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
140
- inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Ws={buildDuplicateFoundError:o(function(e,t){function n(d){return d instanceof yt?d.terminalType.name:d instanceof cn?d.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=Oi(t),a=r.idx,s=Lr(r),l=n(r),f=a>0,p="->"+s+(f?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
140
+ inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Ks={buildDuplicateFoundError:o(function(e,t){function n(d){return d instanceof yt?d.terminalType.name:d instanceof cn?d.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=Oi(t),a=r.idx,s=Lr(r),l=n(r),f=a>0,p="->"+s+(f?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
141
141
  appears more than once (`+t.length+" times) in the top level rule: ->"+i+`<-.
142
142
  For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES
143
143
  `;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
@@ -161,33 +161,33 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
161
161
  `)+(`without consuming any Tokens. The grammar path that causes this is:
162
162
  `+i+`
163
163
  `)+` To fix this refactor your grammar to remove the left recursion.
164
- see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Rr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function vw(e,t){var n=new aq(e,t);return n.resolveRefs(),n.errors}var oq,aq,bw=Je(()=>{Fr();bt();Cf();oq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(vw,"resolveGrammar");aq=(function(e){oq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;Te(Un(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t})(ro)});function zy(e,t,n){n===void 0&&(n=[]),n=xn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var d=zy(a(p),t,n);return i.concat(d)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof tn)return s(l.definition);if(l instanceof cn)return s(l.definition);if(l instanceof ln)i=s(l.definition);else if(l instanceof Vn){var f=l.definition.concat([new Lt({definition:l.definition})]);return s(f)}else if(l instanceof wn){var f=[new tn({definition:l.definition}),new Lt({definition:[new yt({terminalType:l.separator})].concat(l.definition)})];return s(f)}else if(l instanceof Cn){var f=l.definition.concat([new Lt({definition:[new yt({terminalType:l.separator})].concat(l.definition)})]);i=s(f)}else if(l instanceof Lt){var f=l.definition.concat([new Lt({definition:l.definition})]);i=s(f)}else{if(l instanceof In)return Te(l.definition,function(p){ct(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof yt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:$n(e,r)}),i}function Jy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,f=t.length,p=f-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ct(m);){var v=m.pop();if(v===s){l&&Ry(m).idx<=p&&m.pop();continue}var S=v.def,b=v.idx,I=v.ruleStack,F=v.occurrenceStack;if(!ct(S)){var j=S[0];if(j===r){var W={idx:b,def:$n(S),ruleStack:Us(I),occurrenceStack:Us(F)};m.push(W)}else if(j instanceof yt)if(b<f-1){var U=b+1,se=t[U];if(n(se,j.terminalType)){var W={idx:U,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(W)}}else if(b===f-1)d.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof cn){var ee=xn(I);ee.push(j.nonTerminalName);var le=xn(F);le.push(j.idx);var W={idx:b,def:j.definition.concat(a,$n(S)),ruleStack:ee,occurrenceStack:le};m.push(W)}else if(j instanceof ln){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var D={idx:b,def:j.definition.concat($n(S)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Vn){var Ue=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([Ue],$n(S)),W={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(W)}else if(j instanceof wn){var qe=new yt({terminalType:j.separator}),Ue=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([Ue],$n(S)),W={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(W)}else if(j instanceof Cn){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var qe=new yt({terminalType:j.separator}),rn=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([rn],$n(S)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Lt){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var rn=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([rn],$n(S)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof In)for(var Bt=j.definition.length-1;Bt>=0;Bt--){var At=j.definition[Bt],Yt={idx:b,def:At.definition.concat($n(S)),ruleStack:I,occurrenceStack:F};m.push(Yt),m.push(s)}else if(j instanceof tn)m.push({idx:b,def:j.definition.concat($n(S)),ruleStack:I,occurrenceStack:F});else if(j instanceof Rr)m.push(cq(j,b,I,F));else throw Error("non exhaustive match")}}return d}function cq(e,t,n,i){var r=xn(n);r.push(e.name);var a=xn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var sl,sq,Sw,Yy,Aw,XP,Ew,QP,Jp=Je(()=>{Ky();bt();WP();Bi();sl=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),sq=(function(e){sl(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=xn(this.path.ruleStack).reverse(),this.occurrenceStack=xn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ct(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t})(ol),Sw=(function(e){sl(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new tn({definition:a});this.possibleTokTypes=al(s),this.found=!0}},t})(sq),Yy=(function(e){sl(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t})(ol),Aw=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t})(Yy),XP=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t})(Yy),Ew=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t})(Yy),QP=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t})(Yy);o(zy,"possiblePathsFrom");o(Jy,"nextPossibleTokensAfter");o(cq,"expandTopLevelRule")});function Cw(e){if(e instanceof ln)return Mt.OPTION;if(e instanceof Lt)return Mt.REPETITION;if(e instanceof Vn)return Mt.REPETITION_MANDATORY;if(e instanceof wn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Cn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof In)return Mt.ALTERNATION;throw Error("non exhaustive match")}function Iw(e,t,n,i,r,a){var s=Zp(e,t,n),l=_w(s)?Ef:rl;return a(s,i,l,r)}function Ow(e,t,n,i,r,a){var s=ed(e,t,r,n),l=_w(s)?Ef:rl;return a(s[0],l,i)}function Rw(e,t,n,i){var r=e.length,a=gi(e,function(f){return gi(f,function(p){return p.length===1})});if(t)return function(f){for(var p=de(f,function(U){return U.GATE}),d=0;d<r;d++){var m=e[d],v=m.length,S=p[d];if(!(S!==void 0&&S.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],F=I.length,j=0;j<F;j++){var W=this.LA(j+1);if(n(W,I[j])===!1)continue e}return d}}};if(a&&!i){var s=de(e,function(f){return _n(f)}),l=gn(s,function(f,p,d){return Te(p,function(m){xe(f,m.tokenTypeIdx)||(f[m.tokenTypeIdx]=d),Te(m.categoryMatches,function(v){xe(f,v)||(f[v]=d)})}),f},[]);return function(){var f=this.LA(1);return l[f.tokenTypeIdx]}}else return function(){for(var f=0;f<r;f++){var p=e[f],d=p.length;e:for(var m=0;m<d;m++){for(var v=p[m],S=v.length,b=0;b<S;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return f}}}}function Lw(e,t,n){var i=gi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=_n(e);if(a.length===1&&ct(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var f=gn(a,function(p,d,m){return p[d.tokenTypeIdx]=!0,Te(d.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return f[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var d=e[p],m=d.length,v=0;v<m;v++){var S=this.LA(v+1);if(t(S,d[v])===!1)continue e}return!0}return!1}}function Pw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function qP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var f="_"+i.categoryMatches[l];r.push(s+f)}}t=r}return t}function fq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function Nw(e,t){for(var n=de(e,function(d){return zy([d],1)}),i=Pw(n.length),r=de(n,function(d){var m={};return Te(d,function(v){var S=qP(v.partialPath);Te(S,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=Pw(l.length);for(var f=o(function(d){for(var m=l[d],v=0;v<m.length;v++){var S=m[v].partialPath,b=m[v].suffixDef,I=qP(S),F=fq(r,I,d);if(F||ct(b)||S.length===t){var j=i[d];if(Zy(j,S)===!1){j.push(S);for(var W=0;W<I.length;W++){var U=I[W];r[d][U]=!0}}}else{var se=zy(b,s+1,S);a[d]=a[d].concat(se),Te(se,function(ee){var le=qP(ee.partialPath);Te(le,function(Le){r[d][Le]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)f(p)}return i}function Zp(e,t,n,i){var r=new Fw(e,Mt.ALTERNATION,i);return t.accept(r),Nw(r.result,n)}function ed(e,t,n,i){var r=new Fw(e,n);t.accept(r);var a=r.result,s=new lq(t,e,n),l=s.startWalking(),f=new tn({definition:a}),p=new tn({definition:l});return Nw([f,p],i)}function Zy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function Dw(e,t){return e.length<t.length&&gi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function _w(e){return gi(e,function(t){return gi(t,function(n){return gi(n,function(i){return ct(i.categoryMatches)})})})}var xw,Mt,lq,Fw,td=Je(()=>{bt();Jp();Ky();Pf();Bi();Cf();xw=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Mt||(Mt={}));o(Cw,"getProdType");o(Iw,"buildLookaheadFuncForOr");o(Ow,"buildLookaheadFuncForOptionalProd");o(Rw,"buildAlternativesLookAheadFunc");o(Lw,"buildSingleAlternativeLookaheadFunction");lq=(function(e){xw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t})(ol),Fw=(function(e){xw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t})(ro);o(Pw,"initializeArrayOfArrays");o(qP,"pathToHashKeys");o(fq,"isUniquePrefixHash");o(Nw,"lookAheadSequenceFromAlternatives");o(Zp,"getLookaheadPathsForOr");o(ed,"getLookaheadPathsForOptionalProd");o(Zy,"containsPath");o(Dw,"isStrictPrefixOfPath");o(_w,"areTokenCategoriesNotUsed")});function Vw(e,t,n,i,r){var a=de(e,function(S){return uq(S,i)}),s=de(e,function(S){return kw(S,S,i)}),l=[],f=[],p=[];gi(s,ct)&&(l=de(e,function(S){return mq(S,i)}),f=de(e,function(S){return hq(S,t,i)}),p=vq(e,t,i));var d=Aq(e,n,i),m=de(e,function(S){return Tq(S,i)}),v=de(e,function(S){return gq(S,e,r,i)});return _n(a.concat(p,s,l,f,d,m,v))}function uq(e,t){var n=new dq;e.accept(n);var i=n.allProductions,r=R1(i,pq),a=Ir(r,function(l){return l.length>1}),s=de(Un(a),function(l){var f=Oi(l),p=t.buildDuplicateFoundError(e,l),d=Lr(f),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:f.idx},v=ww(f);return v&&(m.parameter=v),m});return s}function pq(e){return Lr(e)+"_#_"+e.idx+"_#_"+ww(e)}function ww(e){return e instanceof yt?e.terminalType.name:e instanceof cn?e.nonTerminalName:""}function gq(e,t,n,i){var r=[],a=gn(t,function(l,f){return f.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function Mw(e,t,n){var i=[],r;return wt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function kw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=eT(t.definition);if(ct(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var f=il(a,i.concat([e])),p=de(f,function(d){var m=xn(i);return m.push(d),kw(e,d,n,m)});return r.concat(_n(p))}function eT(e){var t=[];if(ct(e))return t;var n=Oi(e);if(n instanceof cn)t.push(n.referencedRule);else if(n instanceof tn||n instanceof ln||n instanceof Vn||n instanceof wn||n instanceof Cn||n instanceof Lt)t=t.concat(eT(n.definition));else if(n instanceof In)t=_n(de(n.definition,function(s){return eT(s.definition)}));else if(!(n instanceof yt))throw Error("non exhaustive match");var i=If(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(eT(a))}else return t}function mq(e,t){var n=new zP;e.accept(n);var i=n.alternations,r=gn(i,function(a,s){var l=Us(s.definition),f=de(l,function(p,d){var m=Jy([p],[],null,1);return ct(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return a.concat(Ua(f))},[]);return r}function hq(e,t,n){var i=new zP;e.accept(i);var r=i.alternations;r=ka(r,function(s){return s.ignoreAmbiguities===!0});var a=gn(r,function(s,l){var f=l.idx,p=l.maxLookahead||t,d=Zp(f,e,p,l),m=bq(d,l,e,n),v=Sq(d,l,e,n);return s.concat(m,v)},[]);return a}function Tq(e,t){var n=new zP;e.accept(n);var i=n.alternations,r=gn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function vq(e,t,n){var i=[];return Te(e,function(r){var a=new yq;r.accept(a);var s=a.allProductions;Te(s,function(l){var f=Cw(l),p=l.maxLookahead||t,d=l.idx,m=ed(d,r,f,p),v=m[0];if(ct(_n(v))){var S=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:S,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function bq(e,t,n,i){var r=[],a=gn(e,function(l,f,p){return t.definition[p].ignoreAmbiguities===!0||Te(f,function(d){var m=[p];Te(e,function(v,S){p!==S&&Zy(v,d)&&t.definition[S].ignoreAmbiguities!==!0&&m.push(S)}),m.length>1&&!Zy(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=de(a,function(l){var f=de(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:f,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function Sq(e,t,n,i){var r=[],a=gn(e,function(s,l,f){var p=de(l,function(d){return{idx:f,path:d}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var f=s.idx,p=s.path,d=I1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<f&&Dw(v.path,p)}),m=de(d,function(v){var S=[v.idx+1,f+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:S,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:S}});r=r.concat(m)}}),r}function Aq(e,t,n){var i=[],r=de(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var YP,dq,zP,yq,JP=Je(()=>{bt();bt();Fr();Of();td();Jp();Bi();Cf();YP=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(Vw,"validateGrammar");o(uq,"validateDuplicateProductions");o(pq,"identifyProductionForDuplicates");o(ww,"getExtraProductionArgument");dq=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t})(ro);o(gq,"validateRuleDoesNotAlreadyExist");o(Mw,"validateRuleIsOverridden");o(kw,"validateNoLeftRecursion");o(eT,"getFirstNoneTerminal");zP=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t})(ro);o(mq,"validateEmptyOrAlternative");o(hq,"validateAmbiguousAlternationAlternatives");yq=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t})(ro);o(Tq,"validateTooManyAlts");o(vq,"validateSomeNonEmptyLookaheadPath");o(bq,"checkAlternativesAmbiguities");o(Sq,"checkPrefixAlternativesAmbiguities");o(Aq,"checkTerminalAndNoneTerminalsNameSpace")});function tT(e){e=Hp(e,{errMsgProvider:qy});var t={};return Te(e.rules,function(n){t[n.name]=n}),vw(t,e.errMsgProvider)}function nT(e){return e=Hp(e,{errMsgProvider:Ws}),Vw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function jw(e){Te(e.rules,function(t){var n=new GP;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var ZP=Je(()=>{bt();bw();JP();zp();Of();o(tT,"resolveGrammar");o(nT,"validateGrammar");o(jw,"assignOccurrenceIndices")});function Ha(e){return wt(Gw,e.name)}var nd,Uw,$w,Bw,Hw,Gw,iT,Rf,rT,oT,aT,Lf=Je(()=>{bt();nd=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Uw="MismatchedTokenException",$w="NoViableAltException",Bw="EarlyExitException",Hw="NotAllInputParsedException",Gw=[Uw,$w,Bw,Hw];Object.freeze(Gw);o(Ha,"isRecognitionException");iT=(function(e){nd(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t})(Error),Rf=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Uw,a}return o(t,"MismatchedTokenException"),t})(iT),rT=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=$w,a}return o(t,"NoViableAltException"),t})(iT),oT=(function(e){nd(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Hw,r}return o(t,"NotAllInputParsedException"),t})(iT),aT=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Bw,a}return o(t,"EarlyExitException"),t})(iT)});function Ww(e){this.name=tx,this.message=e}function Eq(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),f=this.firstAfterRepMap[l];if(f===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new a(d,r);f=m.startWalking(),this.firstAfterRepMap[l]=f}var v=f.token,S=f.occurrence,b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=io,S=1),this.shouldInRepetitionRecoveryBeTried(v,S,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var ex,tx,Kw,nx=Je(()=>{Gs();bt();Lf();KP();Fr();ex={},tx="InRuleRecoveryException";o(Ww,"InRuleRecoveryException");Ww.prototype=Error.prototype;Kw=(function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:sr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Eq)},e.prototype.getTokenToInsert=function(t){var n=Hs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),f=[],p=!1,d=this.LA(1),m=this.LA(1),v=o(function(){var S=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:S,ruleName:a.getCurrRuleFullName()}),I=new Rf(b,d,a.LA(0));I.resyncedTokens=Us(f),a.SAVE_ERROR(I)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,f));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Ww("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ct(n))return!1;var r=this.LA(1),a=ja(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return ex;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return de(n,function(r,a){return a===0?ex:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=de(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return _n(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===ex)return[io];var n=t.ruleName+t.idxInCallingRule+Qy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,io)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Us(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=xn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return de(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e})();o(Eq,"attemptInRepetitionRecovery")});function lT(e,t,n){return n|t|e}var Xw,ea,Pq,sT,cT,id,rd,od,Ff,gpe,fT=Je(()=>{Xw=4,ea=8,Pq=8,sT=1<<ea,cT=2<<ea,id=3<<ea,rd=4<<ea,od=5<<ea,Ff=6<<ea;o(lT,"getKeyForAutomaticLookahead");gpe=32-Pq});var Qw,qw=Je(()=>{td();bt();Fr();fT();Of();Qw=(function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:sr.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:sr.maxLookahead,this.lookAheadFuncsCache=_P()?new Map:[],_P()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=hw(i),a=r.alternation,s=r.repetition,l=r.option,f=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;Te(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Lr(m)+v,function(){var S=Iw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=lT(n.fullRuleNameToShort[i.name],sT,m.idx);n.setLaFuncCache(b,S)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,id,Mt.REPETITION,m.maxLookahead,Lr(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,cT,Mt.OPTION,m.maxLookahead,Lr(m))}),Te(f,function(m){n.computeLookaheadFunc(i,m.idx,rd,Mt.REPETITION_MANDATORY,m.maxLookahead,Lr(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,Ff,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Lr(m))}),Te(d,function(m){n.computeLookaheadFunc(i,m.idx,od,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Lr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var f=Ow(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=lT(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,f)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return Lw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return Rw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return lT(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e})()});function ix(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function rx(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Yw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function zw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Jw=Je(()=>{o(ix,"setNodeLocationOnlyOffset");o(rx,"setNodeLocationFull");o(Yw,"addTerminalToCst");o(zw,"addNoneTerminalToCst")});function eM(e){return ad(e.constructor)}function ad(e){var t=e.name;return t||"anonymous"}function ox(e,t){var n=Object.getOwnPropertyDescriptor(e,Zw);return Ri(n)||n.configurable?(Object.defineProperty(e,Zw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Zw,ax=Je(()=>{bt();o(eM,"classNameFromInstance");Zw="name";o(ad,"functionName");o(ox,"defineNameProp")});function xq(e,t){for(var n=Ui(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,f=0;f<l;f++){var p=s[f];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function tM(e,t){var n=o(function(){},"derivedConstructor");ox(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(di(r)&&(r=r[0]),!Ri(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=Cq(this,t);if(!ct(r)){var a=de(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+ad(this.constructor)+`>:
164
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Rr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function vw(e,t){var n=new aq(e,t);return n.resolveRefs(),n.errors}var oq,aq,bw=Je(()=>{Fr();bt();Cf();oq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(vw,"resolveGrammar");aq=(function(e){oq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;Te(Un(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t})(ro)});function zy(e,t,n){n===void 0&&(n=[]),n=xn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var d=zy(a(p),t,n);return i.concat(d)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof tn)return s(l.definition);if(l instanceof cn)return s(l.definition);if(l instanceof ln)i=s(l.definition);else if(l instanceof Vn){var f=l.definition.concat([new Lt({definition:l.definition})]);return s(f)}else if(l instanceof wn){var f=[new tn({definition:l.definition}),new Lt({definition:[new yt({terminalType:l.separator})].concat(l.definition)})];return s(f)}else if(l instanceof Cn){var f=l.definition.concat([new Lt({definition:[new yt({terminalType:l.separator})].concat(l.definition)})]);i=s(f)}else if(l instanceof Lt){var f=l.definition.concat([new Lt({definition:l.definition})]);i=s(f)}else{if(l instanceof In)return Te(l.definition,function(p){ct(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof yt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:$n(e,r)}),i}function Jy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,f=t.length,p=f-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ct(m);){var v=m.pop();if(v===s){l&&Ry(m).idx<=p&&m.pop();continue}var S=v.def,b=v.idx,I=v.ruleStack,F=v.occurrenceStack;if(!ct(S)){var j=S[0];if(j===r){var W={idx:b,def:$n(S),ruleStack:$s(I),occurrenceStack:$s(F)};m.push(W)}else if(j instanceof yt)if(b<f-1){var U=b+1,se=t[U];if(n(se,j.terminalType)){var W={idx:U,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(W)}}else if(b===f-1)d.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof cn){var ee=xn(I);ee.push(j.nonTerminalName);var le=xn(F);le.push(j.idx);var W={idx:b,def:j.definition.concat(a,$n(S)),ruleStack:ee,occurrenceStack:le};m.push(W)}else if(j instanceof ln){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var D={idx:b,def:j.definition.concat($n(S)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Vn){var Ue=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([Ue],$n(S)),W={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(W)}else if(j instanceof wn){var qe=new yt({terminalType:j.separator}),Ue=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([Ue],$n(S)),W={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(W)}else if(j instanceof Cn){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var qe=new yt({terminalType:j.separator}),rn=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([rn],$n(S)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Lt){var Le={idx:b,def:$n(S),ruleStack:I,occurrenceStack:F};m.push(Le),m.push(s);var rn=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([rn],$n(S)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof In)for(var Bt=j.definition.length-1;Bt>=0;Bt--){var At=j.definition[Bt],Yt={idx:b,def:At.definition.concat($n(S)),ruleStack:I,occurrenceStack:F};m.push(Yt),m.push(s)}else if(j instanceof tn)m.push({idx:b,def:j.definition.concat($n(S)),ruleStack:I,occurrenceStack:F});else if(j instanceof Rr)m.push(cq(j,b,I,F));else throw Error("non exhaustive match")}}return d}function cq(e,t,n,i){var r=xn(n);r.push(e.name);var a=xn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var sl,sq,Sw,Yy,Aw,XP,Ew,QP,Jp=Je(()=>{Ky();bt();WP();Bi();sl=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),sq=(function(e){sl(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=xn(this.path.ruleStack).reverse(),this.occurrenceStack=xn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ct(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t})(ol),Sw=(function(e){sl(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new tn({definition:a});this.possibleTokTypes=al(s),this.found=!0}},t})(sq),Yy=(function(e){sl(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t})(ol),Aw=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t})(Yy),XP=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t})(Yy),Ew=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t})(Yy),QP=(function(e){sl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Oi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof yt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t})(Yy);o(zy,"possiblePathsFrom");o(Jy,"nextPossibleTokensAfter");o(cq,"expandTopLevelRule")});function Cw(e){if(e instanceof ln)return Mt.OPTION;if(e instanceof Lt)return Mt.REPETITION;if(e instanceof Vn)return Mt.REPETITION_MANDATORY;if(e instanceof wn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Cn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof In)return Mt.ALTERNATION;throw Error("non exhaustive match")}function Iw(e,t,n,i,r,a){var s=Zp(e,t,n),l=_w(s)?Ef:rl;return a(s,i,l,r)}function Ow(e,t,n,i,r,a){var s=ed(e,t,r,n),l=_w(s)?Ef:rl;return a(s[0],l,i)}function Rw(e,t,n,i){var r=e.length,a=gi(e,function(f){return gi(f,function(p){return p.length===1})});if(t)return function(f){for(var p=de(f,function(U){return U.GATE}),d=0;d<r;d++){var m=e[d],v=m.length,S=p[d];if(!(S!==void 0&&S.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],F=I.length,j=0;j<F;j++){var W=this.LA(j+1);if(n(W,I[j])===!1)continue e}return d}}};if(a&&!i){var s=de(e,function(f){return _n(f)}),l=gn(s,function(f,p,d){return Te(p,function(m){xe(f,m.tokenTypeIdx)||(f[m.tokenTypeIdx]=d),Te(m.categoryMatches,function(v){xe(f,v)||(f[v]=d)})}),f},[]);return function(){var f=this.LA(1);return l[f.tokenTypeIdx]}}else return function(){for(var f=0;f<r;f++){var p=e[f],d=p.length;e:for(var m=0;m<d;m++){for(var v=p[m],S=v.length,b=0;b<S;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return f}}}}function Lw(e,t,n){var i=gi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=_n(e);if(a.length===1&&ct(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var f=gn(a,function(p,d,m){return p[d.tokenTypeIdx]=!0,Te(d.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return f[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var d=e[p],m=d.length,v=0;v<m;v++){var S=this.LA(v+1);if(t(S,d[v])===!1)continue e}return!0}return!1}}function Pw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function qP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var f="_"+i.categoryMatches[l];r.push(s+f)}}t=r}return t}function fq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function Nw(e,t){for(var n=de(e,function(d){return zy([d],1)}),i=Pw(n.length),r=de(n,function(d){var m={};return Te(d,function(v){var S=qP(v.partialPath);Te(S,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=Pw(l.length);for(var f=o(function(d){for(var m=l[d],v=0;v<m.length;v++){var S=m[v].partialPath,b=m[v].suffixDef,I=qP(S),F=fq(r,I,d);if(F||ct(b)||S.length===t){var j=i[d];if(Zy(j,S)===!1){j.push(S);for(var W=0;W<I.length;W++){var U=I[W];r[d][U]=!0}}}else{var se=zy(b,s+1,S);a[d]=a[d].concat(se),Te(se,function(ee){var le=qP(ee.partialPath);Te(le,function(Le){r[d][Le]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)f(p)}return i}function Zp(e,t,n,i){var r=new Fw(e,Mt.ALTERNATION,i);return t.accept(r),Nw(r.result,n)}function ed(e,t,n,i){var r=new Fw(e,n);t.accept(r);var a=r.result,s=new lq(t,e,n),l=s.startWalking(),f=new tn({definition:a}),p=new tn({definition:l});return Nw([f,p],i)}function Zy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function Dw(e,t){return e.length<t.length&&gi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function _w(e){return gi(e,function(t){return gi(t,function(n){return gi(n,function(i){return ct(i.categoryMatches)})})})}var xw,Mt,lq,Fw,td=Je(()=>{bt();Jp();Ky();Pf();Bi();Cf();xw=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Mt||(Mt={}));o(Cw,"getProdType");o(Iw,"buildLookaheadFuncForOr");o(Ow,"buildLookaheadFuncForOptionalProd");o(Rw,"buildAlternativesLookAheadFunc");o(Lw,"buildSingleAlternativeLookaheadFunction");lq=(function(e){xw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t})(ol),Fw=(function(e){xw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t})(ro);o(Pw,"initializeArrayOfArrays");o(qP,"pathToHashKeys");o(fq,"isUniquePrefixHash");o(Nw,"lookAheadSequenceFromAlternatives");o(Zp,"getLookaheadPathsForOr");o(ed,"getLookaheadPathsForOptionalProd");o(Zy,"containsPath");o(Dw,"isStrictPrefixOfPath");o(_w,"areTokenCategoriesNotUsed")});function Vw(e,t,n,i,r){var a=de(e,function(S){return uq(S,i)}),s=de(e,function(S){return kw(S,S,i)}),l=[],f=[],p=[];gi(s,ct)&&(l=de(e,function(S){return mq(S,i)}),f=de(e,function(S){return hq(S,t,i)}),p=vq(e,t,i));var d=Aq(e,n,i),m=de(e,function(S){return Tq(S,i)}),v=de(e,function(S){return gq(S,e,r,i)});return _n(a.concat(p,s,l,f,d,m,v))}function uq(e,t){var n=new dq;e.accept(n);var i=n.allProductions,r=R1(i,pq),a=Ir(r,function(l){return l.length>1}),s=de(Un(a),function(l){var f=Oi(l),p=t.buildDuplicateFoundError(e,l),d=Lr(f),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:f.idx},v=ww(f);return v&&(m.parameter=v),m});return s}function pq(e){return Lr(e)+"_#_"+e.idx+"_#_"+ww(e)}function ww(e){return e instanceof yt?e.terminalType.name:e instanceof cn?e.nonTerminalName:""}function gq(e,t,n,i){var r=[],a=gn(t,function(l,f){return f.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function Mw(e,t,n){var i=[],r;return wt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function kw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=eT(t.definition);if(ct(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var f=il(a,i.concat([e])),p=de(f,function(d){var m=xn(i);return m.push(d),kw(e,d,n,m)});return r.concat(_n(p))}function eT(e){var t=[];if(ct(e))return t;var n=Oi(e);if(n instanceof cn)t.push(n.referencedRule);else if(n instanceof tn||n instanceof ln||n instanceof Vn||n instanceof wn||n instanceof Cn||n instanceof Lt)t=t.concat(eT(n.definition));else if(n instanceof In)t=_n(de(n.definition,function(s){return eT(s.definition)}));else if(!(n instanceof yt))throw Error("non exhaustive match");var i=If(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(eT(a))}else return t}function mq(e,t){var n=new zP;e.accept(n);var i=n.alternations,r=gn(i,function(a,s){var l=$s(s.definition),f=de(l,function(p,d){var m=Jy([p],[],null,1);return ct(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return a.concat(Ua(f))},[]);return r}function hq(e,t,n){var i=new zP;e.accept(i);var r=i.alternations;r=ka(r,function(s){return s.ignoreAmbiguities===!0});var a=gn(r,function(s,l){var f=l.idx,p=l.maxLookahead||t,d=Zp(f,e,p,l),m=bq(d,l,e,n),v=Sq(d,l,e,n);return s.concat(m,v)},[]);return a}function Tq(e,t){var n=new zP;e.accept(n);var i=n.alternations,r=gn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function vq(e,t,n){var i=[];return Te(e,function(r){var a=new yq;r.accept(a);var s=a.allProductions;Te(s,function(l){var f=Cw(l),p=l.maxLookahead||t,d=l.idx,m=ed(d,r,f,p),v=m[0];if(ct(_n(v))){var S=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:S,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function bq(e,t,n,i){var r=[],a=gn(e,function(l,f,p){return t.definition[p].ignoreAmbiguities===!0||Te(f,function(d){var m=[p];Te(e,function(v,S){p!==S&&Zy(v,d)&&t.definition[S].ignoreAmbiguities!==!0&&m.push(S)}),m.length>1&&!Zy(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=de(a,function(l){var f=de(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:f,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function Sq(e,t,n,i){var r=[],a=gn(e,function(s,l,f){var p=de(l,function(d){return{idx:f,path:d}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var f=s.idx,p=s.path,d=I1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<f&&Dw(v.path,p)}),m=de(d,function(v){var S=[v.idx+1,f+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:S,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:S}});r=r.concat(m)}}),r}function Aq(e,t,n){var i=[],r=de(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var YP,dq,zP,yq,JP=Je(()=>{bt();bt();Fr();Of();td();Jp();Bi();Cf();YP=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(Vw,"validateGrammar");o(uq,"validateDuplicateProductions");o(pq,"identifyProductionForDuplicates");o(ww,"getExtraProductionArgument");dq=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t})(ro);o(gq,"validateRuleDoesNotAlreadyExist");o(Mw,"validateRuleIsOverridden");o(kw,"validateNoLeftRecursion");o(eT,"getFirstNoneTerminal");zP=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t})(ro);o(mq,"validateEmptyOrAlternative");o(hq,"validateAmbiguousAlternationAlternatives");yq=(function(e){YP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t})(ro);o(Tq,"validateTooManyAlts");o(vq,"validateSomeNonEmptyLookaheadPath");o(bq,"checkAlternativesAmbiguities");o(Sq,"checkPrefixAlternativesAmbiguities");o(Aq,"checkTerminalAndNoneTerminalsNameSpace")});function tT(e){e=Hp(e,{errMsgProvider:qy});var t={};return Te(e.rules,function(n){t[n.name]=n}),vw(t,e.errMsgProvider)}function nT(e){return e=Hp(e,{errMsgProvider:Ks}),Vw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function jw(e){Te(e.rules,function(t){var n=new GP;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var ZP=Je(()=>{bt();bw();JP();zp();Of();o(tT,"resolveGrammar");o(nT,"validateGrammar");o(jw,"assignOccurrenceIndices")});function Ha(e){return wt(Gw,e.name)}var nd,Uw,$w,Bw,Hw,Gw,iT,Rf,rT,oT,aT,Lf=Je(()=>{bt();nd=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Uw="MismatchedTokenException",$w="NoViableAltException",Bw="EarlyExitException",Hw="NotAllInputParsedException",Gw=[Uw,$w,Bw,Hw];Object.freeze(Gw);o(Ha,"isRecognitionException");iT=(function(e){nd(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t})(Error),Rf=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Uw,a}return o(t,"MismatchedTokenException"),t})(iT),rT=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=$w,a}return o(t,"NoViableAltException"),t})(iT),oT=(function(e){nd(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Hw,r}return o(t,"NotAllInputParsedException"),t})(iT),aT=(function(e){nd(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Bw,a}return o(t,"EarlyExitException"),t})(iT)});function Ww(e){this.name=tx,this.message=e}function Eq(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),f=this.firstAfterRepMap[l];if(f===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new a(d,r);f=m.startWalking(),this.firstAfterRepMap[l]=f}var v=f.token,S=f.occurrence,b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=io,S=1),this.shouldInRepetitionRecoveryBeTried(v,S,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var ex,tx,Kw,nx=Je(()=>{Ws();bt();Lf();KP();Fr();ex={},tx="InRuleRecoveryException";o(Ww,"InRuleRecoveryException");Ww.prototype=Error.prototype;Kw=(function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:sr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Eq)},e.prototype.getTokenToInsert=function(t){var n=Gs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),f=[],p=!1,d=this.LA(1),m=this.LA(1),v=o(function(){var S=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:S,ruleName:a.getCurrRuleFullName()}),I=new Rf(b,d,a.LA(0));I.resyncedTokens=$s(f),a.SAVE_ERROR(I)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,f));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Ww("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ct(n))return!1;var r=this.LA(1),a=ja(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return ex;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return de(n,function(r,a){return a===0?ex:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=de(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return _n(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===ex)return[io];var n=t.ruleName+t.idxInCallingRule+Qy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,io)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return $s(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=xn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return de(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e})();o(Eq,"attemptInRepetitionRecovery")});function lT(e,t,n){return n|t|e}var Xw,ea,Pq,sT,cT,id,rd,od,Ff,gpe,fT=Je(()=>{Xw=4,ea=8,Pq=8,sT=1<<ea,cT=2<<ea,id=3<<ea,rd=4<<ea,od=5<<ea,Ff=6<<ea;o(lT,"getKeyForAutomaticLookahead");gpe=32-Pq});var Qw,qw=Je(()=>{td();bt();Fr();fT();Of();Qw=(function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:sr.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:sr.maxLookahead,this.lookAheadFuncsCache=_P()?new Map:[],_P()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=hw(i),a=r.alternation,s=r.repetition,l=r.option,f=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;Te(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Lr(m)+v,function(){var S=Iw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=lT(n.fullRuleNameToShort[i.name],sT,m.idx);n.setLaFuncCache(b,S)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,id,Mt.REPETITION,m.maxLookahead,Lr(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,cT,Mt.OPTION,m.maxLookahead,Lr(m))}),Te(f,function(m){n.computeLookaheadFunc(i,m.idx,rd,Mt.REPETITION_MANDATORY,m.maxLookahead,Lr(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,Ff,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Lr(m))}),Te(d,function(m){n.computeLookaheadFunc(i,m.idx,od,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Lr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var f=Ow(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=lT(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,f)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return Lw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return Rw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return lT(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e})()});function ix(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function rx(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Yw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function zw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Jw=Je(()=>{o(ix,"setNodeLocationOnlyOffset");o(rx,"setNodeLocationFull");o(Yw,"addTerminalToCst");o(zw,"addNoneTerminalToCst")});function eM(e){return ad(e.constructor)}function ad(e){var t=e.name;return t||"anonymous"}function ox(e,t){var n=Object.getOwnPropertyDescriptor(e,Zw);return Ri(n)||n.configurable?(Object.defineProperty(e,Zw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Zw,ax=Je(()=>{bt();o(eM,"classNameFromInstance");Zw="name";o(ad,"functionName");o(ox,"defineNameProp")});function xq(e,t){for(var n=Ui(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,f=0;f<l;f++){var p=s[f];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function tM(e,t){var n=o(function(){},"derivedConstructor");ox(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(di(r)&&(r=r[0]),!Ri(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=Cq(this,t);if(!ct(r)){var a=de(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+ad(this.constructor)+`>:
165
165
  `+(""+a.join(`
166
166
 
167
167
  `).replace(/\n/g,`
168
168
  `)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function nM(e,t,n){var i=o(function(){},"derivedConstructor");ox(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Te(t,function(a){r[a]=xq}),i.prototype=r,i.prototype.constructor=i,i}function Cq(e,t){var n=Iq(e,t),i=Rq(e,t);return n.concat(i)}function Iq(e,t){var n=de(t,function(i){if(!Po(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+ad(e.constructor)+" CST Visitor.",type:uT.MISSING_METHOD,methodName:i}});return Ua(n)}function Rq(e,t){var n=[];for(var i in e)Po(e[i])&&!wt(Oq,i)&&!wt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+ad(e.constructor)+` CST Visitor
169
169
  There is no Grammar Rule corresponding to this method's name.
170
- `,type:uT.REDUNDANT_METHOD,methodName:i});return n}var uT,Oq,iM=Je(()=>{bt();ax();o(xq,"defaultVisit");o(tM,"createBaseSemanticVisitorConstructor");o(nM,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(uT||(uT={}));o(Cq,"validateVisitor");o(Iq,"validateMissingCstMethods");Oq=["constructor","visit","validateVisitor"];o(Rq,"validateRedundantMethods")});var rM,oM=Je(()=>{Jw();bt();iM();Fr();rM=(function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:sr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Bn,this.cstFinallyStateUpdate=Bn,this.cstPostTerminal=Bn,this.cstPostNonTerminal=Bn,this.cstPostRule=Bn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=rx,this.setNodeLocationFromNode=rx,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=ix,this.setNodeLocationFromNode=ix,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=Bn,this.setInitialNodeLocation=Bn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Yw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];zw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ri(this.baseCstVisitorConstructor)){var t=tM(this.className,Ui(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ri(this.baseCstVisitorWithDefaultsConstructor)){var t=nM(this.className,Ui(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e})()});var aM,sM=Je(()=>{Fr();aM=(function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Nf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Nf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e})()});var cM,lM=Je(()=>{bt();Lf();Fr();zp();JP();Bi();cM=(function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Df),wt(this.definedRulesNames,t)){var r=Ws.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Qn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Df);var r=[];r=r.concat(Mw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ha(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Wy(Un(this.gastProductionsCache))},e})()});var fM,uM=Je(()=>{bt();fT();Lf();td();Jp();Fr();nx();Gs();Pf();ax();fM=(function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=eM(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ef,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
170
+ `,type:uT.REDUNDANT_METHOD,methodName:i});return n}var uT,Oq,iM=Je(()=>{bt();ax();o(xq,"defaultVisit");o(tM,"createBaseSemanticVisitorConstructor");o(nM,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(uT||(uT={}));o(Cq,"validateVisitor");o(Iq,"validateMissingCstMethods");Oq=["constructor","visit","validateVisitor"];o(Rq,"validateRedundantMethods")});var rM,oM=Je(()=>{Jw();bt();iM();Fr();rM=(function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:sr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Bn,this.cstFinallyStateUpdate=Bn,this.cstPostTerminal=Bn,this.cstPostNonTerminal=Bn,this.cstPostRule=Bn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=rx,this.setNodeLocationFromNode=rx,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=ix,this.setNodeLocationFromNode=ix,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=Bn,this.setInitialNodeLocation=Bn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Yw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];zw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ri(this.baseCstVisitorConstructor)){var t=tM(this.className,Ui(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ri(this.baseCstVisitorWithDefaultsConstructor)){var t=nM(this.className,Ui(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e})()});var aM,sM=Je(()=>{Fr();aM=(function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Nf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Nf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e})()});var cM,lM=Je(()=>{bt();Lf();Fr();zp();JP();Bi();cM=(function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Df),wt(this.definedRulesNames,t)){var r=Ks.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Qn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Df);var r=[];r=r.concat(Mw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ha(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Wy(Un(this.gastProductionsCache))},e})()});var fM,uM=Je(()=>{bt();fT();Lf();td();Jp();Fr();nx();Ws();Pf();ax();fM=(function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=eM(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ef,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
171
171
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
172
172
  For Further details.`);if(di(t)){if(ct(t))throw Error(`A Token Vocabulary cannot be empty.
173
173
  Note that the first argument for the parser constructor
174
174
  is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
175
175
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
176
- For Further details.`)}if(di(t))this.tokensMap=gn(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&gi(_n(Un(t.modes)),nw)){var i=_n(Un(t.modes)),r=Bp(i);this.tokensMap=gn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ly(t))this.tokensMap=$s(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=io;var a=gi(Un(t),function(s){return ct(s.categoryMatches)});this.tokenMatcher=a?Ef:rl,$a(Un(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
176
+ For Further details.`)}if(di(t))this.tokensMap=gn(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&gi(_n(Un(t.modes)),nw)){var i=_n(Un(t.modes)),r=Bp(i);this.tokensMap=gn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ly(t))this.tokensMap=Bs(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=io;var a=gi(Un(t),function(s){return ct(s.categoryMatches)});this.tokenMatcher=a?Ef:rl,$a(Un(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
177
  Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:Df.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:Df.recoveryValueFunc,s=this.ruleShortNameIdx<<Xw+ea;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(d){try{if(this.outputCst===!0){n.apply(this,d);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,d)}catch(v){return this.invokeRuleCatch(v,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var f;f=o(function(d,m){return d===void 0&&(d=0),this.ruleInvocationStateUpdate(s,t,d),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return f[p]=t,f.originalGrammarAction=n,f},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ha(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var f=this.CST_STACK[this.CST_STACK.length-1];return f.recoveredNode=!0,f}else return i();else{if(this.outputCst){var f=this.CST_STACK[this.CST_STACK.length-1];f.recoveredNode=!0,s.partialCstResult=f}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(cT,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(rd,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,rd,t,Ew)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Ff,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var f=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,f,a,QP],f,Ff,t,QP)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(id,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,id,t,Aw,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(od,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var f=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,f,a,XP],f,od,t,XP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Ff,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(sT,n),r=di(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new oT(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ha(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Rf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===tx?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=xn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),io)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e})()});var pM,dM=Je(()=>{Lf();bt();td();Fr();pM=(function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:sr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ha(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:xn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return xn(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=ed(t,a,n,this.maxLookahead),l=s[0],f=[],p=1;p<=this.maxLookahead;p++)f.push(this.LA(p));var d=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:f,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new aT(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=Zp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var f=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:f,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new rT(p,this.LA(1),f))},e})()});var gM,mM=Je(()=>{Jp();bt();gM=(function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ri(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Jy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Oi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new Sw(r,t).startWalking();return a},e})()});function sd(e,t,n,i){i===void 0&&(i=!1),pT(n);var r=Wp(this.recordingProdStack),a=Po(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),xe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),dT}function Fq(e,t){var n=this;pT(t);var i=Wp(this.recordingProdStack),r=di(e)===!1,a=r===!1?e:e.DEF,s=new In({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Fy(a,function(f){return Po(f.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(f){var p=new tn({definition:[]});s.definition.push(p),xe(f,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=f.IGNORE_AMBIGUITIES:xe(f,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),f.ALT.call(n),n.recordingProdStack.pop()}),dT}function TM(e){return e===0?"":""+e}function pT(e){if(e<0||e>yM){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
- `+("Idx value must be a none negative value smaller than "+(yM+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var dT,hM,yM,vM,bM,Lq,SM,AM=Je(()=>{bt();Bi();Xp();Pf();Gs();Fr();fT();dT={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(dT);hM=!0,yM=Math.pow(2,ea)-1,vM=qp({name:"RECORDING_PHASE_TOKEN",pattern:$i.NA});$a([vM]);bM=Hs(vM,`This IToken indicates the Parser is in Recording Phase
178
+ `+("Idx value must be a none negative value smaller than "+(yM+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var dT,hM,yM,vM,bM,Lq,SM,AM=Je(()=>{bt();Bi();Xp();Pf();Ws();Fr();fT();dT={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(dT);hM=!0,yM=Math.pow(2,ea)-1,vM=qp({name:"RECORDING_PHASE_TOKEN",pattern:$i.NA});$a([vM]);bM=Gs(vM,`This IToken indicates the Parser is in Recording Phase
179
179
  See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(bM);Lq={name:`This CSTNode indicates the Parser is in Recording Phase
180
180
  See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},SM=(function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Nf},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Rr({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
181
181
  This error was thrown during the "grammar recording phase" For more info see:
182
182
  https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return sd.call(this,ln,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){sd.call(this,Vn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){sd.call(this,wn,n,t,hM)},e.prototype.manyInternalRecord=function(t,n){sd.call(this,Lt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){sd.call(this,Cn,n,t,hM)},e.prototype.orInternalRecord=function(t,n){return Fq.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(pT(n),!t||xe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+TM(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
183
  inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Wp(this.recordingProdStack),s=t.ruleName,l=new cn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?Lq:dT},e.prototype.consumeInternalRecord=function(t,n,i){if(pT(n),!$P(t)){var r=new Error("<CONSUME"+TM(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Wp(this.recordingProdStack),s=new yt({idx:n,terminalType:t});return a.definition.push(s),bM},e})();o(sd,"recordProd");o(Fq,"recordOrProd");o(TM,"getIdxSuffix");o(pT,"assertMethodIdxIsValid")});var EM,PM=Je(()=>{bt();Fr();EM=(function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(xe(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=sr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=_y(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e})()});function CM(e){return e===void 0&&(e=void 0),function(){return e}}var xM,Nf,sr,Df,Qn,sx,IM,OM,Fr=Je(()=>{bt();Tw();Gs();zp();ZP();nx();qw();oM();sM();lM();uM();dM();mM();AM();PM();xM=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Nf=Hs(io,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Nf);sr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Yp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Df=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Qn||(Qn={}));o(CM,"EMPTY_ALT");sx=(function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),xe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
184
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Wp(this.recordingProdStack),s=new yt({idx:n,terminalType:t});return a.definition.push(s),bM},e})();o(sd,"recordProd");o(Fq,"recordOrProd");o(TM,"getIdxSuffix");o(pT,"assertMethodIdxIsValid")});var EM,PM=Je(()=>{bt();Fr();EM=(function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(xe(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=sr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=_y(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e})()});function CM(e){return e===void 0&&(e=void 0),function(){return e}}var xM,Nf,sr,Df,Qn,sx,IM,OM,Fr=Je(()=>{bt();Tw();Ws();zp();ZP();nx();qw();oM();sM();lM();uM();dM();mM();AM();PM();xM=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Nf=Gs(io,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Nf);sr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Yp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Df=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Qn||(Qn={}));o(CM,"EMPTY_ALT");sx=(function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),xe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
185
185
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
186
186
  See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
187
- For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:sr.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Dy(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),Te(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,f=void 0;t.TRACE_INIT(a+" Rule",function(){f=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=f})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=tT({rules:Un(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ct(r)&&t.skipValidations===!1){var a=nT({rules:Un(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Un(t.tokensMap),errMsgProvider:Ws,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ct(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=yw(Un(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Un(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ct(t.definitionErrors))throw n=de(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
187
+ For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:sr.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Dy(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),Te(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,f=void 0;t.TRACE_INIT(a+" Rule",function(){f=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=f})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=tT({rules:Un(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ct(r)&&t.skipValidations===!1){var a=nT({rules:Un(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Un(t.tokensMap),errMsgProvider:Ks,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ct(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=yw(Un(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Un(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ct(t.definitionErrors))throw n=de(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
188
188
  `+n.join(`
189
189
  -------------------------------
190
- `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e})();F1(sx,[Kw,Qw,rM,aM,fM,cM,pM,gM,SM,EM]);IM=(function(e){xM(t,e);function t(n,i){i===void 0&&(i=sr);var r=this,a=$s(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t})(sx),OM=(function(e){xM(t,e);function t(n,i){i===void 0&&(i=sr);var r=this,a=$s(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t})(sx)});function RM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+$p+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+$p+"/diagrams/diagrams.css":a,l=`
190
+ `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e})();F1(sx,[Kw,Qw,rM,aM,fM,cM,pM,gM,SM,EM]);IM=(function(e){xM(t,e);function t(n,i){i===void 0&&(i=sr);var r=this,a=Bs(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t})(sx),OM=(function(e){xM(t,e);function t(n,i){i===void 0&&(i=sr);var r=this,a=Bs(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t})(sx)});function RM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+$p+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+$p+"/diagrams/diagrams.css":a,l=`
191
191
  <!-- This is a generated file -->
192
192
  <!DOCTYPE html>
193
193
  <meta charset="utf-8">
@@ -262,13 +262,13 @@ function `+e.name+`(tokenVocabulary, config) {
262
262
  `+e.name+".prototype.constructor = "+e.name+`
263
263
  `;return t}function Nq(e){var t=de(e,function(n){return Dq(n,1)});return t.join(`
264
264
  `)}function Dq(e,t){var n=Hi(t,'$.RULE("'+e.name+'", function() {')+ni;return n+=gT(e.definition,t+1),n+=Hi(t+1,"})")+ni,n}function _q(e,t){var n=e.terminalType.name;return Hi(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ni)}function Vq(e,t){return Hi(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ni)}function wq(e,t){var n=Hi(t,"$.OR"+e.idx+"([")+ni,i=de(e.definition,function(r){return Mq(r,t+1)});return n+=i.join(","+ni),n+=ni+Hi(t,"])"+ni),n}function Mq(e,t){var n=Hi(t,"{")+ni;return n+=Hi(t+1,"ALT: function() {")+ni,n+=gT(e.definition,t+1),n+=Hi(t+1,"}")+ni,n+=Hi(t,"}"),n}function kq(e,t){if(e instanceof cn)return Vq(e,t);if(e instanceof ln)return cd("OPTION",e,t);if(e instanceof Vn)return cd("AT_LEAST_ONE",e,t);if(e instanceof wn)return cd("AT_LEAST_ONE_SEP",e,t);if(e instanceof Cn)return cd("MANY_SEP",e,t);if(e instanceof Lt)return cd("MANY",e,t);if(e instanceof In)return wq(e,t);if(e instanceof yt)return _q(e,t);if(e instanceof tn)return gT(e.definition,t);throw Error("non exhaustive match")}function cd(e,t,n){var i=Hi(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ni,i+=Hi(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ni,i+="DEF: "+FM(t.definition,n+2)+ni,i+=Hi(n,"}")+ni):i+=FM(t.definition,n+1),i+=Hi(n,")")+ni,i}function FM(e,t){var n="function() {"+ni;return n+=gT(e,t),n+=Hi(t,"}")+ni,n}function gT(e,t){var n="";return Te(e,function(i){n+=kq(i,t+1)}),n}function Hi(e,t){var n=Array(e*4+1).join(" ");return n+t}var ni,VM=Je(()=>{bt();Bi();ni=`
265
- `;o(NM,"genUmdModule");o(DM,"genWrapperFunction");o(_M,"genClass");o(Nq,"genAllRules");o(Dq,"genRule");o(_q,"genTerminal");o(Vq,"genNonTerminal");o(wq,"genAlternation");o(Mq,"genSingleAlt");o(kq,"genProd");o(cd,"genDSLRule");o(FM,"genDefFunction");o(gT,"genDefinition");o(Hi,"indent")});function wM(e){var t=DM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(hT(),zg(mT)))}}function MM(e){return NM({name:e.name,rules:e.rules})}var kM=Je(()=>{VM();o(wM,"generateParserFactory");o(MM,"generateParserModule")});var mT={};vc(mT,{Alternation:()=>In,Alternative:()=>tn,CstParser:()=>IM,EMPTY_ALT:()=>CM,EOF:()=>io,EarlyExitException:()=>aT,EmbeddedActionsParser:()=>OM,GAstVisitor:()=>ro,Lexer:()=>$i,LexerDefinitionErrorType:()=>mn,MismatchedTokenException:()=>Rf,NoViableAltException:()=>rT,NonTerminal:()=>cn,NotAllInputParsedException:()=>oT,Option:()=>ln,Parser:()=>Uq,ParserDefinitionErrorType:()=>Qn,Repetition:()=>Lt,RepetitionMandatory:()=>Vn,RepetitionMandatoryWithSeparator:()=>wn,RepetitionWithSeparator:()=>Cn,Rule:()=>Rr,Terminal:()=>yt,VERSION:()=>$p,assignOccurrenceIndices:()=>jw,clearCache:()=>jq,createSyntaxDiagramsCode:()=>RM,createToken:()=>qp,createTokenInstance:()=>Hs,defaultGrammarResolverErrorProvider:()=>qy,defaultGrammarValidatorErrorProvider:()=>Ws,defaultLexerErrorProvider:()=>Gy,defaultParserErrorProvider:()=>Yp,generateParserFactory:()=>wM,generateParserModule:()=>MM,isRecognitionException:()=>Ha,resolveGrammar:()=>tT,serializeGrammar:()=>Wy,serializeProduction:()=>xf,tokenLabel:()=>Zo,tokenMatcher:()=>pw,tokenName:()=>uw,validateGrammar:()=>nT});function jq(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
265
+ `;o(NM,"genUmdModule");o(DM,"genWrapperFunction");o(_M,"genClass");o(Nq,"genAllRules");o(Dq,"genRule");o(_q,"genTerminal");o(Vq,"genNonTerminal");o(wq,"genAlternation");o(Mq,"genSingleAlt");o(kq,"genProd");o(cd,"genDSLRule");o(FM,"genDefFunction");o(gT,"genDefinition");o(Hi,"indent")});function wM(e){var t=DM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(hT(),zg(mT)))}}function MM(e){return NM({name:e.name,rules:e.rules})}var kM=Je(()=>{VM();o(wM,"generateParserFactory");o(MM,"generateParserModule")});var mT={};vc(mT,{Alternation:()=>In,Alternative:()=>tn,CstParser:()=>IM,EMPTY_ALT:()=>CM,EOF:()=>io,EarlyExitException:()=>aT,EmbeddedActionsParser:()=>OM,GAstVisitor:()=>ro,Lexer:()=>$i,LexerDefinitionErrorType:()=>mn,MismatchedTokenException:()=>Rf,NoViableAltException:()=>rT,NonTerminal:()=>cn,NotAllInputParsedException:()=>oT,Option:()=>ln,Parser:()=>Uq,ParserDefinitionErrorType:()=>Qn,Repetition:()=>Lt,RepetitionMandatory:()=>Vn,RepetitionMandatoryWithSeparator:()=>wn,RepetitionWithSeparator:()=>Cn,Rule:()=>Rr,Terminal:()=>yt,VERSION:()=>$p,assignOccurrenceIndices:()=>jw,clearCache:()=>jq,createSyntaxDiagramsCode:()=>RM,createToken:()=>qp,createTokenInstance:()=>Gs,defaultGrammarResolverErrorProvider:()=>qy,defaultGrammarValidatorErrorProvider:()=>Ks,defaultLexerErrorProvider:()=>Gy,defaultParserErrorProvider:()=>Yp,generateParserFactory:()=>wM,generateParserModule:()=>MM,isRecognitionException:()=>Ha,resolveGrammar:()=>tT,serializeGrammar:()=>Wy,serializeProduction:()=>xf,tokenLabel:()=>Zo,tokenMatcher:()=>pw,tokenName:()=>uw,validateGrammar:()=>nT});function jq(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
266
266
  It performs no action other than printing this message.
267
- Please avoid using it as it will be completely removed in the future`)}var Uq,hT=Je(()=>{FP();Fr();Xp();Gs();zp();Lf();BP();Bi();Bi();Cf();ZP();LM();kM();o(jq,"clearCache");Uq=(function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
267
+ Please avoid using it as it will be completely removed in the future`)}var Uq,hT=Je(()=>{FP();Fr();Xp();Ws();zp();Lf();BP();Bi();Bi();Cf();ZP();LM();kM();o(jq,"clearCache");Uq=(function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
268
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e})()});var fx=Ze((Tge,GM)=>{var{createToken:$q,Lexer:cx}=(hT(),zg(mT)),UM={},_f=UM;function lx(e,t){UM[e]=typeof t=="string"?t:t.source}o(lx,"FRAGMENT");function ld(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(ld,"makePattern");var Bq=[],$M={};function On(e){let t=$q(e);return Bq.push(t),$M[e.name]=t,t}o(On,"createToken");lx("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");lx("NameChar",ld`${_f.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);lx("Name",ld`${_f.NameStartChar}(${_f.NameChar})*`);var jM=On({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),Hq=On({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),Gq=On({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),Wq=On({name:"DTD",pattern:/<!.*?>/,group:cx.SKIPPED}),Kq=On({name:"EntityRef",pattern:ld`&${_f.Name};`}),Xq=On({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),Qq=On({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),qq=On({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),BM=On({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),Yq=On({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[BM]}),zq=On({name:"PROCESSING_INSTRUCTION",pattern:ld`<\\?${_f.Name}.*\\?>`}),HM=On({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),Jq=On({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[HM]}),Zq=On({name:"TEXT",pattern:/[^<&]+/}),eY=On({name:"CLOSE",pattern:/>/,pop_mode:!0}),tY=On({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),nY=On({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),iY=On({name:"SLASH",pattern:/\//}),rY=On({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),oY=On({name:"EQUALS",pattern:/=/}),aY=On({name:"Name",pattern:ld`${_f.Name}`}),sY=On({name:"S",pattern:/[ \t\r\n]/,group:cx.SKIPPED}),cY={defaultMode:"OUTSIDE",modes:{OUTSIDE:[jM,Hq,Gq,Wq,Kq,Xq,Qq,qq,BM,zq,HM,Zq],INSIDE:[jM,Yq,Jq,eY,tY,nY,iY,oY,rY,aY,sY]}},lY=new cx(cY,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
- `],lineTerminatorsPattern:/\n|\r\n/g});GM.exports={xmlLexer:lY,tokensDictionary:$M}});var KM=Ze((bge,WM)=>{var{CstParser:fY,tokenMatcher:uY}=(hT(),zg(mT)),{tokensDictionary:Ct}=fx(),px=class px extends fY{constructor(){super(Ct,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>uY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(px,"Parser");var ux=px,pY=new ux;WM.exports={xmlParser:pY}});var dx=Ze((Age,XM)=>{var{xmlLexer:dY}=fx(),{xmlParser:yT}=KM();XM.exports={parse:o(function(t){let n=dY.tokenize(t);return yT.input=n.tokens,{cst:yT.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:yT.errors}},"parse"),BaseXmlCstVisitor:yT.getBaseCstVisitorConstructor()}});var ud=Ze((Vf,fd)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,d=2,m=4,v=1,S=2,b=1,I=2,F=4,j=8,W=16,U=32,se=64,ee=128,le=256,Le=512,D=30,Ue="...",$e=800,qe=16,rn=1,Bt=2,At=3,Yt=1/0,Fe=9007199254740991,vn=17976931348623157e292,bn=NaN,on=4294967295,Rn=on-1,an=on>>>1,Oe=[["ary",ee],["bind",b],["bindKey",I],["curry",j],["curryRight",W],["flip",Le],["partial",U],["partialRight",se],["rearg",le]],fn="[object Arguments]",Fi="[object Array]",tt="[object AsyncFunction]",O="[object Boolean]",E="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Nt="[object GeneratorFunction]",ze="[object Map]",kt="[object Number]",Sn="[object Null]",un="[object Object]",Ht="[object Promise]",ii="[object Proxy]",pr="[object RegExp]",hn="[object Set]",bi="[object String]",Gt="[object Symbol]",oa="[object Undefined]",Xi="[object WeakMap]",lu="[object WeakSet]",cc="[object ArrayBuffer]",Vr="[object DataView]",fu="[object Float32Array]",uu="[object Float64Array]",pu="[object Int8Array]",lc="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Ne="[object Uint32Array]",yn=/\b__p \+= '';/g,Ln=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Pe=RegExp(he.source),Ie=RegExp(be.source),st=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,pn=/<%=([\s\S]+?)%>/g,dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sg=/^\w*$/,cv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,du=/[\\^$.*+?()[\]{}|]/g,zj=RegExp(du.source),lv=/^\s+/,Jj=/\s/,Zj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eU=/\{\n\/\* \[wrapped with (.+)\] \*/,tU=/,? & /,nU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,iU=/[()=,{}\[\]\/\s]/,rU=/\\(\\)?/g,oU=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oO=/\w*$/,aU=/^[-+]0x[0-9a-f]+$/i,sU=/^0b[01]+$/i,cU=/^\[object .+?Constructor\]$/,lU=/^0o[0-7]+$/i,fU=/^(?:0|[1-9]\d*)$/,uU=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cg=/($^)/,pU=/['\n\r\u2028\u2029\\]/g,lg="\\ud800-\\udfff",dU="\\u0300-\\u036f",gU="\\ufe20-\\ufe2f",mU="\\u20d0-\\u20ff",aO=dU+gU+mU,sO="\\u2700-\\u27bf",cO="a-z\\xdf-\\xf6\\xf8-\\xff",hU="\\xac\\xb1\\xd7\\xf7",yU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TU="\\u2000-\\u206f",vU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lO="A-Z\\xc0-\\xd6\\xd8-\\xde",fO="\\ufe0e\\ufe0f",uO=hU+yU+TU+vU,fv="['\u2019]",bU="["+lg+"]",pO="["+uO+"]",fg="["+aO+"]",dO="\\d+",SU="["+sO+"]",gO="["+cO+"]",mO="[^"+lg+uO+dO+sO+cO+lO+"]",uv="\\ud83c[\\udffb-\\udfff]",AU="(?:"+fg+"|"+uv+")",hO="[^"+lg+"]",pv="(?:\\ud83c[\\udde6-\\uddff]){2}",dv="[\\ud800-\\udbff][\\udc00-\\udfff]",yl="["+lO+"]",yO="\\u200d",TO="(?:"+gO+"|"+mO+")",EU="(?:"+yl+"|"+mO+")",vO="(?:"+fv+"(?:d|ll|m|re|s|t|ve))?",bO="(?:"+fv+"(?:D|LL|M|RE|S|T|VE))?",SO=AU+"?",AO="["+fO+"]?",PU="(?:"+yO+"(?:"+[hO,pv,dv].join("|")+")"+AO+SO+")*",xU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",CU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EO=AO+SO+PU,IU="(?:"+[SU,pv,dv].join("|")+")"+EO,OU="(?:"+[hO+fg+"?",fg,pv,dv,bU].join("|")+")",RU=RegExp(fv,"g"),LU=RegExp(fg,"g"),gv=RegExp(uv+"(?="+uv+")|"+OU+EO,"g"),FU=RegExp([yl+"?"+gO+"+"+vO+"(?="+[pO,yl,"$"].join("|")+")",EU+"+"+bO+"(?="+[pO,yl+TO,"$"].join("|")+")",yl+"?"+TO+"+"+vO,yl+"+"+bO,CU,xU,dO,IU].join("|"),"g"),NU=RegExp("["+yO+lg+aO+fO+"]"),DU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_U=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],VU=-1,sn={};sn[fu]=sn[uu]=sn[pu]=sn[lc]=sn[k]=sn[B]=sn[q]=sn[ce]=sn[Ne]=!0,sn[fn]=sn[Fi]=sn[cc]=sn[O]=sn[Vr]=sn[E]=sn[V]=sn[_e]=sn[ze]=sn[kt]=sn[un]=sn[pr]=sn[hn]=sn[bi]=sn[Xi]=!1;var zt={};zt[fn]=zt[Fi]=zt[cc]=zt[Vr]=zt[O]=zt[E]=zt[fu]=zt[uu]=zt[pu]=zt[lc]=zt[k]=zt[ze]=zt[kt]=zt[un]=zt[pr]=zt[hn]=zt[bi]=zt[Gt]=zt[B]=zt[q]=zt[ce]=zt[Ne]=!0,zt[V]=zt[_e]=zt[Xi]=!1;var wU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},MU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kU={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UU=parseFloat,$U=parseInt,PO=typeof global=="object"&&global&&global.Object===Object&&global,BU=typeof self=="object"&&self&&self.Object===Object&&self,qn=PO||BU||Function("return this")(),mv=typeof Vf=="object"&&Vf&&!Vf.nodeType&&Vf,fc=mv&&typeof fd=="object"&&fd&&!fd.nodeType&&fd,xO=fc&&fc.exports===mv,hv=xO&&PO.process,wr=(function(){try{var w=fc&&fc.require&&fc.require("util").types;return w||hv&&hv.binding&&hv.binding("util")}catch{}})(),CO=wr&&wr.isArrayBuffer,IO=wr&&wr.isDate,OO=wr&&wr.isMap,RO=wr&&wr.isRegExp,LO=wr&&wr.isSet,FO=wr&&wr.isTypedArray;function gr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(gr,"apply");function HU(w,X,K,Ae){for(var Xe=-1,Et=w==null?0:w.length;++Xe<Et;){var Gn=w[Xe];X(Ae,Gn,K(Gn),w)}return Ae}o(HU,"arrayAggregator");function Mr(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae&&X(w[K],K,w)!==!1;);return w}o(Mr,"arrayEach");function GU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(GU,"arrayEachRight");function NO(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(!X(w[K],K,w))return!1;return!0}o(NO,"arrayEvery");function za(w,X){for(var K=-1,Ae=w==null?0:w.length,Xe=0,Et=[];++K<Ae;){var Gn=w[K];X(Gn,K,w)&&(Et[Xe++]=Gn)}return Et}o(za,"arrayFilter");function ug(w,X){var K=w==null?0:w.length;return!!K&&Tl(w,X,0)>-1}o(ug,"arrayIncludes");function yv(w,X,K){for(var Ae=-1,Xe=w==null?0:w.length;++Ae<Xe;)if(K(X,w[Ae]))return!0;return!1}o(yv,"arrayIncludesWith");function dn(w,X){for(var K=-1,Ae=w==null?0:w.length,Xe=Array(Ae);++K<Ae;)Xe[K]=X(w[K],K,w);return Xe}o(dn,"arrayMap");function Ja(w,X){for(var K=-1,Ae=X.length,Xe=w.length;++K<Ae;)w[Xe+K]=X[K];return w}o(Ja,"arrayPush");function Tv(w,X,K,Ae){var Xe=-1,Et=w==null?0:w.length;for(Ae&&Et&&(K=w[++Xe]);++Xe<Et;)K=X(K,w[Xe],Xe,w);return K}o(Tv,"arrayReduce");function WU(w,X,K,Ae){var Xe=w==null?0:w.length;for(Ae&&Xe&&(K=w[--Xe]);Xe--;)K=X(K,w[Xe],Xe,w);return K}o(WU,"arrayReduceRight");function vv(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(X(w[K],K,w))return!0;return!1}o(vv,"arraySome");var KU=bv("length");function XU(w){return w.split("")}o(XU,"asciiToArray");function QU(w){return w.match(nU)||[]}o(QU,"asciiWords");function DO(w,X,K){var Ae;return K(w,function(Xe,Et,Gn){if(X(Xe,Et,Gn))return Ae=Et,!1}),Ae}o(DO,"baseFindKey");function pg(w,X,K,Ae){for(var Xe=w.length,Et=K+(Ae?1:-1);Ae?Et--:++Et<Xe;)if(X(w[Et],Et,w))return Et;return-1}o(pg,"baseFindIndex");function Tl(w,X,K){return X===X?a2(w,X,K):pg(w,_O,K)}o(Tl,"baseIndexOf");function qU(w,X,K,Ae){for(var Xe=K-1,Et=w.length;++Xe<Et;)if(Ae(w[Xe],X))return Xe;return-1}o(qU,"baseIndexOfWith");function _O(w){return w!==w}o(_O,"baseIsNaN");function VO(w,X){var K=w==null?0:w.length;return K?Av(w,X)/K:bn}o(VO,"baseMean");function bv(w){return function(X){return X==null?e:X[w]}}o(bv,"baseProperty");function Sv(w){return function(X){return w==null?e:w[X]}}o(Sv,"basePropertyOf");function wO(w,X,K,Ae,Xe){return Xe(w,function(Et,Gn,Kt){K=Ae?(Ae=!1,Et):X(K,Et,Gn,Kt)}),K}o(wO,"baseReduce");function YU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(YU,"baseSortBy");function Av(w,X){for(var K,Ae=-1,Xe=w.length;++Ae<Xe;){var Et=X(w[Ae]);Et!==e&&(K=K===e?Et:K+Et)}return K}o(Av,"baseSum");function Ev(w,X){for(var K=-1,Ae=Array(w);++K<w;)Ae[K]=X(K);return Ae}o(Ev,"baseTimes");function zU(w,X){return dn(X,function(K){return[K,w[K]]})}o(zU,"baseToPairs");function MO(w){return w&&w.slice(0,$O(w)+1).replace(lv,"")}o(MO,"baseTrim");function mr(w){return function(X){return w(X)}}o(mr,"baseUnary");function Pv(w,X){return dn(X,function(K){return w[K]})}o(Pv,"baseValues");function gu(w,X){return w.has(X)}o(gu,"cacheHas");function kO(w,X){for(var K=-1,Ae=w.length;++K<Ae&&Tl(X,w[K],0)>-1;);return K}o(kO,"charsStartIndex");function jO(w,X){for(var K=w.length;K--&&Tl(X,w[K],0)>-1;);return K}o(jO,"charsEndIndex");function JU(w,X){for(var K=w.length,Ae=0;K--;)w[K]===X&&++Ae;return Ae}o(JU,"countHolders");var ZU=Sv(wU),e2=Sv(MU);function t2(w){return"\\"+jU[w]}o(t2,"escapeStringChar");function n2(w,X){return w==null?e:w[X]}o(n2,"getValue");function vl(w){return NU.test(w)}o(vl,"hasUnicode");function i2(w){return DU.test(w)}o(i2,"hasUnicodeWord");function r2(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(r2,"iteratorToArray");function xv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae,Xe){K[++X]=[Xe,Ae]}),K}o(xv,"mapToArray");function UO(w,X){return function(K){return w(X(K))}}o(UO,"overArg");function Za(w,X){for(var K=-1,Ae=w.length,Xe=0,Et=[];++K<Ae;){var Gn=w[K];(Gn===X||Gn===f)&&(w[K]=f,Et[Xe++]=K)}return Et}o(Za,"replaceHolders");function dg(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=Ae}),K}o(dg,"setToArray");function o2(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=[Ae,Ae]}),K}o(o2,"setToPairs");function a2(w,X,K){for(var Ae=K-1,Xe=w.length;++Ae<Xe;)if(w[Ae]===X)return Ae;return-1}o(a2,"strictIndexOf");function s2(w,X,K){for(var Ae=K+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(s2,"strictLastIndexOf");function bl(w){return vl(w)?l2(w):KU(w)}o(bl,"stringSize");function fo(w){return vl(w)?f2(w):XU(w)}o(fo,"stringToArray");function $O(w){for(var X=w.length;X--&&Jj.test(w.charAt(X)););return X}o($O,"trimmedEndIndex");var c2=Sv(kU);function l2(w){for(var X=gv.lastIndex=0;gv.test(w);)++X;return X}o(l2,"unicodeSize");function f2(w){return w.match(gv)||[]}o(f2,"unicodeToArray");function u2(w){return w.match(FU)||[]}o(u2,"unicodeWords");var p2=o((function w(X){X=X==null?qn:es.defaults(qn.Object(),X,es.pick(qn,_U));var K=X.Array,Ae=X.Date,Xe=X.Error,Et=X.Function,Gn=X.Math,Kt=X.Object,Cv=X.RegExp,d2=X.String,kr=X.TypeError,gg=K.prototype,g2=Et.prototype,Sl=Kt.prototype,mg=X["__core-js_shared__"],hg=g2.toString,Dt=Sl.hasOwnProperty,m2=0,BO=(function(){var c=/[^.]+$/.exec(mg&&mg.keys&&mg.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),yg=Sl.toString,h2=hg.call(Kt),y2=qn._,T2=Cv("^"+hg.call(Dt).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tg=xO?X.Buffer:e,ts=X.Symbol,vg=X.Uint8Array,HO=Tg?Tg.allocUnsafe:e,bg=UO(Kt.getPrototypeOf,Kt),GO=Kt.create,WO=Sl.propertyIsEnumerable,Sg=gg.splice,KO=ts?ts.isConcatSpreadable:e,mu=ts?ts.iterator:e,uc=ts?ts.toStringTag:e,Ag=(function(){try{var c=hc(Kt,"defineProperty");return c({},"",{}),c}catch{}})(),b2=X.clearTimeout!==qn.clearTimeout&&X.clearTimeout,S2=Ae&&Ae.now!==qn.Date.now&&Ae.now,A2=X.setTimeout!==qn.setTimeout&&X.setTimeout,Eg=Gn.ceil,Pg=Gn.floor,Iv=Kt.getOwnPropertySymbols,E2=Tg?Tg.isBuffer:e,XO=X.isFinite,P2=gg.join,x2=UO(Kt.keys,Kt),Wn=Gn.max,Si=Gn.min,C2=Ae.now,I2=X.parseInt,QO=Gn.random,O2=gg.reverse,Ov=hc(X,"DataView"),hu=hc(X,"Map"),Rv=hc(X,"Promise"),Al=hc(X,"Set"),yu=hc(X,"WeakMap"),Tu=hc(Kt,"create"),xg=yu&&new yu,El={},R2=yc(Ov),L2=yc(hu),F2=yc(Rv),N2=yc(Al),D2=yc(yu),Cg=ts?ts.prototype:e,vu=Cg?Cg.valueOf:e,qO=Cg?Cg.toString:e;function x(c){if(An(c)&&!Ye(c)&&!(c instanceof gt)){if(c instanceof jr)return c;if(Dt.call(c,"__wrapped__"))return YR(c)}return new jr(c)}o(x,"lodash");var Pl=(function(){function c(){}return o(c,"object"),function(u){if(!Tn(u))return{};if(GO)return GO(u);c.prototype=u;var g=new c;return c.prototype=e,g}})();function Ig(){}o(Ig,"baseLodash");function jr(c,u){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=e}o(jr,"LodashWrapper"),x.templateSettings={escape:st,evaluate:Wt,interpolate:pn,variable:"",imports:{_:x}},x.prototype=Ig.prototype,x.prototype.constructor=x,jr.prototype=Pl(Ig.prototype),jr.prototype.constructor=jr;function gt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=on,this.__views__=[]}o(gt,"LazyWrapper");function _2(){var c=new gt(this.__wrapped__);return c.__actions__=Qi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qi(this.__views__),c}o(_2,"lazyClone");function V2(){if(this.__filtered__){var c=new gt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(V2,"lazyReverse");function w2(){var c=this.__wrapped__.value(),u=this.__dir__,g=Ye(c),T=u<0,A=g?c.length:0,C=q4(0,A,this.__views__),L=C.start,N=C.end,M=N-L,z=T?N:L-1,J=this.__iteratees__,ne=J.length,me=0,Re=Si(M,this.__takeCount__);if(!g||!T&&A==M&&Re==M)return vR(c,this.__actions__);var Me=[];e:for(;M--&&me<Re;){z+=u;for(var nt=-1,ke=c[z];++nt<ne;){var lt=J[nt],mt=lt.iteratee,Tr=lt.type,_i=mt(ke);if(Tr==Bt)ke=_i;else if(!_i){if(Tr==rn)continue e;break e}}Me[me++]=ke}return Me}o(w2,"lazyValue"),gt.prototype=Pl(Ig.prototype),gt.prototype.constructor=gt;function pc(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(pc,"Hash");function M2(){this.__data__=Tu?Tu(null):{},this.size=0}o(M2,"hashClear");function k2(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}o(k2,"hashDelete");function j2(c){var u=this.__data__;if(Tu){var g=u[c];return g===s?e:g}return Dt.call(u,c)?u[c]:e}o(j2,"hashGet");function U2(c){var u=this.__data__;return Tu?u[c]!==e:Dt.call(u,c)}o(U2,"hashHas");function $2(c,u){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Tu&&u===e?s:u,this}o($2,"hashSet"),pc.prototype.clear=M2,pc.prototype.delete=k2,pc.prototype.get=j2,pc.prototype.has=U2,pc.prototype.set=$2;function aa(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(aa,"ListCache");function B2(){this.__data__=[],this.size=0}o(B2,"listCacheClear");function H2(c){var u=this.__data__,g=Og(u,c);if(g<0)return!1;var T=u.length-1;return g==T?u.pop():Sg.call(u,g,1),--this.size,!0}o(H2,"listCacheDelete");function G2(c){var u=this.__data__,g=Og(u,c);return g<0?e:u[g][1]}o(G2,"listCacheGet");function W2(c){return Og(this.__data__,c)>-1}o(W2,"listCacheHas");function K2(c,u){var g=this.__data__,T=Og(g,c);return T<0?(++this.size,g.push([c,u])):g[T][1]=u,this}o(K2,"listCacheSet"),aa.prototype.clear=B2,aa.prototype.delete=H2,aa.prototype.get=G2,aa.prototype.has=W2,aa.prototype.set=K2;function sa(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(sa,"MapCache");function X2(){this.size=0,this.__data__={hash:new pc,map:new(hu||aa),string:new pc}}o(X2,"mapCacheClear");function Q2(c){var u=Ug(this,c).delete(c);return this.size-=u?1:0,u}o(Q2,"mapCacheDelete");function q2(c){return Ug(this,c).get(c)}o(q2,"mapCacheGet");function Y2(c){return Ug(this,c).has(c)}o(Y2,"mapCacheHas");function z2(c,u){var g=Ug(this,c),T=g.size;return g.set(c,u),this.size+=g.size==T?0:1,this}o(z2,"mapCacheSet"),sa.prototype.clear=X2,sa.prototype.delete=Q2,sa.prototype.get=q2,sa.prototype.has=Y2,sa.prototype.set=z2;function dc(c){var u=-1,g=c==null?0:c.length;for(this.__data__=new sa;++u<g;)this.add(c[u])}o(dc,"SetCache");function J2(c){return this.__data__.set(c,s),this}o(J2,"setCacheAdd");function Z2(c){return this.__data__.has(c)}o(Z2,"setCacheHas"),dc.prototype.add=dc.prototype.push=J2,dc.prototype.has=Z2;function uo(c){var u=this.__data__=new aa(c);this.size=u.size}o(uo,"Stack");function e4(){this.__data__=new aa,this.size=0}o(e4,"stackClear");function t4(c){var u=this.__data__,g=u.delete(c);return this.size=u.size,g}o(t4,"stackDelete");function n4(c){return this.__data__.get(c)}o(n4,"stackGet");function i4(c){return this.__data__.has(c)}o(i4,"stackHas");function r4(c,u){var g=this.__data__;if(g instanceof aa){var T=g.__data__;if(!hu||T.length<n-1)return T.push([c,u]),this.size=++g.size,this;g=this.__data__=new sa(T)}return g.set(c,u),this.size=g.size,this}o(r4,"stackSet"),uo.prototype.clear=e4,uo.prototype.delete=t4,uo.prototype.get=n4,uo.prototype.has=i4,uo.prototype.set=r4;function YO(c,u){var g=Ye(c),T=!g&&Tc(c),A=!g&&!T&&as(c),C=!g&&!T&&!A&&Ol(c),L=g||T||A||C,N=L?Ev(c.length,d2):[],M=N.length;for(var z in c)(u||Dt.call(c,z))&&!(L&&(z=="length"||A&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ua(z,M)))&&N.push(z);return N}o(YO,"arrayLikeKeys");function zO(c){var u=c.length;return u?c[Uv(0,u-1)]:e}o(zO,"arraySample");function o4(c,u){return $g(Qi(c),gc(u,0,c.length))}o(o4,"arraySampleSize");function a4(c){return $g(Qi(c))}o(a4,"arrayShuffle");function Lv(c,u,g){(g!==e&&!po(c[u],g)||g===e&&!(u in c))&&ca(c,u,g)}o(Lv,"assignMergeValue");function bu(c,u,g){var T=c[u];(!(Dt.call(c,u)&&po(T,g))||g===e&&!(u in c))&&ca(c,u,g)}o(bu,"assignValue");function Og(c,u){for(var g=c.length;g--;)if(po(c[g][0],u))return g;return-1}o(Og,"assocIndexOf");function s4(c,u,g,T){return ns(c,function(A,C,L){u(T,A,g(A),L)}),T}o(s4,"baseAggregator");function JO(c,u){return c&&Do(u,Yn(u),c)}o(JO,"baseAssign");function c4(c,u){return c&&Do(u,Yi(u),c)}o(c4,"baseAssignIn");function ca(c,u,g){u=="__proto__"&&Ag?Ag(c,u,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[u]=g}o(ca,"baseAssignValue");function Fv(c,u){for(var g=-1,T=u.length,A=K(T),C=c==null;++g<T;)A[g]=C?e:ub(c,u[g]);return A}o(Fv,"baseAt");function gc(c,u,g){return c===c&&(g!==e&&(c=c<=g?c:g),u!==e&&(c=c>=u?c:u)),c}o(gc,"baseClamp");function Ur(c,u,g,T,A,C){var L,N=u&p,M=u&d,z=u&m;if(g&&(L=A?g(c,T,A,C):g(c)),L!==e)return L;if(!Tn(c))return c;var J=Ye(c);if(J){if(L=z4(c),!N)return Qi(c,L)}else{var ne=Ai(c),me=ne==_e||ne==Nt;if(as(c))return AR(c,N);if(ne==un||ne==fn||me&&!A){if(L=M||me?{}:$R(c),!N)return M?U4(c,c4(L,c)):j4(c,JO(L,c))}else{if(!zt[ne])return A?c:{};L=J4(c,ne,N)}}C||(C=new uo);var Re=C.get(c);if(Re)return Re;C.set(c,L),hL(c)?c.forEach(function(ke){L.add(Ur(ke,u,g,ke,c,C))}):gL(c)&&c.forEach(function(ke,lt){L.set(lt,Ur(ke,u,g,lt,c,C))});var Me=z?M?zv:Yv:M?Yi:Yn,nt=J?e:Me(c);return Mr(nt||c,function(ke,lt){nt&&(lt=ke,ke=c[lt]),bu(L,lt,Ur(ke,u,g,lt,c,C))}),L}o(Ur,"baseClone");function l4(c){var u=Yn(c);return function(g){return ZO(g,c,u)}}o(l4,"baseConforms");function ZO(c,u,g){var T=g.length;if(c==null)return!T;for(c=Kt(c);T--;){var A=g[T],C=u[A],L=c[A];if(L===e&&!(A in c)||!C(L))return!1}return!0}o(ZO,"baseConformsTo");function eR(c,u,g){if(typeof c!="function")throw new kr(r);return Iu(function(){c.apply(e,g)},u)}o(eR,"baseDelay");function Su(c,u,g,T){var A=-1,C=ug,L=!0,N=c.length,M=[],z=u.length;if(!N)return M;g&&(u=dn(u,mr(g))),T?(C=yv,L=!1):u.length>=n&&(C=gu,L=!1,u=new dc(u));e:for(;++A<N;){var J=c[A],ne=g==null?J:g(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var me=z;me--;)if(u[me]===ne)continue e;M.push(J)}else C(u,ne,T)||M.push(J)}return M}o(Su,"baseDifference");var ns=IR(No),tR=IR(Dv,!0);function f4(c,u){var g=!0;return ns(c,function(T,A,C){return g=!!u(T,A,C),g}),g}o(f4,"baseEvery");function Rg(c,u,g){for(var T=-1,A=c.length;++T<A;){var C=c[T],L=u(C);if(L!=null&&(N===e?L===L&&!yr(L):g(L,N)))var N=L,M=C}return M}o(Rg,"baseExtremum");function u4(c,u,g,T){var A=c.length;for(g=et(g),g<0&&(g=-g>A?0:A+g),T=T===e||T>A?A:et(T),T<0&&(T+=A),T=g>T?0:TL(T);g<T;)c[g++]=u;return c}o(u4,"baseFill");function nR(c,u){var g=[];return ns(c,function(T,A,C){u(T,A,C)&&g.push(T)}),g}o(nR,"baseFilter");function ri(c,u,g,T,A){var C=-1,L=c.length;for(g||(g=e$),A||(A=[]);++C<L;){var N=c[C];u>0&&g(N)?u>1?ri(N,u-1,g,T,A):Ja(A,N):T||(A[A.length]=N)}return A}o(ri,"baseFlatten");var Nv=OR(),iR=OR(!0);function No(c,u){return c&&Nv(c,u,Yn)}o(No,"baseForOwn");function Dv(c,u){return c&&iR(c,u,Yn)}o(Dv,"baseForOwnRight");function Lg(c,u){return za(u,function(g){return pa(c[g])})}o(Lg,"baseFunctions");function mc(c,u){u=rs(u,c);for(var g=0,T=u.length;c!=null&&g<T;)c=c[_o(u[g++])];return g&&g==T?c:e}o(mc,"baseGet");function rR(c,u,g){var T=u(c);return Ye(c)?T:Ja(T,g(c))}o(rR,"baseGetAllKeys");function Ni(c){return c==null?c===e?oa:Sn:uc&&uc in Kt(c)?Q4(c):s$(c)}o(Ni,"baseGetTag");function _v(c,u){return c>u}o(_v,"baseGt");function p4(c,u){return c!=null&&Dt.call(c,u)}o(p4,"baseHas");function d4(c,u){return c!=null&&u in Kt(c)}o(d4,"baseHasIn");function g4(c,u,g){return c>=Si(u,g)&&c<Wn(u,g)}o(g4,"baseInRange");function Vv(c,u,g){for(var T=g?yv:ug,A=c[0].length,C=c.length,L=C,N=K(C),M=1/0,z=[];L--;){var J=c[L];L&&u&&(J=dn(J,mr(u))),M=Si(J.length,M),N[L]=!g&&(u||A>=120&&J.length>=120)?new dc(L&&J):e}J=c[0];var ne=-1,me=N[0];e:for(;++ne<A&&z.length<M;){var Re=J[ne],Me=u?u(Re):Re;if(Re=g||Re!==0?Re:0,!(me?gu(me,Me):T(z,Me,g))){for(L=C;--L;){var nt=N[L];if(!(nt?gu(nt,Me):T(c[L],Me,g)))continue e}me&&me.push(Me),z.push(Re)}}return z}o(Vv,"baseIntersection");function m4(c,u,g,T){return No(c,function(A,C,L){u(T,g(A),C,L)}),T}o(m4,"baseInverter");function Au(c,u,g){u=rs(u,c),c=WR(c,u);var T=c==null?c:c[_o(Br(u))];return T==null?e:gr(T,c,g)}o(Au,"baseInvoke");function oR(c){return An(c)&&Ni(c)==fn}o(oR,"baseIsArguments");function h4(c){return An(c)&&Ni(c)==cc}o(h4,"baseIsArrayBuffer");function y4(c){return An(c)&&Ni(c)==E}o(y4,"baseIsDate");function Eu(c,u,g,T,A){return c===u?!0:c==null||u==null||!An(c)&&!An(u)?c!==c&&u!==u:T4(c,u,g,T,Eu,A)}o(Eu,"baseIsEqual");function T4(c,u,g,T,A,C){var L=Ye(c),N=Ye(u),M=L?Fi:Ai(c),z=N?Fi:Ai(u);M=M==fn?un:M,z=z==fn?un:z;var J=M==un,ne=z==un,me=M==z;if(me&&as(c)){if(!as(u))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new uo),L||Ol(c)?kR(c,u,g,T,A,C):K4(c,u,M,g,T,A,C);if(!(g&v)){var Re=J&&Dt.call(c,"__wrapped__"),Me=ne&&Dt.call(u,"__wrapped__");if(Re||Me){var nt=Re?c.value():c,ke=Me?u.value():u;return C||(C=new uo),A(nt,ke,g,T,C)}}return me?(C||(C=new uo),X4(c,u,g,T,A,C)):!1}o(T4,"baseIsEqualDeep");function b4(c){return An(c)&&Ai(c)==ze}o(b4,"baseIsMap");function wv(c,u,g,T){var A=g.length,C=A,L=!T;if(c==null)return!C;for(c=Kt(c);A--;){var N=g[A];if(L&&N[2]?N[1]!==c[N[0]]:!(N[0]in c))return!1}for(;++A<C;){N=g[A];var M=N[0],z=c[M],J=N[1];if(L&&N[2]){if(z===e&&!(M in c))return!1}else{var ne=new uo;if(T)var me=T(z,J,M,c,u,ne);if(!(me===e?Eu(J,z,v|S,T,ne):me))return!1}}return!0}o(wv,"baseIsMatch");function aR(c){if(!Tn(c)||n$(c))return!1;var u=pa(c)?T2:cU;return u.test(yc(c))}o(aR,"baseIsNative");function S4(c){return An(c)&&Ni(c)==pr}o(S4,"baseIsRegExp");function A4(c){return An(c)&&Ai(c)==hn}o(A4,"baseIsSet");function E4(c){return An(c)&&Xg(c.length)&&!!sn[Ni(c)]}o(E4,"baseIsTypedArray");function sR(c){return typeof c=="function"?c:c==null?zi:typeof c=="object"?Ye(c)?fR(c[0],c[1]):lR(c):RL(c)}o(sR,"baseIteratee");function Mv(c){if(!Cu(c))return x2(c);var u=[];for(var g in Kt(c))Dt.call(c,g)&&g!="constructor"&&u.push(g);return u}o(Mv,"baseKeys");function P4(c){if(!Tn(c))return a$(c);var u=Cu(c),g=[];for(var T in c)T=="constructor"&&(u||!Dt.call(c,T))||g.push(T);return g}o(P4,"baseKeysIn");function kv(c,u){return c<u}o(kv,"baseLt");function cR(c,u){var g=-1,T=qi(c)?K(c.length):[];return ns(c,function(A,C,L){T[++g]=u(A,C,L)}),T}o(cR,"baseMap");function lR(c){var u=Zv(c);return u.length==1&&u[0][2]?HR(u[0][0],u[0][1]):function(g){return g===c||wv(g,c,u)}}o(lR,"baseMatches");function fR(c,u){return tb(c)&&BR(u)?HR(_o(c),u):function(g){var T=ub(g,c);return T===e&&T===u?pb(g,c):Eu(u,T,v|S)}}o(fR,"baseMatchesProperty");function Fg(c,u,g,T,A){c!==u&&Nv(u,function(C,L){if(A||(A=new uo),Tn(C))x4(c,u,L,g,Fg,T,A);else{var N=T?T(ib(c,L),C,L+"",c,u,A):e;N===e&&(N=C),Lv(c,L,N)}},Yi)}o(Fg,"baseMerge");function x4(c,u,g,T,A,C,L){var N=ib(c,g),M=ib(u,g),z=L.get(M);if(z){Lv(c,g,z);return}var J=C?C(N,M,g+"",c,u,L):e,ne=J===e;if(ne){var me=Ye(M),Re=!me&&as(M),Me=!me&&!Re&&Ol(M);J=M,me||Re||Me?Ye(N)?J=N:Fn(N)?J=Qi(N):Re?(ne=!1,J=AR(M,!0)):Me?(ne=!1,J=ER(M,!0)):J=[]:Ou(M)||Tc(M)?(J=N,Tc(N)?J=vL(N):(!Tn(N)||pa(N))&&(J=$R(M))):ne=!1}ne&&(L.set(M,J),A(J,M,T,C,L),L.delete(M)),Lv(c,g,J)}o(x4,"baseMergeDeep");function uR(c,u){var g=c.length;if(g)return u+=u<0?g:0,ua(u,g)?c[u]:e}o(uR,"baseNth");function pR(c,u,g){u.length?u=dn(u,function(C){return Ye(C)?function(L){return mc(L,C.length===1?C[0]:C)}:C}):u=[zi];var T=-1;u=dn(u,mr(Ve()));var A=cR(c,function(C,L,N){var M=dn(u,function(z){return z(C)});return{criteria:M,index:++T,value:C}});return YU(A,function(C,L){return k4(C,L,g)})}o(pR,"baseOrderBy");function C4(c,u){return dR(c,u,function(g,T){return pb(c,T)})}o(C4,"basePick");function dR(c,u,g){for(var T=-1,A=u.length,C={};++T<A;){var L=u[T],N=mc(c,L);g(N,L)&&Pu(C,rs(L,c),N)}return C}o(dR,"basePickBy");function I4(c){return function(u){return mc(u,c)}}o(I4,"basePropertyDeep");function jv(c,u,g,T){var A=T?qU:Tl,C=-1,L=u.length,N=c;for(c===u&&(u=Qi(u)),g&&(N=dn(c,mr(g)));++C<L;)for(var M=0,z=u[C],J=g?g(z):z;(M=A(N,J,M,T))>-1;)N!==c&&Sg.call(N,M,1),Sg.call(c,M,1);return c}o(jv,"basePullAll");function gR(c,u){for(var g=c?u.length:0,T=g-1;g--;){var A=u[g];if(g==T||A!==C){var C=A;ua(A)?Sg.call(c,A,1):Hv(c,A)}}return c}o(gR,"basePullAt");function Uv(c,u){return c+Pg(QO()*(u-c+1))}o(Uv,"baseRandom");function O4(c,u,g,T){for(var A=-1,C=Wn(Eg((u-c)/(g||1)),0),L=K(C);C--;)L[T?C:++A]=c,c+=g;return L}o(O4,"baseRange");function $v(c,u){var g="";if(!c||u<1||u>Fe)return g;do u%2&&(g+=c),u=Pg(u/2),u&&(c+=c);while(u);return g}o($v,"baseRepeat");function rt(c,u){return rb(GR(c,u,zi),c+"")}o(rt,"baseRest");function R4(c){return zO(Rl(c))}o(R4,"baseSample");function L4(c,u){var g=Rl(c);return $g(g,gc(u,0,g.length))}o(L4,"baseSampleSize");function Pu(c,u,g,T){if(!Tn(c))return c;u=rs(u,c);for(var A=-1,C=u.length,L=C-1,N=c;N!=null&&++A<C;){var M=_o(u[A]),z=g;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(A!=L){var J=N[M];z=T?T(J,M,N):e,z===e&&(z=Tn(J)?J:ua(u[A+1])?[]:{})}bu(N,M,z),N=N[M]}return c}o(Pu,"baseSet");var mR=xg?function(c,u){return xg.set(c,u),c}:zi,F4=Ag?function(c,u){return Ag(c,"toString",{configurable:!0,enumerable:!1,value:gb(u),writable:!0})}:zi;function N4(c){return $g(Rl(c))}o(N4,"baseShuffle");function $r(c,u,g){var T=-1,A=c.length;u<0&&(u=-u>A?0:A+u),g=g>A?A:g,g<0&&(g+=A),A=u>g?0:g-u>>>0,u>>>=0;for(var C=K(A);++T<A;)C[T]=c[T+u];return C}o($r,"baseSlice");function D4(c,u){var g;return ns(c,function(T,A,C){return g=u(T,A,C),!g}),!!g}o(D4,"baseSome");function Ng(c,u,g){var T=0,A=c==null?T:c.length;if(typeof u=="number"&&u===u&&A<=an){for(;T<A;){var C=T+A>>>1,L=c[C];L!==null&&!yr(L)&&(g?L<=u:L<u)?T=C+1:A=C}return A}return Bv(c,u,zi,g)}o(Ng,"baseSortedIndex");function Bv(c,u,g,T){var A=0,C=c==null?0:c.length;if(C===0)return 0;u=g(u);for(var L=u!==u,N=u===null,M=yr(u),z=u===e;A<C;){var J=Pg((A+C)/2),ne=g(c[J]),me=ne!==e,Re=ne===null,Me=ne===ne,nt=yr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||me):N?ke=Me&&me&&(T||!Re):M?ke=Me&&me&&!Re&&(T||!nt):Re||nt?ke=!1:ke=T?ne<=u:ne<u;ke?A=J+1:C=J}return Si(C,Rn)}o(Bv,"baseSortedIndexBy");function hR(c,u){for(var g=-1,T=c.length,A=0,C=[];++g<T;){var L=c[g],N=u?u(L):L;if(!g||!po(N,M)){var M=N;C[A++]=L===0?0:L}}return C}o(hR,"baseSortedUniq");function yR(c){return typeof c=="number"?c:yr(c)?bn:+c}o(yR,"baseToNumber");function hr(c){if(typeof c=="string")return c;if(Ye(c))return dn(c,hr)+"";if(yr(c))return qO?qO.call(c):"";var u=c+"";return u=="0"&&1/c==-Yt?"-0":u}o(hr,"baseToString");function is(c,u,g){var T=-1,A=ug,C=c.length,L=!0,N=[],M=N;if(g)L=!1,A=yv;else if(C>=n){var z=u?null:G4(c);if(z)return dg(z);L=!1,A=gu,M=new dc}else M=u?[]:N;e:for(;++T<C;){var J=c[T],ne=u?u(J):J;if(J=g||J!==0?J:0,L&&ne===ne){for(var me=M.length;me--;)if(M[me]===ne)continue e;u&&M.push(ne),N.push(J)}else A(M,ne,g)||(M!==N&&M.push(ne),N.push(J))}return N}o(is,"baseUniq");function Hv(c,u){return u=rs(u,c),c=WR(c,u),c==null||delete c[_o(Br(u))]}o(Hv,"baseUnset");function TR(c,u,g,T){return Pu(c,u,g(mc(c,u)),T)}o(TR,"baseUpdate");function Dg(c,u,g,T){for(var A=c.length,C=T?A:-1;(T?C--:++C<A)&&u(c[C],C,c););return g?$r(c,T?0:C,T?C+1:A):$r(c,T?C+1:0,T?A:C)}o(Dg,"baseWhile");function vR(c,u){var g=c;return g instanceof gt&&(g=g.value()),Tv(u,function(T,A){return A.func.apply(A.thisArg,Ja([T],A.args))},g)}o(vR,"baseWrapperValue");function Gv(c,u,g){var T=c.length;if(T<2)return T?is(c[0]):[];for(var A=-1,C=K(T);++A<T;)for(var L=c[A],N=-1;++N<T;)N!=A&&(C[A]=Su(C[A]||L,c[N],u,g));return is(ri(C,1),u,g)}o(Gv,"baseXor");function bR(c,u,g){for(var T=-1,A=c.length,C=u.length,L={};++T<A;){var N=T<C?u[T]:e;g(L,c[T],N)}return L}o(bR,"baseZipObject");function Wv(c){return Fn(c)?c:[]}o(Wv,"castArrayLikeObject");function Kv(c){return typeof c=="function"?c:zi}o(Kv,"castFunction");function rs(c,u){return Ye(c)?c:tb(c,u)?[c]:qR(It(c))}o(rs,"castPath");var _4=rt;function os(c,u,g){var T=c.length;return g=g===e?T:g,!u&&g>=T?c:$r(c,u,g)}o(os,"castSlice");var SR=b2||function(c){return qn.clearTimeout(c)};function AR(c,u){if(u)return c.slice();var g=c.length,T=HO?HO(g):new c.constructor(g);return c.copy(T),T}o(AR,"cloneBuffer");function Xv(c){var u=new c.constructor(c.byteLength);return new vg(u).set(new vg(c)),u}o(Xv,"cloneArrayBuffer");function V4(c,u){var g=u?Xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}o(V4,"cloneDataView");function w4(c){var u=new c.constructor(c.source,oO.exec(c));return u.lastIndex=c.lastIndex,u}o(w4,"cloneRegExp");function M4(c){return vu?Kt(vu.call(c)):{}}o(M4,"cloneSymbol");function ER(c,u){var g=u?Xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}o(ER,"cloneTypedArray");function PR(c,u){if(c!==u){var g=c!==e,T=c===null,A=c===c,C=yr(c),L=u!==e,N=u===null,M=u===u,z=yr(u);if(!N&&!z&&!C&&c>u||C&&L&&M&&!N&&!z||T&&L&&M||!g&&M||!A)return 1;if(!T&&!C&&!z&&c<u||z&&g&&A&&!T&&!C||N&&g&&A||!L&&A||!M)return-1}return 0}o(PR,"compareAscending");function k4(c,u,g){for(var T=-1,A=c.criteria,C=u.criteria,L=A.length,N=g.length;++T<L;){var M=PR(A[T],C[T]);if(M){if(T>=N)return M;var z=g[T];return M*(z=="desc"?-1:1)}}return c.index-u.index}o(k4,"compareMultiple");function xR(c,u,g,T){for(var A=-1,C=c.length,L=g.length,N=-1,M=u.length,z=Wn(C-L,0),J=K(M+z),ne=!T;++N<M;)J[N]=u[N];for(;++A<L;)(ne||A<C)&&(J[g[A]]=c[A]);for(;z--;)J[N++]=c[A++];return J}o(xR,"composeArgs");function CR(c,u,g,T){for(var A=-1,C=c.length,L=-1,N=g.length,M=-1,z=u.length,J=Wn(C-N,0),ne=K(J+z),me=!T;++A<J;)ne[A]=c[A];for(var Re=A;++M<z;)ne[Re+M]=u[M];for(;++L<N;)(me||A<C)&&(ne[Re+g[L]]=c[A++]);return ne}o(CR,"composeArgsRight");function Qi(c,u){var g=-1,T=c.length;for(u||(u=K(T));++g<T;)u[g]=c[g];return u}o(Qi,"copyArray");function Do(c,u,g,T){var A=!g;g||(g={});for(var C=-1,L=u.length;++C<L;){var N=u[C],M=T?T(g[N],c[N],N,g,c):e;M===e&&(M=c[N]),A?ca(g,N,M):bu(g,N,M)}return g}o(Do,"copyObject");function j4(c,u){return Do(c,eb(c),u)}o(j4,"copySymbols");function U4(c,u){return Do(c,jR(c),u)}o(U4,"copySymbolsIn");function _g(c,u){return function(g,T){var A=Ye(g)?HU:s4,C=u?u():{};return A(g,c,Ve(T,2),C)}}o(_g,"createAggregator");function xl(c){return rt(function(u,g){var T=-1,A=g.length,C=A>1?g[A-1]:e,L=A>2?g[2]:e;for(C=c.length>3&&typeof C=="function"?(A--,C):e,L&&Di(g[0],g[1],L)&&(C=A<3?e:C,A=1),u=Kt(u);++T<A;){var N=g[T];N&&c(u,N,T,C)}return u})}o(xl,"createAssigner");function IR(c,u){return function(g,T){if(g==null)return g;if(!qi(g))return c(g,T);for(var A=g.length,C=u?A:-1,L=Kt(g);(u?C--:++C<A)&&T(L[C],C,L)!==!1;);return g}}o(IR,"createBaseEach");function OR(c){return function(u,g,T){for(var A=-1,C=Kt(u),L=T(u),N=L.length;N--;){var M=L[c?N:++A];if(g(C[M],M,C)===!1)break}return u}}o(OR,"createBaseFor");function $4(c,u,g){var T=u&b,A=xu(c);function C(){var L=this&&this!==qn&&this instanceof C?A:c;return L.apply(T?g:this,arguments)}return o(C,"wrapper"),C}o($4,"createBind");function RR(c){return function(u){u=It(u);var g=vl(u)?fo(u):e,T=g?g[0]:u.charAt(0),A=g?os(g,1).join(""):u.slice(1);return T[c]()+A}}o(RR,"createCaseFirst");function Cl(c){return function(u){return Tv(IL(CL(u).replace(RU,"")),c,"")}}o(Cl,"createCompounder");function xu(c){return function(){var u=arguments;switch(u.length){case 0:return new c;case 1:return new c(u[0]);case 2:return new c(u[0],u[1]);case 3:return new c(u[0],u[1],u[2]);case 4:return new c(u[0],u[1],u[2],u[3]);case 5:return new c(u[0],u[1],u[2],u[3],u[4]);case 6:return new c(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new c(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var g=Pl(c.prototype),T=c.apply(g,u);return Tn(T)?T:g}}o(xu,"createCtor");function B4(c,u,g){var T=xu(c);function A(){for(var C=arguments.length,L=K(C),N=C,M=Il(A);N--;)L[N]=arguments[N];var z=C<3&&L[0]!==M&&L[C-1]!==M?[]:Za(L,M);if(C-=z.length,C<g)return _R(c,u,Vg,A.placeholder,e,L,z,e,e,g-C);var J=this&&this!==qn&&this instanceof A?T:c;return gr(J,this,L)}return o(A,"wrapper"),A}o(B4,"createCurry");function LR(c){return function(u,g,T){var A=Kt(u);if(!qi(u)){var C=Ve(g,3);u=Yn(u),g=o(function(N){return C(A[N],N,A)},"predicate")}var L=c(u,g,T);return L>-1?A[C?u[L]:L]:e}}o(LR,"createFind");function FR(c){return fa(function(u){var g=u.length,T=g,A=jr.prototype.thru;for(c&&u.reverse();T--;){var C=u[T];if(typeof C!="function")throw new kr(r);if(A&&!L&&jg(C)=="wrapper")var L=new jr([],!0)}for(T=L?T:g;++T<g;){C=u[T];var N=jg(C),M=N=="wrapper"?Jv(C):e;M&&nb(M[0])&&M[1]==(ee|j|U|le)&&!M[4].length&&M[9]==1?L=L[jg(M[0])].apply(L,M[3]):L=C.length==1&&nb(C)?L[N]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Ye(J))return L.plant(J).value();for(var ne=0,me=g?u[ne].apply(this,z):J;++ne<g;)me=u[ne].call(this,me);return me}})}o(FR,"createFlow");function Vg(c,u,g,T,A,C,L,N,M,z){var J=u&ee,ne=u&b,me=u&I,Re=u&(j|W),Me=u&Le,nt=me?e:xu(c);function ke(){for(var lt=arguments.length,mt=K(lt),Tr=lt;Tr--;)mt[Tr]=arguments[Tr];if(Re)var _i=Il(ke),vr=JU(mt,_i);if(T&&(mt=xR(mt,T,A,Re)),C&&(mt=CR(mt,C,L,Re)),lt-=vr,Re&&lt<z){var Nn=Za(mt,_i);return _R(c,u,Vg,ke.placeholder,g,mt,Nn,N,M,z-lt)}var go=ne?g:this,ga=me?go[c]:c;return lt=mt.length,N?mt=c$(mt,N):Me&&lt>1&&mt.reverse(),J&&M<lt&&(mt.length=M),this&&this!==qn&&this instanceof ke&&(ga=nt||xu(ga)),ga.apply(go,mt)}return o(ke,"wrapper"),ke}o(Vg,"createHybrid");function NR(c,u){return function(g,T){return m4(g,c,u(T),{})}}o(NR,"createInverter");function wg(c,u){return function(g,T){var A;if(g===e&&T===e)return u;if(g!==e&&(A=g),T!==e){if(A===e)return T;typeof g=="string"||typeof T=="string"?(g=hr(g),T=hr(T)):(g=yR(g),T=yR(T)),A=c(g,T)}return A}}o(wg,"createMathOperation");function Qv(c){return fa(function(u){return u=dn(u,mr(Ve())),rt(function(g){var T=this;return c(u,function(A){return gr(A,T,g)})})})}o(Qv,"createOver");function Mg(c,u){u=u===e?" ":hr(u);var g=u.length;if(g<2)return g?$v(u,c):u;var T=$v(u,Eg(c/bl(u)));return vl(u)?os(fo(T),0,c).join(""):T.slice(0,c)}o(Mg,"createPadding");function H4(c,u,g,T){var A=u&b,C=xu(c);function L(){for(var N=-1,M=arguments.length,z=-1,J=T.length,ne=K(J+M),me=this&&this!==qn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;M--;)ne[z++]=arguments[++N];return gr(me,A?g:this,ne)}return o(L,"wrapper"),L}o(H4,"createPartial");function DR(c){return function(u,g,T){return T&&typeof T!="number"&&Di(u,g,T)&&(g=T=e),u=da(u),g===e?(g=u,u=0):g=da(g),T=T===e?u<g?1:-1:da(T),O4(u,g,T,c)}}o(DR,"createRange");function kg(c){return function(u,g){return typeof u=="string"&&typeof g=="string"||(u=Hr(u),g=Hr(g)),c(u,g)}}o(kg,"createRelationalOperation");function _R(c,u,g,T,A,C,L,N,M,z){var J=u&j,ne=J?L:e,me=J?e:L,Re=J?C:e,Me=J?e:C;u|=J?U:se,u&=~(J?se:U),u&F||(u&=~(b|I));var nt=[c,u,A,Re,ne,Me,me,N,M,z],ke=g.apply(e,nt);return nb(c)&&KR(ke,nt),ke.placeholder=T,XR(ke,c,u)}o(_R,"createRecurry");function qv(c){var u=Gn[c];return function(g,T){if(g=Hr(g),T=T==null?0:Si(et(T),292),T&&XO(g)){var A=(It(g)+"e").split("e"),C=u(A[0]+"e"+(+A[1]+T));return A=(It(C)+"e").split("e"),+(A[0]+"e"+(+A[1]-T))}return u(g)}}o(qv,"createRound");var G4=Al&&1/dg(new Al([,-0]))[1]==Yt?function(c){return new Al(c)}:yb;function VR(c){return function(u){var g=Ai(u);return g==ze?xv(u):g==hn?o2(u):zU(u,c(u))}}o(VR,"createToPairs");function la(c,u,g,T,A,C,L,N){var M=u&I;if(!M&&typeof c!="function")throw new kr(r);var z=T?T.length:0;if(z||(u&=~(U|se),T=A=e),L=L===e?L:Wn(et(L),0),N=N===e?N:et(N),z-=A?A.length:0,u&se){var J=T,ne=A;T=A=e}var me=M?e:Jv(c),Re=[c,u,g,T,A,J,ne,C,L,N];if(me&&o$(Re,me),c=Re[0],u=Re[1],g=Re[2],T=Re[3],A=Re[4],N=Re[9]=Re[9]===e?M?0:c.length:Wn(Re[9]-z,0),!N&&u&(j|W)&&(u&=~(j|W)),!u||u==b)var Me=$4(c,u,g);else u==j||u==W?Me=B4(c,u,N):(u==U||u==(b|U))&&!A.length?Me=H4(c,u,g,T):Me=Vg.apply(e,Re);var nt=me?mR:KR;return XR(nt(Me,Re),c,u)}o(la,"createWrap");function wR(c,u,g,T){return c===e||po(c,Sl[g])&&!Dt.call(T,g)?u:c}o(wR,"customDefaultsAssignIn");function MR(c,u,g,T,A,C){return Tn(c)&&Tn(u)&&(C.set(u,c),Fg(c,u,e,MR,C),C.delete(u)),c}o(MR,"customDefaultsMerge");function W4(c){return Ou(c)?e:c}o(W4,"customOmitClone");function kR(c,u,g,T,A,C){var L=g&v,N=c.length,M=u.length;if(N!=M&&!(L&&M>N))return!1;var z=C.get(c),J=C.get(u);if(z&&J)return z==u&&J==c;var ne=-1,me=!0,Re=g&S?new dc:e;for(C.set(c,u),C.set(u,c);++ne<N;){var Me=c[ne],nt=u[ne];if(T)var ke=L?T(nt,Me,ne,u,c,C):T(Me,nt,ne,c,u,C);if(ke!==e){if(ke)continue;me=!1;break}if(Re){if(!vv(u,function(lt,mt){if(!gu(Re,mt)&&(Me===lt||A(Me,lt,g,T,C)))return Re.push(mt)})){me=!1;break}}else if(!(Me===nt||A(Me,nt,g,T,C))){me=!1;break}}return C.delete(c),C.delete(u),me}o(kR,"equalArrays");function K4(c,u,g,T,A,C,L){switch(g){case Vr:if(c.byteLength!=u.byteLength||c.byteOffset!=u.byteOffset)return!1;c=c.buffer,u=u.buffer;case cc:return!(c.byteLength!=u.byteLength||!C(new vg(c),new vg(u)));case O:case E:case kt:return po(+c,+u);case V:return c.name==u.name&&c.message==u.message;case pr:case bi:return c==u+"";case ze:var N=xv;case hn:var M=T&v;if(N||(N=dg),c.size!=u.size&&!M)return!1;var z=L.get(c);if(z)return z==u;T|=S,L.set(c,u);var J=kR(N(c),N(u),T,A,C,L);return L.delete(c),J;case Gt:if(vu)return vu.call(c)==vu.call(u)}return!1}o(K4,"equalByTag");function X4(c,u,g,T,A,C){var L=g&v,N=Yv(c),M=N.length,z=Yv(u),J=z.length;if(M!=J&&!L)return!1;for(var ne=M;ne--;){var me=N[ne];if(!(L?me in u:Dt.call(u,me)))return!1}var Re=C.get(c),Me=C.get(u);if(Re&&Me)return Re==u&&Me==c;var nt=!0;C.set(c,u),C.set(u,c);for(var ke=L;++ne<M;){me=N[ne];var lt=c[me],mt=u[me];if(T)var Tr=L?T(mt,lt,me,u,c,C):T(lt,mt,me,c,u,C);if(!(Tr===e?lt===mt||A(lt,mt,g,T,C):Tr)){nt=!1;break}ke||(ke=me=="constructor")}if(nt&&!ke){var _i=c.constructor,vr=u.constructor;_i!=vr&&"constructor"in c&&"constructor"in u&&!(typeof _i=="function"&&_i instanceof _i&&typeof vr=="function"&&vr instanceof vr)&&(nt=!1)}return C.delete(c),C.delete(u),nt}o(X4,"equalObjects");function fa(c){return rb(GR(c,e,ZR),c+"")}o(fa,"flatRest");function Yv(c){return rR(c,Yn,eb)}o(Yv,"getAllKeys");function zv(c){return rR(c,Yi,jR)}o(zv,"getAllKeysIn");var Jv=xg?function(c){return xg.get(c)}:yb;function jg(c){for(var u=c.name+"",g=El[u],T=Dt.call(El,u)?g.length:0;T--;){var A=g[T],C=A.func;if(C==null||C==c)return A.name}return u}o(jg,"getFuncName");function Il(c){var u=Dt.call(x,"placeholder")?x:c;return u.placeholder}o(Il,"getHolder");function Ve(){var c=x.iteratee||mb;return c=c===mb?sR:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Ug(c,u){var g=c.__data__;return t$(u)?g[typeof u=="string"?"string":"hash"]:g.map}o(Ug,"getMapData");function Zv(c){for(var u=Yn(c),g=u.length;g--;){var T=u[g],A=c[T];u[g]=[T,A,BR(A)]}return u}o(Zv,"getMatchData");function hc(c,u){var g=n2(c,u);return aR(g)?g:e}o(hc,"getNative");function Q4(c){var u=Dt.call(c,uc),g=c[uc];try{c[uc]=e;var T=!0}catch{}var A=yg.call(c);return T&&(u?c[uc]=g:delete c[uc]),A}o(Q4,"getRawTag");var eb=Iv?function(c){return c==null?[]:(c=Kt(c),za(Iv(c),function(u){return WO.call(c,u)}))}:Tb,jR=Iv?function(c){for(var u=[];c;)Ja(u,eb(c)),c=bg(c);return u}:Tb,Ai=Ni;(Ov&&Ai(new Ov(new ArrayBuffer(1)))!=Vr||hu&&Ai(new hu)!=ze||Rv&&Ai(Rv.resolve())!=Ht||Al&&Ai(new Al)!=hn||yu&&Ai(new yu)!=Xi)&&(Ai=o(function(c){var u=Ni(c),g=u==un?c.constructor:e,T=g?yc(g):"";if(T)switch(T){case R2:return Vr;case L2:return ze;case F2:return Ht;case N2:return hn;case D2:return Xi}return u},"getTag"));function q4(c,u,g){for(var T=-1,A=g.length;++T<A;){var C=g[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":u-=L;break;case"take":u=Si(u,c+L);break;case"takeRight":c=Wn(c,u-L);break}}return{start:c,end:u}}o(q4,"getView");function Y4(c){var u=c.match(eU);return u?u[1].split(tU):[]}o(Y4,"getWrapDetails");function UR(c,u,g){u=rs(u,c);for(var T=-1,A=u.length,C=!1;++T<A;){var L=_o(u[T]);if(!(C=c!=null&&g(c,L)))break;c=c[L]}return C||++T!=A?C:(A=c==null?0:c.length,!!A&&Xg(A)&&ua(L,A)&&(Ye(c)||Tc(c)))}o(UR,"hasPath");function z4(c){var u=c.length,g=new c.constructor(u);return u&&typeof c[0]=="string"&&Dt.call(c,"index")&&(g.index=c.index,g.input=c.input),g}o(z4,"initCloneArray");function $R(c){return typeof c.constructor=="function"&&!Cu(c)?Pl(bg(c)):{}}o($R,"initCloneObject");function J4(c,u,g){var T=c.constructor;switch(u){case cc:return Xv(c);case O:case E:return new T(+c);case Vr:return V4(c,g);case fu:case uu:case pu:case lc:case k:case B:case q:case ce:case Ne:return ER(c,g);case ze:return new T;case kt:case bi:return new T(c);case pr:return w4(c);case hn:return new T;case Gt:return M4(c)}}o(J4,"initCloneByTag");function Z4(c,u){var g=u.length;if(!g)return c;var T=g-1;return u[T]=(g>1?"& ":"")+u[T],u=u.join(g>2?", ":" "),c.replace(Zj,`{
269
+ `],lineTerminatorsPattern:/\n|\r\n/g});GM.exports={xmlLexer:lY,tokensDictionary:$M}});var KM=Ze((bge,WM)=>{var{CstParser:fY,tokenMatcher:uY}=(hT(),zg(mT)),{tokensDictionary:Ct}=fx(),px=class px extends fY{constructor(){super(Ct,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>uY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(px,"Parser");var ux=px,pY=new ux;WM.exports={xmlParser:pY}});var dx=Ze((Age,XM)=>{var{xmlLexer:dY}=fx(),{xmlParser:yT}=KM();XM.exports={parse:o(function(t){let n=dY.tokenize(t);return yT.input=n.tokens,{cst:yT.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:yT.errors}},"parse"),BaseXmlCstVisitor:yT.getBaseCstVisitorConstructor()}});var ud=Ze((Vf,fd)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,d=2,m=4,v=1,S=2,b=1,I=2,F=4,j=8,W=16,U=32,se=64,ee=128,le=256,Le=512,D=30,Ue="...",$e=800,qe=16,rn=1,Bt=2,At=3,Yt=1/0,Fe=9007199254740991,vn=17976931348623157e292,bn=NaN,on=4294967295,Rn=on-1,an=on>>>1,Oe=[["ary",ee],["bind",b],["bindKey",I],["curry",j],["curryRight",W],["flip",Le],["partial",U],["partialRight",se],["rearg",le]],fn="[object Arguments]",Fi="[object Array]",tt="[object AsyncFunction]",O="[object Boolean]",E="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Nt="[object GeneratorFunction]",ze="[object Map]",kt="[object Number]",Sn="[object Null]",un="[object Object]",Ht="[object Promise]",ii="[object Proxy]",pr="[object RegExp]",hn="[object Set]",bi="[object String]",Gt="[object Symbol]",oa="[object Undefined]",Xi="[object WeakMap]",lu="[object WeakSet]",cc="[object ArrayBuffer]",Vr="[object DataView]",fu="[object Float32Array]",uu="[object Float64Array]",pu="[object Int8Array]",lc="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Ne="[object Uint32Array]",yn=/\b__p \+= '';/g,Ln=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Pe=RegExp(he.source),Ie=RegExp(be.source),st=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,pn=/<%=([\s\S]+?)%>/g,dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sg=/^\w*$/,cv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,du=/[\\^$.*+?()[\]{}|]/g,zj=RegExp(du.source),lv=/^\s+/,Jj=/\s/,Zj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eU=/\{\n\/\* \[wrapped with (.+)\] \*/,tU=/,? & /,nU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,iU=/[()=,{}\[\]\/\s]/,rU=/\\(\\)?/g,oU=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oO=/\w*$/,aU=/^[-+]0x[0-9a-f]+$/i,sU=/^0b[01]+$/i,cU=/^\[object .+?Constructor\]$/,lU=/^0o[0-7]+$/i,fU=/^(?:0|[1-9]\d*)$/,uU=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cg=/($^)/,pU=/['\n\r\u2028\u2029\\]/g,lg="\\ud800-\\udfff",dU="\\u0300-\\u036f",gU="\\ufe20-\\ufe2f",mU="\\u20d0-\\u20ff",aO=dU+gU+mU,sO="\\u2700-\\u27bf",cO="a-z\\xdf-\\xf6\\xf8-\\xff",hU="\\xac\\xb1\\xd7\\xf7",yU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TU="\\u2000-\\u206f",vU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lO="A-Z\\xc0-\\xd6\\xd8-\\xde",fO="\\ufe0e\\ufe0f",uO=hU+yU+TU+vU,fv="['\u2019]",bU="["+lg+"]",pO="["+uO+"]",fg="["+aO+"]",dO="\\d+",SU="["+sO+"]",gO="["+cO+"]",mO="[^"+lg+uO+dO+sO+cO+lO+"]",uv="\\ud83c[\\udffb-\\udfff]",AU="(?:"+fg+"|"+uv+")",hO="[^"+lg+"]",pv="(?:\\ud83c[\\udde6-\\uddff]){2}",dv="[\\ud800-\\udbff][\\udc00-\\udfff]",yl="["+lO+"]",yO="\\u200d",TO="(?:"+gO+"|"+mO+")",EU="(?:"+yl+"|"+mO+")",vO="(?:"+fv+"(?:d|ll|m|re|s|t|ve))?",bO="(?:"+fv+"(?:D|LL|M|RE|S|T|VE))?",SO=AU+"?",AO="["+fO+"]?",PU="(?:"+yO+"(?:"+[hO,pv,dv].join("|")+")"+AO+SO+")*",xU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",CU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EO=AO+SO+PU,IU="(?:"+[SU,pv,dv].join("|")+")"+EO,OU="(?:"+[hO+fg+"?",fg,pv,dv,bU].join("|")+")",RU=RegExp(fv,"g"),LU=RegExp(fg,"g"),gv=RegExp(uv+"(?="+uv+")|"+OU+EO,"g"),FU=RegExp([yl+"?"+gO+"+"+vO+"(?="+[pO,yl,"$"].join("|")+")",EU+"+"+bO+"(?="+[pO,yl+TO,"$"].join("|")+")",yl+"?"+TO+"+"+vO,yl+"+"+bO,CU,xU,dO,IU].join("|"),"g"),NU=RegExp("["+yO+lg+aO+fO+"]"),DU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_U=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],VU=-1,sn={};sn[fu]=sn[uu]=sn[pu]=sn[lc]=sn[k]=sn[B]=sn[q]=sn[ce]=sn[Ne]=!0,sn[fn]=sn[Fi]=sn[cc]=sn[O]=sn[Vr]=sn[E]=sn[V]=sn[_e]=sn[ze]=sn[kt]=sn[un]=sn[pr]=sn[hn]=sn[bi]=sn[Xi]=!1;var zt={};zt[fn]=zt[Fi]=zt[cc]=zt[Vr]=zt[O]=zt[E]=zt[fu]=zt[uu]=zt[pu]=zt[lc]=zt[k]=zt[ze]=zt[kt]=zt[un]=zt[pr]=zt[hn]=zt[bi]=zt[Gt]=zt[B]=zt[q]=zt[ce]=zt[Ne]=!0,zt[V]=zt[_e]=zt[Xi]=!1;var wU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},MU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kU={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UU=parseFloat,$U=parseInt,PO=typeof global=="object"&&global&&global.Object===Object&&global,BU=typeof self=="object"&&self&&self.Object===Object&&self,qn=PO||BU||Function("return this")(),mv=typeof Vf=="object"&&Vf&&!Vf.nodeType&&Vf,fc=mv&&typeof fd=="object"&&fd&&!fd.nodeType&&fd,xO=fc&&fc.exports===mv,hv=xO&&PO.process,wr=(function(){try{var w=fc&&fc.require&&fc.require("util").types;return w||hv&&hv.binding&&hv.binding("util")}catch{}})(),CO=wr&&wr.isArrayBuffer,IO=wr&&wr.isDate,OO=wr&&wr.isMap,RO=wr&&wr.isRegExp,LO=wr&&wr.isSet,FO=wr&&wr.isTypedArray;function gr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(gr,"apply");function HU(w,X,K,Ae){for(var Xe=-1,Et=w==null?0:w.length;++Xe<Et;){var Gn=w[Xe];X(Ae,Gn,K(Gn),w)}return Ae}o(HU,"arrayAggregator");function Mr(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae&&X(w[K],K,w)!==!1;);return w}o(Mr,"arrayEach");function GU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(GU,"arrayEachRight");function NO(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(!X(w[K],K,w))return!1;return!0}o(NO,"arrayEvery");function Ja(w,X){for(var K=-1,Ae=w==null?0:w.length,Xe=0,Et=[];++K<Ae;){var Gn=w[K];X(Gn,K,w)&&(Et[Xe++]=Gn)}return Et}o(Ja,"arrayFilter");function ug(w,X){var K=w==null?0:w.length;return!!K&&Tl(w,X,0)>-1}o(ug,"arrayIncludes");function yv(w,X,K){for(var Ae=-1,Xe=w==null?0:w.length;++Ae<Xe;)if(K(X,w[Ae]))return!0;return!1}o(yv,"arrayIncludesWith");function dn(w,X){for(var K=-1,Ae=w==null?0:w.length,Xe=Array(Ae);++K<Ae;)Xe[K]=X(w[K],K,w);return Xe}o(dn,"arrayMap");function Za(w,X){for(var K=-1,Ae=X.length,Xe=w.length;++K<Ae;)w[Xe+K]=X[K];return w}o(Za,"arrayPush");function Tv(w,X,K,Ae){var Xe=-1,Et=w==null?0:w.length;for(Ae&&Et&&(K=w[++Xe]);++Xe<Et;)K=X(K,w[Xe],Xe,w);return K}o(Tv,"arrayReduce");function WU(w,X,K,Ae){var Xe=w==null?0:w.length;for(Ae&&Xe&&(K=w[--Xe]);Xe--;)K=X(K,w[Xe],Xe,w);return K}o(WU,"arrayReduceRight");function vv(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(X(w[K],K,w))return!0;return!1}o(vv,"arraySome");var KU=bv("length");function XU(w){return w.split("")}o(XU,"asciiToArray");function QU(w){return w.match(nU)||[]}o(QU,"asciiWords");function DO(w,X,K){var Ae;return K(w,function(Xe,Et,Gn){if(X(Xe,Et,Gn))return Ae=Et,!1}),Ae}o(DO,"baseFindKey");function pg(w,X,K,Ae){for(var Xe=w.length,Et=K+(Ae?1:-1);Ae?Et--:++Et<Xe;)if(X(w[Et],Et,w))return Et;return-1}o(pg,"baseFindIndex");function Tl(w,X,K){return X===X?a2(w,X,K):pg(w,_O,K)}o(Tl,"baseIndexOf");function qU(w,X,K,Ae){for(var Xe=K-1,Et=w.length;++Xe<Et;)if(Ae(w[Xe],X))return Xe;return-1}o(qU,"baseIndexOfWith");function _O(w){return w!==w}o(_O,"baseIsNaN");function VO(w,X){var K=w==null?0:w.length;return K?Av(w,X)/K:bn}o(VO,"baseMean");function bv(w){return function(X){return X==null?e:X[w]}}o(bv,"baseProperty");function Sv(w){return function(X){return w==null?e:w[X]}}o(Sv,"basePropertyOf");function wO(w,X,K,Ae,Xe){return Xe(w,function(Et,Gn,Kt){K=Ae?(Ae=!1,Et):X(K,Et,Gn,Kt)}),K}o(wO,"baseReduce");function YU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(YU,"baseSortBy");function Av(w,X){for(var K,Ae=-1,Xe=w.length;++Ae<Xe;){var Et=X(w[Ae]);Et!==e&&(K=K===e?Et:K+Et)}return K}o(Av,"baseSum");function Ev(w,X){for(var K=-1,Ae=Array(w);++K<w;)Ae[K]=X(K);return Ae}o(Ev,"baseTimes");function zU(w,X){return dn(X,function(K){return[K,w[K]]})}o(zU,"baseToPairs");function MO(w){return w&&w.slice(0,$O(w)+1).replace(lv,"")}o(MO,"baseTrim");function mr(w){return function(X){return w(X)}}o(mr,"baseUnary");function Pv(w,X){return dn(X,function(K){return w[K]})}o(Pv,"baseValues");function gu(w,X){return w.has(X)}o(gu,"cacheHas");function kO(w,X){for(var K=-1,Ae=w.length;++K<Ae&&Tl(X,w[K],0)>-1;);return K}o(kO,"charsStartIndex");function jO(w,X){for(var K=w.length;K--&&Tl(X,w[K],0)>-1;);return K}o(jO,"charsEndIndex");function JU(w,X){for(var K=w.length,Ae=0;K--;)w[K]===X&&++Ae;return Ae}o(JU,"countHolders");var ZU=Sv(wU),e2=Sv(MU);function t2(w){return"\\"+jU[w]}o(t2,"escapeStringChar");function n2(w,X){return w==null?e:w[X]}o(n2,"getValue");function vl(w){return NU.test(w)}o(vl,"hasUnicode");function i2(w){return DU.test(w)}o(i2,"hasUnicodeWord");function r2(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(r2,"iteratorToArray");function xv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae,Xe){K[++X]=[Xe,Ae]}),K}o(xv,"mapToArray");function UO(w,X){return function(K){return w(X(K))}}o(UO,"overArg");function es(w,X){for(var K=-1,Ae=w.length,Xe=0,Et=[];++K<Ae;){var Gn=w[K];(Gn===X||Gn===f)&&(w[K]=f,Et[Xe++]=K)}return Et}o(es,"replaceHolders");function dg(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=Ae}),K}o(dg,"setToArray");function o2(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=[Ae,Ae]}),K}o(o2,"setToPairs");function a2(w,X,K){for(var Ae=K-1,Xe=w.length;++Ae<Xe;)if(w[Ae]===X)return Ae;return-1}o(a2,"strictIndexOf");function s2(w,X,K){for(var Ae=K+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(s2,"strictLastIndexOf");function bl(w){return vl(w)?l2(w):KU(w)}o(bl,"stringSize");function fo(w){return vl(w)?f2(w):XU(w)}o(fo,"stringToArray");function $O(w){for(var X=w.length;X--&&Jj.test(w.charAt(X)););return X}o($O,"trimmedEndIndex");var c2=Sv(kU);function l2(w){for(var X=gv.lastIndex=0;gv.test(w);)++X;return X}o(l2,"unicodeSize");function f2(w){return w.match(gv)||[]}o(f2,"unicodeToArray");function u2(w){return w.match(FU)||[]}o(u2,"unicodeWords");var p2=o((function w(X){X=X==null?qn:ts.defaults(qn.Object(),X,ts.pick(qn,_U));var K=X.Array,Ae=X.Date,Xe=X.Error,Et=X.Function,Gn=X.Math,Kt=X.Object,Cv=X.RegExp,d2=X.String,kr=X.TypeError,gg=K.prototype,g2=Et.prototype,Sl=Kt.prototype,mg=X["__core-js_shared__"],hg=g2.toString,Dt=Sl.hasOwnProperty,m2=0,BO=(function(){var c=/[^.]+$/.exec(mg&&mg.keys&&mg.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),yg=Sl.toString,h2=hg.call(Kt),y2=qn._,T2=Cv("^"+hg.call(Dt).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tg=xO?X.Buffer:e,ns=X.Symbol,vg=X.Uint8Array,HO=Tg?Tg.allocUnsafe:e,bg=UO(Kt.getPrototypeOf,Kt),GO=Kt.create,WO=Sl.propertyIsEnumerable,Sg=gg.splice,KO=ns?ns.isConcatSpreadable:e,mu=ns?ns.iterator:e,uc=ns?ns.toStringTag:e,Ag=(function(){try{var c=hc(Kt,"defineProperty");return c({},"",{}),c}catch{}})(),b2=X.clearTimeout!==qn.clearTimeout&&X.clearTimeout,S2=Ae&&Ae.now!==qn.Date.now&&Ae.now,A2=X.setTimeout!==qn.setTimeout&&X.setTimeout,Eg=Gn.ceil,Pg=Gn.floor,Iv=Kt.getOwnPropertySymbols,E2=Tg?Tg.isBuffer:e,XO=X.isFinite,P2=gg.join,x2=UO(Kt.keys,Kt),Wn=Gn.max,Si=Gn.min,C2=Ae.now,I2=X.parseInt,QO=Gn.random,O2=gg.reverse,Ov=hc(X,"DataView"),hu=hc(X,"Map"),Rv=hc(X,"Promise"),Al=hc(X,"Set"),yu=hc(X,"WeakMap"),Tu=hc(Kt,"create"),xg=yu&&new yu,El={},R2=yc(Ov),L2=yc(hu),F2=yc(Rv),N2=yc(Al),D2=yc(yu),Cg=ns?ns.prototype:e,vu=Cg?Cg.valueOf:e,qO=Cg?Cg.toString:e;function x(c){if(An(c)&&!Ye(c)&&!(c instanceof gt)){if(c instanceof jr)return c;if(Dt.call(c,"__wrapped__"))return YR(c)}return new jr(c)}o(x,"lodash");var Pl=(function(){function c(){}return o(c,"object"),function(u){if(!Tn(u))return{};if(GO)return GO(u);c.prototype=u;var g=new c;return c.prototype=e,g}})();function Ig(){}o(Ig,"baseLodash");function jr(c,u){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=e}o(jr,"LodashWrapper"),x.templateSettings={escape:st,evaluate:Wt,interpolate:pn,variable:"",imports:{_:x}},x.prototype=Ig.prototype,x.prototype.constructor=x,jr.prototype=Pl(Ig.prototype),jr.prototype.constructor=jr;function gt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=on,this.__views__=[]}o(gt,"LazyWrapper");function _2(){var c=new gt(this.__wrapped__);return c.__actions__=Qi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qi(this.__views__),c}o(_2,"lazyClone");function V2(){if(this.__filtered__){var c=new gt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(V2,"lazyReverse");function w2(){var c=this.__wrapped__.value(),u=this.__dir__,g=Ye(c),T=u<0,A=g?c.length:0,C=q4(0,A,this.__views__),L=C.start,N=C.end,M=N-L,z=T?N:L-1,J=this.__iteratees__,ne=J.length,me=0,Re=Si(M,this.__takeCount__);if(!g||!T&&A==M&&Re==M)return vR(c,this.__actions__);var Me=[];e:for(;M--&&me<Re;){z+=u;for(var nt=-1,ke=c[z];++nt<ne;){var lt=J[nt],mt=lt.iteratee,Tr=lt.type,_i=mt(ke);if(Tr==Bt)ke=_i;else if(!_i){if(Tr==rn)continue e;break e}}Me[me++]=ke}return Me}o(w2,"lazyValue"),gt.prototype=Pl(Ig.prototype),gt.prototype.constructor=gt;function pc(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(pc,"Hash");function M2(){this.__data__=Tu?Tu(null):{},this.size=0}o(M2,"hashClear");function k2(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}o(k2,"hashDelete");function j2(c){var u=this.__data__;if(Tu){var g=u[c];return g===s?e:g}return Dt.call(u,c)?u[c]:e}o(j2,"hashGet");function U2(c){var u=this.__data__;return Tu?u[c]!==e:Dt.call(u,c)}o(U2,"hashHas");function $2(c,u){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Tu&&u===e?s:u,this}o($2,"hashSet"),pc.prototype.clear=M2,pc.prototype.delete=k2,pc.prototype.get=j2,pc.prototype.has=U2,pc.prototype.set=$2;function aa(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(aa,"ListCache");function B2(){this.__data__=[],this.size=0}o(B2,"listCacheClear");function H2(c){var u=this.__data__,g=Og(u,c);if(g<0)return!1;var T=u.length-1;return g==T?u.pop():Sg.call(u,g,1),--this.size,!0}o(H2,"listCacheDelete");function G2(c){var u=this.__data__,g=Og(u,c);return g<0?e:u[g][1]}o(G2,"listCacheGet");function W2(c){return Og(this.__data__,c)>-1}o(W2,"listCacheHas");function K2(c,u){var g=this.__data__,T=Og(g,c);return T<0?(++this.size,g.push([c,u])):g[T][1]=u,this}o(K2,"listCacheSet"),aa.prototype.clear=B2,aa.prototype.delete=H2,aa.prototype.get=G2,aa.prototype.has=W2,aa.prototype.set=K2;function sa(c){var u=-1,g=c==null?0:c.length;for(this.clear();++u<g;){var T=c[u];this.set(T[0],T[1])}}o(sa,"MapCache");function X2(){this.size=0,this.__data__={hash:new pc,map:new(hu||aa),string:new pc}}o(X2,"mapCacheClear");function Q2(c){var u=Ug(this,c).delete(c);return this.size-=u?1:0,u}o(Q2,"mapCacheDelete");function q2(c){return Ug(this,c).get(c)}o(q2,"mapCacheGet");function Y2(c){return Ug(this,c).has(c)}o(Y2,"mapCacheHas");function z2(c,u){var g=Ug(this,c),T=g.size;return g.set(c,u),this.size+=g.size==T?0:1,this}o(z2,"mapCacheSet"),sa.prototype.clear=X2,sa.prototype.delete=Q2,sa.prototype.get=q2,sa.prototype.has=Y2,sa.prototype.set=z2;function dc(c){var u=-1,g=c==null?0:c.length;for(this.__data__=new sa;++u<g;)this.add(c[u])}o(dc,"SetCache");function J2(c){return this.__data__.set(c,s),this}o(J2,"setCacheAdd");function Z2(c){return this.__data__.has(c)}o(Z2,"setCacheHas"),dc.prototype.add=dc.prototype.push=J2,dc.prototype.has=Z2;function uo(c){var u=this.__data__=new aa(c);this.size=u.size}o(uo,"Stack");function e4(){this.__data__=new aa,this.size=0}o(e4,"stackClear");function t4(c){var u=this.__data__,g=u.delete(c);return this.size=u.size,g}o(t4,"stackDelete");function n4(c){return this.__data__.get(c)}o(n4,"stackGet");function i4(c){return this.__data__.has(c)}o(i4,"stackHas");function r4(c,u){var g=this.__data__;if(g instanceof aa){var T=g.__data__;if(!hu||T.length<n-1)return T.push([c,u]),this.size=++g.size,this;g=this.__data__=new sa(T)}return g.set(c,u),this.size=g.size,this}o(r4,"stackSet"),uo.prototype.clear=e4,uo.prototype.delete=t4,uo.prototype.get=n4,uo.prototype.has=i4,uo.prototype.set=r4;function YO(c,u){var g=Ye(c),T=!g&&Tc(c),A=!g&&!T&&ss(c),C=!g&&!T&&!A&&Ol(c),L=g||T||A||C,N=L?Ev(c.length,d2):[],M=N.length;for(var z in c)(u||Dt.call(c,z))&&!(L&&(z=="length"||A&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ua(z,M)))&&N.push(z);return N}o(YO,"arrayLikeKeys");function zO(c){var u=c.length;return u?c[Uv(0,u-1)]:e}o(zO,"arraySample");function o4(c,u){return $g(Qi(c),gc(u,0,c.length))}o(o4,"arraySampleSize");function a4(c){return $g(Qi(c))}o(a4,"arrayShuffle");function Lv(c,u,g){(g!==e&&!po(c[u],g)||g===e&&!(u in c))&&ca(c,u,g)}o(Lv,"assignMergeValue");function bu(c,u,g){var T=c[u];(!(Dt.call(c,u)&&po(T,g))||g===e&&!(u in c))&&ca(c,u,g)}o(bu,"assignValue");function Og(c,u){for(var g=c.length;g--;)if(po(c[g][0],u))return g;return-1}o(Og,"assocIndexOf");function s4(c,u,g,T){return is(c,function(A,C,L){u(T,A,g(A),L)}),T}o(s4,"baseAggregator");function JO(c,u){return c&&Do(u,Yn(u),c)}o(JO,"baseAssign");function c4(c,u){return c&&Do(u,Yi(u),c)}o(c4,"baseAssignIn");function ca(c,u,g){u=="__proto__"&&Ag?Ag(c,u,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[u]=g}o(ca,"baseAssignValue");function Fv(c,u){for(var g=-1,T=u.length,A=K(T),C=c==null;++g<T;)A[g]=C?e:ub(c,u[g]);return A}o(Fv,"baseAt");function gc(c,u,g){return c===c&&(g!==e&&(c=c<=g?c:g),u!==e&&(c=c>=u?c:u)),c}o(gc,"baseClamp");function Ur(c,u,g,T,A,C){var L,N=u&p,M=u&d,z=u&m;if(g&&(L=A?g(c,T,A,C):g(c)),L!==e)return L;if(!Tn(c))return c;var J=Ye(c);if(J){if(L=z4(c),!N)return Qi(c,L)}else{var ne=Ai(c),me=ne==_e||ne==Nt;if(ss(c))return AR(c,N);if(ne==un||ne==fn||me&&!A){if(L=M||me?{}:$R(c),!N)return M?U4(c,c4(L,c)):j4(c,JO(L,c))}else{if(!zt[ne])return A?c:{};L=J4(c,ne,N)}}C||(C=new uo);var Re=C.get(c);if(Re)return Re;C.set(c,L),hL(c)?c.forEach(function(ke){L.add(Ur(ke,u,g,ke,c,C))}):gL(c)&&c.forEach(function(ke,lt){L.set(lt,Ur(ke,u,g,lt,c,C))});var Me=z?M?zv:Yv:M?Yi:Yn,nt=J?e:Me(c);return Mr(nt||c,function(ke,lt){nt&&(lt=ke,ke=c[lt]),bu(L,lt,Ur(ke,u,g,lt,c,C))}),L}o(Ur,"baseClone");function l4(c){var u=Yn(c);return function(g){return ZO(g,c,u)}}o(l4,"baseConforms");function ZO(c,u,g){var T=g.length;if(c==null)return!T;for(c=Kt(c);T--;){var A=g[T],C=u[A],L=c[A];if(L===e&&!(A in c)||!C(L))return!1}return!0}o(ZO,"baseConformsTo");function eR(c,u,g){if(typeof c!="function")throw new kr(r);return Iu(function(){c.apply(e,g)},u)}o(eR,"baseDelay");function Su(c,u,g,T){var A=-1,C=ug,L=!0,N=c.length,M=[],z=u.length;if(!N)return M;g&&(u=dn(u,mr(g))),T?(C=yv,L=!1):u.length>=n&&(C=gu,L=!1,u=new dc(u));e:for(;++A<N;){var J=c[A],ne=g==null?J:g(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var me=z;me--;)if(u[me]===ne)continue e;M.push(J)}else C(u,ne,T)||M.push(J)}return M}o(Su,"baseDifference");var is=IR(No),tR=IR(Dv,!0);function f4(c,u){var g=!0;return is(c,function(T,A,C){return g=!!u(T,A,C),g}),g}o(f4,"baseEvery");function Rg(c,u,g){for(var T=-1,A=c.length;++T<A;){var C=c[T],L=u(C);if(L!=null&&(N===e?L===L&&!yr(L):g(L,N)))var N=L,M=C}return M}o(Rg,"baseExtremum");function u4(c,u,g,T){var A=c.length;for(g=et(g),g<0&&(g=-g>A?0:A+g),T=T===e||T>A?A:et(T),T<0&&(T+=A),T=g>T?0:TL(T);g<T;)c[g++]=u;return c}o(u4,"baseFill");function nR(c,u){var g=[];return is(c,function(T,A,C){u(T,A,C)&&g.push(T)}),g}o(nR,"baseFilter");function ri(c,u,g,T,A){var C=-1,L=c.length;for(g||(g=e$),A||(A=[]);++C<L;){var N=c[C];u>0&&g(N)?u>1?ri(N,u-1,g,T,A):Za(A,N):T||(A[A.length]=N)}return A}o(ri,"baseFlatten");var Nv=OR(),iR=OR(!0);function No(c,u){return c&&Nv(c,u,Yn)}o(No,"baseForOwn");function Dv(c,u){return c&&iR(c,u,Yn)}o(Dv,"baseForOwnRight");function Lg(c,u){return Ja(u,function(g){return pa(c[g])})}o(Lg,"baseFunctions");function mc(c,u){u=os(u,c);for(var g=0,T=u.length;c!=null&&g<T;)c=c[_o(u[g++])];return g&&g==T?c:e}o(mc,"baseGet");function rR(c,u,g){var T=u(c);return Ye(c)?T:Za(T,g(c))}o(rR,"baseGetAllKeys");function Ni(c){return c==null?c===e?oa:Sn:uc&&uc in Kt(c)?Q4(c):s$(c)}o(Ni,"baseGetTag");function _v(c,u){return c>u}o(_v,"baseGt");function p4(c,u){return c!=null&&Dt.call(c,u)}o(p4,"baseHas");function d4(c,u){return c!=null&&u in Kt(c)}o(d4,"baseHasIn");function g4(c,u,g){return c>=Si(u,g)&&c<Wn(u,g)}o(g4,"baseInRange");function Vv(c,u,g){for(var T=g?yv:ug,A=c[0].length,C=c.length,L=C,N=K(C),M=1/0,z=[];L--;){var J=c[L];L&&u&&(J=dn(J,mr(u))),M=Si(J.length,M),N[L]=!g&&(u||A>=120&&J.length>=120)?new dc(L&&J):e}J=c[0];var ne=-1,me=N[0];e:for(;++ne<A&&z.length<M;){var Re=J[ne],Me=u?u(Re):Re;if(Re=g||Re!==0?Re:0,!(me?gu(me,Me):T(z,Me,g))){for(L=C;--L;){var nt=N[L];if(!(nt?gu(nt,Me):T(c[L],Me,g)))continue e}me&&me.push(Me),z.push(Re)}}return z}o(Vv,"baseIntersection");function m4(c,u,g,T){return No(c,function(A,C,L){u(T,g(A),C,L)}),T}o(m4,"baseInverter");function Au(c,u,g){u=os(u,c),c=WR(c,u);var T=c==null?c:c[_o(Br(u))];return T==null?e:gr(T,c,g)}o(Au,"baseInvoke");function oR(c){return An(c)&&Ni(c)==fn}o(oR,"baseIsArguments");function h4(c){return An(c)&&Ni(c)==cc}o(h4,"baseIsArrayBuffer");function y4(c){return An(c)&&Ni(c)==E}o(y4,"baseIsDate");function Eu(c,u,g,T,A){return c===u?!0:c==null||u==null||!An(c)&&!An(u)?c!==c&&u!==u:T4(c,u,g,T,Eu,A)}o(Eu,"baseIsEqual");function T4(c,u,g,T,A,C){var L=Ye(c),N=Ye(u),M=L?Fi:Ai(c),z=N?Fi:Ai(u);M=M==fn?un:M,z=z==fn?un:z;var J=M==un,ne=z==un,me=M==z;if(me&&ss(c)){if(!ss(u))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new uo),L||Ol(c)?kR(c,u,g,T,A,C):K4(c,u,M,g,T,A,C);if(!(g&v)){var Re=J&&Dt.call(c,"__wrapped__"),Me=ne&&Dt.call(u,"__wrapped__");if(Re||Me){var nt=Re?c.value():c,ke=Me?u.value():u;return C||(C=new uo),A(nt,ke,g,T,C)}}return me?(C||(C=new uo),X4(c,u,g,T,A,C)):!1}o(T4,"baseIsEqualDeep");function b4(c){return An(c)&&Ai(c)==ze}o(b4,"baseIsMap");function wv(c,u,g,T){var A=g.length,C=A,L=!T;if(c==null)return!C;for(c=Kt(c);A--;){var N=g[A];if(L&&N[2]?N[1]!==c[N[0]]:!(N[0]in c))return!1}for(;++A<C;){N=g[A];var M=N[0],z=c[M],J=N[1];if(L&&N[2]){if(z===e&&!(M in c))return!1}else{var ne=new uo;if(T)var me=T(z,J,M,c,u,ne);if(!(me===e?Eu(J,z,v|S,T,ne):me))return!1}}return!0}o(wv,"baseIsMatch");function aR(c){if(!Tn(c)||n$(c))return!1;var u=pa(c)?T2:cU;return u.test(yc(c))}o(aR,"baseIsNative");function S4(c){return An(c)&&Ni(c)==pr}o(S4,"baseIsRegExp");function A4(c){return An(c)&&Ai(c)==hn}o(A4,"baseIsSet");function E4(c){return An(c)&&Xg(c.length)&&!!sn[Ni(c)]}o(E4,"baseIsTypedArray");function sR(c){return typeof c=="function"?c:c==null?zi:typeof c=="object"?Ye(c)?fR(c[0],c[1]):lR(c):RL(c)}o(sR,"baseIteratee");function Mv(c){if(!Cu(c))return x2(c);var u=[];for(var g in Kt(c))Dt.call(c,g)&&g!="constructor"&&u.push(g);return u}o(Mv,"baseKeys");function P4(c){if(!Tn(c))return a$(c);var u=Cu(c),g=[];for(var T in c)T=="constructor"&&(u||!Dt.call(c,T))||g.push(T);return g}o(P4,"baseKeysIn");function kv(c,u){return c<u}o(kv,"baseLt");function cR(c,u){var g=-1,T=qi(c)?K(c.length):[];return is(c,function(A,C,L){T[++g]=u(A,C,L)}),T}o(cR,"baseMap");function lR(c){var u=Zv(c);return u.length==1&&u[0][2]?HR(u[0][0],u[0][1]):function(g){return g===c||wv(g,c,u)}}o(lR,"baseMatches");function fR(c,u){return tb(c)&&BR(u)?HR(_o(c),u):function(g){var T=ub(g,c);return T===e&&T===u?pb(g,c):Eu(u,T,v|S)}}o(fR,"baseMatchesProperty");function Fg(c,u,g,T,A){c!==u&&Nv(u,function(C,L){if(A||(A=new uo),Tn(C))x4(c,u,L,g,Fg,T,A);else{var N=T?T(ib(c,L),C,L+"",c,u,A):e;N===e&&(N=C),Lv(c,L,N)}},Yi)}o(Fg,"baseMerge");function x4(c,u,g,T,A,C,L){var N=ib(c,g),M=ib(u,g),z=L.get(M);if(z){Lv(c,g,z);return}var J=C?C(N,M,g+"",c,u,L):e,ne=J===e;if(ne){var me=Ye(M),Re=!me&&ss(M),Me=!me&&!Re&&Ol(M);J=M,me||Re||Me?Ye(N)?J=N:Fn(N)?J=Qi(N):Re?(ne=!1,J=AR(M,!0)):Me?(ne=!1,J=ER(M,!0)):J=[]:Ou(M)||Tc(M)?(J=N,Tc(N)?J=vL(N):(!Tn(N)||pa(N))&&(J=$R(M))):ne=!1}ne&&(L.set(M,J),A(J,M,T,C,L),L.delete(M)),Lv(c,g,J)}o(x4,"baseMergeDeep");function uR(c,u){var g=c.length;if(g)return u+=u<0?g:0,ua(u,g)?c[u]:e}o(uR,"baseNth");function pR(c,u,g){u.length?u=dn(u,function(C){return Ye(C)?function(L){return mc(L,C.length===1?C[0]:C)}:C}):u=[zi];var T=-1;u=dn(u,mr(Ve()));var A=cR(c,function(C,L,N){var M=dn(u,function(z){return z(C)});return{criteria:M,index:++T,value:C}});return YU(A,function(C,L){return k4(C,L,g)})}o(pR,"baseOrderBy");function C4(c,u){return dR(c,u,function(g,T){return pb(c,T)})}o(C4,"basePick");function dR(c,u,g){for(var T=-1,A=u.length,C={};++T<A;){var L=u[T],N=mc(c,L);g(N,L)&&Pu(C,os(L,c),N)}return C}o(dR,"basePickBy");function I4(c){return function(u){return mc(u,c)}}o(I4,"basePropertyDeep");function jv(c,u,g,T){var A=T?qU:Tl,C=-1,L=u.length,N=c;for(c===u&&(u=Qi(u)),g&&(N=dn(c,mr(g)));++C<L;)for(var M=0,z=u[C],J=g?g(z):z;(M=A(N,J,M,T))>-1;)N!==c&&Sg.call(N,M,1),Sg.call(c,M,1);return c}o(jv,"basePullAll");function gR(c,u){for(var g=c?u.length:0,T=g-1;g--;){var A=u[g];if(g==T||A!==C){var C=A;ua(A)?Sg.call(c,A,1):Hv(c,A)}}return c}o(gR,"basePullAt");function Uv(c,u){return c+Pg(QO()*(u-c+1))}o(Uv,"baseRandom");function O4(c,u,g,T){for(var A=-1,C=Wn(Eg((u-c)/(g||1)),0),L=K(C);C--;)L[T?C:++A]=c,c+=g;return L}o(O4,"baseRange");function $v(c,u){var g="";if(!c||u<1||u>Fe)return g;do u%2&&(g+=c),u=Pg(u/2),u&&(c+=c);while(u);return g}o($v,"baseRepeat");function rt(c,u){return rb(GR(c,u,zi),c+"")}o(rt,"baseRest");function R4(c){return zO(Rl(c))}o(R4,"baseSample");function L4(c,u){var g=Rl(c);return $g(g,gc(u,0,g.length))}o(L4,"baseSampleSize");function Pu(c,u,g,T){if(!Tn(c))return c;u=os(u,c);for(var A=-1,C=u.length,L=C-1,N=c;N!=null&&++A<C;){var M=_o(u[A]),z=g;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(A!=L){var J=N[M];z=T?T(J,M,N):e,z===e&&(z=Tn(J)?J:ua(u[A+1])?[]:{})}bu(N,M,z),N=N[M]}return c}o(Pu,"baseSet");var mR=xg?function(c,u){return xg.set(c,u),c}:zi,F4=Ag?function(c,u){return Ag(c,"toString",{configurable:!0,enumerable:!1,value:gb(u),writable:!0})}:zi;function N4(c){return $g(Rl(c))}o(N4,"baseShuffle");function $r(c,u,g){var T=-1,A=c.length;u<0&&(u=-u>A?0:A+u),g=g>A?A:g,g<0&&(g+=A),A=u>g?0:g-u>>>0,u>>>=0;for(var C=K(A);++T<A;)C[T]=c[T+u];return C}o($r,"baseSlice");function D4(c,u){var g;return is(c,function(T,A,C){return g=u(T,A,C),!g}),!!g}o(D4,"baseSome");function Ng(c,u,g){var T=0,A=c==null?T:c.length;if(typeof u=="number"&&u===u&&A<=an){for(;T<A;){var C=T+A>>>1,L=c[C];L!==null&&!yr(L)&&(g?L<=u:L<u)?T=C+1:A=C}return A}return Bv(c,u,zi,g)}o(Ng,"baseSortedIndex");function Bv(c,u,g,T){var A=0,C=c==null?0:c.length;if(C===0)return 0;u=g(u);for(var L=u!==u,N=u===null,M=yr(u),z=u===e;A<C;){var J=Pg((A+C)/2),ne=g(c[J]),me=ne!==e,Re=ne===null,Me=ne===ne,nt=yr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||me):N?ke=Me&&me&&(T||!Re):M?ke=Me&&me&&!Re&&(T||!nt):Re||nt?ke=!1:ke=T?ne<=u:ne<u;ke?A=J+1:C=J}return Si(C,Rn)}o(Bv,"baseSortedIndexBy");function hR(c,u){for(var g=-1,T=c.length,A=0,C=[];++g<T;){var L=c[g],N=u?u(L):L;if(!g||!po(N,M)){var M=N;C[A++]=L===0?0:L}}return C}o(hR,"baseSortedUniq");function yR(c){return typeof c=="number"?c:yr(c)?bn:+c}o(yR,"baseToNumber");function hr(c){if(typeof c=="string")return c;if(Ye(c))return dn(c,hr)+"";if(yr(c))return qO?qO.call(c):"";var u=c+"";return u=="0"&&1/c==-Yt?"-0":u}o(hr,"baseToString");function rs(c,u,g){var T=-1,A=ug,C=c.length,L=!0,N=[],M=N;if(g)L=!1,A=yv;else if(C>=n){var z=u?null:G4(c);if(z)return dg(z);L=!1,A=gu,M=new dc}else M=u?[]:N;e:for(;++T<C;){var J=c[T],ne=u?u(J):J;if(J=g||J!==0?J:0,L&&ne===ne){for(var me=M.length;me--;)if(M[me]===ne)continue e;u&&M.push(ne),N.push(J)}else A(M,ne,g)||(M!==N&&M.push(ne),N.push(J))}return N}o(rs,"baseUniq");function Hv(c,u){return u=os(u,c),c=WR(c,u),c==null||delete c[_o(Br(u))]}o(Hv,"baseUnset");function TR(c,u,g,T){return Pu(c,u,g(mc(c,u)),T)}o(TR,"baseUpdate");function Dg(c,u,g,T){for(var A=c.length,C=T?A:-1;(T?C--:++C<A)&&u(c[C],C,c););return g?$r(c,T?0:C,T?C+1:A):$r(c,T?C+1:0,T?A:C)}o(Dg,"baseWhile");function vR(c,u){var g=c;return g instanceof gt&&(g=g.value()),Tv(u,function(T,A){return A.func.apply(A.thisArg,Za([T],A.args))},g)}o(vR,"baseWrapperValue");function Gv(c,u,g){var T=c.length;if(T<2)return T?rs(c[0]):[];for(var A=-1,C=K(T);++A<T;)for(var L=c[A],N=-1;++N<T;)N!=A&&(C[A]=Su(C[A]||L,c[N],u,g));return rs(ri(C,1),u,g)}o(Gv,"baseXor");function bR(c,u,g){for(var T=-1,A=c.length,C=u.length,L={};++T<A;){var N=T<C?u[T]:e;g(L,c[T],N)}return L}o(bR,"baseZipObject");function Wv(c){return Fn(c)?c:[]}o(Wv,"castArrayLikeObject");function Kv(c){return typeof c=="function"?c:zi}o(Kv,"castFunction");function os(c,u){return Ye(c)?c:tb(c,u)?[c]:qR(It(c))}o(os,"castPath");var _4=rt;function as(c,u,g){var T=c.length;return g=g===e?T:g,!u&&g>=T?c:$r(c,u,g)}o(as,"castSlice");var SR=b2||function(c){return qn.clearTimeout(c)};function AR(c,u){if(u)return c.slice();var g=c.length,T=HO?HO(g):new c.constructor(g);return c.copy(T),T}o(AR,"cloneBuffer");function Xv(c){var u=new c.constructor(c.byteLength);return new vg(u).set(new vg(c)),u}o(Xv,"cloneArrayBuffer");function V4(c,u){var g=u?Xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}o(V4,"cloneDataView");function w4(c){var u=new c.constructor(c.source,oO.exec(c));return u.lastIndex=c.lastIndex,u}o(w4,"cloneRegExp");function M4(c){return vu?Kt(vu.call(c)):{}}o(M4,"cloneSymbol");function ER(c,u){var g=u?Xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}o(ER,"cloneTypedArray");function PR(c,u){if(c!==u){var g=c!==e,T=c===null,A=c===c,C=yr(c),L=u!==e,N=u===null,M=u===u,z=yr(u);if(!N&&!z&&!C&&c>u||C&&L&&M&&!N&&!z||T&&L&&M||!g&&M||!A)return 1;if(!T&&!C&&!z&&c<u||z&&g&&A&&!T&&!C||N&&g&&A||!L&&A||!M)return-1}return 0}o(PR,"compareAscending");function k4(c,u,g){for(var T=-1,A=c.criteria,C=u.criteria,L=A.length,N=g.length;++T<L;){var M=PR(A[T],C[T]);if(M){if(T>=N)return M;var z=g[T];return M*(z=="desc"?-1:1)}}return c.index-u.index}o(k4,"compareMultiple");function xR(c,u,g,T){for(var A=-1,C=c.length,L=g.length,N=-1,M=u.length,z=Wn(C-L,0),J=K(M+z),ne=!T;++N<M;)J[N]=u[N];for(;++A<L;)(ne||A<C)&&(J[g[A]]=c[A]);for(;z--;)J[N++]=c[A++];return J}o(xR,"composeArgs");function CR(c,u,g,T){for(var A=-1,C=c.length,L=-1,N=g.length,M=-1,z=u.length,J=Wn(C-N,0),ne=K(J+z),me=!T;++A<J;)ne[A]=c[A];for(var Re=A;++M<z;)ne[Re+M]=u[M];for(;++L<N;)(me||A<C)&&(ne[Re+g[L]]=c[A++]);return ne}o(CR,"composeArgsRight");function Qi(c,u){var g=-1,T=c.length;for(u||(u=K(T));++g<T;)u[g]=c[g];return u}o(Qi,"copyArray");function Do(c,u,g,T){var A=!g;g||(g={});for(var C=-1,L=u.length;++C<L;){var N=u[C],M=T?T(g[N],c[N],N,g,c):e;M===e&&(M=c[N]),A?ca(g,N,M):bu(g,N,M)}return g}o(Do,"copyObject");function j4(c,u){return Do(c,eb(c),u)}o(j4,"copySymbols");function U4(c,u){return Do(c,jR(c),u)}o(U4,"copySymbolsIn");function _g(c,u){return function(g,T){var A=Ye(g)?HU:s4,C=u?u():{};return A(g,c,Ve(T,2),C)}}o(_g,"createAggregator");function xl(c){return rt(function(u,g){var T=-1,A=g.length,C=A>1?g[A-1]:e,L=A>2?g[2]:e;for(C=c.length>3&&typeof C=="function"?(A--,C):e,L&&Di(g[0],g[1],L)&&(C=A<3?e:C,A=1),u=Kt(u);++T<A;){var N=g[T];N&&c(u,N,T,C)}return u})}o(xl,"createAssigner");function IR(c,u){return function(g,T){if(g==null)return g;if(!qi(g))return c(g,T);for(var A=g.length,C=u?A:-1,L=Kt(g);(u?C--:++C<A)&&T(L[C],C,L)!==!1;);return g}}o(IR,"createBaseEach");function OR(c){return function(u,g,T){for(var A=-1,C=Kt(u),L=T(u),N=L.length;N--;){var M=L[c?N:++A];if(g(C[M],M,C)===!1)break}return u}}o(OR,"createBaseFor");function $4(c,u,g){var T=u&b,A=xu(c);function C(){var L=this&&this!==qn&&this instanceof C?A:c;return L.apply(T?g:this,arguments)}return o(C,"wrapper"),C}o($4,"createBind");function RR(c){return function(u){u=It(u);var g=vl(u)?fo(u):e,T=g?g[0]:u.charAt(0),A=g?as(g,1).join(""):u.slice(1);return T[c]()+A}}o(RR,"createCaseFirst");function Cl(c){return function(u){return Tv(IL(CL(u).replace(RU,"")),c,"")}}o(Cl,"createCompounder");function xu(c){return function(){var u=arguments;switch(u.length){case 0:return new c;case 1:return new c(u[0]);case 2:return new c(u[0],u[1]);case 3:return new c(u[0],u[1],u[2]);case 4:return new c(u[0],u[1],u[2],u[3]);case 5:return new c(u[0],u[1],u[2],u[3],u[4]);case 6:return new c(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new c(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var g=Pl(c.prototype),T=c.apply(g,u);return Tn(T)?T:g}}o(xu,"createCtor");function B4(c,u,g){var T=xu(c);function A(){for(var C=arguments.length,L=K(C),N=C,M=Il(A);N--;)L[N]=arguments[N];var z=C<3&&L[0]!==M&&L[C-1]!==M?[]:es(L,M);if(C-=z.length,C<g)return _R(c,u,Vg,A.placeholder,e,L,z,e,e,g-C);var J=this&&this!==qn&&this instanceof A?T:c;return gr(J,this,L)}return o(A,"wrapper"),A}o(B4,"createCurry");function LR(c){return function(u,g,T){var A=Kt(u);if(!qi(u)){var C=Ve(g,3);u=Yn(u),g=o(function(N){return C(A[N],N,A)},"predicate")}var L=c(u,g,T);return L>-1?A[C?u[L]:L]:e}}o(LR,"createFind");function FR(c){return fa(function(u){var g=u.length,T=g,A=jr.prototype.thru;for(c&&u.reverse();T--;){var C=u[T];if(typeof C!="function")throw new kr(r);if(A&&!L&&jg(C)=="wrapper")var L=new jr([],!0)}for(T=L?T:g;++T<g;){C=u[T];var N=jg(C),M=N=="wrapper"?Jv(C):e;M&&nb(M[0])&&M[1]==(ee|j|U|le)&&!M[4].length&&M[9]==1?L=L[jg(M[0])].apply(L,M[3]):L=C.length==1&&nb(C)?L[N]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Ye(J))return L.plant(J).value();for(var ne=0,me=g?u[ne].apply(this,z):J;++ne<g;)me=u[ne].call(this,me);return me}})}o(FR,"createFlow");function Vg(c,u,g,T,A,C,L,N,M,z){var J=u&ee,ne=u&b,me=u&I,Re=u&(j|W),Me=u&Le,nt=me?e:xu(c);function ke(){for(var lt=arguments.length,mt=K(lt),Tr=lt;Tr--;)mt[Tr]=arguments[Tr];if(Re)var _i=Il(ke),vr=JU(mt,_i);if(T&&(mt=xR(mt,T,A,Re)),C&&(mt=CR(mt,C,L,Re)),lt-=vr,Re&&lt<z){var Nn=es(mt,_i);return _R(c,u,Vg,ke.placeholder,g,mt,Nn,N,M,z-lt)}var go=ne?g:this,ga=me?go[c]:c;return lt=mt.length,N?mt=c$(mt,N):Me&&lt>1&&mt.reverse(),J&&M<lt&&(mt.length=M),this&&this!==qn&&this instanceof ke&&(ga=nt||xu(ga)),ga.apply(go,mt)}return o(ke,"wrapper"),ke}o(Vg,"createHybrid");function NR(c,u){return function(g,T){return m4(g,c,u(T),{})}}o(NR,"createInverter");function wg(c,u){return function(g,T){var A;if(g===e&&T===e)return u;if(g!==e&&(A=g),T!==e){if(A===e)return T;typeof g=="string"||typeof T=="string"?(g=hr(g),T=hr(T)):(g=yR(g),T=yR(T)),A=c(g,T)}return A}}o(wg,"createMathOperation");function Qv(c){return fa(function(u){return u=dn(u,mr(Ve())),rt(function(g){var T=this;return c(u,function(A){return gr(A,T,g)})})})}o(Qv,"createOver");function Mg(c,u){u=u===e?" ":hr(u);var g=u.length;if(g<2)return g?$v(u,c):u;var T=$v(u,Eg(c/bl(u)));return vl(u)?as(fo(T),0,c).join(""):T.slice(0,c)}o(Mg,"createPadding");function H4(c,u,g,T){var A=u&b,C=xu(c);function L(){for(var N=-1,M=arguments.length,z=-1,J=T.length,ne=K(J+M),me=this&&this!==qn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;M--;)ne[z++]=arguments[++N];return gr(me,A?g:this,ne)}return o(L,"wrapper"),L}o(H4,"createPartial");function DR(c){return function(u,g,T){return T&&typeof T!="number"&&Di(u,g,T)&&(g=T=e),u=da(u),g===e?(g=u,u=0):g=da(g),T=T===e?u<g?1:-1:da(T),O4(u,g,T,c)}}o(DR,"createRange");function kg(c){return function(u,g){return typeof u=="string"&&typeof g=="string"||(u=Hr(u),g=Hr(g)),c(u,g)}}o(kg,"createRelationalOperation");function _R(c,u,g,T,A,C,L,N,M,z){var J=u&j,ne=J?L:e,me=J?e:L,Re=J?C:e,Me=J?e:C;u|=J?U:se,u&=~(J?se:U),u&F||(u&=~(b|I));var nt=[c,u,A,Re,ne,Me,me,N,M,z],ke=g.apply(e,nt);return nb(c)&&KR(ke,nt),ke.placeholder=T,XR(ke,c,u)}o(_R,"createRecurry");function qv(c){var u=Gn[c];return function(g,T){if(g=Hr(g),T=T==null?0:Si(et(T),292),T&&XO(g)){var A=(It(g)+"e").split("e"),C=u(A[0]+"e"+(+A[1]+T));return A=(It(C)+"e").split("e"),+(A[0]+"e"+(+A[1]-T))}return u(g)}}o(qv,"createRound");var G4=Al&&1/dg(new Al([,-0]))[1]==Yt?function(c){return new Al(c)}:yb;function VR(c){return function(u){var g=Ai(u);return g==ze?xv(u):g==hn?o2(u):zU(u,c(u))}}o(VR,"createToPairs");function la(c,u,g,T,A,C,L,N){var M=u&I;if(!M&&typeof c!="function")throw new kr(r);var z=T?T.length:0;if(z||(u&=~(U|se),T=A=e),L=L===e?L:Wn(et(L),0),N=N===e?N:et(N),z-=A?A.length:0,u&se){var J=T,ne=A;T=A=e}var me=M?e:Jv(c),Re=[c,u,g,T,A,J,ne,C,L,N];if(me&&o$(Re,me),c=Re[0],u=Re[1],g=Re[2],T=Re[3],A=Re[4],N=Re[9]=Re[9]===e?M?0:c.length:Wn(Re[9]-z,0),!N&&u&(j|W)&&(u&=~(j|W)),!u||u==b)var Me=$4(c,u,g);else u==j||u==W?Me=B4(c,u,N):(u==U||u==(b|U))&&!A.length?Me=H4(c,u,g,T):Me=Vg.apply(e,Re);var nt=me?mR:KR;return XR(nt(Me,Re),c,u)}o(la,"createWrap");function wR(c,u,g,T){return c===e||po(c,Sl[g])&&!Dt.call(T,g)?u:c}o(wR,"customDefaultsAssignIn");function MR(c,u,g,T,A,C){return Tn(c)&&Tn(u)&&(C.set(u,c),Fg(c,u,e,MR,C),C.delete(u)),c}o(MR,"customDefaultsMerge");function W4(c){return Ou(c)?e:c}o(W4,"customOmitClone");function kR(c,u,g,T,A,C){var L=g&v,N=c.length,M=u.length;if(N!=M&&!(L&&M>N))return!1;var z=C.get(c),J=C.get(u);if(z&&J)return z==u&&J==c;var ne=-1,me=!0,Re=g&S?new dc:e;for(C.set(c,u),C.set(u,c);++ne<N;){var Me=c[ne],nt=u[ne];if(T)var ke=L?T(nt,Me,ne,u,c,C):T(Me,nt,ne,c,u,C);if(ke!==e){if(ke)continue;me=!1;break}if(Re){if(!vv(u,function(lt,mt){if(!gu(Re,mt)&&(Me===lt||A(Me,lt,g,T,C)))return Re.push(mt)})){me=!1;break}}else if(!(Me===nt||A(Me,nt,g,T,C))){me=!1;break}}return C.delete(c),C.delete(u),me}o(kR,"equalArrays");function K4(c,u,g,T,A,C,L){switch(g){case Vr:if(c.byteLength!=u.byteLength||c.byteOffset!=u.byteOffset)return!1;c=c.buffer,u=u.buffer;case cc:return!(c.byteLength!=u.byteLength||!C(new vg(c),new vg(u)));case O:case E:case kt:return po(+c,+u);case V:return c.name==u.name&&c.message==u.message;case pr:case bi:return c==u+"";case ze:var N=xv;case hn:var M=T&v;if(N||(N=dg),c.size!=u.size&&!M)return!1;var z=L.get(c);if(z)return z==u;T|=S,L.set(c,u);var J=kR(N(c),N(u),T,A,C,L);return L.delete(c),J;case Gt:if(vu)return vu.call(c)==vu.call(u)}return!1}o(K4,"equalByTag");function X4(c,u,g,T,A,C){var L=g&v,N=Yv(c),M=N.length,z=Yv(u),J=z.length;if(M!=J&&!L)return!1;for(var ne=M;ne--;){var me=N[ne];if(!(L?me in u:Dt.call(u,me)))return!1}var Re=C.get(c),Me=C.get(u);if(Re&&Me)return Re==u&&Me==c;var nt=!0;C.set(c,u),C.set(u,c);for(var ke=L;++ne<M;){me=N[ne];var lt=c[me],mt=u[me];if(T)var Tr=L?T(mt,lt,me,u,c,C):T(lt,mt,me,c,u,C);if(!(Tr===e?lt===mt||A(lt,mt,g,T,C):Tr)){nt=!1;break}ke||(ke=me=="constructor")}if(nt&&!ke){var _i=c.constructor,vr=u.constructor;_i!=vr&&"constructor"in c&&"constructor"in u&&!(typeof _i=="function"&&_i instanceof _i&&typeof vr=="function"&&vr instanceof vr)&&(nt=!1)}return C.delete(c),C.delete(u),nt}o(X4,"equalObjects");function fa(c){return rb(GR(c,e,ZR),c+"")}o(fa,"flatRest");function Yv(c){return rR(c,Yn,eb)}o(Yv,"getAllKeys");function zv(c){return rR(c,Yi,jR)}o(zv,"getAllKeysIn");var Jv=xg?function(c){return xg.get(c)}:yb;function jg(c){for(var u=c.name+"",g=El[u],T=Dt.call(El,u)?g.length:0;T--;){var A=g[T],C=A.func;if(C==null||C==c)return A.name}return u}o(jg,"getFuncName");function Il(c){var u=Dt.call(x,"placeholder")?x:c;return u.placeholder}o(Il,"getHolder");function Ve(){var c=x.iteratee||mb;return c=c===mb?sR:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Ug(c,u){var g=c.__data__;return t$(u)?g[typeof u=="string"?"string":"hash"]:g.map}o(Ug,"getMapData");function Zv(c){for(var u=Yn(c),g=u.length;g--;){var T=u[g],A=c[T];u[g]=[T,A,BR(A)]}return u}o(Zv,"getMatchData");function hc(c,u){var g=n2(c,u);return aR(g)?g:e}o(hc,"getNative");function Q4(c){var u=Dt.call(c,uc),g=c[uc];try{c[uc]=e;var T=!0}catch{}var A=yg.call(c);return T&&(u?c[uc]=g:delete c[uc]),A}o(Q4,"getRawTag");var eb=Iv?function(c){return c==null?[]:(c=Kt(c),Ja(Iv(c),function(u){return WO.call(c,u)}))}:Tb,jR=Iv?function(c){for(var u=[];c;)Za(u,eb(c)),c=bg(c);return u}:Tb,Ai=Ni;(Ov&&Ai(new Ov(new ArrayBuffer(1)))!=Vr||hu&&Ai(new hu)!=ze||Rv&&Ai(Rv.resolve())!=Ht||Al&&Ai(new Al)!=hn||yu&&Ai(new yu)!=Xi)&&(Ai=o(function(c){var u=Ni(c),g=u==un?c.constructor:e,T=g?yc(g):"";if(T)switch(T){case R2:return Vr;case L2:return ze;case F2:return Ht;case N2:return hn;case D2:return Xi}return u},"getTag"));function q4(c,u,g){for(var T=-1,A=g.length;++T<A;){var C=g[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":u-=L;break;case"take":u=Si(u,c+L);break;case"takeRight":c=Wn(c,u-L);break}}return{start:c,end:u}}o(q4,"getView");function Y4(c){var u=c.match(eU);return u?u[1].split(tU):[]}o(Y4,"getWrapDetails");function UR(c,u,g){u=os(u,c);for(var T=-1,A=u.length,C=!1;++T<A;){var L=_o(u[T]);if(!(C=c!=null&&g(c,L)))break;c=c[L]}return C||++T!=A?C:(A=c==null?0:c.length,!!A&&Xg(A)&&ua(L,A)&&(Ye(c)||Tc(c)))}o(UR,"hasPath");function z4(c){var u=c.length,g=new c.constructor(u);return u&&typeof c[0]=="string"&&Dt.call(c,"index")&&(g.index=c.index,g.input=c.input),g}o(z4,"initCloneArray");function $R(c){return typeof c.constructor=="function"&&!Cu(c)?Pl(bg(c)):{}}o($R,"initCloneObject");function J4(c,u,g){var T=c.constructor;switch(u){case cc:return Xv(c);case O:case E:return new T(+c);case Vr:return V4(c,g);case fu:case uu:case pu:case lc:case k:case B:case q:case ce:case Ne:return ER(c,g);case ze:return new T;case kt:case bi:return new T(c);case pr:return w4(c);case hn:return new T;case Gt:return M4(c)}}o(J4,"initCloneByTag");function Z4(c,u){var g=u.length;if(!g)return c;var T=g-1;return u[T]=(g>1?"& ":"")+u[T],u=u.join(g>2?", ":" "),c.replace(Zj,`{
270
270
  /* [wrapped with `+u+`] */
271
- `)}o(Z4,"insertWrapDetails");function e$(c){return Ye(c)||Tc(c)||!!(KO&&c&&c[KO])}o(e$,"isFlattenable");function ua(c,u){var g=typeof c;return u=u??Fe,!!u&&(g=="number"||g!="symbol"&&fU.test(c))&&c>-1&&c%1==0&&c<u}o(ua,"isIndex");function Di(c,u,g){if(!Tn(g))return!1;var T=typeof u;return(T=="number"?qi(g)&&ua(u,g.length):T=="string"&&u in g)?po(g[u],c):!1}o(Di,"isIterateeCall");function tb(c,u){if(Ye(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||yr(c)?!0:sg.test(c)||!dr.test(c)||u!=null&&c in Kt(u)}o(tb,"isKey");function t$(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}o(t$,"isKeyable");function nb(c){var u=jg(c),g=x[u];if(typeof g!="function"||!(u in gt.prototype))return!1;if(c===g)return!0;var T=Jv(g);return!!T&&c===T[0]}o(nb,"isLaziable");function n$(c){return!!BO&&BO in c}o(n$,"isMasked");var i$=mg?pa:vb;function Cu(c){var u=c&&c.constructor,g=typeof u=="function"&&u.prototype||Sl;return c===g}o(Cu,"isPrototype");function BR(c){return c===c&&!Tn(c)}o(BR,"isStrictComparable");function HR(c,u){return function(g){return g==null?!1:g[c]===u&&(u!==e||c in Kt(g))}}o(HR,"matchesStrictComparable");function r$(c){var u=Wg(c,function(T){return g.size===l&&g.clear(),T}),g=u.cache;return u}o(r$,"memoizeCapped");function o$(c,u){var g=c[1],T=u[1],A=g|T,C=A<(b|I|ee),L=T==ee&&g==j||T==ee&&g==le&&c[7].length<=u[8]||T==(ee|le)&&u[7].length<=u[8]&&g==j;if(!(C||L))return c;T&b&&(c[2]=u[2],A|=g&b?0:F);var N=u[3];if(N){var M=c[3];c[3]=M?xR(M,N,u[4]):N,c[4]=M?Za(c[3],f):u[4]}return N=u[5],N&&(M=c[5],c[5]=M?CR(M,N,u[6]):N,c[6]=M?Za(c[5],f):u[6]),N=u[7],N&&(c[7]=N),T&ee&&(c[8]=c[8]==null?u[8]:Si(c[8],u[8])),c[9]==null&&(c[9]=u[9]),c[0]=u[0],c[1]=A,c}o(o$,"mergeData");function a$(c){var u=[];if(c!=null)for(var g in Kt(c))u.push(g);return u}o(a$,"nativeKeysIn");function s$(c){return yg.call(c)}o(s$,"objectToString");function GR(c,u,g){return u=Wn(u===e?c.length-1:u,0),function(){for(var T=arguments,A=-1,C=Wn(T.length-u,0),L=K(C);++A<C;)L[A]=T[u+A];A=-1;for(var N=K(u+1);++A<u;)N[A]=T[A];return N[u]=g(L),gr(c,this,N)}}o(GR,"overRest");function WR(c,u){return u.length<2?c:mc(c,$r(u,0,-1))}o(WR,"parent");function c$(c,u){for(var g=c.length,T=Si(u.length,g),A=Qi(c);T--;){var C=u[T];c[T]=ua(C,g)?A[C]:e}return c}o(c$,"reorder");function ib(c,u){if(!(u==="constructor"&&typeof c[u]=="function")&&u!="__proto__")return c[u]}o(ib,"safeGet");var KR=QR(mR),Iu=A2||function(c,u){return qn.setTimeout(c,u)},rb=QR(F4);function XR(c,u,g){var T=u+"";return rb(c,Z4(T,l$(Y4(T),g)))}o(XR,"setWrapToString");function QR(c){var u=0,g=0;return function(){var T=C2(),A=qe-(T-g);if(g=T,A>0){if(++u>=$e)return arguments[0]}else u=0;return c.apply(e,arguments)}}o(QR,"shortOut");function $g(c,u){var g=-1,T=c.length,A=T-1;for(u=u===e?T:u;++g<u;){var C=Uv(g,A),L=c[C];c[C]=c[g],c[g]=L}return c.length=u,c}o($g,"shuffleSelf");var qR=r$(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(cv,function(g,T,A,C){u.push(A?C.replace(rU,"$1"):T||g)}),u});function _o(c){if(typeof c=="string"||yr(c))return c;var u=c+"";return u=="0"&&1/c==-Yt?"-0":u}o(_o,"toKey");function yc(c){if(c!=null){try{return hg.call(c)}catch{}try{return c+""}catch{}}return""}o(yc,"toSource");function l$(c,u){return Mr(Oe,function(g){var T="_."+g[0];u&g[1]&&!ug(c,T)&&c.push(T)}),c.sort()}o(l$,"updateWrapDetails");function YR(c){if(c instanceof gt)return c.clone();var u=new jr(c.__wrapped__,c.__chain__);return u.__actions__=Qi(c.__actions__),u.__index__=c.__index__,u.__values__=c.__values__,u}o(YR,"wrapperClone");function f$(c,u,g){(g?Di(c,u,g):u===e)?u=1:u=Wn(et(u),0);var T=c==null?0:c.length;if(!T||u<1)return[];for(var A=0,C=0,L=K(Eg(T/u));A<T;)L[C++]=$r(c,A,A+=u);return L}o(f$,"chunk");function u$(c){for(var u=-1,g=c==null?0:c.length,T=0,A=[];++u<g;){var C=c[u];C&&(A[T++]=C)}return A}o(u$,"compact");function p$(){var c=arguments.length;if(!c)return[];for(var u=K(c-1),g=arguments[0],T=c;T--;)u[T-1]=arguments[T];return Ja(Ye(g)?Qi(g):[g],ri(u,1))}o(p$,"concat");var d$=rt(function(c,u){return Fn(c)?Su(c,ri(u,1,Fn,!0)):[]}),g$=rt(function(c,u){var g=Br(u);return Fn(g)&&(g=e),Fn(c)?Su(c,ri(u,1,Fn,!0),Ve(g,2)):[]}),m$=rt(function(c,u){var g=Br(u);return Fn(g)&&(g=e),Fn(c)?Su(c,ri(u,1,Fn,!0),e,g):[]});function h$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),$r(c,u<0?0:u,T)):[]}o(h$,"drop");function y$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),u=T-u,$r(c,0,u<0?0:u)):[]}o(y$,"dropRight");function T$(c,u){return c&&c.length?Dg(c,Ve(u,3),!0,!0):[]}o(T$,"dropRightWhile");function v$(c,u){return c&&c.length?Dg(c,Ve(u,3),!0):[]}o(v$,"dropWhile");function b$(c,u,g,T){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Di(c,u,g)&&(g=0,T=A),u4(c,u,g,T)):[]}o(b$,"fill");function zR(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=g==null?0:et(g);return A<0&&(A=Wn(T+A,0)),pg(c,Ve(u,3),A)}o(zR,"findIndex");function JR(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=T-1;return g!==e&&(A=et(g),A=g<0?Wn(T+A,0):Si(A,T-1)),pg(c,Ve(u,3),A,!0)}o(JR,"findLastIndex");function ZR(c){var u=c==null?0:c.length;return u?ri(c,1):[]}o(ZR,"flatten");function S$(c){var u=c==null?0:c.length;return u?ri(c,Yt):[]}o(S$,"flattenDeep");function A$(c,u){var g=c==null?0:c.length;return g?(u=u===e?1:et(u),ri(c,u)):[]}o(A$,"flattenDepth");function E$(c){for(var u=-1,g=c==null?0:c.length,T={};++u<g;){var A=c[u];T[A[0]]=A[1]}return T}o(E$,"fromPairs");function eL(c){return c&&c.length?c[0]:e}o(eL,"head");function P$(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=g==null?0:et(g);return A<0&&(A=Wn(T+A,0)),Tl(c,u,A)}o(P$,"indexOf");function x$(c){var u=c==null?0:c.length;return u?$r(c,0,-1):[]}o(x$,"initial");var C$=rt(function(c){var u=dn(c,Wv);return u.length&&u[0]===c[0]?Vv(u):[]}),I$=rt(function(c){var u=Br(c),g=dn(c,Wv);return u===Br(g)?u=e:g.pop(),g.length&&g[0]===c[0]?Vv(g,Ve(u,2)):[]}),O$=rt(function(c){var u=Br(c),g=dn(c,Wv);return u=typeof u=="function"?u:e,u&&g.pop(),g.length&&g[0]===c[0]?Vv(g,e,u):[]});function R$(c,u){return c==null?"":P2.call(c,u)}o(R$,"join");function Br(c){var u=c==null?0:c.length;return u?c[u-1]:e}o(Br,"last");function L$(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=T;return g!==e&&(A=et(g),A=A<0?Wn(T+A,0):Si(A,T-1)),u===u?s2(c,u,A):pg(c,_O,A,!0)}o(L$,"lastIndexOf");function F$(c,u){return c&&c.length?uR(c,et(u)):e}o(F$,"nth");var N$=rt(tL);function tL(c,u){return c&&c.length&&u&&u.length?jv(c,u):c}o(tL,"pullAll");function D$(c,u,g){return c&&c.length&&u&&u.length?jv(c,u,Ve(g,2)):c}o(D$,"pullAllBy");function _$(c,u,g){return c&&c.length&&u&&u.length?jv(c,u,e,g):c}o(_$,"pullAllWith");var V$=fa(function(c,u){var g=c==null?0:c.length,T=Fv(c,u);return gR(c,dn(u,function(A){return ua(A,g)?+A:A}).sort(PR)),T});function w$(c,u){var g=[];if(!(c&&c.length))return g;var T=-1,A=[],C=c.length;for(u=Ve(u,3);++T<C;){var L=c[T];u(L,T,c)&&(g.push(L),A.push(T))}return gR(c,A),g}o(w$,"remove");function ob(c){return c==null?c:O2.call(c)}o(ob,"reverse");function M$(c,u,g){var T=c==null?0:c.length;return T?(g&&typeof g!="number"&&Di(c,u,g)?(u=0,g=T):(u=u==null?0:et(u),g=g===e?T:et(g)),$r(c,u,g)):[]}o(M$,"slice");function k$(c,u){return Ng(c,u)}o(k$,"sortedIndex");function j$(c,u,g){return Bv(c,u,Ve(g,2))}o(j$,"sortedIndexBy");function U$(c,u){var g=c==null?0:c.length;if(g){var T=Ng(c,u);if(T<g&&po(c[T],u))return T}return-1}o(U$,"sortedIndexOf");function $$(c,u){return Ng(c,u,!0)}o($$,"sortedLastIndex");function B$(c,u,g){return Bv(c,u,Ve(g,2),!0)}o(B$,"sortedLastIndexBy");function H$(c,u){var g=c==null?0:c.length;if(g){var T=Ng(c,u,!0)-1;if(po(c[T],u))return T}return-1}o(H$,"sortedLastIndexOf");function G$(c){return c&&c.length?hR(c):[]}o(G$,"sortedUniq");function W$(c,u){return c&&c.length?hR(c,Ve(u,2)):[]}o(W$,"sortedUniqBy");function K$(c){var u=c==null?0:c.length;return u?$r(c,1,u):[]}o(K$,"tail");function X$(c,u,g){return c&&c.length?(u=g||u===e?1:et(u),$r(c,0,u<0?0:u)):[]}o(X$,"take");function Q$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),u=T-u,$r(c,u<0?0:u,T)):[]}o(Q$,"takeRight");function q$(c,u){return c&&c.length?Dg(c,Ve(u,3),!1,!0):[]}o(q$,"takeRightWhile");function Y$(c,u){return c&&c.length?Dg(c,Ve(u,3)):[]}o(Y$,"takeWhile");var z$=rt(function(c){return is(ri(c,1,Fn,!0))}),J$=rt(function(c){var u=Br(c);return Fn(u)&&(u=e),is(ri(c,1,Fn,!0),Ve(u,2))}),Z$=rt(function(c){var u=Br(c);return u=typeof u=="function"?u:e,is(ri(c,1,Fn,!0),e,u)});function eB(c){return c&&c.length?is(c):[]}o(eB,"uniq");function tB(c,u){return c&&c.length?is(c,Ve(u,2)):[]}o(tB,"uniqBy");function nB(c,u){return u=typeof u=="function"?u:e,c&&c.length?is(c,e,u):[]}o(nB,"uniqWith");function ab(c){if(!(c&&c.length))return[];var u=0;return c=za(c,function(g){if(Fn(g))return u=Wn(g.length,u),!0}),Ev(u,function(g){return dn(c,bv(g))})}o(ab,"unzip");function nL(c,u){if(!(c&&c.length))return[];var g=ab(c);return u==null?g:dn(g,function(T){return gr(u,e,T)})}o(nL,"unzipWith");var iB=rt(function(c,u){return Fn(c)?Su(c,u):[]}),rB=rt(function(c){return Gv(za(c,Fn))}),oB=rt(function(c){var u=Br(c);return Fn(u)&&(u=e),Gv(za(c,Fn),Ve(u,2))}),aB=rt(function(c){var u=Br(c);return u=typeof u=="function"?u:e,Gv(za(c,Fn),e,u)}),sB=rt(ab);function cB(c,u){return bR(c||[],u||[],bu)}o(cB,"zipObject");function lB(c,u){return bR(c||[],u||[],Pu)}o(lB,"zipObjectDeep");var fB=rt(function(c){var u=c.length,g=u>1?c[u-1]:e;return g=typeof g=="function"?(c.pop(),g):e,nL(c,g)});function iL(c){var u=x(c);return u.__chain__=!0,u}o(iL,"chain");function uB(c,u){return u(c),c}o(uB,"tap");function Bg(c,u){return u(c)}o(Bg,"thru");var pB=fa(function(c){var u=c.length,g=u?c[0]:0,T=this.__wrapped__,A=o(function(C){return Fv(C,c)},"interceptor");return u>1||this.__actions__.length||!(T instanceof gt)||!ua(g)?this.thru(A):(T=T.slice(g,+g+(u?1:0)),T.__actions__.push({func:Bg,args:[A],thisArg:e}),new jr(T,this.__chain__).thru(function(C){return u&&!C.length&&C.push(e),C}))});function dB(){return iL(this)}o(dB,"wrapperChain");function gB(){return new jr(this.value(),this.__chain__)}o(gB,"wrapperCommit");function mB(){this.__values__===e&&(this.__values__=yL(this.value()));var c=this.__index__>=this.__values__.length,u=c?e:this.__values__[this.__index__++];return{done:c,value:u}}o(mB,"wrapperNext");function hB(){return this}o(hB,"wrapperToIterator");function yB(c){for(var u,g=this;g instanceof Ig;){var T=YR(g);T.__index__=0,T.__values__=e,u?A.__wrapped__=T:u=T;var A=T;g=g.__wrapped__}return A.__wrapped__=c,u}o(yB,"wrapperPlant");function TB(){var c=this.__wrapped__;if(c instanceof gt){var u=c;return this.__actions__.length&&(u=new gt(this)),u=u.reverse(),u.__actions__.push({func:Bg,args:[ob],thisArg:e}),new jr(u,this.__chain__)}return this.thru(ob)}o(TB,"wrapperReverse");function vB(){return vR(this.__wrapped__,this.__actions__)}o(vB,"wrapperValue");var bB=_g(function(c,u,g){Dt.call(c,g)?++c[g]:ca(c,g,1)});function SB(c,u,g){var T=Ye(c)?NO:f4;return g&&Di(c,u,g)&&(u=e),T(c,Ve(u,3))}o(SB,"every");function AB(c,u){var g=Ye(c)?za:nR;return g(c,Ve(u,3))}o(AB,"filter");var EB=LR(zR),PB=LR(JR);function xB(c,u){return ri(Hg(c,u),1)}o(xB,"flatMap");function CB(c,u){return ri(Hg(c,u),Yt)}o(CB,"flatMapDeep");function IB(c,u,g){return g=g===e?1:et(g),ri(Hg(c,u),g)}o(IB,"flatMapDepth");function rL(c,u){var g=Ye(c)?Mr:ns;return g(c,Ve(u,3))}o(rL,"forEach");function oL(c,u){var g=Ye(c)?GU:tR;return g(c,Ve(u,3))}o(oL,"forEachRight");var OB=_g(function(c,u,g){Dt.call(c,g)?c[g].push(u):ca(c,g,[u])});function RB(c,u,g,T){c=qi(c)?c:Rl(c),g=g&&!T?et(g):0;var A=c.length;return g<0&&(g=Wn(A+g,0)),Qg(c)?g<=A&&c.indexOf(u,g)>-1:!!A&&Tl(c,u,g)>-1}o(RB,"includes");var LB=rt(function(c,u,g){var T=-1,A=typeof u=="function",C=qi(c)?K(c.length):[];return ns(c,function(L){C[++T]=A?gr(u,L,g):Au(L,u,g)}),C}),FB=_g(function(c,u,g){ca(c,g,u)});function Hg(c,u){var g=Ye(c)?dn:cR;return g(c,Ve(u,3))}o(Hg,"map");function NB(c,u,g,T){return c==null?[]:(Ye(u)||(u=u==null?[]:[u]),g=T?e:g,Ye(g)||(g=g==null?[]:[g]),pR(c,u,g))}o(NB,"orderBy");var DB=_g(function(c,u,g){c[g?0:1].push(u)},function(){return[[],[]]});function _B(c,u,g){var T=Ye(c)?Tv:wO,A=arguments.length<3;return T(c,Ve(u,4),g,A,ns)}o(_B,"reduce");function VB(c,u,g){var T=Ye(c)?WU:wO,A=arguments.length<3;return T(c,Ve(u,4),g,A,tR)}o(VB,"reduceRight");function wB(c,u){var g=Ye(c)?za:nR;return g(c,Kg(Ve(u,3)))}o(wB,"reject");function MB(c){var u=Ye(c)?zO:R4;return u(c)}o(MB,"sample");function kB(c,u,g){(g?Di(c,u,g):u===e)?u=1:u=et(u);var T=Ye(c)?o4:L4;return T(c,u)}o(kB,"sampleSize");function jB(c){var u=Ye(c)?a4:N4;return u(c)}o(jB,"shuffle");function UB(c){if(c==null)return 0;if(qi(c))return Qg(c)?bl(c):c.length;var u=Ai(c);return u==ze||u==hn?c.size:Mv(c).length}o(UB,"size");function $B(c,u,g){var T=Ye(c)?vv:D4;return g&&Di(c,u,g)&&(u=e),T(c,Ve(u,3))}o($B,"some");var BB=rt(function(c,u){if(c==null)return[];var g=u.length;return g>1&&Di(c,u[0],u[1])?u=[]:g>2&&Di(u[0],u[1],u[2])&&(u=[u[0]]),pR(c,ri(u,1),[])}),Gg=S2||function(){return qn.Date.now()};function HB(c,u){if(typeof u!="function")throw new kr(r);return c=et(c),function(){if(--c<1)return u.apply(this,arguments)}}o(HB,"after");function aL(c,u,g){return u=g?e:u,u=c&&u==null?c.length:u,la(c,ee,e,e,e,e,u)}o(aL,"ary");function sL(c,u){var g;if(typeof u!="function")throw new kr(r);return c=et(c),function(){return--c>0&&(g=u.apply(this,arguments)),c<=1&&(u=e),g}}o(sL,"before");var sb=rt(function(c,u,g){var T=b;if(g.length){var A=Za(g,Il(sb));T|=U}return la(c,T,u,g,A)}),cL=rt(function(c,u,g){var T=b|I;if(g.length){var A=Za(g,Il(cL));T|=U}return la(u,T,c,g,A)});function lL(c,u,g){u=g?e:u;var T=la(c,j,e,e,e,e,e,u);return T.placeholder=lL.placeholder,T}o(lL,"curry");function fL(c,u,g){u=g?e:u;var T=la(c,W,e,e,e,e,e,u);return T.placeholder=fL.placeholder,T}o(fL,"curryRight");function uL(c,u,g){var T,A,C,L,N,M,z=0,J=!1,ne=!1,me=!0;if(typeof c!="function")throw new kr(r);u=Hr(u)||0,Tn(g)&&(J=!!g.leading,ne="maxWait"in g,C=ne?Wn(Hr(g.maxWait)||0,u):C,me="trailing"in g?!!g.trailing:me);function Re(Nn){var go=T,ga=A;return T=A=e,z=Nn,L=c.apply(ga,go),L}o(Re,"invokeFunc");function Me(Nn){return z=Nn,N=Iu(lt,u),J?Re(Nn):L}o(Me,"leadingEdge");function nt(Nn){var go=Nn-M,ga=Nn-z,LL=u-go;return ne?Si(LL,C-ga):LL}o(nt,"remainingWait");function ke(Nn){var go=Nn-M,ga=Nn-z;return M===e||go>=u||go<0||ne&&ga>=C}o(ke,"shouldInvoke");function lt(){var Nn=Gg();if(ke(Nn))return mt(Nn);N=Iu(lt,nt(Nn))}o(lt,"timerExpired");function mt(Nn){return N=e,me&&T?Re(Nn):(T=A=e,L)}o(mt,"trailingEdge");function Tr(){N!==e&&SR(N),z=0,T=M=A=N=e}o(Tr,"cancel");function _i(){return N===e?L:mt(Gg())}o(_i,"flush");function vr(){var Nn=Gg(),go=ke(Nn);if(T=arguments,A=this,M=Nn,go){if(N===e)return Me(M);if(ne)return SR(N),N=Iu(lt,u),Re(M)}return N===e&&(N=Iu(lt,u)),L}return o(vr,"debounced"),vr.cancel=Tr,vr.flush=_i,vr}o(uL,"debounce");var GB=rt(function(c,u){return eR(c,1,u)}),WB=rt(function(c,u,g){return eR(c,Hr(u)||0,g)});function KB(c){return la(c,Le)}o(KB,"flip");function Wg(c,u){if(typeof c!="function"||u!=null&&typeof u!="function")throw new kr(r);var g=o(function(){var T=arguments,A=u?u.apply(this,T):T[0],C=g.cache;if(C.has(A))return C.get(A);var L=c.apply(this,T);return g.cache=C.set(A,L)||C,L},"memoized");return g.cache=new(Wg.Cache||sa),g}o(Wg,"memoize"),Wg.Cache=sa;function Kg(c){if(typeof c!="function")throw new kr(r);return function(){var u=arguments;switch(u.length){case 0:return!c.call(this);case 1:return!c.call(this,u[0]);case 2:return!c.call(this,u[0],u[1]);case 3:return!c.call(this,u[0],u[1],u[2])}return!c.apply(this,u)}}o(Kg,"negate");function XB(c){return sL(2,c)}o(XB,"once");var QB=_4(function(c,u){u=u.length==1&&Ye(u[0])?dn(u[0],mr(Ve())):dn(ri(u,1),mr(Ve()));var g=u.length;return rt(function(T){for(var A=-1,C=Si(T.length,g);++A<C;)T[A]=u[A].call(this,T[A]);return gr(c,this,T)})}),cb=rt(function(c,u){var g=Za(u,Il(cb));return la(c,U,e,u,g)}),pL=rt(function(c,u){var g=Za(u,Il(pL));return la(c,se,e,u,g)}),qB=fa(function(c,u){return la(c,le,e,e,e,u)});function YB(c,u){if(typeof c!="function")throw new kr(r);return u=u===e?u:et(u),rt(c,u)}o(YB,"rest");function zB(c,u){if(typeof c!="function")throw new kr(r);return u=u==null?0:Wn(et(u),0),rt(function(g){var T=g[u],A=os(g,0,u);return T&&Ja(A,T),gr(c,this,A)})}o(zB,"spread");function JB(c,u,g){var T=!0,A=!0;if(typeof c!="function")throw new kr(r);return Tn(g)&&(T="leading"in g?!!g.leading:T,A="trailing"in g?!!g.trailing:A),uL(c,u,{leading:T,maxWait:u,trailing:A})}o(JB,"throttle");function ZB(c){return aL(c,1)}o(ZB,"unary");function eH(c,u){return cb(Kv(u),c)}o(eH,"wrap");function tH(){if(!arguments.length)return[];var c=arguments[0];return Ye(c)?c:[c]}o(tH,"castArray");function nH(c){return Ur(c,m)}o(nH,"clone");function iH(c,u){return u=typeof u=="function"?u:e,Ur(c,m,u)}o(iH,"cloneWith");function rH(c){return Ur(c,p|m)}o(rH,"cloneDeep");function oH(c,u){return u=typeof u=="function"?u:e,Ur(c,p|m,u)}o(oH,"cloneDeepWith");function aH(c,u){return u==null||ZO(c,u,Yn(u))}o(aH,"conformsTo");function po(c,u){return c===u||c!==c&&u!==u}o(po,"eq");var sH=kg(_v),cH=kg(function(c,u){return c>=u}),Tc=oR((function(){return arguments})())?oR:function(c){return An(c)&&Dt.call(c,"callee")&&!WO.call(c,"callee")},Ye=K.isArray,lH=CO?mr(CO):h4;function qi(c){return c!=null&&Xg(c.length)&&!pa(c)}o(qi,"isArrayLike");function Fn(c){return An(c)&&qi(c)}o(Fn,"isArrayLikeObject");function fH(c){return c===!0||c===!1||An(c)&&Ni(c)==O}o(fH,"isBoolean");var as=E2||vb,uH=IO?mr(IO):y4;function pH(c){return An(c)&&c.nodeType===1&&!Ou(c)}o(pH,"isElement");function dH(c){if(c==null)return!0;if(qi(c)&&(Ye(c)||typeof c=="string"||typeof c.splice=="function"||as(c)||Ol(c)||Tc(c)))return!c.length;var u=Ai(c);if(u==ze||u==hn)return!c.size;if(Cu(c))return!Mv(c).length;for(var g in c)if(Dt.call(c,g))return!1;return!0}o(dH,"isEmpty");function gH(c,u){return Eu(c,u)}o(gH,"isEqual");function mH(c,u,g){g=typeof g=="function"?g:e;var T=g?g(c,u):e;return T===e?Eu(c,u,e,g):!!T}o(mH,"isEqualWith");function lb(c){if(!An(c))return!1;var u=Ni(c);return u==V||u==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Ou(c)}o(lb,"isError");function hH(c){return typeof c=="number"&&XO(c)}o(hH,"isFinite");function pa(c){if(!Tn(c))return!1;var u=Ni(c);return u==_e||u==Nt||u==tt||u==ii}o(pa,"isFunction");function dL(c){return typeof c=="number"&&c==et(c)}o(dL,"isInteger");function Xg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Fe}o(Xg,"isLength");function Tn(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}o(Tn,"isObject");function An(c){return c!=null&&typeof c=="object"}o(An,"isObjectLike");var gL=OO?mr(OO):b4;function yH(c,u){return c===u||wv(c,u,Zv(u))}o(yH,"isMatch");function TH(c,u,g){return g=typeof g=="function"?g:e,wv(c,u,Zv(u),g)}o(TH,"isMatchWith");function vH(c){return mL(c)&&c!=+c}o(vH,"isNaN");function bH(c){if(i$(c))throw new Xe(i);return aR(c)}o(bH,"isNative");function SH(c){return c===null}o(SH,"isNull");function AH(c){return c==null}o(AH,"isNil");function mL(c){return typeof c=="number"||An(c)&&Ni(c)==kt}o(mL,"isNumber");function Ou(c){if(!An(c)||Ni(c)!=un)return!1;var u=bg(c);if(u===null)return!0;var g=Dt.call(u,"constructor")&&u.constructor;return typeof g=="function"&&g instanceof g&&hg.call(g)==h2}o(Ou,"isPlainObject");var fb=RO?mr(RO):S4;function EH(c){return dL(c)&&c>=-Fe&&c<=Fe}o(EH,"isSafeInteger");var hL=LO?mr(LO):A4;function Qg(c){return typeof c=="string"||!Ye(c)&&An(c)&&Ni(c)==bi}o(Qg,"isString");function yr(c){return typeof c=="symbol"||An(c)&&Ni(c)==Gt}o(yr,"isSymbol");var Ol=FO?mr(FO):E4;function PH(c){return c===e}o(PH,"isUndefined");function xH(c){return An(c)&&Ai(c)==Xi}o(xH,"isWeakMap");function CH(c){return An(c)&&Ni(c)==lu}o(CH,"isWeakSet");var IH=kg(kv),OH=kg(function(c,u){return c<=u});function yL(c){if(!c)return[];if(qi(c))return Qg(c)?fo(c):Qi(c);if(mu&&c[mu])return r2(c[mu]());var u=Ai(c),g=u==ze?xv:u==hn?dg:Rl;return g(c)}o(yL,"toArray");function da(c){if(!c)return c===0?c:0;if(c=Hr(c),c===Yt||c===-Yt){var u=c<0?-1:1;return u*vn}return c===c?c:0}o(da,"toFinite");function et(c){var u=da(c),g=u%1;return u===u?g?u-g:u:0}o(et,"toInteger");function TL(c){return c?gc(et(c),0,on):0}o(TL,"toLength");function Hr(c){if(typeof c=="number")return c;if(yr(c))return bn;if(Tn(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=Tn(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=MO(c);var g=sU.test(c);return g||lU.test(c)?$U(c.slice(2),g?2:8):aU.test(c)?bn:+c}o(Hr,"toNumber");function vL(c){return Do(c,Yi(c))}o(vL,"toPlainObject");function RH(c){return c?gc(et(c),-Fe,Fe):c===0?c:0}o(RH,"toSafeInteger");function It(c){return c==null?"":hr(c)}o(It,"toString");var LH=xl(function(c,u){if(Cu(u)||qi(u)){Do(u,Yn(u),c);return}for(var g in u)Dt.call(u,g)&&bu(c,g,u[g])}),bL=xl(function(c,u){Do(u,Yi(u),c)}),qg=xl(function(c,u,g,T){Do(u,Yi(u),c,T)}),FH=xl(function(c,u,g,T){Do(u,Yn(u),c,T)}),NH=fa(Fv);function DH(c,u){var g=Pl(c);return u==null?g:JO(g,u)}o(DH,"create");var _H=rt(function(c,u){c=Kt(c);var g=-1,T=u.length,A=T>2?u[2]:e;for(A&&Di(u[0],u[1],A)&&(T=1);++g<T;)for(var C=u[g],L=Yi(C),N=-1,M=L.length;++N<M;){var z=L[N],J=c[z];(J===e||po(J,Sl[z])&&!Dt.call(c,z))&&(c[z]=C[z])}return c}),VH=rt(function(c){return c.push(e,MR),gr(SL,e,c)});function wH(c,u){return DO(c,Ve(u,3),No)}o(wH,"findKey");function MH(c,u){return DO(c,Ve(u,3),Dv)}o(MH,"findLastKey");function kH(c,u){return c==null?c:Nv(c,Ve(u,3),Yi)}o(kH,"forIn");function jH(c,u){return c==null?c:iR(c,Ve(u,3),Yi)}o(jH,"forInRight");function UH(c,u){return c&&No(c,Ve(u,3))}o(UH,"forOwn");function $H(c,u){return c&&Dv(c,Ve(u,3))}o($H,"forOwnRight");function BH(c){return c==null?[]:Lg(c,Yn(c))}o(BH,"functions");function HH(c){return c==null?[]:Lg(c,Yi(c))}o(HH,"functionsIn");function ub(c,u,g){var T=c==null?e:mc(c,u);return T===e?g:T}o(ub,"get");function GH(c,u){return c!=null&&UR(c,u,p4)}o(GH,"has");function pb(c,u){return c!=null&&UR(c,u,d4)}o(pb,"hasIn");var WH=NR(function(c,u,g){u!=null&&typeof u.toString!="function"&&(u=yg.call(u)),c[u]=g},gb(zi)),KH=NR(function(c,u,g){u!=null&&typeof u.toString!="function"&&(u=yg.call(u)),Dt.call(c,u)?c[u].push(g):c[u]=[g]},Ve),XH=rt(Au);function Yn(c){return qi(c)?YO(c):Mv(c)}o(Yn,"keys");function Yi(c){return qi(c)?YO(c,!0):P4(c)}o(Yi,"keysIn");function QH(c,u){var g={};return u=Ve(u,3),No(c,function(T,A,C){ca(g,u(T,A,C),T)}),g}o(QH,"mapKeys");function qH(c,u){var g={};return u=Ve(u,3),No(c,function(T,A,C){ca(g,A,u(T,A,C))}),g}o(qH,"mapValues");var YH=xl(function(c,u,g){Fg(c,u,g)}),SL=xl(function(c,u,g,T){Fg(c,u,g,T)}),zH=fa(function(c,u){var g={};if(c==null)return g;var T=!1;u=dn(u,function(C){return C=rs(C,c),T||(T=C.length>1),C}),Do(c,zv(c),g),T&&(g=Ur(g,p|d|m,W4));for(var A=u.length;A--;)Hv(g,u[A]);return g});function JH(c,u){return AL(c,Kg(Ve(u)))}o(JH,"omitBy");var ZH=fa(function(c,u){return c==null?{}:C4(c,u)});function AL(c,u){if(c==null)return{};var g=dn(zv(c),function(T){return[T]});return u=Ve(u),dR(c,g,function(T,A){return u(T,A[0])})}o(AL,"pickBy");function eG(c,u,g){u=rs(u,c);var T=-1,A=u.length;for(A||(A=1,c=e);++T<A;){var C=c==null?e:c[_o(u[T])];C===e&&(T=A,C=g),c=pa(C)?C.call(c):C}return c}o(eG,"result");function tG(c,u,g){return c==null?c:Pu(c,u,g)}o(tG,"set");function nG(c,u,g,T){return T=typeof T=="function"?T:e,c==null?c:Pu(c,u,g,T)}o(nG,"setWith");var EL=VR(Yn),PL=VR(Yi);function iG(c,u,g){var T=Ye(c),A=T||as(c)||Ol(c);if(u=Ve(u,4),g==null){var C=c&&c.constructor;A?g=T?new C:[]:Tn(c)?g=pa(C)?Pl(bg(c)):{}:g={}}return(A?Mr:No)(c,function(L,N,M){return u(g,L,N,M)}),g}o(iG,"transform");function rG(c,u){return c==null?!0:Hv(c,u)}o(rG,"unset");function oG(c,u,g){return c==null?c:TR(c,u,Kv(g))}o(oG,"update");function aG(c,u,g,T){return T=typeof T=="function"?T:e,c==null?c:TR(c,u,Kv(g),T)}o(aG,"updateWith");function Rl(c){return c==null?[]:Pv(c,Yn(c))}o(Rl,"values");function sG(c){return c==null?[]:Pv(c,Yi(c))}o(sG,"valuesIn");function cG(c,u,g){return g===e&&(g=u,u=e),g!==e&&(g=Hr(g),g=g===g?g:0),u!==e&&(u=Hr(u),u=u===u?u:0),gc(Hr(c),u,g)}o(cG,"clamp");function lG(c,u,g){return u=da(u),g===e?(g=u,u=0):g=da(g),c=Hr(c),g4(c,u,g)}o(lG,"inRange");function fG(c,u,g){if(g&&typeof g!="boolean"&&Di(c,u,g)&&(u=g=e),g===e&&(typeof u=="boolean"?(g=u,u=e):typeof c=="boolean"&&(g=c,c=e)),c===e&&u===e?(c=0,u=1):(c=da(c),u===e?(u=c,c=0):u=da(u)),c>u){var T=c;c=u,u=T}if(g||c%1||u%1){var A=QO();return Si(c+A*(u-c+UU("1e-"+((A+"").length-1))),u)}return Uv(c,u)}o(fG,"random");var uG=Cl(function(c,u,g){return u=u.toLowerCase(),c+(g?xL(u):u)});function xL(c){return db(It(c).toLowerCase())}o(xL,"capitalize");function CL(c){return c=It(c),c&&c.replace(uU,ZU).replace(LU,"")}o(CL,"deburr");function pG(c,u,g){c=It(c),u=hr(u);var T=c.length;g=g===e?T:gc(et(g),0,T);var A=g;return g-=u.length,g>=0&&c.slice(g,A)==u}o(pG,"endsWith");function dG(c){return c=It(c),c&&Ie.test(c)?c.replace(be,e2):c}o(dG,"escape");function gG(c){return c=It(c),c&&zj.test(c)?c.replace(du,"\\$&"):c}o(gG,"escapeRegExp");var mG=Cl(function(c,u,g){return c+(g?"-":"")+u.toLowerCase()}),hG=Cl(function(c,u,g){return c+(g?" ":"")+u.toLowerCase()}),yG=RR("toLowerCase");function TG(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;if(!u||T>=u)return c;var A=(u-T)/2;return Mg(Pg(A),g)+c+Mg(Eg(A),g)}o(TG,"pad");function vG(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;return u&&T<u?c+Mg(u-T,g):c}o(vG,"padEnd");function bG(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;return u&&T<u?Mg(u-T,g)+c:c}o(bG,"padStart");function SG(c,u,g){return g||u==null?u=0:u&&(u=+u),I2(It(c).replace(lv,""),u||0)}o(SG,"parseInt");function AG(c,u,g){return(g?Di(c,u,g):u===e)?u=1:u=et(u),$v(It(c),u)}o(AG,"repeat");function EG(){var c=arguments,u=It(c[0]);return c.length<3?u:u.replace(c[1],c[2])}o(EG,"replace");var PG=Cl(function(c,u,g){return c+(g?"_":"")+u.toLowerCase()});function xG(c,u,g){return g&&typeof g!="number"&&Di(c,u,g)&&(u=g=e),g=g===e?on:g>>>0,g?(c=It(c),c&&(typeof u=="string"||u!=null&&!fb(u))&&(u=hr(u),!u&&vl(c))?os(fo(c),0,g):c.split(u,g)):[]}o(xG,"split");var CG=Cl(function(c,u,g){return c+(g?" ":"")+db(u)});function IG(c,u,g){return c=It(c),g=g==null?0:gc(et(g),0,c.length),u=hr(u),c.slice(g,g+u.length)==u}o(IG,"startsWith");function OG(c,u,g){var T=x.templateSettings;g&&Di(c,u,g)&&(u=e),c=It(c),u=qg({},u,T,wR);var A=qg({},u.imports,T.imports,wR),C=Yn(A),L=Pv(A,C),N,M,z=0,J=u.interpolate||cg,ne="__p += '",me=Cv((u.escape||cg).source+"|"+J.source+"|"+(J===pn?oU:cg).source+"|"+(u.evaluate||cg).source+"|$","g"),Re="//# sourceURL="+(Dt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VU+"]")+`
271
+ `)}o(Z4,"insertWrapDetails");function e$(c){return Ye(c)||Tc(c)||!!(KO&&c&&c[KO])}o(e$,"isFlattenable");function ua(c,u){var g=typeof c;return u=u??Fe,!!u&&(g=="number"||g!="symbol"&&fU.test(c))&&c>-1&&c%1==0&&c<u}o(ua,"isIndex");function Di(c,u,g){if(!Tn(g))return!1;var T=typeof u;return(T=="number"?qi(g)&&ua(u,g.length):T=="string"&&u in g)?po(g[u],c):!1}o(Di,"isIterateeCall");function tb(c,u){if(Ye(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||yr(c)?!0:sg.test(c)||!dr.test(c)||u!=null&&c in Kt(u)}o(tb,"isKey");function t$(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}o(t$,"isKeyable");function nb(c){var u=jg(c),g=x[u];if(typeof g!="function"||!(u in gt.prototype))return!1;if(c===g)return!0;var T=Jv(g);return!!T&&c===T[0]}o(nb,"isLaziable");function n$(c){return!!BO&&BO in c}o(n$,"isMasked");var i$=mg?pa:vb;function Cu(c){var u=c&&c.constructor,g=typeof u=="function"&&u.prototype||Sl;return c===g}o(Cu,"isPrototype");function BR(c){return c===c&&!Tn(c)}o(BR,"isStrictComparable");function HR(c,u){return function(g){return g==null?!1:g[c]===u&&(u!==e||c in Kt(g))}}o(HR,"matchesStrictComparable");function r$(c){var u=Wg(c,function(T){return g.size===l&&g.clear(),T}),g=u.cache;return u}o(r$,"memoizeCapped");function o$(c,u){var g=c[1],T=u[1],A=g|T,C=A<(b|I|ee),L=T==ee&&g==j||T==ee&&g==le&&c[7].length<=u[8]||T==(ee|le)&&u[7].length<=u[8]&&g==j;if(!(C||L))return c;T&b&&(c[2]=u[2],A|=g&b?0:F);var N=u[3];if(N){var M=c[3];c[3]=M?xR(M,N,u[4]):N,c[4]=M?es(c[3],f):u[4]}return N=u[5],N&&(M=c[5],c[5]=M?CR(M,N,u[6]):N,c[6]=M?es(c[5],f):u[6]),N=u[7],N&&(c[7]=N),T&ee&&(c[8]=c[8]==null?u[8]:Si(c[8],u[8])),c[9]==null&&(c[9]=u[9]),c[0]=u[0],c[1]=A,c}o(o$,"mergeData");function a$(c){var u=[];if(c!=null)for(var g in Kt(c))u.push(g);return u}o(a$,"nativeKeysIn");function s$(c){return yg.call(c)}o(s$,"objectToString");function GR(c,u,g){return u=Wn(u===e?c.length-1:u,0),function(){for(var T=arguments,A=-1,C=Wn(T.length-u,0),L=K(C);++A<C;)L[A]=T[u+A];A=-1;for(var N=K(u+1);++A<u;)N[A]=T[A];return N[u]=g(L),gr(c,this,N)}}o(GR,"overRest");function WR(c,u){return u.length<2?c:mc(c,$r(u,0,-1))}o(WR,"parent");function c$(c,u){for(var g=c.length,T=Si(u.length,g),A=Qi(c);T--;){var C=u[T];c[T]=ua(C,g)?A[C]:e}return c}o(c$,"reorder");function ib(c,u){if(!(u==="constructor"&&typeof c[u]=="function")&&u!="__proto__")return c[u]}o(ib,"safeGet");var KR=QR(mR),Iu=A2||function(c,u){return qn.setTimeout(c,u)},rb=QR(F4);function XR(c,u,g){var T=u+"";return rb(c,Z4(T,l$(Y4(T),g)))}o(XR,"setWrapToString");function QR(c){var u=0,g=0;return function(){var T=C2(),A=qe-(T-g);if(g=T,A>0){if(++u>=$e)return arguments[0]}else u=0;return c.apply(e,arguments)}}o(QR,"shortOut");function $g(c,u){var g=-1,T=c.length,A=T-1;for(u=u===e?T:u;++g<u;){var C=Uv(g,A),L=c[C];c[C]=c[g],c[g]=L}return c.length=u,c}o($g,"shuffleSelf");var qR=r$(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(cv,function(g,T,A,C){u.push(A?C.replace(rU,"$1"):T||g)}),u});function _o(c){if(typeof c=="string"||yr(c))return c;var u=c+"";return u=="0"&&1/c==-Yt?"-0":u}o(_o,"toKey");function yc(c){if(c!=null){try{return hg.call(c)}catch{}try{return c+""}catch{}}return""}o(yc,"toSource");function l$(c,u){return Mr(Oe,function(g){var T="_."+g[0];u&g[1]&&!ug(c,T)&&c.push(T)}),c.sort()}o(l$,"updateWrapDetails");function YR(c){if(c instanceof gt)return c.clone();var u=new jr(c.__wrapped__,c.__chain__);return u.__actions__=Qi(c.__actions__),u.__index__=c.__index__,u.__values__=c.__values__,u}o(YR,"wrapperClone");function f$(c,u,g){(g?Di(c,u,g):u===e)?u=1:u=Wn(et(u),0);var T=c==null?0:c.length;if(!T||u<1)return[];for(var A=0,C=0,L=K(Eg(T/u));A<T;)L[C++]=$r(c,A,A+=u);return L}o(f$,"chunk");function u$(c){for(var u=-1,g=c==null?0:c.length,T=0,A=[];++u<g;){var C=c[u];C&&(A[T++]=C)}return A}o(u$,"compact");function p$(){var c=arguments.length;if(!c)return[];for(var u=K(c-1),g=arguments[0],T=c;T--;)u[T-1]=arguments[T];return Za(Ye(g)?Qi(g):[g],ri(u,1))}o(p$,"concat");var d$=rt(function(c,u){return Fn(c)?Su(c,ri(u,1,Fn,!0)):[]}),g$=rt(function(c,u){var g=Br(u);return Fn(g)&&(g=e),Fn(c)?Su(c,ri(u,1,Fn,!0),Ve(g,2)):[]}),m$=rt(function(c,u){var g=Br(u);return Fn(g)&&(g=e),Fn(c)?Su(c,ri(u,1,Fn,!0),e,g):[]});function h$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),$r(c,u<0?0:u,T)):[]}o(h$,"drop");function y$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),u=T-u,$r(c,0,u<0?0:u)):[]}o(y$,"dropRight");function T$(c,u){return c&&c.length?Dg(c,Ve(u,3),!0,!0):[]}o(T$,"dropRightWhile");function v$(c,u){return c&&c.length?Dg(c,Ve(u,3),!0):[]}o(v$,"dropWhile");function b$(c,u,g,T){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Di(c,u,g)&&(g=0,T=A),u4(c,u,g,T)):[]}o(b$,"fill");function zR(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=g==null?0:et(g);return A<0&&(A=Wn(T+A,0)),pg(c,Ve(u,3),A)}o(zR,"findIndex");function JR(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=T-1;return g!==e&&(A=et(g),A=g<0?Wn(T+A,0):Si(A,T-1)),pg(c,Ve(u,3),A,!0)}o(JR,"findLastIndex");function ZR(c){var u=c==null?0:c.length;return u?ri(c,1):[]}o(ZR,"flatten");function S$(c){var u=c==null?0:c.length;return u?ri(c,Yt):[]}o(S$,"flattenDeep");function A$(c,u){var g=c==null?0:c.length;return g?(u=u===e?1:et(u),ri(c,u)):[]}o(A$,"flattenDepth");function E$(c){for(var u=-1,g=c==null?0:c.length,T={};++u<g;){var A=c[u];T[A[0]]=A[1]}return T}o(E$,"fromPairs");function eL(c){return c&&c.length?c[0]:e}o(eL,"head");function P$(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=g==null?0:et(g);return A<0&&(A=Wn(T+A,0)),Tl(c,u,A)}o(P$,"indexOf");function x$(c){var u=c==null?0:c.length;return u?$r(c,0,-1):[]}o(x$,"initial");var C$=rt(function(c){var u=dn(c,Wv);return u.length&&u[0]===c[0]?Vv(u):[]}),I$=rt(function(c){var u=Br(c),g=dn(c,Wv);return u===Br(g)?u=e:g.pop(),g.length&&g[0]===c[0]?Vv(g,Ve(u,2)):[]}),O$=rt(function(c){var u=Br(c),g=dn(c,Wv);return u=typeof u=="function"?u:e,u&&g.pop(),g.length&&g[0]===c[0]?Vv(g,e,u):[]});function R$(c,u){return c==null?"":P2.call(c,u)}o(R$,"join");function Br(c){var u=c==null?0:c.length;return u?c[u-1]:e}o(Br,"last");function L$(c,u,g){var T=c==null?0:c.length;if(!T)return-1;var A=T;return g!==e&&(A=et(g),A=A<0?Wn(T+A,0):Si(A,T-1)),u===u?s2(c,u,A):pg(c,_O,A,!0)}o(L$,"lastIndexOf");function F$(c,u){return c&&c.length?uR(c,et(u)):e}o(F$,"nth");var N$=rt(tL);function tL(c,u){return c&&c.length&&u&&u.length?jv(c,u):c}o(tL,"pullAll");function D$(c,u,g){return c&&c.length&&u&&u.length?jv(c,u,Ve(g,2)):c}o(D$,"pullAllBy");function _$(c,u,g){return c&&c.length&&u&&u.length?jv(c,u,e,g):c}o(_$,"pullAllWith");var V$=fa(function(c,u){var g=c==null?0:c.length,T=Fv(c,u);return gR(c,dn(u,function(A){return ua(A,g)?+A:A}).sort(PR)),T});function w$(c,u){var g=[];if(!(c&&c.length))return g;var T=-1,A=[],C=c.length;for(u=Ve(u,3);++T<C;){var L=c[T];u(L,T,c)&&(g.push(L),A.push(T))}return gR(c,A),g}o(w$,"remove");function ob(c){return c==null?c:O2.call(c)}o(ob,"reverse");function M$(c,u,g){var T=c==null?0:c.length;return T?(g&&typeof g!="number"&&Di(c,u,g)?(u=0,g=T):(u=u==null?0:et(u),g=g===e?T:et(g)),$r(c,u,g)):[]}o(M$,"slice");function k$(c,u){return Ng(c,u)}o(k$,"sortedIndex");function j$(c,u,g){return Bv(c,u,Ve(g,2))}o(j$,"sortedIndexBy");function U$(c,u){var g=c==null?0:c.length;if(g){var T=Ng(c,u);if(T<g&&po(c[T],u))return T}return-1}o(U$,"sortedIndexOf");function $$(c,u){return Ng(c,u,!0)}o($$,"sortedLastIndex");function B$(c,u,g){return Bv(c,u,Ve(g,2),!0)}o(B$,"sortedLastIndexBy");function H$(c,u){var g=c==null?0:c.length;if(g){var T=Ng(c,u,!0)-1;if(po(c[T],u))return T}return-1}o(H$,"sortedLastIndexOf");function G$(c){return c&&c.length?hR(c):[]}o(G$,"sortedUniq");function W$(c,u){return c&&c.length?hR(c,Ve(u,2)):[]}o(W$,"sortedUniqBy");function K$(c){var u=c==null?0:c.length;return u?$r(c,1,u):[]}o(K$,"tail");function X$(c,u,g){return c&&c.length?(u=g||u===e?1:et(u),$r(c,0,u<0?0:u)):[]}o(X$,"take");function Q$(c,u,g){var T=c==null?0:c.length;return T?(u=g||u===e?1:et(u),u=T-u,$r(c,u<0?0:u,T)):[]}o(Q$,"takeRight");function q$(c,u){return c&&c.length?Dg(c,Ve(u,3),!1,!0):[]}o(q$,"takeRightWhile");function Y$(c,u){return c&&c.length?Dg(c,Ve(u,3)):[]}o(Y$,"takeWhile");var z$=rt(function(c){return rs(ri(c,1,Fn,!0))}),J$=rt(function(c){var u=Br(c);return Fn(u)&&(u=e),rs(ri(c,1,Fn,!0),Ve(u,2))}),Z$=rt(function(c){var u=Br(c);return u=typeof u=="function"?u:e,rs(ri(c,1,Fn,!0),e,u)});function eB(c){return c&&c.length?rs(c):[]}o(eB,"uniq");function tB(c,u){return c&&c.length?rs(c,Ve(u,2)):[]}o(tB,"uniqBy");function nB(c,u){return u=typeof u=="function"?u:e,c&&c.length?rs(c,e,u):[]}o(nB,"uniqWith");function ab(c){if(!(c&&c.length))return[];var u=0;return c=Ja(c,function(g){if(Fn(g))return u=Wn(g.length,u),!0}),Ev(u,function(g){return dn(c,bv(g))})}o(ab,"unzip");function nL(c,u){if(!(c&&c.length))return[];var g=ab(c);return u==null?g:dn(g,function(T){return gr(u,e,T)})}o(nL,"unzipWith");var iB=rt(function(c,u){return Fn(c)?Su(c,u):[]}),rB=rt(function(c){return Gv(Ja(c,Fn))}),oB=rt(function(c){var u=Br(c);return Fn(u)&&(u=e),Gv(Ja(c,Fn),Ve(u,2))}),aB=rt(function(c){var u=Br(c);return u=typeof u=="function"?u:e,Gv(Ja(c,Fn),e,u)}),sB=rt(ab);function cB(c,u){return bR(c||[],u||[],bu)}o(cB,"zipObject");function lB(c,u){return bR(c||[],u||[],Pu)}o(lB,"zipObjectDeep");var fB=rt(function(c){var u=c.length,g=u>1?c[u-1]:e;return g=typeof g=="function"?(c.pop(),g):e,nL(c,g)});function iL(c){var u=x(c);return u.__chain__=!0,u}o(iL,"chain");function uB(c,u){return u(c),c}o(uB,"tap");function Bg(c,u){return u(c)}o(Bg,"thru");var pB=fa(function(c){var u=c.length,g=u?c[0]:0,T=this.__wrapped__,A=o(function(C){return Fv(C,c)},"interceptor");return u>1||this.__actions__.length||!(T instanceof gt)||!ua(g)?this.thru(A):(T=T.slice(g,+g+(u?1:0)),T.__actions__.push({func:Bg,args:[A],thisArg:e}),new jr(T,this.__chain__).thru(function(C){return u&&!C.length&&C.push(e),C}))});function dB(){return iL(this)}o(dB,"wrapperChain");function gB(){return new jr(this.value(),this.__chain__)}o(gB,"wrapperCommit");function mB(){this.__values__===e&&(this.__values__=yL(this.value()));var c=this.__index__>=this.__values__.length,u=c?e:this.__values__[this.__index__++];return{done:c,value:u}}o(mB,"wrapperNext");function hB(){return this}o(hB,"wrapperToIterator");function yB(c){for(var u,g=this;g instanceof Ig;){var T=YR(g);T.__index__=0,T.__values__=e,u?A.__wrapped__=T:u=T;var A=T;g=g.__wrapped__}return A.__wrapped__=c,u}o(yB,"wrapperPlant");function TB(){var c=this.__wrapped__;if(c instanceof gt){var u=c;return this.__actions__.length&&(u=new gt(this)),u=u.reverse(),u.__actions__.push({func:Bg,args:[ob],thisArg:e}),new jr(u,this.__chain__)}return this.thru(ob)}o(TB,"wrapperReverse");function vB(){return vR(this.__wrapped__,this.__actions__)}o(vB,"wrapperValue");var bB=_g(function(c,u,g){Dt.call(c,g)?++c[g]:ca(c,g,1)});function SB(c,u,g){var T=Ye(c)?NO:f4;return g&&Di(c,u,g)&&(u=e),T(c,Ve(u,3))}o(SB,"every");function AB(c,u){var g=Ye(c)?Ja:nR;return g(c,Ve(u,3))}o(AB,"filter");var EB=LR(zR),PB=LR(JR);function xB(c,u){return ri(Hg(c,u),1)}o(xB,"flatMap");function CB(c,u){return ri(Hg(c,u),Yt)}o(CB,"flatMapDeep");function IB(c,u,g){return g=g===e?1:et(g),ri(Hg(c,u),g)}o(IB,"flatMapDepth");function rL(c,u){var g=Ye(c)?Mr:is;return g(c,Ve(u,3))}o(rL,"forEach");function oL(c,u){var g=Ye(c)?GU:tR;return g(c,Ve(u,3))}o(oL,"forEachRight");var OB=_g(function(c,u,g){Dt.call(c,g)?c[g].push(u):ca(c,g,[u])});function RB(c,u,g,T){c=qi(c)?c:Rl(c),g=g&&!T?et(g):0;var A=c.length;return g<0&&(g=Wn(A+g,0)),Qg(c)?g<=A&&c.indexOf(u,g)>-1:!!A&&Tl(c,u,g)>-1}o(RB,"includes");var LB=rt(function(c,u,g){var T=-1,A=typeof u=="function",C=qi(c)?K(c.length):[];return is(c,function(L){C[++T]=A?gr(u,L,g):Au(L,u,g)}),C}),FB=_g(function(c,u,g){ca(c,g,u)});function Hg(c,u){var g=Ye(c)?dn:cR;return g(c,Ve(u,3))}o(Hg,"map");function NB(c,u,g,T){return c==null?[]:(Ye(u)||(u=u==null?[]:[u]),g=T?e:g,Ye(g)||(g=g==null?[]:[g]),pR(c,u,g))}o(NB,"orderBy");var DB=_g(function(c,u,g){c[g?0:1].push(u)},function(){return[[],[]]});function _B(c,u,g){var T=Ye(c)?Tv:wO,A=arguments.length<3;return T(c,Ve(u,4),g,A,is)}o(_B,"reduce");function VB(c,u,g){var T=Ye(c)?WU:wO,A=arguments.length<3;return T(c,Ve(u,4),g,A,tR)}o(VB,"reduceRight");function wB(c,u){var g=Ye(c)?Ja:nR;return g(c,Kg(Ve(u,3)))}o(wB,"reject");function MB(c){var u=Ye(c)?zO:R4;return u(c)}o(MB,"sample");function kB(c,u,g){(g?Di(c,u,g):u===e)?u=1:u=et(u);var T=Ye(c)?o4:L4;return T(c,u)}o(kB,"sampleSize");function jB(c){var u=Ye(c)?a4:N4;return u(c)}o(jB,"shuffle");function UB(c){if(c==null)return 0;if(qi(c))return Qg(c)?bl(c):c.length;var u=Ai(c);return u==ze||u==hn?c.size:Mv(c).length}o(UB,"size");function $B(c,u,g){var T=Ye(c)?vv:D4;return g&&Di(c,u,g)&&(u=e),T(c,Ve(u,3))}o($B,"some");var BB=rt(function(c,u){if(c==null)return[];var g=u.length;return g>1&&Di(c,u[0],u[1])?u=[]:g>2&&Di(u[0],u[1],u[2])&&(u=[u[0]]),pR(c,ri(u,1),[])}),Gg=S2||function(){return qn.Date.now()};function HB(c,u){if(typeof u!="function")throw new kr(r);return c=et(c),function(){if(--c<1)return u.apply(this,arguments)}}o(HB,"after");function aL(c,u,g){return u=g?e:u,u=c&&u==null?c.length:u,la(c,ee,e,e,e,e,u)}o(aL,"ary");function sL(c,u){var g;if(typeof u!="function")throw new kr(r);return c=et(c),function(){return--c>0&&(g=u.apply(this,arguments)),c<=1&&(u=e),g}}o(sL,"before");var sb=rt(function(c,u,g){var T=b;if(g.length){var A=es(g,Il(sb));T|=U}return la(c,T,u,g,A)}),cL=rt(function(c,u,g){var T=b|I;if(g.length){var A=es(g,Il(cL));T|=U}return la(u,T,c,g,A)});function lL(c,u,g){u=g?e:u;var T=la(c,j,e,e,e,e,e,u);return T.placeholder=lL.placeholder,T}o(lL,"curry");function fL(c,u,g){u=g?e:u;var T=la(c,W,e,e,e,e,e,u);return T.placeholder=fL.placeholder,T}o(fL,"curryRight");function uL(c,u,g){var T,A,C,L,N,M,z=0,J=!1,ne=!1,me=!0;if(typeof c!="function")throw new kr(r);u=Hr(u)||0,Tn(g)&&(J=!!g.leading,ne="maxWait"in g,C=ne?Wn(Hr(g.maxWait)||0,u):C,me="trailing"in g?!!g.trailing:me);function Re(Nn){var go=T,ga=A;return T=A=e,z=Nn,L=c.apply(ga,go),L}o(Re,"invokeFunc");function Me(Nn){return z=Nn,N=Iu(lt,u),J?Re(Nn):L}o(Me,"leadingEdge");function nt(Nn){var go=Nn-M,ga=Nn-z,LL=u-go;return ne?Si(LL,C-ga):LL}o(nt,"remainingWait");function ke(Nn){var go=Nn-M,ga=Nn-z;return M===e||go>=u||go<0||ne&&ga>=C}o(ke,"shouldInvoke");function lt(){var Nn=Gg();if(ke(Nn))return mt(Nn);N=Iu(lt,nt(Nn))}o(lt,"timerExpired");function mt(Nn){return N=e,me&&T?Re(Nn):(T=A=e,L)}o(mt,"trailingEdge");function Tr(){N!==e&&SR(N),z=0,T=M=A=N=e}o(Tr,"cancel");function _i(){return N===e?L:mt(Gg())}o(_i,"flush");function vr(){var Nn=Gg(),go=ke(Nn);if(T=arguments,A=this,M=Nn,go){if(N===e)return Me(M);if(ne)return SR(N),N=Iu(lt,u),Re(M)}return N===e&&(N=Iu(lt,u)),L}return o(vr,"debounced"),vr.cancel=Tr,vr.flush=_i,vr}o(uL,"debounce");var GB=rt(function(c,u){return eR(c,1,u)}),WB=rt(function(c,u,g){return eR(c,Hr(u)||0,g)});function KB(c){return la(c,Le)}o(KB,"flip");function Wg(c,u){if(typeof c!="function"||u!=null&&typeof u!="function")throw new kr(r);var g=o(function(){var T=arguments,A=u?u.apply(this,T):T[0],C=g.cache;if(C.has(A))return C.get(A);var L=c.apply(this,T);return g.cache=C.set(A,L)||C,L},"memoized");return g.cache=new(Wg.Cache||sa),g}o(Wg,"memoize"),Wg.Cache=sa;function Kg(c){if(typeof c!="function")throw new kr(r);return function(){var u=arguments;switch(u.length){case 0:return!c.call(this);case 1:return!c.call(this,u[0]);case 2:return!c.call(this,u[0],u[1]);case 3:return!c.call(this,u[0],u[1],u[2])}return!c.apply(this,u)}}o(Kg,"negate");function XB(c){return sL(2,c)}o(XB,"once");var QB=_4(function(c,u){u=u.length==1&&Ye(u[0])?dn(u[0],mr(Ve())):dn(ri(u,1),mr(Ve()));var g=u.length;return rt(function(T){for(var A=-1,C=Si(T.length,g);++A<C;)T[A]=u[A].call(this,T[A]);return gr(c,this,T)})}),cb=rt(function(c,u){var g=es(u,Il(cb));return la(c,U,e,u,g)}),pL=rt(function(c,u){var g=es(u,Il(pL));return la(c,se,e,u,g)}),qB=fa(function(c,u){return la(c,le,e,e,e,u)});function YB(c,u){if(typeof c!="function")throw new kr(r);return u=u===e?u:et(u),rt(c,u)}o(YB,"rest");function zB(c,u){if(typeof c!="function")throw new kr(r);return u=u==null?0:Wn(et(u),0),rt(function(g){var T=g[u],A=as(g,0,u);return T&&Za(A,T),gr(c,this,A)})}o(zB,"spread");function JB(c,u,g){var T=!0,A=!0;if(typeof c!="function")throw new kr(r);return Tn(g)&&(T="leading"in g?!!g.leading:T,A="trailing"in g?!!g.trailing:A),uL(c,u,{leading:T,maxWait:u,trailing:A})}o(JB,"throttle");function ZB(c){return aL(c,1)}o(ZB,"unary");function eH(c,u){return cb(Kv(u),c)}o(eH,"wrap");function tH(){if(!arguments.length)return[];var c=arguments[0];return Ye(c)?c:[c]}o(tH,"castArray");function nH(c){return Ur(c,m)}o(nH,"clone");function iH(c,u){return u=typeof u=="function"?u:e,Ur(c,m,u)}o(iH,"cloneWith");function rH(c){return Ur(c,p|m)}o(rH,"cloneDeep");function oH(c,u){return u=typeof u=="function"?u:e,Ur(c,p|m,u)}o(oH,"cloneDeepWith");function aH(c,u){return u==null||ZO(c,u,Yn(u))}o(aH,"conformsTo");function po(c,u){return c===u||c!==c&&u!==u}o(po,"eq");var sH=kg(_v),cH=kg(function(c,u){return c>=u}),Tc=oR((function(){return arguments})())?oR:function(c){return An(c)&&Dt.call(c,"callee")&&!WO.call(c,"callee")},Ye=K.isArray,lH=CO?mr(CO):h4;function qi(c){return c!=null&&Xg(c.length)&&!pa(c)}o(qi,"isArrayLike");function Fn(c){return An(c)&&qi(c)}o(Fn,"isArrayLikeObject");function fH(c){return c===!0||c===!1||An(c)&&Ni(c)==O}o(fH,"isBoolean");var ss=E2||vb,uH=IO?mr(IO):y4;function pH(c){return An(c)&&c.nodeType===1&&!Ou(c)}o(pH,"isElement");function dH(c){if(c==null)return!0;if(qi(c)&&(Ye(c)||typeof c=="string"||typeof c.splice=="function"||ss(c)||Ol(c)||Tc(c)))return!c.length;var u=Ai(c);if(u==ze||u==hn)return!c.size;if(Cu(c))return!Mv(c).length;for(var g in c)if(Dt.call(c,g))return!1;return!0}o(dH,"isEmpty");function gH(c,u){return Eu(c,u)}o(gH,"isEqual");function mH(c,u,g){g=typeof g=="function"?g:e;var T=g?g(c,u):e;return T===e?Eu(c,u,e,g):!!T}o(mH,"isEqualWith");function lb(c){if(!An(c))return!1;var u=Ni(c);return u==V||u==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Ou(c)}o(lb,"isError");function hH(c){return typeof c=="number"&&XO(c)}o(hH,"isFinite");function pa(c){if(!Tn(c))return!1;var u=Ni(c);return u==_e||u==Nt||u==tt||u==ii}o(pa,"isFunction");function dL(c){return typeof c=="number"&&c==et(c)}o(dL,"isInteger");function Xg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Fe}o(Xg,"isLength");function Tn(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}o(Tn,"isObject");function An(c){return c!=null&&typeof c=="object"}o(An,"isObjectLike");var gL=OO?mr(OO):b4;function yH(c,u){return c===u||wv(c,u,Zv(u))}o(yH,"isMatch");function TH(c,u,g){return g=typeof g=="function"?g:e,wv(c,u,Zv(u),g)}o(TH,"isMatchWith");function vH(c){return mL(c)&&c!=+c}o(vH,"isNaN");function bH(c){if(i$(c))throw new Xe(i);return aR(c)}o(bH,"isNative");function SH(c){return c===null}o(SH,"isNull");function AH(c){return c==null}o(AH,"isNil");function mL(c){return typeof c=="number"||An(c)&&Ni(c)==kt}o(mL,"isNumber");function Ou(c){if(!An(c)||Ni(c)!=un)return!1;var u=bg(c);if(u===null)return!0;var g=Dt.call(u,"constructor")&&u.constructor;return typeof g=="function"&&g instanceof g&&hg.call(g)==h2}o(Ou,"isPlainObject");var fb=RO?mr(RO):S4;function EH(c){return dL(c)&&c>=-Fe&&c<=Fe}o(EH,"isSafeInteger");var hL=LO?mr(LO):A4;function Qg(c){return typeof c=="string"||!Ye(c)&&An(c)&&Ni(c)==bi}o(Qg,"isString");function yr(c){return typeof c=="symbol"||An(c)&&Ni(c)==Gt}o(yr,"isSymbol");var Ol=FO?mr(FO):E4;function PH(c){return c===e}o(PH,"isUndefined");function xH(c){return An(c)&&Ai(c)==Xi}o(xH,"isWeakMap");function CH(c){return An(c)&&Ni(c)==lu}o(CH,"isWeakSet");var IH=kg(kv),OH=kg(function(c,u){return c<=u});function yL(c){if(!c)return[];if(qi(c))return Qg(c)?fo(c):Qi(c);if(mu&&c[mu])return r2(c[mu]());var u=Ai(c),g=u==ze?xv:u==hn?dg:Rl;return g(c)}o(yL,"toArray");function da(c){if(!c)return c===0?c:0;if(c=Hr(c),c===Yt||c===-Yt){var u=c<0?-1:1;return u*vn}return c===c?c:0}o(da,"toFinite");function et(c){var u=da(c),g=u%1;return u===u?g?u-g:u:0}o(et,"toInteger");function TL(c){return c?gc(et(c),0,on):0}o(TL,"toLength");function Hr(c){if(typeof c=="number")return c;if(yr(c))return bn;if(Tn(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=Tn(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=MO(c);var g=sU.test(c);return g||lU.test(c)?$U(c.slice(2),g?2:8):aU.test(c)?bn:+c}o(Hr,"toNumber");function vL(c){return Do(c,Yi(c))}o(vL,"toPlainObject");function RH(c){return c?gc(et(c),-Fe,Fe):c===0?c:0}o(RH,"toSafeInteger");function It(c){return c==null?"":hr(c)}o(It,"toString");var LH=xl(function(c,u){if(Cu(u)||qi(u)){Do(u,Yn(u),c);return}for(var g in u)Dt.call(u,g)&&bu(c,g,u[g])}),bL=xl(function(c,u){Do(u,Yi(u),c)}),qg=xl(function(c,u,g,T){Do(u,Yi(u),c,T)}),FH=xl(function(c,u,g,T){Do(u,Yn(u),c,T)}),NH=fa(Fv);function DH(c,u){var g=Pl(c);return u==null?g:JO(g,u)}o(DH,"create");var _H=rt(function(c,u){c=Kt(c);var g=-1,T=u.length,A=T>2?u[2]:e;for(A&&Di(u[0],u[1],A)&&(T=1);++g<T;)for(var C=u[g],L=Yi(C),N=-1,M=L.length;++N<M;){var z=L[N],J=c[z];(J===e||po(J,Sl[z])&&!Dt.call(c,z))&&(c[z]=C[z])}return c}),VH=rt(function(c){return c.push(e,MR),gr(SL,e,c)});function wH(c,u){return DO(c,Ve(u,3),No)}o(wH,"findKey");function MH(c,u){return DO(c,Ve(u,3),Dv)}o(MH,"findLastKey");function kH(c,u){return c==null?c:Nv(c,Ve(u,3),Yi)}o(kH,"forIn");function jH(c,u){return c==null?c:iR(c,Ve(u,3),Yi)}o(jH,"forInRight");function UH(c,u){return c&&No(c,Ve(u,3))}o(UH,"forOwn");function $H(c,u){return c&&Dv(c,Ve(u,3))}o($H,"forOwnRight");function BH(c){return c==null?[]:Lg(c,Yn(c))}o(BH,"functions");function HH(c){return c==null?[]:Lg(c,Yi(c))}o(HH,"functionsIn");function ub(c,u,g){var T=c==null?e:mc(c,u);return T===e?g:T}o(ub,"get");function GH(c,u){return c!=null&&UR(c,u,p4)}o(GH,"has");function pb(c,u){return c!=null&&UR(c,u,d4)}o(pb,"hasIn");var WH=NR(function(c,u,g){u!=null&&typeof u.toString!="function"&&(u=yg.call(u)),c[u]=g},gb(zi)),KH=NR(function(c,u,g){u!=null&&typeof u.toString!="function"&&(u=yg.call(u)),Dt.call(c,u)?c[u].push(g):c[u]=[g]},Ve),XH=rt(Au);function Yn(c){return qi(c)?YO(c):Mv(c)}o(Yn,"keys");function Yi(c){return qi(c)?YO(c,!0):P4(c)}o(Yi,"keysIn");function QH(c,u){var g={};return u=Ve(u,3),No(c,function(T,A,C){ca(g,u(T,A,C),T)}),g}o(QH,"mapKeys");function qH(c,u){var g={};return u=Ve(u,3),No(c,function(T,A,C){ca(g,A,u(T,A,C))}),g}o(qH,"mapValues");var YH=xl(function(c,u,g){Fg(c,u,g)}),SL=xl(function(c,u,g,T){Fg(c,u,g,T)}),zH=fa(function(c,u){var g={};if(c==null)return g;var T=!1;u=dn(u,function(C){return C=os(C,c),T||(T=C.length>1),C}),Do(c,zv(c),g),T&&(g=Ur(g,p|d|m,W4));for(var A=u.length;A--;)Hv(g,u[A]);return g});function JH(c,u){return AL(c,Kg(Ve(u)))}o(JH,"omitBy");var ZH=fa(function(c,u){return c==null?{}:C4(c,u)});function AL(c,u){if(c==null)return{};var g=dn(zv(c),function(T){return[T]});return u=Ve(u),dR(c,g,function(T,A){return u(T,A[0])})}o(AL,"pickBy");function e5(c,u,g){u=os(u,c);var T=-1,A=u.length;for(A||(A=1,c=e);++T<A;){var C=c==null?e:c[_o(u[T])];C===e&&(T=A,C=g),c=pa(C)?C.call(c):C}return c}o(e5,"result");function t5(c,u,g){return c==null?c:Pu(c,u,g)}o(t5,"set");function n5(c,u,g,T){return T=typeof T=="function"?T:e,c==null?c:Pu(c,u,g,T)}o(n5,"setWith");var EL=VR(Yn),PL=VR(Yi);function i5(c,u,g){var T=Ye(c),A=T||ss(c)||Ol(c);if(u=Ve(u,4),g==null){var C=c&&c.constructor;A?g=T?new C:[]:Tn(c)?g=pa(C)?Pl(bg(c)):{}:g={}}return(A?Mr:No)(c,function(L,N,M){return u(g,L,N,M)}),g}o(i5,"transform");function r5(c,u){return c==null?!0:Hv(c,u)}o(r5,"unset");function o5(c,u,g){return c==null?c:TR(c,u,Kv(g))}o(o5,"update");function a5(c,u,g,T){return T=typeof T=="function"?T:e,c==null?c:TR(c,u,Kv(g),T)}o(a5,"updateWith");function Rl(c){return c==null?[]:Pv(c,Yn(c))}o(Rl,"values");function s5(c){return c==null?[]:Pv(c,Yi(c))}o(s5,"valuesIn");function c5(c,u,g){return g===e&&(g=u,u=e),g!==e&&(g=Hr(g),g=g===g?g:0),u!==e&&(u=Hr(u),u=u===u?u:0),gc(Hr(c),u,g)}o(c5,"clamp");function l5(c,u,g){return u=da(u),g===e?(g=u,u=0):g=da(g),c=Hr(c),g4(c,u,g)}o(l5,"inRange");function f5(c,u,g){if(g&&typeof g!="boolean"&&Di(c,u,g)&&(u=g=e),g===e&&(typeof u=="boolean"?(g=u,u=e):typeof c=="boolean"&&(g=c,c=e)),c===e&&u===e?(c=0,u=1):(c=da(c),u===e?(u=c,c=0):u=da(u)),c>u){var T=c;c=u,u=T}if(g||c%1||u%1){var A=QO();return Si(c+A*(u-c+UU("1e-"+((A+"").length-1))),u)}return Uv(c,u)}o(f5,"random");var u5=Cl(function(c,u,g){return u=u.toLowerCase(),c+(g?xL(u):u)});function xL(c){return db(It(c).toLowerCase())}o(xL,"capitalize");function CL(c){return c=It(c),c&&c.replace(uU,ZU).replace(LU,"")}o(CL,"deburr");function p5(c,u,g){c=It(c),u=hr(u);var T=c.length;g=g===e?T:gc(et(g),0,T);var A=g;return g-=u.length,g>=0&&c.slice(g,A)==u}o(p5,"endsWith");function d5(c){return c=It(c),c&&Ie.test(c)?c.replace(be,e2):c}o(d5,"escape");function g5(c){return c=It(c),c&&zj.test(c)?c.replace(du,"\\$&"):c}o(g5,"escapeRegExp");var m5=Cl(function(c,u,g){return c+(g?"-":"")+u.toLowerCase()}),h5=Cl(function(c,u,g){return c+(g?" ":"")+u.toLowerCase()}),y5=RR("toLowerCase");function T5(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;if(!u||T>=u)return c;var A=(u-T)/2;return Mg(Pg(A),g)+c+Mg(Eg(A),g)}o(T5,"pad");function v5(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;return u&&T<u?c+Mg(u-T,g):c}o(v5,"padEnd");function b5(c,u,g){c=It(c),u=et(u);var T=u?bl(c):0;return u&&T<u?Mg(u-T,g)+c:c}o(b5,"padStart");function S5(c,u,g){return g||u==null?u=0:u&&(u=+u),I2(It(c).replace(lv,""),u||0)}o(S5,"parseInt");function A5(c,u,g){return(g?Di(c,u,g):u===e)?u=1:u=et(u),$v(It(c),u)}o(A5,"repeat");function E5(){var c=arguments,u=It(c[0]);return c.length<3?u:u.replace(c[1],c[2])}o(E5,"replace");var P5=Cl(function(c,u,g){return c+(g?"_":"")+u.toLowerCase()});function x5(c,u,g){return g&&typeof g!="number"&&Di(c,u,g)&&(u=g=e),g=g===e?on:g>>>0,g?(c=It(c),c&&(typeof u=="string"||u!=null&&!fb(u))&&(u=hr(u),!u&&vl(c))?as(fo(c),0,g):c.split(u,g)):[]}o(x5,"split");var C5=Cl(function(c,u,g){return c+(g?" ":"")+db(u)});function I5(c,u,g){return c=It(c),g=g==null?0:gc(et(g),0,c.length),u=hr(u),c.slice(g,g+u.length)==u}o(I5,"startsWith");function O5(c,u,g){var T=x.templateSettings;g&&Di(c,u,g)&&(u=e),c=It(c),u=qg({},u,T,wR);var A=qg({},u.imports,T.imports,wR),C=Yn(A),L=Pv(A,C),N,M,z=0,J=u.interpolate||cg,ne="__p += '",me=Cv((u.escape||cg).source+"|"+J.source+"|"+(J===pn?oU:cg).source+"|"+(u.evaluate||cg).source+"|$","g"),Re="//# sourceURL="+(Dt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VU+"]")+`
272
272
  `;c.replace(me,function(ke,lt,mt,Tr,_i,vr){return mt||(mt=Tr),ne+=c.slice(z,vr).replace(pU,t2),lt&&(N=!0,ne+=`' +
273
273
  __e(`+lt+`) +
274
274
  '`),_i&&(M=!0,ne+=`';
@@ -285,13 +285,13 @@ __p += '`),mt&&(ne+=`' +
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ne+`return __p
288
- }`;var nt=OL(function(){return Et(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,lb(nt))throw nt;return nt}o(OG,"template");function RG(c){return It(c).toLowerCase()}o(RG,"toLower");function LG(c){return It(c).toUpperCase()}o(LG,"toUpper");function FG(c,u,g){if(c=It(c),c&&(g||u===e))return MO(c);if(!c||!(u=hr(u)))return c;var T=fo(c),A=fo(u),C=kO(T,A),L=jO(T,A)+1;return os(T,C,L).join("")}o(FG,"trim");function NG(c,u,g){if(c=It(c),c&&(g||u===e))return c.slice(0,$O(c)+1);if(!c||!(u=hr(u)))return c;var T=fo(c),A=jO(T,fo(u))+1;return os(T,0,A).join("")}o(NG,"trimEnd");function DG(c,u,g){if(c=It(c),c&&(g||u===e))return c.replace(lv,"");if(!c||!(u=hr(u)))return c;var T=fo(c),A=kO(T,fo(u));return os(T,A).join("")}o(DG,"trimStart");function _G(c,u){var g=D,T=Ue;if(Tn(u)){var A="separator"in u?u.separator:A;g="length"in u?et(u.length):g,T="omission"in u?hr(u.omission):T}c=It(c);var C=c.length;if(vl(c)){var L=fo(c);C=L.length}if(g>=C)return c;var N=g-bl(T);if(N<1)return T;var M=L?os(L,0,N).join(""):c.slice(0,N);if(A===e)return M+T;if(L&&(N+=M.length-N),fb(A)){if(c.slice(N).search(A)){var z,J=M;for(A.global||(A=Cv(A.source,It(oO.exec(A))+"g")),A.lastIndex=0;z=A.exec(J);)var ne=z.index;M=M.slice(0,ne===e?N:ne)}}else if(c.indexOf(hr(A),N)!=N){var me=M.lastIndexOf(A);me>-1&&(M=M.slice(0,me))}return M+T}o(_G,"truncate");function VG(c){return c=It(c),c&&Pe.test(c)?c.replace(he,c2):c}o(VG,"unescape");var wG=Cl(function(c,u,g){return c+(g?" ":"")+u.toUpperCase()}),db=RR("toUpperCase");function IL(c,u,g){return c=It(c),u=g?e:u,u===e?i2(c)?u2(c):QU(c):c.match(u)||[]}o(IL,"words");var OL=rt(function(c,u){try{return gr(c,e,u)}catch(g){return lb(g)?g:new Xe(g)}}),MG=fa(function(c,u){return Mr(u,function(g){g=_o(g),ca(c,g,sb(c[g],c))}),c});function kG(c){var u=c==null?0:c.length,g=Ve();return c=u?dn(c,function(T){if(typeof T[1]!="function")throw new kr(r);return[g(T[0]),T[1]]}):[],rt(function(T){for(var A=-1;++A<u;){var C=c[A];if(gr(C[0],this,T))return gr(C[1],this,T)}})}o(kG,"cond");function jG(c){return l4(Ur(c,p))}o(jG,"conforms");function gb(c){return function(){return c}}o(gb,"constant");function UG(c,u){return c==null||c!==c?u:c}o(UG,"defaultTo");var $G=FR(),BG=FR(!0);function zi(c){return c}o(zi,"identity");function mb(c){return sR(typeof c=="function"?c:Ur(c,p))}o(mb,"iteratee");function HG(c){return lR(Ur(c,p))}o(HG,"matches");function GG(c,u){return fR(c,Ur(u,p))}o(GG,"matchesProperty");var WG=rt(function(c,u){return function(g){return Au(g,c,u)}}),KG=rt(function(c,u){return function(g){return Au(c,g,u)}});function hb(c,u,g){var T=Yn(u),A=Lg(u,T);g==null&&!(Tn(u)&&(A.length||!T.length))&&(g=u,u=c,c=this,A=Lg(u,Yn(u)));var C=!(Tn(g)&&"chain"in g)||!!g.chain,L=pa(c);return Mr(A,function(N){var M=u[N];c[N]=M,L&&(c.prototype[N]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Qi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Ja([this.value()],arguments))})}),c}o(hb,"mixin");function XG(){return qn._===this&&(qn._=y2),this}o(XG,"noConflict");function yb(){}o(yb,"noop");function QG(c){return c=et(c),rt(function(u){return uR(u,c)})}o(QG,"nthArg");var qG=Qv(dn),YG=Qv(NO),zG=Qv(vv);function RL(c){return tb(c)?bv(_o(c)):I4(c)}o(RL,"property");function JG(c){return function(u){return c==null?e:mc(c,u)}}o(JG,"propertyOf");var ZG=DR(),e5=DR(!0);function Tb(){return[]}o(Tb,"stubArray");function vb(){return!1}o(vb,"stubFalse");function t5(){return{}}o(t5,"stubObject");function n5(){return""}o(n5,"stubString");function i5(){return!0}o(i5,"stubTrue");function r5(c,u){if(c=et(c),c<1||c>Fe)return[];var g=on,T=Si(c,on);u=Ve(u),c-=on;for(var A=Ev(T,u);++g<c;)u(g);return A}o(r5,"times");function o5(c){return Ye(c)?dn(c,_o):yr(c)?[c]:Qi(qR(It(c)))}o(o5,"toPath");function a5(c){var u=++m2;return It(c)+u}o(a5,"uniqueId");var s5=wg(function(c,u){return c+u},0),c5=qv("ceil"),l5=wg(function(c,u){return c/u},1),f5=qv("floor");function u5(c){return c&&c.length?Rg(c,zi,_v):e}o(u5,"max");function p5(c,u){return c&&c.length?Rg(c,Ve(u,2),_v):e}o(p5,"maxBy");function d5(c){return VO(c,zi)}o(d5,"mean");function g5(c,u){return VO(c,Ve(u,2))}o(g5,"meanBy");function m5(c){return c&&c.length?Rg(c,zi,kv):e}o(m5,"min");function h5(c,u){return c&&c.length?Rg(c,Ve(u,2),kv):e}o(h5,"minBy");var y5=wg(function(c,u){return c*u},1),T5=qv("round"),v5=wg(function(c,u){return c-u},0);function b5(c){return c&&c.length?Av(c,zi):0}o(b5,"sum");function S5(c,u){return c&&c.length?Av(c,Ve(u,2)):0}return o(S5,"sumBy"),x.after=HB,x.ary=aL,x.assign=LH,x.assignIn=bL,x.assignInWith=qg,x.assignWith=FH,x.at=NH,x.before=sL,x.bind=sb,x.bindAll=MG,x.bindKey=cL,x.castArray=tH,x.chain=iL,x.chunk=f$,x.compact=u$,x.concat=p$,x.cond=kG,x.conforms=jG,x.constant=gb,x.countBy=bB,x.create=DH,x.curry=lL,x.curryRight=fL,x.debounce=uL,x.defaults=_H,x.defaultsDeep=VH,x.defer=GB,x.delay=WB,x.difference=d$,x.differenceBy=g$,x.differenceWith=m$,x.drop=h$,x.dropRight=y$,x.dropRightWhile=T$,x.dropWhile=v$,x.fill=b$,x.filter=AB,x.flatMap=xB,x.flatMapDeep=CB,x.flatMapDepth=IB,x.flatten=ZR,x.flattenDeep=S$,x.flattenDepth=A$,x.flip=KB,x.flow=$G,x.flowRight=BG,x.fromPairs=E$,x.functions=BH,x.functionsIn=HH,x.groupBy=OB,x.initial=x$,x.intersection=C$,x.intersectionBy=I$,x.intersectionWith=O$,x.invert=WH,x.invertBy=KH,x.invokeMap=LB,x.iteratee=mb,x.keyBy=FB,x.keys=Yn,x.keysIn=Yi,x.map=Hg,x.mapKeys=QH,x.mapValues=qH,x.matches=HG,x.matchesProperty=GG,x.memoize=Wg,x.merge=YH,x.mergeWith=SL,x.method=WG,x.methodOf=KG,x.mixin=hb,x.negate=Kg,x.nthArg=QG,x.omit=zH,x.omitBy=JH,x.once=XB,x.orderBy=NB,x.over=qG,x.overArgs=QB,x.overEvery=YG,x.overSome=zG,x.partial=cb,x.partialRight=pL,x.partition=DB,x.pick=ZH,x.pickBy=AL,x.property=RL,x.propertyOf=JG,x.pull=N$,x.pullAll=tL,x.pullAllBy=D$,x.pullAllWith=_$,x.pullAt=V$,x.range=ZG,x.rangeRight=e5,x.rearg=qB,x.reject=wB,x.remove=w$,x.rest=YB,x.reverse=ob,x.sampleSize=kB,x.set=tG,x.setWith=nG,x.shuffle=jB,x.slice=M$,x.sortBy=BB,x.sortedUniq=G$,x.sortedUniqBy=W$,x.split=xG,x.spread=zB,x.tail=K$,x.take=X$,x.takeRight=Q$,x.takeRightWhile=q$,x.takeWhile=Y$,x.tap=uB,x.throttle=JB,x.thru=Bg,x.toArray=yL,x.toPairs=EL,x.toPairsIn=PL,x.toPath=o5,x.toPlainObject=vL,x.transform=iG,x.unary=ZB,x.union=z$,x.unionBy=J$,x.unionWith=Z$,x.uniq=eB,x.uniqBy=tB,x.uniqWith=nB,x.unset=rG,x.unzip=ab,x.unzipWith=nL,x.update=oG,x.updateWith=aG,x.values=Rl,x.valuesIn=sG,x.without=iB,x.words=IL,x.wrap=eH,x.xor=rB,x.xorBy=oB,x.xorWith=aB,x.zip=sB,x.zipObject=cB,x.zipObjectDeep=lB,x.zipWith=fB,x.entries=EL,x.entriesIn=PL,x.extend=bL,x.extendWith=qg,hb(x,x),x.add=s5,x.attempt=OL,x.camelCase=uG,x.capitalize=xL,x.ceil=c5,x.clamp=cG,x.clone=nH,x.cloneDeep=rH,x.cloneDeepWith=oH,x.cloneWith=iH,x.conformsTo=aH,x.deburr=CL,x.defaultTo=UG,x.divide=l5,x.endsWith=pG,x.eq=po,x.escape=dG,x.escapeRegExp=gG,x.every=SB,x.find=EB,x.findIndex=zR,x.findKey=wH,x.findLast=PB,x.findLastIndex=JR,x.findLastKey=MH,x.floor=f5,x.forEach=rL,x.forEachRight=oL,x.forIn=kH,x.forInRight=jH,x.forOwn=UH,x.forOwnRight=$H,x.get=ub,x.gt=sH,x.gte=cH,x.has=GH,x.hasIn=pb,x.head=eL,x.identity=zi,x.includes=RB,x.indexOf=P$,x.inRange=lG,x.invoke=XH,x.isArguments=Tc,x.isArray=Ye,x.isArrayBuffer=lH,x.isArrayLike=qi,x.isArrayLikeObject=Fn,x.isBoolean=fH,x.isBuffer=as,x.isDate=uH,x.isElement=pH,x.isEmpty=dH,x.isEqual=gH,x.isEqualWith=mH,x.isError=lb,x.isFinite=hH,x.isFunction=pa,x.isInteger=dL,x.isLength=Xg,x.isMap=gL,x.isMatch=yH,x.isMatchWith=TH,x.isNaN=vH,x.isNative=bH,x.isNil=AH,x.isNull=SH,x.isNumber=mL,x.isObject=Tn,x.isObjectLike=An,x.isPlainObject=Ou,x.isRegExp=fb,x.isSafeInteger=EH,x.isSet=hL,x.isString=Qg,x.isSymbol=yr,x.isTypedArray=Ol,x.isUndefined=PH,x.isWeakMap=xH,x.isWeakSet=CH,x.join=R$,x.kebabCase=mG,x.last=Br,x.lastIndexOf=L$,x.lowerCase=hG,x.lowerFirst=yG,x.lt=IH,x.lte=OH,x.max=u5,x.maxBy=p5,x.mean=d5,x.meanBy=g5,x.min=m5,x.minBy=h5,x.stubArray=Tb,x.stubFalse=vb,x.stubObject=t5,x.stubString=n5,x.stubTrue=i5,x.multiply=y5,x.nth=F$,x.noConflict=XG,x.noop=yb,x.now=Gg,x.pad=TG,x.padEnd=vG,x.padStart=bG,x.parseInt=SG,x.random=fG,x.reduce=_B,x.reduceRight=VB,x.repeat=AG,x.replace=EG,x.result=eG,x.round=T5,x.runInContext=w,x.sample=MB,x.size=UB,x.snakeCase=PG,x.some=$B,x.sortedIndex=k$,x.sortedIndexBy=j$,x.sortedIndexOf=U$,x.sortedLastIndex=$$,x.sortedLastIndexBy=B$,x.sortedLastIndexOf=H$,x.startCase=CG,x.startsWith=IG,x.subtract=v5,x.sum=b5,x.sumBy=S5,x.template=OG,x.times=r5,x.toFinite=da,x.toInteger=et,x.toLength=TL,x.toLower=RG,x.toNumber=Hr,x.toSafeInteger=RH,x.toString=It,x.toUpper=LG,x.trim=FG,x.trimEnd=NG,x.trimStart=DG,x.truncate=_G,x.unescape=VG,x.uniqueId=a5,x.upperCase=wG,x.upperFirst=db,x.each=rL,x.eachRight=oL,x.first=eL,hb(x,(function(){var c={};return No(x,function(u,g){Dt.call(x.prototype,g)||(c[g]=u)}),c})(),{chain:!1}),x.VERSION=t,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),Mr(["drop","take"],function(c,u){gt.prototype[c]=function(g){g=g===e?1:Wn(et(g),0);var T=this.__filtered__&&!u?new gt(this):this.clone();return T.__filtered__?T.__takeCount__=Si(g,T.__takeCount__):T.__views__.push({size:Si(g,on),type:c+(T.__dir__<0?"Right":"")}),T},gt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),Mr(["filter","map","takeWhile"],function(c,u){var g=u+1,T=g==rn||g==At;gt.prototype[c]=function(A){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(A,3),type:g}),C.__filtered__=C.__filtered__||T,C}}),Mr(["head","last"],function(c,u){var g="take"+(u?"Right":"");gt.prototype[c]=function(){return this[g](1).value()[0]}}),Mr(["initial","tail"],function(c,u){var g="drop"+(u?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[g](1)}}),gt.prototype.compact=function(){return this.filter(zi)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=rt(function(c,u){return typeof c=="function"?new gt(this):this.map(function(g){return Au(g,c,u)})}),gt.prototype.reject=function(c){return this.filter(Kg(Ve(c)))},gt.prototype.slice=function(c,u){c=et(c);var g=this;return g.__filtered__&&(c>0||u<0)?new gt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),u!==e&&(u=et(u),g=u<0?g.dropRight(-u):g.take(u-c)),g)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(on)},No(gt.prototype,function(c,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),T=/^(?:head|last)$/.test(u),A=x[T?"take"+(u=="last"?"Right":""):u],C=T||/^find/.test(u);A&&(x.prototype[u]=function(){var L=this.__wrapped__,N=T?[1]:arguments,M=L instanceof gt,z=N[0],J=M||Ye(L),ne=o(function(lt){var mt=A.apply(x,Ja([lt],N));return T&&me?mt[0]:mt},"interceptor");J&&g&&typeof z=="function"&&z.length!=1&&(M=J=!1);var me=this.__chain__,Re=!!this.__actions__.length,Me=C&&!me,nt=M&&!Re;if(!C&&J){L=nt?L:new gt(this);var ke=c.apply(L,N);return ke.__actions__.push({func:Bg,args:[ne],thisArg:e}),new jr(ke,me)}return Me&&nt?c.apply(this,N):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(c){var u=gg[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var A=arguments;if(T&&!this.__chain__){var C=this.value();return u.apply(Ye(C)?C:[],A)}return this[g](function(L){return u.apply(Ye(L)?L:[],A)})}}),No(gt.prototype,function(c,u){var g=x[u];if(g){var T=g.name+"";Dt.call(El,T)||(El[T]=[]),El[T].push({name:u,func:g})}}),El[Vg(e,I).name]=[{name:"wrapper",func:e}],gt.prototype.clone=_2,gt.prototype.reverse=V2,gt.prototype.value=w2,x.prototype.at=pB,x.prototype.chain=dB,x.prototype.commit=gB,x.prototype.next=mB,x.prototype.plant=yB,x.prototype.reverse=TB,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=vB,x.prototype.first=x.prototype.head,mu&&(x.prototype[mu]=hB),x}),"runInContext"),es=p2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=es,define(function(){return es})):fc?((fc.exports=es)._=es,mv._=es):qn._=es}).call(Vf)});var qM=Ze((xge,QM)=>{var{findIndex:gY}=ud();function mY(e,t){let i=gY(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(mY,"findNextTextualToken");QM.exports={findNextTextualToken:mY}});var JM=Ze((Ige,zM)=>{var YM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function hY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(YM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(hY,"isXMLNamespaceKey");function yY(e){if(typeof e!="string")return;let t=e.match(YM);if(t!==null)return t.groups&&t.groups.prefix||""}o(yY,"getXMLNamespaceKeyPrefix");zM.exports={isXMLNamespaceKey:hY,getXMLNamespaceKeyPrefix:yY}});var ek=Ze((Rge,ZM)=>{var{findNextTextualToken:TY}=qM(),{isXMLNamespaceKey:vY,getXMLNamespaceKeyPrefix:bY}=JM();ZM.exports={findNextTextualToken:TY,isXMLNamespaceKey:vY,getXMLNamespaceKeyPrefix:bY}});var gx=Ze((Lge,nk)=>{var{reduce:SY,has:tk,isArray:AY}=ud();function EY(e){return SY(e,(n,i,r)=>(r==="parent"||(tk(i,"type")?n.push(i):AY(i)&&i.length>0&&tk(i[0],"type")&&(n=n.concat(i))),n),[])}o(EY,"getAstChildrenReflective");nk.exports={getAstChildrenReflective:EY}});var mx=Ze((Nge,ik)=>{ik.exports={DEFAULT_NS:"::DEFAULT"}});var uk=Ze((Dge,fk)=>{var{BaseXmlCstVisitor:PY}=dx(),{last:xY,forEach:sk,reduce:CY,map:pd,pick:yx,sortBy:IY,isEmpty:OY,isArray:ck,assign:RY}=ud(),{findNextTextualToken:LY,isXMLNamespaceKey:FY,getXMLNamespaceKeyPrefix:NY}=ek(),{getAstChildrenReflective:DY}=gx(),{DEFAULT_NS:_Y}=mx();function VY(e,t){rk.setState({tokenVector:t});let n=rk.visit(e);return n.rootElement!==cl&&lk(n.rootElement),n}o(VY,"buildAst");var Tx=class Tx extends PY{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:cl,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&OY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),TT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=pd(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),TT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=pd(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=pd(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:cl,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=pd(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return kY(i,t),jY(i,t),UY(i,t,this.tokenVector),TT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:cl,value:cl,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=vT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=wY(a.image),r.syntax.value=vT(a)}return TT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:cl},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=IY(r,["startOffset"]),s=pd(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(Tx,"CstToAstVisitor");var hx=Tx,rk=new hx;function TT(e){let t=DY(e);sk(t,n=>n.parent=e)}o(TT,"setChildrenParent");function lk(e,t=[]){let n=CY(e.attributes,(r,a)=>{if(a.key!==cl&&FY({key:a.key,includeEmptyPrefix:!1})===!0){let s=NY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[_Y]=l}}return r},{}),i=Object.create(null);e.namespaces=RY(i,t,n),sk(e.subElements,r=>lk(r,e.namespaces))}o(lk,"updateNamespaces");function vT(e){return yx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(vT,"toXMLToken");function ok(e){return yx(e,["startOffset","startLine","startColumn"])}o(ok,"startOfXMLToken");function ak(e){return yx(e,["endOffset","endLine","endColumn"])}o(ak,"endOfXMLToken");function Ga(e){return ck(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ga,"exists");function wY(e){return e.substring(1,e.length-1)}o(wY,"stripQuotes");function MY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(MY,"nsToParts");var cl=null;function kY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=vT(n);let i=MY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=vT(t.END_NAME[0]))}o(kY,"handleElementOpenCloseNameRanges");function jY(e,t){if(Ga(t.OPEN)){let n;Ga(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ga(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...ok(t.OPEN[0]),...ak(n)}),Ga(t.SLASH_OPEN)&&Ga(t.END)&&(e.syntax.closeBody={...ok(t.SLASH_OPEN[0]),...ak(t.END[0])})}}o(jY,"handleElementOpenCloseBodyRanges");function UY(e,t,n){if(Ga(t.Name)){let i=t.Name[0].endOffset+2;if(Ga(t.START_CLOSE)||Ga(t.SLASH_CLOSE)){let r=(Ga(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=ck(t.attribute)?xY(t.attribute).location.endOffset:t.Name[0].endOffset,s=LY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(UY,"handleElementAttributeRanges");fk.exports={buildAst:VY}});var gk=Ze((Vge,dk)=>{var{forEach:$Y,isFunction:wf}=ud(),{getAstChildrenReflective:BY}=gx();function pk(e,t){switch(e.type){case"XMLDocument":{wf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{wf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{wf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{wf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{wf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{wf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=BY(e);$Y(n,i=>{pk(i,t)})}o(pk,"accept");dk.exports={accept:pk}});var hk=Ze((Mge,mk)=>{var{buildAst:HY}=uk(),{accept:GY}=gk(),{DEFAULT_NS:WY}=mx();mk.exports={buildAst:HY,accept:GY,DEFAULT_NS:WY}});var Vi={};vc(Vi,{deleteConfigEntityByPath:()=>lee,exportConfig:()=>see,exportConfigEntityByPath:()=>cee,generateCustomExtension:()=>ZI,generateSchema:()=>aee,getApiVersion:()=>dee,getChanges:()=>Yj,getGenericSchema:()=>iv,getPathToGenericSchema:()=>mj,getProject:()=>Tee,importConfig:()=>fee,importProject:()=>uee,importProjectSchema:()=>pee,isDirectory:()=>mee,log:()=>oe,prompts:()=>oee,readDirectory:()=>rO});module.exports=zg(Vi);var ge=Z(re());var G=Z(re());var Be=o(e=>typeof e=="string","isString"),Ru=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),mD=o(e=>e==null?"":""+e,"makeString"),n8=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),i8=/###/g,hD=o(e=>e&&e.indexOf("###")>-1?e.replace(i8,"."):e,"cleanKey"),yD=o(e=>!e||Be(e),"canNotTraverseDeeper"),Lu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(yD(e))return{};let a=hD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return yD(e)?{}:{obj:e,k:hD(i[r])}},"getLastOfPath"),TD=o((e,t,n)=>{let{obj:i,k:r}=Lu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Lu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Lu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),r8=o((e,t,n,i)=>{let{obj:r,k:a}=Lu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Zg=o((e,t)=>{let{obj:n,k:i}=Lu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),o8=o((e,t,n)=>{let i=Zg(e,n);return i!==void 0?i:Zg(t,n)},"getPathWithDefaults"),CD=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):CD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Fl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),a8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},s8=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>a8[t]):e,"escape"),wb=class wb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(wb,"RegExpCache");var Ob=wb,c8=[" ",",","?","!",";"],l8=new Ob(20),f8=o((e,t,n)=>{t=t||"",n=n||"";let i=c8.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=l8.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Rb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let f=a;f<i.length;++f)if(f!==a&&(l+=n),l+=i[f],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&f<i.length-1)continue;a+=f-a+1;break}r=s}return r},"deepFind"),Du=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),u8={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},Fu=class Fu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||u8,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Fu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Fu(this.logger,t)}};o(Fu,"Logger");var Lb=Fu,Vo=new Lb,Mb=class Mb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(Mb,"EventEmitter");var Nl=Mb,kb=class kb extends Nl{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i,r={}){var p,d;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let f=Zg(this.data,l);return!f&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),f||!s||!Be(i)?f:Rb((d=(p=this.data)==null?void 0:p[t])==null?void 0:d[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),TD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let f=Zg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?CD(f,i,a):f={...f,...i},TD(this.data,l,f),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(kb,"ResourceStore");var em=kb,ID={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},OD=Symbol("i18next/PATH_KEY");function p8(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===OD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(p8,"createProxy");function Fb(e,t){let{[OD]:n}=e(p8());return n.join((t==null?void 0:t.keySeparator)??".")}o(Fb,"keysFromSelector");var vD={},Cb=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),rm=class rm extends Nl{constructor(t,n={}){super(),n8(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);if((r==null?void 0:r.res)===void 0)return!1;let a=Cb(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!f8(t,i,r);if(s&&!l){let f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Fb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(t[t.length-1],r),p=f[f.length-1],d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${d}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${d}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let S=this.resolve(t,r),b=S==null?void 0:S.res,I=(S==null?void 0:S.usedKey)||l,F=(S==null?void 0:S.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),ee=rm.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;U&&!b&&ee&&($e=Ue);let qe=Cb($e),rn=Object.prototype.toString.apply($e);if(U&&$e&&qe&&j.indexOf(rn)<0&&!(Be(W)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Bt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(S.res=Bt,S.usedParams=this.getUsedParamsDetails(r),S):Bt}if(s){let Bt=Array.isArray($e),At=Bt?[]:{},Yt=Bt?F:I;for(let Fe in $e)if(Object.prototype.hasOwnProperty.call($e,Fe)){let vn=`${Yt}${s}${Fe}`;ee&&!b?At[Fe]=this.translate(vn,{...r,defaultValue:Cb(Ue)?Ue[Fe]:void 0,joinArrays:!1,ns:f}):At[Fe]=this.translate(vn,{...r,joinArrays:!1,ns:f}),At[Fe]===vn&&(At[Fe]=$e[Fe])}b=At}}else if(U&&Be(W)&&Array.isArray(b))b=b.join(W),b&&(b=this.extendTranslation(b,t,r,i));else{let Bt=!1,At=!1;!this.isValidLookup(b)&&ee&&(Bt=!0,b=Ue),this.isValidLookup(b)||(At=!0,b=l);let Fe=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&At?void 0:b,vn=ee&&Ue!==b&&this.options.updateMissing;if(At||Bt||vn){if(this.logger.log(vn?"updateKey":"missingKey",m,p,l,vn?Ue:b),s){let an=this.resolve(l,{...r,keySeparator:!1});an&&an.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let bn=[],on=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&on&&on[0])for(let an=0;an<on.length;an++)bn.push(on[an]);else this.options.saveMissingTo==="all"?bn=this.languageUtils.toResolveHierarchy(r.lng||this.language):bn.push(r.lng||this.language);let Rn=o((an,Oe,fn)=>{var tt;let Fi=ee&&fn!==b?fn:Fe;this.options.missingKeyHandler?this.options.missingKeyHandler(an,p,Oe,Fi,vn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(an,p,Oe,Fi,vn,r),this.emit("missingKey",an,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?bn.forEach(an=>{let Oe=this.pluralResolver.getSuffixes(an,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(fn=>{Rn([an],l+fn,r[`defaultValue${fn}`]||Ue)})}):Rn(bn,l,Ue))}b=this.extendTranslation(b,t,r,S,i),At&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${d}${l}`),(At||Bt)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${d}${l}`:l,Bt?b:void 0,r))}return a?(S.res=b,S.usedParams=this.getUsedParamsDetails(r),S):b}extendTranslation(t,n,i,r,a){var f,p;if((f=this.i18nFormat)!=null&&f.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){let S=t.match(this.interpolator.nestingRegexp);m=S&&S.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),d){let S=t.match(this.interpolator.nestingRegexp),b=S&&S.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...S)=>(a==null?void 0:a[0])===S[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):this.translate(...S,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=ID.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(f,n),d=p.key;r=d;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),S=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{var j,W;this.isValidLookup(i)||(l=F,!vD[`${I[0]}-${F}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((W=this.utils)!=null&&W.hasLoadedNamespace(l))&&(vD[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(U=>{var le;if(this.isValidLookup(i))return;s=U;let se=[d];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,d,U,F,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix(U,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(d+Le.replace(Ue,this.options.pluralSeparator)),se.push(d+Le),S&&se.push(d+D)),b){let $e=`${d}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),S&&se.push($e+D))}}let ee;for(;ee=se.pop();)this.isValidLookup(i)||(a=ee,i=this.getResource(U,F,ee,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(rm,"Translator");var tm=rm,jb=class jb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vo.create("languageUtils")}getScriptPartFromCode(t){if(t=Du(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Du(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(jb,"LanguageUtil");var nm=jb,bD={zero:0,one:1,two:2,few:3,many:4,other:5},SD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Ub=class Ub{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Vo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Du(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),SD;if(!t.match(/-|_/))return SD;let f=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(f,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>bD[r]-bD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Ub,"PluralResolver");var Nb=Ub,AD=o((e,t,n,i=".",r=!0)=>{let a=o8(e,t,n);return!a&&r&&Be(n)&&(a=Rb(e,n,i),a===void 0&&(a=Rb(t,n,i))),a},"deepFindWithDefaults"),Ib=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$b=class $b{constructor(t={}){var n;this.logger=Vo.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:f,formatSeparator:p,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:s8,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Fl(a):s||"{{",this.suffix=l?Fl(l):f||"}}",this.formatSeparator=p||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=v?Fl(v):S||Fl("$t("),this.nestingSuffix=b?Fl(b):I||Fl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var S;let a,s,l,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let W=AD(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(W,void 0,i,{...r,...n,interpolationkey:b}):W}let I=b.split(this.formatSeparator),F=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(AD(n,f,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:F})},"handleFormat");this.resetRegExp();let d=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((S=r==null?void 0:r.interpolation)==null?void 0:S.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ib(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ib(this.escape(b)):Ib(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof d=="function"){let j=d(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=mD(s));let F=b.safeValue(s);if(t=t.replace(a[0],F),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((f,p)=>{let d=this.nestingOptionsSeparator;if(f.indexOf(d)<0)return f;let m=f.split(new RegExp(`${d}[ ]*{`)),v=`{${m[1]}`;f=m[0],v=this.interpolate(v,s);let S=v.match(/'/g),b=v.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,I),`${f}${d}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,f},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let f=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(f=r[1].slice(p).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=mD(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),f.length&&(a=f.reduce((d,m)=>this.format(d,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($b,"Interpolator");var Db=$b,d8=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...f]=s.split(":"),p=f.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();n[d]||(n[d]=p),p==="false"&&(n[d]=!1),p==="true"&&(n[d]=!0),isNaN(p)||(n[d]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ED=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Du(i),r),t[s]=l),l(n)}},"createCachedFormatter"),g8=o(e=>(t,n,i)=>e(Du(n),i)(t),"createNonCachedFormatter"),Bb=class Bb{constructor(t={}){this.logger=Vo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?ED:g8;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ED(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(f=>f.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,f)=>{var m;let{formatName:p,formatOptions:d}=d8(f);if(this.formats[p]){let v=l;try{let S=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=S.locale||S.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...d,...r,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Bb,"Formatter");var _b=Bb,m8=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Hb=class Hb extends Nl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Vo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},f={};return t.forEach(p=>{let d=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,d=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),f[m]===void 0&&(f[m]=!0)))}),d||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(f)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(f=>{r8(f.loaded,[a],s),m8(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(p=>{l[p]||(l[p]={});let d=f.loaded[p];d.length&&d.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(f=>!f.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,d)},"resolver"),f=this.backend[i].bind(this.backend);if(f.length===2){try{let p=f(t,n);p&&typeof p.then=="function"?p.then(d=>l(null,d)).catch(l):l(null,p)}catch(p){l(p)}return}return f(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var f,p,d,m,v;if((p=(f=this.services)==null?void 0:f.utils)!=null&&p.hasLoadedNamespace&&!((m=(d=this.services)==null?void 0:d.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let S={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,S):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(F=>l(null,F)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,S)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Hb,"Connector");var Vb=Hb,PD=o(()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),xD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Jg=o(()=>{},"noop"),h8=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Nu=class Nu extends Nl{constructor(t={},n){if(super(),this.options=xD(t),this.services={},this.logger=Vo,this.modules={external:[]},h8(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=PD();this.options={...i,...this.options,...xD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vo.init(r(this.modules.logger),this.options):Vo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=_b;let d=new nm(this.options);this.store=new em(this.options.resources,this.options);let m=this.services;m.logger=Vo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new Nb(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Db(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Vb(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new tm(this.services,this.options),this.translator.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...d)=>this.store[p](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...d)=>(this.store[p](...d),this)});let l=Ru(),f=o(()=>{let p=o((d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(d,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),l}loadResources(t,n=Jg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],f=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?f(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>f(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Ru();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Jg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ID.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=Ru();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,f)=>{f?this.isLanguageChangingTo===t&&(r(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var d,m;!t&&!l&&this.services.languageDetector&&(l=[]);let f=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||m.call(d,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let f;typeof s!="object"?f=this.options.overloadTranslationOptionHandler([a,s].concat(l)):f={...s},f.lng=f.lng||r.lng,f.lngs=f.lngs||r.lngs,f.ns=f.ns||r.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",d;return f.keyPrefix&&Array.isArray(a)?d=a.map(m=>(typeof m=="function"&&(m=Fb(m,{...this.options,...s})),`${f.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=Fb(a,{...this.options,...s})),d=f.keyPrefix?`${f.keyPrefix}${p}${a}`:a),this.t(d,f)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,f)=>{let p=this.services.backendConnector.state[`${l}|${f}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Ru();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Ru();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new nm(PD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Nu(t,n)}cloneInstance(t={},n=Jg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Nu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((f,p)=>(f[p]={...this.store.data[p]},f[p]=Object.keys(f[p]).reduce((d,m)=>(d[m]={...f[p][m]},d),f[p]),f),{});a.store=new em(l,r),a.services.resourceStore=a.store}return a.translator=new tm(a.services,r),a.translator.on("*",(l,...f)=>{a.emit(l,...f)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Nu,"I18n");var im=Nu,Q=im.createInstance();Q.createInstance=im.createInstance;var Ree=Q.createInstance,Lee=Q.dir,Fee=Q.init,Nee=Q.loadResources,Dee=Q.reloadResources,_ee=Q.use,Vee=Q.changeLanguage,wee=Q.getFixedT,Mee=Q.t,kee=Q.exists,jee=Q.setDefaultNamespace,Uee=Q.hasLoadedNamespace,$ee=Q.loadNamespaces,Bee=Q.loadLanguages;var B0=Z(Gb()),H0=Z(t0()),xm=Z($0()),ut=require("@sap-ux/vocabularies-types/vocabularies/UI"),Mu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Em=Z(re());var oe=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",qK=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],YK=["sap.fe.core","sap.fe.templates"],G0="controlProperty",zK="defaultControlProperty",jl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Sr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Gr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,xm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return oe(t,{severity:G.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,xm.merge)(...n);i=(0,H0.convert)(r)}return i}o(Gr,"parseAndMergeAndConvert");var kl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function fS(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(fS,"evaluateCommonLabel");function Ul(e,t){let n=e.value;return e.$target&&(n=fS(e.$target.annotations,t,n)),n}o(Ul,"getLabelForPropertyPath");function ku(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=fS(i.annotations,t,n)),n}o(ku,"getLabelForDataField");function ba(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return fS(a.annotations,t,s)}}}else return}o(ba,"getLabel");function Cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(Cm,"getDescriptionForActionBasedDataFields");function uS(e,t,n){let i=ku(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(uS,"getTitleForDataField");function at(e){return e.replace("#","::").replace(/\//g,":2f")}o(at,"prepareRef");function va(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(va,"getPageTypeV2");function pS(e){let t="name"in e&&typeof e.name=="string"?Pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return G.PageTypeV4.CustomPage}o(pS,"getPageTypeV4");function JK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(JK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function ZK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(ZK,"getAnnotationFromMetaPath");function eX(e,t,n){var s,l;let i=e[e.length-1],r=ZK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(eX,"determineTargetAnnotation");function tX(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ut.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(tX,"adjustKey");function nX(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,f=i.split("/"),p=f.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=tX(t,f,a);let d=eX(f,n,e);if(d){let S=r===G.FioriElementsVersion.v2?"::":"#";t=JK(d,a).replace("#",S),l=(v=d.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===G.FioriElementsVersion.v2?"::":"/";f.pop(),t=`${[...f].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(nX,"getKeyAndEntityTypeOfReferenceFacet");function W0(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var d,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,f=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==ut.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=kl(e.Target);if(!S){oe(i,{severity:G.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=nX(n,l,p,S,r,a);if(F)return;l=b,p=I,f=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:f}}o(W0,"getSectionFacet");function iX(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(iX,"getDecodedPathElement");var dS=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),K0=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let f=0;f<l.length;f++){let p=l[f];if(p==="[]")continue;let d=iX(p,n,i);if(r!==void 0&&!a&&l.length-1===f)s[d]=r;else if(!s[d]){if(a)return;s[d]=dS(l[f+1])}typeof s[d]=="string"&&(!r||f<l.length-1)?s[d]={}:s=s[d]}return s},"resolveManifestPath"),ko=o((e,t,n,i,r=!1)=>K0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),X0=o((e,t,n,i,r)=>{K0(e,t,i,r,n)},"setManifestSectionByPathV4");function gS(e){let t,n,i;switch(e.$Type){case ut.UIAnnotationTypes.DataField:t=kl(e.Value);break;case ut.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:kl(e.Value);break;case ut.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ut.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${at(e.Action)}`);break;case ut.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=kl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${at(e.Action)}`);break;case ut.UIAnnotationTypes.DataFieldWithNavigationPath:i=kl(e.Value),n=kl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(gS,"getSchemaKeyOfLineItemRecord");function rX(e,t,n){return e.includes(ut.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ut.UIAnnotationTerms.Chart:e.includes(ut.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ut.UIAnnotationTerms.Identification:n&&e.includes(ut.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ut.UIAnnotationTerms.LineItem:e.includes(ut.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ut.UIAnnotationTerms.FieldGroup:e.includes(ut.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ut.UIAnnotationTerms.DataPoint:e.includes(ut.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ut.UIAnnotationTerms.PresentationVariant:e.includes(ut.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?ut.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(rX,"getUIAnnotationTerm");function oX(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Mu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Mu.CommunicationAnnotationTerms.Address:void 0}o(oX,"getCommunicationAnnotationTerm");function aX(e,t,n){return rX(e,t,n)||oX(e,t)}o(aX,"getAnnotationTerm");function sX(e,t,n,i,r){var p,d,m,v,S,b,I,F,j,W;let a=oi(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(aX(s,a,i)){case ut.UIAnnotationTerms.Chart:{n[s]={base:G.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.Identification:{n[s]={base:G.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.LineItem:{if(!s.includes(ut.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let U=s.split("::");U[U.length-1]=`@${ut.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Mu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Mu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(sX,"evaluateTargetAnnotation");function mS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(mS,"getAnnotationPathUsingFullyQualifiedName");function hS(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var f;let l=W0(e,i,t,s,a,!1);if(l)switch(e.$Type){case ut.UIAnnotationTypes.ReferenceFacet:{sX(l,e,r,i,t);break}case ut.UIAnnotationTypes.CollectionFacet:{let p=mS(i,e.fullyQualifiedName),d=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&a===G.FioriElementsVersion.v4&&oe(s,{severity:G.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(f=e.Facets)==null||f.forEach(m=>{hS(m,t,n,i,d.facets,a,s)});break}}}o(hS,"addFacetToConfig");function Im(e,t,n=G.FioriElementsVersion.v2,i){var l,f;let r={};if(!e||!e.annotations)return;let a=oi(G.UIVOCABULARY,t),s=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{hS(m,t,d,e,r,n,i)})}return r}o(Im,"getObjectPageHeaderFacets");function Om(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let f=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,f);s.forEach(d=>{hS(d,t,p,e,r,n,i)})}return r}o(Om,"getObjectPageFacets");function yS(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let f=typeof a[l].name=="string"?a[l].name:"";return qK.indexOf(f)>-1||Pm(f)})||s&&Object.keys(s).find(l=>YK.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(yS,"getFEVersionFromManifest");function cX(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(cX,"getMainService");function Q0(e){var i,r;let t=cX(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(Q0,"getODataVersionFromManifest");function lX(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(va((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(va((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(lX,"determineV2Template");function ju(e){var i,r,a,s;let t,n=pS(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ju,"determineV4PageTemplateType");function fX(e){let t;for(let n in e){let i=e[n];if(t=ju(i),t)break}return t}o(fX,"determineV4TemplateFromPages");function uX(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:G.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=fX(n);return i||oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(uX,"determineV4Template");function Ac(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=lX(e,n):t===G.FioriElementsVersion.v4&&(i=uX(e,n)),i}o(Ac,"getTemplateTypeFromManifest");function Sa(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(Sa,"addSectionTitle");function ls(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ls,"addSectionDescription");function $l(e,t,n){var i,r;Sa(e,t,n),ls(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o($l,"addTargetTitleAndSectionDescription");function q0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(q0,"addChartFacetID");function jo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,$l(t,i,n),i}o(jo,"createDefaultSection");function Y0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,f;let a=oi(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let v=W0(m,e,t,n,i,!0);return v&&d.push(v),d},s)),s}}o(Y0,"getObjectPageFacetSection");var fs=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(f){let p=a&&a===f?r:f.replace(/\?\?/g,"/");if(!(!s[p]&&(a===f&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),fs(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),lS=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:lS(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:lS(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=lS(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Rm(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Rm,"generatePageId");function TS(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(f=>l[f]!==void 0)&&a.push(s)}return a}o(TS,"findMatchingKeysByAdditionalProperties");function pX(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[G0];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[zK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let f=Object.keys(s.properties||{}),p=TS(t,s.additionalProperties,n);(f.some(d=>d in n)||p.length||Object.keys(n).length===0&&f.length)&&i.push(a)}}}o(pX,"fillArrayFromAnyOfReference");function dX(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{pX(r,n,t,i)}),i.length===0))return;return i}o(dX,"fillArrayFromPropertyDefinition");function gX(e){return e.replace(G.UIVOCABULARYDOT,"")}o(gX,"extractUIAnnotationType");function mX(e,t,n,i,r,a,s,l){var p,d,m,v,S;let f={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(f.targetDefinition=t.definitions[b],((p=f==null?void 0:f.targetDefinition)==null?void 0:p.dataType)!==gX(ut.UIAnnotationTypes.DataFieldForActionGroup)&&((d=f==null?void 0:f.targetDefinition)!=null&&d.$ref)||((m=f==null?void 0:f.targetDefinition)==null?void 0:m.type)==="array")return f=Uo(t,n,i,f.targetDefinition,r,a,s),f;e.length>1&&e.forEach(j=>{j!==""&&(f.targetDefinition.properties={...f.targetDefinition.properties,...t.definitions[j].properties})}),f.title=(v=f==null?void 0:f.targetDefinition)!=null&&v.title?f.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],F=i||{};f.configObject=a.createInstance(s,I,F,(S=f==null?void 0:f.targetDefinition)==null?void 0:S[G0])}else f.targetDefinition=l,f.title=f.targetDefinition.title?f.targetDefinition.title:r,f.configObject=i;return f}o(mX,"determineNextDefinitionFromDefinitionArray");function Uo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Uo(e,t,n,i.items,r,a,s),l;let f=dX(i,n,e);if(f)return l=mX(f,e,t,n,r,a,s,i),l}o(Uo,"getNextTargetDefinition");var vS=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,B0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Lm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Lm,"convertEnumToCSV");function er(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(er,"convertActionKeyToStableId");function Jt(e){return e==null?void 0:e.split($)[1]}o(Jt,"getDefinitionKey");function Fm(e){return`#/definitions/${e}`}o(Fm,"getDefinitionsRef");function Nm(e){return e instanceof Error?e.message:String(e)}o(Nm,"getErrorMessage");function Ec(e,t){return e==null?void 0:e.includes(t)}o(Ec,"isFeatureSupported");function $o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o($o,"updatePropertyIndices");function Dm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Dm,"getJSONPropertyByPath");function z0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(z0,"removeNamespaces");function Bl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Bl,"replaceNamespaces");function Aa(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(Aa,"getRefType");function Pm(e){if(e===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${G.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in G.PageTypeV4)return G.PageTypeV4[n]}}o(Pm,"convertTemplateNameToPageTypeV4");function _m(e,t){if(e===t)return!0;let n=Pm(e);return n?n===Pm(t):!1}o(_m,"compareTemplateNames");var Fo=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=Z(re());var tr=Z(re());var Zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Vm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=tr.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function hX(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(hX,"escapeId");var J0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(J0||{}),Z0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(Z0||{});function yX(e,t,n){let i;return e=e.map(function(r){if(r===tr.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===tr.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(yX,"mapBreadcrumbs");var bS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=yX(t,s,r)),s[0]===tr.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,tr.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,tr.VOCWITHSLASH):t[0]===tr.PropertyName.table&&(a=t[0]);let f=s[s.length-1].replace(/::com.sap.vocabularies/g,tr.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,tr.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,d=f.indexOf(":::");return f.startsWith("DataField")&&d>-1?(f=f.replace("/",":2f"),p=`${e}template:::TableColumn:::${f.substring(0,d)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${f.substring(d+3)}`):(f=f.replace("/","_"),p=`${e}${t.join("::")}-${f}`),hX(p)},"buildColumnControlId"),nr=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function TX(e){let t=tr.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(TX,"determinePattern");var SS=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,f=a.description?a.description:l.description,p=TX(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},f&&(r[n].description=f,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{SS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ht=o((e,t,n)=>{let i=Object.values(J0);SS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(Z0);SS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Pc(){}o(Pc,"doNotDelete");var Mte=Z(t_());var AS=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(AS,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(AS,e,t)),n}o(Mn,"getReflectMetadata");function n_(e){let t;return e&&(t=Reflect.getMetadata(AS,e)),t}o(n_,"getReflectTypeMetadata");var ir=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),i_=Symbol("childId"),jt=o(e=>Reflect.metadata(i_,e),"childId"),wm=o((e,t)=>Reflect.getMetadata(i_,e,t),"getChildId"),Mm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),vX=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(vX,e),"descriptionSrcURL");var bX=Symbol("validityMetadataKey"),P=o(e=>Reflect.metadata(bX,e),"validity");function Hl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Hl,"getTextForDeprecated");var u_=Z(l_()),p_=Z(re());var d_=u_.default.change,f_={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function g_(e,t){let n="";try{for(let i in f_)e[i]===void 0&&(e[i]=f_[i]);n=d_.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(g_,"createChangeString");function Ar(e){try{return d_.parse(e)}catch{return!1}}o(Ar,"parseChangeString");function m_(e,t,n,i,r){let a=n.layer?n.layer===p_.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(m_,"fillFlexChangeContent");function km(e,t){return g_(e,t)}o(km,"exportToFlexChange");var xc=Z(re());function Gl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let f=l(t,r,n,a);f!==void 0&&(i[n]=f)}else t[s]!==void 0&&(i[n]=t[s])}o(Gl,"importProperty");function jm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(oe(i,{severity:xc.LogSeverity.Warning,message:Hl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(jm,"checkDeprecatedProperties");function ES(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return ES(n,t)}else return e.title?e.title.startsWith(xc.FACETTITLEPREFIX)?e.title.split(xc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(ES,"getSectionTitle");function Um(e){let t=e.split(`${xc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Um,"getTargetFromCustomColumnRef");function Wr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Wr,"removeEmptyStructure");var Vt=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ho=require("@sap-ux/vocabularies-types/vocabularies/UI");var Pa=require("@sap-ux/vocabularies-types/vocabularies/UI");var h_=Z(re()),te=Z(re()),y_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},f=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let d in n.properties){let m=Mn(e,d);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=ko(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Gl(m,l,d,e,a,r),jm(f,l,v,s))}}}o(Ot,"importSettingsOfObject");var IS="DataFieldForActionGroup";function IX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(IX,"sortByPropertyIndex");function Uu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IX())}o(Uu,"sortPropertiesRecords");function OX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(OX,"getExtensionText");function PS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(PS,"addExtensionToSortedArray");function RX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var f,p,d;return((f=l.position)==null?void 0:f.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(RX,"addRemainingTargetByBefore");function T_(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=OX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(T_,"getExtensionDetails");function xS(e,t,n,i,r=!1){var l,f;let a=Object.entries(e).length;for(let p of Object.keys(e)){let d=e[p],m=T_(d,t,p);if((l=d.position)!=null&&l.anchor&&((f=d.position)!=null&&f.placement)){let v=n.findIndex(S=>S[0]===d.position.anchor);v>-1?(PS(d,n,v,p,m),delete e[p]):p===d.position.anchor||Object.keys(e).indexOf(d.position.anchor)===-1?(oe(i,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:d.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&RX(e,p,d,n,m)}else r&&(PS(d,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?xS(e,t,n,i):s>0&&xS(e,t,n,i,!0)}o(xS,"adjustCustomExtReferringToCustomExt");function LX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(LX,"getExtensionAnchor");function FX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(FX,"getLocalExtensionsToSkip");function NX(e,t,n){var l,f;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((f=e.position)==null?void 0:f.anchor)return n.length;let a=o((p,d)=>{for(let m of n){let v=t[m[0]];if(d(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(NX,"getExtensionIndexByMergedApproach");function DX(e,t,n,i,r=!1){return r?NX(e,t,n):n.findIndex(a=>a[0]===i)}o(DX,"getExtensionIndex");function _X(e,t,n,i,r){oe(e,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(_X,"handleInvalidExtension");function Ea(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},f=FX(l,s);if(!l)return[];for(let p of Object.keys(l)){let d=l[p];if(f!=null&&f.includes(p))continue;let m=T_(d,n,p,te.ActionType.Custom);if(typeof d!="object"){_X(r,p,t,m,l);continue}if(!(i in d)){delete l[p];continue}let v=LX(d,s);if(v){let S=DX(d,e,t,v,a);S>-1&&(PS(d,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&xS(l,n,t,r),t}o(Ea,"addExtensionToArray");function OS(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(OS,"addEnumForProperties");function VX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];OS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(VX,"addColumnPropertyIndexAndEnum");function Cc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,S,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let f=Uu(l),p=a?a.replace(/::/g,"/"):`@${Pa.UIAnnotationTerms.LineItem}`,d=(I=(b=(S=(v=t.options)==null?void 0:v.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;d&&(f=Ea(d,f,i,void 0,n)),VX(f,e,l,i);let m={};f.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Cc,"addCustomColumnDefinition");function v_(e,t){let n=t.$Type===Pa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?i=n?te.DefinitionName.ViewToolBarActionGroup:te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?i=n?te.DefinitionName.ToolBarActionGroup:te.DefinitionName.ToolBarAction:i=n?te.DefinitionName.ObjectPageToolBarActionGroup:te.DefinitionName.ObjectPageToolBarAction,i}o(v_,"determineActionDefinitionName");function wX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Fc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(wX,"addTargetAndKeysOfAction");function b_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=v_(n,a),f=ci(a,n.entityType),p=a.$Type.split(`${te.UIVOCABULARY}.`)[1],d=typeof a.Action=="string"?a.Action:a.Action.path,m=Hm(d),v=i.properties[`${p}::${m}`]={description:f};if(t?v.$ref=x_(l,at(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[te.SchemaTag.propertyIndex]=s,v[te.SchemaTag.dataType]=rr(a),wX(v,a,d),v[te.SchemaTag.annotationType]=a.$Type,t){let S=v.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[te.SchemaTag.annotationPath]=`${r}/${s}`}else v[te.SchemaTag.annotationPath]=`${r}/${s}`}o(b_,"addActionRecordToSchema");function S_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=v_(n,i),f=Kr(i),p={};t?(s.properties[`${f}`]={$ref:si(l,at(f))},p=vt(l,at(f),n.appSchema)):s.properties[`${f}`]=p,Ia(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[te.SchemaTag.propertyIndex]=a,p[te.SchemaTag.dataType]=rr(i),p[te.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((d,m)=>{let v={...e,lineItemRecord:d,lineItemPath:`${p[te.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};b_(v,t)})}o(S_,"addGroupActionRecordToSchema");function RS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?b_(e,!n):LS(e)}o(RS,"addLineItemActionDefinition");function LS(e){var d;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Pa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,f=t.lineItemId;if((d=n.Target)!=null&&d.value){let m=`@${oi(te.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Kr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[f]);let v=m.properties,S={description:ci(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[te.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[te.SchemaTag.annotationPath]=`${r}/${a}`,S[te.SchemaTag.propertyIndex]=a,S[te.SchemaTag.dataType]=rr(n),v[p]=S,Km(n,v,p)}}o(LS,"addLineItemRecordToSchema");function FS(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};us.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(FS,"appendLineItemsToSchema");function Ic(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Gm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FS(e,r,a,void 0,t)}o(Ic,"addLineItemsTypeToSchema");function Oc(e,t,n,i=te.DefinitionName.Position,r){var p,d,m,v,S;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${Pa.UIAnnotationTerms.LineItem}`,f=(S=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:S.columns;if(f)for(let b in f)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Ca(s,b)}}o(Oc,"addFragmentEnumForAnchor");function ho(e,t,n=te.DefinitionName.CustomActionPosition){ps(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(ho,"addEnumForActionAnchor");function $m(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(_m(t,e[s].name)||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o($m,"findPageV4");function A_(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(A_,"alignSchemaWithTemplateType");function xa(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var d,m,v,S,b,I,F,j,W,U;let s=e.definitions[r];if(!s)return;let l=Uu(s),f;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?f=a.replace(/::/g,"#"):f=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?f=`@${Pa.UIAnnotationTerms.FieldGroup}`:f=`@${Pa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(S=(v=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[f])==null?void 0:I.actions:p=(U=(W=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:W[f])==null?void 0:U.actions,p&&(l=Ea(p,l,i,"press",n)),l){for(let ee=0;ee<l.length;ee++)l[ee][1][te.SchemaTag.propertyIndex]=ee;let se={};l.forEach(([ee,le])=>se[ee]=le),e.definitions[r].properties=se}}o(xa,"addCustomActionDefinition");function Bm(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,v,S,b,I,F;let a=e.definitions[r];if(!a)return;let s=Uu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Ea(l,s,i,"press",n));let f={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,W])=>f[j]=W)}e.definitions[r].properties=f}o(Bm,"addHeaderFooterCustomActionDefinition");function Rc(e,t,n){let i=Dm(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Dm(i,[t]);if(!r){oe(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Rc,"getManifestPage");function Lc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",f="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${f}`;let m=(0,y_.join)(...p,d),v=e.find(S=>S.dataSourceUri.endsWith(m));if(v){let S=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Lc,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Rc(n,t,i),a=Dm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Lc(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function E_(e,t,n,i,r,a,s){var d,m,v,S,b,I,F,j,W,U,se,ee;let l=Uu(t),f=new Map;if(l=l.map(le=>{let Le=Wm(e,le[1],le[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return f.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(S=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Ea(le.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;le&&"facets"in le&&(l=Ea(le.facets,l,i,"template",s,r))}else{let le=(ee=(se=(U=(W=n.options)==null?void 0:W.settings)==null?void 0:U.content)==null?void 0:se.body)==null?void 0:ee.sections;le&&(l=Ea(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][te.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=f.get(le)||le,p[le]=Le}),t.properties=p}o(E_,"addCustomSectionDefinition");function P_(e,t,n){var l,f,p;let i=Uu(t),r=new Map;i=i.map(d=>{let m=Wm(e,d[1],d[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let a=(p=(f=(l=n.options)==null?void 0:l.settings)==null?void 0:f.controlConfiguration)==null?void 0:p[`@${Pa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ea(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][te.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}o(P_,"addCustomFilterFieldDefinition");function CS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:f,manifestSectionId:p,targetAnnotation:d}=e,m=(t??"").split("<")[0],v=r.createInstance(h_.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(d&&S.push(d),v){let b=a[s]=v;Ot(b,l,i.definitions[t],f,S,p),n||Wr(a,s)}}o(CS,"importActionToConfigurationObject");function MX(e,t){let{actionPropertyDefinition:n}=e,i=Jt(t.$ref||n.$ref);CS(e,i)}o(MX,"importSingleActionSettingsOfReference");function kX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=Jt(t.$ref??n.$ref);CS(e,s,!0);let l=r[a];Ia(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:f}=t;for(let p in f){let d=f[p],m=Jt(d.$ref),v=i.definitions[m],S=Jt(v.$ref??d.$ref),b={...e,actionsInConfig:l,actionKey:p};CS(b,S)}Wr(r,a)}o(kX,"importGroupActionSettingsOfReference");function Wl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=Jt(t.$ref),r=n.definitions[i];r.dataType===IS?kX(e,r):MX(e,r)}o(Wl,"importActionSettingsOfReference");var BS=class BS{addDefinition(t){C_(t)}addLineItemDefinition(t){LS(t)}};o(BS,"DataFieldStrategy");var yo=BS,HS=class HS extends yo{generateStableId(t){return Oa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}addDefinition(t){$u(t)}addLineItemDefinition(t){RS(t)}};o(HS,"DataFieldForActionStrategy");var NS=HS,GS=class GS extends yo{generateStableId(t){return Oa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ba(t.Label,n);return t.Label??t.ID??i}addDefinition(t){$u(t)}addLineItemDefinition(t){var n;S_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(GS,"DataFieldForActionGroupStrategy");var DS=GS,WS=class WS extends yo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+ZS(t)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}addDefinition(t){$u(t)}addLineItemDefinition(t){RS(t)}};o(WS,"DataFieldForIntentBasedNavigationStrategy");var _S=WS,KS=class KS extends yo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Oa(n)}generateDescription(t,n){var a,s,l,f;let i=ku(t,n);return ba(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((f=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:f.split("UI.v1.")[1])}};o(KS,"DataFieldForAnnotationStrategy");var VS=KS,XS=class XS extends yo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=ds(t.Value)+"::"),n+=t.Action,Oa(n)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}};o(XS,"DataFieldWithActionStrategy");var wS=XS,QS=class QS extends yo{generateStableId(t){return Oa("DataField::"+ds(t.Value))}generateDescription(t,n){let i=ba(t.Label,n);return uS(t,n,i)}};o(QS,"DataFieldStrategyDefault");var MS=QS,qS=class qS extends yo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=ds(t.Value)+"::",n+=ZS(t),Oa(n)}generateDescription(t,n){return ku(t,n)||t.Value.path}};o(qS,"DataFieldWithIntentBasedNavigationStrategy");var kS=qS,YS=class YS extends yo{generateStableId(t){let n="DataFieldWithNavigationPath::"+ds(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Oa(n)}generateDescription(t,n){let i=ba(t.Label,n);return uS(t,n,i)}};o(YS,"DataFieldWithNavigationPathStrategy");var jS=YS,zS=class zS extends yo{generateStableId(t){return Oa("DataFieldWithUrl::"+ds(t.Value))}generateDescription(t,n){let i=ku(t,n);return ba(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(zS,"DataFieldWithUrlStrategy");var US=zS,JS=class JS{constructor(){this.strategies=new Map,this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAction,new NS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForActionGroup,new DS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new _S),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAnnotation,new VS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithAction,new wS),this.registerStrategy(Ho.UIAnnotationTypes.DataField,new MS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new kS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithNavigationPath,new jS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithUrl,new US)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(JS,"DataFieldStrategyContext");var $S=JS,us=new $S;function Hm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Hm,"replaceSpecialChars");var Oa=o(function(e){return Hm(z0(e))},"prepareId");function jX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(jX,"evaluateConcat");function ds(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return jX(e);if(e&&typeof e=="string")return Hm(e.replace(/ /g,"_"))}o(ds,"getStableIdPartFromValue");var ZS=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Kr=o(function(e){let t=us.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var ue=Z(re());var De=Z(re());var or=require("@sap-ux/vocabularies-types/vocabularies/UI"),L_=require("path"),F_=Z(Sc());var Xm="ResponsiveTableWithMultiSelect<LineItems>",Qm="ResponsiveTableWithInlineDelete<LineItems>",UX="TreeTable<LineItems>",$X="AnalyticalTable<LineItems>",BX="GridTable<LineItems>",eA=[Xm,Qm,UX,$X,BX],I_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],O_="template::",qm="template:::ObjectPageAction:::";function HX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(HX,"addCustomColumnDefinition");function GX(e,t){let n;return e==="TableColumnActionIntentBased"?n=gS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=at(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===or.UIAnnotationTypes.DataFieldForAction?n=at(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=at(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(GX,"getActionId");function tA(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=GX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let f=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+f},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=Fc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[f]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[f][De.SchemaTag.target]=m)):(e.definitions[f]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:d}],m&&(e.definitions[f][De.SchemaTag.target]=m),e.definitions[f][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(tA,"handleActionRecord");function WX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===or.UIAnnotationTypes.DataFieldForAction||t.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(WX,"getColumnActionType");function KX(e,t){let n=[];if(!(e.$Type!==or.UIAnnotationTypes.DataFieldForAction&&e.$Type!==or.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),WX(t,e,n),n}o(KX,"getActionType");function N_(e,t,n){let i=gS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Zm(r.properties[i],e.lineItemRecord),Km(e.lineItemRecord,r.properties,i)}}o(N_,"generateGenericColumn");function XX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{tA(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&tA(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{tA(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":N_(i,t,r)}}o(XX,"handleAnyAction");function Bu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Bu,"retrieveNameWithoutVocabularyFromVisualization");function Kl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:f}=Gm(e,t,n,i,r);if(n){let p=0;n.forEach(d=>{let m={lineItemPath:f,lineItemRecord:d,lineItemId:r,entityType:i},v=KX(d,r);v?v.forEach(S=>{XX(S,t,s,m,p,l,r)}):N_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(Kl,"addLineItemsType");function QX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,f)=>(l.includes(f.name)||l.push(f.name),l),[])}}o(QX,"addListReportLeadingProperties");function qX(e,t,n,i){var s,l,f,p,d,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(a){let v=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Ca(v,r)}}o(qX,"addTabkeyEnum");function Ym(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(f=>{let p=f.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,F_.xml2json)(f.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+L_.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Ca(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Ym,"addFragmentEnum");function Xl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){HX(e,a,s),QX(e,t,s),qX(e,s,n,l);let f=i&&i["sap.app"]&&i["sap.app"].id;Ym(e,r,f,"fragmentName",s),Ym(e,r,f,"fragmentName",De.DefinitionName.CustomColumn),Ym(e,r,f,"cellsFragmentName",s),Ym(e,r,f,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Xl,"addTableColumnExtensions");function D_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(D_,"removeElementsFromEnum");function zm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Sr(n==null?void 0:n.fullyQualifiedName,or.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,f=`SelectionField<${at(s.value)}>`,p=rr(s);s.type==="PropertyPath"&&(l=Ul(s,n)),i.properties[s.value]={$ref:$+f},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[f]={type:"object",description:l,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[f][De.SchemaTag.dataType]=p,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[f][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[f].$ref=`${$}SelectionFieldDateSettings`:e.definitions[f].properties={},a++})}o(zm,"addSelectionFields");function __(e,t){for(let n of t.entityProperties)e.push(n.name)}o(__,"addEntityPropertiesToEnum");function Jm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Jm,"isDraftEnabled");function V_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(V_,"isEntityDeletable");function w_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(w_,"isEntityUpdatable");function Ql(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,f])=>{let p=f.$ref.split($)[1],d=`${r}<${p}>`;a.properties[l]={$ref:`${$}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Ql,"addStandardHeaderActions");function M_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(M_,"addStandardFooterActionsOP");function ql(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});oe(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(ql,"getUIAnnotationForEntitySet");function YX(e,t,n,i){if(e===ue.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithNavigationPath:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ue.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(YX,"copyFieldProperties");function iA(e,t,n,i){let r=e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ue.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(iA,"determineFieldDefinitionName");function zX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ue.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(zX,"addKeysTagForDataField");function JX(e,t,n){if(e.$Type===Vt.UIAnnotationTypes.DataField||e.$Type===Vt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Vt.UIAnnotationTypes.DataFieldWithNavigationPath)zX(e,t,n);else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ue.SchemaTag.keys]=[{name:"Target",value:Bl(e.Target.value)}],t.definitions[n][ue.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ue.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Vt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ue.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(JX,"addKeysTagToField");function ZX(e){var t,n;return e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Vt.UIAnnotationTypes.ConnectedFieldsType}o(ZX,"isConnectedField");function e3(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Vt.UIAnnotationTypes.ConnectedFieldsType){let f=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,d=f.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let S=f.findIndex(b=>b===m);S===-1&&(S=d,d++),nA(e,t,v,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(e3,"addConnectedFields");function k_(e,t,n){if(n)return n;let i=at(t);return e.definitions[i].properties}o(k_,"getFieldsSchemaContainer");function rA(e,t){return e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(rA,"getFieldReference");function nA(e,t,n,i,r,a,s,l=!0,f={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let d={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:f,key:r,version:s,section:a,entityTypeName:p};us.getStrategy(n.$Type).addDefinition(d)}o(nA,"addField");function t3(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(t3,"determineTargetIdOfForm");function n3(e,t,n,i,r,a){if(e.base===ue.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&nA(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];nA(t,n,l,i,s,e,r)}}o(n3,"addFieldsToFormDefinition");function i3(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ue.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ue.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ue.SchemaTag.annotationPath]=Sr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(i3,"addTagsToFormDefinition");function eh(e,t,n,i,r,a){if(!t.target)return;let s=t3(t),l=at(`${e}${ue.DefinitionName.Form}<${s}>`),f=at(`${e}${ue.DefinitionName.Fields}<${s}>`),p=at(`${e}${ue.DefinitionName.Actions}<${s}>`),d=!(t.base===ue.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ue.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${f}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ue.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${f}`}},description:"Form",additionalProperties:!1},i3(t,i,l),i.definitions[f]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[f][ue.SchemaTag.isViewNode]=!0,n3(t,e,i,s,r,d),s}o(eh,"handleForm");function oA(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(oA,"replaceAlias");function th(e,t){let n=oA(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(th,"getActionNameAndId");function j_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:j_(a.pages,t)}}o(j_,"isFirstObjectPage");function nh(e,t,n,i,r){var d,m;e.definitions[ue.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ue.DefinitionName.ObjectPageFooter}`},e.definitions[ue.DefinitionName.ObjectPageFooter].properties[ue.PropertyName.actions]={$ref:`${$}${ue.DefinitionName.FooterActions}`};let a=e.definitions[ue.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ue.SchemaTag.isViewNode]=!0;let s=oi(ue.UIVOCABULARY,t.serviceAVT),l=t.entitySet,f=t.entityType,p=s&&((m=(d=f==null?void 0:f.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`);a[ue.SchemaTag.annotationPath]=`/${v}`,i(f,e,a,p)}else f&&(a[ue.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`);n===ue.FioriElementsVersion.v2&&j_(r,t)&&!Jm(l)&&M_(e,a),delete e.definitions[ue.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ue.DefinitionName.ObjectPageFooter}<${ue.DefinitionName.ObjectPageFooterActions}>`]}o(nh,"addFooterActions");function ih(e,t,n,i,r,a=!1){var m,v;let s=ue.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ue.DefinitionName.ObjectPageHeader].properties[ue.PropertyName.actions]={$ref:`${$}${s}`};let f=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};f[ue.SchemaTag.isViewNode]=!0;let p=oi(ue.UIVOCABULARY,n.serviceAVT),d=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);d?f[ue.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`):t&&(f[ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`),i(t,e,d,f,n,r),a&&Ql(e,!0,l)}o(ih,"addHeaderActions");function rh(e,t){e.properties.header={$ref:`${$}${ue.DefinitionName.ObjectPageHeader}`},e.definitions[ue.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ue.DefinitionName.ObjectPageHeader][ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.HeaderInfo}`)}o(rh,"addCommonHeaderSchema");function U_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(U_,"determineEntitySetOfEntityType");function C_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Kr(r),d=rA(f,p),m=iA(f,p,a,d),v=k_(t,`${i}${ue.DefinitionName.Fields}<${a}>`,s.fields),S={};v[d]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},ZX(r)&&(S=e3(i,t,r,n,f)),$_(e,m,S)}o(C_,"addDataFieldDefinition");function $u(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Kr(r),d=rA(f,p),m=iA(f,p,a,d),v={};if(n&&i===ue.SectionType.Section){let S=k_(t,`${i}${ue.DefinitionName.Actions}<${a}>`,s.actions),b=S[d]={$ref:`${$}${m}`};b[ue.SchemaTag.propertyIndex]=parseInt(l)}r3(e,m,v),$_(e,m,v)}o($u,"addDataFieldForActionAndActionGroupDefinition");function r3(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},f=Kr(s),p=rA(a,f),d=iA(a,f,t,p);$u(l),n[p]=i.definitions[d]})}o(r3,"addGroupedActionsToDefinition");function $_(e,t,n={}){var f,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&Ia(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),JX(r,i,t),i.definitions[t][ue.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][ue.SchemaTag.annotationType]=r.$Type,i.definitions[t][ue.SchemaTag.isViewNode]=!0,Zm(i.definitions[t],r),YX(a,i,r,t),r.$Type===Vt.UIAnnotationTypes.DataFieldForAction&&((f=i.definitions)!=null&&f[ue.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[ue.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.ObjectPageFormActionGroup}`)}o($_,"writeDefinitionToSchema");var Er=require("@sap-ux/vocabularies-types/vocabularies/UI");var Qe=Z(re());function Ca(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Ca,"addEnumToSchema");function Nc(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let f=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(f)===-1&&r.push(f)}}Ca(r,n)}o(Nc,"addEnumForValidAnnotations");function gs(e,t,n){let i=t.definitions[n].properties[Qe.SchemaTag.annotationPath],r=[Er.UIAnnotationTerms.SelectionVariant,Er.UIAnnotationTerms.SelectionPresentationVariant];Nc(e,r,i)}o(gs,"addEnumForSingleTabVariant");function B_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Er.UIAnnotationTerms.SelectionVariant,Er.UIAnnotationTerms.SelectionPresentationVariant];Nc(n.entityType,r,i)}o(B_,"addEnumForMultiTabVariant");function H_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Ca(r,i)}o(H_,"addEnumForVariantEntitySet");function G_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Er.UIAnnotationTerms.FieldGroup];Nc(e,r,i)}o(G_,"addEnumFieldGroupAnnotationPath");function W_(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],f=a.label||a.title;return{const:l,...f&&{description:f},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Qe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${Qe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(W_,"addDefinitionForRelatedFacetKeys");function Dc(e){return e.replace("#","::")}o(Dc,"getFacetKeyInSchema");function Hu(e,t){return`${e}<${Dc(t)}>`}o(Hu,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Hu(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function oh(e,t,n){let i;return t===Qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Er.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(oh,"getCustomExtensionDefinitionName");function Gm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Qe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=oh(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let f=e?Qe.DefinitionName.ObjectPageToolBar:Qe.DefinitionName.ToolBar,p=`${f}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${f}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let d=`${Qe.DefinitionName.Actions}<${at(r)}>`;t.definitions[p].properties.actions.$ref=$+d;let m=r.startsWith(Qe.DefinitionName.LineItems)?Qe.DefinitionName.Actions:Qe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[d]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=oh(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Qe.DefinitionName.LineItems&&t.properties.footer){b=`${Qe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Qe.DefinitionName.GenericFooter}))}let I=`${Qe.DefinitionName.FooterActions}<${at(r)}>`;t.definitions[b].properties.actions.$ref=$+I,S=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=Sr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Qe.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Qe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:S,lineItemPath:l}}o(Gm,"addCommonLineItemDefinitions");function K_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(K_,"getDataTypeFromAnnotation");function _c(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=K_(e.$Type)),t}o(_c,"determineDataTypeOfTarget");function rr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=_c((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=K_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(rr,"determineDataType");function Zm(e,t){let n=rr(t);n&&(e[Qe.SchemaTag.dataType]=n)}o(Zm,"addDataTypeToDefinition");function si(e,t){return`${$}${Hu(e,t)}`}o(si,"getFacetDefinitionLink");function x_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let f=n.definitions[Hu(e,l)],p=((f==null?void 0:f.annotationPath)??"").split("/").slice(0,-1).join("/");a=!f||p===i}while(!a);return s}o(x_,"getUniqueFacetDefinitionLink");function ms(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(ms,"addDefinitionRef");function ah(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Qe.UIVOCABULARY}`);t=`/${n}/@${Qe.UIVOCABULARY}${i}`}return t}o(ah,"getFacetAnnotationPath");function Gu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,f=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?f:l,t)};let p=vt(a?f:l,t,i,!0);Sa(e,p,t),ls(e,p,t),p[Qe.SchemaTag.annotationPath]=e.annotationPath,p[Qe.SchemaTag.isViewNode]=!0}o(Gu,"handleAddressContact");function aA(e,t,n){typeof e=="object"&&(e[t]=n)}o(aA,"updateSchemaProperty");function Yl(e,t,n=at("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Qe.DefinitionName.Fields4Dialog}${n}`];aA(r.properties.fields.items,"enum",i)}o(Yl,"addFieldsType");function o3(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(o3,"findFirstSchemaDefinitionKey");function Wm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let d=Jt(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,f=o3(a,i==null?void 0:i.keyProperties);return f?l=f.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Wm,"getEnumEntry");function ps(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let f=t.properties[l],p=Wm(e,f,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];aA(l,"oneOf",r)}else aA(a,"oneOf",r)}o(ps,"addDescriptiveEnumDefinition");function Fc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Fc,"getActionKey");function Km(e,t,n){var i,r,a;try{if(e.Value)t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.value,value:ds(e.Value)}];else if(e.$Type===Er.UIAnnotationTypes.DataFieldWithAction||e.$Type===Er.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Fc(e.Action,!0);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.action,value:s}],l&&(t[n][Qe.SchemaTag.target]=l)}else if(e.$Type===Er.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Fc(e.Target.value,!1);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.target,value:Bl(s)}],t[n][Qe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Er.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Er.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:f}=Fc(s,!0);t[n][Qe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Qe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],f&&(t[n][Qe.SchemaTag.target]=f)}}catch{return}}o(Km,"addKeyToDefinition");function ci(e,t){try{return us.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Ia(e,t){e[Qe.SchemaTag.messages]||(e[Qe.SchemaTag.messages]=[]),Array.isArray(e[Qe.SchemaTag.messages])&&e[Qe.SchemaTag.messages].push({text:t})}o(Ia,"addMessageToSchema");var zl=Z(re());var X_=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var q_="1.124.28";var Y_={name:"@sap/ux-specification",version:q_,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.39.10","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.6","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.124.28","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.12.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.6.0",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.3","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var hs=class hs{constructor(){hs.distTagsOfSpec.length===0&&(hs.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){hs.distTagsOfSpec=[]}getSpecVersion(){return q_}getDistTagsOfVersion(){let t=[],n=X_,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));hs.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:zl.LogSeverity.Warning,message:a,location:{path:zl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return oe(n,{severity:zl.LogSeverity.Info,message:i,location:{path:zl.MANIFESTPATH}}),!1}else return!0}};o(hs,"DistTagEvaluator"),hs.distTagsOfSpec=[];var Wu=hs;var pe=Z(re());var jn=Z(re());var Ci=Z(re());function z_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(z_,"getCustomPageFullName");function c3(e){let n=z_(e).split(".");return n[n.length-1]}o(c3,"getCustomPageName");function J_(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ci.ViewTypes.XML}o(J_,"getViewType");function l3(e,t){return J_(e,t).toLowerCase()}o(l3,"getViewTypeExtension");function f3(e,t,n){var p;let i=o(d=>{var m;return(m=d.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=z_(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,f]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:f}}o(f3,"getViewPath");function u3(e,t){let n=e.entitySet||c3(e),{viewPath:i,fileName:r}=f3(e,t,[n]),a=l3(e,t);return[...i,`${r}.view.${a}`].join("/")}o(u3,"getCustomPagePath");var sA=class sA{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Ci.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ci.OdataVersion.v4?s:i.entitySet,f=this.getPageConfigFile(i,l);f&&(t[`${Ci.DirName.Pages}/${s}.json`]=f)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ci.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=J_(t,this.app)===Ci.ViewTypes.XML&&!!t.config;if(t.pageType===Ci.PageTypeV4.CustomPage||t.pageType===Ci.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let f=_t(t.pageType);i.$schema=f.path}}return(i&&t.pageType===Ci.PageTypeV4.CustomPage||t.pageType===Ci.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=u3(t,this.app);n.$filePath=i}};o(sA,"AppProvider");var ys=sA;var pt=Z(re());var Jl=Z(re());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Z_=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),eV=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function cA(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(cA,"getNewPageTemplate");function p3(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(p3,"findPageInManifest");function d3(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=cA(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:cA(e[t].pageType)}),!Array.isArray(n.pages))){let i=p3(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=cA(e[t].pageType)),lA(t,e,i)}}o(d3,"transformPageFromAssociation");function g3(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Jl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Jl.PageTypeV2.ListReport||n.pageType===Jl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(g3,"deletePage");function lA(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Jl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)d3(t,r,n);Array.isArray(n.pages)||g3(n,t,i)}}o(lA,"transformPageToNewManifestV2");var kV=Z(Sc());var ZE={};vc(ZE,{ALPAnalyticalTable:()=>zA,ALPGridTable:()=>YA,ALPResponsiveTable:()=>qA,Action:()=>tE,AnalyticalCard:()=>rf,AnalyticalCardSettings:()=>fh,AnalyticalCardSettingsv4:()=>mA,AnalyticalListPageFilterBar:()=>PA,AnalyticalTable:()=>QA,BaseCustomSection:()=>Ep,ChartSettings:()=>bE,ChartSettingsType:()=>uA,CommonCardSettings:()=>As,CommonFilterBar:()=>ip,CommonHeaderFacetSettings:()=>Hc,CommonTableSettings:()=>Cs,CommonTableSettingsForSections:()=>Qc,CreateWithFilters:()=>$A,CustomCard:()=>dA,DataLoadSettings:()=>HA,DateRange:()=>bA,DefaultDateRange:()=>SA,DefaultSpanObject:()=>pA,FRAGMENT_DEFINITION:()=>Ko,Field:()=>vA,FieldForAction:()=>RA,Fields4Dialog:()=>GA,Fields4DialogOP:()=>XE,FooterAction:()=>iE,FormAction:()=>OA,GlobalChartSettings:()=>WE,GlobalTableSettings:()=>zE,GridTable:()=>JA,HeaderActionStandard:()=>cE,HeaderSections:()=>OE,KPISettings:()=>SE,LinkListCardSettings:()=>yA,LinklistCard:()=>ep,ListCard:()=>nf,ListCardSettings:()=>gA,ListReportFilterBar:()=>xA,MultiEdit:()=>BA,ObjectPageAnalyticalTable:()=>QE,ObjectPageChart:()=>GE,ObjectPageCustomSectionFragment:()=>Pp,ObjectPageCustomSectionView:()=>xp,ObjectPageFooterAction:()=>LE,ObjectPageFooterActionStandard:()=>fE,ObjectPageGridTable:()=>qE,ObjectPageHeader:()=>AE,ObjectPageHeaderAction:()=>EE,ObjectPageHeaderActionStandard:()=>lE,ObjectPageHeaderSectionAddress:()=>IE,ObjectPageHeaderSectionChart:()=>xE,ObjectPageHeaderSectionDataPoint:()=>CE,ObjectPageHeaderSectionForm:()=>PE,ObjectPageLayout:()=>NE,ObjectPageResponsiveTable:()=>qc,ObjectPageSectionAddressV2:()=>ME,ObjectPageSectionChartV2:()=>VE,ObjectPageSectionContactV2:()=>kE,ObjectPageSectionFormV2:()=>_E,ObjectPageSectionTableV2:()=>wE,ObjectPageSectionV2:()=>DE,ObjectPageSubSectionChartV2:()=>$E,ObjectPageSubSectionContactV2:()=>BE,ObjectPageSubSectionFormV2:()=>UE,ObjectPageSubSectionTableV2:()=>HE,ObjectPageSubSectionV2:()=>jE,ObjectPageToolBarAction:()=>JE,ObjectPageTreeTable:()=>YE,QuickVariantSelection:()=>WA,QuickVariantSelectionOP:()=>KE,QuickVariantSelectionX:()=>KA,ResponsiveTable:()=>kc,SAP_UI_TABLE:()=>yh,SaveAndEditOP:()=>sE,SelectionFieldDateSettings:()=>AA,SelectionFields:()=>EA,Share:()=>rE,ShareOP:()=>oE,StackCard:()=>Zu,StackCardSettings:()=>hA,TableALP:()=>lf,TableCard:()=>of,TableCardSettings:()=>TA,TableColumn:()=>dE,TableColumnAction:()=>gE,TableColumnActionIntentBased:()=>mE,TableCustomColumn:()=>hE,ToolBar:()=>TE,ToolBarAction:()=>nE,TreeTable:()=>XA,UpAndDownNavigationOP:()=>aE,buildIntentBasedActionId:()=>uE,deleteColumnFromFragment:()=>bh,deleteType:()=>uf,exportColorPalette:()=>rV,exportCreateParametersFields:()=>Oh,exportCustomColumnsToFragment:()=>jA,exportDateSettingsField:()=>cV,exportDefaultSpan:()=>oV,exportType:()=>ff,getChartSectionControlId:()=>DV,getContactSubSectionControlId:()=>VV,getCustomColumnPath:()=>Sh,getFormSectionControlId:()=>NV,getRootCustomColumnFromFragmentJSON:()=>ap,getSectionControlId:()=>Kc,getSmartChartControlId:()=>mp,getSmartTableControlId:()=>Mc,getSubSectionControlId:()=>_V,getTableSectionControlId:()=>FV,importCreateParameters:()=>Ih,importDateSettings:()=>CA});var Zn=Z(re());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),tV=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),nV=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Pn=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Vc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),lh=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wi=o(e=>{let t=[];return t.push(lh(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),vs=o(e=>wi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),To=o((e,t,n)=>{let i=[];i.push(lh(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Pr=o((e,t,n)=>To(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),iV=o((e,t,n)=>To(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),fA=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ra=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let f=[a[0],s[s.length-1],l].join("|");return i.unshift(f),`${fA()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ch=class ch{};o(ch,"ApplicationV2"),h([jt("settings")],ch.prototype,"settings",2);var sh=ch,Xr=class Xr{};o(Xr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),P({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var Ts=Xr;var Ku=Z(re());function m3(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=Ku.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Ku.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Ku.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(m3,"importColorPalette");function rV(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Ku.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(rV,"exportColorPalette");function oV(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(oV,"exportDefaultSpan");var uh=class uh{};o(uh,"ChartSettingsType"),h([y({manifest:{path:o(()=>Pn()+"/chartSettings","path")}})],uh.prototype,"showDataLabel",2);var uA=uh,bs=class bs{};o(bs,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bs.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bs.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bs.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bs.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bs.prototype,"minimumSubTitleRow",2);var pA=bs,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:oV}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var As=Xt,Zl=class Zl{};o(Zl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"settings",2);var dA=Zl,Ss=class Ss extends As{};o(Ss,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"listType",2);var gA=Ss,Xu=class Xu{};o(Xu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"template",2);var nf=Xu,Go=class Go extends As{};o(Go,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:m3,export:rV}})],Go.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"bEnableStableColors",2);var fh=Go,ph=class ph extends fh{};o(ph,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ph.prototype,"measureAggregate",2);var mA=ph,Qu=class Qu{};o(Qu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qu.prototype,"template",2);var rf=Qu,ef=class ef extends As{};o(ef,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"objectStreamCardsSettings",2);var hA=ef,qu=class qu{};o(qu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qu.prototype,"template",2);var Zu=qu,tf=class tf extends As{};o(tf,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"staticContent",2);var yA=tf,Yu=class Yu{};o(Yu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Yu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Yu.prototype,"template",2);var ep=Yu,zu=class zu extends As{};o(zu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],zu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],zu.prototype,"enableAddToInsights",2);var TA=zu,Ju=class Ju{};o(Ju,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ju.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ju.prototype,"template",2);var of=Ju;var aV=Z(re());var h3=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),dh=class dh{};o(dh,"Field"),h([y({flex:{controlId:h3,controlType:o(()=>aV.ControlType.GroupElement,"controlType")},generate:ht})],dh.prototype,"visible",2);var vA=dh;var wc=Z(re());function CA(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(CA,"importDateSettings");function y3(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(y3,"importDateSettingsField");function cV(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(cV,"exportDateSettingsField");var af=class af{};o(af,"DateRange"),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path")}}),P({since:"1.77.0"})],af.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path"),import:CA,export:Lm}}),P({since:"1.77.0"})],af.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path")}}),P({since:"1.77.0"})],af.prototype,"exclude",2);var bA=af,gh={controlId:Zt,controlType:o(()=>wc.ControlType.SmartFilterBar,"controlType")},tp={path:o((e,t,n)=>`${je(e)}${wc.DATESETTINGSPATH}/fields/${n}`,"path")},sV={...tp,import:y3,export:cV},mh=class mh{};o(mh,"DefaultDateRange"),h([y({manifest:tp}),P({since:"1.90.0"})],mh.prototype,"operation",2);var SA=mh,Es=class Es{};o(Es,"SelectionFieldDateSettings"),h([y({manifest:sV}),P({since:"1.77.0"})],Es.prototype,"selectedValues",2),h([y({manifest:tp}),P({since:"1.77.0"})],Es.prototype,"exclude",2),h([y({manifest:tp}),P({since:"1.77.0"})],Es.prototype,"customDateRangeImplementation",2),h([y({manifest:sV}),P({since:"1.77.0"})],Es.prototype,"filter",2),h([y({manifest:tp}),P({since:"1.90.0"})],Es.prototype,"defaultValue",2);var AA=Es,IA=class IA{};o(IA,"SelectionFields");var EA=IA,vo=class vo{};o(vo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"})],vo.prototype,"smartVariantManagement",2),h([y({flex:gh}),P({since:"1.40.0"})],vo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],vo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.52.0"})],vo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:CA}}),P({since:"1.77.0"})],vo.prototype,"dateSettings",2),h([y({flex:gh}),P({since:"1.28.0"})],vo.prototype,"showClearOnFB",2),h([y({flex:gh}),P({since:"1.38.0"})],vo.prototype,"showFilterConfiguration",2),h([y({flex:gh}),P({since:"1.28.0"})],vo.prototype,"showRestoreOnFB",2);var ip=vo,np=class np extends ip{};o(np,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],np.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],np.prototype,"filterDefaultsFromSelectionVariant",2);var PA=np,hh=class hh extends ip{};o(hh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),P({since:"1.86.0"})],hh.prototype,"annotationPath",2);var xA=hh;var LA=Z(re());var T3=o((e,t,n,i,r)=>{if(i()===LA.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Zt(e,t)},"getFormActionButtonId"),Wo={controlId:T3,controlType:o(()=>LA.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"FormAction"),h([y({flex:Wo,generate:ht})],Ps.prototype,"visible",2),h([y({flex:Wo})],Ps.prototype,"tooltip",2),h([y({flex:Wo})],Ps.prototype,"icon",2),h([y({flex:Wo})],Ps.prototype,"activeIcon",2),h([y({flex:Wo})],Ps.prototype,"type",2);var OA=Ps,xs=class xs{};o(xs,"FieldForAction"),h([y({flex:Wo,generate:ht})],xs.prototype,"visible",2),h([y({flex:Wo})],xs.prototype,"tooltip",2),h([y({flex:Wo})],xs.prototype,"icon",2),h([y({flex:Wo})],xs.prototype,"activeIcon",2),h([y({flex:Wo}),P({since:"1.73.0"})],xs.prototype,"type",2);var RA=xs;var St=Z(re()),bo=Z(Sc());var _A=require("path"),w3=Z(re()),SV=Z(bV()),AV=require("fs");var M3=(0,_A.join)(__dirname,"templates");var k3=o((e,t)=>{let n=(0,AV.readFileSync)(e,"utf8");return(0,SV.render)(n,t)},"renderTemplate");var VA=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return k3((0,_A.join)(M3,t+".xml"),n)},"getSingleColumnContent"),wA=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=VA(i,t);n=n+`
288
+ }`;var nt=OL(function(){return Et(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,lb(nt))throw nt;return nt}o(O5,"template");function R5(c){return It(c).toLowerCase()}o(R5,"toLower");function L5(c){return It(c).toUpperCase()}o(L5,"toUpper");function F5(c,u,g){if(c=It(c),c&&(g||u===e))return MO(c);if(!c||!(u=hr(u)))return c;var T=fo(c),A=fo(u),C=kO(T,A),L=jO(T,A)+1;return as(T,C,L).join("")}o(F5,"trim");function N5(c,u,g){if(c=It(c),c&&(g||u===e))return c.slice(0,$O(c)+1);if(!c||!(u=hr(u)))return c;var T=fo(c),A=jO(T,fo(u))+1;return as(T,0,A).join("")}o(N5,"trimEnd");function D5(c,u,g){if(c=It(c),c&&(g||u===e))return c.replace(lv,"");if(!c||!(u=hr(u)))return c;var T=fo(c),A=kO(T,fo(u));return as(T,A).join("")}o(D5,"trimStart");function _5(c,u){var g=D,T=Ue;if(Tn(u)){var A="separator"in u?u.separator:A;g="length"in u?et(u.length):g,T="omission"in u?hr(u.omission):T}c=It(c);var C=c.length;if(vl(c)){var L=fo(c);C=L.length}if(g>=C)return c;var N=g-bl(T);if(N<1)return T;var M=L?as(L,0,N).join(""):c.slice(0,N);if(A===e)return M+T;if(L&&(N+=M.length-N),fb(A)){if(c.slice(N).search(A)){var z,J=M;for(A.global||(A=Cv(A.source,It(oO.exec(A))+"g")),A.lastIndex=0;z=A.exec(J);)var ne=z.index;M=M.slice(0,ne===e?N:ne)}}else if(c.indexOf(hr(A),N)!=N){var me=M.lastIndexOf(A);me>-1&&(M=M.slice(0,me))}return M+T}o(_5,"truncate");function V5(c){return c=It(c),c&&Pe.test(c)?c.replace(he,c2):c}o(V5,"unescape");var w5=Cl(function(c,u,g){return c+(g?" ":"")+u.toUpperCase()}),db=RR("toUpperCase");function IL(c,u,g){return c=It(c),u=g?e:u,u===e?i2(c)?u2(c):QU(c):c.match(u)||[]}o(IL,"words");var OL=rt(function(c,u){try{return gr(c,e,u)}catch(g){return lb(g)?g:new Xe(g)}}),M5=fa(function(c,u){return Mr(u,function(g){g=_o(g),ca(c,g,sb(c[g],c))}),c});function k5(c){var u=c==null?0:c.length,g=Ve();return c=u?dn(c,function(T){if(typeof T[1]!="function")throw new kr(r);return[g(T[0]),T[1]]}):[],rt(function(T){for(var A=-1;++A<u;){var C=c[A];if(gr(C[0],this,T))return gr(C[1],this,T)}})}o(k5,"cond");function j5(c){return l4(Ur(c,p))}o(j5,"conforms");function gb(c){return function(){return c}}o(gb,"constant");function U5(c,u){return c==null||c!==c?u:c}o(U5,"defaultTo");var $5=FR(),B5=FR(!0);function zi(c){return c}o(zi,"identity");function mb(c){return sR(typeof c=="function"?c:Ur(c,p))}o(mb,"iteratee");function H5(c){return lR(Ur(c,p))}o(H5,"matches");function G5(c,u){return fR(c,Ur(u,p))}o(G5,"matchesProperty");var W5=rt(function(c,u){return function(g){return Au(g,c,u)}}),K5=rt(function(c,u){return function(g){return Au(c,g,u)}});function hb(c,u,g){var T=Yn(u),A=Lg(u,T);g==null&&!(Tn(u)&&(A.length||!T.length))&&(g=u,u=c,c=this,A=Lg(u,Yn(u)));var C=!(Tn(g)&&"chain"in g)||!!g.chain,L=pa(c);return Mr(A,function(N){var M=u[N];c[N]=M,L&&(c.prototype[N]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Qi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Za([this.value()],arguments))})}),c}o(hb,"mixin");function X5(){return qn._===this&&(qn._=y2),this}o(X5,"noConflict");function yb(){}o(yb,"noop");function Q5(c){return c=et(c),rt(function(u){return uR(u,c)})}o(Q5,"nthArg");var q5=Qv(dn),Y5=Qv(NO),z5=Qv(vv);function RL(c){return tb(c)?bv(_o(c)):I4(c)}o(RL,"property");function J5(c){return function(u){return c==null?e:mc(c,u)}}o(J5,"propertyOf");var Z5=DR(),eG=DR(!0);function Tb(){return[]}o(Tb,"stubArray");function vb(){return!1}o(vb,"stubFalse");function tG(){return{}}o(tG,"stubObject");function nG(){return""}o(nG,"stubString");function iG(){return!0}o(iG,"stubTrue");function rG(c,u){if(c=et(c),c<1||c>Fe)return[];var g=on,T=Si(c,on);u=Ve(u),c-=on;for(var A=Ev(T,u);++g<c;)u(g);return A}o(rG,"times");function oG(c){return Ye(c)?dn(c,_o):yr(c)?[c]:Qi(qR(It(c)))}o(oG,"toPath");function aG(c){var u=++m2;return It(c)+u}o(aG,"uniqueId");var sG=wg(function(c,u){return c+u},0),cG=qv("ceil"),lG=wg(function(c,u){return c/u},1),fG=qv("floor");function uG(c){return c&&c.length?Rg(c,zi,_v):e}o(uG,"max");function pG(c,u){return c&&c.length?Rg(c,Ve(u,2),_v):e}o(pG,"maxBy");function dG(c){return VO(c,zi)}o(dG,"mean");function gG(c,u){return VO(c,Ve(u,2))}o(gG,"meanBy");function mG(c){return c&&c.length?Rg(c,zi,kv):e}o(mG,"min");function hG(c,u){return c&&c.length?Rg(c,Ve(u,2),kv):e}o(hG,"minBy");var yG=wg(function(c,u){return c*u},1),TG=qv("round"),vG=wg(function(c,u){return c-u},0);function bG(c){return c&&c.length?Av(c,zi):0}o(bG,"sum");function SG(c,u){return c&&c.length?Av(c,Ve(u,2)):0}return o(SG,"sumBy"),x.after=HB,x.ary=aL,x.assign=LH,x.assignIn=bL,x.assignInWith=qg,x.assignWith=FH,x.at=NH,x.before=sL,x.bind=sb,x.bindAll=M5,x.bindKey=cL,x.castArray=tH,x.chain=iL,x.chunk=f$,x.compact=u$,x.concat=p$,x.cond=k5,x.conforms=j5,x.constant=gb,x.countBy=bB,x.create=DH,x.curry=lL,x.curryRight=fL,x.debounce=uL,x.defaults=_H,x.defaultsDeep=VH,x.defer=GB,x.delay=WB,x.difference=d$,x.differenceBy=g$,x.differenceWith=m$,x.drop=h$,x.dropRight=y$,x.dropRightWhile=T$,x.dropWhile=v$,x.fill=b$,x.filter=AB,x.flatMap=xB,x.flatMapDeep=CB,x.flatMapDepth=IB,x.flatten=ZR,x.flattenDeep=S$,x.flattenDepth=A$,x.flip=KB,x.flow=$5,x.flowRight=B5,x.fromPairs=E$,x.functions=BH,x.functionsIn=HH,x.groupBy=OB,x.initial=x$,x.intersection=C$,x.intersectionBy=I$,x.intersectionWith=O$,x.invert=WH,x.invertBy=KH,x.invokeMap=LB,x.iteratee=mb,x.keyBy=FB,x.keys=Yn,x.keysIn=Yi,x.map=Hg,x.mapKeys=QH,x.mapValues=qH,x.matches=H5,x.matchesProperty=G5,x.memoize=Wg,x.merge=YH,x.mergeWith=SL,x.method=W5,x.methodOf=K5,x.mixin=hb,x.negate=Kg,x.nthArg=Q5,x.omit=zH,x.omitBy=JH,x.once=XB,x.orderBy=NB,x.over=q5,x.overArgs=QB,x.overEvery=Y5,x.overSome=z5,x.partial=cb,x.partialRight=pL,x.partition=DB,x.pick=ZH,x.pickBy=AL,x.property=RL,x.propertyOf=J5,x.pull=N$,x.pullAll=tL,x.pullAllBy=D$,x.pullAllWith=_$,x.pullAt=V$,x.range=Z5,x.rangeRight=eG,x.rearg=qB,x.reject=wB,x.remove=w$,x.rest=YB,x.reverse=ob,x.sampleSize=kB,x.set=t5,x.setWith=n5,x.shuffle=jB,x.slice=M$,x.sortBy=BB,x.sortedUniq=G$,x.sortedUniqBy=W$,x.split=x5,x.spread=zB,x.tail=K$,x.take=X$,x.takeRight=Q$,x.takeRightWhile=q$,x.takeWhile=Y$,x.tap=uB,x.throttle=JB,x.thru=Bg,x.toArray=yL,x.toPairs=EL,x.toPairsIn=PL,x.toPath=oG,x.toPlainObject=vL,x.transform=i5,x.unary=ZB,x.union=z$,x.unionBy=J$,x.unionWith=Z$,x.uniq=eB,x.uniqBy=tB,x.uniqWith=nB,x.unset=r5,x.unzip=ab,x.unzipWith=nL,x.update=o5,x.updateWith=a5,x.values=Rl,x.valuesIn=s5,x.without=iB,x.words=IL,x.wrap=eH,x.xor=rB,x.xorBy=oB,x.xorWith=aB,x.zip=sB,x.zipObject=cB,x.zipObjectDeep=lB,x.zipWith=fB,x.entries=EL,x.entriesIn=PL,x.extend=bL,x.extendWith=qg,hb(x,x),x.add=sG,x.attempt=OL,x.camelCase=u5,x.capitalize=xL,x.ceil=cG,x.clamp=c5,x.clone=nH,x.cloneDeep=rH,x.cloneDeepWith=oH,x.cloneWith=iH,x.conformsTo=aH,x.deburr=CL,x.defaultTo=U5,x.divide=lG,x.endsWith=p5,x.eq=po,x.escape=d5,x.escapeRegExp=g5,x.every=SB,x.find=EB,x.findIndex=zR,x.findKey=wH,x.findLast=PB,x.findLastIndex=JR,x.findLastKey=MH,x.floor=fG,x.forEach=rL,x.forEachRight=oL,x.forIn=kH,x.forInRight=jH,x.forOwn=UH,x.forOwnRight=$H,x.get=ub,x.gt=sH,x.gte=cH,x.has=GH,x.hasIn=pb,x.head=eL,x.identity=zi,x.includes=RB,x.indexOf=P$,x.inRange=l5,x.invoke=XH,x.isArguments=Tc,x.isArray=Ye,x.isArrayBuffer=lH,x.isArrayLike=qi,x.isArrayLikeObject=Fn,x.isBoolean=fH,x.isBuffer=ss,x.isDate=uH,x.isElement=pH,x.isEmpty=dH,x.isEqual=gH,x.isEqualWith=mH,x.isError=lb,x.isFinite=hH,x.isFunction=pa,x.isInteger=dL,x.isLength=Xg,x.isMap=gL,x.isMatch=yH,x.isMatchWith=TH,x.isNaN=vH,x.isNative=bH,x.isNil=AH,x.isNull=SH,x.isNumber=mL,x.isObject=Tn,x.isObjectLike=An,x.isPlainObject=Ou,x.isRegExp=fb,x.isSafeInteger=EH,x.isSet=hL,x.isString=Qg,x.isSymbol=yr,x.isTypedArray=Ol,x.isUndefined=PH,x.isWeakMap=xH,x.isWeakSet=CH,x.join=R$,x.kebabCase=m5,x.last=Br,x.lastIndexOf=L$,x.lowerCase=h5,x.lowerFirst=y5,x.lt=IH,x.lte=OH,x.max=uG,x.maxBy=pG,x.mean=dG,x.meanBy=gG,x.min=mG,x.minBy=hG,x.stubArray=Tb,x.stubFalse=vb,x.stubObject=tG,x.stubString=nG,x.stubTrue=iG,x.multiply=yG,x.nth=F$,x.noConflict=X5,x.noop=yb,x.now=Gg,x.pad=T5,x.padEnd=v5,x.padStart=b5,x.parseInt=S5,x.random=f5,x.reduce=_B,x.reduceRight=VB,x.repeat=A5,x.replace=E5,x.result=e5,x.round=TG,x.runInContext=w,x.sample=MB,x.size=UB,x.snakeCase=P5,x.some=$B,x.sortedIndex=k$,x.sortedIndexBy=j$,x.sortedIndexOf=U$,x.sortedLastIndex=$$,x.sortedLastIndexBy=B$,x.sortedLastIndexOf=H$,x.startCase=C5,x.startsWith=I5,x.subtract=vG,x.sum=bG,x.sumBy=SG,x.template=O5,x.times=rG,x.toFinite=da,x.toInteger=et,x.toLength=TL,x.toLower=R5,x.toNumber=Hr,x.toSafeInteger=RH,x.toString=It,x.toUpper=L5,x.trim=F5,x.trimEnd=N5,x.trimStart=D5,x.truncate=_5,x.unescape=V5,x.uniqueId=aG,x.upperCase=w5,x.upperFirst=db,x.each=rL,x.eachRight=oL,x.first=eL,hb(x,(function(){var c={};return No(x,function(u,g){Dt.call(x.prototype,g)||(c[g]=u)}),c})(),{chain:!1}),x.VERSION=t,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),Mr(["drop","take"],function(c,u){gt.prototype[c]=function(g){g=g===e?1:Wn(et(g),0);var T=this.__filtered__&&!u?new gt(this):this.clone();return T.__filtered__?T.__takeCount__=Si(g,T.__takeCount__):T.__views__.push({size:Si(g,on),type:c+(T.__dir__<0?"Right":"")}),T},gt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),Mr(["filter","map","takeWhile"],function(c,u){var g=u+1,T=g==rn||g==At;gt.prototype[c]=function(A){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(A,3),type:g}),C.__filtered__=C.__filtered__||T,C}}),Mr(["head","last"],function(c,u){var g="take"+(u?"Right":"");gt.prototype[c]=function(){return this[g](1).value()[0]}}),Mr(["initial","tail"],function(c,u){var g="drop"+(u?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[g](1)}}),gt.prototype.compact=function(){return this.filter(zi)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=rt(function(c,u){return typeof c=="function"?new gt(this):this.map(function(g){return Au(g,c,u)})}),gt.prototype.reject=function(c){return this.filter(Kg(Ve(c)))},gt.prototype.slice=function(c,u){c=et(c);var g=this;return g.__filtered__&&(c>0||u<0)?new gt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),u!==e&&(u=et(u),g=u<0?g.dropRight(-u):g.take(u-c)),g)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(on)},No(gt.prototype,function(c,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),T=/^(?:head|last)$/.test(u),A=x[T?"take"+(u=="last"?"Right":""):u],C=T||/^find/.test(u);A&&(x.prototype[u]=function(){var L=this.__wrapped__,N=T?[1]:arguments,M=L instanceof gt,z=N[0],J=M||Ye(L),ne=o(function(lt){var mt=A.apply(x,Za([lt],N));return T&&me?mt[0]:mt},"interceptor");J&&g&&typeof z=="function"&&z.length!=1&&(M=J=!1);var me=this.__chain__,Re=!!this.__actions__.length,Me=C&&!me,nt=M&&!Re;if(!C&&J){L=nt?L:new gt(this);var ke=c.apply(L,N);return ke.__actions__.push({func:Bg,args:[ne],thisArg:e}),new jr(ke,me)}return Me&&nt?c.apply(this,N):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(c){var u=gg[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var A=arguments;if(T&&!this.__chain__){var C=this.value();return u.apply(Ye(C)?C:[],A)}return this[g](function(L){return u.apply(Ye(L)?L:[],A)})}}),No(gt.prototype,function(c,u){var g=x[u];if(g){var T=g.name+"";Dt.call(El,T)||(El[T]=[]),El[T].push({name:u,func:g})}}),El[Vg(e,I).name]=[{name:"wrapper",func:e}],gt.prototype.clone=_2,gt.prototype.reverse=V2,gt.prototype.value=w2,x.prototype.at=pB,x.prototype.chain=dB,x.prototype.commit=gB,x.prototype.next=mB,x.prototype.plant=yB,x.prototype.reverse=TB,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=vB,x.prototype.first=x.prototype.head,mu&&(x.prototype[mu]=hB),x}),"runInContext"),ts=p2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=ts,define(function(){return ts})):fc?((fc.exports=ts)._=ts,mv._=ts):qn._=ts}).call(Vf)});var qM=Ze((xge,QM)=>{var{findIndex:gY}=ud();function mY(e,t){let i=gY(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(mY,"findNextTextualToken");QM.exports={findNextTextualToken:mY}});var JM=Ze((Ige,zM)=>{var YM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function hY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(YM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(hY,"isXMLNamespaceKey");function yY(e){if(typeof e!="string")return;let t=e.match(YM);if(t!==null)return t.groups&&t.groups.prefix||""}o(yY,"getXMLNamespaceKeyPrefix");zM.exports={isXMLNamespaceKey:hY,getXMLNamespaceKeyPrefix:yY}});var ek=Ze((Rge,ZM)=>{var{findNextTextualToken:TY}=qM(),{isXMLNamespaceKey:vY,getXMLNamespaceKeyPrefix:bY}=JM();ZM.exports={findNextTextualToken:TY,isXMLNamespaceKey:vY,getXMLNamespaceKeyPrefix:bY}});var gx=Ze((Lge,nk)=>{var{reduce:SY,has:tk,isArray:AY}=ud();function EY(e){return SY(e,(n,i,r)=>(r==="parent"||(tk(i,"type")?n.push(i):AY(i)&&i.length>0&&tk(i[0],"type")&&(n=n.concat(i))),n),[])}o(EY,"getAstChildrenReflective");nk.exports={getAstChildrenReflective:EY}});var mx=Ze((Nge,ik)=>{ik.exports={DEFAULT_NS:"::DEFAULT"}});var uk=Ze((Dge,fk)=>{var{BaseXmlCstVisitor:PY}=dx(),{last:xY,forEach:sk,reduce:CY,map:pd,pick:yx,sortBy:IY,isEmpty:OY,isArray:ck,assign:RY}=ud(),{findNextTextualToken:LY,isXMLNamespaceKey:FY,getXMLNamespaceKeyPrefix:NY}=ek(),{getAstChildrenReflective:DY}=gx(),{DEFAULT_NS:_Y}=mx();function VY(e,t){rk.setState({tokenVector:t});let n=rk.visit(e);return n.rootElement!==cl&&lk(n.rootElement),n}o(VY,"buildAst");var Tx=class Tx extends PY{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:cl,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&OY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),TT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=pd(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),TT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=pd(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=pd(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:cl,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=pd(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return kY(i,t),jY(i,t),UY(i,t,this.tokenVector),TT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:cl,value:cl,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=vT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=wY(a.image),r.syntax.value=vT(a)}return TT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:cl},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=IY(r,["startOffset"]),s=pd(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(Tx,"CstToAstVisitor");var hx=Tx,rk=new hx;function TT(e){let t=DY(e);sk(t,n=>n.parent=e)}o(TT,"setChildrenParent");function lk(e,t=[]){let n=CY(e.attributes,(r,a)=>{if(a.key!==cl&&FY({key:a.key,includeEmptyPrefix:!1})===!0){let s=NY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[_Y]=l}}return r},{}),i=Object.create(null);e.namespaces=RY(i,t,n),sk(e.subElements,r=>lk(r,e.namespaces))}o(lk,"updateNamespaces");function vT(e){return yx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(vT,"toXMLToken");function ok(e){return yx(e,["startOffset","startLine","startColumn"])}o(ok,"startOfXMLToken");function ak(e){return yx(e,["endOffset","endLine","endColumn"])}o(ak,"endOfXMLToken");function Ga(e){return ck(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ga,"exists");function wY(e){return e.substring(1,e.length-1)}o(wY,"stripQuotes");function MY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(MY,"nsToParts");var cl=null;function kY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=vT(n);let i=MY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=vT(t.END_NAME[0]))}o(kY,"handleElementOpenCloseNameRanges");function jY(e,t){if(Ga(t.OPEN)){let n;Ga(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ga(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...ok(t.OPEN[0]),...ak(n)}),Ga(t.SLASH_OPEN)&&Ga(t.END)&&(e.syntax.closeBody={...ok(t.SLASH_OPEN[0]),...ak(t.END[0])})}}o(jY,"handleElementOpenCloseBodyRanges");function UY(e,t,n){if(Ga(t.Name)){let i=t.Name[0].endOffset+2;if(Ga(t.START_CLOSE)||Ga(t.SLASH_CLOSE)){let r=(Ga(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=ck(t.attribute)?xY(t.attribute).location.endOffset:t.Name[0].endOffset,s=LY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(UY,"handleElementAttributeRanges");fk.exports={buildAst:VY}});var gk=Ze((Vge,dk)=>{var{forEach:$Y,isFunction:wf}=ud(),{getAstChildrenReflective:BY}=gx();function pk(e,t){switch(e.type){case"XMLDocument":{wf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{wf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{wf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{wf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{wf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{wf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=BY(e);$Y(n,i=>{pk(i,t)})}o(pk,"accept");dk.exports={accept:pk}});var hk=Ze((Mge,mk)=>{var{buildAst:HY}=uk(),{accept:GY}=gk(),{DEFAULT_NS:WY}=mx();mk.exports={buildAst:HY,accept:GY,DEFAULT_NS:WY}});var Vi={};vc(Vi,{deleteConfigEntityByPath:()=>lee,exportConfig:()=>see,exportConfigEntityByPath:()=>cee,generateCustomExtension:()=>ZI,generateSchema:()=>aee,getApiVersion:()=>dee,getChanges:()=>Yj,getGenericSchema:()=>iv,getPathToGenericSchema:()=>mj,getProject:()=>Tee,importConfig:()=>fee,importProject:()=>uee,importProjectSchema:()=>pee,isDirectory:()=>mee,log:()=>oe,prompts:()=>oee,readDirectory:()=>rO});module.exports=zg(Vi);var ge=Z(re());var G=Z(re());var Be=o(e=>typeof e=="string","isString"),Ru=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),mD=o(e=>e==null?"":""+e,"makeString"),n8=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),i8=/###/g,hD=o(e=>e&&e.indexOf("###")>-1?e.replace(i8,"."):e,"cleanKey"),yD=o(e=>!e||Be(e),"canNotTraverseDeeper"),Lu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(yD(e))return{};let a=hD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return yD(e)?{}:{obj:e,k:hD(i[r])}},"getLastOfPath"),TD=o((e,t,n)=>{let{obj:i,k:r}=Lu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Lu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Lu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),r8=o((e,t,n,i)=>{let{obj:r,k:a}=Lu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Zg=o((e,t)=>{let{obj:n,k:i}=Lu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),o8=o((e,t,n)=>{let i=Zg(e,n);return i!==void 0?i:Zg(t,n)},"getPathWithDefaults"),CD=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):CD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Fl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),a8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},s8=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>a8[t]):e,"escape"),wb=class wb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(wb,"RegExpCache");var Ob=wb,c8=[" ",",","?","!",";"],l8=new Ob(20),f8=o((e,t,n)=>{t=t||"",n=n||"";let i=c8.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=l8.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Rb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let f=a;f<i.length;++f)if(f!==a&&(l+=n),l+=i[f],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&f<i.length-1)continue;a+=f-a+1;break}r=s}return r},"deepFind"),Du=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),u8={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},Fu=class Fu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||u8,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Fu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Fu(this.logger,t)}};o(Fu,"Logger");var Lb=Fu,Vo=new Lb,Mb=class Mb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(Mb,"EventEmitter");var Nl=Mb,kb=class kb extends Nl{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i,r={}){var p,d;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let f=Zg(this.data,l);return!f&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),f||!s||!Be(i)?f:Rb((d=(p=this.data)==null?void 0:p[t])==null?void 0:d[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),TD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let f=Zg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?CD(f,i,a):f={...f,...i},TD(this.data,l,f),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(kb,"ResourceStore");var em=kb,ID={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},OD=Symbol("i18next/PATH_KEY");function p8(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===OD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(p8,"createProxy");function Fb(e,t){let{[OD]:n}=e(p8());return n.join((t==null?void 0:t.keySeparator)??".")}o(Fb,"keysFromSelector");var vD={},Cb=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),rm=class rm extends Nl{constructor(t,n={}){super(),n8(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);if((r==null?void 0:r.res)===void 0)return!1;let a=Cb(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!f8(t,i,r);if(s&&!l){let f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Fb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(t[t.length-1],r),p=f[f.length-1],d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${d}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${d}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let S=this.resolve(t,r),b=S==null?void 0:S.res,I=(S==null?void 0:S.usedKey)||l,F=(S==null?void 0:S.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),ee=rm.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;U&&!b&&ee&&($e=Ue);let qe=Cb($e),rn=Object.prototype.toString.apply($e);if(U&&$e&&qe&&j.indexOf(rn)<0&&!(Be(W)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Bt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(S.res=Bt,S.usedParams=this.getUsedParamsDetails(r),S):Bt}if(s){let Bt=Array.isArray($e),At=Bt?[]:{},Yt=Bt?F:I;for(let Fe in $e)if(Object.prototype.hasOwnProperty.call($e,Fe)){let vn=`${Yt}${s}${Fe}`;ee&&!b?At[Fe]=this.translate(vn,{...r,defaultValue:Cb(Ue)?Ue[Fe]:void 0,joinArrays:!1,ns:f}):At[Fe]=this.translate(vn,{...r,joinArrays:!1,ns:f}),At[Fe]===vn&&(At[Fe]=$e[Fe])}b=At}}else if(U&&Be(W)&&Array.isArray(b))b=b.join(W),b&&(b=this.extendTranslation(b,t,r,i));else{let Bt=!1,At=!1;!this.isValidLookup(b)&&ee&&(Bt=!0,b=Ue),this.isValidLookup(b)||(At=!0,b=l);let Fe=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&At?void 0:b,vn=ee&&Ue!==b&&this.options.updateMissing;if(At||Bt||vn){if(this.logger.log(vn?"updateKey":"missingKey",m,p,l,vn?Ue:b),s){let an=this.resolve(l,{...r,keySeparator:!1});an&&an.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let bn=[],on=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&on&&on[0])for(let an=0;an<on.length;an++)bn.push(on[an]);else this.options.saveMissingTo==="all"?bn=this.languageUtils.toResolveHierarchy(r.lng||this.language):bn.push(r.lng||this.language);let Rn=o((an,Oe,fn)=>{var tt;let Fi=ee&&fn!==b?fn:Fe;this.options.missingKeyHandler?this.options.missingKeyHandler(an,p,Oe,Fi,vn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(an,p,Oe,Fi,vn,r),this.emit("missingKey",an,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?bn.forEach(an=>{let Oe=this.pluralResolver.getSuffixes(an,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(fn=>{Rn([an],l+fn,r[`defaultValue${fn}`]||Ue)})}):Rn(bn,l,Ue))}b=this.extendTranslation(b,t,r,S,i),At&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${d}${l}`),(At||Bt)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${d}${l}`:l,Bt?b:void 0,r))}return a?(S.res=b,S.usedParams=this.getUsedParamsDetails(r),S):b}extendTranslation(t,n,i,r,a){var f,p;if((f=this.i18nFormat)!=null&&f.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){let S=t.match(this.interpolator.nestingRegexp);m=S&&S.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),d){let S=t.match(this.interpolator.nestingRegexp),b=S&&S.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...S)=>(a==null?void 0:a[0])===S[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):this.translate(...S,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=ID.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(f,n),d=p.key;r=d;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),S=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{var j,W;this.isValidLookup(i)||(l=F,!vD[`${I[0]}-${F}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((W=this.utils)!=null&&W.hasLoadedNamespace(l))&&(vD[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(U=>{var le;if(this.isValidLookup(i))return;s=U;let se=[d];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,d,U,F,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix(U,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(d+Le.replace(Ue,this.options.pluralSeparator)),se.push(d+Le),S&&se.push(d+D)),b){let $e=`${d}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),S&&se.push($e+D))}}let ee;for(;ee=se.pop();)this.isValidLookup(i)||(a=ee,i=this.getResource(U,F,ee,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(rm,"Translator");var tm=rm,jb=class jb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vo.create("languageUtils")}getScriptPartFromCode(t){if(t=Du(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Du(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(jb,"LanguageUtil");var nm=jb,bD={zero:0,one:1,two:2,few:3,many:4,other:5},SD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Ub=class Ub{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Vo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Du(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),SD;if(!t.match(/-|_/))return SD;let f=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(f,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>bD[r]-bD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Ub,"PluralResolver");var Nb=Ub,AD=o((e,t,n,i=".",r=!0)=>{let a=o8(e,t,n);return!a&&r&&Be(n)&&(a=Rb(e,n,i),a===void 0&&(a=Rb(t,n,i))),a},"deepFindWithDefaults"),Ib=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$b=class $b{constructor(t={}){var n;this.logger=Vo.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:f,formatSeparator:p,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:s8,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Fl(a):s||"{{",this.suffix=l?Fl(l):f||"}}",this.formatSeparator=p||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=v?Fl(v):S||Fl("$t("),this.nestingSuffix=b?Fl(b):I||Fl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var S;let a,s,l,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let W=AD(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(W,void 0,i,{...r,...n,interpolationkey:b}):W}let I=b.split(this.formatSeparator),F=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(AD(n,f,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:F})},"handleFormat");this.resetRegExp();let d=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((S=r==null?void 0:r.interpolation)==null?void 0:S.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ib(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ib(this.escape(b)):Ib(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof d=="function"){let j=d(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=mD(s));let F=b.safeValue(s);if(t=t.replace(a[0],F),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((f,p)=>{let d=this.nestingOptionsSeparator;if(f.indexOf(d)<0)return f;let m=f.split(new RegExp(`${d}[ ]*{`)),v=`{${m[1]}`;f=m[0],v=this.interpolate(v,s);let S=v.match(/'/g),b=v.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,I),`${f}${d}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,f},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let f=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(f=r[1].slice(p).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=mD(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),f.length&&(a=f.reduce((d,m)=>this.format(d,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($b,"Interpolator");var Db=$b,d8=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...f]=s.split(":"),p=f.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();n[d]||(n[d]=p),p==="false"&&(n[d]=!1),p==="true"&&(n[d]=!0),isNaN(p)||(n[d]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ED=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Du(i),r),t[s]=l),l(n)}},"createCachedFormatter"),g8=o(e=>(t,n,i)=>e(Du(n),i)(t),"createNonCachedFormatter"),Bb=class Bb{constructor(t={}){this.logger=Vo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?ED:g8;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ED(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(f=>f.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,f)=>{var m;let{formatName:p,formatOptions:d}=d8(f);if(this.formats[p]){let v=l;try{let S=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=S.locale||S.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...d,...r,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Bb,"Formatter");var _b=Bb,m8=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Hb=class Hb extends Nl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Vo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},f={};return t.forEach(p=>{let d=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,d=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),f[m]===void 0&&(f[m]=!0)))}),d||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(f)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(f=>{r8(f.loaded,[a],s),m8(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(p=>{l[p]||(l[p]={});let d=f.loaded[p];d.length&&d.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(f=>!f.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,d)},"resolver"),f=this.backend[i].bind(this.backend);if(f.length===2){try{let p=f(t,n);p&&typeof p.then=="function"?p.then(d=>l(null,d)).catch(l):l(null,p)}catch(p){l(p)}return}return f(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var f,p,d,m,v;if((p=(f=this.services)==null?void 0:f.utils)!=null&&p.hasLoadedNamespace&&!((m=(d=this.services)==null?void 0:d.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let S={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,S):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(F=>l(null,F)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,S)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Hb,"Connector");var Vb=Hb,PD=o(()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),xD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Jg=o(()=>{},"noop"),h8=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Nu=class Nu extends Nl{constructor(t={},n){if(super(),this.options=xD(t),this.services={},this.logger=Vo,this.modules={external:[]},h8(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=PD();this.options={...i,...this.options,...xD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vo.init(r(this.modules.logger),this.options):Vo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=_b;let d=new nm(this.options);this.store=new em(this.options.resources,this.options);let m=this.services;m.logger=Vo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new Nb(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Db(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Vb(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new tm(this.services,this.options),this.translator.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...d)=>this.store[p](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...d)=>(this.store[p](...d),this)});let l=Ru(),f=o(()=>{let p=o((d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(d,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),l}loadResources(t,n=Jg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],f=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?f(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>f(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Ru();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Jg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ID.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=Ru();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,f)=>{f?this.isLanguageChangingTo===t&&(r(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var d,m;!t&&!l&&this.services.languageDetector&&(l=[]);let f=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||m.call(d,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let f;typeof s!="object"?f=this.options.overloadTranslationOptionHandler([a,s].concat(l)):f={...s},f.lng=f.lng||r.lng,f.lngs=f.lngs||r.lngs,f.ns=f.ns||r.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",d;return f.keyPrefix&&Array.isArray(a)?d=a.map(m=>(typeof m=="function"&&(m=Fb(m,{...this.options,...s})),`${f.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=Fb(a,{...this.options,...s})),d=f.keyPrefix?`${f.keyPrefix}${p}${a}`:a),this.t(d,f)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,f)=>{let p=this.services.backendConnector.state[`${l}|${f}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Ru();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Ru();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new nm(PD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Nu(t,n)}cloneInstance(t={},n=Jg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Nu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((f,p)=>(f[p]={...this.store.data[p]},f[p]=Object.keys(f[p]).reduce((d,m)=>(d[m]={...f[p][m]},d),f[p]),f),{});a.store=new em(l,r),a.services.resourceStore=a.store}return a.translator=new tm(a.services,r),a.translator.on("*",(l,...f)=>{a.emit(l,...f)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Nu,"I18n");var im=Nu,Q=im.createInstance();Q.createInstance=im.createInstance;var Ree=Q.createInstance,Lee=Q.dir,Fee=Q.init,Nee=Q.loadResources,Dee=Q.reloadResources,_ee=Q.use,Vee=Q.changeLanguage,wee=Q.getFixedT,Mee=Q.t,kee=Q.exists,jee=Q.setDefaultNamespace,Uee=Q.hasLoadedNamespace,$ee=Q.loadNamespaces,Bee=Q.loadLanguages;var B0=Z(Gb()),H0=Z(t0()),xm=Z($0()),ut=require("@sap-ux/vocabularies-types/vocabularies/UI"),Mu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Em=Z(re());var oe=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Em.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",qK=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],YK=["sap.fe.core","sap.fe.templates"],G0="controlProperty",zK="defaultControlProperty",jl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Sr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Gr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,xm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return oe(t,{severity:G.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,xm.merge)(...n);i=(0,H0.convert)(r)}return i}o(Gr,"parseAndMergeAndConvert");var kl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function fS(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(fS,"evaluateCommonLabel");function Ul(e,t){let n=e.value;return e.$target&&(n=fS(e.$target.annotations,t,n)),n}o(Ul,"getLabelForPropertyPath");function ku(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=fS(i.annotations,t,n)),n}o(ku,"getLabelForDataField");function ba(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return fS(a.annotations,t,s)}}}else return}o(ba,"getLabel");function Cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(Cm,"getDescriptionForActionBasedDataFields");function uS(e,t,n){let i=ku(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(uS,"getTitleForDataField");function at(e){return e.replace("#","::").replace(/\//g,":2f")}o(at,"prepareRef");function va(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(va,"getPageTypeV2");function pS(e){let t="name"in e&&typeof e.name=="string"?Pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return G.PageTypeV4.CustomPage}o(pS,"getPageTypeV4");function JK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(JK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function ZK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(ZK,"getAnnotationFromMetaPath");function eX(e,t,n){var s,l;let i=e[e.length-1],r=ZK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(eX,"determineTargetAnnotation");function tX(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ut.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(tX,"adjustKey");function nX(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,f=i.split("/"),p=f.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=tX(t,f,a);let d=eX(f,n,e);if(d){let S=r===G.FioriElementsVersion.v2?"::":"#";t=JK(d,a).replace("#",S),l=(v=d.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===G.FioriElementsVersion.v2?"::":"/";f.pop(),t=`${[...f].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(nX,"getKeyAndEntityTypeOfReferenceFacet");function W0(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var d,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,f=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==ut.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=kl(e.Target);if(!S){oe(i,{severity:G.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=nX(n,l,p,S,r,a);if(F)return;l=b,p=I,f=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:f}}o(W0,"getSectionFacet");function iX(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(iX,"getDecodedPathElement");var dS=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),K0=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let f=0;f<l.length;f++){let p=l[f];if(p==="[]")continue;let d=iX(p,n,i);if(r!==void 0&&!a&&l.length-1===f)s[d]=r;else if(!s[d]){if(a)return;s[d]=dS(l[f+1])}typeof s[d]=="string"&&(!r||f<l.length-1)?s[d]={}:s=s[d]}return s},"resolveManifestPath"),ko=o((e,t,n,i,r=!1)=>K0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),X0=o((e,t,n,i,r)=>{K0(e,t,i,r,n)},"setManifestSectionByPathV4");function gS(e){let t,n,i;switch(e.$Type){case ut.UIAnnotationTypes.DataField:t=kl(e.Value);break;case ut.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:kl(e.Value);break;case ut.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ut.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${at(e.Action)}`);break;case ut.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=kl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${at(e.Action)}`);break;case ut.UIAnnotationTypes.DataFieldWithNavigationPath:i=kl(e.Value),n=kl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(gS,"getSchemaKeyOfLineItemRecord");function rX(e,t,n){return e.includes(ut.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ut.UIAnnotationTerms.Chart:e.includes(ut.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ut.UIAnnotationTerms.Identification:n&&e.includes(ut.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ut.UIAnnotationTerms.LineItem:e.includes(ut.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ut.UIAnnotationTerms.FieldGroup:e.includes(ut.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ut.UIAnnotationTerms.DataPoint:e.includes(ut.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ut.UIAnnotationTerms.PresentationVariant:e.includes(ut.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?ut.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(rX,"getUIAnnotationTerm");function oX(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Mu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Mu.CommunicationAnnotationTerms.Address:void 0}o(oX,"getCommunicationAnnotationTerm");function aX(e,t,n){return rX(e,t,n)||oX(e,t)}o(aX,"getAnnotationTerm");function sX(e,t,n,i,r){var p,d,m,v,S,b,I,F,j,W;let a=oi(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(aX(s,a,i)){case ut.UIAnnotationTerms.Chart:{n[s]={base:G.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.Identification:{n[s]={base:G.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.LineItem:{if(!s.includes(ut.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let U=s.split("::");U[U.length-1]=`@${ut.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ut.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Mu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Mu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(sX,"evaluateTargetAnnotation");function mS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(mS,"getAnnotationPathUsingFullyQualifiedName");function hS(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var f;let l=W0(e,i,t,s,a,!1);if(l)switch(e.$Type){case ut.UIAnnotationTypes.ReferenceFacet:{sX(l,e,r,i,t);break}case ut.UIAnnotationTypes.CollectionFacet:{let p=mS(i,e.fullyQualifiedName),d=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&a===G.FioriElementsVersion.v4&&oe(s,{severity:G.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(f=e.Facets)==null||f.forEach(m=>{hS(m,t,n,i,d.facets,a,s)});break}}}o(hS,"addFacetToConfig");function Im(e,t,n=G.FioriElementsVersion.v2,i){var l,f;let r={};if(!e||!e.annotations)return;let a=oi(G.UIVOCABULARY,t),s=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{hS(m,t,d,e,r,n,i)})}return r}o(Im,"getObjectPageHeaderFacets");function Om(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let f=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,f);s.forEach(d=>{hS(d,t,p,e,r,n,i)})}return r}o(Om,"getObjectPageFacets");function yS(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let f=typeof a[l].name=="string"?a[l].name:"";return qK.indexOf(f)>-1||Pm(f)})||s&&Object.keys(s).find(l=>YK.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(yS,"getFEVersionFromManifest");function cX(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(cX,"getMainService");function Q0(e){var i,r;let t=cX(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(Q0,"getODataVersionFromManifest");function lX(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(va((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(va((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(lX,"determineV2Template");function ju(e){var i,r,a,s;let t,n=pS(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ju,"determineV4PageTemplateType");function fX(e){let t;for(let n in e){let i=e[n];if(t=ju(i),t)break}return t}o(fX,"determineV4TemplateFromPages");function uX(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:G.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=fX(n);return i||oe(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(uX,"determineV4Template");function Ac(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=lX(e,n):t===G.FioriElementsVersion.v4&&(i=uX(e,n)),i}o(Ac,"getTemplateTypeFromManifest");function Sa(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(Sa,"addSectionTitle");function fs(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(fs,"addSectionDescription");function $l(e,t,n){var i,r;Sa(e,t,n),fs(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o($l,"addTargetTitleAndSectionDescription");function q0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(q0,"addChartFacetID");function jo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,$l(t,i,n),i}o(jo,"createDefaultSection");function Y0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,f;let a=oi(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let v=W0(m,e,t,n,i,!0);return v&&d.push(v),d},s)),s}}o(Y0,"getObjectPageFacetSection");var us=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(f){let p=a&&a===f?r:f.replace(/\?\?/g,"/");if(!(!s[p]&&(a===f&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),us(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),lS=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:lS(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:lS(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=lS(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Rm(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Rm,"generatePageId");function TS(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(f=>l[f]!==void 0)&&a.push(s)}return a}o(TS,"findMatchingKeysByAdditionalProperties");function pX(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[G0];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[zK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let f=Object.keys(s.properties||{}),p=TS(t,s.additionalProperties,n);(f.some(d=>d in n)||p.length||Object.keys(n).length===0&&f.length)&&i.push(a)}}}o(pX,"fillArrayFromAnyOfReference");function dX(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{pX(r,n,t,i)}),i.length===0))return;return i}o(dX,"fillArrayFromPropertyDefinition");function gX(e){return e.replace(G.UIVOCABULARYDOT,"")}o(gX,"extractUIAnnotationType");function mX(e,t,n,i,r,a,s,l){var p,d,m,v,S;let f={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(f.targetDefinition=t.definitions[b],((p=f==null?void 0:f.targetDefinition)==null?void 0:p.dataType)!==gX(ut.UIAnnotationTypes.DataFieldForActionGroup)&&((d=f==null?void 0:f.targetDefinition)!=null&&d.$ref)||((m=f==null?void 0:f.targetDefinition)==null?void 0:m.type)==="array")return f=Uo(t,n,i,f.targetDefinition,r,a,s),f;e.length>1&&e.forEach(j=>{j!==""&&(f.targetDefinition.properties={...f.targetDefinition.properties,...t.definitions[j].properties})}),f.title=(v=f==null?void 0:f.targetDefinition)!=null&&v.title?f.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],F=i||{};f.configObject=a.createInstance(s,I,F,(S=f==null?void 0:f.targetDefinition)==null?void 0:S[G0])}else f.targetDefinition=l,f.title=f.targetDefinition.title?f.targetDefinition.title:r,f.configObject=i;return f}o(mX,"determineNextDefinitionFromDefinitionArray");function Uo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Uo(e,t,n,i.items,r,a,s),l;let f=dX(i,n,e);if(f)return l=mX(f,e,t,n,r,a,s,i),l}o(Uo,"getNextTargetDefinition");var vS=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,B0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Lm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Lm,"convertEnumToCSV");function er(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(er,"convertActionKeyToStableId");function Jt(e){return e==null?void 0:e.split($)[1]}o(Jt,"getDefinitionKey");function Fm(e){return`#/definitions/${e}`}o(Fm,"getDefinitionsRef");function Nm(e){return e instanceof Error?e.message:String(e)}o(Nm,"getErrorMessage");function Ec(e,t){return e==null?void 0:e.includes(t)}o(Ec,"isFeatureSupported");function $o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o($o,"updatePropertyIndices");function Dm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Dm,"getJSONPropertyByPath");function z0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(z0,"removeNamespaces");function Bl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Bl,"replaceNamespaces");function Aa(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(Aa,"getRefType");function Pm(e){if(e===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${G.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in G.PageTypeV4)return G.PageTypeV4[n]}}o(Pm,"convertTemplateNameToPageTypeV4");function _m(e,t){if(e===t)return!0;let n=Pm(e);return n?n===Pm(t):!1}o(_m,"compareTemplateNames");var Fo=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=Z(re());var tr=Z(re());var Zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Vm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=tr.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function hX(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(hX,"escapeId");var J0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(J0||{}),Z0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(Z0||{});function yX(e,t,n){let i;return e=e.map(function(r){if(r===tr.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===tr.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(yX,"mapBreadcrumbs");var bS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=yX(t,s,r)),s[0]===tr.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,tr.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,tr.VOCWITHSLASH):t[0]===tr.PropertyName.table&&(a=t[0]);let f=s[s.length-1].replace(/::com.sap.vocabularies/g,tr.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,tr.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,d=f.indexOf(":::");return f.startsWith("DataField")&&d>-1?(f=f.replace("/",":2f"),p=`${e}template:::TableColumn:::${f.substring(0,d)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${f.substring(d+3)}`):(f=f.replace("/","_"),p=`${e}${t.join("::")}-${f}`),hX(p)},"buildColumnControlId"),nr=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function TX(e){let t=tr.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(TX,"determinePattern");var SS=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,f=a.description?a.description:l.description,p=TX(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},f&&(r[n].description=f,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{SS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ht=o((e,t,n)=>{let i=Object.values(J0);SS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(Z0);SS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Pc(){}o(Pc,"doNotDelete");var Mte=Z(t_());var AS=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(AS,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(AS,e,t)),n}o(Mn,"getReflectMetadata");function n_(e){let t;return e&&(t=Reflect.getMetadata(AS,e)),t}o(n_,"getReflectTypeMetadata");var ir=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),i_=Symbol("childId"),jt=o(e=>Reflect.metadata(i_,e),"childId"),wm=o((e,t)=>Reflect.getMetadata(i_,e,t),"getChildId"),Mm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),vX=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(vX,e),"descriptionSrcURL");var bX=Symbol("validityMetadataKey"),P=o(e=>Reflect.metadata(bX,e),"validity");function Hl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Hl,"getTextForDeprecated");var u_=Z(l_()),p_=Z(re());var d_=u_.default.change,f_={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function g_(e,t){let n="";try{for(let i in f_)e[i]===void 0&&(e[i]=f_[i]);n=d_.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(g_,"createChangeString");function Ar(e){try{return d_.parse(e)}catch{return!1}}o(Ar,"parseChangeString");function m_(e,t,n,i,r){let a=n.layer?n.layer===p_.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(m_,"fillFlexChangeContent");function km(e,t){return g_(e,t)}o(km,"exportToFlexChange");var xc=Z(re());function Gl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let f=l(t,r,n,a);f!==void 0&&(i[n]=f)}else t[s]!==void 0&&(i[n]=t[s])}o(Gl,"importProperty");function jm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(oe(i,{severity:xc.LogSeverity.Warning,message:Hl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(jm,"checkDeprecatedProperties");function ES(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return ES(n,t)}else return e.title?e.title.startsWith(xc.FACETTITLEPREFIX)?e.title.split(xc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(ES,"getSectionTitle");function Um(e){let t=e.split(`${xc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Um,"getTargetFromCustomColumnRef");function Wr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Wr,"removeEmptyStructure");var Vt=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ho=require("@sap-ux/vocabularies-types/vocabularies/UI");var Pa=require("@sap-ux/vocabularies-types/vocabularies/UI");var h_=Z(re()),te=Z(re()),y_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},f=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let d in n.properties){let m=Mn(e,d);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=ko(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Gl(m,l,d,e,a,r),jm(f,l,v,s))}}}o(Ot,"importSettingsOfObject");var IS="DataFieldForActionGroup";function IX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(IX,"sortByPropertyIndex");function Uu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IX())}o(Uu,"sortPropertiesRecords");function OX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(OX,"getExtensionText");function PS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(PS,"addExtensionToSortedArray");function RX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var f,p,d;return((f=l.position)==null?void 0:f.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(RX,"addRemainingTargetByBefore");function T_(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=OX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(T_,"getExtensionDetails");function xS(e,t,n,i,r=!1){var l,f;let a=Object.entries(e).length;for(let p of Object.keys(e)){let d=e[p],m=T_(d,t,p);if((l=d.position)!=null&&l.anchor&&((f=d.position)!=null&&f.placement)){let v=n.findIndex(S=>S[0]===d.position.anchor);v>-1?(PS(d,n,v,p,m),delete e[p]):p===d.position.anchor||Object.keys(e).indexOf(d.position.anchor)===-1?(oe(i,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:d.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&RX(e,p,d,n,m)}else r&&(PS(d,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?xS(e,t,n,i):s>0&&xS(e,t,n,i,!0)}o(xS,"adjustCustomExtReferringToCustomExt");function LX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(LX,"getExtensionAnchor");function FX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(FX,"getLocalExtensionsToSkip");function NX(e,t,n){var l,f;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((f=e.position)==null?void 0:f.anchor)return n.length;let a=o((p,d)=>{for(let m of n){let v=t[m[0]];if(d(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(NX,"getExtensionIndexByMergedApproach");function DX(e,t,n,i,r=!1){return r?NX(e,t,n):n.findIndex(a=>a[0]===i)}o(DX,"getExtensionIndex");function _X(e,t,n,i,r){oe(e,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(_X,"handleInvalidExtension");function Ea(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},f=FX(l,s);if(!l)return[];for(let p of Object.keys(l)){let d=l[p];if(f!=null&&f.includes(p))continue;let m=T_(d,n,p,te.ActionType.Custom);if(typeof d!="object"){_X(r,p,t,m,l);continue}if(!(i in d)){delete l[p];continue}let v=LX(d,s);if(v){let S=DX(d,e,t,v,a);S>-1&&(PS(d,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&xS(l,n,t,r),t}o(Ea,"addExtensionToArray");function OS(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(OS,"addEnumForProperties");function VX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];OS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(VX,"addColumnPropertyIndexAndEnum");function Cc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,S,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let f=Uu(l),p=a?a.replace(/::/g,"/"):`@${Pa.UIAnnotationTerms.LineItem}`,d=(I=(b=(S=(v=t.options)==null?void 0:v.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;d&&(f=Ea(d,f,i,void 0,n)),VX(f,e,l,i);let m={};f.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Cc,"addCustomColumnDefinition");function v_(e,t){let n=t.$Type===Pa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?i=n?te.DefinitionName.ViewToolBarActionGroup:te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?i=n?te.DefinitionName.ToolBarActionGroup:te.DefinitionName.ToolBarAction:i=n?te.DefinitionName.ObjectPageToolBarActionGroup:te.DefinitionName.ObjectPageToolBarAction,i}o(v_,"determineActionDefinitionName");function wX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Fc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(wX,"addTargetAndKeysOfAction");function b_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=v_(n,a),f=ci(a,n.entityType),p=a.$Type.split(`${te.UIVOCABULARY}.`)[1],d=typeof a.Action=="string"?a.Action:a.Action.path,m=Hm(d),v=i.properties[`${p}::${m}`]={description:f};if(t?v.$ref=x_(l,at(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[te.SchemaTag.propertyIndex]=s,v[te.SchemaTag.dataType]=rr(a),wX(v,a,d),v[te.SchemaTag.annotationType]=a.$Type,t){let S=v.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[te.SchemaTag.annotationPath]=`${r}/${s}`}else v[te.SchemaTag.annotationPath]=`${r}/${s}`}o(b_,"addActionRecordToSchema");function S_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=v_(n,i),f=Kr(i),p={};t?(s.properties[`${f}`]={$ref:si(l,at(f))},p=vt(l,at(f),n.appSchema)):s.properties[`${f}`]=p,Ia(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[te.SchemaTag.propertyIndex]=a,p[te.SchemaTag.dataType]=rr(i),p[te.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((d,m)=>{let v={...e,lineItemRecord:d,lineItemPath:`${p[te.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};b_(v,t)})}o(S_,"addGroupActionRecordToSchema");function RS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?b_(e,!n):LS(e)}o(RS,"addLineItemActionDefinition");function LS(e){var d;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Pa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,f=t.lineItemId;if((d=n.Target)!=null&&d.value){let m=`@${oi(te.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Kr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[f]);let v=m.properties,S={description:ci(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[te.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[te.SchemaTag.annotationPath]=`${r}/${a}`,S[te.SchemaTag.propertyIndex]=a,S[te.SchemaTag.dataType]=rr(n),v[p]=S,Km(n,v,p)}}o(LS,"addLineItemRecordToSchema");function FS(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};ps.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(FS,"appendLineItemsToSchema");function Ic(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Gm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FS(e,r,a,void 0,t)}o(Ic,"addLineItemsTypeToSchema");function Oc(e,t,n,i=te.DefinitionName.Position,r){var p,d,m,v,S;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${Pa.UIAnnotationTerms.LineItem}`,f=(S=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:S.columns;if(f)for(let b in f)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Ca(s,b)}}o(Oc,"addFragmentEnumForAnchor");function ho(e,t,n=te.DefinitionName.CustomActionPosition){ds(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(ho,"addEnumForActionAnchor");function $m(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(_m(t,e[s].name)||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o($m,"findPageV4");function A_(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(A_,"alignSchemaWithTemplateType");function xa(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var d,m,v,S,b,I,F,j,W,U;let s=e.definitions[r];if(!s)return;let l=Uu(s),f;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?f=a.replace(/::/g,"#"):f=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?f=`@${Pa.UIAnnotationTerms.FieldGroup}`:f=`@${Pa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(S=(v=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[f])==null?void 0:I.actions:p=(U=(W=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:W[f])==null?void 0:U.actions,p&&(l=Ea(p,l,i,"press",n)),l){for(let ee=0;ee<l.length;ee++)l[ee][1][te.SchemaTag.propertyIndex]=ee;let se={};l.forEach(([ee,le])=>se[ee]=le),e.definitions[r].properties=se}}o(xa,"addCustomActionDefinition");function Bm(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,v,S,b,I,F;let a=e.definitions[r];if(!a)return;let s=Uu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Ea(l,s,i,"press",n));let f={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,W])=>f[j]=W)}e.definitions[r].properties=f}o(Bm,"addHeaderFooterCustomActionDefinition");function Rc(e,t,n){let i=Dm(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Dm(i,[t]);if(!r){oe(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Rc,"getManifestPage");function Lc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",f="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${f}`;let m=(0,y_.join)(...p,d),v=e.find(S=>S.dataSourceUri.endsWith(m));if(v){let S=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Lc,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Rc(n,t,i),a=Dm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Lc(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function E_(e,t,n,i,r,a,s){var d,m,v,S,b,I,F,j,W,U,se,ee;let l=Uu(t),f=new Map;if(l=l.map(le=>{let Le=Wm(e,le[1],le[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return f.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(S=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Ea(le.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;le&&"facets"in le&&(l=Ea(le.facets,l,i,"template",s,r))}else{let le=(ee=(se=(U=(W=n.options)==null?void 0:W.settings)==null?void 0:U.content)==null?void 0:se.body)==null?void 0:ee.sections;le&&(l=Ea(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][te.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=f.get(le)||le,p[le]=Le}),t.properties=p}o(E_,"addCustomSectionDefinition");function P_(e,t,n){var l,f,p;let i=Uu(t),r=new Map;i=i.map(d=>{let m=Wm(e,d[1],d[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let a=(p=(f=(l=n.options)==null?void 0:l.settings)==null?void 0:f.controlConfiguration)==null?void 0:p[`@${Pa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ea(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][te.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}o(P_,"addCustomFilterFieldDefinition");function CS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:f,manifestSectionId:p,targetAnnotation:d}=e,m=(t??"").split("<")[0],v=r.createInstance(h_.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(d&&S.push(d),v){let b=a[s]=v;Ot(b,l,i.definitions[t],f,S,p),n||Wr(a,s)}}o(CS,"importActionToConfigurationObject");function MX(e,t){let{actionPropertyDefinition:n}=e,i=Jt(t.$ref||n.$ref);CS(e,i)}o(MX,"importSingleActionSettingsOfReference");function kX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=Jt(t.$ref??n.$ref);CS(e,s,!0);let l=r[a];Ia(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:f}=t;for(let p in f){let d=f[p],m=Jt(d.$ref),v=i.definitions[m],S=Jt(v.$ref??d.$ref),b={...e,actionsInConfig:l,actionKey:p};CS(b,S)}Wr(r,a)}o(kX,"importGroupActionSettingsOfReference");function Wl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=Jt(t.$ref),r=n.definitions[i];r.dataType===IS?kX(e,r):MX(e,r)}o(Wl,"importActionSettingsOfReference");var BS=class BS{addDefinition(t){C_(t)}addLineItemDefinition(t){LS(t)}};o(BS,"DataFieldStrategy");var yo=BS,HS=class HS extends yo{generateStableId(t){return Oa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}addDefinition(t){$u(t)}addLineItemDefinition(t){RS(t)}};o(HS,"DataFieldForActionStrategy");var NS=HS,GS=class GS extends yo{generateStableId(t){return Oa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ba(t.Label,n);return t.Label??t.ID??i}addDefinition(t){$u(t)}addLineItemDefinition(t){var n;S_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(GS,"DataFieldForActionGroupStrategy");var DS=GS,WS=class WS extends yo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+ZS(t)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}addDefinition(t){$u(t)}addLineItemDefinition(t){RS(t)}};o(WS,"DataFieldForIntentBasedNavigationStrategy");var _S=WS,KS=class KS extends yo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Oa(n)}generateDescription(t,n){var a,s,l,f;let i=ku(t,n);return ba(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((f=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:f.split("UI.v1.")[1])}};o(KS,"DataFieldForAnnotationStrategy");var VS=KS,XS=class XS extends yo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=gs(t.Value)+"::"),n+=t.Action,Oa(n)}generateDescription(t,n){let i=ba(t.Label,n);return Cm(t,i)}};o(XS,"DataFieldWithActionStrategy");var wS=XS,QS=class QS extends yo{generateStableId(t){return Oa("DataField::"+gs(t.Value))}generateDescription(t,n){let i=ba(t.Label,n);return uS(t,n,i)}};o(QS,"DataFieldStrategyDefault");var MS=QS,qS=class qS extends yo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=gs(t.Value)+"::",n+=ZS(t),Oa(n)}generateDescription(t,n){return ku(t,n)||t.Value.path}};o(qS,"DataFieldWithIntentBasedNavigationStrategy");var kS=qS,YS=class YS extends yo{generateStableId(t){let n="DataFieldWithNavigationPath::"+gs(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Oa(n)}generateDescription(t,n){let i=ba(t.Label,n);return uS(t,n,i)}};o(YS,"DataFieldWithNavigationPathStrategy");var jS=YS,zS=class zS extends yo{generateStableId(t){return Oa("DataFieldWithUrl::"+gs(t.Value))}generateDescription(t,n){let i=ku(t,n);return ba(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(zS,"DataFieldWithUrlStrategy");var US=zS,JS=class JS{constructor(){this.strategies=new Map,this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAction,new NS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForActionGroup,new DS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new _S),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAnnotation,new VS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithAction,new wS),this.registerStrategy(Ho.UIAnnotationTypes.DataField,new MS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new kS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithNavigationPath,new jS),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithUrl,new US)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(JS,"DataFieldStrategyContext");var $S=JS,ps=new $S;function Hm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Hm,"replaceSpecialChars");var Oa=o(function(e){return Hm(z0(e))},"prepareId");function jX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(jX,"evaluateConcat");function gs(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return jX(e);if(e&&typeof e=="string")return Hm(e.replace(/ /g,"_"))}o(gs,"getStableIdPartFromValue");var ZS=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Kr=o(function(e){let t=ps.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var ue=Z(re());var De=Z(re());var or=require("@sap-ux/vocabularies-types/vocabularies/UI"),L_=require("path"),F_=Z(Sc());var Xm="ResponsiveTableWithMultiSelect<LineItems>",Qm="ResponsiveTableWithInlineDelete<LineItems>",UX="TreeTable<LineItems>",$X="AnalyticalTable<LineItems>",BX="GridTable<LineItems>",eA=[Xm,Qm,UX,$X,BX],I_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],O_="template::",qm="template:::ObjectPageAction:::";function HX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(HX,"addCustomColumnDefinition");function GX(e,t){let n;return e==="TableColumnActionIntentBased"?n=gS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=at(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===or.UIAnnotationTypes.DataFieldForAction?n=at(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=at(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(GX,"getActionId");function tA(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=GX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let f=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+f},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=Fc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[f]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[f][De.SchemaTag.target]=m)):(e.definitions[f]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:d}],m&&(e.definitions[f][De.SchemaTag.target]=m),e.definitions[f][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(tA,"handleActionRecord");function WX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===or.UIAnnotationTypes.DataFieldForAction||t.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(WX,"getColumnActionType");function KX(e,t){let n=[];if(!(e.$Type!==or.UIAnnotationTypes.DataFieldForAction&&e.$Type!==or.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===or.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===or.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),WX(t,e,n),n}o(KX,"getActionType");function N_(e,t,n){let i=gS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Zm(r.properties[i],e.lineItemRecord),Km(e.lineItemRecord,r.properties,i)}}o(N_,"generateGenericColumn");function XX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{tA(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&tA(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{tA(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":N_(i,t,r)}}o(XX,"handleAnyAction");function Bu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Bu,"retrieveNameWithoutVocabularyFromVisualization");function Kl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:f}=Gm(e,t,n,i,r);if(n){let p=0;n.forEach(d=>{let m={lineItemPath:f,lineItemRecord:d,lineItemId:r,entityType:i},v=KX(d,r);v?v.forEach(S=>{XX(S,t,s,m,p,l,r)}):N_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(Kl,"addLineItemsType");function QX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,f)=>(l.includes(f.name)||l.push(f.name),l),[])}}o(QX,"addListReportLeadingProperties");function qX(e,t,n,i){var s,l,f,p,d,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(a){let v=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Ca(v,r)}}o(qX,"addTabkeyEnum");function Ym(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(f=>{let p=f.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,F_.xml2json)(f.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+L_.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Ca(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Ym,"addFragmentEnum");function Xl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){HX(e,a,s),QX(e,t,s),qX(e,s,n,l);let f=i&&i["sap.app"]&&i["sap.app"].id;Ym(e,r,f,"fragmentName",s),Ym(e,r,f,"fragmentName",De.DefinitionName.CustomColumn),Ym(e,r,f,"cellsFragmentName",s),Ym(e,r,f,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Xl,"addTableColumnExtensions");function D_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(D_,"removeElementsFromEnum");function zm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Sr(n==null?void 0:n.fullyQualifiedName,or.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,f=`SelectionField<${at(s.value)}>`,p=rr(s);s.type==="PropertyPath"&&(l=Ul(s,n)),i.properties[s.value]={$ref:$+f},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[f]={type:"object",description:l,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[f][De.SchemaTag.dataType]=p,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[f][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[f].$ref=`${$}SelectionFieldDateSettings`:e.definitions[f].properties={},a++})}o(zm,"addSelectionFields");function __(e,t){for(let n of t.entityProperties)e.push(n.name)}o(__,"addEntityPropertiesToEnum");function Jm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Jm,"isDraftEnabled");function V_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(V_,"isEntityDeletable");function w_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(w_,"isEntityUpdatable");function Ql(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,f])=>{let p=f.$ref.split($)[1],d=`${r}<${p}>`;a.properties[l]={$ref:`${$}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Ql,"addStandardHeaderActions");function M_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(M_,"addStandardFooterActionsOP");function ql(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});oe(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(ql,"getUIAnnotationForEntitySet");function YX(e,t,n,i){if(e===ue.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithNavigationPath:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ue.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(YX,"copyFieldProperties");function iA(e,t,n,i){let r=e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ue.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(iA,"determineFieldDefinitionName");function zX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ue.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(zX,"addKeysTagForDataField");function JX(e,t,n){if(e.$Type===Vt.UIAnnotationTypes.DataField||e.$Type===Vt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Vt.UIAnnotationTypes.DataFieldWithNavigationPath)zX(e,t,n);else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ue.SchemaTag.keys]=[{name:"Target",value:Bl(e.Target.value)}],t.definitions[n][ue.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ue.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Vt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ue.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(JX,"addKeysTagToField");function ZX(e){var t,n;return e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Vt.UIAnnotationTypes.ConnectedFieldsType}o(ZX,"isConnectedField");function e3(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Vt.UIAnnotationTypes.ConnectedFieldsType){let f=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,d=f.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let S=f.findIndex(b=>b===m);S===-1&&(S=d,d++),nA(e,t,v,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(e3,"addConnectedFields");function k_(e,t,n){if(n)return n;let i=at(t);return e.definitions[i].properties}o(k_,"getFieldsSchemaContainer");function rA(e,t){return e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(rA,"getFieldReference");function nA(e,t,n,i,r,a,s,l=!0,f={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let d={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:f,key:r,version:s,section:a,entityTypeName:p};ps.getStrategy(n.$Type).addDefinition(d)}o(nA,"addField");function t3(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(t3,"determineTargetIdOfForm");function n3(e,t,n,i,r,a){if(e.base===ue.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&nA(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];nA(t,n,l,i,s,e,r)}}o(n3,"addFieldsToFormDefinition");function i3(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ue.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ue.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ue.SchemaTag.annotationPath]=Sr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(i3,"addTagsToFormDefinition");function eh(e,t,n,i,r,a){if(!t.target)return;let s=t3(t),l=at(`${e}${ue.DefinitionName.Form}<${s}>`),f=at(`${e}${ue.DefinitionName.Fields}<${s}>`),p=at(`${e}${ue.DefinitionName.Actions}<${s}>`),d=!(t.base===ue.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ue.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${f}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ue.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${f}`}},description:"Form",additionalProperties:!1},i3(t,i,l),i.definitions[f]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[f][ue.SchemaTag.isViewNode]=!0,n3(t,e,i,s,r,d),s}o(eh,"handleForm");function oA(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(oA,"replaceAlias");function th(e,t){let n=oA(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(th,"getActionNameAndId");function j_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:j_(a.pages,t)}}o(j_,"isFirstObjectPage");function nh(e,t,n,i,r){var d,m;e.definitions[ue.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ue.DefinitionName.ObjectPageFooter}`},e.definitions[ue.DefinitionName.ObjectPageFooter].properties[ue.PropertyName.actions]={$ref:`${$}${ue.DefinitionName.FooterActions}`};let a=e.definitions[ue.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ue.SchemaTag.isViewNode]=!0;let s=oi(ue.UIVOCABULARY,t.serviceAVT),l=t.entitySet,f=t.entityType,p=s&&((m=(d=f==null?void 0:f.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`);a[ue.SchemaTag.annotationPath]=`/${v}`,i(f,e,a,p)}else f&&(a[ue.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`);n===ue.FioriElementsVersion.v2&&j_(r,t)&&!Jm(l)&&M_(e,a),delete e.definitions[ue.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ue.DefinitionName.ObjectPageFooter}<${ue.DefinitionName.ObjectPageFooterActions}>`]}o(nh,"addFooterActions");function ih(e,t,n,i,r,a=!1){var m,v;let s=ue.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ue.DefinitionName.ObjectPageHeader].properties[ue.PropertyName.actions]={$ref:`${$}${s}`};let f=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};f[ue.SchemaTag.isViewNode]=!0;let p=oi(ue.UIVOCABULARY,n.serviceAVT),d=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);d?f[ue.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`):t&&(f[ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`),i(t,e,d,f,n,r),a&&Ql(e,!0,l)}o(ih,"addHeaderActions");function rh(e,t){e.properties.header={$ref:`${$}${ue.DefinitionName.ObjectPageHeader}`},e.definitions[ue.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ue.DefinitionName.ObjectPageHeader][ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.HeaderInfo}`)}o(rh,"addCommonHeaderSchema");function U_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(U_,"determineEntitySetOfEntityType");function C_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Kr(r),d=rA(f,p),m=iA(f,p,a,d),v=k_(t,`${i}${ue.DefinitionName.Fields}<${a}>`,s.fields),S={};v[d]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},ZX(r)&&(S=e3(i,t,r,n,f)),$_(e,m,S)}o(C_,"addDataFieldDefinition");function $u(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Kr(r),d=rA(f,p),m=iA(f,p,a,d),v={};if(n&&i===ue.SectionType.Section){let S=k_(t,`${i}${ue.DefinitionName.Actions}<${a}>`,s.actions),b=S[d]={$ref:`${$}${m}`};b[ue.SchemaTag.propertyIndex]=parseInt(l)}r3(e,m,v),$_(e,m,v)}o($u,"addDataFieldForActionAndActionGroupDefinition");function r3(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},f=Kr(s),p=rA(a,f),d=iA(a,f,t,p);$u(l),n[p]=i.definitions[d]})}o(r3,"addGroupedActionsToDefinition");function $_(e,t,n={}){var f,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&Ia(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),JX(r,i,t),i.definitions[t][ue.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][ue.SchemaTag.annotationType]=r.$Type,i.definitions[t][ue.SchemaTag.isViewNode]=!0,Zm(i.definitions[t],r),YX(a,i,r,t),r.$Type===Vt.UIAnnotationTypes.DataFieldForAction&&((f=i.definitions)!=null&&f[ue.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[ue.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.ObjectPageFormActionGroup}`)}o($_,"writeDefinitionToSchema");var Er=require("@sap-ux/vocabularies-types/vocabularies/UI");var Qe=Z(re());function Ca(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Ca,"addEnumToSchema");function Nc(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let f=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(f)===-1&&r.push(f)}}Ca(r,n)}o(Nc,"addEnumForValidAnnotations");function ms(e,t,n){let i=t.definitions[n].properties[Qe.SchemaTag.annotationPath],r=[Er.UIAnnotationTerms.SelectionVariant,Er.UIAnnotationTerms.SelectionPresentationVariant];Nc(e,r,i)}o(ms,"addEnumForSingleTabVariant");function B_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Er.UIAnnotationTerms.SelectionVariant,Er.UIAnnotationTerms.SelectionPresentationVariant];Nc(n.entityType,r,i)}o(B_,"addEnumForMultiTabVariant");function H_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Ca(r,i)}o(H_,"addEnumForVariantEntitySet");function G_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Er.UIAnnotationTerms.FieldGroup];Nc(e,r,i)}o(G_,"addEnumFieldGroupAnnotationPath");function W_(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],f=a.label||a.title;return{const:l,...f&&{description:f},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Qe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${Qe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(W_,"addDefinitionForRelatedFacetKeys");function Dc(e){return e.replace("#","::")}o(Dc,"getFacetKeyInSchema");function Hu(e,t){return`${e}<${Dc(t)}>`}o(Hu,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Hu(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function oh(e,t,n){let i;return t===Qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Er.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(oh,"getCustomExtensionDefinitionName");function Gm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Qe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=oh(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let f=e?Qe.DefinitionName.ObjectPageToolBar:Qe.DefinitionName.ToolBar,p=`${f}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${f}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let d=`${Qe.DefinitionName.Actions}<${at(r)}>`;t.definitions[p].properties.actions.$ref=$+d;let m=r.startsWith(Qe.DefinitionName.LineItems)?Qe.DefinitionName.Actions:Qe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[d]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=oh(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Qe.DefinitionName.LineItems&&t.properties.footer){b=`${Qe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Qe.DefinitionName.GenericFooter}))}let I=`${Qe.DefinitionName.FooterActions}<${at(r)}>`;t.definitions[b].properties.actions.$ref=$+I,S=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=Sr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Qe.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Qe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:S,lineItemPath:l}}o(Gm,"addCommonLineItemDefinitions");function K_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(K_,"getDataTypeFromAnnotation");function _c(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=K_(e.$Type)),t}o(_c,"determineDataTypeOfTarget");function rr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=_c((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=K_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(rr,"determineDataType");function Zm(e,t){let n=rr(t);n&&(e[Qe.SchemaTag.dataType]=n)}o(Zm,"addDataTypeToDefinition");function si(e,t){return`${$}${Hu(e,t)}`}o(si,"getFacetDefinitionLink");function x_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let f=n.definitions[Hu(e,l)],p=((f==null?void 0:f.annotationPath)??"").split("/").slice(0,-1).join("/");a=!f||p===i}while(!a);return s}o(x_,"getUniqueFacetDefinitionLink");function hs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(hs,"addDefinitionRef");function ah(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Qe.UIVOCABULARY}`);t=`/${n}/@${Qe.UIVOCABULARY}${i}`}return t}o(ah,"getFacetAnnotationPath");function Gu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,f=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?f:l,t)};let p=vt(a?f:l,t,i,!0);Sa(e,p,t),fs(e,p,t),p[Qe.SchemaTag.annotationPath]=e.annotationPath,p[Qe.SchemaTag.isViewNode]=!0}o(Gu,"handleAddressContact");function aA(e,t,n){typeof e=="object"&&(e[t]=n)}o(aA,"updateSchemaProperty");function Yl(e,t,n=at("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Qe.DefinitionName.Fields4Dialog}${n}`];aA(r.properties.fields.items,"enum",i)}o(Yl,"addFieldsType");function o3(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(o3,"findFirstSchemaDefinitionKey");function Wm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let d=Jt(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,f=o3(a,i==null?void 0:i.keyProperties);return f?l=f.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Wm,"getEnumEntry");function ds(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let f=t.properties[l],p=Wm(e,f,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];aA(l,"oneOf",r)}else aA(a,"oneOf",r)}o(ds,"addDescriptiveEnumDefinition");function Fc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Fc,"getActionKey");function Km(e,t,n){var i,r,a;try{if(e.Value)t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.value,value:gs(e.Value)}];else if(e.$Type===Er.UIAnnotationTypes.DataFieldWithAction||e.$Type===Er.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Fc(e.Action,!0);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.action,value:s}],l&&(t[n][Qe.SchemaTag.target]=l)}else if(e.$Type===Er.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Fc(e.Target.value,!1);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.target,value:Bl(s)}],t[n][Qe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Er.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Er.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:f}=Fc(s,!0);t[n][Qe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Qe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],f&&(t[n][Qe.SchemaTag.target]=f)}}catch{return}}o(Km,"addKeyToDefinition");function ci(e,t){try{return ps.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Ia(e,t){e[Qe.SchemaTag.messages]||(e[Qe.SchemaTag.messages]=[]),Array.isArray(e[Qe.SchemaTag.messages])&&e[Qe.SchemaTag.messages].push({text:t})}o(Ia,"addMessageToSchema");var zl=Z(re());var X_=[{version:"1.139",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.139","UI5-1.140","UI5-1.141","UI5-1.142","UI5-1.143","UI5-1.144","UI5-1.145","UI5-1.146","UI5-1.147","UI5-1.148","UI5-1.149"]},{version:"1.136",distTag:["UI5-1.136-legacy-free","UI5-1.136","UI5-1.137","UI5-1.138"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var q_="1.124.29";var Y_={name:"@sap/ux-specification",version:q_,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.39.15","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.7","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.124.29","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.12.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.6.0",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.3","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var ys=class ys{constructor(){ys.distTagsOfSpec.length===0&&(ys.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ys.distTagsOfSpec=[]}getSpecVersion(){return q_}getDistTagsOfVersion(){let t=[],n=X_,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));ys.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:zl.LogSeverity.Warning,message:a,location:{path:zl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return oe(n,{severity:zl.LogSeverity.Info,message:i,location:{path:zl.MANIFESTPATH}}),!1}else return!0}};o(ys,"DistTagEvaluator"),ys.distTagsOfSpec=[];var Wu=ys;var pe=Z(re());var jn=Z(re());var Ci=Z(re());function z_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(z_,"getCustomPageFullName");function c3(e){let n=z_(e).split(".");return n[n.length-1]}o(c3,"getCustomPageName");function J_(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ci.ViewTypes.XML}o(J_,"getViewType");function l3(e,t){return J_(e,t).toLowerCase()}o(l3,"getViewTypeExtension");function f3(e,t,n){var p;let i=o(d=>{var m;return(m=d.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=z_(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,f]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:f}}o(f3,"getViewPath");function u3(e,t){let n=e.entitySet||c3(e),{viewPath:i,fileName:r}=f3(e,t,[n]),a=l3(e,t);return[...i,`${r}.view.${a}`].join("/")}o(u3,"getCustomPagePath");var sA=class sA{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Ci.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ci.OdataVersion.v4?s:i.entitySet,f=this.getPageConfigFile(i,l);f&&(t[`${Ci.DirName.Pages}/${s}.json`]=f)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ci.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=J_(t,this.app)===Ci.ViewTypes.XML&&!!t.config;if(t.pageType===Ci.PageTypeV4.CustomPage||t.pageType===Ci.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let f=_t(t.pageType);i.$schema=f.path}}return(i&&t.pageType===Ci.PageTypeV4.CustomPage||t.pageType===Ci.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=u3(t,this.app);n.$filePath=i}};o(sA,"AppProvider");var Ts=sA;var pt=Z(re());var Jl=Z(re());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Z_=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),eV=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function cA(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(cA,"getNewPageTemplate");function p3(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(p3,"findPageInManifest");function d3(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=cA(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:cA(e[t].pageType)}),!Array.isArray(n.pages))){let i=p3(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=cA(e[t].pageType)),lA(t,e,i)}}o(d3,"transformPageFromAssociation");function g3(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Jl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Jl.PageTypeV2.ListReport||n.pageType===Jl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(g3,"deletePage");function lA(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Jl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)d3(t,r,n);Array.isArray(n.pages)||g3(n,t,i)}}o(lA,"transformPageToNewManifestV2");var kV=Z(Sc());var ZE={};vc(ZE,{ALPAnalyticalTable:()=>zA,ALPGridTable:()=>YA,ALPResponsiveTable:()=>qA,Action:()=>tE,AnalyticalCard:()=>rf,AnalyticalCardSettings:()=>fh,AnalyticalCardSettingsv4:()=>mA,AnalyticalListPageFilterBar:()=>PA,AnalyticalTable:()=>QA,BaseCustomSection:()=>Ep,ChartSettings:()=>bE,ChartSettingsType:()=>uA,CommonCardSettings:()=>Es,CommonFilterBar:()=>ip,CommonHeaderFacetSettings:()=>Hc,CommonTableSettings:()=>Is,CommonTableSettingsForSections:()=>Qc,CreateWithFilters:()=>$A,CustomCard:()=>dA,DataLoadSettings:()=>HA,DateRange:()=>bA,DefaultDateRange:()=>SA,DefaultSpanObject:()=>pA,FRAGMENT_DEFINITION:()=>Ko,Field:()=>vA,FieldForAction:()=>RA,Fields4Dialog:()=>GA,Fields4DialogOP:()=>XE,FooterAction:()=>iE,FormAction:()=>OA,GlobalChartSettings:()=>WE,GlobalTableSettings:()=>zE,GridTable:()=>JA,HeaderActionStandard:()=>cE,HeaderSections:()=>OE,KPISettings:()=>SE,LinkListCardSettings:()=>yA,LinklistCard:()=>ep,ListCard:()=>nf,ListCardSettings:()=>gA,ListReportFilterBar:()=>xA,MultiEdit:()=>BA,ObjectPageAnalyticalTable:()=>QE,ObjectPageChart:()=>GE,ObjectPageCustomSectionFragment:()=>Pp,ObjectPageCustomSectionView:()=>xp,ObjectPageFooterAction:()=>LE,ObjectPageFooterActionStandard:()=>fE,ObjectPageGridTable:()=>qE,ObjectPageHeader:()=>AE,ObjectPageHeaderAction:()=>EE,ObjectPageHeaderActionStandard:()=>lE,ObjectPageHeaderSectionAddress:()=>IE,ObjectPageHeaderSectionChart:()=>xE,ObjectPageHeaderSectionDataPoint:()=>CE,ObjectPageHeaderSectionForm:()=>PE,ObjectPageLayout:()=>NE,ObjectPageResponsiveTable:()=>qc,ObjectPageSectionAddressV2:()=>ME,ObjectPageSectionChartV2:()=>VE,ObjectPageSectionContactV2:()=>kE,ObjectPageSectionFormV2:()=>_E,ObjectPageSectionTableV2:()=>wE,ObjectPageSectionV2:()=>DE,ObjectPageSubSectionChartV2:()=>$E,ObjectPageSubSectionContactV2:()=>BE,ObjectPageSubSectionFormV2:()=>UE,ObjectPageSubSectionTableV2:()=>HE,ObjectPageSubSectionV2:()=>jE,ObjectPageToolBarAction:()=>JE,ObjectPageTreeTable:()=>YE,QuickVariantSelection:()=>WA,QuickVariantSelectionOP:()=>KE,QuickVariantSelectionX:()=>KA,ResponsiveTable:()=>kc,SAP_UI_TABLE:()=>yh,SaveAndEditOP:()=>sE,SelectionFieldDateSettings:()=>AA,SelectionFields:()=>EA,Share:()=>rE,ShareOP:()=>oE,StackCard:()=>Zu,StackCardSettings:()=>hA,TableALP:()=>lf,TableCard:()=>of,TableCardSettings:()=>TA,TableColumn:()=>dE,TableColumnAction:()=>gE,TableColumnActionIntentBased:()=>mE,TableCustomColumn:()=>hE,ToolBar:()=>TE,ToolBarAction:()=>nE,TreeTable:()=>XA,UpAndDownNavigationOP:()=>aE,buildIntentBasedActionId:()=>uE,deleteColumnFromFragment:()=>bh,deleteType:()=>uf,exportColorPalette:()=>rV,exportCreateParametersFields:()=>Oh,exportCustomColumnsToFragment:()=>jA,exportDateSettingsField:()=>cV,exportDefaultSpan:()=>oV,exportType:()=>ff,getChartSectionControlId:()=>DV,getContactSubSectionControlId:()=>VV,getCustomColumnPath:()=>Sh,getFormSectionControlId:()=>NV,getRootCustomColumnFromFragmentJSON:()=>ap,getSectionControlId:()=>Kc,getSmartChartControlId:()=>mp,getSmartTableControlId:()=>Mc,getSubSectionControlId:()=>_V,getTableSectionControlId:()=>FV,importCreateParameters:()=>Ih,importDateSettings:()=>CA});var Zn=Z(re());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),tV=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),nV=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Pn=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Vc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),lh=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wi=o(e=>{let t=[];return t.push(lh(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),bs=o(e=>wi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),To=o((e,t,n)=>{let i=[];i.push(lh(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Pr=o((e,t,n)=>To(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),iV=o((e,t,n)=>To(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),fA=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ra=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let f=[a[0],s[s.length-1],l].join("|");return i.unshift(f),`${fA()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ch=class ch{};o(ch,"ApplicationV2"),h([jt("settings")],ch.prototype,"settings",2);var sh=ch,Xr=class Xr{};o(Xr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),P({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),P({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var vs=Xr;var Ku=Z(re());function m3(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=Ku.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Ku.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Ku.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(m3,"importColorPalette");function rV(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Ku.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(rV,"exportColorPalette");function oV(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(oV,"exportDefaultSpan");var uh=class uh{};o(uh,"ChartSettingsType"),h([y({manifest:{path:o(()=>Pn()+"/chartSettings","path")}})],uh.prototype,"showDataLabel",2);var uA=uh,Ss=class Ss{};o(Ss,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ss.prototype,"minimumSubTitleRow",2);var pA=Ss,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:oV}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var Es=Xt,Zl=class Zl{};o(Zl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"settings",2);var dA=Zl,As=class As extends Es{};o(As,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],As.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],As.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],As.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],As.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],As.prototype,"listType",2);var gA=As,Xu=class Xu{};o(Xu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"template",2);var nf=Xu,Go=class Go extends Es{};o(Go,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:m3,export:rV}})],Go.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"bEnableStableColors",2);var fh=Go,ph=class ph extends fh{};o(ph,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ph.prototype,"measureAggregate",2);var mA=ph,Qu=class Qu{};o(Qu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qu.prototype,"template",2);var rf=Qu,ef=class ef extends Es{};o(ef,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"objectStreamCardsSettings",2);var hA=ef,qu=class qu{};o(qu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qu.prototype,"template",2);var Zu=qu,tf=class tf extends Es{};o(tf,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],tf.prototype,"staticContent",2);var yA=tf,Yu=class Yu{};o(Yu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Yu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Yu.prototype,"template",2);var ep=Yu,zu=class zu extends Es{};o(zu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],zu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],zu.prototype,"enableAddToInsights",2);var TA=zu,Ju=class Ju{};o(Ju,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ju.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ju.prototype,"template",2);var of=Ju;var aV=Z(re());var h3=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),dh=class dh{};o(dh,"Field"),h([y({flex:{controlId:h3,controlType:o(()=>aV.ControlType.GroupElement,"controlType")},generate:ht})],dh.prototype,"visible",2);var vA=dh;var wc=Z(re());function CA(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(CA,"importDateSettings");function y3(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(y3,"importDateSettingsField");function cV(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(cV,"exportDateSettingsField");var af=class af{};o(af,"DateRange"),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path")}}),P({since:"1.77.0"})],af.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path"),import:CA,export:Lm}}),P({since:"1.77.0"})],af.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+wc.DATESETTINGSPATH,"path")}}),P({since:"1.77.0"})],af.prototype,"exclude",2);var bA=af,gh={controlId:Zt,controlType:o(()=>wc.ControlType.SmartFilterBar,"controlType")},tp={path:o((e,t,n)=>`${je(e)}${wc.DATESETTINGSPATH}/fields/${n}`,"path")},sV={...tp,import:y3,export:cV},mh=class mh{};o(mh,"DefaultDateRange"),h([y({manifest:tp}),P({since:"1.90.0"})],mh.prototype,"operation",2);var SA=mh,Ps=class Ps{};o(Ps,"SelectionFieldDateSettings"),h([y({manifest:sV}),P({since:"1.77.0"})],Ps.prototype,"selectedValues",2),h([y({manifest:tp}),P({since:"1.77.0"})],Ps.prototype,"exclude",2),h([y({manifest:tp}),P({since:"1.77.0"})],Ps.prototype,"customDateRangeImplementation",2),h([y({manifest:sV}),P({since:"1.77.0"})],Ps.prototype,"filter",2),h([y({manifest:tp}),P({since:"1.90.0"})],Ps.prototype,"defaultValue",2);var AA=Ps,IA=class IA{};o(IA,"SelectionFields");var EA=IA,vo=class vo{};o(vo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"})],vo.prototype,"smartVariantManagement",2),h([y({flex:gh}),P({since:"1.40.0"})],vo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],vo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.52.0"})],vo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:CA}}),P({since:"1.77.0"})],vo.prototype,"dateSettings",2),h([y({flex:gh}),P({since:"1.28.0"})],vo.prototype,"showClearOnFB",2),h([y({flex:gh}),P({since:"1.38.0"})],vo.prototype,"showFilterConfiguration",2),h([y({flex:gh}),P({since:"1.28.0"})],vo.prototype,"showRestoreOnFB",2);var ip=vo,np=class np extends ip{};o(np,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],np.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],np.prototype,"filterDefaultsFromSelectionVariant",2);var PA=np,hh=class hh extends ip{};o(hh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),P({since:"1.86.0"})],hh.prototype,"annotationPath",2);var xA=hh;var LA=Z(re());var T3=o((e,t,n,i,r)=>{if(i()===LA.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Zt(e,t)},"getFormActionButtonId"),Wo={controlId:T3,controlType:o(()=>LA.ControlType.Button,"controlType")},xs=class xs{};o(xs,"FormAction"),h([y({flex:Wo,generate:ht})],xs.prototype,"visible",2),h([y({flex:Wo})],xs.prototype,"tooltip",2),h([y({flex:Wo})],xs.prototype,"icon",2),h([y({flex:Wo})],xs.prototype,"activeIcon",2),h([y({flex:Wo})],xs.prototype,"type",2);var OA=xs,Cs=class Cs{};o(Cs,"FieldForAction"),h([y({flex:Wo,generate:ht})],Cs.prototype,"visible",2),h([y({flex:Wo})],Cs.prototype,"tooltip",2),h([y({flex:Wo})],Cs.prototype,"icon",2),h([y({flex:Wo})],Cs.prototype,"activeIcon",2),h([y({flex:Wo}),P({since:"1.73.0"})],Cs.prototype,"type",2);var RA=Cs;var St=Z(re()),bo=Z(Sc());var _A=require("path"),w3=Z(re()),SV=Z(bV()),AV=require("fs");var M3=(0,_A.join)(__dirname,"templates");var k3=o((e,t)=>{let n=(0,AV.readFileSync)(e,"utf8");return(0,SV.render)(n,t)},"renderTemplate");var VA=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return k3((0,_A.join)(M3,t+".xml"),n)},"getSingleColumnContent"),wA=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=VA(i,t);n=n+`
289
289
  `+r}return n+`
290
290
  </core:FragmentDefinition>`},"getColumnFragmentContent"),MA=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
291
291
  <Text text="Placeholder"/>`}),t+`
292
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Th=require("path");var Ko="core:FragmentDefinition",yh="sap.ui.table",kA=new Map([[St.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[St.ViewTemplateType.TreeTableColumnsExtension,{namespace:yh,name:"Column"}],[St.ViewTemplateType.GridTableColumnsExtension,{namespace:yh,name:"Column"}],[St.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:yh,name:"AnalyticalColumn"}]]),j3=new Map([[St.v2.FE_TEMPLATE_V2_LIST_REPORT,St.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[St.v2.FE_TEMPLATE_V2_ALP,St.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[St.v2.FE_TEMPLATE_V2_OBJECT_PAGE,St.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),PV={type:"element",name:"Text",attributes:{text:"Placeholder"}},U3=JSON.stringify(PV);function $3(e,t){var i;let n=t?(i=e==null?void 0:e[Ko])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o($3,"getFragmentNamespaces");function EV(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(EV,"getTagName");function vh(e,t,n=e){let i=$3(n,!!(t||n!==e));if(t){let r=kA.get(t);return EV(r,i.get(r.namespace))}else{let r=kA.keys();for(let a of r){let s=kA.get(a),l=i?EV(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(vh,"getTagNameFromFragmentJSON");function ap(e,t=e){let n=vh(e,void 0,t);return e[n]}o(ap,"getRootCustomColumnFromFragmentJSON");function B3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(B3,"addP13nData");function xV(e,t){var l,f,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===a.columnKey);return s<0?!1:(n=!0,r=B3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(f=t[s])==null?void 0:f.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(xV,"handleFragmentColumn");function H3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+St.FRAGMENTNAMEPART+a;for(let f of t){let p=f.dataSourceUri.split(Th.sep);if(p[p.length-1]===l){let d=JSON.parse((0,bo.xml2json)(f.fileContent,{compact:!0}));try{let m=vh(d[Ko]);m&&(delete d[Ko][m],f.fileContent=(0,bo.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${f.dataSourceUri}, please check content`)}break}}}o(H3,"deleteColumnsFromFragment");function CV(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===U3&&(e.splice(n,1),t-=1,t===0));n++);}o(CV,"deleteNumberOfCells");function G3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+St.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,bo.xml2json)(s.fileContent)),f=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");f&&CV(l.elements[0].elements,f.length),s.fileContent=(0,bo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(G3,"deleteCellsFromFragment");function bh(e,t,n,i){if(i){H3(e,i,t,n);let r=t.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&G3(a,i,n)}}o(bh,"deleteColumnFromFragment");function W3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(PV)}o(W3,"addNewColumnsInFragment");function K3(e,t){let n=JSON.parse((0,bo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)W3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;CV(a,r)}e.fileContent=(0,bo.json2xml)(JSON.stringify(n),{spaces:4})}}o(K3,"updateNonEmptyCellsFragment");function X3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Th.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=St.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=MA(n):K3(r,n);break}}return i}o(X3,"updateCellsFragment");function Q3(e,t,n,i,r){var d;let a,s,l=t.manifest,f=Kn(l,e),p=f.type?f.type.toLowerCase():"xml";f.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:St.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=St.ChangeIndicator.Updated,f.fragmentName=m.fragmentName,f.className=m.className,a=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,Th.sep))+St.FRAGMENTNAMEPART+p}if(e.indexOf(St.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=St.ChangeIndicator.Updated;let m=e.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),S=n.reduce((b,I)=>I.cellsFragmentName?I:b);S&&S.cellsFragmentName?(v.fragmentName=s=S.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):eV(l,m)}return{manifestSection:f,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(Q3,"exportCustomColumnsToManifest");function q3(e,t,n,i,r){let a=VA(e,t);if(a){let s=JSON.parse((0,bo.xml2json)(a,{compact:!0})),l=ap(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let f=[n];f.splice(r,0,l),n=f}else n=[l]}return n}o(q3,"insertNewColumnInFragment");function Y3(e,t){let n=[];for(let i=0;i<e.length;i++)xV(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(Y3,"processCustomColumnInArray");function z3(e,t,n){if(e){if(Array.isArray(e))Y3(e,t);else if(!xV(e,t)){let r=vh(n[Ko]);r&&(delete n[Ko][r],e=void 0)}}return e}o(z3,"maintainExistingColumnInFragment");function J3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=q3(a,i,n,r,s)}return n}o(J3,"insertNewColumnsInFragment");function Z3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=St.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=wA(i,r);else{let f=JSON.parse((0,bo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(f);l=ap(f[Ko]),l=z3(l,i,f),l=J3(i,n,l,r,f);let d=vh(f,r);f[Ko][d]=l;let m=JSON.stringify(f);m!==p&&(s.fileContent=(0,bo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(Z3,"updateColumnsInFragment");function jA(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:f,cellsFragmentName:p,fragmentType:d}=Q3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,S=v.substr(i.length+1),b=S.split(".");v=b[b.length-1]+St.FRAGMENTNAMEPART+d;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,W=j?j+St.FRAGMENTNAMEPART+d:null,U=Z3(s,v,S,m,r),se=!1;if(p?se=X3(s,W,n):se=!0,!U){let ee={fileContent:wA(m,r),dataSourceUri:f,changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(ee)}if(!se){let ee={fileContent:MA(n),dataSourceUri:f.replace(v,W),changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(ee)}}o(jA,"exportCustomColumnsToFragment");var Sh=o((e,t,n,i)=>{var f,p,d,m;if(!e)return;let r=j3.get((f=e.component)==null?void 0:f.name);if(!i){let v=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var fi=Z(re());var UA="/multiEdit",Mc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+fi.PropertyName.table:Zt(e,t),"getSmartTableControlId");function Ih(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(Ih,"importCreateParameters");function Oh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Oh,"exportCreateParametersFields");function e7(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let f in s)l.indexOf(f)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[f]=s[f],delete s[f]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(e7,"exportVariants");function t7(e,t){t.variants&&(Object.keys(t.variants).length>0?e7(e,t):delete e.variants)}o(t7,"exportQuickVariantSelectionX");function n7(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(n7,"importMultiEdit");var Ah=class Ah{};o(Ah,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Ah.prototype,"strategy",2);var $A=Ah,sf=class sf{};o(sf,"MultiEdit"),h([y({manifest:{path:o(t=>Qr(t)+UA,"path")}})],sf.prototype,"enabled",2),h([y({manifest:{path:o(t=>Qr(t)+UA,"path")}})],sf.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Qr(t)+UA,"path"),export:Lm}})],sf.prototype,"ignoredFields",2);var BA=sf;function lp(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(lp,"importType");function ff(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(ff,"exportType");function uf(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(uf,"deleteType");var Eh=class Eh{};o(Eh,"DataLoadSettings"),h([y({manifest:{path:o(t=>nV(t),"path")}}),P({since:"1.75.2"})],Eh.prototype,"loadDataOnAppLaunch",2);var HA=Eh,Ph=class Ph{};o(Ph,"Fields4Dialog"),h([y({manifest:{path:o(t=>Qr(t)+"/createWithParameterDialog","path"),export:Oh}}),P({since:"1.77.0"})],Ph.prototype,"fields",2);var GA=Ph,sp=class sp{};o(sp,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],sp.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],sp.prototype,"variants",2);var WA=sp,cf=class cf{};o(cf,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path")}}),P({since:"1.48.0"})],cf.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path")}}),P({since:"1.48.0"})],cf.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path"),export:t7}}),P({since:"1.48.0"})],cf.prototype,"variants",2);var KA=cf,li=class li{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(li,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>Qr(t),"path"),import:Ih}}),P({since:"1.77.0"})],li.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Zt,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.38.0"})],li.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.26.0"})],li.prototype,"useExportToExcel",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.50.0"})],li.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],li.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],li.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.38.0"})],li.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.120.0"})],li.prototype,"copy",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.70.0"})],li.prototype,"selectAll",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.70.0"})],li.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.75.2"})],li.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.42.0"})],li.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],li.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],li.prototype,"toolBar",2);var Cs=li,Xo=class Xo extends Cs{};o(Xo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],Xo.prototype,"createWithFilters",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")},generate:Jn}),P({since:"1.52.0"})],Xo.prototype,"popinLayout",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}})],Xo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.77.0"})],Xo.prototype,"inlineDelete",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Xo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>Qr(t),"path"),import:n7}}),P({since:"1.98.0"})],Xo.prototype,"multiEdit",2);var kc=Xo,xh=class xh extends Cs{};o(xh,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xh.prototype,"type",2);var XA=xh,So=class So extends Cs{};o(So,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],So.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],So.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.78.0"})],So.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],So.prototype,"createWithFilters",2);var QA=So,Qo=class Qo extends Cs{};o(Qo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Qo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],Qo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.78.0"})],Qo.prototype,"allFiltersAsInParameters",2);var lf=Qo,Ch=class Ch extends lf{};o(Ch,"ALPResponsiveTable"),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Ch.prototype,"growingThreshold",2);var qA=Ch,ZA=class ZA extends lf{};o(ZA,"ALPGridTable");var YA=ZA,eE=class eE extends lf{};o(eE,"ALPAnalyticalTable");var zA=eE,cp=class cp extends Cs{};o(cp,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cp.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],cp.prototype,"createWithFilters",2);var JA=cp;var fp=Z(re());var i7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${er(i).replace(":2f","::")}`},"getActionButtonId"),r7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}template::${i}`},"getStandardActionButtonId"),o7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}${qm}${i}`},"getStandardFooterActionOPButtonId"),uE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=nr(n);return`${e}action::${i}::${er(r)}`},"buildIntentBasedActionId"),a7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${er(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Is={controlId:i7,controlType:o(()=>fp.ControlType.Button,"controlType")},up={controlId:r7,controlType:o(()=>fp.ControlType.Button,"controlType")},IV={controlId:o7,controlType:o(()=>fp.ControlType.Button,"controlType")},Rh={controlId:a7,controlType:o(()=>fp.ControlType.Button,"controlType")},jc=class jc{};o(jc,"Action"),h([y({flex:Is})],jc.prototype,"tooltip",2),h([y({flex:Is})],jc.prototype,"icon",2),h([y({flex:Is})],jc.prototype,"activeIcon",2),h([y({flex:Is})],jc.prototype,"type",2);var tE=jc,Uc=class Uc{};o(Uc,"ToolBarAction"),h([y({flex:Is})],Uc.prototype,"tooltip",2),h([y({flex:Is})],Uc.prototype,"icon",2),h([y({flex:Is})],Uc.prototype,"activeIcon",2),h([y({flex:Is})],Uc.prototype,"type",2);var nE=Uc,$c=class $c{};o($c,"FooterAction"),h([y({flex:Rh})],$c.prototype,"tooltip",2),h([y({flex:Rh})],$c.prototype,"icon",2),h([y({flex:Rh})],$c.prototype,"activeIcon",2),h([y({flex:Rh})],$c.prototype,"type",2);var iE=$c,Lh=class Lh{};o(Lh,"Share"),h([y({flex:up})],Lh.prototype,"visible",2);var rE=Lh,Fh=class Fh{};o(Fh,"ShareOP"),h([y({flex:up})],Fh.prototype,"visible",2);var oE=Fh,Nh=class Nh{};o(Nh,"UpAndDownNavigationOP"),h([y({flex:up})],Nh.prototype,"visible",2);var aE=Nh,Dh=class Dh{};o(Dh,"SaveAndEditOP"),h([y({flex:IV,generate:ht})],Dh.prototype,"visible",2);var sE=Dh,_h=class _h{};o(_h,"HeaderActionStandard"),h([y({flex:up})],_h.prototype,"visible",2);var cE=_h,Vh=class Vh{};o(Vh,"ObjectPageHeaderActionStandard"),h([y({flex:up})],Vh.prototype,"visible",2);var lE=Vh,wh=class wh{};o(wh,"ObjectPageFooterActionStandard"),h([y({flex:IV})],wh.prototype,"visible",2);var fE=wh;var gp=Z(re());var s7=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=nr(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),c7=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=nr(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),l7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),pE={controlId:s7,controlType:o(()=>gp.ControlType.TableColumn,"controlType")},pp={controlId:l7,controlType:o(()=>gp.ControlType.Button,"controlType")},OV={...pE,controlId:c7},Mh={...pp,controlId:uE},dp=class dp{};o(dp,"TableColumn"),h([y({flex:{controlId:bS,controlType:o(()=>gp.ControlType.TableColumn,"controlType")}})],dp.prototype,"width",2),h([y({flex:{controlId:bS,controlType:o(()=>gp.ControlType.TableColumn,"controlType")},generate:Jn})],dp.prototype,"hAlign",2);var dE=dp,La=class La{};o(La,"TableColumnAction"),h([y({flex:pE})],La.prototype,"width",2),h([y({flex:pE,generate:Jn})],La.prototype,"hAlign",2),h([y({flex:pp})],La.prototype,"tooltip",2),h([y({flex:pp})],La.prototype,"icon",2),h([y({flex:pp})],La.prototype,"activeIcon",2),h([y({flex:pp})],La.prototype,"type",2);var gE=La,Fa=class Fa{};o(Fa,"TableColumnActionIntentBased"),h([y({flex:OV})],Fa.prototype,"width",2),h([y({flex:OV,generate:Jn})],Fa.prototype,"hAlign",2),h([y({flex:Mh})],Fa.prototype,"tooltip",2),h([y({flex:Mh})],Fa.prototype,"icon",2),h([y({flex:Mh})],Fa.prototype,"activeIcon",2),h([y({flex:Mh})],Fa.prototype,"type",2);var mE=Fa,yE=class yE{};o(yE,"TableCustomColumn");var hE=yE;var vE=class vE{};o(vE,"ToolBar");var TE=vE;var Bc=Z(re());var mp=o(e=>e+Bc.PropertyName.chart,"getSmartChartControlId"),Os=class Os{};o(Os,"ChartSettings"),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Os.prototype,"showLegendButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Os.prototype,"showDownloadButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Os.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Os.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>tV(t),"path")}}),P({since:"1.81.0"})],Os.prototype,"showDataLabel",2);var bE=Os;var Na=class Na{};o(Na,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"groupId",2);var SE=Na;var RV=Z(re());var f7=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Zt(e,n)},"getAvatarControlId"),Rs=class Rs{};o(Rs,"ObjectPageHeader"),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.46.0"})],Rs.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.46.0"})],Rs.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"})],Rs.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Rs.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:f7,controlType:o(()=>RV.ControlType.Avatar,"controlType")},generate:ht})],Rs.prototype,"displayShape",2);var AE=Rs;var kh=Z(re());var u7=o((e,t,n,i)=>{if(i()===kh.ControlType.Button||i()===kh.ControlType.HeaderAction){let r=n[2];return`${e}action::${er(r)}`}return Zt(e,t)},"getActionButtonId"),hp={controlId:u7,controlType:o(()=>kh.ControlType.HeaderAction,"controlType")},Ls=class Ls{};o(Ls,"ObjectPageHeaderAction"),h([y({flex:hp,generate:ht})],Ls.prototype,"visible",2),h([y({flex:hp})],Ls.prototype,"tooltip",2),h([y({flex:hp})],Ls.prototype,"icon",2),h([y({flex:hp})],Ls.prototype,"activeIcon",2),h([y({flex:hp})],Ls.prototype,"type",2);var EE=Ls;var yp=Z(re());var Gh="header::headerEditable::",p7=o((e,t,n,i,r)=>`${e}${Gh}${r}`,"getDataPointHeaderSectionId"),d7=o((e,t,n,i,r)=>`${e}${Gh}${r}::ContactAddress`,"getAddressHeaderSectionId"),g7=o((e,t,n,i,r)=>`${e}${Gh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),m7=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(yp.FACETTITLEPREFIX)?r.split(yp.FACETTITLEPREFIX)[1]:a;return`${e}${Gh}${s}::Form`},"getFormHeaderSectionId"),Tp={controlType:o(()=>yp.ControlType.ObjectPageHeaderSection,"controlType")},jh=class jh{};o(jh,"CommonHeaderFacetSettings"),h([y({flex:{...Tp,controlId:o((()=>crypto.randomUUID()),"controlId")},generate:ht})],jh.prototype,"visible",2);var Hc=jh,Uh=class Uh extends Hc{};o(Uh,"ObjectPageHeaderSectionForm"),h([y({flex:{...Tp,controlId:m7}})],Uh.prototype,"visible",2);var PE=Uh,$h=class $h extends Hc{};o($h,"ObjectPageHeaderSectionChart"),h([y({flex:{...Tp,controlId:g7}})],$h.prototype,"visible",2);var xE=$h,Bh=class Bh extends Hc{};o(Bh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Tp,controlId:p7}})],Bh.prototype,"visible",2);var CE=Bh,Hh=class Hh extends Hc{};o(Hh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Tp,controlId:d7}})],Hh.prototype,"visible",2);var IE=Hh,RE=class RE{};o(RE,"HeaderSections");var OE=RE;var FE=Z(re());var h7=o((e,t,n,i)=>{if(i()===FE.ControlType.Button){let{actionId:r}=nr(n);return`${e}action::${er(r)}::Determining`}return Zt(e,t)},"getFooterActionButtonId"),vp={controlId:h7,controlType:o(()=>FE.ControlType.Button,"controlType")},Fs=class Fs{};o(Fs,"ObjectPageFooterAction"),h([y({flex:vp,generate:ht})],Fs.prototype,"visible",2),h([y({flex:vp})],Fs.prototype,"tooltip",2),h([y({flex:vp})],Fs.prototype,"icon",2),h([y({flex:vp})],Fs.prototype,"activeIcon",2),h([y({flex:vp})],Fs.prototype,"type",2);var LE=Fs;var bp=Z(re());var Wh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Zt(e,n)},"getControlId"),Gc=class Gc{};o(Gc,"ObjectPageLayout"),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")},generate:ht})],Gc.prototype,"showHeaderContent",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}})],Gc.prototype,"showAnchorBar",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}})],Gc.prototype,"useIconTabBar",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}}),P({since:"1.34.0"})],Gc.prototype,"alwaysShowContentHeader",2);var NE=Gc;var LV=Z(re());var Wc=class Wc{};o(Wc,"BaseCustomSection"),h([y({manifest:{path:Ra,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),P({since:"1.52.0"})],Wc.prototype,"relatedFacet",2),h([y({manifest:{path:Ra,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),P({since:"1.52.0"})],Wc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Ra(t,{},i,LV.ManifestSection.generic),"path")}}),P({since:"1.52.0"})],Wc.prototype,"title",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Wc.prototype,"className",2);var Ep=Wc,Sp=class Sp extends Ep{};o(Sp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Sp.prototype,"fragmentName",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Sp.prototype,"type",2);var Pp=Sp,Ap=class Ap extends Ep{};o(Ap,"ObjectPageCustomSectionView"),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Ap.prototype,"viewName",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Ap.prototype,"type",2);var xp=Ap;var ar=Z(re());var FV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),ar.DefinitionName.Table];return Zt(e,s)},"getTableSectionControlId"),NV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return Zt(e,s)},"getFormSectionControlId"),DV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return Zt(e,s)},"getChartSectionControlId"),Kc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return Zt(e,s)},"getSectionControlId"),_V=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return Zt(e,s)},"getSubSectionControlId"),VV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return Zt(e,s)},"getContactSubSectionControlId"),Kh=class Kh{};o(Kh,"ObjectPageSectionV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Kh.prototype,"visible",2);var DE=Kh,Xh=class Xh{};o(Xh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Xh.prototype,"visible",2);var _E=Xh,Qh=class Qh{};o(Qh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Qh.prototype,"visible",2);var VE=Qh,qh=class qh{};o(qh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],qh.prototype,"visible",2);var wE=qh,Yh=class Yh{};o(Yh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Yh.prototype,"visible",2);var ME=Yh,zh=class zh{};o(zh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],zh.prototype,"visible",2);var kE=zh,Jh=class Jh{};o(Jh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:_V,controlType:o(()=>ar.ControlType.SubSection,"controlType")},generate:ht})],Jh.prototype,"visible",2);var jE=Jh,Zh=class Zh{};o(Zh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:NV,controlType:o(()=>ar.ControlType.Group,"controlType")},generate:ht})],Zh.prototype,"visible",2);var UE=Zh,ey=class ey{};o(ey,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:DV,controlType:o(()=>ar.ControlType.SmartChart,"controlType")},generate:ht})],ey.prototype,"visible",2);var $E=ey,ty=class ty{};o(ty,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:VV,controlType:o(()=>ar.ControlType.SubSection,"controlType")},generate:ht})],ty.prototype,"visible",2);var BE=ty,ny=class ny{};o(ny,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:FV,controlType:o(()=>ar.ControlType.SmartTable,"controlType")},generate:ht})],ny.prototype,"visible",2);var HE=ny;var iy=class iy{};o(iy,"ObjectPageChart"),h([y({manifest:{path:iV}}),P({since:"1.78.0"})],iy.prototype,"variantManagement",2);var GE=iy,ry=class ry{};o(ry,"GlobalChartSettings"),h([y({manifest:{path:o(t=>wi(t)+"/chartSettings","path")}}),P({since:"1.78.0"})],ry.prototype,"variantManagement",2);var WE=ry;var xr=Z(re());var Xc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=xr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),Zt(e,a)},"getSmartTableControlId"),Cp=class Cp{};o(Cp,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>To(t,n,i)+xr.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],Cp.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>To(t,n,i)+xr.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],Cp.prototype,"variants",2);var KE=Cp,oy=class oy{};o(oy,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Pr(t,n,i)+"/createWithParameterDialog","path"),export:Oh}}),P({since:"1.77.0"})],oy.prototype,"fields",2);var XE=oy,ui=class ui{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ui,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Pr,import:Ih}}),P({since:"1.77.0"})],ui.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.28.0"})],ui.prototype,"editable",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ui.prototype,"showPasteButton",2),h([y({manifest:{path:Pr}}),P({since:"1.54.0"})],ui.prototype,"multiSelect",2),h([y({manifest:{path:Pr}}),P({since:"1.70.0"})],ui.prototype,"selectAll",2),h([y({manifest:{path:Pr}}),P({since:"1.70.0"})],ui.prototype,"selectionLimit",2),h([y({manifest:{path:To}}),P({since:"1.63.0"})],ui.prototype,"quickVariantSelection",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.26.0"})],ui.prototype,"useExportToExcel",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.50.0"})],ui.prototype,"exportType",2),h([y({manifest:{path:To}}),P({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ui.prototype,"createMode",2),h([y({manifest:{path:To}}),P({since:"1.61.0"})],ui.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Pr}}),P({since:"1.78.0"})],ui.prototype,"variantManagement",2),h([y({manifest:{path:Pr}}),P({since:"1.120.0"})],ui.prototype,"copy",2),h([jt("toolBar")],ui.prototype,"toolBar",2);var Qc=ui,Ns=class Ns extends Qc{};o(Ns,"ObjectPageResponsiveTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ns.prototype,"type",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")}})],Ns.prototype,"includeItemInSelection",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")},generate:ht}),P({since:"1.52.0"})],Ns.prototype,"popinLayout",2),h([y({manifest:{path:Pr}}),P({since:"1.77.0"})],Ns.prototype,"inlineDelete",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Ns.prototype,"growingThreshold",2);var qc=Ns,Ip=class Ip extends Qc{};o(Ip,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ip.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Ip.prototype,"condensedTableLayout",2);var QE=Ip,Op=class Op extends Qc{};o(Op,"ObjectPageGridTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Op.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Op.prototype,"condensedTableLayout",2);var qE=Op,Rp=class Rp extends Qc{};o(Rp,"ObjectPageTreeTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Rp.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Rp.prototype,"condensedTableLayout",2);var YE=Rp,qo=class qo{};o(qo,"GlobalTableSettings"),h([y({manifest:{path:vs}}),P({since:"1.70.0"})],qo.prototype,"selectAll",2),h([y({manifest:{path:vs}}),P({since:"1.78.0"})],qo.prototype,"variantManagement",2),h([y({manifest:{path:vs}}),P({since:"1.120.0"})],qo.prototype,"copy",2),h([y({manifest:{path:vs}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qo.prototype,"type",2),h([y({manifest:{path:vs}}),P({since:"1.54.0"})],qo.prototype,"multiSelect",2),h([y({manifest:{path:vs}}),P({since:"1.67.0"})],qo.prototype,"condensedTableLayout",2),h([y({manifest:{path:vs}}),P({since:"1.77.0"})],qo.prototype,"inlineDelete",2);var zE=qo;var wV=Z(re());var y7=o((e,t,n,i,r)=>{let{actionId:a}=nr(n),s=zn(n[1],r);return`${e}${s}::action::${er(a).replace(":2f","::")}`},"getActionButtonId"),Lp={controlId:y7,controlType:o(()=>wV.ControlType.Button,"controlType")},Ds=class Ds{};o(Ds,"ObjectPageToolBarAction"),h([y({flex:Lp,generate:ht})],Ds.prototype,"visible",2),h([y({flex:Lp})],Ds.prototype,"tooltip",2),h([y({flex:Lp})],Ds.prototype,"icon",2),h([y({flex:Lp})],Ds.prototype,"activeIcon",2),h([y({flex:Lp})],Ds.prototype,"type",2);var JE=Ds;var Mi=Z(re());function eP(e,t,n,i){if(t.controlType===Mi.ControlType.TableColumn||t.controlType===Mi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Mi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Mi.VOCWITHCOLONS),f=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(f!=null&&f.startsWith("DataField")?f=f==null?void 0:f.replace("/",":2f"):f=f==null?void 0:f.replace("/","_"),f!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(eP,"addFlexChangeToConfigTableColumn");function ay(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Mi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(ay,"addFlexChangeToConfigTable");function sy(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,d,m,v,S;let s=Ar(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(d=s.content)!=null&&d.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},f;if(s.controlType===Mi.ControlType.TableColumn)f=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Mi.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Mi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Mi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;f=(S=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:S.properties[l.propertyId]}f&&eP(t.table,l,n,i)})}o(sy,"importFlexChangesOfColumn");function _s(e){return e.replace("/","::")}o(_s,"convertActionKey");function tP(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(tP,"convertSelector");function T7(e,t,n,i){var a,s,l,f;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((f=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:f.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(T7,"addSmartFilterBarFlex");function v7(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=er((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let f=a.split(":::"),p=f.find(v=>v.startsWith("sSemanticObject")),d=f.find(v=>v.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,S=`${f[0]}:::${p}:::${d}`;i.set(v,r),i.set(r,S)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(v7,"filterActions");function b7(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(b7,"addColumnActionConfigPart");function S7(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(S7,"getActionId");function A7(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var f,p;let l=v7(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(f=d.split("<")[1])==null?void 0:f.split(">")[0];s.name==="TableColumnAction"&&b7(s,e,m);let v=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(A7,"addActionFlex");function E7(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[pt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[pt.PropertyName.chart],t):e[pt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(E7,"addSmartChartFlex");function cy(e,t,n,i){var r,a;try{let s=Ar(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(pt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(pt.PageTypeV2.AnalyticalListPage))switch(s.controlId=tP(s.controlId),s.controlType){case pt.ControlType.SmartFilterBar:{T7(e,l,s,n);break}case pt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case pt.ControlType.Button:{let f=S7(s);f&&A7(e,l,s,n,f);break}case pt.ControlType.SmartChart:{E7(e,l,s,n);break}default:break}}catch(s){oe(i,{severity:pt.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(cy,"addFlex");function P7(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(P7,"adjustQuickVariantSelectionX");function kn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let f in n.properties){let p=Mn(e,f);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,a);s=Kn(t,d),Gl(p,s,f,e),jm(l,s,d,r)}P7(f,e)}}o(kn,"transferSettingsOfObject");function ly(e,t){var r,a,s,l,f,p,d,m,v;let n=e[pt.ManifestSection.generic].pages[t],i=pt.v2.TableTypeV2.ResponsiveTable;return(r=e[pt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[pt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[pt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.tableSettings)==null?void 0:d.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=pt.v2.TableTypeV2.AnalyticalTable),i}o(ly,"determineTableType");function MV(e,t,n,i,r,a,s){var l,f;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,d=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(f=e._attributes)==null?void 0:f.id}:{},...m?{text:m}:{},...d,...d.columnKey?{columnKey:d.columnKey}:{},...d.columnIndex?{columnIndex:Number(d.columnIndex)}:{},...d.leadingProperty?{leadingProperty:d.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(MV,"evaluateFragmentColumn");function x7(e,t,n,i){let r;if(e===pt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,f]=a.split("|");s===pt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&f===i&&(r=t[a].fragmentName)}return r}o(x7,"determineCellsFragmentName");function C7(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,kV.xml2json)(e[0].fileContent,{compact:!0}))[Ko];try{let d=ap(p);if(d)if((l=t[pt.PropertyName.table])!=null&&l.columns||(t[pt.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)MV(m,n,i,r,t,a,s);else MV(d,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(C7,"analyzeFilteredFragments");function I7(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[f,p]=l,d=l[2];if(f&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let S=x7(f,e,p,d),b=v.split(".");v=b[b.length-1]+pt.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{C7(I,n,e,s,d,f,S)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{sy(i,n,F.id,F,r)})}}}o(I7,"processViewExtensions");function pf(e,t,n,i,r,a="LineItems"){var s,l,f;if(t.fragments&&(f=(l=(s=t.manifest[pt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&f["sap.ui.viewExtensions"]){let p=pt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),d=t.manifest[pt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!d)return;let m=r&&r.target?r.target:n.entitySet;I7(d,m,e,t,a)}}o(pf,"addFragments");function fy(e,t,n){if(e.header={actions:{}},n[pt.DefinitionName.HeaderActionsStandard]){let i=n[pt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(pt.PageTypeV2.ListReport,r,{})}}o(fy,"importHeaderActions");var Yo=Z(re());var Fp="sap.suite.ui.generic.template.ListReport";var jV="sap.suite.ui.generic.template.ListReport.view.ListReport";var Yc=Z(re());var UV=Z(re());function Vs(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(Vs,"getManifestPathToPageSettings");function Ao(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Ao,"getManifestPropertyByPath");function Da(e){return e!==null&&typeof e=="object"}o(Da,"isDefinition");function uy(e,t,n,i,r,a,s){let l=n[UV.SchemaTag.conversionExit],f=l==null?void 0:l.name,p=t?t(f):void 0;if(!p)return i;let d=l.params;return e?p.appToConfig(i,d,r??[],n,s):p.configToApp(i,d,r??[],n,a)}o(uy,"executeConversionExit");function ws(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&oe(n,{severity:Yc.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(ws,"hasPropertyTypeError");var $V=Symbol("Property is suppressed without explanation");function O7(e,t,n,i){delete t.element.$ref,n===void 0||e===$V?t.element[Yc.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[Yc.SchemaTag.messages]=[{text:e,deletable:!0,type:Yc.PropertyMessageType.Warning}]),t.manifestPath=i}o(O7,"handleDisallowedProperty");function BV(e,t,n,i,r){return{manifest:{},processingRuleAdapter:o(function(a,s,l){let{manifestPath:f,disallowedReason:p}=t(a.element,s,l);if(p===$V){delete a.element;return}let{value:d,parent:m}=Ao(l.manifest,f,e);if(p){O7(p,a,d,f);return}if((r?ws(m,e,l.logger,r):!1)&&(r==="object"||typeof d=="object")){delete a.element;return}n&&n(a.element,s,l,d),a.manifestPath=f,i&&(a.referenceAdaptation=i(s,l))},"processingRuleAdapter")}}o(BV,"getSyncRuleForManifestProperty");var py={manifest:{},processingRuleAdapter(e,t){e.manifestPath=Vs(t.pageInfo.pagePath)}};var Ut=Z(re());function zc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(va((r=s.component)==null?void 0:r.name)===Ut.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=zc(s.pages,t,n),i))return n.unshift(a),i}}o(zc,"findObjectPageV2");function df(e,t){var n;for(let i in e){let r=e[i];if(va((n=r.component)==null?void 0:n.name)===Ut.PageTypeV2.ListReport)return t.push(i),r}}o(df,"findListReportPageV2");function gf(e){if(!e.manifest[Ut.ManifestSection.generic]){oe(e.logger,{severity:Ut.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}let t=e.manifest[Ut.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:Ut.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}return t}o(gf,"getV2Pages");function mf(e,t,n){var i;if(!e){oe(t,{severity:Ut.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:Ut.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}}o(mf,"checkV2Page");function hf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),va((i=a.component)==null?void 0:i.name)===Ut.PageTypeV2.AnalyticalListPage)return a}oe(n,{severity:Ut.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}o(hf,"findAnalyticalListPage");function nP(e,t){let n=e.split("|");return Ut.v2.SectionPosition[n[0]]&&n[1]===t}o(nP,"isAssociatedCustomSection");function HV(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${Ut.v2.SAPUI5_VIEW_EXTENSION}/${Ut.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)nP(r,t)&&(i[r]=n[r]);return i}o(HV,"findCustomSectionExtensions");function R7(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(R7,"removeEmptySettingsOfFooter");function L7(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(L7,"removeEmptySettingsOfFilterBar");function F7(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(F7,"removeEmptySettingsOfToolBar");function dy(e){F7(e),L7(e),R7(e)}o(dy,"removeEmptySettings");var qt=Z(re());var WV=Z(re());var iP={};vc(iP,{ACTION_GROUPS_ARENT_SUPPORTED:()=>SQ,ANNOERR:()=>z7,ANNOTATIONFILE:()=>J7,COMPONENTNOTDEFINED:()=>Z7,CONTEXTPATHCOULDNOTBERESOLVED:()=>X7,ENTITYSETNOTFOUND:()=>K7,FLEXERROR:()=>lQ,INCONSISTENTSCHEMA:()=>TQ,INVALIDANCHOR:()=>fQ,INVALIDEXTENSION:()=>uQ,INVALIDTARGETDEFINITION:()=>dQ,MACROS_ANNOTATION_ERROR:()=>hQ,NOALP:()=>q7,NOANNOTATIONFORPATH:()=>G7,NOBASEPATH:()=>_7,NOCHARTS:()=>iQ,NODATEFIELD:()=>bQ,NOENTITYSET:()=>j7,NOENTITYTYPE4SET:()=>U7,NOFE:()=>w7,NOFRAGMENT:()=>pQ,NOGENERICSCHEMA:()=>M7,NOID4SECTION:()=>gQ,NOLINEITEMANDCHARTS:()=>rQ,NOLINEITEMFORPATH:()=>W7,NOLINEITEMS:()=>nQ,NOLR:()=>Q7,NOPAGEFORENTITYSET:()=>k7,NOPAGES:()=>V7,NOPRESENTATIONVARIANT:()=>$7,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>B7,NOPRESENTATIONVARIANTFORSPV:()=>H7,NOROUTING:()=>eQ,NOROUTINGID:()=>cQ,NOTARGET:()=>sQ,NOTARGETS:()=>aQ,NOTEMPLATE:()=>Y7,NOUIANNOTATIONS:()=>tQ,NOVISUALIZATIONS:()=>oQ,TYPEERROR:()=>yQ,UNEXISTING_ANNOTATION_PATH:()=>vQ,UNKNOWNMINUI5VERSION:()=>D7,WRONGMINUI5VERSION:()=>N7,XMLPARSEFAILURE:()=>mQ,default:()=>AQ});var N7="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",D7="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",_7="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",V7="No pages found in manifest for app with id '{{- appId}}'",w7="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",M7="No generic schema found while generating page schema for {{- pageType}}",k7="No page found in manifest for entitySet '{{- entitySet}}'",j7="No entitySet defined for page '{{- pageName}}'",U7="No entityType could be found for the given entity set '{{- entitySetName}}'",$7="No PresentationVariant defined for '{{- key}}'",B7="No PresentationVariant found for default SelectionPresentationVariant",H7="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",G7="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",W7="No line item annotation found for path '{{- annotationPath}}'",K7="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",X7="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",Q7="No page found in manifest for list report",q7="No page found in manifest for analytical list page",Y7="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",z7="Error while parsing annotation files",J7="Annotation file: '{{- file}}'",Z7="Component name is not defined for page '{{- pageName}}'",eQ="Incomplete manifest definition: no routing defined",tQ="No UI Annotation defined for entity type '{{- entityType }}'",nQ="UI.LineItem annotation has not been defined",iQ="UI.Chart annotation has not been defined",rQ="Neither UI.LineItem nor UI.Chart annotation has been defined",oQ="Empty Collection for Visualizations",aQ="Incomplete manifest definition: no targets defined",sQ="Invalid reference: annotation target '{{- target}}' not found",cQ="No page found in manifest for routingId '{{- routingId}}'",lQ="Error while parsing flex change",fQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",uQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",pQ="fragmentName is undefined for columnKey '{{- columnKey}}'",dQ="Invalid routing target definition in manifest: '{{- target}}'",gQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",mQ="Parsing of XML file failed with error - {{- error}}",hQ="Error during resolving annotation for '{{- control}}'",yQ="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",TQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",vQ="The annotation path doesn't exist.",bQ="Date setting will not be used since filter bar does not contain any date fields.",SQ="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",AQ={WRONGMINUI5VERSION:N7,UNKNOWNMINUI5VERSION:D7,NOBASEPATH:_7,NOPAGES:V7,NOFE:w7,NOGENERICSCHEMA:M7,NOPAGEFORENTITYSET:k7,NOENTITYSET:j7,NOENTITYTYPE4SET:U7,NOPRESENTATIONVARIANT:$7,NOPRESENTATIONVARIANTFORDEFAULTSPV:B7,NOPRESENTATIONVARIANTFORSPV:H7,NOANNOTATIONFORPATH:G7,NOLINEITEMFORPATH:W7,ENTITYSETNOTFOUND:K7,CONTEXTPATHCOULDNOTBERESOLVED:X7,NOLR:Q7,NOALP:q7,NOTEMPLATE:Y7,ANNOERR:z7,ANNOTATIONFILE:J7,COMPONENTNOTDEFINED:Z7,NOROUTING:eQ,NOUIANNOTATIONS:tQ,NOLINEITEMS:nQ,NOCHARTS:iQ,NOLINEITEMANDCHARTS:rQ,NOVISUALIZATIONS:oQ,NOTARGETS:aQ,NOTARGET:sQ,NOROUTINGID:cQ,FLEXERROR:lQ,INVALIDANCHOR:fQ,INVALIDEXTENSION:uQ,NOFRAGMENT:pQ,INVALIDTARGETDEFINITION:dQ,NOID4SECTION:gQ,XMLPARSEFAILURE:mQ,MACROS_ANNOTATION_ERROR:hQ,TYPEERROR:yQ,INCONSISTENTSCHEMA:TQ,UNEXISTING_ANNOTATION_PATH:vQ,NODATEFIELD:bQ,ACTION_GROUPS_ARENT_SUPPORTED:SQ};function GV(e){e.addResourceBundle(e.language,"translation",iP)}o(GV,"initI18n");function Qt(e="en"){Q.init({resources:{en:{translation:WV.default}},lng:e,fallbackLng:"en",joinArrays:`
292
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Th=require("path");var Ko="core:FragmentDefinition",yh="sap.ui.table",kA=new Map([[St.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[St.ViewTemplateType.TreeTableColumnsExtension,{namespace:yh,name:"Column"}],[St.ViewTemplateType.GridTableColumnsExtension,{namespace:yh,name:"Column"}],[St.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:yh,name:"AnalyticalColumn"}]]),j3=new Map([[St.v2.FE_TEMPLATE_V2_LIST_REPORT,St.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[St.v2.FE_TEMPLATE_V2_ALP,St.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[St.v2.FE_TEMPLATE_V2_OBJECT_PAGE,St.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),PV={type:"element",name:"Text",attributes:{text:"Placeholder"}},U3=JSON.stringify(PV);function $3(e,t){var i;let n=t?(i=e==null?void 0:e[Ko])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o($3,"getFragmentNamespaces");function EV(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(EV,"getTagName");function vh(e,t,n=e){let i=$3(n,!!(t||n!==e));if(t){let r=kA.get(t);return EV(r,i.get(r.namespace))}else{let r=kA.keys();for(let a of r){let s=kA.get(a),l=i?EV(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(vh,"getTagNameFromFragmentJSON");function ap(e,t=e){let n=vh(e,void 0,t);return e[n]}o(ap,"getRootCustomColumnFromFragmentJSON");function B3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(B3,"addP13nData");function xV(e,t){var l,f,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===a.columnKey);return s<0?!1:(n=!0,r=B3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(f=t[s])==null?void 0:f.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(xV,"handleFragmentColumn");function H3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+St.FRAGMENTNAMEPART+a;for(let f of t){let p=f.dataSourceUri.split(Th.sep);if(p[p.length-1]===l){let d=JSON.parse((0,bo.xml2json)(f.fileContent,{compact:!0}));try{let m=vh(d[Ko]);m&&(delete d[Ko][m],f.fileContent=(0,bo.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${f.dataSourceUri}, please check content`)}break}}}o(H3,"deleteColumnsFromFragment");function CV(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===U3&&(e.splice(n,1),t-=1,t===0));n++);}o(CV,"deleteNumberOfCells");function G3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+St.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,bo.xml2json)(s.fileContent)),f=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");f&&CV(l.elements[0].elements,f.length),s.fileContent=(0,bo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(G3,"deleteCellsFromFragment");function bh(e,t,n,i){if(i){H3(e,i,t,n);let r=t.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&G3(a,i,n)}}o(bh,"deleteColumnFromFragment");function W3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(PV)}o(W3,"addNewColumnsInFragment");function K3(e,t){let n=JSON.parse((0,bo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)W3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;CV(a,r)}e.fileContent=(0,bo.json2xml)(JSON.stringify(n),{spaces:4})}}o(K3,"updateNonEmptyCellsFragment");function X3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Th.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=St.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=MA(n):K3(r,n);break}}return i}o(X3,"updateCellsFragment");function Q3(e,t,n,i,r){var d;let a,s,l=t.manifest,f=Kn(l,e),p=f.type?f.type.toLowerCase():"xml";f.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:St.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=St.ChangeIndicator.Updated,f.fragmentName=m.fragmentName,f.className=m.className,a=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,Th.sep))+St.FRAGMENTNAMEPART+p}if(e.indexOf(St.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=St.ChangeIndicator.Updated;let m=e.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),S=n.reduce((b,I)=>I.cellsFragmentName?I:b);S&&S.cellsFragmentName?(v.fragmentName=s=S.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):eV(l,m)}return{manifestSection:f,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(Q3,"exportCustomColumnsToManifest");function q3(e,t,n,i,r){let a=VA(e,t);if(a){let s=JSON.parse((0,bo.xml2json)(a,{compact:!0})),l=ap(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let f=[n];f.splice(r,0,l),n=f}else n=[l]}return n}o(q3,"insertNewColumnInFragment");function Y3(e,t){let n=[];for(let i=0;i<e.length;i++)xV(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(Y3,"processCustomColumnInArray");function z3(e,t,n){if(e){if(Array.isArray(e))Y3(e,t);else if(!xV(e,t)){let r=vh(n[Ko]);r&&(delete n[Ko][r],e=void 0)}}return e}o(z3,"maintainExistingColumnInFragment");function J3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=q3(a,i,n,r,s)}return n}o(J3,"insertNewColumnsInFragment");function Z3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=St.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=wA(i,r);else{let f=JSON.parse((0,bo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(f);l=ap(f[Ko]),l=z3(l,i,f),l=J3(i,n,l,r,f);let d=vh(f,r);f[Ko][d]=l;let m=JSON.stringify(f);m!==p&&(s.fileContent=(0,bo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(Z3,"updateColumnsInFragment");function jA(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:f,cellsFragmentName:p,fragmentType:d}=Q3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,S=v.substr(i.length+1),b=S.split(".");v=b[b.length-1]+St.FRAGMENTNAMEPART+d;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,W=j?j+St.FRAGMENTNAMEPART+d:null,U=Z3(s,v,S,m,r),se=!1;if(p?se=X3(s,W,n):se=!0,!U){let ee={fileContent:wA(m,r),dataSourceUri:f,changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(ee)}if(!se){let ee={fileContent:MA(n),dataSourceUri:f.replace(v,W),changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(ee)}}o(jA,"exportCustomColumnsToFragment");var Sh=o((e,t,n,i)=>{var f,p,d,m;if(!e)return;let r=j3.get((f=e.component)==null?void 0:f.name);if(!i){let v=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var fi=Z(re());var UA="/multiEdit",Mc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+fi.PropertyName.table:Zt(e,t),"getSmartTableControlId");function Ih(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(Ih,"importCreateParameters");function Oh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Oh,"exportCreateParametersFields");function e7(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let f in s)l.indexOf(f)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[f]=s[f],delete s[f]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(e7,"exportVariants");function t7(e,t){t.variants&&(Object.keys(t.variants).length>0?e7(e,t):delete e.variants)}o(t7,"exportQuickVariantSelectionX");function n7(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(n7,"importMultiEdit");var Ah=class Ah{};o(Ah,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Ah.prototype,"strategy",2);var $A=Ah,sf=class sf{};o(sf,"MultiEdit"),h([y({manifest:{path:o(t=>Qr(t)+UA,"path")}})],sf.prototype,"enabled",2),h([y({manifest:{path:o(t=>Qr(t)+UA,"path")}})],sf.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Qr(t)+UA,"path"),export:Lm}})],sf.prototype,"ignoredFields",2);var BA=sf;function lp(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(lp,"importType");function ff(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(ff,"exportType");function uf(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(uf,"deleteType");var Eh=class Eh{};o(Eh,"DataLoadSettings"),h([y({manifest:{path:o(t=>nV(t),"path")}}),P({since:"1.75.2"})],Eh.prototype,"loadDataOnAppLaunch",2);var HA=Eh,Ph=class Ph{};o(Ph,"Fields4Dialog"),h([y({manifest:{path:o(t=>Qr(t)+"/createWithParameterDialog","path"),export:Oh}}),P({since:"1.77.0"})],Ph.prototype,"fields",2);var GA=Ph,sp=class sp{};o(sp,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],sp.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],sp.prototype,"variants",2);var WA=sp,cf=class cf{};o(cf,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path")}}),P({since:"1.48.0"})],cf.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path")}}),P({since:"1.48.0"})],cf.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+fi.QUICKVARPATHX,"path"),export:t7}}),P({since:"1.48.0"})],cf.prototype,"variants",2);var KA=cf,li=class li{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(li,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>Qr(t),"path"),import:Ih}}),P({since:"1.77.0"})],li.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Zt,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.38.0"})],li.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.26.0"})],li.prototype,"useExportToExcel",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.SmartTable,"controlType")}}),P({since:"1.50.0"})],li.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],li.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.48.0"})],li.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.38.0"})],li.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.120.0"})],li.prototype,"copy",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.70.0"})],li.prototype,"selectAll",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.70.0"})],li.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.75.2"})],li.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.42.0"})],li.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],li.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],li.prototype,"toolBar",2);var Is=li,Xo=class Xo extends Is{};o(Xo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],Xo.prototype,"createWithFilters",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")},generate:Jn}),P({since:"1.52.0"})],Xo.prototype,"popinLayout",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}})],Xo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>Qr(t),"path")}}),P({since:"1.77.0"})],Xo.prototype,"inlineDelete",2),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Xo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>Qr(t),"path"),import:n7}}),P({since:"1.98.0"})],Xo.prototype,"multiEdit",2);var kc=Xo,xh=class xh extends Is{};o(xh,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xh.prototype,"type",2);var XA=xh,So=class So extends Is{};o(So,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],So.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],So.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],So.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.78.0"})],So.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],So.prototype,"createWithFilters",2);var QA=So,Qo=class Qo extends Is{};o(Qo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Qo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.60.0"})],Qo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.78.0"})],Qo.prototype,"allFiltersAsInParameters",2);var lf=Qo,Ch=class Ch extends lf{};o(Ch,"ALPResponsiveTable"),h([y({flex:{controlId:Mc,controlType:o(()=>fi.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Ch.prototype,"growingThreshold",2);var qA=Ch,ZA=class ZA extends lf{};o(ZA,"ALPGridTable");var YA=ZA,eE=class eE extends lf{};o(eE,"ALPAnalyticalTable");var zA=eE,cp=class cp extends Is{};o(cp,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:lp,export:ff,delete:uf}}),P({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cp.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),P({since:"1.54.0"})],cp.prototype,"createWithFilters",2);var JA=cp;var fp=Z(re());var i7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${er(i).replace(":2f","::")}`},"getActionButtonId"),r7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}template::${i}`},"getStandardActionButtonId"),o7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}${qm}${i}`},"getStandardFooterActionOPButtonId"),uE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=nr(n);return`${e}action::${i}::${er(r)}`},"buildIntentBasedActionId"),a7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${er(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Os={controlId:i7,controlType:o(()=>fp.ControlType.Button,"controlType")},up={controlId:r7,controlType:o(()=>fp.ControlType.Button,"controlType")},IV={controlId:o7,controlType:o(()=>fp.ControlType.Button,"controlType")},Rh={controlId:a7,controlType:o(()=>fp.ControlType.Button,"controlType")},jc=class jc{};o(jc,"Action"),h([y({flex:Os})],jc.prototype,"tooltip",2),h([y({flex:Os})],jc.prototype,"icon",2),h([y({flex:Os})],jc.prototype,"activeIcon",2),h([y({flex:Os})],jc.prototype,"type",2);var tE=jc,Uc=class Uc{};o(Uc,"ToolBarAction"),h([y({flex:Os})],Uc.prototype,"tooltip",2),h([y({flex:Os})],Uc.prototype,"icon",2),h([y({flex:Os})],Uc.prototype,"activeIcon",2),h([y({flex:Os})],Uc.prototype,"type",2);var nE=Uc,$c=class $c{};o($c,"FooterAction"),h([y({flex:Rh})],$c.prototype,"tooltip",2),h([y({flex:Rh})],$c.prototype,"icon",2),h([y({flex:Rh})],$c.prototype,"activeIcon",2),h([y({flex:Rh})],$c.prototype,"type",2);var iE=$c,Lh=class Lh{};o(Lh,"Share"),h([y({flex:up})],Lh.prototype,"visible",2);var rE=Lh,Fh=class Fh{};o(Fh,"ShareOP"),h([y({flex:up})],Fh.prototype,"visible",2);var oE=Fh,Nh=class Nh{};o(Nh,"UpAndDownNavigationOP"),h([y({flex:up})],Nh.prototype,"visible",2);var aE=Nh,Dh=class Dh{};o(Dh,"SaveAndEditOP"),h([y({flex:IV,generate:ht})],Dh.prototype,"visible",2);var sE=Dh,_h=class _h{};o(_h,"HeaderActionStandard"),h([y({flex:up})],_h.prototype,"visible",2);var cE=_h,Vh=class Vh{};o(Vh,"ObjectPageHeaderActionStandard"),h([y({flex:up})],Vh.prototype,"visible",2);var lE=Vh,wh=class wh{};o(wh,"ObjectPageFooterActionStandard"),h([y({flex:IV})],wh.prototype,"visible",2);var fE=wh;var gp=Z(re());var s7=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=nr(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),c7=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=nr(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),l7=o((e,t,n)=>{let{actionId:i}=nr(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),pE={controlId:s7,controlType:o(()=>gp.ControlType.TableColumn,"controlType")},pp={controlId:l7,controlType:o(()=>gp.ControlType.Button,"controlType")},OV={...pE,controlId:c7},Mh={...pp,controlId:uE},dp=class dp{};o(dp,"TableColumn"),h([y({flex:{controlId:bS,controlType:o(()=>gp.ControlType.TableColumn,"controlType")}})],dp.prototype,"width",2),h([y({flex:{controlId:bS,controlType:o(()=>gp.ControlType.TableColumn,"controlType")},generate:Jn})],dp.prototype,"hAlign",2);var dE=dp,La=class La{};o(La,"TableColumnAction"),h([y({flex:pE})],La.prototype,"width",2),h([y({flex:pE,generate:Jn})],La.prototype,"hAlign",2),h([y({flex:pp})],La.prototype,"tooltip",2),h([y({flex:pp})],La.prototype,"icon",2),h([y({flex:pp})],La.prototype,"activeIcon",2),h([y({flex:pp})],La.prototype,"type",2);var gE=La,Fa=class Fa{};o(Fa,"TableColumnActionIntentBased"),h([y({flex:OV})],Fa.prototype,"width",2),h([y({flex:OV,generate:Jn})],Fa.prototype,"hAlign",2),h([y({flex:Mh})],Fa.prototype,"tooltip",2),h([y({flex:Mh})],Fa.prototype,"icon",2),h([y({flex:Mh})],Fa.prototype,"activeIcon",2),h([y({flex:Mh})],Fa.prototype,"type",2);var mE=Fa,yE=class yE{};o(yE,"TableCustomColumn");var hE=yE;var vE=class vE{};o(vE,"ToolBar");var TE=vE;var Bc=Z(re());var mp=o(e=>e+Bc.PropertyName.chart,"getSmartChartControlId"),Rs=class Rs{};o(Rs,"ChartSettings"),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Rs.prototype,"showLegendButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Rs.prototype,"showDownloadButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType")}})],Rs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:mp,controlType:o(()=>Bc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Rs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>tV(t),"path")}}),P({since:"1.81.0"})],Rs.prototype,"showDataLabel",2);var bE=Rs;var Na=class Na{};o(Na,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>Vc(t,i),"path")}})],Na.prototype,"groupId",2);var SE=Na;var RV=Z(re());var f7=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Zt(e,n)},"getAvatarControlId"),Ls=class Ls{};o(Ls,"ObjectPageHeader"),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.46.0"})],Ls.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.46.0"})],Ls.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"})],Ls.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Ls.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:f7,controlType:o(()=>RV.ControlType.Avatar,"controlType")},generate:ht})],Ls.prototype,"displayShape",2);var AE=Ls;var kh=Z(re());var u7=o((e,t,n,i)=>{if(i()===kh.ControlType.Button||i()===kh.ControlType.HeaderAction){let r=n[2];return`${e}action::${er(r)}`}return Zt(e,t)},"getActionButtonId"),hp={controlId:u7,controlType:o(()=>kh.ControlType.HeaderAction,"controlType")},Fs=class Fs{};o(Fs,"ObjectPageHeaderAction"),h([y({flex:hp,generate:ht})],Fs.prototype,"visible",2),h([y({flex:hp})],Fs.prototype,"tooltip",2),h([y({flex:hp})],Fs.prototype,"icon",2),h([y({flex:hp})],Fs.prototype,"activeIcon",2),h([y({flex:hp})],Fs.prototype,"type",2);var EE=Fs;var yp=Z(re());var Gh="header::headerEditable::",p7=o((e,t,n,i,r)=>`${e}${Gh}${r}`,"getDataPointHeaderSectionId"),d7=o((e,t,n,i,r)=>`${e}${Gh}${r}::ContactAddress`,"getAddressHeaderSectionId"),g7=o((e,t,n,i,r)=>`${e}${Gh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),m7=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(yp.FACETTITLEPREFIX)?r.split(yp.FACETTITLEPREFIX)[1]:a;return`${e}${Gh}${s}::Form`},"getFormHeaderSectionId"),Tp={controlType:o(()=>yp.ControlType.ObjectPageHeaderSection,"controlType")},jh=class jh{};o(jh,"CommonHeaderFacetSettings"),h([y({flex:{...Tp,controlId:o((()=>crypto.randomUUID()),"controlId")},generate:ht})],jh.prototype,"visible",2);var Hc=jh,Uh=class Uh extends Hc{};o(Uh,"ObjectPageHeaderSectionForm"),h([y({flex:{...Tp,controlId:m7}})],Uh.prototype,"visible",2);var PE=Uh,$h=class $h extends Hc{};o($h,"ObjectPageHeaderSectionChart"),h([y({flex:{...Tp,controlId:g7}})],$h.prototype,"visible",2);var xE=$h,Bh=class Bh extends Hc{};o(Bh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Tp,controlId:p7}})],Bh.prototype,"visible",2);var CE=Bh,Hh=class Hh extends Hc{};o(Hh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Tp,controlId:d7}})],Hh.prototype,"visible",2);var IE=Hh,RE=class RE{};o(RE,"HeaderSections");var OE=RE;var FE=Z(re());var h7=o((e,t,n,i)=>{if(i()===FE.ControlType.Button){let{actionId:r}=nr(n);return`${e}action::${er(r)}::Determining`}return Zt(e,t)},"getFooterActionButtonId"),vp={controlId:h7,controlType:o(()=>FE.ControlType.Button,"controlType")},Ns=class Ns{};o(Ns,"ObjectPageFooterAction"),h([y({flex:vp,generate:ht})],Ns.prototype,"visible",2),h([y({flex:vp})],Ns.prototype,"tooltip",2),h([y({flex:vp})],Ns.prototype,"icon",2),h([y({flex:vp})],Ns.prototype,"activeIcon",2),h([y({flex:vp})],Ns.prototype,"type",2);var LE=Ns;var bp=Z(re());var Wh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Zt(e,n)},"getControlId"),Gc=class Gc{};o(Gc,"ObjectPageLayout"),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")},generate:ht})],Gc.prototype,"showHeaderContent",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}})],Gc.prototype,"showAnchorBar",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}})],Gc.prototype,"useIconTabBar",2),h([y({flex:{controlId:Wh,controlType:o(()=>bp.ControlType.ObjectPageLayout,"controlType")}}),P({since:"1.34.0"})],Gc.prototype,"alwaysShowContentHeader",2);var NE=Gc;var LV=Z(re());var Wc=class Wc{};o(Wc,"BaseCustomSection"),h([y({manifest:{path:Ra,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),P({since:"1.52.0"})],Wc.prototype,"relatedFacet",2),h([y({manifest:{path:Ra,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),P({since:"1.52.0"})],Wc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Ra(t,{},i,LV.ManifestSection.generic),"path")}}),P({since:"1.52.0"})],Wc.prototype,"title",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Wc.prototype,"className",2);var Ep=Wc,Sp=class Sp extends Ep{};o(Sp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Sp.prototype,"fragmentName",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Sp.prototype,"type",2);var Pp=Sp,Ap=class Ap extends Ep{};o(Ap,"ObjectPageCustomSectionView"),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Ap.prototype,"viewName",2),h([y({manifest:{path:Ra}}),P({since:"1.52.0"})],Ap.prototype,"type",2);var xp=Ap;var ar=Z(re());var FV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),ar.DefinitionName.Table];return Zt(e,s)},"getTableSectionControlId"),NV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return Zt(e,s)},"getFormSectionControlId"),DV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return Zt(e,s)},"getChartSectionControlId"),Kc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return Zt(e,s)},"getSectionControlId"),_V=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return Zt(e,s)},"getSubSectionControlId"),VV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return Zt(e,s)},"getContactSubSectionControlId"),Kh=class Kh{};o(Kh,"ObjectPageSectionV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Kh.prototype,"visible",2);var DE=Kh,Xh=class Xh{};o(Xh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Xh.prototype,"visible",2);var _E=Xh,Qh=class Qh{};o(Qh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Qh.prototype,"visible",2);var VE=Qh,qh=class qh{};o(qh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],qh.prototype,"visible",2);var wE=qh,Yh=class Yh{};o(Yh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],Yh.prototype,"visible",2);var ME=Yh,zh=class zh{};o(zh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Kc,controlType:o(()=>ar.ControlType.Section,"controlType")},generate:ht})],zh.prototype,"visible",2);var kE=zh,Jh=class Jh{};o(Jh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:_V,controlType:o(()=>ar.ControlType.SubSection,"controlType")},generate:ht})],Jh.prototype,"visible",2);var jE=Jh,Zh=class Zh{};o(Zh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:NV,controlType:o(()=>ar.ControlType.Group,"controlType")},generate:ht})],Zh.prototype,"visible",2);var UE=Zh,ey=class ey{};o(ey,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:DV,controlType:o(()=>ar.ControlType.SmartChart,"controlType")},generate:ht})],ey.prototype,"visible",2);var $E=ey,ty=class ty{};o(ty,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:VV,controlType:o(()=>ar.ControlType.SubSection,"controlType")},generate:ht})],ty.prototype,"visible",2);var BE=ty,ny=class ny{};o(ny,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:FV,controlType:o(()=>ar.ControlType.SmartTable,"controlType")},generate:ht})],ny.prototype,"visible",2);var HE=ny;var iy=class iy{};o(iy,"ObjectPageChart"),h([y({manifest:{path:iV}}),P({since:"1.78.0"})],iy.prototype,"variantManagement",2);var GE=iy,ry=class ry{};o(ry,"GlobalChartSettings"),h([y({manifest:{path:o(t=>wi(t)+"/chartSettings","path")}}),P({since:"1.78.0"})],ry.prototype,"variantManagement",2);var WE=ry;var xr=Z(re());var Xc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=xr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),Zt(e,a)},"getSmartTableControlId"),Cp=class Cp{};o(Cp,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>To(t,n,i)+xr.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],Cp.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>To(t,n,i)+xr.QUICKVARPATH,"path")}}),P({since:"1.48.0"})],Cp.prototype,"variants",2);var KE=Cp,oy=class oy{};o(oy,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Pr(t,n,i)+"/createWithParameterDialog","path"),export:Oh}}),P({since:"1.77.0"})],oy.prototype,"fields",2);var XE=oy,ui=class ui{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ui,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Pr,import:Ih}}),P({since:"1.77.0"})],ui.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.28.0"})],ui.prototype,"editable",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ui.prototype,"showPasteButton",2),h([y({manifest:{path:Pr}}),P({since:"1.54.0"})],ui.prototype,"multiSelect",2),h([y({manifest:{path:Pr}}),P({since:"1.70.0"})],ui.prototype,"selectAll",2),h([y({manifest:{path:Pr}}),P({since:"1.70.0"})],ui.prototype,"selectionLimit",2),h([y({manifest:{path:To}}),P({since:"1.63.0"})],ui.prototype,"quickVariantSelection",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.26.0"})],ui.prototype,"useExportToExcel",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.SmartTable,"controlType")}}),P({since:"1.50.0"})],ui.prototype,"exportType",2),h([y({manifest:{path:To}}),P({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ui.prototype,"createMode",2),h([y({manifest:{path:To}}),P({since:"1.61.0"})],ui.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Pr}}),P({since:"1.78.0"})],ui.prototype,"variantManagement",2),h([y({manifest:{path:Pr}}),P({since:"1.120.0"})],ui.prototype,"copy",2),h([jt("toolBar")],ui.prototype,"toolBar",2);var Qc=ui,Ds=class Ds extends Qc{};o(Ds,"ObjectPageResponsiveTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ds.prototype,"type",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")}})],Ds.prototype,"includeItemInSelection",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")},generate:ht}),P({since:"1.52.0"})],Ds.prototype,"popinLayout",2),h([y({manifest:{path:Pr}}),P({since:"1.77.0"})],Ds.prototype,"inlineDelete",2),h([y({flex:{controlId:Xc,controlType:o(()=>xr.ControlType.Table,"controlType")}}),P({since:"1.16.0"})],Ds.prototype,"growingThreshold",2);var qc=Ds,Ip=class Ip extends Qc{};o(Ip,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ip.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Ip.prototype,"condensedTableLayout",2);var QE=Ip,Op=class Op extends Qc{};o(Op,"ObjectPageGridTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Op.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Op.prototype,"condensedTableLayout",2);var qE=Op,Rp=class Rp extends Qc{};o(Rp,"ObjectPageTreeTable"),h([y({manifest:{path:Pr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Rp.prototype,"type",2),h([y({manifest:{path:To}}),P({since:"1.67.0"})],Rp.prototype,"condensedTableLayout",2);var YE=Rp,qo=class qo{};o(qo,"GlobalTableSettings"),h([y({manifest:{path:bs}}),P({since:"1.70.0"})],qo.prototype,"selectAll",2),h([y({manifest:{path:bs}}),P({since:"1.78.0"})],qo.prototype,"variantManagement",2),h([y({manifest:{path:bs}}),P({since:"1.120.0"})],qo.prototype,"copy",2),h([y({manifest:{path:bs}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qo.prototype,"type",2),h([y({manifest:{path:bs}}),P({since:"1.54.0"})],qo.prototype,"multiSelect",2),h([y({manifest:{path:bs}}),P({since:"1.67.0"})],qo.prototype,"condensedTableLayout",2),h([y({manifest:{path:bs}}),P({since:"1.77.0"})],qo.prototype,"inlineDelete",2);var zE=qo;var wV=Z(re());var y7=o((e,t,n,i,r)=>{let{actionId:a}=nr(n),s=zn(n[1],r);return`${e}${s}::action::${er(a).replace(":2f","::")}`},"getActionButtonId"),Lp={controlId:y7,controlType:o(()=>wV.ControlType.Button,"controlType")},_s=class _s{};o(_s,"ObjectPageToolBarAction"),h([y({flex:Lp,generate:ht})],_s.prototype,"visible",2),h([y({flex:Lp})],_s.prototype,"tooltip",2),h([y({flex:Lp})],_s.prototype,"icon",2),h([y({flex:Lp})],_s.prototype,"activeIcon",2),h([y({flex:Lp})],_s.prototype,"type",2);var JE=_s;var Mi=Z(re());function eP(e,t,n,i){if(t.controlType===Mi.ControlType.TableColumn||t.controlType===Mi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Mi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Mi.VOCWITHCOLONS),f=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(f!=null&&f.startsWith("DataField")?f=f==null?void 0:f.replace("/",":2f"):f=f==null?void 0:f.replace("/","_"),f!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(eP,"addFlexChangeToConfigTableColumn");function ay(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Mi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(ay,"addFlexChangeToConfigTable");function sy(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,d,m,v,S;let s=Ar(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(d=s.content)!=null&&d.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},f;if(s.controlType===Mi.ControlType.TableColumn)f=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Mi.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Mi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Mi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;f=(S=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:S.properties[l.propertyId]}f&&eP(t.table,l,n,i)})}o(sy,"importFlexChangesOfColumn");function Vs(e){return e.replace("/","::")}o(Vs,"convertActionKey");function tP(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(tP,"convertSelector");function T7(e,t,n,i){var a,s,l,f;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((f=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:f.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(T7,"addSmartFilterBarFlex");function v7(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=er((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let f=a.split(":::"),p=f.find(v=>v.startsWith("sSemanticObject")),d=f.find(v=>v.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,S=`${f[0]}:::${p}:::${d}`;i.set(v,r),i.set(r,S)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(v7,"filterActions");function b7(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(b7,"addColumnActionConfigPart");function S7(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(S7,"getActionId");function A7(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var f,p;let l=v7(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(f=d.split("<")[1])==null?void 0:f.split(">")[0];s.name==="TableColumnAction"&&b7(s,e,m);let v=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(A7,"addActionFlex");function E7(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[pt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[pt.PropertyName.chart],t):e[pt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(E7,"addSmartChartFlex");function cy(e,t,n,i){var r,a;try{let s=Ar(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(pt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(pt.PageTypeV2.AnalyticalListPage))switch(s.controlId=tP(s.controlId),s.controlType){case pt.ControlType.SmartFilterBar:{T7(e,l,s,n);break}case pt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case pt.ControlType.Button:{let f=S7(s);f&&A7(e,l,s,n,f);break}case pt.ControlType.SmartChart:{E7(e,l,s,n);break}default:break}}catch(s){oe(i,{severity:pt.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(cy,"addFlex");function P7(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(P7,"adjustQuickVariantSelectionX");function kn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let f in n.properties){let p=Mn(e,f);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,a);s=Kn(t,d),Gl(p,s,f,e),jm(l,s,d,r)}P7(f,e)}}o(kn,"transferSettingsOfObject");function ly(e,t){var r,a,s,l,f,p,d,m,v;let n=e[pt.ManifestSection.generic].pages[t],i=pt.v2.TableTypeV2.ResponsiveTable;return(r=e[pt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[pt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[pt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.tableSettings)==null?void 0:d.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=pt.v2.TableTypeV2.AnalyticalTable),i}o(ly,"determineTableType");function MV(e,t,n,i,r,a,s){var l,f;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,d=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(f=e._attributes)==null?void 0:f.id}:{},...m?{text:m}:{},...d,...d.columnKey?{columnKey:d.columnKey}:{},...d.columnIndex?{columnIndex:Number(d.columnIndex)}:{},...d.leadingProperty?{leadingProperty:d.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(MV,"evaluateFragmentColumn");function x7(e,t,n,i){let r;if(e===pt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,f]=a.split("|");s===pt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&f===i&&(r=t[a].fragmentName)}return r}o(x7,"determineCellsFragmentName");function C7(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,kV.xml2json)(e[0].fileContent,{compact:!0}))[Ko];try{let d=ap(p);if(d)if((l=t[pt.PropertyName.table])!=null&&l.columns||(t[pt.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)MV(m,n,i,r,t,a,s);else MV(d,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(C7,"analyzeFilteredFragments");function I7(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[f,p]=l,d=l[2];if(f&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let S=x7(f,e,p,d),b=v.split(".");v=b[b.length-1]+pt.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{C7(I,n,e,s,d,f,S)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{sy(i,n,F.id,F,r)})}}}o(I7,"processViewExtensions");function pf(e,t,n,i,r,a="LineItems"){var s,l,f;if(t.fragments&&(f=(l=(s=t.manifest[pt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&f["sap.ui.viewExtensions"]){let p=pt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),d=t.manifest[pt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!d)return;let m=r&&r.target?r.target:n.entitySet;I7(d,m,e,t,a)}}o(pf,"addFragments");function fy(e,t,n){if(e.header={actions:{}},n[pt.DefinitionName.HeaderActionsStandard]){let i=n[pt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(pt.PageTypeV2.ListReport,r,{})}}o(fy,"importHeaderActions");var Yo=Z(re());var Fp="sap.suite.ui.generic.template.ListReport";var jV="sap.suite.ui.generic.template.ListReport.view.ListReport";var Yc=Z(re());var UV=Z(re());function ws(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(ws,"getManifestPathToPageSettings");function Ao(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Ao,"getManifestPropertyByPath");function Da(e){return e!==null&&typeof e=="object"}o(Da,"isDefinition");function uy(e,t,n,i,r,a,s){let l=n[UV.SchemaTag.conversionExit],f=l==null?void 0:l.name,p=t?t(f):void 0;if(!p)return i;let d=l.params;return e?p.appToConfig(i,d,r??[],n,s):p.configToApp(i,d,r??[],n,a)}o(uy,"executeConversionExit");function Ms(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&oe(n,{severity:Yc.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(Ms,"hasPropertyTypeError");var $V=Symbol("Property is suppressed without explanation");function O7(e,t,n,i){delete t.element.$ref,n===void 0||e===$V?t.element[Yc.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[Yc.SchemaTag.messages]=[{text:e,deletable:!0,type:Yc.PropertyMessageType.Warning}]),t.manifestPath=i}o(O7,"handleDisallowedProperty");function BV(e,t,n,i,r){return{manifest:{},processingRuleAdapter:o(function(a,s,l){let{manifestPath:f,disallowedReason:p}=t(a.element,s,l);if(p===$V){delete a.element;return}let{value:d,parent:m}=Ao(l.manifest,f,e);if(p){O7(p,a,d,f);return}if((r?Ms(m,e,l.logger,r):!1)&&(r==="object"||typeof d=="object")){delete a.element;return}n&&n(a.element,s,l,d),a.manifestPath=f,i&&(a.referenceAdaptation=i(s,l))},"processingRuleAdapter")}}o(BV,"getSyncRuleForManifestProperty");var py={manifest:{},processingRuleAdapter(e,t){e.manifestPath=ws(t.pageInfo.pagePath)}};var Ut=Z(re());function zc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(va((r=s.component)==null?void 0:r.name)===Ut.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=zc(s.pages,t,n),i))return n.unshift(a),i}}o(zc,"findObjectPageV2");function df(e,t){var n;for(let i in e){let r=e[i];if(va((n=r.component)==null?void 0:n.name)===Ut.PageTypeV2.ListReport)return t.push(i),r}}o(df,"findListReportPageV2");function gf(e){if(!e.manifest[Ut.ManifestSection.generic]){oe(e.logger,{severity:Ut.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}let t=e.manifest[Ut.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:Ut.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}return t}o(gf,"getV2Pages");function mf(e,t,n){var i;if(!e){oe(t,{severity:Ut.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:Ut.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}}o(mf,"checkV2Page");function hf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),va((i=a.component)==null?void 0:i.name)===Ut.PageTypeV2.AnalyticalListPage)return a}oe(n,{severity:Ut.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}o(hf,"findAnalyticalListPage");function nP(e,t){let n=e.split("|");return Ut.v2.SectionPosition[n[0]]&&n[1]===t}o(nP,"isAssociatedCustomSection");function HV(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${Ut.v2.SAPUI5_VIEW_EXTENSION}/${Ut.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)nP(r,t)&&(i[r]=n[r]);return i}o(HV,"findCustomSectionExtensions");function R7(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(R7,"removeEmptySettingsOfFooter");function L7(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(L7,"removeEmptySettingsOfFilterBar");function F7(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(F7,"removeEmptySettingsOfToolBar");function dy(e){F7(e),L7(e),R7(e)}o(dy,"removeEmptySettings");var qt=Z(re());var WV=Z(re());var iP={};vc(iP,{ACTION_GROUPS_ARENT_SUPPORTED:()=>SQ,ANNOERR:()=>z7,ANNOTATIONFILE:()=>J7,COMPONENTNOTDEFINED:()=>Z7,CONTEXTPATHCOULDNOTBERESOLVED:()=>X7,ENTITYSETNOTFOUND:()=>K7,FLEXERROR:()=>lQ,INCONSISTENTSCHEMA:()=>TQ,INVALIDANCHOR:()=>fQ,INVALIDEXTENSION:()=>uQ,INVALIDTARGETDEFINITION:()=>dQ,MACROS_ANNOTATION_ERROR:()=>hQ,NOALP:()=>q7,NOANNOTATIONFORPATH:()=>G7,NOBASEPATH:()=>_7,NOCHARTS:()=>iQ,NODATEFIELD:()=>bQ,NOENTITYSET:()=>j7,NOENTITYTYPE4SET:()=>U7,NOFE:()=>w7,NOFRAGMENT:()=>pQ,NOGENERICSCHEMA:()=>M7,NOID4SECTION:()=>gQ,NOLINEITEMANDCHARTS:()=>rQ,NOLINEITEMFORPATH:()=>W7,NOLINEITEMS:()=>nQ,NOLR:()=>Q7,NOPAGEFORENTITYSET:()=>k7,NOPAGES:()=>V7,NOPRESENTATIONVARIANT:()=>$7,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>B7,NOPRESENTATIONVARIANTFORSPV:()=>H7,NOROUTING:()=>eQ,NOROUTINGID:()=>cQ,NOTARGET:()=>sQ,NOTARGETS:()=>aQ,NOTEMPLATE:()=>Y7,NOUIANNOTATIONS:()=>tQ,NOVISUALIZATIONS:()=>oQ,TYPEERROR:()=>yQ,UNEXISTING_ANNOTATION_PATH:()=>vQ,UNKNOWNMINUI5VERSION:()=>D7,WRONGMINUI5VERSION:()=>N7,XMLPARSEFAILURE:()=>mQ,default:()=>AQ});var N7="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",D7="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",_7="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",V7="No pages found in manifest for app with id '{{- appId}}'",w7="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",M7="No generic schema found while generating page schema for {{- pageType}}",k7="No page found in manifest for entitySet '{{- entitySet}}'",j7="No entitySet defined for page '{{- pageName}}'",U7="No entityType could be found for the given entity set '{{- entitySetName}}'",$7="No PresentationVariant defined for '{{- key}}'",B7="No PresentationVariant found for default SelectionPresentationVariant",H7="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",G7="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",W7="No line item annotation found for path '{{- annotationPath}}'",K7="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",X7="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",Q7="No page found in manifest for list report",q7="No page found in manifest for analytical list page",Y7="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",z7="Error while parsing annotation files",J7="Annotation file: '{{- file}}'",Z7="Component name is not defined for page '{{- pageName}}'",eQ="Incomplete manifest definition: no routing defined",tQ="No UI Annotation defined for entity type '{{- entityType }}'",nQ="UI.LineItem annotation has not been defined",iQ="UI.Chart annotation has not been defined",rQ="Neither UI.LineItem nor UI.Chart annotation has been defined",oQ="Empty Collection for Visualizations",aQ="Incomplete manifest definition: no targets defined",sQ="Invalid reference: annotation target '{{- target}}' not found",cQ="No page found in manifest for routingId '{{- routingId}}'",lQ="Error while parsing flex change",fQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",uQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",pQ="fragmentName is undefined for columnKey '{{- columnKey}}'",dQ="Invalid routing target definition in manifest: '{{- target}}'",gQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",mQ="Parsing of XML file failed with error - {{- error}}",hQ="Error during resolving annotation for '{{- control}}'",yQ="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",TQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",vQ="The annotation path doesn't exist.",bQ="Date setting will not be used since filter bar does not contain any date fields.",SQ="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",AQ={WRONGMINUI5VERSION:N7,UNKNOWNMINUI5VERSION:D7,NOBASEPATH:_7,NOPAGES:V7,NOFE:w7,NOGENERICSCHEMA:M7,NOPAGEFORENTITYSET:k7,NOENTITYSET:j7,NOENTITYTYPE4SET:U7,NOPRESENTATIONVARIANT:$7,NOPRESENTATIONVARIANTFORDEFAULTSPV:B7,NOPRESENTATIONVARIANTFORSPV:H7,NOANNOTATIONFORPATH:G7,NOLINEITEMFORPATH:W7,ENTITYSETNOTFOUND:K7,CONTEXTPATHCOULDNOTBERESOLVED:X7,NOLR:Q7,NOALP:q7,NOTEMPLATE:Y7,ANNOERR:z7,ANNOTATIONFILE:J7,COMPONENTNOTDEFINED:Z7,NOROUTING:eQ,NOUIANNOTATIONS:tQ,NOLINEITEMS:nQ,NOCHARTS:iQ,NOLINEITEMANDCHARTS:rQ,NOVISUALIZATIONS:oQ,NOTARGETS:aQ,NOTARGET:sQ,NOROUTINGID:cQ,FLEXERROR:lQ,INVALIDANCHOR:fQ,INVALIDEXTENSION:uQ,NOFRAGMENT:pQ,INVALIDTARGETDEFINITION:dQ,NOID4SECTION:gQ,XMLPARSEFAILURE:mQ,MACROS_ANNOTATION_ERROR:hQ,TYPEERROR:yQ,INCONSISTENTSCHEMA:TQ,UNEXISTING_ANNOTATION_PATH:vQ,NODATEFIELD:bQ,ACTION_GROUPS_ARENT_SUPPORTED:SQ};function GV(e){e.addResourceBundle(e.language,"translation",iP)}o(GV,"initI18n");function Qt(e="en"){Q.init({resources:{en:{translation:WV.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),GV(Q)}o(Qt,"initI18n");var oP={};vc(oP,{AnalyticalListPage:()=>Yr,ListReport:()=>Eo,ObjectPage:()=>pi,OverviewPage:()=>en,exportFilterSettings:()=>QV,importDateSettingsOVP:()=>KV,importFilterSettings:()=>XV});var gy=Z(re());var Yr=class{};o(Yr,"AnalyticalListPage"),h([y({flex:{controlId:Vm,controlType:o(()=>gy.ControlType.DynamicPage,"controlType")}})],Yr.prototype,"fitContent",2),h([jt("table")],Yr.prototype,"table",2),h([jt("template::SmartFilterBar")],Yr.prototype,"filterBar",2),h([jt("analyticalListPageChart")],Yr.prototype,"chart",2),h([jt("analyticalListFooter")],Yr.prototype,"footer",2),Yr=h([ir({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:gy.v2.FE_TEMPLATE_V2_ALP})],Yr);var Np=Z(re());var Eo=class{};o(Eo,"ListReport"),h([y({flex:{controlId:Vm,controlType:o(()=>Np.ControlType.DynamicPage,"controlType")}})],Eo.prototype,"fitContent",2),h([jt("listReportFilter")],Eo.prototype,"filterBar",2),h([jt("listReport")],Eo.prototype,"table",2),h([jt("listReportFooter")],Eo.prototype,"footer",2),Eo=h([ir({id:Np.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Np.v2.FE_TEMPLATE_V2_LIST_REPORT})],Eo);var rP=Z(re());var pi=class{};o(pi,"ObjectPage"),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.0"})],pi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.1"})],pi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"})],pi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.0"})],pi.prototype,"navToListOnSave",2),h([jt("header")],pi.prototype,"header",2),h([jt("sections")],pi.prototype,"sections",2),h([jt("layout")],pi.prototype,"layout",2),h([y({manifest:{path:o(t=>lh(t),"path")}}),P({since:"1.77.0"})],pi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>wi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),P({since:"1.78.0"})],pi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>wi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Pc}}),P({since:"1.71.0"})],pi.prototype,"globalTableSettings",2),pi=h([ir({id:rP.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:rP.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],pi);function EQ(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(EQ,"importDateSettingsFieldsOVP");function KV(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&EQ(e,t),t}o(KV,"importDateSettingsOVP");function XV(e){let t={};return t.dateSettings=KV(e.filterSettings),t}o(XV,"importFilterSettings");function PQ(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(PQ,"exportFilterFields");function QV(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&PQ(t,n,e))}o(QV,"exportFilterSettings");var en=class{};o(en,"OverviewPage"),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>Pn(),"path"),import:XV,export:QV}}),P({since:"1.80.0"})],en.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"resizableLayout",2),en=h([ir({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],en);var aP=class aP{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(aP,"MetadataFactory");var yf=aP;var ei=Z(re());var xQ={},CQ={Table:kc,ResponsiveTableWithMultiSelect:kc,ResponsiveTableWithInlineDelete:kc},IQ={[ei.v2.CardSettingsType.listCardSettings]:nf,[ei.v2.CardSettingsType.listCardSettingsv4]:nf,[ei.v2.CardSettingsType.analyticalCardSettings]:rf,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:rf,[ei.v2.CardSettingsType.stackCardSettings]:Zu,[ei.v2.CardSettingsType.linkListCardSettings]:ep,[ei.v2.CardSettingsType.tableCardSettings]:of,[ei.v2.CardSettingsType.tableCardSettingsv4]:of},OQ={[ei.SAPUI5_VIEW_CLASS]:xp,[ei.SAPUI5_FRAGMENT_CLASS]:Pp,Table:qc,ObjectPageResponsiveTableWithMultiSelect:qc,ObjectPageResponsiveTableWithInlineDelete:qc},RQ={[ei.PageTypeV2.AnalyticalListPage]:xQ,[ei.PageTypeV2.ListReport]:CQ,[ei.PageTypeV2.ObjectPage]:OQ,[ei.PageTypeV2.OverviewPage]:IQ},sP=class sP extends yf{constructor(){super(ZE,oP,RQ)}};o(sP,"MetadataInstanceFactoryV2");var ki=sP;function LQ(e,t,n,i,r){if(e.filterBar=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(e.filterBar,n.manifest,i[qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(LQ,"importFilterBar");function cP(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,d,m;let l=Ar(s),f={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(d=l.content)!=null&&d.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};ay(n.table,f,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&sy(e,n,s)}o(cP,"importFlexChangesOfTableAndColumns");function FQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Xm]&&t[Qm]&&(a=JSON.parse(JSON.stringify(t[Xm])),a.properties={...a.properties,...t[Qm].properties}),kn(n.table,i.manifest,a,r,i.logger),cP(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(FQ,"importTable");function NQ(e,t,n,i){let r=e.jsonSchema.definitions,a=ly(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),fy(t,n,r),FQ(a,r,t,e,i),t.table.toolBar=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,r[qt.DefinitionName.ToolBarLR],i,e.logger),r[qt.DefinitionName.ActionsLR])for(let l in r[qt.DefinitionName.ActionsLR].properties){let f=_s(l);t.table.toolBar.actions[f]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.Action),kn(t.table.toolBar.actions[f],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}LQ(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let f=_s(l);t.footer.actions[f]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.FooterAction),kn(t.footer.actions[f],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}}o(NQ,"addSettings");function qV(e){if(Qt(),!gf(e))return;let n=new ki,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=df(e.manifest[qt.ManifestSection.generic].pages,r);if(mf(a,e.logger,a==null?void 0:a.entitySet),!!a)return NQ(e,i,n,r[0]),e.flex.forEach(s=>{Ar(s)&&cy(i,s,e.jsonSchema,e.logger)}),pf(i,e,a,qt.PageTypeV2.ListReport),dy(i),i}o(qV,"createListReportConfig");var Se=Z(re());var Dp=require("@sap-ux/vocabularies-types/vocabularies/UI");var _Q=[Se.ControlType.Avatar,Se.ControlType.ObjectPageLayout,Se.ControlType.DynamicPage];function VQ(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Dp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Se.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Dp.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(VQ,"getSingleSelectorIdPart");function wQ(e){let t,n=e.split(":::");if(n.length===1)t=VQ(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Dp.UIAnnotationTerms.LineItem}`,`/@${Dp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(wQ,"getFacetID");function MQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,f,p;try{let d=Ar(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((f=m[0])!=null&&f.includes(Se.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let S=wQ(v);v=tP(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${d.content.property}`]={controlId:v,propertyId:d.content.property,facetId:S,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:Se.LogSeverity.Error,message:Q.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,f])=>(s[l]=f,s),{})}o(MQ,"prepareFlexChanges");var kQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function jQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&eP(i,t,r)}o(jQ,"addFlexChangeToColumns");function YV(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Se.VOCWITHSLASH)];for(let f in e){let p=e[f],d=p.propertyId===t,m=t==="columns"&&p.controlType===Se.ControlType.TableColumn;(d||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?jQ(a,p,r.properties,n):ay(n,p,r))}}o(YV,"importFlexChangesOfTable");function UQ(e,t){return e.facetId==="template"&&t}o(UQ,"isStandardActionFlexChange");var zV=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function $Q(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let f=t.controlId.split("::"),p=t.controlType===Se.ControlType.GroupElement&&l,d=((I=t.facetId)==null?void 0:I.includes(Se.ACTIONTITLEPREFIX))&&!r&&s,m=r&&zV(f,r.split("::"))&&s,v=e.title&&zV(f,e.title.split("::"),!0),S=!t.facetId&&_Q.includes(t.controlType),b=UQ(t,l);return p||d||m||v||S||b}o($Q,"matchSelector");function BQ(e,t,n,i,r,a){var f;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((f=e.properties[d.propertyId])==null?void 0:f[Se.SchemaTag.controlType]))continue;$Q(e,d,s,l,r,a)&&(t[i]=d.newValue)}}o(BQ,"importFlexChanges");function HQ(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(oe(n.logger,{severity:Se.LogSeverity.Warning,message:Hl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(HQ,"checkDeprecatedProperties");function GQ(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,f,p;s!=null&&s.title?(f=e.manifest.path(t,{},s.title),p=Kn(n.manifest,f),Object.values(p).length===0&&(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f))):(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return HQ(p,a,n,f),p}o(GQ,"importManifestSetting");function ji(e,t,n,i,r,a){var f,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let d in n.properties||n){let m=Mn(t,d);if(d==="columns"||m!=null&&m.flex)if((f=r==null?void 0:r.type)!=null&&f.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(d==="columns"){let v=n.properties[d].$ref.split($)[1],S=e.jsonSchema.definitions[v];YV(i.flexChanges,d,t,r,S,l)}else YV(i.flexChanges,d,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);BQ(n,t,i.flexChanges,d,v,a)}else m!=null&&m.manifest&&GQ(m,i.pageKeys,e,t,d,s,r)}}o(ji,"transferSettingsAndFlexChanges");function ZV(e,t,n,i){let r=er(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${O_}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${qm}${r}`;break}}return r.replace(/@/g,"")}o(ZV,"getActionId");function WQ(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],f=ZV(s,a,"","");e.actions[a]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,l,{}),ji(n,e[Se.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},f)}}}o(WQ,"fillStandardActions");function my(e,t,n,i,r,a){var l;n[Se.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let f={};a&&(f.id=a);for(let p in t){let d=_s(p),m=ZV(s,d,r,a);m&&(n[Se.PropertyName.actions][d]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,s),ji(e,n[Se.PropertyName.actions][d],e.jsonSchema.definitions[s],i,f,m)),(l=n[Se.PropertyName.actions])!=null&&l[d]&&Object.keys(n[Se.PropertyName.actions][d]).length===0&&delete n[Se.PropertyName.actions][d]}}WQ(n,t,e,i),Object.keys(n[Se.PropertyName.actions]).length===0&&delete n[Se.PropertyName.actions]}o(my,"fillActions");function KQ(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"Field");let f=(s=t.title)!=null&&s.includes(Se.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;ji(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Se.DefinitionName.Field],r,{},f),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(KQ,"fillFields");function XQ(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(XQ,"prepareTableSchema");function QQ(e,t,n,i,r){var l,f;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=r.factory.createInstance(Se.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Se.PropertyName.table]=d;let m=e.jsonSchema.definitions,v=XQ(p,t,m);ji(e,i[t.id],t.schema,r,{title:t.title}),ji(e,i[t.id][Se.PropertyName.table],v,r,t);let S=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(S!=null&&S.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");my(e,S.properties,i[t.id][Se.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Se.PropertyName.table].toolBar).length===0&&delete i[t.id][Se.PropertyName.table].toolBar}}o(QQ,"fillTableInConfig");function qQ(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Um(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};pf(n[t],e,i,Se.PageTypeV2.ObjectPage,l,r)}}o(qQ,"fillCustomColumnsInConfig");function YQ(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Se.PropertyName.chart]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(ji(e,i[t.id],t.schema,r,{title:t.title}),ji(e,i[t.id][Se.PropertyName.chart],e.jsonSchema.definitions[Se.DefinitionName.ObjectPageChart],r,t))}o(YQ,"fillChartSection");function zQ(e,t,n,i){n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&ji(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(zQ,"fillHeaderSection");function JQ(e,t,n,i){var f;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&ji(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&my(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&KQ(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(JQ,"fillFormSection");function JV(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&ji(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,lP(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(JV,"fillSubSection");function lP(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let f=l.replace(/\/@/g,"::"),p={id:f,type:kQ(t[l]),schema:t[l],title:ES(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],QQ(e,p,n,i,r),qQ(e,f,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],YQ(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],JQ(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],JV(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],zQ(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],JV(e,p,n,i,r))}}o(lP,"fillSectionsInConfig");function ZQ(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];ji(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(ZQ,"fillCustomSectionsInConfig");function e9(e,t){var d,m;let n=t.factory.createPageInstance(Se.PageTypeV2.ObjectPage);ji(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;ji(e,n.globalTableSettings,i[Se.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.ObjectPageHeader);let r=i[Se.DefinitionName.ObjectPageHeader]?i[Se.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];ji(e,n.header,r,t);let a=i[Se.DefinitionName.ObjectPageHeaderActions];a&&my(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Se.DefinitionName.FooterActions];s&&my(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageLayout"),ji(e,n.layout,i[Se.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Se.DefinitionName.HeaderSections];if(l){let v=(d=t.v2Page.component)==null?void 0:d.settings;lP(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let f=i[Se.DefinitionName.Sections];if(f){let v=(m=t.v2Page.component)==null?void 0:m.settings;lP(e,f.properties,v,n.sections,t)}let p=HV(e.manifest,e.entitySet);return ZQ(p,n,t,i,e),n}o(e9,"fillConfig");function hy(e){Qt();let t=gf(e);if(!t)return;let n=e.entitySet,i=[],r=zc(t,e.entitySet,i);if(mf(r,e.logger,n),!r)return;let a=MQ(e.flex,n),s=new ki;return e9(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(hy,"createObjectPageConfigV2");var zr=Z(re());var uP=Z(Gb());var Rt=Z(re());var t9=["colorPalette","tabs"];function n9(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(n9,"createCard");function e1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),e1(e,n.join("|"))}return t}o(e1,"findAvailableId");function _p(e,t,n,i,r,a,s){i!=null&&i.properties&&fP(e,t,n,i.properties,r,a,s)}o(_p,"transferManifestEntriesOVP");function Jc(e,t,n,i){return e.createInstance(Rt.PageTypeV2.OverviewPage,i,n,t)}o(Jc,"assignReflectMetadataRules");function i9(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Jc(e.factory,i[1],t,"CustomCard"),_p(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(i9,"processAnyOfDefinitionsOfOVP");function r9(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!t9.includes(i)?t[i]=(0,uP.default)(t[i]||{},r||{},{arrayMerge:vS}):t[i]=r}o(r9,"checkSyncRuleForExport");function o9(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in Rt.v2.CardSettingsType||n==="settings")l.settings=(0,uP.default)(l.settings||{},r||{},{arrayMerge:vS});else if(r!==void 0){let f=e.manifest.export;r9(f,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(o9,"transferToManifest");function a9(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Rt.v2.cardTemplateTypeMap))].filter(r=>r!==n);i.push(n);for(let r of i){let a;Object.values(Rt.v2.CardTemplateType).includes(r)?a=Object.keys(e.appSchema.definitions).filter(s=>{var f;let l=(f=e.appSchema.definitions[s].properties)==null?void 0:f.template;if(l!=null&&l.enum)return l.enum.indexOf(r)>-1;if(l!=null&&l.const)return l.const===r}):a=["CustomCard"],e.currentObject[t]=Jc(e.factory,a[0],e.currentObject[t],"CustomCard"),n9(t,e.exportResults.manifest[Rt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,_p(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Rt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Rt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated)})}o(a9,"transferCards");function s9(e,t){if(t==="cards")a9(e);else{let n=Uo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Rt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Jc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],_p(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],fP(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],fP(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(s9,"exportOfObject");function fP(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!jl(a,s)&&a[a.length-1]!=="anyOf")continue;let f=e[l],p=Mn(e,l),d={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:f,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(d.currentObject=e[a[a.length-2]],f=i9(d)):f&&typeof f=="object"&&i[l]&&s9(d,l),p!=null&&p.manifest&&o9(p,a,l,t,f,e)}}o(fP,"processProperties");function c9(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let f=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=m_(a,n,e.ui5Version,s,f),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=km(p,d);e.exportResults.flexChanges.find(S=>{let b=!1,I=JSON.parse(S);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(c9,"evaluateFlexRule");function l9(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated}}o(l9,"exportConfigValueToManifest");function f9(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)l9(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,fs(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(f9,"evaluateManifestRule");function u9(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Rt.FACETTITLEPREFIX)?r.split(Rt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(u9,"getManifestPathOfSections");function p9(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(p9,"getManifestPathOfTable");function d9(e,t,n,i,r){let a;return t[0]===Rt.PropertyName.sections?a=u9(t,a,n,e,r):t[0]===Rt.PropertyName.table?a=p9(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(d9,"getManifestPath");function g9(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)c9(e,i,t,r,a,n,s);else if(t.manifest){let f=d9(e,i,t,n,a);f9(e,f,t,s,n)}}o(g9,"evaluateExportRule");function m9(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(f=>(f.tabKey===a||a===void 0&&f.tabKey===""||a&&t.sectionKey===a)&&f.extensionType===t.extensionType);if((!l||l.length===0)&&(bh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Rt.ViewTemplateType.ResponsiveTableColumnsExtension))){let f=e.replace(Rt.ViewTemplateType.ResponsiveTableColumnsExtension,Rt.ViewTemplateType.ResponsiveTableCellsExtension);bh(n,f,t.appId,t.exportResults.fragments),delete n[f]}}}o(m9,"deleteObsoleteColumn");function h9(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Z_(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,m9(r,e,n))}o(h9,"deleteObsoleteColumnsFromFragment");function y9(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:f}=Sh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:f,columns:[]}),a[l].columns.push(s)}return a}o(y9,"clusterConfigColumnsByPath");function t1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Rt.v2.TableColumnExtensionTypeV2){let{path:f}=Sh(e.v2Page,s,r,l);if(!f)continue;let p={path:f,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{h9(p)}catch(d){e.logger.error(d.message)}}if(t){let l=y9(t,n,e.v2Page,s,r);for(let f in l)jA(e.exportResults,f,l[f].columns,e.appId,l[f].viewTemplateType,e.logger)}}o(t1,"transferColumnExtensions");function T9(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=e1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(S=>{var b;return(b=S.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),v=e.appSchema.definitions[m[m.length-1]];Ms(e,t[p],i,[...r,s[p]],v)}let f=Kn(e.exportResults.manifest,fA());for(let p in f)nP(p,l)&&!s.includes(p)&&delete f[p]}o(T9,"transferManifestExtensions");function v9(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Rt.PropertyName.table){n=e[i-1];break}return zn(n,t)}o(v9,"getSectionId");function b9(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let f=Uo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Ms(t,f.configObject,r,[...a,i],f.targetDefinition,l)})}o(b9,"transferIndexTable");function S9(e,t,n,i,r,a){let s,l=Um(e.$ref);l&&(s={target:l,key:v9(t,n)}),t1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(S9,"transferCustomColumns");function A9(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let f=Uo(t.appSchema,n,i,l,r,t.factory,t.pageType);f&&Ms(t,f.configObject,a,[...s,r],f.targetDefinition,f.title)})}o(A9,"handleAnyOfDefinitions");function E9(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")T9(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){S9(l,t,s,e,n,a);return}else a?Ms(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&A9(l,e,s,n==null?void 0:n[r],r,i,t)}o(E9,"transferComplexProperty");function Ms(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!jl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let f=t&&wm(t,l),p=f?[...n,f]:n,d=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Uo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(g9(e,d,t,[...i],p,a,l),b9(s,e,a,l,p,i),s===void 0||typeof s=="object")E9(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){t1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Ms,"transferManifestEntriesAndFlexChange");function n1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Jc(r,i,n[i],s),a.push(i),pP(r,n[i],e,l.properties,a)}o(n1,"transferSettingsOfRef");function P9(e,t,n,i,r,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split($);n1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf&&e.template in zr.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let l=`${$}${zr.v2.cardTemplateSettingsMap[e.template]}`.split($);n1(i,l,e,t,r,a)}}o(P9,"processPropertiesOfObject");function x9(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),f=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(f,t))try{Gl(s,f,t,e)}catch(p){oe(i.logger,{severity:zr.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Nm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&P9(e,t,r,i,a,n)}o(x9,"processOvpProperty");function pP(e,t,n,i,r){for(let a in i)x9(t,a,r,n,i,e)}o(pP,"processOvpProperties");function C9(e,t,n){pP(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[zr.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[zr.ManifestSection.ovp].cards[i].template,a=zr.v2.cardTemplateTypeMap[r]??"CustomCard",s=[...new Set(Object.values(zr.v2.cardTemplateTypeMap))].filter(l=>l!==a);s.push(a);for(let l of s)e.cards[i]=Jc(n,l,e.cards[i]??{},"CustomCard"),e.cards=Jc(n,l,e.cards,"CustomCard"),pP(n,e.cards[i],t,t.jsonSchema.definitions[l].properties,["cards",i])})}o(C9,"addSettings");function yy(e){let t=new ki,n=t.createPageInstance(zr.PageTypeV2.OverviewPage);return e.jsonSchema&&C9(n,e,t),n}o(yy,"createOverviewPageConfig");var xt=Z(re());function I9(e,t,n,i){var p,d;let r=ly(e.manifest,i),a=e.jsonSchema.definitions;fy(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),cP(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=_s(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let S=v;t.filterBar.selectionFields[S]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[S],e.manifest,a.SelectionFieldDateSettings,i,e.logger,S)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=_s(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let f=(d=(p=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:d.keyPerformanceIndicators;f&&Object.keys(f).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(I9,"addSettings");function Ty(e){if(Qt(),!gf(e))return;let n=new ki,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=hf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(mf(a,e.logger,a==null?void 0:a.entitySet),!!a)return I9(e,i,n,r[0]),e.flex.forEach(s=>{Ar(s)&&cy(i,s,e.jsonSchema,e.logger)}),pf(i,e,a,xt.PageTypeV2.AnalyticalListPage),dy(i),i}o(Ty,"createAnalyticalListPageConfig");var ti=Z(re());var Tf=require("@sap-ux/vocabularies-types/vocabularies/UI");var R9=["filterBar","table","footer"],L9=ti.UIVOCABULARYALPHADOT.substring(1);function dP(e,t,n,i){gs(e,n,"QuickVariant"),B_(n,"QuickVariantX",t),H_(i,n,"QuickVariantX")}o(dP,"addEnumForVariantPaths");function F9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tf.UIAnnotationTerms.SelectionPresentationVariant,Tf.UIAnnotationTerms.SelectionVariant,Tf.UIAnnotationTerms.PresentationVariant];Nc(e,r,i)}o(F9,"addEnumForFilterBarAnnotationPath");function N9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Tf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Tf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(L9,""),f=e[l];f?s?i=f:(i=f.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(N9,"getPresentationVariantForLineItem");function D9(e,t,n){if(ws(t,"annotationPath",n))return;let i=N9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Bu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(D9,"getLineItemAnnotation");function i1(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;eA.forEach((f,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+f;let d=f.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[d]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[f]=m});let{entityType:a,uIAnnotations:s}=ql(e);if(s){let f=[],p=df(e.manifest[ti.ManifestSection.generic].pages,f);Ql(n);let d=D9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(d){let v=Sr(a.fullyQualifiedName,d.term,d.qualifier);eA.forEach(S=>{n.definitions[S][ti.SchemaTag.annotationPath]=v})}Kl(!1,n,d,a);let m=s.SelectionFields;if(zm(n,m,a),Yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],__(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return oe(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Xl(n,a,p,e.manifest,e.fragments),dP(a,e.entitySet,n,e.serviceAVT),F9(a,n,ti.DefinitionName.ListReportFilterBar),G_(a,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return $o(n,R9),n}o(i1,"generateListReportSchemaV2");var we=Z(re());var Vp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function r1(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(r1,"getClassesForSingleSection");function o1(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],r1(n,i,t),o1(n,t)}}o(o1,"getSubsectionClasses");function _9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],r1(i,r,n),o1(i,n)}o(_9,"getExportClassesForSections");function V9(e,t){let n=df(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(V9,"findV2Page");function gP(e,t){let n=Mm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(gP,"calculateBaseId");function a1(e,t,n=!1){let i=Vp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=V9(a,e),l=new ki,f=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:gP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ms(p,f,[],[],e.jsonSchema)}return i}o(a1,"exportListReportPage");function s1(e,t,n=!1){let i=e.page.config,r=Vp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=hf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new ki,f=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:gP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ms(p,f,[],[],e.jsonSchema)}return r}o(s1,"exportAnalyticalListPage");function c1(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Vp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=zc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let f=new ki,p=f.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&_9(i,p,f),Object.keys(i).length!==0){let d={v2Page:l,exportResults:a,appId:e.appId,baseId:gP(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:f,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ms(d,p,[],[],e.jsonSchema)}}return a}o(c1,"exportObjectPage");var l1=o(e=>{let t=Vp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ki,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&_p(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),w9=o((e,t,n)=>{var s;let i=Vp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new sh,e);r.settings=Object.assign(new Ts,e.settings);for(let l in n.definitions.AppSettings.properties){let f=Mn(r.settings,l);if(f&&f.manifest){let p=f.manifest.path(),d=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],fs(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&lA(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function f1(e,t){if(e[we.SchemaType.ListReport])return hP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return c1(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return l1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return w9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return s1(e[we.SchemaType.AnalyticalListPage],t)}o(f1,"exportPageV2");function mP(e,t,n=!1){if(e[we.SchemaType.ListReport])return hP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return c1(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return l1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return s1(e[we.SchemaType.AnalyticalListPage],t,n)}o(mP,"exportConfigEntityByPathV2");var _a=Z(re());function u1(e,t){e.anyOf&&e.anyOf.forEach(function(n){Zc(n,t)})}o(u1,"addAnyOfToReferredTypes");function by(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(by,"getSingleItem");function Zc(e,t){if(typeof e!="object")return;let n=Aa(e);n&&p1(n,t),u1(e,t),Zc(e.additionalProperties,t),Zc(by(e),t)}o(Zc,"addReferredTypesFromElement");function p1(e,t){t.referredTypeNames.add(e);let n=t.types[e];Zc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Zc(r,t)):Zc(by(n),t),Zc(n.additionalProperties,t)}o(p1,"addReferredTypesFromType");function vy(e,t,n,i,r){if(typeof t!="object")return;let a=Aa(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=Fm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let f={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};yP(n,f,e.syncRuleProvider,l,r)}else p1(a,r)}else yP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(vy,"applyAdaptationInfoToElement");function yP(e,t,n,i,r){var v,S;let a={element:i},s=n_(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;vy(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=a.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},f=i.properties,p;if(f)p=f;else{let b=by(i);if(b)f={items:b},p=i;else return}let d,m=((S=a.referenceAdaptation)==null?void 0:S.processingRulesAdapter)||function(b,I){d=d||n&&new n;let F=Mn(d,b);F!=null&&F.processingRuleAdapter&&F.processingRuleAdapter(I,l,e)};for(let b in f){let I=f[b];if(typeof I!="object"){p[b]=I;continue}let F={element:{...I}};m(b,F),F.element?(F.controlId?F.element[_a.SchemaTag.controlId]=`${t.pageInfo.controlId}--${F.controlId}`:F.manifestPath&&(F.element[_a.SchemaTag.artifactType]="Manifest",F.element[_a.SchemaTag.manifestPath]=F.manifestPath),u1(F.element,r),vy(F.referenceAdaptation,F.element,e,l,r),vy(F.additionalPropertiesAdaptation,F.element.additionalProperties,e,l,r),vy(F.itemsAdaptation,by(F.element),e,l,r),p[b]=F.element):delete p[b]}}o(yP,"adjustElement");function M9(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(M9,"getViewId");function d1(e,t,n){var U;Qt();let i=Ac(e.manifest,_a.FioriElementsVersion.v2,n);if(!i||i===_a.TemplateType.OverviewPageV2)return;let{parent:r}=Ao(e.manifest,e.pagePath);if(!r)return;let a=r.component;if(ws(r,"entitySet",n,"string",!0)||ws(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,f=t(l),p=f==null?void 0:f.genericSchema,d=f==null?void 0:f.syncRuleProvider;if(!d||!p)return p;let m=e.parsedAnnotations||Gr(e.annotations,n),v=(U=m==null?void 0:m.entitySets)==null?void 0:U.find(se=>se.name===s);if(!v)return p;let S=structuredClone(p),b=M9(e.appId,l,s),F={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},j={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:_a.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},W={types:S.definitions,referredTypeNames:new Set};yP(j,F,d,S,W);for(let se in S.definitions)W.referredTypeNames.has(se)||delete S.definitions[se];return S}o(d1,"getAdaptedSchema");var Mp=Z(re());var TP=Z(re());var g1=Z(re());var Ay=class Ay{};o(Ay,"Share"),h([y({flex:{controlType:o(()=>g1.ControlType.Button,"controlType")},processingRuleAdapter:o(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],Ay.prototype,"visible",2);var Sy=Ay;var ks=class{};o(ks,"ListHeaderActions"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Sy}}})],ks.prototype,"Share",2),ks=h([y({processingRuleAdapter(e){e.element[TP.SchemaTag.icon]="Export"}})],ks);var Va=class{};o(Va,"ListHeader"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:ks}}})],Va.prototype,"actions",2),Va=h([y({processingRuleAdapter(e){e.element[TP.SchemaTag.icon]="Header"}})],Va);var Py=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ma=Z(re());var js={since:"1.77.0"},Ey={flex:{controlType:o(()=>Ma.ControlType.SmartFilterBar,"controlType")},processingRuleAdapter(e){e.controlId="listReportFilter"}};function vP(e){return BV(e,function(t,n){return{manifestPath:Vs(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}o(vP,"getSyncRuleForDateRangeProperty");var vf=class vf{};o(vf,"DateRange"),h([y(vP("useDateRange")),P(js)],vf.prototype,"useDateRange",2),h([y(vP("selectedValues")),P(js)],vf.prototype,"selectedValues",2),h([y(vP("exclude")),P(js)],vf.prototype,"exclude",2);var bP=vf,wp={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=Vs(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var Zr=class{};o(Zr,"FilterField"),h([y(wp),P(js)],Zr.prototype,"selectedValues",2),h([y(wp),P(js)],Zr.prototype,"exclude",2),h([y(wp),P(js)],Zr.prototype,"customDateRangeImplementation",2),h([y(wp),P(js)],Zr.prototype,"filter",2),h([y(wp),P({since:"1.90.0"})],Zr.prototype,"defaultValue",2),Zr=h([y({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,r=n.entityType,a=i.value,s=i.type==="PropertyPath"?Ul(i,r):a;e.element.description=s,e.element[Ma.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ma.SchemaTag.keys]=[{name:Ma.SchemaKeyName.value,value:`${a}`}]}})],Zr);var el=class{};o(el,"FilterFields"),el=h([y({processingRuleAdapter(e,t,n){let i=t.specificParams,r=i.fieldDefinitions,a;for(let l in r){let f=r[l],p={$ref:$+"FilterField"};p[Ma.SchemaTag.propertyIndex]=f.position,a=a||{},a[l]=p}e.element.properties=a,delete e.element.additionalProperties;let s=o(function(l,f){let p={accessor:l,selectionFieldInfo:r[l],entityType:i.entityType};f.referenceAdaptation={suffix:at(l),syncRuleProvider:Zr,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],el);var Jr=class Jr{};o(Jr,"CommonFilterBar"),h([y(Ey)],Jr.prototype,"liveMode",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"smartVariantManagement",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"variantManagementHidden",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"subTitleIfVariantMgmtHidden",2),h([y(Ey)],Jr.prototype,"showClearOnFB",2),h([y(Ey)],Jr.prototype,"showFilterConfiguration",2),h([y(Ey)],Jr.prototype,"showRestoreOnFB",2),h([y({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:bP}}}),P(js)],Jr.prototype,"dateSettings",2),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:el}}})],Jr.prototype,"selectionFields",2);var SP=Jr,wa=class extends SP{};o(wa,"ListReportFilterBar"),h([y({manifest:{},processingRuleAdapter(t,n){let i=[Py.UIAnnotationTerms.SelectionPresentationVariant,Py.UIAnnotationTerms.SelectionVariant,Py.UIAnnotationTerms.PresentationVariant],r=n.specificParams;Nc(r.entityType,i,t.element);let a=Vs(n.pageInfo.pagePath);t.manifestPath=a}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),P({since:"1.86.0"})],wa.prototype,"annotationPath",2),wa=h([y({processingRuleAdapter(e,t){var l;e.element[Ma.SchemaTag.icon]="Filter";let n=t.specificParams,i=((l=n.uIAnnotations)==null?void 0:l.SelectionFields)??[],r={},a=!1;i.forEach((f,p)=>{let d=rr(f),m=["Date","DateTime","DateTimeOffset"].includes(d);a=a||m,r[f.value]={field:f,dataType:d,hasDateRangeOption:m,position:p}});let s={entityType:n.entityType,fieldDefinitions:r,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],wa);var eo=class{};o(eo,"ListReportNew"),h([y({flex:{controlType:o(()=>Mp.ControlType.DynamicPage,"controlType")},processingRuleAdapter(t){t.controlId="page"}})],eo.prototype,"fitContent",2),h([y({processingRuleAdapter(t){t.element[Mp.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Va}}})],eo.prototype,"header",2),h([y({processingRuleAdapter(t,n){var r;if((r=n.specificParams.settings)!=null&&r.isWorklist){delete t.element;return}t.element[Mp.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:wa}}})],eo.prototype,"filterBar",2),eo=h([ir({id:jV,pageId:Fp}),y({processingRuleAdapter(e,t,n){let i=Vs(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=ql(n),{parent:s}=Ao(n.manifest,i),l={settings:s,entityType:r,uIAnnotations:a};e.referenceAdaptation={specificParams:l}}})],eo);var xP=require("path"),A1=require("fs");var Cr=Z(re());function k9(e){let t={};return e.flex.forEach(function(i){let r=Ar(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(k9,"getChangeMapFormImportParameters");function AP(e,t,n,i,r){if(e===void 0)return;let a=Aa(t),s=a?n[a]:void 0;if(t[Cr.SchemaTag.conversionExit]&&(e=uy(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return AP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},f=!1;for(let p in t.properties){let d=t.properties[p],m=AP(e[p],d,n,i,r);m!==void 0&&(f=!0,l[p]=m)}return f?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(AP,"getConfigRep");function m1(e,t,n,i,r,a,s,l){let f=AP(r,a,s,l,t);if(f===void 0)return;let p=e,d=[];n.forEach(function(m){d.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(d),p=p[v]}),p[i]=f}o(m1,"transferValueToConfig");function j9(e,t,n,i,r,a,s,l){let f=r[Cr.SchemaTag.controlId],p=l[f];if(!p)return;let d=-1,m=p.find(function(v,S){return v.content.property===i?(d=S,!0):!1});m&&(m1(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[f]:p.splice(d,1))}o(j9,"importFlexChangesToConfigProperty");function U9(e,t,n,i,r,a,s){let l=r[Cr.SchemaTag.manifestPath],f,p;Array.isArray(l)?(p=l,f=!0):(p=l.path,f=l.addTargetPropertyToPath);let{hasPath:d,value:m,parent:v}=Ao(s.manifest,p,f?i:void 0);if(!d)return;m1(e,t,n,i,f?m:v,r,a,s)}o(U9,"importManifestToConfigProperty");function h1(e,t,n,i,r,a,s){if(Da(n.properties))for(let l in n.properties){let f=n.properties[l];if(!Da(f))continue;let p=f[Cr.SchemaTag.artifactType];if(p===Cr.ArtifactType.FlexChange)j9(e,t,i,l,f,r,a,s);else if(p===Cr.ArtifactType.Manifest&&f[Cr.SchemaTag.manifestPath])U9(e,t,i,l,f,r,a);else{let d=Aa(f),m=d?r[d]:void 0;if(Da(m)){let v=i.concat([{propertyName:l,propertyType:d.split("<")[0]}]);h1(e,t,m,v,r,a,s)}}}}o(h1,"importDefinitionIntoConfig");function y1(e,t,n){var m;let i=Ac(e.manifest,Cr.FioriElementsVersion.v2,e.logger);if(!i||i===Cr.TemplateType.OverviewPageV2)return;let{parent:r}=Ao(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=k9(e),f=e.jsonSchema,p=f.definitions,d=s.propertyInstanceProvider([]);return h1(d,s,f,[],p,e,l),d}o(y1,"getConfigForPage");var Ii=Z(re());function $9(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Ii.SchemaTag.controlId],controlType:e[Ii.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o($9,"addFlexChangeInfoToList");function T1(e,t,n,i){var l;if(n[Ii.SchemaTag.conversionExit])return uy(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let f in n.properties){let p=n.properties[f];if(!Da(p))continue;let d=Aa(p);p=d&&i.globalTypeDefinitions[d]||p;let m=r[f];s=s||m!==void 0;let v=T1(e?e[f]:void 0,m,p,i);v===void 0?delete r[f]:(r[f]=v,a=!0)}return a?r:s?Object.keys(t).every(f=>Da(n.properties[f]))?void 0:r:t}o(T1,"getValueForManifest");function EP(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return EP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return EP(e[r],t[r])})}o(EP,"isDifferent");function B9(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(B9,"isEmpty");function H9(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],f=[];e.some(function(m,v){if(v===s)return!0;let S=a[m];if(typeof S!="object"||S===null)return!0;a=S,f.push(a)});let p=f.length===s?a[l]:void 0,d=T1(t,p,i,r);if(EP(d,p))if(d===void 0){n.manifestChangeIndicator=Ii.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=f[m];if(!B9(v))break;let S=f[m-1],b=e[m];delete S[b]}}else{for(let m=f.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=d,n.manifestChangeIndicator=p===void 0?Ii.ChangeIndicator.Created:Ii.ChangeIndicator.Updated}}o(H9,"applyManifestChange");function G9(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Ii.SchemaTag.artifactType];if(s===Ii.ArtifactType.FlexChange)$9(i,a,n,t.flexList);else if(s===Ii.ArtifactType.Manifest&&i[Ii.SchemaTag.manifestPath]){let l,f=i[Ii.SchemaTag.manifestPath];Array.isArray(f)?l=f.concat([n]):(l=f.path,f.addTargetPropertyToPath&&(l=l.concat([n]))),H9(l,a,t,i,r)}else{let l=Aa(i),f=l?r.globalTypeDefinitions[l]:void 0;Da(f)&&v1(a,t,f,r)}}o(G9,"transferConfigPropertyToExportResults");function v1(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Da(s)&&G9(e,t,a,s,i)}}o(v1,"transferConfigToExportResults");function b1(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Ii.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Ii.ChangeIndicator.NoChange,flexList:[],fragments:i};return v1(t,a,e.jsonSchema,r),a}o(b1,"exportPage");var W9=!1,K9={generateListReportSchemaV2(e,t){return i1(e,t)},createListReportConfig(e){return qV(e)},exportListReportPage(e,t,n){return a1(e,t,n)}},PP;function X9(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,xP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,xP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,A1.readFileSync)(t,"utf8"))}o(X9,"getPersistentListReportNewSchema");function Q9(){let e=X9();return function(t){return t===Fp?{genericSchema:e,syncRuleProvider:eo}:void 0}}o(Q9,"createGenericSchemaInfoProvider");function q9(e){return e===Fp?{propertyInstanceProvider:o(function(t){return new eo},"propertyInstanceProvider")}:void 0}o(q9,"getConfigInfo");function S1(e){let{value:t}=Ao(e,[Yo.ManifestSection.generic],"pages");return Array.isArray(t)?[Yo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Yo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(S1,"getPathForRootPage");function Y9(e,t,n){let i=!e.layer||e.layer===Yo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,km(r,t)}o(Y9,"flexInfoToChangeString");function z9(){let e=Q9(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Yo.ManifestSection.app].id=n,i.flexList.map(Y9.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=S1(i);if(!r)return null;let a={appId:((s=i[Yo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return d1(a,e,n.logger)},createListReportConfig(n){let i=S1(n.manifest);return y1(n,i,q9)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Yo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=b1(s),f=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:f,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(z9,"createPageHandlerLRGeneric");function CP(){return W9?(PP=PP||z9(),PP):K9}o(CP,"getPageHandlerLR");function kp(e,t){return CP().generateListReportSchemaV2(e,t)}o(kp,"generateListReportSchemaV2");function xy(e){return CP().createListReportConfig(e)}o(xy,"createListReportConfig");function hP(e,t,n=!1){return CP().exportListReportPage(e,t,n)}o(hP,"exportListReportPage");function Iy(e,t){var n,i;return(n=e.component)!=null&&n.name?Rm(va((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Iy,"generateId");function J9(e,t,n,i){e.navigation={};let r=E1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Iy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(J9,"getPageConfigsAndNavigations");function E1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Iy(a,r);if(!s)continue;let l={pageType:va((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let f=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(f)if(l.pageType===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=xy(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=Ty(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=hy(p)}a.pages&&J9(l,a,t,n)}return n}o(E1,"getPagesAndConfigs");var IP=class IP extends ys{constructor(t){Qt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Iy(n[i],i),a=new Ts,s=_t(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,E1(n,t),a)}};o(IP,"V2AppProvider");var Cy=IP;function jp(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let f=Iy(l,s);i[f]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let f=jp(l.pages,t,n);for(let p in f)i[p]=f[p]}}return i}o(jp,"getPages");var tl=Z(re());var OP=class OP extends ys{constructor(t){let n={},i=t.manifest[tl.ManifestSection.ovp],r=new Ts,a=_t(tl.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(tl.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},f={pageType:tl.PageTypeV2.OverviewPage,config:yy(l),entitySet:i.globalFilterEntitySet},p=Rm(f.pageType,f.entitySet);n[p]=f,super(t,p,n,r)}};o(OP,"V2OvpProvider");var Oy=OP;var _=Z(re()),nl=require("@sap-ux/vocabularies-types/vocabularies/UI");var Z9=["header","filterBar","chart","table"],RP="@UI.LineItem";function LP(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=Sr(e.fullyQualifiedName,nl.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var d,m;let l=s.value,f="SelectionField::"+at(s.value);s.type==="PropertyPath"&&(l=Ul(s,e)),i.properties[f]={$ref:$+f},i.properties[f][_.SchemaTag.propertyIndex]=a;let p=rr(s);t.definitions[f]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[f][_.SchemaTag.isViewNode]=!0,t.definitions[f][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((d=s.$target)==null?void 0:d.fullyQualifiedName.indexOf("@"))>-1?t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[f][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[f][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(LP,"addSelectionFields");function e6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${nl.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(e6,"getVisualFilters");function t6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(t6,"getPropertiesIndex");function n6(e,t,n,i){var s,l,f,p,d,m;let r=t6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let S=n[v];if(!S.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=vt(_.DefinitionName.VisualFilter,v,t);(s=S.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${S.visualFilter.valueList}`);let j=(m=(d=(p=(f=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(W=>W.name===v))==null?void 0:f.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();F.description=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(n6,"addVisualFilters");function i6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},P_(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&ps(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(i6,"applyCustomFilterFields");function r6(e,t,n,i){var l,f;let r=e6(n),a=i&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:f.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},n6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=LP(e,t,a,s),i6(t,s,n)}o(r6,"addFilterBar");function P1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(f=>{let p=at(`${_.DefinitionName.ChartToolBarAction}<${f.Action}>`),d=ci(f,r),m=f.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${f.Action}`]={$ref:$+p,description:d};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=f.$Type,v[_.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=f.fullyQualifiedName,l++})}}o(P1,"defineActions");function x1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(f=>f.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(f=>f.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(f=>f.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Bl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(x1,"findTheRightVisualization");function o6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(o6,"analyzeChartAnnotation");function a6(e,t,n,i,r,a){var f;let{visualization:s,targetAnnotation:l}=x1((f=e.PresentationVariant)==null?void 0:f.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=RP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(a6,"analyzeSPVforView");function bf(e,t,n,i,r,a){let s,l,f=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=f&&t[f];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],f.startsWith("PresentationVariant")){let{visualization:d,targetAnnotation:m}=x1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else{if(f.startsWith("SelectionPresentationVariant"))return a6(p,s,i,r,a,l);if(f.startsWith("SelectionVariant")){let d=RP,m=`/${s}/@${nl.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("LineItem")){let d=RP;p.qualifier&&(d+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("Chart")){let{visualization:d,targetAnnotation:m,chartTitle:v}=o6(s,e,p,i);return{visualization:d,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(bf,"analyzeViewAnnotation");function s6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Ia(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(s6,"addALPChartView");function c6(e,t,n,i,r,a){var j,W,U,se,ee,le,Le,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=(U=(W=t==null?void 0:t[0])==null?void 0:W.primary)==null?void 0:U[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:f}=bf(l,s,n.serviceAVT,"primary",void 0,n.logger);s6(e,l,f,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,P1(e,p,s,f,n.entityType);let{visualization:d,targetAnnotation:m}=bf((Le=(le=(ee=t==null?void 0:t[0])==null?void 0:ee.secondary)==null?void 0:le[0])==null?void 0:Le[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];d||i?(v.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:$+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let S=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(S)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],S.additionalProperties=!1,S.description="Table (key: secondary)",S.title="Table",d?(delete S.properties,S.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(S.properties={}),S[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(d&&d.indexOf(_.FacetBase.LineItem)>-1?(b=d.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ic(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");S[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,S[_.SchemaTag.key]="secondary",S[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Cc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;xa(e,r,n.logger,void 0,F),ho(e,F,_.DefinitionName.CustomActionPosition)}o(c6,"addALPViews");function l6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return P1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(l6,"addViewChartDefinitions");function f6(e,t,n,i,r,a){let s=l6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(f6,"addViewChart");function u6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),ms(l.properties.toolBar,_.DefinitionName.ToolBar,s);let f=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||f,title:f},ms(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],d={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Ic(d,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(u6,"addViewLineItems");function p6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(p6,"addTagsToView");function d6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(d6,"getTargetEntityType");function g6(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${nl.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);ms(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),Cc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Oc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let f=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;xa(e.appSchema,i,t.logger,p,f,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${d}`,ho(e.appSchema,f,d)}o(g6,"addViewCustomExtensions");function m6(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)u6(n,t,e,n.targetAnnotation,i),g6(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)f6(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o(m6,"addLRViewParts");function h6(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let f of t){if(!f[_.SchemaTag.key])continue;let p,d=d6(n.entitySet,f,n),m=d==null?void 0:d.annotations.UI,{visualization:v,targetAnnotation:S,namespace:b,title:I}=bf(f==null?void 0:f[_.SchemaTag.annotationPath],m,n.serviceAVT,f[_.SchemaTag.key],void 0,n.logger);f.entitySet&&(p=(l=n.entityType.navigationProperties.find(W=>W.targetTypeName===b))==null?void 0:l.name);let F=at(f[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:S,navPropName:p,targetEntityType:d,title:I,entitySet:f.entitySet};m6(v,s,j,n,i,m,f),p6(s,F,b,f)}}o(h6,"addLRViews");function y6(e,t,n,i,r,a){var d,m,v,S,b,I,F,j,W,U,se,ee,le;let s=e.definitions[a],{visualization:l,targetAnnotation:f,namespace:p}=bf(n,(d=t.entityType)==null?void 0:d.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Le=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${at(Le)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],ms(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=f,Ue.properties.columns={},ms(Ue.properties.columns,D),delete s.properties,ms(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Le];$e||oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Le})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Ic(qe);let rn=(v=Le.split("#"))==null?void 0:v[1],Bt=rn?`@${nl.UIAnnotationTerms.LineItem}#${rn}`:`@${nl.UIAnnotationTerms.LineItem}`;Cc(e,i,t.logger,void 0,D,Bt),Oc(e,D,i,void 0,Bt);let At=`${_.DefinitionName.Actions}<${D}>`,Yt=oh(e,D,_.DefinitionName.CustomTableAction);xa(e,i,t.logger,Jt(Yt),At,Bt),ho(e,At,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,ms(s.properties.columns,_.DefinitionName.LineItems);let Le=(I=(b=(S=t.entityType)==null?void 0:S.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Le&&!((W=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&W.paths)&&oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Le,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ic(D),Cc(e,i,t.logger),Oc(e,_.DefinitionName.LineItems,i),Le&&!((ee=(se=(U=i.options)==null?void 0:U.settings)==null?void 0:se.views)!=null&&ee.paths)&&(s[_.SchemaTag.annotationPath]=Sr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Le.term,Le.qualifier));let Ue=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;xa(e,i,t.logger,void 0,Ue),ho(e,Ue,_.DefinitionName.CustomActionPosition)}}o(y6,"adaptTableDefinition");function T6(e,t,n){var i,r,a,s,l,f,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(f=t==null?void 0:t.annotations.UI)==null?void 0:f.PresentationVariant)==null?void 0:p.term)}}o(T6,"getDefaultAnnotationPath");function v6(e,t,n,i){var f,p,d,m,v;let r=(d=(p=(f=t.options)==null?void 0:f.settings)==null?void 0:p.views)==null?void 0:d.paths,a=n.entityType,s=T6(t,n.entityType,n.templateType),l=A_(e,n);r6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(y6(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],h6(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(c6(e,r,n,s,t,l),Oc(e,_.DefinitionName.LineItems,t))}o(v6,"addTableAndViews");function b6(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Bm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,ho(e,i,l)}o(b6,"addHeaderActions");function Up(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,gs(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let f=$m(l,n,e.entitySet,i);if(!f)return r;b6(r,f,e.logger),v6(r,f,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,$o(r,Z9),r}o(Up,"generateListReportSchemaV4");var Gi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(re());var yk=Z(Sc()),Tk=Z(hk()),vk=Z(dx());var bk=Z(re()),Sk=Z(re());function KY(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(KY,"findElementByXMLPath");function Ak(e,t){return e[t]?!1:(e[t]={},!0)}o(Ak,"ensureObjectExists");function XY(e,t){let n={},i=Jt(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(XY,"getPropertiesFromRef");function QY(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:f}=e,{properties:p={}}=r,d=Ak(l,i),m=l[i];return ll({fullSchema:f,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||d}o(QY,"traverseDefaultAggregation");function qY(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(qY,"isDefaultAggregationAppliable");function ll(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:f={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(f=XY(s,n.$ref));for(let v in f){let S=f[v],b=typeof S=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&qY(f,p)&&(l=QY(e,t,p)||l,b=!1),!!b)if((m=(d=S.metadata)==null?void 0:d.path)!=null&&m.length){let I=S.metadata.path,F=I.slice(r.length),j=KY(i,F);l=Ak(a,v)||l;let W=a[v];l=ll({fullSchema:e.fullSchema,schema:S,element:j,contextPath:I,config:W,parent:e},t)||l}else l=t(e,S,a,v)||l}return l}o(ll,"traverseSchema");function Mf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,vk.parse)(e.fileContent),s=(0,Tk.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,yk.xml2js)(e.fileContent)}catch(r){oe(n,{severity:Sk.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Nm(r)}),location:{path:e.dataSourceUri}})}return i}o(Mf,"parseXML");function kf(e){return`${bk.DefinitionName.CustomExtensionFragment}<${e}>`}o(kf,"getCustomExtensionFragmentDefinitionKey");function bT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(bT,"getRootElement");var Px=Z(re()),xx=Z(re());var dd=Z(re());var Ek=["Column","Action","FilterField"];function Ks(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Ks,"getAttribute");function Pk(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(Pk,"getNodeByName");function vx(e){let t=["id","key","title","text","label","header"],n=e.attributes||[];for(let i of t){let r=n.find(a=>a.key===i);if(r)return r}}o(vx,"getDisplayAttribute");function YY(e){let t=vx(e);if(t)return t.key==="id"?`(#${t.value})`:`(${t.value})`}o(YY,"extractDisplayInfo");function xk(e,t,n){if(!Ek.includes(t)){let i=YY(e);n.macroDisplayInfo={name:t,value:i}}}o(xk,"addDisplayInfoForBuildingBlock");function Ck(e,t){let n={Table:"Table",FilterBar:"Filter",Chart:"Chart",Page:"Page"},i;if(Ek.includes(t)){let a=vx(e);i=a?a.value:t}else{let a=vx(e);if(a){let s=a.key==="id"?"#":"";i=`${t} ${s}${a.value}`}else i=t}let r=n[t];return r?{description:i,icon:r}:{description:i}}o(Ck,"getViewNodeDescriptionAndIcon");function zY(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(zY,"resolveMetaPath");function bx(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Ks(t,"contextPath")||i.contextPath,a=Ks(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let f=r||`/${s}`;if(a){let I=zY(a);I.path&&(f=l?I.path:`${f}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(f),d;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{d=p.target.entityType;break}case"NavigationProperty":{d=p.target.targetType;break}case"EntityType":{d=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let S;if(a){let I=a.split(".");I.length&&(S=I[I.length-1])}return d?{entityType:d,metaPath:a,qualifier:m,annotationKey:S}:void 0}o(bx,"getEntityTypeResolution");function Ik(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(Ik,"applyAnnotationPath");function JY(e,t,n){var l,f,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let d=bf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];a=(p=(f=r==null?void 0:r.annotations)==null?void 0:f[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=mS(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(JY,"getTableLineItemAnnotationData");var Ok={"sap.fe.macros.Chart":o(e=>{let t=bx(e);Ik(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,f,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bx(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let d=oi(dd.UIVOCABULARY,n),m=d&&((p=(f=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:f[d])==null?void 0:p[r.annotationKey]);LP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bx(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=oi(dd.UIVOCABULARY,n);if(Ik(t,r),t.annotationPath){let f=JY(r,n,l);f!=null&&f.annotationPath&&(t.annotationPath=f.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:f.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:dd.DefinitionName.LineItems,isMacro:!0};FS(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var Rk=Z(re());var ZY=new Map([["filterFields","SelectionField::"]]),ez=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),gd={anchor:"anchor",placement:"placement",key:"key"};function tz(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[Jt(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return gd.anchor in r&&gd.placement in r}return!1}o(tz,"isCustomExtensionSchema");function Lk(e){let t=ZY.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=ez.get(e),t&&(n.prefix=t)),n}o(Lk,"getAnnotationPrefix");function nz(e,t,n,i){let r=t.properties[n],a=Lk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],f=Ks(l,gd.key)||n,p=Ks(l,gd.anchor),d=Ks(l,gd.placement)||Rk.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:d}};return{key:f,extension:v}}o(nz,"getExtensionData");function iz(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:f,key:p}=nz(e,t,s,n);i[p]=f,a[p]=s}else r.push([s,l])}Ea(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],f=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(f=t.properties[a[l]]),f&&(f.propertyIndex=s)}}o(iz,"updatePropertyIndices");function rz(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Ks(e.subElements[s],"key")||r}return r}o(rz,"getCorrectedAnchorEnumKey");function oz(e,t,n,i){var a,s;let r=Lk(i);for(let l in t.properties){let f="anchor",p=t.properties[l];if(!p.metadata)continue;ps(n,t,{property:f,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(a=p.properties)==null?void 0:a[f])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=rz(e,m.const,r,t.properties[m.const]))}}o(oz,"applyEnumsForAnchors");function Fk(e,t,n,i){tz(t,n)&&(i=i||e.name,iz(e,t,i),oz(e,t,n,i))}o(Fk,"handleExtensions");var mi=[];for(let e=0;e<256;++e)mi.push((e+256).toString(16).slice(1));function Nk(e,t=0){return(mi[e[t+0]]+mi[e[t+1]]+mi[e[t+2]]+mi[e[t+3]]+"-"+mi[e[t+4]]+mi[e[t+5]]+"-"+mi[e[t+6]]+mi[e[t+7]]+"-"+mi[e[t+8]]+mi[e[t+9]]+"-"+mi[e[t+10]]+mi[e[t+11]]+mi[e[t+12]]+mi[e[t+13]]+mi[e[t+14]]+mi[e[t+15]]).toLowerCase()}o(Nk,"unsafeStringify");var Dk=require("crypto");var AT=new Uint8Array(256),ST=AT.length;function Sx(){return ST>AT.length-16&&((0,Dk.randomFillSync)(AT),ST=0),AT.slice(ST,ST+=16)}o(Sx,"rng");var _k=require("crypto"),Ax={randomUUID:_k.randomUUID};function az(e,t,n){var r;if(Ax.randomUUID&&!t&&!e)return Ax.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??Sx();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return Nk(i)}o(az,"v4");var Ex=az;var Vk="sap.fe.macros";function wk(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(wk,"getElementName");function sz(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(sz,"isElementWithNamespace");function cz(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(cz,"getDependencies");function lz(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(lz,"findAvailableName");function Mk(e,t){if(e.properties={},e.$ref){let n=Jt(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(Mk,"prepareSchemaProperties");function fz(e,t,n){t.properties||Mk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(fz,"handleAttributes");function uz(e){e.type===xx.MacrosPropertyType.Control&&(e.internalId=Ex())}o(uz,"applyIdForMacros");function pz(e,t,n){var i,r;try{(r=(i=Ok)[e])==null||r.call(i,t)}catch{oe(n,{severity:Px.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(pz,"callAnnotationHandler");function dz(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===xx.MacrosPropertyType.Control&&(e.controlName=n)}o(dz,"updateMetadataByReference");function gz(e,t,n){let i=n.schema.metadata.namespaces?[...n.schema.metadata.namespaces]:[],r=n.dependencies,a=[Vk];if(e.ns){for(let s in r)if(e.ns===r[s]){a.push(s);break}}for(let s=n.path.length-1;s>=0;s--){let l=n.path[s].name;if(l.includes(":")&&(l=l.split(":")[1]),/^[A-Z]/.test(l)){let f=`${Vk}.${l.toLowerCase()}`;if(i.includes(f)){a.push(f);break}}}return[...new Set([...a,...i])].map(s=>`${s}.${t}`)}o(gz,"getPosibleRefNames");function mz(e,t,n,i){var v,S,b,I,F;let r=n.schema;t.properties||Mk(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(S=a==null?void 0:a.metadata)==null?void 0:S.defaultAggregation,f={path:n.path,type:s,position:e.position};xk(e,i,f),l&&(f.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?lz(i,t.properties):i,d=[];a!=null&&a.$ref?d.push(Jt(a.$ref)):d=gz(e,i,n);let m=!1;for(let j of d){let W=(F=r.definitions)==null?void 0:F[j];if(typeof W!="object")continue;dz(f,W,j);let{description:U,icon:se}=Ck(e,i),ee={$ref:Fm(j),description:U,...se?{icon:se}:{},propertyIndex:n.index,metadata:f};fz(e,ee,r),t.properties[p]=ee,m=!0,pz(j,{...n,node:e,schema:ee,rootSchema:n.schema},n.logger);break}if(uz(f),!m)if(a!=null&&a.properties)a.metadata=f;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:f};t.properties[p]=j}return p}o(mz,"addControlToSchema");function kk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}kk(r,t)}}o(kk,"populateUsedDefinitionKeys");function hz(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let n=t.additionalProperties.$ref,i=Jt(n),r=i.split(".");if(i==="sap.ui.core.Control"||r[r.length-1]===e.name)return!0}return!1}o(hz,"isElementAddableToSchema");function yz(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!Pk(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(yz,"getDefaultAggregation");function Tz(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,jk(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:wk(s),index:a}]},i)}}o(Tz,"handleSubElementsOfXMLNode");function jk(e,t,n,i){var d,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[Jt(t.$ref)]:t;if(sz(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let S=(v=t.metadata)==null?void 0:v.defaultAggregation;S&&hz(e,t.properties[S])&&(t=t.properties[S]);let b=e.name.split(":"),I=mz(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];else return}let{subElements:l=[]}=e,f=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&f&&n.schema.definitions[f]&&i.indexOf(f)===-1&&(i.push(f),kk(t,i));let p=yz(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),Tz(l,t,n,i),r.push({node:e,schema:t});for(let S of r)Fk(S.node,S.schema,n.schema,S.name)}o(jk,"handleXMLNode");function vz(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(vz,"getMacrosPrefixes");function fl(e,t,n,i){let r=Mf(t.file,!0,i),a=[];if(!r)return;Qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:Px.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,f=cz(l),p=vz(e,f);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],S=!d[v.name];d[v.name]=!0,jk(v,s,{macrosPrefixes:p,schema:s,dependencies:f,index:m,isUnique:S,path:[{name:wk(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(fl,"generateMacrosSchemaDefinition");function Uk(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&Uk(i.subSections,t)}}o(Uk,"populateTemplates");function $k(e,t,n,i){var s,l,f;let r=Rc(n.manifest,i),a=[];Uk(((f=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:f.sections)||{},a);for(let p of a){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=kf(p);e.definitions[m]=d;let v=Lc(n.fragments,r,n.manifest,"fragment",p);if(v){d.metadata.filePath=v.relativeFilePath;let{properties:S={},definitions:b={}}=fl(t,v,n.serviceAVT,n.logger)||{};d.properties=S;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o($k,"resolveFragments");var bz=["header","layout","sections","footer"],Sz=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],Ix="Custom Action";function Kk(e,t,n,i,r,a,s){let{actionName:l,namespace:f}=th(t.item,e),p=Kr(t.item),m=t.item.$Type===Gi.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,S=t.item.fullyQualifiedName.replace(`@${Gi.UIAnnotationTerms.Identification}`,`/@${Gi.UIAnnotationTerms.Identification}`),b=`${v}<${at(p)}>`,I=i.definitions[b]={type:"object",$ref:`${$}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=rr(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Ia(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let F=(t.item.Actions??[]).map((j,W)=>({item:j,index:W}));Cx(F,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});f&&(i.definitions[b][R.SchemaTag.target]=f),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${S}`,a.properties[p]={$ref:`${$}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(Kk,"addSingleHeaderActionV4");function Bk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(Bk,"addStandardHeaderAction");function Hk(e,t,n,i,r,a){let s=Kr(e.item),l=ci(e.item,n),f=at(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Gi.UIAnnotationTerms.Identification}`,`/@${Gi.UIAnnotationTerms.Identification}`),d=i.definitions[f]={type:"object",$ref:`${$}${R.DefinitionName.FooterActionV4}`,description:l};d[R.SchemaTag.isViewNode]=!0,d[R.SchemaTag.actionType]=t,d[R.SchemaTag.propertyIndex]=a,d[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${f}`}}o(Hk,"addSingleFooterAction");function Az(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Gi.UIAnnotationTypes.DataFieldForAction||i.$Type===Gi.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Gi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(Sz.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(Az,"groupByCriticality");function Ez(e,t,n,i,r,a){let s=e.findIndex(l=>{var f,p;return((p=(f=l.item.annotations)==null?void 0:f.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(Kk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(Ez,"addCopyAction");function Cx(e,t,n,i,r,a,s=0){let l=s;for(let f of e)Kk(t,f,a,n,i,r,l),l++}o(Cx,"addGroupedHeaderActions");function Pz(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(Pz,"addRelatedAppsButton");function Gk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(Gk,"setAnnotationPathFromEntitySetOrEntityType");function xz(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?Az(n):{};if(Cx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=V_(r.entitySet),d=w_(r.entitySet);if(Jm(r.entitySet)&&d){let m=Bk("Edit",t,i,s.length);Gk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Bk("Delete",t,i,s.length+1);Gk(m,r.entitySet,e,"DeleteHidden")}}let f=s.length+2;Ez(l,r.serviceAVT,t,e,i,f),Cx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,f),Xk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),Pz(i)}o(xz,"addHeaderActionCallBackV4");function Cz(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Gi.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];Hk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];Hk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(Cz,"addFooterActionCallBackV4");function Iz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Gi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let f=`${R.DefinitionName.CustomColumnOP}<${n}>`;Cc(e,t,r,f,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let d=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${d}`,Oc(e,n,t,d,i.replace(/::/g,"/"));let m=e.definitions[n];m&&OS(m,l)}o(Iz,"addCustomColumnsOP");function Oz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Gi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=Ix;let f=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${at(n)}>`;xa(e,t,r,f,p,i);let d=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,d,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,ho(e,p,m)}o(Oz,"addTableCustomActionsOP");function Xk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=Ix;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Bm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,ho(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(Xk,"addHeaderFooterCustomActionsOP");function Rz({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,f=vt(e,t,i);n.entityType&&l&&(f[R.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),f.properties.columns={$ref:`${$}${r}`},f.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),f.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t),f[R.SchemaTag.target]=a.namespace}o(Rz,"addTableDefinition");function Lz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=Ix;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,f=`${R.DefinitionName.SectionActions}<${at(n)}>`;xa(e,t,r,l,f,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,ho(e,f,p),e.definitions[f]&&(e.definitions[f].additionalProperties={$ref:`${$}${a}`})}o(Lz,"addFormCustomActionsOP");function Fz(e,t,n,i,r,a,s){let l=Dc(t);[R.DefinitionName.ObjectPageResponsiveTableV4,R.DefinitionName.ObjectPageAnalyticalTableV4,R.DefinitionName.ObjectPageGridTableV4,R.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{Rz({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),gs(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let d={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};Ic(d,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),Iz(n,a,l,t,s),Oz(n,a,l,t,s)}o(Fz,"handleLineItem");function Qk(e,t,n,i,r,a,s){s&&ET(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);return Sa(e,l,Dc(t)),ls(e,l,Dc(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(f=>{let p=f.$ref.split("/").pop();return{$ref:si(p,t)}}),Fz(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Qk,"handleSectionTable");function Nz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let f=vt(l,n,r);e.ID||(f.properties={}),Sa(e,f,n),ls(e,f,n),f[R.SchemaTag.annotationPath]=e.annotationPath,f[R.SchemaTag.target]=e.namespace,f[R.SchemaTag.isViewNode]=!0;let p=eh(a,e,f,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let d=Dc(n);vt(R.DefinitionName.CustomFormActionOP,p,r),Lz(r,t,p,d,s)}}o(Nz,"handleFormIdentification");function Wk(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);$l(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=_c(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Wk,"handleHeaderFacet");function Dz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,f=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],d=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,d),description:f};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,at(d),n);v[R.SchemaTag.annotationPath]=ah(l),v[R.SchemaTag.dataType]=rr(l),v.properties={},a++})}return r}o(Dz,"handleChartActions");function _z(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=ah(e),r[R.SchemaTag.dataType]=_c(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Dz(e,t,n,i);return{chart:r,chartActions:s}}o(_z,"handleChart");function qk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,f=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&ET(i,t,l);let p=Hu(f,t),d=vt(l,p,n,!1);if($l(e,d,t),a)return delete d.properties.chart,{parentChartRef:d};d[R.SchemaTag.annotationPath]=ah(e),d.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=_z(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:d,chart:m,chartActions:v}}o(qk,"handleSectionChart");function Vz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${oA(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Vz,"getVisualizationKeyAndType");function wz(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(wz,"getTargetFromNavigation");function Mz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:f}=Vz(!!r,a,n),p=r?a:wz(n,s,f),d=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:f,target:p,namespace:d,navigationPath:s}}o(Mz,"getVisualizationProps");function ET(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(ET,"addPropertyRef");function Yk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Yk,"getSectionPropertyRef");function kz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:f}=Yk(t,r);ET(i,l,R.DefinitionName.ObjectPageSectionTableV4,f);let p=Qk(e,f,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,$l(e,p,t),delete p[R.SchemaTag.isViewNode]}o(kz,"addPVLineItemSection");function jz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:f}=Yk(t,r);ET(i,l,s,f);let{parentChartRef:p}=qk(r.target,f,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Sa(e,p,t),q0(e,p)):$l(e,p,t)}o(jz,"addPVChartSection");function Uz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){oe(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Mz(e,t,a),f=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?jz(e,t,n,i,l,f):l.type.startsWith(R.Visualization.LineItem)&&kz(e,t,n,i,l,a,s))}o(Uz,"handleSectionPresentationVariant");function $z(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o($z,"containsCollectionFacet");function Bz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ec(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Bz,"createCustomSubSectionReference");function Hz(e,t,n,i){var a,s,l,f;let r=(f=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:f.sections;if(r)for(let p in r){let d=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),S=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;d.properties.actions={$ref:`${$}${S}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${I}`,v[R.SchemaTag.isViewNode]=!0,xa(e,t,i,b,S,p),ho(e,S,I)}}o(Hz,"applyCustomActionsToCustomSections");function Ox(e,t,n,i,r,a,s){var m,v,S,b,I;let l=!1,f;a&&s?(l=!$z(a),f=Bz(t,s,n.featureToggles)):f=r,e.additionalProperties={$ref:`${$}${f}`},E_(t,e,i,f,l,s,n.logger);let p=t.definitions[f];if(typeof p=="object"&&ps(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),f.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];F.properties={},Hz(t,i,f,n.logger)}let d=p.properties.relatedFacet;if(f!=null&&f.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof d=="object"){let F=(I=(b=(S=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:S.body)==null?void 0:b.sections)==null?void 0:I[s],j=F&&"subSections"in F?F.subSections:{};for(let W=d.oneOf.length-1;W>=0;W--){let U=d.oneOf[W];j[U.const]||(U.hidden=!0)}}}o(Ox,"applyCustomSections");function Gz(e,t,n,i,r,a,s,l){let f=l===0,p=i.properties[t]=jo(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[R.SchemaTag.annotationPath]=e.annotationPath,d[R.SchemaTag.target]=e.namespace,d[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],d[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)Rx(a,e.facets,v,d,n,r,s,m);f&&Ox(d,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Gz,"handleCollection");function Rx(e,t,n,i,r,a,s,l=0){let f=t[n],p=`ObjectPage${a}${f.base}<${Dc(n)}>`;switch(f.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{Uz(f,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{Gz(f,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let d=t[n];Qk(f,n,r,d,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{Nz(f,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Wk(f,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Wk(f,n,i,r,p):a===R.SectionType.Section&&qk(f,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Gu(f,n,i,r,a);break}default:i.properties[n]=jo(r,f,n)}}o(Rx,"addSection");function Wz(e,t,n){let i=Om(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)Rx(e,i,a,r,t,R.SectionType.Section,n);Ox(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(Wz,"addSections");function Kz(e,t,n,i){let r=Im(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)Rx(e,r,s,a,t,R.SectionType.HeaderSection,i);Ox(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Kz,"addHeaderSections");function Xz(e,t,n){let i=e.entityType;rh(t,i),ih(t,i,e,xz,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Gi.UIAnnotationTerms.HeaderFacets}`),Kz(e,t,i,n)}o(Xz,"addHeader");function md(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=$m(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Xz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Gi.UIAnnotationTerms.Facets}`),Ec(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{$k(r,i,e,l.id)}catch(f){oe(e.logger,{severity:R.LogSeverity.Error,message:f})}}Wz(e,r,l),nh(r,e,R.FioriElementsVersion.v4,Cz),Xk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],$o(r,bz),r}o(md,"generateObjectPageSchemaV4");function Lx(e,t){return JSON.parse(JSON.stringify(t))}o(Lx,"generateFreestyleSchemaV4");var oo=Z(re());function Fx(e,t,n,i,r,a,s,l,f){let p=Gr(n,r),{entitySet:d,entityType:m}=ul(p,s,t,r),v={templateType:oo.TemplateType.ListReportObjectPageV4,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:f};return md(v,e,s,l)}o(Fx,"generateObjectPageInterfaceV4");function PT(e,t,n,i,r,a,s){Qt();let l=Gr(i,r),{entitySet:f,entityType:p}=ul(l,s,n,r),d={templateType:e,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:f,entityType:p},m=e===oo.TemplateType.ListReportObjectPageV4?oo.v4.FE_TEMPLATE_V4_LIST_REPORT:oo.v4.FE_TEMPLATE_V4_ALP;return Up(d,t,m,s)}o(PT,"generateListReportInterfaceV4");function Nx(e,t,n,i,r,a){let s=Gr(n,a),l={templateType:e,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return Lx(l,t)}o(Nx,"generateFreestyleInterfaceV4");function Dx(e,t,n,i,r,a,s){let l={};if(Ec(a,oo.Features.BuildingBlocks)){let f=Gr(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?fl(e,p,f,s):{}}return l}o(Dx,"generateFPMCustomPageInterfaceV4");var dl=require("@sap-ux/vocabularies-types/vocabularies/UI"),tj=Z(re());var pl=Z(re());var Zk=new Map([[pl.PageTypeV2.ListReport,pl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[pl.PageTypeV2.ObjectPage,pl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),zk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),Jk=o(e=>{var t;for(let[n,i]of Zk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Qz=o((e,t)=>{let n="";for(let[r,a]of Zk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),ej={manifest:{path:o(()=>`sap.ui5/extends/extensions/${pl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Jk(n);i&&(t[i]={},zk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Qz(s,i);e[l]||(e[l]={}),zk(r[s],e[l])}for(let s in e){let l=Jk(s);l&&!r[l]&&delete e[s]}},"export")}};var dt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),IT=o(e=>dt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),OT=o(e=>dt(e)+"/content/header","getSettingsPathForHeaderOP"),qz=o(e=>dt(e)+"/content/footer","getSettingsPathForFooterOP"),so=o(e=>dt(e)+"/controlConfiguration","getControlConfigurationPath"),RT=o((e,t,n)=>so(e)+`/@${dl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),LT=o(e=>so(e)+`/@${dl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Xs=o((e,t,n,i)=>so(e)+`/@${dl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),_x=o((e,t,n,i)=>LT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Wi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Yz=o((e,t)=>(e??[]).join("/").startsWith("table/views")&&t===void 0,"isNewlyCreatedView"),hi=o((e,t,n,i,r,a,s)=>r?Wi(e,t,n,i,r):Object.keys(a??{}).length===0&&Yz(s,r)?"":so(e)+`/@${dl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),FT=o((e,t,n,i,r,a,s)=>hi(e,t,n,i,r,a,s)+tj.QUICKVARPATH,"getQuickVariantPath"),cr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),yi=o((e,t,n,i,r)=>r?cr(e,t,n,i,r):so(e)+`/@${dl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),co=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Nr=o((e,t,n,i,r)=>r?co(e,t,n,i,r):so(e)+`/@${dl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ki=o((e,t,n,i)=>so(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>so(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),Ti=o((e,t,n,i)=>OT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),NT=o((e,t,n,i)=>dt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Io=o((e,t,n,i)=>qz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Ft=o((e,t,n)=>so(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Uf=o((e,t,n,i)=>{let r=dt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Qs=o((e,t,n,i)=>dt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Dr=o((e,t,n,i)=>{let r=dt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),$f=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let f=dt(e)+`/content/body/sections/${l}`;return i&&(f+="/"+i),f},"getCustomSubSectionPath"),CT=class CT{};o(CT,"ApplicationV4"),h([jt("settings")],CT.prototype,"settings",2);var xT=CT,ao=class ao{};o(ao,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],ao.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],ao.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],ao.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),P({since:"1.78.0"})],ao.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),P({since:"1.56.0"})],ao.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],ao.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],ao.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],ao.prototype,"path",2),h([y(ej)],ao.prototype,"controllerExtensions",2);var jf=ao;var ye=Z(re());var _I={};vc(_I,{ALPChart:()=>BC,ALPTable:()=>qf,ActionAfterExecutionConfiguration:()=>pI,ActionAfterExecutionConfigurationFooter:()=>tC,ActionAfterExecutionConfigurationForm:()=>oC,ActionAfterExecutionConfigurationOP:()=>Ud,ActionAfterExecutionConfigurationObjectPageHeader:()=>yC,ActionAfterExecutionConfigurationToolBarLR:()=>EI,Actions:()=>vI,AdditionalSemanticObject:()=>fI,CommonHeaderFacetSettings:()=>ic,CommonViewSettings:()=>Qf,CustomActionPosition:()=>OI,CustomActionPositionOP:()=>oI,CustomFilterField:()=>kx,CustomFilterFieldPosition:()=>Mx,CustomFooterActionOP:()=>rC,CustomFooterActionPositionOP:()=>iC,CustomFormActionOP:()=>dC,CustomHeaderAction:()=>Hx,CustomHeaderActionOP:()=>SC,CustomHeaderActionPosition:()=>vd,CustomHeaderActionPositionOP:()=>bC,CustomSectionActionOP:()=>Yx,CustomSectionActionPositionOP:()=>qx,CustomTableAction:()=>RI,CustomTableActionOP:()=>aI,FilterBar:()=>Vx,FlexSettings:()=>PC,FooterActionV4:()=>nC,FormAction:()=>aC,Header:()=>Ux,HeaderActions:()=>jx,HeaderSections:()=>LC,LRChartView:()=>HC,LRTableView:()=>GC,MultiTableModeV4:()=>KC,ObjectPageAnalyticalTableV4:()=>Vd,ObjectPageCustomHeaderSectionFlexSettings:()=>Gx,ObjectPageCustomHeaderSectionFragment:()=>Wx,ObjectPageCustomSectionActions:()=>Kx,ObjectPageCustomSectionFragment:()=>Hf,ObjectPageCustomSubSectionFragment:()=>Xx,ObjectPageFooter:()=>Jx,ObjectPageFooterActions:()=>zx,ObjectPageForm:()=>lC,ObjectPageFormActionGroup:()=>sC,ObjectPageFormActions:()=>cC,ObjectPageGridTableV4:()=>wd,ObjectPageHeader:()=>mC,ObjectPageHeaderAction:()=>TC,ObjectPageHeaderActionGroup:()=>vC,ObjectPageHeaderActions:()=>gC,ObjectPageHeaderSectionAddress:()=>RC,ObjectPageHeaderSectionChart:()=>CC,ObjectPageHeaderSectionContact:()=>OC,ObjectPageHeaderSectionDataPoint:()=>IC,ObjectPageHeaderSectionForm:()=>xC,ObjectPageLayout:()=>MC,ObjectPageResponsiveTableV4:()=>_d,ObjectPageTable:()=>Dd,ObjectPageTableColumn:()=>tu,ObjectPageTableColumnAction:()=>ZC,ObjectPageTableRowCountable:()=>Zf,ObjectPageToolBarAction:()=>iI,ObjectPageToolBarActionGroup:()=>rI,ObjectPageToolBarActions:()=>sI,ObjectPageTreeTableV4:()=>Md,PersonalizationType:()=>jC,PersonalizationTypeOP:()=>zC,Position:()=>mI,PositionOP:()=>eI,QuickVariantSelectionV4:()=>$C,QuickVariantSelectionV4OP:()=>JC,RelatedApps:()=>uI,Table:()=>XC,TableColumn:()=>YT,TableColumnAction:()=>dI,TableCreationModeOP:()=>YC,TableCustomColumn:()=>yI,TableCustomColumnOP:()=>tI,TableSettings:()=>jT,TableViewExtension:()=>WC,TableViewSettings:()=>Rd,ToolBar:()=>bI,ToolBarAction:()=>PI,ToolBarActionGroup:()=>xI,ViewCustomActionPosition:()=>LI,ViewPersonalizationType:()=>UC,ViewPosition:()=>hI,ViewTableColumn:()=>zT,ViewTableColumnAction:()=>gI,ViewTableCustomAction:()=>FI,ViewTableCustomColumn:()=>TI,ViewToolBarAction:()=>II,ViewToolBarActionGroup:()=>CI,VisualFilter:()=>wx,checkViewOrder:()=>QC,deleteCreationModeProperty:()=>Fd,deletePersonalizationProperty:()=>Ro,exportCreationModeProperty:()=>Ld,exportPersonalization:()=>HT,exportPersonalizationProperty:()=>Oo});function zz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(zz,"exportVisualFilterValueList");var Bf=class Bf{};o(Bf,"FilterBar"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Bf.prototype,"hideFilterBar",2),h([y({manifest:{path:LT}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Bf.prototype,"initialLayout",2),h([y({manifest:{path:LT}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Bf.prototype,"layout",2);var Vx=Bf,hd=class hd{};o(hd,"VisualFilter"),h([y({manifest:{path:_x}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],hd.prototype,"availability",2),h([y({manifest:{path:_x,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:zz,key:"visualFilter"}}),P({since:"1.93.0"})],hd.prototype,"visualFilterValueList",2);var wx=hd,yd=class yd{};o(yd,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Xs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Xs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],yd.prototype,"placement",2);var Mx=yd,qs=class qs{};o(qs,"CustomFilterField"),h([y({manifest:{path:Xs}}),P({since:"1.77.0"})],qs.prototype,"label",2),h([y({manifest:{path:Xs}}),P({since:"1.77.0"})],qs.prototype,"property",2),h([y({manifest:{path:Xs}}),P({since:"1.77.0"})],qs.prototype,"template",2),h([y({manifest:{path:Xs}}),P({since:"1.77.0"})],qs.prototype,"required",2),h([y({manifest:{path:Xs}}),P({since:"1.77.0"})],qs.prototype,"position",2);var kx=qs;var $x=class $x{};o($x,"HeaderActions");var jx=$x,Bx=class Bx{};o(Bx,"Header");var Ux=Bx;var Td=class Td{};o(Td,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Td.prototype,"placement",2);var vd=Td,Ys=class Ys{};o(Ys,"CustomHeaderAction"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],Ys.prototype,"text",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],Ys.prototype,"position",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],Ys.prototype,"press",2),h([y({manifest:{path:Ti},generate:Jn}),P({since:"1.84.0"})],Ys.prototype,"visible",2),h([y({manifest:{path:Ti},generate:Jn}),P({since:"1.84.0"})],Ys.prototype,"enabled",2);var Hx=Ys;var DT=class DT{};o(DT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"flexSettings"),"path")}}),P({since:"1.81.0"})],DT.prototype,"designtime",2);var Gx=DT,lr=class lr{};o(lr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"anchor"}}),P({since:"1.77.0"})],lr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"placement"}}),P({since:"1.77.0"})],lr.prototype,"relativePosition",2),h([y({manifest:{path:Dr},generate:ai}),P({since:"1.84.0"})],lr.prototype,"visible",2),h([y({manifest:{path:Dr}}),P({since:"1.77.0"})],lr.prototype,"title",2),h([y({manifest:{path:Dr}}),P({since:"1.77.0"})],lr.prototype,"subTitle",2),h([y({manifest:{path:Dr,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],lr.prototype,"fragmentName",2),h([y({manifest:{path:Dr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),P({since:"1.86.0"})],lr.prototype,"templateEdit",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"stashed",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"flexSettings",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"requestGroupId",2),h([y({manifest:{path:Dr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],lr.prototype,"controls",2);var Wx=lr;var Qx=class Qx{};o(Qx,"ObjectPageCustomSectionActions");var Kx=Qx,zs=class zs{};o(zs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Uf(t,n,i,"position"),"path"),key:"anchor"}}),P({since:"1.77.0"})],zs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Uf(t,n,i,"position"),"path"),key:"placement"}}),P({since:"1.77.0"})],zs.prototype,"relativePosition",2),h([y({manifest:{path:Uf}}),P({since:"1.77.0"})],zs.prototype,"title",2),h([y({manifest:{path:Uf,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],zs.prototype,"fragmentName",2),h([y({manifest:{path:Uf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],zs.prototype,"controls",2);var Hf=zs,Js=class Js extends Hf{};o(Js,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${$f.apply({},t)}/position`,"path"),key:"anchor"}}),P({since:"1.77.0"})],Js.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${$f.apply({},t)}/position`,"path"),key:"placement"}}),P({since:"1.77.0"})],Js.prototype,"relativePosition",2),h([y({manifest:{path:$f}}),P({since:"1.77.0"})],Js.prototype,"title",2),h([y({manifest:{path:$f,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],Js.prototype,"fragmentName",2),h([y({manifest:{path:$f,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],Js.prototype,"controls",2);var Xx=Js;var bd=class bd{};o(bd,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],bd.prototype,"placement",2);var qx=bd,Zs=class Zs{};o(Zs,"CustomSectionActionOP"),h([y({manifest:{path:Qs}}),P({since:"1.84.0"})],Zs.prototype,"text",2),h([y({manifest:{path:Qs}}),P({since:"1.84.0"})],Zs.prototype,"position",2),h([y({manifest:{path:Qs}}),P({since:"1.84.0"})],Zs.prototype,"press",2),h([y({manifest:{path:Qs},generate:ai}),P({since:"1.84.0"})],Zs.prototype,"visible",2),h([y({manifest:{path:Qs},generate:ai}),P({since:"1.84.0"})],Zs.prototype,"enabled",2);var Yx=Zs;var Zx=class Zx{};o(Zx,"ObjectPageFooterActions");var zx=Zx,eC=class eC{};o(eC,"ObjectPageFooter");var Jx=eC;var Sd=class Sd{};o(Sd,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/afterExecution","path")}})],Sd.prototype,"enableAutoScroll",2);var tC=Sd,_T=class _T{};o(_T,"FooterActionV4"),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],_T.prototype,"afterExecution",2);var nC=_T,Ad=class Ad{};o(Ad,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Ad.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Ad.prototype,"placement",2);var iC=Ad,ec=class ec{};o(ec,"CustomFooterActionOP"),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],ec.prototype,"text",2),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],ec.prototype,"position",2),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],ec.prototype,"press",2),h([y({manifest:{path:Io},generate:ai}),P({since:"1.84.0"})],ec.prototype,"visible",2),h([y({manifest:{path:Io},generate:ai}),P({since:"1.84.0"})],ec.prototype,"enabled",2);var rC=ec;var Ed=class Ed{};o(Ed,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],Ed.prototype,"enableAutoScroll",2);var oC=Ed,VT=class VT{};o(VT,"FormAction"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],VT.prototype,"afterExecution",2);var aC=VT,fC=class fC{};o(fC,"ObjectPageFormActionGroup");var sC=fC,uC=class uC{};o(uC,"ObjectPageFormActions");var cC=uC,pC=class pC{};o(pC,"ObjectPageForm");var lC=pC;var tc=class tc{};o(tc,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],tc.prototype,"text",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],tc.prototype,"position",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],tc.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],tc.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],tc.prototype,"enabled",2);var dC=tc;var hC=class hC{};o(hC,"ObjectPageHeaderActions");var gC=hC,Gf=class Gf{};o(Gf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],Gf.prototype,"editableHeaderContent",2),h([y({manifest:{path:OT}}),P({since:"1.84.0"})],Gf.prototype,"visible",2),h([y({manifest:{path:OT}}),P({since:"1.84.0"})],Gf.prototype,"anchorBarVisible",2);var mC=Gf;var Pd=class Pd{};o(Pd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Pd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/afterExecution","path")}})],Pd.prototype,"enableAutoScroll",2);var yC=Pd,wT=class wT{};o(wT,"ObjectPageHeaderAction"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],wT.prototype,"afterExecution",2);var TC=wT,AC=class AC{};o(AC,"ObjectPageHeaderActionGroup");var vC=AC,EC=class EC extends vd{};o(EC,"CustomHeaderActionPositionOP");var bC=EC,nc=class nc{};o(nc,"CustomHeaderActionOP"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],nc.prototype,"text",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],nc.prototype,"position",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],nc.prototype,"press",2),h([y({manifest:{path:Ti},generate:ai}),P({since:"1.84.0"})],nc.prototype,"visible",2),h([y({manifest:{path:Ti},generate:ai}),P({since:"1.84.0"})],nc.prototype,"enabled",2);var SC=nc;var MT=class MT{};o(MT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>RT(t,n,i)+"/flexSettings","path")}}),P({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],MT.prototype,"designtime",2);var PC=MT,xd=class xd{};o(xd,"CommonHeaderFacetSettings"),h([y({manifest:{path:RT}}),P({since:"1.81.0"})],xd.prototype,"stashed",2),h([y({manifest:{path:RT}}),P({since:"1.81.0"})],xd.prototype,"flexSettings",2);var ic=xd,FC=class FC extends ic{};o(FC,"ObjectPageHeaderSectionForm");var xC=FC,NC=class NC extends ic{};o(NC,"ObjectPageHeaderSectionChart");var CC=NC,DC=class DC extends ic{};o(DC,"ObjectPageHeaderSectionDataPoint");var IC=DC,_C=class _C extends ic{};o(_C,"ObjectPageHeaderSectionContact");var OC=_C,VC=class VC extends ic{};o(VC,"ObjectPageHeaderSectionAddress");var RC=VC,wC=class wC{};o(wC,"HeaderSections");var LC=wC;var kT=class kT{};o(kT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],kT.prototype,"sectionLayout",2);var MC=kT;var GT=Z(re());var kC=Z(re());var Jz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function ta(e,t,n,i,r,a){let s=IT(e),l=Jz(JSON.parse(JSON.stringify(t)),s),f;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[kC.SchemaTag.key]===(a==null?void 0:a.key)||d[kC.SchemaTag.key]===i)){f=`${s}/${p}`;break}}return f||(f=`${s}/[]`),f}o(ta,"getSettingsPathForLRViewsPath");function Zz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let f of l){let p=Number(f),d=e[f];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+a)]=d:s[f]=d}return s}o(Zz,"fillNewlyOrderedViews");function QC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),f=Zz(e,n,r,s,l,a);for(let p of Object.keys(f))e[p]=f[p]}}o(QC,"checkViewOrder");function HT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(HT,"exportPersonalization");function Oo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Oo,"exportPersonalizationProperty");function Ro(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Ro,"deletePersonalizationProperty");function qC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let f=e;Object.keys(f).forEach(p=>{f[p]&&f[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let f=(l=a.table)==null?void 0:l.views;for(let p in f)f[p].index>s&&f[p].index--}}o(qC,"deleteView");function Ld(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Ld,"exportCreationModeProperty");function Fd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Fd,"deleteCreationModeProperty");function nj(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(nj,"importPersonalization");function ij(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(ij,"determineIndexOfView");var Wf=class Wf{};o(Wf,"PersonalizationType"),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"column",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"sort",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"filter",2);var jC=Wf,Kf=class Kf{};o(Kf,"ViewPersonalizationType"),h([y({manifest:{path:Wi,export:Oo,delete:Ro}})],Kf.prototype,"column",2),h([y({manifest:{path:Wi,export:Oo,delete:Ro}})],Kf.prototype,"sort",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Kf.prototype,"filter",2);var UC=Kf,Xf=class Xf{};o(Xf,"QuickVariantSelectionV4"),h([y({manifest:{path:FT}})],Xf.prototype,"paths",2),h([y({manifest:{path:FT}})],Xf.prototype,"hideTableTitle",2),h([y({manifest:{path:FT}})],Xf.prototype,"showCounts",2);var $C=Xf,fr=class fr{};o(fr,"TableSettings"),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fr.prototype,"type",2),h([y({manifest:{path:hi,import:nj,export:HT}}),P({since:"1.86.0"})],fr.prototype,"personalization",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],fr.prototype,"selectionMode",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"selectAll",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"selectionLimit",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],fr.prototype,"enableExport",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"quickVariantSelection",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],fr.prototype,"condensedTableLayout",2),h([y({manifest:{path:hi}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:hi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],fr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:hi}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],fr.prototype,"disableCopyToClipboard",2);var jT=fr,UT=class UT{};o(UT,"ALPChart"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/primary/0","path"),delete:qC}})],UT.prototype,"annotationPath",2);var BC=UT,gl=class gl{};o(gl,"CommonViewSettings"),h([y({manifest:{path:ta,delete:Pc}})],gl.prototype,"key",2),h([y({manifest:{path:IT,import:ij,export:o((t,n)=>{QC(t,n)},"export"),delete:qC}})],gl.prototype,"index",2),h([y({manifest:{path:ta,delete:Pc}})],gl.prototype,"annotationPath",2),h([y({manifest:{path:ta}})],gl.prototype,"entitySet",2);var Qf=gl,ur=class ur extends Qf{};o(ur,"TableViewSettings"),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"type",2),h([y({manifest:{path:Wi,import:nj}}),P({since:"1.86.0"})],ur.prototype,"personalization",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectionMode",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectAll",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectionLimit",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ur.prototype,"enableExport",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"quickVariantSelection",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ur.prototype,"condensedTableLayout",2),h([y({manifest:{path:Wi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ur.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Wi}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ur.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Wi}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ur.prototype,"disableCopyToClipboard",2);var Rd=ur;function eJ(e){return Rd}o(eJ,"getTableViewSettings");var Cd=class Cd extends Rd{};o(Cd,"ALPTable"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/secondary/0","path"),delete:Pc}})],Cd.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Cd.prototype,"initialLoad",2);var qf=Cd,$T=class $T extends Qf{};o($T,"LRChartView"),h([y({manifest:{path:ta},generate:Jn})],$T.prototype,"visible",2);var HC=$T,Id=class Id extends eJ(Qf){};o(Id,"LRTableView"),h([y({manifest:{path:ta}})],Id.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ta},generate:Jn})],Id.prototype,"visible",2);var GC=Id,rc=class rc{};o(rc,"TableViewExtension"),h([y({manifest:{path:ta}})],rc.prototype,"key",2),h([y({manifest:{path:IT,import:ij,export:o((t,n)=>{QC(t,n)},"export"),delete:qC}})],rc.prototype,"index",2),h([y({manifest:{path:ta}})],rc.prototype,"label",2),h([y({manifest:{path:ta}})],rc.prototype,"template",2),h([y({manifest:{path:ta},generate:Jn})],rc.prototype,"visible",2);var WC=rc,BT=class BT{};o(BT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>dt(t)+"/views","path")}})],BT.prototype,"showCounts",2);var KC=BT,Od=class Od extends jT{};o(Od,"Table"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/secondary/0","path"),delete:Pc}})],Od.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Od.prototype,"initialLoad",2);var XC=Od;var Yf=class Yf{};o(Yf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"inlineCreationRowsHiddenInEditMode",2);var YC=Yf,zf=class zf{};o(zf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"filter",2);var zC=zf,Jf=class Jf{};o(Jf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"showCounts",2);var JC=Jf,vi=class vi{};o(vi,"ObjectPageTable"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"type",2),h([y({manifest:{path:Ft,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),P({since:"1.84.0"})],vi.prototype,"creationMode",2),h([y({manifest:{path:Ft,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:HT}}),P({since:"1.86.0"})],vi.prototype,"personalization",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectionMode",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectAll",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectionLimit",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],vi.prototype,"enableExport",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"quickVariantSelection",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],vi.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ft}}),P({since:"1.86.0"})],vi.prototype,"enableFullScreen",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"enablePaste",2),h([y({manifest:{path:Ft}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Ft}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],vi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Ft}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],vi.prototype,"disableCopyToClipboard",2);var Dd=vi,Nd=class Nd extends Dd{};o(Nd,"ObjectPageTableRowCountable"),h([y({manifest:{path:Ft}}),P({since:"1.120.0"})],Nd.prototype,"rowCountMode",2),h([y({manifest:{path:Ft}}),P({since:"1.120.0"})],Nd.prototype,"rowCount",2);var Zf=Nd,WT=class WT extends Dd{};o(WT,"ObjectPageResponsiveTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],WT.prototype,"type",2);var _d=WT,KT=class KT extends Zf{};o(KT,"ObjectPageAnalyticalTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],KT.prototype,"type",2);var Vd=KT,XT=class XT extends Zf{};o(XT,"ObjectPageGridTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],XT.prototype,"type",2);var wd=XT,QT=class QT extends Zf{};o(QT,"ObjectPageTreeTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],QT.prototype,"type",2);var Md=QT;var kd=class kd{};o(kd,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/afterExecution","path")}})],kd.prototype,"enableAutoScroll",2);var Ud=kd,eu=class eu{};o(eu,"ObjectPageTableColumn"),h([y({manifest:{path:Ki}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],eu.prototype,"width",2),h([y({manifest:{path:Ki}}),P({since:"1.85.0"})],eu.prototype,"availability",2),h([y({manifest:{path:Ki}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],eu.prototype,"widthIncludingColumnHeader",2);var tu=eu,nI=class nI extends tu{};o(nI,"ObjectPageTableColumnAction");var ZC=nI,jd=class jd{};o(jd,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],jd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],jd.prototype,"placement",2);var eI=jd,na=class na{};o(na,"TableCustomColumnOP"),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"position",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"header",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],na.prototype,"width",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"template",2),h([y({manifest:{path:Ki}}),P({since:"1.86.0"})],na.prototype,"horizontalAlign",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"availability",2),h([y({manifest:{path:Ki}}),P({since:"1.85.0"})],na.prototype,"properties",2);var tI=na;var qT=class qT{};o(qT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],qT.prototype,"enableOnSelect",2);var iI=qT,cI=class cI{};o(cI,"ObjectPageToolBarActionGroup");var rI=cI,$d=class $d{};o($d,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],$d.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],$d.prototype,"placement",2);var oI=$d,Wa=class Wa{};o(Wa,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"text",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"position",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"press",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],Wa.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],Wa.prototype,"enabled",2);var aI=Wa,lI=class lI{};o(lI,"ObjectPageToolBarActions");var sI=lI;var nu=class nu{};o(nu,"AdditionalSemanticObject"),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.108.0"})],nu.prototype,"allowedActions",2),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.96.0"})],nu.prototype,"unavailableActions",2),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.96.0"})],nu.prototype,"mapping",2);var fI=nu,Bd=class Bd{};o(Bd,"RelatedApps"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],Bd.prototype,"showRelatedApps",2),h([y({manifest:{path:dt}})],Bd.prototype,"additionalSemanticObjects",2);var uI=Bd;var Hd=class Hd{};o(Hd,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/afterExecution","path")}})],Hd.prototype,"enableAutoScroll",2);var pI=Hd,iu=class iu{};o(iu,"TableColumn"),h([y({manifest:{path:yi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],iu.prototype,"width",2),h([y({manifest:{path:yi}}),P({since:"1.85.0"})],iu.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],iu.prototype,"widthIncludingColumnHeader",2);var YT=iu,ru=class ru{};o(ru,"ViewTableColumn"),h([y({manifest:{path:cr}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ru.prototype,"width",2),h([y({manifest:{path:cr}}),P({since:"1.85.0"})],ru.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ru.prototype,"widthIncludingColumnHeader",2);var zT=ru,JT=class JT extends YT{};o(JT,"TableColumnAction"),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],JT.prototype,"afterExecution",2);var dI=JT,ZT=class ZT extends zT{};o(ZT,"ViewTableColumnAction"),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ZT.prototype,"afterExecution",2);var gI=ZT,Gd=class Gd{};o(Gd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Gd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Gd.prototype,"placement",2);var mI=Gd,Wd=class Wd{};o(Wd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>cr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Wd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>cr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Wd.prototype,"placement",2);var hI=Wd,ia=class ia{};o(ia,"TableCustomColumn"),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"position",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"header",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ia.prototype,"width",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"template",2),h([y({manifest:{path:yi}}),P({since:"1.86.0"})],ia.prototype,"horizontalAlign",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.85.0"})],ia.prototype,"properties",2);var yI=ia,ra=class ra{};o(ra,"ViewTableCustomColumn"),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"position",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"header",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ra.prototype,"width",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"template",2),h([y({manifest:{path:cr}}),P({since:"1.86.0"})],ra.prototype,"horizontalAlign",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"availability",2),h([y({manifest:{path:cr}}),P({since:"1.85.0"})],ra.prototype,"properties",2);var TI=ra;var SI=class SI{};o(SI,"Actions");var vI=SI,AI=class AI{};o(AI,"ToolBar");var bI=AI;var Kd=class Kd{};o(Kd,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/afterExecution","path")}})],Kd.prototype,"enableAutoScroll",2);var EI=Kd,Xd=class Xd{};o(Xd,"ToolBarAction"),h([y({manifest:{path:Nr}})],Xd.prototype,"enableOnSelect",2),h([y({manifest:{path:Nr}})],Xd.prototype,"afterExecution",2);var PI=Xd,NI=class NI{};o(NI,"ToolBarActionGroup");var xI=NI,DI=class DI{};o(DI,"ViewToolBarActionGroup");var CI=DI,Qd=class Qd{};o(Qd,"ViewToolBarAction"),h([y({manifest:{path:co}})],Qd.prototype,"enableOnSelect",2),h([y({manifest:{path:co}})],Qd.prototype,"afterExecution",2);var II=Qd,qd=class qd{};o(qd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],qd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],qd.prototype,"placement",2);var OI=qd,Ka=class Ka{};o(Ka,"CustomTableAction"),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"text",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"position",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"press",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"requiresSelection",2),h([y({manifest:{path:Nr},generate:Jn}),P({since:"1.84.0"})],Ka.prototype,"visible",2),h([y({manifest:{path:Nr},generate:Jn}),P({since:"1.84.0"})],Ka.prototype,"enabled",2);var RI=Ka,Yd=class Yd{};o(Yd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>co(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>co(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Yd.prototype,"placement",2);var LI=Yd,Xa=class Xa{};o(Xa,"ViewTableCustomAction"),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"text",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"position",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"press",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"requiresSelection",2),h([y({manifest:{path:co},generate:Jn}),P({since:"1.84.0"})],Xa.prototype,"visible",2),h([y({manifest:{path:co},generate:Jn}),P({since:"1.84.0"})],Xa.prototype,"enabled",2);var FI=Xa;var kI={};vc(kI,{FreestylePage:()=>wI,ListReport:()=>_r,ObjectPage:()=>Lo});function tJ(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(tJ,"deleteAllALPViews");function nJ(){}o(nJ,"doNotExport");function iJ(){}o(iJ,"doNotImport");var _r=class{};o(_r,"ListReport"),h([y({manifest:{path:o(t=>dt(t)+"/views","path"),import:iJ,export:nJ,delete:tJ}})],_r.prototype,"chart",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],_r.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],_r.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}})],_r.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],_r.prototype,"header",2),h([jt("fe::FilterBar")],_r.prototype,"filterBar",2),_r=h([ir({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],_r);var VI=Z(re());var Lo=class{};o(Lo,"ObjectPage"),h([jt("header")],Lo.prototype,"header",2),h([jt("layout")],Lo.prototype,"layout",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Lo.prototype,"variantManagement",2),h([jt("sections")],Lo.prototype,"sections",2),Lo=h([ir({id:`${VI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:VI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Lo);var MI=class MI{};o(MI,"FreestylePage");var wI=MI;var Qa=Z(re());var rJ={ALPTableView:qf},oJ={ALPTableView:qf},aJ={[Qa.DefinitionName.ObjectPageResponsiveTableV4]:_d,[Qa.DefinitionName.ObjectPageAnalyticalTableV4]:Vd,[Qa.DefinitionName.ObjectPageGridTableV4]:wd,[Qa.DefinitionName.ObjectPageTreeTableV4]:Md,TableColumn:tu,ObjectPageCustomSectionView:Hf,ActionAfterExecutionConfiguration:Ud},sJ={[Qa.PageTypeV4.AnalyticalListPage]:rJ,[Qa.PageTypeV4.ListReport]:oJ,[Qa.PageTypeV4.ObjectPage]:aJ},jI=class jI extends yf{constructor(){super(_I,kI,sJ)}};o(jI,"MetadataInstanceFactoryV4");var qa=jI;var UI=require("@sap-ux/vocabularies-types/vocabularies/UI");function $I(e,t,n,i,r,a,s){var d,m,v,S,b,I;let l=t.jsonSchema.definitions,f=a&&a!==`@${UI.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[f];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let W=l[f].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,W);let U=s||a;Ot(e.columns[F],t.manifest,l[W],r,[F,U],U,t.logger),Wr(e.columns,F)}Wr(e,"columns")}else{let F=(I=(b=(S=(v=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:S.options)==null?void 0:b.settings)==null?void 0:I.views;(!F||F.paths.length<1)&&oe(t.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o($I,"transferColumns");function cJ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let f=s.properties[l];if(typeof f=="object"&&f.$ref){let p=Jt(f.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Wr(t,"visualFilters")}}o(cJ,"importVisualFilters");function lJ(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){var d;let l=e.jsonSchema.definitions,f=s;!f&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(f=`@${UI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(d=p==null?void 0:p.properties)==null?void 0:d[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:f};Wl(b)}}}o(lJ,"importActions");function BI(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),f;!s&&t&&"table"in t?f=t.table:f=t,f.toolBar=l,Ot(f.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),lJ(e,f,n,i,r,a,s),Wr(f.toolBar,"actions"),Wr(f,"toolBar")}o(BI,"transferToolBar");function rj(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(rj,"determineTargetAnnotationOfView");function fJ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let f=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(f){let p=a[ye.DefinitionName.ALPTable],d=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);BI(e,t,n,i,r);let m=f.substr(f.lastIndexOf("@"));Ot(d,e.manifest,p,r,[p[ye.SchemaTag.key],m]),$I(d,e,n,i,r,void 0,m)}}o(fJ,"importALPViews");function uJ(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(uJ,"getViewTypeByDefinition");function pJ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,f=Object.entries(l).sort((p,d)=>p[1][ye.SchemaTag.propertyIndex]-d[1][ye.SchemaTag.propertyIndex]);for(let p of f)if(p[1].$ref){let d=p[1].$ref.split($)[1],m=uJ(d),v=a[p[0]]=n.createInstance(i,m),S=s[d].entitySet,b=rj(s,d,S);if(Ot(v,e.manifest,s[d],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let I=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;BI(e,v,n,i,r,I,b),$I(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}Wr(t.table,"views")}o(pJ,"importLRViews");function dJ(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let f in l.properties){let p=l.properties[f];if(typeof p=="object"&&p.$ref){let d=Jt(p.$ref),m=e.definitions[d],v=Jt(m.$ref||p.$ref);t[s].actions[f]=n.createInstance(ye.PageTypeV4.ObjectPage,v),Ot(t[s].actions[f],i,e.definitions[v],r,[f.replace("/","??")]),Wr(t.header,"actions"),Wr(t,"header")}}}}o(dJ,"transferHeaderActions");function gJ(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let f=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];Ot(f,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=f}}o(gJ,"importCustomFilterFields");function mJ(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),dJ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),cJ(e,t.filterBar,n,i,r),gJ(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.DefinitionName.Table,l=e.jsonSchema.definitions[s],f;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],f=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,ye.DefinitionName.Table);let p=rj(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),BI(e,t,n,i,r,f),$I(t.table,e,n,i,r,f,p),pJ(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&fJ(e,t,n,i,r)}o(mJ,"addSettings");function ml(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){oe(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new qa,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=pS(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){mJ(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(ml,"createListReportConfig");var ve=Z(re()),oc=require("@sap-ux/vocabularies-types/vocabularies/UI");function hJ(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(hJ,"isBoolean");function yJ(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(yJ,"isNumber");function TJ(e,t){let n=e.toString();return hJ(n,t)?n==="true":yJ(n,t)?parseFloat(n):e}o(TJ,"convertValue");function vJ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=TJ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(vJ,"importProperty");function oj(e,t,n){let i,r=Mf(e.file,!1,n);if(r){let a=bT(r);i={},ll({fullSchema:t,schema:t,element:a,contextPath:[],config:i},vJ)}return i}o(oj,"convertXmlFileToConfig");function ev(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=oj(s,i,e.logger)),l}o(ev,"createCustomPageConfig");function zd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=kf(t),f=(v=r.definitions)==null?void 0:v[l];if(!r||!f)return;let p=Rc(i,a),d=Lc(n||[],p,i,"fragment",t),m;if(d){let S={...f,definitions:r.definitions};m=oj(d,S,s)}return m}o(zd,"createCustomFragmentConfig");function HI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(HI,"getManifestId");function Jd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Jd,"getDefinitionId");function bJ(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Jd(a)];if(l)for(let f in l.properties){l.properties[f].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let d=r.createInstance(ve.PageTypeV4.ObjectPage,s);Ot(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[f],a),Object.keys(d).length>0&&(n[i].table.columns[f]=d)}}}o(bJ,"fillTableColumnsInConfig");function cj(e,t,n,i,r,a){var s;if(typeof t=="object")for(let l in t.properties){let f=t.properties[l];if(typeof f=="object"&&f.$ref){let p=Jt(f.$ref),d=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(ve.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let S={actionPropertyDefinition:d,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Wl(S)}}}o(cj,"fillSectionActionsInConfig");function SJ(e,t,n,i,r,a){if(t.actions){let s=i[n].form.actions={},f=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${Jd(a)}>`].properties.form.$ref.split($)[1],m=e.jsonSchema.definitions[f].properties.actions.$ref.split($)[1],v=e.jsonSchema.definitions[m];for(let S in v.properties){let b=v.properties[S],I=Jt(b.$ref),F=e.jsonSchema.definitions[I];if(F.annotationType===oc.UIAnnotationTypes.DataFieldForAction||F.annotationType===oc.UIAnnotationTypes.DataFieldForActionGroup||F.description==="Custom Action"){let j={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:S,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Wl(j)}}}}o(SJ,"fillFormActionsInConfig");function AJ(e){return new Map([["AnalyticalTable",ve.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ve.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ve.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ve.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ve.DefinitionName.ObjectPageResponsiveTableV4}o(AJ,"getTableDefinitionNameByType");function aj(e,t,n,i,r,a){var f;let s=a||HI(i,!1,oc.UIAnnotationTerms.LineItem),l=(f=t.controlConfiguration)==null?void 0:f[s];if(l){let{tableSettings:p={}}=l,d=p.type,m=AJ(d);n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,m);let v=`${m}<${a?Jd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[v],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let S=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${Jd(s)}>`];cj(e,S,i,n,r,s),bJ(e,l,n,i,r,s)}}o(aj,"fillTableInConfig");function EJ(e,t,n,i,r){var l;let a=HI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),SJ(e,s,i,n,r,a))}o(EJ,"fillFormInConfig");function PJ(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let f=zd(e,s.fragmentName);s.controls=f}n[i]=s}o(PJ,"fillCustomSubSectionInConfig");function lj(e,t,n,i,r,a){var s,l,f,p,d;for(let m in t){let v=t[m],S=m;if(m.includes(oc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];S=HI(b,!0,oc.UIAnnotationTerms.LineItem),aj(e,n,i,m,r,S)}else(l=v.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?aj(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},lj(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(f=v.$ref)!=null&&f.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${oc.UIAnnotationTerms.FieldGroup}::`))?EJ(e,n,i,m,r):(d=v.$ref)!=null&&d.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&PJ(e,v,i,m,r,a)}}o(lj,"fillSectionsInConfig");function xJ(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let f=r[l];if("subSections"in f)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),f.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${Jd(l)}>`];cj(e,m,l,p,i,l)}let d=f.template;if(d){let m=zd(e,d);p.controls=m}n.sections[l]=p}}o(xJ,"fillCustomSectionsInConfig");function CJ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let f=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=f.template;if(d){let v=zd(e,d);p.controls=v}let m=f.templateEdit;if(m){let v=zd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(CJ,"fillCustomHeaderSectionsInConfig");function IJ(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let f in a.properties){let p=a.properties[f],d,m=(s=a.properties[f].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[f]=n.createInstance(ve.PageTypeV4.ObjectPage,d),Ot(t.header.sections[f],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(IJ,"fillHeaderFacets");function sj(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let f=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&Wl({actionPropertyDefinition:d,appSchema:e,factory:n,actionsInConfig:f,actionKey:p,manifest:i,routingId:r})}}}o(sj,"fillHeaderFooterActions");function OJ(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},lj(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),xJ(e,r,i,n),IJ(e.jsonSchema,i,n,e.manifest,e.routingId),CJ(e,r,i,n),sj(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),sj(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(OJ,"fillObjectPageConfig");function tv(e){if(Qt(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new qa;return OJ(e,n,i)}o(tv,"createObjectPageConfigV4");var Ke=Z(re());var GI=[],nv={};function RJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(RJ,"routesSorter");function WI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(WI,"resolveTarget");function LJ(e){let t={};e=e.concat().sort(RJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=WI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(LJ,"populateAssociations");function FJ(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(oe(t,{severity:Ke.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(FJ,"determinePageType");function NJ(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=tv(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=ev(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ml(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ml(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ju(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=ml(r,s)}}}o(NJ,"convertSettingsToConfig");function DJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");GI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");GI.push(t[t.length-1])}}o(DJ,"updateUnhandledControllers");function _J(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(_J,"setVariantManagmentAndNavigation");function VJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=ul(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(VJ,"setEntitySetEntityTypeContextPath");function wJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ke.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(wJ,"evaluateCustomPageSettings");function MJ(e,t,n,i){var p;let r=e.targets[t],a=FJ(r,i.logger,t),s={pageType:a};if(VJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),nv[t]&&nv[t].indexOf(".")!==-1){let d=nv[t].split(".");s.navigationProperty=d[d.length-1]}wJ(r,s,a),_J(r,s),DJ(r);let l=e.routes.find(d=>(d==null?void 0:d.target)&&d.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let f={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};NJ(f)}o(MJ,"getSinglePageAndConfig");function fj(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return oe(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}nv=LJ(n.routes||[]);for(let i in n.targets)MJ(n,i,t,e);return t}o(fj,"getPagesAndConfigs");function uj(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return WI(t?t.target:e.routes[0].target)}else return}o(uj,"getHome");function pj(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(pj,"getSettings");function au(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];_m(t,a.name)&&(i[r]=a)}return i}o(au,"getPages");var KI=class KI extends ys{constructor(t){Qt();let n=new jf,i=_t(Ke.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,uj(t.manifest[Ke.ManifestSection.ui5].routing),fj(t),{...pj(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=GI}};o(KI,"V4AppProvider");var ou=KI;var dj=require("fs"),hl=require("path"),gj=Z(re()),Zd=Z(re());var mj=o((e,t,n=__dirname)=>{let i;switch(t){case Zd.SchemaType.Application:{i=`${Zd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Zd.SchemaType.FPMCustomPage:{i=`${Zd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,hl.join)(n,"schemas",e,i);if(n.endsWith((0,hl.join)("specification","packages","specification")))return(0,hl.join)(n,"dist","schemas",e,i);if(n.endsWith((0,hl.join)("src","specification")))return(0,hl.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,hl.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),kJ=o(async e=>new Promise((t,n)=>{(0,dj.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),iv=o(async(e,t)=>{try{let n=mj(e||gj.FioriElementsVersion.v4,t,__dirname);return await kJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function jJ(e,t){let n={},i=[];switch(i=[pe.SchemaType.Application],e){case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.AnalyticalListPageV4:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.FreestylePageV4:i.push(pe.SchemaType.FreestylePage),t===pe.FioriElementsVersion.v4&&i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.ListReportObjectPageV2:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage);break;case pe.TemplateType.AnalyticalListPageV2:i.push(pe.SchemaType.AnalyticalListPage,pe.SchemaType.ObjectPage);break;case pe.TemplateType.OverviewPageV2:i.push(pe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await iv(t,r)}return n}o(jJ,"getGenericSchemas");function yj(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(pe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(yj,"getAnnotationsForUi");function eg(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(eg,"getEntitySetByEntitySetName");function UJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,f=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(f==null?void 0:f.name))}}return{entityType:n,entitySet:i}}o(UJ,"resolveNavigationProperty");function ul(e,t,n,i){var l,f,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(f=r.target)==null?void 0:f.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=UJ(r,e):oe(i,{severity:pe.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:pe.MANIFESTPATH}}),n&&!a&&oe(i,{severity:pe.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(ul,"getEntityTypeEntitySetFromContextPath");function hj(e,t,n){let i=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=eg(a,e.serviceAVT);s||oe(e.logger,{severity:pe.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(pe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),f=_t(pe.SchemaType.ObjectPage);n[l.filename]=tg(e,t[f.filename])}}o(hj,"generateObjectPageSchemasV2");function $J(e,t,n){var l,f;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=au(e.manifest,pe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let d=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(f=a[p].options.settings)==null?void 0:f.contextPath,{entitySet:v,entityType:S}=ul(s,m,d,e.logger);e.entityType=S,e.entitySet=v;let b=_t(pe.SchemaType.ListReport,p),I=_t(pe.SchemaType.ListReport);e.templateType===pe.TemplateType.FreestylePageV4&&(e.templateType=ju(a[p])),n[b.filename]=Up(e,t[I.filename],a[p].name,m)}}o($J,"generateListReportSchemasV4");function BJ(e,t,n){var r;let i=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=eg(s,e.serviceAVT);let l=_t(pe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),f=_t(pe.SchemaType.ListReport);t[l.filename]=kp(e,n[f.filename])}}o(BJ,"generateAppSchemaV2LR");function HJ(e,t,n){var a,s;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let f=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=ul(r,p,f);e.entitySet=m,e.entityType=d;let v=_t(pe.SchemaType.ObjectPage,l),S=_t(pe.SchemaType.ObjectPage),b=_t(pe.SchemaType.FPMCustomPage);n[v.filename]=md(e,t[S.filename],p,t[b.filename])}}o(HJ,"generateObjectPageSchemasV4");function GJ(e,t,n,i){var a;let r={};if(i===pe.TemplateType.ListReportObjectPageV2&&n)BJ(e,r,t),hj(e,t,r);else if(i===pe.TemplateType.AnalyticalListPageV2&&n){let s=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let f=s[l].entitySet;e.entitySet=eg(f,e.serviceAVT);let p=_t(pe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||f),d=_t(pe.SchemaType.AnalyticalListPage);r[p.filename]=ng(e,t[d.filename])}hj(e,t,r)}else if(i===pe.TemplateType.OverviewPageV2){let s=_t(pe.SchemaType.OverviewPage),l=_t(pe.SchemaType.OverviewPage);r[s.filename]=ig(t[l.filename],e.manifest)}return{...t,...r}}o(GJ,"generateAppSchemasV2");function WJ(e,t,n){if(!Ec(e.featureToggles,pe.Features.BuildingBlocks))return;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let f=_t(pe.SchemaType.FPMCustomPage,void 0,l),p=_t(pe.SchemaType.FPMCustomPage);n[f.filename]=fl(t[p.filename],s,e.serviceAVT,e.logger)}}}o(WJ,"generateCustomPageSchemasV4");function KJ(e,t,n){let i={};return n&&($J(e,t,i),HJ(e,t,i),WJ(e,t,i)),{...t,...i}}o(KJ,"generateAppSchemasV4");async function Tj(e,t,n){let i=await jJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===pe.FioriElementsVersion.v4?KJ(e,i,t):GJ(e,i,t,n)}o(Tj,"generateAppSchemas");function XJ(e){let t,n=[];switch(e.templateType){case pe.TemplateType.ListReportObjectPageV2:case pe.TemplateType.AnalyticalListPageV2:t=new Cy(e);break;case pe.TemplateType.AnalyticalListPageV4:case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.FreestylePageV4:t=new ou(e);break;case pe.TemplateType.OverviewPageV2:t=new Oy(e);break;default:t=new ou(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(XJ,"importConfigs");function vj(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===pe.SchemaType.Application?r=`${pe.DirName.Schemas}/${pe.FileName.App[0].toUpperCase()}${pe.FileName.App.slice(1)}`:r=`${pe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(vj,"getFileList");async function XI(e){var b,I;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Wu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let f=yS(t),p=Gr(n,i),d=yj(p),m=Ac(t,f,i),S=await Tj({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:f,logger:i,featureToggles:s},d,m);return vj(S)}o(XI,"importProjectSchema");async function QI(e){var W,U;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Wu().doesUi5VersionFitDistTags((U=(W=t["sap.ui5"])==null?void 0:W.dependencies)==null?void 0:U.minUI5Version,i);let p=yS(t),d=Q0(t),m=Gr(n,i),v=Ac(t,p,i),S={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=yj(m),I=await Tj(S,b,v),j=XJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:d});return vj(I,j)}o(QI,"importProjectSchemaAndConfig");var QJ=["header","sections","footer"];function qJ(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(ht(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}o(qJ,"addFlexChangeForSection");function YJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Fo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:f}=th(a,r.serviceAVT);if(!l)return;let p=a.Label||s,d=`ObjectPageHeaderAction<${at(l)}>`;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Fo.UIAnnotationTerms.Identification}`,`/@${Fo.UIAnnotationTerms.Identification}`);t.definitions[d][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[d][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[d].description=p,t.definitions[d][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],f&&(t.definitions[d][ae.SchemaTag.target]=f),i.properties[l]={$ref:`${$}${d}`}}})}o(YJ,"addHeaderActionCallBackV2");function zJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Fo.UIAnnotationTypes.DataFieldForAction){let a=Kr(r).split("::").splice(1).join("::"),s=ci(r,e),l=at(`${ae.DefinitionName.ObjectPageFooterAction}<${a}>`),f=r.fullyQualifiedName.replace(`@${Fo.UIAnnotationTerms.Identification}`,`/@${Fo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${f}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(zJ,"addFooterActionCallBackV2");function JJ(e,t,n,i,r,a,s,l){let f,p;if(a.ID&&a.Label?f=a.ID+a.Label.replace(/\s+/g,""):a.ID?f=a.ID:a.Label&&(f=a.Label.replace(/\s+/g,"")),f?p=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${f}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${ae.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),S=zc(t[ae.ManifestSection.generic].pages,n,m);return Xl(e,v,S,t,l,p,d,a.ID),p}o(JJ,"ensureCustomColumnDefinitionExists");function og(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&qJ(e,t,"visible",n)}o(og,"addAppSchemaDefinition");function ZJ(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(ZJ,"addSectionReference");function rg(e,t,n,i){let r=at(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FACETTITLEPREFIX+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,gs(n.entityType,i,`QuickVariant<${t}>`)}o(rg,"addTableDefinition");function eZ(e,t,n,i,r,a){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jo(n,i,t);let f=n.definitions[l];og(n,f,a,"ObjectPageSectionTableV2"),f.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),f.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],f[ae.SchemaTag.annotationPath]=i.annotationPath,Sa(i,f,t),ls(i,f,t),rg("ObjectPageResponsiveTableWithMultiSelect",t,i,n),rg("ObjectPageResponsiveTableWithInlineDelete",t,i,n),rg("ObjectPageGridTable",t,i,n),rg("ObjectPageTreeTable",t,i,n),rg("ObjectPageAnalyticalTable",t,i,n);let p,d=U_(i.entityType,e.serviceAVT);d&&(p=JJ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&Kl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(eZ,"handleLineItem");function tZ(e,t,n,i,r,a=!1){e.definitions[t]=jo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";og(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}o(tZ,"handleSubSection");function nZ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];og(e,a,r,"ObjectPageSectionChartV2")}o(nZ,"handleSectionChart");function bj(e,t,n,i,r,a){e.definitions[t]=jo(e,n,i);let s=e.definitions[t];og(e,s,r,a||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=_c(n==null?void 0:n.target)}o(bj,"handleHeaderFacet");function iZ(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=_c(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(iZ,"addDataPointHeaderFacetDataType");function rZ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];return og(e,a,r,"ObjectPageSectionFormV2"),a[ae.SchemaTag.annotationPath]=n.annotationPath,a[ae.SchemaTag.isViewNode]=!0,a}o(rZ,"handleFormSection");function oZ(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(oZ,"getSectionType");function aZ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Fo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(aZ,"getReferenceKey");function Aj(e,t,n,i,r,a=!1,s=!1){let l=t[n],f=oZ(l.base,a,s),p=aZ(l,n,f),d=`${f}<${p}>`;switch(ZJ(i,p,d),f){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,tZ(r,d,l,n,f,s);let m=r.definitions[d].properties.subsections;for(let v in l.facets)Aj(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{eZ(e,p,r,l,t,f),Yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{nZ(r,d,l,p,f);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=rZ(r,d,l,p,f);eh(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Gu(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Gu(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{bj(r,d,l,p,f);break}case"ObjectPageHeaderSectionDataPoint":{bj(r,d,l,p,f),iZ(r,d,l);break}default:i.properties[n]=jo(r,l,p)}}o(Aj,"addSection");function Sj(e,t,n,i,r,a=!1){if(e)for(let s in t)Aj(i,t,s,n,r,!1,a)}o(Sj,"addSectionsFromFacets");function Ej(e,t,n){var d,m,v,S,b,I;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(d=e.entitySet)!=null&&d.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fo.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Om((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=Im((S=e.entitySet)==null?void 0:S.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,f=s&&!!Object.keys(s).length;if(!l&&!f)return;for(let F in n){let j=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(Sj(l,a,i,e,t),Sj(f,s,r,e,t,!0)):Ej(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Ej,"addSections");function sZ(e,t,n){rh(e,n),ih(e,n,t,YJ,void 0,!0)}o(sZ,"addHeader");function cZ(e,t,n,i){let r=Y0(t,n,i,void 0,!0);r&&W_(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(cZ,"addRelatedFacetKeysType");function tg(e,t){var s;Qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[ae.ManifestSection.generic].pages;return a?(sZ(n,e,r),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Ej(e,n,a),cZ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),nh(n,e,ae.FioriElementsVersion.v2,zJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,$o(n,QJ),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}o(tg,"generateObjectPageSchemaV2");var nn=Z(re());var lZ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function fZ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(ws(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:nn.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let f=(l==null?void 0:l.Visualizations)||[],p="",d="";f.some(function(I){return p=p||Bu("LineItem",I),d=d||Bu("Chart",I),p&&d}),p=p||"LineItem",d=d||"Chart";let m=t[p],v=t[d],S=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(S>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][S-1],F=Q.t(I);oe(n,{severity:nn.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(fZ,"getLineItemAndChartAnnotation");function uZ(e,t){let n=e.definitions[nn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[nn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(uZ,"addChart");function ng(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[nn.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[nn.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[nn.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,D_(n.definitions.TableColumnExtensionTypeV2.enum,[nn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=ql(e);if(s){Ql(n);let l=[],f=hf(e.manifest[nn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:d}=fZ(f,s,e.logger);p&&I_.forEach(v=>{n.definitions[v][nn.SchemaTag.annotationPath]=Sr(a.fullyQualifiedName,p.term,p.qualifier)}),Kl(!1,n,p,a),d&&uZ(n,d);let m=s.SelectionFields;if(zm(n,m,a),Yl(n,a),!f)return oe(e.logger,{severity:nn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}}),n;Xl(n,a,f,e.manifest,e.fragments),dP(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return $o(n,lZ),n}o(ng,"generateAnalyticalListReportSchemaV2");var Pj=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function pZ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(pZ,"getCardDefinitionNames");function dZ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(f=>i.includes(r[f].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Ca(a,s.CardModel);let l=pZ(e);for(let f of l){let p=s[f].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(dZ,"addModelsEnum");function gZ(e,t){let n=e.properties;for(let i in Pj){let r=Pj[i],a=r.key;n[a]&&(n[a].messages=[{text:Hl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(gZ,"markDeprecatedProperties");function xj(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},gZ(n,t),dZ(n,t),n}o(xj,"generateOverviewPageSchemaV2");var ac=Z(re());function qI(e,t,n,i,r,a){Qt();let s=Gr(e,t),l={templateType:a,fioriElementsVersion:ac.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=eg(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:ac.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(qI,"prepareGenerationV2");function YI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.ListReportObjectPageV2);return tg(s,e)}o(YI,"generateObjectPageInterfaceV2");function zI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.ListReportObjectPageV2);return kp(s,e)}o(zI,"generateListReportInterfaceV2");function JI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.AnalyticalListPageV2);return ng(s,e)}o(JI,"generateAnalyticalListPageInterfaceV2");function ig(e,t){return xj(e,t)}o(ig,"generateOVPInterfaceV2");var su=Z(re()),Ij=require("@sap-ux/vocabularies-types/vocabularies/UI");function Cj(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Cj,"updateDependencyLib");function rv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(rv,"extractLastIdPart");function Oj(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:su.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(su.PropertyName.sections),s=a>-1?rv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Ij.UIAnnotationTerms.LineItem}`,f=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...f&&{eventHandler:f}},d={customExtension:su.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return ZI(d),!0}o(Oj,"createNewCustomColumn");var Ya=Z(re());var Lj=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Rj=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function mZ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(mZ,"initializeRouting");function hZ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(hZ,"setTargetOptions");function yZ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ya.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(yZ,"calculateQueryPattern");function Fj(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(f=>n[s].navigation[f].route===i);l&&(t=l,a=n[s])}if(a){Fj(e,t,n,s);return}}}o(Fj,"fillNavigationParts");function TZ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(TZ,"fillParentKeys");function vZ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(hZ(n,a,s),s!=null&&s.route&&!i.routes.some(f=>f.name===s.route)){let f=l==null?void 0:l.routePattern;if(!f){let p=[];Fj(p,a,t,r,l==null?void 0:l.contextPath);let d=TZ(e.routePattern);f=yZ(p,l,d)}i.routes.push(Lj(f,s.route,s.route))}}}o(vZ,"handlePageNavigation");function bZ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(bZ,"removeDeletedPages");function SZ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Rj({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Rj({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(SZ,"transferEntitySetandContextPath");function AZ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(AZ,"updateRouteLayout");function EZ(e,t,n){var i;return e.pageType&&![Ya.PageTypeV4.CustomPage,Ya.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Ya.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ya.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(EZ,"fillTarget");function Nj(e,t,n){var r,a;let i=mZ(n[Ya.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Lj(":?query:",e,e));for(let s in t){let l,f=t[s];i.targets[s]&&(l=i.targets[s]),l=EZ(f,l,s),SZ(f,l),l&&!f.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),vZ(f,t,l,i,s),AZ(i,s,f),i.targets[s]=l}return bZ(i,t),i}o(Nj,"transformRoutingV4");var Li=Z(re());var Dj=[Li.FlexibleColumnLayoutAggregations.BeginColumnPages,Li.FlexibleColumnLayoutAggregations.MidColumnPages,Li.FlexibleColumnLayoutAggregations.EndColumnPages],_j=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(d=>d.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Dj[r]?s.controlAggregation=Dj[r]:s.controlAggregation=Li.FlexibleColumnLayoutAggregations.EndColumnPages;let f=a.pattern.replace(":?query:","");if(f?s.contextPattern=f.startsWith("/")?f:`/${f}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)_j(e,t,l.navigation[d].route,a.target,r)}},"applyFCLRouting"),PZ=o((e,t)=>{e.routing.config.routerClass=Li.v4.FIORI_FCL_ROUTER_CLASS,_j(e,t,t.home);let n={viewName:Li.FIORI_FCL_ROOT_VIEW_NAME,type:Li.ViewTypes.XML,async:!0,id:Li.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Cj(e,Li.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),xZ=o(e=>{var t;e.rootView&&e.rootView.viewName===Li.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Li.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),Vj=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?PZ(e,t):xZ(e)},"updateFcl");var ie=Z(re()),ag=require("@sap-ux/vocabularies-types/vocabularies/UI");var wj=Z(Sc()),ov=Z(re());function CZ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(CZ,"isExportValueEquals");function IZ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===ov.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(IZ,"deleteProperty");function Mj(e,t,n,i){var f,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let d={name:i,type:"element"};return s.elements.push(d),ll({fullSchema:a,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},Mj)}else CZ((f=s.attributes)==null?void 0:f[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(IZ(e,i),l=!0);return l}o(Mj,"exportProperty");function av(e,t,n,i,r,a){let s=Mf(e.file,!1,a);if(s){let l=bT(s);if(ll({fullSchema:i,schema:i,element:l,contextPath:[],config:n},Mj)){let p=(0,wj.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:ov.ChangeIndicator.Updated};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}o(av,"getExtensionExportResult");var kj=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},f;return r&&Object.keys(r).length>0&&(f=Bo(n||[],a.name,i,s)),f&&av(f,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),jj=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:f}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=Rc(f,s[0]);p=Lc(a,m,f,d,t)}if(p){let m=kf(t),S={...i.definitions[m],definitions:i.definitions};av(p,r,n,S,d,l)}},"exportXMLFragmentConfig");var Uj=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],OZ=[...Uj,"views","initialLoad","template"],sv=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function RZ(e,t,n){var s,l,f,p;let i=`@${ag.UIAnnotationTerms.LineItem}`,r=`@${ag.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(f=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:f[ie.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let d=a.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(RZ,"determineTargetAnnotationOfTable");function LZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(LZ,"determineTargetAnnotationOfChart");function FZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],f=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${f}`:f}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(FZ,"determineTargetAnnotationBasedOnParentView");function NZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=FZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let f=l[ie.SchemaTag.annotationPath].split("/");return n=i=f[f.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(NZ,"determineTargetAnnotationOfView");function DZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(DZ,"determineTargetAnnotationOfHeaderSections");function _Z(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=rv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(_Z,"determineTargetAnnotationOfSections");function VZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=RZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=LZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=_Z(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=DZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=NZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(VZ,"determineTargetAnnotation");function wZ(e){return e.includes(IS)}o(wZ,"isGroupingElement");function MZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||wZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(MZ,"determineKeyForSyncRule");function kZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(kZ,"createNewObjectInManifest");function $j(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(kZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o($j,"transferPropertyToManifest");function jZ(e,t,n,i,r,a,s){var p,d,m;let l=!1,f=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((d=n.config.table)!=null&&d.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&Uj.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(f!=null&&f.annotationPath)&&!f.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&OZ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return fs(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(jZ,"deleteFromManifest");function UZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:f,custom:p}=VZ(e,n.transferParameters,n.configObject),d=MZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,d,f,n.configObject,a),v=ko(n.transferParameters.exportResults.manifest,m,f,p?void 0:l);if(v){let S={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:d};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&jl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=jZ(e,S,n.transferParameters,v,m,f,l):r=$j(S,n.propertyDefinition,i)}return r}o(UZ,"exportManifestChange");function $Z(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);jj(e.transferParameters,r,n.configObject)}else i.manifest&&UZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o($Z,"evaluateExportRule");function BZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,tO(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(BZ,"transferSubObject");function HZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=dt(e.pageNameArray)+"/views",a=ko(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(HZ,"createALPTableView");function GZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=dt(e.transferParameters.pageNameArray)+"/views",r=ko(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||ag.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(GZ,"createALPChartView");function WZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=dt(e.pageNameArray),r=ko(e.exportResults.manifest,i),a=`@${ag.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let f=t[l];s[l]={};for(let p in f)p==="visualFilterValueList"?s[l].visualFilter={valueList:f[p]}:s[l][p]=f[p]})}return n}o(WZ,"createVisualFilters");function KZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=dt(t.pageNameArray)+"/views",s=ko(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let f=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(f===-1)s.paths.push(l),r=!0;else if(f!==i.index){let p=JSON.parse(JSON.stringify(s.paths[f]));s.paths.splice(f,1),s.paths.splice(e,0,p),r=!0}}return r}o(KZ,"createLRTableView");function XZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Oj(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return GZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return HZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=KZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=WZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(XZ,"createNewElement");function QZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(QZ,"isDefinitionTraversable");function eO(e,t,n,i=!1){var d;let r=e.configObject[e.key],a=wm(e.configObject,e.key),s=Uo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:f}=XZ(e,(d=e.propertyDefinition.$ref)==null?void 0:d.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||$Z(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||QZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!f){let m=a?[...n,a]:n;BZ(e,s,r,p,m)}}o(eO,"transferSortedListEntry");function qZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,f)=>l[1]&&l[1].index-f[1].index),s.forEach(l=>{var f;(f=n.properties)!=null&&f[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],eO(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,eO(e,i,r),a=!0)}),e.index++})}return a}o(qZ,"transferConfigEntriesWithAnyOfDefinitions");function YZ(e,t,n,i){let r=TS(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(YZ,"mergeEntriesForInsert");function zZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(zZ,"sortProperties");function JZ(e,t,n,i,r,a){var l,f;let s=!1;if(e){let p=e.anyOf;if(!p){let d=(l=e.$ref)==null?void 0:l.split($)[1];p=d?(f=t.appSchema.definitions[d])==null?void 0:f.anyOf:void 0}s=qZ(n,p,i,r,a)}return s}o(JZ,"checkIfAnyOfDefinition");function tO(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},f=a.additionalProperties,p=JZ(f,e,l,a,n,i),d=zZ(a.properties);f!=null&&f.$ref&&YZ(e,f,d,t),s=0,d&&d.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!jl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,eO(l,n,i,p),m[1].$ref&&s++)})}o(tO,"transferManifestEntriesAndFlexChange");function Bj(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(Bj,"getClassesForSingleSection");function Hj(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Bj(n,i,t),Hj(n,t)}}o(Hj,"getSubsectionClasses");function ZZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Bj(e,r,n),Hj(i,n)}o(ZZ,"getExportClassesForSections");function Gj(e,t){let n=Mm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(Gj,"calculateBaseId");var Wj=o((e,t,n=!1)=>{var l;let i=sv(e.manifest),r=new qa,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&ZZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:Gj(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return tO(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),eee=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=sv(e.manifest),f=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,d=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;f.definitions[ie.DefinitionName.TableSPV]&&(m=f.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let v=f.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=d.toolBar)!=null&&I.actions&&v)for(let F in v.properties)d.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,d.toolBar.actions[F]);let S={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:Gj(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return tO(S,n,[],[],[],f),l},"exportListPage"),nO=o((e,t,n,i=!1)=>{let r=new qa,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return eee(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),Kj=o((e,t,n=!1)=>nO(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),tee=o((e,t,n,i,r,a)=>{let s=ko(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=dS());let f={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];$j(f,p,{}),!l&&Object.keys(s).length&&X0(r,t,s)},"applyExportRule"),nee=o((e,t,n)=>{var a;let i=sv(t),r=Object.assign(new xT,e);r.settings=Object.assign(new jf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let f=l.manifest.path();if(l.manifest.export)tee(l,f,s,e,i.manifest,n);else{let p=ko(i.manifest,f);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],fs(i.manifest,f,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Nj(e.home,e.pages,i.manifest),Vj(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),Xj=o((e,t)=>{if(e[ie.SchemaType.ListReport])return nO(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return Wj(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return nee(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return Kj(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return kj(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),iee=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=sv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&av(l,s,i.config,t,"view",a),s},"exportCustomPage"),iO=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return nO(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return Wj(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return Kj(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return iee(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var $t=require("@sap-ux/fe-fpm-writer");var ree=new Map([[ge.CustomExtensionType.CustomPage,$t.generateCustomPage],[ge.CustomExtensionType.CustomColumn,$t.generateCustomColumn],[ge.CustomExtensionType.CustomSection,$t.generateCustomSection],[ge.CustomExtensionType.ObjectPage,$t.generateObjectPage],[ge.CustomExtensionType.ListReport,$t.generateListReport],[ge.CustomExtensionType.CustomAction,$t.generateCustomAction],[ge.CustomExtensionType.CustomView,$t.generateCustomView],[ge.CustomExtensionType.ControllerExtension,$t.generateControllerExtension],[ge.CustomExtensionType.CustomSubSection,$t.generateCustomSubSection],[ge.CustomExtensionType.CustomFilterField,$t.generateCustomFilter],[ge.CustomExtensionType.CustomHeaderSection,$t.generateCustomHeaderSection]]),oee={api:$t.PromptsAPI,types:$t.PromptsType};function aee(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.ListReport];t=zI(i,r,a,s,l,f)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.ObjectPage];t=YI(i,r,a,s,l,f)}else if(n[ge.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[ge.SchemaType.OverviewPage];t=ig(i,r)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.AnalyticalListPage];t=JI(i,r,a,s,l,f)}}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[ge.SchemaType.ListReport];t=PT(ge.TemplateType.ListReportObjectPageV4,i,r,a,s,l,f)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:f,contextPath:p,genericMacrosSchema:d}=n[ge.SchemaType.ObjectPage];t=Fx(i,r,a,s,l,f,p,d,e.featureToggles)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[ge.SchemaType.AnalyticalListPage];t=PT(ge.TemplateType.AnalyticalListPageV4,i,r,a,s,l,f)}else if(n[ge.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[ge.SchemaType.FreestylePage];t=Nx(ge.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[ge.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:f}=n[ge.SchemaType.FPMCustomPage];t=Dx(i,r,a,s,f,e.featureToggles,l)}}return t}o(aee,"generateSchema");function see(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=f1(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=Xj(i,n)}return t}o(see,"exportConfig");function cee(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=mP(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=iO(i,n)}return t}o(cee,"exportConfigEntityByPath");function lee(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=mP(i,n,!0)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=iO(i,n,!0)}return t}o(lee,"deleteConfigEntityByPath");function fee(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];n[ge.SchemaType.ListReport]?t=xy(n[ge.SchemaType.ListReport]):n[ge.SchemaType.ObjectPage]?t=hy(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.OverviewPage]?t=yy(n[ge.SchemaType.OverviewPage]):n[ge.SchemaType.AnalyticalListPage]&&(t=Ty(n[ge.SchemaType.AnalyticalListPage]))}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];n[ge.SchemaType.ListReport]?t=ml(n[ge.SchemaType.ListReport],ge.SchemaType.ListReport):n[ge.SchemaType.ObjectPage]?t=tv(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.AnalyticalListPage]?t=ml(n[ge.SchemaType.AnalyticalListPage],ge.SchemaType.AnalyticalListPage):n[ge.SchemaType.FPMCustomPage]&&(t=ev(n[ge.SchemaType.FPMCustomPage]))}return t}o(fee,"importConfig");async function uee(e){return QI(e)}o(uee,"importProject");async function pee(e){return XI(e)}o(pee,"importProjectSchema");function dee(){return{version:"23",fpmWriter:"33",moduleVersion:Y_.version}}o(dee,"getApiVersion");function ZI(e){let t=ree.get(e.customExtension);if(t&&typeof t=="function")return(0,$t.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(ZI,"generateCustomExtension");var lo=require("path"),sc=require("fs");var cu=o(async e=>new Promise((t,n)=>{(0,sc.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),gee=o(async e=>JSON.parse(await cu(e)),"readJSON"),rO=o(async e=>new Promise((t,n)=>{(0,sc.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),mee=o(async e=>new Promise(t=>{(0,sc.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),qj=o(async e=>new Promise(t=>{(0,sc.exists)(e,n=>{t(n)})}),"resourceExists"),hee=o(async e=>gee((0,lo.join)(e,"manifest.json")),"getManifest"),Yj=o(async e=>{let t=[],n=(0,lo.join)(e,"changes");if(!await qj(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await rO(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await cu((0,lo.join)(n,a)));return t},"getChanges"),Qj=o(async(e,t="fragments")=>{let n=[],i=(0,lo.join)(e,"ext",t);if(!await qj(i))return n;let r=await rO(i);for(let a of r){let s=(0,lo.join)(i,a),l=await cu(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),yee=o(async(e,t)=>{var r,a,s,l,f,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,lo.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await cu(v)})}if((f=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&f.annotations){for(let v of i.mainService.settings.annotations)if((d=(p=i[v])==null?void 0:p.settings)!=null&&d.localUri){let S=(0,lo.join)(t,i[v].settings.localUri);n.push({dataSourceUri:S,fileContent:await cu(S)})}}if(n.length===0)for(let v in i){let S=i[v];if((S==null?void 0:S.type)==="ODataAnnotation"&&((m=S==null?void 0:S.settings)!=null&&m.localUri)){let b=(0,lo.join)(t,S.settings.localUri);n.push({dataSourceUri:b,fileContent:await cu(b)})}}return n},"getAnnotations"),Tee=o(async e=>{let t=(0,lo.basename)(e),n=(0,lo.join)(e,"webapp"),i=await hee(n),r=await yee(i,n),a=await Yj(n),s=await Qj(n),l=await Qj(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");bc(Vi,Z(re()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
294
+ `}),GV(Q)}o(Qt,"initI18n");var oP={};vc(oP,{AnalyticalListPage:()=>Yr,ListReport:()=>Eo,ObjectPage:()=>pi,OverviewPage:()=>en,exportFilterSettings:()=>QV,importDateSettingsOVP:()=>KV,importFilterSettings:()=>XV});var gy=Z(re());var Yr=class{};o(Yr,"AnalyticalListPage"),h([y({flex:{controlId:Vm,controlType:o(()=>gy.ControlType.DynamicPage,"controlType")}})],Yr.prototype,"fitContent",2),h([jt("table")],Yr.prototype,"table",2),h([jt("template::SmartFilterBar")],Yr.prototype,"filterBar",2),h([jt("analyticalListPageChart")],Yr.prototype,"chart",2),h([jt("analyticalListFooter")],Yr.prototype,"footer",2),Yr=h([ir({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:gy.v2.FE_TEMPLATE_V2_ALP})],Yr);var Np=Z(re());var Eo=class{};o(Eo,"ListReport"),h([y({flex:{controlId:Vm,controlType:o(()=>Np.ControlType.DynamicPage,"controlType")}})],Eo.prototype,"fitContent",2),h([jt("listReportFilter")],Eo.prototype,"filterBar",2),h([jt("listReport")],Eo.prototype,"table",2),h([jt("listReportFooter")],Eo.prototype,"footer",2),Eo=h([ir({id:Np.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Np.v2.FE_TEMPLATE_V2_LIST_REPORT})],Eo);var rP=Z(re());var pi=class{};o(pi,"ObjectPage"),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.0"})],pi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.1"})],pi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.48.0"})],pi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>wi(t),"path")}}),P({since:"1.52.0"})],pi.prototype,"navToListOnSave",2),h([jt("header")],pi.prototype,"header",2),h([jt("sections")],pi.prototype,"sections",2),h([jt("layout")],pi.prototype,"layout",2),h([y({manifest:{path:o(t=>lh(t),"path")}}),P({since:"1.77.0"})],pi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>wi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),P({since:"1.78.0"})],pi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>wi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Pc}}),P({since:"1.71.0"})],pi.prototype,"globalTableSettings",2),pi=h([ir({id:rP.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:rP.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],pi);function EQ(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(EQ,"importDateSettingsFieldsOVP");function KV(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&EQ(e,t),t}o(KV,"importDateSettingsOVP");function XV(e){let t={};return t.dateSettings=KV(e.filterSettings),t}o(XV,"importFilterSettings");function PQ(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(PQ,"exportFilterFields");function QV(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&PQ(t,n,e))}o(QV,"exportFilterSettings");var en=class{};o(en,"OverviewPage"),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>Pn(),"path"),import:XV,export:QV}}),P({since:"1.80.0"})],en.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>Pn(),"path")}})],en.prototype,"resizableLayout",2),en=h([ir({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],en);var aP=class aP{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(aP,"MetadataFactory");var yf=aP;var ei=Z(re());var xQ={},CQ={Table:kc,ResponsiveTableWithMultiSelect:kc,ResponsiveTableWithInlineDelete:kc},IQ={[ei.v2.CardSettingsType.listCardSettings]:nf,[ei.v2.CardSettingsType.listCardSettingsv4]:nf,[ei.v2.CardSettingsType.analyticalCardSettings]:rf,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:rf,[ei.v2.CardSettingsType.stackCardSettings]:Zu,[ei.v2.CardSettingsType.linkListCardSettings]:ep,[ei.v2.CardSettingsType.tableCardSettings]:of,[ei.v2.CardSettingsType.tableCardSettingsv4]:of},OQ={[ei.SAPUI5_VIEW_CLASS]:xp,[ei.SAPUI5_FRAGMENT_CLASS]:Pp,Table:qc,ObjectPageResponsiveTableWithMultiSelect:qc,ObjectPageResponsiveTableWithInlineDelete:qc},RQ={[ei.PageTypeV2.AnalyticalListPage]:xQ,[ei.PageTypeV2.ListReport]:CQ,[ei.PageTypeV2.ObjectPage]:OQ,[ei.PageTypeV2.OverviewPage]:IQ},sP=class sP extends yf{constructor(){super(ZE,oP,RQ)}};o(sP,"MetadataInstanceFactoryV2");var ki=sP;function LQ(e,t,n,i,r){if(e.filterBar=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(e.filterBar,n.manifest,i[qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(LQ,"importFilterBar");function cP(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,d,m;let l=Ar(s),f={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(d=l.content)!=null&&d.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};ay(n.table,f,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&sy(e,n,s)}o(cP,"importFlexChangesOfTableAndColumns");function FQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Xm]&&t[Qm]&&(a=JSON.parse(JSON.stringify(t[Xm])),a.properties={...a.properties,...t[Qm].properties}),kn(n.table,i.manifest,a,r,i.logger),cP(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(FQ,"importTable");function NQ(e,t,n,i){let r=e.jsonSchema.definitions,a=ly(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),fy(t,n,r),FQ(a,r,t,e,i),t.table.toolBar=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,r[qt.DefinitionName.ToolBarLR],i,e.logger),r[qt.DefinitionName.ActionsLR])for(let l in r[qt.DefinitionName.ActionsLR].properties){let f=Vs(l);t.table.toolBar.actions[f]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.Action),kn(t.table.toolBar.actions[f],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}LQ(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let f=Vs(l);t.footer.actions[f]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.FooterAction),kn(t.footer.actions[f],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}}o(NQ,"addSettings");function qV(e){if(Qt(),!gf(e))return;let n=new ki,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=df(e.manifest[qt.ManifestSection.generic].pages,r);if(mf(a,e.logger,a==null?void 0:a.entitySet),!!a)return NQ(e,i,n,r[0]),e.flex.forEach(s=>{Ar(s)&&cy(i,s,e.jsonSchema,e.logger)}),pf(i,e,a,qt.PageTypeV2.ListReport),dy(i),i}o(qV,"createListReportConfig");var Se=Z(re());var Dp=require("@sap-ux/vocabularies-types/vocabularies/UI");var _Q=[Se.ControlType.Avatar,Se.ControlType.ObjectPageLayout,Se.ControlType.DynamicPage];function VQ(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Dp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Se.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Dp.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(VQ,"getSingleSelectorIdPart");function wQ(e){let t,n=e.split(":::");if(n.length===1)t=VQ(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Dp.UIAnnotationTerms.LineItem}`,`/@${Dp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(wQ,"getFacetID");function MQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,f,p;try{let d=Ar(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((f=m[0])!=null&&f.includes(Se.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let S=wQ(v);v=tP(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${d.content.property}`]={controlId:v,propertyId:d.content.property,facetId:S,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:Se.LogSeverity.Error,message:Q.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,f])=>(s[l]=f,s),{})}o(MQ,"prepareFlexChanges");var kQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function jQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&eP(i,t,r)}o(jQ,"addFlexChangeToColumns");function YV(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Se.VOCWITHSLASH)];for(let f in e){let p=e[f],d=p.propertyId===t,m=t==="columns"&&p.controlType===Se.ControlType.TableColumn;(d||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?jQ(a,p,r.properties,n):ay(n,p,r))}}o(YV,"importFlexChangesOfTable");function UQ(e,t){return e.facetId==="template"&&t}o(UQ,"isStandardActionFlexChange");var zV=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function $Q(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let f=t.controlId.split("::"),p=t.controlType===Se.ControlType.GroupElement&&l,d=((I=t.facetId)==null?void 0:I.includes(Se.ACTIONTITLEPREFIX))&&!r&&s,m=r&&zV(f,r.split("::"))&&s,v=e.title&&zV(f,e.title.split("::"),!0),S=!t.facetId&&_Q.includes(t.controlType),b=UQ(t,l);return p||d||m||v||S||b}o($Q,"matchSelector");function BQ(e,t,n,i,r,a){var f;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((f=e.properties[d.propertyId])==null?void 0:f[Se.SchemaTag.controlType]))continue;$Q(e,d,s,l,r,a)&&(t[i]=d.newValue)}}o(BQ,"importFlexChanges");function HQ(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(oe(n.logger,{severity:Se.LogSeverity.Warning,message:Hl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(HQ,"checkDeprecatedProperties");function GQ(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,f,p;s!=null&&s.title?(f=e.manifest.path(t,{},s.title),p=Kn(n.manifest,f),Object.values(p).length===0&&(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f))):(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return HQ(p,a,n,f),p}o(GQ,"importManifestSetting");function ji(e,t,n,i,r,a){var f,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let d in n.properties||n){let m=Mn(t,d);if(d==="columns"||m!=null&&m.flex)if((f=r==null?void 0:r.type)!=null&&f.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(d==="columns"){let v=n.properties[d].$ref.split($)[1],S=e.jsonSchema.definitions[v];YV(i.flexChanges,d,t,r,S,l)}else YV(i.flexChanges,d,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);BQ(n,t,i.flexChanges,d,v,a)}else m!=null&&m.manifest&&GQ(m,i.pageKeys,e,t,d,s,r)}}o(ji,"transferSettingsAndFlexChanges");function ZV(e,t,n,i){let r=er(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${O_}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${qm}${r}`;break}}return r.replace(/@/g,"")}o(ZV,"getActionId");function WQ(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],f=ZV(s,a,"","");e.actions[a]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,l,{}),ji(n,e[Se.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},f)}}}o(WQ,"fillStandardActions");function my(e,t,n,i,r,a){var l;n[Se.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let f={};a&&(f.id=a);for(let p in t){let d=Vs(p),m=ZV(s,d,r,a);m&&(n[Se.PropertyName.actions][d]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,s),ji(e,n[Se.PropertyName.actions][d],e.jsonSchema.definitions[s],i,f,m)),(l=n[Se.PropertyName.actions])!=null&&l[d]&&Object.keys(n[Se.PropertyName.actions][d]).length===0&&delete n[Se.PropertyName.actions][d]}}WQ(n,t,e,i),Object.keys(n[Se.PropertyName.actions]).length===0&&delete n[Se.PropertyName.actions]}o(my,"fillActions");function KQ(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"Field");let f=(s=t.title)!=null&&s.includes(Se.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;ji(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Se.DefinitionName.Field],r,{},f),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(KQ,"fillFields");function XQ(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(XQ,"prepareTableSchema");function QQ(e,t,n,i,r){var l,f;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=r.factory.createInstance(Se.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Se.PropertyName.table]=d;let m=e.jsonSchema.definitions,v=XQ(p,t,m);ji(e,i[t.id],t.schema,r,{title:t.title}),ji(e,i[t.id][Se.PropertyName.table],v,r,t);let S=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(S!=null&&S.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");my(e,S.properties,i[t.id][Se.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Se.PropertyName.table].toolBar).length===0&&delete i[t.id][Se.PropertyName.table].toolBar}}o(QQ,"fillTableInConfig");function qQ(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Um(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};pf(n[t],e,i,Se.PageTypeV2.ObjectPage,l,r)}}o(qQ,"fillCustomColumnsInConfig");function YQ(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Se.PropertyName.chart]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(ji(e,i[t.id],t.schema,r,{title:t.title}),ji(e,i[t.id][Se.PropertyName.chart],e.jsonSchema.definitions[Se.DefinitionName.ObjectPageChart],r,t))}o(YQ,"fillChartSection");function zQ(e,t,n,i){n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&ji(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(zQ,"fillHeaderSection");function JQ(e,t,n,i){var f;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&ji(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&my(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&KQ(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(JQ,"fillFormSection");function JV(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&ji(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,lP(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(JV,"fillSubSection");function lP(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let f=l.replace(/\/@/g,"::"),p={id:f,type:kQ(t[l]),schema:t[l],title:ES(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],QQ(e,p,n,i,r),qQ(e,f,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],YQ(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],JQ(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],JV(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],zQ(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],JV(e,p,n,i,r))}}o(lP,"fillSectionsInConfig");function ZQ(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];ji(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(ZQ,"fillCustomSectionsInConfig");function e9(e,t){var d,m;let n=t.factory.createPageInstance(Se.PageTypeV2.ObjectPage);ji(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;ji(e,n.globalTableSettings,i[Se.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.ObjectPageHeader);let r=i[Se.DefinitionName.ObjectPageHeader]?i[Se.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];ji(e,n.header,r,t);let a=i[Se.DefinitionName.ObjectPageHeaderActions];a&&my(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Se.DefinitionName.FooterActions];s&&my(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageLayout"),ji(e,n.layout,i[Se.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Se.DefinitionName.HeaderSections];if(l){let v=(d=t.v2Page.component)==null?void 0:d.settings;lP(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let f=i[Se.DefinitionName.Sections];if(f){let v=(m=t.v2Page.component)==null?void 0:m.settings;lP(e,f.properties,v,n.sections,t)}let p=HV(e.manifest,e.entitySet);return ZQ(p,n,t,i,e),n}o(e9,"fillConfig");function hy(e){Qt();let t=gf(e);if(!t)return;let n=e.entitySet,i=[],r=zc(t,e.entitySet,i);if(mf(r,e.logger,n),!r)return;let a=MQ(e.flex,n),s=new ki;return e9(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(hy,"createObjectPageConfigV2");var zr=Z(re());var uP=Z(Gb());var Rt=Z(re());var t9=["colorPalette","tabs"];function n9(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(n9,"createCard");function e1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),e1(e,n.join("|"))}return t}o(e1,"findAvailableId");function _p(e,t,n,i,r,a,s){i!=null&&i.properties&&fP(e,t,n,i.properties,r,a,s)}o(_p,"transferManifestEntriesOVP");function Jc(e,t,n,i){return e.createInstance(Rt.PageTypeV2.OverviewPage,i,n,t)}o(Jc,"assignReflectMetadataRules");function i9(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Jc(e.factory,i[1],t,"CustomCard"),_p(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(i9,"processAnyOfDefinitionsOfOVP");function r9(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!t9.includes(i)?t[i]=(0,uP.default)(t[i]||{},r||{},{arrayMerge:vS}):t[i]=r}o(r9,"checkSyncRuleForExport");function o9(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in Rt.v2.CardSettingsType||n==="settings")l.settings=(0,uP.default)(l.settings||{},r||{},{arrayMerge:vS});else if(r!==void 0){let f=e.manifest.export;r9(f,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(o9,"transferToManifest");function a9(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Rt.v2.cardTemplateTypeMap))].filter(r=>r!==n);i.push(n);for(let r of i){let a;Object.values(Rt.v2.CardTemplateType).includes(r)?a=Object.keys(e.appSchema.definitions).filter(s=>{var f;let l=(f=e.appSchema.definitions[s].properties)==null?void 0:f.template;if(l!=null&&l.enum)return l.enum.indexOf(r)>-1;if(l!=null&&l.const)return l.const===r}):a=["CustomCard"],e.currentObject[t]=Jc(e.factory,a[0],e.currentObject[t],"CustomCard"),n9(t,e.exportResults.manifest[Rt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,_p(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Rt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Rt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated)})}o(a9,"transferCards");function s9(e,t){if(t==="cards")a9(e);else{let n=Uo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Rt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Jc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],_p(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],fP(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],fP(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(s9,"exportOfObject");function fP(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!jl(a,s)&&a[a.length-1]!=="anyOf")continue;let f=e[l],p=Mn(e,l),d={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:f,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(d.currentObject=e[a[a.length-2]],f=i9(d)):f&&typeof f=="object"&&i[l]&&s9(d,l),p!=null&&p.manifest&&o9(p,a,l,t,f,e)}}o(fP,"processProperties");function c9(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let f=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=m_(a,n,e.ui5Version,s,f),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=km(p,d);e.exportResults.flexChanges.find(S=>{let b=!1,I=JSON.parse(S);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(c9,"evaluateFlexRule");function l9(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated}}o(l9,"exportConfigValueToManifest");function f9(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)l9(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,us(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(f9,"evaluateManifestRule");function u9(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Rt.FACETTITLEPREFIX)?r.split(Rt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(u9,"getManifestPathOfSections");function p9(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(p9,"getManifestPathOfTable");function d9(e,t,n,i,r){let a;return t[0]===Rt.PropertyName.sections?a=u9(t,a,n,e,r):t[0]===Rt.PropertyName.table?a=p9(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(d9,"getManifestPath");function g9(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)c9(e,i,t,r,a,n,s);else if(t.manifest){let f=d9(e,i,t,n,a);f9(e,f,t,s,n)}}o(g9,"evaluateExportRule");function m9(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(f=>(f.tabKey===a||a===void 0&&f.tabKey===""||a&&t.sectionKey===a)&&f.extensionType===t.extensionType);if((!l||l.length===0)&&(bh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Rt.ViewTemplateType.ResponsiveTableColumnsExtension))){let f=e.replace(Rt.ViewTemplateType.ResponsiveTableColumnsExtension,Rt.ViewTemplateType.ResponsiveTableCellsExtension);bh(n,f,t.appId,t.exportResults.fragments),delete n[f]}}}o(m9,"deleteObsoleteColumn");function h9(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Z_(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,m9(r,e,n))}o(h9,"deleteObsoleteColumnsFromFragment");function y9(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:f}=Sh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:f,columns:[]}),a[l].columns.push(s)}return a}o(y9,"clusterConfigColumnsByPath");function t1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Rt.v2.TableColumnExtensionTypeV2){let{path:f}=Sh(e.v2Page,s,r,l);if(!f)continue;let p={path:f,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{h9(p)}catch(d){e.logger.error(d.message)}}if(t){let l=y9(t,n,e.v2Page,s,r);for(let f in l)jA(e.exportResults,f,l[f].columns,e.appId,l[f].viewTemplateType,e.logger)}}o(t1,"transferColumnExtensions");function T9(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=e1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(S=>{var b;return(b=S.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),v=e.appSchema.definitions[m[m.length-1]];ks(e,t[p],i,[...r,s[p]],v)}let f=Kn(e.exportResults.manifest,fA());for(let p in f)nP(p,l)&&!s.includes(p)&&delete f[p]}o(T9,"transferManifestExtensions");function v9(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Rt.PropertyName.table){n=e[i-1];break}return zn(n,t)}o(v9,"getSectionId");function b9(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let f=Uo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ks(t,f.configObject,r,[...a,i],f.targetDefinition,l)})}o(b9,"transferIndexTable");function S9(e,t,n,i,r,a){let s,l=Um(e.$ref);l&&(s={target:l,key:v9(t,n)}),t1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(S9,"transferCustomColumns");function A9(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let f=Uo(t.appSchema,n,i,l,r,t.factory,t.pageType);f&&ks(t,f.configObject,a,[...s,r],f.targetDefinition,f.title)})}o(A9,"handleAnyOfDefinitions");function E9(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")T9(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){S9(l,t,s,e,n,a);return}else a?ks(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&A9(l,e,s,n==null?void 0:n[r],r,i,t)}o(E9,"transferComplexProperty");function ks(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!jl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let f=t&&wm(t,l),p=f?[...n,f]:n,d=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Uo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(g9(e,d,t,[...i],p,a,l),b9(s,e,a,l,p,i),s===void 0||typeof s=="object")E9(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){t1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ks,"transferManifestEntriesAndFlexChange");function n1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Jc(r,i,n[i],s),a.push(i),pP(r,n[i],e,l.properties,a)}o(n1,"transferSettingsOfRef");function P9(e,t,n,i,r,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split($);n1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf&&e.template in zr.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let l=`${$}${zr.v2.cardTemplateSettingsMap[e.template]}`.split($);n1(i,l,e,t,r,a)}}o(P9,"processPropertiesOfObject");function x9(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),f=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(f,t))try{Gl(s,f,t,e)}catch(p){oe(i.logger,{severity:zr.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Nm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&P9(e,t,r,i,a,n)}o(x9,"processOvpProperty");function pP(e,t,n,i,r){for(let a in i)x9(t,a,r,n,i,e)}o(pP,"processOvpProperties");function C9(e,t,n){pP(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[zr.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[zr.ManifestSection.ovp].cards[i].template,a=zr.v2.cardTemplateTypeMap[r]??"CustomCard",s=[...new Set(Object.values(zr.v2.cardTemplateTypeMap))].filter(l=>l!==a);s.push(a);for(let l of s)e.cards[i]=Jc(n,l,e.cards[i]??{},"CustomCard"),e.cards=Jc(n,l,e.cards,"CustomCard"),pP(n,e.cards[i],t,t.jsonSchema.definitions[l].properties,["cards",i])})}o(C9,"addSettings");function yy(e){let t=new ki,n=t.createPageInstance(zr.PageTypeV2.OverviewPage);return e.jsonSchema&&C9(n,e,t),n}o(yy,"createOverviewPageConfig");var xt=Z(re());function I9(e,t,n,i){var p,d;let r=ly(e.manifest,i),a=e.jsonSchema.definitions;fy(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),cP(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=Vs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let S=v;t.filterBar.selectionFields[S]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[S],e.manifest,a.SelectionFieldDateSettings,i,e.logger,S)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=Vs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let f=(d=(p=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:d.keyPerformanceIndicators;f&&Object.keys(f).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(I9,"addSettings");function Ty(e){if(Qt(),!gf(e))return;let n=new ki,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=hf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(mf(a,e.logger,a==null?void 0:a.entitySet),!!a)return I9(e,i,n,r[0]),e.flex.forEach(s=>{Ar(s)&&cy(i,s,e.jsonSchema,e.logger)}),pf(i,e,a,xt.PageTypeV2.AnalyticalListPage),dy(i),i}o(Ty,"createAnalyticalListPageConfig");var ti=Z(re());var Tf=require("@sap-ux/vocabularies-types/vocabularies/UI");var R9=["filterBar","table","footer"],L9=ti.UIVOCABULARYALPHADOT.substring(1);function dP(e,t,n,i){ms(e,n,"QuickVariant"),B_(n,"QuickVariantX",t),H_(i,n,"QuickVariantX")}o(dP,"addEnumForVariantPaths");function F9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tf.UIAnnotationTerms.SelectionPresentationVariant,Tf.UIAnnotationTerms.SelectionVariant,Tf.UIAnnotationTerms.PresentationVariant];Nc(e,r,i)}o(F9,"addEnumForFilterBarAnnotationPath");function N9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Tf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Tf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(L9,""),f=e[l];f?s?i=f:(i=f.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(N9,"getPresentationVariantForLineItem");function D9(e,t,n){if(Ms(t,"annotationPath",n))return;let i=N9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Bu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(D9,"getLineItemAnnotation");function i1(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;eA.forEach((f,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+f;let d=f.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[d]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[f]=m});let{entityType:a,uIAnnotations:s}=ql(e);if(s){let f=[],p=df(e.manifest[ti.ManifestSection.generic].pages,f);Ql(n);let d=D9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(d){let v=Sr(a.fullyQualifiedName,d.term,d.qualifier);eA.forEach(S=>{n.definitions[S][ti.SchemaTag.annotationPath]=v})}Kl(!1,n,d,a);let m=s.SelectionFields;if(zm(n,m,a),Yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],__(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return oe(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Xl(n,a,p,e.manifest,e.fragments),dP(a,e.entitySet,n,e.serviceAVT),F9(a,n,ti.DefinitionName.ListReportFilterBar),G_(a,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return $o(n,R9),n}o(i1,"generateListReportSchemaV2");var we=Z(re());var Vp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function r1(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(r1,"getClassesForSingleSection");function o1(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],r1(n,i,t),o1(n,t)}}o(o1,"getSubsectionClasses");function _9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],r1(i,r,n),o1(i,n)}o(_9,"getExportClassesForSections");function V9(e,t){let n=df(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(V9,"findV2Page");function gP(e,t){let n=Mm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(gP,"calculateBaseId");function a1(e,t,n=!1){let i=Vp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=V9(a,e),l=new ki,f=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:gP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ks(p,f,[],[],e.jsonSchema)}return i}o(a1,"exportListReportPage");function s1(e,t,n=!1){let i=e.page.config,r=Vp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=hf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new ki,f=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:gP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ks(p,f,[],[],e.jsonSchema)}return r}o(s1,"exportAnalyticalListPage");function c1(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Vp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=zc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let f=new ki,p=f.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&_9(i,p,f),Object.keys(i).length!==0){let d={v2Page:l,exportResults:a,appId:e.appId,baseId:gP(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:f,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ks(d,p,[],[],e.jsonSchema)}}return a}o(c1,"exportObjectPage");var l1=o(e=>{let t=Vp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ki,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&_p(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),w9=o((e,t,n)=>{var s;let i=Vp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new sh,e);r.settings=Object.assign(new vs,e.settings);for(let l in n.definitions.AppSettings.properties){let f=Mn(r.settings,l);if(f&&f.manifest){let p=f.manifest.path(),d=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],us(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&lA(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function f1(e,t){if(e[we.SchemaType.ListReport])return hP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return c1(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return l1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return w9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return s1(e[we.SchemaType.AnalyticalListPage],t)}o(f1,"exportPageV2");function mP(e,t,n=!1){if(e[we.SchemaType.ListReport])return hP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return c1(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return l1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return s1(e[we.SchemaType.AnalyticalListPage],t,n)}o(mP,"exportConfigEntityByPathV2");var _a=Z(re());function u1(e,t){e.anyOf&&e.anyOf.forEach(function(n){Zc(n,t)})}o(u1,"addAnyOfToReferredTypes");function by(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(by,"getSingleItem");function Zc(e,t){if(typeof e!="object")return;let n=Aa(e);n&&p1(n,t),u1(e,t),Zc(e.additionalProperties,t),Zc(by(e),t)}o(Zc,"addReferredTypesFromElement");function p1(e,t){t.referredTypeNames.add(e);let n=t.types[e];Zc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Zc(r,t)):Zc(by(n),t),Zc(n.additionalProperties,t)}o(p1,"addReferredTypesFromType");function vy(e,t,n,i,r){if(typeof t!="object")return;let a=Aa(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=Fm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let f={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};yP(n,f,e.syncRuleProvider,l,r)}else p1(a,r)}else yP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(vy,"applyAdaptationInfoToElement");function yP(e,t,n,i,r){var v,S;let a={element:i},s=n_(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;vy(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=a.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},f=i.properties,p;if(f)p=f;else{let b=by(i);if(b)f={items:b},p=i;else return}let d,m=((S=a.referenceAdaptation)==null?void 0:S.processingRulesAdapter)||function(b,I){d=d||n&&new n;let F=Mn(d,b);F!=null&&F.processingRuleAdapter&&F.processingRuleAdapter(I,l,e)};for(let b in f){let I=f[b];if(typeof I!="object"){p[b]=I;continue}let F={element:{...I}};m(b,F),F.element?(F.controlId?F.element[_a.SchemaTag.controlId]=`${t.pageInfo.controlId}--${F.controlId}`:F.manifestPath&&(F.element[_a.SchemaTag.artifactType]="Manifest",F.element[_a.SchemaTag.manifestPath]=F.manifestPath),u1(F.element,r),vy(F.referenceAdaptation,F.element,e,l,r),vy(F.additionalPropertiesAdaptation,F.element.additionalProperties,e,l,r),vy(F.itemsAdaptation,by(F.element),e,l,r),p[b]=F.element):delete p[b]}}o(yP,"adjustElement");function M9(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(M9,"getViewId");function d1(e,t,n){var U;Qt();let i=Ac(e.manifest,_a.FioriElementsVersion.v2,n);if(!i||i===_a.TemplateType.OverviewPageV2)return;let{parent:r}=Ao(e.manifest,e.pagePath);if(!r)return;let a=r.component;if(Ms(r,"entitySet",n,"string",!0)||Ms(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,f=t(l),p=f==null?void 0:f.genericSchema,d=f==null?void 0:f.syncRuleProvider;if(!d||!p)return p;let m=e.parsedAnnotations||Gr(e.annotations,n),v=(U=m==null?void 0:m.entitySets)==null?void 0:U.find(se=>se.name===s);if(!v)return p;let S=structuredClone(p),b=M9(e.appId,l,s),F={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},j={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:_a.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},W={types:S.definitions,referredTypeNames:new Set};yP(j,F,d,S,W);for(let se in S.definitions)W.referredTypeNames.has(se)||delete S.definitions[se];return S}o(d1,"getAdaptedSchema");var Mp=Z(re());var TP=Z(re());var g1=Z(re());var Ay=class Ay{};o(Ay,"Share"),h([y({flex:{controlType:o(()=>g1.ControlType.Button,"controlType")},processingRuleAdapter:o(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],Ay.prototype,"visible",2);var Sy=Ay;var js=class{};o(js,"ListHeaderActions"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Sy}}})],js.prototype,"Share",2),js=h([y({processingRuleAdapter(e){e.element[TP.SchemaTag.icon]="Export"}})],js);var Va=class{};o(Va,"ListHeader"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:js}}})],Va.prototype,"actions",2),Va=h([y({processingRuleAdapter(e){e.element[TP.SchemaTag.icon]="Header"}})],Va);var Py=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ma=Z(re());var Us={since:"1.77.0"},Ey={flex:{controlType:o(()=>Ma.ControlType.SmartFilterBar,"controlType")},processingRuleAdapter(e){e.controlId="listReportFilter"}};function vP(e){return BV(e,function(t,n){return{manifestPath:ws(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}o(vP,"getSyncRuleForDateRangeProperty");var vf=class vf{};o(vf,"DateRange"),h([y(vP("useDateRange")),P(Us)],vf.prototype,"useDateRange",2),h([y(vP("selectedValues")),P(Us)],vf.prototype,"selectedValues",2),h([y(vP("exclude")),P(Us)],vf.prototype,"exclude",2);var bP=vf,wp={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=ws(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var Zr=class{};o(Zr,"FilterField"),h([y(wp),P(Us)],Zr.prototype,"selectedValues",2),h([y(wp),P(Us)],Zr.prototype,"exclude",2),h([y(wp),P(Us)],Zr.prototype,"customDateRangeImplementation",2),h([y(wp),P(Us)],Zr.prototype,"filter",2),h([y(wp),P({since:"1.90.0"})],Zr.prototype,"defaultValue",2),Zr=h([y({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,r=n.entityType,a=i.value,s=i.type==="PropertyPath"?Ul(i,r):a;e.element.description=s,e.element[Ma.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ma.SchemaTag.keys]=[{name:Ma.SchemaKeyName.value,value:`${a}`}]}})],Zr);var el=class{};o(el,"FilterFields"),el=h([y({processingRuleAdapter(e,t,n){let i=t.specificParams,r=i.fieldDefinitions,a;for(let l in r){let f=r[l],p={$ref:$+"FilterField"};p[Ma.SchemaTag.propertyIndex]=f.position,a=a||{},a[l]=p}e.element.properties=a,delete e.element.additionalProperties;let s=o(function(l,f){let p={accessor:l,selectionFieldInfo:r[l],entityType:i.entityType};f.referenceAdaptation={suffix:at(l),syncRuleProvider:Zr,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],el);var Jr=class Jr{};o(Jr,"CommonFilterBar"),h([y(Ey)],Jr.prototype,"liveMode",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"smartVariantManagement",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"variantManagementHidden",2),h([y(py),fe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],Jr.prototype,"subTitleIfVariantMgmtHidden",2),h([y(Ey)],Jr.prototype,"showClearOnFB",2),h([y(Ey)],Jr.prototype,"showFilterConfiguration",2),h([y(Ey)],Jr.prototype,"showRestoreOnFB",2),h([y({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:bP}}}),P(Us)],Jr.prototype,"dateSettings",2),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:el}}})],Jr.prototype,"selectionFields",2);var SP=Jr,wa=class extends SP{};o(wa,"ListReportFilterBar"),h([y({manifest:{},processingRuleAdapter(t,n){let i=[Py.UIAnnotationTerms.SelectionPresentationVariant,Py.UIAnnotationTerms.SelectionVariant,Py.UIAnnotationTerms.PresentationVariant],r=n.specificParams;Nc(r.entityType,i,t.element);let a=ws(n.pageInfo.pagePath);t.manifestPath=a}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),P({since:"1.86.0"})],wa.prototype,"annotationPath",2),wa=h([y({processingRuleAdapter(e,t){var l;e.element[Ma.SchemaTag.icon]="Filter";let n=t.specificParams,i=((l=n.uIAnnotations)==null?void 0:l.SelectionFields)??[],r={},a=!1;i.forEach((f,p)=>{let d=rr(f),m=["Date","DateTime","DateTimeOffset"].includes(d);a=a||m,r[f.value]={field:f,dataType:d,hasDateRangeOption:m,position:p}});let s={entityType:n.entityType,fieldDefinitions:r,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],wa);var eo=class{};o(eo,"ListReportNew"),h([y({flex:{controlType:o(()=>Mp.ControlType.DynamicPage,"controlType")},processingRuleAdapter(t){t.controlId="page"}})],eo.prototype,"fitContent",2),h([y({processingRuleAdapter(t){t.element[Mp.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Va}}})],eo.prototype,"header",2),h([y({processingRuleAdapter(t,n){var r;if((r=n.specificParams.settings)!=null&&r.isWorklist){delete t.element;return}t.element[Mp.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:wa}}})],eo.prototype,"filterBar",2),eo=h([ir({id:jV,pageId:Fp}),y({processingRuleAdapter(e,t,n){let i=ws(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=ql(n),{parent:s}=Ao(n.manifest,i),l={settings:s,entityType:r,uIAnnotations:a};e.referenceAdaptation={specificParams:l}}})],eo);var xP=require("path"),A1=require("fs");var Cr=Z(re());function k9(e){let t={};return e.flex.forEach(function(i){let r=Ar(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(k9,"getChangeMapFormImportParameters");function AP(e,t,n,i,r){if(e===void 0)return;let a=Aa(t),s=a?n[a]:void 0;if(t[Cr.SchemaTag.conversionExit]&&(e=uy(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return AP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},f=!1;for(let p in t.properties){let d=t.properties[p],m=AP(e[p],d,n,i,r);m!==void 0&&(f=!0,l[p]=m)}return f?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(AP,"getConfigRep");function m1(e,t,n,i,r,a,s,l){let f=AP(r,a,s,l,t);if(f===void 0)return;let p=e,d=[];n.forEach(function(m){d.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(d),p=p[v]}),p[i]=f}o(m1,"transferValueToConfig");function j9(e,t,n,i,r,a,s,l){let f=r[Cr.SchemaTag.controlId],p=l[f];if(!p)return;let d=-1,m=p.find(function(v,S){return v.content.property===i?(d=S,!0):!1});m&&(m1(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[f]:p.splice(d,1))}o(j9,"importFlexChangesToConfigProperty");function U9(e,t,n,i,r,a,s){let l=r[Cr.SchemaTag.manifestPath],f,p;Array.isArray(l)?(p=l,f=!0):(p=l.path,f=l.addTargetPropertyToPath);let{hasPath:d,value:m,parent:v}=Ao(s.manifest,p,f?i:void 0);if(!d)return;m1(e,t,n,i,f?m:v,r,a,s)}o(U9,"importManifestToConfigProperty");function h1(e,t,n,i,r,a,s){if(Da(n.properties))for(let l in n.properties){let f=n.properties[l];if(!Da(f))continue;let p=f[Cr.SchemaTag.artifactType];if(p===Cr.ArtifactType.FlexChange)j9(e,t,i,l,f,r,a,s);else if(p===Cr.ArtifactType.Manifest&&f[Cr.SchemaTag.manifestPath])U9(e,t,i,l,f,r,a);else{let d=Aa(f),m=d?r[d]:void 0;if(Da(m)){let v=i.concat([{propertyName:l,propertyType:d.split("<")[0]}]);h1(e,t,m,v,r,a,s)}}}}o(h1,"importDefinitionIntoConfig");function y1(e,t,n){var m;let i=Ac(e.manifest,Cr.FioriElementsVersion.v2,e.logger);if(!i||i===Cr.TemplateType.OverviewPageV2)return;let{parent:r}=Ao(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=k9(e),f=e.jsonSchema,p=f.definitions,d=s.propertyInstanceProvider([]);return h1(d,s,f,[],p,e,l),d}o(y1,"getConfigForPage");var Ii=Z(re());function $9(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Ii.SchemaTag.controlId],controlType:e[Ii.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o($9,"addFlexChangeInfoToList");function T1(e,t,n,i){var l;if(n[Ii.SchemaTag.conversionExit])return uy(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let f in n.properties){let p=n.properties[f];if(!Da(p))continue;let d=Aa(p);p=d&&i.globalTypeDefinitions[d]||p;let m=r[f];s=s||m!==void 0;let v=T1(e?e[f]:void 0,m,p,i);v===void 0?delete r[f]:(r[f]=v,a=!0)}return a?r:s?Object.keys(t).every(f=>Da(n.properties[f]))?void 0:r:t}o(T1,"getValueForManifest");function EP(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return EP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return EP(e[r],t[r])})}o(EP,"isDifferent");function B9(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(B9,"isEmpty");function H9(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],f=[];e.some(function(m,v){if(v===s)return!0;let S=a[m];if(typeof S!="object"||S===null)return!0;a=S,f.push(a)});let p=f.length===s?a[l]:void 0,d=T1(t,p,i,r);if(EP(d,p))if(d===void 0){n.manifestChangeIndicator=Ii.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=f[m];if(!B9(v))break;let S=f[m-1],b=e[m];delete S[b]}}else{for(let m=f.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=d,n.manifestChangeIndicator=p===void 0?Ii.ChangeIndicator.Created:Ii.ChangeIndicator.Updated}}o(H9,"applyManifestChange");function G9(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Ii.SchemaTag.artifactType];if(s===Ii.ArtifactType.FlexChange)$9(i,a,n,t.flexList);else if(s===Ii.ArtifactType.Manifest&&i[Ii.SchemaTag.manifestPath]){let l,f=i[Ii.SchemaTag.manifestPath];Array.isArray(f)?l=f.concat([n]):(l=f.path,f.addTargetPropertyToPath&&(l=l.concat([n]))),H9(l,a,t,i,r)}else{let l=Aa(i),f=l?r.globalTypeDefinitions[l]:void 0;Da(f)&&v1(a,t,f,r)}}o(G9,"transferConfigPropertyToExportResults");function v1(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Da(s)&&G9(e,t,a,s,i)}}o(v1,"transferConfigToExportResults");function b1(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Ii.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Ii.ChangeIndicator.NoChange,flexList:[],fragments:i};return v1(t,a,e.jsonSchema,r),a}o(b1,"exportPage");var W9=!1,K9={generateListReportSchemaV2(e,t){return i1(e,t)},createListReportConfig(e){return qV(e)},exportListReportPage(e,t,n){return a1(e,t,n)}},PP;function X9(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,xP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,xP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,A1.readFileSync)(t,"utf8"))}o(X9,"getPersistentListReportNewSchema");function Q9(){let e=X9();return function(t){return t===Fp?{genericSchema:e,syncRuleProvider:eo}:void 0}}o(Q9,"createGenericSchemaInfoProvider");function q9(e){return e===Fp?{propertyInstanceProvider:o(function(t){return new eo},"propertyInstanceProvider")}:void 0}o(q9,"getConfigInfo");function S1(e){let{value:t}=Ao(e,[Yo.ManifestSection.generic],"pages");return Array.isArray(t)?[Yo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Yo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(S1,"getPathForRootPage");function Y9(e,t,n){let i=!e.layer||e.layer===Yo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,km(r,t)}o(Y9,"flexInfoToChangeString");function z9(){let e=Q9(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Yo.ManifestSection.app].id=n,i.flexList.map(Y9.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=S1(i);if(!r)return null;let a={appId:((s=i[Yo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return d1(a,e,n.logger)},createListReportConfig(n){let i=S1(n.manifest);return y1(n,i,q9)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Yo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=b1(s),f=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:f,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(z9,"createPageHandlerLRGeneric");function CP(){return W9?(PP=PP||z9(),PP):K9}o(CP,"getPageHandlerLR");function kp(e,t){return CP().generateListReportSchemaV2(e,t)}o(kp,"generateListReportSchemaV2");function xy(e){return CP().createListReportConfig(e)}o(xy,"createListReportConfig");function hP(e,t,n=!1){return CP().exportListReportPage(e,t,n)}o(hP,"exportListReportPage");function Iy(e,t){var n,i;return(n=e.component)!=null&&n.name?Rm(va((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Iy,"generateId");function J9(e,t,n,i){e.navigation={};let r=E1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Iy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(J9,"getPageConfigsAndNavigations");function E1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Iy(a,r);if(!s)continue;let l={pageType:va((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let f=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(f)if(l.pageType===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=xy(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=Ty(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=hy(p)}a.pages&&J9(l,a,t,n)}return n}o(E1,"getPagesAndConfigs");var IP=class IP extends Ts{constructor(t){Qt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Iy(n[i],i),a=new vs,s=_t(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,E1(n,t),a)}};o(IP,"V2AppProvider");var Cy=IP;function jp(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let f=Iy(l,s);i[f]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let f=jp(l.pages,t,n);for(let p in f)i[p]=f[p]}}return i}o(jp,"getPages");var tl=Z(re());var OP=class OP extends Ts{constructor(t){let n={},i=t.manifest[tl.ManifestSection.ovp],r=new vs,a=_t(tl.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(tl.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},f={pageType:tl.PageTypeV2.OverviewPage,config:yy(l),entitySet:i.globalFilterEntitySet},p=Rm(f.pageType,f.entitySet);n[p]=f,super(t,p,n,r)}};o(OP,"V2OvpProvider");var Oy=OP;var _=Z(re()),nl=require("@sap-ux/vocabularies-types/vocabularies/UI");var Z9=["header","filterBar","chart","table"],RP="@UI.LineItem";function LP(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=Sr(e.fullyQualifiedName,nl.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var d,m;let l=s.value,f="SelectionField::"+at(s.value);s.type==="PropertyPath"&&(l=Ul(s,e)),i.properties[f]={$ref:$+f},i.properties[f][_.SchemaTag.propertyIndex]=a;let p=rr(s);t.definitions[f]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[f][_.SchemaTag.isViewNode]=!0,t.definitions[f][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((d=s.$target)==null?void 0:d.fullyQualifiedName.indexOf("@"))>-1?t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[f][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[f][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(LP,"addSelectionFields");function e6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${nl.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(e6,"getVisualFilters");function t6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(t6,"getPropertiesIndex");function n6(e,t,n,i){var s,l,f,p,d,m;let r=t6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let S=n[v];if(!S.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=vt(_.DefinitionName.VisualFilter,v,t);(s=S.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${S.visualFilter.valueList}`);let j=(m=(d=(p=(f=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(W=>W.name===v))==null?void 0:f.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();F.description=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(n6,"addVisualFilters");function i6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},P_(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&ds(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(i6,"applyCustomFilterFields");function r6(e,t,n,i){var l,f;let r=e6(n),a=i&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:f.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},n6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=LP(e,t,a,s),i6(t,s,n)}o(r6,"addFilterBar");function P1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(f=>{let p=at(`${_.DefinitionName.ChartToolBarAction}<${f.Action}>`),d=ci(f,r),m=f.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${f.Action}`]={$ref:$+p,description:d};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=f.$Type,v[_.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=f.fullyQualifiedName,l++})}}o(P1,"defineActions");function x1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(f=>f.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(f=>f.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(f=>f.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Bl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(x1,"findTheRightVisualization");function o6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(o6,"analyzeChartAnnotation");function a6(e,t,n,i,r,a){var f;let{visualization:s,targetAnnotation:l}=x1((f=e.PresentationVariant)==null?void 0:f.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=RP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(a6,"analyzeSPVforView");function bf(e,t,n,i,r,a){let s,l,f=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=f&&t[f];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],f.startsWith("PresentationVariant")){let{visualization:d,targetAnnotation:m}=x1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else{if(f.startsWith("SelectionPresentationVariant"))return a6(p,s,i,r,a,l);if(f.startsWith("SelectionVariant")){let d=RP,m=`/${s}/@${nl.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("LineItem")){let d=RP;p.qualifier&&(d+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("Chart")){let{visualization:d,targetAnnotation:m,chartTitle:v}=o6(s,e,p,i);return{visualization:d,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(bf,"analyzeViewAnnotation");function s6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Ia(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(s6,"addALPChartView");function c6(e,t,n,i,r,a){var j,W,U,se,ee,le,Le,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=(U=(W=t==null?void 0:t[0])==null?void 0:W.primary)==null?void 0:U[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:f}=bf(l,s,n.serviceAVT,"primary",void 0,n.logger);s6(e,l,f,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,P1(e,p,s,f,n.entityType);let{visualization:d,targetAnnotation:m}=bf((Le=(le=(ee=t==null?void 0:t[0])==null?void 0:ee.secondary)==null?void 0:le[0])==null?void 0:Le[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];d||i?(v.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:$+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let S=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(S)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],S.additionalProperties=!1,S.description="Table (key: secondary)",S.title="Table",d?(delete S.properties,S.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(S.properties={}),S[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(d&&d.indexOf(_.FacetBase.LineItem)>-1?(b=d.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ic(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");S[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,S[_.SchemaTag.key]="secondary",S[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Cc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;xa(e,r,n.logger,void 0,F),ho(e,F,_.DefinitionName.CustomActionPosition)}o(c6,"addALPViews");function l6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return P1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(l6,"addViewChartDefinitions");function f6(e,t,n,i,r,a){let s=l6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(f6,"addViewChart");function u6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),hs(l.properties.toolBar,_.DefinitionName.ToolBar,s);let f=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||f,title:f},hs(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],d={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Ic(d,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(u6,"addViewLineItems");function p6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(p6,"addTagsToView");function d6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(d6,"getTargetEntityType");function g6(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${nl.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);hs(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),Cc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Oc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let f=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;xa(e.appSchema,i,t.logger,p,f,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${d}`,ho(e.appSchema,f,d)}o(g6,"addViewCustomExtensions");function m6(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)u6(n,t,e,n.targetAnnotation,i),g6(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)f6(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o(m6,"addLRViewParts");function h6(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let f of t){if(!f[_.SchemaTag.key])continue;let p,d=d6(n.entitySet,f,n),m=d==null?void 0:d.annotations.UI,{visualization:v,targetAnnotation:S,namespace:b,title:I}=bf(f==null?void 0:f[_.SchemaTag.annotationPath],m,n.serviceAVT,f[_.SchemaTag.key],void 0,n.logger);f.entitySet&&(p=(l=n.entityType.navigationProperties.find(W=>W.targetTypeName===b))==null?void 0:l.name);let F=at(f[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:S,navPropName:p,targetEntityType:d,title:I,entitySet:f.entitySet};m6(v,s,j,n,i,m,f),p6(s,F,b,f)}}o(h6,"addLRViews");function y6(e,t,n,i,r,a){var d,m,v,S,b,I,F,j,W,U,se,ee,le;let s=e.definitions[a],{visualization:l,targetAnnotation:f,namespace:p}=bf(n,(d=t.entityType)==null?void 0:d.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Le=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${at(Le)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],hs(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=f,Ue.properties.columns={},hs(Ue.properties.columns,D),delete s.properties,hs(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Le];$e||oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Le})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Ic(qe);let rn=(v=Le.split("#"))==null?void 0:v[1],Bt=rn?`@${nl.UIAnnotationTerms.LineItem}#${rn}`:`@${nl.UIAnnotationTerms.LineItem}`;Cc(e,i,t.logger,void 0,D,Bt),Oc(e,D,i,void 0,Bt);let At=`${_.DefinitionName.Actions}<${D}>`,Yt=oh(e,D,_.DefinitionName.CustomTableAction);xa(e,i,t.logger,Jt(Yt),At,Bt),ho(e,At,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,hs(s.properties.columns,_.DefinitionName.LineItems);let Le=(I=(b=(S=t.entityType)==null?void 0:S.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Le&&!((W=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&W.paths)&&oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Le,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ic(D),Cc(e,i,t.logger),Oc(e,_.DefinitionName.LineItems,i),Le&&!((ee=(se=(U=i.options)==null?void 0:U.settings)==null?void 0:se.views)!=null&&ee.paths)&&(s[_.SchemaTag.annotationPath]=Sr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Le.term,Le.qualifier));let Ue=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;xa(e,i,t.logger,void 0,Ue),ho(e,Ue,_.DefinitionName.CustomActionPosition)}}o(y6,"adaptTableDefinition");function T6(e,t,n){var i,r,a,s,l,f,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(f=t==null?void 0:t.annotations.UI)==null?void 0:f.PresentationVariant)==null?void 0:p.term)}}o(T6,"getDefaultAnnotationPath");function v6(e,t,n,i){var f,p,d,m,v;let r=(d=(p=(f=t.options)==null?void 0:f.settings)==null?void 0:p.views)==null?void 0:d.paths,a=n.entityType,s=T6(t,n.entityType,n.templateType),l=A_(e,n);r6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(y6(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],h6(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(c6(e,r,n,s,t,l),Oc(e,_.DefinitionName.LineItems,t))}o(v6,"addTableAndViews");function b6(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Bm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,ho(e,i,l)}o(b6,"addHeaderActions");function Up(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,ms(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let f=$m(l,n,e.entitySet,i);if(!f)return r;b6(r,f,e.logger),v6(r,f,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,$o(r,Z9),r}o(Up,"generateListReportSchemaV4");var Gi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(re());var yk=Z(Sc()),Tk=Z(hk()),vk=Z(dx());var bk=Z(re()),Sk=Z(re());function KY(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(KY,"findElementByXMLPath");function Ak(e,t){return e[t]?!1:(e[t]={},!0)}o(Ak,"ensureObjectExists");function XY(e,t){let n={},i=Jt(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(XY,"getPropertiesFromRef");function QY(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:f}=e,{properties:p={}}=r,d=Ak(l,i),m=l[i];return ll({fullSchema:f,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||d}o(QY,"traverseDefaultAggregation");function qY(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(qY,"isDefaultAggregationAppliable");function ll(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:f={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(f=XY(s,n.$ref));for(let v in f){let S=f[v],b=typeof S=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&qY(f,p)&&(l=QY(e,t,p)||l,b=!1),!!b)if((m=(d=S.metadata)==null?void 0:d.path)!=null&&m.length){let I=S.metadata.path,F=I.slice(r.length),j=KY(i,F);l=Ak(a,v)||l;let W=a[v];l=ll({fullSchema:e.fullSchema,schema:S,element:j,contextPath:I,config:W,parent:e},t)||l}else l=t(e,S,a,v)||l}return l}o(ll,"traverseSchema");function Mf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,vk.parse)(e.fileContent),s=(0,Tk.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,yk.xml2js)(e.fileContent)}catch(r){oe(n,{severity:Sk.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Nm(r)}),location:{path:e.dataSourceUri}})}return i}o(Mf,"parseXML");function kf(e){return`${bk.DefinitionName.CustomExtensionFragment}<${e}>`}o(kf,"getCustomExtensionFragmentDefinitionKey");function bT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(bT,"getRootElement");var Px=Z(re()),xx=Z(re());var dd=Z(re());var Ek=["Column","Action","FilterField"];function Xs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Xs,"getAttribute");function Pk(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(Pk,"getNodeByName");function vx(e){let t=["id","key","title","text","label","header"],n=e.attributes||[];for(let i of t){let r=n.find(a=>a.key===i);if(r)return r}}o(vx,"getDisplayAttribute");function YY(e){let t=vx(e);if(t)return t.key==="id"?`(#${t.value})`:`(${t.value})`}o(YY,"extractDisplayInfo");function xk(e,t,n){if(!Ek.includes(t)){let i=YY(e);n.macroDisplayInfo={name:t,value:i}}}o(xk,"addDisplayInfoForBuildingBlock");function Ck(e,t){let n={Table:"Table",FilterBar:"Filter",Chart:"Chart",Page:"Page"},i;if(Ek.includes(t)){let a=vx(e);i=a?a.value:t}else{let a=vx(e);if(a){let s=a.key==="id"?"#":"";i=`${t} ${s}${a.value}`}else i=t}let r=n[t];return r?{description:i,icon:r}:{description:i}}o(Ck,"getViewNodeDescriptionAndIcon");function zY(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(zY,"resolveMetaPath");function bx(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Xs(t,"contextPath")||i.contextPath,a=Xs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let f=r||`/${s}`;if(a){let I=zY(a);I.path&&(f=l?I.path:`${f}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(f),d;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{d=p.target.entityType;break}case"NavigationProperty":{d=p.target.targetType;break}case"EntityType":{d=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let S;if(a){let I=a.split(".");I.length&&(S=I[I.length-1])}return d?{entityType:d,metaPath:a,qualifier:m,annotationKey:S}:void 0}o(bx,"getEntityTypeResolution");function Ik(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(Ik,"applyAnnotationPath");function JY(e,t,n){var l,f,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let d=bf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];a=(p=(f=r==null?void 0:r.annotations)==null?void 0:f[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=mS(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(JY,"getTableLineItemAnnotationData");var Ok={"sap.fe.macros.Chart":o(e=>{let t=bx(e);Ik(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,f,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bx(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let d=oi(dd.UIVOCABULARY,n),m=d&&((p=(f=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:f[d])==null?void 0:p[r.annotationKey]);LP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bx(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=oi(dd.UIVOCABULARY,n);if(Ik(t,r),t.annotationPath){let f=JY(r,n,l);f!=null&&f.annotationPath&&(t.annotationPath=f.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:f.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:dd.DefinitionName.LineItems,isMacro:!0};FS(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var Rk=Z(re());var ZY=new Map([["filterFields","SelectionField::"]]),ez=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),gd={anchor:"anchor",placement:"placement",key:"key"};function tz(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[Jt(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return gd.anchor in r&&gd.placement in r}return!1}o(tz,"isCustomExtensionSchema");function Lk(e){let t=ZY.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=ez.get(e),t&&(n.prefix=t)),n}o(Lk,"getAnnotationPrefix");function nz(e,t,n,i){let r=t.properties[n],a=Lk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],f=Xs(l,gd.key)||n,p=Xs(l,gd.anchor),d=Xs(l,gd.placement)||Rk.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:d}};return{key:f,extension:v}}o(nz,"getExtensionData");function iz(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:f,key:p}=nz(e,t,s,n);i[p]=f,a[p]=s}else r.push([s,l])}Ea(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],f=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(f=t.properties[a[l]]),f&&(f.propertyIndex=s)}}o(iz,"updatePropertyIndices");function rz(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Xs(e.subElements[s],"key")||r}return r}o(rz,"getCorrectedAnchorEnumKey");function oz(e,t,n,i){var a,s;let r=Lk(i);for(let l in t.properties){let f="anchor",p=t.properties[l];if(!p.metadata)continue;ds(n,t,{property:f,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(a=p.properties)==null?void 0:a[f])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=rz(e,m.const,r,t.properties[m.const]))}}o(oz,"applyEnumsForAnchors");function Fk(e,t,n,i){tz(t,n)&&(i=i||e.name,iz(e,t,i),oz(e,t,n,i))}o(Fk,"handleExtensions");var mi=[];for(let e=0;e<256;++e)mi.push((e+256).toString(16).slice(1));function Nk(e,t=0){return(mi[e[t+0]]+mi[e[t+1]]+mi[e[t+2]]+mi[e[t+3]]+"-"+mi[e[t+4]]+mi[e[t+5]]+"-"+mi[e[t+6]]+mi[e[t+7]]+"-"+mi[e[t+8]]+mi[e[t+9]]+"-"+mi[e[t+10]]+mi[e[t+11]]+mi[e[t+12]]+mi[e[t+13]]+mi[e[t+14]]+mi[e[t+15]]).toLowerCase()}o(Nk,"unsafeStringify");var Dk=require("crypto");var AT=new Uint8Array(256),ST=AT.length;function Sx(){return ST>AT.length-16&&((0,Dk.randomFillSync)(AT),ST=0),AT.slice(ST,ST+=16)}o(Sx,"rng");var _k=require("crypto"),Ax={randomUUID:_k.randomUUID};function az(e,t,n){var r;if(Ax.randomUUID&&!t&&!e)return Ax.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??Sx();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return Nk(i)}o(az,"v4");var Ex=az;var Vk="sap.fe.macros";function wk(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(wk,"getElementName");function sz(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(sz,"isElementWithNamespace");function cz(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(cz,"getDependencies");function lz(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(lz,"findAvailableName");function Mk(e,t){if(e.properties={},e.$ref){let n=Jt(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(Mk,"prepareSchemaProperties");function fz(e,t,n){t.properties||Mk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(fz,"handleAttributes");function uz(e){e.type===xx.MacrosPropertyType.Control&&(e.internalId=Ex())}o(uz,"applyIdForMacros");function pz(e,t,n){var i,r;try{(r=(i=Ok)[e])==null||r.call(i,t)}catch{oe(n,{severity:Px.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(pz,"callAnnotationHandler");function dz(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===xx.MacrosPropertyType.Control&&(e.controlName=n)}o(dz,"updateMetadataByReference");function gz(e,t,n){let i=n.schema.metadata.namespaces?[...n.schema.metadata.namespaces]:[],r=n.dependencies,a=[Vk];if(e.ns){for(let s in r)if(e.ns===r[s]){a.push(s);break}}for(let s=n.path.length-1;s>=0;s--){let l=n.path[s].name;if(l.includes(":")&&(l=l.split(":")[1]),/^[A-Z]/.test(l)){let f=`${Vk}.${l.toLowerCase()}`;if(i.includes(f)){a.push(f);break}}}return[...new Set([...a,...i])].map(s=>`${s}.${t}`)}o(gz,"getPosibleRefNames");function mz(e,t,n,i){var v,S,b,I,F;let r=n.schema;t.properties||Mk(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(S=a==null?void 0:a.metadata)==null?void 0:S.defaultAggregation,f={path:n.path,type:s,position:e.position};xk(e,i,f),l&&(f.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?lz(i,t.properties):i,d=[];a!=null&&a.$ref?d.push(Jt(a.$ref)):d=gz(e,i,n);let m=!1;for(let j of d){let W=(F=r.definitions)==null?void 0:F[j];if(typeof W!="object")continue;dz(f,W,j);let{description:U,icon:se}=Ck(e,i),ee={$ref:Fm(j),description:U,...se?{icon:se}:{},propertyIndex:n.index,metadata:f};fz(e,ee,r),t.properties[p]=ee,m=!0,pz(j,{...n,node:e,schema:ee,rootSchema:n.schema},n.logger);break}if(uz(f),!m)if(a!=null&&a.properties)a.metadata=f;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:f};t.properties[p]=j}return p}o(mz,"addControlToSchema");function kk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}kk(r,t)}}o(kk,"populateUsedDefinitionKeys");function hz(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let n=t.additionalProperties.$ref,i=Jt(n),r=i.split(".");if(i==="sap.ui.core.Control"||r[r.length-1]===e.name)return!0}return!1}o(hz,"isElementAddableToSchema");function yz(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!Pk(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(yz,"getDefaultAggregation");function Tz(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,jk(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:wk(s),index:a}]},i)}}o(Tz,"handleSubElementsOfXMLNode");function jk(e,t,n,i){var d,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[Jt(t.$ref)]:t;if(sz(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let S=(v=t.metadata)==null?void 0:v.defaultAggregation;S&&hz(e,t.properties[S])&&(t=t.properties[S]);let b=e.name.split(":"),I=mz(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];else return}let{subElements:l=[]}=e,f=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&f&&n.schema.definitions[f]&&i.indexOf(f)===-1&&(i.push(f),kk(t,i));let p=yz(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),Tz(l,t,n,i),r.push({node:e,schema:t});for(let S of r)Fk(S.node,S.schema,n.schema,S.name)}o(jk,"handleXMLNode");function vz(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(vz,"getMacrosPrefixes");function fl(e,t,n,i){let r=Mf(t.file,!0,i),a=[];if(!r)return;Qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:Px.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,f=cz(l),p=vz(e,f);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],S=!d[v.name];d[v.name]=!0,jk(v,s,{macrosPrefixes:p,schema:s,dependencies:f,index:m,isUnique:S,path:[{name:wk(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(fl,"generateMacrosSchemaDefinition");function Uk(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&Uk(i.subSections,t)}}o(Uk,"populateTemplates");function $k(e,t,n,i){var s,l,f;let r=Rc(n.manifest,i),a=[];Uk(((f=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:f.sections)||{},a);for(let p of a){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=kf(p);e.definitions[m]=d;let v=Lc(n.fragments,r,n.manifest,"fragment",p);if(v){d.metadata.filePath=v.relativeFilePath;let{properties:S={},definitions:b={}}=fl(t,v,n.serviceAVT,n.logger)||{};d.properties=S;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o($k,"resolveFragments");var bz=["header","layout","sections","footer"],Sz=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],Ix="Custom Action";function Kk(e,t,n,i,r,a,s){let{actionName:l,namespace:f}=th(t.item,e),p=Kr(t.item),m=t.item.$Type===Gi.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,S=t.item.fullyQualifiedName.replace(`@${Gi.UIAnnotationTerms.Identification}`,`/@${Gi.UIAnnotationTerms.Identification}`),b=`${v}<${at(p)}>`,I=i.definitions[b]={type:"object",$ref:`${$}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=rr(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Ia(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let F=(t.item.Actions??[]).map((j,W)=>({item:j,index:W}));Cx(F,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});f&&(i.definitions[b][R.SchemaTag.target]=f),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${S}`,a.properties[p]={$ref:`${$}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(Kk,"addSingleHeaderActionV4");function Bk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(Bk,"addStandardHeaderAction");function Hk(e,t,n,i,r,a){let s=Kr(e.item),l=ci(e.item,n),f=at(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Gi.UIAnnotationTerms.Identification}`,`/@${Gi.UIAnnotationTerms.Identification}`),d=i.definitions[f]={type:"object",$ref:`${$}${R.DefinitionName.FooterActionV4}`,description:l};d[R.SchemaTag.isViewNode]=!0,d[R.SchemaTag.actionType]=t,d[R.SchemaTag.propertyIndex]=a,d[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${f}`}}o(Hk,"addSingleFooterAction");function Az(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Gi.UIAnnotationTypes.DataFieldForAction||i.$Type===Gi.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Gi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(Sz.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(Az,"groupByCriticality");function Ez(e,t,n,i,r,a){let s=e.findIndex(l=>{var f,p;return((p=(f=l.item.annotations)==null?void 0:f.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(Kk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(Ez,"addCopyAction");function Cx(e,t,n,i,r,a,s=0){let l=s;for(let f of e)Kk(t,f,a,n,i,r,l),l++}o(Cx,"addGroupedHeaderActions");function Pz(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(Pz,"addRelatedAppsButton");function Gk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(Gk,"setAnnotationPathFromEntitySetOrEntityType");function xz(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?Az(n):{};if(Cx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=V_(r.entitySet),d=w_(r.entitySet);if(Jm(r.entitySet)&&d){let m=Bk("Edit",t,i,s.length);Gk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Bk("Delete",t,i,s.length+1);Gk(m,r.entitySet,e,"DeleteHidden")}}let f=s.length+2;Ez(l,r.serviceAVT,t,e,i,f),Cx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,f),Xk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),Pz(i)}o(xz,"addHeaderActionCallBackV4");function Cz(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Gi.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];Hk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];Hk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(Cz,"addFooterActionCallBackV4");function Iz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Gi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let f=`${R.DefinitionName.CustomColumnOP}<${n}>`;Cc(e,t,r,f,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let d=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${d}`,Oc(e,n,t,d,i.replace(/::/g,"/"));let m=e.definitions[n];m&&OS(m,l)}o(Iz,"addCustomColumnsOP");function Oz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Gi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=Ix;let f=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${at(n)}>`;xa(e,t,r,f,p,i);let d=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,d,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,ho(e,p,m)}o(Oz,"addTableCustomActionsOP");function Xk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=Ix;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Bm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,ho(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(Xk,"addHeaderFooterCustomActionsOP");function Rz({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,f=vt(e,t,i);n.entityType&&l&&(f[R.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),f.properties.columns={$ref:`${$}${r}`},f.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),f.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t),f[R.SchemaTag.target]=a.namespace}o(Rz,"addTableDefinition");function Lz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=Ix;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,f=`${R.DefinitionName.SectionActions}<${at(n)}>`;xa(e,t,r,l,f,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,ho(e,f,p),e.definitions[f]&&(e.definitions[f].additionalProperties={$ref:`${$}${a}`})}o(Lz,"addFormCustomActionsOP");function Fz(e,t,n,i,r,a,s){let l=Dc(t);[R.DefinitionName.ObjectPageResponsiveTableV4,R.DefinitionName.ObjectPageAnalyticalTableV4,R.DefinitionName.ObjectPageGridTableV4,R.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{Rz({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),ms(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let d={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};Ic(d,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),Iz(n,a,l,t,s),Oz(n,a,l,t,s)}o(Fz,"handleLineItem");function Qk(e,t,n,i,r,a,s){s&&ET(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);return Sa(e,l,Dc(t)),fs(e,l,Dc(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(f=>{let p=f.$ref.split("/").pop();return{$ref:si(p,t)}}),Fz(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Qk,"handleSectionTable");function Nz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let f=vt(l,n,r);e.ID||(f.properties={}),Sa(e,f,n),fs(e,f,n),f[R.SchemaTag.annotationPath]=e.annotationPath,f[R.SchemaTag.target]=e.namespace,f[R.SchemaTag.isViewNode]=!0;let p=eh(a,e,f,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let d=Dc(n);vt(R.DefinitionName.CustomFormActionOP,p,r),Lz(r,t,p,d,s)}}o(Nz,"handleFormIdentification");function Wk(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);$l(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=_c(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Wk,"handleHeaderFacet");function Dz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,f=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],d=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,d),description:f};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,at(d),n);v[R.SchemaTag.annotationPath]=ah(l),v[R.SchemaTag.dataType]=rr(l),v.properties={},a++})}return r}o(Dz,"handleChartActions");function _z(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=ah(e),r[R.SchemaTag.dataType]=_c(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Dz(e,t,n,i);return{chart:r,chartActions:s}}o(_z,"handleChart");function qk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,f=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&ET(i,t,l);let p=Hu(f,t),d=vt(l,p,n,!1);if($l(e,d,t),a)return delete d.properties.chart,{parentChartRef:d};d[R.SchemaTag.annotationPath]=ah(e),d.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=_z(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:d,chart:m,chartActions:v}}o(qk,"handleSectionChart");function Vz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${oA(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Vz,"getVisualizationKeyAndType");function wz(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(wz,"getTargetFromNavigation");function Mz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:f}=Vz(!!r,a,n),p=r?a:wz(n,s,f),d=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:f,target:p,namespace:d,navigationPath:s}}o(Mz,"getVisualizationProps");function ET(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(ET,"addPropertyRef");function Yk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Yk,"getSectionPropertyRef");function kz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:f}=Yk(t,r);ET(i,l,R.DefinitionName.ObjectPageSectionTableV4,f);let p=Qk(e,f,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,$l(e,p,t),delete p[R.SchemaTag.isViewNode]}o(kz,"addPVLineItemSection");function jz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:f}=Yk(t,r);ET(i,l,s,f);let{parentChartRef:p}=qk(r.target,f,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Sa(e,p,t),q0(e,p)):$l(e,p,t)}o(jz,"addPVChartSection");function Uz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){oe(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Mz(e,t,a),f=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?jz(e,t,n,i,l,f):l.type.startsWith(R.Visualization.LineItem)&&kz(e,t,n,i,l,a,s))}o(Uz,"handleSectionPresentationVariant");function $z(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o($z,"containsCollectionFacet");function Bz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ec(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Bz,"createCustomSubSectionReference");function Hz(e,t,n,i){var a,s,l,f;let r=(f=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:f.sections;if(r)for(let p in r){let d=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),S=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;d.properties.actions={$ref:`${$}${S}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${I}`,v[R.SchemaTag.isViewNode]=!0,xa(e,t,i,b,S,p),ho(e,S,I)}}o(Hz,"applyCustomActionsToCustomSections");function Ox(e,t,n,i,r,a,s){var m,v,S,b,I;let l=!1,f;a&&s?(l=!$z(a),f=Bz(t,s,n.featureToggles)):f=r,e.additionalProperties={$ref:`${$}${f}`},E_(t,e,i,f,l,s,n.logger);let p=t.definitions[f];if(typeof p=="object"&&ds(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),f.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];F.properties={},Hz(t,i,f,n.logger)}let d=p.properties.relatedFacet;if(f!=null&&f.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof d=="object"){let F=(I=(b=(S=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:S.body)==null?void 0:b.sections)==null?void 0:I[s],j=F&&"subSections"in F?F.subSections:{};for(let W=d.oneOf.length-1;W>=0;W--){let U=d.oneOf[W];j[U.const]||(U.hidden=!0)}}}o(Ox,"applyCustomSections");function Gz(e,t,n,i,r,a,s,l){let f=l===0,p=i.properties[t]=jo(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[R.SchemaTag.annotationPath]=e.annotationPath,d[R.SchemaTag.target]=e.namespace,d[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],d[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)Rx(a,e.facets,v,d,n,r,s,m);f&&Ox(d,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Gz,"handleCollection");function Rx(e,t,n,i,r,a,s,l=0){let f=t[n],p=`ObjectPage${a}${f.base}<${Dc(n)}>`;switch(f.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{Uz(f,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{Gz(f,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let d=t[n];Qk(f,n,r,d,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{Nz(f,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Wk(f,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Wk(f,n,i,r,p):a===R.SectionType.Section&&qk(f,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Gu(f,n,i,r,a);break}default:i.properties[n]=jo(r,f,n)}}o(Rx,"addSection");function Wz(e,t,n){let i=Om(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)Rx(e,i,a,r,t,R.SectionType.Section,n);Ox(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(Wz,"addSections");function Kz(e,t,n,i){let r=Im(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)Rx(e,r,s,a,t,R.SectionType.HeaderSection,i);Ox(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Kz,"addHeaderSections");function Xz(e,t,n){let i=e.entityType;rh(t,i),ih(t,i,e,xz,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Gi.UIAnnotationTerms.HeaderFacets}`),Kz(e,t,i,n)}o(Xz,"addHeader");function md(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=$m(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Xz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Gi.UIAnnotationTerms.Facets}`),Ec(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{$k(r,i,e,l.id)}catch(f){oe(e.logger,{severity:R.LogSeverity.Error,message:f})}}Wz(e,r,l),nh(r,e,R.FioriElementsVersion.v4,Cz),Xk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],$o(r,bz),r}o(md,"generateObjectPageSchemaV4");function Lx(e,t){return JSON.parse(JSON.stringify(t))}o(Lx,"generateFreestyleSchemaV4");var oo=Z(re());function Fx(e,t,n,i,r,a,s,l,f){let p=Gr(n,r),{entitySet:d,entityType:m}=ul(p,s,t,r),v={templateType:oo.TemplateType.ListReportObjectPageV4,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:f};return md(v,e,s,l)}o(Fx,"generateObjectPageInterfaceV4");function PT(e,t,n,i,r,a,s){Qt();let l=Gr(i,r),{entitySet:f,entityType:p}=ul(l,s,n,r),d={templateType:e,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:f,entityType:p},m=e===oo.TemplateType.ListReportObjectPageV4?oo.v4.FE_TEMPLATE_V4_LIST_REPORT:oo.v4.FE_TEMPLATE_V4_ALP;return Up(d,t,m,s)}o(PT,"generateListReportInterfaceV4");function Nx(e,t,n,i,r,a){let s=Gr(n,a),l={templateType:e,fioriElementsVersion:oo.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return Lx(l,t)}o(Nx,"generateFreestyleInterfaceV4");function Dx(e,t,n,i,r,a,s){let l={};if(Ec(a,oo.Features.BuildingBlocks)){let f=Gr(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?fl(e,p,f,s):{}}return l}o(Dx,"generateFPMCustomPageInterfaceV4");var dl=require("@sap-ux/vocabularies-types/vocabularies/UI"),tj=Z(re());var pl=Z(re());var Zk=new Map([[pl.PageTypeV2.ListReport,pl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[pl.PageTypeV2.ObjectPage,pl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),zk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),Jk=o(e=>{var t;for(let[n,i]of Zk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Qz=o((e,t)=>{let n="";for(let[r,a]of Zk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),ej={manifest:{path:o(()=>`sap.ui5/extends/extensions/${pl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Jk(n);i&&(t[i]={},zk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Qz(s,i);e[l]||(e[l]={}),zk(r[s],e[l])}for(let s in e){let l=Jk(s);l&&!r[l]&&delete e[s]}},"export")}};var dt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),IT=o(e=>dt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),OT=o(e=>dt(e)+"/content/header","getSettingsPathForHeaderOP"),qz=o(e=>dt(e)+"/content/footer","getSettingsPathForFooterOP"),so=o(e=>dt(e)+"/controlConfiguration","getControlConfigurationPath"),RT=o((e,t,n)=>so(e)+`/@${dl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),LT=o(e=>so(e)+`/@${dl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Qs=o((e,t,n,i)=>so(e)+`/@${dl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),_x=o((e,t,n,i)=>LT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Wi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Yz=o((e,t)=>(e??[]).join("/").startsWith("table/views")&&t===void 0,"isNewlyCreatedView"),hi=o((e,t,n,i,r,a,s)=>r?Wi(e,t,n,i,r):Object.keys(a??{}).length===0&&Yz(s,r)?"":so(e)+`/@${dl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),FT=o((e,t,n,i,r,a,s)=>{let l=hi(e,t,n,i,r,a,s);return l?l+tj.QUICKVARPATH:""},"getQuickVariantPath"),cr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),yi=o((e,t,n,i,r)=>r?cr(e,t,n,i,r):so(e)+`/@${dl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),co=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?so(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Nr=o((e,t,n,i,r)=>r?co(e,t,n,i,r):so(e)+`/@${dl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ki=o((e,t,n,i)=>so(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>so(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),Ti=o((e,t,n,i)=>OT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),NT=o((e,t,n,i)=>dt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Io=o((e,t,n,i)=>qz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Ft=o((e,t,n)=>so(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Uf=o((e,t,n,i)=>{let r=dt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),qs=o((e,t,n,i)=>dt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Dr=o((e,t,n,i)=>{let r=dt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),$f=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let f=dt(e)+`/content/body/sections/${l}`;return i&&(f+="/"+i),f},"getCustomSubSectionPath"),CT=class CT{};o(CT,"ApplicationV4"),h([jt("settings")],CT.prototype,"settings",2);var xT=CT,ao=class ao{};o(ao,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],ao.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],ao.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],ao.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),P({since:"1.78.0"})],ao.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),P({since:"1.56.0"})],ao.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],ao.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],ao.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],ao.prototype,"path",2),h([y(ej)],ao.prototype,"controllerExtensions",2);var jf=ao;var ye=Z(re());var _I={};vc(_I,{ALPChart:()=>BC,ALPTable:()=>qf,ActionAfterExecutionConfiguration:()=>pI,ActionAfterExecutionConfigurationFooter:()=>tC,ActionAfterExecutionConfigurationForm:()=>oC,ActionAfterExecutionConfigurationOP:()=>Ud,ActionAfterExecutionConfigurationObjectPageHeader:()=>yC,ActionAfterExecutionConfigurationToolBarLR:()=>EI,Actions:()=>vI,AdditionalSemanticObject:()=>fI,CommonHeaderFacetSettings:()=>rc,CommonViewSettings:()=>Qf,CustomActionPosition:()=>OI,CustomActionPositionOP:()=>oI,CustomFilterField:()=>kx,CustomFilterFieldPosition:()=>Mx,CustomFooterActionOP:()=>rC,CustomFooterActionPositionOP:()=>iC,CustomFormActionOP:()=>dC,CustomHeaderAction:()=>Hx,CustomHeaderActionOP:()=>SC,CustomHeaderActionPosition:()=>vd,CustomHeaderActionPositionOP:()=>bC,CustomSectionActionOP:()=>Yx,CustomSectionActionPositionOP:()=>qx,CustomTableAction:()=>RI,CustomTableActionOP:()=>aI,FilterBar:()=>Vx,FlexSettings:()=>PC,FooterActionV4:()=>nC,FormAction:()=>aC,Header:()=>Ux,HeaderActions:()=>jx,HeaderSections:()=>LC,LRChartView:()=>HC,LRTableView:()=>GC,MultiTableModeV4:()=>KC,ObjectPageAnalyticalTableV4:()=>Vd,ObjectPageCustomHeaderSectionFlexSettings:()=>Gx,ObjectPageCustomHeaderSectionFragment:()=>Wx,ObjectPageCustomSectionActions:()=>Kx,ObjectPageCustomSectionFragment:()=>Hf,ObjectPageCustomSubSectionFragment:()=>Xx,ObjectPageFooter:()=>Jx,ObjectPageFooterActions:()=>zx,ObjectPageForm:()=>lC,ObjectPageFormActionGroup:()=>sC,ObjectPageFormActions:()=>cC,ObjectPageGridTableV4:()=>wd,ObjectPageHeader:()=>mC,ObjectPageHeaderAction:()=>TC,ObjectPageHeaderActionGroup:()=>vC,ObjectPageHeaderActions:()=>gC,ObjectPageHeaderSectionAddress:()=>RC,ObjectPageHeaderSectionChart:()=>CC,ObjectPageHeaderSectionContact:()=>OC,ObjectPageHeaderSectionDataPoint:()=>IC,ObjectPageHeaderSectionForm:()=>xC,ObjectPageLayout:()=>MC,ObjectPageResponsiveTableV4:()=>_d,ObjectPageTable:()=>Dd,ObjectPageTableColumn:()=>tu,ObjectPageTableColumnAction:()=>ZC,ObjectPageTableRowCountable:()=>Zf,ObjectPageToolBarAction:()=>iI,ObjectPageToolBarActionGroup:()=>rI,ObjectPageToolBarActions:()=>sI,ObjectPageTreeTableV4:()=>Md,PersonalizationType:()=>jC,PersonalizationTypeOP:()=>zC,Position:()=>mI,PositionOP:()=>eI,QuickVariantSelectionV4:()=>$C,QuickVariantSelectionV4OP:()=>JC,RelatedApps:()=>uI,Table:()=>XC,TableColumn:()=>YT,TableColumnAction:()=>dI,TableCreationModeOP:()=>YC,TableCustomColumn:()=>yI,TableCustomColumnOP:()=>tI,TableSettings:()=>jT,TableViewExtension:()=>WC,TableViewSettings:()=>Rd,ToolBar:()=>bI,ToolBarAction:()=>PI,ToolBarActionGroup:()=>xI,ViewCustomActionPosition:()=>LI,ViewPersonalizationType:()=>UC,ViewPosition:()=>hI,ViewTableColumn:()=>zT,ViewTableColumnAction:()=>gI,ViewTableCustomAction:()=>FI,ViewTableCustomColumn:()=>TI,ViewToolBarAction:()=>II,ViewToolBarActionGroup:()=>CI,VisualFilter:()=>wx,checkViewOrder:()=>QC,deleteCreationModeProperty:()=>Fd,deletePersonalizationProperty:()=>Ro,exportCreationModeProperty:()=>Ld,exportPersonalization:()=>HT,exportPersonalizationProperty:()=>Oo});function zz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(zz,"exportVisualFilterValueList");var Bf=class Bf{};o(Bf,"FilterBar"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Bf.prototype,"hideFilterBar",2),h([y({manifest:{path:LT}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Bf.prototype,"initialLayout",2),h([y({manifest:{path:LT}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Bf.prototype,"layout",2);var Vx=Bf,hd=class hd{};o(hd,"VisualFilter"),h([y({manifest:{path:_x}}),P({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],hd.prototype,"availability",2),h([y({manifest:{path:_x,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:zz,key:"visualFilter"}}),P({since:"1.93.0"})],hd.prototype,"visualFilterValueList",2);var wx=hd,yd=class yd{};o(yd,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],yd.prototype,"placement",2);var Mx=yd,Ys=class Ys{};o(Ys,"CustomFilterField"),h([y({manifest:{path:Qs}}),P({since:"1.77.0"})],Ys.prototype,"label",2),h([y({manifest:{path:Qs}}),P({since:"1.77.0"})],Ys.prototype,"property",2),h([y({manifest:{path:Qs}}),P({since:"1.77.0"})],Ys.prototype,"template",2),h([y({manifest:{path:Qs}}),P({since:"1.77.0"})],Ys.prototype,"required",2),h([y({manifest:{path:Qs}}),P({since:"1.77.0"})],Ys.prototype,"position",2);var kx=Ys;var $x=class $x{};o($x,"HeaderActions");var jx=$x,Bx=class Bx{};o(Bx,"Header");var Ux=Bx;var Td=class Td{};o(Td,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Td.prototype,"placement",2);var vd=Td,zs=class zs{};o(zs,"CustomHeaderAction"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],zs.prototype,"text",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],zs.prototype,"position",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],zs.prototype,"press",2),h([y({manifest:{path:Ti},generate:Jn}),P({since:"1.84.0"})],zs.prototype,"visible",2),h([y({manifest:{path:Ti},generate:Jn}),P({since:"1.84.0"})],zs.prototype,"enabled",2);var Hx=zs;var DT=class DT{};o(DT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"flexSettings"),"path")}}),P({since:"1.81.0"})],DT.prototype,"designtime",2);var Gx=DT,lr=class lr{};o(lr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"anchor"}}),P({since:"1.77.0"})],lr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"placement"}}),P({since:"1.77.0"})],lr.prototype,"relativePosition",2),h([y({manifest:{path:Dr},generate:ai}),P({since:"1.84.0"})],lr.prototype,"visible",2),h([y({manifest:{path:Dr}}),P({since:"1.77.0"})],lr.prototype,"title",2),h([y({manifest:{path:Dr}}),P({since:"1.77.0"})],lr.prototype,"subTitle",2),h([y({manifest:{path:Dr,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],lr.prototype,"fragmentName",2),h([y({manifest:{path:Dr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),P({since:"1.86.0"})],lr.prototype,"templateEdit",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"stashed",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"flexSettings",2),h([y({manifest:{path:Dr}}),P({since:"1.81.0"})],lr.prototype,"requestGroupId",2),h([y({manifest:{path:Dr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],lr.prototype,"controls",2);var Wx=lr;var Qx=class Qx{};o(Qx,"ObjectPageCustomSectionActions");var Kx=Qx,Js=class Js{};o(Js,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Uf(t,n,i,"position"),"path"),key:"anchor"}}),P({since:"1.77.0"})],Js.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Uf(t,n,i,"position"),"path"),key:"placement"}}),P({since:"1.77.0"})],Js.prototype,"relativePosition",2),h([y({manifest:{path:Uf}}),P({since:"1.77.0"})],Js.prototype,"title",2),h([y({manifest:{path:Uf,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],Js.prototype,"fragmentName",2),h([y({manifest:{path:Uf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],Js.prototype,"controls",2);var Hf=Js,Zs=class Zs extends Hf{};o(Zs,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${$f.apply({},t)}/position`,"path"),key:"anchor"}}),P({since:"1.77.0"})],Zs.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${$f.apply({},t)}/position`,"path"),key:"placement"}}),P({since:"1.77.0"})],Zs.prototype,"relativePosition",2),h([y({manifest:{path:$f}}),P({since:"1.77.0"})],Zs.prototype,"title",2),h([y({manifest:{path:$f,import:o(t=>t.name||t.template,"import"),key:"template"}}),P({since:"1.77.0"})],Zs.prototype,"fragmentName",2),h([y({manifest:{path:$f,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),P({since:"1.96.0"})],Zs.prototype,"controls",2);var Xx=Zs;var bd=class bd{};o(bd,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>qs(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],bd.prototype,"placement",2);var qx=bd,ec=class ec{};o(ec,"CustomSectionActionOP"),h([y({manifest:{path:qs}}),P({since:"1.84.0"})],ec.prototype,"text",2),h([y({manifest:{path:qs}}),P({since:"1.84.0"})],ec.prototype,"position",2),h([y({manifest:{path:qs}}),P({since:"1.84.0"})],ec.prototype,"press",2),h([y({manifest:{path:qs},generate:ai}),P({since:"1.84.0"})],ec.prototype,"visible",2),h([y({manifest:{path:qs},generate:ai}),P({since:"1.84.0"})],ec.prototype,"enabled",2);var Yx=ec;var Zx=class Zx{};o(Zx,"ObjectPageFooterActions");var zx=Zx,eC=class eC{};o(eC,"ObjectPageFooter");var Jx=eC;var Sd=class Sd{};o(Sd,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/afterExecution","path")}})],Sd.prototype,"enableAutoScroll",2);var tC=Sd,_T=class _T{};o(_T,"FooterActionV4"),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],_T.prototype,"afterExecution",2);var nC=_T,Ad=class Ad{};o(Ad,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Ad.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Io(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],Ad.prototype,"placement",2);var iC=Ad,tc=class tc{};o(tc,"CustomFooterActionOP"),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],tc.prototype,"text",2),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],tc.prototype,"position",2),h([y({manifest:{path:Io}}),P({since:"1.84.0"})],tc.prototype,"press",2),h([y({manifest:{path:Io},generate:ai}),P({since:"1.84.0"})],tc.prototype,"visible",2),h([y({manifest:{path:Io},generate:ai}),P({since:"1.84.0"})],tc.prototype,"enabled",2);var rC=tc;var Ed=class Ed{};o(Ed,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],Ed.prototype,"enableAutoScroll",2);var oC=Ed,VT=class VT{};o(VT,"FormAction"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],VT.prototype,"afterExecution",2);var aC=VT,fC=class fC{};o(fC,"ObjectPageFormActionGroup");var sC=fC,uC=class uC{};o(uC,"ObjectPageFormActions");var cC=uC,pC=class pC{};o(pC,"ObjectPageForm");var lC=pC;var nc=class nc{};o(nc,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],nc.prototype,"text",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],nc.prototype,"position",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],nc.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],nc.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],nc.prototype,"enabled",2);var dC=nc;var hC=class hC{};o(hC,"ObjectPageHeaderActions");var gC=hC,Gf=class Gf{};o(Gf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],Gf.prototype,"editableHeaderContent",2),h([y({manifest:{path:OT}}),P({since:"1.84.0"})],Gf.prototype,"visible",2),h([y({manifest:{path:OT}}),P({since:"1.84.0"})],Gf.prototype,"anchorBarVisible",2);var mC=Gf;var Pd=class Pd{};o(Pd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Pd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ti(t,n,i,r)+"/afterExecution","path")}})],Pd.prototype,"enableAutoScroll",2);var yC=Pd,wT=class wT{};o(wT,"ObjectPageHeaderAction"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],wT.prototype,"afterExecution",2);var TC=wT,AC=class AC{};o(AC,"ObjectPageHeaderActionGroup");var vC=AC,EC=class EC extends vd{};o(EC,"CustomHeaderActionPositionOP");var bC=EC,ic=class ic{};o(ic,"CustomHeaderActionOP"),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],ic.prototype,"text",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],ic.prototype,"position",2),h([y({manifest:{path:Ti}}),P({since:"1.84.0"})],ic.prototype,"press",2),h([y({manifest:{path:Ti},generate:ai}),P({since:"1.84.0"})],ic.prototype,"visible",2),h([y({manifest:{path:Ti},generate:ai}),P({since:"1.84.0"})],ic.prototype,"enabled",2);var SC=ic;var MT=class MT{};o(MT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>RT(t,n,i)+"/flexSettings","path")}}),P({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],MT.prototype,"designtime",2);var PC=MT,xd=class xd{};o(xd,"CommonHeaderFacetSettings"),h([y({manifest:{path:RT}}),P({since:"1.81.0"})],xd.prototype,"stashed",2),h([y({manifest:{path:RT}}),P({since:"1.81.0"})],xd.prototype,"flexSettings",2);var rc=xd,FC=class FC extends rc{};o(FC,"ObjectPageHeaderSectionForm");var xC=FC,NC=class NC extends rc{};o(NC,"ObjectPageHeaderSectionChart");var CC=NC,DC=class DC extends rc{};o(DC,"ObjectPageHeaderSectionDataPoint");var IC=DC,_C=class _C extends rc{};o(_C,"ObjectPageHeaderSectionContact");var OC=_C,VC=class VC extends rc{};o(VC,"ObjectPageHeaderSectionAddress");var RC=VC,wC=class wC{};o(wC,"HeaderSections");var LC=wC;var kT=class kT{};o(kT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],kT.prototype,"sectionLayout",2);var MC=kT;var GT=Z(re());var kC=Z(re());var Jz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function ta(e,t,n,i,r,a){let s=IT(e),l=Jz(JSON.parse(JSON.stringify(t)),s),f;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[kC.SchemaTag.key]===(a==null?void 0:a.key)||d[kC.SchemaTag.key]===i)){f=`${s}/${p}`;break}}return f||(f=`${s}/[]`),f}o(ta,"getSettingsPathForLRViewsPath");function Zz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let f of l){let p=Number(f),d=e[f];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+a)]=d:s[f]=d}return s}o(Zz,"fillNewlyOrderedViews");function QC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),f=Zz(e,n,r,s,l,a);for(let p of Object.keys(f))e[p]=f[p]}}o(QC,"checkViewOrder");function HT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(HT,"exportPersonalization");function Oo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Oo,"exportPersonalizationProperty");function Ro(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Ro,"deletePersonalizationProperty");function qC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let f=e;Object.keys(f).forEach(p=>{f[p]&&f[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let f=(l=a.table)==null?void 0:l.views;for(let p in f)f[p].index>s&&f[p].index--}}o(qC,"deleteView");function Ld(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Ld,"exportCreationModeProperty");function Fd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Fd,"deleteCreationModeProperty");function nj(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(nj,"importPersonalization");function ij(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(ij,"determineIndexOfView");var Wf=class Wf{};o(Wf,"PersonalizationType"),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"column",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"sort",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Wf.prototype,"filter",2);var jC=Wf,Kf=class Kf{};o(Kf,"ViewPersonalizationType"),h([y({manifest:{path:Wi,export:Oo,delete:Ro}})],Kf.prototype,"column",2),h([y({manifest:{path:Wi,export:Oo,delete:Ro}})],Kf.prototype,"sort",2),h([y({manifest:{path:hi,export:Oo,delete:Ro}})],Kf.prototype,"filter",2);var UC=Kf,Xf=class Xf{};o(Xf,"QuickVariantSelectionV4"),h([y({manifest:{path:FT}})],Xf.prototype,"paths",2),h([y({manifest:{path:FT}})],Xf.prototype,"hideTableTitle",2),h([y({manifest:{path:FT}})],Xf.prototype,"showCounts",2);var $C=Xf,fr=class fr{};o(fr,"TableSettings"),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fr.prototype,"type",2),h([y({manifest:{path:hi,import:nj,export:HT}}),P({since:"1.86.0"})],fr.prototype,"personalization",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],fr.prototype,"selectionMode",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"selectAll",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"selectionLimit",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],fr.prototype,"enableExport",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"})],fr.prototype,"quickVariantSelection",2),h([y({manifest:{path:hi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],fr.prototype,"condensedTableLayout",2),h([y({manifest:{path:hi}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:hi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],fr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:hi}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],fr.prototype,"disableCopyToClipboard",2);var jT=fr,UT=class UT{};o(UT,"ALPChart"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/primary/0","path"),delete:qC}})],UT.prototype,"annotationPath",2);var BC=UT,gl=class gl{};o(gl,"CommonViewSettings"),h([y({manifest:{path:ta,delete:Pc}})],gl.prototype,"key",2),h([y({manifest:{path:IT,import:ij,export:o((t,n)=>{QC(t,n)},"export"),delete:qC}})],gl.prototype,"index",2),h([y({manifest:{path:ta,delete:Pc}})],gl.prototype,"annotationPath",2),h([y({manifest:{path:ta}})],gl.prototype,"entitySet",2);var Qf=gl,ur=class ur extends Qf{};o(ur,"TableViewSettings"),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"type",2),h([y({manifest:{path:Wi,import:nj}}),P({since:"1.86.0"})],ur.prototype,"personalization",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectionMode",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectAll",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"selectionLimit",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ur.prototype,"enableExport",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"})],ur.prototype,"quickVariantSelection",2),h([y({manifest:{path:Wi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ur.prototype,"condensedTableLayout",2),h([y({manifest:{path:Wi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ur.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Wi}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ur.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Wi}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ur.prototype,"disableCopyToClipboard",2);var Rd=ur;function eJ(e){return Rd}o(eJ,"getTableViewSettings");var Cd=class Cd extends Rd{};o(Cd,"ALPTable"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/secondary/0","path"),delete:Pc}})],Cd.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Cd.prototype,"initialLoad",2);var qf=Cd,$T=class $T extends Qf{};o($T,"LRChartView"),h([y({manifest:{path:ta},generate:Jn})],$T.prototype,"visible",2);var HC=$T,Id=class Id extends eJ(Qf){};o(Id,"LRTableView"),h([y({manifest:{path:ta}})],Id.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ta},generate:Jn})],Id.prototype,"visible",2);var GC=Id,oc=class oc{};o(oc,"TableViewExtension"),h([y({manifest:{path:ta}})],oc.prototype,"key",2),h([y({manifest:{path:IT,import:ij,export:o((t,n)=>{QC(t,n)},"export"),delete:qC}})],oc.prototype,"index",2),h([y({manifest:{path:ta}})],oc.prototype,"label",2),h([y({manifest:{path:ta}})],oc.prototype,"template",2),h([y({manifest:{path:ta},generate:Jn})],oc.prototype,"visible",2);var WC=oc,BT=class BT{};o(BT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>dt(t)+"/views","path")}})],BT.prototype,"showCounts",2);var KC=BT,Od=class Od extends jT{};o(Od,"Table"),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/0/secondary/0","path"),delete:Pc}})],Od.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Od.prototype,"initialLoad",2);var XC=Od;var Yf=class Yf{};o(Yf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:o((t,n,i)=>{Ld(t,n,i)},"export"),delete:o((t,n,i,r)=>{Fd(t,r)},"delete")}})],Yf.prototype,"inlineCreationRowsHiddenInEditMode",2);var YC=Yf,zf=class zf{};o(zf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i),"path"),export:Oo,delete:Ro}})],zf.prototype,"filter",2);var zC=zf,Jf=class Jf{};o(Jf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>Ft(t,n,i)+GT.QUICKVARPATH,"path")}})],Jf.prototype,"showCounts",2);var JC=Jf,vi=class vi{};o(vi,"ObjectPageTable"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"type",2),h([y({manifest:{path:Ft,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),P({since:"1.84.0"})],vi.prototype,"creationMode",2),h([y({manifest:{path:Ft,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:HT}}),P({since:"1.86.0"})],vi.prototype,"personalization",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectionMode",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectAll",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"selectionLimit",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],vi.prototype,"enableExport",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"quickVariantSelection",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],vi.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ft}}),P({since:"1.86.0"})],vi.prototype,"enableFullScreen",2),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],vi.prototype,"enablePaste",2),h([y({manifest:{path:Ft}}),P({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Ft}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],vi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Ft}}),P({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],vi.prototype,"disableCopyToClipboard",2);var Dd=vi,Nd=class Nd extends Dd{};o(Nd,"ObjectPageTableRowCountable"),h([y({manifest:{path:Ft}}),P({since:"1.120.0"})],Nd.prototype,"rowCountMode",2),h([y({manifest:{path:Ft}}),P({since:"1.120.0"})],Nd.prototype,"rowCount",2);var Zf=Nd,WT=class WT extends Dd{};o(WT,"ObjectPageResponsiveTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],WT.prototype,"type",2);var _d=WT,KT=class KT extends Zf{};o(KT,"ObjectPageAnalyticalTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],KT.prototype,"type",2);var Vd=KT,XT=class XT extends Zf{};o(XT,"ObjectPageGridTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],XT.prototype,"type",2);var wd=XT,QT=class QT extends Zf{};o(QT,"ObjectPageTreeTableV4"),h([y({manifest:{path:Ft}}),P({since:"1.84.0"})],QT.prototype,"type",2);var Md=QT;var kd=class kd{};o(kd,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/afterExecution","path")}})],kd.prototype,"enableAutoScroll",2);var Ud=kd,eu=class eu{};o(eu,"ObjectPageTableColumn"),h([y({manifest:{path:Ki}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],eu.prototype,"width",2),h([y({manifest:{path:Ki}}),P({since:"1.85.0"})],eu.prototype,"availability",2),h([y({manifest:{path:Ki}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],eu.prototype,"widthIncludingColumnHeader",2);var tu=eu,nI=class nI extends tu{};o(nI,"ObjectPageTableColumnAction");var ZC=nI,jd=class jd{};o(jd,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],jd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ki(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],jd.prototype,"placement",2);var eI=jd,na=class na{};o(na,"TableCustomColumnOP"),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"position",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"header",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],na.prototype,"width",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"template",2),h([y({manifest:{path:Ki}}),P({since:"1.86.0"})],na.prototype,"horizontalAlign",2),h([y({manifest:{path:Ki}}),P({since:"1.84.0"})],na.prototype,"availability",2),h([y({manifest:{path:Ki}}),P({since:"1.85.0"})],na.prototype,"properties",2);var tI=na;var qT=class qT{};o(qT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],qT.prototype,"enableOnSelect",2);var iI=qT,cI=class cI{};o(cI,"ObjectPageToolBarActionGroup");var rI=cI,$d=class $d{};o($d,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],$d.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),P({since:"1.84.0"})],$d.prototype,"placement",2);var oI=$d,Wa=class Wa{};o(Wa,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"text",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"position",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"press",2),h([y({manifest:{path:Hn}}),P({since:"1.84.0"})],Wa.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],Wa.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),P({since:"1.84.0"})],Wa.prototype,"enabled",2);var aI=Wa,lI=class lI{};o(lI,"ObjectPageToolBarActions");var sI=lI;var nu=class nu{};o(nu,"AdditionalSemanticObject"),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.108.0"})],nu.prototype,"allowedActions",2),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.96.0"})],nu.prototype,"unavailableActions",2),h([y({manifest:{path:NT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),P({since:"1.96.0"})],nu.prototype,"mapping",2);var fI=nu,Bd=class Bd{};o(Bd,"RelatedApps"),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],Bd.prototype,"showRelatedApps",2),h([y({manifest:{path:dt}})],Bd.prototype,"additionalSemanticObjects",2);var uI=Bd;var Hd=class Hd{};o(Hd,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/afterExecution","path")}})],Hd.prototype,"enableAutoScroll",2);var pI=Hd,iu=class iu{};o(iu,"TableColumn"),h([y({manifest:{path:yi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],iu.prototype,"width",2),h([y({manifest:{path:yi}}),P({since:"1.85.0"})],iu.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],iu.prototype,"widthIncludingColumnHeader",2);var YT=iu,ru=class ru{};o(ru,"ViewTableColumn"),h([y({manifest:{path:cr}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ru.prototype,"width",2),h([y({manifest:{path:cr}}),P({since:"1.85.0"})],ru.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ru.prototype,"widthIncludingColumnHeader",2);var zT=ru,JT=class JT extends YT{};o(JT,"TableColumnAction"),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],JT.prototype,"afterExecution",2);var dI=JT,ZT=class ZT extends zT{};o(ZT,"ViewTableColumnAction"),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ZT.prototype,"afterExecution",2);var gI=ZT,Gd=class Gd{};o(Gd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Gd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>yi(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Gd.prototype,"placement",2);var mI=Gd,Wd=class Wd{};o(Wd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>cr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Wd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>cr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Wd.prototype,"placement",2);var hI=Wd,ia=class ia{};o(ia,"TableCustomColumn"),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"position",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"header",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ia.prototype,"width",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"template",2),h([y({manifest:{path:yi}}),P({since:"1.86.0"})],ia.prototype,"horizontalAlign",2),h([y({manifest:{path:yi}}),P({since:"1.84.0"})],ia.prototype,"availability",2),h([y({manifest:{path:yi}}),P({since:"1.85.0"})],ia.prototype,"properties",2);var yI=ia,ra=class ra{};o(ra,"ViewTableCustomColumn"),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"position",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"header",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ra.prototype,"width",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"template",2),h([y({manifest:{path:cr}}),P({since:"1.86.0"})],ra.prototype,"horizontalAlign",2),h([y({manifest:{path:cr}}),P({since:"1.84.0"})],ra.prototype,"availability",2),h([y({manifest:{path:cr}}),P({since:"1.85.0"})],ra.prototype,"properties",2);var TI=ra;var SI=class SI{};o(SI,"Actions");var vI=SI,AI=class AI{};o(AI,"ToolBar");var bI=AI;var Kd=class Kd{};o(Kd,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/afterExecution","path")}})],Kd.prototype,"enableAutoScroll",2);var EI=Kd,Xd=class Xd{};o(Xd,"ToolBarAction"),h([y({manifest:{path:Nr}})],Xd.prototype,"enableOnSelect",2),h([y({manifest:{path:Nr}})],Xd.prototype,"afterExecution",2);var PI=Xd,NI=class NI{};o(NI,"ToolBarActionGroup");var xI=NI,DI=class DI{};o(DI,"ViewToolBarActionGroup");var CI=DI,Qd=class Qd{};o(Qd,"ViewToolBarAction"),h([y({manifest:{path:co}})],Qd.prototype,"enableOnSelect",2),h([y({manifest:{path:co}})],Qd.prototype,"afterExecution",2);var II=Qd,qd=class qd{};o(qd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],qd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Nr(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],qd.prototype,"placement",2);var OI=qd,Ka=class Ka{};o(Ka,"CustomTableAction"),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"text",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"position",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"press",2),h([y({manifest:{path:Nr}}),P({since:"1.84.0"})],Ka.prototype,"requiresSelection",2),h([y({manifest:{path:Nr},generate:Jn}),P({since:"1.84.0"})],Ka.prototype,"visible",2),h([y({manifest:{path:Nr},generate:Jn}),P({since:"1.84.0"})],Ka.prototype,"enabled",2);var RI=Ka,Yd=class Yd{};o(Yd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>co(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>co(t,n,i,r,a)+"/position","path")}}),P({since:"1.84.0"})],Yd.prototype,"placement",2);var LI=Yd,Xa=class Xa{};o(Xa,"ViewTableCustomAction"),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"text",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"position",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"press",2),h([y({manifest:{path:co}}),P({since:"1.84.0"})],Xa.prototype,"requiresSelection",2),h([y({manifest:{path:co},generate:Jn}),P({since:"1.84.0"})],Xa.prototype,"visible",2),h([y({manifest:{path:co},generate:Jn}),P({since:"1.84.0"})],Xa.prototype,"enabled",2);var FI=Xa;var kI={};vc(kI,{FreestylePage:()=>wI,ListReport:()=>_r,ObjectPage:()=>Lo});function tJ(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(tJ,"deleteAllALPViews");function nJ(){}o(nJ,"doNotExport");function iJ(){}o(iJ,"doNotImport");var _r=class{};o(_r,"ListReport"),h([y({manifest:{path:o(t=>dt(t)+"/views","path"),import:iJ,export:nJ,delete:tJ}})],_r.prototype,"chart",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"})],_r.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>dt(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],_r.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>dt(t),"path")}})],_r.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],_r.prototype,"header",2),h([jt("fe::FilterBar")],_r.prototype,"filterBar",2),_r=h([ir({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],_r);var VI=Z(re());var Lo=class{};o(Lo,"ObjectPage"),h([jt("header")],Lo.prototype,"header",2),h([jt("layout")],Lo.prototype,"layout",2),h([y({manifest:{path:o(t=>dt(t),"path")}}),P({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Lo.prototype,"variantManagement",2),h([jt("sections")],Lo.prototype,"sections",2),Lo=h([ir({id:`${VI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:VI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Lo);var MI=class MI{};o(MI,"FreestylePage");var wI=MI;var Qa=Z(re());var rJ={ALPTableView:qf},oJ={ALPTableView:qf},aJ={[Qa.DefinitionName.ObjectPageResponsiveTableV4]:_d,[Qa.DefinitionName.ObjectPageAnalyticalTableV4]:Vd,[Qa.DefinitionName.ObjectPageGridTableV4]:wd,[Qa.DefinitionName.ObjectPageTreeTableV4]:Md,TableColumn:tu,ObjectPageCustomSectionView:Hf,ActionAfterExecutionConfiguration:Ud},sJ={[Qa.PageTypeV4.AnalyticalListPage]:rJ,[Qa.PageTypeV4.ListReport]:oJ,[Qa.PageTypeV4.ObjectPage]:aJ},jI=class jI extends yf{constructor(){super(_I,kI,sJ)}};o(jI,"MetadataInstanceFactoryV4");var qa=jI;var UI=require("@sap-ux/vocabularies-types/vocabularies/UI");function $I(e,t,n,i,r,a,s){var d,m,v,S,b,I;let l=t.jsonSchema.definitions,f=a&&a!==`@${UI.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[f];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let W=l[f].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,W);let U=s||a;Ot(e.columns[F],t.manifest,l[W],r,[F,U],U,t.logger),Wr(e.columns,F)}Wr(e,"columns")}else{let F=(I=(b=(S=(v=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:S.options)==null?void 0:b.settings)==null?void 0:I.views;(!F||F.paths.length<1)&&oe(t.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o($I,"transferColumns");function cJ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let f=s.properties[l];if(typeof f=="object"&&f.$ref){let p=Jt(f.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Wr(t,"visualFilters")}}o(cJ,"importVisualFilters");function lJ(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){var d;let l=e.jsonSchema.definitions,f=s;!f&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(f=`@${UI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(d=p==null?void 0:p.properties)==null?void 0:d[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:f};Wl(b)}}}o(lJ,"importActions");function BI(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),f;!s&&t&&"table"in t?f=t.table:f=t,f.toolBar=l,Ot(f.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),lJ(e,f,n,i,r,a,s),Wr(f.toolBar,"actions"),Wr(f,"toolBar")}o(BI,"transferToolBar");function rj(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(rj,"determineTargetAnnotationOfView");function fJ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let f=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(f){let p=a[ye.DefinitionName.ALPTable],d=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);BI(e,t,n,i,r);let m=f.substr(f.lastIndexOf("@"));Ot(d,e.manifest,p,r,[p[ye.SchemaTag.key],m]),$I(d,e,n,i,r,void 0,m)}}o(fJ,"importALPViews");function uJ(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(uJ,"getViewTypeByDefinition");function pJ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,f=Object.entries(l).sort((p,d)=>p[1][ye.SchemaTag.propertyIndex]-d[1][ye.SchemaTag.propertyIndex]);for(let p of f)if(p[1].$ref){let d=p[1].$ref.split($)[1],m=uJ(d),v=a[p[0]]=n.createInstance(i,m),S=s[d].entitySet,b=rj(s,d,S);if(Ot(v,e.manifest,s[d],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let I=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;BI(e,v,n,i,r,I,b),$I(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}Wr(t.table,"views")}o(pJ,"importLRViews");function dJ(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let f in l.properties){let p=l.properties[f];if(typeof p=="object"&&p.$ref){let d=Jt(p.$ref),m=e.definitions[d],v=Jt(m.$ref||p.$ref);t[s].actions[f]=n.createInstance(ye.PageTypeV4.ObjectPage,v),Ot(t[s].actions[f],i,e.definitions[v],r,[f.replace("/","??")]),Wr(t.header,"actions"),Wr(t,"header")}}}}o(dJ,"transferHeaderActions");function gJ(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let f=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];Ot(f,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=f}}o(gJ,"importCustomFilterFields");function mJ(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),dJ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),cJ(e,t.filterBar,n,i,r),gJ(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.DefinitionName.Table,l=e.jsonSchema.definitions[s],f;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],f=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,ye.DefinitionName.Table);let p=rj(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),BI(e,t,n,i,r,f),$I(t.table,e,n,i,r,f,p),pJ(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&fJ(e,t,n,i,r)}o(mJ,"addSettings");function ml(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){oe(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new qa,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=pS(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){mJ(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(ml,"createListReportConfig");var ve=Z(re()),Ya=require("@sap-ux/vocabularies-types/vocabularies/UI");function hJ(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(hJ,"isBoolean");function yJ(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(yJ,"isNumber");function TJ(e,t){let n=e.toString();return hJ(n,t)?n==="true":yJ(n,t)?parseFloat(n):e}o(TJ,"convertValue");function vJ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=TJ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(vJ,"importProperty");function oj(e,t,n){let i,r=Mf(e.file,!1,n);if(r){let a=bT(r);i={},ll({fullSchema:t,schema:t,element:a,contextPath:[],config:i},vJ)}return i}o(oj,"convertXmlFileToConfig");function ev(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=oj(s,i,e.logger)),l}o(ev,"createCustomPageConfig");function zd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=kf(t),f=(v=r.definitions)==null?void 0:v[l];if(!r||!f)return;let p=Rc(i,a),d=Lc(n||[],p,i,"fragment",t),m;if(d){let S={...f,definitions:r.definitions};m=oj(d,S,s)}return m}o(zd,"createCustomFragmentConfig");function HI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(HI,"getManifestId");function Jd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Jd,"getDefinitionId");function bJ(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Jd(a)];if(l)for(let f in l.properties){l.properties[f].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let d=r.createInstance(ve.PageTypeV4.ObjectPage,s);Ot(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[f],a),Object.keys(d).length>0&&(n[i].table.columns[f]=d)}}}o(bJ,"fillTableColumnsInConfig");function cj(e,t,n,i,r,a){var s;if(typeof t=="object")for(let l in t.properties){let f=t.properties[l];if(typeof f=="object"&&f.$ref){let p=Jt(f.$ref),d=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(ve.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let S={actionPropertyDefinition:d,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Wl(S)}}}o(cj,"fillSectionActionsInConfig");function SJ(e,t,n,i,r,a){if(t.actions){let s=i[n].form.actions={},f=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${Jd(a)}>`].properties.form.$ref.split($)[1],m=e.jsonSchema.definitions[f].properties.actions.$ref.split($)[1],v=e.jsonSchema.definitions[m];for(let S in v.properties){let b=v.properties[S],I=Jt(b.$ref),F=e.jsonSchema.definitions[I];if(F.annotationType===Ya.UIAnnotationTypes.DataFieldForAction||F.annotationType===Ya.UIAnnotationTypes.DataFieldForActionGroup||F.description==="Custom Action"){let j={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:S,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Wl(j)}}}}o(SJ,"fillFormActionsInConfig");function AJ(e){return new Map([["AnalyticalTable",ve.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ve.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ve.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ve.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ve.DefinitionName.ObjectPageResponsiveTableV4}o(AJ,"getTableDefinitionNameByType");function aj(e,t,n,i,r,a){var f;let s=a||HI(i,!1,Ya.UIAnnotationTerms.LineItem),l=(f=t.controlConfiguration)==null?void 0:f[s];if(l){let{tableSettings:p={}}=l,d=p.type,m=AJ(d);n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,m);let v=`${m}<${a?Jd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[v],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let S=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${Jd(s)}>`];cj(e,S,i,n,r,s),bJ(e,l,n,i,r,s)}}o(aj,"fillTableInConfig");function EJ(e,t,n,i,r){var l;let a=HI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),SJ(e,s,i,n,r,a))}o(EJ,"fillFormInConfig");function PJ(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let f=zd(e,s.fragmentName);s.controls=f}n[i]=s}o(PJ,"fillCustomSubSectionInConfig");function lj(e,t,n,i,r,a){var s,l,f,p,d;for(let m in t){let v=t[m],S=m;if((m.includes(Ya.UIAnnotationTerms.PresentationVariant)||m.includes(Ya.UIAnnotationTerms.SelectionPresentationVariant))&&((s=v.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];S=HI(b,!0,Ya.UIAnnotationTerms.LineItem),aj(e,n,i,m,r,S)}else(l=v.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?aj(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},lj(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(f=v.$ref)!=null&&f.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Ya.UIAnnotationTerms.FieldGroup}::`))?EJ(e,n,i,m,r):(d=v.$ref)!=null&&d.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&PJ(e,v,i,m,r,a)}}o(lj,"fillSectionsInConfig");function xJ(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let f=r[l];if("subSections"in f)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),f.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${Jd(l)}>`];cj(e,m,l,p,i,l)}let d=f.template;if(d){let m=zd(e,d);p.controls=m}n.sections[l]=p}}o(xJ,"fillCustomSectionsInConfig");function CJ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let f=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=f.template;if(d){let v=zd(e,d);p.controls=v}let m=f.templateEdit;if(m){let v=zd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(CJ,"fillCustomHeaderSectionsInConfig");function IJ(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let f in a.properties){let p=a.properties[f],d,m=(s=a.properties[f].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[f]=n.createInstance(ve.PageTypeV4.ObjectPage,d),Ot(t.header.sections[f],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(IJ,"fillHeaderFacets");function sj(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let f=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&Wl({actionPropertyDefinition:d,appSchema:e,factory:n,actionsInConfig:f,actionKey:p,manifest:i,routingId:r})}}}o(sj,"fillHeaderFooterActions");function OJ(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},lj(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),xJ(e,r,i,n),IJ(e.jsonSchema,i,n,e.manifest,e.routingId),CJ(e,r,i,n),sj(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),sj(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(OJ,"fillObjectPageConfig");function tv(e){if(Qt(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new qa;return OJ(e,n,i)}o(tv,"createObjectPageConfigV4");var Ke=Z(re());var GI=[],nv={};function RJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(RJ,"routesSorter");function WI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(WI,"resolveTarget");function LJ(e){let t={};e=e.concat().sort(RJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=WI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(LJ,"populateAssociations");function FJ(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(oe(t,{severity:Ke.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(FJ,"determinePageType");function NJ(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=tv(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=ev(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ml(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ml(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ju(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=ml(r,s)}}}o(NJ,"convertSettingsToConfig");function DJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");GI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");GI.push(t[t.length-1])}}o(DJ,"updateUnhandledControllers");function _J(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(_J,"setVariantManagmentAndNavigation");function VJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=ul(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(VJ,"setEntitySetEntityTypeContextPath");function wJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ke.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(wJ,"evaluateCustomPageSettings");function MJ(e,t,n,i){var p;let r=e.targets[t],a=FJ(r,i.logger,t),s={pageType:a};if(VJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),nv[t]&&nv[t].indexOf(".")!==-1){let d=nv[t].split(".");s.navigationProperty=d[d.length-1]}wJ(r,s,a),_J(r,s),DJ(r);let l=e.routes.find(d=>(d==null?void 0:d.target)&&d.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let f={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};NJ(f)}o(MJ,"getSinglePageAndConfig");function fj(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return oe(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}nv=LJ(n.routes||[]);for(let i in n.targets)MJ(n,i,t,e);return t}o(fj,"getPagesAndConfigs");function uj(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return WI(t?t.target:e.routes[0].target)}else return}o(uj,"getHome");function pj(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(pj,"getSettings");function au(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];_m(t,a.name)&&(i[r]=a)}return i}o(au,"getPages");var KI=class KI extends Ts{constructor(t){Qt();let n=new jf,i=_t(Ke.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,uj(t.manifest[Ke.ManifestSection.ui5].routing),fj(t),{...pj(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=GI}};o(KI,"V4AppProvider");var ou=KI;var dj=require("fs"),hl=require("path"),gj=Z(re()),Zd=Z(re());var mj=o((e,t,n=__dirname)=>{let i;switch(t){case Zd.SchemaType.Application:{i=`${Zd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Zd.SchemaType.FPMCustomPage:{i=`${Zd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,hl.join)(n,"schemas",e,i);if(n.endsWith((0,hl.join)("specification","packages","specification")))return(0,hl.join)(n,"dist","schemas",e,i);if(n.endsWith((0,hl.join)("src","specification")))return(0,hl.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,hl.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),kJ=o(async e=>new Promise((t,n)=>{(0,dj.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),iv=o(async(e,t)=>{try{let n=mj(e||gj.FioriElementsVersion.v4,t,__dirname);return await kJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function jJ(e,t){let n={},i=[];switch(i=[pe.SchemaType.Application],e){case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.AnalyticalListPageV4:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.FreestylePageV4:i.push(pe.SchemaType.FreestylePage),t===pe.FioriElementsVersion.v4&&i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.ListReportObjectPageV2:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage);break;case pe.TemplateType.AnalyticalListPageV2:i.push(pe.SchemaType.AnalyticalListPage,pe.SchemaType.ObjectPage);break;case pe.TemplateType.OverviewPageV2:i.push(pe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await iv(t,r)}return n}o(jJ,"getGenericSchemas");function yj(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(pe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(yj,"getAnnotationsForUi");function eg(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(eg,"getEntitySetByEntitySetName");function UJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,f=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(f==null?void 0:f.name))}}return{entityType:n,entitySet:i}}o(UJ,"resolveNavigationProperty");function ul(e,t,n,i){var l,f,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(f=r.target)==null?void 0:f.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=UJ(r,e):oe(i,{severity:pe.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:pe.MANIFESTPATH}}),n&&!a&&oe(i,{severity:pe.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(ul,"getEntityTypeEntitySetFromContextPath");function hj(e,t,n){let i=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=eg(a,e.serviceAVT);s||oe(e.logger,{severity:pe.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(pe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),f=_t(pe.SchemaType.ObjectPage);n[l.filename]=tg(e,t[f.filename])}}o(hj,"generateObjectPageSchemasV2");function $J(e,t,n){var l,f;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=au(e.manifest,pe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let d=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(f=a[p].options.settings)==null?void 0:f.contextPath,{entitySet:v,entityType:S}=ul(s,m,d,e.logger);e.entityType=S,e.entitySet=v;let b=_t(pe.SchemaType.ListReport,p),I=_t(pe.SchemaType.ListReport);e.templateType===pe.TemplateType.FreestylePageV4&&(e.templateType=ju(a[p])),n[b.filename]=Up(e,t[I.filename],a[p].name,m)}}o($J,"generateListReportSchemasV4");function BJ(e,t,n){var r;let i=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=eg(s,e.serviceAVT);let l=_t(pe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),f=_t(pe.SchemaType.ListReport);t[l.filename]=kp(e,n[f.filename])}}o(BJ,"generateAppSchemaV2LR");function HJ(e,t,n){var a,s;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let f=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=ul(r,p,f);e.entitySet=m,e.entityType=d;let v=_t(pe.SchemaType.ObjectPage,l),S=_t(pe.SchemaType.ObjectPage),b=_t(pe.SchemaType.FPMCustomPage);n[v.filename]=md(e,t[S.filename],p,t[b.filename])}}o(HJ,"generateObjectPageSchemasV4");function GJ(e,t,n,i){var a;let r={};if(i===pe.TemplateType.ListReportObjectPageV2&&n)BJ(e,r,t),hj(e,t,r);else if(i===pe.TemplateType.AnalyticalListPageV2&&n){let s=jp(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let f=s[l].entitySet;e.entitySet=eg(f,e.serviceAVT);let p=_t(pe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||f),d=_t(pe.SchemaType.AnalyticalListPage);r[p.filename]=ng(e,t[d.filename])}hj(e,t,r)}else if(i===pe.TemplateType.OverviewPageV2){let s=_t(pe.SchemaType.OverviewPage),l=_t(pe.SchemaType.OverviewPage);r[s.filename]=ig(t[l.filename],e.manifest)}return{...t,...r}}o(GJ,"generateAppSchemasV2");function WJ(e,t,n){if(!Ec(e.featureToggles,pe.Features.BuildingBlocks))return;let i=au(e.manifest,pe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let f=_t(pe.SchemaType.FPMCustomPage,void 0,l),p=_t(pe.SchemaType.FPMCustomPage);n[f.filename]=fl(t[p.filename],s,e.serviceAVT,e.logger)}}}o(WJ,"generateCustomPageSchemasV4");function KJ(e,t,n){let i={};return n&&($J(e,t,i),HJ(e,t,i),WJ(e,t,i)),{...t,...i}}o(KJ,"generateAppSchemasV4");async function Tj(e,t,n){let i=await jJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===pe.FioriElementsVersion.v4?KJ(e,i,t):GJ(e,i,t,n)}o(Tj,"generateAppSchemas");function XJ(e){let t,n=[];switch(e.templateType){case pe.TemplateType.ListReportObjectPageV2:case pe.TemplateType.AnalyticalListPageV2:t=new Cy(e);break;case pe.TemplateType.AnalyticalListPageV4:case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.FreestylePageV4:t=new ou(e);break;case pe.TemplateType.OverviewPageV2:t=new Oy(e);break;default:t=new ou(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(XJ,"importConfigs");function vj(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===pe.SchemaType.Application?r=`${pe.DirName.Schemas}/${pe.FileName.App[0].toUpperCase()}${pe.FileName.App.slice(1)}`:r=`${pe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(vj,"getFileList");async function XI(e){var b,I;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Wu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let f=yS(t),p=Gr(n,i),d=yj(p),m=Ac(t,f,i),S=await Tj({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:f,logger:i,featureToggles:s},d,m);return vj(S)}o(XI,"importProjectSchema");async function QI(e){var W,U;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Wu().doesUi5VersionFitDistTags((U=(W=t["sap.ui5"])==null?void 0:W.dependencies)==null?void 0:U.minUI5Version,i);let p=yS(t),d=Q0(t),m=Gr(n,i),v=Ac(t,p,i),S={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=yj(m),I=await Tj(S,b,v),j=XJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:d});return vj(I,j)}o(QI,"importProjectSchemaAndConfig");var QJ=["header","sections","footer"];function qJ(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(ht(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}o(qJ,"addFlexChangeForSection");function YJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Fo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:f}=th(a,r.serviceAVT);if(!l)return;let p=a.Label||s,d=`ObjectPageHeaderAction<${at(l)}>`;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Fo.UIAnnotationTerms.Identification}`,`/@${Fo.UIAnnotationTerms.Identification}`);t.definitions[d][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[d][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[d].description=p,t.definitions[d][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],f&&(t.definitions[d][ae.SchemaTag.target]=f),i.properties[l]={$ref:`${$}${d}`}}})}o(YJ,"addHeaderActionCallBackV2");function zJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Fo.UIAnnotationTypes.DataFieldForAction){let a=Kr(r).split("::").splice(1).join("::"),s=ci(r,e),l=at(`${ae.DefinitionName.ObjectPageFooterAction}<${a}>`),f=r.fullyQualifiedName.replace(`@${Fo.UIAnnotationTerms.Identification}`,`/@${Fo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${f}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(zJ,"addFooterActionCallBackV2");function JJ(e,t,n,i,r,a,s,l){let f,p;if(a.ID&&a.Label?f=a.ID+a.Label.replace(/\s+/g,""):a.ID?f=a.ID:a.Label&&(f=a.Label.replace(/\s+/g,"")),f?p=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${f}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${ae.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),S=zc(t[ae.ManifestSection.generic].pages,n,m);return Xl(e,v,S,t,l,p,d,a.ID),p}o(JJ,"ensureCustomColumnDefinitionExists");function og(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&qJ(e,t,"visible",n)}o(og,"addAppSchemaDefinition");function ZJ(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(ZJ,"addSectionReference");function rg(e,t,n,i){let r=at(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FACETTITLEPREFIX+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,ms(n.entityType,i,`QuickVariant<${t}>`)}o(rg,"addTableDefinition");function eZ(e,t,n,i,r,a){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jo(n,i,t);let f=n.definitions[l];og(n,f,a,"ObjectPageSectionTableV2"),f.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),f.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],f[ae.SchemaTag.annotationPath]=i.annotationPath,Sa(i,f,t),fs(i,f,t),rg("ObjectPageResponsiveTableWithMultiSelect",t,i,n),rg("ObjectPageResponsiveTableWithInlineDelete",t,i,n),rg("ObjectPageGridTable",t,i,n),rg("ObjectPageTreeTable",t,i,n),rg("ObjectPageAnalyticalTable",t,i,n);let p,d=U_(i.entityType,e.serviceAVT);d&&(p=JJ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&Kl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(eZ,"handleLineItem");function tZ(e,t,n,i,r,a=!1){e.definitions[t]=jo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";og(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}o(tZ,"handleSubSection");function nZ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];og(e,a,r,"ObjectPageSectionChartV2")}o(nZ,"handleSectionChart");function bj(e,t,n,i,r,a){e.definitions[t]=jo(e,n,i);let s=e.definitions[t];og(e,s,r,a||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=_c(n==null?void 0:n.target)}o(bj,"handleHeaderFacet");function iZ(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=_c(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(iZ,"addDataPointHeaderFacetDataType");function rZ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];return og(e,a,r,"ObjectPageSectionFormV2"),a[ae.SchemaTag.annotationPath]=n.annotationPath,a[ae.SchemaTag.isViewNode]=!0,a}o(rZ,"handleFormSection");function oZ(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(oZ,"getSectionType");function aZ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Fo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(aZ,"getReferenceKey");function Aj(e,t,n,i,r,a=!1,s=!1){let l=t[n],f=oZ(l.base,a,s),p=aZ(l,n,f),d=`${f}<${p}>`;switch(ZJ(i,p,d),f){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,tZ(r,d,l,n,f,s);let m=r.definitions[d].properties.subsections;for(let v in l.facets)Aj(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{eZ(e,p,r,l,t,f),Yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{nZ(r,d,l,p,f);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=rZ(r,d,l,p,f);eh(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Gu(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Gu(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{bj(r,d,l,p,f);break}case"ObjectPageHeaderSectionDataPoint":{bj(r,d,l,p,f),iZ(r,d,l);break}default:i.properties[n]=jo(r,l,p)}}o(Aj,"addSection");function Sj(e,t,n,i,r,a=!1){if(e)for(let s in t)Aj(i,t,s,n,r,!1,a)}o(Sj,"addSectionsFromFacets");function Ej(e,t,n){var d,m,v,S,b,I;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(d=e.entitySet)!=null&&d.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fo.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Om((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=Im((S=e.entitySet)==null?void 0:S.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,f=s&&!!Object.keys(s).length;if(!l&&!f)return;for(let F in n){let j=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(Sj(l,a,i,e,t),Sj(f,s,r,e,t,!0)):Ej(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Ej,"addSections");function sZ(e,t,n){rh(e,n),ih(e,n,t,YJ,void 0,!0)}o(sZ,"addHeader");function cZ(e,t,n,i){let r=Y0(t,n,i,void 0,!0);r&&W_(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(cZ,"addRelatedFacetKeysType");function tg(e,t){var s;Qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[ae.ManifestSection.generic].pages;return a?(sZ(n,e,r),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Ej(e,n,a),cZ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),nh(n,e,ae.FioriElementsVersion.v2,zJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,$o(n,QJ),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}o(tg,"generateObjectPageSchemaV2");var nn=Z(re());var lZ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function fZ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(Ms(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:nn.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let f=(l==null?void 0:l.Visualizations)||[],p="",d="";f.some(function(I){return p=p||Bu("LineItem",I),d=d||Bu("Chart",I),p&&d}),p=p||"LineItem",d=d||"Chart";let m=t[p],v=t[d],S=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(S>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][S-1],F=Q.t(I);oe(n,{severity:nn.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(fZ,"getLineItemAndChartAnnotation");function uZ(e,t){let n=e.definitions[nn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[nn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(uZ,"addChart");function ng(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[nn.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[nn.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[nn.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${nn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${nn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,D_(n.definitions.TableColumnExtensionTypeV2.enum,[nn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=ql(e);if(s){Ql(n);let l=[],f=hf(e.manifest[nn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:d}=fZ(f,s,e.logger);p&&I_.forEach(v=>{n.definitions[v][nn.SchemaTag.annotationPath]=Sr(a.fullyQualifiedName,p.term,p.qualifier)}),Kl(!1,n,p,a),d&&uZ(n,d);let m=s.SelectionFields;if(zm(n,m,a),Yl(n,a),!f)return oe(e.logger,{severity:nn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}}),n;Xl(n,a,f,e.manifest,e.fragments),dP(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return $o(n,lZ),n}o(ng,"generateAnalyticalListReportSchemaV2");var Pj=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function pZ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(pZ,"getCardDefinitionNames");function dZ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(f=>i.includes(r[f].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Ca(a,s.CardModel);let l=pZ(e);for(let f of l){let p=s[f].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(dZ,"addModelsEnum");function gZ(e,t){let n=e.properties;for(let i in Pj){let r=Pj[i],a=r.key;n[a]&&(n[a].messages=[{text:Hl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(gZ,"markDeprecatedProperties");function xj(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},gZ(n,t),dZ(n,t),n}o(xj,"generateOverviewPageSchemaV2");var ac=Z(re());function qI(e,t,n,i,r,a){Qt();let s=Gr(e,t),l={templateType:a,fioriElementsVersion:ac.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=eg(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:ac.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(qI,"prepareGenerationV2");function YI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.ListReportObjectPageV2);return tg(s,e)}o(YI,"generateObjectPageInterfaceV2");function zI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.ListReportObjectPageV2);return kp(s,e)}o(zI,"generateListReportInterfaceV2");function JI(e,t,n,i,r,a){let s=qI(n,a,i,r,t,ac.TemplateType.AnalyticalListPageV2);return ng(s,e)}o(JI,"generateAnalyticalListPageInterfaceV2");function ig(e,t){return xj(e,t)}o(ig,"generateOVPInterfaceV2");var su=Z(re()),Ij=require("@sap-ux/vocabularies-types/vocabularies/UI");function Cj(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Cj,"updateDependencyLib");function rv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(rv,"extractLastIdPart");function Oj(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:su.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(su.PropertyName.sections),s=a>-1?rv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Ij.UIAnnotationTerms.LineItem}`,f=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...f&&{eventHandler:f}},d={customExtension:su.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return ZI(d),!0}o(Oj,"createNewCustomColumn");var za=Z(re());var Lj=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Rj=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function mZ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(mZ,"initializeRouting");function hZ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(hZ,"setTargetOptions");function yZ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==za.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(yZ,"calculateQueryPattern");function Fj(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(f=>n[s].navigation[f].route===i);l&&(t=l,a=n[s])}if(a){Fj(e,t,n,s);return}}}o(Fj,"fillNavigationParts");function TZ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(TZ,"fillParentKeys");function vZ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(hZ(n,a,s),s!=null&&s.route&&!i.routes.some(f=>f.name===s.route)){let f=l==null?void 0:l.routePattern;if(!f){let p=[];Fj(p,a,t,r,l==null?void 0:l.contextPath);let d=TZ(e.routePattern);f=yZ(p,l,d)}i.routes.push(Lj(f,s.route,s.route))}}}o(vZ,"handlePageNavigation");function bZ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(bZ,"removeDeletedPages");function SZ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Rj({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Rj({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(SZ,"transferEntitySetandContextPath");function AZ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(AZ,"updateRouteLayout");function EZ(e,t,n){var i;return e.pageType&&![za.PageTypeV4.CustomPage,za.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==za.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||za.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(EZ,"fillTarget");function Nj(e,t,n){var r,a;let i=mZ(n[za.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Lj(":?query:",e,e));for(let s in t){let l,f=t[s];i.targets[s]&&(l=i.targets[s]),l=EZ(f,l,s),SZ(f,l),l&&!f.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),vZ(f,t,l,i,s),AZ(i,s,f),i.targets[s]=l}return bZ(i,t),i}o(Nj,"transformRoutingV4");var Li=Z(re());var Dj=[Li.FlexibleColumnLayoutAggregations.BeginColumnPages,Li.FlexibleColumnLayoutAggregations.MidColumnPages,Li.FlexibleColumnLayoutAggregations.EndColumnPages],_j=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(d=>d.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Dj[r]?s.controlAggregation=Dj[r]:s.controlAggregation=Li.FlexibleColumnLayoutAggregations.EndColumnPages;let f=a.pattern.replace(":?query:","");if(f?s.contextPattern=f.startsWith("/")?f:`/${f}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)_j(e,t,l.navigation[d].route,a.target,r)}},"applyFCLRouting"),PZ=o((e,t)=>{e.routing.config.routerClass=Li.v4.FIORI_FCL_ROUTER_CLASS,_j(e,t,t.home);let n={viewName:Li.FIORI_FCL_ROOT_VIEW_NAME,type:Li.ViewTypes.XML,async:!0,id:Li.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Cj(e,Li.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),xZ=o(e=>{var t;e.rootView&&e.rootView.viewName===Li.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Li.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),Vj=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?PZ(e,t):xZ(e)},"updateFcl");var ie=Z(re()),ag=require("@sap-ux/vocabularies-types/vocabularies/UI");var wj=Z(Sc()),ov=Z(re());function CZ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(CZ,"isExportValueEquals");function IZ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===ov.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(IZ,"deleteProperty");function Mj(e,t,n,i){var f,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let d={name:i,type:"element"};return s.elements.push(d),ll({fullSchema:a,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},Mj)}else CZ((f=s.attributes)==null?void 0:f[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(IZ(e,i),l=!0);return l}o(Mj,"exportProperty");function av(e,t,n,i,r,a){let s=Mf(e.file,!1,a);if(s){let l=bT(s);if(ll({fullSchema:i,schema:i,element:l,contextPath:[],config:n},Mj)){let p=(0,wj.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:ov.ChangeIndicator.Updated};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}o(av,"getExtensionExportResult");var kj=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},f;return r&&Object.keys(r).length>0&&(f=Bo(n||[],a.name,i,s)),f&&av(f,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),jj=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:f}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=Rc(f,s[0]);p=Lc(a,m,f,d,t)}if(p){let m=kf(t),S={...i.definitions[m],definitions:i.definitions};av(p,r,n,S,d,l)}},"exportXMLFragmentConfig");var Uj=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],OZ=[...Uj,"views","initialLoad","template"],sv=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function RZ(e,t,n){var s,l,f,p;let i=`@${ag.UIAnnotationTerms.LineItem}`,r=`@${ag.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(f=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:f[ie.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let d=a.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(RZ,"determineTargetAnnotationOfTable");function LZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(LZ,"determineTargetAnnotationOfChart");function FZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],f=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${f}`:f}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(FZ,"determineTargetAnnotationBasedOnParentView");function NZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=FZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let f=l[ie.SchemaTag.annotationPath].split("/");return n=i=f[f.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(NZ,"determineTargetAnnotationOfView");function DZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(DZ,"determineTargetAnnotationOfHeaderSections");function _Z(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=rv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(_Z,"determineTargetAnnotationOfSections");function VZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=RZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=LZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=_Z(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=DZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=NZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(VZ,"determineTargetAnnotation");function wZ(e){return e.includes(IS)}o(wZ,"isGroupingElement");function MZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||wZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(MZ,"determineKeyForSyncRule");function kZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(kZ,"createNewObjectInManifest");function $j(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(kZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o($j,"transferPropertyToManifest");function jZ(e,t,n,i,r,a,s){var p,d,m;let l=!1,f=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((d=n.config.table)!=null&&d.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&Uj.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(f!=null&&f.annotationPath)&&!f.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&OZ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return us(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(jZ,"deleteFromManifest");function UZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:f,custom:p}=VZ(e,n.transferParameters,n.configObject),d=MZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,d,f,n.configObject,a),v=m?ko(n.transferParameters.exportResults.manifest,m,f,p?void 0:l):void 0;if(v){let S={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:d};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&jl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=jZ(e,S,n.transferParameters,v,m,f,l):r=$j(S,n.propertyDefinition,i)}return r}o(UZ,"exportManifestChange");function $Z(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);jj(e.transferParameters,r,n.configObject)}else i.manifest&&UZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o($Z,"evaluateExportRule");function BZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,tO(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(BZ,"transferSubObject");function HZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=dt(e.pageNameArray)+"/views",a=ko(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(HZ,"createALPTableView");function GZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=dt(e.transferParameters.pageNameArray)+"/views",r=ko(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||ag.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(GZ,"createALPChartView");function WZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=dt(e.pageNameArray),r=ko(e.exportResults.manifest,i),a=`@${ag.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let f=t[l];s[l]={};for(let p in f)p==="visualFilterValueList"?s[l].visualFilter={valueList:f[p]}:s[l][p]=f[p]})}return n}o(WZ,"createVisualFilters");function KZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=dt(t.pageNameArray)+"/views",s=ko(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let f=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(f===-1)s.paths.push(l),r=!0;else if(f!==i.index){let p=JSON.parse(JSON.stringify(s.paths[f]));s.paths.splice(f,1),s.paths.splice(e,0,p),r=!0}}return r}o(KZ,"createLRTableView");function XZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Oj(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return GZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return HZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=KZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=WZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(XZ,"createNewElement");function QZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(QZ,"isDefinitionTraversable");function eO(e,t,n,i=!1){var d;let r=e.configObject[e.key],a=wm(e.configObject,e.key),s=Uo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:f}=XZ(e,(d=e.propertyDefinition.$ref)==null?void 0:d.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||$Z(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||QZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!f){let m=a?[...n,a]:n;BZ(e,s,r,p,m)}}o(eO,"transferSortedListEntry");function qZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,f)=>l[1]&&l[1].index-f[1].index),s.forEach(l=>{var f;(f=n.properties)!=null&&f[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],eO(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,eO(e,i,r),a=!0)}),e.index++})}return a}o(qZ,"transferConfigEntriesWithAnyOfDefinitions");function YZ(e,t,n,i){let r=TS(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(YZ,"mergeEntriesForInsert");function zZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(zZ,"sortProperties");function JZ(e,t,n,i,r,a){var l,f;let s=!1;if(e){let p=e.anyOf;if(!p){let d=(l=e.$ref)==null?void 0:l.split($)[1];p=d?(f=t.appSchema.definitions[d])==null?void 0:f.anyOf:void 0}s=qZ(n,p,i,r,a)}return s}o(JZ,"checkIfAnyOfDefinition");function tO(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},f=a.additionalProperties,p=JZ(f,e,l,a,n,i),d=zZ(a.properties);f!=null&&f.$ref&&YZ(e,f,d,t),s=0,d&&d.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!jl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,eO(l,n,i,p),m[1].$ref&&s++)})}o(tO,"transferManifestEntriesAndFlexChange");function Bj(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(Bj,"getClassesForSingleSection");function Hj(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Bj(n,i,t),Hj(n,t)}}o(Hj,"getSubsectionClasses");function ZZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Bj(e,r,n),Hj(i,n)}o(ZZ,"getExportClassesForSections");function Gj(e,t){let n=Mm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(Gj,"calculateBaseId");var Wj=o((e,t,n=!1)=>{var l;let i=sv(e.manifest),r=new qa,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&ZZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:Gj(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return tO(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),eee=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=sv(e.manifest),f=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,d=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;f.definitions[ie.DefinitionName.TableSPV]&&(m=f.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let v=f.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=d.toolBar)!=null&&I.actions&&v)for(let F in v.properties)d.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,d.toolBar.actions[F]);let S={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:Gj(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return tO(S,n,[],[],[],f),l},"exportListPage"),nO=o((e,t,n,i=!1)=>{let r=new qa,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return eee(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),Kj=o((e,t,n=!1)=>nO(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),tee=o((e,t,n,i,r,a)=>{let s=ko(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=dS());let f={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];$j(f,p,{}),!l&&Object.keys(s).length&&X0(r,t,s)},"applyExportRule"),nee=o((e,t,n)=>{var a;let i=sv(t),r=Object.assign(new xT,e);r.settings=Object.assign(new jf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let f=l.manifest.path();if(l.manifest.export)tee(l,f,s,e,i.manifest,n);else{let p=ko(i.manifest,f);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],us(i.manifest,f,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Nj(e.home,e.pages,i.manifest),Vj(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),Xj=o((e,t)=>{if(e[ie.SchemaType.ListReport])return nO(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return Wj(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return nee(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return Kj(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return kj(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),iee=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=sv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&av(l,s,i.config,t,"view",a),s},"exportCustomPage"),iO=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return nO(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return Wj(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return Kj(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return iee(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var $t=require("@sap-ux/fe-fpm-writer");var ree=new Map([[ge.CustomExtensionType.CustomPage,$t.generateCustomPage],[ge.CustomExtensionType.CustomColumn,$t.generateCustomColumn],[ge.CustomExtensionType.CustomSection,$t.generateCustomSection],[ge.CustomExtensionType.ObjectPage,$t.generateObjectPage],[ge.CustomExtensionType.ListReport,$t.generateListReport],[ge.CustomExtensionType.CustomAction,$t.generateCustomAction],[ge.CustomExtensionType.CustomView,$t.generateCustomView],[ge.CustomExtensionType.ControllerExtension,$t.generateControllerExtension],[ge.CustomExtensionType.CustomSubSection,$t.generateCustomSubSection],[ge.CustomExtensionType.CustomFilterField,$t.generateCustomFilter],[ge.CustomExtensionType.CustomHeaderSection,$t.generateCustomHeaderSection]]),oee={api:$t.PromptsAPI,types:$t.PromptsType};function aee(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.ListReport];t=zI(i,r,a,s,l,f)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.ObjectPage];t=YI(i,r,a,s,l,f)}else if(n[ge.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[ge.SchemaType.OverviewPage];t=ig(i,r)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[ge.SchemaType.AnalyticalListPage];t=JI(i,r,a,s,l,f)}}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[ge.SchemaType.ListReport];t=PT(ge.TemplateType.ListReportObjectPageV4,i,r,a,s,l,f)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:f,contextPath:p,genericMacrosSchema:d}=n[ge.SchemaType.ObjectPage];t=Fx(i,r,a,s,l,f,p,d,e.featureToggles)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[ge.SchemaType.AnalyticalListPage];t=PT(ge.TemplateType.AnalyticalListPageV4,i,r,a,s,l,f)}else if(n[ge.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[ge.SchemaType.FreestylePage];t=Nx(ge.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[ge.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:f}=n[ge.SchemaType.FPMCustomPage];t=Dx(i,r,a,s,f,e.featureToggles,l)}}return t}o(aee,"generateSchema");function see(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=f1(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=Xj(i,n)}return t}o(see,"exportConfig");function cee(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=mP(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=iO(i,n)}return t}o(cee,"exportConfigEntityByPath");function lee(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=mP(i,n,!0)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=iO(i,n,!0)}return t}o(lee,"deleteConfigEntityByPath");function fee(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];n[ge.SchemaType.ListReport]?t=xy(n[ge.SchemaType.ListReport]):n[ge.SchemaType.ObjectPage]?t=hy(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.OverviewPage]?t=yy(n[ge.SchemaType.OverviewPage]):n[ge.SchemaType.AnalyticalListPage]&&(t=Ty(n[ge.SchemaType.AnalyticalListPage]))}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];n[ge.SchemaType.ListReport]?t=ml(n[ge.SchemaType.ListReport],ge.SchemaType.ListReport):n[ge.SchemaType.ObjectPage]?t=tv(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.AnalyticalListPage]?t=ml(n[ge.SchemaType.AnalyticalListPage],ge.SchemaType.AnalyticalListPage):n[ge.SchemaType.FPMCustomPage]&&(t=ev(n[ge.SchemaType.FPMCustomPage]))}return t}o(fee,"importConfig");async function uee(e){return QI(e)}o(uee,"importProject");async function pee(e){return XI(e)}o(pee,"importProjectSchema");function dee(){return{version:"23",fpmWriter:"33",moduleVersion:Y_.version}}o(dee,"getApiVersion");function ZI(e){let t=ree.get(e.customExtension);if(t&&typeof t=="function")return(0,$t.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(ZI,"generateCustomExtension");var lo=require("path"),sc=require("fs");var cu=o(async e=>new Promise((t,n)=>{(0,sc.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),gee=o(async e=>JSON.parse(await cu(e)),"readJSON"),rO=o(async e=>new Promise((t,n)=>{(0,sc.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),mee=o(async e=>new Promise(t=>{(0,sc.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),qj=o(async e=>new Promise(t=>{(0,sc.exists)(e,n=>{t(n)})}),"resourceExists"),hee=o(async e=>gee((0,lo.join)(e,"manifest.json")),"getManifest"),Yj=o(async e=>{let t=[],n=(0,lo.join)(e,"changes");if(!await qj(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await rO(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await cu((0,lo.join)(n,a)));return t},"getChanges"),Qj=o(async(e,t="fragments")=>{let n=[],i=(0,lo.join)(e,"ext",t);if(!await qj(i))return n;let r=await rO(i);for(let a of r){let s=(0,lo.join)(i,a),l=await cu(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),yee=o(async(e,t)=>{var r,a,s,l,f,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,lo.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await cu(v)})}if((f=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&f.annotations){for(let v of i.mainService.settings.annotations)if((d=(p=i[v])==null?void 0:p.settings)!=null&&d.localUri){let S=(0,lo.join)(t,i[v].settings.localUri);n.push({dataSourceUri:S,fileContent:await cu(S)})}}if(n.length===0)for(let v in i){let S=i[v];if((S==null?void 0:S.type)==="ODataAnnotation"&&((m=S==null?void 0:S.settings)!=null&&m.localUri)){let b=(0,lo.join)(t,S.settings.localUri);n.push({dataSourceUri:b,fileContent:await cu(b)})}}return n},"getAnnotations"),Tee=o(async e=>{let t=(0,lo.basename)(e),n=(0,lo.join)(e,"webapp"),i=await hee(n),r=await yee(i,n),a=await Yj(n),s=await Qj(n),l=await Qj(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");bc(Vi,Z(re()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: