@sap/ux-specification 1.84.124 → 1.84.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var EA=Object.create;var ea=Object.defineProperty;var Mm=Object.getOwnPropertyDescriptor;var xA=Object.getOwnPropertyNames;var IA=Object.getPrototypeOf,OA=Object.prototype.hasOwnProperty;var r=(e,t)=>ea(e,"name",{value:t,configurable:!0});var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ta=(e,t)=>{for(var n in t)ea(e,n,{get:t[n],enumerable:!0})},$s=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xA(t))!OA.call(e,o)&&o!==n&&ea(e,o,{get:()=>t[o],enumerable:!(i=Mm(t,o))||i.enumerable});return e},so=(e,t,n)=>($s(e,t,"default"),n&&$s(n,t,"default")),w=(e,t,n)=>(n=e!=null?EA(IA(e)):{},$s(t||!e||!e.__esModule?ea(n,"default",{value:e,enumerable:!0}):n,e)),FA=e=>$s(ea({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?Mm(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&ea(t,n,o),o};var uh=we((CR,fh)=>{var Mp=Object.defineProperty,VA=Object.getOwnPropertyDescriptor,LA=Object.getOwnPropertyNames,NA=Object.prototype.hasOwnProperty,Up=r((e,t)=>{for(var n in t)Mp(e,n,{get:t[n],enumerable:!0})},"f"),DA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LA(t))!NA.call(e,o)&&o!==n&&Mp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=VA(t,o))||i.enumerable});return e},"ze"),RA=r(e=>DA(Mp({},"__esModule",{value:!0}),e),"Je"),Um={};Up(Um,{ACTIONTITLEPREFIX:r(()=>MA,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>Qm,"ALPViewType"),ActionType:r(()=>Jm,"ActionType"),ArtifactType:r(()=>Xm,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>kA,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>ey,"ChangeIndicator"),ChartColor:r(()=>yy,"ChartColor"),CloudDevAdaptationStatus:r(()=>fy,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>gy,"ColorPaletteDefinitionType"),ControlType:r(()=>qm,"ControlType"),DATESETTINGSPATH:r(()=>JA,"DATESETTINGSPATH"),DataSourceType:r(()=>uy,"DataSourceType"),DefinitionName:r(()=>iy,"DefinitionName"),DirName:r(()=>Ym,"DirName"),DraftDiscardEnabledSettings:r(()=>sy,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Wm,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>$A,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>ZA,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>YA,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>qA,"FRAGMENTNAMEPART"),FacetBase:r(()=>ty,"FacetBase"),Features:r(()=>Sy,"Features"),FileName:r(()=>Zm,"FileName"),FioriElementsVersion:r(()=>km,"FioriElementsVersion"),FlexChangeLayer:r(()=>Hm,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>py,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Bm,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>zA,"GENERICAPPSETTINGS"),LogSeverity:r(()=>hy,"LogSeverity"),MANIFESTPATH:r(()=>_A,"MANIFESTPATH"),ManifestSection:r(()=>dy,"ManifestSection"),OdataVersion:r(()=>_m,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>wA,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>jA,"PageType"),PageTypeV2:r(()=>kp,"PageTypeV2"),PageTypeV4:r(()=>_p,"PageTypeV4"),PropertyMessageType:r(()=>by,"PropertyMessageType"),PropertyName:r(()=>oy,"PropertyName"),QUICKVARPATH:r(()=>KA,"QUICKVARPATH"),QUICKVARPATHX:r(()=>XA,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>tC,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>eC,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>ry,"SchemaKeyName"),SchemaTag:r(()=>ay,"SchemaTag"),SchemaType:r(()=>Gm,"SchemaType"),SectionType:r(()=>Km,"SectionType"),StatePreservationMode:r(()=>ly,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>cy,"TableColumnVerticalAlignment"),TemplateType:r(()=>Ty,"TemplateType"),UIVOCABULARY:r(()=>GA,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>QA,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>WA,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>HA,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>BA,"VOCWITHSLASH"),ViewTemplateType:r(()=>ny,"ViewTemplateType"),ViewTypes:r(()=>my,"ViewTypes"),Visualization:r(()=>zm,"Visualization"),defaultExportResult:r(()=>UA,"defaultExportResult"),logSeverityLabel:r(()=>nC,"logSeverityLabel"),v2:r(()=>vy,"v2"),v4:r(()=>Xy,"v4")});fh.exports=RA(Um);var kp=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(kp||{}),_p=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(_p||{}),jA={...kp,..._p},wA=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"]]),km=(e=>(e.v2="v2",e.v4="v4",e))(km||{}),_m=(e=>(e.v2="v2",e.v4="v4",e))(_m||{}),Bm=(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))(Bm||{}),Hm=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Hm||{}),Gm=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Gm||{}),Wm=(e=>(e.flex="flex",e.manifest="manifest",e))(Wm||{}),Qm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Qm||{}),Km=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Km||{}),Xm=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Xm||{}),Jm=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Jm||{}),qm=(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))(qm||{}),zm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(zm||{}),Ym=(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))(Ym||{}),Zm=(e=>(e.App="app.json",e))(Zm||{}),$A="Facet ID: ",MA="Action ID: ",ey=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(ey||{}),UA={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},ty=(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))(ty||{}),kA="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",ny=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(ny||{}),iy=(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.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.FormCustomActionOP="FormCustomActionOP",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.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.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",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.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewTableColumnAction="ViewTableColumnAction",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.SaveAndEdit="SaveAndEdit",e))(iy||{}),oy=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(oy||{}),ay=(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))(ay||{}),ry=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(ry||{}),_A="webapp/manifest.json",BA="/@com.sap.vocabularies",HA="::@com.sap.vocabularies",GA="com.sap.vocabularies.UI.v1",WA="com.sap.vocabularies.UI.v1.",QA="@com.sap.vocabularies.UI.v1.",KA="/quickVariantSelection",XA="/quickVariantSelectionX",JA="/filterSettings/dateSettings",qA=".fragment.",sy=(e=>(e.restricted="restricted",e))(sy||{}),cy=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(cy||{}),ly=(e=>(e.persistence="persistence",e.discovery="discovery",e))(ly||{}),py=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(py||{}),fy=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(fy||{}),uy=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(uy||{}),dy=(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))(dy||{}),zA="sap.ui.generic.app/settings",gy=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(gy||{}),YA="sap.fe.templates.RootContainer.view.Fcl",ZA="appRootView",my=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(my||{}),eC="sap.ui.core.mvc.View",tC="sap.ui.core.Fragment",yy=(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))(yy||{}),hy=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(hy||{}),nC={error:"Error",warning:"Warning",info:"Information"},by=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(by||{}),Ty=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Ty||{}),Sy=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Sy||{}),vy={};Up(vy,{AvatarShape:r(()=>Hy,"AvatarShape"),ButtonType:r(()=>Py,"ButtonType"),CardSettingsType:r(()=>Ey,"CardSettingsType"),CardTemplateType:r(()=>Cy,"CardTemplateType"),ChartCardType:r(()=>Ay,"ChartCardType"),ChartType:r(()=>By,"ChartType"),ContainerLayoutType:r(()=>Ky,"ContainerLayoutType"),CreateMode:r(()=>Qy,"CreateMode"),DateRangeType:r(()=>Ly,"DateRangeType"),DefaultContentView:r(()=>Uy,"DefaultContentView"),DefaultFilterMode:r(()=>ky,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Wy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>aC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>cC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>sC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>rC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Ny,"FilterPathType"),HAlign:r(()=>Dy,"HAlign"),LinkListFlavorType:r(()=>Vy,"LinkListFlavorType"),ListFlavorType:r(()=>Iy,"ListFlavorType"),ListTypeType:r(()=>Oy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>_y,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>xy,"MeasureAggregateValues"),PopinLayout:r(()=>$y,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>pC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>lC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>dC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>uC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>fC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Gy,"SectionPosition"),SortOrderType:r(()=>Fy,"SortOrderType"),Strategy:r(()=>My,"Strategy"),TableColumnExtensionTypeV2:r(()=>wy,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>jy,"TableTypeV2"),cardTemplateSettingsMap:r(()=>oC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>iC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Ry,"customColumnViewTypes")});var Py=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Py||{}),Ay=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Ay||{}),Cy=(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.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(Cy||{}),iC={"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.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},oC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Ey=(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))(Ey||{}),xy=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(xy||{}),Iy=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Iy||{}),Oy=(e=>(e.extended="extended",e.condensed="condensed",e))(Oy||{}),Fy=(e=>(e.ascending="ascending",e.descending="descending",e))(Fy||{}),Vy=(e=>(e.standard="standard",e.carousel="carousel",e))(Vy||{}),Ly=(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))(Ly||{}),Ny=(e=>(e.key="key",e.catgory="category",e))(Ny||{}),Dy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Dy||{}),Ry=(e=>(e.XML="XML",e))(Ry||{}),jy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(jy||{}),wy=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(wy||{}),$y=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))($y||{}),My=(e=>(e.extension="extension",e))(My||{}),Uy=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Uy||{}),ky=(e=>(e.visual="visual",e.compact="compact",e))(ky||{}),_y=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(_y||{}),By=(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))(By||{}),Hy=(e=>(e.Circle="Circle",e.Square="Square",e))(Hy||{}),Gy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Gy||{}),Wy=(e=>(e.XML="XML",e))(Wy||{}),Qy=(e=>(e.inline="inline",e))(Qy||{}),aC="sap.suite.ui.generic.template",rC="sap.suite.ui.generic.template.ObjectPage",sC="sap.suite.ui.generic.template.ListReport",cC="sap.suite.ui.generic.template.AnalyticalListPage",lC="sap.ui.viewExtensions",pC="sap.ui.controllerExtensions",fC="sap.suite.ui.generic.template.ObjectPage.view.Details",uC="sap.suite.ui.generic.template.ListReport.view.ListReport",dC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ky=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ky||{}),Xy={};Up(Xy,{Availability:r(()=>sh,"Availability"),CustomSectionViewTypesV4:r(()=>ih,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Yy,"DefaultPathType"),DesigntimeValues:r(()=>eh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>gC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>bC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>mC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>hC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>yC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>SC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>ch,"HorizontalAlign"),InitialLoadType:r(()=>zy,"InitialLoadType"),Placement:r(()=>rh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>vC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>TC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>th,"SectionLayoutType"),SectionPosition:r(()=>nh,"SectionPosition"),SectionPositionV4:r(()=>ah,"SectionPositionV4"),SelectType:r(()=>Zy,"SelectType"),SelectionMode:r(()=>Jy,"SelectionMode"),TableCreationModeType:r(()=>oh,"TableCreationModeType"),TableTypeV4:r(()=>qy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>ph,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>lh,"VariantManagementTypeObjectPage")});var Jy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Jy||{}),qy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(qy||{}),zy=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(zy||{}),Yy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Yy||{}),Zy=(e=>(e.single="single",e.multi="multi",e))(Zy||{}),eh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(eh||{}),th=(e=>(e.Tabs="Tabs",e.Page="Page",e))(th||{}),nh=(e=>(e.After="After",e.Before="Before",e))(nh||{}),ih=(e=>(e.XML="XML",e))(ih||{}),oh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(oh||{}),gC="sap.fe",mC="sap.fe.core.fpm",yC="sap.fe.templates.ObjectPage",hC="sap.fe.templates.ListReport",bC="sap.fe.templates.AnalyticalListPage",TC="XMLFragment",ah=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ah||{}),SC="sap.f.routing.Router",vC="sap.f",rh=(e=>(e.After="After",e.Before="Before",e))(rh||{}),sh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(sh||{}),ch=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(ch||{}),lh=(e=>(e.None="None",e.Control="Control",e))(lh||{}),ph=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ph||{})});var hh=we(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.Features=ln.TemplateType=ln.PropertyMessageType=ln.logSeverityLabel=ln.LogSeverity=void 0;var dh;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(dh||(ln.LogSeverity=dh={}));ln.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var gh;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(gh||(ln.PropertyMessageType=gh={}));var mh;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(mh||(ln.TemplateType=mh={}));var yh;(function(e){e.BuildingBlocks="BuildingBlocks"})(yh||(ln.Features=yh={}))});var Qh=we((IR,Wh)=>{var Bp=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,AC=Object.getOwnPropertyNames,CC=Object.prototype.hasOwnProperty,EC=r((e,t)=>{for(var n in t)Bp(e,n,{get:t[n],enumerable:!0})},"G"),xC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AC(t))!CC.call(e,o)&&o!==n&&Bp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=PC(t,o))||i.enumerable});return e},"X"),IC=r(e=>xC(Bp({},"__esModule",{value:!0}),e),"H"),bh={};EC(bh,{AvatarShape:r(()=>kh,"AvatarShape"),ButtonType:r(()=>Th,"ButtonType"),CardSettingsType:r(()=>Ph,"CardSettingsType"),CardTemplateType:r(()=>vh,"CardTemplateType"),ChartCardType:r(()=>Sh,"ChartCardType"),ChartType:r(()=>Uh,"ChartType"),ContainerLayoutType:r(()=>Gh,"ContainerLayoutType"),CreateMode:r(()=>Hh,"CreateMode"),DateRangeType:r(()=>Oh,"DateRangeType"),DefaultContentView:r(()=>wh,"DefaultContentView"),DefaultFilterMode:r(()=>$h,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Bh,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>VC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>DC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>NC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>LC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Fh,"FilterPathType"),HAlign:r(()=>Vh,"HAlign"),LinkListFlavorType:r(()=>Ih,"LinkListFlavorType"),ListFlavorType:r(()=>Ch,"ListFlavorType"),ListTypeType:r(()=>Eh,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Mh,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Ah,"MeasureAggregateValues"),PopinLayout:r(()=>Rh,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>jC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>RC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>MC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>$C,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>wC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>_h,"SectionPosition"),SortOrderType:r(()=>xh,"SortOrderType"),Strategy:r(()=>jh,"Strategy"),TableColumnExtensionTypeV2:r(()=>Dh,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Nh,"TableTypeV2"),cardTemplateSettingsMap:r(()=>FC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>OC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Lh,"customColumnViewTypes")});Wh.exports=IC(bh);var Th=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Th||{}),Sh=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Sh||{}),vh=(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.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(vh||{}),OC={"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.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},FC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Ph=(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))(Ph||{}),Ah=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Ah||{}),Ch=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Ch||{}),Eh=(e=>(e.extended="extended",e.condensed="condensed",e))(Eh||{}),xh=(e=>(e.ascending="ascending",e.descending="descending",e))(xh||{}),Ih=(e=>(e.standard="standard",e.carousel="carousel",e))(Ih||{}),Oh=(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))(Oh||{}),Fh=(e=>(e.key="key",e.catgory="category",e))(Fh||{}),Vh=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Vh||{}),Lh=(e=>(e.XML="XML",e))(Lh||{}),Nh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Nh||{}),Dh=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Dh||{}),Rh=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Rh||{}),jh=(e=>(e.extension="extension",e))(jh||{}),wh=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(wh||{}),$h=(e=>(e.visual="visual",e.compact="compact",e))($h||{}),Mh=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Mh||{}),Uh=(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))(Uh||{}),kh=(e=>(e.Circle="Circle",e.Square="Square",e))(kh||{}),_h=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(_h||{}),Bh=(e=>(e.XML="XML",e))(Bh||{}),Hh=(e=>(e.inline="inline",e))(Hh||{}),VC="sap.suite.ui.generic.template",LC="sap.suite.ui.generic.template.ObjectPage",NC="sap.suite.ui.generic.template.ListReport",DC="sap.suite.ui.generic.template.AnalyticalListPage",RC="sap.ui.viewExtensions",jC="sap.ui.controllerExtensions",wC="sap.suite.ui.generic.template.ObjectPage.view.Details",$C="sap.suite.ui.generic.template.ListReport.view.ListReport",MC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Gh=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Gh||{})});var fb=we((FR,pb)=>{var Hp=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,_C=Object.prototype.hasOwnProperty,BC=r((e,t)=>{for(var n in t)Hp(e,n,{get:t[n],enumerable:!0})},"O"),HC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!_C.call(e,o)&&o!==n&&Hp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=UC(t,o))||i.enumerable});return e},"U"),GC=r(e=>HC(Hp({},"__esModule",{value:!0}),e),"w"),Kh={};BC(Kh,{Availability:r(()=>rb,"Availability"),CustomSectionViewTypesV4:r(()=>nb,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>zh,"DefaultPathType"),DesigntimeValues:r(()=>Zh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>WC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>JC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>QC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>XC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>KC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>zC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>sb,"HorizontalAlign"),InitialLoadType:r(()=>qh,"InitialLoadType"),Placement:r(()=>ab,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>YC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>qC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>eb,"SectionLayoutType"),SectionPosition:r(()=>tb,"SectionPosition"),SectionPositionV4:r(()=>ob,"SectionPositionV4"),SelectType:r(()=>Yh,"SelectType"),SelectionMode:r(()=>Xh,"SelectionMode"),TableCreationModeType:r(()=>ib,"TableCreationModeType"),TableTypeV4:r(()=>Jh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>lb,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>cb,"VariantManagementTypeObjectPage")});pb.exports=GC(Kh);var Xh=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Xh||{}),Jh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Jh||{}),qh=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(qh||{}),zh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(zh||{}),Yh=(e=>(e.single="single",e.multi="multi",e))(Yh||{}),Zh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(Zh||{}),eb=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eb||{}),tb=(e=>(e.After="After",e.Before="Before",e))(tb||{}),nb=(e=>(e.XML="XML",e))(nb||{}),ib=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ib||{}),WC="sap.fe",QC="sap.fe.core.fpm",KC="sap.fe.templates.ObjectPage",XC="sap.fe.templates.ListReport",JC="sap.fe.templates.AnalyticalListPage",qC="XMLFragment",ob=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ob||{}),zC="sap.f.routing.Router",YC="sap.f",ab=(e=>(e.After="After",e.Before="Before",e))(ab||{}),rb=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rb||{}),sb=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sb||{}),cb=(e=>(e.None="None",e.Control="Control",e))(cb||{}),lb=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lb||{})});var B=we(At=>{"use strict";var ub=At&&At.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),ZC=At&&At.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),db=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ub(t,e,n)},gb=At&&At.__importStar||(function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&ub(n,t,i[o]);return ZC(n,t),n}})();Object.defineProperty(At,"__esModule",{value:!0});At.v4=At.v2=void 0;db(uh(),At);db(hh(),At);At.v2=gb(Qh());At.v4=gb(fb())});var lf=we((JR,Lb)=>{"use strict";var mE=r(function(t){return yE(t)&&!hE(t)},"isMergeableObject");function yE(e){return!!e&&typeof e=="object"}r(yE,"isNonNullObject");function hE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||SE(e)}r(hE,"isSpecial");var bE=typeof Symbol=="function"&&Symbol.for,TE=bE?Symbol.for("react.element"):60103;function SE(e){return e.$$typeof===TE}r(SE,"isReactElement");function vE(e){return Array.isArray(e)?[]:{}}r(vE,"emptyTarget");function ar(e,t){return t.clone!==!1&&t.isMergeableObject(e)?oa(vE(e),e,t):e}r(ar,"cloneUnlessOtherwiseSpecified");function PE(e,t,n){return e.concat(t).map(function(i){return ar(i,n)})}r(PE,"defaultArrayMerge");function AE(e,t){if(!t.customMerge)return oa;var n=t.customMerge(e);return typeof n=="function"?n:oa}r(AE,"getMergeFunction");function CE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(CE,"getEnumerableOwnPropertySymbols");function Fb(e){return Object.keys(e).concat(CE(e))}r(Fb,"getKeys");function Vb(e,t){try{return t in e}catch{return!1}}r(Vb,"propertyIsOnObject");function EE(e,t){return Vb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(EE,"propertyIsUnsafe");function xE(e,t,n){var i={};return n.isMergeableObject(e)&&Fb(e).forEach(function(o){i[o]=ar(e[o],n)}),Fb(t).forEach(function(o){EE(e,o)||(Vb(e,o)&&n.isMergeableObject(t[o])?i[o]=AE(o,n)(e[o],t[o],n):i[o]=ar(t[o],n))}),i}r(xE,"mergeObject");function oa(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||PE,n.isMergeableObject=n.isMergeableObject||mE,n.cloneUnlessOtherwiseSpecified=ar;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):xE(e,t,n):ar(t,n)}r(oa,"deepmerge");oa.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return oa(i,o,n)},{})},"deepmergeAll");var IE=oa;Lb.exports=IE});var Qs=we(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.mergeAnnotations=Fe.addGetByValue=Fe.createIndexedFind=Fe.lazy=Fe.Decimal=Fe.Double=Fe.isComplexTypeDefinition=Fe.unalias=Fe.alias=Fe.substringBeforeLast=Fe.substringBeforeFirst=Fe.splitAtLast=Fe.splitAtFirst=Fe.defaultReferences=Fe.TermToTypes=Fe.EnumIsFlag=void 0;var OE=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Fe,"EnumIsFlag",{enumerable:!0,get:r(function(){return OE.EnumIsFlag},"get")});var FE=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Fe,"TermToTypes",{enumerable:!0,get:r(function(){return FE.TermToTypes},"get")});var VE=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Fe,"defaultReferences",{enumerable:!0,get:r(function(){return VE.VocabularyReferences},"get")});function Nb(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Nb,"splitAt");function Db(e,t){return t<0?e:e.substring(0,t)}r(Db,"substringAt");function Ws(e,t){return Nb(e,e.indexOf(t))}r(Ws,"splitAtFirst");Fe.splitAtFirst=Ws;function Rb(e,t){return Nb(e,e.lastIndexOf(t))}r(Rb,"splitAtLast");Fe.splitAtLast=Rb;function LE(e,t){return Db(e,e.indexOf(t))}r(LE,"substringBeforeFirst");Fe.substringBeforeFirst=LE;function NE(e,t){return Db(e,e.lastIndexOf(t))}r(NE,"substringBeforeLast");Fe.substringBeforeLast=NE;function jb(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Rb(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Ws(t,"@");return`${a}@${jb(e,s)}`}else return t}r(jb,"alias");Fe.alias=jb;function pf(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,c]=Ws(a,".");if(!c||c.includes("."))return a;let l=s.startsWith("@"),p=l?s.substring(1):s,f=e.referenceMap[p];return f?l?`@${f.namespace}.${c}`:`${f.namespace}.${c}`:n&&!l?`${n}.${c}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[c,l]=Ws(s,"("),p=[o(c)];if(l){let f=l.slice(0,-1);p.push(`(${o(f)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(pf,"unalias");Fe.unalias=pf;function DE(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(DE,"isComplexTypeDefinition");Fe.isComplexTypeDefinition=DE;function RE(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(RE,"Double");Fe.Double=RE;function jE(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(jE,"Decimal");Fe.Decimal=jE;function wE(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(wE,"lazy");Fe.lazy=wE;function wb(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let c=s[t];return n.set(c,s),c===o})},"find")}r(wb,"createIndexedFind");Fe.createIndexedFind=wb;function $E(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:wb(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r($E,"addGetByValue");Fe.addGetByValue=$E;function ME(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=pf(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(f=>{var u;return f.term=(u=pf(e,f.term))!==null&&u!==void 0?u:f.term,f.fullyQualifiedName=f.qualifier?`${l}@${f.term}#${f.qualifier}`:`${l}@${f.term}`,f.__source=i,f}).filter(f=>!n[l].some(u=>u.term===f.term&&u.qualifier===f.qualifier));n[l].push(...p)}return n},{})}r(ME,"mergeAnnotations");Fe.mergeAnnotations=ME});var qb=we(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.convert=void 0;var Ks=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Qs(),xn=Symbol("Annotation Target");function ri(e,t){return e[e.length-1]!==t&&e.push(t),e}r(ri,"appendObjectPath");function Yt(e,t,n,i){var o,a,s,c,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((u,m)=>{if(m.includes("@")){let[h,T]=(0,K.splitAtFirst)(m,"@");u.push(h),u.push(`@${T}`)}else u.push(m);return u},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(c=(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&&c!==void 0?c:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[xn]!==void 0)t=t[xn];else if(t._type==="Property"){let u=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(u))!==null&&l!==void 0?l:e.getConvertedComplexType(u)}let f=p.reduce((u,m)=>{var h,T,F,L,Y;let ne=r(q=>(u.messages.push({message:q}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=ri(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[q,ue]=e.splitTerm(m),ie=(h=u.target.annotations[q.substring(1)])===null||h===void 0?void 0:h[ue];return ie!==void 0?(u.target=ie,u):ne(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let q;if(m==="$AnnotationPath"?q=u.target.value:m==="$Path"&&(q=u.target.path),q!==void 0){let ue=Yt(e,u.target[xn],q);return ue.objectPath.forEach(ie=>{u.objectPath.includes(ie)||(u.objectPath=ri(u.objectPath,ie))}),u.target=ue.target,u.objectPath=ri(u.objectPath,u.target),u}}switch((T=u.target)===null||T===void 0?void 0:T._type){case"Schema":break;case"EntityContainer":{let ie=u.target;if(m===""||e.unalias(m)===ie.fullyQualifiedName)return u;let fe=(L=(F=ie.entitySets.by_name(m))!==null&&F!==void 0?F:ie.singletons.by_name(m))!==null&&L!==void 0?L:ie.actionImports.by_name(m);if(fe)return u.target=fe,u}break;case"EntitySet":case"Singleton":{let ie=u.target;if(m===""||m==="$Type")return u.target=ie.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Ve=ie.navigationPropertyBinding;return u.target=Ve,u}let fe=Yt(e,ie.entityType,m);return u.target=fe.target,u.objectPath=fe.objectPath.reduce(ri,u.objectPath),u}case"EntityType":{let ie=u.target;if(m===""||m==="$Type")return u;let fe=ie.entityProperties.by_name(m);if(fe)return u.target=fe,u;let Ve=ie.navigationProperties.by_name(m);if(Ve)return u.target=Ve,u;let P=(0,K.substringBeforeFirst)(e.unalias(m),"("),ke=ie.actions[P];if(ke)return u.target=ke,u}break;case"ActionImport":{let ie=Yt(e,u.target.action,m);return u.target=ie.target,u.objectPath=ie.objectPath.reduce(ri,u.objectPath),u}case"Action":{let ie=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&ie.isBound)return u.target=ie.parameters,u;let fe=(Y=ie.parameters[m])!==null&&Y!==void 0?Y:ie.parameters.find(Ve=>Ve.name===m);if(fe)return u.target=fe,u;break}case"Property":{let fe=u.target.targetType;if(fe!==void 0){let Ve=fe.properties.by_name(m);if(Ve)return u.target=Ve,u;let P=fe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let q=u.target.typeReference;if(q!==void 0){let ie=Yt(e,q,m);return u.target=ie.target,u.objectPath=ie.objectPath.reduce(ri,u.objectPath),u}break;case"NavigationProperty":let ue=Yt(e,u.target.targetType,m);return u.target=ue.target,u.objectPath=ue.objectPath.reduce(ri,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=ri(u.objectPath,u.target),u}return ne(`Element '${m}' not found at ${u.target._type} '${u.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(u=>e.logError(u.message)),!f.target)if(i){let u=_b(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var EA=Object.create;var ea=Object.defineProperty;var Mm=Object.getOwnPropertyDescriptor;var xA=Object.getOwnPropertyNames;var IA=Object.getPrototypeOf,OA=Object.prototype.hasOwnProperty;var r=(e,t)=>ea(e,"name",{value:t,configurable:!0});var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ta=(e,t)=>{for(var n in t)ea(e,n,{get:t[n],enumerable:!0})},$s=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xA(t))!OA.call(e,o)&&o!==n&&ea(e,o,{get:()=>t[o],enumerable:!(i=Mm(t,o))||i.enumerable});return e},so=(e,t,n)=>($s(e,t,"default"),n&&$s(n,t,"default")),w=(e,t,n)=>(n=e!=null?EA(IA(e)):{},$s(t||!e||!e.__esModule?ea(n,"default",{value:e,enumerable:!0}):n,e)),FA=e=>$s(ea({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?Mm(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&ea(t,n,o),o};var uh=we((CR,fh)=>{var Mp=Object.defineProperty,VA=Object.getOwnPropertyDescriptor,LA=Object.getOwnPropertyNames,NA=Object.prototype.hasOwnProperty,Up=r((e,t)=>{for(var n in t)Mp(e,n,{get:t[n],enumerable:!0})},"f"),DA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LA(t))!NA.call(e,o)&&o!==n&&Mp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=VA(t,o))||i.enumerable});return e},"ze"),RA=r(e=>DA(Mp({},"__esModule",{value:!0}),e),"Je"),Um={};Up(Um,{ACTIONTITLEPREFIX:r(()=>MA,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>Qm,"ALPViewType"),ActionType:r(()=>Jm,"ActionType"),ArtifactType:r(()=>Xm,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>kA,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>ey,"ChangeIndicator"),ChartColor:r(()=>yy,"ChartColor"),CloudDevAdaptationStatus:r(()=>fy,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>gy,"ColorPaletteDefinitionType"),ControlType:r(()=>qm,"ControlType"),DATESETTINGSPATH:r(()=>JA,"DATESETTINGSPATH"),DataSourceType:r(()=>uy,"DataSourceType"),DefinitionName:r(()=>iy,"DefinitionName"),DirName:r(()=>Ym,"DirName"),DraftDiscardEnabledSettings:r(()=>sy,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Wm,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>$A,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>ZA,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>YA,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>qA,"FRAGMENTNAMEPART"),FacetBase:r(()=>ty,"FacetBase"),Features:r(()=>Sy,"Features"),FileName:r(()=>Zm,"FileName"),FioriElementsVersion:r(()=>km,"FioriElementsVersion"),FlexChangeLayer:r(()=>Hm,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>py,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Bm,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>zA,"GENERICAPPSETTINGS"),LogSeverity:r(()=>hy,"LogSeverity"),MANIFESTPATH:r(()=>_A,"MANIFESTPATH"),ManifestSection:r(()=>dy,"ManifestSection"),OdataVersion:r(()=>_m,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>wA,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>jA,"PageType"),PageTypeV2:r(()=>kp,"PageTypeV2"),PageTypeV4:r(()=>_p,"PageTypeV4"),PropertyMessageType:r(()=>by,"PropertyMessageType"),PropertyName:r(()=>oy,"PropertyName"),QUICKVARPATH:r(()=>KA,"QUICKVARPATH"),QUICKVARPATHX:r(()=>XA,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>tC,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>eC,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>ry,"SchemaKeyName"),SchemaTag:r(()=>ay,"SchemaTag"),SchemaType:r(()=>Gm,"SchemaType"),SectionType:r(()=>Km,"SectionType"),StatePreservationMode:r(()=>ly,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>cy,"TableColumnVerticalAlignment"),TemplateType:r(()=>Ty,"TemplateType"),UIVOCABULARY:r(()=>GA,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>QA,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>WA,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>HA,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>BA,"VOCWITHSLASH"),ViewTemplateType:r(()=>ny,"ViewTemplateType"),ViewTypes:r(()=>my,"ViewTypes"),Visualization:r(()=>zm,"Visualization"),defaultExportResult:r(()=>UA,"defaultExportResult"),logSeverityLabel:r(()=>nC,"logSeverityLabel"),v2:r(()=>vy,"v2"),v4:r(()=>Xy,"v4")});fh.exports=RA(Um);var kp=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(kp||{}),_p=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(_p||{}),jA={...kp,..._p},wA=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"]]),km=(e=>(e.v2="v2",e.v4="v4",e))(km||{}),_m=(e=>(e.v2="v2",e.v4="v4",e))(_m||{}),Bm=(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))(Bm||{}),Hm=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Hm||{}),Gm=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Gm||{}),Wm=(e=>(e.flex="flex",e.manifest="manifest",e))(Wm||{}),Qm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Qm||{}),Km=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Km||{}),Xm=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Xm||{}),Jm=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Jm||{}),qm=(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))(qm||{}),zm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(zm||{}),Ym=(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))(Ym||{}),Zm=(e=>(e.App="app.json",e))(Zm||{}),$A="Facet ID: ",MA="Action ID: ",ey=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(ey||{}),UA={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},ty=(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))(ty||{}),kA="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",ny=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(ny||{}),iy=(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.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.FormCustomActionOP="FormCustomActionOP",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.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.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",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.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewTableColumnAction="ViewTableColumnAction",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.SaveAndEdit="SaveAndEdit",e))(iy||{}),oy=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(oy||{}),ay=(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))(ay||{}),ry=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(ry||{}),_A="webapp/manifest.json",BA="/@com.sap.vocabularies",HA="::@com.sap.vocabularies",GA="com.sap.vocabularies.UI.v1",WA="com.sap.vocabularies.UI.v1.",QA="@com.sap.vocabularies.UI.v1.",KA="/quickVariantSelection",XA="/quickVariantSelectionX",JA="/filterSettings/dateSettings",qA=".fragment.",sy=(e=>(e.restricted="restricted",e))(sy||{}),cy=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(cy||{}),ly=(e=>(e.persistence="persistence",e.discovery="discovery",e))(ly||{}),py=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(py||{}),fy=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(fy||{}),uy=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(uy||{}),dy=(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))(dy||{}),zA="sap.ui.generic.app/settings",gy=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(gy||{}),YA="sap.fe.templates.RootContainer.view.Fcl",ZA="appRootView",my=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(my||{}),eC="sap.ui.core.mvc.View",tC="sap.ui.core.Fragment",yy=(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))(yy||{}),hy=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(hy||{}),nC={error:"Error",warning:"Warning",info:"Information"},by=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(by||{}),Ty=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Ty||{}),Sy=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Sy||{}),vy={};Up(vy,{AvatarShape:r(()=>Hy,"AvatarShape"),ButtonType:r(()=>Py,"ButtonType"),CardSettingsType:r(()=>Ey,"CardSettingsType"),CardTemplateType:r(()=>Cy,"CardTemplateType"),ChartCardType:r(()=>Ay,"ChartCardType"),ChartType:r(()=>By,"ChartType"),ContainerLayoutType:r(()=>Ky,"ContainerLayoutType"),CreateMode:r(()=>Qy,"CreateMode"),DateRangeType:r(()=>Ly,"DateRangeType"),DefaultContentView:r(()=>Uy,"DefaultContentView"),DefaultFilterMode:r(()=>ky,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Wy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>aC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>cC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>sC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>rC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Ny,"FilterPathType"),HAlign:r(()=>Dy,"HAlign"),LinkListFlavorType:r(()=>Vy,"LinkListFlavorType"),ListFlavorType:r(()=>Iy,"ListFlavorType"),ListTypeType:r(()=>Oy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>_y,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>xy,"MeasureAggregateValues"),PopinLayout:r(()=>$y,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>pC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>lC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>dC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>uC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>fC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Gy,"SectionPosition"),SortOrderType:r(()=>Fy,"SortOrderType"),Strategy:r(()=>My,"Strategy"),TableColumnExtensionTypeV2:r(()=>wy,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>jy,"TableTypeV2"),cardTemplateSettingsMap:r(()=>oC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>iC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Ry,"customColumnViewTypes")});var Py=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Py||{}),Ay=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Ay||{}),Cy=(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.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(Cy||{}),iC={"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.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},oC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Ey=(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))(Ey||{}),xy=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(xy||{}),Iy=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Iy||{}),Oy=(e=>(e.extended="extended",e.condensed="condensed",e))(Oy||{}),Fy=(e=>(e.ascending="ascending",e.descending="descending",e))(Fy||{}),Vy=(e=>(e.standard="standard",e.carousel="carousel",e))(Vy||{}),Ly=(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))(Ly||{}),Ny=(e=>(e.key="key",e.catgory="category",e))(Ny||{}),Dy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Dy||{}),Ry=(e=>(e.XML="XML",e))(Ry||{}),jy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(jy||{}),wy=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(wy||{}),$y=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))($y||{}),My=(e=>(e.extension="extension",e))(My||{}),Uy=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Uy||{}),ky=(e=>(e.visual="visual",e.compact="compact",e))(ky||{}),_y=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(_y||{}),By=(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))(By||{}),Hy=(e=>(e.Circle="Circle",e.Square="Square",e))(Hy||{}),Gy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Gy||{}),Wy=(e=>(e.XML="XML",e))(Wy||{}),Qy=(e=>(e.inline="inline",e))(Qy||{}),aC="sap.suite.ui.generic.template",rC="sap.suite.ui.generic.template.ObjectPage",sC="sap.suite.ui.generic.template.ListReport",cC="sap.suite.ui.generic.template.AnalyticalListPage",lC="sap.ui.viewExtensions",pC="sap.ui.controllerExtensions",fC="sap.suite.ui.generic.template.ObjectPage.view.Details",uC="sap.suite.ui.generic.template.ListReport.view.ListReport",dC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ky=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ky||{}),Xy={};Up(Xy,{Availability:r(()=>sh,"Availability"),CustomSectionViewTypesV4:r(()=>ih,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Yy,"DefaultPathType"),DesigntimeValues:r(()=>eh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>gC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>bC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>mC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>hC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>yC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>SC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>ch,"HorizontalAlign"),InitialLoadType:r(()=>zy,"InitialLoadType"),Placement:r(()=>rh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>vC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>TC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>th,"SectionLayoutType"),SectionPosition:r(()=>nh,"SectionPosition"),SectionPositionV4:r(()=>ah,"SectionPositionV4"),SelectType:r(()=>Zy,"SelectType"),SelectionMode:r(()=>Jy,"SelectionMode"),TableCreationModeType:r(()=>oh,"TableCreationModeType"),TableTypeV4:r(()=>qy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>ph,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>lh,"VariantManagementTypeObjectPage")});var Jy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Jy||{}),qy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(qy||{}),zy=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(zy||{}),Yy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Yy||{}),Zy=(e=>(e.single="single",e.multi="multi",e))(Zy||{}),eh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(eh||{}),th=(e=>(e.Tabs="Tabs",e.Page="Page",e))(th||{}),nh=(e=>(e.After="After",e.Before="Before",e))(nh||{}),ih=(e=>(e.XML="XML",e))(ih||{}),oh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(oh||{}),gC="sap.fe",mC="sap.fe.core.fpm",yC="sap.fe.templates.ObjectPage",hC="sap.fe.templates.ListReport",bC="sap.fe.templates.AnalyticalListPage",TC="XMLFragment",ah=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ah||{}),SC="sap.f.routing.Router",vC="sap.f",rh=(e=>(e.After="After",e.Before="Before",e))(rh||{}),sh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(sh||{}),ch=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(ch||{}),lh=(e=>(e.None="None",e.Control="Control",e))(lh||{}),ph=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ph||{})});var hh=we(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.Features=ln.TemplateType=ln.PropertyMessageType=ln.logSeverityLabel=ln.LogSeverity=void 0;var dh;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(dh||(ln.LogSeverity=dh={}));ln.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var gh;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(gh||(ln.PropertyMessageType=gh={}));var mh;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(mh||(ln.TemplateType=mh={}));var yh;(function(e){e.BuildingBlocks="BuildingBlocks"})(yh||(ln.Features=yh={}))});var Qh=we((IR,Wh)=>{var Bp=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,AC=Object.getOwnPropertyNames,CC=Object.prototype.hasOwnProperty,EC=r((e,t)=>{for(var n in t)Bp(e,n,{get:t[n],enumerable:!0})},"G"),xC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AC(t))!CC.call(e,o)&&o!==n&&Bp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=PC(t,o))||i.enumerable});return e},"X"),IC=r(e=>xC(Bp({},"__esModule",{value:!0}),e),"H"),bh={};EC(bh,{AvatarShape:r(()=>kh,"AvatarShape"),ButtonType:r(()=>Th,"ButtonType"),CardSettingsType:r(()=>Ph,"CardSettingsType"),CardTemplateType:r(()=>vh,"CardTemplateType"),ChartCardType:r(()=>Sh,"ChartCardType"),ChartType:r(()=>Uh,"ChartType"),ContainerLayoutType:r(()=>Gh,"ContainerLayoutType"),CreateMode:r(()=>Hh,"CreateMode"),DateRangeType:r(()=>Oh,"DateRangeType"),DefaultContentView:r(()=>wh,"DefaultContentView"),DefaultFilterMode:r(()=>$h,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Bh,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>VC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>DC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>NC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>LC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Fh,"FilterPathType"),HAlign:r(()=>Vh,"HAlign"),LinkListFlavorType:r(()=>Ih,"LinkListFlavorType"),ListFlavorType:r(()=>Ch,"ListFlavorType"),ListTypeType:r(()=>Eh,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Mh,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Ah,"MeasureAggregateValues"),PopinLayout:r(()=>Rh,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>jC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>RC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>MC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>$C,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>wC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>_h,"SectionPosition"),SortOrderType:r(()=>xh,"SortOrderType"),Strategy:r(()=>jh,"Strategy"),TableColumnExtensionTypeV2:r(()=>Dh,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Nh,"TableTypeV2"),cardTemplateSettingsMap:r(()=>FC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>OC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Lh,"customColumnViewTypes")});Wh.exports=IC(bh);var Th=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Th||{}),Sh=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Sh||{}),vh=(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.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(vh||{}),OC={"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.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},FC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Ph=(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))(Ph||{}),Ah=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Ah||{}),Ch=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Ch||{}),Eh=(e=>(e.extended="extended",e.condensed="condensed",e))(Eh||{}),xh=(e=>(e.ascending="ascending",e.descending="descending",e))(xh||{}),Ih=(e=>(e.standard="standard",e.carousel="carousel",e))(Ih||{}),Oh=(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))(Oh||{}),Fh=(e=>(e.key="key",e.catgory="category",e))(Fh||{}),Vh=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Vh||{}),Lh=(e=>(e.XML="XML",e))(Lh||{}),Nh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Nh||{}),Dh=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Dh||{}),Rh=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Rh||{}),jh=(e=>(e.extension="extension",e))(jh||{}),wh=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(wh||{}),$h=(e=>(e.visual="visual",e.compact="compact",e))($h||{}),Mh=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Mh||{}),Uh=(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))(Uh||{}),kh=(e=>(e.Circle="Circle",e.Square="Square",e))(kh||{}),_h=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(_h||{}),Bh=(e=>(e.XML="XML",e))(Bh||{}),Hh=(e=>(e.inline="inline",e))(Hh||{}),VC="sap.suite.ui.generic.template",LC="sap.suite.ui.generic.template.ObjectPage",NC="sap.suite.ui.generic.template.ListReport",DC="sap.suite.ui.generic.template.AnalyticalListPage",RC="sap.ui.viewExtensions",jC="sap.ui.controllerExtensions",wC="sap.suite.ui.generic.template.ObjectPage.view.Details",$C="sap.suite.ui.generic.template.ListReport.view.ListReport",MC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Gh=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Gh||{})});var fb=we((FR,pb)=>{var Hp=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,_C=Object.prototype.hasOwnProperty,BC=r((e,t)=>{for(var n in t)Hp(e,n,{get:t[n],enumerable:!0})},"O"),HC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!_C.call(e,o)&&o!==n&&Hp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=UC(t,o))||i.enumerable});return e},"U"),GC=r(e=>HC(Hp({},"__esModule",{value:!0}),e),"w"),Kh={};BC(Kh,{Availability:r(()=>rb,"Availability"),CustomSectionViewTypesV4:r(()=>nb,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>zh,"DefaultPathType"),DesigntimeValues:r(()=>Zh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>WC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>JC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>QC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>XC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>KC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>zC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>sb,"HorizontalAlign"),InitialLoadType:r(()=>qh,"InitialLoadType"),Placement:r(()=>ab,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>YC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>qC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>eb,"SectionLayoutType"),SectionPosition:r(()=>tb,"SectionPosition"),SectionPositionV4:r(()=>ob,"SectionPositionV4"),SelectType:r(()=>Yh,"SelectType"),SelectionMode:r(()=>Xh,"SelectionMode"),TableCreationModeType:r(()=>ib,"TableCreationModeType"),TableTypeV4:r(()=>Jh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>lb,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>cb,"VariantManagementTypeObjectPage")});pb.exports=GC(Kh);var Xh=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Xh||{}),Jh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Jh||{}),qh=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(qh||{}),zh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(zh||{}),Yh=(e=>(e.single="single",e.multi="multi",e))(Yh||{}),Zh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(Zh||{}),eb=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eb||{}),tb=(e=>(e.After="After",e.Before="Before",e))(tb||{}),nb=(e=>(e.XML="XML",e))(nb||{}),ib=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ib||{}),WC="sap.fe",QC="sap.fe.core.fpm",KC="sap.fe.templates.ObjectPage",XC="sap.fe.templates.ListReport",JC="sap.fe.templates.AnalyticalListPage",qC="XMLFragment",ob=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ob||{}),zC="sap.f.routing.Router",YC="sap.f",ab=(e=>(e.After="After",e.Before="Before",e))(ab||{}),rb=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rb||{}),sb=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sb||{}),cb=(e=>(e.None="None",e.Control="Control",e))(cb||{}),lb=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lb||{})});var B=we(At=>{"use strict";var ub=At&&At.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),ZC=At&&At.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),db=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ub(t,e,n)},gb=At&&At.__importStar||(function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&ub(n,t,i[o]);return ZC(n,t),n}})();Object.defineProperty(At,"__esModule",{value:!0});At.v4=At.v2=void 0;db(uh(),At);db(hh(),At);At.v2=gb(Qh());At.v4=gb(fb())});var lf=we((JR,Lb)=>{"use strict";var mE=r(function(t){return yE(t)&&!hE(t)},"isMergeableObject");function yE(e){return!!e&&typeof e=="object"}r(yE,"isNonNullObject");function hE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||SE(e)}r(hE,"isSpecial");var bE=typeof Symbol=="function"&&Symbol.for,TE=bE?Symbol.for("react.element"):60103;function SE(e){return e.$$typeof===TE}r(SE,"isReactElement");function vE(e){return Array.isArray(e)?[]:{}}r(vE,"emptyTarget");function ar(e,t){return t.clone!==!1&&t.isMergeableObject(e)?oa(vE(e),e,t):e}r(ar,"cloneUnlessOtherwiseSpecified");function PE(e,t,n){return e.concat(t).map(function(i){return ar(i,n)})}r(PE,"defaultArrayMerge");function AE(e,t){if(!t.customMerge)return oa;var n=t.customMerge(e);return typeof n=="function"?n:oa}r(AE,"getMergeFunction");function CE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(CE,"getEnumerableOwnPropertySymbols");function Fb(e){return Object.keys(e).concat(CE(e))}r(Fb,"getKeys");function Vb(e,t){try{return t in e}catch{return!1}}r(Vb,"propertyIsOnObject");function EE(e,t){return Vb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(EE,"propertyIsUnsafe");function xE(e,t,n){var i={};return n.isMergeableObject(e)&&Fb(e).forEach(function(o){i[o]=ar(e[o],n)}),Fb(t).forEach(function(o){EE(e,o)||(Vb(e,o)&&n.isMergeableObject(t[o])?i[o]=AE(o,n)(e[o],t[o],n):i[o]=ar(t[o],n))}),i}r(xE,"mergeObject");function oa(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||PE,n.isMergeableObject=n.isMergeableObject||mE,n.cloneUnlessOtherwiseSpecified=ar;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):xE(e,t,n):ar(t,n)}r(oa,"deepmerge");oa.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return oa(i,o,n)},{})},"deepmergeAll");var IE=oa;Lb.exports=IE});var Qs=we(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.mergeAnnotations=Fe.addGetByValue=Fe.createIndexedFind=Fe.lazy=Fe.Decimal=Fe.Double=Fe.isComplexTypeDefinition=Fe.unalias=Fe.alias=Fe.substringBeforeLast=Fe.substringBeforeFirst=Fe.splitAtLast=Fe.splitAtFirst=Fe.defaultReferences=Fe.TermToTypes=Fe.EnumIsFlag=void 0;var OE=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Fe,"EnumIsFlag",{enumerable:!0,get:r(function(){return OE.EnumIsFlag},"get")});var FE=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Fe,"TermToTypes",{enumerable:!0,get:r(function(){return FE.TermToTypes},"get")});var VE=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Fe,"defaultReferences",{enumerable:!0,get:r(function(){return VE.VocabularyReferences},"get")});function Nb(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Nb,"splitAt");function Db(e,t){return t<0?e:e.substring(0,t)}r(Db,"substringAt");function Ws(e,t){return Nb(e,e.indexOf(t))}r(Ws,"splitAtFirst");Fe.splitAtFirst=Ws;function Rb(e,t){return Nb(e,e.lastIndexOf(t))}r(Rb,"splitAtLast");Fe.splitAtLast=Rb;function LE(e,t){return Db(e,e.indexOf(t))}r(LE,"substringBeforeFirst");Fe.substringBeforeFirst=LE;function NE(e,t){return Db(e,e.lastIndexOf(t))}r(NE,"substringBeforeLast");Fe.substringBeforeLast=NE;function jb(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Rb(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Ws(t,"@");return`${a}@${jb(e,s)}`}else return t}r(jb,"alias");Fe.alias=jb;function pf(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,c]=Ws(a,".");if(!c||c.includes("."))return a;let l=s.startsWith("@"),p=l?s.substring(1):s,f=e.referenceMap[p];return f?l?`@${f.namespace}.${c}`:`${f.namespace}.${c}`:n&&!l?`${n}.${c}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[c,l]=Ws(s,"("),p=[o(c)];if(l){let f=l.slice(0,-1);p.push(`(${o(f)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(pf,"unalias");Fe.unalias=pf;function DE(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(DE,"isComplexTypeDefinition");Fe.isComplexTypeDefinition=DE;function RE(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(RE,"Double");Fe.Double=RE;function jE(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(jE,"Decimal");Fe.Decimal=jE;function wE(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(wE,"lazy");Fe.lazy=wE;function wb(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let c=s[t];return n.set(c,s),c===o})},"find")}r(wb,"createIndexedFind");Fe.createIndexedFind=wb;function $E(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:wb(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r($E,"addGetByValue");Fe.addGetByValue=$E;function ME(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=pf(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(f=>{var u;return f.term=(u=pf(e,f.term))!==null&&u!==void 0?u:f.term,f.fullyQualifiedName=f.qualifier?`${l}@${f.term}#${f.qualifier}`:`${l}@${f.term}`,f.__source=i,f}).filter(f=>!n[l].some(u=>u.term===f.term&&u.qualifier===f.qualifier));n[l].push(...p)}return n},{})}r(ME,"mergeAnnotations");Fe.mergeAnnotations=ME});var qb=we(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.convert=void 0;var Ks=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Qs(),xn=Symbol("Annotation Target");function ri(e,t){return e[e.length-1]!==t&&e.push(t),e}r(ri,"appendObjectPath");function Yt(e,t,n,i){var o,a,s,c,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((u,m)=>{if(m.includes("@")){let[h,T]=(0,K.splitAtFirst)(m,"@");u.push(h),u.push(`@${T}`)}else u.push(m);return u},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(c=(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&&c!==void 0?c:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[xn]!==void 0)t=t[xn];else if(t._type==="Property"){let u=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(u))!==null&&l!==void 0?l:e.getConvertedComplexType(u)}let f=p.reduce((u,m)=>{var h,T,E,L,Y;let ne=r(q=>(u.messages.push({message:q}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=ri(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[q,ue]=e.splitTerm(m),ie=(h=u.target.annotations[q.substring(1)])===null||h===void 0?void 0:h[ue];return ie!==void 0?(u.target=ie,u):ne(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let q;if(m==="$AnnotationPath"?q=u.target.value:m==="$Path"&&(q=u.target.path),q!==void 0){let ue=Yt(e,u.target[xn],q);return ue.objectPath.forEach(ie=>{u.objectPath.includes(ie)||(u.objectPath=ri(u.objectPath,ie))}),u.target=ue.target,u.objectPath=ri(u.objectPath,u.target),u}}switch((T=u.target)===null||T===void 0?void 0:T._type){case"Schema":break;case"EntityContainer":{let ie=u.target;if(m===""||e.unalias(m)===ie.fullyQualifiedName)return u;let fe=(L=(E=ie.entitySets.by_name(m))!==null&&E!==void 0?E:ie.singletons.by_name(m))!==null&&L!==void 0?L:ie.actionImports.by_name(m);if(fe)return u.target=fe,u}break;case"EntitySet":case"Singleton":{let ie=u.target;if(m===""||m==="$Type")return u.target=ie.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Ve=ie.navigationPropertyBinding;return u.target=Ve,u}let fe=Yt(e,ie.entityType,m);return u.target=fe.target,u.objectPath=fe.objectPath.reduce(ri,u.objectPath),u}case"EntityType":{let ie=u.target;if(m===""||m==="$Type")return u;let fe=ie.entityProperties.by_name(m);if(fe)return u.target=fe,u;let Ve=ie.navigationProperties.by_name(m);if(Ve)return u.target=Ve,u;let P=(0,K.substringBeforeFirst)(e.unalias(m),"("),ke=ie.actions[P];if(ke)return u.target=ke,u}break;case"ActionImport":{let ie=Yt(e,u.target.action,m);return u.target=ie.target,u.objectPath=ie.objectPath.reduce(ri,u.objectPath),u}case"Action":{let ie=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&ie.isBound)return u.target=ie.parameters,u;let fe=(Y=ie.parameters[m])!==null&&Y!==void 0?Y:ie.parameters.find(Ve=>Ve.name===m);if(fe)return u.target=fe,u;break}case"Property":{let fe=u.target.targetType;if(fe!==void 0){let Ve=fe.properties.by_name(m);if(Ve)return u.target=Ve,u;let P=fe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let q=u.target.typeReference;if(q!==void 0){let ie=Yt(e,q,m);return u.target=ie.target,u.objectPath=ie.objectPath.reduce(ri,u.objectPath),u}break;case"NavigationProperty":let ue=Yt(e,u.target.targetType,m);return u.target=ue.target,u.objectPath=ue.objectPath.reduce(ri,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=ri(u.objectPath,u.target),u}return ne(`Element '${m}' not found at ${u.target._type} '${u.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(u=>e.logError(u.message)),!f.target)if(i){let u=_b(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>`),o}r(_b,"inferTypeFromTerm");function _E(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(_E,"isDataFieldWithForAction");function BE(e,t,n,i,o){let a;return!o.type&&t?a=_b(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(BE,"parseRecordType");function df(e,t,n,i,o,a,s){let c={$Type:BE(e,t,n,i,a),fullyQualifiedName:s,[xn]:n,__source:o};for(let l of a.propertyValues)(0,K.lazy)(c,l.name,()=>kb(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,K.lazy)(c,"annotations",Gb(e,a,c)),_E(c)&&(0,K.lazy)(c,"ActionTarget",()=>{var l,p;let f=e.unalias((l=c.Action)===null||l===void 0?void 0:l.toString()),u=n.actions[f];return u||(u=(p=e.getConvertedActionImport(f))===null||p===void 0?void 0:p.action),u||(u=e.getConvertedAction(f),u!=null&&u.isBound||(u=void 0)),u||e.logError(`${c.fullyQualifiedName}: Unable to resolve '${c.Action}' ('${f}')`),u}),c}r(df,"parseRecord");function HE(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}r(HE,"getOrInferCollectionType");function Bb(e,t,n,i,o,a,s){switch(HE(a)){case"PropertyPath":return a.map((l,p)=>$b(e,l,`${s}/${p}`,t,n));case"Path":return a.map(l=>Yt(e,t,l.Path,n).target);case"AnnotationPath":return a.map((l,p)=>Mb(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>Ub(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>df(e,n,t,i,o,l,`${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(l=>l);case"String":return a.map(l=>typeof l=="string"||l===void 0?l:l.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(Bb,"parseCollection");function GE(e){return!!e.targetTypeName}r(GE,"isV4NavigationProperty");function WE(e,t,n){var i;let o;if(n.record)o=df(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=kb(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=Bb(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[xn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,Ks.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Gb(e,n,o))}catch{}return o}r(WE,"convertAnnotation");var gf=class gf{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,K.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,Wb)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,K.addGetByValue)(i,"name"),(0,K.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,K.alias)(Ks.VocabularyReferences,t);return(0,K.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,K.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(gf,"Converter");var ff=gf;function rr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(rr,"resolveEntityType");function Hb(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,K.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(Hb,"resolveNavigationPropertyBindings");function si(e,t){let n=t.annotations;return()=>Xs(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(si,"resolveAnnotations");function Gb(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[xn]=n[xn],a.fullyQualifiedName=`${i}@${a.term}`}),Xs(e,n,o??[])}}r(Gb,"resolveAnnotationsOnAnnotation");function Xs(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),c=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(c)||(i[a]._keys.push(c),(0,K.lazy)(i[a],c,()=>e.getConvertedElement(o.fullyQualifiedName,o,(l,p)=>WE(l,t,p)))),i},{})}r(Xs,"createAnnotationsObject");function Wb(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Kb)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Qb)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Jb)),n}r(Wb,"convertEntityContainer");function Qb(e,t){let n=t;(0,K.lazy)(n,"entityType",rr(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",si(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Hb(e,i)),n}r(Qb,"convertSingleton");function Kb(e,t){let n=t;(0,K.lazy)(n,"entityType",rr(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",si(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Hb(e,i)),n}r(Kb,"convertEntitySet");function QE(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,uf)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,uf)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Xb)),(0,K.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=Yt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(QE,"convertEntityType");function uf(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(uf,"convertProperty");function Xb(e,t){var n,i,o,a,s;let c=t;if(c.referentialConstraint=(n=c.referentialConstraint)!==null&&n!==void 0?n:[],c.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(f=>f.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(c.referentialConstraint=(o=(i=p.collection)===null||i===void 0?void 0:i.map(f=>{var u,m;return{sourceProperty:((u=f.propertyValues.find(h=>h.name==="Property"))===null||u===void 0?void 0:u.value).PropertyPath,targetTypeName:c.targetTypeName,targetProperty:((m=f.propertyValues.find(h=>h.name==="ReferencedProperty"))===null||m===void 0?void 0:m.value).PropertyPath}}))!==null&&o!==void 0?o:[])}if(!GE(t)){let l=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);c.isCollection=(l==null?void 0:l.multiplicity)==="*",c.targetTypeName=(s=l==null?void 0:l.type)!==null&&s!==void 0?s:""}return(0,K.lazy)(c,"targetType",rr(e,t.targetTypeName)),(0,K.lazy)(c,"annotations",si(e,t)),c}r(Xb,"convertNavigationProperty");function Jb(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(Jb,"convertActionImport");function KE(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",rr(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",rr(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,XE)),(0,K.lazy)(n,"annotations",()=>{let i=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xs(e,t,a)}),n}r(KE,"convertAction");function XE(e,t){let n=t;return(0,K.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,K.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xs(e,t,a)}),n}r(XE,"convertActionParameter");function JE(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,uf)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Xb)),(0,K.lazy)(n,"annotations",si(e,t)),n}r(JE,"convertComplexType");function qE(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),n}r(qE,"convertTypeDefinition");function zE(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Ks.VocabularyReferences,diagnostics:[]},n=new ff(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Wb)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Kb)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Qb)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,QE)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,KE)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,JE)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Jb)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,qE)),t.resolvePath=r(function(o){let a=Yt(n,void 0,o);return a.target&&ri(a.objectPath,a.target),a},"resolvePath"),t}r(zE,"convert");Js.convert=zE});var eT=we(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.revertTermToGenericType=void 0;var mf=Qs();function YE(e,t){var n,i,o,a,s,c,l;let p;if(Array.isArray(t)){let f=t[0],u=!1;if(f&&typeof f=="string"){let m=f.valueOf().split(".");m.length>1&&e.find(h=>h.alias===m[0])&&(u=mf.EnumIsFlag[(0,mf.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>qs(e,m))}}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(!((o=t.isString)===null||o===void 0)&&o.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[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()}:!((c=t.isDate)===null||c===void 0)&&c.call(t)?p={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.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:qs(e,t)});return p}r(YE,"revertObjectToRawType");function zb(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=YE(e,t);break}return n}r(zb,"revertValueToRawType");var ZE=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Yb(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(o=>o!=="_keys").forEach(o=>{let a=Zb(e,t[i][o]);if(!a.term){let s=(0,mf.unalias)(e,`${i}.${o}`);if(s){let c=s.split("#");a.term=c[0],c.length>1&&(a.qualifier=c[1])}}n.push(a)})})}r(Yb,"revertAnnotationsToRawType");function qs(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(ZE.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:zb(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Yb(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}}r(qs,"revertCollectionItemToRawType");function Zb(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=[],Yb(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>qs(e,i))}):t.hasOwnProperty("$Type")?{...n,record:qs(e,t)}:{...n,value:zb(e,t)}}r(Zb,"revertTermToGenericType");zs.revertTermToGenericType=Zb});var tT=we(ci=>{"use strict";var ex=ci&&ci.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),yf=ci&&ci.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ex(t,e,n)};Object.defineProperty(ci,"__esModule",{value:!0});yf(qb(),ci);yf(Qs(),ci);yf(eT(),ci)});var vf=we(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.MergedRawMetadata=Oi.RawMetadataInstance=Oi.ensureArray=void 0;function tx(e){return e==null?[]:Array.isArray(e)?e:[e]}r(tx,"ensureArray");Oi.ensureArray=tx;var Tf=class Tf{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(Tf,"RawMetadataInstance");var hf=Tf;Oi.RawMetadataInstance=hf;var Sf=class Sf{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))}};r(Sf,"MergedRawMetadata");var bf=Sf;Oi.MergedRawMetadata=bf});var nT=we(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.merge=void 0;var nx=vf();function ix(...e){let t=new nx.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(ix,"merge");Ys.merge=ix});var iT=we(Zs=>{(function(e){e.parser=function(b,y){return new n(b,y)},e.SAXParser=n,e.SAXStream=p,e.createStream=l,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(b,y){if(!(this instanceof n))return new n(b,y);var D=this;o(D),D.q=D.c="",D.bufferCheckPosition=e.MAX_BUFFER_LENGTH,D.opt=y||{},D.opt.lowercase=D.opt.lowercase||D.opt.lowercasetags,D.looseCase=D.opt.lowercase?"toLowerCase":"toUpperCase",D.tags=[],D.closed=D.closedRoot=D.sawRoot=!1,D.tag=D.error=null,D.strict=!!b,D.noscript=!!(b||D.opt.noscript),D.state=P.BEGIN,D.strictEntities=D.opt.strictEntities,D.ENTITIES=D.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),D.attribList=[],D.opt.xmlns&&(D.ns=Object.create(T)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!b),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),Xe(D,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(b){function y(){}r(y,"F"),y.prototype=b;var D=new y;return D}),Object.keys||(Object.keys=function(b){var y=[];for(var D in b)b.hasOwnProperty(D)&&y.push(D);return y});function i(b){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),D=0,A=0,ve=t.length;A<ve;A++){var et=b[t[A]].length;if(et>y)switch(t[A]){case"textNode":oi(b);break;case"cdata":ze(b,"oncdata",b.cdata),b.cdata="";break;case"script":ze(b,"onscript",b.script),b.script="";break;default:st(b,"Max buffer length exceeded: "+t[A])}D=Math.max(D,et)}var We=e.MAX_BUFFER_LENGTH-D;b.bufferCheckPosition=We+b.position}r(i,"checkBufferLength");function o(b){for(var y=0,D=t.length;y<D;y++)b[t[y]]=""}r(o,"clearBuffers");function a(b){oi(b),b.cdata!==""&&(ze(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(ze(b,"onscript",b.script),b.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){ai(this)},"end"),write:Ge,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var c=e.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});function l(b,y){return new p(b,y)}r(l,"createStream");function p(b,y){if(!(this instanceof p))return new p(b,y);s.apply(this),this._parser=new n(b,y),this.writable=!0,this.readable=!0;var D=this;this._parser.onend=function(){D.emit("end")},this._parser.onerror=function(A){D.emit("error",A),D._parser.error=null},this._decoder=null,c.forEach(function(A){Object.defineProperty(D,"on"+A,{get:r(function(){return D._parser["on"+A]},"get"),set:r(function(ve){if(!ve)return D.removeAllListeners(A),D._parser["on"+A]=ve,ve;D.on(A,ve)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(b){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(b)){if(!this._decoder){var y=require("string_decoder").StringDecoder;this._decoder=new y("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},p.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},p.prototype.on=function(b,y){var D=this;return!D._parser["on"+b]&&c.indexOf(b)!==-1&&(D._parser["on"+b]=function(){var A=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);A.splice(0,0,b),D.emit.apply(D,A)}),s.prototype.on.call(D,b,y)};var f="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",T={xml:m,xmlns:h},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]/,L=/[:_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-]/,Y=/[#:_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]/,ne=/[#:_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 q(b){return b===" "||b===`
19
+ </Annotations>`),o}r(_b,"inferTypeFromTerm");function _E(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(_E,"isDataFieldWithForAction");function BE(e,t,n,i,o){let a;return!o.type&&t?a=_b(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(BE,"parseRecordType");function df(e,t,n,i,o,a,s){let c={$Type:BE(e,t,n,i,a),fullyQualifiedName:s,[xn]:n,__source:o};for(let l of a.propertyValues)(0,K.lazy)(c,l.name,()=>kb(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,K.lazy)(c,"annotations",Gb(e,a,c)),_E(c)&&(0,K.lazy)(c,"ActionTarget",()=>{var l,p;let f=e.unalias((l=c.Action)===null||l===void 0?void 0:l.toString()),u=n.actions[f];return u||(u=(p=e.getConvertedActionImport(f))===null||p===void 0?void 0:p.action),u||(u=e.getConvertedAction(f),u!=null&&u.isBound||(u=void 0)),u||e.logError(`${c.fullyQualifiedName}: Unable to resolve '${c.Action}' ('${f}')`),u}),c}r(df,"parseRecord");function HE(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}r(HE,"getOrInferCollectionType");function Bb(e,t,n,i,o,a,s){switch(HE(a)){case"PropertyPath":return a.map((l,p)=>$b(e,l,`${s}/${p}`,t,n));case"Path":return a.map(l=>Yt(e,t,l.Path,n).target);case"AnnotationPath":return a.map((l,p)=>Mb(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>Ub(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>df(e,n,t,i,o,l,`${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(l=>l);case"String":return a.map(l=>typeof l=="string"||l===void 0?l:l.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(Bb,"parseCollection");function GE(e){return!!e.targetTypeName}r(GE,"isV4NavigationProperty");function WE(e,t,n){var i;let o;if(n.record)o=df(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=kb(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=Bb(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[xn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,Ks.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Gb(e,n,o))}catch{}return o}r(WE,"convertAnnotation");var gf=class gf{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,K.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,Wb)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,K.addGetByValue)(i,"name"),(0,K.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,K.alias)(Ks.VocabularyReferences,t);return(0,K.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,K.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(gf,"Converter");var ff=gf;function rr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(rr,"resolveEntityType");function Hb(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,K.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(Hb,"resolveNavigationPropertyBindings");function si(e,t){let n=t.annotations;return()=>Xs(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(si,"resolveAnnotations");function Gb(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[xn]=n[xn],a.fullyQualifiedName=`${i}@${a.term}`}),Xs(e,n,o??[])}}r(Gb,"resolveAnnotationsOnAnnotation");function Xs(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),c=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(c)||(i[a]._keys.push(c),(0,K.lazy)(i[a],c,()=>e.getConvertedElement(o.fullyQualifiedName,o,(l,p)=>WE(l,t,p)))),i},{})}r(Xs,"createAnnotationsObject");function Wb(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Kb)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Qb)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Jb)),n}r(Wb,"convertEntityContainer");function Qb(e,t){let n=t;(0,K.lazy)(n,"entityType",rr(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",si(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Hb(e,i)),n}r(Qb,"convertSingleton");function Kb(e,t){let n=t;(0,K.lazy)(n,"entityType",rr(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",si(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Hb(e,i)),n}r(Kb,"convertEntitySet");function QE(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,uf)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,uf)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Xb)),(0,K.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=Yt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(QE,"convertEntityType");function uf(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(uf,"convertProperty");function Xb(e,t){var n,i,o,a,s;let c=t;if(c.referentialConstraint=(n=c.referentialConstraint)!==null&&n!==void 0?n:[],c.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(f=>f.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(c.referentialConstraint=(o=(i=p.collection)===null||i===void 0?void 0:i.map(f=>{var u,m;let h=(u=f.propertyValues.find(E=>E.name==="ReferencedProperty"))===null||u===void 0?void 0:u.value,T="";if(h.PropertyPath){let E=h.PropertyPath.split("/");E.shift(),T=E.join("/")}return{sourceProperty:((m=f.propertyValues.find(E=>E.name==="Property"))===null||m===void 0?void 0:m.value).PropertyPath,targetTypeName:c.targetTypeName,targetProperty:T}}))!==null&&o!==void 0?o:[])}if(!GE(t)){let l=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);c.isCollection=(l==null?void 0:l.multiplicity)==="*",c.targetTypeName=(s=l==null?void 0:l.type)!==null&&s!==void 0?s:""}return(0,K.lazy)(c,"targetType",rr(e,t.targetTypeName)),(0,K.lazy)(c,"annotations",si(e,t)),c}r(Xb,"convertNavigationProperty");function Jb(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),(0,K.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(Jb,"convertActionImport");function KE(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",rr(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",rr(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,XE)),(0,K.lazy)(n,"annotations",()=>{let i=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xs(e,t,a)}),n}r(KE,"convertAction");function XE(e,t){let n=t;return(0,K.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,K.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xs(e,t,a)}),n}r(XE,"convertActionParameter");function JE(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,uf)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Xb)),(0,K.lazy)(n,"annotations",si(e,t)),n}r(JE,"convertComplexType");function qE(e,t){let n=t;return(0,K.lazy)(n,"annotations",si(e,t)),n}r(qE,"convertTypeDefinition");function zE(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Ks.VocabularyReferences,diagnostics:[]},n=new ff(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Wb)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Kb)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Qb)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,QE)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,KE)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,JE)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Jb)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,qE)),t.resolvePath=r(function(o){let a=Yt(n,void 0,o);return a.target&&ri(a.objectPath,a.target),a},"resolvePath"),t}r(zE,"convert");Js.convert=zE});var eT=we(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.revertTermToGenericType=void 0;var mf=Qs();function YE(e,t){var n,i,o,a,s,c,l;let p;if(Array.isArray(t)){let f=t[0],u=!1;if(f&&typeof f=="string"){let m=f.valueOf().split(".");m.length>1&&e.find(h=>h.alias===m[0])&&(u=mf.EnumIsFlag[(0,mf.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>qs(e,m))}}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(!((o=t.isString)===null||o===void 0)&&o.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[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()}:!((c=t.isDate)===null||c===void 0)&&c.call(t)?p={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.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:qs(e,t)});return p}r(YE,"revertObjectToRawType");function zb(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=YE(e,t);break}return n}r(zb,"revertValueToRawType");var ZE=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Yb(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(o=>o!=="_keys").forEach(o=>{let a=Zb(e,t[i][o]);if(!a.term){let s=(0,mf.unalias)(e,`${i}.${o}`);if(s){let c=s.split("#");a.term=c[0],c.length>1&&(a.qualifier=c[1])}}n.push(a)})})}r(Yb,"revertAnnotationsToRawType");function qs(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(ZE.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:zb(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Yb(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}}r(qs,"revertCollectionItemToRawType");function Zb(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=[],Yb(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>qs(e,i))}):t.hasOwnProperty("$Type")?{...n,record:qs(e,t)}:{...n,value:zb(e,t)}}r(Zb,"revertTermToGenericType");zs.revertTermToGenericType=Zb});var tT=we(ci=>{"use strict";var ex=ci&&ci.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),yf=ci&&ci.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ex(t,e,n)};Object.defineProperty(ci,"__esModule",{value:!0});yf(qb(),ci);yf(Qs(),ci);yf(eT(),ci)});var vf=we(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.MergedRawMetadata=Oi.RawMetadataInstance=Oi.ensureArray=void 0;function tx(e){return e==null?[]:Array.isArray(e)?e:[e]}r(tx,"ensureArray");Oi.ensureArray=tx;var Tf=class Tf{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(Tf,"RawMetadataInstance");var hf=Tf;Oi.RawMetadataInstance=hf;var Sf=class Sf{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))}};r(Sf,"MergedRawMetadata");var bf=Sf;Oi.MergedRawMetadata=bf});var nT=we(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.merge=void 0;var nx=vf();function ix(...e){let t=new nx.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(ix,"merge");Ys.merge=ix});var iT=we(Zs=>{(function(e){e.parser=function(b,y){return new n(b,y)},e.SAXParser=n,e.SAXStream=p,e.createStream=l,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(b,y){if(!(this instanceof n))return new n(b,y);var D=this;o(D),D.q=D.c="",D.bufferCheckPosition=e.MAX_BUFFER_LENGTH,D.opt=y||{},D.opt.lowercase=D.opt.lowercase||D.opt.lowercasetags,D.looseCase=D.opt.lowercase?"toLowerCase":"toUpperCase",D.tags=[],D.closed=D.closedRoot=D.sawRoot=!1,D.tag=D.error=null,D.strict=!!b,D.noscript=!!(b||D.opt.noscript),D.state=P.BEGIN,D.strictEntities=D.opt.strictEntities,D.ENTITIES=D.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),D.attribList=[],D.opt.xmlns&&(D.ns=Object.create(T)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!b),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),Xe(D,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(b){function y(){}r(y,"F"),y.prototype=b;var D=new y;return D}),Object.keys||(Object.keys=function(b){var y=[];for(var D in b)b.hasOwnProperty(D)&&y.push(D);return y});function i(b){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),D=0,A=0,ve=t.length;A<ve;A++){var et=b[t[A]].length;if(et>y)switch(t[A]){case"textNode":oi(b);break;case"cdata":ze(b,"oncdata",b.cdata),b.cdata="";break;case"script":ze(b,"onscript",b.script),b.script="";break;default:st(b,"Max buffer length exceeded: "+t[A])}D=Math.max(D,et)}var We=e.MAX_BUFFER_LENGTH-D;b.bufferCheckPosition=We+b.position}r(i,"checkBufferLength");function o(b){for(var y=0,D=t.length;y<D;y++)b[t[y]]=""}r(o,"clearBuffers");function a(b){oi(b),b.cdata!==""&&(ze(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(ze(b,"onscript",b.script),b.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){ai(this)},"end"),write:Ge,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var c=e.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});function l(b,y){return new p(b,y)}r(l,"createStream");function p(b,y){if(!(this instanceof p))return new p(b,y);s.apply(this),this._parser=new n(b,y),this.writable=!0,this.readable=!0;var D=this;this._parser.onend=function(){D.emit("end")},this._parser.onerror=function(A){D.emit("error",A),D._parser.error=null},this._decoder=null,c.forEach(function(A){Object.defineProperty(D,"on"+A,{get:r(function(){return D._parser["on"+A]},"get"),set:r(function(ve){if(!ve)return D.removeAllListeners(A),D._parser["on"+A]=ve,ve;D.on(A,ve)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(b){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(b)){if(!this._decoder){var y=require("string_decoder").StringDecoder;this._decoder=new y("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},p.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},p.prototype.on=function(b,y){var D=this;return!D._parser["on"+b]&&c.indexOf(b)!==-1&&(D._parser["on"+b]=function(){var A=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);A.splice(0,0,b),D.emit.apply(D,A)}),s.prototype.on.call(D,b,y)};var f="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",T={xml:m,xmlns:h},E=/[:_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]/,L=/[:_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-]/,Y=/[#:_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]/,ne=/[#:_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 q(b){return b===" "||b===`
20
20
  `||b==="\r"||b===" "}r(q,"isWhitespace");function ue(b){return b==='"'||b==="'"}r(ue,"isQuote");function ie(b){return b===">"||q(b)}r(ie,"isAttribEnd");function fe(b,y){return b.test(y)}r(fe,"isMatch");function Ve(b,y){return!fe(b,y)}r(Ve,"notMatch");var P=0;e.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},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(b){var y=e.ENTITIES[b],D=typeof y=="number"?String.fromCharCode(y):y;e.ENTITIES[b]=D});for(var ke in e.STATE)e.STATE[e.STATE[ke]]=ke;P=e.STATE;function Xe(b,y,D){b[y]&&b[y](D)}r(Xe,"emit");function ze(b,y,D){b.textNode&&oi(b),Xe(b,y,D)}r(ze,"emitNode");function oi(b){b.textNode=Nt(b.opt,b.textNode),b.textNode&&Xe(b,"ontext",b.textNode),b.textNode=""}r(oi,"closeText");function Nt(b,y){return b.trim&&(y=y.trim()),b.normalize&&(y=y.replace(/\s+/g," ")),y}r(Nt,"textopts");function st(b,y){return oi(b),b.trackPosition&&(y+=`
21
21
  Line: `+b.line+`
22
22
  Column: `+b.column+`
@@ -24,9 +24,9 @@ Char: `+b.c),y=new Error(y),b.error=y,Xe(b,"onerror",y),b}r(st,"error");function
24
24
  Actual: `+b.attribValue);else if(A==="xmlns"&&b.attribValue!==h)be(b,"xmlns: prefix must be bound to "+h+`
25
25
  Actual: `+b.attribValue);else{var ve=b.tag,et=b.tags[b.tags.length-1]||b;ve.ns===et.ns&&(ve.ns=Object.create(et.ns)),ve.ns[A]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,ze(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}r(Cn,"attrib");function zt(b,y){if(b.opt.xmlns){var D=b.tag,A=sn(b.tagName);D.prefix=A.prefix,D.local=A.local,D.uri=D.ns[A.prefix]||"",D.prefix&&!D.uri&&(be(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),D.uri=A.prefix);var ve=b.tags[b.tags.length-1]||b;D.ns&&ve.ns!==D.ns&&Object.keys(D.ns).forEach(function(Zo){ze(b,"onopennamespace",{prefix:Zo,uri:D.ns[Zo]})});for(var et=0,We=b.attribList.length;et<We;et++){var Tt=b.attribList[et],Pt=Tt[0],Un=Tt[1],lt=sn(Pt,!0),cn=lt.prefix,ws=lt.local,Ya=cn===""?"":D.ns[cn]||"",Yo={name:Pt,value:Un,prefix:cn,local:ws,uri:Ya};cn&&cn!=="xmlns"&&!Ya&&(be(b,"Unbound namespace prefix: "+JSON.stringify(cn)),Yo.uri=cn),b.tag.attributes[Pt]=Yo,ze(b,"onattribute",Yo)}b.attribList.length=0}b.tag.isSelfClosing=!!y,b.sawRoot=!0,b.tags.push(b.tag),ze(b,"onopentag",b.tag),y||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=P.SCRIPT:b.state=P.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}r(zt,"openTag");function ct(b){if(!b.tagName){be(b,"Weird empty close tag."),b.textNode+="</>",b.state=P.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=P.SCRIPT;return}ze(b,"onscript",b.script),b.script=""}var y=b.tags.length,D=b.tagName;b.strict||(D=D[b.looseCase]());for(var A=D;y--;){var ve=b.tags[y];if(ve.name!==A)be(b,"Unexpected close tag");else break}if(y<0){be(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=P.TEXT;return}b.tagName=D;for(var et=b.tags.length;et-- >y;){var We=b.tag=b.tags.pop();b.tagName=b.tag.name,ze(b,"onclosetag",b.tagName);var Tt={};for(var Pt in We.ns)Tt[Pt]=We.ns[Pt];var Un=b.tags[b.tags.length-1]||b;b.opt.xmlns&&We.ns!==Un.ns&&Object.keys(We.ns).forEach(function(lt){var cn=We.ns[lt];ze(b,"onclosenamespace",{prefix:lt,uri:cn})})}y===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=P.TEXT}r(ct,"closeTag");function oe(b){var y=b.entity,D=y.toLowerCase(),A,ve="";return b.ENTITIES[y]?b.ENTITIES[y]:b.ENTITIES[D]?b.ENTITIES[D]:(y=D,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),A=parseInt(y,16),ve=A.toString(16)):(y=y.slice(1),A=parseInt(y,10),ve=A.toString(10))),y=y.replace(/^0+/,""),isNaN(A)||ve.toLowerCase()!==y?(be(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(A))}r(oe,"parseEntity");function Dt(b,y){y==="<"?(b.state=P.OPEN_WAKA,b.startTagPosition=b.position):q(y)||(be(b,"Non-whitespace before first tag."),b.textNode=y,b.state=P.TEXT)}r(Dt,"beginWhiteSpace");function ro(b,y){var D="";return y<b.length&&(D=b.charAt(y)),D}r(ro,"charAt");function Ge(b){var y=this;if(this.error)throw this.error;if(y.closed)return st(y,"Cannot write after close. Assign an onready handler.");if(b===null)return ai(y);typeof b=="object"&&(b=b.toString());for(var D=0,A="";A=ro(b,D++),y.c=A,!!A;)switch(y.trackPosition&&(y.position++,A===`
26
26
  `?(y.line++,y.column=0):y.column++),y.state){case P.BEGIN:if(y.state=P.BEGIN_WHITESPACE,A==="\uFEFF")continue;Dt(y,A);continue;case P.BEGIN_WHITESPACE:Dt(y,A);continue;case P.TEXT:if(y.sawRoot&&!y.closedRoot){for(var ve=D-1;A&&A!=="<"&&A!=="&";)A=ro(b,D++),A&&y.trackPosition&&(y.position++,A===`
27
- `?(y.line++,y.column=0):y.column++);y.textNode+=b.substring(ve,D-1)}A==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!q(A)&&(!y.sawRoot||y.closedRoot)&&be(y,"Text data outside of root node."),A==="&"?y.state=P.TEXT_ENTITY:y.textNode+=A);continue;case P.SCRIPT:A==="<"?y.state=P.SCRIPT_ENDING:y.script+=A;continue;case P.SCRIPT_ENDING:A==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+A,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(A==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!q(A))if(fe(F,A))y.state=P.OPEN_TAG,y.tagName=A;else if(A==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(A==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(be(y,"Unencoded <"),y.startTagPosition+1<y.position){var et=y.position-y.startTagPosition;A=new Array(et).join(" ")+A}y.textNode+="<"+A,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+A==="--"){y.state=P.COMMENT,y.comment="",y.sgmlDecl="";continue}y.doctype&&y.doctype!==!0&&y.sgmlDecl?(y.state=P.DOCTYPE_DTD,y.doctype+="<!"+y.sgmlDecl+A,y.sgmlDecl=""):(y.sgmlDecl+A).toUpperCase()===f?(ze(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+A).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&be(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):A===">"?(ze(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(ue(A)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=A);continue;case P.SGML_DECL_QUOTED:A===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=A;continue;case P.DOCTYPE:A===">"?(y.state=P.TEXT,ze(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=A,A==="["?y.state=P.DOCTYPE_DTD:ue(A)&&(y.state=P.DOCTYPE_QUOTED,y.q=A));continue;case P.DOCTYPE_QUOTED:y.doctype+=A,A===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:A==="]"?(y.doctype+=A,y.state=P.DOCTYPE):A==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):ue(A)?(y.doctype+=A,y.state=P.DOCTYPE_DTD_QUOTED,y.q=A):y.doctype+=A;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=A,A===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:A==="-"?y.state=P.COMMENT_ENDING:y.comment+=A;continue;case P.COMMENT_ENDING:A==="-"?(y.state=P.COMMENT_ENDED,y.comment=Nt(y.opt,y.comment),y.comment&&ze(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+A,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:A!==">"?(be(y,"Malformed comment"),y.comment+="--"+A,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:A==="]"?y.state=P.CDATA_ENDING:y.cdata+=A;continue;case P.CDATA_ENDING:A==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+A,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:A===">"?(y.cdata&&ze(y,"oncdata",y.cdata),ze(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):A==="]"?y.cdata+="]":(y.cdata+="]]"+A,y.state=P.CDATA);continue;case P.PROC_INST:A==="?"?y.state=P.PROC_INST_ENDING:q(A)?y.state=P.PROC_INST_BODY:y.procInstName+=A;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&q(A))continue;A==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=A;continue;case P.PROC_INST_ENDING:A===">"?(ze(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+A,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:fe(L,A)?y.tagName+=A:(Ut(y),A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:(q(A)||be(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:A===">"?(zt(y,!0),ct(y)):(be(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(q(A))continue;A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:fe(F,A)?(y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):be(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:A==="="?y.state=P.ATTRIB_VALUE:A===">"?(be(y,"Attribute without value"),y.attribValue=y.attribName,Cn(y),zt(y)):q(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:fe(L,A)?y.attribName+=A:be(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(A==="=")y.state=P.ATTRIB_VALUE;else{if(q(A))continue;be(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",ze(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",A===">"?zt(y):fe(F,A)?(y.attribName=A,y.state=P.ATTRIB_NAME):(be(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(q(A))continue;ue(A)?(y.q=A,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||st(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=A);continue;case P.ATTRIB_VALUE_QUOTED:if(A!==y.q){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=A;continue}Cn(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:q(A)?y.state=P.ATTRIB:A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:fe(F,A)?(be(y,"No whitespace between attributes"),y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):be(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!ie(A)){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=A;continue}Cn(y),A===">"?zt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?ct(y):fe(L,A)?y.tagName+=A:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(q(A)||be(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(q(A))continue;Ve(F,A)?y.script?(y.script+="</"+A,y.state=P.SCRIPT):be(y,"Invalid tagname in closing tag."):y.tagName=A}continue;case P.CLOSE_TAG_SAW_WHITE:if(q(A))continue;A===">"?ct(y):be(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var We,Tt;switch(y.state){case P.TEXT_ENTITY:We=P.TEXT,Tt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:We=P.ATTRIB_VALUE_QUOTED,Tt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:We=P.ATTRIB_VALUE_UNQUOTED,Tt="attribValue";break}if(A===";"){var Pt=oe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Pt)?(y.entity="",y.state=We,y.write(Pt)):(y[Tt]+=Pt,y.entity="",y.state=We)}else fe(y.entity.length?ne:Y,A)?y.entity+=A:(be(y,"Invalid character in entity name"),y[Tt]+="&"+y.entity+A,y.entity="",y.state=We);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(Ge,"write");String.fromCodePoint||(function(){var b=String.fromCharCode,y=Math.floor,D=r(function(){var A=16384,ve=[],et,We,Tt=-1,Pt=arguments.length;if(!Pt)return"";for(var Un="";++Tt<Pt;){var lt=Number(arguments[Tt]);if(!isFinite(lt)||lt<0||lt>1114111||y(lt)!==lt)throw RangeError("Invalid code point: "+lt);lt<=65535?ve.push(lt):(lt-=65536,et=(lt>>10)+55296,We=lt%1024+56320,ve.push(et,We)),(Tt+1===Pt||ve.length>A)&&(Un+=b.apply(null,ve),ve.length=0)}return Un},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D})()})(typeof Zs>"u"?Zs.sax={}:Zs)});var ec=we((fj,oT)=>{oT.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var tc=we((dj,aT)=>{var ox=ec().isArray;aT.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!ox(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Af=we((mj,dT)=>{var ax=iT(),rx={on:r(function(){},"on"),parse:r(function(){},"parse")},Pe=tc(),aa=ec().isArray,I,Pf=!0,ge;function sx(e){return I=Pe.copyOptions(e),Pe.ensureFlagExists("ignoreDeclaration",I),Pe.ensureFlagExists("ignoreInstruction",I),Pe.ensureFlagExists("ignoreAttributes",I),Pe.ensureFlagExists("ignoreText",I),Pe.ensureFlagExists("ignoreComment",I),Pe.ensureFlagExists("ignoreCdata",I),Pe.ensureFlagExists("ignoreDoctype",I),Pe.ensureFlagExists("compact",I),Pe.ensureFlagExists("alwaysChildren",I),Pe.ensureFlagExists("addParent",I),Pe.ensureFlagExists("trim",I),Pe.ensureFlagExists("nativeType",I),Pe.ensureFlagExists("nativeTypeAttributes",I),Pe.ensureFlagExists("sanitize",I),Pe.ensureFlagExists("instructionHasAttributes",I),Pe.ensureFlagExists("captureSpacesBetweenElements",I),Pe.ensureAlwaysArrayExists(I),Pe.ensureKeyExists("declaration",I),Pe.ensureKeyExists("instruction",I),Pe.ensureKeyExists("attributes",I),Pe.ensureKeyExists("text",I),Pe.ensureKeyExists("comment",I),Pe.ensureKeyExists("cdata",I),Pe.ensureKeyExists("doctype",I),Pe.ensureKeyExists("type",I),Pe.ensureKeyExists("name",I),Pe.ensureKeyExists("elements",I),Pe.ensureKeyExists("parent",I),Pe.checkFnExists("doctype",I),Pe.checkFnExists("instruction",I),Pe.checkFnExists("cdata",I),Pe.checkFnExists("comment",I),Pe.checkFnExists("text",I),Pe.checkFnExists("instructionName",I),Pe.checkFnExists("elementName",I),Pe.checkFnExists("attributeName",I),Pe.checkFnExists("attributeValue",I),Pe.checkFnExists("attributes",I),I}r(sx,"validateOptions");function fT(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(fT,"nativeType");function sr(e,t){var n;if(I.compact){if(!ge[I[e+"Key"]]&&(aa(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(ge[I[e+"Key"]]=[]),ge[I[e+"Key"]]&&!aa(ge[I[e+"Key"]])&&(ge[I[e+"Key"]]=[ge[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,ge)),e==="instruction"&&("instructionFn"in I||"instructionNameFn"in I)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in I)t[n]=I.instructionFn(t[n],n,ge);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,ge)]=i}}aa(ge[I[e+"Key"]])?ge[I[e+"Key"]].push(t):ge[I[e+"Key"]]=t}else{ge[I.elementsKey]||(ge[I.elementsKey]=[]);var o={};if(o[I.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[I.nameKey]="instructionNameFn"in I?I.instructionNameFn(n,t,ge):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,ge))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,ge)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,ge)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=ge),ge[I.elementsKey].push(o)}}r(sr,"addField");function uT(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,ge)),(I.trim||"attributeValueFn"in I||"attributeNameFn"in I||I.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(I.trim&&(e[t]=e[t].trim()),I.nativeTypeAttributes&&(e[t]=fT(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,ge)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],ge)]=n}}return e}r(uT,"manipulateAttributes");function cx(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||I.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=uT(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;ge[I.declarationKey]={},Object.keys(t).length&&(ge[I.declarationKey][I.attributesKey]=t),I.addParent&&(ge[I.declarationKey][I.parentKey]=ge)}else{if(I.ignoreInstruction)return;I.trim&&(e.body=e.body.trim());var o={};I.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][I.attributesKey]=t):o[e.name]=e.body,sr("instruction",o)}}r(cx,"onInstruction");function rT(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=uT(t),"elementNameFn"in I&&(e=I.elementNameFn(e,ge)),I.compact){if(n={},!I.ignoreAttributes&&t&&Object.keys(t).length){n[I.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[I.attributesKey][i]=t[i])}!(e in ge)&&(aa(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(ge[e]=[]),ge[e]&&!aa(ge[e])&&(ge[e]=[ge[e]]),aa(ge[e])?ge[e].push(n):ge[e]=n}else ge[I.elementsKey]||(ge[I.elementsKey]=[]),n={},n[I.typeKey]="element",n[I.nameKey]=e,!I.ignoreAttributes&&t&&Object.keys(t).length&&(n[I.attributesKey]=t),I.alwaysChildren&&(n[I.elementsKey]=[]),ge[I.elementsKey].push(n);n[I.parentKey]=ge,ge=n}r(rT,"onStartElement");function sT(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=fT(e)),I.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),sr("text",e))}r(sT,"onText");function cT(e){I.ignoreComment||(I.trim&&(e=e.trim()),sr("comment",e))}r(cT,"onComment");function lT(e){var t=ge[I.parentKey];I.addParent||delete ge[I.parentKey],ge=t}r(lT,"onEndElement");function lx(e){I.ignoreCdata||(I.trim&&(e=e.trim()),sr("cdata",e))}r(lx,"onCdata");function px(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),sr("doctype",e))}r(px,"onDoctype");function pT(e){e.note=e}r(pT,"onError");dT.exports=function(e,t){var n=Pf?ax.parser(!0,{}):n=new rx.Parser("UTF-8"),i={};if(ge=i,I=sx(t),Pf?(n.opt={strictEntities:!0},n.onopentag=rT,n.ontext=sT,n.oncomment=cT,n.onclosetag=lT,n.onerror=pT,n.oncdata=lx,n.ondoctype=px,n.onprocessinginstruction=cx):(n.on("startElement",rT),n.on("text",sT),n.on("comment",cT),n.on("endElement",lT),n.on("error",pT)),Pf)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[I.elementsKey]){var o=i[I.elementsKey];delete i[I.elementsKey],i[I.elementsKey]=o,delete i.text}return i}});var yT=we((hj,mT)=>{var gT=tc(),fx=Af();function ux(e){var t=gT.copyOptions(e);return gT.ensureSpacesExists(t),t}r(ux,"validateOptions");mT.exports=function(e,t){var n,i,o,a;return n=ux(t),i=fx(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,c){return s===a?"_":c},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Ef=we((Tj,ET)=>{var Ce=tc(),dx=ec().isArray,Ct,Et;function gx(e){var t=Ce.copyOptions(e);return Ce.ensureFlagExists("ignoreDeclaration",t),Ce.ensureFlagExists("ignoreInstruction",t),Ce.ensureFlagExists("ignoreAttributes",t),Ce.ensureFlagExists("ignoreText",t),Ce.ensureFlagExists("ignoreComment",t),Ce.ensureFlagExists("ignoreCdata",t),Ce.ensureFlagExists("ignoreDoctype",t),Ce.ensureFlagExists("compact",t),Ce.ensureFlagExists("indentText",t),Ce.ensureFlagExists("indentCdata",t),Ce.ensureFlagExists("indentAttributes",t),Ce.ensureFlagExists("indentInstruction",t),Ce.ensureFlagExists("fullTagEmptyElement",t),Ce.ensureFlagExists("noQuotesForNativeAttributes",t),Ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Ce.ensureKeyExists("declaration",t),Ce.ensureKeyExists("instruction",t),Ce.ensureKeyExists("attributes",t),Ce.ensureKeyExists("text",t),Ce.ensureKeyExists("comment",t),Ce.ensureKeyExists("cdata",t),Ce.ensureKeyExists("doctype",t),Ce.ensureKeyExists("type",t),Ce.ensureKeyExists("name",t),Ce.ensureKeyExists("elements",t),Ce.checkFnExists("doctype",t),Ce.checkFnExists("instruction",t),Ce.checkFnExists("cdata",t),Ce.checkFnExists("comment",t),Ce.checkFnExists("text",t),Ce.checkFnExists("instructionName",t),Ce.checkFnExists("elementName",t),Ce.checkFnExists("attributeName",t),Ce.checkFnExists("attributeValue",t),Ce.checkFnExists("attributes",t),Ce.checkFnExists("fullTagEmptyElement",t),t}r(gx,"validateOptions");function _n(e,t,n){return(!n&&e.spaces?`
27
+ `?(y.line++,y.column=0):y.column++);y.textNode+=b.substring(ve,D-1)}A==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!q(A)&&(!y.sawRoot||y.closedRoot)&&be(y,"Text data outside of root node."),A==="&"?y.state=P.TEXT_ENTITY:y.textNode+=A);continue;case P.SCRIPT:A==="<"?y.state=P.SCRIPT_ENDING:y.script+=A;continue;case P.SCRIPT_ENDING:A==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+A,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(A==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!q(A))if(fe(E,A))y.state=P.OPEN_TAG,y.tagName=A;else if(A==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(A==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(be(y,"Unencoded <"),y.startTagPosition+1<y.position){var et=y.position-y.startTagPosition;A=new Array(et).join(" ")+A}y.textNode+="<"+A,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+A==="--"){y.state=P.COMMENT,y.comment="",y.sgmlDecl="";continue}y.doctype&&y.doctype!==!0&&y.sgmlDecl?(y.state=P.DOCTYPE_DTD,y.doctype+="<!"+y.sgmlDecl+A,y.sgmlDecl=""):(y.sgmlDecl+A).toUpperCase()===f?(ze(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+A).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&be(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):A===">"?(ze(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(ue(A)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=A);continue;case P.SGML_DECL_QUOTED:A===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=A;continue;case P.DOCTYPE:A===">"?(y.state=P.TEXT,ze(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=A,A==="["?y.state=P.DOCTYPE_DTD:ue(A)&&(y.state=P.DOCTYPE_QUOTED,y.q=A));continue;case P.DOCTYPE_QUOTED:y.doctype+=A,A===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:A==="]"?(y.doctype+=A,y.state=P.DOCTYPE):A==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):ue(A)?(y.doctype+=A,y.state=P.DOCTYPE_DTD_QUOTED,y.q=A):y.doctype+=A;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=A,A===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:A==="-"?y.state=P.COMMENT_ENDING:y.comment+=A;continue;case P.COMMENT_ENDING:A==="-"?(y.state=P.COMMENT_ENDED,y.comment=Nt(y.opt,y.comment),y.comment&&ze(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+A,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:A!==">"?(be(y,"Malformed comment"),y.comment+="--"+A,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:A==="]"?y.state=P.CDATA_ENDING:y.cdata+=A;continue;case P.CDATA_ENDING:A==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+A,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:A===">"?(y.cdata&&ze(y,"oncdata",y.cdata),ze(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):A==="]"?y.cdata+="]":(y.cdata+="]]"+A,y.state=P.CDATA);continue;case P.PROC_INST:A==="?"?y.state=P.PROC_INST_ENDING:q(A)?y.state=P.PROC_INST_BODY:y.procInstName+=A;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&q(A))continue;A==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=A;continue;case P.PROC_INST_ENDING:A===">"?(ze(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+A,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:fe(L,A)?y.tagName+=A:(Ut(y),A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:(q(A)||be(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:A===">"?(zt(y,!0),ct(y)):(be(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(q(A))continue;A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:fe(E,A)?(y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):be(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:A==="="?y.state=P.ATTRIB_VALUE:A===">"?(be(y,"Attribute without value"),y.attribValue=y.attribName,Cn(y),zt(y)):q(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:fe(L,A)?y.attribName+=A:be(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(A==="=")y.state=P.ATTRIB_VALUE;else{if(q(A))continue;be(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",ze(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",A===">"?zt(y):fe(E,A)?(y.attribName=A,y.state=P.ATTRIB_NAME):(be(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(q(A))continue;ue(A)?(y.q=A,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||st(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=A);continue;case P.ATTRIB_VALUE_QUOTED:if(A!==y.q){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=A;continue}Cn(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:q(A)?y.state=P.ATTRIB:A===">"?zt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:fe(E,A)?(be(y,"No whitespace between attributes"),y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):be(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!ie(A)){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=A;continue}Cn(y),A===">"?zt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?ct(y):fe(L,A)?y.tagName+=A:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(q(A)||be(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(q(A))continue;Ve(E,A)?y.script?(y.script+="</"+A,y.state=P.SCRIPT):be(y,"Invalid tagname in closing tag."):y.tagName=A}continue;case P.CLOSE_TAG_SAW_WHITE:if(q(A))continue;A===">"?ct(y):be(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var We,Tt;switch(y.state){case P.TEXT_ENTITY:We=P.TEXT,Tt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:We=P.ATTRIB_VALUE_QUOTED,Tt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:We=P.ATTRIB_VALUE_UNQUOTED,Tt="attribValue";break}if(A===";"){var Pt=oe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Pt)?(y.entity="",y.state=We,y.write(Pt)):(y[Tt]+=Pt,y.entity="",y.state=We)}else fe(y.entity.length?ne:Y,A)?y.entity+=A:(be(y,"Invalid character in entity name"),y[Tt]+="&"+y.entity+A,y.entity="",y.state=We);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(Ge,"write");String.fromCodePoint||(function(){var b=String.fromCharCode,y=Math.floor,D=r(function(){var A=16384,ve=[],et,We,Tt=-1,Pt=arguments.length;if(!Pt)return"";for(var Un="";++Tt<Pt;){var lt=Number(arguments[Tt]);if(!isFinite(lt)||lt<0||lt>1114111||y(lt)!==lt)throw RangeError("Invalid code point: "+lt);lt<=65535?ve.push(lt):(lt-=65536,et=(lt>>10)+55296,We=lt%1024+56320,ve.push(et,We)),(Tt+1===Pt||ve.length>A)&&(Un+=b.apply(null,ve),ve.length=0)}return Un},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D})()})(typeof Zs>"u"?Zs.sax={}:Zs)});var ec=we((fj,oT)=>{oT.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var tc=we((dj,aT)=>{var ox=ec().isArray;aT.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!ox(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Af=we((mj,dT)=>{var ax=iT(),rx={on:r(function(){},"on"),parse:r(function(){},"parse")},Pe=tc(),aa=ec().isArray,O,Pf=!0,ge;function sx(e){return O=Pe.copyOptions(e),Pe.ensureFlagExists("ignoreDeclaration",O),Pe.ensureFlagExists("ignoreInstruction",O),Pe.ensureFlagExists("ignoreAttributes",O),Pe.ensureFlagExists("ignoreText",O),Pe.ensureFlagExists("ignoreComment",O),Pe.ensureFlagExists("ignoreCdata",O),Pe.ensureFlagExists("ignoreDoctype",O),Pe.ensureFlagExists("compact",O),Pe.ensureFlagExists("alwaysChildren",O),Pe.ensureFlagExists("addParent",O),Pe.ensureFlagExists("trim",O),Pe.ensureFlagExists("nativeType",O),Pe.ensureFlagExists("nativeTypeAttributes",O),Pe.ensureFlagExists("sanitize",O),Pe.ensureFlagExists("instructionHasAttributes",O),Pe.ensureFlagExists("captureSpacesBetweenElements",O),Pe.ensureAlwaysArrayExists(O),Pe.ensureKeyExists("declaration",O),Pe.ensureKeyExists("instruction",O),Pe.ensureKeyExists("attributes",O),Pe.ensureKeyExists("text",O),Pe.ensureKeyExists("comment",O),Pe.ensureKeyExists("cdata",O),Pe.ensureKeyExists("doctype",O),Pe.ensureKeyExists("type",O),Pe.ensureKeyExists("name",O),Pe.ensureKeyExists("elements",O),Pe.ensureKeyExists("parent",O),Pe.checkFnExists("doctype",O),Pe.checkFnExists("instruction",O),Pe.checkFnExists("cdata",O),Pe.checkFnExists("comment",O),Pe.checkFnExists("text",O),Pe.checkFnExists("instructionName",O),Pe.checkFnExists("elementName",O),Pe.checkFnExists("attributeName",O),Pe.checkFnExists("attributeValue",O),Pe.checkFnExists("attributes",O),O}r(sx,"validateOptions");function fT(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(fT,"nativeType");function sr(e,t){var n;if(O.compact){if(!ge[O[e+"Key"]]&&(aa(O.alwaysArray)?O.alwaysArray.indexOf(O[e+"Key"])!==-1:O.alwaysArray)&&(ge[O[e+"Key"]]=[]),ge[O[e+"Key"]]&&!aa(ge[O[e+"Key"]])&&(ge[O[e+"Key"]]=[ge[O[e+"Key"]]]),e+"Fn"in O&&typeof t=="string"&&(t=O[e+"Fn"](t,ge)),e==="instruction"&&("instructionFn"in O||"instructionNameFn"in O)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in O)t[n]=O.instructionFn(t[n],n,ge);else{var i=t[n];delete t[n],t[O.instructionNameFn(n,i,ge)]=i}}aa(ge[O[e+"Key"]])?ge[O[e+"Key"]].push(t):ge[O[e+"Key"]]=t}else{ge[O.elementsKey]||(ge[O.elementsKey]=[]);var o={};if(o[O.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[O.nameKey]="instructionNameFn"in O?O.instructionNameFn(n,t,ge):n,O.instructionHasAttributes?(o[O.attributesKey]=t[n][O.attributesKey],"instructionFn"in O&&(o[O.attributesKey]=O.instructionFn(o[O.attributesKey],n,ge))):("instructionFn"in O&&(t[n]=O.instructionFn(t[n],n,ge)),o[O.instructionKey]=t[n])}else e+"Fn"in O&&(t=O[e+"Fn"](t,ge)),o[O[e+"Key"]]=t;O.addParent&&(o[O.parentKey]=ge),ge[O.elementsKey].push(o)}}r(sr,"addField");function uT(e){if("attributesFn"in O&&e&&(e=O.attributesFn(e,ge)),(O.trim||"attributeValueFn"in O||"attributeNameFn"in O||O.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(O.trim&&(e[t]=e[t].trim()),O.nativeTypeAttributes&&(e[t]=fT(e[t])),"attributeValueFn"in O&&(e[t]=O.attributeValueFn(e[t],t,ge)),"attributeNameFn"in O)){var n=e[t];delete e[t],e[O.attributeNameFn(t,e[t],ge)]=n}}return e}r(uT,"manipulateAttributes");function cx(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||O.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=uT(t)}if(e.name.toLowerCase()==="xml"){if(O.ignoreDeclaration)return;ge[O.declarationKey]={},Object.keys(t).length&&(ge[O.declarationKey][O.attributesKey]=t),O.addParent&&(ge[O.declarationKey][O.parentKey]=ge)}else{if(O.ignoreInstruction)return;O.trim&&(e.body=e.body.trim());var o={};O.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][O.attributesKey]=t):o[e.name]=e.body,sr("instruction",o)}}r(cx,"onInstruction");function rT(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=uT(t),"elementNameFn"in O&&(e=O.elementNameFn(e,ge)),O.compact){if(n={},!O.ignoreAttributes&&t&&Object.keys(t).length){n[O.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[O.attributesKey][i]=t[i])}!(e in ge)&&(aa(O.alwaysArray)?O.alwaysArray.indexOf(e)!==-1:O.alwaysArray)&&(ge[e]=[]),ge[e]&&!aa(ge[e])&&(ge[e]=[ge[e]]),aa(ge[e])?ge[e].push(n):ge[e]=n}else ge[O.elementsKey]||(ge[O.elementsKey]=[]),n={},n[O.typeKey]="element",n[O.nameKey]=e,!O.ignoreAttributes&&t&&Object.keys(t).length&&(n[O.attributesKey]=t),O.alwaysChildren&&(n[O.elementsKey]=[]),ge[O.elementsKey].push(n);n[O.parentKey]=ge,ge=n}r(rT,"onStartElement");function sT(e){O.ignoreText||!e.trim()&&!O.captureSpacesBetweenElements||(O.trim&&(e=e.trim()),O.nativeType&&(e=fT(e)),O.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),sr("text",e))}r(sT,"onText");function cT(e){O.ignoreComment||(O.trim&&(e=e.trim()),sr("comment",e))}r(cT,"onComment");function lT(e){var t=ge[O.parentKey];O.addParent||delete ge[O.parentKey],ge=t}r(lT,"onEndElement");function lx(e){O.ignoreCdata||(O.trim&&(e=e.trim()),sr("cdata",e))}r(lx,"onCdata");function px(e){O.ignoreDoctype||(e=e.replace(/^ /,""),O.trim&&(e=e.trim()),sr("doctype",e))}r(px,"onDoctype");function pT(e){e.note=e}r(pT,"onError");dT.exports=function(e,t){var n=Pf?ax.parser(!0,{}):n=new rx.Parser("UTF-8"),i={};if(ge=i,O=sx(t),Pf?(n.opt={strictEntities:!0},n.onopentag=rT,n.ontext=sT,n.oncomment=cT,n.onclosetag=lT,n.onerror=pT,n.oncdata=lx,n.ondoctype=px,n.onprocessinginstruction=cx):(n.on("startElement",rT),n.on("text",sT),n.on("comment",cT),n.on("endElement",lT),n.on("error",pT)),Pf)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[O.elementsKey]){var o=i[O.elementsKey];delete i[O.elementsKey],i[O.elementsKey]=o,delete i.text}return i}});var yT=we((hj,mT)=>{var gT=tc(),fx=Af();function ux(e){var t=gT.copyOptions(e);return gT.ensureSpacesExists(t),t}r(ux,"validateOptions");mT.exports=function(e,t){var n,i,o,a;return n=ux(t),i=fx(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,c){return s===a?"_":c},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Ef=we((Tj,ET)=>{var Ce=tc(),dx=ec().isArray,Ct,Et;function gx(e){var t=Ce.copyOptions(e);return Ce.ensureFlagExists("ignoreDeclaration",t),Ce.ensureFlagExists("ignoreInstruction",t),Ce.ensureFlagExists("ignoreAttributes",t),Ce.ensureFlagExists("ignoreText",t),Ce.ensureFlagExists("ignoreComment",t),Ce.ensureFlagExists("ignoreCdata",t),Ce.ensureFlagExists("ignoreDoctype",t),Ce.ensureFlagExists("compact",t),Ce.ensureFlagExists("indentText",t),Ce.ensureFlagExists("indentCdata",t),Ce.ensureFlagExists("indentAttributes",t),Ce.ensureFlagExists("indentInstruction",t),Ce.ensureFlagExists("fullTagEmptyElement",t),Ce.ensureFlagExists("noQuotesForNativeAttributes",t),Ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Ce.ensureKeyExists("declaration",t),Ce.ensureKeyExists("instruction",t),Ce.ensureKeyExists("attributes",t),Ce.ensureKeyExists("text",t),Ce.ensureKeyExists("comment",t),Ce.ensureKeyExists("cdata",t),Ce.ensureKeyExists("doctype",t),Ce.ensureKeyExists("type",t),Ce.ensureKeyExists("name",t),Ce.ensureKeyExists("elements",t),Ce.checkFnExists("doctype",t),Ce.checkFnExists("instruction",t),Ce.checkFnExists("cdata",t),Ce.checkFnExists("comment",t),Ce.checkFnExists("text",t),Ce.checkFnExists("instructionName",t),Ce.checkFnExists("elementName",t),Ce.checkFnExists("attributeName",t),Ce.checkFnExists("attributeValue",t),Ce.checkFnExists("attributes",t),Ce.checkFnExists("fullTagEmptyElement",t),t}r(gx,"validateOptions");function _n(e,t,n){return(!n&&e.spaces?`
28
28
  `:"")+Array(t+1).join(e.spaces)}r(_n,"writeIndentation");function nc(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Et,Ct));var i,o,a,s,c=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,o,Et,Ct):i,c.push(t.spaces&&t.indentAttributes?_n(t,n+1,!1):" "),c.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,Et,Ct):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(_n(t,n,!1)),c.join("")}r(nc,"writeAttributes");function hT(e,t,n){return Ct=e,Et="xml",t.ignoreDeclaration?"":"<?xml"+nc(e[t.attributesKey],t,n)+"?>"}r(hT,"writeDeclaration");function bT(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],Et,Ct):i;if(typeof e[i]=="object")return Ct=e,Et=o,"<?"+o+nc(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Et,Ct)),"<?"+o+(a?" "+a:"")+"?>"}r(bT,"writeInstruction");function TT(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Et,Ct):e)+"-->"}r(TT,"writeComment");function ST(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Et,Ct):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(ST,"writeCdata");function vT(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Et,Ct):e)+">"}r(vT,"writeDoctype");function Cf(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,Et,Ct):e)}r(Cf,"writeText");function mx(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}r(mx,"hasContent");function yx(e,t,n){Ct=e,Et=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(nc(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(PT(e[t.elementsKey],t,n+1)),Ct=e,Et=e.name),i.push(t.spaces&&mx(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(yx,"writeElement");function PT(e,t,n,i){return e.reduce(function(o,a){var s=_n(t,n,i&&!o);switch(a.type){case"element":return o+s+yx(a,t,n);case"comment":return o+s+TT(a[t.commentKey],t);case"doctype":return o+s+vT(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+ST(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Cf(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+bT(c,t,n)}},"")}r(PT,"writeElements");function AT(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}r(AT,"hasContentCompact");function hx(e,t,n,i,o){Ct=e,Et=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(">"+Cf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(nc(e[n.attributesKey],n,i));var c=AT(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(c||("fullTagEmptyElementFn"in n?c=n.fullTagEmptyElementFn(t,e):c=n.fullTagEmptyElement),c)s.push(">");else return s.push("/>"),s.join("")}return s.push(CT(e,n,i+1,!1)),Ct=e,Et=t,t&&s.push((o?_n(n,i,!1):"")+"</"+a+">"),s.join("")}r(hx,"writeElementCompact");function CT(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=dx(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(hT(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?_n(t,n,i):"")+bT(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?_n(t,n,i):"")+Cf(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?_n(t,n,i):"")+ST(s[o],t));break;case t.doctypeKey:c.push(_n(t,n,i)+vT(s[o],t));break;case t.commentKey:c.push(_n(t,n,i)+TT(s[o],t));break;default:c.push(_n(t,n,i)+hx(s[o],a,t,n,AT(s[o],t)))}i=i&&!c.length}return c.join("")}r(CT,"writeElementsCompact");ET.exports=function(e,t){t=gx(t);var n=[];return Ct=e,Et="_root_",t.compact?n.push(CT(e,t,0,!0)):(e[t.declarationKey]&&n.push(hT(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(PT(e[t.elementsKey],t,0,!n.length))),n.join("")}});var IT=we((vj,xT)=>{var bx=Ef();xT.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 bx(n,t)}});var cr=we((Pj,OT)=>{var Tx=Af(),Sx=yT(),vx=Ef(),Px=IT();OT.exports={xml2js:Tx,xml2json:Sx,js2xml:vx,json2xml:Px}});var RT=we(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.convertEntityTypeAnnotations=kt.convertPropertyAnnotations=kt.convertNavigationPropertyAnnotations=kt.convertEntitySetAnnotations=kt.convertGenericAnnotations=kt.convertV2Annotations=void 0;function Ax(e,t,n){let i=[];switch(t){case"EntitySet":VT(e,i);break;case"EntityType":DT(e,i);break;case"NavigationProperty":LT(e,n,i);break;case"Property":NT(e,n,i);break;case"Singleton":break;default:break}return FT(e,n,i),i}r(Ax,"convertV2Annotations");kt.convertV2Annotations=Ax;function FT(e,t,n){function i(o,a){o&&n.push(a)}if(r(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 o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}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}]}})}r(FT,"convertGenericAnnotations");kt.convertGenericAnnotations=FT;function VT(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"]}}]}})}r(VT,"convertEntitySetAnnotations");kt.convertEntitySetAnnotations=VT;function LT(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}}]}}}]}]}}]}})}r(LT,"convertNavigationPropertyAnnotations");kt.convertNavigationPropertyAnnotations=LT;function NT(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}]}}]}})}r(NT,"convertPropertyAnnotations");kt.convertPropertyAnnotations=NT;function DT(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:[]}}]}})}r(DT,"convertEntityTypeAnnotations");kt.convertEntityTypeAnnotations=DT});var kT=we(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.parse=void 0;var Cx=cr(),ye=vf(),sa=RT(),ac=/^Collection\((.+)\)$/;function Ex(e){return e.Type!==null&&e.Type!==void 0}r(Ex,"isV4NavProperty");function xx(e){return e.map(t=>t._attributes.Name)}r(xx,"getEntityTypeKeys");function $T(e,t,n,i){return e.reduce((o,a)=>{var s,c,l,p;let f={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ra(a._attributes.Type).type};if(a._attributes.MaxLength&&(f.maxLength=((c=(s=a._attributes.MaxLength)===null||s===void 0?void 0:s.toLowerCase)===null||c===void 0?void 0:c.call(s))==="max"?5e3:parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(f.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(((p=(l=a._attributes.Scale)===null||l===void 0?void 0:l.toLowerCase)===null||p===void 0?void 0:p.call(l))==="variable"?f.scale="variable":f.scale=parseInt(a._attributes.Scale,10)),f.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(f.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":f.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":f.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":f.defaultValue=a._attributes.DefaultValue==="true";break;default:f.defaultValue=a._attributes.DefaultValue;break}o.entityProperties.push(f),t.indexOf(f.name)!==-1&&o.entityKeys.push(f);let u=(0,sa.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return u.length>0&&i.push(Fi(f.fullyQualifiedName,u)),o},{entityProperties:[],entityKeys:[]})}r($T,"parseProperties");function Ix(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(Ix,"parseReferentialConstraint");function Ox(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,ye.ensureArray)(i.Principal.PropertyRef),c=(0,ye.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,ye.ensureArray)(i.Dependent.PropertyRef));for(let l of s){let p=s.indexOf(l);n.push({sourceTypeName:o.type,sourceProperty:l._attributes.Name,targetTypeName:a.type,targetProperty:c[p]._attributes.Name})}}return n},[])}r(Ox,"parseV2ReferentialConstraint");function MT(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(Ex(s)){let c=s.Type.match(ac),l=c!==null,p=Bn(c?c[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:l,targetTypeName:p,referentialConstraint:Ix((0,ye.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:c,ToRole:l,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:c,toRole:l,fromRole:p});let f=(0,sa.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(Fi(`${n}/${s.Name}`,f))}return o},[])}r(MT,"parseNavigationProperties");function Fx(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,ye.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(Fx,"parseAssociationSets");function Vx(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,ye.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:o,referentialConstraints:Ox((0,ye.ensureArray)(n.ReferentialConstraint),o)}})}r(Vx,"parseAssociations");function Lx(e,t,n){return e.reduce((i,o)=>{let a=o.Key?xx((0,ye.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=$T((0,ye.ensureArray)(o.Property),a,s,t),p=MT((0,ye.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},u=(0,sa.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(Fi(f.fullyQualifiedName,u)),i.push(f),i},[])}r(Lx,"parseEntityTypes");function Nx(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=$T((0,ye.ensureArray)(o.Property),[],a,t),c=MT((0,ye.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(Nx,"parseComplexTypes");function Dx(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(Dx,"parseTypeDefinitions");function Rx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ye.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Bn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,sa.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(Fi(c.fullyQualifiedName,l)),c})}r(Rx,"parseEntitySets");function jx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ye.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:Bn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,sa.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(Fi(c.fullyQualifiedName,l)),c})}r(jx,"parseSingletons");function jT(e,t,n){return e.map(i=>{let o=(0,ye.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>ra(l._attributes.Type).type).join(","):s=a?ra(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ra(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{var p,f,u,m;let{isCollection:h,type:T}=ra(l._attributes.Type),F={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:T,isCollection:h};return l._attributes.MaxLength&&(F.maxLength=((f=(p=l._attributes.MaxLength)===null||p===void 0?void 0:p.toLowerCase)===null||f===void 0?void 0:f.call(p))==="max"?5e3:parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(F.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(((m=(u=l._attributes.Scale)===null||u===void 0?void 0:u.toLowerCase)===null||m===void 0?void 0:m.call(u))==="variable"?F.scale="variable":F.scale=parseInt(l._attributes.Scale,10)),F.nullable=l._attributes.Nullable!=="false",F}),returnType:i.ReturnType?ra(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(ac)!==null:!1}})}r(jT,"parseActions");function wx(e,t,n,i,o){return e.map(a=>{let s=t.find(f=>f.name===a._attributes.EntitySet),c=`${i}/${a._attributes.Name}`,l=s==null?void 0:s.entityTypeName;if(a._attributes["sap:action-for"]){let f=n.find(u=>u.fullyQualifiedName===a._attributes["sap:action-for"]);f&&(l=f.fullyQualifiedName)}let p=(0,ye.ensureArray)(a.Parameter).map(f=>{let u=(0,sa.convertV2Annotations)(f._attributes,"ActionParameter",f._attributes.Name),m=`${c}/${f._attributes.Name}`;return u.length>0&&o.push(Fi(m,u)),{_type:"ActionParameter",name:f._attributes.Name,fullyQualifiedName:m,type:f._attributes.Type,isCollection:f._attributes.Type.match(/^Collection\(.+\)$/)!==null}});return{_type:"Action",name:a._attributes.Name,isBound:!1,sourceType:l??"",fullyQualifiedName:c,isFunction:!1,parameters:p,returnType:a._attributes.ReturnType?a._attributes.ReturnType:"",returnCollection:a._attributes.ReturnType?a._attributes.ReturnType.match(ac)!==null:!1}})}r(wx,"parseV2FunctionImport");function wT(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Bn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Bn(o)}})}r(wT,"parseActionImports");function $x(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,c={};if(a){let l=Object.keys(a).find(f=>f!=="Property");c.name=a.Property;let p=`${t}/${c.name}`;if(s&&Object.keys(s).length>0?c.value=oc(s,p,n,!1):l&&(c.value=UT({[l]:a[l]},p,n)),i.Annotation){let f=sc((0,ye.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(Fi(p,f))}}return c})}r($x,"parsePropertyValues");function rc(e,t,n){let i=sc((0,ye.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Bn(e._attributes.Type):void 0,propertyValues:$x((0,ye.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(rc,"parseRecord");function li(e,t){return e[t]!=null}r(li,"isExpressionOfType");function ic(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}}}r(ic,"parseModelPath");function If(e,t,n){if(li(e,"Record")){let i=(0,ye.ensureArray)(e.Record).map((o,a)=>rc(o,t+"/"+a,n));return i.type="Record",i}else if(li(e,"PropertyPath")){let i=(0,ye.ensureArray)(e.PropertyPath).map(o=>ic(o,"PropertyPath"));return i.type="PropertyPath",i}else if(li(e,"NavigationPropertyPath")){let i=(0,ye.ensureArray)(e.NavigationPropertyPath).map(o=>ic(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(li(e,"String")){let i=(0,ye.ensureArray)(e.String).map(o=>({type:"String",String:o._text}));return i.type="String",i}else if(li(e,"AnnotationPath")){let i=(0,ye.ensureArray)(e.AnnotationPath).map(o=>ic(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(li(e,"Path")){let i=(0,ye.ensureArray)(e.Path).map(o=>ic(o,"Path"));return i.type="Path",i}else if(li(e,"If")){let i=(0,ye.ensureArray)(e.If).map(o=>o._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[]}r(If,"parseCollection");function tt(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(o=>oc({[i]:o},"",[],!0))):n.push(oc({[i]:e[i]},"",[],!0))}),n}r(tt,"parseChildren");function UT(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 o=i[0];switch(o){case"String":return{type:"String",String:e[o]};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[o]};case"Collection":return{type:"Collection",Collection:If(e.Collection,t,n)};case"Record":return{type:"Record",Record:rc(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:tt(e.Apply),$Function:tt(e.Function)};case"And":return{type:"And",$And:tt(e.And)};case"Or":return{type:"Or",$Or:tt(e.Or)};case"Eq":return{type:"Eq",$Eq:tt(e.Eq)};case"Gt":return{type:"Gt",$Gt:tt(e.Gt)};case"Ge":return{type:"Ge",$Ge:tt(e.Ge)};case"Lt":return{type:"Lt",$Lt:tt(e.Lt)};case"Le":return{type:"Le",$Le:tt(e.Le)};case"If":return{type:"If",$If:tt(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(UT,"parseInlineExpression");function oc(e,t,n,i){let o=Object.keys(e).filter(s=>s!=="_text");if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[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:tt(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:If(e.Collection,t,n)};case"Record":return{type:"Record",Record:rc(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:tt(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:tt(e.And)};case"Ne":return{type:"Ne",$Ne:tt(e.Ne)};case"Not":return{type:"Not",$Not:tt(e.Not)[0]};case"Or":return{type:"Or",$Or:tt(e.Or)};case"Eq":return{type:"Eq",$Eq:tt(e.Eq)};case"If":return{type:"If",$If:tt(e.If)};case"Gt":return{type:"Gt",$Gt:tt(e.Gt)};case"Ge":return{type:"Ge",$Ge:tt(e.Ge)};case"Lt":return{type:"Lt",$Lt:tt(e.Lt)};case"Le":return{type:"Le",$Le:tt(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(oc,"parseExpression");function Mx(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Bn(i),qualifier:o},c=`${t}@${Bn(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=UT(a,c,n)),e.Annotation){let p=sc((0,ye.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return li(e,"Record")?s.record=rc(e.Record,c,n):li(e,"Collection")?s.collection=If(e.Collection,c,n):l.length===1?s.value=oc({[l[0]]:e[l[0]]},c,n,!1):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(Mx,"parseAnnotation");function sc(e,t,n){return e.map(i=>Mx(i,t,n))}r(sc,"parseAnnotations");function Fi(e,t){return{target:e,annotations:t}}r(Fi,"createAnnotationList");function Ux(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Fi(Bn(n._attributes.Target),sc((0,ye.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(Ux,"parseAnnotationLists");function kx(e,t,n){let i=e._attributes.Namespace,o=[],a=Lx((0,ye.ensureArray)(e.EntityType),o,i),s=Nx((0,ye.ensureArray)(e.ComplexType),o,i),c=Dx((0,ye.ensureArray)(e.TypeDefinition),i),l=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],h=[];if(e.EntityContainer)if(l=Rx((0,ye.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=jx((0,ye.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=Fx((0,ye.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),u={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")m=m.concat(wx((0,ye.ensureArray)(e.EntityContainer.FunctionImport),l,a,u.fullyQualifiedName,o));else if(t.startsWith("4."))h=h.concat(wT((0,ye.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),h=h.concat(wT((0,ye.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(m=m.concat(jT((0,ye.ensureArray)(e.Action),i,!1)),m=m.concat(jT((0,ye.ensureArray)(e.Function),i,!0)));let T=Vx((0,ye.ensureArray)(e.Association),i);Ux((0,ye.ensureArray)(e.Annotations),o);let F={};return F[n]=o,{associations:T,associationSets:f,annotations:F,entityContainer:u,namespace:i,entitySets:l,singletons:p,complexTypes:s,typeDefinitions:c,actions:m,actionImports:h,entityTypes:a}}r(kx,"parseSchema");function _x(e){return e.reduce((t,n)=>((0,ye.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(_x,"parseReferences");var xf={};function ra(e){let t=e.match(ac),n=t?t[1]:e,i=Bn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(ra,"unaliasType");function Bn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let c=e[a];if(s&&c==="."){let l=e.substring(o,a);i.push((t=xf[l])!==null&&t!==void 0?t:l),o=a,s=!1}n.includes(c)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Bn,"unalias");function Bx(e){let t=e.reduce((h,T)=>h.concat(T.associations),[]),n=e.reduce((h,T)=>h.concat(T.associationSets),[]),i=e.reduce((h,T)=>h.concat(T.entitySets),[]),o=e.reduce((h,T)=>h.concat(T.singletons),[]),a=e.reduce((h,T)=>h.concat(T.entityTypes),[]),s=e.reduce((h,T)=>h.concat(T.actions),[]),c=e.reduce((h,T)=>h.concat(T.actionImports),[]),l=e.reduce((h,T)=>h.concat(T.complexTypes),[]),p=e.reduce((h,T)=>h.concat(T.typeDefinitions),[]),f={};e.forEach(h=>{f=Object.assign(f,h.annotations)});let u,m;return e.forEach(h=>{h.entityContainer&&Object.keys(h.entityContainer).length>0&&(u=h.entityContainer,m=h.namespace)}),i.forEach(h=>{let T=a.find(F=>F.fullyQualifiedName===h.entityTypeName);T==null||T.navigationProperties.forEach(F=>{let L=F,Y=n.find(ne=>ne.association===L.relationship);if(Y){let ne=Y.associationEnd.find(q=>q.entitySet!==h.fullyQualifiedName);ne&&(h.navigationPropertyBinding[F.name]=ne.entitySet)}})}),a.forEach(h=>{h.navigationProperties.forEach(T=>{let F=T,L=t.find(Y=>Y.fullyQualifiedName===F.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===h.fullyQualifiedName?F.referentialConstraint=L.referentialConstraints:F.referentialConstraint=L.referentialConstraints.map(Y=>({sourceTypeName:Y.targetTypeName,sourceProperty:Y.targetProperty,targetTypeName:Y.sourceTypeName,targetProperty:Y.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:l,typeDefinitions:p,actions:s,actionImports:c,entityTypes:a}}r(Bx,"mergeSchemas");function Hx(e,t){xf=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{xf[n._attributes.Alias]=n._attributes.Namespace})}r(Hx,"createAliasMap");function Gx(e,t="serviceFile"){let n=(0,Cx.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,ye.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=_x((0,ye.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Hx(a,o);let s=o.map(l=>kx(l,i,t));return new ye.RawMetadataInstance(t,i,Bx(s),a)}r(Gx,"parse");cc.parse=Gx});var _T=we(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.parse=ca.merge=void 0;var Wx=nT();Object.defineProperty(ca,"merge",{enumerable:!0,get:r(function(){return Wx.merge},"get")});var Qx=kT();Object.defineProperty(ca,"parse",{enumerable:!0,get:r(function(){return Qx.parse},"get")})});var iS=we(()=>{var nS;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(l,p){return function(f,u){Object.defineProperty(l,f,{configurable:!0,writable:!0,value:u}),p&&p(f,u)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function c(){return a()||s()}r(c,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,p=!c&&!l,f={create:c?function(){return $p(Object.create(null))}:l?function(){return $p({__proto__:null})}:function(){return $p({})},has:p?function(C,x){return i.call(C,x)}:function(C,x){return x in C},get:p?function(C,x){return i.call(C,x)?C[x]:void 0}:function(C,x){return C[x]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:SA(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:vA(),T=typeof WeakMap=="function"?WeakMap:PA(),F=o?Symbol.for("@reflect-metadata:registry"):void 0,L=hA(),Y=bA(L);function ne(C,x,N,k){if(oe(N)){if(!et(C))throw new TypeError;if(!Tt(x))throw new TypeError;return oi(C,x)}else{if(!et(C))throw new TypeError;if(!Ge(x))throw new TypeError;if(!Ge(k)&&!oe(k)&&!Dt(k))throw new TypeError;return Dt(k)&&(k=void 0),N=ve(N),Nt(C,x,N,k)}}r(ne,"decorate"),t("decorate",ne);function q(C,x){function N(k,ae){if(!Ge(k))throw new TypeError;if(!oe(ae)&&!Pt(ae))throw new TypeError;sn(C,x,k,ae)}return r(N,"decorator"),N}r(q,"metadata"),t("metadata",q);function ue(C,x,N,k){if(!Ge(N))throw new TypeError;return oe(k)||(k=ve(k)),sn(C,x,N,k)}r(ue,"defineMetadata"),t("defineMetadata",ue);function ie(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=ve(N)),st(C,x,N)}r(ie,"hasMetadata"),t("hasMetadata",ie);function fe(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=ve(N)),ai(C,x,N)}r(fe,"hasOwnMetadata"),t("hasOwnMetadata",fe);function Ve(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=ve(N)),be(C,x,N)}r(Ve,"getMetadata"),t("getMetadata",Ve);function P(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=ve(N)),Ut(C,x,N)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function ke(C,x){if(!Ge(C))throw new TypeError;return oe(x)||(x=ve(x)),Cn(C,x)}r(ke,"getMetadataKeys"),t("getMetadataKeys",ke);function Xe(C,x){if(!Ge(C))throw new TypeError;return oe(x)||(x=ve(x)),zt(C,x)}r(Xe,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Xe);function ze(C,x,N){if(!Ge(x))throw new TypeError;if(oe(N)||(N=ve(N)),!Ge(x))throw new TypeError;oe(N)||(N=ve(N));var k=Za(x,N,!1);return oe(k)?!1:k.OrdinaryDeleteMetadata(C,x,N)}r(ze,"deleteMetadata"),t("deleteMetadata",ze);function oi(C,x){for(var N=C.length-1;N>=0;--N){var k=C[N],ae=k(x);if(!oe(ae)&&!Dt(ae)){if(!Tt(ae))throw new TypeError;x=ae}}return x}r(oi,"DecorateConstructor");function Nt(C,x,N,k){for(var ae=C.length-1;ae>=0;--ae){var ot=C[ae],dt=ot(x,N,k);if(!oe(dt)&&!Dt(dt)){if(!Ge(dt))throw new TypeError;k=dt}}return k}r(Nt,"DecorateProperty");function st(C,x,N){var k=ai(C,x,N);if(k)return!0;var ae=Zo(x);return Dt(ae)?!1:st(C,ae,N)}r(st,"OrdinaryHasMetadata");function ai(C,x,N){var k=Za(x,N,!1);return oe(k)?!1:D(k.OrdinaryHasOwnMetadata(C,x,N))}r(ai,"OrdinaryHasOwnMetadata");function be(C,x,N){var k=ai(C,x,N);if(k)return Ut(C,x,N);var ae=Zo(x);if(!Dt(ae))return be(C,ae,N)}r(be,"OrdinaryGetMetadata");function Ut(C,x,N){var k=Za(x,N,!1);if(!oe(k))return k.OrdinaryGetOwnMetadata(C,x,N)}r(Ut,"OrdinaryGetOwnMetadata");function sn(C,x,N,k){var ae=Za(N,k,!0);ae.OrdinaryDefineOwnMetadata(C,x,N,k)}r(sn,"OrdinaryDefineOwnMetadata");function Cn(C,x){var N=zt(C,x),k=Zo(C);if(k===null)return N;var ae=Cn(k,x);if(ae.length<=0)return N;if(N.length<=0)return ae;for(var ot=new h,dt=[],Ae=0,H=N;Ae<H.length;Ae++){var X=H[Ae],z=ot.has(X);z||(ot.add(X),dt.push(X))}for(var ee=0,xe=ae;ee<xe.length;ee++){var X=xe[ee],z=ot.has(X);z||(ot.add(X),dt.push(X))}return dt}r(Cn,"OrdinaryMetadataKeys");function zt(C,x){var N=Za(C,x,!1);return N?N.OrdinaryOwnMetadataKeys(C,x):[]}r(zt,"OrdinaryOwnMetadataKeys");function ct(C){if(C===null)return 1;switch(typeof C){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return C===null?1:6;default:return 6}}r(ct,"Type");function oe(C){return C===void 0}r(oe,"IsUndefined");function Dt(C){return C===null}r(Dt,"IsNull");function ro(C){return typeof C=="symbol"}r(ro,"IsSymbol");function Ge(C){return typeof C=="object"?C!==null:typeof C=="function"}r(Ge,"IsObject");function b(C,x){switch(ct(C)){case 0:return C;case 1:return C;case 2:return C;case 3:return C;case 4:return C;case 5:return C}var N=x===3?"string":x===5?"number":"default",k=lt(C,a);if(k!==void 0){var ae=k.call(C,N);if(Ge(ae))throw new TypeError;return ae}return y(C,N==="default"?"number":N)}r(b,"ToPrimitive");function y(C,x){if(x==="string"){var N=C.toString;if(We(N)){var k=N.call(C);if(!Ge(k))return k}var ae=C.valueOf;if(We(ae)){var k=ae.call(C);if(!Ge(k))return k}}else{var ae=C.valueOf;if(We(ae)){var k=ae.call(C);if(!Ge(k))return k}var ot=C.toString;if(We(ot)){var k=ot.call(C);if(!Ge(k))return k}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function ve(C){var x=b(C,3);return ro(x)?x:A(x)}r(ve,"ToPropertyKey");function et(C){return Array.isArray?Array.isArray(C):C instanceof Object?C instanceof Array:Object.prototype.toString.call(C)==="[object Array]"}r(et,"IsArray");function We(C){return typeof C=="function"}r(We,"IsCallable");function Tt(C){return typeof C=="function"}r(Tt,"IsConstructor");function Pt(C){switch(ct(C)){case 3:return!0;case 4:return!0;default:return!1}}r(Pt,"IsPropertyKey");function Un(C,x){return C===x||C!==C&&x!==x}r(Un,"SameValueZero");function lt(C,x){var N=C[x];if(N!=null){if(!We(N))throw new TypeError;return N}}r(lt,"GetMethod");function cn(C){var x=lt(C,s);if(!We(x))throw new TypeError;var N=x.call(C);if(!Ge(N))throw new TypeError;return N}r(cn,"GetIterator");function ws(C){return C.value}r(ws,"IteratorValue");function Ya(C){var x=C.next();return x.done?!1:x}r(Ya,"IteratorStep");function Yo(C){var x=C.return;x&&x.call(C)}r(Yo,"IteratorClose");function Zo(C){var x=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||x!==u)return x;var N=C.prototype,k=N&&Object.getPrototypeOf(N);if(k==null||k===Object.prototype)return x;var ae=k.constructor;return typeof ae!="function"||ae===C?x:ae}r(Zo,"OrdinaryGetPrototypeOf");function yA(){var C;!oe(F)&&typeof n.Reflect<"u"&&!(F in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=TA(n.Reflect));var x,N,k,ae=new T,ot={registerProvider:dt,getProvider:H,setProvider:z};return ot;function dt(ee){if(!Object.isExtensible(ot))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case C===ee:break;case oe(x):x=ee;break;case x===ee:break;case oe(N):N=ee;break;case N===ee:break;default:k===void 0&&(k=new h),k.add(ee);break}}function Ae(ee,xe){if(!oe(x)){if(x.isProviderFor(ee,xe))return x;if(!oe(N)){if(N.isProviderFor(ee,xe))return x;if(!oe(k))for(var Je=cn(k);;){var at=Ya(Je);if(!at)return;var En=ws(at);if(En.isProviderFor(ee,xe))return Yo(Je),En}}}if(!oe(C)&&C.isProviderFor(ee,xe))return C}function H(ee,xe){var Je=ae.get(ee),at;return oe(Je)||(at=Je.get(xe)),oe(at)&&(at=Ae(ee,xe),oe(at)||(oe(Je)&&(Je=new m,ae.set(ee,Je)),Je.set(xe,at))),at}function X(ee){if(oe(ee))throw new TypeError;return x===ee||N===ee||!oe(k)&&k.has(ee)}function z(ee,xe,Je){if(!X(Je))throw new Error("Metadata provider not registered.");var at=H(ee,xe);if(at!==Je){if(!oe(at))return!1;var En=ae.get(ee);oe(En)&&(En=new m,ae.set(ee,En)),En.set(xe,Je)}return!0}}r(yA,"CreateMetadataRegistry");function hA(){var C;return!oe(F)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[F]),oe(C)&&(C=yA()),!oe(F)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,F,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(hA,"GetOrCreateMetadataRegistry");function bA(C){var x=new T,N={isProviderFor:r(function(X,z){var ee=x.get(X);return oe(ee)?!1:ee.has(z)},"isProviderFor"),OrdinaryDefineOwnMetadata:dt,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:ot,OrdinaryOwnMetadataKeys:Ae,OrdinaryDeleteMetadata:H};return L.registerProvider(N),N;function k(X,z,ee){var xe=x.get(X),Je=!1;if(oe(xe)){if(!ee)return;xe=new m,x.set(X,xe),Je=!0}var at=xe.get(z);if(oe(at)){if(!ee)return;if(at=new m,xe.set(z,at),!C.setProvider(X,z,N))throw xe.delete(z),Je&&x.delete(X),new Error("Wrong provider for target.")}return at}r(k,"GetOrCreateMetadataMap");function ae(X,z,ee){var xe=k(z,ee,!1);return oe(xe)?!1:D(xe.has(X))}r(ae,"OrdinaryHasOwnMetadata");function ot(X,z,ee){var xe=k(z,ee,!1);if(!oe(xe))return xe.get(X)}r(ot,"OrdinaryGetOwnMetadata");function dt(X,z,ee,xe){var Je=k(ee,xe,!0);Je.set(X,z)}r(dt,"OrdinaryDefineOwnMetadata");function Ae(X,z){var ee=[],xe=k(X,z,!1);if(oe(xe))return ee;for(var Je=xe.keys(),at=cn(Je),En=0;;){var $m=Ya(at);if(!$m)return ee.length=En,ee;var AA=ws($m);try{ee[En]=AA}catch(CA){try{Yo(at)}finally{throw CA}}En++}}r(Ae,"OrdinaryOwnMetadataKeys");function H(X,z,ee){var xe=k(z,ee,!1);if(oe(xe)||!xe.delete(X))return!1;if(xe.size===0){var Je=x.get(z);oe(Je)||(Je.delete(ee),Je.size===0&&x.delete(Je))}return!0}r(H,"OrdinaryDeleteMetadata")}r(bA,"CreateMetadataProvider");function TA(C){var x=C.defineMetadata,N=C.hasOwnMetadata,k=C.getOwnMetadata,ae=C.getOwnMetadataKeys,ot=C.deleteMetadata,dt=new T,Ae={isProviderFor:r(function(H,X){var z=dt.get(H);return!oe(z)&&z.has(X)?!0:ae(H,X).length?(oe(z)&&(z=new h,dt.set(H,z)),z.add(X),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:k,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:ot};return Ae}r(TA,"CreateFallbackProvider");function Za(C,x,N){var k=L.getProvider(C,x);if(!oe(k))return k;if(N){if(L.setProvider(C,x,Y))return Y;throw new Error("Illegal state.")}}r(Za,"GetMetadataProvider");function SA(){var C={},x=[],N=(function(){function Ae(H,X,z){this._index=0,this._keys=H,this._values=X,this._selector=z}return r(Ae,"MapIterator"),Ae.prototype["@@iterator"]=function(){return this},Ae.prototype[s]=function(){return this},Ae.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var X=this._selector(this._keys[H],this._values[H]);return H+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},Ae.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),H},Ae.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:H,done:!0}},Ae})(),k=(function(){function Ae(){this._keys=[],this._values=[],this._cacheKey=C,this._cacheIndex=-2}return r(Ae,"Map"),Object.defineProperty(Ae.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Ae.prototype.has=function(H){return this._find(H,!1)>=0},Ae.prototype.get=function(H){var X=this._find(H,!1);return X>=0?this._values[X]:void 0},Ae.prototype.set=function(H,X){var z=this._find(H,!0);return this._values[z]=X,this},Ae.prototype.delete=function(H){var X=this._find(H,!1);if(X>=0){for(var z=this._keys.length,ee=X+1;ee<z;ee++)this._keys[ee-1]=this._keys[ee],this._values[ee-1]=this._values[ee];return this._keys.length--,this._values.length--,Un(H,this._cacheKey)&&(this._cacheKey=C,this._cacheIndex=-2),!0}return!1},Ae.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=C,this._cacheIndex=-2},Ae.prototype.keys=function(){return new N(this._keys,this._values,ae)},Ae.prototype.values=function(){return new N(this._keys,this._values,ot)},Ae.prototype.entries=function(){return new N(this._keys,this._values,dt)},Ae.prototype["@@iterator"]=function(){return this.entries()},Ae.prototype[s]=function(){return this.entries()},Ae.prototype._find=function(H,X){if(!Un(this._cacheKey,H)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(Un(this._keys[z],H)){this._cacheIndex=z;break}}return this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},Ae})();return k;function ae(Ae,H){return Ae}function ot(Ae,H){return H}function dt(Ae,H){return[Ae,H]}}r(SA,"CreateMapPolyfill");function vA(){var C=(function(){function x(){this._map=new m}return r(x,"Set"),Object.defineProperty(x.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(N){return this._map.has(N)},x.prototype.add=function(N){return this._map.set(N,N),this},x.prototype.delete=function(N){return this._map.delete(N)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[s]=function(){return this.keys()},x})();return C}r(vA,"CreateSetPolyfill");function PA(){var C=16,x=f.create(),N=k();return(function(){function H(){this._key=k()}return r(H,"WeakMap"),H.prototype.has=function(X){var z=ae(X,!1);return z!==void 0?f.has(z,this._key):!1},H.prototype.get=function(X){var z=ae(X,!1);return z!==void 0?f.get(z,this._key):void 0},H.prototype.set=function(X,z){var ee=ae(X,!0);return ee[this._key]=z,this},H.prototype.delete=function(X){var z=ae(X,!1);return z!==void 0?delete z[this._key]:!1},H.prototype.clear=function(){this._key=k()},H})();function k(){var H;do H="@@WeakMap@@"+Ae();while(f.has(x,H));return x[H]=!0,H}function ae(H,X){if(!i.call(H,N)){if(!X)return;Object.defineProperty(H,N,{value:f.create()})}return H[N]}function ot(H,X){for(var z=0;z<X;++z)H[z]=Math.random()*255|0;return H}function dt(H){if(typeof Uint8Array=="function"){var X=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(X):typeof msCrypto<"u"?msCrypto.getRandomValues(X):ot(X,H),X}return ot(new Array(H),H)}function Ae(){var H=dt(C);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var X="",z=0;z<C;++z){var ee=H[z];(z===4||z===6||z===8)&&(X+="-"),ee<16&&(X+="0"),X+=ee.toString(16).toLowerCase()}return X}}r(PA,"CreateWeakMapPolyfill");function $p(C){return C.__=void 0,delete C.__,C}r($p,"MakeDictionary")})})(nS||(nS={}))});var lS=we((Gj,cS)=>{var yI=0,sS="changeUtils: ";function hI(){return"id-"+new Date().valueOf()+"-"+yI++}r(hI,"uid");function bI(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(bI,"appendComponentToReference");function TI(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return bI(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(TI,"getFlexReference");function SI(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}r(SI,"getAppVersion");function vI(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(vI,"getProjectId");function rS(e){return JSON.stringify({fileName:e.id||hI().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:sS+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})}r(rS,"createString");cS.exports={parse:r(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(sS,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(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=TI(t),e.appVersion=SI(t),e.projectId=vI(t,e.reference),rS(e)},"createChangeString"),toString:r(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 rS(e)},"toString")}});var fS=we((Qj,pS)=>{pS.exports={change:lS()}});var nv=we(un=>{"use strict";var XI=/[|\\{}()[\]^$+*?.]/g,JI=Object.prototype.hasOwnProperty,fu=r(function(e,t){return JI.apply(e,[t])},"hasOwn");un.escapeRegExpChars=function(e){return e?String(e).replace(XI,"\\$&"):""};var qI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},zI=/[&<>'"]/g;function YI(e){return qI[e]||e}r(YI,"encode_char");var ZI=`var _ENCODE_HTML_RULES = {
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(yx,"writeElement");function PT(e,t,n,i){return e.reduce(function(o,a){var s=_n(t,n,i&&!o);switch(a.type){case"element":return o+s+yx(a,t,n);case"comment":return o+s+TT(a[t.commentKey],t);case"doctype":return o+s+vT(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+ST(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Cf(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+bT(c,t,n)}},"")}r(PT,"writeElements");function AT(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}r(AT,"hasContentCompact");function hx(e,t,n,i,o){Ct=e,Et=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(">"+Cf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(nc(e[n.attributesKey],n,i));var c=AT(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(c||("fullTagEmptyElementFn"in n?c=n.fullTagEmptyElementFn(t,e):c=n.fullTagEmptyElement),c)s.push(">");else return s.push("/>"),s.join("")}return s.push(CT(e,n,i+1,!1)),Ct=e,Et=t,t&&s.push((o?_n(n,i,!1):"")+"</"+a+">"),s.join("")}r(hx,"writeElementCompact");function CT(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=dx(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(hT(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?_n(t,n,i):"")+bT(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?_n(t,n,i):"")+Cf(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?_n(t,n,i):"")+ST(s[o],t));break;case t.doctypeKey:c.push(_n(t,n,i)+vT(s[o],t));break;case t.commentKey:c.push(_n(t,n,i)+TT(s[o],t));break;default:c.push(_n(t,n,i)+hx(s[o],a,t,n,AT(s[o],t)))}i=i&&!c.length}return c.join("")}r(CT,"writeElementsCompact");ET.exports=function(e,t){t=gx(t);var n=[];return Ct=e,Et="_root_",t.compact?n.push(CT(e,t,0,!0)):(e[t.declarationKey]&&n.push(hT(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(PT(e[t.elementsKey],t,0,!n.length))),n.join("")}});var IT=we((vj,xT)=>{var bx=Ef();xT.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 bx(n,t)}});var cr=we((Pj,OT)=>{var Tx=Af(),Sx=yT(),vx=Ef(),Px=IT();OT.exports={xml2js:Tx,xml2json:Sx,js2xml:vx,json2xml:Px}});var RT=we(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.convertEntityTypeAnnotations=kt.convertPropertyAnnotations=kt.convertNavigationPropertyAnnotations=kt.convertEntitySetAnnotations=kt.convertGenericAnnotations=kt.convertV2Annotations=void 0;function Ax(e,t,n){let i=[];switch(t){case"EntitySet":VT(e,i);break;case"EntityType":DT(e,i);break;case"NavigationProperty":LT(e,n,i);break;case"Property":NT(e,n,i);break;case"Singleton":break;default:break}return FT(e,n,i),i}r(Ax,"convertV2Annotations");kt.convertV2Annotations=Ax;function FT(e,t,n){function i(o,a){o&&n.push(a)}if(r(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 o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}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}]}})}r(FT,"convertGenericAnnotations");kt.convertGenericAnnotations=FT;function VT(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"]}}]}})}r(VT,"convertEntitySetAnnotations");kt.convertEntitySetAnnotations=VT;function LT(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}}]}}}]}]}}]}})}r(LT,"convertNavigationPropertyAnnotations");kt.convertNavigationPropertyAnnotations=LT;function NT(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}]}}]}})}r(NT,"convertPropertyAnnotations");kt.convertPropertyAnnotations=NT;function DT(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:[]}}]}})}r(DT,"convertEntityTypeAnnotations");kt.convertEntityTypeAnnotations=DT});var kT=we(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.parse=void 0;var Cx=cr(),ye=vf(),sa=RT(),ac=/^Collection\((.+)\)$/;function Ex(e){return e.Type!==null&&e.Type!==void 0}r(Ex,"isV4NavProperty");function xx(e){return e.map(t=>t._attributes.Name)}r(xx,"getEntityTypeKeys");function $T(e,t,n,i){return e.reduce((o,a)=>{var s,c,l,p;let f={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ra(a._attributes.Type).type};if(a._attributes.MaxLength&&(f.maxLength=((c=(s=a._attributes.MaxLength)===null||s===void 0?void 0:s.toLowerCase)===null||c===void 0?void 0:c.call(s))==="max"?5e3:parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(f.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(((p=(l=a._attributes.Scale)===null||l===void 0?void 0:l.toLowerCase)===null||p===void 0?void 0:p.call(l))==="variable"?f.scale="variable":f.scale=parseInt(a._attributes.Scale,10)),f.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(f.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":f.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":f.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":f.defaultValue=a._attributes.DefaultValue==="true";break;default:f.defaultValue=a._attributes.DefaultValue;break}o.entityProperties.push(f),t.indexOf(f.name)!==-1&&o.entityKeys.push(f);let u=(0,sa.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return u.length>0&&i.push(Fi(f.fullyQualifiedName,u)),o},{entityProperties:[],entityKeys:[]})}r($T,"parseProperties");function Ix(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(Ix,"parseReferentialConstraint");function Ox(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,ye.ensureArray)(i.Principal.PropertyRef),c=(0,ye.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,ye.ensureArray)(i.Dependent.PropertyRef));for(let l of s){let p=s.indexOf(l);n.push({sourceTypeName:o.type,sourceProperty:l._attributes.Name,targetTypeName:a.type,targetProperty:c[p]._attributes.Name})}}return n},[])}r(Ox,"parseV2ReferentialConstraint");function MT(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(Ex(s)){let c=s.Type.match(ac),l=c!==null,p=Bn(c?c[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:l,targetTypeName:p,referentialConstraint:Ix((0,ye.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:c,ToRole:l,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:c,toRole:l,fromRole:p});let f=(0,sa.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(Fi(`${n}/${s.Name}`,f))}return o},[])}r(MT,"parseNavigationProperties");function Fx(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,ye.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(Fx,"parseAssociationSets");function Vx(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,ye.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:o,referentialConstraints:Ox((0,ye.ensureArray)(n.ReferentialConstraint),o)}})}r(Vx,"parseAssociations");function Lx(e,t,n){return e.reduce((i,o)=>{let a=o.Key?xx((0,ye.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=$T((0,ye.ensureArray)(o.Property),a,s,t),p=MT((0,ye.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},u=(0,sa.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(Fi(f.fullyQualifiedName,u)),i.push(f),i},[])}r(Lx,"parseEntityTypes");function Nx(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=$T((0,ye.ensureArray)(o.Property),[],a,t),c=MT((0,ye.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(Nx,"parseComplexTypes");function Dx(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(Dx,"parseTypeDefinitions");function Rx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ye.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Bn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,sa.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(Fi(c.fullyQualifiedName,l)),c})}r(Rx,"parseEntitySets");function jx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ye.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:Bn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,sa.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(Fi(c.fullyQualifiedName,l)),c})}r(jx,"parseSingletons");function jT(e,t,n){return e.map(i=>{let o=(0,ye.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>ra(l._attributes.Type).type).join(","):s=a?ra(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ra(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{var p,f,u,m;let{isCollection:h,type:T}=ra(l._attributes.Type),E={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:T,isCollection:h};return l._attributes.MaxLength&&(E.maxLength=((f=(p=l._attributes.MaxLength)===null||p===void 0?void 0:p.toLowerCase)===null||f===void 0?void 0:f.call(p))==="max"?5e3:parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(E.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(((m=(u=l._attributes.Scale)===null||u===void 0?void 0:u.toLowerCase)===null||m===void 0?void 0:m.call(u))==="variable"?E.scale="variable":E.scale=parseInt(l._attributes.Scale,10)),E.nullable=l._attributes.Nullable!=="false",E}),returnType:i.ReturnType?ra(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(ac)!==null:!1}})}r(jT,"parseActions");function wx(e,t,n,i,o){return e.map(a=>{let s=t.find(f=>f.name===a._attributes.EntitySet),c=`${i}/${a._attributes.Name}`,l=s==null?void 0:s.entityTypeName;if(a._attributes["sap:action-for"]){let f=n.find(u=>u.fullyQualifiedName===a._attributes["sap:action-for"]);f&&(l=f.fullyQualifiedName)}let p=(0,ye.ensureArray)(a.Parameter).map(f=>{let u=(0,sa.convertV2Annotations)(f._attributes,"ActionParameter",f._attributes.Name),m=`${c}/${f._attributes.Name}`;return u.length>0&&o.push(Fi(m,u)),{_type:"ActionParameter",name:f._attributes.Name,fullyQualifiedName:m,type:f._attributes.Type,isCollection:f._attributes.Type.match(/^Collection\(.+\)$/)!==null}});return{_type:"Action",name:a._attributes.Name,isBound:!1,sourceType:l??"",fullyQualifiedName:c,isFunction:!1,parameters:p,returnType:a._attributes.ReturnType?a._attributes.ReturnType:"",returnCollection:a._attributes.ReturnType?a._attributes.ReturnType.match(ac)!==null:!1}})}r(wx,"parseV2FunctionImport");function wT(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Bn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Bn(o)}})}r(wT,"parseActionImports");function $x(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,c={};if(a){let l=Object.keys(a).find(f=>f!=="Property");c.name=a.Property;let p=`${t}/${c.name}`;if(s&&Object.keys(s).length>0?c.value=oc(s,p,n,!1):l&&(c.value=UT({[l]:a[l]},p,n)),i.Annotation){let f=sc((0,ye.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(Fi(p,f))}}return c})}r($x,"parsePropertyValues");function rc(e,t,n){let i=sc((0,ye.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Bn(e._attributes.Type):void 0,propertyValues:$x((0,ye.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(rc,"parseRecord");function li(e,t){return e[t]!=null}r(li,"isExpressionOfType");function ic(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}}}r(ic,"parseModelPath");function If(e,t,n){if(li(e,"Record")){let i=(0,ye.ensureArray)(e.Record).map((o,a)=>rc(o,t+"/"+a,n));return i.type="Record",i}else if(li(e,"PropertyPath")){let i=(0,ye.ensureArray)(e.PropertyPath).map(o=>ic(o,"PropertyPath"));return i.type="PropertyPath",i}else if(li(e,"NavigationPropertyPath")){let i=(0,ye.ensureArray)(e.NavigationPropertyPath).map(o=>ic(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(li(e,"String")){let i=(0,ye.ensureArray)(e.String).map(o=>({type:"String",String:o._text}));return i.type="String",i}else if(li(e,"AnnotationPath")){let i=(0,ye.ensureArray)(e.AnnotationPath).map(o=>ic(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(li(e,"Path")){let i=(0,ye.ensureArray)(e.Path).map(o=>ic(o,"Path"));return i.type="Path",i}else if(li(e,"If")){let i=(0,ye.ensureArray)(e.If).map(o=>o._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[]}r(If,"parseCollection");function tt(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(o=>oc({[i]:o},"",[],!0))):n.push(oc({[i]:e[i]},"",[],!0))}),n}r(tt,"parseChildren");function UT(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 o=i[0];switch(o){case"String":return{type:"String",String:e[o]};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[o]};case"Collection":return{type:"Collection",Collection:If(e.Collection,t,n)};case"Record":return{type:"Record",Record:rc(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:tt(e.Apply),$Function:tt(e.Function)};case"And":return{type:"And",$And:tt(e.And)};case"Or":return{type:"Or",$Or:tt(e.Or)};case"Eq":return{type:"Eq",$Eq:tt(e.Eq)};case"Gt":return{type:"Gt",$Gt:tt(e.Gt)};case"Ge":return{type:"Ge",$Ge:tt(e.Ge)};case"Lt":return{type:"Lt",$Lt:tt(e.Lt)};case"Le":return{type:"Le",$Le:tt(e.Le)};case"If":return{type:"If",$If:tt(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(UT,"parseInlineExpression");function oc(e,t,n,i){let o=Object.keys(e).filter(s=>s!=="_text");if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[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:tt(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:If(e.Collection,t,n)};case"Record":return{type:"Record",Record:rc(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:tt(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:tt(e.And)};case"Ne":return{type:"Ne",$Ne:tt(e.Ne)};case"Not":return{type:"Not",$Not:tt(e.Not)[0]};case"Or":return{type:"Or",$Or:tt(e.Or)};case"Eq":return{type:"Eq",$Eq:tt(e.Eq)};case"If":return{type:"If",$If:tt(e.If)};case"Gt":return{type:"Gt",$Gt:tt(e.Gt)};case"Ge":return{type:"Ge",$Ge:tt(e.Ge)};case"Lt":return{type:"Lt",$Lt:tt(e.Lt)};case"Le":return{type:"Le",$Le:tt(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(oc,"parseExpression");function Mx(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Bn(i),qualifier:o},c=`${t}@${Bn(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=UT(a,c,n)),e.Annotation){let p=sc((0,ye.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return li(e,"Record")?s.record=rc(e.Record,c,n):li(e,"Collection")?s.collection=If(e.Collection,c,n):l.length===1?s.value=oc({[l[0]]:e[l[0]]},c,n,!1):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(Mx,"parseAnnotation");function sc(e,t,n){return e.map(i=>Mx(i,t,n))}r(sc,"parseAnnotations");function Fi(e,t){return{target:e,annotations:t}}r(Fi,"createAnnotationList");function Ux(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Fi(Bn(n._attributes.Target),sc((0,ye.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(Ux,"parseAnnotationLists");function kx(e,t,n){let i=e._attributes.Namespace,o=[],a=Lx((0,ye.ensureArray)(e.EntityType),o,i),s=Nx((0,ye.ensureArray)(e.ComplexType),o,i),c=Dx((0,ye.ensureArray)(e.TypeDefinition),i),l=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],h=[];if(e.EntityContainer)if(l=Rx((0,ye.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=jx((0,ye.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=Fx((0,ye.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),u={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")m=m.concat(wx((0,ye.ensureArray)(e.EntityContainer.FunctionImport),l,a,u.fullyQualifiedName,o));else if(t.startsWith("4."))h=h.concat(wT((0,ye.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),h=h.concat(wT((0,ye.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(m=m.concat(jT((0,ye.ensureArray)(e.Action),i,!1)),m=m.concat(jT((0,ye.ensureArray)(e.Function),i,!0)));let T=Vx((0,ye.ensureArray)(e.Association),i);Ux((0,ye.ensureArray)(e.Annotations),o);let E={};return E[n]=o,{associations:T,associationSets:f,annotations:E,entityContainer:u,namespace:i,entitySets:l,singletons:p,complexTypes:s,typeDefinitions:c,actions:m,actionImports:h,entityTypes:a}}r(kx,"parseSchema");function _x(e){return e.reduce((t,n)=>((0,ye.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(_x,"parseReferences");var xf={};function ra(e){let t=e.match(ac),n=t?t[1]:e,i=Bn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(ra,"unaliasType");function Bn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let c=e[a];if(s&&c==="."){let l=e.substring(o,a);i.push((t=xf[l])!==null&&t!==void 0?t:l),o=a,s=!1}n.includes(c)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Bn,"unalias");function Bx(e){let t=e.reduce((h,T)=>h.concat(T.associations),[]),n=e.reduce((h,T)=>h.concat(T.associationSets),[]),i=e.reduce((h,T)=>h.concat(T.entitySets),[]),o=e.reduce((h,T)=>h.concat(T.singletons),[]),a=e.reduce((h,T)=>h.concat(T.entityTypes),[]),s=e.reduce((h,T)=>h.concat(T.actions),[]),c=e.reduce((h,T)=>h.concat(T.actionImports),[]),l=e.reduce((h,T)=>h.concat(T.complexTypes),[]),p=e.reduce((h,T)=>h.concat(T.typeDefinitions),[]),f={};e.forEach(h=>{f=Object.assign(f,h.annotations)});let u,m;return e.forEach(h=>{h.entityContainer&&Object.keys(h.entityContainer).length>0&&(u=h.entityContainer,m=h.namespace)}),i.forEach(h=>{let T=a.find(E=>E.fullyQualifiedName===h.entityTypeName);T==null||T.navigationProperties.forEach(E=>{let L=E,Y=n.find(ne=>ne.association===L.relationship);if(Y){let ne=Y.associationEnd.find(q=>q.entitySet!==h.fullyQualifiedName);ne&&(h.navigationPropertyBinding[E.name]=ne.entitySet)}})}),a.forEach(h=>{h.navigationProperties.forEach(T=>{let E=T,L=t.find(Y=>Y.fullyQualifiedName===E.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===h.fullyQualifiedName?E.referentialConstraint=L.referentialConstraints:E.referentialConstraint=L.referentialConstraints.map(Y=>({sourceTypeName:Y.targetTypeName,sourceProperty:Y.targetProperty,targetTypeName:Y.sourceTypeName,targetProperty:Y.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:l,typeDefinitions:p,actions:s,actionImports:c,entityTypes:a}}r(Bx,"mergeSchemas");function Hx(e,t){xf=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{xf[n._attributes.Alias]=n._attributes.Namespace})}r(Hx,"createAliasMap");function Gx(e,t="serviceFile"){let n=(0,Cx.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,ye.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=_x((0,ye.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Hx(a,o);let s=o.map(l=>kx(l,i,t));return new ye.RawMetadataInstance(t,i,Bx(s),a)}r(Gx,"parse");cc.parse=Gx});var _T=we(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.parse=ca.merge=void 0;var Wx=nT();Object.defineProperty(ca,"merge",{enumerable:!0,get:r(function(){return Wx.merge},"get")});var Qx=kT();Object.defineProperty(ca,"parse",{enumerable:!0,get:r(function(){return Qx.parse},"get")})});var iS=we(()=>{var nS;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(l,p){return function(f,u){Object.defineProperty(l,f,{configurable:!0,writable:!0,value:u}),p&&p(f,u)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function c(){return a()||s()}r(c,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,p=!c&&!l,f={create:c?function(){return $p(Object.create(null))}:l?function(){return $p({__proto__:null})}:function(){return $p({})},has:p?function(C,I){return i.call(C,I)}:function(C,I){return I in C},get:p?function(C,I){return i.call(C,I)?C[I]:void 0}:function(C,I){return C[I]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:SA(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:vA(),T=typeof WeakMap=="function"?WeakMap:PA(),E=o?Symbol.for("@reflect-metadata:registry"):void 0,L=hA(),Y=bA(L);function ne(C,I,N,k){if(oe(N)){if(!et(C))throw new TypeError;if(!Tt(I))throw new TypeError;return oi(C,I)}else{if(!et(C))throw new TypeError;if(!Ge(I))throw new TypeError;if(!Ge(k)&&!oe(k)&&!Dt(k))throw new TypeError;return Dt(k)&&(k=void 0),N=ve(N),Nt(C,I,N,k)}}r(ne,"decorate"),t("decorate",ne);function q(C,I){function N(k,ae){if(!Ge(k))throw new TypeError;if(!oe(ae)&&!Pt(ae))throw new TypeError;sn(C,I,k,ae)}return r(N,"decorator"),N}r(q,"metadata"),t("metadata",q);function ue(C,I,N,k){if(!Ge(N))throw new TypeError;return oe(k)||(k=ve(k)),sn(C,I,N,k)}r(ue,"defineMetadata"),t("defineMetadata",ue);function ie(C,I,N){if(!Ge(I))throw new TypeError;return oe(N)||(N=ve(N)),st(C,I,N)}r(ie,"hasMetadata"),t("hasMetadata",ie);function fe(C,I,N){if(!Ge(I))throw new TypeError;return oe(N)||(N=ve(N)),ai(C,I,N)}r(fe,"hasOwnMetadata"),t("hasOwnMetadata",fe);function Ve(C,I,N){if(!Ge(I))throw new TypeError;return oe(N)||(N=ve(N)),be(C,I,N)}r(Ve,"getMetadata"),t("getMetadata",Ve);function P(C,I,N){if(!Ge(I))throw new TypeError;return oe(N)||(N=ve(N)),Ut(C,I,N)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function ke(C,I){if(!Ge(C))throw new TypeError;return oe(I)||(I=ve(I)),Cn(C,I)}r(ke,"getMetadataKeys"),t("getMetadataKeys",ke);function Xe(C,I){if(!Ge(C))throw new TypeError;return oe(I)||(I=ve(I)),zt(C,I)}r(Xe,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Xe);function ze(C,I,N){if(!Ge(I))throw new TypeError;if(oe(N)||(N=ve(N)),!Ge(I))throw new TypeError;oe(N)||(N=ve(N));var k=Za(I,N,!1);return oe(k)?!1:k.OrdinaryDeleteMetadata(C,I,N)}r(ze,"deleteMetadata"),t("deleteMetadata",ze);function oi(C,I){for(var N=C.length-1;N>=0;--N){var k=C[N],ae=k(I);if(!oe(ae)&&!Dt(ae)){if(!Tt(ae))throw new TypeError;I=ae}}return I}r(oi,"DecorateConstructor");function Nt(C,I,N,k){for(var ae=C.length-1;ae>=0;--ae){var ot=C[ae],dt=ot(I,N,k);if(!oe(dt)&&!Dt(dt)){if(!Ge(dt))throw new TypeError;k=dt}}return k}r(Nt,"DecorateProperty");function st(C,I,N){var k=ai(C,I,N);if(k)return!0;var ae=Zo(I);return Dt(ae)?!1:st(C,ae,N)}r(st,"OrdinaryHasMetadata");function ai(C,I,N){var k=Za(I,N,!1);return oe(k)?!1:D(k.OrdinaryHasOwnMetadata(C,I,N))}r(ai,"OrdinaryHasOwnMetadata");function be(C,I,N){var k=ai(C,I,N);if(k)return Ut(C,I,N);var ae=Zo(I);if(!Dt(ae))return be(C,ae,N)}r(be,"OrdinaryGetMetadata");function Ut(C,I,N){var k=Za(I,N,!1);if(!oe(k))return k.OrdinaryGetOwnMetadata(C,I,N)}r(Ut,"OrdinaryGetOwnMetadata");function sn(C,I,N,k){var ae=Za(N,k,!0);ae.OrdinaryDefineOwnMetadata(C,I,N,k)}r(sn,"OrdinaryDefineOwnMetadata");function Cn(C,I){var N=zt(C,I),k=Zo(C);if(k===null)return N;var ae=Cn(k,I);if(ae.length<=0)return N;if(N.length<=0)return ae;for(var ot=new h,dt=[],Ae=0,H=N;Ae<H.length;Ae++){var X=H[Ae],z=ot.has(X);z||(ot.add(X),dt.push(X))}for(var ee=0,xe=ae;ee<xe.length;ee++){var X=xe[ee],z=ot.has(X);z||(ot.add(X),dt.push(X))}return dt}r(Cn,"OrdinaryMetadataKeys");function zt(C,I){var N=Za(C,I,!1);return N?N.OrdinaryOwnMetadataKeys(C,I):[]}r(zt,"OrdinaryOwnMetadataKeys");function ct(C){if(C===null)return 1;switch(typeof C){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return C===null?1:6;default:return 6}}r(ct,"Type");function oe(C){return C===void 0}r(oe,"IsUndefined");function Dt(C){return C===null}r(Dt,"IsNull");function ro(C){return typeof C=="symbol"}r(ro,"IsSymbol");function Ge(C){return typeof C=="object"?C!==null:typeof C=="function"}r(Ge,"IsObject");function b(C,I){switch(ct(C)){case 0:return C;case 1:return C;case 2:return C;case 3:return C;case 4:return C;case 5:return C}var N=I===3?"string":I===5?"number":"default",k=lt(C,a);if(k!==void 0){var ae=k.call(C,N);if(Ge(ae))throw new TypeError;return ae}return y(C,N==="default"?"number":N)}r(b,"ToPrimitive");function y(C,I){if(I==="string"){var N=C.toString;if(We(N)){var k=N.call(C);if(!Ge(k))return k}var ae=C.valueOf;if(We(ae)){var k=ae.call(C);if(!Ge(k))return k}}else{var ae=C.valueOf;if(We(ae)){var k=ae.call(C);if(!Ge(k))return k}var ot=C.toString;if(We(ot)){var k=ot.call(C);if(!Ge(k))return k}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function ve(C){var I=b(C,3);return ro(I)?I:A(I)}r(ve,"ToPropertyKey");function et(C){return Array.isArray?Array.isArray(C):C instanceof Object?C instanceof Array:Object.prototype.toString.call(C)==="[object Array]"}r(et,"IsArray");function We(C){return typeof C=="function"}r(We,"IsCallable");function Tt(C){return typeof C=="function"}r(Tt,"IsConstructor");function Pt(C){switch(ct(C)){case 3:return!0;case 4:return!0;default:return!1}}r(Pt,"IsPropertyKey");function Un(C,I){return C===I||C!==C&&I!==I}r(Un,"SameValueZero");function lt(C,I){var N=C[I];if(N!=null){if(!We(N))throw new TypeError;return N}}r(lt,"GetMethod");function cn(C){var I=lt(C,s);if(!We(I))throw new TypeError;var N=I.call(C);if(!Ge(N))throw new TypeError;return N}r(cn,"GetIterator");function ws(C){return C.value}r(ws,"IteratorValue");function Ya(C){var I=C.next();return I.done?!1:I}r(Ya,"IteratorStep");function Yo(C){var I=C.return;I&&I.call(C)}r(Yo,"IteratorClose");function Zo(C){var I=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||I!==u)return I;var N=C.prototype,k=N&&Object.getPrototypeOf(N);if(k==null||k===Object.prototype)return I;var ae=k.constructor;return typeof ae!="function"||ae===C?I:ae}r(Zo,"OrdinaryGetPrototypeOf");function yA(){var C;!oe(E)&&typeof n.Reflect<"u"&&!(E in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=TA(n.Reflect));var I,N,k,ae=new T,ot={registerProvider:dt,getProvider:H,setProvider:z};return ot;function dt(ee){if(!Object.isExtensible(ot))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case C===ee:break;case oe(I):I=ee;break;case I===ee:break;case oe(N):N=ee;break;case N===ee:break;default:k===void 0&&(k=new h),k.add(ee);break}}function Ae(ee,xe){if(!oe(I)){if(I.isProviderFor(ee,xe))return I;if(!oe(N)){if(N.isProviderFor(ee,xe))return I;if(!oe(k))for(var Je=cn(k);;){var at=Ya(Je);if(!at)return;var En=ws(at);if(En.isProviderFor(ee,xe))return Yo(Je),En}}}if(!oe(C)&&C.isProviderFor(ee,xe))return C}function H(ee,xe){var Je=ae.get(ee),at;return oe(Je)||(at=Je.get(xe)),oe(at)&&(at=Ae(ee,xe),oe(at)||(oe(Je)&&(Je=new m,ae.set(ee,Je)),Je.set(xe,at))),at}function X(ee){if(oe(ee))throw new TypeError;return I===ee||N===ee||!oe(k)&&k.has(ee)}function z(ee,xe,Je){if(!X(Je))throw new Error("Metadata provider not registered.");var at=H(ee,xe);if(at!==Je){if(!oe(at))return!1;var En=ae.get(ee);oe(En)&&(En=new m,ae.set(ee,En)),En.set(xe,Je)}return!0}}r(yA,"CreateMetadataRegistry");function hA(){var C;return!oe(E)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[E]),oe(C)&&(C=yA()),!oe(E)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,E,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(hA,"GetOrCreateMetadataRegistry");function bA(C){var I=new T,N={isProviderFor:r(function(X,z){var ee=I.get(X);return oe(ee)?!1:ee.has(z)},"isProviderFor"),OrdinaryDefineOwnMetadata:dt,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:ot,OrdinaryOwnMetadataKeys:Ae,OrdinaryDeleteMetadata:H};return L.registerProvider(N),N;function k(X,z,ee){var xe=I.get(X),Je=!1;if(oe(xe)){if(!ee)return;xe=new m,I.set(X,xe),Je=!0}var at=xe.get(z);if(oe(at)){if(!ee)return;if(at=new m,xe.set(z,at),!C.setProvider(X,z,N))throw xe.delete(z),Je&&I.delete(X),new Error("Wrong provider for target.")}return at}r(k,"GetOrCreateMetadataMap");function ae(X,z,ee){var xe=k(z,ee,!1);return oe(xe)?!1:D(xe.has(X))}r(ae,"OrdinaryHasOwnMetadata");function ot(X,z,ee){var xe=k(z,ee,!1);if(!oe(xe))return xe.get(X)}r(ot,"OrdinaryGetOwnMetadata");function dt(X,z,ee,xe){var Je=k(ee,xe,!0);Je.set(X,z)}r(dt,"OrdinaryDefineOwnMetadata");function Ae(X,z){var ee=[],xe=k(X,z,!1);if(oe(xe))return ee;for(var Je=xe.keys(),at=cn(Je),En=0;;){var $m=Ya(at);if(!$m)return ee.length=En,ee;var AA=ws($m);try{ee[En]=AA}catch(CA){try{Yo(at)}finally{throw CA}}En++}}r(Ae,"OrdinaryOwnMetadataKeys");function H(X,z,ee){var xe=k(z,ee,!1);if(oe(xe)||!xe.delete(X))return!1;if(xe.size===0){var Je=I.get(z);oe(Je)||(Je.delete(ee),Je.size===0&&I.delete(Je))}return!0}r(H,"OrdinaryDeleteMetadata")}r(bA,"CreateMetadataProvider");function TA(C){var I=C.defineMetadata,N=C.hasOwnMetadata,k=C.getOwnMetadata,ae=C.getOwnMetadataKeys,ot=C.deleteMetadata,dt=new T,Ae={isProviderFor:r(function(H,X){var z=dt.get(H);return!oe(z)&&z.has(X)?!0:ae(H,X).length?(oe(z)&&(z=new h,dt.set(H,z)),z.add(X),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:I,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:k,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:ot};return Ae}r(TA,"CreateFallbackProvider");function Za(C,I,N){var k=L.getProvider(C,I);if(!oe(k))return k;if(N){if(L.setProvider(C,I,Y))return Y;throw new Error("Illegal state.")}}r(Za,"GetMetadataProvider");function SA(){var C={},I=[],N=(function(){function Ae(H,X,z){this._index=0,this._keys=H,this._values=X,this._selector=z}return r(Ae,"MapIterator"),Ae.prototype["@@iterator"]=function(){return this},Ae.prototype[s]=function(){return this},Ae.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var X=this._selector(this._keys[H],this._values[H]);return H+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},Ae.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),H},Ae.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:H,done:!0}},Ae})(),k=(function(){function Ae(){this._keys=[],this._values=[],this._cacheKey=C,this._cacheIndex=-2}return r(Ae,"Map"),Object.defineProperty(Ae.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Ae.prototype.has=function(H){return this._find(H,!1)>=0},Ae.prototype.get=function(H){var X=this._find(H,!1);return X>=0?this._values[X]:void 0},Ae.prototype.set=function(H,X){var z=this._find(H,!0);return this._values[z]=X,this},Ae.prototype.delete=function(H){var X=this._find(H,!1);if(X>=0){for(var z=this._keys.length,ee=X+1;ee<z;ee++)this._keys[ee-1]=this._keys[ee],this._values[ee-1]=this._values[ee];return this._keys.length--,this._values.length--,Un(H,this._cacheKey)&&(this._cacheKey=C,this._cacheIndex=-2),!0}return!1},Ae.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=C,this._cacheIndex=-2},Ae.prototype.keys=function(){return new N(this._keys,this._values,ae)},Ae.prototype.values=function(){return new N(this._keys,this._values,ot)},Ae.prototype.entries=function(){return new N(this._keys,this._values,dt)},Ae.prototype["@@iterator"]=function(){return this.entries()},Ae.prototype[s]=function(){return this.entries()},Ae.prototype._find=function(H,X){if(!Un(this._cacheKey,H)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(Un(this._keys[z],H)){this._cacheIndex=z;break}}return this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},Ae})();return k;function ae(Ae,H){return Ae}function ot(Ae,H){return H}function dt(Ae,H){return[Ae,H]}}r(SA,"CreateMapPolyfill");function vA(){var C=(function(){function I(){this._map=new m}return r(I,"Set"),Object.defineProperty(I.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),I.prototype.has=function(N){return this._map.has(N)},I.prototype.add=function(N){return this._map.set(N,N),this},I.prototype.delete=function(N){return this._map.delete(N)},I.prototype.clear=function(){this._map.clear()},I.prototype.keys=function(){return this._map.keys()},I.prototype.values=function(){return this._map.keys()},I.prototype.entries=function(){return this._map.entries()},I.prototype["@@iterator"]=function(){return this.keys()},I.prototype[s]=function(){return this.keys()},I})();return C}r(vA,"CreateSetPolyfill");function PA(){var C=16,I=f.create(),N=k();return(function(){function H(){this._key=k()}return r(H,"WeakMap"),H.prototype.has=function(X){var z=ae(X,!1);return z!==void 0?f.has(z,this._key):!1},H.prototype.get=function(X){var z=ae(X,!1);return z!==void 0?f.get(z,this._key):void 0},H.prototype.set=function(X,z){var ee=ae(X,!0);return ee[this._key]=z,this},H.prototype.delete=function(X){var z=ae(X,!1);return z!==void 0?delete z[this._key]:!1},H.prototype.clear=function(){this._key=k()},H})();function k(){var H;do H="@@WeakMap@@"+Ae();while(f.has(I,H));return I[H]=!0,H}function ae(H,X){if(!i.call(H,N)){if(!X)return;Object.defineProperty(H,N,{value:f.create()})}return H[N]}function ot(H,X){for(var z=0;z<X;++z)H[z]=Math.random()*255|0;return H}function dt(H){if(typeof Uint8Array=="function"){var X=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(X):typeof msCrypto<"u"?msCrypto.getRandomValues(X):ot(X,H),X}return ot(new Array(H),H)}function Ae(){var H=dt(C);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var X="",z=0;z<C;++z){var ee=H[z];(z===4||z===6||z===8)&&(X+="-"),ee<16&&(X+="0"),X+=ee.toString(16).toLowerCase()}return X}}r(PA,"CreateWeakMapPolyfill");function $p(C){return C.__=void 0,delete C.__,C}r($p,"MakeDictionary")})})(nS||(nS={}))});var lS=we((Gj,cS)=>{var yI=0,sS="changeUtils: ";function hI(){return"id-"+new Date().valueOf()+"-"+yI++}r(hI,"uid");function bI(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(bI,"appendComponentToReference");function TI(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return bI(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(TI,"getFlexReference");function SI(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}r(SI,"getAppVersion");function vI(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(vI,"getProjectId");function rS(e){return JSON.stringify({fileName:e.id||hI().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:sS+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})}r(rS,"createString");cS.exports={parse:r(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(sS,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(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=TI(t),e.appVersion=SI(t),e.projectId=vI(t,e.reference),rS(e)},"createChangeString"),toString:r(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 rS(e)},"toString")}});var fS=we((Qj,pS)=>{pS.exports={change:lS()}});var nv=we(un=>{"use strict";var XI=/[|\\{}()[\]^$+*?.]/g,JI=Object.prototype.hasOwnProperty,fu=r(function(e,t){return JI.apply(e,[t])},"hasOwn");un.escapeRegExpChars=function(e){return e?String(e).replace(XI,"\\$&"):""};var qI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},zI=/[&<>'"]/g;function YI(e){return qI[e]||e}r(YI,"encode_char");var ZI=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,T.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,T.message+="https://github.com/RyanZim/EJS-Lint",n.async||(T.message+=`
71
- `,T.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),T}var u=n.client?t:r(function(F){var L=r(function(Y,ne){var q=rt.shallowCopy(rt.createNullProtoObjWherePossible(),F);return ne&&(q=rt.shallowCopy(q,ne)),pO(Y,n)(q)},"include");return t.apply(n.context,[F||rt.createNullProtoObjWherePossible(),a,L,cv])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,h=Cr.basename(m,Cr.extname(m));try{Object.defineProperty(u,"name",{value:h,writable:!1,enumerable:!1,configurable:!0})}catch{}}return u},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
71
+ `,T.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),T}var u=n.client?t:r(function(E){var L=r(function(Y,ne){var q=rt.shallowCopy(rt.createNullProtoObjWherePossible(),E);return ne&&(q=rt.shallowCopy(q,ne)),pO(Y,n)(q)},"include");return t.apply(n.context,[E||rt.createNullProtoObjWherePossible(),a,L,cv])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,h=Cr.basename(m,Cr.extname(m));try{Object.defineProperty(u,"name",{value:h,writable:!1,enumerable:!1,configurable:!0})}catch{}}return u},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,o=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,c){var l;if(s.indexOf(o+i)===0&&s.indexOf(o+i+i)!==0&&(l=n[c+2],!(l==i+a||l=="-"+i+a||l=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:r(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],o;n;)o=n.index,o!==0&&(i.push(e.substring(0,o)),e=e.slice(o)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:r(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},"_addOutput"),scanLine:r(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,o=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=mt.modes.EVAL;break;case i+n+"=":this.mode=mt.modes.ESCAPED;break;case i+n+"-":this.mode=mt.modes.RAW;break;case i+n+"#":this.mode=mt.modes.COMMENT;break;case i+n+n:this.mode=mt.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -79,13 +79,13 @@ try {
79
79
  `;break;case mt.modes.ESCAPED:this.source+=" ; __append(escapeFn("+lv(e)+`))
80
80
  `;break;case mt.modes.RAW:this.source+=" ; __append("+lv(e)+`)
81
81
  `;break;case mt.modes.COMMENT:break;case mt.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Ne.escapeXML=rt.escapeXML;Ne.__express=Ne.renderFile;Ne.VERSION=tO;Ne.name=aO;typeof window<"u"&&(window.ejs=Ne)});var on={};ta(on,{deleteConfigEntityByPath:()=>uR,exportConfig:()=>pR,exportConfigEntityByPath:()=>fR,generateSchema:()=>lR,getApiVersion:()=>yR,getChanges:()=>mA,getGenericSchema:()=>jp,getPathToGenericSchema:()=>_P,getProject:()=>PR,importConfig:()=>dR,importProject:()=>gR,importProjectSchema:()=>mR,isDirectory:()=>bR,log:()=>_,readDirectory:()=>wm});module.exports=FA(on);var Z=w(B());var V=w(B());var de=r(e=>typeof e=="string","isString"),er=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),mb=r(e=>e==null?"":""+e,"makeString"),eE=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),tE=/###/g,yb=r(e=>e&&e.indexOf("###")>-1?e.replace(tE,"."):e,"cleanKey"),hb=r(e=>!e||de(e),"canNotTraverseDeeper"),tr=r((e,t,n)=>{let i=de(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(hb(e))return{};let a=yb(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return hb(e)?{}:{obj:e,k:yb(i[o])}},"getLastOfPath"),bb=r((e,t,n)=>{let{obj:i,k:o}=tr(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),c=tr(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=tr(e,s,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},"setPath"),nE=r((e,t,n,i)=>{let{obj:o,k:a}=tr(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),Us=r((e,t)=>{let{obj:n,k:i}=tr(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),iE=r((e,t,n)=>{let i=Us(e,n);return i!==void 0?i:Us(t,n)},"getPathWithDefaults"),xb=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):xb(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),na=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),oE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},aE=r(e=>de(e)?e.replace(/[&<>"'\/]/g,t=>oE[t]):e,"escape"),ef=class ef{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}};r(ef,"RegExpCache");var Qp=ef,rE=[" ",",","?","!",";"],sE=new Qp(20),cE=r((e,t,n)=>{t=t||"",n=n||"";let i=rE.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=sE.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Kp=r((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),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,c="";for(let l=a;l<i.length;++l)if(l!==a&&(c+=n),c+=i[l],s=o[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}o=s}return o},"deepFind"),or=r(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),lE={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)}},nr=class nr{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||lE,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,o){return o&&!this.debug?null:(de(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new nr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nr(this.logger,t)}};r(nr,"Logger");var Xp=nr,kn=new Xp,tf=class tf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+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(([o,a])=>{for(let s=0;s<a;s++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let s=0;s<a;s++)o.apply(o,[t,...n])})}};r(tf,"EventEmitter");var ia=tf,nf=class nf extends ia{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,o={}){var p,f;let a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],i&&(Array.isArray(i)?c.push(...i):de(i)&&a?c.push(...i.split(a)):c.push(i)));let l=Us(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!de(i)?l:Kp((f=(p=this.data)==null?void 0:p[t])==null?void 0:f[n],i,a)}addResource(t,n,i,o,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=[t,n];i&&(c=c.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),bb(this.data,c,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i,o={silent:!1}){for(let a in i)(de(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a,s={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=i,i=n,n=c[1]),this.addNamespaces(n);let l=Us(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?xb(l,i,a):l={...l,...i},bb(this.data,c,l),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(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(nf,"ResourceStore");var ks=nf,Ib={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,o))??t}),t}},Ob=Symbol("i18next/PATH_KEY");function pE(){let e=[],t=Object.create(null),n;return t.get=(i,o)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),o===Ob?e:(e.push(o),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}r(pE,"createProxy");function Jp(e,t){let{[Ob]:n}=e(pE());return n.join((t==null?void 0:t.keySeparator)??".")}r(Jp,"keysFromSelector");var Tb={},Gp=r(e=>!de(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Gs=class Gs extends ia{constructor(t,n={}){super(),eE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=kn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let o=this.resolve(t,i);if((o==null?void 0:o.res)===void 0)return!1;let a=Gp(o.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 o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!cE(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:de(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:de(a)?[a]:a}}translate(t,n,i){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Jp(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],o),p=l[l.length-1],f=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");let u=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode")return m?a?{res:`${p}${f}${c}`,usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${f}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:c;let h=this.resolve(t,o),T=h==null?void 0:h.res,F=(h==null?void 0:h.usedKey)||c,L=(h==null?void 0:h.exactUsedKey)||c,Y=["[object Number]","[object Function]","[object RegExp]"],ne=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=o.count!==void 0&&!de(o.count),ie=Gs.hasDefaultValue(o),fe=ue?this.pluralResolver.getSuffix(u,o.count,o):"",Ve=o.ordinal&&ue?this.pluralResolver.getSuffix(u,o.count,{ordinal:!1}):"",P=ue&&!o.ordinal&&o.count===0,ke=P&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${fe}`]||o[`defaultValue${Ve}`]||o.defaultValue,Xe=T;q&&!T&&ie&&(Xe=ke);let ze=Gp(Xe),oi=Object.prototype.toString.apply(Xe);if(q&&Xe&&ze&&Y.indexOf(oi)<0&&!(de(ne)&&Array.isArray(Xe))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Nt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(F,Xe,{...o,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(h.res=Nt,h.usedParams=this.getUsedParamsDetails(o),h):Nt}if(s){let Nt=Array.isArray(Xe),st=Nt?[]:{},ai=Nt?L:F;for(let be in Xe)if(Object.prototype.hasOwnProperty.call(Xe,be)){let Ut=`${ai}${s}${be}`;ie&&!T?st[be]=this.translate(Ut,{...o,defaultValue:Gp(ke)?ke[be]:void 0,joinArrays:!1,ns:l}):st[be]=this.translate(Ut,{...o,joinArrays:!1,ns:l}),st[be]===Ut&&(st[be]=Xe[be])}T=st}}else if(q&&de(ne)&&Array.isArray(T))T=T.join(ne),T&&(T=this.extendTranslation(T,t,o,i));else{let Nt=!1,st=!1;!this.isValidLookup(T)&&ie&&(Nt=!0,T=ke),this.isValidLookup(T)||(st=!0,T=c);let be=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&st?void 0:T,Ut=ie&&ke!==T&&this.options.updateMissing;if(st||Nt||Ut){if(this.logger.log(Ut?"updateKey":"missingKey",u,p,c,Ut?ke:T),s){let ct=this.resolve(c,{...o,keySeparator:!1});ct&&ct.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 sn=[],Cn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Cn&&Cn[0])for(let ct=0;ct<Cn.length;ct++)sn.push(Cn[ct]);else this.options.saveMissingTo==="all"?sn=this.languageUtils.toResolveHierarchy(o.lng||this.language):sn.push(o.lng||this.language);let zt=r((ct,oe,Dt)=>{var Ge;let ro=ie&&Dt!==T?Dt:be;this.options.missingKeyHandler?this.options.missingKeyHandler(ct,p,oe,ro,Ut,o):(Ge=this.backendConnector)!=null&&Ge.saveMissing&&this.backendConnector.saveMissing(ct,p,oe,ro,Ut,o),this.emit("missingKey",ct,p,oe,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?sn.forEach(ct=>{let oe=this.pluralResolver.getSuffixes(ct,o);P&&o[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(Dt=>{zt([ct],c+Dt,o[`defaultValue${Dt}`]||ke)})}):zt(sn,c,ke))}T=this.extendTranslation(T,t,o,h,i),st&&T===c&&this.options.appendNamespaceToMissingKey&&(T=`${p}${f}${c}`),(st||Nt)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${f}${c}`:c,Nt?T:void 0,o))}return a?(h.res=T,h.usedParams=this.getUsedParamsDetails(o),h):T}extendTranslation(t,n,i,o,a){var l,p;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let f=de(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(f){let h=t.match(this.interpolator.nestingRegexp);u=h&&h.length}let m=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||o.usedLng,i),f){let h=t.match(this.interpolator.nestingRegexp),T=h&&h.length;u<T&&(i.nest=!1)}!i.lng&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(a==null?void 0:a[0])===h[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,c=de(s)?[s]:s;return t!=null&&(c!=null&&c.length)&&i.applyPostProcessor!==!1&&(t=Ib.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,o,a,s,c;return de(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(l,n),f=p.key;o=f;let u=p.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!de(n.count),h=m&&!n.ordinal&&n.count===0,T=n.context!==void 0&&(de(n.context)||typeof n.context=="number")&&n.context!=="",F=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(L=>{var Y,ne;this.isValidLookup(i)||(c=L,!Tb[`${F[0]}-${L}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((ne=this.utils)!=null&&ne.hasLoadedNamespace(c))&&(Tb[`${F[0]}-${L}`]=!0,this.logger.warn(`key "${o}" for languages "${F.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),F.forEach(q=>{var fe;if(this.isValidLookup(i))return;s=q;let ue=[f];if((fe=this.i18nFormat)!=null&&fe.addLookupKeys)this.i18nFormat.addLookupKeys(ue,f,q,L,n);else{let Ve;m&&(Ve=this.pluralResolver.getSuffix(q,n.count,n));let P=`${this.options.pluralSeparator}zero`,ke=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&Ve.indexOf(ke)===0&&ue.push(f+Ve.replace(ke,this.options.pluralSeparator)),ue.push(f+Ve),h&&ue.push(f+P)),T){let Xe=`${f}${this.options.contextSeparator||"_"}${n.context}`;ue.push(Xe),m&&(n.ordinal&&Ve.indexOf(ke)===0&&ue.push(Xe+Ve.replace(ke,this.options.pluralSeparator)),ue.push(Xe+Ve),h&&ue.push(Xe+P))}}let ie;for(;ie=ue.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(q,L,ie,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,o={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!de(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Gs,"Translator");var _s=Gs,of=class of{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kn.create("languageUtils")}getScriptPartFromCode(t){if(t=or(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=or(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(de(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 o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getScriptPartFromCode(i);if(this.isSupportedCode(o))return n=o;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)),de(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),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return de(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))):de(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(of,"LanguageUtil");var Bs=of,Sb={zero:0,one:1,two:2,few:3,many:4,other:5},vb={select:r(e=>e===1?"one":"other","select"),resolvedOptions:r(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},af=class af{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=kn.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=or(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),vb;if(!t.match(/-|_/))return vb;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,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(o=>`${n}${o}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((o,a)=>Sb[o]-Sb[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,i={}){let o=this.getRule(t,i);return o?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};r(af,"PluralResolver");var qp=af,Pb=r((e,t,n,i=".",o=!0)=>{let a=iE(e,t,n);return!a&&o&&de(n)&&(a=Kp(e,n,i),a===void 0&&(a=Kp(t,n,i))),a},"deepFindWithDefaults"),Wp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),rf=class rf{constructor(t={}){var n;this.logger=kn.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:o,prefix:a,prefixEscaped:s,suffix:c,suffixEscaped:l,formatSeparator:p,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:h,nestingSuffix:T,nestingSuffixEscaped:F,nestingOptionsSeparator:L,maxReplaces:Y,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:aE,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?na(a):s||"{{",this.suffix=c?na(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?na(m):h||na("$t("),this.nestingSuffix=T?na(T):F||na(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=Y||1e3,this.alwaysFormat=ne!==void 0?ne:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((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,o){var h;let a,s,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(T=>{if(T.indexOf(this.formatSeparator)<0){let ne=Pb(n,l,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ne,void 0,i,{...o,...n,interpolationkey:T}):ne}let F=T.split(this.formatSeparator),L=F.shift().trim(),Y=F.join(this.formatSeparator).trim();return this.format(Pb(n,l,L,this.options.keySeparator,this.options.ignoreJSONStructure),Y,i,{...o,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let f=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((h=o==null?void 0:o.interpolation)==null?void 0:h.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(T=>Wp(T),"safeValue")},{regex:this.regexp,safeValue:r(T=>this.escapeValue?Wp(this.escape(T)):Wp(T),"safeValue")}].forEach(T=>{for(c=0;a=T.regex.exec(t);){let F=a[1].trim();if(s=p(F),s===void 0)if(typeof f=="function"){let Y=f(t,a,o);s=de(Y)?Y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,F))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${F} for interpolating ${t}`),s="";else!de(s)&&!this.useRawValueToEscape&&(s=mb(s));let L=T.safeValue(s);if(t=t.replace(a[0],L),u?(T.regex.lastIndex+=s.length,T.regex.lastIndex-=a[0].length):T.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,i={}){let o,a,s,c=r((l,p)=>{let f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;let u=l.split(new RegExp(`${f}[ ]*{`)),m=`{${u[1]}`;l=u[0],m=this.interpolate(m,s);let h=m.match(/'/g),T=m.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!T||T.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),p&&(s={...p,...s})}catch(F){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,F),`${l}${f}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let l=[];s={...i},s=s.replace&&!de(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(p!==-1&&(l=o[1].slice(p).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),o[1]=o[1].slice(0,p)),a=n(c.call(this,o[1].trim(),s),s),a&&o[0]===t&&!de(a))return a;de(a)||(a=mb(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),l.length&&(a=l.reduce((f,u)=>this.format(f,u,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(rf,"Interpolator");var zp=rf,fE=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[c,...l]=s.split(":"),p=l.join(":").trim().replace(/^'+|'+$/g,""),f=c.trim();n[f]||(n[f]=p),p==="false"&&(n[f]=!1),p==="true"&&(n[f]=!0),isNaN(p)||(n[f]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Ab=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),c=t[s];return c||(c=e(or(i),o),t[s]=c),c(n)}},"createCachedFormatter"),uE=r(e=>(t,n,i)=>e(or(n),i)(t),"createNonCachedFormatter"),sf=class sf{constructor(t={}){this.logger=kn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?Ab:uE;this.formats={number:i((o,a)=>{let s=new Intl.NumberFormat(o,{...a});return c=>s.format(c)}),currency:i((o,a)=>{let s=new Intl.NumberFormat(o,{...a,style:"currency"});return c=>s.format(c)}),datetime:i((o,a)=>{let s=new Intl.DateTimeFormat(o,{...a});return c=>s.format(c)}),relativetime:i((o,a)=>{let s=new Intl.RelativeTimeFormat(o,{...a});return c=>s.format(c,a.range||"day")}),list:i((o,a)=>{let s=new Intl.ListFormat(o,{...a});return c=>s.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ab(n)}format(t,n,i,o={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){let c=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,l)=>{var u;let{formatName:p,formatOptions:f}=fE(l);if(this.formats[p]){let m=c;try{let h=((u=o==null?void 0:o.formatParams)==null?void 0:u[o.interpolationkey])||{},T=h.locale||h.lng||o.locale||o.lng||i;m=this.formats[p](c,T,{...f,...o,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return c},t)}};r(sf,"Formatter");var Yp=sf,dE=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),cf=class cf extends ia{constructor(t,n,i,o={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=kn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},c={},l={};return t.forEach(p=>{let f=!0;n.forEach(u=>{let m=`${p}|${u}`;!i.reload&&this.store.hasResourceBundle(p,u)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,f=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(c[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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 c={};this.queue.forEach(l=>{nE(l.loaded,[a],s),dE(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(p=>{c[p]||(c[p]={});let f=l.loaded[p];f.length&&f.forEach(u=>{c[p][u]===void 0&&(c[p][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,i,o=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:o,wait:a,callback:s});return}this.readingCalls++;let c=r((p,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(p&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,f)},"resolver"),l=this.backend[i].bind(this.backend);if(l.length===2){try{let p=l(t,n);p&&typeof p.then=="function"?p.then(f=>c(null,f)).catch(c):c(null,p)}catch(p){c(p)}return}return l(t,n,c)}prepareLoading(t,n,i={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(t)&&(t=this.languageUtils.toResolveHierarchy(t)),de(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),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("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,c),this.loaded(t,s,c)})}saveMissing(t,n,i,o,a,s={},c=()=>{}){var l,p,f,u,m;if((p=(l=this.services)==null?void 0:l.utils)!=null&&p.hasLoadedNamespace&&!((u=(f=this.services)==null?void 0:f.utils)!=null&&u.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((m=this.backend)!=null&&m.create){let h={...s,isUpdate:a},T=this.backend.create.bind(this.backend);if(T.length<6)try{let F;T.length===5?F=T(t,n,i,o,h):F=T(t,n,i,o),F&&typeof F.then=="function"?F.then(L=>c(null,L)).catch(c):c(null,F)}catch(F){c(F)}else T(t,n,i,o,c,h)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(cf,"Connector");var Zp=cf,Cb=r(()=>({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:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),de(e[1])&&(t.defaultValue=e[1]),de(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),Eb=r(e=>{var t,n;return de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(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"),Ms=r(()=>{},"noop"),gE=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),ir=class ir extends ia{constructor(t={},n){if(super(),this.options=Eb(t),this.services={},this.logger=kn,this.modules={external:[]},gE(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&&(de(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=Cb();this.options={...i,...this.options,...Eb(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 o=r(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?kn.init(o(this.modules.logger),this.options):kn.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Yp;let f=new Bs(this.options);this.store=new ks(this.options.resources,this.options);let u=this.services;u.logger=kn,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new qp(f,{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)&&(u.formatter=o(p),u.formatter.init&&u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new zp(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Zp(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(h,...T)=>{this.emit(h,...T)}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new _s(this.services,this.options),this.translator.on("*",(h,...T)=>{this.emit(h,...T)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ms),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]=(...f)=>this.store[p](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...f)=>(this.store[p](...f),this)});let c=er(),l=r(()=>{let p=r((f,u)=>{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),c.resolve(u),n(f,u)},"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?l():setTimeout(l,0),c}loadResources(t,n=Ms){var a,s;let i=n,o=de(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let c=[],l=r(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(u=>{u!=="cimode"&&c.indexOf(u)<0&&c.push(u)})},"append");o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>l(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let o=er();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=Ms),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&Ib.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=er();this.emit("languageChanging",t);let o=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),a=r((c,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(c,(...p)=>this.t(...p))},"done"),s=r(c=>{var f,u;!t&&!c&&this.services.languageDetector&&(c=[]);let l=de(c)?c:c&&c[0],p=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(de(c)?[c]:c);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),(u=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||u.call(f,p)),this.loadResources(p,m=>{a(m,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 o=r((a,s,...c)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([a,s].concat(c)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||o.keyPrefix);let p=this.options.keySeparator||".",f;return l.keyPrefix&&Array.isArray(a)?f=a.map(u=>(typeof u=="function"&&(u=Jp(u,{...this.options,...s})),`${l.keyPrefix}${p}${u}`)):(typeof a=="function"&&(a=Jp(a,{...this.options,...s})),f=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a),this.t(f,l)},"fixedT");return de(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=i,o}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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((c,l)=>{let p=this.services.backendConnector.state[`${c}|${l}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=er();return this.options.ns?(de(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=er();de(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var o,a;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let c=s.getTextInfo();if(c&&c.direction)return c.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 Bs(Cb());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 ir(t,n)}cloneInstance(t={},n=Ms){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new ir(o);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let c=Object.keys(this.store.data).reduce((l,p)=>(l[p]={...this.store.data[p]},l[p]=Object.keys(l[p]).reduce((f,u)=>(f[u]={...l[p][u]},f),l[p]),l),{});a.store=new ks(c,o),a.services.resourceStore=a.store}return a.translator=new _s(a.services,o),a.translator.on("*",(c,...l)=>{a.emit(c,...l)}),a.init(o,n),a.translator.options=o,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}}};r(ir,"I18n");var Hs=ir,R=Hs.createInstance();R.createInstance=Hs.createInstance;var DR=R.createInstance,RR=R.dir,jR=R.init,wR=R.loadResources,$R=R.reloadResources,MR=R.use,UR=R.changeLanguage,kR=R.getFixedT,_R=R.t,BR=R.exists,HR=R.setDefaultNamespace,GR=R.hasLoadedNamespace,WR=R.loadNamespaces,QR=R.loadLanguages;var GT=w(lf()),WT=w(tT()),uc=w(_T()),Te=require("@sap-ux/vocabularies-types/vocabularies/UI"),lr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var lc=w(B());var _=r((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(`${lc.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${lc.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${lc.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var O="#/definitions/",Kx=[V.v4.FE_TEMPLATE_V4_LIST_REPORT,V.v4.FE_TEMPLATE_V4_ALP,V.v4.FE_TEMPLATE_V4_OBJECT_PAGE,V.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],Xx=["sap.fe.core","sap.fe.templates"],pa=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),_t=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function In(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,uc.parse)(o.fileContent,o.dataSourceUri))}catch(a){return _(t,{severity:V.LogSeverity.Error,message:R.t("ANNOERR"),location:{path:R.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,uc.merge)(...n);i=(0,WT.convert)(o)}return i}r(In,"parseAndMergeAndConvert");var la=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Of(e,t,n){var i,o,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 c=t&&t.resolvePath(e.Common.Label.path);c!=null&&c.value?n=c.value:typeof((o=c==null?void 0:c.Common)==null?void 0:o.Label)=="string"&&(n=c.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}r(Of,"evaluateCommonLabel");function fa(e,t){let n=e.value;return e.$target&&(n=Of(e.$target.annotations,t,n)),n}r(fa,"getLabelForPropertyPath");function pc(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=Of(i.annotations,t,n)),n}r(pc,"getLabelForDataField");function Jx(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Of(a.annotations,t,s)}}}else return}r(Jx,"getLabel");function BT(e,t,n){let i=pc(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(BT,"getTitleForDataField");function xt(e,t){var s,c,l,p;let n="",i,o,a="";try{let f=Jx(e.Label,t);switch(e.$Type){case Te.UIAnnotationTypes.DataField:n=BT(e,t,f);break;case Te.UIAnnotationTypes.DataFieldWithUrl:i=pc(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=pc(e,t),n=f||i||((c=(s=o.Target)==null?void 0:s.$target)==null?void 0:c.Title)||((l=o.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case Te.UIAnnotationTypes.DataFieldForAction:case Te.UIAnnotationTypes.DataFieldWithAction:case Te.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,f?n=typeof f=="string"?f:a:n=a;break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=pc(e,t),n=i||e.Value.path;break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=BT(o,t,f);break;default:break}return n}catch{return n}}r(xt,"getDataFieldDescription");function Ie(e){return e.replace("#","::").replace(/\//g,":2f")}r(Ie,"prepareRef");function pi(e){if(e){let t=`${V.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(pi,"getPageTypeV2");function Ff(e){let t="name"in e&&typeof e.name=="string"?fc(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return V.PageTypeV4.CustomPage}r(Ff,"getPageTypeV4");function qx(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(qx,"getTargetAnnotationName");function Bt(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}r(Bt,"findAlias");function zx(e,t,n){var s,c;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=Bt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(c=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:c[o]}r(zx,"determineTargetAnnotation");function Yx(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${Te.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${V.UIVOCABULARY}`);return e}r(Yx,"adjustKey");function Zx(e,t,n,i,o=V.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,c,l=i.split("/"),p=l.length>1;p&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=Yx(t,l,a);let f=zx(l,n,e);if(f){let h=o===V.FioriElementsVersion.v2?"::":"#";t=qx(f,a).replace("#",h),c=(m=f.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:c};if(p){let h=o===V.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(h)}${h}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(Zx,"getKeyAndEntityTypeOfReferenceFacet");function QT(e,t,n,i,o=V.FioriElementsVersion.v2,a=!1){var f,u,m;let s=(u=e.fullyQualifiedName)==null?void 0:u.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),c=e.ID?e.ID.toString():s,l=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],p=t;if(e.$Type!==Te.UIAnnotationTypes.CollectionFacet&&"Target"in e){let h=la(e.Target);if(!h){_(i,{severity:V.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:T,entityType:F,stopProcessing:L,namespace:Y}=Zx(n,c,p,h,o,a);if(L)return;c=T,p=F,l=Y}if(c=c.replace(/\//gi,"::"),c)return{key:c,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:l}}r(QT,"getSectionFacet");var fi=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let c=0;c<s.length;c++){let l=s[c];if(l==="[]")continue;let p=i&&i===l?n:l.replace("??","/");if(!a[p]){if(o)return;s[c+1]==="[]"?a[p]=[]:a[p]={}}a=a[p]}return a},"getManifestSectionByPathV4");function Vf(e){let t,n,i;switch(e.$Type){case Te.UIAnnotationTypes.DataField:t=la(e.Value);break;case Te.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:la(e.Value);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${V.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Te.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Ie(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=la(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Te.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Ie(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:i=la(e.Value),n=la(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Vf,"getSchemaKeyOfLineItemRecord");function eI(e,t,n){return e.includes(Te.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Te.UIAnnotationTerms.Chart:e.includes(Te.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Te.UIAnnotationTerms.Identification:n&&e.includes(Te.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Te.UIAnnotationTerms.LineItem:e.includes(Te.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Te.UIAnnotationTerms.FieldGroup:e.includes(Te.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Te.UIAnnotationTerms.DataPoint:e.includes(Te.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Te.UIAnnotationTerms.PresentationVariant:void 0}r(eI,"getUIAnnotationTerm");function tI(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?lr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?lr.CommunicationAnnotationTerms.Address:void 0}r(tI,"getCommunicationAnnotationTerm");function nI(e,t,n){return eI(e,t,n)||tI(e,t)}r(nI,"getAnnotationTerm");function iI(e,t,n,i,o){var p,f,u,m,h,T,F,L,Y;let a=Bt(V.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(nI(s,a,i)){case Te.UIAnnotationTerms.Chart:{n[s]={base:V.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.Identification:{n[s]={base:V.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.LineItem:{if(!s.includes(Te.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ne=s.split("::");ne[ne.length-1]=`@${Te.UIAnnotationTerms.LineItem}`,s=ne.join("::")}n[s]={base:V.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.FieldGroup:{n[s]={base:V.FacetBase.Form},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.DataPoint:{n[s]={base:V.FacetBase.DataPoint},n[s].Label=(h=t==null?void 0:t.Target)==null?void 0:h.$target.Title,n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.PresentationVariant:{n[s]={base:V.FacetBase.PresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case lr.CommunicationAnnotationTerms.Contact:{n[s]={base:V.FacetBase.Contact},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case lr.CommunicationAnnotationTerms.Address:{n[s]={base:V.FacetBase.Address},n[s].target=(Y=t==null?void 0:t.Target)==null?void 0:Y.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}default:n[s]={base:V.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",V.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(iI,"evaluateTargetAnnotation");function Lf(e,t,n,i,o,a=V.FioriElementsVersion.v2,s){var l;let c=QT(e,i,t,s,a,!1);if(c)switch(e.$Type){case Te.UIAnnotationTypes.ReferenceFacet:{iI(c,e,o,i,t);break}case Te.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=o[c.key]={base:V.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:p,Label:c.label,namespace:c.namespace};!f.ID&&a===V.FioriElementsVersion.v4&&_(s,{severity:V.LogSeverity.Error,message:R.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(l=e.Facets)==null||l.forEach(u=>{Lf(u,t,n,i,f.facets,a,s)});break}}}r(Lf,"addFacetToConfig");function dc(e,t,n=V.FioriElementsVersion.v2,i){var c,l;let o={};if(!e||!e.annotations)return;let a=Bt(V.UIVOCABULARY,t),s=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,p);s.forEach(u=>{Lf(u,t,f,e,o,n,i)})}return o}r(dc,"getObjectPageHeaderFacets");function gc(e,t,n=V.FioriElementsVersion.v2,i){var c;let o={};if(!e||!e.annotations)return;let a=Bt(V.UIVOCABULARY,t),s=a&&((c=e==null?void 0:e.annotations[a])==null?void 0:c.Facets);if(s){let l=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,l);s.forEach(f=>{Lf(f,t,p,e,o,n,i)})}return o}r(gc,"getObjectPageFacets");function Nf(e){var t,n,i,o;if(e[V.ManifestSection.generic]&&Object.keys(e[V.ManifestSection.generic]).length>0||e[V.ManifestSection.ovp]&&Object.keys(e[V.ManifestSection.ovp]).length>0)return V.FioriElementsVersion.v2;{let a=(n=(t=e[V.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[V.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(c=>{let l=typeof a[c].name=="string"?a[c].name:"";return Kx.indexOf(l)>-1||fc(l)})||s&&Object.keys(s).find(c=>Xx.indexOf(c)>-1)?V.FioriElementsVersion.v4:void 0}}r(Nf,"getFEVersionFromManifest");function oI(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[V.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[V.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[V.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[V.ManifestSection.ui5].models[t].dataSource:void 0}r(oI,"getMainService");function KT(e){var i,o;let t=oI(e);if(!t)return V.OdataVersion.v2;let n=(i=e[V.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?V.OdataVersion.v4:V.OdataVersion.v2}r(KT,"getODataVersionFromManifest");function aI(e,t){var i,o;let n;if(e[V.ManifestSection.generic]){let a=e[V.ManifestSection.generic].pages;if(!a){_(t,{severity:V.LogSeverity.Error,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}});return}for(let s in a){let c=a[s];if(pi((i=c.component)==null?void 0:i.name)===V.PageTypeV2.AnalyticalListPage){n=V.TemplateType.AnalyticalListPageV2;break}else if(pi((o=c.component)==null?void 0:o.name)===V.PageTypeV2.ListReport){n=V.TemplateType.ListReportObjectPageV2;break}}}else n||_(t,{severity:V.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:V.ManifestSection.generic}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}});return n}r(aI,"determineV2Template");function pr(e){var i,o,a,s;let t,n=Ff(e);if(n===V.PageTypeV4.AnalyticalListPage)t=V.TemplateType.AnalyticalListPageV4;else if(n===V.PageTypeV4.ListReport){let c=(s=(a=(o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.views)==null?void 0:a.paths)==null?void 0:s[0];c&&(c[V.ALPViewType.Primary]||c[V.ALPViewType.Secondary])?t=V.TemplateType.AnalyticalListPageV4:t=V.TemplateType.ListReportObjectPageV4}else n===V.PageTypeV4.ObjectPage?t=V.TemplateType.ListReportObjectPageV4:n===V.PageTypeV4.CustomPage&&(t=V.TemplateType.FreestylePageV4);return t}r(pr,"determineV4PageTemplateType");function rI(e){let t;for(let n in e){let i=e[n];if(t=pr(i),t)break}return t}r(rI,"determineV4TemplateFromPages");function sI(e,t){let n=e[V.ManifestSection.ui5].routing&&e[V.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return _(t,{severity:V.LogSeverity.Info,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.ui5,"routing"]}}),V.TemplateType.ListReportObjectPageV4;let i=rI(n);return i||_(t,{severity:V.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:V.ManifestSection.ui5}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.ui5,"routing","targets"]}}),i}r(sI,"determineV4Template");function co(e,t,n){let i;return e[V.ManifestSection.ovp]?i=V.TemplateType.OverviewPageV2:t===V.FioriElementsVersion.v2?i=aI(e,n):t===V.FioriElementsVersion.v4&&(i=sI(e,n)),i}r(co,"getTemplateTypeFromManifest");function ui(e,t,n){e!=null&&e.ID?(t.title=V.FACETTITLEPREFIX+e.ID,t[V.SchemaTag.keys]=[{name:V.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[V.SchemaTag.keys]=[{name:V.SchemaKeyName.id,value:n.replace(V.UIVOCABULARYALPHADOT,"")}])}r(ui,"addSectionTitle");function Vi(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)}r(Vi,"addSectionDescription");function ua(e,t,n){var i,o;ui(e,t,n),Vi(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(ua,"addTargetTitleAndSectionDescription");function XT(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(XT,"addChartFacetID");function Hn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[V.SchemaTag.isViewNode]=!0,i[V.SchemaTag.annotationPath]=t.annotationPath,ua(t,i,n),i}r(Hn,"createDefaultSection");function JT(e,t,n,i=V.FioriElementsVersion.v2,o=!1){var c,l;let a=Bt(V.UIVOCABULARY,t),s=[];if(e){let p=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.Facets);return p&&(s=p.reduce(function(f,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return f;let m=QT(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(JT,"getObjectPageFacetSection");var Li=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,c=t.split("/");c.forEach(function(l){let p=a&&a===l?o:l.replace("??","/");if(!(!s[p]&&(a===l&&(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],c.pop(),Li(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),HT=r(e=>e===V.SchemaType.FreestylePage?V.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Ye=r((e,t)=>{let n={filename:"",path:""};switch(e){case V.SchemaType.Application:{n.filename="App",n.path=`./${V.DirName.Schemas}/${n.filename}`;break}case V.SchemaType.ListReport:case V.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:HT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}default:{n.filename=HT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function da(e,t,n,i){if(e===V.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(da,"generatePageId");function qT(e,t,n){let i=t==null?void 0:t.properties,o=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,c=e.definitions[s.split(O)[1]];typeof c=="object"&&(i=c.properties,o=c.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let c=n[s];typeof c=="object"&&o.every(l=>c[l]!==void 0)&&a.push(s)}return a}r(qT,"findMatchingKeysByAdditionalProperties");function cI(e,t,n,i){let o=e.$ref;if(o){let a=o.split(O)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(cI,"fillArrayFromAnyOfReference");function lI(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(O)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{cI(o,n,t,i)}),i.length===0))return;return i}r(lI,"fillArrayFromPropertyDefinition");function pI(e,t,n,i,o,a,s,c){var p,f,u,m;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let h=e[e.length-1];if(l.targetDefinition=t.definitions[h],(p=l==null?void 0:l.targetDefinition)!=null&&p.$ref||((f=l==null?void 0:l.targetDefinition)==null?void 0:f.type)==="array")return l=Gn(t,n,i,l.targetDefinition,o,a,s),l;e.length>1&&e.forEach(L=>{L!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[L].properties})}),l.title=(u=l==null?void 0:l.targetDefinition)!=null&&u.title?l.targetDefinition.title:n;let T=h==null?void 0:h.split("<")[0],F=i||{};l.configObject=a.createInstance(s,T,F,(m=l==null?void 0:l.targetDefinition)==null?void 0:m.controlProperty)}else l.targetDefinition=c,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=i;return l}r(pI,"determineNextDefinitionFromDefinitionArray");function Gn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=Gn(e,t,n,i.items,o,a,s),c;let l=lI(i,n,e);if(l)return c=pI(l,e,t,n,o,a,s,i),c}r(Gn,"getNextTargetDefinition");var Df=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,GT.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function Ht(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(Ht,"convertActionKeyToStableId");function ga(e){return e==null?void 0:e.split(O)[1]}r(ga,"getDefinitionKey");function zT(e){return`#/definitions/${e}`}r(zT,"getDefinitionsRef");function YT(e){return e instanceof Error?e.message:String(e)}r(YT,"getErrorMessage");function Wn(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Wn,"updatePropertyIndices");function ZT(e){return e=e.replace(V.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(ZT,"removeNamespaces");function ma(e){return e=e.replace(V.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(ma,"replaceNamespaces");function di(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(O))return t.substring(O.length)}r(di,"getRefType");function fc(e){if(e!=null&&e.startsWith(`${V.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in V.PageTypeV4)return V.PageTypeV4[n]}}r(fc,"convertTemplateNameToPageTypeV4");function mc(e,t){if(e===t)return!0;let n=fc(e);return n?n===fc(t):!1}r(mc,"compareTemplateNames");var Mn=require("@sap-ux/vocabularies-types/vocabularies/UI"),j=w(B());var Gt=w(B());var Qe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),yc=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),yt=r((e,t)=>{let n,i=Gt.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 fI(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(fI,"escapeId");var eS=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(eS||{});function uI(e,t,n){let i;return e=e.map(function(o){if(o===Gt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Gt.PropertyName.sections)return i=t[a+1],t[a+1]=yt(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(uI,"mapBreadcrumbs");var Rf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=uI(t,s,o)),s[0]===Gt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Gt.VOCWITHSLASH):t[0]===Gt.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,f=l.indexOf(":::");return l.startsWith("DataField")&&f>-1?(l=l.replace("/",":2f"),p=`${e}template:::TableColumn:::${l.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(f+3)}`):(l=l.replace("/","_"),p=`${e}${t.join("::")}-${l}`),fI(p)},"buildColumnControlId"),Wt=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function dI(e){let t=Gt.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}r(dI,"determinePattern");var tS=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,c=a.$ref?e.definitions[a.$ref.split(O)[1]]:a,l=a.description?a.description:c.description,p=dI(c);c.type&&c.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},l&&(o[n].description=l,delete a.description)},"addPatternForBindingChangeOfEnum"),Qn=r((e,t,n)=>{tS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Oe=r((e,t,n)=>{let i=Object.values(eS);tS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function lo(){}r(lo,"doNotDelete");var _j=w(iS());var jf=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(jf,e),"syncRule");function pt(e,t){let n;return e&&(n=Reflect.getMetadata(jf,e,t)),n}r(pt,"getReflectMetadata");function oS(e){let t;return e&&(t=Reflect.getMetadata(jf,e)),t}r(oS,"getReflectTypeMetadata");var Qt=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),aS=Symbol("childId"),_e=r(e=>Reflect.metadata(aS,e),"childId"),hc=r((e,t)=>Reflect.getMetadata(aS,e,t),"getChildId"),bc=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),gI=Symbol("descriptionSrcURL"),ce=r(e=>Reflect.metadata(gI,e),"descriptionSrcURL");var mI=Symbol("validityMetadataKey"),S=r(e=>Reflect.metadata(mI,e),"validity");function ya(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}r(ya,"getTextForDeprecated");var dS=w(fS()),gS=w(B());var mS=dS.default.change,uS={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function yS(e,t){let n="";try{for(let i in uS)e[i]===void 0&&(e[i]=uS[i]);n=mS.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(yS,"createChangeString");function Zt(e){try{return mS.parse(e)}catch{return!1}}r(Zt,"parseChangeString");function hS(e,t,n,i,o){let a=n.layer?n.layer===gS.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(hS,"fillFlexChangeContent");function U(e,t){return yS(e,t)}r(U,"exportToFlexChange");var po=w(B());function ha(e,t,n,i,o,a){let s=e.manifest.key||n,c=e.manifest.import;if(c&&typeof c=="function"){let l=c(t,o,n,a);l!==void 0&&(i[n]=l)}else t[s]!==void 0&&(i[n]=t[s])}r(ha,"importProperty");function Tc(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(_(i,{severity:po.LogSeverity.Warning,message:ya(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Tc,"checkDeprecatedProperties");function wf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(O)[1]];return wf(n,t)}else return e.title?e.title.startsWith(po.FACETTITLEPREFIX)?e.title.split(po.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(wf,"getSectionTitle");function Sc(e){let t=e.split(`${po.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(Sc,"getTargetFromCustomColumnRef");function fo(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(fo,"removeEmptyStructure");var Me=require("@sap-ux/vocabularies-types/vocabularies/UI");var gi=require("@sap-ux/vocabularies-types/vocabularies/UI");function vc(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}}r(vc,"replaceSpecialChars");var uo=r(function(e){return vc(ZT(e))},"prepareId");function PI(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(PI,"evaluateConcat");function go(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 PI(e);if(e&&typeof e=="string")return vc(e.replace(/ /g,"_"))}r(go,"getStableIdPartFromValue");var bS=r(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"),mi=r(function(e){let t="";if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=bS(e),t;if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=uo(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=go(e.Value)+"::"),t+=e.Action,uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataField)return t="DataField::",t+=go(e.Value),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=go(e.Value)+"::",t+=bS(e),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=go(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=go(e.Value),uo(t)},"getStableIdPartFromDataField");var M=w(B());var re=w(B());var Kt=require("@sap-ux/vocabularies-types/vocabularies/UI"),PS=require("path"),AS=w(cr());var mo="ResponsiveTableWithMultiSelect<LineItems>",yo="ResponsiveTableWithInlineDelete<LineItems>",Pc="TreeTable<LineItems>",Ac="AnalyticalTable<LineItems>",Cc="GridTable<LineItems>",$f=[mo,yo,Pc,Ac,Cc],TS=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],SS="template::",Ec="template:::ObjectPageAction:::";function AI(e,t,n){e.definitions[re.DefinitionName.LineItems]&&(e.definitions[re.DefinitionName.LineItems].properties.custom={$ref:`${O}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${O}${n}`},description:"Custom Columns"},e.definitions[t][re.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[re.SchemaTag.artifactType]=re.ArtifactType.Manifest)}r(AI,"addCustomColumnDefinition");function CI(e,t){let n;return e==="TableColumnActionIntentBased"?n=Vf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Ie(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n=Ie(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Ie(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(CI,"getActionId");function Mf(e,t,n,i,o){let a,s=n.lineItemId===re.DefinitionName.LineItems?"":"ObjectPage",c=CI(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let l=`${s}${i}<${c}>`,p=xt(n.lineItemRecord,n.entityType);t.properties[c]={$ref:O+l},t.properties[c][re.SchemaTag.propertyIndex]=o;let{key:f,ns:u}=bo(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[l]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[l][re.SchemaTag.target]=u)):(e.definitions[l]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[l][re.SchemaTag.isViewNode]=!0,e.definitions[l][re.SchemaTag.keys]=[{name:re.SchemaKeyName.action,value:f}],u&&(e.definitions[l][re.SchemaTag.target]=u),e.definitions[l][re.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Mf,"handleActionRecord");function EI(e,t,n){e!==re.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Kt.UIAnnotationTypes.DataFieldForAction||t.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(EI,"getColumnActionType");function xI(e,t){let n=[];if(!(e.$Type!==Kt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),EI(t,e,n),n}r(xI,"getActionType");function CS(e,t,n){let i=Vf(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:O+re.DefinitionName.TableColumn,description:xt(e.lineItemRecord,e.entityType)},o.properties[i][re.SchemaTag.propertyIndex]=n,o.properties[i][re.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vc(o.properties[i],e.lineItemRecord),Lc(e.lineItemRecord,o.properties,i)}}r(CS,"generateGenericColumn");function II(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Mf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Mf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Mf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":CS(i,t,o)}}r(II,"handleAnyAction");function ba(e,t,n,i,o,a){o=o||re.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=Fc(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:l,lineItemRecord:f,lineItemId:o,entityType:i},m=xI(f,o);m?m.forEach(h=>{II(h,t,s,u,p,c,o)}):CS(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${O}${a}`})}r(ba,"addLineItemsType");function OI(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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((c,l)=>(c.includes(l.name)||c.push(l.name),c),[])}}r(OI,"addListReportLeadingProperties");function FI(e,t,n,i){var s,c,l,p,f,u;let o=(c=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:c.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(f=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:f.variants;if(a){let m=[];for(let h in a){let T=(u=a[h])==null?void 0:u.key;T!==void 0&&!m.includes(T)&&m.push(T)}ho(m,o)}}r(FI,"addTabkeyEnum");function xc(e,t,n,i,o){var s,c;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(l=>{let p=l.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let f=JSON.parse((0,AS.xml2json)(l.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+PS.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),ho(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(xc,"addFragmentEnum");function Ta(e,t,n,i,o,a=re.DefinitionName.CustomColumns,s=re.DefinitionName.CustomColumn,c){AI(e,a,s),OI(e,t,s),FI(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;xc(e,o,l,"fragmentName",s),xc(e,o,l,"fragmentName",re.DefinitionName.CustomColumn),xc(e,o,l,"cellsFragmentName",s),xc(e,o,l,"cellsFragmentName",re.DefinitionName.CustomColumn)}r(Ta,"addTableColumnExtensions");function ES(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(ES,"removeElementsFromEnum");function Ic(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=_t(n==null?void 0:n.fullyQualifiedName,Kt.UIAnnotationTerms.SelectionFields);if(o&&(i[re.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let c=s.value,l=`SelectionField<${Ie(s.value)}>`,p=en(s);s.type==="PropertyPath"&&(c=fa(s,n)),i.properties[s.value]={$ref:O+l},i.properties[s.value][re.SchemaTag.propertyIndex]=a,e.definitions[l]={type:"object",description:c,additionalProperties:!1},e.definitions[l][re.SchemaTag.isViewNode]=!0,e.definitions[l][re.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[l][re.SchemaTag.dataType]=p,e.definitions[l][re.SchemaTag.keys]=[{name:re.SchemaKeyName.value,value:`${s.value}`}],e.definitions[l][re.SchemaTag.annotationPath]=`${i[re.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[l].$ref=`${O}SelectionFieldDateSettings`:e.definitions[l].properties={},a++})}r(Ic,"addSelectionFields");function Oc(e){var t,n,i,o;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((o=(i=e.annotations)==null?void 0:i.Common)!=null&&o.DraftNode)}r(Oc,"isDraftEnabled");function xS(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}r(xS,"isEntityDeletable");function IS(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}r(IS,"isEntityUpdatable");function Sa(e,t=!1,n){let i=re.DefinitionName.HeaderActionsStandard,o=re.DefinitionName.HeaderActionsStandard,a=re.DefinitionName.HeaderActionStandard;t&&(i=re.DefinitionName.GenericActions,o=re.DefinitionName.HeaderActions,a=re.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],c=e.definitions[o];c[re.SchemaTag.isViewNode]=!0,c.description="Actions",Object.entries((n||s).properties).forEach(([p,f])=>{let u=f.$ref.split(O)[1],m=`${a}<${u}>`;c.properties[p]={$ref:`${O}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][re.SchemaTag.actionType]=re.ActionType.Standard})}r(Sa,"addStandardHeaderActions");function OS(e,t){let n=e.definitions[re.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(O)[1],a=`${re.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${O}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][re.SchemaTag.actionType]=re.ActionType.Standard}}r(OS,"addStandardFooterActionsOP");function FS(e){var i,o,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(o=t==null?void 0:t.annotations)==null?void 0:o.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?R.t("NOUIANNOTATIONS",{entityType:t.name}):R.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});_(e.logger,{severity:re.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(FS,"getUIAnnotationForEntitySet");function VI(e,t,n,i){if(e===M.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Me.UIAnnotationTypes.DataField:case Me.UIAnnotationTypes.DataFieldForAnnotation:case Me.UIAnnotationTypes.DataFieldWithNavigationPath:case Me.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===M.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Me.UIAnnotationTypes.DataField:case Me.UIAnnotationTypes.DataFieldForAnnotation:case Me.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(VI,"copyFieldProperties");function LI(e,t,n,i){let o=e===M.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===M.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(LI,"determineFieldDefinitionName");function NI(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][M.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(NI,"addKeysTagForDataField");function DI(e,t,n){if(e.$Type===Me.UIAnnotationTypes.DataField||e.$Type===Me.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Me.UIAnnotationTypes.DataFieldWithNavigationPath)NI(e,t,n);else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][M.SchemaTag.keys]=[{name:"Target",value:ma(e.Target.value)}],t.definitions[n][M.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][M.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Me.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][M.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(DI,"addKeysTagToField");function RI(e){var t,n;return e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Me.UIAnnotationTypes.ConnectedFieldsType}r(RI,"isConnectedField");function jI(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Me.UIAnnotationTypes.ConnectedFieldsType){let l=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,f=l.length;for(let u in p){let m=p[u];if(typeof m=="object"&&"$Type"in m){let h=l.findIndex(T=>T===u);h===-1&&(h=f,f++),Uf(e,t,m,`ConnectedFields::${a.qualifier}`,h.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(jI,"addConnectedFields");function VS(e,t,n){if(n)return n;let i=Ie(t);return e.definitions[i].properties}r(VS,"getFieldsSchemaContainer");function Uf(e,t,n,i,o,a,s,c=!0,l={},p=a.entityType.fullyQualifiedName){var T;let f=mi(n),u=s===M.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=LI(s,f,i,u),h={};if(!(!n||!n.$Type)){if(n.$Type===Me.UIAnnotationTypes.DataFieldForAction||n.$Type===Me.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===M.SectionType.Section){let F=VS(t,`${e}${M.DefinitionName.Actions}<${i}>`,l.actions),L=F[u]={$ref:`${O}${m}`};L[M.SchemaTag.propertyIndex]=parseInt(o)}}else{let F=VS(t,`${e}${M.DefinitionName.Fields}<${i}>`,l.fields);F[u]={$ref:`${O}${m}`,propertyIndex:parseInt(o)},RI(n)&&(h=jI(e,t,n,a,s))}t.definitions[m]={type:"object",properties:h,description:xt(n,a.entityType),additionalProperties:!1},DI(n,t,m),t.definitions[m][M.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[m][M.SchemaTag.annotationType]=n.$Type,t.definitions[m][M.SchemaTag.isViewNode]=!0,Vc(t.definitions[m],n),VI(s,t,n,m),n.$Type===Me.UIAnnotationTypes.DataFieldForAction&&((T=t.definitions)!=null&&T.FormAction)&&(t.definitions[m].properties=t.definitions[M.DefinitionName.FormAction].properties)}}r(Uf,"addField");function wI(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}r(wI,"determineTargetIdOfForm");function $I(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Ie(`${t}${M.DefinitionName.Form}<${i}>`),c=Ie(`${t}${M.DefinitionName.Fields}<${i}>`),l=Ie(`${t}${M.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${O}${s}`},t===M.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${O}${l}`},fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},n.definitions[l]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[l][M.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},n.definitions[s][M.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][M.SchemaTag.annotationPath]=_t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[c][M.SchemaTag.isViewNode]=!0,e.base===M.FacetBase.Identification)for(let f in e.target){let u=e.target[f];u&&Uf(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Uf(t,n,u,i,f,e,o)}}r($I,"addFieldsToFormDefinition");function MI(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][M.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][M.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][M.SchemaTag.annotationPath]=_t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(MI,"addTagsToFormDefinition");function Nc(e,t,n,i,o,a){if(!t.target)return;let s=wI(t),c=Ie(`${e}${M.DefinitionName.Form}<${s}>`),l=Ie(`${e}${M.DefinitionName.Fields}<${s}>`),p=Ie(`${e}${M.DefinitionName.Actions}<${s}>`),f=!(t.base===M.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${O}${c}`},e===M.SectionType.Section&&f?(i.definitions[c]={type:"object",properties:{actions:{$ref:`${O}${p}`},fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][M.SchemaTag.isViewNode]=!0):i.definitions[c]={type:"object",properties:{fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},MI(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][M.SchemaTag.isViewNode]=!0,$I(t,e,i,s,o,f),s}r(Nc,"handleForm");function kf(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(kf,"replaceAlias");function Dc(e,t){let n=kf(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,c;return o>-1?(a=i.substring(o+1),c=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,c=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${c.substring(0,c.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:c}}r(Dc,"getActionNameAndId");function LS(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===M.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:LS(a.pages,t)}}r(LS,"isFirstObjectPage");function Rc(e,t,n,i,o){var f,u;e.definitions[M.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${O}${M.DefinitionName.ObjectPageFooter}`},e.definitions[M.DefinitionName.ObjectPageFooter].properties[M.PropertyName.actions]={$ref:`${O}${M.DefinitionName.FooterActions}`};let a=e.definitions[M.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[M.SchemaTag.isViewNode]=!0;let s=Bt(M.UIVOCABULARY,t.serviceAVT),c=t.entitySet,l=c==null?void 0:c.entityType,p=s&&((u=(f=l==null?void 0:l.annotations)==null?void 0:f[s])==null?void 0:u.Identification);if(p){let m=p.fullyQualifiedName.replace(`@${Me.UIAnnotationTerms.Identification}`,`/@${Me.UIAnnotationTerms.Identification}`);a[M.SchemaTag.annotationPath]=`/${m}`,i(l,e,a,p)}else l&&(a[M.SchemaTag.annotationPath]=`/${l.fullyQualifiedName}/@${Me.UIAnnotationTerms.Identification}`);n===M.FioriElementsVersion.v2&&LS(o,t)&&!Oc(c)&&OS(e,a),delete e.definitions[M.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${M.DefinitionName.ObjectPageFooter}<${M.DefinitionName.ObjectPageFooterActions}>`]}r(Rc,"addFooterActions");function jc(e,t,n,i,o,a=!1){var u,m;let s=M.DefinitionName.HeaderActions,c=e.definitions[s];e.definitions[M.DefinitionName.ObjectPageHeader].properties[M.PropertyName.actions]={$ref:`${O}${s}`};let l=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[M.SchemaTag.isViewNode]=!0;let p=Bt(M.UIVOCABULARY,i),f=p&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[p])==null?void 0:m.Identification);f?l[M.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Me.UIAnnotationTerms.Identification}`,`/@${Me.UIAnnotationTerms.Identification}`):t&&(l[M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Me.UIAnnotationTerms.Identification}`),o(t,e,f,l,i,n),a&&Sa(e,!0,c),delete e.definitions[M.DefinitionName.GenericActions],delete e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`]}r(jc,"addHeaderActions");function wc(e,t){e.properties.header={$ref:`${O}${M.DefinitionName.ObjectPageHeader}`},e.definitions[M.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`])),t&&(e.definitions[M.DefinitionName.ObjectPageHeader][M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Me.UIAnnotationTerms.HeaderInfo}`)}r(wc,"addCommonHeaderSchema");function NS(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(NS,"determineEntitySetOfEntityType");var On=require("@sap-ux/vocabularies-types/vocabularies/UI");var me=w(B());function ho(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(ho,"addEnumToSchema");function $c(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let c=i[s];if(t.indexOf(c.term)>-1){let l=c.qualifier?`${c.term}#${c.qualifier}`:`${c.term}`;o.indexOf(l)===-1&&o.push(l)}}ho(o,n)}r($c,"addEnumForValidAnnotations");function Ni(e,t,n){let i=t.definitions[n].properties[me.SchemaTag.annotationPath],o=[On.UIAnnotationTerms.SelectionVariant,On.UIAnnotationTerms.SelectionPresentationVariant];$c(e,o,i)}r(Ni,"addEnumForSingleTabVariant");function DS(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[On.UIAnnotationTerms.SelectionVariant,On.UIAnnotationTerms.SelectionPresentationVariant];$c(n.entityType,o,i)}r(DS,"addEnumForMultiTabVariant");function RS(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),ho(o,i)}r(RS,"addEnumForVariantEntitySet");function jS(e,t,n,i){let o=n.map(a=>{let s=i.find(p=>!!a[p]),c=a[s],l=a.label||a.title;return{const:c,...l&&{description:l},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[me.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],c=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof c=="object"?c:void 0,$ref:`${O}${me.DefinitionName.RelatedFacetKeys}`},c]}}}}r(jS,"addDefinitionForRelatedFacetKeys");function va(e){return e.replace("#","::")}r(va,"getFacetKeyInSchema");function fr(e,t){return`${e}<${va(t)}>`}r(fr,"getFacetDefinitionKey");function ht(e,t,n,i=!0,o){let a=t;if(i&&(a=fr(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(ht,"parseSchemaDefinition");function Fc(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][me.SchemaTag.isViewNode]=!0;let c;o===me.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?c=`${O}${a}`:(c=`${O}${a}<${o}>`,ht(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${c}`}:!1;let l=e?me.DefinitionName.ObjectPageToolBar:me.DefinitionName.ToolBar,p=`${l}<${o}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${l}`]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${l}`}))}let f=`${me.DefinitionName.Actions}<${Ie(o)}>`;t.definitions[p].properties.actions.$ref=O+f;let u=o.startsWith(me.DefinitionName.LineItems)?me.DefinitionName.Actions:me.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let h,T;if(o===me.DefinitionName.LineItems&&t.properties.footer){T=`${me.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${O}${T}`;try{t.definitions[T]=JSON.parse(JSON.stringify(t.definitions[me.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:me.DefinitionName.GenericFooter}))}let F=`${me.DefinitionName.FooterActions}<${Ie(o)}>`;t.definitions[T].properties.actions.$ref=O+F;try{h=t.definitions[F]=JSON.parse(JSON.stringify(t.definitions[me.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:me.DefinitionName.Actions}))}h.properties={},h.additionalProperties=!1}return n&&(s=_t(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][me.SchemaTag.annotationPath]=t.definitions[p][me.SchemaTag.annotationPath]=s,h&&(t.definitions[T][me.SchemaTag.annotationPath]=s))),{actions:m,footerActions:h,lineItemPath:s}}r(Fc,"addCommonLineItemDefinitions");function wS(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(wS,"getDataTypeFromAnnotation");function To(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=wS(e.$Type)),t}r(To,"determineDataTypeOfTarget");function en(e){var n,i,o;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=To((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=wS(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(en,"determineDataType");function Vc(e,t){let n=en(t);n&&(e[me.SchemaTag.dataType]=n)}r(Vc,"addDataTypeToDefinition");function tn(e,t){return`${O}${fr(e,t)}`}r(tn,"getFacetDefinitionLink");function $S(e,t,n,i){let o=0,a=!1,s="";do{let c=`${t}${o===0?"":"."+o}`;s=tn(e,c),o++;let l=n.definitions[fr(e,c)],p=((l==null?void 0:l.annotationPath)??"").split("/").slice(0,-1).join("/");a=!l||p===i}while(!a);return s}r($S,"getUniqueFacetDefinitionLink");function So(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${O}${i}`}r(So,"addDefinitionRef");function Mc(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${me.UIVOCABULARY}`);t=`/${n}/@${me.UIVOCABULARY}${i}`}return t}r(Mc,"getFacetAnnotationPath");function ur(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:tn(a?l:c,t)};let p=ht(a?l:c,t,i,!0,a?l:void 0);ui(e,p,t),Vi(e,p,t),p[me.SchemaTag.annotationPath]=e.annotationPath,p[me.SchemaTag.isViewNode]=!0}r(ur,"handleAddressContact");function _f(e,t,n){typeof e=="object"&&(e[t]=n)}r(_f,"updateSchemaProperty");function Pa(e,t,n=Ie("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${me.DefinitionName.Fields4Dialog}${n}`];_f(o.properties.fields.items,"enum",i)}r(Pa,"addFieldsType");function UI(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(UI,"findFirstSchemaDefinitionKey");function Bf(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=ga(t.$ref),u=(p=e.definitions)==null?void 0:p[f];typeof u=="object"&&(s=!u.annotationPath,i!=null&&i.resolveDefinition&&!o&&(o=u.description,a=u.keys))}let c=n,l=UI(a,i==null?void 0:i.keyProperties);return l?c=l.value:i!=null&&i.descriptionAsFallback&&o&&(c=o),{const:c,...o&&{description:o},...s&&{custom:s}}}r(Bf,"getEnumEntry");function MS(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let c in t.properties){if((i==null?void 0:i.excludeKey)===c)continue;let l=t.properties[c],p=Bf(e,l,c,i);o.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let c=(s=a.properties)==null?void 0:s[n.property];_f(c,"oneOf",o)}else _f(a,"oneOf",o)}r(MS,"addDescriptiveEnumDefinition");function bo(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(bo,"getActionKey");function Lc(e,t,n){var i,o,a;try{if(e.Value)t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.value,value:go(e.Value)}];else if(e.$Type===On.UIAnnotationTypes.DataFieldWithAction||e.$Type===On.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=bo(e.Action,!0);t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.action,value:s}],c&&(t[n][me.SchemaTag.target]=c)}else if(e.$Type===On.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=bo(e.Target.value,!1);t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.target,value:ma(s)}],t[n][me.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===On.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===On.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=bo(s,!0);t[n][me.SchemaTag.keys]=[{name:"SemanticObject",value:e[me.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][me.SchemaTag.target]=l)}}catch{return}}r(Lc,"addKeyToDefinition");function US(e,t){e[me.SchemaTag.messages]||(e[me.SchemaTag.messages]=[]),Array.isArray(e[me.SchemaTag.messages])&&e[me.SchemaTag.messages].push({text:t})}r(US,"addMessageToSchema");var Aa=w(B());var kS=[{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.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.102",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"]},{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 BS="1.84.124";var HS={name:"@sap/ux-specification",version:BS,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 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",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 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/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.6","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.84.124","@sapui5/ts-types":"latest-1.84","@types/d3":"7.4.3","@types/jquery":"3.5.32","@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",path:"0.12.7","reflect-metadata":"0.2.2","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 Di=class Di{constructor(){Di.distTagsOfSpec.length===0&&(Di.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Di.distTagsOfSpec=[]}getSpecVersion(){return BS}getDistTagsOfVersion(){let t=[],n=kS,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=R.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});_(n,{severity:Aa.LogSeverity.Info,message:o,location:{path:Aa.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Di.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=R.t("WRONGMINUI5VERSION",{minUI5Version:t});_(n,{severity:Aa.LogSeverity.Warning,message:o,location:{path:Aa.MANIFESTPATH}})}}};r(Di,"DistTagEvaluator"),Di.distTagsOfSpec=[];var dr=Di;var Q=w(B());var ut=w(B());var ji=w(B());var Hf=class Hf{constructor(t,n,i,o){this.unhandledControllers=[];let a=Ye(ji.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...o&&{settings:o}},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(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let s=i.config;if(i.pageType!==ji.PageType.CustomPage){let c=Ye(i.pageType,i.entitySet);if(this.schemas[c.filename])s.$schema=c.path;else{let l=Ye(i.pageType);s.$schema=l.path}t[`${ji.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[ji.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(Hf,"AppProvider");var Ri=Hf;var Ee=w(B());var Ca=w(B());var gt=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),GS=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2"),WS=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function Gf(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Gf,"getNewPageTemplate");function BI(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(BI,"findPageInManifest");function HI(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Gf(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Gf(e[t].pageType)}),!Array.isArray(n.pages))){let i=BI(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Gf(e[t].pageType)),Wf(t,e,i)}}r(HI,"transformPageFromAssociation");function GI(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===Ca.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ca.PageTypeV2.ListReport||n.pageType===Ca.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(GI,"deletePage");function Wf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ca.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 o in i.navigation)HI(t,o,n);Array.isArray(n.pages)||GI(n,t,i)}}r(Wf,"transformPageToNewManifestV2");var Vv=w(cr());var Ld={};ta(Ld,{ALPAnalyticalTable:()=>Fu,ALPGridTable:()=>Ou,ALPResponsiveTable:()=>Iu,Action:()=>Du,AnalyticalCard:()=>Fa,AnalyticalCardSettings:()=>Bc,AnalyticalCardSettingsv4:()=>zf,AnalyticalListPageFilterBar:()=>ru,AnalyticalTable:()=>xu,BaseCustomSection:()=>Hr,ChartSettings:()=>Yu,ChartSettingsType:()=>Kf,CommonCardSettings:()=>Ui,CommonHeaderFacetSettings:()=>No,CommonTableSettings:()=>Bi,CommonTableSettingsForSections:()=>$o,CreateWithFilters:()=>Su,CustomCard:()=>Jf,DataLoadSettings:()=>vu,DateRange:()=>nu,DefaultSpanObject:()=>Xf,FRAGMENT_DEFINITION:()=>qn,Field:()=>tu,FieldForAction:()=>pu,Fields4Dialog:()=>Pu,Fields4DialogOP:()=>Ed,FooterAction:()=>ju,FormAction:()=>lu,GlobalChartSettings:()=>Ad,GlobalTableSettings:()=>Fd,GridTable:()=>Vu,HeaderAction:()=>td,HeaderActionStandard:()=>ku,HeaderSections:()=>rd,KPISettings:()=>Zu,LinkListCardSettings:()=>Zf,LinklistCard:()=>Pr,ListCard:()=>Oa,ListCardSettings:()=>qf,ListReportFilterBar:()=>Kc,ObjectPageAnalyticalTable:()=>xd,ObjectPageChart:()=>Pd,ObjectPageCustomSectionFragment:()=>Gr,ObjectPageCustomSectionView:()=>Wr,ObjectPageFooterAction:()=>cd,ObjectPageFooterActionStandard:()=>Bu,ObjectPageGridTable:()=>Id,ObjectPageHeader:()=>ed,ObjectPageHeaderActionStandard:()=>_u,ObjectPageHeaderSectionAddress:()=>ad,ObjectPageHeaderSectionChart:()=>id,ObjectPageHeaderSectionDataPoint:()=>od,ObjectPageHeaderSectionForm:()=>nd,ObjectPageLayout:()=>pd,ObjectPageResponsiveTable:()=>Mo,ObjectPageSectionAddressV2:()=>md,ObjectPageSectionChartV2:()=>dd,ObjectPageSectionContactV2:()=>yd,ObjectPageSectionFormV2:()=>ud,ObjectPageSectionTableV2:()=>gd,ObjectPageSectionV2:()=>fd,ObjectPageSubSectionChartV2:()=>Td,ObjectPageSubSectionContactV2:()=>Sd,ObjectPageSubSectionFormV2:()=>bd,ObjectPageSubSectionTableV2:()=>vd,ObjectPageSubSectionV2:()=>hd,ObjectPageToolBarAction:()=>Vd,ObjectPageTreeTable:()=>Od,QuickVariantSelection:()=>Au,QuickVariantSelectionOP:()=>Cd,QuickVariantSelectionX:()=>Cu,ResponsiveTable:()=>Io,SAP_UI_TABLE:()=>Xc,SaveAndEditOP:()=>Uu,SelectionFieldDateSettings:()=>ou,SelectionFields:()=>au,Share:()=>wu,ShareOP:()=>$u,StackCard:()=>vr,StackCardSettings:()=>Yf,TableALP:()=>Ra,TableCard:()=>Va,TableCardSettings:()=>eu,TableColumn:()=>Wu,TableColumnAction:()=>Qu,TableColumnActionIntentBased:()=>Ku,TableCustomColumn:()=>Xu,ToolBar:()=>qu,ToolBarAction:()=>Ru,TreeTable:()=>Eu,UpAndDownNavigationOP:()=>Mu,buildIntentBasedActionId:()=>Hu,deleteColumnFromFragment:()=>zc,deleteType:()=>wa,exportColorPalette:()=>JS,exportCreateParametersFields:()=>ol,exportCustomColumnsToFragment:()=>Tu,exportDateSettings:()=>ZS,exportDateSettingsField:()=>ev,exportDefaultSpan:()=>qS,exportType:()=>ja,getChartSectionControlId:()=>Ev,getContactSubSectionControlId:()=>Iv,getCustomColumnPath:()=>Yc,getFormSectionControlId:()=>Cv,getRootCustomColumnFromFragmentJSON:()=>xr,getSectionControlId:()=>jo,getSmartChartControlId:()=>jr,getSmartTableControlId:()=>xo,getSubSectionControlId:()=>xv,getTableSectionControlId:()=>Av,importCreateParameters:()=>il,importDateSettings:()=>su});var It=w(B());var pe=r(e=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),vo=r(e=>pe(e)+"/tableSettings","getTableSettingPathV2"),QS=r(e=>pe(e)+"/chartSettings","getChartSettingPathV2"),KS=r(e=>pe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var nt=r(()=>It.ManifestSection.ovp,"getOVPsettingPath"),J=r(e=>{let t=[It.ManifestSection.ovp];return e.forEach(n=>{n in It.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Po=r((e,t)=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),_c=r(e=>{let t=[It.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Rt=r(e=>{let t=[];return t.push(_c(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Ao=r(e=>Rt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Fn=r((e,t,n)=>{let i=[];i.push(_c(e));let o=n.replace(It.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),pn=r((e,t,n)=>Fn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),XS=r((e,t,n)=>Fn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Qf=r(()=>`sap.ui5/extends/extensions/${It.v2.SAPUI5_VIEW_EXTENSION}/${It.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),yi=r((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),c="";a.length===4?c=[a[2],a[3]].join("|"):a.length===3&&(c=a[2]);let l=[a[0],s[s.length-1],c].join("|");return i.unshift(l),`${Qf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),kc=class kc{};r(kc,"ApplicationV2"),d([_e("settings")],kc.prototype,"settings",2);var Uc=kc,Kn=class Kn{};r(Kn,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Kn.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Kn.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Kn.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.50.0"})],Kn.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.46.0"})],Kn.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.74.0"})],Kn.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"}),ce("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Kn.prototype,"flexEnabled",2);var wi=Kn;var gr=w(B());function WI(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=gr.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=gr.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:gr.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(WI,"importColorPalette");function JS(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===gr.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(JS,"exportColorPalette");function qS(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(qS,"exportDefaultSpan");var Hc=class Hc{};r(Hc,"ChartSettingsType"),d([g({manifest:{path:r(()=>nt()+"/chartSettings","path")}})],Hc.prototype,"showDataLabel",2);var Kf=Hc,$i=class $i{};r($i,"DefaultSpanObject"),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"cols",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"rows",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"minimumSubTitleRow",2);var Xf=$i,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>J(t),"path"),export:qS}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"customParams",2);var Ui=Be,Ea=class Ea{};r(Ea,"CustomCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"template",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"settings",2);var Jf=Ea,Mi=class Mi extends Ui{};r(Mi,"ListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"listType",2);var qf=Mi,mr=class mr{};r(mr,"ListCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],mr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],mr.prototype,"template",2);var Oa=mr,Xn=class Xn extends Ui{};r(Xn,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"navigation",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>J(t),"path"),import:WI,export:JS}})],Xn.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"bEnableStableColors",2);var Bc=Xn,Gc=class Gc extends Bc{};r(Gc,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>J(t),"path")}})],Gc.prototype,"measureAggregate",2);var zf=Gc,yr=class yr{};r(yr,"AnalyticalCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],yr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],yr.prototype,"template",2);var Fa=yr,xa=class xa extends Ui{};r(xa,"StackCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"itemText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"objectStreamCardsSettings",2);var Yf=xa,hr=class hr{};r(hr,"StackCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],hr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],hr.prototype,"template",2);var vr=hr,Ia=class Ia extends Ui{};r(Ia,"LinkListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"staticContent",2);var Zf=Ia,br=class br{};r(br,"LinklistCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],br.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],br.prototype,"template",2);var Pr=br,Tr=class Tr extends Ui{};r(Tr,"TableCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Tr.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Tr.prototype,"enableAddToInsights",2);var eu=Tr,Sr=class Sr{};r(Sr,"TableCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],Sr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Sr.prototype,"template",2);var Va=Sr;var zS=w(B());var QI=r((e,t,n,i,o)=>{let a=yt(n[1],o),s=n.slice(-1)[0];return Qe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Wc=class Wc{};r(Wc,"Field"),d([g({flex:{controlId:QI,controlType:r(()=>zS.ControlType.GroupElement,"controlType"),createFlexChange:U},generate:Oe})],Wc.prototype,"visible",2);var tu=Wc;var Eo=w(B());function su(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}r(su,"importDateSettings");function ZS(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(ZS,"exportDateSettings");function KI(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,o;return n==="selectedValues"&&typeof i=="string"&&(o=i.split(",")),n==="filter"&&typeof i=="object"&&(o=[],i.forEach((a,s)=>{o[s]=a,a.equals&&typeof a.equals=="string"&&(o[s].equals=a.equals.split(","))})),o}r(KI,"importDateSettingsField");function ev(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 o in i){let a=i[o];e[n][o]=a,a.equals&&Array.isArray(a.equals)&&(e[n][o].equals=a.equals.join())}}r(ev,"exportDateSettingsField");var La=class La{};r(La,"DateRange"),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],La.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path"),import:su,export:ZS}}),S({since:"1.77.0"})],La.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],La.prototype,"exclude",2);var nu=La,Qc={controlId:Qe,controlType:r(()=>Eo.ControlType.SmartFilterBar,"controlType"),createFlexChange:U},iu={path:r((e,t,n)=>`${pe(e)}${Eo.DATESETTINGSPATH}/fields/${n}`,"path")},YS={...iu,import:KI,export:ev},Co=class Co{};r(Co,"SelectionFieldDateSettings"),d([g({manifest:YS}),S({since:"1.77.0"})],Co.prototype,"selectedValues",2),d([g({manifest:iu}),S({since:"1.77.0"})],Co.prototype,"exclude",2),d([g({manifest:iu}),S({since:"1.77.0"})],Co.prototype,"customDateRangeImplementation",2),d([g({manifest:YS}),S({since:"1.77.0"})],Co.prototype,"filter",2);var ou=Co,cu=class cu{};r(cu,"SelectionFields");var au=cu,Vn=class Vn{};r(Vn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"})],Vn.prototype,"smartVariantManagement",2),d([g({flex:Qc}),S({since:"1.40.0"})],Vn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Vn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.52.0"})],Vn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>pe(t)+"/filterSettings","path"),import:su}}),S({since:"1.77.0"})],Vn.prototype,"dateSettings",2),d([g({flex:Qc}),S({since:"1.28.0"})],Vn.prototype,"showClearOnFB",2),d([g({flex:Qc}),S({since:"1.38.0"})],Vn.prototype,"showFilterConfiguration",2),d([g({flex:Qc}),S({since:"1.28.0"})],Vn.prototype,"showRestoreOnFB",2);var Kc=Vn,Ar=class Ar extends Kc{};r(Ar,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}})],Ar.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],Ar.prototype,"filterDefaultsFromSelectionVariant",2);var ru=Ar;var fn=w(B());var Jn=r((e,t,n,i,o)=>{if(i()===fn.ControlType.Button){let a=n[n.length-1],s=yt(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Qe(e,t)},"getFormActionButtonId"),ki=class ki{};r(ki,"FormAction"),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U},generate:Oe})],ki.prototype,"visible",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"tooltip",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"icon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"activeIcon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}}),S({since:"1.73.0"})],ki.prototype,"type",2);var lu=ki,_i=class _i{};r(_i,"FieldForAction"),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U},generate:Oe})],_i.prototype,"visible",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"tooltip",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"icon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"activeIcon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}}),S({since:"1.73.0"})],_i.prototype,"type",2);var pu=_i;var Le=w(B()),Ln=w(cr());var gu=require("path"),fO=w(B()),dv=w(uv()),gv=require("fs");var uO=(0,gu.join)(__dirname,"templates");var dO=r((e,t)=>{let n=(0,gv.readFileSync)(e,"utf8");return(0,dv.render)(n,t)},"renderTemplate");var mu=r((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 dO((0,gu.join)(uO,t+".xml"),n)},"getSingleColumnContent"),yu=r((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 o=mu(i,t);n=n+`
82
+ `)},"scanLine")};Ne.escapeXML=rt.escapeXML;Ne.__express=Ne.renderFile;Ne.VERSION=tO;Ne.name=aO;typeof window<"u"&&(window.ejs=Ne)});var on={};ta(on,{deleteConfigEntityByPath:()=>uR,exportConfig:()=>pR,exportConfigEntityByPath:()=>fR,generateSchema:()=>lR,getApiVersion:()=>yR,getChanges:()=>mA,getGenericSchema:()=>jp,getPathToGenericSchema:()=>_P,getProject:()=>PR,importConfig:()=>dR,importProject:()=>gR,importProjectSchema:()=>mR,isDirectory:()=>bR,log:()=>_,readDirectory:()=>wm});module.exports=FA(on);var Z=w(B());var V=w(B());var de=r(e=>typeof e=="string","isString"),er=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),mb=r(e=>e==null?"":""+e,"makeString"),eE=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),tE=/###/g,yb=r(e=>e&&e.indexOf("###")>-1?e.replace(tE,"."):e,"cleanKey"),hb=r(e=>!e||de(e),"canNotTraverseDeeper"),tr=r((e,t,n)=>{let i=de(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(hb(e))return{};let a=yb(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return hb(e)?{}:{obj:e,k:yb(i[o])}},"getLastOfPath"),bb=r((e,t,n)=>{let{obj:i,k:o}=tr(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),c=tr(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=tr(e,s,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},"setPath"),nE=r((e,t,n,i)=>{let{obj:o,k:a}=tr(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),Us=r((e,t)=>{let{obj:n,k:i}=tr(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),iE=r((e,t,n)=>{let i=Us(e,n);return i!==void 0?i:Us(t,n)},"getPathWithDefaults"),xb=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):xb(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),na=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),oE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},aE=r(e=>de(e)?e.replace(/[&<>"'\/]/g,t=>oE[t]):e,"escape"),ef=class ef{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}};r(ef,"RegExpCache");var Qp=ef,rE=[" ",",","?","!",";"],sE=new Qp(20),cE=r((e,t,n)=>{t=t||"",n=n||"";let i=rE.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=sE.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Kp=r((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),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,c="";for(let l=a;l<i.length;++l)if(l!==a&&(c+=n),c+=i[l],s=o[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}o=s}return o},"deepFind"),or=r(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),lE={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)}},nr=class nr{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||lE,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,o){return o&&!this.debug?null:(de(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new nr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nr(this.logger,t)}};r(nr,"Logger");var Xp=nr,kn=new Xp,tf=class tf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+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(([o,a])=>{for(let s=0;s<a;s++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let s=0;s<a;s++)o.apply(o,[t,...n])})}};r(tf,"EventEmitter");var ia=tf,nf=class nf extends ia{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,o={}){var p,f;let a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],i&&(Array.isArray(i)?c.push(...i):de(i)&&a?c.push(...i.split(a)):c.push(i)));let l=Us(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!de(i)?l:Kp((f=(p=this.data)==null?void 0:p[t])==null?void 0:f[n],i,a)}addResource(t,n,i,o,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=[t,n];i&&(c=c.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),bb(this.data,c,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i,o={silent:!1}){for(let a in i)(de(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a,s={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=i,i=n,n=c[1]),this.addNamespaces(n);let l=Us(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?xb(l,i,a):l={...l,...i},bb(this.data,c,l),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(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(nf,"ResourceStore");var ks=nf,Ib={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,o))??t}),t}},Ob=Symbol("i18next/PATH_KEY");function pE(){let e=[],t=Object.create(null),n;return t.get=(i,o)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),o===Ob?e:(e.push(o),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}r(pE,"createProxy");function Jp(e,t){let{[Ob]:n}=e(pE());return n.join((t==null?void 0:t.keySeparator)??".")}r(Jp,"keysFromSelector");var Tb={},Gp=r(e=>!de(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Gs=class Gs extends ia{constructor(t,n={}){super(),eE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=kn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let o=this.resolve(t,i);if((o==null?void 0:o.res)===void 0)return!1;let a=Gp(o.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 o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!cE(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:de(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:de(a)?[a]:a}}translate(t,n,i){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Jp(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],o),p=l[l.length-1],f=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");let u=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode")return m?a?{res:`${p}${f}${c}`,usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${f}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:c;let h=this.resolve(t,o),T=h==null?void 0:h.res,E=(h==null?void 0:h.usedKey)||c,L=(h==null?void 0:h.exactUsedKey)||c,Y=["[object Number]","[object Function]","[object RegExp]"],ne=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=o.count!==void 0&&!de(o.count),ie=Gs.hasDefaultValue(o),fe=ue?this.pluralResolver.getSuffix(u,o.count,o):"",Ve=o.ordinal&&ue?this.pluralResolver.getSuffix(u,o.count,{ordinal:!1}):"",P=ue&&!o.ordinal&&o.count===0,ke=P&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${fe}`]||o[`defaultValue${Ve}`]||o.defaultValue,Xe=T;q&&!T&&ie&&(Xe=ke);let ze=Gp(Xe),oi=Object.prototype.toString.apply(Xe);if(q&&Xe&&ze&&Y.indexOf(oi)<0&&!(de(ne)&&Array.isArray(Xe))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Nt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,Xe,{...o,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(h.res=Nt,h.usedParams=this.getUsedParamsDetails(o),h):Nt}if(s){let Nt=Array.isArray(Xe),st=Nt?[]:{},ai=Nt?L:E;for(let be in Xe)if(Object.prototype.hasOwnProperty.call(Xe,be)){let Ut=`${ai}${s}${be}`;ie&&!T?st[be]=this.translate(Ut,{...o,defaultValue:Gp(ke)?ke[be]:void 0,joinArrays:!1,ns:l}):st[be]=this.translate(Ut,{...o,joinArrays:!1,ns:l}),st[be]===Ut&&(st[be]=Xe[be])}T=st}}else if(q&&de(ne)&&Array.isArray(T))T=T.join(ne),T&&(T=this.extendTranslation(T,t,o,i));else{let Nt=!1,st=!1;!this.isValidLookup(T)&&ie&&(Nt=!0,T=ke),this.isValidLookup(T)||(st=!0,T=c);let be=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&st?void 0:T,Ut=ie&&ke!==T&&this.options.updateMissing;if(st||Nt||Ut){if(this.logger.log(Ut?"updateKey":"missingKey",u,p,c,Ut?ke:T),s){let ct=this.resolve(c,{...o,keySeparator:!1});ct&&ct.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 sn=[],Cn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Cn&&Cn[0])for(let ct=0;ct<Cn.length;ct++)sn.push(Cn[ct]);else this.options.saveMissingTo==="all"?sn=this.languageUtils.toResolveHierarchy(o.lng||this.language):sn.push(o.lng||this.language);let zt=r((ct,oe,Dt)=>{var Ge;let ro=ie&&Dt!==T?Dt:be;this.options.missingKeyHandler?this.options.missingKeyHandler(ct,p,oe,ro,Ut,o):(Ge=this.backendConnector)!=null&&Ge.saveMissing&&this.backendConnector.saveMissing(ct,p,oe,ro,Ut,o),this.emit("missingKey",ct,p,oe,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?sn.forEach(ct=>{let oe=this.pluralResolver.getSuffixes(ct,o);P&&o[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(Dt=>{zt([ct],c+Dt,o[`defaultValue${Dt}`]||ke)})}):zt(sn,c,ke))}T=this.extendTranslation(T,t,o,h,i),st&&T===c&&this.options.appendNamespaceToMissingKey&&(T=`${p}${f}${c}`),(st||Nt)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${f}${c}`:c,Nt?T:void 0,o))}return a?(h.res=T,h.usedParams=this.getUsedParamsDetails(o),h):T}extendTranslation(t,n,i,o,a){var l,p;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let f=de(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(f){let h=t.match(this.interpolator.nestingRegexp);u=h&&h.length}let m=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||o.usedLng,i),f){let h=t.match(this.interpolator.nestingRegexp),T=h&&h.length;u<T&&(i.nest=!1)}!i.lng&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(a==null?void 0:a[0])===h[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,c=de(s)?[s]:s;return t!=null&&(c!=null&&c.length)&&i.applyPostProcessor!==!1&&(t=Ib.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,o,a,s,c;return de(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(l,n),f=p.key;o=f;let u=p.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!de(n.count),h=m&&!n.ordinal&&n.count===0,T=n.context!==void 0&&(de(n.context)||typeof n.context=="number")&&n.context!=="",E=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(L=>{var Y,ne;this.isValidLookup(i)||(c=L,!Tb[`${E[0]}-${L}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((ne=this.utils)!=null&&ne.hasLoadedNamespace(c))&&(Tb[`${E[0]}-${L}`]=!0,this.logger.warn(`key "${o}" for languages "${E.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),E.forEach(q=>{var fe;if(this.isValidLookup(i))return;s=q;let ue=[f];if((fe=this.i18nFormat)!=null&&fe.addLookupKeys)this.i18nFormat.addLookupKeys(ue,f,q,L,n);else{let Ve;m&&(Ve=this.pluralResolver.getSuffix(q,n.count,n));let P=`${this.options.pluralSeparator}zero`,ke=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&Ve.indexOf(ke)===0&&ue.push(f+Ve.replace(ke,this.options.pluralSeparator)),ue.push(f+Ve),h&&ue.push(f+P)),T){let Xe=`${f}${this.options.contextSeparator||"_"}${n.context}`;ue.push(Xe),m&&(n.ordinal&&Ve.indexOf(ke)===0&&ue.push(Xe+Ve.replace(ke,this.options.pluralSeparator)),ue.push(Xe+Ve),h&&ue.push(Xe+P))}}let ie;for(;ie=ue.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(q,L,ie,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,o={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!de(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Gs,"Translator");var _s=Gs,of=class of{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kn.create("languageUtils")}getScriptPartFromCode(t){if(t=or(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=or(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(de(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 o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getScriptPartFromCode(i);if(this.isSupportedCode(o))return n=o;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)),de(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),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return de(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))):de(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(of,"LanguageUtil");var Bs=of,Sb={zero:0,one:1,two:2,few:3,many:4,other:5},vb={select:r(e=>e===1?"one":"other","select"),resolvedOptions:r(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},af=class af{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=kn.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=or(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),vb;if(!t.match(/-|_/))return vb;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,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(o=>`${n}${o}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((o,a)=>Sb[o]-Sb[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,i={}){let o=this.getRule(t,i);return o?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};r(af,"PluralResolver");var qp=af,Pb=r((e,t,n,i=".",o=!0)=>{let a=iE(e,t,n);return!a&&o&&de(n)&&(a=Kp(e,n,i),a===void 0&&(a=Kp(t,n,i))),a},"deepFindWithDefaults"),Wp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),rf=class rf{constructor(t={}){var n;this.logger=kn.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:o,prefix:a,prefixEscaped:s,suffix:c,suffixEscaped:l,formatSeparator:p,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:h,nestingSuffix:T,nestingSuffixEscaped:E,nestingOptionsSeparator:L,maxReplaces:Y,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:aE,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?na(a):s||"{{",this.suffix=c?na(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?na(m):h||na("$t("),this.nestingSuffix=T?na(T):E||na(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=Y||1e3,this.alwaysFormat=ne!==void 0?ne:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((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,o){var h;let a,s,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(T=>{if(T.indexOf(this.formatSeparator)<0){let ne=Pb(n,l,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ne,void 0,i,{...o,...n,interpolationkey:T}):ne}let E=T.split(this.formatSeparator),L=E.shift().trim(),Y=E.join(this.formatSeparator).trim();return this.format(Pb(n,l,L,this.options.keySeparator,this.options.ignoreJSONStructure),Y,i,{...o,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let f=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((h=o==null?void 0:o.interpolation)==null?void 0:h.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(T=>Wp(T),"safeValue")},{regex:this.regexp,safeValue:r(T=>this.escapeValue?Wp(this.escape(T)):Wp(T),"safeValue")}].forEach(T=>{for(c=0;a=T.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof f=="function"){let Y=f(t,a,o);s=de(Y)?Y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,E))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!de(s)&&!this.useRawValueToEscape&&(s=mb(s));let L=T.safeValue(s);if(t=t.replace(a[0],L),u?(T.regex.lastIndex+=s.length,T.regex.lastIndex-=a[0].length):T.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,i={}){let o,a,s,c=r((l,p)=>{let f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;let u=l.split(new RegExp(`${f}[ ]*{`)),m=`{${u[1]}`;l=u[0],m=this.interpolate(m,s);let h=m.match(/'/g),T=m.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!T||T.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),p&&(s={...p,...s})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,E),`${l}${f}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let l=[];s={...i},s=s.replace&&!de(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(p!==-1&&(l=o[1].slice(p).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),o[1]=o[1].slice(0,p)),a=n(c.call(this,o[1].trim(),s),s),a&&o[0]===t&&!de(a))return a;de(a)||(a=mb(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),l.length&&(a=l.reduce((f,u)=>this.format(f,u,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(rf,"Interpolator");var zp=rf,fE=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[c,...l]=s.split(":"),p=l.join(":").trim().replace(/^'+|'+$/g,""),f=c.trim();n[f]||(n[f]=p),p==="false"&&(n[f]=!1),p==="true"&&(n[f]=!0),isNaN(p)||(n[f]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Ab=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),c=t[s];return c||(c=e(or(i),o),t[s]=c),c(n)}},"createCachedFormatter"),uE=r(e=>(t,n,i)=>e(or(n),i)(t),"createNonCachedFormatter"),sf=class sf{constructor(t={}){this.logger=kn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?Ab:uE;this.formats={number:i((o,a)=>{let s=new Intl.NumberFormat(o,{...a});return c=>s.format(c)}),currency:i((o,a)=>{let s=new Intl.NumberFormat(o,{...a,style:"currency"});return c=>s.format(c)}),datetime:i((o,a)=>{let s=new Intl.DateTimeFormat(o,{...a});return c=>s.format(c)}),relativetime:i((o,a)=>{let s=new Intl.RelativeTimeFormat(o,{...a});return c=>s.format(c,a.range||"day")}),list:i((o,a)=>{let s=new Intl.ListFormat(o,{...a});return c=>s.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ab(n)}format(t,n,i,o={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){let c=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,l)=>{var u;let{formatName:p,formatOptions:f}=fE(l);if(this.formats[p]){let m=c;try{let h=((u=o==null?void 0:o.formatParams)==null?void 0:u[o.interpolationkey])||{},T=h.locale||h.lng||o.locale||o.lng||i;m=this.formats[p](c,T,{...f,...o,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return c},t)}};r(sf,"Formatter");var Yp=sf,dE=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),cf=class cf extends ia{constructor(t,n,i,o={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=kn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},c={},l={};return t.forEach(p=>{let f=!0;n.forEach(u=>{let m=`${p}|${u}`;!i.reload&&this.store.hasResourceBundle(p,u)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,f=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(c[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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 c={};this.queue.forEach(l=>{nE(l.loaded,[a],s),dE(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(p=>{c[p]||(c[p]={});let f=l.loaded[p];f.length&&f.forEach(u=>{c[p][u]===void 0&&(c[p][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,i,o=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:o,wait:a,callback:s});return}this.readingCalls++;let c=r((p,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(p&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,f)},"resolver"),l=this.backend[i].bind(this.backend);if(l.length===2){try{let p=l(t,n);p&&typeof p.then=="function"?p.then(f=>c(null,f)).catch(c):c(null,p)}catch(p){c(p)}return}return l(t,n,c)}prepareLoading(t,n,i={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(t)&&(t=this.languageUtils.toResolveHierarchy(t)),de(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),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("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,c),this.loaded(t,s,c)})}saveMissing(t,n,i,o,a,s={},c=()=>{}){var l,p,f,u,m;if((p=(l=this.services)==null?void 0:l.utils)!=null&&p.hasLoadedNamespace&&!((u=(f=this.services)==null?void 0:f.utils)!=null&&u.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((m=this.backend)!=null&&m.create){let h={...s,isUpdate:a},T=this.backend.create.bind(this.backend);if(T.length<6)try{let E;T.length===5?E=T(t,n,i,o,h):E=T(t,n,i,o),E&&typeof E.then=="function"?E.then(L=>c(null,L)).catch(c):c(null,E)}catch(E){c(E)}else T(t,n,i,o,c,h)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(cf,"Connector");var Zp=cf,Cb=r(()=>({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:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),de(e[1])&&(t.defaultValue=e[1]),de(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),Eb=r(e=>{var t,n;return de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(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"),Ms=r(()=>{},"noop"),gE=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),ir=class ir extends ia{constructor(t={},n){if(super(),this.options=Eb(t),this.services={},this.logger=kn,this.modules={external:[]},gE(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&&(de(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=Cb();this.options={...i,...this.options,...Eb(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 o=r(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?kn.init(o(this.modules.logger),this.options):kn.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Yp;let f=new Bs(this.options);this.store=new ks(this.options.resources,this.options);let u=this.services;u.logger=kn,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new qp(f,{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)&&(u.formatter=o(p),u.formatter.init&&u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new zp(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Zp(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(h,...T)=>{this.emit(h,...T)}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new _s(this.services,this.options),this.translator.on("*",(h,...T)=>{this.emit(h,...T)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ms),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]=(...f)=>this.store[p](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...f)=>(this.store[p](...f),this)});let c=er(),l=r(()=>{let p=r((f,u)=>{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),c.resolve(u),n(f,u)},"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?l():setTimeout(l,0),c}loadResources(t,n=Ms){var a,s;let i=n,o=de(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let c=[],l=r(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(u=>{u!=="cimode"&&c.indexOf(u)<0&&c.push(u)})},"append");o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>l(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let o=er();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=Ms),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&Ib.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=er();this.emit("languageChanging",t);let o=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),a=r((c,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(c,(...p)=>this.t(...p))},"done"),s=r(c=>{var f,u;!t&&!c&&this.services.languageDetector&&(c=[]);let l=de(c)?c:c&&c[0],p=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(de(c)?[c]:c);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),(u=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||u.call(f,p)),this.loadResources(p,m=>{a(m,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 o=r((a,s,...c)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([a,s].concat(c)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||o.keyPrefix);let p=this.options.keySeparator||".",f;return l.keyPrefix&&Array.isArray(a)?f=a.map(u=>(typeof u=="function"&&(u=Jp(u,{...this.options,...s})),`${l.keyPrefix}${p}${u}`)):(typeof a=="function"&&(a=Jp(a,{...this.options,...s})),f=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a),this.t(f,l)},"fixedT");return de(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=i,o}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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((c,l)=>{let p=this.services.backendConnector.state[`${c}|${l}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=er();return this.options.ns?(de(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=er();de(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var o,a;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let c=s.getTextInfo();if(c&&c.direction)return c.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 Bs(Cb());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 ir(t,n)}cloneInstance(t={},n=Ms){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new ir(o);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let c=Object.keys(this.store.data).reduce((l,p)=>(l[p]={...this.store.data[p]},l[p]=Object.keys(l[p]).reduce((f,u)=>(f[u]={...l[p][u]},f),l[p]),l),{});a.store=new ks(c,o),a.services.resourceStore=a.store}return a.translator=new _s(a.services,o),a.translator.on("*",(c,...l)=>{a.emit(c,...l)}),a.init(o,n),a.translator.options=o,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}}};r(ir,"I18n");var Hs=ir,R=Hs.createInstance();R.createInstance=Hs.createInstance;var DR=R.createInstance,RR=R.dir,jR=R.init,wR=R.loadResources,$R=R.reloadResources,MR=R.use,UR=R.changeLanguage,kR=R.getFixedT,_R=R.t,BR=R.exists,HR=R.setDefaultNamespace,GR=R.hasLoadedNamespace,WR=R.loadNamespaces,QR=R.loadLanguages;var GT=w(lf()),WT=w(tT()),uc=w(_T()),Te=require("@sap-ux/vocabularies-types/vocabularies/UI"),lr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var lc=w(B());var _=r((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(`${lc.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${lc.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${lc.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var F="#/definitions/",Kx=[V.v4.FE_TEMPLATE_V4_LIST_REPORT,V.v4.FE_TEMPLATE_V4_ALP,V.v4.FE_TEMPLATE_V4_OBJECT_PAGE,V.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],Xx=["sap.fe.core","sap.fe.templates"],pa=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),_t=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function In(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,uc.parse)(o.fileContent,o.dataSourceUri))}catch(a){return _(t,{severity:V.LogSeverity.Error,message:R.t("ANNOERR"),location:{path:R.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,uc.merge)(...n);i=(0,WT.convert)(o)}return i}r(In,"parseAndMergeAndConvert");var la=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Of(e,t,n){var i,o,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 c=t&&t.resolvePath(e.Common.Label.path);c!=null&&c.value?n=c.value:typeof((o=c==null?void 0:c.Common)==null?void 0:o.Label)=="string"&&(n=c.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}r(Of,"evaluateCommonLabel");function fa(e,t){let n=e.value;return e.$target&&(n=Of(e.$target.annotations,t,n)),n}r(fa,"getLabelForPropertyPath");function pc(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=Of(i.annotations,t,n)),n}r(pc,"getLabelForDataField");function Jx(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Of(a.annotations,t,s)}}}else return}r(Jx,"getLabel");function BT(e,t,n){let i=pc(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(BT,"getTitleForDataField");function xt(e,t){var s,c,l,p;let n="",i,o,a="";try{let f=Jx(e.Label,t);switch(e.$Type){case Te.UIAnnotationTypes.DataField:n=BT(e,t,f);break;case Te.UIAnnotationTypes.DataFieldWithUrl:i=pc(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=pc(e,t),n=f||i||((c=(s=o.Target)==null?void 0:s.$target)==null?void 0:c.Title)||((l=o.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case Te.UIAnnotationTypes.DataFieldForAction:case Te.UIAnnotationTypes.DataFieldWithAction:case Te.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,f?n=typeof f=="string"?f:a:n=a;break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=pc(e,t),n=i||e.Value.path;break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=BT(o,t,f);break;default:break}return n}catch{return n}}r(xt,"getDataFieldDescription");function Ie(e){return e.replace("#","::").replace(/\//g,":2f")}r(Ie,"prepareRef");function pi(e){if(e){let t=`${V.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(pi,"getPageTypeV2");function Ff(e){let t="name"in e&&typeof e.name=="string"?fc(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return V.PageTypeV4.CustomPage}r(Ff,"getPageTypeV4");function qx(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(qx,"getTargetAnnotationName");function Bt(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}r(Bt,"findAlias");function zx(e,t,n){var s,c;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=Bt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(c=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:c[o]}r(zx,"determineTargetAnnotation");function Yx(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${Te.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${V.UIVOCABULARY}`);return e}r(Yx,"adjustKey");function Zx(e,t,n,i,o=V.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,c,l=i.split("/"),p=l.length>1;p&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=Yx(t,l,a);let f=zx(l,n,e);if(f){let h=o===V.FioriElementsVersion.v2?"::":"#";t=qx(f,a).replace("#",h),c=(m=f.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:c};if(p){let h=o===V.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(h)}${h}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(Zx,"getKeyAndEntityTypeOfReferenceFacet");function QT(e,t,n,i,o=V.FioriElementsVersion.v2,a=!1){var f,u,m;let s=(u=e.fullyQualifiedName)==null?void 0:u.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),c=e.ID?e.ID.toString():s,l=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],p=t;if(e.$Type!==Te.UIAnnotationTypes.CollectionFacet&&"Target"in e){let h=la(e.Target);if(!h){_(i,{severity:V.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:T,entityType:E,stopProcessing:L,namespace:Y}=Zx(n,c,p,h,o,a);if(L)return;c=T,p=E,l=Y}if(c=c.replace(/\//gi,"::"),c)return{key:c,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:l}}r(QT,"getSectionFacet");var fi=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let c=0;c<s.length;c++){let l=s[c];if(l==="[]")continue;let p=i&&i===l?n:l.replace("??","/");if(!a[p]){if(o)return;s[c+1]==="[]"?a[p]=[]:a[p]={}}a=a[p]}return a},"getManifestSectionByPathV4");function Vf(e){let t,n,i;switch(e.$Type){case Te.UIAnnotationTypes.DataField:t=la(e.Value);break;case Te.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:la(e.Value);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${V.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Te.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Ie(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=la(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Te.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Ie(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:i=la(e.Value),n=la(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Vf,"getSchemaKeyOfLineItemRecord");function eI(e,t,n){return e.includes(Te.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Te.UIAnnotationTerms.Chart:e.includes(Te.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Te.UIAnnotationTerms.Identification:n&&e.includes(Te.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Te.UIAnnotationTerms.LineItem:e.includes(Te.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Te.UIAnnotationTerms.FieldGroup:e.includes(Te.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Te.UIAnnotationTerms.DataPoint:e.includes(Te.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Te.UIAnnotationTerms.PresentationVariant:void 0}r(eI,"getUIAnnotationTerm");function tI(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?lr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?lr.CommunicationAnnotationTerms.Address:void 0}r(tI,"getCommunicationAnnotationTerm");function nI(e,t,n){return eI(e,t,n)||tI(e,t)}r(nI,"getAnnotationTerm");function iI(e,t,n,i,o){var p,f,u,m,h,T,E,L,Y;let a=Bt(V.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(nI(s,a,i)){case Te.UIAnnotationTerms.Chart:{n[s]={base:V.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.Identification:{n[s]={base:V.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.LineItem:{if(!s.includes(Te.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ne=s.split("::");ne[ne.length-1]=`@${Te.UIAnnotationTerms.LineItem}`,s=ne.join("::")}n[s]={base:V.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.FieldGroup:{n[s]={base:V.FacetBase.Form},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.DataPoint:{n[s]={base:V.FacetBase.DataPoint},n[s].Label=(h=t==null?void 0:t.Target)==null?void 0:h.$target.Title,n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Te.UIAnnotationTerms.PresentationVariant:{n[s]={base:V.FacetBase.PresentationVariant},n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case lr.CommunicationAnnotationTerms.Contact:{n[s]={base:V.FacetBase.Contact},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case lr.CommunicationAnnotationTerms.Address:{n[s]={base:V.FacetBase.Address},n[s].target=(Y=t==null?void 0:t.Target)==null?void 0:Y.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}default:n[s]={base:V.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",V.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(iI,"evaluateTargetAnnotation");function Lf(e,t,n,i,o,a=V.FioriElementsVersion.v2,s){var l;let c=QT(e,i,t,s,a,!1);if(c)switch(e.$Type){case Te.UIAnnotationTypes.ReferenceFacet:{iI(c,e,o,i,t);break}case Te.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=o[c.key]={base:V.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:p,Label:c.label,namespace:c.namespace};!f.ID&&a===V.FioriElementsVersion.v4&&_(s,{severity:V.LogSeverity.Error,message:R.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(l=e.Facets)==null||l.forEach(u=>{Lf(u,t,n,i,f.facets,a,s)});break}}}r(Lf,"addFacetToConfig");function dc(e,t,n=V.FioriElementsVersion.v2,i){var c,l;let o={};if(!e||!e.annotations)return;let a=Bt(V.UIVOCABULARY,t),s=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,p);s.forEach(u=>{Lf(u,t,f,e,o,n,i)})}return o}r(dc,"getObjectPageHeaderFacets");function gc(e,t,n=V.FioriElementsVersion.v2,i){var c;let o={};if(!e||!e.annotations)return;let a=Bt(V.UIVOCABULARY,t),s=a&&((c=e==null?void 0:e.annotations[a])==null?void 0:c.Facets);if(s){let l=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,l);s.forEach(f=>{Lf(f,t,p,e,o,n,i)})}return o}r(gc,"getObjectPageFacets");function Nf(e){var t,n,i,o;if(e[V.ManifestSection.generic]&&Object.keys(e[V.ManifestSection.generic]).length>0||e[V.ManifestSection.ovp]&&Object.keys(e[V.ManifestSection.ovp]).length>0)return V.FioriElementsVersion.v2;{let a=(n=(t=e[V.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[V.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(c=>{let l=typeof a[c].name=="string"?a[c].name:"";return Kx.indexOf(l)>-1||fc(l)})||s&&Object.keys(s).find(c=>Xx.indexOf(c)>-1)?V.FioriElementsVersion.v4:void 0}}r(Nf,"getFEVersionFromManifest");function oI(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[V.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[V.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[V.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[V.ManifestSection.ui5].models[t].dataSource:void 0}r(oI,"getMainService");function KT(e){var i,o;let t=oI(e);if(!t)return V.OdataVersion.v2;let n=(i=e[V.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?V.OdataVersion.v4:V.OdataVersion.v2}r(KT,"getODataVersionFromManifest");function aI(e,t){var i,o;let n;if(e[V.ManifestSection.generic]){let a=e[V.ManifestSection.generic].pages;if(!a){_(t,{severity:V.LogSeverity.Error,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}});return}for(let s in a){let c=a[s];if(pi((i=c.component)==null?void 0:i.name)===V.PageTypeV2.AnalyticalListPage){n=V.TemplateType.AnalyticalListPageV2;break}else if(pi((o=c.component)==null?void 0:o.name)===V.PageTypeV2.ListReport){n=V.TemplateType.ListReportObjectPageV2;break}}}else n||_(t,{severity:V.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:V.ManifestSection.generic}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}});return n}r(aI,"determineV2Template");function pr(e){var i,o,a,s;let t,n=Ff(e);if(n===V.PageTypeV4.AnalyticalListPage)t=V.TemplateType.AnalyticalListPageV4;else if(n===V.PageTypeV4.ListReport){let c=(s=(a=(o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.views)==null?void 0:a.paths)==null?void 0:s[0];c&&(c[V.ALPViewType.Primary]||c[V.ALPViewType.Secondary])?t=V.TemplateType.AnalyticalListPageV4:t=V.TemplateType.ListReportObjectPageV4}else n===V.PageTypeV4.ObjectPage?t=V.TemplateType.ListReportObjectPageV4:n===V.PageTypeV4.CustomPage&&(t=V.TemplateType.FreestylePageV4);return t}r(pr,"determineV4PageTemplateType");function rI(e){let t;for(let n in e){let i=e[n];if(t=pr(i),t)break}return t}r(rI,"determineV4TemplateFromPages");function sI(e,t){let n=e[V.ManifestSection.ui5].routing&&e[V.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return _(t,{severity:V.LogSeverity.Info,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.ui5,"routing"]}}),V.TemplateType.ListReportObjectPageV4;let i=rI(n);return i||_(t,{severity:V.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:V.ManifestSection.ui5}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.ui5,"routing","targets"]}}),i}r(sI,"determineV4Template");function co(e,t,n){let i;return e[V.ManifestSection.ovp]?i=V.TemplateType.OverviewPageV2:t===V.FioriElementsVersion.v2?i=aI(e,n):t===V.FioriElementsVersion.v4&&(i=sI(e,n)),i}r(co,"getTemplateTypeFromManifest");function ui(e,t,n){e!=null&&e.ID?(t.title=V.FACETTITLEPREFIX+e.ID,t[V.SchemaTag.keys]=[{name:V.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[V.SchemaTag.keys]=[{name:V.SchemaKeyName.id,value:n.replace(V.UIVOCABULARYALPHADOT,"")}])}r(ui,"addSectionTitle");function Vi(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)}r(Vi,"addSectionDescription");function ua(e,t,n){var i,o;ui(e,t,n),Vi(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(ua,"addTargetTitleAndSectionDescription");function XT(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(XT,"addChartFacetID");function Hn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[V.SchemaTag.isViewNode]=!0,i[V.SchemaTag.annotationPath]=t.annotationPath,ua(t,i,n),i}r(Hn,"createDefaultSection");function JT(e,t,n,i=V.FioriElementsVersion.v2,o=!1){var c,l;let a=Bt(V.UIVOCABULARY,t),s=[];if(e){let p=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.Facets);return p&&(s=p.reduce(function(f,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return f;let m=QT(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(JT,"getObjectPageFacetSection");var Li=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,c=t.split("/");c.forEach(function(l){let p=a&&a===l?o:l.replace("??","/");if(!(!s[p]&&(a===l&&(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],c.pop(),Li(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),HT=r(e=>e===V.SchemaType.FreestylePage?V.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Ye=r((e,t)=>{let n={filename:"",path:""};switch(e){case V.SchemaType.Application:{n.filename="App",n.path=`./${V.DirName.Schemas}/${n.filename}`;break}case V.SchemaType.ListReport:case V.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:HT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}default:{n.filename=HT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function da(e,t,n,i){if(e===V.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(da,"generatePageId");function qT(e,t,n){let i=t==null?void 0:t.properties,o=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,c=e.definitions[s.split(F)[1]];typeof c=="object"&&(i=c.properties,o=c.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let c=n[s];typeof c=="object"&&o.every(l=>c[l]!==void 0)&&a.push(s)}return a}r(qT,"findMatchingKeysByAdditionalProperties");function cI(e,t,n,i){let o=e.$ref;if(o){let a=o.split(F)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(cI,"fillArrayFromAnyOfReference");function lI(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(F)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{cI(o,n,t,i)}),i.length===0))return;return i}r(lI,"fillArrayFromPropertyDefinition");function pI(e,t,n,i,o,a,s,c){var p,f,u,m;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let h=e[e.length-1];if(l.targetDefinition=t.definitions[h],(p=l==null?void 0:l.targetDefinition)!=null&&p.$ref||((f=l==null?void 0:l.targetDefinition)==null?void 0:f.type)==="array")return l=Gn(t,n,i,l.targetDefinition,o,a,s),l;e.length>1&&e.forEach(L=>{L!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[L].properties})}),l.title=(u=l==null?void 0:l.targetDefinition)!=null&&u.title?l.targetDefinition.title:n;let T=h==null?void 0:h.split("<")[0],E=i||{};l.configObject=a.createInstance(s,T,E,(m=l==null?void 0:l.targetDefinition)==null?void 0:m.controlProperty)}else l.targetDefinition=c,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=i;return l}r(pI,"determineNextDefinitionFromDefinitionArray");function Gn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=Gn(e,t,n,i.items,o,a,s),c;let l=lI(i,n,e);if(l)return c=pI(l,e,t,n,o,a,s,i),c}r(Gn,"getNextTargetDefinition");var Df=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,GT.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function Ht(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(Ht,"convertActionKeyToStableId");function ga(e){return e==null?void 0:e.split(F)[1]}r(ga,"getDefinitionKey");function zT(e){return`#/definitions/${e}`}r(zT,"getDefinitionsRef");function YT(e){return e instanceof Error?e.message:String(e)}r(YT,"getErrorMessage");function Wn(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Wn,"updatePropertyIndices");function ZT(e){return e=e.replace(V.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(ZT,"removeNamespaces");function ma(e){return e=e.replace(V.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(ma,"replaceNamespaces");function di(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(F))return t.substring(F.length)}r(di,"getRefType");function fc(e){if(e!=null&&e.startsWith(`${V.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in V.PageTypeV4)return V.PageTypeV4[n]}}r(fc,"convertTemplateNameToPageTypeV4");function mc(e,t){if(e===t)return!0;let n=fc(e);return n?n===fc(t):!1}r(mc,"compareTemplateNames");var Mn=require("@sap-ux/vocabularies-types/vocabularies/UI"),j=w(B());var Gt=w(B());var Qe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),yc=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),yt=r((e,t)=>{let n,i=Gt.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 fI(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(fI,"escapeId");var eS=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(eS||{});function uI(e,t,n){let i;return e=e.map(function(o){if(o===Gt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Gt.PropertyName.sections)return i=t[a+1],t[a+1]=yt(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(uI,"mapBreadcrumbs");var Rf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=uI(t,s,o)),s[0]===Gt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Gt.VOCWITHSLASH):t[0]===Gt.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Gt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,f=l.indexOf(":::");return l.startsWith("DataField")&&f>-1?(l=l.replace("/",":2f"),p=`${e}template:::TableColumn:::${l.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(f+3)}`):(l=l.replace("/","_"),p=`${e}${t.join("::")}-${l}`),fI(p)},"buildColumnControlId"),Wt=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function dI(e){let t=Gt.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}r(dI,"determinePattern");var tS=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,c=a.$ref?e.definitions[a.$ref.split(F)[1]]:a,l=a.description?a.description:c.description,p=dI(c);c.type&&c.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},l&&(o[n].description=l,delete a.description)},"addPatternForBindingChangeOfEnum"),Qn=r((e,t,n)=>{tS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Oe=r((e,t,n)=>{let i=Object.values(eS);tS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function lo(){}r(lo,"doNotDelete");var _j=w(iS());var jf=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(jf,e),"syncRule");function pt(e,t){let n;return e&&(n=Reflect.getMetadata(jf,e,t)),n}r(pt,"getReflectMetadata");function oS(e){let t;return e&&(t=Reflect.getMetadata(jf,e)),t}r(oS,"getReflectTypeMetadata");var Qt=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),aS=Symbol("childId"),_e=r(e=>Reflect.metadata(aS,e),"childId"),hc=r((e,t)=>Reflect.getMetadata(aS,e,t),"getChildId"),bc=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),gI=Symbol("descriptionSrcURL"),ce=r(e=>Reflect.metadata(gI,e),"descriptionSrcURL");var mI=Symbol("validityMetadataKey"),S=r(e=>Reflect.metadata(mI,e),"validity");function ya(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}r(ya,"getTextForDeprecated");var dS=w(fS()),gS=w(B());var mS=dS.default.change,uS={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function yS(e,t){let n="";try{for(let i in uS)e[i]===void 0&&(e[i]=uS[i]);n=mS.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(yS,"createChangeString");function Zt(e){try{return mS.parse(e)}catch{return!1}}r(Zt,"parseChangeString");function hS(e,t,n,i,o){let a=n.layer?n.layer===gS.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(hS,"fillFlexChangeContent");function U(e,t){return yS(e,t)}r(U,"exportToFlexChange");var po=w(B());function ha(e,t,n,i,o,a){let s=e.manifest.key||n,c=e.manifest.import;if(c&&typeof c=="function"){let l=c(t,o,n,a);l!==void 0&&(i[n]=l)}else t[s]!==void 0&&(i[n]=t[s])}r(ha,"importProperty");function Tc(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(_(i,{severity:po.LogSeverity.Warning,message:ya(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Tc,"checkDeprecatedProperties");function wf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(F)[1]];return wf(n,t)}else return e.title?e.title.startsWith(po.FACETTITLEPREFIX)?e.title.split(po.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(wf,"getSectionTitle");function Sc(e){let t=e.split(`${po.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(Sc,"getTargetFromCustomColumnRef");function fo(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(fo,"removeEmptyStructure");var Me=require("@sap-ux/vocabularies-types/vocabularies/UI");var gi=require("@sap-ux/vocabularies-types/vocabularies/UI");function vc(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}}r(vc,"replaceSpecialChars");var uo=r(function(e){return vc(ZT(e))},"prepareId");function PI(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(PI,"evaluateConcat");function go(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 PI(e);if(e&&typeof e=="string")return vc(e.replace(/ /g,"_"))}r(go,"getStableIdPartFromValue");var bS=r(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"),mi=r(function(e){let t="";if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=bS(e),t;if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=uo(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=go(e.Value)+"::"),t+=e.Action,uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataField)return t="DataField::",t+=go(e.Value),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=go(e.Value)+"::",t+=bS(e),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=go(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),uo(t);if(e.$Type&&e.$Type===gi.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=go(e.Value),uo(t)},"getStableIdPartFromDataField");var M=w(B());var re=w(B());var Kt=require("@sap-ux/vocabularies-types/vocabularies/UI"),PS=require("path"),AS=w(cr());var mo="ResponsiveTableWithMultiSelect<LineItems>",yo="ResponsiveTableWithInlineDelete<LineItems>",Pc="TreeTable<LineItems>",Ac="AnalyticalTable<LineItems>",Cc="GridTable<LineItems>",$f=[mo,yo,Pc,Ac,Cc],TS=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],SS="template::",Ec="template:::ObjectPageAction:::";function AI(e,t,n){e.definitions[re.DefinitionName.LineItems]&&(e.definitions[re.DefinitionName.LineItems].properties.custom={$ref:`${F}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${F}${n}`},description:"Custom Columns"},e.definitions[t][re.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[re.SchemaTag.artifactType]=re.ArtifactType.Manifest)}r(AI,"addCustomColumnDefinition");function CI(e,t){let n;return e==="TableColumnActionIntentBased"?n=Vf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Ie(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n=Ie(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Ie(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(CI,"getActionId");function Mf(e,t,n,i,o){let a,s=n.lineItemId===re.DefinitionName.LineItems?"":"ObjectPage",c=CI(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let l=`${s}${i}<${c}>`,p=xt(n.lineItemRecord,n.entityType);t.properties[c]={$ref:F+l},t.properties[c][re.SchemaTag.propertyIndex]=o;let{key:f,ns:u}=bo(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[l]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[l][re.SchemaTag.target]=u)):(e.definitions[l]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[l][re.SchemaTag.isViewNode]=!0,e.definitions[l][re.SchemaTag.keys]=[{name:re.SchemaKeyName.action,value:f}],u&&(e.definitions[l][re.SchemaTag.target]=u),e.definitions[l][re.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Mf,"handleActionRecord");function EI(e,t,n){e!==re.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Kt.UIAnnotationTypes.DataFieldForAction||t.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(EI,"getColumnActionType");function xI(e,t){let n=[];if(!(e.$Type!==Kt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Kt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),EI(t,e,n),n}r(xI,"getActionType");function CS(e,t,n){let i=Vf(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:F+re.DefinitionName.TableColumn,description:xt(e.lineItemRecord,e.entityType)},o.properties[i][re.SchemaTag.propertyIndex]=n,o.properties[i][re.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vc(o.properties[i],e.lineItemRecord),Lc(e.lineItemRecord,o.properties,i)}}r(CS,"generateGenericColumn");function II(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Mf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Mf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Mf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":CS(i,t,o)}}r(II,"handleAnyAction");function ba(e,t,n,i,o,a){o=o||re.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=Fc(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:l,lineItemRecord:f,lineItemId:o,entityType:i},m=xI(f,o);m?m.forEach(h=>{II(h,t,s,u,p,c,o)}):CS(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${F}${a}`})}r(ba,"addLineItemsType");function OI(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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((c,l)=>(c.includes(l.name)||c.push(l.name),c),[])}}r(OI,"addListReportLeadingProperties");function FI(e,t,n,i){var s,c,l,p,f,u;let o=(c=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:c.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(f=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:f.variants;if(a){let m=[];for(let h in a){let T=(u=a[h])==null?void 0:u.key;T!==void 0&&!m.includes(T)&&m.push(T)}ho(m,o)}}r(FI,"addTabkeyEnum");function xc(e,t,n,i,o){var s,c;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(l=>{let p=l.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let f=JSON.parse((0,AS.xml2json)(l.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+PS.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),ho(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(xc,"addFragmentEnum");function Ta(e,t,n,i,o,a=re.DefinitionName.CustomColumns,s=re.DefinitionName.CustomColumn,c){AI(e,a,s),OI(e,t,s),FI(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;xc(e,o,l,"fragmentName",s),xc(e,o,l,"fragmentName",re.DefinitionName.CustomColumn),xc(e,o,l,"cellsFragmentName",s),xc(e,o,l,"cellsFragmentName",re.DefinitionName.CustomColumn)}r(Ta,"addTableColumnExtensions");function ES(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(ES,"removeElementsFromEnum");function Ic(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=_t(n==null?void 0:n.fullyQualifiedName,Kt.UIAnnotationTerms.SelectionFields);if(o&&(i[re.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let c=s.value,l=`SelectionField<${Ie(s.value)}>`,p=en(s);s.type==="PropertyPath"&&(c=fa(s,n)),i.properties[s.value]={$ref:F+l},i.properties[s.value][re.SchemaTag.propertyIndex]=a,e.definitions[l]={type:"object",description:c,additionalProperties:!1},e.definitions[l][re.SchemaTag.isViewNode]=!0,e.definitions[l][re.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[l][re.SchemaTag.dataType]=p,e.definitions[l][re.SchemaTag.keys]=[{name:re.SchemaKeyName.value,value:`${s.value}`}],e.definitions[l][re.SchemaTag.annotationPath]=`${i[re.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[l].$ref=`${F}SelectionFieldDateSettings`:e.definitions[l].properties={},a++})}r(Ic,"addSelectionFields");function Oc(e){var t,n,i,o;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((o=(i=e.annotations)==null?void 0:i.Common)!=null&&o.DraftNode)}r(Oc,"isDraftEnabled");function xS(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}r(xS,"isEntityDeletable");function IS(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}r(IS,"isEntityUpdatable");function Sa(e,t=!1,n){let i=re.DefinitionName.HeaderActionsStandard,o=re.DefinitionName.HeaderActionsStandard,a=re.DefinitionName.HeaderActionStandard;t&&(i=re.DefinitionName.GenericActions,o=re.DefinitionName.HeaderActions,a=re.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],c=e.definitions[o];c[re.SchemaTag.isViewNode]=!0,c.description="Actions",Object.entries((n||s).properties).forEach(([p,f])=>{let u=f.$ref.split(F)[1],m=`${a}<${u}>`;c.properties[p]={$ref:`${F}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][re.SchemaTag.actionType]=re.ActionType.Standard})}r(Sa,"addStandardHeaderActions");function OS(e,t){let n=e.definitions[re.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(F)[1],a=`${re.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${F}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][re.SchemaTag.actionType]=re.ActionType.Standard}}r(OS,"addStandardFooterActionsOP");function FS(e){var i,o,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(o=t==null?void 0:t.annotations)==null?void 0:o.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?R.t("NOUIANNOTATIONS",{entityType:t.name}):R.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});_(e.logger,{severity:re.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(FS,"getUIAnnotationForEntitySet");function VI(e,t,n,i){if(e===M.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Me.UIAnnotationTypes.DataField:case Me.UIAnnotationTypes.DataFieldForAnnotation:case Me.UIAnnotationTypes.DataFieldWithNavigationPath:case Me.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===M.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Me.UIAnnotationTypes.DataField:case Me.UIAnnotationTypes.DataFieldForAnnotation:case Me.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(VI,"copyFieldProperties");function LI(e,t,n,i){let o=e===M.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===M.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(LI,"determineFieldDefinitionName");function NI(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][M.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(NI,"addKeysTagForDataField");function DI(e,t,n){if(e.$Type===Me.UIAnnotationTypes.DataField||e.$Type===Me.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Me.UIAnnotationTypes.DataFieldWithNavigationPath)NI(e,t,n);else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][M.SchemaTag.keys]=[{name:"Target",value:ma(e.Target.value)}],t.definitions[n][M.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][M.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Me.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][M.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(DI,"addKeysTagToField");function RI(e){var t,n;return e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Me.UIAnnotationTypes.ConnectedFieldsType}r(RI,"isConnectedField");function jI(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Me.UIAnnotationTypes.ConnectedFieldsType){let l=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,f=l.length;for(let u in p){let m=p[u];if(typeof m=="object"&&"$Type"in m){let h=l.findIndex(T=>T===u);h===-1&&(h=f,f++),Uf(e,t,m,`ConnectedFields::${a.qualifier}`,h.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(jI,"addConnectedFields");function VS(e,t,n){if(n)return n;let i=Ie(t);return e.definitions[i].properties}r(VS,"getFieldsSchemaContainer");function Uf(e,t,n,i,o,a,s,c=!0,l={},p=a.entityType.fullyQualifiedName){var T;let f=mi(n),u=s===M.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=LI(s,f,i,u),h={};if(!(!n||!n.$Type)){if(n.$Type===Me.UIAnnotationTypes.DataFieldForAction||n.$Type===Me.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===M.SectionType.Section){let E=VS(t,`${e}${M.DefinitionName.Actions}<${i}>`,l.actions),L=E[u]={$ref:`${F}${m}`};L[M.SchemaTag.propertyIndex]=parseInt(o)}}else{let E=VS(t,`${e}${M.DefinitionName.Fields}<${i}>`,l.fields);E[u]={$ref:`${F}${m}`,propertyIndex:parseInt(o)},RI(n)&&(h=jI(e,t,n,a,s))}t.definitions[m]={type:"object",properties:h,description:xt(n,a.entityType),additionalProperties:!1},DI(n,t,m),t.definitions[m][M.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[m][M.SchemaTag.annotationType]=n.$Type,t.definitions[m][M.SchemaTag.isViewNode]=!0,Vc(t.definitions[m],n),VI(s,t,n,m),n.$Type===Me.UIAnnotationTypes.DataFieldForAction&&((T=t.definitions)!=null&&T.FormAction)&&(t.definitions[m].properties=t.definitions[M.DefinitionName.FormAction].properties)}}r(Uf,"addField");function wI(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}r(wI,"determineTargetIdOfForm");function $I(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Ie(`${t}${M.DefinitionName.Form}<${i}>`),c=Ie(`${t}${M.DefinitionName.Fields}<${i}>`),l=Ie(`${t}${M.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${F}${s}`},t===M.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${F}${l}`},fields:{$ref:`${F}${c}`}},description:"Form",additionalProperties:!1},n.definitions[l]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[l][M.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${F}${c}`}},description:"Form",additionalProperties:!1},n.definitions[s][M.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][M.SchemaTag.annotationPath]=_t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[c][M.SchemaTag.isViewNode]=!0,e.base===M.FacetBase.Identification)for(let f in e.target){let u=e.target[f];u&&Uf(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Uf(t,n,u,i,f,e,o)}}r($I,"addFieldsToFormDefinition");function MI(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][M.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][M.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][M.SchemaTag.annotationPath]=_t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(MI,"addTagsToFormDefinition");function Nc(e,t,n,i,o,a){if(!t.target)return;let s=wI(t),c=Ie(`${e}${M.DefinitionName.Form}<${s}>`),l=Ie(`${e}${M.DefinitionName.Fields}<${s}>`),p=Ie(`${e}${M.DefinitionName.Actions}<${s}>`),f=!(t.base===M.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${F}${c}`},e===M.SectionType.Section&&f?(i.definitions[c]={type:"object",properties:{actions:{$ref:`${F}${p}`},fields:{$ref:`${F}${l}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][M.SchemaTag.isViewNode]=!0):i.definitions[c]={type:"object",properties:{fields:{$ref:`${F}${l}`}},description:"Form",additionalProperties:!1},MI(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][M.SchemaTag.isViewNode]=!0,$I(t,e,i,s,o,f),s}r(Nc,"handleForm");function kf(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(kf,"replaceAlias");function Dc(e,t){let n=kf(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,c;return o>-1?(a=i.substring(o+1),c=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,c=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${c.substring(0,c.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:c}}r(Dc,"getActionNameAndId");function LS(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===M.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:LS(a.pages,t)}}r(LS,"isFirstObjectPage");function Rc(e,t,n,i,o){var f,u;e.definitions[M.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${F}${M.DefinitionName.ObjectPageFooter}`},e.definitions[M.DefinitionName.ObjectPageFooter].properties[M.PropertyName.actions]={$ref:`${F}${M.DefinitionName.FooterActions}`};let a=e.definitions[M.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[M.SchemaTag.isViewNode]=!0;let s=Bt(M.UIVOCABULARY,t.serviceAVT),c=t.entitySet,l=c==null?void 0:c.entityType,p=s&&((u=(f=l==null?void 0:l.annotations)==null?void 0:f[s])==null?void 0:u.Identification);if(p){let m=p.fullyQualifiedName.replace(`@${Me.UIAnnotationTerms.Identification}`,`/@${Me.UIAnnotationTerms.Identification}`);a[M.SchemaTag.annotationPath]=`/${m}`,i(l,e,a,p)}else l&&(a[M.SchemaTag.annotationPath]=`/${l.fullyQualifiedName}/@${Me.UIAnnotationTerms.Identification}`);n===M.FioriElementsVersion.v2&&LS(o,t)&&!Oc(c)&&OS(e,a),delete e.definitions[M.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${M.DefinitionName.ObjectPageFooter}<${M.DefinitionName.ObjectPageFooterActions}>`]}r(Rc,"addFooterActions");function jc(e,t,n,i,o,a=!1){var u,m;let s=M.DefinitionName.HeaderActions,c=e.definitions[s];e.definitions[M.DefinitionName.ObjectPageHeader].properties[M.PropertyName.actions]={$ref:`${F}${s}`};let l=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[M.SchemaTag.isViewNode]=!0;let p=Bt(M.UIVOCABULARY,i),f=p&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[p])==null?void 0:m.Identification);f?l[M.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Me.UIAnnotationTerms.Identification}`,`/@${Me.UIAnnotationTerms.Identification}`):t&&(l[M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Me.UIAnnotationTerms.Identification}`),o(t,e,f,l,i,n),a&&Sa(e,!0,c),delete e.definitions[M.DefinitionName.GenericActions],delete e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`]}r(jc,"addHeaderActions");function wc(e,t){e.properties.header={$ref:`${F}${M.DefinitionName.ObjectPageHeader}`},e.definitions[M.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`])),t&&(e.definitions[M.DefinitionName.ObjectPageHeader][M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Me.UIAnnotationTerms.HeaderInfo}`)}r(wc,"addCommonHeaderSchema");function NS(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(NS,"determineEntitySetOfEntityType");var On=require("@sap-ux/vocabularies-types/vocabularies/UI");var me=w(B());function ho(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(ho,"addEnumToSchema");function $c(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let c=i[s];if(t.indexOf(c.term)>-1){let l=c.qualifier?`${c.term}#${c.qualifier}`:`${c.term}`;o.indexOf(l)===-1&&o.push(l)}}ho(o,n)}r($c,"addEnumForValidAnnotations");function Ni(e,t,n){let i=t.definitions[n].properties[me.SchemaTag.annotationPath],o=[On.UIAnnotationTerms.SelectionVariant,On.UIAnnotationTerms.SelectionPresentationVariant];$c(e,o,i)}r(Ni,"addEnumForSingleTabVariant");function DS(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[On.UIAnnotationTerms.SelectionVariant,On.UIAnnotationTerms.SelectionPresentationVariant];$c(n.entityType,o,i)}r(DS,"addEnumForMultiTabVariant");function RS(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),ho(o,i)}r(RS,"addEnumForVariantEntitySet");function jS(e,t,n,i){let o=n.map(a=>{let s=i.find(p=>!!a[p]),c=a[s],l=a.label||a.title;return{const:c,...l&&{description:l},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[me.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],c=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof c=="object"?c:void 0,$ref:`${F}${me.DefinitionName.RelatedFacetKeys}`},c]}}}}r(jS,"addDefinitionForRelatedFacetKeys");function va(e){return e.replace("#","::")}r(va,"getFacetKeyInSchema");function fr(e,t){return`${e}<${va(t)}>`}r(fr,"getFacetDefinitionKey");function ht(e,t,n,i=!0,o){let a=t;if(i&&(a=fr(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(ht,"parseSchemaDefinition");function Fc(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][me.SchemaTag.isViewNode]=!0;let c;o===me.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?c=`${F}${a}`:(c=`${F}${a}<${o}>`,ht(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${c}`}:!1;let l=e?me.DefinitionName.ObjectPageToolBar:me.DefinitionName.ToolBar,p=`${l}<${o}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${l}`]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${l}`}))}let f=`${me.DefinitionName.Actions}<${Ie(o)}>`;t.definitions[p].properties.actions.$ref=F+f;let u=o.startsWith(me.DefinitionName.LineItems)?me.DefinitionName.Actions:me.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let h,T;if(o===me.DefinitionName.LineItems&&t.properties.footer){T=`${me.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${F}${T}`;try{t.definitions[T]=JSON.parse(JSON.stringify(t.definitions[me.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:me.DefinitionName.GenericFooter}))}let E=`${me.DefinitionName.FooterActions}<${Ie(o)}>`;t.definitions[T].properties.actions.$ref=F+E;try{h=t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[me.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:me.DefinitionName.Actions}))}h.properties={},h.additionalProperties=!1}return n&&(s=_t(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][me.SchemaTag.annotationPath]=t.definitions[p][me.SchemaTag.annotationPath]=s,h&&(t.definitions[T][me.SchemaTag.annotationPath]=s))),{actions:m,footerActions:h,lineItemPath:s}}r(Fc,"addCommonLineItemDefinitions");function wS(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(wS,"getDataTypeFromAnnotation");function To(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=wS(e.$Type)),t}r(To,"determineDataTypeOfTarget");function en(e){var n,i,o;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=To((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=wS(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(en,"determineDataType");function Vc(e,t){let n=en(t);n&&(e[me.SchemaTag.dataType]=n)}r(Vc,"addDataTypeToDefinition");function tn(e,t){return`${F}${fr(e,t)}`}r(tn,"getFacetDefinitionLink");function $S(e,t,n,i){let o=0,a=!1,s="";do{let c=`${t}${o===0?"":"."+o}`;s=tn(e,c),o++;let l=n.definitions[fr(e,c)],p=((l==null?void 0:l.annotationPath)??"").split("/").slice(0,-1).join("/");a=!l||p===i}while(!a);return s}r($S,"getUniqueFacetDefinitionLink");function So(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${F}${i}`}r(So,"addDefinitionRef");function Mc(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${me.UIVOCABULARY}`);t=`/${n}/@${me.UIVOCABULARY}${i}`}return t}r(Mc,"getFacetAnnotationPath");function ur(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:tn(a?l:c,t)};let p=ht(a?l:c,t,i,!0,a?l:void 0);ui(e,p,t),Vi(e,p,t),p[me.SchemaTag.annotationPath]=e.annotationPath,p[me.SchemaTag.isViewNode]=!0}r(ur,"handleAddressContact");function _f(e,t,n){typeof e=="object"&&(e[t]=n)}r(_f,"updateSchemaProperty");function Pa(e,t,n=Ie("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${me.DefinitionName.Fields4Dialog}${n}`];_f(o.properties.fields.items,"enum",i)}r(Pa,"addFieldsType");function UI(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(UI,"findFirstSchemaDefinitionKey");function Bf(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=ga(t.$ref),u=(p=e.definitions)==null?void 0:p[f];typeof u=="object"&&(s=!u.annotationPath,i!=null&&i.resolveDefinition&&!o&&(o=u.description,a=u.keys))}let c=n,l=UI(a,i==null?void 0:i.keyProperties);return l?c=l.value:i!=null&&i.descriptionAsFallback&&o&&(c=o),{const:c,...o&&{description:o},...s&&{custom:s}}}r(Bf,"getEnumEntry");function MS(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let c in t.properties){if((i==null?void 0:i.excludeKey)===c)continue;let l=t.properties[c],p=Bf(e,l,c,i);o.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let c=(s=a.properties)==null?void 0:s[n.property];_f(c,"oneOf",o)}else _f(a,"oneOf",o)}r(MS,"addDescriptiveEnumDefinition");function bo(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(bo,"getActionKey");function Lc(e,t,n){var i,o,a;try{if(e.Value)t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.value,value:go(e.Value)}];else if(e.$Type===On.UIAnnotationTypes.DataFieldWithAction||e.$Type===On.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=bo(e.Action,!0);t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.action,value:s}],c&&(t[n][me.SchemaTag.target]=c)}else if(e.$Type===On.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=bo(e.Target.value,!1);t[n][me.SchemaTag.keys]=[{name:me.SchemaKeyName.target,value:ma(s)}],t[n][me.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===On.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===On.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=bo(s,!0);t[n][me.SchemaTag.keys]=[{name:"SemanticObject",value:e[me.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][me.SchemaTag.target]=l)}}catch{return}}r(Lc,"addKeyToDefinition");function US(e,t){e[me.SchemaTag.messages]||(e[me.SchemaTag.messages]=[]),Array.isArray(e[me.SchemaTag.messages])&&e[me.SchemaTag.messages].push({text:t})}r(US,"addMessageToSchema");var Aa=w(B());var kS=[{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.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.102",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"]},{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 BS="1.84.125";var HS={name:"@sap/ux-specification",version:BS,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 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",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 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/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.7","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.84.125","@sapui5/ts-types":"latest-1.84","@types/d3":"7.4.3","@types/jquery":"3.5.32","@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",path:"0.12.7","reflect-metadata":"0.2.2","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 Di=class Di{constructor(){Di.distTagsOfSpec.length===0&&(Di.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Di.distTagsOfSpec=[]}getSpecVersion(){return BS}getDistTagsOfVersion(){let t=[],n=kS,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=R.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});_(n,{severity:Aa.LogSeverity.Info,message:o,location:{path:Aa.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Di.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=R.t("WRONGMINUI5VERSION",{minUI5Version:t});_(n,{severity:Aa.LogSeverity.Warning,message:o,location:{path:Aa.MANIFESTPATH}})}}};r(Di,"DistTagEvaluator"),Di.distTagsOfSpec=[];var dr=Di;var Q=w(B());var ut=w(B());var ji=w(B());var Hf=class Hf{constructor(t,n,i,o){this.unhandledControllers=[];let a=Ye(ji.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...o&&{settings:o}},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(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let s=i.config;if(i.pageType!==ji.PageType.CustomPage){let c=Ye(i.pageType,i.entitySet);if(this.schemas[c.filename])s.$schema=c.path;else{let l=Ye(i.pageType);s.$schema=l.path}t[`${ji.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[ji.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(Hf,"AppProvider");var Ri=Hf;var Ee=w(B());var Ca=w(B());var gt=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),GS=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2"),WS=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function Gf(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Gf,"getNewPageTemplate");function BI(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(BI,"findPageInManifest");function HI(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Gf(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Gf(e[t].pageType)}),!Array.isArray(n.pages))){let i=BI(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Gf(e[t].pageType)),Wf(t,e,i)}}r(HI,"transformPageFromAssociation");function GI(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===Ca.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ca.PageTypeV2.ListReport||n.pageType===Ca.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(GI,"deletePage");function Wf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ca.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 o in i.navigation)HI(t,o,n);Array.isArray(n.pages)||GI(n,t,i)}}r(Wf,"transformPageToNewManifestV2");var Vv=w(cr());var Ld={};ta(Ld,{ALPAnalyticalTable:()=>Fu,ALPGridTable:()=>Ou,ALPResponsiveTable:()=>Iu,Action:()=>Du,AnalyticalCard:()=>Fa,AnalyticalCardSettings:()=>Bc,AnalyticalCardSettingsv4:()=>zf,AnalyticalListPageFilterBar:()=>ru,AnalyticalTable:()=>xu,BaseCustomSection:()=>Hr,ChartSettings:()=>Yu,ChartSettingsType:()=>Kf,CommonCardSettings:()=>Ui,CommonHeaderFacetSettings:()=>No,CommonTableSettings:()=>Bi,CommonTableSettingsForSections:()=>$o,CreateWithFilters:()=>Su,CustomCard:()=>Jf,DataLoadSettings:()=>vu,DateRange:()=>nu,DefaultSpanObject:()=>Xf,FRAGMENT_DEFINITION:()=>qn,Field:()=>tu,FieldForAction:()=>pu,Fields4Dialog:()=>Pu,Fields4DialogOP:()=>Ed,FooterAction:()=>ju,FormAction:()=>lu,GlobalChartSettings:()=>Ad,GlobalTableSettings:()=>Fd,GridTable:()=>Vu,HeaderAction:()=>td,HeaderActionStandard:()=>ku,HeaderSections:()=>rd,KPISettings:()=>Zu,LinkListCardSettings:()=>Zf,LinklistCard:()=>Pr,ListCard:()=>Oa,ListCardSettings:()=>qf,ListReportFilterBar:()=>Kc,ObjectPageAnalyticalTable:()=>xd,ObjectPageChart:()=>Pd,ObjectPageCustomSectionFragment:()=>Gr,ObjectPageCustomSectionView:()=>Wr,ObjectPageFooterAction:()=>cd,ObjectPageFooterActionStandard:()=>Bu,ObjectPageGridTable:()=>Id,ObjectPageHeader:()=>ed,ObjectPageHeaderActionStandard:()=>_u,ObjectPageHeaderSectionAddress:()=>ad,ObjectPageHeaderSectionChart:()=>id,ObjectPageHeaderSectionDataPoint:()=>od,ObjectPageHeaderSectionForm:()=>nd,ObjectPageLayout:()=>pd,ObjectPageResponsiveTable:()=>Mo,ObjectPageSectionAddressV2:()=>md,ObjectPageSectionChartV2:()=>dd,ObjectPageSectionContactV2:()=>yd,ObjectPageSectionFormV2:()=>ud,ObjectPageSectionTableV2:()=>gd,ObjectPageSectionV2:()=>fd,ObjectPageSubSectionChartV2:()=>Td,ObjectPageSubSectionContactV2:()=>Sd,ObjectPageSubSectionFormV2:()=>bd,ObjectPageSubSectionTableV2:()=>vd,ObjectPageSubSectionV2:()=>hd,ObjectPageToolBarAction:()=>Vd,ObjectPageTreeTable:()=>Od,QuickVariantSelection:()=>Au,QuickVariantSelectionOP:()=>Cd,QuickVariantSelectionX:()=>Cu,ResponsiveTable:()=>Io,SAP_UI_TABLE:()=>Xc,SaveAndEditOP:()=>Uu,SelectionFieldDateSettings:()=>ou,SelectionFields:()=>au,Share:()=>wu,ShareOP:()=>$u,StackCard:()=>vr,StackCardSettings:()=>Yf,TableALP:()=>Ra,TableCard:()=>Va,TableCardSettings:()=>eu,TableColumn:()=>Wu,TableColumnAction:()=>Qu,TableColumnActionIntentBased:()=>Ku,TableCustomColumn:()=>Xu,ToolBar:()=>qu,ToolBarAction:()=>Ru,TreeTable:()=>Eu,UpAndDownNavigationOP:()=>Mu,buildIntentBasedActionId:()=>Hu,deleteColumnFromFragment:()=>zc,deleteType:()=>wa,exportColorPalette:()=>JS,exportCreateParametersFields:()=>ol,exportCustomColumnsToFragment:()=>Tu,exportDateSettings:()=>ZS,exportDateSettingsField:()=>ev,exportDefaultSpan:()=>qS,exportType:()=>ja,getChartSectionControlId:()=>Ev,getContactSubSectionControlId:()=>Iv,getCustomColumnPath:()=>Yc,getFormSectionControlId:()=>Cv,getRootCustomColumnFromFragmentJSON:()=>xr,getSectionControlId:()=>jo,getSmartChartControlId:()=>jr,getSmartTableControlId:()=>xo,getSubSectionControlId:()=>xv,getTableSectionControlId:()=>Av,importCreateParameters:()=>il,importDateSettings:()=>su});var It=w(B());var pe=r(e=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),vo=r(e=>pe(e)+"/tableSettings","getTableSettingPathV2"),QS=r(e=>pe(e)+"/chartSettings","getChartSettingPathV2"),KS=r(e=>pe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var nt=r(()=>It.ManifestSection.ovp,"getOVPsettingPath"),J=r(e=>{let t=[It.ManifestSection.ovp];return e.forEach(n=>{n in It.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Po=r((e,t)=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),_c=r(e=>{let t=[It.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Rt=r(e=>{let t=[];return t.push(_c(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Ao=r(e=>Rt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Fn=r((e,t,n)=>{let i=[];i.push(_c(e));let o=n.replace(It.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),pn=r((e,t,n)=>Fn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),XS=r((e,t,n)=>Fn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Qf=r(()=>`sap.ui5/extends/extensions/${It.v2.SAPUI5_VIEW_EXTENSION}/${It.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),yi=r((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),c="";a.length===4?c=[a[2],a[3]].join("|"):a.length===3&&(c=a[2]);let l=[a[0],s[s.length-1],c].join("|");return i.unshift(l),`${Qf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),kc=class kc{};r(kc,"ApplicationV2"),d([_e("settings")],kc.prototype,"settings",2);var Uc=kc,Kn=class Kn{};r(Kn,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Kn.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Kn.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Kn.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.50.0"})],Kn.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.46.0"})],Kn.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.74.0"})],Kn.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"}),ce("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Kn.prototype,"flexEnabled",2);var wi=Kn;var gr=w(B());function WI(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=gr.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=gr.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:gr.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(WI,"importColorPalette");function JS(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===gr.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(JS,"exportColorPalette");function qS(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(qS,"exportDefaultSpan");var Hc=class Hc{};r(Hc,"ChartSettingsType"),d([g({manifest:{path:r(()=>nt()+"/chartSettings","path")}})],Hc.prototype,"showDataLabel",2);var Kf=Hc,$i=class $i{};r($i,"DefaultSpanObject"),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"cols",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"rows",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>J(t),"path")}})],$i.prototype,"minimumSubTitleRow",2);var Xf=$i,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>J(t),"path"),export:qS}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Be.prototype,"customParams",2);var Ui=Be,Ea=class Ea{};r(Ea,"CustomCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"template",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ea.prototype,"settings",2);var Jf=Ea,Mi=class Mi extends Ui{};r(Mi,"ListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Mi.prototype,"listType",2);var qf=Mi,mr=class mr{};r(mr,"ListCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],mr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],mr.prototype,"template",2);var Oa=mr,Xn=class Xn extends Ui{};r(Xn,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"navigation",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>J(t),"path"),import:WI,export:JS}})],Xn.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Xn.prototype,"bEnableStableColors",2);var Bc=Xn,Gc=class Gc extends Bc{};r(Gc,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>J(t),"path")}})],Gc.prototype,"measureAggregate",2);var zf=Gc,yr=class yr{};r(yr,"AnalyticalCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],yr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],yr.prototype,"template",2);var Fa=yr,xa=class xa extends Ui{};r(xa,"StackCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"itemText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>J(t),"path")}})],xa.prototype,"objectStreamCardsSettings",2);var Yf=xa,hr=class hr{};r(hr,"StackCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],hr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],hr.prototype,"template",2);var vr=hr,Ia=class Ia extends Ui{};r(Ia,"LinkListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ia.prototype,"staticContent",2);var Zf=Ia,br=class br{};r(br,"LinklistCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],br.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],br.prototype,"template",2);var Pr=br,Tr=class Tr extends Ui{};r(Tr,"TableCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Tr.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Tr.prototype,"enableAddToInsights",2);var eu=Tr,Sr=class Sr{};r(Sr,"TableCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],Sr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Sr.prototype,"template",2);var Va=Sr;var zS=w(B());var QI=r((e,t,n,i,o)=>{let a=yt(n[1],o),s=n.slice(-1)[0];return Qe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Wc=class Wc{};r(Wc,"Field"),d([g({flex:{controlId:QI,controlType:r(()=>zS.ControlType.GroupElement,"controlType"),createFlexChange:U},generate:Oe})],Wc.prototype,"visible",2);var tu=Wc;var Eo=w(B());function su(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}r(su,"importDateSettings");function ZS(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(ZS,"exportDateSettings");function KI(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,o;return n==="selectedValues"&&typeof i=="string"&&(o=i.split(",")),n==="filter"&&typeof i=="object"&&(o=[],i.forEach((a,s)=>{o[s]=a,a.equals&&typeof a.equals=="string"&&(o[s].equals=a.equals.split(","))})),o}r(KI,"importDateSettingsField");function ev(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 o in i){let a=i[o];e[n][o]=a,a.equals&&Array.isArray(a.equals)&&(e[n][o].equals=a.equals.join())}}r(ev,"exportDateSettingsField");var La=class La{};r(La,"DateRange"),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],La.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path"),import:su,export:ZS}}),S({since:"1.77.0"})],La.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>pe(t)+Eo.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],La.prototype,"exclude",2);var nu=La,Qc={controlId:Qe,controlType:r(()=>Eo.ControlType.SmartFilterBar,"controlType"),createFlexChange:U},iu={path:r((e,t,n)=>`${pe(e)}${Eo.DATESETTINGSPATH}/fields/${n}`,"path")},YS={...iu,import:KI,export:ev},Co=class Co{};r(Co,"SelectionFieldDateSettings"),d([g({manifest:YS}),S({since:"1.77.0"})],Co.prototype,"selectedValues",2),d([g({manifest:iu}),S({since:"1.77.0"})],Co.prototype,"exclude",2),d([g({manifest:iu}),S({since:"1.77.0"})],Co.prototype,"customDateRangeImplementation",2),d([g({manifest:YS}),S({since:"1.77.0"})],Co.prototype,"filter",2);var ou=Co,cu=class cu{};r(cu,"SelectionFields");var au=cu,Vn=class Vn{};r(Vn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"})],Vn.prototype,"smartVariantManagement",2),d([g({flex:Qc}),S({since:"1.40.0"})],Vn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Vn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.52.0"})],Vn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>pe(t)+"/filterSettings","path"),import:su}}),S({since:"1.77.0"})],Vn.prototype,"dateSettings",2),d([g({flex:Qc}),S({since:"1.28.0"})],Vn.prototype,"showClearOnFB",2),d([g({flex:Qc}),S({since:"1.38.0"})],Vn.prototype,"showFilterConfiguration",2),d([g({flex:Qc}),S({since:"1.28.0"})],Vn.prototype,"showRestoreOnFB",2);var Kc=Vn,Ar=class Ar extends Kc{};r(Ar,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}})],Ar.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],Ar.prototype,"filterDefaultsFromSelectionVariant",2);var ru=Ar;var fn=w(B());var Jn=r((e,t,n,i,o)=>{if(i()===fn.ControlType.Button){let a=n[n.length-1],s=yt(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Qe(e,t)},"getFormActionButtonId"),ki=class ki{};r(ki,"FormAction"),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U},generate:Oe})],ki.prototype,"visible",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"tooltip",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"icon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],ki.prototype,"activeIcon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}}),S({since:"1.73.0"})],ki.prototype,"type",2);var lu=ki,_i=class _i{};r(_i,"FieldForAction"),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U},generate:Oe})],_i.prototype,"visible",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"tooltip",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"icon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}})],_i.prototype,"activeIcon",2),d([g({flex:{controlId:Jn,controlType:r(()=>fn.ControlType.Button,"controlType"),createFlexChange:U}}),S({since:"1.73.0"})],_i.prototype,"type",2);var pu=_i;var Le=w(B()),Ln=w(cr());var gu=require("path"),fO=w(B()),dv=w(uv()),gv=require("fs");var uO=(0,gu.join)(__dirname,"templates");var dO=r((e,t)=>{let n=(0,gv.readFileSync)(e,"utf8");return(0,dv.render)(n,t)},"renderTemplate");var mu=r((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 dO((0,gu.join)(uO,t+".xml"),n)},"getSingleColumnContent"),yu=r((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 o=mu(i,t);n=n+`
83
83
  `+o}return n+`
84
84
  </core:FragmentDefinition>`},"getColumnFragmentContent"),hu=r(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
85
85
  <Text text="Placeholder"/>`}),t+`
86
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Jc=require("path");var qn="core:FragmentDefinition",Xc="sap.ui.table",bu=new Map([[Le.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Le.ViewTemplateType.TreeTableColumnsExtension,{namespace:Xc,name:"Column"}],[Le.ViewTemplateType.GridTableColumnsExtension,{namespace:Xc,name:"Column"}],[Le.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Xc,name:"AnalyticalColumn"}]]),gO=new Map([[Le.v2.FE_TEMPLATE_V2_LIST_REPORT,Le.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Le.v2.FE_TEMPLATE_V2_ALP,Le.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Le.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Le.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),yv={type:"element",name:"Text",attributes:{text:"Placeholder"}},mO=JSON.stringify(yv);function yO(e,t){var i;let n=t?(i=e==null?void 0:e[qn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(yO,"getFragmentNamespaces");function mv(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(mv,"getTagName");function qc(e,t,n=e){let i=yO(n,!!(t||n!==e));if(t){let o=bu.get(t);return mv(o,i.get(o.namespace))}else{let o=bu.keys();for(let a of o){let s=bu.get(a),c=i?mv(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(qc,"getTagNameFromFragmentJSON");function xr(e,t=e){let n=qc(e,void 0,t);return e[n]}r(xr,"getRootCustomColumnFromFragmentJSON");function hO(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(hO,"addP13nData");function hv(e,t){var c,l,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,o=hO(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((c=t[s])!=null&&c.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(l=t[s])==null?void 0:l.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)}r(hv,"handleFragmentColumn");function bO(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),c=s[s.length-1]+Le.FRAGMENTNAMEPART+a;for(let l of t){let p=l.dataSourceUri.split(Jc.sep);if(p[p.length-1]===c){let f=JSON.parse((0,Ln.xml2json)(l.fileContent,{compact:!0}));try{let u=qc(f[qn]);u&&(delete f[qn][u],l.fileContent=(0,Ln.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(bO,"deleteColumnsFromFragment");function bv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===mO&&(e.splice(n,1),t-=1,t===0));n++);}r(bv,"deleteNumberOfCells");function TO(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Le.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let c=JSON.parse((0,Ln.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&bv(c.elements[0].elements,l.length),s.fileContent=(0,Ln.json2xml)(JSON.stringify(c),{spaces:4});break}}r(TO,"deleteCellsFromFragment");function zc(e,t,n,i){if(i){bO(e,i,t,n);let o=t.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&TO(a,i,n)}}r(zc,"deleteColumnFromFragment");function SO(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(yv)}r(SO,"addNewColumnsInFragment");function vO(e,t){let n=JSON.parse((0,Ln.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)SO(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;bv(a,o)}e.fileContent=(0,Ln.json2xml)(JSON.stringify(n),{spaces:4})}}r(vO,"updateNonEmptyCellsFragment");function PO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Jc.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Le.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=hu(n):vO(o,n);break}}return i}r(PO,"updateCellsFragment");function AO(e,t,n,i,o){var f;let a,s,c=t.manifest,l=gt(c,e),p=l.type?l.type.toLowerCase():"xml";l.type=p.toUpperCase();for(let u of n){if(!u.fragmentName){_(o,{severity:Le.LogSeverity.Error,message:R.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Le.ChangeIndicator.Updated,l.fragmentName=u.fragmentName,l.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,Jc.sep))+Le.FRAGMENTNAMEPART+p}if(e.indexOf(Le.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Le.ChangeIndicator.Updated;let u=e.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),m=gt(c,u),h=n.reduce((T,F)=>F.cellsFragmentName?F:T);h&&h.cellsFragmentName?(m.fragmentName=s=h.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):WS(c,u)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(AO,"exportCustomColumnsToManifest");function CO(e,t,n,i,o){let a=mu(e,t);if(a){let s=JSON.parse((0,Ln.xml2json)(a,{compact:!0})),c=xr(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(c))||n.push(c);else if(n){let l=[n];l.splice(o,0,c),n=l}else n=[c]}return n}r(CO,"insertNewColumnInFragment");function EO(e,t){let n=[];for(let i=0;i<e.length;i++)hv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(EO,"processCustomColumnInArray");function xO(e,t,n){if(e){if(Array.isArray(e))EO(e,t);else if(!hv(e,t)){let o=qc(n[qn]);o&&(delete n[qn][o],e=void 0)}}return e}r(xO,"maintainExistingColumnInFragment");function IO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=CO(a,i,n,o,s)}return n}r(IO,"insertNewColumnsInFragment");function OO(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let c={};if(a=!0,s.changeIndicator=Le.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=yu(i,o);else{let l=JSON.parse((0,Ln.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=xr(l[qn]),c=xO(c,i,l),c=IO(i,n,c,o,l);let f=qc(l,o);l[qn][f]=c;let u=JSON.stringify(l);u!==p&&(s.fileContent=(0,Ln.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(OO,"updateColumnsInFragment");function Tu(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:f}=AO(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=c.fragmentName,h=m.substr(i.length+1),T=h.split(".");m=T[T.length-1]+Le.FRAGMENTNAMEPART+f;let L=p==null?void 0:p.split("."),Y=L?L[L.length-1]:null,ne=Y?Y+Le.FRAGMENTNAMEPART+f:null,q=OO(s,m,h,u,o),ue=!1;if(p?ue=PO(s,ne,n):ue=!0,!q){let ie={fileContent:yu(u,o),dataSourceUri:l,changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}if(!ue){let ie={fileContent:hu(n),dataSourceUri:l.replace(m,ne),changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}}r(Tu,"exportCustomColumnsToFragment");var Yc=r((e,t,n,i)=>{var l,p,f,u;if(!e)return;let o=gO.get((l=e.component)==null?void 0:l.name);if(!i){let m=(u=(f=(p=e.component)==null?void 0:p.settings)==null?void 0:f.tableSettings)==null?void 0:u.type;m||(m="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(m="AnalyticalTable"),i=m+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var it=w(B());var xo=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+it.PropertyName.table:Qe(e,t),"getSmartTableControlId");function il(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let o in t)n.fields.push(o);return n}r(il,"importCreateParameters");function ol(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let o={};e[n]||(e[n]={}),i.forEach(a=>o[a]=e[n][a]||{path:a}),e[n]=o}r(ol,"exportCreateParametersFields");function FO(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],c=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let l in s)c.indexOf(l)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[l]=s[l],delete s[l]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(FO,"exportVariants");function VO(e,t){t.variants&&(Object.keys(t.variants).length>0?FO(e,t):delete e.variants)}r(VO,"exportQuickVariantSelectionX");var Zc=class Zc{};r(Zc,"CreateWithFilters"),d([g({manifest:{path:r(t=>pe(t)+"/createWithFilters","path")}})],Zc.prototype,"strategy",2);var Su=Zc;function Fr(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}r(Fr,"importType");function ja(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(ja,"exportType");function wa(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(wa,"deleteType");var el=class el{};r(el,"DataLoadSettings"),d([g({manifest:{path:r(t=>KS(t),"path")}}),S({since:"1.75.2"})],el.prototype,"loadDataOnAppLaunch",2);var vu=el,tl=class tl{};r(tl,"Fields4Dialog"),d([g({manifest:{path:r(t=>vo(t)+"/createWithParameterDialog","path"),export:ol}}),S({since:"1.77.0"})],tl.prototype,"fields",2);var Pu=tl,Ir=class Ir{};r(Ir,"QuickVariantSelection"),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Ir.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Ir.prototype,"variants",2);var Au=Ir,Na=class Na{};r(Na,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Na.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Na.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path"),export:VO}}),S({since:"1.48.0"})],Na.prototype,"variants",2);var Cu=Na,Ot=class Ot{constructor(){this.getDeprecated=r(()=>({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")}};r(Ot,"CommonTableSettings"),d([g({manifest:{key:"createWithParameterDialog",path:r(t=>vo(t),"path"),import:il}}),S({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Qe,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.38.0"})],Ot.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.38.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.75.2"})],Ot.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.42.0"})],Ot.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.56.0"}),ce("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ot.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var Bi=Ot,zn=class zn extends Bi{};r(zn,"ResponsiveTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],zn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],zn.prototype,"createWithFilters",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U},generate:Qn}),S({since:"1.52.0"})],zn.prototype,"popinLayout",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}})],zn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.77.0"})],zn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],zn.prototype,"showDraftToggle",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],zn.prototype,"growingThreshold",2);var Io=zn,Or=class Or extends Bi{};r(Or,"TreeTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Or.prototype,"type",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Or.prototype,"showDraftToggle",2);var Eu=Or,dn=class dn extends Bi{};r(dn,"AnalyticalTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],dn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],dn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.78.0"})],dn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],dn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],dn.prototype,"showDraftToggle",2);var xu=dn,Yn=class Yn extends Bi{};r(Yn,"TableALP"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Yn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],Yn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.78.0"})],Yn.prototype,"allFiltersAsInParameters",2);var Ra=Yn,nl=class nl extends Ra{};r(nl,"ALPResponsiveTable"),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],nl.prototype,"growingThreshold",2);var Iu=nl,Lu=class Lu extends Ra{};r(Lu,"ALPGridTable");var Ou=Lu,Nu=class Nu extends Ra{};r(Nu,"ALPAnalyticalTable");var Fu=Nu,Da=class Da extends Bi{};r(Da,"GridTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Da.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],Da.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Da.prototype,"showDraftToggle",2);var Vu=Da;var Vr=w(B());var LO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}`},"getActionButtonId"),NO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}template::${i}`},"getStandardActionButtonId"),DO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}${Ec}${i}`},"getStandardFooterActionOPButtonId"),Hu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Wt(n);return`${e}action::${i}::${Ht(o)}`},"buildIntentBasedActionId"),RO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Hi={controlId:LO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Lr={controlId:NO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Tv={controlId:DO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},al={controlId:RO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Oo=class Oo{};r(Oo,"Action"),d([g({flex:Hi})],Oo.prototype,"tooltip",2),d([g({flex:Hi})],Oo.prototype,"icon",2),d([g({flex:Hi})],Oo.prototype,"activeIcon",2),d([g({flex:Hi})],Oo.prototype,"type",2);var Du=Oo,Fo=class Fo{};r(Fo,"ToolBarAction"),d([g({flex:Hi})],Fo.prototype,"tooltip",2),d([g({flex:Hi})],Fo.prototype,"icon",2),d([g({flex:Hi})],Fo.prototype,"activeIcon",2),d([g({flex:Hi})],Fo.prototype,"type",2);var Ru=Fo,Vo=class Vo{};r(Vo,"FooterAction"),d([g({flex:al})],Vo.prototype,"tooltip",2),d([g({flex:al})],Vo.prototype,"icon",2),d([g({flex:al})],Vo.prototype,"activeIcon",2),d([g({flex:al})],Vo.prototype,"type",2);var ju=Vo,rl=class rl{};r(rl,"Share"),d([g({flex:Lr})],rl.prototype,"visible",2);var wu=rl,sl=class sl{};r(sl,"ShareOP"),d([g({flex:Lr})],sl.prototype,"visible",2);var $u=sl,cl=class cl{};r(cl,"UpAndDownNavigationOP"),d([g({flex:Lr})],cl.prototype,"visible",2);var Mu=cl,ll=class ll{};r(ll,"SaveAndEditOP"),d([g({flex:Tv,generate:Oe})],ll.prototype,"visible",2);var Uu=ll,pl=class pl{};r(pl,"HeaderActionStandard"),d([g({flex:Lr})],pl.prototype,"visible",2);var ku=pl,fl=class fl{};r(fl,"ObjectPageHeaderActionStandard"),d([g({flex:Lr})],fl.prototype,"visible",2);var _u=fl,ul=class ul{};r(ul,"ObjectPageFooterActionStandard"),d([g({flex:Tv})],ul.prototype,"visible",2);var Bu=ul;var Rr=w(B());var jO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Wt(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),wO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Wt(n),c=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${c}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),$O=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Gu={controlId:jO,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U},Nr={controlId:$O,controlType:r(()=>Rr.ControlType.Button,"controlType"),createFlexChange:U},Sv={...Gu,controlId:wO},dl={...Nr,controlId:Hu},Dr=class Dr{};r(Dr,"TableColumn"),d([g({flex:{controlId:Rf,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U}})],Dr.prototype,"width",2),d([g({flex:{controlId:Rf,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U},generate:Qn})],Dr.prototype,"hAlign",2);var Wu=Dr,hi=class hi{};r(hi,"TableColumnAction"),d([g({flex:Gu})],hi.prototype,"width",2),d([g({flex:Gu,generate:Qn})],hi.prototype,"hAlign",2),d([g({flex:Nr})],hi.prototype,"tooltip",2),d([g({flex:Nr})],hi.prototype,"icon",2),d([g({flex:Nr})],hi.prototype,"activeIcon",2),d([g({flex:Nr})],hi.prototype,"type",2);var Qu=hi,bi=class bi{};r(bi,"TableColumnActionIntentBased"),d([g({flex:Sv})],bi.prototype,"width",2),d([g({flex:Sv,generate:Qn})],bi.prototype,"hAlign",2),d([g({flex:dl})],bi.prototype,"tooltip",2),d([g({flex:dl})],bi.prototype,"icon",2),d([g({flex:dl})],bi.prototype,"activeIcon",2),d([g({flex:dl})],bi.prototype,"type",2);var Ku=bi,Ju=class Ju{};r(Ju,"TableCustomColumn");var Xu=Ju;var zu=class zu{};r(zu,"ToolBar");var qu=zu;var Lo=w(B());var jr=r(e=>e+Lo.PropertyName.chart,"getSmartChartControlId"),Gi=class Gi{};r(Gi,"ChartSettings"),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showLegendButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showDownloadButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:U}})],Gi.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>QS(t),"path")}}),S({since:"1.81.0"})],Gi.prototype,"showDataLabel",2);var Yu=Gi;var Ti=class Ti{};r(Ti,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"groupId",2);var Zu=Ti;var vv=w(B());var MO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Qe(e,n)},"getAvatarControlId"),Wi=class Wi{};r(Wi,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],Wi.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],Wi.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],Wi.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"}),ce("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Wi.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:MO,controlType:r(()=>vv.ControlType.Avatar,"controlType"),createFlexChange:U},generate:Oe})],Wi.prototype,"displayShape",2);var ed=Wi;var gl=w(B());var UO=r((e,t,n,i)=>{if(i()===gl.ControlType.Button||i()===gl.ControlType.HeaderAction){let o=n[2];return`${e}action::${Ht(o)}`}return Qe(e,t)},"getActionButtonId"),wr={controlId:UO,controlType:r(()=>gl.ControlType.HeaderAction,"controlType"),createFlexChange:U},Qi=class Qi{};r(Qi,"HeaderAction"),d([g({flex:wr,generate:Oe})],Qi.prototype,"visible",2),d([g({flex:wr})],Qi.prototype,"tooltip",2),d([g({flex:wr})],Qi.prototype,"icon",2),d([g({flex:wr})],Qi.prototype,"activeIcon",2),d([g({flex:wr})],Qi.prototype,"type",2);var td=Qi;var $r=w(B());var Sl="header::headerEditable::",kO=r((e,t,n,i,o)=>`${e}${Sl}${o}`,"getDataPointHeaderSectionId"),_O=r((e,t,n,i,o)=>`${e}${Sl}${o}::ContactAddress`,"getAddressHeaderSectionId"),BO=r((e,t,n,i,o)=>`${e}${Sl}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),HO=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes($r.FACETTITLEPREFIX)?o.split($r.FACETTITLEPREFIX)[1]:a;return`${e}${Sl}${s}::Form`},"getFormHeaderSectionId"),Mr={controlType:r(()=>$r.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:U},ml=class ml{};r(ml,"CommonHeaderFacetSettings"),d([g({flex:{...Mr,controlId:r((()=>crypto.randomUUID()),"controlId")},generate:Oe})],ml.prototype,"visible",2);var No=ml,yl=class yl extends No{};r(yl,"ObjectPageHeaderSectionForm"),d([g({flex:{...Mr,controlId:HO}})],yl.prototype,"visible",2);var nd=yl,hl=class hl extends No{};r(hl,"ObjectPageHeaderSectionChart"),d([g({flex:{...Mr,controlId:BO}})],hl.prototype,"visible",2);var id=hl,bl=class bl extends No{};r(bl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...Mr,controlId:kO}})],bl.prototype,"visible",2);var od=bl,Tl=class Tl extends No{};r(Tl,"ObjectPageHeaderSectionAddress"),d([g({flex:{...Mr,controlId:_O}})],Tl.prototype,"visible",2);var ad=Tl,sd=class sd{};r(sd,"HeaderSections");var rd=sd;var ld=w(B());var GO=r((e,t,n,i)=>{if(i()===ld.ControlType.Button){let{actionId:o}=Wt(n);return`${e}action::${Ht(o)}::Determining`}return Qe(e,t)},"getFooterActionButtonId"),Ur={controlId:GO,controlType:r(()=>ld.ControlType.Button,"controlType"),createFlexChange:U},Ki=class Ki{};r(Ki,"ObjectPageFooterAction"),d([g({flex:Ur,generate:Oe})],Ki.prototype,"visible",2),d([g({flex:Ur})],Ki.prototype,"tooltip",2),d([g({flex:Ur})],Ki.prototype,"icon",2),d([g({flex:Ur})],Ki.prototype,"activeIcon",2),d([g({flex:Ur})],Ki.prototype,"type",2);var cd=Ki;var kr=w(B());var vl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Qe(e,n)},"getControlId"),Do=class Do{};r(Do,"ObjectPageLayout"),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U},generate:Oe})],Do.prototype,"showHeaderContent",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}})],Do.prototype,"showAnchorBar",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}})],Do.prototype,"useIconTabBar",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}}),S({since:"1.34.0"})],Do.prototype,"alwaysShowContentHeader",2);var pd=Do;var Pv=w(B());var Ro=class Ro{};r(Ro,"BaseCustomSection"),d([g({manifest:{path:yi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),S({since:"1.52.0"})],Ro.prototype,"relatedFacet",2),d([g({manifest:{path:yi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),S({since:"1.52.0"})],Ro.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>yi(t,{},i,Pv.ManifestSection.generic),"path")}}),S({since:"1.52.0"})],Ro.prototype,"title",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Ro.prototype,"className",2);var Hr=Ro,_r=class _r extends Hr{};r(_r,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],_r.prototype,"fragmentName",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],_r.prototype,"type",2);var Gr=_r,Br=class Br extends Hr{};r(Br,"ObjectPageCustomSectionView"),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Br.prototype,"viewName",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Br.prototype,"type",2);var Wr=Br;var Xt=w(B());var Av=r((e,t,n,i,o)=>{let s=[yt(n[1],o),Xt.DefinitionName.Table];return Qe(e,s)},"getTableSectionControlId"),Cv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"FormGroup"];return Qe(e,s)},"getFormSectionControlId"),Ev=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Chart"];return Qe(e,s)},"getChartSectionControlId"),jo=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Section"];return Qe(e,s)},"getSectionControlId"),xv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"SubSection"];return Qe(e,s)},"getSubSectionControlId"),Iv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"ContactsList"];return Qe(e,s)},"getContactSubSectionControlId"),Pl=class Pl{};r(Pl,"ObjectPageSectionV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Pl.prototype,"visible",2);var fd=Pl,Al=class Al{};r(Al,"ObjectPageSectionFormV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Al.prototype,"visible",2);var ud=Al,Cl=class Cl{};r(Cl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Cl.prototype,"visible",2);var dd=Cl,El=class El{};r(El,"ObjectPageSectionTableV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],El.prototype,"visible",2);var gd=El,xl=class xl{};r(xl,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],xl.prototype,"visible",2);var md=xl,Il=class Il{};r(Il,"ObjectPageSectionContactV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Il.prototype,"visible",2);var yd=Il,Ol=class Ol{};r(Ol,"ObjectPageSubSectionV2"),d([g({flex:{controlId:xv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:U},generate:Oe})],Ol.prototype,"visible",2);var hd=Ol,Fl=class Fl{};r(Fl,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:Cv,controlType:r(()=>Xt.ControlType.Group,"controlType"),createFlexChange:U},generate:Oe})],Fl.prototype,"visible",2);var bd=Fl,Vl=class Vl{};r(Vl,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:Ev,controlType:r(()=>Xt.ControlType.SmartChart,"controlType"),createFlexChange:U},generate:Oe})],Vl.prototype,"visible",2);var Td=Vl,Ll=class Ll{};r(Ll,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:Iv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:U},generate:Oe})],Ll.prototype,"visible",2);var Sd=Ll,Nl=class Nl{};r(Nl,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:Av,controlType:r(()=>Xt.ControlType.SmartTable,"controlType"),createFlexChange:U},generate:Oe})],Nl.prototype,"visible",2);var vd=Nl;var Dl=class Dl{};r(Dl,"ObjectPageChart"),d([g({manifest:{path:XS}}),S({since:"1.78.0"})],Dl.prototype,"variantManagement",2);var Pd=Dl,Rl=class Rl{};r(Rl,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Rt(t)+"/chartSettings","path")}}),S({since:"1.78.0"})],Rl.prototype,"variantManagement",2);var Ad=Rl;var nn=w(B());var wo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=nn.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=yt(a[0],o),Qe(e,a)},"getSmartTableControlId"),Qr=class Qr{};r(Qr,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>Fn(t,n,i)+nn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Qr.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>Fn(t,n,i)+nn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Qr.prototype,"variants",2);var Cd=Qr,jl=class jl{};r(jl,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>pn(t,n,i)+"/createWithParameterDialog","path"),export:ol}}),S({since:"1.77.0"})],jl.prototype,"fields",2);var Ed=jl,Ft=class Ft{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(Ft,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:pn,import:il}}),S({since:"1.77.0"})],Ft.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.28.0"})],Ft.prototype,"editable",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.95.0"}),ce("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ft.prototype,"showPasteButton",2),d([g({manifest:{path:pn}}),S({since:"1.54.0"})],Ft.prototype,"multiSelect",2),d([g({manifest:{path:pn}}),S({since:"1.70.0"})],Ft.prototype,"selectAll",2),d([g({manifest:{path:pn}}),S({since:"1.70.0"})],Ft.prototype,"selectionLimit",2),d([g({manifest:{path:Fn}}),S({since:"1.63.0"})],Ft.prototype,"quickVariantSelection",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.26.0"})],Ft.prototype,"useExportToExcel",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.50.0"})],Ft.prototype,"exportType",2),d([g({manifest:{path:Fn}}),S({since:"1.48.5"}),ce("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ft.prototype,"createMode",2),d([g({manifest:{path:Fn}}),S({since:"1.61.0"})],Ft.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:pn}}),S({since:"1.78.0"})],Ft.prototype,"variantManagement",2),d([_e("toolBar")],Ft.prototype,"toolBar",2);var $o=Ft,Xi=class Xi extends $o{};r(Xi,"ObjectPageResponsiveTable"),d([g({manifest:{path:pn}})],Xi.prototype,"type",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U}})],Xi.prototype,"includeItemInSelection",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U},generate:Oe}),S({since:"1.52.0"})],Xi.prototype,"popinLayout",2),d([g({manifest:{path:pn}}),S({since:"1.77.0"})],Xi.prototype,"inlineDelete",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],Xi.prototype,"growingThreshold",2);var Mo=Xi,Kr=class Kr extends $o{};r(Kr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:pn}})],Kr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Kr.prototype,"condensedTableLayout",2);var xd=Kr,Xr=class Xr extends $o{};r(Xr,"ObjectPageGridTable"),d([g({manifest:{path:pn}})],Xr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Xr.prototype,"condensedTableLayout",2);var Id=Xr,Jr=class Jr extends $o{};r(Jr,"ObjectPageTreeTable"),d([g({manifest:{path:pn}})],Jr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Jr.prototype,"condensedTableLayout",2);var Od=Jr,Si=class Si{};r(Si,"GlobalTableSettings"),d([g({manifest:{path:Ao}}),S({since:"1.70.0"})],Si.prototype,"selectAll",2),d([g({manifest:{path:Ao}}),S({since:"1.78.0"})],Si.prototype,"variantManagement",2),d([g({manifest:{path:Ao}})],Si.prototype,"type",2),d([g({manifest:{path:Ao}}),S({since:"1.54.0"})],Si.prototype,"multiSelect",2),d([g({manifest:{path:Ao}}),S({since:"1.67.0"})],Si.prototype,"condensedTableLayout",2),d([g({manifest:{path:Ao}}),S({since:"1.77.0"})],Si.prototype,"inlineDelete",2);var Fd=Si;var Ov=w(B());var WO=r((e,t,n,i,o)=>{let{actionId:a}=Wt(n),s=yt(n[1],o);return`${e}${s}::action::${Ht(a).replace(":2f","::")}`},"getActionButtonId"),qr={controlId:WO,controlType:r(()=>Ov.ControlType.Button,"controlType"),createFlexChange:U},Ji=class Ji{};r(Ji,"ObjectPageToolBarAction"),d([g({flex:qr,generate:Oe})],Ji.prototype,"visible",2),d([g({flex:qr})],Ji.prototype,"tooltip",2),d([g({flex:qr})],Ji.prototype,"icon",2),d([g({flex:qr})],Ji.prototype,"activeIcon",2),d([g({flex:qr})],Ji.prototype,"type",2);var Vd=Ji;var jt=w(B());function Nd(e,t,n,i){if(t.controlType===jt.ControlType.TableColumn||t.controlType===jt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===jt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],c=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",jt.VOCWITHCOLONS),l=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(l!=null&&l.startsWith("DataField")?l=l==null?void 0:l.replace("/",":2f"):l=l==null?void 0:l.replace("/","_"),l!==c&&n!==c)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(Nd,"addFlexChangeToConfigTableColumn");function wl(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(jt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(wl,"addFlexChangeToConfigTable");function $l(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,h;let s=Zt(a),c={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(u=s.content)==null?void 0:u.newValue,controlType:s.controlType,creation:s.creation},l;if(s.controlType===jt.ControlType.TableColumn)l=e.jsonSchema.definitions.TableColumn.properties[c.propertyId];else{let T=(!t.table.type||t.table.type===jt.v2.TableTypeV2.ResponsiveTable)&&!((m=c.controlId)!=null&&m.includes(jt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(jt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;l=(h=e.jsonSchema.definitions[`${T}<${o}>`])==null?void 0:h.properties[c.propertyId]}l&&Nd(t.table,c,n,i)})}r($l,"importFlexChangesOfColumn");function qi(e){return e.replace("/","::")}r(qi,"convertActionKey");function Dd(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(Dd,"convertSelector");function QO(e,t,n,i){var a,s,c,l;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((l=(c=i.definitions)==null?void 0:c.AnalyticalListPageFilterBar)==null?void 0:l.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(QO,"addSmartFilterBarFlex");function KO(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var c;let a=Ht((c=o.split("<")[1])==null?void 0:c.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let l=a.split(":::"),p=l.find(m=>m.startsWith("sSemanticObject")),f=l.find(m=>m.startsWith("sAction")),u=f.split("sAction::")[1].replace(":2f","::");if(p){let m=`${p.split("::")[1]}::${u}`,h=`${l[0]}:::${p}:::${f}`;i.set(m,o),i.set(o,h)}else i.set(u,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(KO,"filterActions");function XO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(XO,"addColumnActionConfigPart");function JO(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]}r(JO,"getActionId");function qO(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var l,p;let c=KO(s.name,i);if(c.has(s.id)){let f=c.get(s.id),u=(l=f.split("<")[1])==null?void 0:l.split(">")[0];s.name==="TableColumnAction"&&XO(s,e,u);let m=s.configPart[u];((p=i.definitions[f])==null?void 0:p.properties[t])&&m&&(m[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(qO,"addActionFlex");function zO(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=pt(e[Ee.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ee.PropertyName.chart],t):e[Ee.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(zO,"addSmartChartFlex");function Ml(e,t,n,i){var o,a;try{let s=Zt(t),c=s.content.property;if((o=s.controlId)!=null&&o.includes(Ee.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ee.PageTypeV2.AnalyticalListPage))switch(s.controlId=Dd(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{QO(e,c,s,n);break}case Ee.ControlType.DynamicPage:{n.properties[c]&&(e[s.content.property]=s.content.newValue);break}case Ee.ControlType.Button:{let l=JO(s);l&&qO(e,c,s,n,l);break}case Ee.ControlType.SmartChart:{zO(e,c,s,n);break}default:break}}catch(s){_(i,{severity:Ee.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}r(Ml,"addFlex");function YO(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 o in i.tableSettings)i[o]=i.tableSettings[o];delete i.tableSettings}}}r(YO,"adjustQuickVariantSelectionX");function ft(e,t,n,i,o,a){if(!n)return;let s={},c=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let l in n.properties){let p=pt(e,l);if(p!=null&&p.manifest){let f=p.manifest.path([i],t,a);s=gt(t,f),ha(p,s,l,e),Tc(c,s,f,o)}YO(l,e)}}r(ft,"transferSettingsOfObject");function Ul(e,t){var o,a,s,c,l,p,f,u,m;let n=e[Ee.ManifestSection.generic].pages[t],i=Ee.v2.TableTypeV2.ResponsiveTable;return(o=e[Ee.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ee.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(c=e[Ee.ManifestSection.generic].pages[t].component.settings)!=null&&c.tableType)?i=((f=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.tableSettings)==null?void 0:f.type)||((u=n.component)==null?void 0:u.settings.tableType):((m=n.component)==null?void 0:m.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ee.v2.TableTypeV2.AnalyticalTable),i}r(Ul,"determineTableType");function Fv(e,t,n,i,o,a,s){var c,l;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(p.substr(1,p.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let m={...(c=e._attributes)!=null&&c.id?{id:(l=e._attributes)==null?void 0:l.id}:{},...u?{text:u}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(m.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(m)}}r(Fv,"evaluateFragmentColumn");function ZO(e,t,n,i){let o;if(e===Ee.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,c,l]=a.split("|");s===Ee.ViewTemplateType.ResponsiveTableCellsExtension&&c===n&&l===i&&(o=t[a].fragmentName)}return o}r(ZO,"determineCellsFragmentName");function eF(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,Vv.xml2json)(e[0].fileContent,{compact:!0}))[qn];try{let f=xr(p);if(f)if((c=t[Ee.PropertyName.table])!=null&&c.columns||(t[Ee.PropertyName.table].columns={}),Array.isArray(f))for(let u of f)Fv(u,n,i,o,t,a,s);else Fv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(eF,"analyzeFilteredFragments");function tF(e,t,n,i,o){var a;for(let s of Object.keys(e)){let c=s.split("|"),[l,p]=c,f=c[2];if(l&&p===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let h=ZO(l,e,p,f),T=m.split(".");m=T[T.length-1]+Ee.FRAGMENTNAMEPART+u;let F=i.fragments.filter(L=>L.dataSourceUri.endsWith(m));try{eF(F,n,e,s,f,l,h)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{$l(i,n,L.id,L,o)})}}}r(tF,"processViewExtensions");function $a(e,t,n,i,o,a="LineItems"){var s,c,l;if(t.fragments&&(l=(c=(s=t.manifest[Ee.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:c.extensions)!=null&&l["sap.ui.viewExtensions"]){let p=Ee.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[Ee.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!f)return;let u=o&&o.target?o.target:n.entitySet;tF(f,u,e,t,a)}}r($a,"addFragments");function kl(e,t,n){if(e.header={actions:{}},n[Ee.DefinitionName.HeaderActionsStandard]){let i=n[Ee.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ee.PageTypeV2.ListReport,o,{})}}r(kl,"importHeaderActions");var Zn=w(B());var zr="sap.suite.ui.generic.template.ListReport";var Lv="sap.suite.ui.generic.template.ListReport.view.ListReport";var Ue=w(B());function Uo(e,t,n){var o;let i;for(let a in e){let s=e[a];if(pi((o=s.component)==null?void 0:o.name)===Ue.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Uo(s.pages,t,n),i))return n.unshift(a),i}}r(Uo,"findObjectPageV2");function Ma(e,t){var n;for(let i in e){let o=e[i];if(pi((n=o.component)==null?void 0:n.name)===Ue.PageTypeV2.ListReport)return t.push(i),o}}r(Ma,"findListReportPageV2");function Ua(e){if(!e.manifest[Ue.ManifestSection.generic]){_(e.logger,{severity:Ue.LogSeverity.Error,message:R.t("NOFE"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}let t=e.manifest[Ue.ManifestSection.generic].pages;if(!t){_(e.logger,{severity:Ue.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}return t}r(Ua,"getV2Pages");function ka(e,t,n){var i;if(!e){_(t,{severity:Ue.LogSeverity.Error,message:R.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;_(t,{severity:Ue.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:o}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}}r(ka,"checkV2Page");function _a(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),pi((i=a.component)==null?void 0:i.name)===Ue.PageTypeV2.AnalyticalListPage)return a}_(n,{severity:Ue.LogSeverity.Error,message:R.t("NOALP"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}r(_a,"findAnalyticalListPage");function Rd(e,t){let n=e.split("|");return Ue.v2.SectionPosition[n[0]]&&n[1]===t}r(Rd,"isAssociatedCustomSection");function Nv(e,t){let n=gt(e,`sap.ui5/extends/extensions/${Ue.v2.SAPUI5_VIEW_EXTENSION}/${Ue.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)Rd(o,t)&&(i[o]=n[o]);return i}r(Nv,"findCustomSectionExtensions");function nF(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}}r(nF,"removeEmptySettingsOfFooter");function iF(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(iF,"removeEmptySettingsOfFilterBar");function oF(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}}r(oF,"removeEmptySettingsOfToolBar");function _l(e){oF(e),iF(e),nF(e)}r(_l,"removeEmptySettings");var He=w(B());var Rv=w(B());var jd={};ta(jd,{ACTION_GROUPS_ARENT_SUPPORTED:()=>GF,ANNOERR:()=>PF,ANNOTATIONFILE:()=>AF,COMPONENTNOTDEFINED:()=>CF,CONTEXTPATHCOULDNOTBERESOLVED:()=>bF,ENTITYSETNOTFOUND:()=>hF,FLEXERROR:()=>RF,INCONSISTENTSCHEMA:()=>_F,INVALIDANCHOR:()=>jF,INVALIDTARGETDEFINITION:()=>$F,NOALP:()=>SF,NOBASEPATH:()=>sF,NOCHARTS:()=>OF,NODATEFIELD:()=>HF,NOENTITYSET:()=>uF,NOENTITYTYPE4SET:()=>dF,NOFE:()=>lF,NOFRAGMENT:()=>wF,NOGENERICSCHEMA:()=>pF,NOID4SECTION:()=>MF,NOLINEITEMANDCHARTS:()=>FF,NOLINEITEMS:()=>IF,NOLR:()=>TF,NOPAGEFORENTITYSET:()=>fF,NOPAGES:()=>cF,NOPRESENTATIONVARIANT:()=>gF,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>mF,NOPRESENTATIONVARIANTFORSPV:()=>yF,NOROUTING:()=>EF,NOROUTINGID:()=>DF,NOTARGET:()=>NF,NOTARGETS:()=>LF,NOTEMPLATE:()=>vF,NOUIANNOTATIONS:()=>xF,NOVISUALIZATIONS:()=>VF,TYPEERROR:()=>kF,UNEXISTING_ANNOTATION_PATH:()=>BF,UNKNOWNMINUI5VERSION:()=>rF,WRONGMINUI5VERSION:()=>aF,XMLPARSEFAILURE:()=>UF,default:()=>WF});var aF="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",rF="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",sF="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",cF="No pages found in manifest for app with id '{{- appId}}'",lF="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",pF="No generic schema found while generating page schema for {{- pageType}}",fF="No page found in manifest for entitySet '{{- entitySet}}'",uF="No entitySet defined for page '{{- pageName}}'",dF="No entityType could be found for the given entity set '{{- entitySetName}}'",gF="No PresentationVariant defined for '{{- key}}'",mF="No PresentationVariant found for default SelectionPresentationVariant",yF="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",hF="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",bF="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",TF="No page found in manifest for list report",SF="No page found in manifest for analytical list page",vF="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",PF="Error while parsing annotation files",AF="Annotation file: '{{- file}}'",CF="Component name is not defined for page '{{- pageName}}'",EF="Incomplete manifest definition: no routing defined",xF="No UI Annotation defined for entity type '{{- entityType }}'",IF="UI.LineItem annotation has not been defined",OF="UI.Chart annotation has not been defined",FF="Neither UI.LineItem nor UI.Chart annotation has been defined",VF="Empty Collection for Visualizations",LF="Incomplete manifest definition: no targets defined",NF="Invalid reference: annotation target '{{- target}}' not found",DF="No page found in manifest for routingId '{{- routingId}}'",RF="Error while parsing flex change",jF="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",wF="fragmentName is undefined for columnKey '{{- columnKey}}'",$F="Invalid routing target definition in manifest: '{{- target}}'",MF="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",UF="Parsing of XML file failed with error - {{- error}}",kF="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",_F="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",BF="The annotation path doesn't exist.",HF="Date setting will not be used since filter bar does not contain any date fields.",GF="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",WF={WRONGMINUI5VERSION:aF,UNKNOWNMINUI5VERSION:rF,NOBASEPATH:sF,NOPAGES:cF,NOFE:lF,NOGENERICSCHEMA:pF,NOPAGEFORENTITYSET:fF,NOENTITYSET:uF,NOENTITYTYPE4SET:dF,NOPRESENTATIONVARIANT:gF,NOPRESENTATIONVARIANTFORDEFAULTSPV:mF,NOPRESENTATIONVARIANTFORSPV:yF,ENTITYSETNOTFOUND:hF,CONTEXTPATHCOULDNOTBERESOLVED:bF,NOLR:TF,NOALP:SF,NOTEMPLATE:vF,ANNOERR:PF,ANNOTATIONFILE:AF,COMPONENTNOTDEFINED:CF,NOROUTING:EF,NOUIANNOTATIONS:xF,NOLINEITEMS:IF,NOCHARTS:OF,NOLINEITEMANDCHARTS:FF,NOVISUALIZATIONS:VF,NOTARGETS:LF,NOTARGET:NF,NOROUTINGID:DF,FLEXERROR:RF,INVALIDANCHOR:jF,NOFRAGMENT:wF,INVALIDTARGETDEFINITION:$F,NOID4SECTION:MF,XMLPARSEFAILURE:UF,TYPEERROR:kF,INCONSISTENTSCHEMA:_F,UNEXISTING_ANNOTATION_PATH:BF,NODATEFIELD:HF,ACTION_GROUPS_ARENT_SUPPORTED:GF};function Dv(e){e.addResourceBundle(e.language,"translation",jd)}r(Dv,"initI18n");function qe(e="en"){R.init({resources:{en:{translation:Rv.default}},lng:e,fallbackLng:"en",joinArrays:`
86
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Jc=require("path");var qn="core:FragmentDefinition",Xc="sap.ui.table",bu=new Map([[Le.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Le.ViewTemplateType.TreeTableColumnsExtension,{namespace:Xc,name:"Column"}],[Le.ViewTemplateType.GridTableColumnsExtension,{namespace:Xc,name:"Column"}],[Le.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Xc,name:"AnalyticalColumn"}]]),gO=new Map([[Le.v2.FE_TEMPLATE_V2_LIST_REPORT,Le.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Le.v2.FE_TEMPLATE_V2_ALP,Le.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Le.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Le.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),yv={type:"element",name:"Text",attributes:{text:"Placeholder"}},mO=JSON.stringify(yv);function yO(e,t){var i;let n=t?(i=e==null?void 0:e[qn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(yO,"getFragmentNamespaces");function mv(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(mv,"getTagName");function qc(e,t,n=e){let i=yO(n,!!(t||n!==e));if(t){let o=bu.get(t);return mv(o,i.get(o.namespace))}else{let o=bu.keys();for(let a of o){let s=bu.get(a),c=i?mv(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(qc,"getTagNameFromFragmentJSON");function xr(e,t=e){let n=qc(e,void 0,t);return e[n]}r(xr,"getRootCustomColumnFromFragmentJSON");function hO(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(hO,"addP13nData");function hv(e,t){var c,l,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,o=hO(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((c=t[s])!=null&&c.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(l=t[s])==null?void 0:l.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)}r(hv,"handleFragmentColumn");function bO(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),c=s[s.length-1]+Le.FRAGMENTNAMEPART+a;for(let l of t){let p=l.dataSourceUri.split(Jc.sep);if(p[p.length-1]===c){let f=JSON.parse((0,Ln.xml2json)(l.fileContent,{compact:!0}));try{let u=qc(f[qn]);u&&(delete f[qn][u],l.fileContent=(0,Ln.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(bO,"deleteColumnsFromFragment");function bv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===mO&&(e.splice(n,1),t-=1,t===0));n++);}r(bv,"deleteNumberOfCells");function TO(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Le.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let c=JSON.parse((0,Ln.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&bv(c.elements[0].elements,l.length),s.fileContent=(0,Ln.json2xml)(JSON.stringify(c),{spaces:4});break}}r(TO,"deleteCellsFromFragment");function zc(e,t,n,i){if(i){bO(e,i,t,n);let o=t.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&TO(a,i,n)}}r(zc,"deleteColumnFromFragment");function SO(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(yv)}r(SO,"addNewColumnsInFragment");function vO(e,t){let n=JSON.parse((0,Ln.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)SO(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;bv(a,o)}e.fileContent=(0,Ln.json2xml)(JSON.stringify(n),{spaces:4})}}r(vO,"updateNonEmptyCellsFragment");function PO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Jc.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Le.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=hu(n):vO(o,n);break}}return i}r(PO,"updateCellsFragment");function AO(e,t,n,i,o){var f;let a,s,c=t.manifest,l=gt(c,e),p=l.type?l.type.toLowerCase():"xml";l.type=p.toUpperCase();for(let u of n){if(!u.fragmentName){_(o,{severity:Le.LogSeverity.Error,message:R.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Le.ChangeIndicator.Updated,l.fragmentName=u.fragmentName,l.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,Jc.sep))+Le.FRAGMENTNAMEPART+p}if(e.indexOf(Le.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Le.ChangeIndicator.Updated;let u=e.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),m=gt(c,u),h=n.reduce((T,E)=>E.cellsFragmentName?E:T);h&&h.cellsFragmentName?(m.fragmentName=s=h.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):WS(c,u)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(AO,"exportCustomColumnsToManifest");function CO(e,t,n,i,o){let a=mu(e,t);if(a){let s=JSON.parse((0,Ln.xml2json)(a,{compact:!0})),c=xr(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(c))||n.push(c);else if(n){let l=[n];l.splice(o,0,c),n=l}else n=[c]}return n}r(CO,"insertNewColumnInFragment");function EO(e,t){let n=[];for(let i=0;i<e.length;i++)hv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(EO,"processCustomColumnInArray");function xO(e,t,n){if(e){if(Array.isArray(e))EO(e,t);else if(!hv(e,t)){let o=qc(n[qn]);o&&(delete n[qn][o],e=void 0)}}return e}r(xO,"maintainExistingColumnInFragment");function IO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=CO(a,i,n,o,s)}return n}r(IO,"insertNewColumnsInFragment");function OO(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let c={};if(a=!0,s.changeIndicator=Le.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=yu(i,o);else{let l=JSON.parse((0,Ln.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=xr(l[qn]),c=xO(c,i,l),c=IO(i,n,c,o,l);let f=qc(l,o);l[qn][f]=c;let u=JSON.stringify(l);u!==p&&(s.fileContent=(0,Ln.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(OO,"updateColumnsInFragment");function Tu(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:f}=AO(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=c.fragmentName,h=m.substr(i.length+1),T=h.split(".");m=T[T.length-1]+Le.FRAGMENTNAMEPART+f;let L=p==null?void 0:p.split("."),Y=L?L[L.length-1]:null,ne=Y?Y+Le.FRAGMENTNAMEPART+f:null,q=OO(s,m,h,u,o),ue=!1;if(p?ue=PO(s,ne,n):ue=!0,!q){let ie={fileContent:yu(u,o),dataSourceUri:l,changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}if(!ue){let ie={fileContent:hu(n),dataSourceUri:l.replace(m,ne),changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}}r(Tu,"exportCustomColumnsToFragment");var Yc=r((e,t,n,i)=>{var l,p,f,u;if(!e)return;let o=gO.get((l=e.component)==null?void 0:l.name);if(!i){let m=(u=(f=(p=e.component)==null?void 0:p.settings)==null?void 0:f.tableSettings)==null?void 0:u.type;m||(m="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(m="AnalyticalTable"),i=m+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var it=w(B());var xo=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+it.PropertyName.table:Qe(e,t),"getSmartTableControlId");function il(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let o in t)n.fields.push(o);return n}r(il,"importCreateParameters");function ol(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let o={};e[n]||(e[n]={}),i.forEach(a=>o[a]=e[n][a]||{path:a}),e[n]=o}r(ol,"exportCreateParametersFields");function FO(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],c=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let l in s)c.indexOf(l)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[l]=s[l],delete s[l]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(FO,"exportVariants");function VO(e,t){t.variants&&(Object.keys(t.variants).length>0?FO(e,t):delete e.variants)}r(VO,"exportQuickVariantSelectionX");var Zc=class Zc{};r(Zc,"CreateWithFilters"),d([g({manifest:{path:r(t=>pe(t)+"/createWithFilters","path")}})],Zc.prototype,"strategy",2);var Su=Zc;function Fr(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}r(Fr,"importType");function ja(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(ja,"exportType");function wa(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(wa,"deleteType");var el=class el{};r(el,"DataLoadSettings"),d([g({manifest:{path:r(t=>KS(t),"path")}}),S({since:"1.75.2"})],el.prototype,"loadDataOnAppLaunch",2);var vu=el,tl=class tl{};r(tl,"Fields4Dialog"),d([g({manifest:{path:r(t=>vo(t)+"/createWithParameterDialog","path"),export:ol}}),S({since:"1.77.0"})],tl.prototype,"fields",2);var Pu=tl,Ir=class Ir{};r(Ir,"QuickVariantSelection"),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Ir.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Ir.prototype,"variants",2);var Au=Ir,Na=class Na{};r(Na,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Na.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Na.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>pe(t)+it.QUICKVARPATHX,"path"),export:VO}}),S({since:"1.48.0"})],Na.prototype,"variants",2);var Cu=Na,Ot=class Ot{constructor(){this.getDeprecated=r(()=>({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")}};r(Ot,"CommonTableSettings"),d([g({manifest:{key:"createWithParameterDialog",path:r(t=>vo(t),"path"),import:il}}),S({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Qe,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.38.0"})],Ot.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.38.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.75.2"})],Ot.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.42.0"})],Ot.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.56.0"}),ce("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ot.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var Bi=Ot,zn=class zn extends Bi{};r(zn,"ResponsiveTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],zn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],zn.prototype,"createWithFilters",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U},generate:Qn}),S({since:"1.52.0"})],zn.prototype,"popinLayout",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}})],zn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>vo(t),"path")}}),S({since:"1.77.0"})],zn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],zn.prototype,"showDraftToggle",2),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],zn.prototype,"growingThreshold",2);var Io=zn,Or=class Or extends Bi{};r(Or,"TreeTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Or.prototype,"type",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Or.prototype,"showDraftToggle",2);var Eu=Or,dn=class dn extends Bi{};r(dn,"AnalyticalTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],dn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],dn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],dn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.78.0"})],dn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],dn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],dn.prototype,"showDraftToggle",2);var xu=dn,Yn=class Yn extends Bi{};r(Yn,"TableALP"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Yn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.60.0"})],Yn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],Yn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.78.0"})],Yn.prototype,"allFiltersAsInParameters",2);var Ra=Yn,nl=class nl extends Ra{};r(nl,"ALPResponsiveTable"),d([g({flex:{controlId:xo,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],nl.prototype,"growingThreshold",2);var Iu=nl,Lu=class Lu extends Ra{};r(Lu,"ALPGridTable");var Ou=Lu,Nu=class Nu extends Ra{};r(Nu,"ALPAnalyticalTable");var Fu=Nu,Da=class Da extends Bi{};r(Da,"GridTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:Fr,export:ja,delete:wa}}),S({since:"1.50.0"})],Da.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),S({since:"1.54.0"})],Da.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Da.prototype,"showDraftToggle",2);var Vu=Da;var Vr=w(B());var LO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}`},"getActionButtonId"),NO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}template::${i}`},"getStandardActionButtonId"),DO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}${Ec}${i}`},"getStandardFooterActionOPButtonId"),Hu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Wt(n);return`${e}action::${i}::${Ht(o)}`},"buildIntentBasedActionId"),RO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Hi={controlId:LO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Lr={controlId:NO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Tv={controlId:DO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},al={controlId:RO,controlType:r(()=>Vr.ControlType.Button,"controlType"),createFlexChange:U},Oo=class Oo{};r(Oo,"Action"),d([g({flex:Hi})],Oo.prototype,"tooltip",2),d([g({flex:Hi})],Oo.prototype,"icon",2),d([g({flex:Hi})],Oo.prototype,"activeIcon",2),d([g({flex:Hi})],Oo.prototype,"type",2);var Du=Oo,Fo=class Fo{};r(Fo,"ToolBarAction"),d([g({flex:Hi})],Fo.prototype,"tooltip",2),d([g({flex:Hi})],Fo.prototype,"icon",2),d([g({flex:Hi})],Fo.prototype,"activeIcon",2),d([g({flex:Hi})],Fo.prototype,"type",2);var Ru=Fo,Vo=class Vo{};r(Vo,"FooterAction"),d([g({flex:al})],Vo.prototype,"tooltip",2),d([g({flex:al})],Vo.prototype,"icon",2),d([g({flex:al})],Vo.prototype,"activeIcon",2),d([g({flex:al})],Vo.prototype,"type",2);var ju=Vo,rl=class rl{};r(rl,"Share"),d([g({flex:Lr})],rl.prototype,"visible",2);var wu=rl,sl=class sl{};r(sl,"ShareOP"),d([g({flex:Lr})],sl.prototype,"visible",2);var $u=sl,cl=class cl{};r(cl,"UpAndDownNavigationOP"),d([g({flex:Lr})],cl.prototype,"visible",2);var Mu=cl,ll=class ll{};r(ll,"SaveAndEditOP"),d([g({flex:Tv,generate:Oe})],ll.prototype,"visible",2);var Uu=ll,pl=class pl{};r(pl,"HeaderActionStandard"),d([g({flex:Lr})],pl.prototype,"visible",2);var ku=pl,fl=class fl{};r(fl,"ObjectPageHeaderActionStandard"),d([g({flex:Lr})],fl.prototype,"visible",2);var _u=fl,ul=class ul{};r(ul,"ObjectPageFooterActionStandard"),d([g({flex:Tv})],ul.prototype,"visible",2);var Bu=ul;var Rr=w(B());var jO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Wt(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),wO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Wt(n),c=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${c}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),$O=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Gu={controlId:jO,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U},Nr={controlId:$O,controlType:r(()=>Rr.ControlType.Button,"controlType"),createFlexChange:U},Sv={...Gu,controlId:wO},dl={...Nr,controlId:Hu},Dr=class Dr{};r(Dr,"TableColumn"),d([g({flex:{controlId:Rf,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U}})],Dr.prototype,"width",2),d([g({flex:{controlId:Rf,controlType:r(()=>Rr.ControlType.TableColumn,"controlType"),createFlexChange:U},generate:Qn})],Dr.prototype,"hAlign",2);var Wu=Dr,hi=class hi{};r(hi,"TableColumnAction"),d([g({flex:Gu})],hi.prototype,"width",2),d([g({flex:Gu,generate:Qn})],hi.prototype,"hAlign",2),d([g({flex:Nr})],hi.prototype,"tooltip",2),d([g({flex:Nr})],hi.prototype,"icon",2),d([g({flex:Nr})],hi.prototype,"activeIcon",2),d([g({flex:Nr})],hi.prototype,"type",2);var Qu=hi,bi=class bi{};r(bi,"TableColumnActionIntentBased"),d([g({flex:Sv})],bi.prototype,"width",2),d([g({flex:Sv,generate:Qn})],bi.prototype,"hAlign",2),d([g({flex:dl})],bi.prototype,"tooltip",2),d([g({flex:dl})],bi.prototype,"icon",2),d([g({flex:dl})],bi.prototype,"activeIcon",2),d([g({flex:dl})],bi.prototype,"type",2);var Ku=bi,Ju=class Ju{};r(Ju,"TableCustomColumn");var Xu=Ju;var zu=class zu{};r(zu,"ToolBar");var qu=zu;var Lo=w(B());var jr=r(e=>e+Lo.PropertyName.chart,"getSmartChartControlId"),Gi=class Gi{};r(Gi,"ChartSettings"),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showLegendButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showDownloadButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),createFlexChange:U}})],Gi.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:jr,controlType:r(()=>Lo.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:U}})],Gi.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>QS(t),"path")}}),S({since:"1.81.0"})],Gi.prototype,"showDataLabel",2);var Yu=Gi;var Ti=class Ti{};r(Ti,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>Po(t,i),"path")}})],Ti.prototype,"groupId",2);var Zu=Ti;var vv=w(B());var MO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Qe(e,n)},"getAvatarControlId"),Wi=class Wi{};r(Wi,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],Wi.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],Wi.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],Wi.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"}),ce("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Wi.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:MO,controlType:r(()=>vv.ControlType.Avatar,"controlType"),createFlexChange:U},generate:Oe})],Wi.prototype,"displayShape",2);var ed=Wi;var gl=w(B());var UO=r((e,t,n,i)=>{if(i()===gl.ControlType.Button||i()===gl.ControlType.HeaderAction){let o=n[2];return`${e}action::${Ht(o)}`}return Qe(e,t)},"getActionButtonId"),wr={controlId:UO,controlType:r(()=>gl.ControlType.HeaderAction,"controlType"),createFlexChange:U},Qi=class Qi{};r(Qi,"HeaderAction"),d([g({flex:wr,generate:Oe})],Qi.prototype,"visible",2),d([g({flex:wr})],Qi.prototype,"tooltip",2),d([g({flex:wr})],Qi.prototype,"icon",2),d([g({flex:wr})],Qi.prototype,"activeIcon",2),d([g({flex:wr})],Qi.prototype,"type",2);var td=Qi;var $r=w(B());var Sl="header::headerEditable::",kO=r((e,t,n,i,o)=>`${e}${Sl}${o}`,"getDataPointHeaderSectionId"),_O=r((e,t,n,i,o)=>`${e}${Sl}${o}::ContactAddress`,"getAddressHeaderSectionId"),BO=r((e,t,n,i,o)=>`${e}${Sl}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),HO=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes($r.FACETTITLEPREFIX)?o.split($r.FACETTITLEPREFIX)[1]:a;return`${e}${Sl}${s}::Form`},"getFormHeaderSectionId"),Mr={controlType:r(()=>$r.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:U},ml=class ml{};r(ml,"CommonHeaderFacetSettings"),d([g({flex:{...Mr,controlId:r((()=>crypto.randomUUID()),"controlId")},generate:Oe})],ml.prototype,"visible",2);var No=ml,yl=class yl extends No{};r(yl,"ObjectPageHeaderSectionForm"),d([g({flex:{...Mr,controlId:HO}})],yl.prototype,"visible",2);var nd=yl,hl=class hl extends No{};r(hl,"ObjectPageHeaderSectionChart"),d([g({flex:{...Mr,controlId:BO}})],hl.prototype,"visible",2);var id=hl,bl=class bl extends No{};r(bl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...Mr,controlId:kO}})],bl.prototype,"visible",2);var od=bl,Tl=class Tl extends No{};r(Tl,"ObjectPageHeaderSectionAddress"),d([g({flex:{...Mr,controlId:_O}})],Tl.prototype,"visible",2);var ad=Tl,sd=class sd{};r(sd,"HeaderSections");var rd=sd;var ld=w(B());var GO=r((e,t,n,i)=>{if(i()===ld.ControlType.Button){let{actionId:o}=Wt(n);return`${e}action::${Ht(o)}::Determining`}return Qe(e,t)},"getFooterActionButtonId"),Ur={controlId:GO,controlType:r(()=>ld.ControlType.Button,"controlType"),createFlexChange:U},Ki=class Ki{};r(Ki,"ObjectPageFooterAction"),d([g({flex:Ur,generate:Oe})],Ki.prototype,"visible",2),d([g({flex:Ur})],Ki.prototype,"tooltip",2),d([g({flex:Ur})],Ki.prototype,"icon",2),d([g({flex:Ur})],Ki.prototype,"activeIcon",2),d([g({flex:Ur})],Ki.prototype,"type",2);var cd=Ki;var kr=w(B());var vl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Qe(e,n)},"getControlId"),Do=class Do{};r(Do,"ObjectPageLayout"),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U},generate:Oe})],Do.prototype,"showHeaderContent",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}})],Do.prototype,"showAnchorBar",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}})],Do.prototype,"useIconTabBar",2),d([g({flex:{controlId:vl,controlType:r(()=>kr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:U}}),S({since:"1.34.0"})],Do.prototype,"alwaysShowContentHeader",2);var pd=Do;var Pv=w(B());var Ro=class Ro{};r(Ro,"BaseCustomSection"),d([g({manifest:{path:yi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),S({since:"1.52.0"})],Ro.prototype,"relatedFacet",2),d([g({manifest:{path:yi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),S({since:"1.52.0"})],Ro.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>yi(t,{},i,Pv.ManifestSection.generic),"path")}}),S({since:"1.52.0"})],Ro.prototype,"title",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Ro.prototype,"className",2);var Hr=Ro,_r=class _r extends Hr{};r(_r,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],_r.prototype,"fragmentName",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],_r.prototype,"type",2);var Gr=_r,Br=class Br extends Hr{};r(Br,"ObjectPageCustomSectionView"),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Br.prototype,"viewName",2),d([g({manifest:{path:yi}}),S({since:"1.52.0"})],Br.prototype,"type",2);var Wr=Br;var Xt=w(B());var Av=r((e,t,n,i,o)=>{let s=[yt(n[1],o),Xt.DefinitionName.Table];return Qe(e,s)},"getTableSectionControlId"),Cv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"FormGroup"];return Qe(e,s)},"getFormSectionControlId"),Ev=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Chart"];return Qe(e,s)},"getChartSectionControlId"),jo=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Section"];return Qe(e,s)},"getSectionControlId"),xv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"SubSection"];return Qe(e,s)},"getSubSectionControlId"),Iv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"ContactsList"];return Qe(e,s)},"getContactSubSectionControlId"),Pl=class Pl{};r(Pl,"ObjectPageSectionV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Pl.prototype,"visible",2);var fd=Pl,Al=class Al{};r(Al,"ObjectPageSectionFormV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Al.prototype,"visible",2);var ud=Al,Cl=class Cl{};r(Cl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Cl.prototype,"visible",2);var dd=Cl,El=class El{};r(El,"ObjectPageSectionTableV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],El.prototype,"visible",2);var gd=El,xl=class xl{};r(xl,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],xl.prototype,"visible",2);var md=xl,Il=class Il{};r(Il,"ObjectPageSectionContactV2"),d([g({flex:{controlId:jo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:U},generate:Oe})],Il.prototype,"visible",2);var yd=Il,Ol=class Ol{};r(Ol,"ObjectPageSubSectionV2"),d([g({flex:{controlId:xv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:U},generate:Oe})],Ol.prototype,"visible",2);var hd=Ol,Fl=class Fl{};r(Fl,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:Cv,controlType:r(()=>Xt.ControlType.Group,"controlType"),createFlexChange:U},generate:Oe})],Fl.prototype,"visible",2);var bd=Fl,Vl=class Vl{};r(Vl,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:Ev,controlType:r(()=>Xt.ControlType.SmartChart,"controlType"),createFlexChange:U},generate:Oe})],Vl.prototype,"visible",2);var Td=Vl,Ll=class Ll{};r(Ll,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:Iv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:U},generate:Oe})],Ll.prototype,"visible",2);var Sd=Ll,Nl=class Nl{};r(Nl,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:Av,controlType:r(()=>Xt.ControlType.SmartTable,"controlType"),createFlexChange:U},generate:Oe})],Nl.prototype,"visible",2);var vd=Nl;var Dl=class Dl{};r(Dl,"ObjectPageChart"),d([g({manifest:{path:XS}}),S({since:"1.78.0"})],Dl.prototype,"variantManagement",2);var Pd=Dl,Rl=class Rl{};r(Rl,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Rt(t)+"/chartSettings","path")}}),S({since:"1.78.0"})],Rl.prototype,"variantManagement",2);var Ad=Rl;var nn=w(B());var wo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=nn.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=yt(a[0],o),Qe(e,a)},"getSmartTableControlId"),Qr=class Qr{};r(Qr,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>Fn(t,n,i)+nn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Qr.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>Fn(t,n,i)+nn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],Qr.prototype,"variants",2);var Cd=Qr,jl=class jl{};r(jl,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>pn(t,n,i)+"/createWithParameterDialog","path"),export:ol}}),S({since:"1.77.0"})],jl.prototype,"fields",2);var Ed=jl,Ft=class Ft{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(Ft,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:pn,import:il}}),S({since:"1.77.0"})],Ft.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.28.0"})],Ft.prototype,"editable",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.95.0"}),ce("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ft.prototype,"showPasteButton",2),d([g({manifest:{path:pn}}),S({since:"1.54.0"})],Ft.prototype,"multiSelect",2),d([g({manifest:{path:pn}}),S({since:"1.70.0"})],Ft.prototype,"selectAll",2),d([g({manifest:{path:pn}}),S({since:"1.70.0"})],Ft.prototype,"selectionLimit",2),d([g({manifest:{path:Fn}}),S({since:"1.63.0"})],Ft.prototype,"quickVariantSelection",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.26.0"})],Ft.prototype,"useExportToExcel",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.SmartTable,"controlType"),createFlexChange:U}}),S({since:"1.50.0"})],Ft.prototype,"exportType",2),d([g({manifest:{path:Fn}}),S({since:"1.48.5"}),ce("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ft.prototype,"createMode",2),d([g({manifest:{path:Fn}}),S({since:"1.61.0"})],Ft.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:pn}}),S({since:"1.78.0"})],Ft.prototype,"variantManagement",2),d([_e("toolBar")],Ft.prototype,"toolBar",2);var $o=Ft,Xi=class Xi extends $o{};r(Xi,"ObjectPageResponsiveTable"),d([g({manifest:{path:pn}})],Xi.prototype,"type",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U}})],Xi.prototype,"includeItemInSelection",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U},generate:Oe}),S({since:"1.52.0"})],Xi.prototype,"popinLayout",2),d([g({manifest:{path:pn}}),S({since:"1.77.0"})],Xi.prototype,"inlineDelete",2),d([g({flex:{controlId:wo,controlType:r(()=>nn.ControlType.Table,"controlType"),createFlexChange:U}}),S({since:"1.16.0"})],Xi.prototype,"growingThreshold",2);var Mo=Xi,Kr=class Kr extends $o{};r(Kr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:pn}})],Kr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Kr.prototype,"condensedTableLayout",2);var xd=Kr,Xr=class Xr extends $o{};r(Xr,"ObjectPageGridTable"),d([g({manifest:{path:pn}})],Xr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Xr.prototype,"condensedTableLayout",2);var Id=Xr,Jr=class Jr extends $o{};r(Jr,"ObjectPageTreeTable"),d([g({manifest:{path:pn}})],Jr.prototype,"type",2),d([g({manifest:{path:Fn}}),S({since:"1.67.0"})],Jr.prototype,"condensedTableLayout",2);var Od=Jr,Si=class Si{};r(Si,"GlobalTableSettings"),d([g({manifest:{path:Ao}}),S({since:"1.70.0"})],Si.prototype,"selectAll",2),d([g({manifest:{path:Ao}}),S({since:"1.78.0"})],Si.prototype,"variantManagement",2),d([g({manifest:{path:Ao}})],Si.prototype,"type",2),d([g({manifest:{path:Ao}}),S({since:"1.54.0"})],Si.prototype,"multiSelect",2),d([g({manifest:{path:Ao}}),S({since:"1.67.0"})],Si.prototype,"condensedTableLayout",2),d([g({manifest:{path:Ao}}),S({since:"1.77.0"})],Si.prototype,"inlineDelete",2);var Fd=Si;var Ov=w(B());var WO=r((e,t,n,i,o)=>{let{actionId:a}=Wt(n),s=yt(n[1],o);return`${e}${s}::action::${Ht(a).replace(":2f","::")}`},"getActionButtonId"),qr={controlId:WO,controlType:r(()=>Ov.ControlType.Button,"controlType"),createFlexChange:U},Ji=class Ji{};r(Ji,"ObjectPageToolBarAction"),d([g({flex:qr,generate:Oe})],Ji.prototype,"visible",2),d([g({flex:qr})],Ji.prototype,"tooltip",2),d([g({flex:qr})],Ji.prototype,"icon",2),d([g({flex:qr})],Ji.prototype,"activeIcon",2),d([g({flex:qr})],Ji.prototype,"type",2);var Vd=Ji;var jt=w(B());function Nd(e,t,n,i){if(t.controlType===jt.ControlType.TableColumn||t.controlType===jt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===jt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],c=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",jt.VOCWITHCOLONS),l=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(l!=null&&l.startsWith("DataField")?l=l==null?void 0:l.replace("/",":2f"):l=l==null?void 0:l.replace("/","_"),l!==c&&n!==c)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(Nd,"addFlexChangeToConfigTableColumn");function wl(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(jt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(wl,"addFlexChangeToConfigTable");function $l(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,h;let s=Zt(a),c={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(u=s.content)==null?void 0:u.newValue,controlType:s.controlType,creation:s.creation},l;if(s.controlType===jt.ControlType.TableColumn)l=e.jsonSchema.definitions.TableColumn.properties[c.propertyId];else{let T=(!t.table.type||t.table.type===jt.v2.TableTypeV2.ResponsiveTable)&&!((m=c.controlId)!=null&&m.includes(jt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(jt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;l=(h=e.jsonSchema.definitions[`${T}<${o}>`])==null?void 0:h.properties[c.propertyId]}l&&Nd(t.table,c,n,i)})}r($l,"importFlexChangesOfColumn");function qi(e){return e.replace("/","::")}r(qi,"convertActionKey");function Dd(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(Dd,"convertSelector");function QO(e,t,n,i){var a,s,c,l;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((l=(c=i.definitions)==null?void 0:c.AnalyticalListPageFilterBar)==null?void 0:l.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(QO,"addSmartFilterBarFlex");function KO(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var c;let a=Ht((c=o.split("<")[1])==null?void 0:c.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let l=a.split(":::"),p=l.find(m=>m.startsWith("sSemanticObject")),f=l.find(m=>m.startsWith("sAction")),u=f.split("sAction::")[1].replace(":2f","::");if(p){let m=`${p.split("::")[1]}::${u}`,h=`${l[0]}:::${p}:::${f}`;i.set(m,o),i.set(o,h)}else i.set(u,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(KO,"filterActions");function XO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(XO,"addColumnActionConfigPart");function JO(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]}r(JO,"getActionId");function qO(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var l,p;let c=KO(s.name,i);if(c.has(s.id)){let f=c.get(s.id),u=(l=f.split("<")[1])==null?void 0:l.split(">")[0];s.name==="TableColumnAction"&&XO(s,e,u);let m=s.configPart[u];((p=i.definitions[f])==null?void 0:p.properties[t])&&m&&(m[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(qO,"addActionFlex");function zO(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=pt(e[Ee.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ee.PropertyName.chart],t):e[Ee.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(zO,"addSmartChartFlex");function Ml(e,t,n,i){var o,a;try{let s=Zt(t),c=s.content.property;if((o=s.controlId)!=null&&o.includes(Ee.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ee.PageTypeV2.AnalyticalListPage))switch(s.controlId=Dd(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{QO(e,c,s,n);break}case Ee.ControlType.DynamicPage:{n.properties[c]&&(e[s.content.property]=s.content.newValue);break}case Ee.ControlType.Button:{let l=JO(s);l&&qO(e,c,s,n,l);break}case Ee.ControlType.SmartChart:{zO(e,c,s,n);break}default:break}}catch(s){_(i,{severity:Ee.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}r(Ml,"addFlex");function YO(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 o in i.tableSettings)i[o]=i.tableSettings[o];delete i.tableSettings}}}r(YO,"adjustQuickVariantSelectionX");function ft(e,t,n,i,o,a){if(!n)return;let s={},c=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let l in n.properties){let p=pt(e,l);if(p!=null&&p.manifest){let f=p.manifest.path([i],t,a);s=gt(t,f),ha(p,s,l,e),Tc(c,s,f,o)}YO(l,e)}}r(ft,"transferSettingsOfObject");function Ul(e,t){var o,a,s,c,l,p,f,u,m;let n=e[Ee.ManifestSection.generic].pages[t],i=Ee.v2.TableTypeV2.ResponsiveTable;return(o=e[Ee.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ee.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(c=e[Ee.ManifestSection.generic].pages[t].component.settings)!=null&&c.tableType)?i=((f=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.tableSettings)==null?void 0:f.type)||((u=n.component)==null?void 0:u.settings.tableType):((m=n.component)==null?void 0:m.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ee.v2.TableTypeV2.AnalyticalTable),i}r(Ul,"determineTableType");function Fv(e,t,n,i,o,a,s){var c,l;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(p.substr(1,p.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let m={...(c=e._attributes)!=null&&c.id?{id:(l=e._attributes)==null?void 0:l.id}:{},...u?{text:u}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(m.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(m)}}r(Fv,"evaluateFragmentColumn");function ZO(e,t,n,i){let o;if(e===Ee.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,c,l]=a.split("|");s===Ee.ViewTemplateType.ResponsiveTableCellsExtension&&c===n&&l===i&&(o=t[a].fragmentName)}return o}r(ZO,"determineCellsFragmentName");function eF(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,Vv.xml2json)(e[0].fileContent,{compact:!0}))[qn];try{let f=xr(p);if(f)if((c=t[Ee.PropertyName.table])!=null&&c.columns||(t[Ee.PropertyName.table].columns={}),Array.isArray(f))for(let u of f)Fv(u,n,i,o,t,a,s);else Fv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(eF,"analyzeFilteredFragments");function tF(e,t,n,i,o){var a;for(let s of Object.keys(e)){let c=s.split("|"),[l,p]=c,f=c[2];if(l&&p===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let h=ZO(l,e,p,f),T=m.split(".");m=T[T.length-1]+Ee.FRAGMENTNAMEPART+u;let E=i.fragments.filter(L=>L.dataSourceUri.endsWith(m));try{eF(E,n,e,s,f,l,h)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{$l(i,n,L.id,L,o)})}}}r(tF,"processViewExtensions");function $a(e,t,n,i,o,a="LineItems"){var s,c,l;if(t.fragments&&(l=(c=(s=t.manifest[Ee.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:c.extensions)!=null&&l["sap.ui.viewExtensions"]){let p=Ee.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[Ee.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!f)return;let u=o&&o.target?o.target:n.entitySet;tF(f,u,e,t,a)}}r($a,"addFragments");function kl(e,t,n){if(e.header={actions:{}},n[Ee.DefinitionName.HeaderActionsStandard]){let i=n[Ee.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ee.PageTypeV2.ListReport,o,{})}}r(kl,"importHeaderActions");var Zn=w(B());var zr="sap.suite.ui.generic.template.ListReport";var Lv="sap.suite.ui.generic.template.ListReport.view.ListReport";var Ue=w(B());function Uo(e,t,n){var o;let i;for(let a in e){let s=e[a];if(pi((o=s.component)==null?void 0:o.name)===Ue.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Uo(s.pages,t,n),i))return n.unshift(a),i}}r(Uo,"findObjectPageV2");function Ma(e,t){var n;for(let i in e){let o=e[i];if(pi((n=o.component)==null?void 0:n.name)===Ue.PageTypeV2.ListReport)return t.push(i),o}}r(Ma,"findListReportPageV2");function Ua(e){if(!e.manifest[Ue.ManifestSection.generic]){_(e.logger,{severity:Ue.LogSeverity.Error,message:R.t("NOFE"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}let t=e.manifest[Ue.ManifestSection.generic].pages;if(!t){_(e.logger,{severity:Ue.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}return t}r(Ua,"getV2Pages");function ka(e,t,n){var i;if(!e){_(t,{severity:Ue.LogSeverity.Error,message:R.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;_(t,{severity:Ue.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:o}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}}r(ka,"checkV2Page");function _a(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),pi((i=a.component)==null?void 0:i.name)===Ue.PageTypeV2.AnalyticalListPage)return a}_(n,{severity:Ue.LogSeverity.Error,message:R.t("NOALP"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}r(_a,"findAnalyticalListPage");function Rd(e,t){let n=e.split("|");return Ue.v2.SectionPosition[n[0]]&&n[1]===t}r(Rd,"isAssociatedCustomSection");function Nv(e,t){let n=gt(e,`sap.ui5/extends/extensions/${Ue.v2.SAPUI5_VIEW_EXTENSION}/${Ue.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)Rd(o,t)&&(i[o]=n[o]);return i}r(Nv,"findCustomSectionExtensions");function nF(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}}r(nF,"removeEmptySettingsOfFooter");function iF(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(iF,"removeEmptySettingsOfFilterBar");function oF(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}}r(oF,"removeEmptySettingsOfToolBar");function _l(e){oF(e),iF(e),nF(e)}r(_l,"removeEmptySettings");var He=w(B());var Rv=w(B());var jd={};ta(jd,{ACTION_GROUPS_ARENT_SUPPORTED:()=>GF,ANNOERR:()=>PF,ANNOTATIONFILE:()=>AF,COMPONENTNOTDEFINED:()=>CF,CONTEXTPATHCOULDNOTBERESOLVED:()=>bF,ENTITYSETNOTFOUND:()=>hF,FLEXERROR:()=>RF,INCONSISTENTSCHEMA:()=>_F,INVALIDANCHOR:()=>jF,INVALIDTARGETDEFINITION:()=>$F,NOALP:()=>SF,NOBASEPATH:()=>sF,NOCHARTS:()=>OF,NODATEFIELD:()=>HF,NOENTITYSET:()=>uF,NOENTITYTYPE4SET:()=>dF,NOFE:()=>lF,NOFRAGMENT:()=>wF,NOGENERICSCHEMA:()=>pF,NOID4SECTION:()=>MF,NOLINEITEMANDCHARTS:()=>FF,NOLINEITEMS:()=>IF,NOLR:()=>TF,NOPAGEFORENTITYSET:()=>fF,NOPAGES:()=>cF,NOPRESENTATIONVARIANT:()=>gF,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>mF,NOPRESENTATIONVARIANTFORSPV:()=>yF,NOROUTING:()=>EF,NOROUTINGID:()=>DF,NOTARGET:()=>NF,NOTARGETS:()=>LF,NOTEMPLATE:()=>vF,NOUIANNOTATIONS:()=>xF,NOVISUALIZATIONS:()=>VF,TYPEERROR:()=>kF,UNEXISTING_ANNOTATION_PATH:()=>BF,UNKNOWNMINUI5VERSION:()=>rF,WRONGMINUI5VERSION:()=>aF,XMLPARSEFAILURE:()=>UF,default:()=>WF});var aF="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",rF="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",sF="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",cF="No pages found in manifest for app with id '{{- appId}}'",lF="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",pF="No generic schema found while generating page schema for {{- pageType}}",fF="No page found in manifest for entitySet '{{- entitySet}}'",uF="No entitySet defined for page '{{- pageName}}'",dF="No entityType could be found for the given entity set '{{- entitySetName}}'",gF="No PresentationVariant defined for '{{- key}}'",mF="No PresentationVariant found for default SelectionPresentationVariant",yF="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",hF="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",bF="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",TF="No page found in manifest for list report",SF="No page found in manifest for analytical list page",vF="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",PF="Error while parsing annotation files",AF="Annotation file: '{{- file}}'",CF="Component name is not defined for page '{{- pageName}}'",EF="Incomplete manifest definition: no routing defined",xF="No UI Annotation defined for entity type '{{- entityType }}'",IF="UI.LineItem annotation has not been defined",OF="UI.Chart annotation has not been defined",FF="Neither UI.LineItem nor UI.Chart annotation has been defined",VF="Empty Collection for Visualizations",LF="Incomplete manifest definition: no targets defined",NF="Invalid reference: annotation target '{{- target}}' not found",DF="No page found in manifest for routingId '{{- routingId}}'",RF="Error while parsing flex change",jF="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",wF="fragmentName is undefined for columnKey '{{- columnKey}}'",$F="Invalid routing target definition in manifest: '{{- target}}'",MF="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",UF="Parsing of XML file failed with error - {{- error}}",kF="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",_F="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",BF="The annotation path doesn't exist.",HF="Date setting will not be used since filter bar does not contain any date fields.",GF="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",WF={WRONGMINUI5VERSION:aF,UNKNOWNMINUI5VERSION:rF,NOBASEPATH:sF,NOPAGES:cF,NOFE:lF,NOGENERICSCHEMA:pF,NOPAGEFORENTITYSET:fF,NOENTITYSET:uF,NOENTITYTYPE4SET:dF,NOPRESENTATIONVARIANT:gF,NOPRESENTATIONVARIANTFORDEFAULTSPV:mF,NOPRESENTATIONVARIANTFORSPV:yF,ENTITYSETNOTFOUND:hF,CONTEXTPATHCOULDNOTBERESOLVED:bF,NOLR:TF,NOALP:SF,NOTEMPLATE:vF,ANNOERR:PF,ANNOTATIONFILE:AF,COMPONENTNOTDEFINED:CF,NOROUTING:EF,NOUIANNOTATIONS:xF,NOLINEITEMS:IF,NOCHARTS:OF,NOLINEITEMANDCHARTS:FF,NOVISUALIZATIONS:VF,NOTARGETS:LF,NOTARGET:NF,NOROUTINGID:DF,FLEXERROR:RF,INVALIDANCHOR:jF,NOFRAGMENT:wF,INVALIDTARGETDEFINITION:$F,NOID4SECTION:MF,XMLPARSEFAILURE:UF,TYPEERROR:kF,INCONSISTENTSCHEMA:_F,UNEXISTING_ANNOTATION_PATH:BF,NODATEFIELD:HF,ACTION_GROUPS_ARENT_SUPPORTED:GF};function Dv(e){e.addResourceBundle(e.language,"translation",jd)}r(Dv,"initI18n");function qe(e="en"){R.init({resources:{en:{translation:Rv.default}},lng:e,fallbackLng:"en",joinArrays:`
87
87
 
88
- `}),Dv(R)}r(qe,"initI18n");var $d={};ta($d,{AnalyticalListPage:()=>gn,ListReport:()=>Nn,ObjectPage:()=>St,OverviewPage:()=>Ke,exportFilterSettings:()=>$v,importDateSettingsOVP:()=>jv,importFilterSettings:()=>wv});var Bl=w(B());var gn=class{};r(gn,"AnalyticalListPage"),d([g({flex:{controlId:yc,controlType:r(()=>Bl.ControlType.DynamicPage,"controlType"),createFlexChange:U}})],gn.prototype,"fitContent",2),d([_e("table")],gn.prototype,"table",2),d([_e("template::SmartFilterBar")],gn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],gn.prototype,"chart",2),d([_e("analyticalListFooter")],gn.prototype,"footer",2),gn=d([Qt({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Bl.v2.FE_TEMPLATE_V2_ALP})],gn);var Yr=w(B());var Nn=class{};r(Nn,"ListReport"),d([g({flex:{controlId:yc,controlType:r(()=>Yr.ControlType.DynamicPage,"controlType"),createFlexChange:U}})],Nn.prototype,"fitContent",2),d([_e("listReportFilter")],Nn.prototype,"filterBar",2),d([_e("listReport")],Nn.prototype,"table",2),d([_e("listReportFooter")],Nn.prototype,"footer",2),Nn=d([Qt({id:Yr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Yr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Nn);var wd=w(B());var St=class{};r(St,"ObjectPage"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.0"})],St.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.1"})],St.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],St.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.0"})],St.prototype,"navToListOnSave",2),d([_e("header")],St.prototype,"header",2),d([_e("sections")],St.prototype,"sections",2),d([_e("layout")],St.prototype,"layout",2),d([g({manifest:{path:r(t=>_c(t),"path")}}),S({since:"1.77.0"})],St.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Rt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),S({since:"1.78.0"})],St.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Rt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:lo}}),S({since:"1.71.0"})],St.prototype,"globalTableSettings",2),St=d([Qt({id:wd.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wd.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],St);function QF(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 o in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[o];t.fields[n].filter[o]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[o].equals=a.equals.split(","))}}}r(QF,"importDateSettingsFieldsOVP");function jv(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&&QF(e,t),t}r(jv,"importDateSettingsOVP");function wv(e){let t={};return t.dateSettings=jv(e.filterSettings),t}r(wv,"importFilterSettings");function KF(e,t,n){for(let i in e.filterSettings[t].fields){let o=e.filterSettings[t].fields[i];if(o.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=o.selectedValues.join()),o.filter)for(let a in o.filter){let s=o.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}r(KF,"exportFilterFields");function $v(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&&KF(t,n,e))}r($v,"exportFilterSettings");var Ke=class{};r(Ke,"OverviewPage"),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>nt(),"path"),import:wv,export:$v}}),S({since:"1.80.0"})],Ke.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"resizableLayout",2),Ke=d([Qt({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Ke);var Md=class Md{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]: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)}};r(Md,"MetadataFactory");var Ba=Md;var bt=w(B());var XF={},JF={Table:Io,ResponsiveTableWithMultiSelect:Io,ResponsiveTableWithInlineDelete:Io},qF={[bt.v2.CardSettingsType.listCardSettings]:Oa,[bt.v2.CardSettingsType.listCardSettingsv4]:Oa,[bt.v2.CardSettingsType.analyticalCardSettings]:Fa,[bt.v2.CardSettingsType.analyticalCardSettingsv4]:Fa,[bt.v2.CardSettingsType.stackCardSettings]:vr,[bt.v2.CardSettingsType.linkListCardSettings]:Pr,[bt.v2.CardSettingsType.tableCardSettings]:Va,[bt.v2.CardSettingsType.tableCardSettingsv4]:Va},zF={[bt.SAPUI5_VIEW_CLASS]:Wr,[bt.SAPUI5_FRAGMENT_CLASS]:Gr,Table:Mo,ObjectPageResponsiveTableWithMultiSelect:Mo,ObjectPageResponsiveTableWithInlineDelete:Mo},YF={[bt.PageTypeV2.AnalyticalListPage]:XF,[bt.PageTypeV2.ListReport]:JF,[bt.PageTypeV2.ObjectPage]:zF,[bt.PageTypeV2.OverviewPage]:qF},Ud=class Ud extends Ba{constructor(){super(Ld,$d,YF)}};r(Ud,"MetadataInstanceFactoryV2");var wt=Ud;function ZF(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),ft(e.filterBar,n.manifest,i[He.DefinitionName.ListReportFilterBar],o,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let c=s;e.filterBar.selectionFields[c]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),ft(e.filterBar.selectionFields[c],n.manifest,i.SelectionFieldDateSettings,o,n.logger,c)}}}r(ZF,"importFilterBar");function kd(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,f,u;let c=Zt(s),l={controlId:c.controlId,propertyId:(p=c.content)==null?void 0:p.property,newValue:(f=c.content)!=null&&f.newBinding?c.content.newBinding:(u=c.content)==null?void 0:u.newValue,controlType:c.controlType,creation:c.creation};wl(n.table,l,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&$l(e,n,s)}r(kd,"importFlexChangesOfTableAndColumns");function eV(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[mo]&&t[yo]&&(a=JSON.parse(JSON.stringify(t[mo])),a.properties={...a.properties,...t[yo].properties}),ft(n.table,i.manifest,a,o,i.logger),kd(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(c=>c!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&_(i.logger,{severity:He.LogSeverity.Error,message:R.t("NOLINEITEMS")})}r(eV,"importTable");function tV(e,t,n,i){let o=e.jsonSchema.definitions,a=Ul(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),kl(t,n,o),eV(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),ft(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let c in o[He.DefinitionName.ActionsLR].properties){let l=qi(c);t.table.toolBar.actions[l]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),ft(t.table.toolBar.actions[l],e.manifest,o[He.DefinitionName.Action],i,e.logger)}ZF(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=qi(c);t.footer.actions[l]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),ft(t.footer.actions[l],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(tV,"addSettings");function Mv(e){if(qe(),!Ua(e))return;let n=new wt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=Ma(e.manifest[He.ManifestSection.generic].pages,o);if(ka(a,e.logger,a==null?void 0:a.entitySet),!!a)return tV(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Ml(i,s,e.jsonSchema,e.logger)}),$a(i,e,a,He.PageTypeV2.ListReport),_l(i),i}r(Mv,"createListReportConfig");var W=w(B());var Zr=require("@sap-ux/vocabularies-types/vocabularies/UI");var iV=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function oV(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(`${Zr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Zr.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 o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(oV,"getSingleSelectorIdPart");function aV(e){let t,n=e.split(":::");if(n.length===1)t=oV(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(`::${Zr.UIAnnotationTerms.LineItem}`,`/@${Zr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(aV,"getFacetID");function rV(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var c,l,p;try{let f=Zt(s),u=f&&((c=f.controlId)==null?void 0:c.split("--"))||[];if(f&&((l=u[0])!=null&&l.includes(W.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=u[0])!=null&&p.endsWith(t))){let m=u[1].replace(/:3a:3a/g,"::");o.exec(m)!==null&&(m=m.split("template:::TableColumn:::")[1]);let h=aV(m);m=Dd(m).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${m}::${f.content.property}`]={controlId:m,propertyId:f.content.property,facetId:h,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){_(n,{severity:W.LogSeverity.Error,message:R.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,c)=>s[1].creation-c[1].creation).reduce((s,[c,l])=>(s[c]=l,s),{})}r(rV,"prepareFlexChanges");var sV=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(O,"");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(O,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function cV(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&Nd(i,t,o)}r(cV,"addFlexChangeToColumns");function Uv(e,t,n,i,o,a){var c;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(c=i.id)==null?void 0:c.replace(/::@com.sap.vocabularies/g,W.VOCWITHSLASH)];for(let l in e){let p=e[l],f=p.propertyId===t,u=t==="columns"&&p.controlType===W.ControlType.TableColumn;(f||u)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?cV(a,p,o.properties,n):wl(n,p,o))}}r(Uv,"importFlexChangesOfTable");function lV(e,t){return e.facetId==="template"&&t}r(lV,"isStandardActionFlexChange");var kv=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function pV(e,t,n,i,o,a){var F;let s=!1,c=!1;a?(s=c=n.test(t.controlId),o&&(s=c&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let l=t.controlId.split("::"),p=t.controlType===W.ControlType.GroupElement&&c,f=((F=t.facetId)==null?void 0:F.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&kv(l,o.split("::"))&&s,m=e.title&&kv(l,e.title.split("::"),!0),h=!t.facetId&&iV.includes(t.controlType),T=lV(t,c);return p||f||u||m||h||T}r(pV,"matchSelector");function fV(e,t,n,i,o,a){var l;let s=new RegExp(`.*${a}`),c=new RegExp(`.*${o}`);for(let p in n){let f=n[p];if(f.propertyId!==i||f.controlType!==((l=e.properties[f.propertyId])==null?void 0:l[W.SchemaTag.controlType]))continue;pV(e,f,s,c,o,a)&&(t[i]=f.newValue)}}r(fV,"importFlexChanges");function uV(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(_(n.logger,{severity:W.LogSeverity.Warning,message:ya(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(uV,"checkDeprecatedProperties");function dV(e,t,n,i,o,a,s){let c=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,l,p;s!=null&&s.title?(l=e.manifest.path(t,{},s.title),p=gt(n.manifest,l),Object.values(p).length===0&&(l=e.manifest.path(t,{},c),p=gt(n.manifest,l))):(l=e.manifest.path(t,{},c),p=gt(n.manifest,l));let f=e.manifest.import;if(f&&typeof f=="function"){let u=f(p,s==null?void 0:s.id);u!==void 0&&(i[o]=u)}else{let u=e.manifest.key||o;u in p&&(i[o]=p[u])}return uV(p,a,n,l),p}r(dV,"importManifestSetting");function $t(e,t,n,i,o,a){var l,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},c=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let u=pt(t,f);if(f==="columns"||u!=null&&u.flex)if((l=o==null?void 0:o.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let m=n.properties[f].$ref.split(O)[1],h=e.jsonSchema.definitions[m];Uv(i.flexChanges,f,t,o,h,c)}else Uv(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);fV(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&dV(u,i.pageKeys,e,t,f,s,o)}}r($t,"transferSettingsAndFlexChanges");function Bv(e,t,n,i){let o=Ht(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${SS}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${Ec}${o}`;break}}return o.replace(/@/g,"")}r(Bv,"getActionId");function gV(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(O)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let c=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],l=Bv(s,a,"","");e.actions[a]=i.factory.createInstance(W.PageTypeV2.ObjectPage,c,{}),$t(n,e[W.PropertyName.actions][a],n.jsonSchema.definitions[c],i,{},l)}}}r(gV,"fillStandardActions");function Hl(e,t,n,i,o,a){var c;n[W.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let l={};a&&(l.id=a);for(let p in t){let f=qi(p),u=Bv(s,f,o,a);u&&(n[W.PropertyName.actions][f]=i.factory.createInstance(W.PageTypeV2.ObjectPage,s),$t(e,n[W.PropertyName.actions][f],e.jsonSchema.definitions[s],i,l,u)),(c=n[W.PropertyName.actions])!=null&&c[f]&&Object.keys(n[W.PropertyName.actions][f]).length===0&&delete n[W.PropertyName.actions][f]}}gV(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(Hl,"fillActions");function mV(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let c in n){a=`${c}::GroupElement`,i[t.id].form.fields[c]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"Field");let l=(s=t.title)!=null&&s.includes(W.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;$t(e,i[t.id].form.fields[c],e.jsonSchema.definitions[W.DefinitionName.Field],o,{},l),Object.keys(i[t.id].form.fields[c]).length===0&&delete i[t.id].form.fields[c]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(mV,"fillFields");function yV(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}r(yV,"prepareTableSchema");function hV(e,t,n,i,o){var c,l;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((c=s==null?void 0:s.tableSettings)==null?void 0:c.type)||"ResponsiveTable",f=o.factory.createInstance(W.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][W.PropertyName.table]=f;let u=e.jsonSchema.definitions,m=yV(p,t,u);$t(e,i[t.id],t.schema,o,{title:t.title}),$t(e,i[t.id][W.PropertyName.table],m,o,t);let h=JSON.parse(JSON.stringify(u))[`Actions<${t.id}>`];if(h!=null&&h.properties){let T=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");Hl(e,h.properties,i[t.id][W.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",T)}Object.keys(i[t.id][W.PropertyName.table].toolBar).length===0&&delete i[t.id][W.PropertyName.table].toolBar}}r(hV,"fillTableInConfig");function bV(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sc(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};$a(n[t],e,i,W.PageTypeV2.ObjectPage,c,o)}}r(bV,"fillCustomColumnsInConfig");function TV(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][W.PropertyName.chart]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&($t(e,i[t.id],t.schema,o,{title:t.title}),$t(e,i[t.id][W.PropertyName.chart],e.jsonSchema.definitions[W.DefinitionName.ObjectPageChart],o,t))}r(TV,"fillChartSection");function SV(e,t,n,i){n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&$t(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(SV,"fillHeaderSection");function vV(e,t,n,i){var l;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&$t(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Hl(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&mV(e,t,c.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]}r(vV,"fillFormSection");function _v(e,t,n,i,o){var c;i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&$t(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(c=s==null?void 0:s.subsections)!=null&&c.properties?a=s.subsections.properties:a=s,_d(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(_v,"fillSubSection");function _d(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let c in t){let l=c.replace(/\/@/g,"::"),p={id:l,type:sV(t[c]),schema:t[c],title:wf(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],hV(e,p,n,i,o),bV(e,l,i,o.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${c}>`],TV(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${c}>`],vV(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${c}>`],_v(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],SV(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],_v(e,p,n,i,o))}}r(_d,"fillSectionsInConfig");function PV(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),c=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];$t(o,s,c,n,{id:a}),t.sections.custom.push(s)}}}r(PV,"fillCustomSectionsInConfig");function AV(e,t){var f,u;let n=t.factory.createPageInstance(W.PageTypeV2.ObjectPage);$t(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;$t(e,n.globalTableSettings,i[W.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.ObjectPageHeader);let o=i[W.DefinitionName.ObjectPageHeader]?i[W.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];$t(e,n.header,o,t);let a=i[W.DefinitionName.HeaderActions];a&&Hl(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&Hl(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageLayout"),$t(e,n.layout,i[W.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let c=i[W.DefinitionName.HeaderSections];if(c){let m=(f=t.v2Page.component)==null?void 0:f.settings;_d(e,c.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let l=i[W.DefinitionName.Sections];if(l){let m=(u=t.v2Page.component)==null?void 0:u.settings;_d(e,l.properties,m,n.sections,t)}let p=Nv(e.manifest,e.entitySet);return PV(p,n,t,i,e),n}r(AV,"fillConfig");function Gl(e){qe();let t=Ua(e);if(!t)return;let n=e.entitySet,i=[],o=Uo(t,e.entitySet,i);if(ka(o,e.logger,n),!o)return;let a=rV(e.flex,n),s=new wt;return AV(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Gl,"createObjectPageConfigV2");var mn=w(B());var Hd=w(lf());var Re=w(B());var CV=["colorPalette","tabs"];function EV(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(EV,"createCard");function Hv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Hv(e,n.join("|"))}return t}r(Hv,"findAvailableId");function es(e,t,n,i,o,a,s){i!=null&&i.properties&&Bd(e,t,n,i.properties,o,a,s)}r(es,"transferManifestEntriesOVP");function ko(e,t,n,i){return e.createInstance(Re.PageTypeV2.OverviewPage,i,n,t)}r(ko,"assignReflectMetadataRules");function xV(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(O),o=e.appSchema.definitions[i[1]];t=ko(e.factory,i[1],t,"CustomCard"),es(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(xV,"processAnyOfDefinitionsOfOVP");function IV(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!CV.includes(i)?t[i]=(0,Hd.default)(t[i]||{},o||{},{arrayMerge:Df}):t[i]=o}r(IV,"checkSyncRuleForExport");function OV(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),c=gt(i.manifest,s);if(n in Re.v2.CardSettingsType||n==="settings")c.settings=(0,Hd.default)(c.settings||{},o||{},{arrayMerge:Df});else if(o!==void 0){let l=e.manifest.export;IV(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(OV,"transferToManifest");function FV(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Re.v2.cardTemplateTypeMap))].filter(o=>o!==n);i.push(n);for(let o of i){let a;Object.values(Re.v2.CardTemplateType).includes(o)?a=Object.keys(e.appSchema.definitions).filter(s=>{var l;let c=(l=e.appSchema.definitions[s].properties)==null?void 0:l.template;if(c!=null&&c.enum)return c.enum.indexOf(o)>-1;if(c!=null&&c.const)return c.const===o}):a=["CustomCard"],e.currentObject[t]=ko(e.factory,a[0],e.currentObject[t],"CustomCard"),EV(t,e.exportResults.manifest[Re.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,es(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Re.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Re.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated)})}r(FV,"transferCards");function VV(e,t){if(t==="cards")FV(e);else{let n=Gn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Re.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(O);e.currentObject=ko(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],es(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Bd(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],Bd(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(VV,"exportOfObject");function Bd(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!pa(a,s)&&a[a.length-1]!=="anyOf")continue;let l=e[c],p=pt(e,c),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],l=xV(f)):l&&typeof l=="object"&&i[c]&&VV(f,c),p!=null&&p.manifest&&OV(p,a,c,t,l,e)}}r(Bd,"processProperties");function LV(e,t,n,i,o,a,s){let c;t.length===0?c=["page"]:c=t;let l=n.flex.controlId(e.baseId,i,c,n.flex.controlType,o),p=hS(a,n,e.ui5Version,s,l),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let u=n.flex.createFlexChange(p,f);e.exportResults.flexChanges.find(h=>{let T=!1,F=JSON.parse(h);F={content:F.content,selector:F.selector};let L=JSON.parse(u);return L={content:L.content,selector:L.selector},JSON.stringify(F)===JSON.stringify(L)&&(T=!0),T})||e.exportResults.flexChanges.push(u)}r(LV,"evaluateFlexRule");function NV(e,t,n,i,o,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=Re.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated}}r(NV,"exportConfigValueToManifest");function DV(e,t,n,i,o){let a=gt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)NV(e,n,a,o,i,s);else{let c=n.manifest.delete;c&&typeof c=="function"?c(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,Li(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(DV,"evaluateManifestRule");function RV(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith(Re.FACETTITLEPREFIX)?o.split(Re.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(RV,"getManifestPathOfSections");function jV(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(jV,"getManifestPathOfTable");function wV(e,t,n,i,o){let a;return t[0]===Re.PropertyName.sections?a=RV(t,a,n,e,o):t[0]===Re.PropertyName.table?a=jV(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):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}r(wV,"getManifestPath");function $V(e,t,n,i,o,a,s){if(!t)return;let c=i.indexOf("subsections");for(;c>-1;)i.splice(c-1,2),c=i.indexOf("subsections");if(t.flex)LV(e,i,t,o,a,n,s);else if(t.manifest){let l=wV(e,i,t,n,a);DV(e,l,t,s,n)}}r($V,"evaluateExportRule");function MV(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let c=(s=t.config)==null?void 0:s.filter(l=>(l.tabKey===a||a===void 0&&l.tabKey===""||a&&t.sectionKey===a)&&l.extensionType===t.extensionType);if((!c||c.length===0)&&(zc(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Re.ViewTemplateType.ResponsiveTableColumnsExtension))){let l=e.replace(Re.ViewTemplateType.ResponsiveTableColumnsExtension,Re.ViewTemplateType.ResponsiveTableCellsExtension);zc(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(MV,"deleteObsoleteColumn");function UV(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=GS(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,MV(o,e,n))}r(UV,"deleteObsoleteColumnsFromFragment");function kV(e,t,n,i,o){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:c,viewTemplateType:l}=Yc(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(kV,"clusterConfigColumnsByPath");function Gv(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let c in Re.v2.TableColumnExtensionTypeV2){let{path:l}=Yc(e.v2Page,s,o,c);if(!l)continue;let p={path:l,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:c,appId:e.appId};try{UV(p)}catch(f){e.logger.error(f.message)}}if(t){let c=kV(t,n,e.v2Page,s,o);for(let l in c)Tu(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(Gv,"transferColumnExtensions");function _V(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let f=Hv(s,[p.relativePosition,c,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(h=>{var T;return(T=h.$ref)==null?void 0:T.includes(t[p].constructor.name)}).$ref.split(O),m=e.appSchema.definitions[u[u.length-1]];zi(e,t[p],i,[...o,s[p]],m)}let l=gt(e.exportResults.manifest,Qf());for(let p in l)Rd(p,c)&&!s.includes(p)&&delete l[p]}r(_V,"transferManifestExtensions");function BV(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Re.PropertyName.table){n=e[i-1];break}return yt(n,t)}r(BV,"getSectionId");function HV(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=Gn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);zi(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(HV,"transferIndexTable");function GV(e,t,n,i,o,a){let s,c=Sc(e.$ref);c&&(s={target:c,key:BV(t,n)}),Gv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(GV,"transferCustomColumns");function WV(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=Gn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&zi(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(WV,"handleAnyOfDefinitions");function QV(e,t,n,i,o,a,s){let c=e.propertyDefinition;if((c==null?void 0:c.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")_V(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){GV(c,t,s,e,n,a);return}else a?zi(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&WV(c,e,s,n==null?void 0:n[o],o,i,t)}r(QV,"transferComplexProperty");function zi(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let c in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==c&&!pa(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&hc(t,c),p=l?[...n,l]:n,f=pt(t,c),u=e.propertyDefinition=o.properties[c],m=e.nextDefinition=Gn(e.appSchema,a,s,u,c,e.factory,e.pageType);if($V(e,f,t,[...i],p,a,c),HV(s,e,a,c,p,i),s===void 0||typeof s=="object")QV(e,i,t,p,c,m,a);else if((u==null?void 0:u.$ref)===O+"TableCustomColumns"){Gv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(zi,"transferManifestEntriesAndFlexChange");function Wv(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=ko(o,i,n[i],s),a.push(i),Gd(o,n[i],e,c.properties,a)}r(Wv,"transferSettingsOfRef");function KV(e,t,n,i,o,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(O);Wv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf&&e.template in mn.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let c=`${O}${mn.v2.cardTemplateSettingsMap[e.template]}`.split(O);Wv(i,c,e,t,o,a)}}r(KV,"processPropertiesOfObject");function XV(e,t,n,i,o,a){let s=pt(e,t);if(s!=null&&s.manifest){let c=s.manifest.path([...n,t]),l=gt(i.manifest,c);if(Object.prototype.hasOwnProperty.call(l,t))try{ha(s,l,t,e)}catch(p){_(i.logger,{severity:mn.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:YT(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&KV(e,t,o,i,a,n)}r(XV,"processOvpProperty");function Gd(e,t,n,i,o){for(let a in i)XV(t,a,o,n,i,e)}r(Gd,"processOvpProperties");function JV(e,t,n){Gd(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[mn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[mn.ManifestSection.ovp].cards[i].template,a=mn.v2.cardTemplateTypeMap[o]??"CustomCard",s=[...new Set(Object.values(mn.v2.cardTemplateTypeMap))].filter(c=>c!==a);s.push(a);for(let c of s)e.cards[i]=ko(n,c,e.cards[i]??{},"CustomCard"),e.cards=ko(n,c,e.cards,"CustomCard"),Gd(n,e.cards[i],t,t.jsonSchema.definitions[c].properties,["cards",i])})}r(JV,"addSettings");function Wl(e){let t=new wt,n=t.createPageInstance(mn.PageTypeV2.OverviewPage);return e.jsonSchema&&JV(n,e,t),n}r(Wl,"createOverviewPageConfig");var De=w(B());function qV(e,t,n,i){var p,f;let o=Ul(e.manifest,i),a=e.jsonSchema.definitions;kl(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(ft(t.table,e.manifest,s,i,e.logger),kd(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),ft(t.table.toolBar,e.manifest,a[De.DefinitionName.ToolBar],i,e.logger),a[De.DefinitionName.ActionsLR])for(let u in a[De.DefinitionName.ActionsLR].properties){let m=qi(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),ft(t.table.toolBar.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),ft(t.filterBar,e.manifest,a[De.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[De.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let u=a[De.DefinitionName.SelectionFields].properties;for(let m in u){let h=m;t.filterBar.selectionFields[h]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),ft(t.filterBar.selectionFields[h],e.manifest,a.SelectionFieldDateSettings,i,e.logger,h)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),ft(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let c=a[De.DefinitionName.FooterActionsLR];if(c)for(let u in c.properties){let m=qi(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),ft(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(f=(p=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:f.keyPerformanceIndicators;l&&Object.keys(l).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),ft(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(qV,"addSettings");function Ql(e){if(qe(),!Ua(e))return;let n=new wt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=_a(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(ka(a,e.logger,a==null?void 0:a.entitySet),!!a)return qV(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Ml(i,s,e.jsonSchema,e.logger)}),$a(i,e,a,De.PageTypeV2.AnalyticalListPage),_l(i),i}r(Ql,"createAnalyticalListPageConfig");var an=w(B());var zV=["filterBar","table","footer"];function Wd(e,t,n,i){Ni(e,n,"QuickVariant"),DS(n,"QuickVariantX",t),RS(i,n,"QuickVariantX")}r(Wd,"addEnumForVariantPaths");function Qv(e,t){var u,m,h,T,F,L,Y;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=O+mo,n.properties.table.anyOf[1].$ref=O+yo,n.properties.table.anyOf[2].$ref=O+Pc,n.properties.table.anyOf[3].$ref=O+Ac,n.properties.table.anyOf[4].$ref=O+Cc;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),o=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),a=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),c=JSON.parse(JSON.stringify(t.definitions.GridTable)),l={$ref:O+an.DefinitionName.LineItems};i.properties.columns=l,o.properties.columns=l,a.properties.columns=l,s.properties.columns=l,c.properties.columns=l;let p=O+an.DefinitionName.ToolBarLR;n.definitions[mo]=i,n.definitions[yo]=o,n.definitions[Pc]=a,n.definitions[Ac]=s,n.definitions[Cc]=c,$f.forEach(ne=>{n.definitions[ne].properties.toolBar.$ref=p});let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(m=e.entitySet)!=null&&m.name&&_(e.logger,{severity:an.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(h=e.entitySet)==null?void 0:h.name})});else{Sa(n);let ne=(F=(T=f==null?void 0:f.annotations)==null?void 0:T.UI)==null?void 0:F.LineItem;ne&&$f.forEach(fe=>{n.definitions[fe][an.SchemaTag.annotationPath]=_t(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),ba(!1,n,ne,f);let q=(Y=(L=f==null?void 0:f.annotations)==null?void 0:L.UI)==null?void 0:Y.SelectionFields;Ic(n,q,f),Pa(n,f);let ue=[],ie=Ma(e.manifest[an.ManifestSection.generic].pages,ue);if(!ie)return _(e.logger,{severity:an.LogSeverity.Error,message:R.t("NOLR"),location:{path:an.MANIFESTPATH,range:[an.ManifestSection.generic]}}),n;Ta(n,f,ie,e.manifest,e.fragments),Wd(f,e.entitySet,n,e.serviceAVT),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 Wn(n,zV),n}r(Qv,"generateListReportSchemaV2");var se=w(B());var ts=r(e=>({flexChanges:[],manifest:{[se.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:se.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:se.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Kv(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===se.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(Kv,"getClassesForSingleSection");function Xv(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Kv(n,i,t),Xv(n,t)}}r(Xv,"getSubsectionClasses");function YV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],Kv(i,o,n),Xv(i,n)}r(YV,"getExportClassesForSections");function ZV(e,t){let n=Ma(t.manifest[se.ManifestSection.generic].pages,e);if(!n){_(t.logger,{severity:se.LogSeverity.Error,message:R.t("NOLR"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}});return}if(!n.component){_(t.logger,{severity:se.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:se.PageTypeV2.ListReport}),location:{path:se.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(ZV,"findV2Page");function Qd(e,t){let n=bc(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Qd,"calculateBaseId");function Jv(e,t,n=!1){let i=ts(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=ZV(a,e),c=new wt,l=c.createPageInstance(se.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Qd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(p,l,[],[],e.jsonSchema)}return i}r(Jv,"exportListReportPage");function qv(e,t,n=!1){let i=e.page.config,o=ts(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=_a(e.manifest[se.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let c=new wt,l=c.createPageInstance(se.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Qd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(p,l,[],[],e.jsonSchema)}return o}r(qv,"exportAnalyticalListPage");function zv(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=ts(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Uo(e.manifest[se.ManifestSection.generic].pages,o,s);if(!c)return _(e.logger,{severity:se.LogSeverity.Error,message:R.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),a;let l=new wt,p=l.createPageInstance(se.PageTypeV2.ObjectPage,i);if(i.sections&&YV(i,p,l),Object.keys(i).length!==0){let f={v2Page:c,exportResults:a,appId:e.appId,baseId:Qd(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:se.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(f,p,[],[],e.jsonSchema)}}return a}r(zv,"exportObjectPage");var Yv=r(e=>{let t=ts();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new wt,i=n.createPageInstance(se.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&es(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),eL=r((e,t,n)=>{var s;let i=ts();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Uc,e);o.settings=Object.assign(new wi,e.settings);for(let c in n.definitions.AppSettings.properties){let l=pt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),f=gt(i.manifest,p);e.settings&&e.settings[c]!==void 0?f[c]=e.settings[c]:(delete f[c],Li(i.manifest,p,!1))}}let a=(s=i.manifest[se.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Wf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Zv(e,t){if(e[se.SchemaType.ListReport])return Xd(e[se.SchemaType.ListReport],t);if(e[se.SchemaType.ObjectPage])return zv(e[se.SchemaType.ObjectPage],t);if(e[se.SchemaType.OverviewPage])return Yv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[se.SchemaType.Application];return eL(n,i,o)}else if(e[se.SchemaType.AnalyticalListPage])return qv(e[se.SchemaType.AnalyticalListPage],t)}r(Zv,"exportPageV2");function Kd(e,t,n=!1){if(e[se.SchemaType.ListReport])return Xd(e[se.SchemaType.ListReport],t,n);if(e[se.SchemaType.ObjectPage])return zv(e[se.SchemaType.ObjectPage],t,n);if(e[se.SchemaType.OverviewPage])return Yv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.AnalyticalListPage])return qv(e[se.SchemaType.AnalyticalListPage],t,n)}r(Kd,"exportConfigEntityByPathV2");var Pi=w(B());var _o=w(B());var eP=w(B());function Yi(e,t=[]){return e.concat(["component","settings"]).concat(t)}r(Yi,"getManifestPathToPageSettings");function Dn(e,t,n){let i=e,o=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:o,value:o&&n?i[n]:void 0,parent:o?i:void 0}}r(Dn,"getManifestPropertyByPath");function vi(e){return e!==null&&typeof e=="object"}r(vi,"isDefinition");function Kl(e,t,n,i,o,a,s){let c=n[eP.SchemaTag.conversionExit],l=c==null?void 0:c.name,p=t?t(l):void 0;if(!p)return i;let f=c.params;return e?p.appToConfig(i,f,o??[],n,s):p.configToApp(i,f,o??[],n,a)}r(Kl,"executeConversionExit");function Xl(e,t,n,i="string",o=!1){let a;if(e===void 0)a=o;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=o:a=typeof s!==i||s===null&&o}return a&&_(n,{severity:_o.LogSeverity.Error,message:R.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Xl,"hasPropertyTypeError");var tP=Symbol("Property is suppressed without explanation");function tL(e,t,n,i){delete t.element.$ref,n===void 0||e===tP?t.element[_o.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[_o.SchemaTag.messages]=[{text:e,deletable:!0,type:_o.PropertyMessageType.Warning}]),t.manifestPath=i}r(tL,"handleDisallowedProperty");function nP(e,t,n,i,o){return{manifest:{},processingRuleAdapter:r(function(a,s,c){let{manifestPath:l,disallowedReason:p}=t(a.element,s,c);if(p===tP){delete a.element;return}let{value:f,parent:u}=Dn(c.manifest,l,e);if(p){tL(p,a,f,l);return}if((o?Xl(u,e,c.logger,o):!1)&&(o==="object"||typeof f=="object")){delete a.element;return}n&&n(a.element,s,c,f),a.manifestPath=l,i&&(a.referenceAdaptation=i(s,c))},"processingRuleAdapter")}}r(nP,"getSyncRuleForManifestProperty");var Jl={manifest:{},processingRuleAdapter(e,t){e.manifestPath=Yi(t.pageInfo.pagePath)}};function iP(e,t){e.anyOf&&e.anyOf.forEach(function(n){Bo(n,t)})}r(iP,"addAnyOfToReferredTypes");function zl(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(zl,"getSingleItem");function Bo(e,t){if(typeof e!="object")return;let n=di(e);n&&oP(n,t),iP(e,t),Bo(e.additionalProperties,t),Bo(zl(e),t)}r(Bo,"addReferredTypesFromElement");function oP(e,t){t.referredTypeNames.add(e);let n=t.types[e];Bo(n,t);let i=n.properties;i?Object.values(i).forEach(o=>Bo(o,t)):Bo(zl(n),t),Bo(n.additionalProperties,t)}r(oP,"addReferredTypesFromType");function ql(e,t,n,i,o){if(typeof t!="object")return;let a=di(t);if(a){let s=o.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,o.types[a]=s),e){let c;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=zT(p),c=structuredClone(s),o.types[p]=c,o.referredTypeNames.add(p)}else o.referredTypeNames.add(a),c=s;let l={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};Jd(n,l,e.syncRuleProvider,c,o)}else oP(a,o)}else Jd(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(ql,"applyAdaptationInfoToElement");function Jd(e,t,n,i,o){var m,h;let a={element:i},s=oS(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;ql(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,o);let c={pageInfo:t.pageInfo,specificParams:((m=a.referenceAdaptation)==null?void 0:m.specificParams)||t.specificParams},l=i.properties,p;if(l)p=l;else{let T=zl(i);if(T)l={items:T},p=i;else return}let f,u=((h=a.referenceAdaptation)==null?void 0:h.processingRulesAdapter)||function(T,F){f=f||n&&new n;let L=pt(f,T);L!=null&&L.processingRuleAdapter&&L.processingRuleAdapter(F,c,e)};for(let T in l){let F=l[T];if(typeof F!="object"){p[T]=F;continue}let L={element:{...F}};u(T,L),L.element?(L.controlId?L.element[Pi.SchemaTag.controlId]=`${t.pageInfo.controlId}--${L.controlId}`:L.manifestPath&&(L.element[Pi.SchemaTag.artifactType]="Manifest",L.element[Pi.SchemaTag.manifestPath]=L.manifestPath),iP(L.element,o),ql(L.referenceAdaptation,L.element,e,c,o),ql(L.additionalPropertiesAdaptation,L.element.additionalProperties,e,c,o),ql(L.itemsAdaptation,zl(L.element),e,c,o),p[T]=L.element):delete p[T]}}r(Jd,"adjustElement");function nL(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r(nL,"getViewId");function aP(e,t,n){var q;qe();let i=co(e.manifest,Pi.FioriElementsVersion.v2,n);if(!i||i===Pi.TemplateType.OverviewPageV2)return;let{parent:o}=Dn(e.manifest,e.pagePath);if(!o)return;let a=o.component;if(Xl(o,"entitySet",n,"string",!0)||Xl(a,"name",n,"string",!0))return;let s=o.entitySet,c=a.name,l=t(c),p=l==null?void 0:l.genericSchema,f=l==null?void 0:l.syncRuleProvider;if(!f||!p)return p;let u=e.parsedAnnotations||In(e.annotations,n),m=(q=u==null?void 0:u.entitySets)==null?void 0:q.find(ue=>ue.name===s);if(!m)return p;let h=structuredClone(p),T=nL(e.appId,c,s),L={pageInfo:{appId:e.appId,componentName:c,entitySet:s,controlId:T,pagePath:e.pagePath}},Y={templateType:i,manifest:e.manifest,serviceAVT:u,fioriElementsVersion:Pi.FioriElementsVersion.v2,entitySet:m,fragments:e.fragments,logger:n,entityType:m.entityType},ne={types:h.definitions,referredTypeNames:new Set};Jd(Y,L,f,h,ne);for(let ue in h.definitions)ne.referredTypeNames.has(ue)||delete h.definitions[ue];return h}r(aP,"getAdaptedSchema");var is=w(B());var qd=w(B());var rP=w(B());var Zl=class Zl{};r(Zl,"Share"),d([g({flex:{controlType:r(()=>rP.ControlType.Button,"controlType"),createFlexChange:U},processingRuleAdapter:r(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],Zl.prototype,"visible",2);var Yl=Zl;var Zi=class{};r(Zi,"ListHeaderActions"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Yl}}})],Zi.prototype,"Share",2),Zi=d([g({processingRuleAdapter(e){e.element[qd.SchemaTag.icon]="Export"}})],Zi);var Ai=class{};r(Ai,"ListHeader"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Zi}}})],Ai.prototype,"actions",2),Ai=d([g({processingRuleAdapter(e){e.element[qd.SchemaTag.icon]="Header"}})],Ai);var tp=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ei=w(B());var eo={since:"1.77.0"},ep={flex:{controlType:r(()=>Ei.ControlType.SmartFilterBar,"controlType"),createFlexChange:U},processingRuleAdapter(e){e.controlId="listReportFilter"}};function zd(e){return nP(e,function(t,n){return{manifestPath:Yi(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}r(zd,"getSyncRuleForDateRangeProperty");var Ha=class Ha{};r(Ha,"DateRange"),d([g(zd("useDateRange")),S(eo)],Ha.prototype,"useDateRange",2),d([g(zd("selectedValues")),S(eo)],Ha.prototype,"selectedValues",2),d([g(zd("exclude")),S(eo)],Ha.prototype,"exclude",2);var Yd=Ha,ns={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=Yi(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var hn=class{};r(hn,"FilterField"),d([g(ns),S(eo)],hn.prototype,"selectedValues",2),d([g(ns),S(eo)],hn.prototype,"exclude",2),d([g(ns),S(eo)],hn.prototype,"customDateRangeImplementation",2),d([g(ns),S(eo)],hn.prototype,"filter",2),d([g(ns),S({since:"1.90.0"})],hn.prototype,"defaultValue",2),hn=d([g({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,o=n.entityType,a=i.value,s=i.type==="PropertyPath"?fa(i,o):a;e.element.description=s,e.element[Ei.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ei.SchemaTag.keys]=[{name:Ei.SchemaKeyName.value,value:`${a}`}]}})],hn);var Ho=class{};r(Ho,"FilterFields"),Ho=d([g({processingRuleAdapter(e,t,n){let i=t.specificParams,o=i.fieldDefinitions,a;for(let c in o){let l=o[c],p={$ref:O+"FilterField"};p[Ei.SchemaTag.propertyIndex]=l.position,a=a||{},a[c]=p}e.element.properties=a,delete e.element.additionalProperties;let s=r(function(c,l){let p={accessor:c,selectionFieldInfo:o[c],entityType:i.entityType};l.referenceAdaptation={suffix:Ie(c),syncRuleProvider:hn,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],Ho);var yn=class yn{};r(yn,"CommonFilterBar"),d([g(ep)],yn.prototype,"liveMode",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"smartVariantManagement",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"variantManagementHidden",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"subTitleIfVariantMgmtHidden",2),d([g(ep)],yn.prototype,"showClearOnFB",2),d([g(ep)],yn.prototype,"showFilterConfiguration",2),d([g(ep)],yn.prototype,"showRestoreOnFB",2),d([g({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:Yd}}}),S(eo)],yn.prototype,"dateSettings",2),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Ho}}})],yn.prototype,"selectionFields",2);var Zd=yn,Ci=class extends Zd{};r(Ci,"ListReportFilterBar"),d([g({manifest:{},processingRuleAdapter(t,n){let i=[tp.UIAnnotationTerms.SelectionPresentationVariant,tp.UIAnnotationTerms.SelectionVariant,tp.UIAnnotationTerms.PresentationVariant],o=n.specificParams;$c(o.entityType,i,t.element);let a=Yi(n.pageInfo.pagePath);t.manifestPath=a}}),ce("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),S({since:"1.86.0"})],Ci.prototype,"annotationPath",2),Ci=d([g({processingRuleAdapter(e,t){var c;e.element[Ei.SchemaTag.icon]="Filter";let n=t.specificParams,i=((c=n.uIAnnotations)==null?void 0:c.SelectionFields)??[],o={},a=!1;i.forEach((l,p)=>{let f=en(l),u=["Date","DateTime","DateTimeOffset"].includes(f);a=a||u,o[l.value]={field:l,dataType:f,hasDateRangeOption:u,position:p}});let s={entityType:n.entityType,fieldDefinitions:o,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],Ci);var bn=class{};r(bn,"ListReportNew"),d([g({flex:{controlType:r(()=>is.ControlType.DynamicPage,"controlType"),createFlexChange:U},processingRuleAdapter(t){t.controlId="page"}})],bn.prototype,"fitContent",2),d([g({processingRuleAdapter(t){t.element[is.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Ai}}})],bn.prototype,"header",2),d([g({processingRuleAdapter(t,n){var o;if((o=n.specificParams.settings)!=null&&o.isWorklist){delete t.element;return}t.element[is.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:Ci}}})],bn.prototype,"filterBar",2),bn=d([Qt({id:Lv,pageId:zr}),g({processingRuleAdapter(e,t,n){let i=Yi(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=FS(n),{parent:s}=Dn(n.manifest,i),c={settings:s,entityType:o,uIAnnotations:a};e.referenceAdaptation={specificParams:c}}})],bn);var ig=require("path"),gP=require("fs");var rn=w(B());function iL(e){let t={};return e.flex.forEach(function(i){let o=Zt(i);if(o){let a=o,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}r(iL,"getChangeMapFormImportParameters");function eg(e,t,n,i,o){if(e===void 0)return;let a=di(t),s=a?n[a]:void 0;if(t[rn.SchemaTag.conversionExit]&&(e=Kl(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return eg(e,s,n,i,o);if(t.type==="object"&&t.properties&&typeof e=="object"){let c={},l=!1;for(let p in t.properties){let f=t.properties[p],u=eg(e[p],f,n,i,o);u!==void 0&&(l=!0,c[p]=u)}return l?c:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}r(eg,"getConfigRep");function sP(e,t,n,i,o,a,s,c){let l=eg(o,a,s,c,t);if(l===void 0)return;let p=e,f=[];n.forEach(function(u){f.push(u);let m=u.propertyName;p[m]=p[m]||t.propertyInstanceProvider(f),p=p[m]}),p[i]=l}r(sP,"transferValueToConfig");function oL(e,t,n,i,o,a,s,c){let l=o[rn.SchemaTag.controlId],p=c[l];if(!p)return;let f=-1,u=p.find(function(m,h){return m.content.property===i?(f=h,!0):!1});u&&(sP(e,t,n,i,u.type==="propertyBindingChange"?u.content.newBinding:u.content.newValue,o,a,s),p.length===1?delete c[l]:p.splice(f,1))}r(oL,"importFlexChangesToConfigProperty");function aL(e,t,n,i,o,a,s){let c=o[rn.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:f,value:u,parent:m}=Dn(s.manifest,p,l?i:void 0);if(!f)return;sP(e,t,n,i,l?u:m,o,a,s)}r(aL,"importManifestToConfigProperty");function cP(e,t,n,i,o,a,s){if(vi(n.properties))for(let c in n.properties){let l=n.properties[c];if(!vi(l))continue;let p=l[rn.SchemaTag.artifactType];if(p===rn.ArtifactType.FlexChange)oL(e,t,i,c,l,o,a,s);else if(p===rn.ArtifactType.Manifest&&l[rn.SchemaTag.manifestPath])aL(e,t,i,c,l,o,a);else{let f=di(l),u=f?o[f]:void 0;if(vi(u)){let m=i.concat([{propertyName:c,propertyType:f.split("<")[0]}]);cP(e,t,u,m,o,a,s)}}}}r(cP,"importDefinitionIntoConfig");function lP(e,t,n){var u;let i=co(e.manifest,rn.FioriElementsVersion.v2,e.logger);if(!i||i===rn.TemplateType.OverviewPageV2)return;let{parent:o}=Dn(e.manifest,t),a=(u=o==null?void 0:o.component)==null?void 0:u.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let c=iL(e),l=e.jsonSchema,p=l.definitions,f=s.propertyInstanceProvider([]);return cP(f,s,l,[],p,e,c),f}r(lP,"getConfigForPage");var Vt=w(B());function rL(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[Vt.SchemaTag.controlId],controlType:e[Vt.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(rL,"addFlexChangeInfoToList");function pP(e,t,n,i){var c;if(n[Vt.SchemaTag.conversionExit])return Kl(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((c=n.items)==null?void 0:c.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 o=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let l in n.properties){let p=n.properties[l];if(!vi(p))continue;let f=di(p);p=f&&i.globalTypeDefinitions[f]||p;let u=o[l];s=s||u!==void 0;let m=pP(e?e[l]:void 0,u,p,i);m===void 0?delete o[l]:(o[l]=m,a=!0)}return a?o:s?Object.keys(t).every(l=>vi(n.properties[l]))?void 0:o:t}r(pP,"getValueForManifest");function tg(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(o,a){return tg(o,t[a])}):!0;let n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(t).filter(o=>t[o]!==void 0);return n.length!==i.length||n.some(function(o){return tg(e[o],t[o])})}r(tg,"isDifferent");function sL(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(sL,"isEmpty");function cL(e,t,n,i,o){let a=n.manifest,s=e.length-1,c=e[s],l=[];e.some(function(u,m){if(m===s)return!0;let h=a[u];if(typeof h!="object"||h===null)return!0;a=h,l.push(a)});let p=l.length===s?a[c]:void 0,f=pP(t,p,i,o);if(tg(f,p))if(f===void 0){n.manifestChangeIndicator=Vt.ChangeIndicator.Deleted;for(let u=s;u>0;u--){let m=l[u];if(!sL(m))break;let h=l[u-1],T=e[u];delete h[T]}}else{for(let u=l.length;u<s;u++){let m={};a[e[u]]=m,a=m}a[c]=f,n.manifestChangeIndicator=p===void 0?Vt.ChangeIndicator.Created:Vt.ChangeIndicator.Updated}}r(cL,"applyManifestChange");function lL(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[Vt.SchemaTag.artifactType];if(s===Vt.ArtifactType.FlexChange)rL(i,a,n,t.flexList);else if(s===Vt.ArtifactType.Manifest&&i[Vt.SchemaTag.manifestPath]){let c,l=i[Vt.SchemaTag.manifestPath];Array.isArray(l)?c=l.concat([n]):(c=l.path,l.addTargetPropertyToPath&&(c=c.concat([n]))),cL(c,a,t,i,o)}else{let c=di(i),l=c?o.globalTypeDefinitions[c]:void 0;vi(l)&&fP(a,t,l,o)}}r(lL,"transferConfigPropertyToExportResults");function fP(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];vi(s)&&lL(e,t,a,s,i)}}r(fP,"transferConfigToExportResults");function uP(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Vt.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Vt.ChangeIndicator.NoChange,flexList:[],fragments:i};return fP(t,a,e.jsonSchema,o),a}r(uP,"exportPage");var pL=!1,fL={generateListReportSchemaV2(e,t){return Qv(e,t)},createListReportConfig(e){return Mv(e)},exportListReportPage(e,t,n){return Jv(e,t,n)}},ng;function uL(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,ig.join)(__dirname.substring(0,i+13),"dist")}let t=(0,ig.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,gP.readFileSync)(t,"utf8"))}r(uL,"getPersistentListReportNewSchema");function dL(){let e=uL();return function(t){return t===zr?{genericSchema:e,syncRuleProvider:bn}:void 0}}r(dL,"createGenericSchemaInfoProvider");function gL(e){return e===zr?{propertyInstanceProvider:r(function(t){return new bn},"propertyInstanceProvider")}:void 0}r(gL,"getConfigInfo");function dP(e){let{value:t}=Dn(e,[Zn.ManifestSection.generic],"pages");return Array.isArray(t)?[Zn.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Zn.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}r(dP,"getPathForRootPage");function mL(e,t,n){let i=!e.layer||e.layer===Zn.FlexChangeLayer.Customer,o={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(o.content.newBinding=n.newValue,o.type="propertyBindingChange"):o.content.newValue=n.newValue,U(o,t)}r(mL,"flexInfoToChangeString");function yL(){let e=dL(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Zn.ManifestSection.app].id=n,i.flexList.map(mL.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=dP(i);if(!o)return null;let a={appId:((s=i[Zn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return aP(a,e,n.logger)},createListReportConfig(n){let i=dP(n.manifest);return lP(n,i,gL)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Zn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=uP(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(yL,"createPageHandlerLRGeneric");function og(){return pL?(ng=ng||yL(),ng):fL}r(og,"getPageHandlerLR");function os(e,t){return og().generateListReportSchemaV2(e,t)}r(os,"generateListReportSchemaV2");function np(e){return og().createListReportConfig(e)}r(np,"createListReportConfig");function Xd(e,t,n=!1){return og().exportListReportPage(e,t,n)}r(Xd,"exportListReportPage");function op(e,t){var n,i;return(n=e.component)!=null&&n.name?da(pi((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(op,"generateId");function hL(e,t,n,i){e.navigation={};let o=mP(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=op(t.pages[a],a);e.entitySet?e.navigation[s]=o[s].navigationProperty?`${e.entitySet}.${o[s].navigationProperty}`:e.entitySet:e.navigation[s]=o[s].navigationProperty?o[s].navigationProperty:s}}r(hL,"getPageConfigsAndNavigations");function mP(e,t){var i;let n={};for(let o in e){let a=e[o],s=op(a,o);if(!s)continue;let c={pageType:pi((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=c;let l=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(c.pageType));if(l)if(c.pageType===ut.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],fragments:t.fragments,logger:t.logger};c.config=np(p)}else if(c.pageType===ut.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],fragments:t.fragments,logger:t.logger};c.config=Ql(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],entitySet:c.entitySet,fragments:t.fragments,logger:t.logger};c.config=Gl(p)}a.pages&&hL(c,a,t,n)}return n}r(mP,"getPagesAndConfigs");var ag=class ag extends Ri{constructor(t){qe();let n;t.manifest[ut.ManifestSection.generic]?n=t.manifest[ut.ManifestSection.generic].pages:_(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOFE"),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}}),n||_(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&op(n[i],i),a=new wi,s=Ye(ut.SchemaType.Application),c=t.appSchemas[s.filename];ft(a,t.manifest,c.definitions.AppSettings,void 0),super(t,o,mP(n,t),a)}};r(ag,"V2AppProvider");var ip=ag;function as(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||_(n,{severity:ut.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:ut.MANIFESTPATH}}),((a=c.component)==null?void 0:a.name)===t){let l=op(c,s);i[l]=c}if(t===ut.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=as(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(as,"getPages");var Go=w(B());var rg=class rg extends Ri{constructor(t){let n={},i=t.manifest[Go.ManifestSection.ovp],o=new wi,a=Ye(Go.SchemaType.Application);ft(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(Go.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},l={pageType:Go.PageTypeV2.OverviewPage,config:Wl(c),entitySet:i.globalFilterEntitySet},p=da(l.pageType,l.entitySet);n[p]=l,super(t,p,n,o)}};r(rg,"V2OvpProvider");var ap=rg;var rp=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=w(B());function bL(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(bL,"sortByPropertyIndex");function TL(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(bL())}r(TL,"sortPropertiesRecords");function yP(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}r(yP,"getExtensionText");function sg(e,t,n,i,o){var s;(((s=e.position)==null?void 0:s.placement)||G.v4.Placement.After)===G.v4.Placement.Before?t.splice(n,0,[i,o]):t.splice(n+1,0,[i,o])}r(sg,"addExtensionToSortedArray");function SL(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,c])=>{var l,p,f;return((l=c.position)==null?void 0:l.placement)==="Before"&&((p=c.position)==null?void 0:p.anchor)===((f=n.position)==null?void 0:f.anchor)})===-1&&(i.splice(i.length,0,[t,o]),delete e[t])}r(SL,"addRemainingTargetByBefore");function cg(e,t,n,i,o=!1){var l,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=yP(f);return{$ref:`${O}${t}`,description:m,keys:[{name:G.SchemaKeyName.key,value:`${u}`}]}},"getExtensionDetails");for(let f of Object.keys(e)){let u=e[f],m=s(u,f);if((l=u.position)!=null&&l.anchor&&((p=u.position)!=null&&p.placement)){let h=n.findIndex(T=>T[0]===u.position.anchor);h>-1?(sg(u,n,h,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(_(i,{severity:on.LogSeverity.Error,message:R.t("INVALIDANCHOR",{id:f,anchor:u.position.anchor}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5]}}),n.splice(n.length,0,[f,m]),delete e[f]):o&&SL(e,f,u,n,m)}else o&&(sg(u,n,n.length,f,m),delete e[f])}let c=Object.entries(e).length;c>0&&a!==c?cg(e,t,n,i):c>0&&cg(e,t,n,i,!0)}r(cg,"adjustCustomExtReferringToCustomExt");function vL(e,t){var o,a;let n=((o=e.position)==null?void 0:o.placement)||G.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===G.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}r(vL,"getExtensionAnchor");function PL(e,t){var i;let n=[];for(let o in e){let a=(i=e[o].position)==null?void 0:i.anchor,s=t.some(c=>c[0]===a);a&&!s&&n.push(o)}return n}r(PL,"getLocalExtensionsToSkip");function AL(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(AL,"getExtensionIndex");function CL(e,t,n,i,o){_(e,{severity:on.LogSeverity.Error,message:R.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(CL,"handleInvalidExtension");function EL(e,t,n,i="template",o){let a=[...t],s={...e},c=PL(s,a);if(!s)return[];for(let l of Object.keys(s)){let p=s[l];if(c!=null&&c.includes(l))continue;let f={$ref:`${O}${n}`,description:yP(p)||l,keys:[{name:G.SchemaKeyName.key,value:`${l}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){CL(o,l,t,f,s);continue}if(!(i in p)){delete s[l];continue}let u=vL(p,a);if(u){let m=AL(p,e,t,u);m>-1&&(sg(p,t,m,l,f),delete s[l])}else t.push([l,f]),delete s[l]}return Object.keys(s).length>0&&cg(s,n,t,o),t}r(EL,"addExtensionToArray");function xL(e){let t;return e.lineItemId.startsWith(G.DefinitionName.LineItemsOfView)?t=G.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(G.DefinitionName.LineItems)?t=G.DefinitionName.ToolBarAction:t=G.DefinitionName.ObjectPageToolBarAction,t}r(xL,"determineActionDefinitionName");function IL(e,t,n){e[G.SchemaTag.keys]=[],t[G.SchemaKeyName.semanticObject]&&e[G.SchemaTag.keys].push({name:G.SchemaKeyName.semanticObject,value:t[G.SchemaKeyName.semanticObject]});let{key:i,ns:o}=bo(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r(IL,"addTargetAndKeysOfAction");function OL(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=xL(e),c=xt(i,e.entityType),l=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=vc(p),u=t.properties[`${l}::${f}`]={description:c};if(a?u.$ref=$S(s,Ie(f),e.appSchema,n):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=en(i),IL(u,i,p),u[G.SchemaTag.annotationType]=i.$Type,a){let m=u.$ref.replace(O,""),h=ht(s,m,e.appSchema,!1);h[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(OL,"addActionRecordToSchema");function FL(e,t,n,i,o){var l;let a=t.lineItemId,s=t.lineItemRecord;if((l=s.Target)!=null&&l.value){let p=`@${Bt(G.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let c=mi(s).replace(/\//g,"::");if(c){let p=o;p||(p=e.appSchema.definitions[a]);let f=p.properties,u={description:xt(s,e.entityType)};o?(u.properties={},u.type="object",u.isViewNode=!0):u.$ref=O+n,u[G.SchemaTag.annotationType]=s==null?void 0:s.$Type,u[G.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,u[G.SchemaTag.propertyIndex]=i,u[G.SchemaTag.dataType]=en(s),f[c]=u,Lc(s,f,c)}}r(FL,"addLineItemRecordToSchema");function VL(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===rp.UIAnnotationTypes.DataFieldForAction||s.$Type===rp.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))OL(e,t,n,s,a,!i);else{let c={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},l=s.$Type===rp.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;FL(e,c,l,a,i)}a++})}r(VL,"appendLineItemsToSchema");function Wo(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=Fc(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);VL(e,n,i,void 0,t)}r(Wo,"addLineItemsTypeToSchema");function sp(e,t,n,i){var a,s;let o;if(n){for(let c in e)if(((s=(a=e[c].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(mc(t,e[c].name)||t===G.v4.FE_TEMPLATE_V4_ALP&&e[c].name===G.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[c];break}}return o}r(sp,"findPageV4");function hP(e,t){let n,i=e.properties[G.PropertyName.table];return t.templateType===G.TemplateType.AnalyticalListPageV4?(n=G.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${O}${G.DefinitionName.ALPTableView}`,delete e.definitions[G.DefinitionName.Table],delete e.definitions[G.DefinitionName.LRChartView],delete e.definitions[G.DefinitionName.LRTableView],delete e.definitions[G.DefinitionName.MultiTableModeV4]):t.templateType===G.TemplateType.ListReportObjectPageV4&&(n=G.DefinitionName.Table,delete i.anyOf,i.$ref=`${O}${G.DefinitionName.Table}`,e.definitions[n].properties[G.PropertyName.annotationPath][G.SchemaTag.hidden]=!0,delete e.definitions[G.DefinitionName.ALPTableView],e.properties[G.PropertyName.defaultPath][G.SchemaTag.hidden]=!0),n}r(hP,"alignSchemaWithTemplateType");function bP(e,t,n,i,o,a){var p,f,u,m;let s=TL(t),c=new Map;if(s=s.map(h=>{let T=Bf(e,h[1],h[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return c.set(T.const,h[0]),[T.const,h[1]]}),!o&&i.includes(G.DefinitionName.ObjectPageCustomSectionFragment)){let h=(m=(u=(f=(p=n.options)==null?void 0:p.settings)==null?void 0:f.content)==null?void 0:u.body)==null?void 0:m.sections;h&&(s=EL(h,s,i,"name",a))}for(let h=0;h<s.length;h++)s[h][1][G.SchemaTag.propertyIndex]=h;let l={};s.forEach(([h,T])=>{h=c.get(h)||h,l[h]=T}),t.properties=l}r(bP,"addCustomSectionDefinition");var E=w(B()),pg=require("@sap-ux/vocabularies-types/vocabularies/UI");var LL=["filterBar","chart","table"],lg="@UI.LineItem";function NL(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=_t(e.fullyQualifiedName,pg.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,c="SelectionField::"+Ie(a.value);a.type==="PropertyPath"&&(s=fa(a,e)),i.properties[c]={$ref:O+c},i.properties[c][E.SchemaTag.propertyIndex]=o;let l=en(a);t.definitions[c]={type:"object",properties:{},description:s,additionalProperties:!1,...l&&{dataType:l}},t.definitions[c][E.SchemaTag.isViewNode]=!0,t.definitions[c][E.SchemaTag.keys]=[{name:E.SchemaKeyName.value,value:`${a.value}`}],((p=a.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[c][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(f=a.$target)!=null&&f.fullyQualifiedName&&(t.definitions[c][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[c][E.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[c][E.SchemaTag.annotationPath]=`${i[E.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(NL,"addSelectionFields");function SP(e,t,n,i,o){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(`${E.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let c=0;s.Actions.forEach(l=>{let p=Ie(`${E.DefinitionName.ChartToolBarAction}<${l.Action}>`),f=xt(l,o),u=l.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${l.Action}`]={$ref:O+p,description:f};m[E.SchemaTag.propertyIndex]=c,m[E.SchemaTag.annotationType]=l.$Type,m[E.SchemaTag.annotationPath]=`/${l.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[E.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][E.SchemaTag.annotationPath]=l.fullyQualifiedName,c++})}}r(SP,"defineActions");function vP(e,t,n,i){var c;let o,a,s;return e&&(n==="primary"?a=e.find(l=>l.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(l=>l.value.indexOf(E.FacetBase.LineItem)>-1):i?a=e.find(l=>l.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?ma(a.value):void 0,(c=a==null?void 0:a.$target)!=null&&c.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",E.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(vP,"findTheRightVisualization");function DL(e,t,n,i){let o="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:o,targetAnnotation:a,chartTitle:s}}r(DL,"analyzeChartAnnotation");function RL(e,t,n,i,o,a){var l;let{visualization:s,targetAnnotation:c}=vP((l=e.PresentationVariant)==null?void 0:l.Visualizations,t,n,i);return s||(_(o,{severity:E.LogSeverity.Error,message:R.t("NOVISUALIZATIONS")}),s=lg,c=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:c,namespace:t,title:a}}r(RL,"analyzeSPVforView");function cp(e,t,n,i,o){let a,s,c=e==null?void 0:e.split(`${E.UIVOCABULARY}.`)[1],l=c&&(t==null?void 0:t[c]);if(!l)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=l.Text,a=l.fullyQualifiedName.split(E.UIVOCABULARYALPHADOT)[0],c.startsWith("PresentationVariant")){let{visualization:p,targetAnnotation:f}=vP(l.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(c.startsWith("SelectionPresentationVariant"))return RL(l,a,n,i,o,s);if(c.startsWith("SelectionVariant")){let p=lg,f=`/${a}/@${pg.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("LineItem")){let p=lg;l.qualifier&&(p+=`#${l.qualifier}`);let f=e.substring(0,1)==="@"?`/${a}/${e}`:`/${a}/@${e}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("Chart")){let{visualization:p,targetAnnotation:f,chartTitle:u}=DL(a,e,l,n);return{visualization:p,targetAnnotation:f,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(cp,"analyzeViewAnnotation");function jL(e,t,n,i){let o=e.definitions[E.DefinitionName.ALPChartView];if(e.definitions[E.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(o)),delete e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.isViewNode],n&&(e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.annotationPath]=n),e.definitions[E.DefinitionName.ALPChart].properties.annotationPath[E.SchemaTag.hidden]=!0,o.properties.annotationPath[E.SchemaTag.hidden]=!0,o.additionalProperties=!1,o.description="Chart (key: primary)",o.title="Chart",o.$ref=`${O}${E.DefinitionName.ALPChart}`,t){let a=t.split(E.UIVOCABULARYDOT)[1];if(i!=null&&i[a]){let s=i[a].fullyQualifiedName.split("@");o[E.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else US(o,R.t("UNEXISTING_ANNOTATION_PATH"))}o[E.SchemaTag.artifactType]=E.ArtifactType.Manifest,o[E.SchemaTag.key]="primary",o[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"primary"}]}r(jL,"addALPChartView");function wL(e,t,n,i,o,a){var L,Y,ne,q,ue,ie,fe,Ve;let s=(L=n.entityType)==null?void 0:L.annotations.UI,c=(q=(ne=(Y=t==null?void 0:t[0])==null?void 0:Y.primary)==null?void 0:ne[0])==null?void 0:q[E.SchemaTag.annotationPath],{targetAnnotation:l}=cp(c,s,"primary",void 0,n.logger);jL(e,c,l,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=O+p,SP(e,p,s,l,n.entityType);let{visualization:f,targetAnnotation:u}=cp((fe=(ie=(ue=t==null?void 0:t[0])==null?void 0:ue.secondary)==null?void 0:ie[0])==null?void 0:fe[E.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];f||i?(m.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:O+E.DefinitionName.LineItems},m.properties.annotationPath[E.SchemaTag.hidden]=!0):m.properties={};let h=e.definitions[E.DefinitionName.ALPTableView];e.definitions[E.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(h)),delete e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.isViewNode],h.additionalProperties=!1,h.description="Table (key: secondary)",h.title="Table",f?(delete h.properties,h.$ref=`${O}${E.DefinitionName.ALPTable}`):i||(h.properties={}),h[E.SchemaTag.artifactType]=E.ArtifactType.Manifest;let T,F;if(f&&f.indexOf(E.FacetBase.LineItem)>-1?(T=f.split(".")[1],F=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(T=F=i.split(E.UIVOCABULARYDOT)[1]),T){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Ve=n.entityType)==null?void 0:Ve.annotations.UI[T],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};Wo(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let ke=s[F].fullyQualifiedName.split("@");h[E.SchemaTag.annotationPath]=`/${ke[0]}/@${ke[1]}`,h[E.SchemaTag.key]="secondary",h[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(wL,"addALPViews");function $L(e,t){let n=`${E.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][E.SchemaTag.isViewNode],e.appSchema.definitions[n][E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${E.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${O}${i}`;let o=`${E.DefinitionName.Actions}<${e.viewKey}>`;return SP(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${O}${o}`,n}r($L,"addViewChartDefinitions");function ML(e,t,n,i,o,a){let s=$L(e,t);n.definitions[s].properties.annotationPath[E.SchemaTag.hidden]=!0,n.definitions[s].properties.index[E.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[E.SchemaTag.hidden]=!0;let c=`Chart View (key: ${o})`;i.properties[o]={$ref:`${O}${s}`,description:a||c,title:c}}r(ML,"addViewChart");function TP(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(TP,"createEmptyProperties");function UL(e,t,n,i,o){var m;let a=`${E.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${E.DefinitionName.LineItemsOfView}::${e.viewKey}`,c=ht(E.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete c[E.SchemaTag.isViewNode],c[E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(c.navigationProperty=e.navPropName),e.entitySet&&(c.entitySet=e.entitySet),So(c.properties.toolBar,E.DefinitionName.ToolBar,s);let l=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${O}${a}`,description:e.title||l,title:l},So(c.properties.columns,s),c.properties.annotationPath[E.SchemaTag.hidden]=!0,c.properties.index[E.SchemaTag.hidden]=!0,c.properties.entitySet[E.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(E.UIVOCABULARYDOT)[1],f={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:o.serviceAVT,lineItemId:s,entitySet:c.entitySet},u=E.DefinitionName.ViewTableColumn;if(c.entitySet!==void 0){let{definitions:h}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let T=h[E.DefinitionName.ViewTableColumn];h[u]=TP(T);let F=E.DefinitionName.ViewTableColumnBasicAction,L=`${E.DefinitionName.ViewTableColumnAction}`;h[F]=TP(h[L])}Wo(f,u)}r(UL,"addViewLineItems");function kL(e,t,n,i){e.properties[t][E.SchemaTag.isViewNode]=!0,e.properties[t][E.SchemaTag.annotationPath]=n?`/${n}/@${i[E.SchemaTag.annotationPath]}`:void 0,e.properties[t][E.SchemaTag.artifactType]=E.ArtifactType.Manifest,e.properties[t][E.SchemaTag.key]=t,e.properties[t][E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:t}]}r(kL,"addTagsToView");function _L(e,t,n){var a;let i=n.entityType,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=o.entityType),i}r(_L,"getTargetEntityType");function BL(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===E.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}r(BL,"handleViewProperties");function HL(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)UL(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&BL(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)ML(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let c=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||c,title:c,$ref:`${O}${E.DefinitionName.TableViewExtension}`}}else{let c=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||c,title:c,$ref:`${O}${E.DefinitionName.LRTableView}`}}}r(HL,"addLRViewParts");function GL(e,t,n,i,o){var c;let a=e.definitions[o];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let l of t){if(!l[E.SchemaTag.key])continue;let p,f=_L(n.entitySet,l,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:h,namespace:T,title:F}=cp(l==null?void 0:l[E.SchemaTag.annotationPath],u,l[E.SchemaTag.key],void 0,n.logger);l.entitySet&&(p=(c=n.entityType.navigationProperties.find(ne=>ne.targetTypeName===T))==null?void 0:c.name);let L=Ie(l[E.SchemaTag.key]),Y={viewKey:L,appSchema:e,targetAnnotation:h,navPropName:p,targetEntityType:f,title:F,entitySet:l.entitySet};HL(m,s,Y,n,i,u,l),kL(s,L,T,l)}}r(GL,"addLRViews");function WL(e,t,n,i,o,a){var f,u,m,h,T,F,L,Y,ne,q,ue,ie;let s=e.definitions[a],{visualization:c,targetAnnotation:l,namespace:p}=cp(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(c){let fe=c.split(".")[1],Ve=`${E.DefinitionName.LineItems}OfSPV::${Ie(fe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],So(P.properties.toolBar,E.DefinitionName.ToolBar,Ve),P[E.SchemaTag.annotationPath]=l,P.properties.columns={},So(P.properties.columns,Ve),delete s.properties,So(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let ke=(u=t.entityType)==null?void 0:u.annotations.UI[fe];ke||_(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOTARGET",{target:fe})});let Xe={isObjectPage:!1,appSchema:e,lineItemAnnotation:ke,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Ve};Wo(Xe)}else{s.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,So(s.properties.columns,E.DefinitionName.LineItems);let fe=(T=(h=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:h[o])==null?void 0:T.LineItem;!fe&&!((Y=(L=(F=i.options)==null?void 0:F.settings)==null?void 0:L.views)!=null&&Y.paths)&&_(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOLINEITEMS")});let Ve={isObjectPage:!1,appSchema:e,lineItemAnnotation:fe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};Wo(Ve),fe&&!((ue=(q=(ne=i.options)==null?void 0:ne.settings)==null?void 0:q.views)!=null&&ue.paths)&&(s[E.SchemaTag.annotationPath]=_t((ie=t.entityType)==null?void 0:ie.fullyQualifiedName,fe.term,fe.qualifier))}}r(WL,"adaptTableDefinition");function QL(e,t,n){var i,o,a,s,c,l,p;if(!((o=(i=e.options.settings)==null?void 0:i.views)!=null&&o.paths&&n===E.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===E.TemplateType.ListReportObjectPageV4)return((c=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:c.term)||((p=(l=t==null?void 0:t.annotations.UI)==null?void 0:l.PresentationVariant)==null?void 0:p.term)}}r(QL,"getDefaultAnnotationPath");function KL(e,t,n,i){var c,l,p,f,u;let o=(p=(l=(c=t.options)==null?void 0:c.settings)==null?void 0:l.views)==null?void 0:p.paths,a=QL(t,n.entityType,n.templateType),s=hP(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(WL(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],GL(e,o,n,t,s)):(u=(f=t.options)==null?void 0:f.settings)!=null&&u.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[E.PropertyName.chart][E.SchemaTag.hidden]=!0):n.templateType===E.TemplateType.AnalyticalListPageV4&&wL(e,o,n,a,t,s)}r(KL,"addTableAndViews");function rs(e,t,n,i){var l,p;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&Bt(E.UIVOCABULARY,e.serviceAVT),c=s&&((p=(l=a==null?void 0:a.annotations)==null?void 0:l[s])==null?void 0:p.SelectionFields);if(NL(a,o,c),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,Ni(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[E.ManifestSection.ui5].routing.targets;if(!f)return _(e.logger,{severity:E.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:E.MANIFESTPATH,range:[E.ManifestSection.generic]}}),o;let u=sp(f,i,n,e.logger);if(!u)return o;KL(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,Wn(o,LL),o}r(rs,"generateListReportSchemaV4");var Rn=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=w(B());var XL=["header","layout","sections","footer"],JL=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function fg(e,t,n,i,o,a,s){let{actionName:c,namespace:l}=Dc(t.item,e),p=mi(t.item),f=t.item.fullyQualifiedName.replace(`@${Rn.UIAnnotationTerms.Identification}`,`/@${Rn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Ie(p)}>`,m=i.definitions[u]={type:"object",$ref:`${O}${v.DefinitionName.ObjectPageHeaderAction}`,description:xt(t.item,o)};m[v.SchemaTag.isViewNode]=!0,m[v.SchemaTag.dataType]=en(t.item),m[v.SchemaTag.propertyIndex]=s,m[v.SchemaTag.keys]=[],t.item[v.SchemaKeyName.semanticObject]&&m[v.SchemaTag.keys].push({name:v.SchemaKeyName.semanticObject,value:t.item[v.SchemaKeyName.semanticObject]}),m[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:c}),l&&(i.definitions[u][v.SchemaTag.target]=l),m[v.SchemaTag.actionType]=n,m[v.SchemaTag.annotationPath]=`/${f}`,a.properties[p]={$ref:`${O}${u}`},a.properties[p][v.SchemaTag.propertyIndex]=s}r(fg,"addSingleHeaderActionV4");function PP(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[v.SchemaTag.isViewNode]=!0,s[v.SchemaTag.propertyIndex]=i,s[v.SchemaTag.keys]=[],s[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:e}),s[v.SchemaTag.actionType]=v.ActionType.Standard,n.properties[o]={$ref:`${O}${a}`},n.properties[o][v.SchemaTag.propertyIndex]=i,s}r(PP,"addStandardHeaderAction");function AP(e,t,n,i,o,a){let s=mi(e.item),c=xt(e.item,n),l=Ie(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Rn.UIAnnotationTerms.Identification}`,`/@${Rn.UIAnnotationTerms.Identification}`),f=i.definitions[l]={type:"object",$ref:`${O}${v.DefinitionName.FooterActionV4}`,description:c};f[v.SchemaTag.isViewNode]=!0,f[v.SchemaTag.actionType]=t,f[v.SchemaTag.propertyIndex]=a,f[v.SchemaTag.annotationPath]=`/${p}`,o.properties[s]={$ref:`${O}${l}`}}r(AP,"addSingleFooterAction");function qL(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Rn.UIAnnotationTypes.DataFieldForAction||i.$Type===Rn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(JL.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(qL,"groupByCriticality");function zL(e,t,n,i,o){for(let a=0;a<e.length;a++)fg(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(zL,"addCriticalActions");function YL(e,t,n,i,o,a){let s=e.findIndex(c=>{var l,p;return((p=(l=c.item.annotations)==null?void 0:l.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(fg(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(YL,"addCopyAction");function ZL(e,t,n,i,o,a){for(let s of e)fg(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(ZL,"addUncriticalActions");function CP(e,t,n,i){var o,a,s,c;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((c=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&c[i])?e[v.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`:e[v.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`}r(CP,"setAnnotationPathFromEntitySetOrEntityType");function eN(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:c=[]}=n?qL(n):{};zL(s,o,t,e,i);let l=xS(a),p=IS(a);if(Oc(a)&&p){let u=PP("Edit",t,i,s.length);CP(u,a,e,"UpdateHidden")}if(l){let u=PP("Delete",t,i,s.length+1);CP(u,a,e,"DeleteHidden")}let f=s.length+2;YL(c,o,t,e,i,f),ZL(c,o,t,e,i,f)}r(eN,"addHeaderActionCallBackV4");function tN(e,t,n,i){let o=[],a=[];i.forEach((s,c)=>{s.Determining&&s.$Type===Rn.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:c,item:s}):a.push({index:c,item:s}))});for(let s=0;s<o.length;s++){let c=o[s];AP(c,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let c=a[s];AP(c,v.ActionType.Annotation,e,t,n,o.length+s)}}r(tN,"addFooterActionCallBackV4");function nN(e,t,n,i,o){let a=va(t),s=t.lastIndexOf("::"),c=s>-1?t.substring(s+2):t,l=ht(v.DefinitionName.ObjectPageTable,t,n);e.entityType&&c&&(l[v.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${c}`),l.properties.columns={$ref:`${O}${a}`},l.properties.toolBar.$ref=tn(v.DefinitionName.ObjectPageToolBar,t),l.properties.quickVariantSelection.$ref=tn(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=ht(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=tn(v.DefinitionName.AnnotationPathAsObject,t),ht(v.DefinitionName.AnnotationPathAsObject,t,n),Ni(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Wo(f,v.DefinitionName.ObjectPageTableColumn),l}r(nN,"handleLineItem");function xP(e,t,n,i,o,a){a&&lp(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=ht(v.DefinitionName.ObjectPageSectionTableV4,t,n);ui(e,s,va(t)),Vi(e,s,va(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=tn(v.DefinitionName.ObjectPageTable,t);let c=nN(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:c}}r(xP,"handleSectionTable");function iN(e,t,n,i,o){let a;o===v.SectionType.Section?a=v.DefinitionName.ObjectPageSectionForm:o===v.SectionType.HeaderSection&&(a=v.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:tn(a,t)};let s=ht(a,t,i);e.ID||(s.properties={}),ui(e,s,t),Vi(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,Nc(o,e,s,i,v.FioriElementsVersion.v4,t)}r(iN,"handleFormIdentification");function EP(e,t,n,i,o){n.properties[t]={$ref:`${O}${o}`};let a=ht(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);ua(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=To(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(EP,"handleHeaderFacet");function oN(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let c=s,l=xt(c,i),p=c.$Type.split(v.UIVOCABULARYDOT)[1],f=c.Action.replace("/","::"),u=o.properties[`${p}::${c.Action}`]={$ref:tn(v.DefinitionName.ObjectPageToolBarAction,f),description:l};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=c.$Type;let m=ht(v.DefinitionName.ObjectPageToolBarAction,Ie(f),n);m[v.SchemaTag.annotationPath]=Mc(c),m[v.SchemaTag.dataType]=en(c),m.properties={},a++})}return o}r(oN,"handleChartActions");function aN(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=Mc(e),o[v.SchemaTag.dataType]=To(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=tn(v.DefinitionName.ObjectPageToolBar,t);let a=ht(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=tn(v.DefinitionName.ObjectPageToolBarActions,t);let s=oN(e,t,n,i);return{chart:o,chartActions:s}}r(aN,"handleChart");function IP(e,t,n,i,o=e.entityType,a=!1,s){let c=a?v.DefinitionName.CommonHeaderFacetSettings:v.DefinitionName.ObjectPageSectionChart,l=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart;i&&lp(i,t,c);let p=fr(l,t),f=ht(c,p,n,!1);if(ua(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=Mc(e),f.properties.chart.$ref=tn(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=aN(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(IP,"handleSectionChart");function rN(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${kf(o,n.serviceAVT)}`,c=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:c}}r(rN,"getVisualizationKeyAndType");function sN(e,t,n){var o,a;return(a=(o=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:o.annotations)==null?void 0:a.UI[n]}r(sN,"getTargetFromNavigation");function cN(e,t,n){let i=e.target[v.FacetBase.PresentationVariant]?e.target[v.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let o=i[0].$target,a=o||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:c,type:l}=rN(!!o,a,n),p=o?a:sN(n,s,l),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:c,type:l,target:p,namespace:f,navigationPath:s}}r(cN,"getVisualizationProps");function lp(e,t,n,i){e.properties[t]={$ref:tn(n,i||t)}}r(lp,"addPropertyRef");function OP(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(OP,"getSectionPropertyRef");function lN(e,t,n,i,o,a){let{propertyKey:s,navigationKey:c}=OP(t,o);lp(i,s,v.DefinitionName.ObjectPageSectionTableV4,c);let{sectionTable:l,table:p}=xP(e,c,n,{target:o.target,entityType:e.entityType},a);l[v.SchemaTag.annotationPath]=e.annotationPath,ua(e,l,t),delete l[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(lN,"addPVLineItemSection");function pN(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:c,navigationKey:l}=OP(t,o);lp(i,c,s,l);let{parentChartRef:p}=IP(o.target,l,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ui(e,p,t),XT(e,p)):ua(e,p,t)}r(pN,"addPVChartSection");function fN(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){_(a.logger,{severity:v.LogSeverity.Error,message:R.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=cN(e,t,a),l=o===v.SectionType.HeaderSection;c&&(c.type.startsWith(v.Visualization.Chart)?pN(e,t,n,i,c,l):c.type.startsWith(v.Visualization.LineItem)&&lN(e,t,n,i,c,a))}r(fN,"handleSectionPresentationVariant");function uN(e,t,n,i,o,a,s){let c=o;e.additionalProperties={$ref:`${O}${c}`},bP(t,e,i,c,s,n.logger);let l=t.definitions[c];typeof l=="object"&&MS(t,e,{schema:l,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(uN,"applyCustomSections");function ug(e,t,n,i,o,a,s){let c=t[n],l=`ObjectPage${a}${c.base}<${va(n)}>`;switch(c.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{fN(c,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{dN(c,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];xP(c,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{iN(c,n,i,o,a);break}case v.FacetBase.DataPoint:{EP(c,n,i,o,l);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?EP(c,n,i,o,l):a===v.SectionType.Section&&IP(c,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{ur(c,n,i,o,a);break}default:i.properties[n]=Hn(o,c,n)}}r(ug,"addSection");function dN(e,t,n,i,o,a,s){let c=i.properties[t]=Hn(n,e,t);c.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let l=c.properties.subsections;l[v.SchemaTag.annotationPath]=e.annotationPath,l[v.SchemaTag.target]=e.namespace,l[v.SchemaTag.keys]=[{name:v.SchemaKeyName.id,value:e.ID}],l[v.SchemaTag.isViewNode]=!0;for(let p in e.facets)ug(a,e.facets,p,l,n,o,s)}r(dN,"handleCollection");function gN(e,t,n){let i=gc(e.entitySet.entityType,e.serviceAVT,v.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[v.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[v.DefinitionName.Sections];for(let a in i)ug(e,i,a,o,t,v.SectionType.Section,n);uN(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(gN,"addSections");function mN(e,t,n,i){let o=dc(n,e.serviceAVT,v.FioriElementsVersion.v4,e.logger),a=t.definitions[v.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)ug(e,o,s,a,t,v.SectionType.HeaderSection,i);delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionAddress]}}r(mN,"addHeaderSections");function yN(e,t,n){let i=e.entitySet.entityType;wc(t,i),jc(t,i,e.entitySet,e.serviceAVT,eN),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Rn.UIAnnotationTerms.HeaderFacets}`),mN(e,t,i,n)}r(yN,"addHeader");function ss(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${O}${v.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[v.ManifestSection.ui5].routing||!e.manifest[v.ManifestSection.ui5].routing.targets)return _(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:v.MANIFESTPATH}}),i;let o=i.definitions[v.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:v.DefinitionName.Sections};if(o[v.SchemaTag.isViewNode]=!0,n){let a=e.manifest[v.ManifestSection.ui5].routing.targets;if(!a)return _(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:v.MANIFESTPATH,range:[v.ManifestSection.generic]}}),i;let s=sp(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;yN(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Rn.UIAnnotationTerms.Facets}`),gN(e,i,s),Rc(i,e,v.FioriElementsVersion.v4,tN)}return delete i.definitions[v.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[v.DefinitionName.GenericColumnsOP],delete i.definitions[v.DefinitionName.GenericSections],delete i.definitions[v.DefinitionName.ObjectPageChart],delete i.definitions[v.DefinitionName.ObjectPageSectionAddress],delete i.definitions[v.DefinitionName.ObjectPageSectionChart],delete i.definitions[v.DefinitionName.ObjectPageSectionContact],delete i.definitions[v.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[v.DefinitionName.ObjectPageSectionForm],delete i.definitions[v.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[v.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[v.DefinitionName.ObjectPageSubSections],delete i.definitions[v.DefinitionName.ObjectPageTable],delete i.definitions[v.DefinitionName.ObjectPageToolBar],delete i.definitions[v.DefinitionName.ObjectPageToolBarAction],delete i.definitions[v.DefinitionName.ObjectPageToolBarActions],delete i.definitions[v.DefinitionName.QuickVariantSelectionV4OP],Wn(i,XL),i}r(ss,"generateObjectPageSchemaV4");function dg(e,t){return JSON.parse(JSON.stringify(t))}r(dg,"generateFreestyleSchemaV4");var Tn=w(B());function gg(e,t,n,i,o,a){let s=In(n,o),c=xi(t,s);c||_(o,{severity:Tn.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:t})});let l={templateType:Tn.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:c,entityType:c==null?void 0:c.entityType};return ss(l,e,c)}r(gg,"generateObjectPageInterfaceV4");function pp(e,t,n,i,o,a){qe();let s=In(i,o),c=s==null?void 0:s.entitySets.find(f=>f.name===n),l={templateType:e,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:c,entityType:c.entityType},p=e===Tn.TemplateType.ListReportObjectPageV4?Tn.v4.FE_TEMPLATE_V4_LIST_REPORT:Tn.v4.FE_TEMPLATE_V4_ALP;return rs(l,t,c,p)}r(pp,"generateListReportInterfaceV4");function mg(e,t,n,i,o,a){let s=In(n,a),c={templateType:e,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return dg(c,t)}r(mg,"generateFreestyleInterfaceV4");var cs=require("@sap-ux/vocabularies-types/vocabularies/UI"),FP=w(B());var $e=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),dp=r(e=>$e(e)+"/views/paths","getSettingsPathForLRViewsPaths"),yg=r(e=>$e(e)+"/content/header","getSettingsPathForHeaderOP"),ei=r(e=>$e(e)+"/controlConfiguration","getControlConfigurationPath"),gp=r((e,t,n)=>ei(e)+`/@${cs.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),jn=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),wn=r((e,t,n,i,o)=>o?jn(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),mp=r((e,t,n,i,o)=>wn(e,t,n,i,o)+FP.QUICKVARPATH,"getQuickVariantPath"),Jt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Mt=r((e,t,n,i,o)=>o?Jt(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),hg=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),yp=r((e,t,n,i,o)=>o?hg(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Qo=r((e,t,n,i)=>ei(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),VP=r((e,t,n,i)=>ei(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),vt=r((e,t,n)=>ei(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),ls=r((e,t,n,i)=>{let o=$e(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),up=class up{};r(up,"ApplicationV4"),d([_e("settings")],up.prototype,"settings",2);var fp=up,to=class to{};r(to,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],to.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],to.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],to.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),S({since:"1.78.0"})],to.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"})],to.prototype,"flexEnabled",2);var Ga=to;var te=w(B());function Ze(e,t,n,i,o,a,s){if(!n)return;let c={},l=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let f in n.properties){let u=pt(e,f);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,p,...o);c=fi(t,m,a,p,!0),c&&Object.keys(c).length>0&&(ha(u,c,f,e,a,o),Tc(l,c,m,s))}}}r(Ze,"importSettingsOfObject");var um={};ta(um,{ALPChart:()=>Sg,ALPTable:()=>Ka,ActionAfterExecutionConfiguration:()=>Ng,ActionAfterExecutionConfigurationOP:()=>As,ActionAfterExecutionConfigurationToolBarLR:()=>Hg,Actions:()=>Ug,CommonHeaderFacetSettings:()=>io,CommonViewSettings:()=>Qa,FilterBar:()=>Kg,FlexSettings:()=>qg,HeaderSections:()=>nm,LRChartView:()=>vg,LRTableView:()=>Pg,MultiTableModeV4:()=>Cg,ObjectPageCustomSectionFragment:()=>Is,ObjectPageHeader:()=>Jg,ObjectPageHeaderSectionAddress:()=>tm,ObjectPageHeaderSectionChart:()=>Yg,ObjectPageHeaderSectionContact:()=>em,ObjectPageHeaderSectionDataPoint:()=>Zg,ObjectPageHeaderSectionForm:()=>zg,ObjectPageLayout:()=>lm,ObjectPageTable:()=>xs,ObjectPageTableColumn:()=>Xa,ObjectPageTableColumnAction:()=>Xg,ObjectPageToolBarAction:()=>Qg,Position:()=>jg,QuickVariantSelectionV4:()=>Tg,QuickVariantSelectionV4OP:()=>fm,Table:()=>Eg,TableColumn:()=>vp,TableColumnAction:()=>Dg,TableCreationModeOP:()=>pm,TableCustomColumn:()=>$g,TableSettings:()=>hp,TableViewExtension:()=>Ag,TableViewSettings:()=>ds,ToolBar:()=>kg,ToolBarAction:()=>Gg,ViewPosition:()=>wg,ViewTableColumn:()=>Pp,ViewTableColumnAction:()=>Rg,ViewTableCustomColumn:()=>Mg,ViewToolBarAction:()=>Wg,checkViewOrder:()=>Ig,deleteCreationModeCreateAtEnd:()=>Lg,deleteCreationModeName:()=>Og,exportCreationModeCreateAtEnd:()=>Vg,exportCreationModeName:()=>xg,exportPersonalization:()=>TN,exportPersonalizationProperty:()=>SN});var bg=w(B());var hN=r((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 ti(e,t,n,i,o,a){let s=dp(e),c=hN(JSON.parse(JSON.stringify(t)),s),l;for(let p=0;p<c.length;p++){let f=c[p];if(f&&(f[bg.SchemaTag.key]===(a==null?void 0:a.key)||f[bg.SchemaTag.key]===i)){l=`${s}/${p}`;break}}return l||(l=`${s}/[]`),l}r(ti,"getSettingsPathForLRViewsPath");function xg(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(xg,"exportCreationModeName");function bN(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),c=Object.keys(e);for(let l of c){let p=Number(l),f=e[l];t===f.key?s[n]=f:p>=i&&p<=o?s[Math.max(0,p+a)]=f:s[l]=f}return s}r(bN,"fillNewlyOrderedViews");function Ig(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),o=t.index;if(i>-1&&i!==o){let a=o>i?-1:1,s=Math.min(Number(i),o),c=Math.max(Number(i),o),l=bN(e,n,o,s,c,a);for(let p of Object.keys(l))e[p]=l[p]}}r(Ig,"checkViewOrder");function TN(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(TN,"exportPersonalization");function SN(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(SN,"exportPersonalizationProperty");function Og(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}r(Og,"deleteCreationModeName");function Fg(e,t,n,i,o,a){var c;let s;if(!t||Object.keys(t).length===0){let l=e;Object.keys(l).forEach(p=>{l[p]&&l[p].key===o&&(e[Number(p)]={},s=p)})}if(s){let l=(c=a.table)==null?void 0:c.views;for(let p in l)l[p].index>s&&l[p].index--}}r(Fg,"deleteView");function Vg(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}r(Vg,"exportCreationModeCreateAtEnd");function Lg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(Lg,"deleteCreationModeCreateAtEnd");function LP(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(LP,"determineIndexOfView");var Wa=class Wa{};r(Wa,"QuickVariantSelectionV4"),d([g({manifest:{path:mp}})],Wa.prototype,"paths",2),d([g({manifest:{path:mp}})],Wa.prototype,"hideTableTitle",2),d([g({manifest:{path:mp}})],Wa.prototype,"showCounts",2);var Tg=Wa,Sn=class Sn{};r(Sn,"TableSettings"),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sn.prototype,"type",2),d([g({manifest:{path:wn}}),S({since:"1.86.0"})],Sn.prototype,"personalization",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Sn.prototype,"selectionMode",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"selectAll",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"selectionLimit",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Sn.prototype,"enableExport",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"quickVariantSelection",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Sn.prototype,"condensedTableLayout",2),d([g({manifest:{path:wn}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sn.prototype,"hierarchyQualifier",2);var hp=Sn,bp=class bp{};r(bp,"ALPChart"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/primary/0","path"),delete:Fg}})],bp.prototype,"annotationPath",2);var Sg=bp,Ko=class Ko{};r(Ko,"CommonViewSettings"),d([g({manifest:{path:ti,delete:lo}})],Ko.prototype,"key",2),d([g({manifest:{path:dp,import:LP,export:r((t,n)=>{Ig(t,n)},"export"),delete:Fg}})],Ko.prototype,"index",2),d([g({manifest:{path:ti,delete:lo}})],Ko.prototype,"annotationPath",2),d([g({manifest:{path:ti}})],Ko.prototype,"entitySet",2);var Qa=Ko,vn=class vn extends Qa{};r(vn,"TableViewSettings"),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"type",2),d([g({manifest:{path:jn}}),S({since:"1.86.0"})],vn.prototype,"personalization",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectionMode",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectAll",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectionLimit",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],vn.prototype,"enableExport",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"quickVariantSelection",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],vn.prototype,"condensedTableLayout",2),d([g({manifest:{path:jn}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vn.prototype,"hierarchyQualifier",2);var ds=vn;function vN(e){return ds}r(vN,"getTableViewSettings");var ps=class ps extends ds{};r(ps,"ALPTable"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:lo}})],ps.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ps.prototype,"initialLoad",2);var Ka=ps,Tp=class Tp extends Qa{};r(Tp,"LRChartView"),d([g({manifest:{path:ti},generate:Qn})],Tp.prototype,"visible",2);var vg=Tp,fs=class fs extends vN(Qa){};r(fs,"LRTableView"),d([g({manifest:{path:ti}})],fs.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:ti},generate:Qn})],fs.prototype,"visible",2);var Pg=fs,no=class no{};r(no,"TableViewExtension"),d([g({manifest:{path:ti}})],no.prototype,"key",2),d([g({manifest:{path:dp,import:LP,export:r((t,n)=>{Ig(t,n)},"export"),delete:Fg}})],no.prototype,"index",2),d([g({manifest:{path:ti}})],no.prototype,"label",2),d([g({manifest:{path:ti}})],no.prototype,"template",2),d([g({manifest:{path:ti},generate:Qn})],no.prototype,"visible",2);var Ag=no,Sp=class Sp{};r(Sp,"MultiTableModeV4"),d([g({manifest:{path:r(t=>$e(t)+"/views","path")}})],Sp.prototype,"showCounts",2);var Cg=Sp,us=class us extends hp{};r(us,"Table"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:lo}})],us.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],us.prototype,"initialLoad",2);var Eg=us;var gs=class gs{};r(gs,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],gs.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}})],gs.prototype,"enableAutoScroll",2);var Ng=gs,ms=class ms{};r(ms,"TableColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ms.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ms.prototype,"availability",2);var vp=ms,ys=class ys{};r(ys,"ViewTableColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ys.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ys.prototype,"availability",2);var Pp=ys,Ap=class Ap extends vp{};r(Ap,"TableColumnAction"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],Ap.prototype,"afterExecution",2);var Dg=Ap,Cp=class Cp extends Pp{};r(Cp,"ViewTableColumnAction"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],Cp.prototype,"afterExecution",2);var Rg=Cp,hs=class hs{};r(hs,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],hs.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],hs.prototype,"placement",2);var jg=hs,bs=class bs{};r(bs,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],bs.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],bs.prototype,"placement",2);var wg=bs,ni=class ni{};r(ni,"TableCustomColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"position",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"header",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ni.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"template",2),d([g({manifest:{path:Mt}}),S({since:"1.86.0"})],ni.prototype,"horizontalAlign",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"availability",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ni.prototype,"properties",2);var $g=ni,ii=class ii{};r(ii,"ViewTableCustomColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"position",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"header",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ii.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"template",2),d([g({manifest:{path:Jt}}),S({since:"1.86.0"})],ii.prototype,"horizontalAlign",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"availability",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ii.prototype,"properties",2);var Mg=ii;var _g=class _g{};r(_g,"Actions");var Ug=_g,Bg=class Bg{};r(Bg,"ToolBar");var kg=Bg;var Ts=class Ts{};r(Ts,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>yp(t,n,i,o,a)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ts.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>yp(t,n,i,o,a)+"/afterExecution","path")}})],Ts.prototype,"enableAutoScroll",2);var Hg=Ts,Ep=class Ep{};r(Ep,"ToolBarAction"),d([g({manifest:{path:yp}})],Ep.prototype,"enableOnSelect",2);var Gg=Ep,xp=class xp{};r(xp,"ViewToolBarAction"),d([g({manifest:{path:hg}})],xp.prototype,"enableOnSelect",2);var Wg=xp;var Ip=class Ip{};r(Ip,"ObjectPageToolBarAction"),d([g({manifest:{path:VP}})],Ip.prototype,"enableOnSelect",2);var Qg=Ip;var Op=class Op{};r(Op,"FilterBar"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.99.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Op.prototype,"hideFilterBar",2);var Kg=Op;var Ss=class Ss{};r(Ss,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ss.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/afterExecution","path")}})],Ss.prototype,"enableAutoScroll",2);var As=Ss,vs=class vs{};r(vs,"ObjectPageTableColumn"),d([g({manifest:{path:Qo}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],vs.prototype,"width",2),d([g({manifest:{path:Qo}}),S({since:"1.85.0"})],vs.prototype,"availability",2);var Xa=vs,Ps=class Ps extends Xa{};r(Ps,"ObjectPageTableColumnAction"),d([g({manifest:{path:Qo}}),S({since:"1.84.0"})],Ps.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/position","path")}}),S({since:"1.84.0"})],Ps.prototype,"placement",2);var Xg=Ps;var Xo=class Xo{};r(Xo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Xo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Xo.prototype,"showRelatedApps",2),d([g({manifest:{path:yg}}),S({since:"1.84.0"})],Xo.prototype,"visible",2),d([g({manifest:{path:yg}}),S({since:"1.84.0"})],Xo.prototype,"anchorBarVisible",2);var Jg=Xo;var Fp=class Fp{};r(Fp,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>gp(t,n,i)+"/flexSettings","path")}}),S({since:"1.81.0"}),ce("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Fp.prototype,"designtime",2);var qg=Fp,Cs=class Cs{};r(Cs,"CommonHeaderFacetSettings"),d([g({manifest:{path:gp}}),S({since:"1.81.0"})],Cs.prototype,"stashed",2),d([g({manifest:{path:gp}}),S({since:"1.81.0"})],Cs.prototype,"flexSettings",2);var io=Cs,im=class im extends io{};r(im,"ObjectPageHeaderSectionForm");var zg=im,om=class om extends io{};r(om,"ObjectPageHeaderSectionChart");var Yg=om,am=class am extends io{};r(am,"ObjectPageHeaderSectionDataPoint");var Zg=am,rm=class rm extends io{};r(rm,"ObjectPageHeaderSectionContact");var em=rm,sm=class sm extends io{};r(sm,"ObjectPageHeaderSectionAddress");var tm=sm,cm=class cm{};r(cm,"HeaderSections");var nm=cm;var Vp=class Vp{};r(Vp,"ObjectPageLayout"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Vp.prototype,"sectionLayout",2);var lm=Vp;var Lp=w(B());var Es=class Es{};r(Es,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{xg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Og(t,o)},"delete")}})],Es.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{Vg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Lg(t,o)},"delete")}})],Es.prototype,"createAtEnd",2);var pm=Es,Ja=class Ja{};r(Ja,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"showCounts",2);var fm=Ja,qt=class qt{};r(qt,"ObjectPageTable"),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"type",2),d([g({manifest:{path:vt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),S({since:"1.84.0"})],qt.prototype,"creationMode",2),d([g({manifest:{path:vt}}),S({since:"1.86.0"})],qt.prototype,"personalization",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectionMode",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectAll",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectionLimit",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],qt.prototype,"enableExport",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"quickVariantSelection",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],qt.prototype,"condensedTableLayout",2),d([g({manifest:{path:vt}}),S({since:"1.86.0"})],qt.prototype,"enablePaste",2),d([g({manifest:{path:vt}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qt.prototype,"hierarchyQualifier",2);var xs=qt;var Jo=class Jo{};r(Jo,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>ls(t,n,i,"position"),"path"),key:"anchor"}}),S({since:"1.77.0"})],Jo.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>ls(t,n,i,"position"),"path"),key:"placement"}}),S({since:"1.77.0"})],Jo.prototype,"relativePosition",2),d([g({manifest:{path:ls}}),S({since:"1.77.0"})],Jo.prototype,"title",2),d([g({manifest:{path:ls,key:"name"}}),S({since:"1.77.0"})],Jo.prototype,"fragmentName",2);var Is=Jo;var ym={};ta(ym,{FreestylePage:()=>gm,ListReport:()=>Pn,ObjectPage:()=>$n});function PN(e){var t,n,i,o;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(o=(i=e.paths)==null?void 0:i[0])!=null&&o.secondary)&&Object.keys(e).forEach(a=>delete e[a])}r(PN,"deleteAllALPViews");function AN(){}r(AN,"doNotExport");function CN(){}r(CN,"doNotImport");var Pn=class{};r(Pn,"ListReport"),d([g({manifest:{path:r(t=>$e(t)+"/views","path"),import:CN,export:AN,delete:PN}})],Pn.prototype,"chart",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Pn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/[]/0","path")}}),ce("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Pn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}})],Pn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],Pn.prototype,"filterBar",2),Pn=d([Qt({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Pn);var dm=w(B());var $n=class{};r($n,"ObjectPage"),d([_e("header")],$n.prototype,"header",2),d([_e("layout")],$n.prototype,"layout",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],$n.prototype,"variantManagement",2),d([_e("sections")],$n.prototype,"sections",2),$n=d([Qt({id:`${dm.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:dm.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],$n);var mm=class mm{};r(mm,"FreestylePage");var gm=mm;var Np=w(B());var EN={ALPTableView:Ka},xN={ALPTableView:Ka},IN={Table:xs,TableColumn:Xa,ObjectPageCustomSectionView:Is,ActionAfterExecutionConfiguration:As},ON={[Np.PageTypeV4.AnalyticalListPage]:EN,[Np.PageTypeV4.ListReport]:xN,[Np.PageTypeV4.ObjectPage]:IN},hm=class hm extends Ba{constructor(){super(um,ym,ON)}};r(hm,"MetadataInstanceFactoryV4");var Ii=hm;var bm=require("@sap-ux/vocabularies-types/vocabularies/UI");function Tm(e,t,n,i,o,a,s){var f,u,m,h,T,F;let c=t.jsonSchema.definitions,l=a&&a!==`@${bm.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,p=c[l];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let L in p.properties){let ne=c[l].properties[L].$ref.split(O)[1].split("<")[0];e.columns[L]=n.createInstance(i,ne);let q=s||a;Ze(e.columns[L],t.manifest,c[ne],o,[L,q],q,t.logger),fo(e.columns,L)}fo(e,"columns")}else{let L=(F=(T=(h=(m=(u=(f=t.manifest["sap.ui5"])==null?void 0:f.routing)==null?void 0:u.targets)==null?void 0:m[o])==null?void 0:h.options)==null?void 0:T.settings)==null?void 0:F.views;(!L||L.paths.length<1)&&_(t.logger,{severity:te.LogSeverity.Error,message:R.t("NOLINEITEMS")})}}r(Tm,"transferColumns");function FN(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let c=e.jsonSchema.definitions,l=s;!l&&[te.DefinitionName.LineItems,`${te.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(l=`@${bm.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=c[`${te.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let f in p.properties){let u=p.properties[f];if(typeof u=="object"&&u.$ref){let m=ga(u.$ref),h=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,h),Ze(t.toolBar.actions[f],e.manifest,c[m],o,[f,l]),fo(t.toolBar.actions,f)}}}r(FN,"importActions");function NP(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let c=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),l;!s&&t&&"table"in t?l=t.table:l=t,l.toolBar=c,Ze(l.toolBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.ToolBarLR],o,[]),FN(e,l,n,i,o,a,s),fo(l.toolBar,"actions"),fo(l,"toolBar")}r(NP,"transferToolBar");function DP(e,t){var o;let n=(o=e[t])==null?void 0:o[te.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}r(DP,"determineTargetAnnotationOfView");function VN(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,te.DefinitionName.ALPChart);let s=a[te.DefinitionName.ALPChart],c=s[te.SchemaTag.annotationPath];Ze(t.chart,e.manifest,s,o,[s[te.SchemaTag.key],c==null?void 0:c.substr(c.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),Ze(t.chart.toolBar,e.manifest,a[te.DefinitionName.ViewChartToolBar],o,[]);let l=a[te.DefinitionName.ALPTable][te.SchemaTag.annotationPath];if(l){let p=a[te.DefinitionName.ALPTable],f=t.table=n.createInstance(i,te.DefinitionName.ALPTable);NP(e,t,n,i,o);let u=l.substr(l.lastIndexOf("@"));Ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),Tm(f,e,n,i,o,void 0,u)}}r(VN,"importALPViews");function LN(e){let t;return e.indexOf(te.DefinitionName.LRTableView)>-1?t=te.DefinitionName.LRTableView:e.indexOf(te.DefinitionName.LRChartView)>-1?t=te.DefinitionName.LRChartView:e===te.DefinitionName.TableViewExtension&&(t=te.DefinitionName.TableViewExtension),t}r(LN,"getViewTypeByDefinition");function NN(e,t,n,i,o){let a=t.table.views=n.createInstance(i,te.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ze(a,e.manifest,s[te.DefinitionName.MultiTableModeV4],o,[]);let c=s[te.DefinitionName.MultiTableModeV4].properties,l=Object.entries(c).sort((p,f)=>p[1][te.SchemaTag.propertyIndex]-f[1][te.SchemaTag.propertyIndex]);for(let p of l)if(p[1].$ref){let f=p[1].$ref.split(O)[1],u=LN(f),m=a[p[0]]=n.createInstance(i,u),h=DP(s,f);s[f].entitySet||(Ze(m,e.manifest,s[f],o,[p[0],h]),u===te.DefinitionName.LRTableView&&Tm(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,h)),Object.keys(m).length===0&&delete a[p[0]]}fo(t.table,"views")}r(NN,"importLRViews");function DN(e,t,n,i,o,a){if(Ze(t,e.manifest,e.jsonSchema,o,[]),t.filterBar=n.createInstance(i,te.DefinitionName.FilterBar),Ze(t.filterBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.FilterBar],o,[]),a===te.SchemaType.ListReport){let s=te.DefinitionName.Table,c=e.jsonSchema.definitions[s],l;c.$ref&&(s=c.$ref.split(O)[1],c=e.jsonSchema.definitions[s],l=c.properties.columns.$ref.split(O)[1]),t.table=n.createInstance(i,te.DefinitionName.Table);let p=DP(e.jsonSchema.definitions,s);Ze(t.table,e.manifest,c,o,[s,p]),NP(e,t,n,i,o,l),Tm(t.table,e,n,i,o,l,p),NN(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&VN(e,t,n,i,o)}r(DN,"addSettings");function qo(e,t){if(qe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){_(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let n=e.manifest[te.ManifestSection.ui5].routing.targets;if(!n){_(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new Ii,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],c=Ff(s);if("name"in s&&(c===te.PageTypeV4.ListReport||c===te.PageTypeV4.AnalyticalListPage)){DN(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(qo,"createListReportConfig");var le=w(B()),Os=require("@sap-ux/vocabularies-types/vocabularies/UI");function Sm(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${Os.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${Os.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(Sm,"getManifestId");function vm(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(vm,"getDefinitionId");function RN(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,c=e.jsonSchema.definitions[vm(a)];if(c)for(let l in c.properties){c.properties[l].$ref.indexOf(le.DefinitionName.CustomColumnOP)>-1?s=le.DefinitionName.CustomColumnOP:s=le.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(le.PageTypeV4.ObjectPage,s);Ze(f,e.manifest,e.jsonSchema.definitions[s],e.routingId,[l],a),Object.keys(f).length>0&&(n[i].table.columns[l]=f)}}}r(RN,"fillTableColumnsInConfig");function jN(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${le.DefinitionName.Actions}<${vm(o)}>`];if(a)for(let s in a.properties){let c=a.properties[s];if(typeof c=="object"&&c.$ref){let l=ga(c.$ref),p=l.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(le.PageTypeV4.ObjectPage,p),Ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[l],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(jN,"fillTableActionsInConfig");function RP(e,t,n,i,o,a){let s=a||Sm(i),c=t.controlConfiguration[s];if(c){n[i]={},n[i].table=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageTable);let l=`${le.DefinitionName.ObjectPageTable}<${a?vm(a):i.replace("#","::")}>`;Ze(n[i].table,e.manifest,e.jsonSchema.definitions[l],e.routingId,[],s),n[i].table.toolBar=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ToolBar,{actions:{}}),jN(e,i,n,o,s),RN(e,c,n,i,o,s)}}r(RP,"fillTableInConfig");function wN(e,t,n,i,o){var c;let a=Sm(i);((c=t.controlConfiguration)==null?void 0:c[a])&&(n[i]={},n[i].form=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageForm,{actions:{}}))}r(wN,"fillFormInConfig");function jP(e,t,n,i,o){var a,s,c,l;for(let p in t){let f=t[p],u=p;if(p.includes(Os.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(O+le.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(O)[1];u=m?Sm(m,!0):p,RP(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(O+le.DefinitionName.ObjectPageSectionTableV4)?RP(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},jP(e,f.properties.subsections.properties,n,i[p].subsections,o)):(c=f.$ref)!=null&&c.startsWith(O+le.DefinitionName.ObjectPageSectionForm)&&((l=f.$ref)!=null&&l.includes(`@${Os.UIAnnotationTerms.FieldGroup}::`))&&wN(e,n,i,p,o)}}r(jP,"fillSectionsInConfig");function $N(e,t,n,i){var a,s;let o=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(o)for(let c in o){if("subSections"in o[c])continue;let p=i.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageCustomSectionFragment);Ze(p,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],c),n.sections[c]=p}}r($N,"fillCustomSectionsInConfig");function MN(e,t,n,i,o){var s,c;let a=e.definitions[le.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let l in a.properties){let p=a.properties[l],f,u=(s=a.properties[l].$ref)==null?void 0:s.split(O)[1];u&&(p=e.definitions[u],f=u.split("<")[0]),(f==null?void 0:f.includes(le.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[l]=f?n.createInstance(le.PageTypeV4.ObjectPage,f):{},Ze(t.header.sections[l],i,p,o,[],(c=p==null?void 0:p.title)==null?void 0:c.split(le.FACETTITLEPREFIX)[1]))}}}r(MN,"fillHeaderFacets");function UN(e,t,n){let i=n.createPageInstance(le.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageHeader),Ze(i.header,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageLayout),Ze(i.layout,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageLayout],e.routingId,[]),Ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[le.DefinitionName.Sections]&&(i.sections={},jP(e,e.jsonSchema.definitions[le.DefinitionName.Sections].properties,o,i.sections,n)),$N(e,o,i,n),MN(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(UN,"fillObjectPageConfig");function Dp(e){if(qe(),!e.manifest[le.ManifestSection.ui5]||!e.manifest[le.ManifestSection.ui5].routing){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5]}});return}let t=e.manifest[le.ManifestSection.ui5].routing.targets;if(!t){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOROUTINGID",{routingId:e.routingId}),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let i=new Ii;return UN(e,n,i)}r(Dp,"createObjectPageConfigV4");var he=w(B());var Pm=[],Rp={};function kN(e,t){let n=e.target,i=t.target,o=Array.isArray(n),a=Array.isArray(i);return o&&a?n.length-i.length:!o&&!a?0:o?1:-1}r(kN,"routesSorter");function Am(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(o=>!i.includes(o));return n[0]}r(Am,"resolveTarget");function _N(e){let t={};e=e.concat().sort(kN);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Am(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let c=s.split("(")[0];t[a]=t[a]?`${t[a]}.${c}`:c}}return t}r(_N,"populateAssociations");function BN(e,t,n){let i;return e.name?e.name===he.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=he.PageTypeV4.CustomPage:e.name.endsWith(he.PageTypeV4.ListReport)||e.name.endsWith(he.PageTypeV4.AnalyticalListPage)?i=he.PageTypeV4.ListReport:e.name.endsWith(he.PageTypeV4.ObjectPage)?i=he.PageTypeV4.ObjectPage:i=he.PageTypeV4.CustomPage:"viewId"in e?i=he.PageTypeV4.CustomPage:(_(t,{severity:he.LogSeverity.Error,message:R.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:he.MANIFESTPATH,range:[`${he.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in he.ViewTypes&&"viewName"in e&&(i=he.PageTypeV4.CustomPage)),i}r(BN,"determinePageType");function HN(e){let t=da(e.page.pageType,e.page.entitySet,e.target.viewId||e.pageType===he.PageTypeV4.CustomPage&&e.target.id);if(!t)return;let n=Object.keys(e.schemas).find(i=>i.includes(t))||Object.keys(e.schemas).find(i=>i.includes(t.slice(0,-1)))||Object.keys(e.schemas).find(i=>i.includes(e.page.pageType));if(n){if(e.page.pageType===he.PageTypeV4.ObjectPage){let i={manifest:e.manifest,jsonSchema:e.schemas[n],routingId:e.id,logger:e.logger};e.page.config=Dp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=qo(i,he.SchemaType.ListReport)}else if(e.templateType===he.TemplateType.AnalyticalListPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=qo(i,he.SchemaType.AnalyticalListPage)}else if(e.templateType===he.TemplateType.FreestylePageV4&&e.page.pageType===he.PageTypeV4.ListReport){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger},a=pr(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=qo(i,a)}}}r(HN,"convertSettingsToConfig");function GN(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Pm.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Pm.push(t[t.length-1])}}r(GN,"updateUnhandledControllers");function WN(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}}}r(WN,"setVariantManagmentAndNavigation");function QN(e,t,n){var i,o;if("viewId"in e)t.view={id:e.viewId,name:e.viewName};else if(n===he.PageTypeV4.CustomPage){let a=((o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a}}}}r(QN,"evaluateCustomPageSettings");function KN(e,t,n,i){var p;let o=e.targets[t],a=BN(o,i.logger,t),s={pageType:a};if(o.options&&(s.entitySet=(p=o.options.settings)==null?void 0:p.entitySet),o.controlAggregation&&(s.controlAggregation=o.controlAggregation),Rp[t]&&Rp[t].indexOf(".")!==-1){let f=Rp[t].split(".");s.navigationProperty=f[f.length-1]}QN(o,s,a),WN(o,s),GN(o);let c=e.routes.find(f=>(f==null?void 0:f.target)&&f.target.indexOf(t)>-1);c&&(s.routePattern=c.pattern,"layout"in c&&(s.defaultLayoutType=c.layout)),!("template"in(s.view??{}))&&"name"in o&&o.name&&(s.template=o.name),n[t]=s;let l={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};HN(l)}r(KN,"getSinglePageAndConfig");function wP(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=R.t("NOROUTING");return _(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}Rp=_N(n.routes||[]);for(let i in n.targets)KN(n,i,t,e);return t}r(wP,"getPagesAndConfigs");function $P(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 Am(t?t.target:e.routes[0].target)}else return}r($P,"getHome");function MP(e){var t,n,i,o;if((t=e==null?void 0:e.config)!=null&&t.flexibleColumnLayout||(n=e==null?void 0:e.config)!=null&&n.viewPath)return{flexibleColumnLayout:(i=e==null?void 0:e.config)==null?void 0:i.flexibleColumnLayout,...((o=e==null?void 0:e.config)==null?void 0:o.viewPath)&&{viewPath:e.config.viewPath}}}r(MP,"getSettings");function Fs(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];mc(t,a.name)&&(i[o]=a)}return i}r(Fs,"getPages");var Cm=class Cm extends Ri{constructor(t){qe();let n=new Ga,i=Ye(he.SchemaType.Application),o=t.appSchemas[i.filename];Ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,$P(t.manifest[he.ManifestSection.ui5].routing),wP(t),{...MP(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Pm}};r(Cm,"V4AppProvider");var qa=Cm;var UP=require("fs"),zo=require("path"),kP=w(B()),Em=w(B());var _P=r((e,t,n=__dirname)=>{let i=t===Em.SchemaType.Application?`${Em.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,zo.join)(n,"schemas",e,i);if(n.endsWith((0,zo.join)("specification","packages","specification")))return(0,zo.join)(n,"dist","schemas",e,i);if(n.endsWith((0,zo.join)("src","specification")))return(0,zo.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,zo.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),XN=r(async e=>new Promise((t,n)=>{(0,UP.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),jp=r(async(e,t)=>{try{let n=_P(e||kP.FioriElementsVersion.v4,t,__dirname);return await XN(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function JN(e,t){let n={},i=[];switch(i=[Q.SchemaType.Application],e){case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.AnalyticalListPageV4:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.FreestylePageV4:i.push(Q.SchemaType.FreestylePage),t===Q.FioriElementsVersion.v4&&i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.ListReportObjectPageV2:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.AnalyticalListPageV2:i.push(Q.SchemaType.AnalyticalListPage,Q.SchemaType.ObjectPage);break;case Q.TemplateType.OverviewPageV2:i.push(Q.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Ye(o);n[a.filename]=await jp(t,o)}return n}r(JN,"getGenericSchemas");function HP(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Bt(Q.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(HP,"getAnnotationsForUi");function xi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(xi,"getEntitySetByEntitySetName");function BP(e,t,n){let i=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=xi(a,e.serviceAVT);s||_(e.logger,{severity:Q.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let c=Ye(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ye(Q.SchemaType.ObjectPage);n[c.filename]=Vs(e,t[l.filename])}}r(BP,"generateObjectPageSchemasV2");function qN(e,t,n){let i=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let c=a[s].options.settings.entitySet,l=xi(c,e.serviceAVT);e.entityType=l==null?void 0:l.entityType,e.entitySet=l;let p=Ye(Q.SchemaType.ListReport,(l==null?void 0:l.name)||c),f=Ye(Q.SchemaType.ListReport);e.templateType===Q.TemplateType.FreestylePageV4&&(e.templateType=pr(a[s])),n[p.filename]=rs(e,t[f.filename],l,a[s].name)}}r(qN,"generateListReportSchemasV4");function zN(e,t,n){var o;let i=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=xi(s,e.serviceAVT);let c=Ye(Q.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),l=Ye(Q.SchemaType.ListReport);t[c.filename]=os(e,n[l.filename])}}r(zN,"generateAppSchemaV2LR");function YN(e,t,n){let i=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=xi(a,e.serviceAVT);s||_(e.logger,{severity:Q.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:a})});let c=Ye(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ye(Q.SchemaType.ObjectPage);n[c.filename]=ss(e,t[l.filename],s)}}r(YN,"generateObjectPageSchemasV4");function ZN(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)zN(e,o,t),BP(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let c in s){let l=s[c].entitySet;e.entitySet=xi(l,e.serviceAVT);let p=Ye(Q.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||l),f=Ye(Q.SchemaType.AnalyticalListPage);o[p.filename]=Ls(e,t[f.filename])}BP(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Ye(Q.SchemaType.OverviewPage),c=Ye(Q.SchemaType.OverviewPage);o[s.filename]=Ns(t[c.filename],e.manifest)}return{...t,...o}}r(ZN,"generateAppSchemasV2");function eD(e,t,n){let i={};return n&&(qN(e,t,i),YN(e,t,i)),{...t,...i}}r(eD,"generateAppSchemasV4");async function GP(e,t,n){let i=await JN(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?eD(e,i,t):ZN(e,i,t,n)}r(GP,"generateAppSchemas");function tD(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new ip(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new qa(e);break;case Q.TemplateType.OverviewPageV2:t=new ap(e);break;default:t=new qa(e);break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(tD,"importConfigs");function WP(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===Q.SchemaType.Application?o=`${Q.DirName.Schemas}/${Q.FileName.App[0].toUpperCase()}${Q.FileName.App.slice(1)}`:o=`${Q.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(WP,"getFileList");async function xm(e){var T,F;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new dr().doesUi5VersionFitDistTags((F=(T=t["sap.ui5"])==null?void 0:T.dependencies)==null?void 0:F.minUI5Version,i);let l=Nf(t),p=In(n,i),f=HP(p),u=co(t,l,i),h=await GP({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},f,u);return WP(h)}r(xm,"importProjectSchema");async function Im(e){var ne,q;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new dr().doesUi5VersionFitDistTags((q=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:q.minUI5Version,i);let p=Nf(t),f=KT(t),u=In(n,i),m=co(t,p,i),h={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},T=HP(u),F=await GP(h,T,m),Y=tD({manifest:t,flexChanges:s,appSchemas:F,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return WP(F,Y)}r(Im,"importProjectSchemaAndConfig");var nD=["header","sections","footer"];function iD(e,t,n,i){t.properties[n][j.SchemaTag.artifactType]=j.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=j.ControlType.Section;break;case"ObjectPageSubSectionV2":o=j.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=j.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=j.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=j.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=j.ControlType.ObjectPageHeaderSection;break}o&&(Oe(e,t,n),t.properties[n][j.SchemaTag.controlType]=o)}r(iD,"addFlexChangeForSection");function oD(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Mn.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:c,namespace:l}=Dc(a,o);if(!c)return;let p=a.Label||s,f=`HeaderAction<${Ie(c)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${Mn.UIAnnotationTerms.Identification}`,`/@${Mn.UIAnnotationTerms.Identification}`);t.definitions[f][j.SchemaTag.annotationPath]=`/${u}`,t.definitions[f][j.SchemaTag.actionType]=j.ActionType.Annotation,t.definitions[f].description=p,t.definitions[f][j.SchemaTag.keys]=[{name:j.SchemaKeyName.action,value:s}],l&&(t.definitions[f][j.SchemaTag.target]=l),i.properties[c]={$ref:`${O}${f}`}}})}r(oD,"addHeaderActionCallBackV2");function aD(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===Mn.UIAnnotationTypes.DataFieldForAction){let a=mi(o).split("::").splice(1).join("::"),s=xt(o,e),c=Ie(`${j.DefinitionName.ObjectPageFooterAction}<${a}>`),l=o.fullyQualifiedName.replace(`@${Mn.UIAnnotationTerms.Identification}`,`/@${Mn.UIAnnotationTerms.Identification}`);try{t.definitions[c]={...JSON.parse(JSON.stringify(t.definitions[j.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${l}`}}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${O}${c}`}}})}r(aD,"addFooterActionCallBackV2");function rD(e,t,n,i,o,a,s,c){let l,p;if(a.ID&&a.Label?l=a.ID+a.Label.replace(/\s+/g,""):a.ID?l=a.ID:a.Label&&(l=a.Label.replace(/\s+/g,"")),l?p=`${j.DefinitionName.CustomColumns}<${n}><${s}><${l}>`:p=`${j.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let f=`${j.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(T=>T.name===i),h=Uo(t[j.ManifestSection.generic].pages,n,u);return Ta(e,m,h,t,c,p,f,a.ID),p}r(rD,"ensureCustomColumnDefinitionExists");function Rs(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&iD(e,t,"visible",n)}r(Rs,"addAppSchemaDefinition");function sD(e,t,n){e.properties[t]={$ref:`${O}${n}`}}r(sD,"addSectionReference");function Ds(e,t,n,i){let o=Ie(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=O+t,i.definitions[o].properties.toolBar.$ref=`${O}ObjectPageToolBar<${t}>`,i.definitions[o][j.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=j.FACETTITLEPREFIX+n.ID,i.definitions[o][j.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=j.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${O}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=`${O}QuickVariant<${t}>`,Ni(n.entityType,i,`QuickVariant<${t}>`)}r(Ds,"addTableDefinition");function cD(e,t,n,i,o,a){if(i.base!==j.FacetBase.LineItem||!t)return;let s=t.split("::")[0],c=`${a}<${t}>`;n.definitions[c]=Hn(n,i,t);let l=n.definitions[c];Rs(n,l,a,"ObjectPageSectionTableV2"),l.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[j.PropertyName.table])),l.properties.table.anyOf=[{$ref:`${O}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${O}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${O}ObjectPageAnalyticalTable<${t}>`},{$ref:`${O}ObjectPageGridTable<${t}>`},{$ref:`${O}ObjectPageTreeTable<${t}>`}],l[j.SchemaTag.annotationPath]=i.annotationPath,ui(i,l,t),Vi(i,l,t),Ds("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ds("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ds("ObjectPageGridTable",t,i,n),Ds("ObjectPageTreeTable",t,i,n),Ds("ObjectPageAnalyticalTable",t,i,n);let p,f=NS(i.entityType,e.serviceAVT);f&&(p=rD(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let u in o){let m=o[u];m.base===j.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&ba(!0,n,m.target,m.entityType,m.ID||u,p)}}r(cD,"handleLineItem");function lD(e,t,n,i,o,a=!1){e.definitions[t]=Hn(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Rs(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[j.SchemaTag.isViewNode]=!0}r(lD,"handleSubSection");function pD(e,t,n,i,o){e.definitions[t]=Hn(e,n,i);let a=e.definitions[t];Rs(e,a,o,"ObjectPageSectionChartV2")}r(pD,"handleSectionChart");function QP(e,t,n,i,o,a){e.definitions[t]=Hn(e,n,i);let s=e.definitions[t];Rs(e,s,o,a||"CommonHeaderFacetSettings"),s[j.SchemaTag.annotationPath]=n.annotationPath,s[j.SchemaTag.isViewNode]=!0,s[j.SchemaTag.dataType]=To(n==null?void 0:n.target)}r(QP,"handleHeaderFacet");function fD(e,t,n){let i=e.definitions[t],o=i[j.SchemaTag.dataType]=To(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(fD,"addDataPointHeaderFacetDataType");function uD(e,t,n,i,o){e.definitions[t]=Hn(e,n,i);let a=e.definitions[t];return Rs(e,a,o,"ObjectPageSectionFormV2"),a[j.SchemaTag.annotationPath]=n.annotationPath,a[j.SchemaTag.isViewNode]=!0,a}r(uD,"handleFormSection");function dD(e,t,n){let i=new Map([[j.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[j.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[j.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[j.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[j.FacetBase.Form,"ObjectPageHeaderSectionForm"],[j.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[j.FacetBase.LineItem,"ObjectPageSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSectionChartV2"],[j.FacetBase.Address,"ObjectPageSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSectionContactV2"],[j.FacetBase.Form,"ObjectPageSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[j.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[j.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[j.FacetBase.Form,"ObjectPageSubSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(dD,"getSectionType");function gD(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Mn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(gD,"getReferenceKey");function XP(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=dD(c.base,a,s),p=gD(c,n,l),f=`${l}<${p}>`;switch(sD(i,p,f),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,lD(o,f,c,n,l,s);let u=o.definitions[f].properties.subsections;for(let m in c.facets)XP(e,c.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{cD(e,p,o,c,t,l),Pa(o,c.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{pD(o,f,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=uD(o,f,c,p,l);Nc(j.SectionType.Section,c,u,o,j.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ur(c,p,i,o,j.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ur(c,p,i,o,j.SectionType.Section,j.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{QP(o,f,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{QP(o,f,c,p,l),fD(o,f,c);break}default:i.properties[n]=Hn(o,c,p)}}r(XP,"addSection");function KP(e,t,n,i,o,a=!1){if(e)for(let s in t)XP(i,t,s,n,o,!1,a)}r(KP,"addSectionsFromFacets");function JP(e,t,n){var f,u,m,h,T,F;let i=t.definitions[j.DefinitionName.Sections];i[j.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Mn.UIAnnotationTerms.Facets}`);let o=t.definitions[j.DefinitionName.HeaderSections];if(o[j.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Mn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=gc((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),s=dc((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),c=a&&!!Object.keys(a).length,l=s&&!!Object.keys(s).length;if(!c&&!l)return;for(let L in n){let Y=n[L];(F=(T=e.entitySet)==null?void 0:T.name)!=null&&F.includes(Y.entitySet)?(KP(c,a,i,e,t),KP(l,s,o,e,t,!0)):JP(e,t,Y.pages)}let p=t.definitions.CustomSections;for(let L in p.properties)i.properties[L]=p.properties[L]}r(JP,"addSections");function mD(e,t,n,i){wc(e,n),jc(e,n,t,i,oD,!0)}r(mD,"addHeader");function yD(e,t,n,i){let o=JT(t,n,i,void 0,!0);o&&jS(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(yD,"addRelatedFacetKeysType");function Vs(e,t){var s;qe();let n=JSON.parse(JSON.stringify(t)),i={};for(let c in n.definitions.CustomSections.properties)i[c]=n.definitions.CustomSections.properties[c];n.properties[j.PropertyName.sections]={$ref:O+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[j.ManifestSection.generic].pages;return a?(mD(n,e.entitySet,o,e.serviceAVT),n.definitions[j.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},JP(e,n,a),yD(n,o,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[j.SchemaTag.isViewNode]=!0):delete n.properties[j.PropertyName.sections]),Rc(n,e,j.FioriElementsVersion.v2,aD,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,Wn(n,nD),n):(_(e.logger,{severity:j.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:j.MANIFESTPATH,range:[j.ManifestSection.generic]}}),n)}r(Vs,"generateObjectPageSchemaV2");var je=w(B());var hD=["filterBar","keyPerformanceIndicators","chart","table","footer"];function qP(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(qP,"retrieveNameWithoutVocabulary");function bD(e,t,n){var T;let i=(T=e==null?void 0:e.component)==null?void 0:T.settings,o=i==null?void 0:i.qualifier,a=r(function(F){let L=F+(o?"#"+o:"");return t[L]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),c=s?s.PresentationVariant:a("PresentationVariant");if(s&&!c){let F=o?R.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):R.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return _(n,{severity:je.LogSeverity.Error,message:F}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],p="",f="";l.some(function(F){return p=p||qP("LineItem",F),f=f||qP("Chart",F),p&&f}),p=p||"LineItem",f=f||"Chart";let u=t[p],m=t[f],h=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(h>0){let F=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][h-1],L=R.t(F);_(n,{severity:je.LogSeverity.Warning,message:L})}return{lineItemAnnotation:u,chartAnnotation:m}}r(bD,"getLineItemAndChartAnnotation");function TD(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(TD,"addChart");function Ls(e,t){var s,c,l,p,f;let n=JSON.parse(JSON.stringify(t));n.properties[je.PropertyName.table].anyOf[0].$ref=O+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[je.PropertyName.table].anyOf[1].$ref=`${O}ALPGridTable<LineItems>`;try{let u=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));u.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,u.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=u}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[je.PropertyName.table].anyOf[2].$ref=`${O}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,ES(n.definitions.TableColumnExtensionTypeV2.enum,[je.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)_(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{Sa(n);let u=[],m=_a(e.manifest[je.ManifestSection.generic].pages,u,e.logger),h=(l=a==null?void 0:a.annotations)==null?void 0:l.UI,{lineItemAnnotation:T,chartAnnotation:F}=bD(m,h,e.logger);T&&TS.forEach(Y=>{n.definitions[Y][je.SchemaTag.annotationPath]=_t(a==null?void 0:a.fullyQualifiedName,T.term,T.qualifier)}),ba(!1,n,T,a),F&&TD(n,F);let L=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(Ic(n,L,a),Pa(n,a),!m)return _(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;Ta(n,a,m,e.manifest,e.fragments),Wd(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 Wn(n,hD),n}r(Ls,"generateAnalyticalListReportSchemaV2");var zP=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function SD(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(SD,"getCardDefinitionNames");function vD(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(l=>i.includes(o[l].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ho(a,s.CardModel);let c=SD(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=O+"CardModel"}}r(vD,"addModelsEnum");function PD(e,t){let n=e.properties;for(let i in zP){let o=zP[i],a=o.key;n[a]&&(n[a].messages=[{text:ya(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(PD,"markDeprecatedProperties");function YP(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},PD(n,t),vD(n,t),n}r(YP,"generateOverviewPageSchemaV2");var oo=w(B());function Om(e,t,n,i,o,a){qe();let s=In(e,t),c={templateType:a,fioriElementsVersion:oo.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=xi(o,c.serviceAVT),c.entitySet||_(c.logger,{severity:oo.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(Om,"prepareGenerationV2");function Fm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.ListReportObjectPageV2);return Vs(s,e)}r(Fm,"generateObjectPageInterfaceV2");function Vm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.ListReportObjectPageV2);return os(s,e)}r(Vm,"generateListReportInterfaceV2");function Lm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.AnalyticalListPageV2);return Ls(s,e)}r(Lm,"generateAnalyticalListPageInterfaceV2");function Ns(e,t){return YP(e,t)}r(Ns,"generateOVPInterfaceV2");var js=w(B());var ZP=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),AD=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function CD(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(CD,"initializeRouting");function ED(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(ED,"setTargetOptions");function xD(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==js.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(xD,"calculateQueryPattern");function eA(e,t,n,i){e.unshift(t);let o;for(let a in n){if(typeof n[a].navigation=="object"){let s=Object.keys(n[a].navigation).find(c=>n[a].navigation[c].route===i);s&&(t=s,o=n[a])}if(o){eA(e,t,n,a);return}}}r(eA,"fillNavigationParts");function ID(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let o=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[o]=a}),t}r(ID,"fillParentKeys");function OD(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],c=t[s.route];if(ED(n,a,s),s!=null&&s.route&&!i.routes.some(l=>l.name===s.route)){let l=c==null?void 0:c.routePattern;if(!l){let p=[];eA(p,a,t,o);let f=ID(e.routePattern);l=xD(p,c,f)}i.routes.push(ZP(l,s.route,s.route))}}}r(OD,"handlePageNavigation");function FD(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(o=>o.name===n);i!==-1&&e.routes.splice(i,1)}}r(FD,"removeDeletedPages");function VD(e,t){var n,i;e.entitySet?(t.options||(t.options=AD(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(VD,"transferEntitySet");function LD(e,t,n){let i=e.routes.find(o=>o.target&&o.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}r(LD,"updateRouteLayout");function ND(e,t,n){return e.pageType&&e.pageType!==js.PageTypeV4.CustomPage?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:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(ND,"fillTarget");function tA(e,t,n){var o,a;let i=CD(n[js.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(ZP(":?query:",e,e));for(let s in t){let c,l=t[s];i.targets[s]&&(c=i.targets[s]),c=ND(l,c,s),VD(l,c),c&&!l.controlAggregation&&(delete c.contextPattern,delete c.controlAggregation),(a=(o=c==null?void 0:c.options)==null?void 0:o.settings)!=null&&a.navigation&&(c.options.settings.navigation={}),OD(l,t,c,i,s),LD(i,s,l),i.targets[s]=c}return FD(i,t),i}r(tA,"transformRoutingV4");var Lt=w(B());function nA(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]}r(nA,"updateDependencyLib");function iA(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}r(iA,"extractLastIdPart");var oA=[Lt.FlexibleColumnLayoutAggregations.BeginColumnPages,Lt.FlexibleColumnLayoutAggregations.MidColumnPages,Lt.FlexibleColumnLayoutAggregations.EndColumnPages],aA=r((e,t,n,i=[],o=0)=>{var p;let a=e.routing.routes.find(f=>f.name===n);if(!a)return;typeof a.target=="string"&&(a.target=o<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],c=(p=t.pages)==null?void 0:p[n];if(!c)return;"controlAggregation"in c?s.controlAggregation=c.controlAggregation:oA[o]?s.controlAggregation=oA[o]:s.controlAggregation=Lt.FlexibleColumnLayoutAggregations.EndColumnPages;let l=a.pattern.replace(":?query:","");if(l?s.contextPattern=l.startsWith("/")?l:`/${l}`:s.contextPattern="",c.navigation){o++;for(let f in c.navigation)aA(e,t,c.navigation[f].route,a.target,o)}},"applyFCLRouting"),DD=r((e,t)=>{e.routing.config.routerClass=Lt.v4.FIORI_FCL_ROUTER_CLASS,aA(e,t,t.home);let n={viewName:Lt.FIORI_FCL_ROOT_VIEW_NAME,type:Lt.ViewTypes.XML,async:!0,id:Lt.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,nA(e,Lt.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),RD=r(e=>{var t;e.rootView&&e.rootView.viewName===Lt.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Lt.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),rA=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?DD(e,t):RD(e)},"updateFcl");var $=w(B());var wp=require("@sap-ux/vocabularies-types/vocabularies/UI");var sA=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],jD=[...sA,"views","initialLoad","template"],wD=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function $D(e,t,n){var s,c,l;let i=`@${wp.UIAnnotationTerms.LineItem}`,o=`@${wp.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[$.DefinitionName.TableSPV])==null?void 0:s[$.SchemaTag.annotationPath];if(e.length>1&&t.config.table.annotationPath){let p=(c=t.appSchema.definitions[$.DefinitionName.ALPTable])==null?void 0:c[$.SchemaTag.annotationPath];i=o=p&&p.substr(p.lastIndexOf("@"))}else if((l=n.table)!=null&&l.annotationPath)i=o=`@${n.table.annotationPath}`;else if(e[0]===$.PropertyName.table&&a){let p=a.split("/");i=o=p[p.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:o}}r($D,"determineTargetAnnotationOfTable");function MD(e,t,n){var a,s;let i,o;if(e.length>1){let c=(a=t.appSchema.definitions[$.DefinitionName.ALPChart])==null?void 0:a[$.SchemaTag.annotationPath];i=o=c&&c.substr(c.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(MD,"determineTargetAnnotationOfChart");function UD(e,t,n,i,o){var a;if(e.length===3)t=n=i[$.SchemaTag.annotationPath]&&i[$.SchemaTag.annotationPath].substr(i[$.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(O)[1],c=s&&o.appSchema.definitions[s],l=(c==null?void 0:c[$.SchemaTag.annotationPath])&&c[$.SchemaTag.annotationPath].substr(c[$.SchemaTag.annotationPath].lastIndexOf("@"));t=n=c.entitySet?`/${c.entitySet}/${l}`:l}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(UD,"determineTargetAnnotationBasedOnParentView");function kD(e,t){var a;let n,i,o=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(o)({targetAnnotation:n,targetAnnotationEncoded:i}=UD(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,c=e.appSchema.definitions.Table;if(c[$.SchemaTag.annotationPath]&&c[$.SchemaTag.annotationPath].endsWith(s)&&c.$ref==="#/definitions/TableSPV"){c=e.appSchema.definitions.TableSPV;let l=c[$.SchemaTag.annotationPath].split("/");return n=i=l[l.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[$.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(kD,"determineTargetAnnotationOfView");function _D(e,t,n){let i,o;return e[2].split(`@${$.UIVOCABULARY}`)[1]?n&&n.indexOf($.FACETTITLEPREFIX)>-1?i=o=n.split($.FACETTITLEPREFIX)[1]:e[2]?i=o=e[2].split("@")[1]:o&&(i=o=o.replace(/::/g,"/")):(t=!0,o=e[2],i=o&&o.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(_D,"determineTargetAnnotationOfHeaderSections");function BD(e,t){let n=e[1].split(`@${$.UIVOCABULARY}`)[1],i,o;if(e[0]==="sections"&&!n)t=!0,o=e[1],i=o&&o.replace(/::/g,"/");else{let a=iA(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(BD,"determineTargetAnnotationOfSections");function HD(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=$D(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=MD(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=BD(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=_D(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=kD(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(HD,"determineTargetAnnotation");function GD(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let o=e[i];if(o==="columns"||o===$.PropertyName.actions||o==="views"){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}r(GD,"determineKeyForSyncRule");function WD(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]={})}r(WD,"createNewObjectInManifest");function QD(e,t,n){var o,a;let i=!1;return t.type!=="array"&&((o=n==null?void 0:n.targetDefinition)==null?void 0:o.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(WD(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}r(QD,"transferPropertyToManifest");function KD(e,t,n,i,o,a,s){var p,f,u;let c=!1,l=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((f=n.config.table)!=null&&f.views)||e[1]==="views"&&((u=n.config.table)!=null&&u.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&sA.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&jD.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&(m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),c=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],c=!0);return Li(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),c}r(KD,"deleteFromManifest");function XD(e,t,n,i){let o=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:c,targetAnnotation:l,custom:p}=HD(e,n.transferParameters,n.configObject),f=GD(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,c,f,l,n.configObject),m=fi(n.transferParameters.exportResults.manifest,u,l,p?void 0:c);if(m){let h={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:f};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pa([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=KD(e,h,n.transferParameters,m,u,l,c):o=QD(h,n.propertyDefinition,i)}return o}r(XD,"exportManifestChange");function JD(e,t,n){let i=pt(e.configObject,e.key);i!=null&&i.manifest&&XD(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(JD,"evaluateExportRule");function qD(e,t,n,i,o){let a=[];e.propertyDefinition.$ref&&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,Dm(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(qD,"transferSubObject");function zD(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=$e(e.pageNameArray)+"/views",a=fi(e.exportResults.manifest,o);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}}r(zD,"createALPTableView");function YD(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=$e(e.transferParameters.pageNameArray)+"/views",o=fi(e.transferParameters.exportResults.manifest,i);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||wp.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(YD,"createALPChartView");function ZD(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=$e(t.pageNameArray)+"/views",s=fi(t.exportResults.manifest,a),c={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[c],o=!0;else{let l=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(l===-1)s.paths.push(c),o=!0;else if(l!==i.index){let p=JSON.parse(JSON.stringify(s.paths[l]));s.paths.splice(l,1),s.paths.splice(e,0,p),o=!0}}return o}r(ZD,"createLRTableView");function eR(e,t,n){let i=!1,o=!1;if(t&&!n&&!e.transferParameters.deletionRequest){if(t===$.DefinitionName.ALPChartView&&e.key===$.PropertyName.chart&&e.configObject)return YD(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return zD(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=ZD(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(eR,"createNewElement");function tR(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(tR,"isDefinitionTraversable");function Nm(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=hc(e.configObject,e.key),s=Gn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:c,stopProcessing:l}=eR(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(O)[1],i),p=a?[...t,a]:[...t,e.key];if(c||JD(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||tR(e.propertyDefinition)&&s.configObject)&&!l){let u=a?[...n,a]:n;qD(e,s,o,p,u)}}r(Nm,"transferSortedListEntry");function nR(e,t,n,i,o){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((c,l)=>c[1]&&c[1].index-l[1].index),s.forEach(c=>{var l;(l=n.properties)!=null&&l[c[0]]?(e.key=c[0],e.propertyDefinition=n.properties[c[0]],Nm(e,i,o),a=!0):typeof c[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=c[0],e.propertyDefinition=p,Nm(e,i,o),a=!0)}),e.index++})}return a}r(nR,"transferConfigEntriesWithAnyOfDefinitions");function iR(e,t,n,i){let o=qT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(iR,"mergeEntriesForInsert");function oR(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][$.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,o)=>i[1][$.SchemaTag.propertyIndex]-o[1][$.SchemaTag.propertyIndex])),t}r(oR,"sortProperties");function aR(e,t,n,i,o,a){var c,l;let s=!1;if(e){let p=e.anyOf;if(!p){let f=(c=e.$ref)==null?void 0:c.split(O)[1];p=f?(l=t.appSchema.definitions[f])==null?void 0:l.anyOf:void 0}s=nR(n,p,i,o,a)}return s}r(aR,"checkIfAnyOfDefinition");function Dm(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,c={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},l=a.additionalProperties,p=aR(l,e,c,a,n,i),f=oR(a.properties);l!=null&&l.$ref&&iR(e,l,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!pa(o,e.entityPathArray)||(c.key=u[0],c.propertyDefinition=u[1],c.index=s,Nm(c,n,i,p),u[1].$ref&&s++)})}r(Dm,"transferManifestEntriesAndFlexChange");function cA(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(cA,"getClassesForSingleSection");function lA(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],cA(n,i,t),lA(n,t)}}r(lA,"getSubsectionClasses");function rR(e,t,n){let i;for(let o in e.sections)i=t.sections[o],cA(e,o,n),lA(i,n)}r(rR,"getExportClassesForSections");function pA(e,t){let n=bc(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(pA,"calculateBaseId");var fA=r((e,t,n=!1)=>{var c;let i=wD(e.manifest),o=new Ii,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(c=e.page.config)!=null&&c[$.PropertyName.sections]&&rR(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:pA(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:o,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:$.TemplateType.ListReportObjectPageV4,entityPathArray:e.entityPath,deletionRequest:n};return Dm(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),sR=r((e,t,n,i,o,a,s=!1)=>{var T,F;let c=$.defaultExportResult;c.manifest=JSON.parse(JSON.stringify(e.manifest));let l=e.jsonSchema,p=(T=n.table)!=null&&T[$.PropertyName.annotationPath]?$.DefinitionName.ALPTableView:$.DefinitionName.Table,f=n.table=t.createInstance(i,p,n.table),u=$.DefinitionName.LineItems;l.definitions[$.DefinitionName.TableSPV]&&(u=l.definitions[$.DefinitionName.TableSPV].properties.columns.$ref.split(O)[1]);let m=l.definitions[`${$.DefinitionName.Actions}<${u}>`];if((F=f.toolBar)!=null&&F.actions&&m)for(let L in m.properties)f.toolBar.actions[L]=t.createInstance(i,$.DefinitionName.ToolBarAction,f.toolBar.actions[L]);let h={exportResults:c,appId:e.appId,appRootPath:e.appRootPath,baseId:pA(n,e),appSchema:e.jsonSchema,config:n,ui5Version:o,factory:t,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return Dm(h,n,[],[],[],l),c},"exportListPage"),Rm=r((e,t,n,i=!1)=>{let o=new Ii,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return sR(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),uA=r((e,t,n=!1)=>Rm(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),cR=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new fp,e);o.settings=Object.assign(new Ga,o.settings);for(let c in n.definitions.AppSettings.properties){let l=pt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),f=fi(i.manifest,p);if(((a=e.settings)==null?void 0:a[c])!==void 0)f[c]=e.settings[c];else{let u=fi(i.manifest,p);((s=e.settings)==null?void 0:s[c])!==void 0?u[c]=e.settings[c]:c in u&&(delete u[c],Li(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=tA(e.home,e.pages,i.manifest),rA(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),dA=r((e,t)=>{if(e[$.SchemaType.ListReport])return Rm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return fA(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return cR(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return uA(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),jm=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return Rm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return fA(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return uA(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function lR(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.ListReport];t=Vm(i,o,a,s,c,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.ObjectPage];t=Fm(i,o,a,s,c,l)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=Ns(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.AnalyticalListPage];t=Lm(i,o,a,s,c,l)}}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.ListReport];t=pp(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:c,fragments:l}=n[Z.SchemaType.ObjectPage];t=gg(i,o,a,s,c,l)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.AnalyticalListPage];t=pp(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,c)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.FreestylePage];t=mg(Z.TemplateType.FreestylePageV4,i,a,c,o,s)}}return t}r(lR,"generateSchema");function pR(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Zv(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=dA(i,n)}return t}r(pR,"exportConfig");function fR(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Kd(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=jm(i,n)}return t}r(fR,"exportConfigEntityByPath");function uR(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Kd(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=jm(i,n,!0)}return t}r(uR,"deleteConfigEntityByPath");function dR(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=np(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Gl(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Wl(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Ql(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=qo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Dp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=qo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(dR,"importConfig");async function gR(e){return Im(e)}r(gR,"importProject");async function mR(e){return xm(e)}r(mR,"importProjectSchema");function yR(){return{version:"20",moduleVersion:HS.version}}r(yR,"getApiVersion");var An=require("path"),ao=require("fs");var za=r(async e=>new Promise((t,n)=>{(0,ao.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),hR=r(async e=>JSON.parse(await za(e)),"readJSON"),wm=r(async e=>new Promise((t,n)=>{(0,ao.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),bR=r(async e=>new Promise(t=>{(0,ao.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),gA=r(async e=>new Promise(t=>{(0,ao.exists)(e,n=>{t(n)})}),"resourceExists"),TR=r(async e=>hR((0,An.join)(e,"manifest.json")),"getManifest"),mA=r(async e=>{let t=[],n=(0,An.join)(e,"changes");if(!await gA(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await wm(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await za((0,An.join)(n,a)));return t},"getChanges"),SR=r(async e=>{let t=[],n=(0,An.join)(e,"ext","fragments");if(!await gA(n))return t;let i=await wm(n);for(let o of i){let a=(0,An.join)(n,o),s=await za(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),vR=r(async(e,t)=>{var o,a,s,c,l,p,f,u;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let m=(0,An.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await za(m)})}if((l=(c=i==null?void 0:i.mainService)==null?void 0:c.settings)!=null&&l.annotations){for(let m of i.mainService.settings.annotations)if((f=(p=i[m])==null?void 0:p.settings)!=null&&f.localUri){let h=(0,An.join)(t,i[m].settings.localUri);n.push({dataSourceUri:h,fileContent:await za(h)})}}if(n.length===0)for(let m in i){let h=i[m];if((h==null?void 0:h.type)==="ODataAnnotation"&&((u=h==null?void 0:h.settings)!=null&&u.localUri)){let T=(0,An.join)(t,h.settings.localUri);n.push({dataSourceUri:T,fileContent:await za(T)})}}return n},"getAnnotations"),PR=r(async e=>{let t=(0,An.basename)(e),n=(0,An.join)(e,"webapp"),i=await TR(n),o=await vR(i,n),a=await mA(n),s=await SR(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");so(on,w(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
88
+ `}),Dv(R)}r(qe,"initI18n");var $d={};ta($d,{AnalyticalListPage:()=>gn,ListReport:()=>Nn,ObjectPage:()=>St,OverviewPage:()=>Ke,exportFilterSettings:()=>$v,importDateSettingsOVP:()=>jv,importFilterSettings:()=>wv});var Bl=w(B());var gn=class{};r(gn,"AnalyticalListPage"),d([g({flex:{controlId:yc,controlType:r(()=>Bl.ControlType.DynamicPage,"controlType"),createFlexChange:U}})],gn.prototype,"fitContent",2),d([_e("table")],gn.prototype,"table",2),d([_e("template::SmartFilterBar")],gn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],gn.prototype,"chart",2),d([_e("analyticalListFooter")],gn.prototype,"footer",2),gn=d([Qt({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Bl.v2.FE_TEMPLATE_V2_ALP})],gn);var Yr=w(B());var Nn=class{};r(Nn,"ListReport"),d([g({flex:{controlId:yc,controlType:r(()=>Yr.ControlType.DynamicPage,"controlType"),createFlexChange:U}})],Nn.prototype,"fitContent",2),d([_e("listReportFilter")],Nn.prototype,"filterBar",2),d([_e("listReport")],Nn.prototype,"table",2),d([_e("listReportFooter")],Nn.prototype,"footer",2),Nn=d([Qt({id:Yr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Yr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Nn);var wd=w(B());var St=class{};r(St,"ObjectPage"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.0"})],St.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.1"})],St.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],St.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.52.0"})],St.prototype,"navToListOnSave",2),d([_e("header")],St.prototype,"header",2),d([_e("sections")],St.prototype,"sections",2),d([_e("layout")],St.prototype,"layout",2),d([g({manifest:{path:r(t=>_c(t),"path")}}),S({since:"1.77.0"})],St.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Rt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),S({since:"1.78.0"})],St.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Rt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:lo}}),S({since:"1.71.0"})],St.prototype,"globalTableSettings",2),St=d([Qt({id:wd.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wd.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],St);function QF(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 o in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[o];t.fields[n].filter[o]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[o].equals=a.equals.split(","))}}}r(QF,"importDateSettingsFieldsOVP");function jv(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&&QF(e,t),t}r(jv,"importDateSettingsOVP");function wv(e){let t={};return t.dateSettings=jv(e.filterSettings),t}r(wv,"importFilterSettings");function KF(e,t,n){for(let i in e.filterSettings[t].fields){let o=e.filterSettings[t].fields[i];if(o.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=o.selectedValues.join()),o.filter)for(let a in o.filter){let s=o.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}r(KF,"exportFilterFields");function $v(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&&KF(t,n,e))}r($v,"exportFilterSettings");var Ke=class{};r(Ke,"OverviewPage"),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>nt(),"path"),import:wv,export:$v}}),S({since:"1.80.0"})],Ke.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>nt(),"path")}})],Ke.prototype,"resizableLayout",2),Ke=d([Qt({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Ke);var Md=class Md{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]: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)}};r(Md,"MetadataFactory");var Ba=Md;var bt=w(B());var XF={},JF={Table:Io,ResponsiveTableWithMultiSelect:Io,ResponsiveTableWithInlineDelete:Io},qF={[bt.v2.CardSettingsType.listCardSettings]:Oa,[bt.v2.CardSettingsType.listCardSettingsv4]:Oa,[bt.v2.CardSettingsType.analyticalCardSettings]:Fa,[bt.v2.CardSettingsType.analyticalCardSettingsv4]:Fa,[bt.v2.CardSettingsType.stackCardSettings]:vr,[bt.v2.CardSettingsType.linkListCardSettings]:Pr,[bt.v2.CardSettingsType.tableCardSettings]:Va,[bt.v2.CardSettingsType.tableCardSettingsv4]:Va},zF={[bt.SAPUI5_VIEW_CLASS]:Wr,[bt.SAPUI5_FRAGMENT_CLASS]:Gr,Table:Mo,ObjectPageResponsiveTableWithMultiSelect:Mo,ObjectPageResponsiveTableWithInlineDelete:Mo},YF={[bt.PageTypeV2.AnalyticalListPage]:XF,[bt.PageTypeV2.ListReport]:JF,[bt.PageTypeV2.ObjectPage]:zF,[bt.PageTypeV2.OverviewPage]:qF},Ud=class Ud extends Ba{constructor(){super(Ld,$d,YF)}};r(Ud,"MetadataInstanceFactoryV2");var wt=Ud;function ZF(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),ft(e.filterBar,n.manifest,i[He.DefinitionName.ListReportFilterBar],o,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let c=s;e.filterBar.selectionFields[c]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),ft(e.filterBar.selectionFields[c],n.manifest,i.SelectionFieldDateSettings,o,n.logger,c)}}}r(ZF,"importFilterBar");function kd(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,f,u;let c=Zt(s),l={controlId:c.controlId,propertyId:(p=c.content)==null?void 0:p.property,newValue:(f=c.content)!=null&&f.newBinding?c.content.newBinding:(u=c.content)==null?void 0:u.newValue,controlType:c.controlType,creation:c.creation};wl(n.table,l,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&$l(e,n,s)}r(kd,"importFlexChangesOfTableAndColumns");function eV(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[mo]&&t[yo]&&(a=JSON.parse(JSON.stringify(t[mo])),a.properties={...a.properties,...t[yo].properties}),ft(n.table,i.manifest,a,o,i.logger),kd(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(c=>c!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&_(i.logger,{severity:He.LogSeverity.Error,message:R.t("NOLINEITEMS")})}r(eV,"importTable");function tV(e,t,n,i){let o=e.jsonSchema.definitions,a=Ul(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),kl(t,n,o),eV(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),ft(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let c in o[He.DefinitionName.ActionsLR].properties){let l=qi(c);t.table.toolBar.actions[l]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),ft(t.table.toolBar.actions[l],e.manifest,o[He.DefinitionName.Action],i,e.logger)}ZF(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=qi(c);t.footer.actions[l]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),ft(t.footer.actions[l],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(tV,"addSettings");function Mv(e){if(qe(),!Ua(e))return;let n=new wt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=Ma(e.manifest[He.ManifestSection.generic].pages,o);if(ka(a,e.logger,a==null?void 0:a.entitySet),!!a)return tV(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Ml(i,s,e.jsonSchema,e.logger)}),$a(i,e,a,He.PageTypeV2.ListReport),_l(i),i}r(Mv,"createListReportConfig");var W=w(B());var Zr=require("@sap-ux/vocabularies-types/vocabularies/UI");var iV=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function oV(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(`${Zr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Zr.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 o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(oV,"getSingleSelectorIdPart");function aV(e){let t,n=e.split(":::");if(n.length===1)t=oV(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(`::${Zr.UIAnnotationTerms.LineItem}`,`/@${Zr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(aV,"getFacetID");function rV(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var c,l,p;try{let f=Zt(s),u=f&&((c=f.controlId)==null?void 0:c.split("--"))||[];if(f&&((l=u[0])!=null&&l.includes(W.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=u[0])!=null&&p.endsWith(t))){let m=u[1].replace(/:3a:3a/g,"::");o.exec(m)!==null&&(m=m.split("template:::TableColumn:::")[1]);let h=aV(m);m=Dd(m).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${m}::${f.content.property}`]={controlId:m,propertyId:f.content.property,facetId:h,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){_(n,{severity:W.LogSeverity.Error,message:R.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,c)=>s[1].creation-c[1].creation).reduce((s,[c,l])=>(s[c]=l,s),{})}r(rV,"prepareFlexChanges");var sV=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(F,"");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(F,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function cV(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&Nd(i,t,o)}r(cV,"addFlexChangeToColumns");function Uv(e,t,n,i,o,a){var c;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(c=i.id)==null?void 0:c.replace(/::@com.sap.vocabularies/g,W.VOCWITHSLASH)];for(let l in e){let p=e[l],f=p.propertyId===t,u=t==="columns"&&p.controlType===W.ControlType.TableColumn;(f||u)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?cV(a,p,o.properties,n):wl(n,p,o))}}r(Uv,"importFlexChangesOfTable");function lV(e,t){return e.facetId==="template"&&t}r(lV,"isStandardActionFlexChange");var kv=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function pV(e,t,n,i,o,a){var E;let s=!1,c=!1;a?(s=c=n.test(t.controlId),o&&(s=c&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let l=t.controlId.split("::"),p=t.controlType===W.ControlType.GroupElement&&c,f=((E=t.facetId)==null?void 0:E.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&kv(l,o.split("::"))&&s,m=e.title&&kv(l,e.title.split("::"),!0),h=!t.facetId&&iV.includes(t.controlType),T=lV(t,c);return p||f||u||m||h||T}r(pV,"matchSelector");function fV(e,t,n,i,o,a){var l;let s=new RegExp(`.*${a}`),c=new RegExp(`.*${o}`);for(let p in n){let f=n[p];if(f.propertyId!==i||f.controlType!==((l=e.properties[f.propertyId])==null?void 0:l[W.SchemaTag.controlType]))continue;pV(e,f,s,c,o,a)&&(t[i]=f.newValue)}}r(fV,"importFlexChanges");function uV(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(_(n.logger,{severity:W.LogSeverity.Warning,message:ya(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(uV,"checkDeprecatedProperties");function dV(e,t,n,i,o,a,s){let c=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,l,p;s!=null&&s.title?(l=e.manifest.path(t,{},s.title),p=gt(n.manifest,l),Object.values(p).length===0&&(l=e.manifest.path(t,{},c),p=gt(n.manifest,l))):(l=e.manifest.path(t,{},c),p=gt(n.manifest,l));let f=e.manifest.import;if(f&&typeof f=="function"){let u=f(p,s==null?void 0:s.id);u!==void 0&&(i[o]=u)}else{let u=e.manifest.key||o;u in p&&(i[o]=p[u])}return uV(p,a,n,l),p}r(dV,"importManifestSetting");function $t(e,t,n,i,o,a){var l,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},c=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let u=pt(t,f);if(f==="columns"||u!=null&&u.flex)if((l=o==null?void 0:o.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let m=n.properties[f].$ref.split(F)[1],h=e.jsonSchema.definitions[m];Uv(i.flexChanges,f,t,o,h,c)}else Uv(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);fV(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&dV(u,i.pageKeys,e,t,f,s,o)}}r($t,"transferSettingsAndFlexChanges");function Bv(e,t,n,i){let o=Ht(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${SS}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${Ec}${o}`;break}}return o.replace(/@/g,"")}r(Bv,"getActionId");function gV(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(F)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let c=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],l=Bv(s,a,"","");e.actions[a]=i.factory.createInstance(W.PageTypeV2.ObjectPage,c,{}),$t(n,e[W.PropertyName.actions][a],n.jsonSchema.definitions[c],i,{},l)}}}r(gV,"fillStandardActions");function Hl(e,t,n,i,o,a){var c;n[W.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let l={};a&&(l.id=a);for(let p in t){let f=qi(p),u=Bv(s,f,o,a);u&&(n[W.PropertyName.actions][f]=i.factory.createInstance(W.PageTypeV2.ObjectPage,s),$t(e,n[W.PropertyName.actions][f],e.jsonSchema.definitions[s],i,l,u)),(c=n[W.PropertyName.actions])!=null&&c[f]&&Object.keys(n[W.PropertyName.actions][f]).length===0&&delete n[W.PropertyName.actions][f]}}gV(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(Hl,"fillActions");function mV(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let c in n){a=`${c}::GroupElement`,i[t.id].form.fields[c]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"Field");let l=(s=t.title)!=null&&s.includes(W.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;$t(e,i[t.id].form.fields[c],e.jsonSchema.definitions[W.DefinitionName.Field],o,{},l),Object.keys(i[t.id].form.fields[c]).length===0&&delete i[t.id].form.fields[c]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(mV,"fillFields");function yV(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}r(yV,"prepareTableSchema");function hV(e,t,n,i,o){var c,l;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((c=s==null?void 0:s.tableSettings)==null?void 0:c.type)||"ResponsiveTable",f=o.factory.createInstance(W.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][W.PropertyName.table]=f;let u=e.jsonSchema.definitions,m=yV(p,t,u);$t(e,i[t.id],t.schema,o,{title:t.title}),$t(e,i[t.id][W.PropertyName.table],m,o,t);let h=JSON.parse(JSON.stringify(u))[`Actions<${t.id}>`];if(h!=null&&h.properties){let T=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");Hl(e,h.properties,i[t.id][W.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",T)}Object.keys(i[t.id][W.PropertyName.table].toolBar).length===0&&delete i[t.id][W.PropertyName.table].toolBar}}r(hV,"fillTableInConfig");function bV(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sc(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};$a(n[t],e,i,W.PageTypeV2.ObjectPage,c,o)}}r(bV,"fillCustomColumnsInConfig");function TV(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][W.PropertyName.chart]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&($t(e,i[t.id],t.schema,o,{title:t.title}),$t(e,i[t.id][W.PropertyName.chart],e.jsonSchema.definitions[W.DefinitionName.ObjectPageChart],o,t))}r(TV,"fillChartSection");function SV(e,t,n,i){n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&$t(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(SV,"fillHeaderSection");function vV(e,t,n,i){var l;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&$t(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Hl(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&mV(e,t,c.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]}r(vV,"fillFormSection");function _v(e,t,n,i,o){var c;i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&$t(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(c=s==null?void 0:s.subsections)!=null&&c.properties?a=s.subsections.properties:a=s,_d(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(_v,"fillSubSection");function _d(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let c in t){let l=c.replace(/\/@/g,"::"),p={id:l,type:sV(t[c]),schema:t[c],title:wf(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],hV(e,p,n,i,o),bV(e,l,i,o.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${c}>`],TV(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${c}>`],vV(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${c}>`],_v(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],SV(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],_v(e,p,n,i,o))}}r(_d,"fillSectionsInConfig");function PV(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),c=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];$t(o,s,c,n,{id:a}),t.sections.custom.push(s)}}}r(PV,"fillCustomSectionsInConfig");function AV(e,t){var f,u;let n=t.factory.createPageInstance(W.PageTypeV2.ObjectPage);$t(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;$t(e,n.globalTableSettings,i[W.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.ObjectPageHeader);let o=i[W.DefinitionName.ObjectPageHeader]?i[W.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];$t(e,n.header,o,t);let a=i[W.DefinitionName.HeaderActions];a&&Hl(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&Hl(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageLayout"),$t(e,n.layout,i[W.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let c=i[W.DefinitionName.HeaderSections];if(c){let m=(f=t.v2Page.component)==null?void 0:f.settings;_d(e,c.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let l=i[W.DefinitionName.Sections];if(l){let m=(u=t.v2Page.component)==null?void 0:u.settings;_d(e,l.properties,m,n.sections,t)}let p=Nv(e.manifest,e.entitySet);return PV(p,n,t,i,e),n}r(AV,"fillConfig");function Gl(e){qe();let t=Ua(e);if(!t)return;let n=e.entitySet,i=[],o=Uo(t,e.entitySet,i);if(ka(o,e.logger,n),!o)return;let a=rV(e.flex,n),s=new wt;return AV(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Gl,"createObjectPageConfigV2");var mn=w(B());var Hd=w(lf());var Re=w(B());var CV=["colorPalette","tabs"];function EV(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(EV,"createCard");function Hv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Hv(e,n.join("|"))}return t}r(Hv,"findAvailableId");function es(e,t,n,i,o,a,s){i!=null&&i.properties&&Bd(e,t,n,i.properties,o,a,s)}r(es,"transferManifestEntriesOVP");function ko(e,t,n,i){return e.createInstance(Re.PageTypeV2.OverviewPage,i,n,t)}r(ko,"assignReflectMetadataRules");function xV(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(F),o=e.appSchema.definitions[i[1]];t=ko(e.factory,i[1],t,"CustomCard"),es(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(xV,"processAnyOfDefinitionsOfOVP");function IV(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!CV.includes(i)?t[i]=(0,Hd.default)(t[i]||{},o||{},{arrayMerge:Df}):t[i]=o}r(IV,"checkSyncRuleForExport");function OV(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),c=gt(i.manifest,s);if(n in Re.v2.CardSettingsType||n==="settings")c.settings=(0,Hd.default)(c.settings||{},o||{},{arrayMerge:Df});else if(o!==void 0){let l=e.manifest.export;IV(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(OV,"transferToManifest");function FV(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Re.v2.cardTemplateTypeMap))].filter(o=>o!==n);i.push(n);for(let o of i){let a;Object.values(Re.v2.CardTemplateType).includes(o)?a=Object.keys(e.appSchema.definitions).filter(s=>{var l;let c=(l=e.appSchema.definitions[s].properties)==null?void 0:l.template;if(c!=null&&c.enum)return c.enum.indexOf(o)>-1;if(c!=null&&c.const)return c.const===o}):a=["CustomCard"],e.currentObject[t]=ko(e.factory,a[0],e.currentObject[t],"CustomCard"),EV(t,e.exportResults.manifest[Re.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,es(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Re.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Re.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated)})}r(FV,"transferCards");function VV(e,t){if(t==="cards")FV(e);else{let n=Gn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Re.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(F);e.currentObject=ko(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],es(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Bd(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],Bd(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(VV,"exportOfObject");function Bd(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!pa(a,s)&&a[a.length-1]!=="anyOf")continue;let l=e[c],p=pt(e,c),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],l=xV(f)):l&&typeof l=="object"&&i[c]&&VV(f,c),p!=null&&p.manifest&&OV(p,a,c,t,l,e)}}r(Bd,"processProperties");function LV(e,t,n,i,o,a,s){let c;t.length===0?c=["page"]:c=t;let l=n.flex.controlId(e.baseId,i,c,n.flex.controlType,o),p=hS(a,n,e.ui5Version,s,l),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let u=n.flex.createFlexChange(p,f);e.exportResults.flexChanges.find(h=>{let T=!1,E=JSON.parse(h);E={content:E.content,selector:E.selector};let L=JSON.parse(u);return L={content:L.content,selector:L.selector},JSON.stringify(E)===JSON.stringify(L)&&(T=!0),T})||e.exportResults.flexChanges.push(u)}r(LV,"evaluateFlexRule");function NV(e,t,n,i,o,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=Re.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated}}r(NV,"exportConfigValueToManifest");function DV(e,t,n,i,o){let a=gt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)NV(e,n,a,o,i,s);else{let c=n.manifest.delete;c&&typeof c=="function"?c(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,Li(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(DV,"evaluateManifestRule");function RV(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith(Re.FACETTITLEPREFIX)?o.split(Re.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(RV,"getManifestPathOfSections");function jV(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(jV,"getManifestPathOfTable");function wV(e,t,n,i,o){let a;return t[0]===Re.PropertyName.sections?a=RV(t,a,n,e,o):t[0]===Re.PropertyName.table?a=jV(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):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}r(wV,"getManifestPath");function $V(e,t,n,i,o,a,s){if(!t)return;let c=i.indexOf("subsections");for(;c>-1;)i.splice(c-1,2),c=i.indexOf("subsections");if(t.flex)LV(e,i,t,o,a,n,s);else if(t.manifest){let l=wV(e,i,t,n,a);DV(e,l,t,s,n)}}r($V,"evaluateExportRule");function MV(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let c=(s=t.config)==null?void 0:s.filter(l=>(l.tabKey===a||a===void 0&&l.tabKey===""||a&&t.sectionKey===a)&&l.extensionType===t.extensionType);if((!c||c.length===0)&&(zc(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Re.ViewTemplateType.ResponsiveTableColumnsExtension))){let l=e.replace(Re.ViewTemplateType.ResponsiveTableColumnsExtension,Re.ViewTemplateType.ResponsiveTableCellsExtension);zc(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(MV,"deleteObsoleteColumn");function UV(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=GS(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,MV(o,e,n))}r(UV,"deleteObsoleteColumnsFromFragment");function kV(e,t,n,i,o){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:c,viewTemplateType:l}=Yc(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(kV,"clusterConfigColumnsByPath");function Gv(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let c in Re.v2.TableColumnExtensionTypeV2){let{path:l}=Yc(e.v2Page,s,o,c);if(!l)continue;let p={path:l,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:c,appId:e.appId};try{UV(p)}catch(f){e.logger.error(f.message)}}if(t){let c=kV(t,n,e.v2Page,s,o);for(let l in c)Tu(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(Gv,"transferColumnExtensions");function _V(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let f=Hv(s,[p.relativePosition,c,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(h=>{var T;return(T=h.$ref)==null?void 0:T.includes(t[p].constructor.name)}).$ref.split(F),m=e.appSchema.definitions[u[u.length-1]];zi(e,t[p],i,[...o,s[p]],m)}let l=gt(e.exportResults.manifest,Qf());for(let p in l)Rd(p,c)&&!s.includes(p)&&delete l[p]}r(_V,"transferManifestExtensions");function BV(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Re.PropertyName.table){n=e[i-1];break}return yt(n,t)}r(BV,"getSectionId");function HV(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=Gn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);zi(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(HV,"transferIndexTable");function GV(e,t,n,i,o,a){let s,c=Sc(e.$ref);c&&(s={target:c,key:BV(t,n)}),Gv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(GV,"transferCustomColumns");function WV(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=Gn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&zi(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(WV,"handleAnyOfDefinitions");function QV(e,t,n,i,o,a,s){let c=e.propertyDefinition;if((c==null?void 0:c.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")_V(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){GV(c,t,s,e,n,a);return}else a?zi(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&WV(c,e,s,n==null?void 0:n[o],o,i,t)}r(QV,"transferComplexProperty");function zi(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let c in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==c&&!pa(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&hc(t,c),p=l?[...n,l]:n,f=pt(t,c),u=e.propertyDefinition=o.properties[c],m=e.nextDefinition=Gn(e.appSchema,a,s,u,c,e.factory,e.pageType);if($V(e,f,t,[...i],p,a,c),HV(s,e,a,c,p,i),s===void 0||typeof s=="object")QV(e,i,t,p,c,m,a);else if((u==null?void 0:u.$ref)===F+"TableCustomColumns"){Gv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(zi,"transferManifestEntriesAndFlexChange");function Wv(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=ko(o,i,n[i],s),a.push(i),Gd(o,n[i],e,c.properties,a)}r(Wv,"transferSettingsOfRef");function KV(e,t,n,i,o,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(F);Wv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf&&e.template in mn.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let c=`${F}${mn.v2.cardTemplateSettingsMap[e.template]}`.split(F);Wv(i,c,e,t,o,a)}}r(KV,"processPropertiesOfObject");function XV(e,t,n,i,o,a){let s=pt(e,t);if(s!=null&&s.manifest){let c=s.manifest.path([...n,t]),l=gt(i.manifest,c);if(Object.prototype.hasOwnProperty.call(l,t))try{ha(s,l,t,e)}catch(p){_(i.logger,{severity:mn.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:YT(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&KV(e,t,o,i,a,n)}r(XV,"processOvpProperty");function Gd(e,t,n,i,o){for(let a in i)XV(t,a,o,n,i,e)}r(Gd,"processOvpProperties");function JV(e,t,n){Gd(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[mn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[mn.ManifestSection.ovp].cards[i].template,a=mn.v2.cardTemplateTypeMap[o]??"CustomCard",s=[...new Set(Object.values(mn.v2.cardTemplateTypeMap))].filter(c=>c!==a);s.push(a);for(let c of s)e.cards[i]=ko(n,c,e.cards[i]??{},"CustomCard"),e.cards=ko(n,c,e.cards,"CustomCard"),Gd(n,e.cards[i],t,t.jsonSchema.definitions[c].properties,["cards",i])})}r(JV,"addSettings");function Wl(e){let t=new wt,n=t.createPageInstance(mn.PageTypeV2.OverviewPage);return e.jsonSchema&&JV(n,e,t),n}r(Wl,"createOverviewPageConfig");var De=w(B());function qV(e,t,n,i){var p,f;let o=Ul(e.manifest,i),a=e.jsonSchema.definitions;kl(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(ft(t.table,e.manifest,s,i,e.logger),kd(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),ft(t.table.toolBar,e.manifest,a[De.DefinitionName.ToolBar],i,e.logger),a[De.DefinitionName.ActionsLR])for(let u in a[De.DefinitionName.ActionsLR].properties){let m=qi(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),ft(t.table.toolBar.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),ft(t.filterBar,e.manifest,a[De.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[De.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let u=a[De.DefinitionName.SelectionFields].properties;for(let m in u){let h=m;t.filterBar.selectionFields[h]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),ft(t.filterBar.selectionFields[h],e.manifest,a.SelectionFieldDateSettings,i,e.logger,h)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),ft(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let c=a[De.DefinitionName.FooterActionsLR];if(c)for(let u in c.properties){let m=qi(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),ft(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(f=(p=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:f.keyPerformanceIndicators;l&&Object.keys(l).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),ft(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(qV,"addSettings");function Ql(e){if(qe(),!Ua(e))return;let n=new wt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=_a(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(ka(a,e.logger,a==null?void 0:a.entitySet),!!a)return qV(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Ml(i,s,e.jsonSchema,e.logger)}),$a(i,e,a,De.PageTypeV2.AnalyticalListPage),_l(i),i}r(Ql,"createAnalyticalListPageConfig");var an=w(B());var zV=["filterBar","table","footer"];function Wd(e,t,n,i){Ni(e,n,"QuickVariant"),DS(n,"QuickVariantX",t),RS(i,n,"QuickVariantX")}r(Wd,"addEnumForVariantPaths");function Qv(e,t){var u,m,h,T,E,L,Y;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=F+mo,n.properties.table.anyOf[1].$ref=F+yo,n.properties.table.anyOf[2].$ref=F+Pc,n.properties.table.anyOf[3].$ref=F+Ac,n.properties.table.anyOf[4].$ref=F+Cc;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),o=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),a=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),c=JSON.parse(JSON.stringify(t.definitions.GridTable)),l={$ref:F+an.DefinitionName.LineItems};i.properties.columns=l,o.properties.columns=l,a.properties.columns=l,s.properties.columns=l,c.properties.columns=l;let p=F+an.DefinitionName.ToolBarLR;n.definitions[mo]=i,n.definitions[yo]=o,n.definitions[Pc]=a,n.definitions[Ac]=s,n.definitions[Cc]=c,$f.forEach(ne=>{n.definitions[ne].properties.toolBar.$ref=p});let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(m=e.entitySet)!=null&&m.name&&_(e.logger,{severity:an.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(h=e.entitySet)==null?void 0:h.name})});else{Sa(n);let ne=(E=(T=f==null?void 0:f.annotations)==null?void 0:T.UI)==null?void 0:E.LineItem;ne&&$f.forEach(fe=>{n.definitions[fe][an.SchemaTag.annotationPath]=_t(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),ba(!1,n,ne,f);let q=(Y=(L=f==null?void 0:f.annotations)==null?void 0:L.UI)==null?void 0:Y.SelectionFields;Ic(n,q,f),Pa(n,f);let ue=[],ie=Ma(e.manifest[an.ManifestSection.generic].pages,ue);if(!ie)return _(e.logger,{severity:an.LogSeverity.Error,message:R.t("NOLR"),location:{path:an.MANIFESTPATH,range:[an.ManifestSection.generic]}}),n;Ta(n,f,ie,e.manifest,e.fragments),Wd(f,e.entitySet,n,e.serviceAVT),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 Wn(n,zV),n}r(Qv,"generateListReportSchemaV2");var se=w(B());var ts=r(e=>({flexChanges:[],manifest:{[se.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:se.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:se.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Kv(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===se.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(Kv,"getClassesForSingleSection");function Xv(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Kv(n,i,t),Xv(n,t)}}r(Xv,"getSubsectionClasses");function YV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],Kv(i,o,n),Xv(i,n)}r(YV,"getExportClassesForSections");function ZV(e,t){let n=Ma(t.manifest[se.ManifestSection.generic].pages,e);if(!n){_(t.logger,{severity:se.LogSeverity.Error,message:R.t("NOLR"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}});return}if(!n.component){_(t.logger,{severity:se.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:se.PageTypeV2.ListReport}),location:{path:se.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(ZV,"findV2Page");function Qd(e,t){let n=bc(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Qd,"calculateBaseId");function Jv(e,t,n=!1){let i=ts(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=ZV(a,e),c=new wt,l=c.createPageInstance(se.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Qd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(p,l,[],[],e.jsonSchema)}return i}r(Jv,"exportListReportPage");function qv(e,t,n=!1){let i=e.page.config,o=ts(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=_a(e.manifest[se.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let c=new wt,l=c.createPageInstance(se.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Qd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(p,l,[],[],e.jsonSchema)}return o}r(qv,"exportAnalyticalListPage");function zv(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=ts(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Uo(e.manifest[se.ManifestSection.generic].pages,o,s);if(!c)return _(e.logger,{severity:se.LogSeverity.Error,message:R.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),a;let l=new wt,p=l.createPageInstance(se.PageTypeV2.ObjectPage,i);if(i.sections&&YV(i,p,l),Object.keys(i).length!==0){let f={v2Page:c,exportResults:a,appId:e.appId,baseId:Qd(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:se.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};zi(f,p,[],[],e.jsonSchema)}}return a}r(zv,"exportObjectPage");var Yv=r(e=>{let t=ts();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new wt,i=n.createPageInstance(se.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&es(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),eL=r((e,t,n)=>{var s;let i=ts();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Uc,e);o.settings=Object.assign(new wi,e.settings);for(let c in n.definitions.AppSettings.properties){let l=pt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),f=gt(i.manifest,p);e.settings&&e.settings[c]!==void 0?f[c]=e.settings[c]:(delete f[c],Li(i.manifest,p,!1))}}let a=(s=i.manifest[se.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Wf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Zv(e,t){if(e[se.SchemaType.ListReport])return Xd(e[se.SchemaType.ListReport],t);if(e[se.SchemaType.ObjectPage])return zv(e[se.SchemaType.ObjectPage],t);if(e[se.SchemaType.OverviewPage])return Yv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[se.SchemaType.Application];return eL(n,i,o)}else if(e[se.SchemaType.AnalyticalListPage])return qv(e[se.SchemaType.AnalyticalListPage],t)}r(Zv,"exportPageV2");function Kd(e,t,n=!1){if(e[se.SchemaType.ListReport])return Xd(e[se.SchemaType.ListReport],t,n);if(e[se.SchemaType.ObjectPage])return zv(e[se.SchemaType.ObjectPage],t,n);if(e[se.SchemaType.OverviewPage])return Yv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.AnalyticalListPage])return qv(e[se.SchemaType.AnalyticalListPage],t,n)}r(Kd,"exportConfigEntityByPathV2");var Pi=w(B());var _o=w(B());var eP=w(B());function Yi(e,t=[]){return e.concat(["component","settings"]).concat(t)}r(Yi,"getManifestPathToPageSettings");function Dn(e,t,n){let i=e,o=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:o,value:o&&n?i[n]:void 0,parent:o?i:void 0}}r(Dn,"getManifestPropertyByPath");function vi(e){return e!==null&&typeof e=="object"}r(vi,"isDefinition");function Kl(e,t,n,i,o,a,s){let c=n[eP.SchemaTag.conversionExit],l=c==null?void 0:c.name,p=t?t(l):void 0;if(!p)return i;let f=c.params;return e?p.appToConfig(i,f,o??[],n,s):p.configToApp(i,f,o??[],n,a)}r(Kl,"executeConversionExit");function Xl(e,t,n,i="string",o=!1){let a;if(e===void 0)a=o;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=o:a=typeof s!==i||s===null&&o}return a&&_(n,{severity:_o.LogSeverity.Error,message:R.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Xl,"hasPropertyTypeError");var tP=Symbol("Property is suppressed without explanation");function tL(e,t,n,i){delete t.element.$ref,n===void 0||e===tP?t.element[_o.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[_o.SchemaTag.messages]=[{text:e,deletable:!0,type:_o.PropertyMessageType.Warning}]),t.manifestPath=i}r(tL,"handleDisallowedProperty");function nP(e,t,n,i,o){return{manifest:{},processingRuleAdapter:r(function(a,s,c){let{manifestPath:l,disallowedReason:p}=t(a.element,s,c);if(p===tP){delete a.element;return}let{value:f,parent:u}=Dn(c.manifest,l,e);if(p){tL(p,a,f,l);return}if((o?Xl(u,e,c.logger,o):!1)&&(o==="object"||typeof f=="object")){delete a.element;return}n&&n(a.element,s,c,f),a.manifestPath=l,i&&(a.referenceAdaptation=i(s,c))},"processingRuleAdapter")}}r(nP,"getSyncRuleForManifestProperty");var Jl={manifest:{},processingRuleAdapter(e,t){e.manifestPath=Yi(t.pageInfo.pagePath)}};function iP(e,t){e.anyOf&&e.anyOf.forEach(function(n){Bo(n,t)})}r(iP,"addAnyOfToReferredTypes");function zl(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(zl,"getSingleItem");function Bo(e,t){if(typeof e!="object")return;let n=di(e);n&&oP(n,t),iP(e,t),Bo(e.additionalProperties,t),Bo(zl(e),t)}r(Bo,"addReferredTypesFromElement");function oP(e,t){t.referredTypeNames.add(e);let n=t.types[e];Bo(n,t);let i=n.properties;i?Object.values(i).forEach(o=>Bo(o,t)):Bo(zl(n),t),Bo(n.additionalProperties,t)}r(oP,"addReferredTypesFromType");function ql(e,t,n,i,o){if(typeof t!="object")return;let a=di(t);if(a){let s=o.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,o.types[a]=s),e){let c;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=zT(p),c=structuredClone(s),o.types[p]=c,o.referredTypeNames.add(p)}else o.referredTypeNames.add(a),c=s;let l={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};Jd(n,l,e.syncRuleProvider,c,o)}else oP(a,o)}else Jd(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(ql,"applyAdaptationInfoToElement");function Jd(e,t,n,i,o){var m,h;let a={element:i},s=oS(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;ql(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,o);let c={pageInfo:t.pageInfo,specificParams:((m=a.referenceAdaptation)==null?void 0:m.specificParams)||t.specificParams},l=i.properties,p;if(l)p=l;else{let T=zl(i);if(T)l={items:T},p=i;else return}let f,u=((h=a.referenceAdaptation)==null?void 0:h.processingRulesAdapter)||function(T,E){f=f||n&&new n;let L=pt(f,T);L!=null&&L.processingRuleAdapter&&L.processingRuleAdapter(E,c,e)};for(let T in l){let E=l[T];if(typeof E!="object"){p[T]=E;continue}let L={element:{...E}};u(T,L),L.element?(L.controlId?L.element[Pi.SchemaTag.controlId]=`${t.pageInfo.controlId}--${L.controlId}`:L.manifestPath&&(L.element[Pi.SchemaTag.artifactType]="Manifest",L.element[Pi.SchemaTag.manifestPath]=L.manifestPath),iP(L.element,o),ql(L.referenceAdaptation,L.element,e,c,o),ql(L.additionalPropertiesAdaptation,L.element.additionalProperties,e,c,o),ql(L.itemsAdaptation,zl(L.element),e,c,o),p[T]=L.element):delete p[T]}}r(Jd,"adjustElement");function nL(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r(nL,"getViewId");function aP(e,t,n){var q;qe();let i=co(e.manifest,Pi.FioriElementsVersion.v2,n);if(!i||i===Pi.TemplateType.OverviewPageV2)return;let{parent:o}=Dn(e.manifest,e.pagePath);if(!o)return;let a=o.component;if(Xl(o,"entitySet",n,"string",!0)||Xl(a,"name",n,"string",!0))return;let s=o.entitySet,c=a.name,l=t(c),p=l==null?void 0:l.genericSchema,f=l==null?void 0:l.syncRuleProvider;if(!f||!p)return p;let u=e.parsedAnnotations||In(e.annotations,n),m=(q=u==null?void 0:u.entitySets)==null?void 0:q.find(ue=>ue.name===s);if(!m)return p;let h=structuredClone(p),T=nL(e.appId,c,s),L={pageInfo:{appId:e.appId,componentName:c,entitySet:s,controlId:T,pagePath:e.pagePath}},Y={templateType:i,manifest:e.manifest,serviceAVT:u,fioriElementsVersion:Pi.FioriElementsVersion.v2,entitySet:m,fragments:e.fragments,logger:n,entityType:m.entityType},ne={types:h.definitions,referredTypeNames:new Set};Jd(Y,L,f,h,ne);for(let ue in h.definitions)ne.referredTypeNames.has(ue)||delete h.definitions[ue];return h}r(aP,"getAdaptedSchema");var is=w(B());var qd=w(B());var rP=w(B());var Zl=class Zl{};r(Zl,"Share"),d([g({flex:{controlType:r(()=>rP.ControlType.Button,"controlType"),createFlexChange:U},processingRuleAdapter:r(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],Zl.prototype,"visible",2);var Yl=Zl;var Zi=class{};r(Zi,"ListHeaderActions"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Yl}}})],Zi.prototype,"Share",2),Zi=d([g({processingRuleAdapter(e){e.element[qd.SchemaTag.icon]="Export"}})],Zi);var Ai=class{};r(Ai,"ListHeader"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Zi}}})],Ai.prototype,"actions",2),Ai=d([g({processingRuleAdapter(e){e.element[qd.SchemaTag.icon]="Header"}})],Ai);var tp=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ei=w(B());var eo={since:"1.77.0"},ep={flex:{controlType:r(()=>Ei.ControlType.SmartFilterBar,"controlType"),createFlexChange:U},processingRuleAdapter(e){e.controlId="listReportFilter"}};function zd(e){return nP(e,function(t,n){return{manifestPath:Yi(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}r(zd,"getSyncRuleForDateRangeProperty");var Ha=class Ha{};r(Ha,"DateRange"),d([g(zd("useDateRange")),S(eo)],Ha.prototype,"useDateRange",2),d([g(zd("selectedValues")),S(eo)],Ha.prototype,"selectedValues",2),d([g(zd("exclude")),S(eo)],Ha.prototype,"exclude",2);var Yd=Ha,ns={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=Yi(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var hn=class{};r(hn,"FilterField"),d([g(ns),S(eo)],hn.prototype,"selectedValues",2),d([g(ns),S(eo)],hn.prototype,"exclude",2),d([g(ns),S(eo)],hn.prototype,"customDateRangeImplementation",2),d([g(ns),S(eo)],hn.prototype,"filter",2),d([g(ns),S({since:"1.90.0"})],hn.prototype,"defaultValue",2),hn=d([g({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,o=n.entityType,a=i.value,s=i.type==="PropertyPath"?fa(i,o):a;e.element.description=s,e.element[Ei.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ei.SchemaTag.keys]=[{name:Ei.SchemaKeyName.value,value:`${a}`}]}})],hn);var Ho=class{};r(Ho,"FilterFields"),Ho=d([g({processingRuleAdapter(e,t,n){let i=t.specificParams,o=i.fieldDefinitions,a;for(let c in o){let l=o[c],p={$ref:F+"FilterField"};p[Ei.SchemaTag.propertyIndex]=l.position,a=a||{},a[c]=p}e.element.properties=a,delete e.element.additionalProperties;let s=r(function(c,l){let p={accessor:c,selectionFieldInfo:o[c],entityType:i.entityType};l.referenceAdaptation={suffix:Ie(c),syncRuleProvider:hn,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],Ho);var yn=class yn{};r(yn,"CommonFilterBar"),d([g(ep)],yn.prototype,"liveMode",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"smartVariantManagement",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"variantManagementHidden",2),d([g(Jl),ce("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],yn.prototype,"subTitleIfVariantMgmtHidden",2),d([g(ep)],yn.prototype,"showClearOnFB",2),d([g(ep)],yn.prototype,"showFilterConfiguration",2),d([g(ep)],yn.prototype,"showRestoreOnFB",2),d([g({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:Yd}}}),S(eo)],yn.prototype,"dateSettings",2),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Ho}}})],yn.prototype,"selectionFields",2);var Zd=yn,Ci=class extends Zd{};r(Ci,"ListReportFilterBar"),d([g({manifest:{},processingRuleAdapter(t,n){let i=[tp.UIAnnotationTerms.SelectionPresentationVariant,tp.UIAnnotationTerms.SelectionVariant,tp.UIAnnotationTerms.PresentationVariant],o=n.specificParams;$c(o.entityType,i,t.element);let a=Yi(n.pageInfo.pagePath);t.manifestPath=a}}),ce("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),S({since:"1.86.0"})],Ci.prototype,"annotationPath",2),Ci=d([g({processingRuleAdapter(e,t){var c;e.element[Ei.SchemaTag.icon]="Filter";let n=t.specificParams,i=((c=n.uIAnnotations)==null?void 0:c.SelectionFields)??[],o={},a=!1;i.forEach((l,p)=>{let f=en(l),u=["Date","DateTime","DateTimeOffset"].includes(f);a=a||u,o[l.value]={field:l,dataType:f,hasDateRangeOption:u,position:p}});let s={entityType:n.entityType,fieldDefinitions:o,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],Ci);var bn=class{};r(bn,"ListReportNew"),d([g({flex:{controlType:r(()=>is.ControlType.DynamicPage,"controlType"),createFlexChange:U},processingRuleAdapter(t){t.controlId="page"}})],bn.prototype,"fitContent",2),d([g({processingRuleAdapter(t){t.element[is.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Ai}}})],bn.prototype,"header",2),d([g({processingRuleAdapter(t,n){var o;if((o=n.specificParams.settings)!=null&&o.isWorklist){delete t.element;return}t.element[is.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:Ci}}})],bn.prototype,"filterBar",2),bn=d([Qt({id:Lv,pageId:zr}),g({processingRuleAdapter(e,t,n){let i=Yi(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=FS(n),{parent:s}=Dn(n.manifest,i),c={settings:s,entityType:o,uIAnnotations:a};e.referenceAdaptation={specificParams:c}}})],bn);var ig=require("path"),gP=require("fs");var rn=w(B());function iL(e){let t={};return e.flex.forEach(function(i){let o=Zt(i);if(o){let a=o,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}r(iL,"getChangeMapFormImportParameters");function eg(e,t,n,i,o){if(e===void 0)return;let a=di(t),s=a?n[a]:void 0;if(t[rn.SchemaTag.conversionExit]&&(e=Kl(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return eg(e,s,n,i,o);if(t.type==="object"&&t.properties&&typeof e=="object"){let c={},l=!1;for(let p in t.properties){let f=t.properties[p],u=eg(e[p],f,n,i,o);u!==void 0&&(l=!0,c[p]=u)}return l?c:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}r(eg,"getConfigRep");function sP(e,t,n,i,o,a,s,c){let l=eg(o,a,s,c,t);if(l===void 0)return;let p=e,f=[];n.forEach(function(u){f.push(u);let m=u.propertyName;p[m]=p[m]||t.propertyInstanceProvider(f),p=p[m]}),p[i]=l}r(sP,"transferValueToConfig");function oL(e,t,n,i,o,a,s,c){let l=o[rn.SchemaTag.controlId],p=c[l];if(!p)return;let f=-1,u=p.find(function(m,h){return m.content.property===i?(f=h,!0):!1});u&&(sP(e,t,n,i,u.type==="propertyBindingChange"?u.content.newBinding:u.content.newValue,o,a,s),p.length===1?delete c[l]:p.splice(f,1))}r(oL,"importFlexChangesToConfigProperty");function aL(e,t,n,i,o,a,s){let c=o[rn.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:f,value:u,parent:m}=Dn(s.manifest,p,l?i:void 0);if(!f)return;sP(e,t,n,i,l?u:m,o,a,s)}r(aL,"importManifestToConfigProperty");function cP(e,t,n,i,o,a,s){if(vi(n.properties))for(let c in n.properties){let l=n.properties[c];if(!vi(l))continue;let p=l[rn.SchemaTag.artifactType];if(p===rn.ArtifactType.FlexChange)oL(e,t,i,c,l,o,a,s);else if(p===rn.ArtifactType.Manifest&&l[rn.SchemaTag.manifestPath])aL(e,t,i,c,l,o,a);else{let f=di(l),u=f?o[f]:void 0;if(vi(u)){let m=i.concat([{propertyName:c,propertyType:f.split("<")[0]}]);cP(e,t,u,m,o,a,s)}}}}r(cP,"importDefinitionIntoConfig");function lP(e,t,n){var u;let i=co(e.manifest,rn.FioriElementsVersion.v2,e.logger);if(!i||i===rn.TemplateType.OverviewPageV2)return;let{parent:o}=Dn(e.manifest,t),a=(u=o==null?void 0:o.component)==null?void 0:u.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let c=iL(e),l=e.jsonSchema,p=l.definitions,f=s.propertyInstanceProvider([]);return cP(f,s,l,[],p,e,c),f}r(lP,"getConfigForPage");var Vt=w(B());function rL(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[Vt.SchemaTag.controlId],controlType:e[Vt.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(rL,"addFlexChangeInfoToList");function pP(e,t,n,i){var c;if(n[Vt.SchemaTag.conversionExit])return Kl(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((c=n.items)==null?void 0:c.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 o=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let l in n.properties){let p=n.properties[l];if(!vi(p))continue;let f=di(p);p=f&&i.globalTypeDefinitions[f]||p;let u=o[l];s=s||u!==void 0;let m=pP(e?e[l]:void 0,u,p,i);m===void 0?delete o[l]:(o[l]=m,a=!0)}return a?o:s?Object.keys(t).every(l=>vi(n.properties[l]))?void 0:o:t}r(pP,"getValueForManifest");function tg(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(o,a){return tg(o,t[a])}):!0;let n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(t).filter(o=>t[o]!==void 0);return n.length!==i.length||n.some(function(o){return tg(e[o],t[o])})}r(tg,"isDifferent");function sL(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(sL,"isEmpty");function cL(e,t,n,i,o){let a=n.manifest,s=e.length-1,c=e[s],l=[];e.some(function(u,m){if(m===s)return!0;let h=a[u];if(typeof h!="object"||h===null)return!0;a=h,l.push(a)});let p=l.length===s?a[c]:void 0,f=pP(t,p,i,o);if(tg(f,p))if(f===void 0){n.manifestChangeIndicator=Vt.ChangeIndicator.Deleted;for(let u=s;u>0;u--){let m=l[u];if(!sL(m))break;let h=l[u-1],T=e[u];delete h[T]}}else{for(let u=l.length;u<s;u++){let m={};a[e[u]]=m,a=m}a[c]=f,n.manifestChangeIndicator=p===void 0?Vt.ChangeIndicator.Created:Vt.ChangeIndicator.Updated}}r(cL,"applyManifestChange");function lL(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[Vt.SchemaTag.artifactType];if(s===Vt.ArtifactType.FlexChange)rL(i,a,n,t.flexList);else if(s===Vt.ArtifactType.Manifest&&i[Vt.SchemaTag.manifestPath]){let c,l=i[Vt.SchemaTag.manifestPath];Array.isArray(l)?c=l.concat([n]):(c=l.path,l.addTargetPropertyToPath&&(c=c.concat([n]))),cL(c,a,t,i,o)}else{let c=di(i),l=c?o.globalTypeDefinitions[c]:void 0;vi(l)&&fP(a,t,l,o)}}r(lL,"transferConfigPropertyToExportResults");function fP(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];vi(s)&&lL(e,t,a,s,i)}}r(fP,"transferConfigToExportResults");function uP(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Vt.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Vt.ChangeIndicator.NoChange,flexList:[],fragments:i};return fP(t,a,e.jsonSchema,o),a}r(uP,"exportPage");var pL=!1,fL={generateListReportSchemaV2(e,t){return Qv(e,t)},createListReportConfig(e){return Mv(e)},exportListReportPage(e,t,n){return Jv(e,t,n)}},ng;function uL(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,ig.join)(__dirname.substring(0,i+13),"dist")}let t=(0,ig.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,gP.readFileSync)(t,"utf8"))}r(uL,"getPersistentListReportNewSchema");function dL(){let e=uL();return function(t){return t===zr?{genericSchema:e,syncRuleProvider:bn}:void 0}}r(dL,"createGenericSchemaInfoProvider");function gL(e){return e===zr?{propertyInstanceProvider:r(function(t){return new bn},"propertyInstanceProvider")}:void 0}r(gL,"getConfigInfo");function dP(e){let{value:t}=Dn(e,[Zn.ManifestSection.generic],"pages");return Array.isArray(t)?[Zn.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Zn.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}r(dP,"getPathForRootPage");function mL(e,t,n){let i=!e.layer||e.layer===Zn.FlexChangeLayer.Customer,o={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(o.content.newBinding=n.newValue,o.type="propertyBindingChange"):o.content.newValue=n.newValue,U(o,t)}r(mL,"flexInfoToChangeString");function yL(){let e=dL(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Zn.ManifestSection.app].id=n,i.flexList.map(mL.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=dP(i);if(!o)return null;let a={appId:((s=i[Zn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return aP(a,e,n.logger)},createListReportConfig(n){let i=dP(n.manifest);return lP(n,i,gL)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Zn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=uP(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(yL,"createPageHandlerLRGeneric");function og(){return pL?(ng=ng||yL(),ng):fL}r(og,"getPageHandlerLR");function os(e,t){return og().generateListReportSchemaV2(e,t)}r(os,"generateListReportSchemaV2");function np(e){return og().createListReportConfig(e)}r(np,"createListReportConfig");function Xd(e,t,n=!1){return og().exportListReportPage(e,t,n)}r(Xd,"exportListReportPage");function op(e,t){var n,i;return(n=e.component)!=null&&n.name?da(pi((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(op,"generateId");function hL(e,t,n,i){e.navigation={};let o=mP(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=op(t.pages[a],a);e.entitySet?e.navigation[s]=o[s].navigationProperty?`${e.entitySet}.${o[s].navigationProperty}`:e.entitySet:e.navigation[s]=o[s].navigationProperty?o[s].navigationProperty:s}}r(hL,"getPageConfigsAndNavigations");function mP(e,t){var i;let n={};for(let o in e){let a=e[o],s=op(a,o);if(!s)continue;let c={pageType:pi((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=c;let l=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(c.pageType));if(l)if(c.pageType===ut.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],fragments:t.fragments,logger:t.logger};c.config=np(p)}else if(c.pageType===ut.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],fragments:t.fragments,logger:t.logger};c.config=Ql(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[l],entitySet:c.entitySet,fragments:t.fragments,logger:t.logger};c.config=Gl(p)}a.pages&&hL(c,a,t,n)}return n}r(mP,"getPagesAndConfigs");var ag=class ag extends Ri{constructor(t){qe();let n;t.manifest[ut.ManifestSection.generic]?n=t.manifest[ut.ManifestSection.generic].pages:_(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOFE"),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}}),n||_(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&op(n[i],i),a=new wi,s=Ye(ut.SchemaType.Application),c=t.appSchemas[s.filename];ft(a,t.manifest,c.definitions.AppSettings,void 0),super(t,o,mP(n,t),a)}};r(ag,"V2AppProvider");var ip=ag;function as(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||_(n,{severity:ut.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:ut.MANIFESTPATH}}),((a=c.component)==null?void 0:a.name)===t){let l=op(c,s);i[l]=c}if(t===ut.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=as(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(as,"getPages");var Go=w(B());var rg=class rg extends Ri{constructor(t){let n={},i=t.manifest[Go.ManifestSection.ovp],o=new wi,a=Ye(Go.SchemaType.Application);ft(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(Go.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},l={pageType:Go.PageTypeV2.OverviewPage,config:Wl(c),entitySet:i.globalFilterEntitySet},p=da(l.pageType,l.entitySet);n[p]=l,super(t,p,n,o)}};r(rg,"V2OvpProvider");var ap=rg;var rp=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=w(B());function bL(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(bL,"sortByPropertyIndex");function TL(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(bL())}r(TL,"sortPropertiesRecords");function yP(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}r(yP,"getExtensionText");function sg(e,t,n,i,o){var s;(((s=e.position)==null?void 0:s.placement)||G.v4.Placement.After)===G.v4.Placement.Before?t.splice(n,0,[i,o]):t.splice(n+1,0,[i,o])}r(sg,"addExtensionToSortedArray");function SL(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,c])=>{var l,p,f;return((l=c.position)==null?void 0:l.placement)==="Before"&&((p=c.position)==null?void 0:p.anchor)===((f=n.position)==null?void 0:f.anchor)})===-1&&(i.splice(i.length,0,[t,o]),delete e[t])}r(SL,"addRemainingTargetByBefore");function cg(e,t,n,i,o=!1){var l,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=yP(f);return{$ref:`${F}${t}`,description:m,keys:[{name:G.SchemaKeyName.key,value:`${u}`}]}},"getExtensionDetails");for(let f of Object.keys(e)){let u=e[f],m=s(u,f);if((l=u.position)!=null&&l.anchor&&((p=u.position)!=null&&p.placement)){let h=n.findIndex(T=>T[0]===u.position.anchor);h>-1?(sg(u,n,h,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(_(i,{severity:on.LogSeverity.Error,message:R.t("INVALIDANCHOR",{id:f,anchor:u.position.anchor}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5]}}),n.splice(n.length,0,[f,m]),delete e[f]):o&&SL(e,f,u,n,m)}else o&&(sg(u,n,n.length,f,m),delete e[f])}let c=Object.entries(e).length;c>0&&a!==c?cg(e,t,n,i):c>0&&cg(e,t,n,i,!0)}r(cg,"adjustCustomExtReferringToCustomExt");function vL(e,t){var o,a;let n=((o=e.position)==null?void 0:o.placement)||G.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===G.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}r(vL,"getExtensionAnchor");function PL(e,t){var i;let n=[];for(let o in e){let a=(i=e[o].position)==null?void 0:i.anchor,s=t.some(c=>c[0]===a);a&&!s&&n.push(o)}return n}r(PL,"getLocalExtensionsToSkip");function AL(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(AL,"getExtensionIndex");function CL(e,t,n,i,o){_(e,{severity:on.LogSeverity.Error,message:R.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(CL,"handleInvalidExtension");function EL(e,t,n,i="template",o){let a=[...t],s={...e},c=PL(s,a);if(!s)return[];for(let l of Object.keys(s)){let p=s[l];if(c!=null&&c.includes(l))continue;let f={$ref:`${F}${n}`,description:yP(p)||l,keys:[{name:G.SchemaKeyName.key,value:`${l}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){CL(o,l,t,f,s);continue}if(!(i in p)){delete s[l];continue}let u=vL(p,a);if(u){let m=AL(p,e,t,u);m>-1&&(sg(p,t,m,l,f),delete s[l])}else t.push([l,f]),delete s[l]}return Object.keys(s).length>0&&cg(s,n,t,o),t}r(EL,"addExtensionToArray");function xL(e){let t;return e.lineItemId.startsWith(G.DefinitionName.LineItemsOfView)?t=G.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(G.DefinitionName.LineItems)?t=G.DefinitionName.ToolBarAction:t=G.DefinitionName.ObjectPageToolBarAction,t}r(xL,"determineActionDefinitionName");function IL(e,t,n){e[G.SchemaTag.keys]=[],t[G.SchemaKeyName.semanticObject]&&e[G.SchemaTag.keys].push({name:G.SchemaKeyName.semanticObject,value:t[G.SchemaKeyName.semanticObject]});let{key:i,ns:o}=bo(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r(IL,"addTargetAndKeysOfAction");function OL(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=xL(e),c=xt(i,e.entityType),l=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=vc(p),u=t.properties[`${l}::${f}`]={description:c};if(a?u.$ref=$S(s,Ie(f),e.appSchema,n):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=en(i),IL(u,i,p),u[G.SchemaTag.annotationType]=i.$Type,a){let m=u.$ref.replace(F,""),h=ht(s,m,e.appSchema,!1);h[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(OL,"addActionRecordToSchema");function FL(e,t,n,i,o){var l;let a=t.lineItemId,s=t.lineItemRecord;if((l=s.Target)!=null&&l.value){let p=`@${Bt(G.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let c=mi(s).replace(/\//g,"::");if(c){let p=o;p||(p=e.appSchema.definitions[a]);let f=p.properties,u={description:xt(s,e.entityType)};o?(u.properties={},u.type="object",u.isViewNode=!0):u.$ref=F+n,u[G.SchemaTag.annotationType]=s==null?void 0:s.$Type,u[G.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,u[G.SchemaTag.propertyIndex]=i,u[G.SchemaTag.dataType]=en(s),f[c]=u,Lc(s,f,c)}}r(FL,"addLineItemRecordToSchema");function VL(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===rp.UIAnnotationTypes.DataFieldForAction||s.$Type===rp.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))OL(e,t,n,s,a,!i);else{let c={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},l=s.$Type===rp.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;FL(e,c,l,a,i)}a++})}r(VL,"appendLineItemsToSchema");function Wo(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=Fc(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);VL(e,n,i,void 0,t)}r(Wo,"addLineItemsTypeToSchema");function sp(e,t,n,i){var a,s;let o;if(n){for(let c in e)if(((s=(a=e[c].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(mc(t,e[c].name)||t===G.v4.FE_TEMPLATE_V4_ALP&&e[c].name===G.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[c];break}}return o}r(sp,"findPageV4");function hP(e,t){let n,i=e.properties[G.PropertyName.table];return t.templateType===G.TemplateType.AnalyticalListPageV4?(n=G.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${F}${G.DefinitionName.ALPTableView}`,delete e.definitions[G.DefinitionName.Table],delete e.definitions[G.DefinitionName.LRChartView],delete e.definitions[G.DefinitionName.LRTableView],delete e.definitions[G.DefinitionName.MultiTableModeV4]):t.templateType===G.TemplateType.ListReportObjectPageV4&&(n=G.DefinitionName.Table,delete i.anyOf,i.$ref=`${F}${G.DefinitionName.Table}`,e.definitions[n].properties[G.PropertyName.annotationPath][G.SchemaTag.hidden]=!0,delete e.definitions[G.DefinitionName.ALPTableView],e.properties[G.PropertyName.defaultPath][G.SchemaTag.hidden]=!0),n}r(hP,"alignSchemaWithTemplateType");function bP(e,t,n,i,o,a){var p,f,u,m;let s=TL(t),c=new Map;if(s=s.map(h=>{let T=Bf(e,h[1],h[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return c.set(T.const,h[0]),[T.const,h[1]]}),!o&&i.includes(G.DefinitionName.ObjectPageCustomSectionFragment)){let h=(m=(u=(f=(p=n.options)==null?void 0:p.settings)==null?void 0:f.content)==null?void 0:u.body)==null?void 0:m.sections;h&&(s=EL(h,s,i,"name",a))}for(let h=0;h<s.length;h++)s[h][1][G.SchemaTag.propertyIndex]=h;let l={};s.forEach(([h,T])=>{h=c.get(h)||h,l[h]=T}),t.properties=l}r(bP,"addCustomSectionDefinition");var x=w(B()),pg=require("@sap-ux/vocabularies-types/vocabularies/UI");var LL=["filterBar","chart","table"],lg="@UI.LineItem";function NL(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[x.SchemaTag.annotationPath]=_t(e.fullyQualifiedName,pg.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,c="SelectionField::"+Ie(a.value);a.type==="PropertyPath"&&(s=fa(a,e)),i.properties[c]={$ref:F+c},i.properties[c][x.SchemaTag.propertyIndex]=o;let l=en(a);t.definitions[c]={type:"object",properties:{},description:s,additionalProperties:!1,...l&&{dataType:l}},t.definitions[c][x.SchemaTag.isViewNode]=!0,t.definitions[c][x.SchemaTag.keys]=[{name:x.SchemaKeyName.value,value:`${a.value}`}],((p=a.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[c][x.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(f=a.$target)!=null&&f.fullyQualifiedName&&(t.definitions[c][x.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[c][x.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[c][x.SchemaTag.annotationPath]=`${i[x.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(NL,"addSelectionFields");function SP(e,t,n,i,o){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(`${x.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let c=0;s.Actions.forEach(l=>{let p=Ie(`${x.DefinitionName.ChartToolBarAction}<${l.Action}>`),f=xt(l,o),u=l.$Type.split(`${x.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${l.Action}`]={$ref:F+p,description:f};m[x.SchemaTag.propertyIndex]=c,m[x.SchemaTag.annotationType]=l.$Type,m[x.SchemaTag.annotationPath]=`/${l.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[x.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][x.SchemaTag.annotationPath]=l.fullyQualifiedName,c++})}}r(SP,"defineActions");function vP(e,t,n,i){var c;let o,a,s;return e&&(n==="primary"?a=e.find(l=>l.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(l=>l.value.indexOf(x.FacetBase.LineItem)>-1):i?a=e.find(l=>l.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?ma(a.value):void 0,(c=a==null?void 0:a.$target)!=null&&c.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",x.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(vP,"findTheRightVisualization");function DL(e,t,n,i){let o="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:o,targetAnnotation:a,chartTitle:s}}r(DL,"analyzeChartAnnotation");function RL(e,t,n,i,o,a){var l;let{visualization:s,targetAnnotation:c}=vP((l=e.PresentationVariant)==null?void 0:l.Visualizations,t,n,i);return s||(_(o,{severity:x.LogSeverity.Error,message:R.t("NOVISUALIZATIONS")}),s=lg,c=`/${t}/`+s.replace("UI",x.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:c,namespace:t,title:a}}r(RL,"analyzeSPVforView");function cp(e,t,n,i,o){let a,s,c=e==null?void 0:e.split(`${x.UIVOCABULARY}.`)[1],l=c&&(t==null?void 0:t[c]);if(!l)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=l.Text,a=l.fullyQualifiedName.split(x.UIVOCABULARYALPHADOT)[0],c.startsWith("PresentationVariant")){let{visualization:p,targetAnnotation:f}=vP(l.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(c.startsWith("SelectionPresentationVariant"))return RL(l,a,n,i,o,s);if(c.startsWith("SelectionVariant")){let p=lg,f=`/${a}/@${pg.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("LineItem")){let p=lg;l.qualifier&&(p+=`#${l.qualifier}`);let f=e.substring(0,1)==="@"?`/${a}/${e}`:`/${a}/@${e}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("Chart")){let{visualization:p,targetAnnotation:f,chartTitle:u}=DL(a,e,l,n);return{visualization:p,targetAnnotation:f,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(cp,"analyzeViewAnnotation");function jL(e,t,n,i){let o=e.definitions[x.DefinitionName.ALPChartView];if(e.definitions[x.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(o)),delete e.definitions[x.DefinitionName.ALPChart][x.SchemaTag.isViewNode],n&&(e.definitions[x.DefinitionName.ALPChart][x.SchemaTag.annotationPath]=n),e.definitions[x.DefinitionName.ALPChart].properties.annotationPath[x.SchemaTag.hidden]=!0,o.properties.annotationPath[x.SchemaTag.hidden]=!0,o.additionalProperties=!1,o.description="Chart (key: primary)",o.title="Chart",o.$ref=`${F}${x.DefinitionName.ALPChart}`,t){let a=t.split(x.UIVOCABULARYDOT)[1];if(i!=null&&i[a]){let s=i[a].fullyQualifiedName.split("@");o[x.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else US(o,R.t("UNEXISTING_ANNOTATION_PATH"))}o[x.SchemaTag.artifactType]=x.ArtifactType.Manifest,o[x.SchemaTag.key]="primary",o[x.SchemaTag.keys]=[{name:x.SchemaKeyName.key,value:"primary"}]}r(jL,"addALPChartView");function wL(e,t,n,i,o,a){var L,Y,ne,q,ue,ie,fe,Ve;let s=(L=n.entityType)==null?void 0:L.annotations.UI,c=(q=(ne=(Y=t==null?void 0:t[0])==null?void 0:Y.primary)==null?void 0:ne[0])==null?void 0:q[x.SchemaTag.annotationPath],{targetAnnotation:l}=cp(c,s,"primary",void 0,n.logger);jL(e,c,l,s);let p="Actions<ALPChart>";e.definitions[x.DefinitionName.ViewChartToolBar].properties.actions.$ref=F+p,SP(e,p,s,l,n.entityType);let{visualization:f,targetAnnotation:u}=cp((fe=(ie=(ue=t==null?void 0:t[0])==null?void 0:ue.secondary)==null?void 0:ie[0])==null?void 0:fe[x.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];f||i?(m.properties.toolBar.$ref=`${F}${x.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:F+x.DefinitionName.LineItems},m.properties.annotationPath[x.SchemaTag.hidden]=!0):m.properties={};let h=e.definitions[x.DefinitionName.ALPTableView];e.definitions[x.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(h)),delete e.definitions[x.DefinitionName.ALPTable][x.SchemaTag.isViewNode],h.additionalProperties=!1,h.description="Table (key: secondary)",h.title="Table",f?(delete h.properties,h.$ref=`${F}${x.DefinitionName.ALPTable}`):i||(h.properties={}),h[x.SchemaTag.artifactType]=x.ArtifactType.Manifest;let T,E;if(f&&f.indexOf(x.FacetBase.LineItem)>-1?(T=f.split(".")[1],E=t[0].secondary[0].annotationPath.split(x.UIVOCABULARYDOT)[1]):i&&(T=E=i.split(x.UIVOCABULARYDOT)[1]),T){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Ve=n.entityType)==null?void 0:Ve.annotations.UI[T],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:x.DefinitionName.LineItems};Wo(P,x.DefinitionName.ViewTableColumn),u&&(e.definitions[x.DefinitionName.ALPTable][x.SchemaTag.annotationPath]=u);let ke=s[E].fullyQualifiedName.split("@");h[x.SchemaTag.annotationPath]=`/${ke[0]}/@${ke[1]}`,h[x.SchemaTag.key]="secondary",h[x.SchemaTag.keys]=[{name:x.SchemaKeyName.key,value:"secondary"}]}}r(wL,"addALPViews");function $L(e,t){let n=`${x.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[x.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][x.SchemaTag.isViewNode],e.appSchema.definitions[n][x.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${x.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[x.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${F}${i}`;let o=`${x.DefinitionName.Actions}<${e.viewKey}>`;return SP(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[x.PropertyName.actions].$ref=`${F}${o}`,n}r($L,"addViewChartDefinitions");function ML(e,t,n,i,o,a){let s=$L(e,t);n.definitions[s].properties.annotationPath[x.SchemaTag.hidden]=!0,n.definitions[s].properties.index[x.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[x.SchemaTag.hidden]=!0;let c=`Chart View (key: ${o})`;i.properties[o]={$ref:`${F}${s}`,description:a||c,title:c}}r(ML,"addViewChart");function TP(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(TP,"createEmptyProperties");function UL(e,t,n,i,o){var m;let a=`${x.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${x.DefinitionName.LineItemsOfView}::${e.viewKey}`,c=ht(x.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete c[x.SchemaTag.isViewNode],c[x.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(c.navigationProperty=e.navPropName),e.entitySet&&(c.entitySet=e.entitySet),So(c.properties.toolBar,x.DefinitionName.ToolBar,s);let l=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${F}${a}`,description:e.title||l,title:l},So(c.properties.columns,s),c.properties.annotationPath[x.SchemaTag.hidden]=!0,c.properties.index[x.SchemaTag.hidden]=!0,c.properties.entitySet[x.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(x.UIVOCABULARYDOT)[1],f={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:o.serviceAVT,lineItemId:s,entitySet:c.entitySet},u=x.DefinitionName.ViewTableColumn;if(c.entitySet!==void 0){let{definitions:h}=e.appSchema;u=x.DefinitionName.ViewTableColumnBasic;let T=h[x.DefinitionName.ViewTableColumn];h[u]=TP(T);let E=x.DefinitionName.ViewTableColumnBasicAction,L=`${x.DefinitionName.ViewTableColumnAction}`;h[E]=TP(h[L])}Wo(f,u)}r(UL,"addViewLineItems");function kL(e,t,n,i){e.properties[t][x.SchemaTag.isViewNode]=!0,e.properties[t][x.SchemaTag.annotationPath]=n?`/${n}/@${i[x.SchemaTag.annotationPath]}`:void 0,e.properties[t][x.SchemaTag.artifactType]=x.ArtifactType.Manifest,e.properties[t][x.SchemaTag.key]=t,e.properties[t][x.SchemaTag.keys]=[{name:x.SchemaKeyName.key,value:t}]}r(kL,"addTagsToView");function _L(e,t,n){var a;let i=n.entityType,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=o.entityType),i}r(_L,"getTargetEntityType");function BL(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===x.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}r(BL,"handleViewProperties");function HL(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(x.Visualization.LineItem))>-1)UL(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&BL(n.appSchema.definitions[`${x.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)ML(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let c=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||c,title:c,$ref:`${F}${x.DefinitionName.TableViewExtension}`}}else{let c=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||c,title:c,$ref:`${F}${x.DefinitionName.LRTableView}`}}}r(HL,"addLRViewParts");function GL(e,t,n,i,o){var c;let a=e.definitions[o];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let l of t){if(!l[x.SchemaTag.key])continue;let p,f=_L(n.entitySet,l,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:h,namespace:T,title:E}=cp(l==null?void 0:l[x.SchemaTag.annotationPath],u,l[x.SchemaTag.key],void 0,n.logger);l.entitySet&&(p=(c=n.entityType.navigationProperties.find(ne=>ne.targetTypeName===T))==null?void 0:c.name);let L=Ie(l[x.SchemaTag.key]),Y={viewKey:L,appSchema:e,targetAnnotation:h,navPropName:p,targetEntityType:f,title:E,entitySet:l.entitySet};HL(m,s,Y,n,i,u,l),kL(s,L,T,l)}}r(GL,"addLRViews");function WL(e,t,n,i,o,a){var f,u,m,h,T,E,L,Y,ne,q,ue,ie;let s=e.definitions[a],{visualization:c,targetAnnotation:l,namespace:p}=cp(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,x.Visualization.LineItem,t.logger);if(c){let fe=c.split(".")[1],Ve=`${x.DefinitionName.LineItems}OfSPV::${Ie(fe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[x.SchemaTag.isViewNode],So(P.properties.toolBar,x.DefinitionName.ToolBar,Ve),P[x.SchemaTag.annotationPath]=l,P.properties.columns={},So(P.properties.columns,Ve),delete s.properties,So(s,`${a}SPV`),s[x.SchemaTag.annotationPath]=`/${p}/@${n}`;let ke=(u=t.entityType)==null?void 0:u.annotations.UI[fe];ke||_(t.logger,{severity:x.LogSeverity.Error,message:R.t("NOTARGET",{target:fe})});let Xe={isObjectPage:!1,appSchema:e,lineItemAnnotation:ke,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Ve};Wo(Xe)}else{s.properties.toolBar.$ref=`${F}${x.DefinitionName.ToolBarLR}`,So(s.properties.columns,x.DefinitionName.LineItems);let fe=(T=(h=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:h[o])==null?void 0:T.LineItem;!fe&&!((Y=(L=(E=i.options)==null?void 0:E.settings)==null?void 0:L.views)!=null&&Y.paths)&&_(t.logger,{severity:x.LogSeverity.Error,message:R.t("NOLINEITEMS")});let Ve={isObjectPage:!1,appSchema:e,lineItemAnnotation:fe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:x.DefinitionName.LineItems};Wo(Ve),fe&&!((ue=(q=(ne=i.options)==null?void 0:ne.settings)==null?void 0:q.views)!=null&&ue.paths)&&(s[x.SchemaTag.annotationPath]=_t((ie=t.entityType)==null?void 0:ie.fullyQualifiedName,fe.term,fe.qualifier))}}r(WL,"adaptTableDefinition");function QL(e,t,n){var i,o,a,s,c,l,p;if(!((o=(i=e.options.settings)==null?void 0:i.views)!=null&&o.paths&&n===x.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===x.TemplateType.ListReportObjectPageV4)return((c=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:c.term)||((p=(l=t==null?void 0:t.annotations.UI)==null?void 0:l.PresentationVariant)==null?void 0:p.term)}}r(QL,"getDefaultAnnotationPath");function KL(e,t,n,i){var c,l,p,f,u;let o=(p=(l=(c=t.options)==null?void 0:c.settings)==null?void 0:l.views)==null?void 0:p.paths,a=QL(t,n.entityType,n.templateType),s=hP(e,n);n.templateType===x.TemplateType.ListReportObjectPageV4?(WL(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],GL(e,o,n,t,s)):(u=(f=t.options)==null?void 0:f.settings)!=null&&u.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[x.PropertyName.chart][x.SchemaTag.hidden]=!0):n.templateType===x.TemplateType.AnalyticalListPageV4&&wL(e,o,n,a,t,s)}r(KL,"addTableAndViews");function rs(e,t,n,i){var l,p;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&Bt(x.UIVOCABULARY,e.serviceAVT),c=s&&((p=(l=a==null?void 0:a.annotations)==null?void 0:l[s])==null?void 0:p.SelectionFields);if(NL(a,o,c),o.properties[x.PropertyName.defaultTemplateAnnotationPath][x.SchemaTag.hidden]=!0,Ni(a,o,x.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[x.ManifestSection.ui5].routing.targets;if(!f)return _(e.logger,{severity:x.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:x.MANIFESTPATH,range:[x.ManifestSection.generic]}}),o;let u=sp(f,i,n,e.logger);if(!u)return o;KL(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,Wn(o,LL),o}r(rs,"generateListReportSchemaV4");var Rn=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=w(B());var XL=["header","layout","sections","footer"],JL=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function fg(e,t,n,i,o,a,s){let{actionName:c,namespace:l}=Dc(t.item,e),p=mi(t.item),f=t.item.fullyQualifiedName.replace(`@${Rn.UIAnnotationTerms.Identification}`,`/@${Rn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Ie(p)}>`,m=i.definitions[u]={type:"object",$ref:`${F}${v.DefinitionName.ObjectPageHeaderAction}`,description:xt(t.item,o)};m[v.SchemaTag.isViewNode]=!0,m[v.SchemaTag.dataType]=en(t.item),m[v.SchemaTag.propertyIndex]=s,m[v.SchemaTag.keys]=[],t.item[v.SchemaKeyName.semanticObject]&&m[v.SchemaTag.keys].push({name:v.SchemaKeyName.semanticObject,value:t.item[v.SchemaKeyName.semanticObject]}),m[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:c}),l&&(i.definitions[u][v.SchemaTag.target]=l),m[v.SchemaTag.actionType]=n,m[v.SchemaTag.annotationPath]=`/${f}`,a.properties[p]={$ref:`${F}${u}`},a.properties[p][v.SchemaTag.propertyIndex]=s}r(fg,"addSingleHeaderActionV4");function PP(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[v.SchemaTag.isViewNode]=!0,s[v.SchemaTag.propertyIndex]=i,s[v.SchemaTag.keys]=[],s[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:e}),s[v.SchemaTag.actionType]=v.ActionType.Standard,n.properties[o]={$ref:`${F}${a}`},n.properties[o][v.SchemaTag.propertyIndex]=i,s}r(PP,"addStandardHeaderAction");function AP(e,t,n,i,o,a){let s=mi(e.item),c=xt(e.item,n),l=Ie(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Rn.UIAnnotationTerms.Identification}`,`/@${Rn.UIAnnotationTerms.Identification}`),f=i.definitions[l]={type:"object",$ref:`${F}${v.DefinitionName.FooterActionV4}`,description:c};f[v.SchemaTag.isViewNode]=!0,f[v.SchemaTag.actionType]=t,f[v.SchemaTag.propertyIndex]=a,f[v.SchemaTag.annotationPath]=`/${p}`,o.properties[s]={$ref:`${F}${l}`}}r(AP,"addSingleFooterAction");function qL(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Rn.UIAnnotationTypes.DataFieldForAction||i.$Type===Rn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(JL.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(qL,"groupByCriticality");function zL(e,t,n,i,o){for(let a=0;a<e.length;a++)fg(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(zL,"addCriticalActions");function YL(e,t,n,i,o,a){let s=e.findIndex(c=>{var l,p;return((p=(l=c.item.annotations)==null?void 0:l.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(fg(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(YL,"addCopyAction");function ZL(e,t,n,i,o,a){for(let s of e)fg(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(ZL,"addUncriticalActions");function CP(e,t,n,i){var o,a,s,c;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((c=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&c[i])?e[v.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`:e[v.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`}r(CP,"setAnnotationPathFromEntitySetOrEntityType");function eN(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:c=[]}=n?qL(n):{};zL(s,o,t,e,i);let l=xS(a),p=IS(a);if(Oc(a)&&p){let u=PP("Edit",t,i,s.length);CP(u,a,e,"UpdateHidden")}if(l){let u=PP("Delete",t,i,s.length+1);CP(u,a,e,"DeleteHidden")}let f=s.length+2;YL(c,o,t,e,i,f),ZL(c,o,t,e,i,f)}r(eN,"addHeaderActionCallBackV4");function tN(e,t,n,i){let o=[],a=[];i.forEach((s,c)=>{s.Determining&&s.$Type===Rn.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:c,item:s}):a.push({index:c,item:s}))});for(let s=0;s<o.length;s++){let c=o[s];AP(c,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let c=a[s];AP(c,v.ActionType.Annotation,e,t,n,o.length+s)}}r(tN,"addFooterActionCallBackV4");function nN(e,t,n,i,o){let a=va(t),s=t.lastIndexOf("::"),c=s>-1?t.substring(s+2):t,l=ht(v.DefinitionName.ObjectPageTable,t,n);e.entityType&&c&&(l[v.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${c}`),l.properties.columns={$ref:`${F}${a}`},l.properties.toolBar.$ref=tn(v.DefinitionName.ObjectPageToolBar,t),l.properties.quickVariantSelection.$ref=tn(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=ht(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=tn(v.DefinitionName.AnnotationPathAsObject,t),ht(v.DefinitionName.AnnotationPathAsObject,t,n),Ni(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Wo(f,v.DefinitionName.ObjectPageTableColumn),l}r(nN,"handleLineItem");function xP(e,t,n,i,o,a){a&&lp(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=ht(v.DefinitionName.ObjectPageSectionTableV4,t,n);ui(e,s,va(t)),Vi(e,s,va(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=tn(v.DefinitionName.ObjectPageTable,t);let c=nN(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:c}}r(xP,"handleSectionTable");function iN(e,t,n,i,o){let a;o===v.SectionType.Section?a=v.DefinitionName.ObjectPageSectionForm:o===v.SectionType.HeaderSection&&(a=v.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:tn(a,t)};let s=ht(a,t,i);e.ID||(s.properties={}),ui(e,s,t),Vi(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,Nc(o,e,s,i,v.FioriElementsVersion.v4,t)}r(iN,"handleFormIdentification");function EP(e,t,n,i,o){n.properties[t]={$ref:`${F}${o}`};let a=ht(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);ua(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=To(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(EP,"handleHeaderFacet");function oN(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let c=s,l=xt(c,i),p=c.$Type.split(v.UIVOCABULARYDOT)[1],f=c.Action.replace("/","::"),u=o.properties[`${p}::${c.Action}`]={$ref:tn(v.DefinitionName.ObjectPageToolBarAction,f),description:l};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=c.$Type;let m=ht(v.DefinitionName.ObjectPageToolBarAction,Ie(f),n);m[v.SchemaTag.annotationPath]=Mc(c),m[v.SchemaTag.dataType]=en(c),m.properties={},a++})}return o}r(oN,"handleChartActions");function aN(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=Mc(e),o[v.SchemaTag.dataType]=To(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=tn(v.DefinitionName.ObjectPageToolBar,t);let a=ht(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=tn(v.DefinitionName.ObjectPageToolBarActions,t);let s=oN(e,t,n,i);return{chart:o,chartActions:s}}r(aN,"handleChart");function IP(e,t,n,i,o=e.entityType,a=!1,s){let c=a?v.DefinitionName.CommonHeaderFacetSettings:v.DefinitionName.ObjectPageSectionChart,l=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart;i&&lp(i,t,c);let p=fr(l,t),f=ht(c,p,n,!1);if(ua(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=Mc(e),f.properties.chart.$ref=tn(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=aN(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(IP,"handleSectionChart");function rN(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${kf(o,n.serviceAVT)}`,c=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:c}}r(rN,"getVisualizationKeyAndType");function sN(e,t,n){var o,a;return(a=(o=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:o.annotations)==null?void 0:a.UI[n]}r(sN,"getTargetFromNavigation");function cN(e,t,n){let i=e.target[v.FacetBase.PresentationVariant]?e.target[v.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let o=i[0].$target,a=o||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:c,type:l}=rN(!!o,a,n),p=o?a:sN(n,s,l),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:c,type:l,target:p,namespace:f,navigationPath:s}}r(cN,"getVisualizationProps");function lp(e,t,n,i){e.properties[t]={$ref:tn(n,i||t)}}r(lp,"addPropertyRef");function OP(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(OP,"getSectionPropertyRef");function lN(e,t,n,i,o,a){let{propertyKey:s,navigationKey:c}=OP(t,o);lp(i,s,v.DefinitionName.ObjectPageSectionTableV4,c);let{sectionTable:l,table:p}=xP(e,c,n,{target:o.target,entityType:e.entityType},a);l[v.SchemaTag.annotationPath]=e.annotationPath,ua(e,l,t),delete l[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(lN,"addPVLineItemSection");function pN(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:c,navigationKey:l}=OP(t,o);lp(i,c,s,l);let{parentChartRef:p}=IP(o.target,l,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ui(e,p,t),XT(e,p)):ua(e,p,t)}r(pN,"addPVChartSection");function fN(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){_(a.logger,{severity:v.LogSeverity.Error,message:R.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=cN(e,t,a),l=o===v.SectionType.HeaderSection;c&&(c.type.startsWith(v.Visualization.Chart)?pN(e,t,n,i,c,l):c.type.startsWith(v.Visualization.LineItem)&&lN(e,t,n,i,c,a))}r(fN,"handleSectionPresentationVariant");function uN(e,t,n,i,o,a,s){let c=o;e.additionalProperties={$ref:`${F}${c}`},bP(t,e,i,c,s,n.logger);let l=t.definitions[c];typeof l=="object"&&MS(t,e,{schema:l,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(uN,"applyCustomSections");function ug(e,t,n,i,o,a,s){let c=t[n],l=`ObjectPage${a}${c.base}<${va(n)}>`;switch(c.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{fN(c,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{dN(c,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];xP(c,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{iN(c,n,i,o,a);break}case v.FacetBase.DataPoint:{EP(c,n,i,o,l);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?EP(c,n,i,o,l):a===v.SectionType.Section&&IP(c,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{ur(c,n,i,o,a);break}default:i.properties[n]=Hn(o,c,n)}}r(ug,"addSection");function dN(e,t,n,i,o,a,s){let c=i.properties[t]=Hn(n,e,t);c.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let l=c.properties.subsections;l[v.SchemaTag.annotationPath]=e.annotationPath,l[v.SchemaTag.target]=e.namespace,l[v.SchemaTag.keys]=[{name:v.SchemaKeyName.id,value:e.ID}],l[v.SchemaTag.isViewNode]=!0;for(let p in e.facets)ug(a,e.facets,p,l,n,o,s)}r(dN,"handleCollection");function gN(e,t,n){let i=gc(e.entitySet.entityType,e.serviceAVT,v.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[v.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[v.DefinitionName.Sections];for(let a in i)ug(e,i,a,o,t,v.SectionType.Section,n);uN(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(gN,"addSections");function mN(e,t,n,i){let o=dc(n,e.serviceAVT,v.FioriElementsVersion.v4,e.logger),a=t.definitions[v.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)ug(e,o,s,a,t,v.SectionType.HeaderSection,i);delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionAddress]}}r(mN,"addHeaderSections");function yN(e,t,n){let i=e.entitySet.entityType;wc(t,i),jc(t,i,e.entitySet,e.serviceAVT,eN),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Rn.UIAnnotationTerms.HeaderFacets}`),mN(e,t,i,n)}r(yN,"addHeader");function ss(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${F}${v.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[v.ManifestSection.ui5].routing||!e.manifest[v.ManifestSection.ui5].routing.targets)return _(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:v.MANIFESTPATH}}),i;let o=i.definitions[v.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:v.DefinitionName.Sections};if(o[v.SchemaTag.isViewNode]=!0,n){let a=e.manifest[v.ManifestSection.ui5].routing.targets;if(!a)return _(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:v.MANIFESTPATH,range:[v.ManifestSection.generic]}}),i;let s=sp(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;yN(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Rn.UIAnnotationTerms.Facets}`),gN(e,i,s),Rc(i,e,v.FioriElementsVersion.v4,tN)}return delete i.definitions[v.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[v.DefinitionName.GenericColumnsOP],delete i.definitions[v.DefinitionName.GenericSections],delete i.definitions[v.DefinitionName.ObjectPageChart],delete i.definitions[v.DefinitionName.ObjectPageSectionAddress],delete i.definitions[v.DefinitionName.ObjectPageSectionChart],delete i.definitions[v.DefinitionName.ObjectPageSectionContact],delete i.definitions[v.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[v.DefinitionName.ObjectPageSectionForm],delete i.definitions[v.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[v.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[v.DefinitionName.ObjectPageSubSections],delete i.definitions[v.DefinitionName.ObjectPageTable],delete i.definitions[v.DefinitionName.ObjectPageToolBar],delete i.definitions[v.DefinitionName.ObjectPageToolBarAction],delete i.definitions[v.DefinitionName.ObjectPageToolBarActions],delete i.definitions[v.DefinitionName.QuickVariantSelectionV4OP],Wn(i,XL),i}r(ss,"generateObjectPageSchemaV4");function dg(e,t){return JSON.parse(JSON.stringify(t))}r(dg,"generateFreestyleSchemaV4");var Tn=w(B());function gg(e,t,n,i,o,a){let s=In(n,o),c=xi(t,s);c||_(o,{severity:Tn.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:t})});let l={templateType:Tn.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:c,entityType:c==null?void 0:c.entityType};return ss(l,e,c)}r(gg,"generateObjectPageInterfaceV4");function pp(e,t,n,i,o,a){qe();let s=In(i,o),c=s==null?void 0:s.entitySets.find(f=>f.name===n),l={templateType:e,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:c,entityType:c.entityType},p=e===Tn.TemplateType.ListReportObjectPageV4?Tn.v4.FE_TEMPLATE_V4_LIST_REPORT:Tn.v4.FE_TEMPLATE_V4_ALP;return rs(l,t,c,p)}r(pp,"generateListReportInterfaceV4");function mg(e,t,n,i,o,a){let s=In(n,a),c={templateType:e,fioriElementsVersion:Tn.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return dg(c,t)}r(mg,"generateFreestyleInterfaceV4");var cs=require("@sap-ux/vocabularies-types/vocabularies/UI"),FP=w(B());var $e=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),dp=r(e=>$e(e)+"/views/paths","getSettingsPathForLRViewsPaths"),yg=r(e=>$e(e)+"/content/header","getSettingsPathForHeaderOP"),ei=r(e=>$e(e)+"/controlConfiguration","getControlConfigurationPath"),gp=r((e,t,n)=>ei(e)+`/@${cs.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),jn=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),wn=r((e,t,n,i,o)=>o?jn(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),mp=r((e,t,n,i,o)=>wn(e,t,n,i,o)+FP.QUICKVARPATH,"getQuickVariantPath"),Jt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Mt=r((e,t,n,i,o)=>o?Jt(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),hg=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?ei(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),yp=r((e,t,n,i,o)=>o?hg(e,t,n,i,o):ei(e)+`/@${cs.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Qo=r((e,t,n,i)=>ei(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),VP=r((e,t,n,i)=>ei(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),vt=r((e,t,n)=>ei(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),ls=r((e,t,n,i)=>{let o=$e(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),up=class up{};r(up,"ApplicationV4"),d([_e("settings")],up.prototype,"settings",2);var fp=up,to=class to{};r(to,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],to.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],to.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],to.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),S({since:"1.78.0"})],to.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"})],to.prototype,"flexEnabled",2);var Ga=to;var te=w(B());function Ze(e,t,n,i,o,a,s){if(!n)return;let c={},l=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let f in n.properties){let u=pt(e,f);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,p,...o);c=fi(t,m,a,p,!0),c&&Object.keys(c).length>0&&(ha(u,c,f,e,a,o),Tc(l,c,m,s))}}}r(Ze,"importSettingsOfObject");var um={};ta(um,{ALPChart:()=>Sg,ALPTable:()=>Ka,ActionAfterExecutionConfiguration:()=>Ng,ActionAfterExecutionConfigurationOP:()=>As,ActionAfterExecutionConfigurationToolBarLR:()=>Hg,Actions:()=>Ug,CommonHeaderFacetSettings:()=>io,CommonViewSettings:()=>Qa,FilterBar:()=>Kg,FlexSettings:()=>qg,HeaderSections:()=>nm,LRChartView:()=>vg,LRTableView:()=>Pg,MultiTableModeV4:()=>Cg,ObjectPageCustomSectionFragment:()=>Is,ObjectPageHeader:()=>Jg,ObjectPageHeaderSectionAddress:()=>tm,ObjectPageHeaderSectionChart:()=>Yg,ObjectPageHeaderSectionContact:()=>em,ObjectPageHeaderSectionDataPoint:()=>Zg,ObjectPageHeaderSectionForm:()=>zg,ObjectPageLayout:()=>lm,ObjectPageTable:()=>xs,ObjectPageTableColumn:()=>Xa,ObjectPageTableColumnAction:()=>Xg,ObjectPageToolBarAction:()=>Qg,Position:()=>jg,QuickVariantSelectionV4:()=>Tg,QuickVariantSelectionV4OP:()=>fm,Table:()=>Eg,TableColumn:()=>vp,TableColumnAction:()=>Dg,TableCreationModeOP:()=>pm,TableCustomColumn:()=>$g,TableSettings:()=>hp,TableViewExtension:()=>Ag,TableViewSettings:()=>ds,ToolBar:()=>kg,ToolBarAction:()=>Gg,ViewPosition:()=>wg,ViewTableColumn:()=>Pp,ViewTableColumnAction:()=>Rg,ViewTableCustomColumn:()=>Mg,ViewToolBarAction:()=>Wg,checkViewOrder:()=>Ig,deleteCreationModeCreateAtEnd:()=>Lg,deleteCreationModeName:()=>Og,exportCreationModeCreateAtEnd:()=>Vg,exportCreationModeName:()=>xg,exportPersonalization:()=>TN,exportPersonalizationProperty:()=>SN});var bg=w(B());var hN=r((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 ti(e,t,n,i,o,a){let s=dp(e),c=hN(JSON.parse(JSON.stringify(t)),s),l;for(let p=0;p<c.length;p++){let f=c[p];if(f&&(f[bg.SchemaTag.key]===(a==null?void 0:a.key)||f[bg.SchemaTag.key]===i)){l=`${s}/${p}`;break}}return l||(l=`${s}/[]`),l}r(ti,"getSettingsPathForLRViewsPath");function xg(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(xg,"exportCreationModeName");function bN(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),c=Object.keys(e);for(let l of c){let p=Number(l),f=e[l];t===f.key?s[n]=f:p>=i&&p<=o?s[Math.max(0,p+a)]=f:s[l]=f}return s}r(bN,"fillNewlyOrderedViews");function Ig(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),o=t.index;if(i>-1&&i!==o){let a=o>i?-1:1,s=Math.min(Number(i),o),c=Math.max(Number(i),o),l=bN(e,n,o,s,c,a);for(let p of Object.keys(l))e[p]=l[p]}}r(Ig,"checkViewOrder");function TN(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(TN,"exportPersonalization");function SN(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(SN,"exportPersonalizationProperty");function Og(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}r(Og,"deleteCreationModeName");function Fg(e,t,n,i,o,a){var c;let s;if(!t||Object.keys(t).length===0){let l=e;Object.keys(l).forEach(p=>{l[p]&&l[p].key===o&&(e[Number(p)]={},s=p)})}if(s){let l=(c=a.table)==null?void 0:c.views;for(let p in l)l[p].index>s&&l[p].index--}}r(Fg,"deleteView");function Vg(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}r(Vg,"exportCreationModeCreateAtEnd");function Lg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(Lg,"deleteCreationModeCreateAtEnd");function LP(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(LP,"determineIndexOfView");var Wa=class Wa{};r(Wa,"QuickVariantSelectionV4"),d([g({manifest:{path:mp}})],Wa.prototype,"paths",2),d([g({manifest:{path:mp}})],Wa.prototype,"hideTableTitle",2),d([g({manifest:{path:mp}})],Wa.prototype,"showCounts",2);var Tg=Wa,Sn=class Sn{};r(Sn,"TableSettings"),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sn.prototype,"type",2),d([g({manifest:{path:wn}}),S({since:"1.86.0"})],Sn.prototype,"personalization",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Sn.prototype,"selectionMode",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"selectAll",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"selectionLimit",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Sn.prototype,"enableExport",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"})],Sn.prototype,"quickVariantSelection",2),d([g({manifest:{path:wn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Sn.prototype,"condensedTableLayout",2),d([g({manifest:{path:wn}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sn.prototype,"hierarchyQualifier",2);var hp=Sn,bp=class bp{};r(bp,"ALPChart"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/primary/0","path"),delete:Fg}})],bp.prototype,"annotationPath",2);var Sg=bp,Ko=class Ko{};r(Ko,"CommonViewSettings"),d([g({manifest:{path:ti,delete:lo}})],Ko.prototype,"key",2),d([g({manifest:{path:dp,import:LP,export:r((t,n)=>{Ig(t,n)},"export"),delete:Fg}})],Ko.prototype,"index",2),d([g({manifest:{path:ti,delete:lo}})],Ko.prototype,"annotationPath",2),d([g({manifest:{path:ti}})],Ko.prototype,"entitySet",2);var Qa=Ko,vn=class vn extends Qa{};r(vn,"TableViewSettings"),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"type",2),d([g({manifest:{path:jn}}),S({since:"1.86.0"})],vn.prototype,"personalization",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectionMode",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectAll",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"selectionLimit",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],vn.prototype,"enableExport",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"})],vn.prototype,"quickVariantSelection",2),d([g({manifest:{path:jn}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],vn.prototype,"condensedTableLayout",2),d([g({manifest:{path:jn}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vn.prototype,"hierarchyQualifier",2);var ds=vn;function vN(e){return ds}r(vN,"getTableViewSettings");var ps=class ps extends ds{};r(ps,"ALPTable"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:lo}})],ps.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ps.prototype,"initialLoad",2);var Ka=ps,Tp=class Tp extends Qa{};r(Tp,"LRChartView"),d([g({manifest:{path:ti},generate:Qn})],Tp.prototype,"visible",2);var vg=Tp,fs=class fs extends vN(Qa){};r(fs,"LRTableView"),d([g({manifest:{path:ti}})],fs.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:ti},generate:Qn})],fs.prototype,"visible",2);var Pg=fs,no=class no{};r(no,"TableViewExtension"),d([g({manifest:{path:ti}})],no.prototype,"key",2),d([g({manifest:{path:dp,import:LP,export:r((t,n)=>{Ig(t,n)},"export"),delete:Fg}})],no.prototype,"index",2),d([g({manifest:{path:ti}})],no.prototype,"label",2),d([g({manifest:{path:ti}})],no.prototype,"template",2),d([g({manifest:{path:ti},generate:Qn})],no.prototype,"visible",2);var Ag=no,Sp=class Sp{};r(Sp,"MultiTableModeV4"),d([g({manifest:{path:r(t=>$e(t)+"/views","path")}})],Sp.prototype,"showCounts",2);var Cg=Sp,us=class us extends hp{};r(us,"Table"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:lo}})],us.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],us.prototype,"initialLoad",2);var Eg=us;var gs=class gs{};r(gs,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],gs.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}})],gs.prototype,"enableAutoScroll",2);var Ng=gs,ms=class ms{};r(ms,"TableColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ms.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ms.prototype,"availability",2);var vp=ms,ys=class ys{};r(ys,"ViewTableColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ys.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ys.prototype,"availability",2);var Pp=ys,Ap=class Ap extends vp{};r(Ap,"TableColumnAction"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],Ap.prototype,"afterExecution",2);var Dg=Ap,Cp=class Cp extends Pp{};r(Cp,"ViewTableColumnAction"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],Cp.prototype,"afterExecution",2);var Rg=Cp,hs=class hs{};r(hs,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],hs.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],hs.prototype,"placement",2);var jg=hs,bs=class bs{};r(bs,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],bs.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],bs.prototype,"placement",2);var wg=bs,ni=class ni{};r(ni,"TableCustomColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"position",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"header",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ni.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"template",2),d([g({manifest:{path:Mt}}),S({since:"1.86.0"})],ni.prototype,"horizontalAlign",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ni.prototype,"availability",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ni.prototype,"properties",2);var $g=ni,ii=class ii{};r(ii,"ViewTableCustomColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"position",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"header",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ii.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"template",2),d([g({manifest:{path:Jt}}),S({since:"1.86.0"})],ii.prototype,"horizontalAlign",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ii.prototype,"availability",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ii.prototype,"properties",2);var Mg=ii;var _g=class _g{};r(_g,"Actions");var Ug=_g,Bg=class Bg{};r(Bg,"ToolBar");var kg=Bg;var Ts=class Ts{};r(Ts,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>yp(t,n,i,o,a)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ts.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>yp(t,n,i,o,a)+"/afterExecution","path")}})],Ts.prototype,"enableAutoScroll",2);var Hg=Ts,Ep=class Ep{};r(Ep,"ToolBarAction"),d([g({manifest:{path:yp}})],Ep.prototype,"enableOnSelect",2);var Gg=Ep,xp=class xp{};r(xp,"ViewToolBarAction"),d([g({manifest:{path:hg}})],xp.prototype,"enableOnSelect",2);var Wg=xp;var Ip=class Ip{};r(Ip,"ObjectPageToolBarAction"),d([g({manifest:{path:VP}})],Ip.prototype,"enableOnSelect",2);var Qg=Ip;var Op=class Op{};r(Op,"FilterBar"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.99.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Op.prototype,"hideFilterBar",2);var Kg=Op;var Ss=class Ss{};r(Ss,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/afterExecution","path")}}),ce("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ss.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/afterExecution","path")}})],Ss.prototype,"enableAutoScroll",2);var As=Ss,vs=class vs{};r(vs,"ObjectPageTableColumn"),d([g({manifest:{path:Qo}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/api/sap.ui.core.CSSSize")],vs.prototype,"width",2),d([g({manifest:{path:Qo}}),S({since:"1.85.0"})],vs.prototype,"availability",2);var Xa=vs,Ps=class Ps extends Xa{};r(Ps,"ObjectPageTableColumnAction"),d([g({manifest:{path:Qo}}),S({since:"1.84.0"})],Ps.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Qo(t,n,i,o)+"/position","path")}}),S({since:"1.84.0"})],Ps.prototype,"placement",2);var Xg=Ps;var Xo=class Xo{};r(Xo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Xo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Xo.prototype,"showRelatedApps",2),d([g({manifest:{path:yg}}),S({since:"1.84.0"})],Xo.prototype,"visible",2),d([g({manifest:{path:yg}}),S({since:"1.84.0"})],Xo.prototype,"anchorBarVisible",2);var Jg=Xo;var Fp=class Fp{};r(Fp,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>gp(t,n,i)+"/flexSettings","path")}}),S({since:"1.81.0"}),ce("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Fp.prototype,"designtime",2);var qg=Fp,Cs=class Cs{};r(Cs,"CommonHeaderFacetSettings"),d([g({manifest:{path:gp}}),S({since:"1.81.0"})],Cs.prototype,"stashed",2),d([g({manifest:{path:gp}}),S({since:"1.81.0"})],Cs.prototype,"flexSettings",2);var io=Cs,im=class im extends io{};r(im,"ObjectPageHeaderSectionForm");var zg=im,om=class om extends io{};r(om,"ObjectPageHeaderSectionChart");var Yg=om,am=class am extends io{};r(am,"ObjectPageHeaderSectionDataPoint");var Zg=am,rm=class rm extends io{};r(rm,"ObjectPageHeaderSectionContact");var em=rm,sm=class sm extends io{};r(sm,"ObjectPageHeaderSectionAddress");var tm=sm,cm=class cm{};r(cm,"HeaderSections");var nm=cm;var Vp=class Vp{};r(Vp,"ObjectPageLayout"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Vp.prototype,"sectionLayout",2);var lm=Vp;var Lp=w(B());var Es=class Es{};r(Es,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{xg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Og(t,o)},"delete")}})],Es.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{Vg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Lg(t,o)},"delete")}})],Es.prototype,"createAtEnd",2);var pm=Es,Ja=class Ja{};r(Ja,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+Lp.QUICKVARPATH,"path")}})],Ja.prototype,"showCounts",2);var fm=Ja,qt=class qt{};r(qt,"ObjectPageTable"),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"type",2),d([g({manifest:{path:vt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),S({since:"1.84.0"})],qt.prototype,"creationMode",2),d([g({manifest:{path:vt}}),S({since:"1.86.0"})],qt.prototype,"personalization",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectionMode",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectAll",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"selectionLimit",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],qt.prototype,"enableExport",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"})],qt.prototype,"quickVariantSelection",2),d([g({manifest:{path:vt}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],qt.prototype,"condensedTableLayout",2),d([g({manifest:{path:vt}}),S({since:"1.86.0"})],qt.prototype,"enablePaste",2),d([g({manifest:{path:vt}}),S({since:"1.117.0"}),ce("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qt.prototype,"hierarchyQualifier",2);var xs=qt;var Jo=class Jo{};r(Jo,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>ls(t,n,i,"position"),"path"),key:"anchor"}}),S({since:"1.77.0"})],Jo.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>ls(t,n,i,"position"),"path"),key:"placement"}}),S({since:"1.77.0"})],Jo.prototype,"relativePosition",2),d([g({manifest:{path:ls}}),S({since:"1.77.0"})],Jo.prototype,"title",2),d([g({manifest:{path:ls,key:"name"}}),S({since:"1.77.0"})],Jo.prototype,"fragmentName",2);var Is=Jo;var ym={};ta(ym,{FreestylePage:()=>gm,ListReport:()=>Pn,ObjectPage:()=>$n});function PN(e){var t,n,i,o;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(o=(i=e.paths)==null?void 0:i[0])!=null&&o.secondary)&&Object.keys(e).forEach(a=>delete e[a])}r(PN,"deleteAllALPViews");function AN(){}r(AN,"doNotExport");function CN(){}r(CN,"doNotImport");var Pn=class{};r(Pn,"ListReport"),d([g({manifest:{path:r(t=>$e(t)+"/views","path"),import:CN,export:AN,delete:PN}})],Pn.prototype,"chart",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],Pn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/[]/0","path")}}),ce("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Pn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}})],Pn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],Pn.prototype,"filterBar",2),Pn=d([Qt({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Pn);var dm=w(B());var $n=class{};r($n,"ObjectPage"),d([_e("header")],$n.prototype,"header",2),d([_e("layout")],$n.prototype,"layout",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ce("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],$n.prototype,"variantManagement",2),d([_e("sections")],$n.prototype,"sections",2),$n=d([Qt({id:`${dm.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:dm.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],$n);var mm=class mm{};r(mm,"FreestylePage");var gm=mm;var Np=w(B());var EN={ALPTableView:Ka},xN={ALPTableView:Ka},IN={Table:xs,TableColumn:Xa,ObjectPageCustomSectionView:Is,ActionAfterExecutionConfiguration:As},ON={[Np.PageTypeV4.AnalyticalListPage]:EN,[Np.PageTypeV4.ListReport]:xN,[Np.PageTypeV4.ObjectPage]:IN},hm=class hm extends Ba{constructor(){super(um,ym,ON)}};r(hm,"MetadataInstanceFactoryV4");var Ii=hm;var bm=require("@sap-ux/vocabularies-types/vocabularies/UI");function Tm(e,t,n,i,o,a,s){var f,u,m,h,T,E;let c=t.jsonSchema.definitions,l=a&&a!==`@${bm.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,p=c[l];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let L in p.properties){let ne=c[l].properties[L].$ref.split(F)[1].split("<")[0];e.columns[L]=n.createInstance(i,ne);let q=s||a;Ze(e.columns[L],t.manifest,c[ne],o,[L,q],q,t.logger),fo(e.columns,L)}fo(e,"columns")}else{let L=(E=(T=(h=(m=(u=(f=t.manifest["sap.ui5"])==null?void 0:f.routing)==null?void 0:u.targets)==null?void 0:m[o])==null?void 0:h.options)==null?void 0:T.settings)==null?void 0:E.views;(!L||L.paths.length<1)&&_(t.logger,{severity:te.LogSeverity.Error,message:R.t("NOLINEITEMS")})}}r(Tm,"transferColumns");function FN(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let c=e.jsonSchema.definitions,l=s;!l&&[te.DefinitionName.LineItems,`${te.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(l=`@${bm.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=c[`${te.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let f in p.properties){let u=p.properties[f];if(typeof u=="object"&&u.$ref){let m=ga(u.$ref),h=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,h),Ze(t.toolBar.actions[f],e.manifest,c[m],o,[f,l]),fo(t.toolBar.actions,f)}}}r(FN,"importActions");function NP(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let c=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),l;!s&&t&&"table"in t?l=t.table:l=t,l.toolBar=c,Ze(l.toolBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.ToolBarLR],o,[]),FN(e,l,n,i,o,a,s),fo(l.toolBar,"actions"),fo(l,"toolBar")}r(NP,"transferToolBar");function DP(e,t){var o;let n=(o=e[t])==null?void 0:o[te.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}r(DP,"determineTargetAnnotationOfView");function VN(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,te.DefinitionName.ALPChart);let s=a[te.DefinitionName.ALPChart],c=s[te.SchemaTag.annotationPath];Ze(t.chart,e.manifest,s,o,[s[te.SchemaTag.key],c==null?void 0:c.substr(c.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),Ze(t.chart.toolBar,e.manifest,a[te.DefinitionName.ViewChartToolBar],o,[]);let l=a[te.DefinitionName.ALPTable][te.SchemaTag.annotationPath];if(l){let p=a[te.DefinitionName.ALPTable],f=t.table=n.createInstance(i,te.DefinitionName.ALPTable);NP(e,t,n,i,o);let u=l.substr(l.lastIndexOf("@"));Ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),Tm(f,e,n,i,o,void 0,u)}}r(VN,"importALPViews");function LN(e){let t;return e.indexOf(te.DefinitionName.LRTableView)>-1?t=te.DefinitionName.LRTableView:e.indexOf(te.DefinitionName.LRChartView)>-1?t=te.DefinitionName.LRChartView:e===te.DefinitionName.TableViewExtension&&(t=te.DefinitionName.TableViewExtension),t}r(LN,"getViewTypeByDefinition");function NN(e,t,n,i,o){let a=t.table.views=n.createInstance(i,te.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ze(a,e.manifest,s[te.DefinitionName.MultiTableModeV4],o,[]);let c=s[te.DefinitionName.MultiTableModeV4].properties,l=Object.entries(c).sort((p,f)=>p[1][te.SchemaTag.propertyIndex]-f[1][te.SchemaTag.propertyIndex]);for(let p of l)if(p[1].$ref){let f=p[1].$ref.split(F)[1],u=LN(f),m=a[p[0]]=n.createInstance(i,u),h=DP(s,f);s[f].entitySet||(Ze(m,e.manifest,s[f],o,[p[0],h]),u===te.DefinitionName.LRTableView&&Tm(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,h)),Object.keys(m).length===0&&delete a[p[0]]}fo(t.table,"views")}r(NN,"importLRViews");function DN(e,t,n,i,o,a){if(Ze(t,e.manifest,e.jsonSchema,o,[]),t.filterBar=n.createInstance(i,te.DefinitionName.FilterBar),Ze(t.filterBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.FilterBar],o,[]),a===te.SchemaType.ListReport){let s=te.DefinitionName.Table,c=e.jsonSchema.definitions[s],l;c.$ref&&(s=c.$ref.split(F)[1],c=e.jsonSchema.definitions[s],l=c.properties.columns.$ref.split(F)[1]),t.table=n.createInstance(i,te.DefinitionName.Table);let p=DP(e.jsonSchema.definitions,s);Ze(t.table,e.manifest,c,o,[s,p]),NP(e,t,n,i,o,l),Tm(t.table,e,n,i,o,l,p),NN(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&VN(e,t,n,i,o)}r(DN,"addSettings");function qo(e,t){if(qe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){_(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let n=e.manifest[te.ManifestSection.ui5].routing.targets;if(!n){_(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new Ii,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],c=Ff(s);if("name"in s&&(c===te.PageTypeV4.ListReport||c===te.PageTypeV4.AnalyticalListPage)){DN(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(qo,"createListReportConfig");var le=w(B()),Os=require("@sap-ux/vocabularies-types/vocabularies/UI");function Sm(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${Os.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${Os.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(Sm,"getManifestId");function vm(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(vm,"getDefinitionId");function RN(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,c=e.jsonSchema.definitions[vm(a)];if(c)for(let l in c.properties){c.properties[l].$ref.indexOf(le.DefinitionName.CustomColumnOP)>-1?s=le.DefinitionName.CustomColumnOP:s=le.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(le.PageTypeV4.ObjectPage,s);Ze(f,e.manifest,e.jsonSchema.definitions[s],e.routingId,[l],a),Object.keys(f).length>0&&(n[i].table.columns[l]=f)}}}r(RN,"fillTableColumnsInConfig");function jN(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${le.DefinitionName.Actions}<${vm(o)}>`];if(a)for(let s in a.properties){let c=a.properties[s];if(typeof c=="object"&&c.$ref){let l=ga(c.$ref),p=l.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(le.PageTypeV4.ObjectPage,p),Ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[l],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(jN,"fillTableActionsInConfig");function RP(e,t,n,i,o,a){let s=a||Sm(i),c=t.controlConfiguration[s];if(c){n[i]={},n[i].table=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageTable);let l=`${le.DefinitionName.ObjectPageTable}<${a?vm(a):i.replace("#","::")}>`;Ze(n[i].table,e.manifest,e.jsonSchema.definitions[l],e.routingId,[],s),n[i].table.toolBar=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ToolBar,{actions:{}}),jN(e,i,n,o,s),RN(e,c,n,i,o,s)}}r(RP,"fillTableInConfig");function wN(e,t,n,i,o){var c;let a=Sm(i);((c=t.controlConfiguration)==null?void 0:c[a])&&(n[i]={},n[i].form=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageForm,{actions:{}}))}r(wN,"fillFormInConfig");function jP(e,t,n,i,o){var a,s,c,l;for(let p in t){let f=t[p],u=p;if(p.includes(Os.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(F+le.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(F)[1];u=m?Sm(m,!0):p,RP(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(F+le.DefinitionName.ObjectPageSectionTableV4)?RP(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},jP(e,f.properties.subsections.properties,n,i[p].subsections,o)):(c=f.$ref)!=null&&c.startsWith(F+le.DefinitionName.ObjectPageSectionForm)&&((l=f.$ref)!=null&&l.includes(`@${Os.UIAnnotationTerms.FieldGroup}::`))&&wN(e,n,i,p,o)}}r(jP,"fillSectionsInConfig");function $N(e,t,n,i){var a,s;let o=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(o)for(let c in o){if("subSections"in o[c])continue;let p=i.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageCustomSectionFragment);Ze(p,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],c),n.sections[c]=p}}r($N,"fillCustomSectionsInConfig");function MN(e,t,n,i,o){var s,c;let a=e.definitions[le.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let l in a.properties){let p=a.properties[l],f,u=(s=a.properties[l].$ref)==null?void 0:s.split(F)[1];u&&(p=e.definitions[u],f=u.split("<")[0]),(f==null?void 0:f.includes(le.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[l]=f?n.createInstance(le.PageTypeV4.ObjectPage,f):{},Ze(t.header.sections[l],i,p,o,[],(c=p==null?void 0:p.title)==null?void 0:c.split(le.FACETTITLEPREFIX)[1]))}}}r(MN,"fillHeaderFacets");function UN(e,t,n){let i=n.createPageInstance(le.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageHeader),Ze(i.header,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageLayout),Ze(i.layout,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageLayout],e.routingId,[]),Ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[le.DefinitionName.Sections]&&(i.sections={},jP(e,e.jsonSchema.definitions[le.DefinitionName.Sections].properties,o,i.sections,n)),$N(e,o,i,n),MN(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(UN,"fillObjectPageConfig");function Dp(e){if(qe(),!e.manifest[le.ManifestSection.ui5]||!e.manifest[le.ManifestSection.ui5].routing){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5]}});return}let t=e.manifest[le.ManifestSection.ui5].routing.targets;if(!t){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){_(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOROUTINGID",{routingId:e.routingId}),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let i=new Ii;return UN(e,n,i)}r(Dp,"createObjectPageConfigV4");var he=w(B());var Pm=[],Rp={};function kN(e,t){let n=e.target,i=t.target,o=Array.isArray(n),a=Array.isArray(i);return o&&a?n.length-i.length:!o&&!a?0:o?1:-1}r(kN,"routesSorter");function Am(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(o=>!i.includes(o));return n[0]}r(Am,"resolveTarget");function _N(e){let t={};e=e.concat().sort(kN);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Am(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let c=s.split("(")[0];t[a]=t[a]?`${t[a]}.${c}`:c}}return t}r(_N,"populateAssociations");function BN(e,t,n){let i;return e.name?e.name===he.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=he.PageTypeV4.CustomPage:e.name.endsWith(he.PageTypeV4.ListReport)||e.name.endsWith(he.PageTypeV4.AnalyticalListPage)?i=he.PageTypeV4.ListReport:e.name.endsWith(he.PageTypeV4.ObjectPage)?i=he.PageTypeV4.ObjectPage:i=he.PageTypeV4.CustomPage:"viewId"in e?i=he.PageTypeV4.CustomPage:(_(t,{severity:he.LogSeverity.Error,message:R.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:he.MANIFESTPATH,range:[`${he.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in he.ViewTypes&&"viewName"in e&&(i=he.PageTypeV4.CustomPage)),i}r(BN,"determinePageType");function HN(e){let t=da(e.page.pageType,e.page.entitySet,e.target.viewId||e.pageType===he.PageTypeV4.CustomPage&&e.target.id);if(!t)return;let n=Object.keys(e.schemas).find(i=>i.includes(t))||Object.keys(e.schemas).find(i=>i.includes(t.slice(0,-1)))||Object.keys(e.schemas).find(i=>i.includes(e.page.pageType));if(n){if(e.page.pageType===he.PageTypeV4.ObjectPage){let i={manifest:e.manifest,jsonSchema:e.schemas[n],routingId:e.id,logger:e.logger};e.page.config=Dp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=qo(i,he.SchemaType.ListReport)}else if(e.templateType===he.TemplateType.AnalyticalListPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=qo(i,he.SchemaType.AnalyticalListPage)}else if(e.templateType===he.TemplateType.FreestylePageV4&&e.page.pageType===he.PageTypeV4.ListReport){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger},a=pr(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=qo(i,a)}}}r(HN,"convertSettingsToConfig");function GN(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Pm.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Pm.push(t[t.length-1])}}r(GN,"updateUnhandledControllers");function WN(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}}}r(WN,"setVariantManagmentAndNavigation");function QN(e,t,n){var i,o;if("viewId"in e)t.view={id:e.viewId,name:e.viewName};else if(n===he.PageTypeV4.CustomPage){let a=((o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a}}}}r(QN,"evaluateCustomPageSettings");function KN(e,t,n,i){var p;let o=e.targets[t],a=BN(o,i.logger,t),s={pageType:a};if(o.options&&(s.entitySet=(p=o.options.settings)==null?void 0:p.entitySet),o.controlAggregation&&(s.controlAggregation=o.controlAggregation),Rp[t]&&Rp[t].indexOf(".")!==-1){let f=Rp[t].split(".");s.navigationProperty=f[f.length-1]}QN(o,s,a),WN(o,s),GN(o);let c=e.routes.find(f=>(f==null?void 0:f.target)&&f.target.indexOf(t)>-1);c&&(s.routePattern=c.pattern,"layout"in c&&(s.defaultLayoutType=c.layout)),!("template"in(s.view??{}))&&"name"in o&&o.name&&(s.template=o.name),n[t]=s;let l={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};HN(l)}r(KN,"getSinglePageAndConfig");function wP(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=R.t("NOROUTING");return _(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}Rp=_N(n.routes||[]);for(let i in n.targets)KN(n,i,t,e);return t}r(wP,"getPagesAndConfigs");function $P(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 Am(t?t.target:e.routes[0].target)}else return}r($P,"getHome");function MP(e){var t,n,i,o;if((t=e==null?void 0:e.config)!=null&&t.flexibleColumnLayout||(n=e==null?void 0:e.config)!=null&&n.viewPath)return{flexibleColumnLayout:(i=e==null?void 0:e.config)==null?void 0:i.flexibleColumnLayout,...((o=e==null?void 0:e.config)==null?void 0:o.viewPath)&&{viewPath:e.config.viewPath}}}r(MP,"getSettings");function Fs(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];mc(t,a.name)&&(i[o]=a)}return i}r(Fs,"getPages");var Cm=class Cm extends Ri{constructor(t){qe();let n=new Ga,i=Ye(he.SchemaType.Application),o=t.appSchemas[i.filename];Ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,$P(t.manifest[he.ManifestSection.ui5].routing),wP(t),{...MP(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Pm}};r(Cm,"V4AppProvider");var qa=Cm;var UP=require("fs"),zo=require("path"),kP=w(B()),Em=w(B());var _P=r((e,t,n=__dirname)=>{let i=t===Em.SchemaType.Application?`${Em.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,zo.join)(n,"schemas",e,i);if(n.endsWith((0,zo.join)("specification","packages","specification")))return(0,zo.join)(n,"dist","schemas",e,i);if(n.endsWith((0,zo.join)("src","specification")))return(0,zo.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,zo.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),XN=r(async e=>new Promise((t,n)=>{(0,UP.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),jp=r(async(e,t)=>{try{let n=_P(e||kP.FioriElementsVersion.v4,t,__dirname);return await XN(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function JN(e,t){let n={},i=[];switch(i=[Q.SchemaType.Application],e){case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.AnalyticalListPageV4:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.FreestylePageV4:i.push(Q.SchemaType.FreestylePage),t===Q.FioriElementsVersion.v4&&i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.ListReportObjectPageV2:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.AnalyticalListPageV2:i.push(Q.SchemaType.AnalyticalListPage,Q.SchemaType.ObjectPage);break;case Q.TemplateType.OverviewPageV2:i.push(Q.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Ye(o);n[a.filename]=await jp(t,o)}return n}r(JN,"getGenericSchemas");function HP(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Bt(Q.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(HP,"getAnnotationsForUi");function xi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(xi,"getEntitySetByEntitySetName");function BP(e,t,n){let i=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=xi(a,e.serviceAVT);s||_(e.logger,{severity:Q.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let c=Ye(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ye(Q.SchemaType.ObjectPage);n[c.filename]=Vs(e,t[l.filename])}}r(BP,"generateObjectPageSchemasV2");function qN(e,t,n){let i=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let c=a[s].options.settings.entitySet,l=xi(c,e.serviceAVT);e.entityType=l==null?void 0:l.entityType,e.entitySet=l;let p=Ye(Q.SchemaType.ListReport,(l==null?void 0:l.name)||c),f=Ye(Q.SchemaType.ListReport);e.templateType===Q.TemplateType.FreestylePageV4&&(e.templateType=pr(a[s])),n[p.filename]=rs(e,t[f.filename],l,a[s].name)}}r(qN,"generateListReportSchemasV4");function zN(e,t,n){var o;let i=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=xi(s,e.serviceAVT);let c=Ye(Q.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),l=Ye(Q.SchemaType.ListReport);t[c.filename]=os(e,n[l.filename])}}r(zN,"generateAppSchemaV2LR");function YN(e,t,n){let i=Fs(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=xi(a,e.serviceAVT);s||_(e.logger,{severity:Q.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:a})});let c=Ye(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ye(Q.SchemaType.ObjectPage);n[c.filename]=ss(e,t[l.filename],s)}}r(YN,"generateObjectPageSchemasV4");function ZN(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)zN(e,o,t),BP(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=as(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let c in s){let l=s[c].entitySet;e.entitySet=xi(l,e.serviceAVT);let p=Ye(Q.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||l),f=Ye(Q.SchemaType.AnalyticalListPage);o[p.filename]=Ls(e,t[f.filename])}BP(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Ye(Q.SchemaType.OverviewPage),c=Ye(Q.SchemaType.OverviewPage);o[s.filename]=Ns(t[c.filename],e.manifest)}return{...t,...o}}r(ZN,"generateAppSchemasV2");function eD(e,t,n){let i={};return n&&(qN(e,t,i),YN(e,t,i)),{...t,...i}}r(eD,"generateAppSchemasV4");async function GP(e,t,n){let i=await JN(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?eD(e,i,t):ZN(e,i,t,n)}r(GP,"generateAppSchemas");function tD(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new ip(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new qa(e);break;case Q.TemplateType.OverviewPageV2:t=new ap(e);break;default:t=new qa(e);break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(tD,"importConfigs");function WP(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===Q.SchemaType.Application?o=`${Q.DirName.Schemas}/${Q.FileName.App[0].toUpperCase()}${Q.FileName.App.slice(1)}`:o=`${Q.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(WP,"getFileList");async function xm(e){var T,E;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new dr().doesUi5VersionFitDistTags((E=(T=t["sap.ui5"])==null?void 0:T.dependencies)==null?void 0:E.minUI5Version,i);let l=Nf(t),p=In(n,i),f=HP(p),u=co(t,l,i),h=await GP({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},f,u);return WP(h)}r(xm,"importProjectSchema");async function Im(e){var ne,q;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new dr().doesUi5VersionFitDistTags((q=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:q.minUI5Version,i);let p=Nf(t),f=KT(t),u=In(n,i),m=co(t,p,i),h={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},T=HP(u),E=await GP(h,T,m),Y=tD({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return WP(E,Y)}r(Im,"importProjectSchemaAndConfig");var nD=["header","sections","footer"];function iD(e,t,n,i){t.properties[n][j.SchemaTag.artifactType]=j.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=j.ControlType.Section;break;case"ObjectPageSubSectionV2":o=j.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=j.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=j.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=j.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=j.ControlType.ObjectPageHeaderSection;break}o&&(Oe(e,t,n),t.properties[n][j.SchemaTag.controlType]=o)}r(iD,"addFlexChangeForSection");function oD(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Mn.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:c,namespace:l}=Dc(a,o);if(!c)return;let p=a.Label||s,f=`HeaderAction<${Ie(c)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${Mn.UIAnnotationTerms.Identification}`,`/@${Mn.UIAnnotationTerms.Identification}`);t.definitions[f][j.SchemaTag.annotationPath]=`/${u}`,t.definitions[f][j.SchemaTag.actionType]=j.ActionType.Annotation,t.definitions[f].description=p,t.definitions[f][j.SchemaTag.keys]=[{name:j.SchemaKeyName.action,value:s}],l&&(t.definitions[f][j.SchemaTag.target]=l),i.properties[c]={$ref:`${F}${f}`}}})}r(oD,"addHeaderActionCallBackV2");function aD(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===Mn.UIAnnotationTypes.DataFieldForAction){let a=mi(o).split("::").splice(1).join("::"),s=xt(o,e),c=Ie(`${j.DefinitionName.ObjectPageFooterAction}<${a}>`),l=o.fullyQualifiedName.replace(`@${Mn.UIAnnotationTerms.Identification}`,`/@${Mn.UIAnnotationTerms.Identification}`);try{t.definitions[c]={...JSON.parse(JSON.stringify(t.definitions[j.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${l}`}}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${F}${c}`}}})}r(aD,"addFooterActionCallBackV2");function rD(e,t,n,i,o,a,s,c){let l,p;if(a.ID&&a.Label?l=a.ID+a.Label.replace(/\s+/g,""):a.ID?l=a.ID:a.Label&&(l=a.Label.replace(/\s+/g,"")),l?p=`${j.DefinitionName.CustomColumns}<${n}><${s}><${l}>`:p=`${j.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let f=`${j.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(T=>T.name===i),h=Uo(t[j.ManifestSection.generic].pages,n,u);return Ta(e,m,h,t,c,p,f,a.ID),p}r(rD,"ensureCustomColumnDefinitionExists");function Rs(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&iD(e,t,"visible",n)}r(Rs,"addAppSchemaDefinition");function sD(e,t,n){e.properties[t]={$ref:`${F}${n}`}}r(sD,"addSectionReference");function Ds(e,t,n,i){let o=Ie(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=F+t,i.definitions[o].properties.toolBar.$ref=`${F}ObjectPageToolBar<${t}>`,i.definitions[o][j.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=j.FACETTITLEPREFIX+n.ID,i.definitions[o][j.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=j.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${F}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=`${F}QuickVariant<${t}>`,Ni(n.entityType,i,`QuickVariant<${t}>`)}r(Ds,"addTableDefinition");function cD(e,t,n,i,o,a){if(i.base!==j.FacetBase.LineItem||!t)return;let s=t.split("::")[0],c=`${a}<${t}>`;n.definitions[c]=Hn(n,i,t);let l=n.definitions[c];Rs(n,l,a,"ObjectPageSectionTableV2"),l.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[j.PropertyName.table])),l.properties.table.anyOf=[{$ref:`${F}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${F}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${F}ObjectPageAnalyticalTable<${t}>`},{$ref:`${F}ObjectPageGridTable<${t}>`},{$ref:`${F}ObjectPageTreeTable<${t}>`}],l[j.SchemaTag.annotationPath]=i.annotationPath,ui(i,l,t),Vi(i,l,t),Ds("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ds("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ds("ObjectPageGridTable",t,i,n),Ds("ObjectPageTreeTable",t,i,n),Ds("ObjectPageAnalyticalTable",t,i,n);let p,f=NS(i.entityType,e.serviceAVT);f&&(p=rD(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let u in o){let m=o[u];m.base===j.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&ba(!0,n,m.target,m.entityType,m.ID||u,p)}}r(cD,"handleLineItem");function lD(e,t,n,i,o,a=!1){e.definitions[t]=Hn(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Rs(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[j.SchemaTag.isViewNode]=!0}r(lD,"handleSubSection");function pD(e,t,n,i,o){e.definitions[t]=Hn(e,n,i);let a=e.definitions[t];Rs(e,a,o,"ObjectPageSectionChartV2")}r(pD,"handleSectionChart");function QP(e,t,n,i,o,a){e.definitions[t]=Hn(e,n,i);let s=e.definitions[t];Rs(e,s,o,a||"CommonHeaderFacetSettings"),s[j.SchemaTag.annotationPath]=n.annotationPath,s[j.SchemaTag.isViewNode]=!0,s[j.SchemaTag.dataType]=To(n==null?void 0:n.target)}r(QP,"handleHeaderFacet");function fD(e,t,n){let i=e.definitions[t],o=i[j.SchemaTag.dataType]=To(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(fD,"addDataPointHeaderFacetDataType");function uD(e,t,n,i,o){e.definitions[t]=Hn(e,n,i);let a=e.definitions[t];return Rs(e,a,o,"ObjectPageSectionFormV2"),a[j.SchemaTag.annotationPath]=n.annotationPath,a[j.SchemaTag.isViewNode]=!0,a}r(uD,"handleFormSection");function dD(e,t,n){let i=new Map([[j.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[j.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[j.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[j.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[j.FacetBase.Form,"ObjectPageHeaderSectionForm"],[j.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[j.FacetBase.LineItem,"ObjectPageSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSectionChartV2"],[j.FacetBase.Address,"ObjectPageSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSectionContactV2"],[j.FacetBase.Form,"ObjectPageSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[j.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[j.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[j.FacetBase.Form,"ObjectPageSubSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(dD,"getSectionType");function gD(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Mn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(gD,"getReferenceKey");function XP(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=dD(c.base,a,s),p=gD(c,n,l),f=`${l}<${p}>`;switch(sD(i,p,f),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,lD(o,f,c,n,l,s);let u=o.definitions[f].properties.subsections;for(let m in c.facets)XP(e,c.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{cD(e,p,o,c,t,l),Pa(o,c.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{pD(o,f,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=uD(o,f,c,p,l);Nc(j.SectionType.Section,c,u,o,j.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ur(c,p,i,o,j.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ur(c,p,i,o,j.SectionType.Section,j.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{QP(o,f,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{QP(o,f,c,p,l),fD(o,f,c);break}default:i.properties[n]=Hn(o,c,p)}}r(XP,"addSection");function KP(e,t,n,i,o,a=!1){if(e)for(let s in t)XP(i,t,s,n,o,!1,a)}r(KP,"addSectionsFromFacets");function JP(e,t,n){var f,u,m,h,T,E;let i=t.definitions[j.DefinitionName.Sections];i[j.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Mn.UIAnnotationTerms.Facets}`);let o=t.definitions[j.DefinitionName.HeaderSections];if(o[j.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Mn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=gc((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),s=dc((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),c=a&&!!Object.keys(a).length,l=s&&!!Object.keys(s).length;if(!c&&!l)return;for(let L in n){let Y=n[L];(E=(T=e.entitySet)==null?void 0:T.name)!=null&&E.includes(Y.entitySet)?(KP(c,a,i,e,t),KP(l,s,o,e,t,!0)):JP(e,t,Y.pages)}let p=t.definitions.CustomSections;for(let L in p.properties)i.properties[L]=p.properties[L]}r(JP,"addSections");function mD(e,t,n,i){wc(e,n),jc(e,n,t,i,oD,!0)}r(mD,"addHeader");function yD(e,t,n,i){let o=JT(t,n,i,void 0,!0);o&&jS(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(yD,"addRelatedFacetKeysType");function Vs(e,t){var s;qe();let n=JSON.parse(JSON.stringify(t)),i={};for(let c in n.definitions.CustomSections.properties)i[c]=n.definitions.CustomSections.properties[c];n.properties[j.PropertyName.sections]={$ref:F+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[j.ManifestSection.generic].pages;return a?(mD(n,e.entitySet,o,e.serviceAVT),n.definitions[j.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},JP(e,n,a),yD(n,o,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[j.SchemaTag.isViewNode]=!0):delete n.properties[j.PropertyName.sections]),Rc(n,e,j.FioriElementsVersion.v2,aD,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,Wn(n,nD),n):(_(e.logger,{severity:j.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:j.MANIFESTPATH,range:[j.ManifestSection.generic]}}),n)}r(Vs,"generateObjectPageSchemaV2");var je=w(B());var hD=["filterBar","keyPerformanceIndicators","chart","table","footer"];function qP(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(qP,"retrieveNameWithoutVocabulary");function bD(e,t,n){var T;let i=(T=e==null?void 0:e.component)==null?void 0:T.settings,o=i==null?void 0:i.qualifier,a=r(function(E){let L=E+(o?"#"+o:"");return t[L]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),c=s?s.PresentationVariant:a("PresentationVariant");if(s&&!c){let E=o?R.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):R.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return _(n,{severity:je.LogSeverity.Error,message:E}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],p="",f="";l.some(function(E){return p=p||qP("LineItem",E),f=f||qP("Chart",E),p&&f}),p=p||"LineItem",f=f||"Chart";let u=t[p],m=t[f],h=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(h>0){let E=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][h-1],L=R.t(E);_(n,{severity:je.LogSeverity.Warning,message:L})}return{lineItemAnnotation:u,chartAnnotation:m}}r(bD,"getLineItemAndChartAnnotation");function TD(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(TD,"addChart");function Ls(e,t){var s,c,l,p,f;let n=JSON.parse(JSON.stringify(t));n.properties[je.PropertyName.table].anyOf[0].$ref=F+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${F}${je.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${F}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[je.PropertyName.table].anyOf[1].$ref=`${F}ALPGridTable<LineItems>`;try{let u=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));u.properties.columns.$ref=`${F}${je.DefinitionName.LineItems}`,u.properties.toolBar.$ref=`${F}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=u}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[je.PropertyName.table].anyOf[2].$ref=`${F}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${F}${je.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${F}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,ES(n.definitions.TableColumnExtensionTypeV2.enum,[je.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)_(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{Sa(n);let u=[],m=_a(e.manifest[je.ManifestSection.generic].pages,u,e.logger),h=(l=a==null?void 0:a.annotations)==null?void 0:l.UI,{lineItemAnnotation:T,chartAnnotation:E}=bD(m,h,e.logger);T&&TS.forEach(Y=>{n.definitions[Y][je.SchemaTag.annotationPath]=_t(a==null?void 0:a.fullyQualifiedName,T.term,T.qualifier)}),ba(!1,n,T,a),E&&TD(n,E);let L=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(Ic(n,L,a),Pa(n,a),!m)return _(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;Ta(n,a,m,e.manifest,e.fragments),Wd(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 Wn(n,hD),n}r(Ls,"generateAnalyticalListReportSchemaV2");var zP=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function SD(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(SD,"getCardDefinitionNames");function vD(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(l=>i.includes(o[l].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ho(a,s.CardModel);let c=SD(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=F+"CardModel"}}r(vD,"addModelsEnum");function PD(e,t){let n=e.properties;for(let i in zP){let o=zP[i],a=o.key;n[a]&&(n[a].messages=[{text:ya(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(PD,"markDeprecatedProperties");function YP(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},PD(n,t),vD(n,t),n}r(YP,"generateOverviewPageSchemaV2");var oo=w(B());function Om(e,t,n,i,o,a){qe();let s=In(e,t),c={templateType:a,fioriElementsVersion:oo.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=xi(o,c.serviceAVT),c.entitySet||_(c.logger,{severity:oo.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(Om,"prepareGenerationV2");function Fm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.ListReportObjectPageV2);return Vs(s,e)}r(Fm,"generateObjectPageInterfaceV2");function Vm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.ListReportObjectPageV2);return os(s,e)}r(Vm,"generateListReportInterfaceV2");function Lm(e,t,n,i,o,a){let s=Om(n,a,i,o,t,oo.TemplateType.AnalyticalListPageV2);return Ls(s,e)}r(Lm,"generateAnalyticalListPageInterfaceV2");function Ns(e,t){return YP(e,t)}r(Ns,"generateOVPInterfaceV2");var js=w(B());var ZP=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),AD=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function CD(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(CD,"initializeRouting");function ED(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(ED,"setTargetOptions");function xD(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==js.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(xD,"calculateQueryPattern");function eA(e,t,n,i){e.unshift(t);let o;for(let a in n){if(typeof n[a].navigation=="object"){let s=Object.keys(n[a].navigation).find(c=>n[a].navigation[c].route===i);s&&(t=s,o=n[a])}if(o){eA(e,t,n,a);return}}}r(eA,"fillNavigationParts");function ID(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let o=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[o]=a}),t}r(ID,"fillParentKeys");function OD(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],c=t[s.route];if(ED(n,a,s),s!=null&&s.route&&!i.routes.some(l=>l.name===s.route)){let l=c==null?void 0:c.routePattern;if(!l){let p=[];eA(p,a,t,o);let f=ID(e.routePattern);l=xD(p,c,f)}i.routes.push(ZP(l,s.route,s.route))}}}r(OD,"handlePageNavigation");function FD(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(o=>o.name===n);i!==-1&&e.routes.splice(i,1)}}r(FD,"removeDeletedPages");function VD(e,t){var n,i;e.entitySet?(t.options||(t.options=AD(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(VD,"transferEntitySet");function LD(e,t,n){let i=e.routes.find(o=>o.target&&o.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}r(LD,"updateRouteLayout");function ND(e,t,n){return e.pageType&&e.pageType!==js.PageTypeV4.CustomPage?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:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(ND,"fillTarget");function tA(e,t,n){var o,a;let i=CD(n[js.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(ZP(":?query:",e,e));for(let s in t){let c,l=t[s];i.targets[s]&&(c=i.targets[s]),c=ND(l,c,s),VD(l,c),c&&!l.controlAggregation&&(delete c.contextPattern,delete c.controlAggregation),(a=(o=c==null?void 0:c.options)==null?void 0:o.settings)!=null&&a.navigation&&(c.options.settings.navigation={}),OD(l,t,c,i,s),LD(i,s,l),i.targets[s]=c}return FD(i,t),i}r(tA,"transformRoutingV4");var Lt=w(B());function nA(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]}r(nA,"updateDependencyLib");function iA(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}r(iA,"extractLastIdPart");var oA=[Lt.FlexibleColumnLayoutAggregations.BeginColumnPages,Lt.FlexibleColumnLayoutAggregations.MidColumnPages,Lt.FlexibleColumnLayoutAggregations.EndColumnPages],aA=r((e,t,n,i=[],o=0)=>{var p;let a=e.routing.routes.find(f=>f.name===n);if(!a)return;typeof a.target=="string"&&(a.target=o<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],c=(p=t.pages)==null?void 0:p[n];if(!c)return;"controlAggregation"in c?s.controlAggregation=c.controlAggregation:oA[o]?s.controlAggregation=oA[o]:s.controlAggregation=Lt.FlexibleColumnLayoutAggregations.EndColumnPages;let l=a.pattern.replace(":?query:","");if(l?s.contextPattern=l.startsWith("/")?l:`/${l}`:s.contextPattern="",c.navigation){o++;for(let f in c.navigation)aA(e,t,c.navigation[f].route,a.target,o)}},"applyFCLRouting"),DD=r((e,t)=>{e.routing.config.routerClass=Lt.v4.FIORI_FCL_ROUTER_CLASS,aA(e,t,t.home);let n={viewName:Lt.FIORI_FCL_ROOT_VIEW_NAME,type:Lt.ViewTypes.XML,async:!0,id:Lt.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,nA(e,Lt.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),RD=r(e=>{var t;e.rootView&&e.rootView.viewName===Lt.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Lt.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),rA=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?DD(e,t):RD(e)},"updateFcl");var $=w(B());var wp=require("@sap-ux/vocabularies-types/vocabularies/UI");var sA=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],jD=[...sA,"views","initialLoad","template"],wD=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function $D(e,t,n){var s,c,l;let i=`@${wp.UIAnnotationTerms.LineItem}`,o=`@${wp.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[$.DefinitionName.TableSPV])==null?void 0:s[$.SchemaTag.annotationPath];if(e.length>1&&t.config.table.annotationPath){let p=(c=t.appSchema.definitions[$.DefinitionName.ALPTable])==null?void 0:c[$.SchemaTag.annotationPath];i=o=p&&p.substr(p.lastIndexOf("@"))}else if((l=n.table)!=null&&l.annotationPath)i=o=`@${n.table.annotationPath}`;else if(e[0]===$.PropertyName.table&&a){let p=a.split("/");i=o=p[p.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:o}}r($D,"determineTargetAnnotationOfTable");function MD(e,t,n){var a,s;let i,o;if(e.length>1){let c=(a=t.appSchema.definitions[$.DefinitionName.ALPChart])==null?void 0:a[$.SchemaTag.annotationPath];i=o=c&&c.substr(c.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(MD,"determineTargetAnnotationOfChart");function UD(e,t,n,i,o){var a;if(e.length===3)t=n=i[$.SchemaTag.annotationPath]&&i[$.SchemaTag.annotationPath].substr(i[$.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(F)[1],c=s&&o.appSchema.definitions[s],l=(c==null?void 0:c[$.SchemaTag.annotationPath])&&c[$.SchemaTag.annotationPath].substr(c[$.SchemaTag.annotationPath].lastIndexOf("@"));t=n=c.entitySet?`/${c.entitySet}/${l}`:l}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(UD,"determineTargetAnnotationBasedOnParentView");function kD(e,t){var a;let n,i,o=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(o)({targetAnnotation:n,targetAnnotationEncoded:i}=UD(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,c=e.appSchema.definitions.Table;if(c[$.SchemaTag.annotationPath]&&c[$.SchemaTag.annotationPath].endsWith(s)&&c.$ref==="#/definitions/TableSPV"){c=e.appSchema.definitions.TableSPV;let l=c[$.SchemaTag.annotationPath].split("/");return n=i=l[l.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[$.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(kD,"determineTargetAnnotationOfView");function _D(e,t,n){let i,o;return e[2].split(`@${$.UIVOCABULARY}`)[1]?n&&n.indexOf($.FACETTITLEPREFIX)>-1?i=o=n.split($.FACETTITLEPREFIX)[1]:e[2]?i=o=e[2].split("@")[1]:o&&(i=o=o.replace(/::/g,"/")):(t=!0,o=e[2],i=o&&o.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(_D,"determineTargetAnnotationOfHeaderSections");function BD(e,t){let n=e[1].split(`@${$.UIVOCABULARY}`)[1],i,o;if(e[0]==="sections"&&!n)t=!0,o=e[1],i=o&&o.replace(/::/g,"/");else{let a=iA(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(BD,"determineTargetAnnotationOfSections");function HD(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=$D(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=MD(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=BD(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=_D(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=kD(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(HD,"determineTargetAnnotation");function GD(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let o=e[i];if(o==="columns"||o===$.PropertyName.actions||o==="views"){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}r(GD,"determineKeyForSyncRule");function WD(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]={})}r(WD,"createNewObjectInManifest");function QD(e,t,n){var o,a;let i=!1;return t.type!=="array"&&((o=n==null?void 0:n.targetDefinition)==null?void 0:o.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(WD(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}r(QD,"transferPropertyToManifest");function KD(e,t,n,i,o,a,s){var p,f,u;let c=!1,l=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((f=n.config.table)!=null&&f.views)||e[1]==="views"&&((u=n.config.table)!=null&&u.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&sA.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&jD.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&(m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),c=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],c=!0);return Li(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),c}r(KD,"deleteFromManifest");function XD(e,t,n,i){let o=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:c,targetAnnotation:l,custom:p}=HD(e,n.transferParameters,n.configObject),f=GD(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,c,f,l,n.configObject),m=fi(n.transferParameters.exportResults.manifest,u,l,p?void 0:c);if(m){let h={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:f};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pa([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=KD(e,h,n.transferParameters,m,u,l,c):o=QD(h,n.propertyDefinition,i)}return o}r(XD,"exportManifestChange");function JD(e,t,n){let i=pt(e.configObject,e.key);i!=null&&i.manifest&&XD(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(JD,"evaluateExportRule");function qD(e,t,n,i,o){let a=[];e.propertyDefinition.$ref&&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,Dm(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(qD,"transferSubObject");function zD(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=$e(e.pageNameArray)+"/views",a=fi(e.exportResults.manifest,o);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}}r(zD,"createALPTableView");function YD(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=$e(e.transferParameters.pageNameArray)+"/views",o=fi(e.transferParameters.exportResults.manifest,i);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||wp.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(YD,"createALPChartView");function ZD(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=$e(t.pageNameArray)+"/views",s=fi(t.exportResults.manifest,a),c={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[c],o=!0;else{let l=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(l===-1)s.paths.push(c),o=!0;else if(l!==i.index){let p=JSON.parse(JSON.stringify(s.paths[l]));s.paths.splice(l,1),s.paths.splice(e,0,p),o=!0}}return o}r(ZD,"createLRTableView");function eR(e,t,n){let i=!1,o=!1;if(t&&!n&&!e.transferParameters.deletionRequest){if(t===$.DefinitionName.ALPChartView&&e.key===$.PropertyName.chart&&e.configObject)return YD(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return zD(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=ZD(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(eR,"createNewElement");function tR(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(tR,"isDefinitionTraversable");function Nm(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=hc(e.configObject,e.key),s=Gn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:c,stopProcessing:l}=eR(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(F)[1],i),p=a?[...t,a]:[...t,e.key];if(c||JD(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||tR(e.propertyDefinition)&&s.configObject)&&!l){let u=a?[...n,a]:n;qD(e,s,o,p,u)}}r(Nm,"transferSortedListEntry");function nR(e,t,n,i,o){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((c,l)=>c[1]&&c[1].index-l[1].index),s.forEach(c=>{var l;(l=n.properties)!=null&&l[c[0]]?(e.key=c[0],e.propertyDefinition=n.properties[c[0]],Nm(e,i,o),a=!0):typeof c[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=c[0],e.propertyDefinition=p,Nm(e,i,o),a=!0)}),e.index++})}return a}r(nR,"transferConfigEntriesWithAnyOfDefinitions");function iR(e,t,n,i){let o=qT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(iR,"mergeEntriesForInsert");function oR(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][$.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,o)=>i[1][$.SchemaTag.propertyIndex]-o[1][$.SchemaTag.propertyIndex])),t}r(oR,"sortProperties");function aR(e,t,n,i,o,a){var c,l;let s=!1;if(e){let p=e.anyOf;if(!p){let f=(c=e.$ref)==null?void 0:c.split(F)[1];p=f?(l=t.appSchema.definitions[f])==null?void 0:l.anyOf:void 0}s=nR(n,p,i,o,a)}return s}r(aR,"checkIfAnyOfDefinition");function Dm(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,c={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},l=a.additionalProperties,p=aR(l,e,c,a,n,i),f=oR(a.properties);l!=null&&l.$ref&&iR(e,l,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!pa(o,e.entityPathArray)||(c.key=u[0],c.propertyDefinition=u[1],c.index=s,Nm(c,n,i,p),u[1].$ref&&s++)})}r(Dm,"transferManifestEntriesAndFlexChange");function cA(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(cA,"getClassesForSingleSection");function lA(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],cA(n,i,t),lA(n,t)}}r(lA,"getSubsectionClasses");function rR(e,t,n){let i;for(let o in e.sections)i=t.sections[o],cA(e,o,n),lA(i,n)}r(rR,"getExportClassesForSections");function pA(e,t){let n=bc(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(pA,"calculateBaseId");var fA=r((e,t,n=!1)=>{var c;let i=wD(e.manifest),o=new Ii,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(c=e.page.config)!=null&&c[$.PropertyName.sections]&&rR(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:pA(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:o,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:$.TemplateType.ListReportObjectPageV4,entityPathArray:e.entityPath,deletionRequest:n};return Dm(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),sR=r((e,t,n,i,o,a,s=!1)=>{var T,E;let c=$.defaultExportResult;c.manifest=JSON.parse(JSON.stringify(e.manifest));let l=e.jsonSchema,p=(T=n.table)!=null&&T[$.PropertyName.annotationPath]?$.DefinitionName.ALPTableView:$.DefinitionName.Table,f=n.table=t.createInstance(i,p,n.table),u=$.DefinitionName.LineItems;l.definitions[$.DefinitionName.TableSPV]&&(u=l.definitions[$.DefinitionName.TableSPV].properties.columns.$ref.split(F)[1]);let m=l.definitions[`${$.DefinitionName.Actions}<${u}>`];if((E=f.toolBar)!=null&&E.actions&&m)for(let L in m.properties)f.toolBar.actions[L]=t.createInstance(i,$.DefinitionName.ToolBarAction,f.toolBar.actions[L]);let h={exportResults:c,appId:e.appId,appRootPath:e.appRootPath,baseId:pA(n,e),appSchema:e.jsonSchema,config:n,ui5Version:o,factory:t,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return Dm(h,n,[],[],[],l),c},"exportListPage"),Rm=r((e,t,n,i=!1)=>{let o=new Ii,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return sR(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),uA=r((e,t,n=!1)=>Rm(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),cR=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new fp,e);o.settings=Object.assign(new Ga,o.settings);for(let c in n.definitions.AppSettings.properties){let l=pt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),f=fi(i.manifest,p);if(((a=e.settings)==null?void 0:a[c])!==void 0)f[c]=e.settings[c];else{let u=fi(i.manifest,p);((s=e.settings)==null?void 0:s[c])!==void 0?u[c]=e.settings[c]:c in u&&(delete u[c],Li(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=tA(e.home,e.pages,i.manifest),rA(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),dA=r((e,t)=>{if(e[$.SchemaType.ListReport])return Rm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return fA(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return cR(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return uA(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),jm=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return Rm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return fA(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return uA(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function lR(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.ListReport];t=Vm(i,o,a,s,c,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.ObjectPage];t=Fm(i,o,a,s,c,l)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=Ns(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[Z.SchemaType.AnalyticalListPage];t=Lm(i,o,a,s,c,l)}}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.ListReport];t=pp(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:c,fragments:l}=n[Z.SchemaType.ObjectPage];t=gg(i,o,a,s,c,l)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.AnalyticalListPage];t=pp(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,c)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:c}=n[Z.SchemaType.FreestylePage];t=mg(Z.TemplateType.FreestylePageV4,i,a,c,o,s)}}return t}r(lR,"generateSchema");function pR(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Zv(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=dA(i,n)}return t}r(pR,"exportConfig");function fR(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Kd(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=jm(i,n)}return t}r(fR,"exportConfigEntityByPath");function uR(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Kd(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=jm(i,n,!0)}return t}r(uR,"deleteConfigEntityByPath");function dR(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=np(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Gl(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Wl(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Ql(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=qo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Dp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=qo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(dR,"importConfig");async function gR(e){return Im(e)}r(gR,"importProject");async function mR(e){return xm(e)}r(mR,"importProjectSchema");function yR(){return{version:"20",moduleVersion:HS.version}}r(yR,"getApiVersion");var An=require("path"),ao=require("fs");var za=r(async e=>new Promise((t,n)=>{(0,ao.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),hR=r(async e=>JSON.parse(await za(e)),"readJSON"),wm=r(async e=>new Promise((t,n)=>{(0,ao.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),bR=r(async e=>new Promise(t=>{(0,ao.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),gA=r(async e=>new Promise(t=>{(0,ao.exists)(e,n=>{t(n)})}),"resourceExists"),TR=r(async e=>hR((0,An.join)(e,"manifest.json")),"getManifest"),mA=r(async e=>{let t=[],n=(0,An.join)(e,"changes");if(!await gA(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await wm(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await za((0,An.join)(n,a)));return t},"getChanges"),SR=r(async e=>{let t=[],n=(0,An.join)(e,"ext","fragments");if(!await gA(n))return t;let i=await wm(n);for(let o of i){let a=(0,An.join)(n,o),s=await za(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),vR=r(async(e,t)=>{var o,a,s,c,l,p,f,u;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let m=(0,An.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await za(m)})}if((l=(c=i==null?void 0:i.mainService)==null?void 0:c.settings)!=null&&l.annotations){for(let m of i.mainService.settings.annotations)if((f=(p=i[m])==null?void 0:p.settings)!=null&&f.localUri){let h=(0,An.join)(t,i[m].settings.localUri);n.push({dataSourceUri:h,fileContent:await za(h)})}}if(n.length===0)for(let m in i){let h=i[m];if((h==null?void 0:h.type)==="ODataAnnotation"&&((u=h==null?void 0:h.settings)!=null&&u.localUri)){let T=(0,An.join)(t,h.settings.localUri);n.push({dataSourceUri:T,fileContent:await za(T)})}}return n},"getAnnotations"),PR=r(async e=>{let t=(0,An.basename)(e),n=(0,An.join)(e,"webapp"),i=await TR(n),o=await vR(i,n),a=await mA(n),s=await SR(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");so(on,w(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
89
89
  /*! Bundled license information:
90
90
 
91
91
  sax/lib/sax.js: