@sap/ux-specification 1.84.121 → 1.84.122
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/CHANGELOG.md +15 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +15 -15
- package/dist/index-min.js.map +3 -3
- package/dist/specification/package.json +6 -6
- package/package.json +6 -6
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var pA=Object.create;var Qo=Object.defineProperty;var vm=Object.getOwnPropertyDescriptor;var fA=Object.getOwnPropertyNames;var uA=Object.getPrototypeOf,dA=Object.prototype.hasOwnProperty;var r=(e,t)=>Qo(e,"name",{value:t,configurable:!0});var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ko=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},Es=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fA(t))!dA.call(e,o)&&o!==n&&Qo(e,o,{get:()=>t[o],enumerable:!(i=vm(t,o))||i.enumerable});return e},eo=(e,t,n)=>(Es(e,t,"default"),n&&Es(n,t,"default")),w=(e,t,n)=>(n=e!=null?pA(uA(e)):{},Es(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),gA=e=>Es(Qo({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?vm(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&&Qo(t,n,o),o};var Jy=we((aR,Xy)=>{var Ep=Object.defineProperty,mA=Object.getOwnPropertyDescriptor,yA=Object.getOwnPropertyNames,hA=Object.prototype.hasOwnProperty,xp=r((e,t)=>{for(var n in t)Ep(e,n,{get:t[n],enumerable:!0})},"f"),bA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yA(t))!hA.call(e,o)&&o!==n&&Ep(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=mA(t,o))||i.enumerable});return e},"ze"),TA=r(e=>bA(Ep({},"__esModule",{value:!0}),e),"Je"),Pm={};xp(Pm,{ACTIONTITLEPREFIX:r(()=>AA,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>Fm,"ALPViewType"),ActionType:r(()=>Nm,"ActionType"),ArtifactType:r(()=>Lm,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>EA,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>$m,"ChangeIndicator"),ChartColor:r(()=>Zm,"ChartColor"),CloudDevAdaptationStatus:r(()=>Xm,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>zm,"ColorPaletteDefinitionType"),ControlType:r(()=>Dm,"ControlType"),DATESETTINGSPATH:r(()=>RA,"DATESETTINGSPATH"),DataSourceType:r(()=>Jm,"DataSourceType"),DefinitionName:r(()=>km,"DefinitionName"),DirName:r(()=>jm,"DirName"),DraftDiscardEnabledSettings:r(()=>Gm,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Om,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>PA,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>MA,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>$A,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>jA,"FRAGMENTNAMEPART"),FacetBase:r(()=>Mm,"FacetBase"),Features:r(()=>iy,"Features"),FileName:r(()=>wm,"FileName"),FioriElementsVersion:r(()=>Am,"FioriElementsVersion"),FlexChangeLayer:r(()=>xm,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>Km,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Em,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>wA,"GENERICAPPSETTINGS"),LogSeverity:r(()=>ey,"LogSeverity"),MANIFESTPATH:r(()=>xA,"MANIFESTPATH"),ManifestSection:r(()=>qm,"ManifestSection"),OdataVersion:r(()=>Cm,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>vA,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>SA,"PageType"),PageTypeV2:r(()=>Ip,"PageTypeV2"),PageTypeV4:r(()=>Op,"PageTypeV4"),PropertyMessageType:r(()=>ty,"PropertyMessageType"),PropertyName:r(()=>_m,"PropertyName"),QUICKVARPATH:r(()=>NA,"QUICKVARPATH"),QUICKVARPATHX:r(()=>DA,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>kA,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>UA,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>Hm,"SchemaKeyName"),SchemaTag:r(()=>Bm,"SchemaTag"),SchemaType:r(()=>Im,"SchemaType"),SectionType:r(()=>Vm,"SectionType"),StatePreservationMode:r(()=>Qm,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>Wm,"TableColumnVerticalAlignment"),TemplateType:r(()=>ny,"TemplateType"),UIVOCABULARY:r(()=>FA,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>LA,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>VA,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>OA,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>IA,"VOCWITHSLASH"),ViewTemplateType:r(()=>Um,"ViewTemplateType"),ViewTypes:r(()=>Ym,"ViewTypes"),Visualization:r(()=>Rm,"Visualization"),defaultExportResult:r(()=>CA,"defaultExportResult"),logSeverityLabel:r(()=>_A,"logSeverityLabel"),v2:r(()=>oy,"v2"),v4:r(()=>Ly,"v4")});Xy.exports=TA(Pm);var Ip=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ip||{}),Op=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Op||{}),SA={...Ip,...Op},vA=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"]]),Am=(e=>(e.v2="v2",e.v4="v4",e))(Am||{}),Cm=(e=>(e.v2="v2",e.v4="v4",e))(Cm||{}),Em=(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))(Em||{}),xm=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(xm||{}),Im=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Im||{}),Om=(e=>(e.flex="flex",e.manifest="manifest",e))(Om||{}),Fm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Fm||{}),Vm=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Vm||{}),Lm=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Lm||{}),Nm=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Nm||{}),Dm=(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))(Dm||{}),Rm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Rm||{}),jm=(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))(jm||{}),wm=(e=>(e.App="app.json",e))(wm||{}),PA="Facet ID: ",AA="Action ID: ",$m=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))($m||{}),CA={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Mm=(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))(Mm||{}),EA="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Um=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Um||{}),km=(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))(km||{}),_m=(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))(_m||{}),Bm=(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))(Bm||{}),Hm=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Hm||{}),xA="webapp/manifest.json",IA="/@com.sap.vocabularies",OA="::@com.sap.vocabularies",FA="com.sap.vocabularies.UI.v1",VA="com.sap.vocabularies.UI.v1.",LA="@com.sap.vocabularies.UI.v1.",NA="/quickVariantSelection",DA="/quickVariantSelectionX",RA="/filterSettings/dateSettings",jA=".fragment.",Gm=(e=>(e.restricted="restricted",e))(Gm||{}),Wm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Wm||{}),Qm=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Qm||{}),Km=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Km||{}),Xm=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Xm||{}),Jm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Jm||{}),qm=(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))(qm||{}),wA="sap.ui.generic.app/settings",zm=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(zm||{}),$A="sap.fe.templates.RootContainer.view.Fcl",MA="appRootView",Ym=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Ym||{}),UA="sap.ui.core.mvc.View",kA="sap.ui.core.Fragment",Zm=(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))(Zm||{}),ey=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ey||{}),_A={error:"Error",warning:"Warning",info:"Information"},ty=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ty||{}),ny=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(ny||{}),iy=(e=>(e.BuildingBlocks="BuildingBlocks",e))(iy||{}),oy={};xp(oy,{AvatarShape:r(()=>xy,"AvatarShape"),ButtonType:r(()=>ay,"ButtonType"),CardSettingsType:r(()=>cy,"CardSettingsType"),CardTemplateType:r(()=>sy,"CardTemplateType"),ChartCardType:r(()=>ry,"ChartCardType"),ChartType:r(()=>Ey,"ChartType"),ContainerLayoutType:r(()=>Vy,"ContainerLayoutType"),CreateMode:r(()=>Fy,"CreateMode"),DateRangeType:r(()=>gy,"DateRangeType"),DefaultContentView:r(()=>Py,"DefaultContentView"),DefaultFilterMode:r(()=>Ay,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Oy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>GA,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>KA,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>QA,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>WA,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>my,"FilterPathType"),HAlign:r(()=>yy,"HAlign"),LinkListFlavorType:r(()=>dy,"LinkListFlavorType"),ListFlavorType:r(()=>py,"ListFlavorType"),ListTypeType:r(()=>fy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Cy,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>ly,"MeasureAggregateValues"),PopinLayout:r(()=>Sy,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>JA,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>XA,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>YA,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>zA,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>qA,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Iy,"SectionPosition"),SortOrderType:r(()=>uy,"SortOrderType"),Strategy:r(()=>vy,"Strategy"),TableColumnExtensionTypeV2:r(()=>Ty,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>by,"TableTypeV2"),cardTemplateSettingsMap:r(()=>HA,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>BA,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>hy,"customColumnViewTypes")});var ay=(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))(ay||{}),ry=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(ry||{}),sy=(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))(sy||{}),BA={"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"},HA={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},cy=(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))(cy||{}),ly=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(ly||{}),py=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(py||{}),fy=(e=>(e.extended="extended",e.condensed="condensed",e))(fy||{}),uy=(e=>(e.ascending="ascending",e.descending="descending",e))(uy||{}),dy=(e=>(e.standard="standard",e.carousel="carousel",e))(dy||{}),gy=(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))(gy||{}),my=(e=>(e.key="key",e.catgory="category",e))(my||{}),yy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(yy||{}),hy=(e=>(e.XML="XML",e))(hy||{}),by=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(by||{}),Ty=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Ty||{}),Sy=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Sy||{}),vy=(e=>(e.extension="extension",e))(vy||{}),Py=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Py||{}),Ay=(e=>(e.visual="visual",e.compact="compact",e))(Ay||{}),Cy=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Cy||{}),Ey=(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))(Ey||{}),xy=(e=>(e.Circle="Circle",e.Square="Square",e))(xy||{}),Iy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Iy||{}),Oy=(e=>(e.XML="XML",e))(Oy||{}),Fy=(e=>(e.inline="inline",e))(Fy||{}),GA="sap.suite.ui.generic.template",WA="sap.suite.ui.generic.template.ObjectPage",QA="sap.suite.ui.generic.template.ListReport",KA="sap.suite.ui.generic.template.AnalyticalListPage",XA="sap.ui.viewExtensions",JA="sap.ui.controllerExtensions",qA="sap.suite.ui.generic.template.ObjectPage.view.Details",zA="sap.suite.ui.generic.template.ListReport.view.ListReport",YA="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Vy=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Vy||{}),Ly={};xp(Ly,{Availability:r(()=>Gy,"Availability"),CustomSectionViewTypesV4:r(()=>ky,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>jy,"DefaultPathType"),DesigntimeValues:r(()=>$y,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>ZA,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>iC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>eC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>nC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>tC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>aC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>Wy,"HorizontalAlign"),InitialLoadType:r(()=>Ry,"InitialLoadType"),Placement:r(()=>Hy,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>rC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>oC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>My,"SectionLayoutType"),SectionPosition:r(()=>Uy,"SectionPosition"),SectionPositionV4:r(()=>By,"SectionPositionV4"),SelectType:r(()=>wy,"SelectType"),SelectionMode:r(()=>Ny,"SelectionMode"),TableCreationModeType:r(()=>_y,"TableCreationModeType"),TableTypeV4:r(()=>Dy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Ky,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Qy,"VariantManagementTypeObjectPage")});var Ny=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Ny||{}),Dy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Dy||{}),Ry=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Ry||{}),jy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(jy||{}),wy=(e=>(e.single="single",e.multi="multi",e))(wy||{}),$y=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))($y||{}),My=(e=>(e.Tabs="Tabs",e.Page="Page",e))(My||{}),Uy=(e=>(e.After="After",e.Before="Before",e))(Uy||{}),ky=(e=>(e.XML="XML",e))(ky||{}),_y=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(_y||{}),ZA="sap.fe",eC="sap.fe.core.fpm",tC="sap.fe.templates.ObjectPage",nC="sap.fe.templates.ListReport",iC="sap.fe.templates.AnalyticalListPage",oC="XMLFragment",By=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(By||{}),aC="sap.f.routing.Router",rC="sap.f",Hy=(e=>(e.After="After",e.Before="Before",e))(Hy||{}),Gy=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(Gy||{}),Wy=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(Wy||{}),Qy=(e=>(e.None="None",e.Control="Control",e))(Qy||{}),Ky=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Ky||{})});var eh=we(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.Features=cn.TemplateType=cn.PropertyMessageType=cn.logSeverityLabel=cn.LogSeverity=void 0;var qy;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(qy||(cn.LogSeverity=qy={}));cn.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var zy;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(zy||(cn.PropertyMessageType=zy={}));var Yy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Yy||(cn.TemplateType=Yy={}));var Zy;(function(e){e.BuildingBlocks="BuildingBlocks"})(Zy||(cn.Features=Zy={}))});var Fh=we((cR,Oh)=>{var Fp=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,cC=Object.getOwnPropertyNames,lC=Object.prototype.hasOwnProperty,pC=r((e,t)=>{for(var n in t)Fp(e,n,{get:t[n],enumerable:!0})},"G"),fC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cC(t))!lC.call(e,o)&&o!==n&&Fp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=sC(t,o))||i.enumerable});return e},"X"),uC=r(e=>fC(Fp({},"__esModule",{value:!0}),e),"H"),th={};pC(th,{AvatarShape:r(()=>Ah,"AvatarShape"),ButtonType:r(()=>nh,"ButtonType"),CardSettingsType:r(()=>ah,"CardSettingsType"),CardTemplateType:r(()=>oh,"CardTemplateType"),ChartCardType:r(()=>ih,"ChartCardType"),ChartType:r(()=>Ph,"ChartType"),ContainerLayoutType:r(()=>Ih,"ContainerLayoutType"),CreateMode:r(()=>xh,"CreateMode"),DateRangeType:r(()=>fh,"DateRangeType"),DefaultContentView:r(()=>Th,"DefaultContentView"),DefaultFilterMode:r(()=>Sh,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Eh,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>mC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>bC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>hC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>yC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>uh,"FilterPathType"),HAlign:r(()=>dh,"HAlign"),LinkListFlavorType:r(()=>ph,"LinkListFlavorType"),ListFlavorType:r(()=>sh,"ListFlavorType"),ListTypeType:r(()=>ch,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>vh,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>rh,"MeasureAggregateValues"),PopinLayout:r(()=>hh,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>SC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>TC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>AC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>PC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>vC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Ch,"SectionPosition"),SortOrderType:r(()=>lh,"SortOrderType"),Strategy:r(()=>bh,"Strategy"),TableColumnExtensionTypeV2:r(()=>yh,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>mh,"TableTypeV2"),cardTemplateSettingsMap:r(()=>gC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>dC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>gh,"customColumnViewTypes")});Oh.exports=uC(th);var nh=(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))(nh||{}),ih=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(ih||{}),oh=(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))(oh||{}),dC={"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"},gC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},ah=(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))(ah||{}),rh=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(rh||{}),sh=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(sh||{}),ch=(e=>(e.extended="extended",e.condensed="condensed",e))(ch||{}),lh=(e=>(e.ascending="ascending",e.descending="descending",e))(lh||{}),ph=(e=>(e.standard="standard",e.carousel="carousel",e))(ph||{}),fh=(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))(fh||{}),uh=(e=>(e.key="key",e.catgory="category",e))(uh||{}),dh=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(dh||{}),gh=(e=>(e.XML="XML",e))(gh||{}),mh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(mh||{}),yh=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(yh||{}),hh=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(hh||{}),bh=(e=>(e.extension="extension",e))(bh||{}),Th=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Th||{}),Sh=(e=>(e.visual="visual",e.compact="compact",e))(Sh||{}),vh=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(vh||{}),Ph=(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))(Ph||{}),Ah=(e=>(e.Circle="Circle",e.Square="Square",e))(Ah||{}),Ch=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Ch||{}),Eh=(e=>(e.XML="XML",e))(Eh||{}),xh=(e=>(e.inline="inline",e))(xh||{}),mC="sap.suite.ui.generic.template",yC="sap.suite.ui.generic.template.ObjectPage",hC="sap.suite.ui.generic.template.ListReport",bC="sap.suite.ui.generic.template.AnalyticalListPage",TC="sap.ui.viewExtensions",SC="sap.ui.controllerExtensions",vC="sap.suite.ui.generic.template.ObjectPage.view.Details",PC="sap.suite.ui.generic.template.ListReport.view.ListReport",AC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ih=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ih||{})});var Xh=we((pR,Kh)=>{var Vp=Object.defineProperty,CC=Object.getOwnPropertyDescriptor,EC=Object.getOwnPropertyNames,xC=Object.prototype.hasOwnProperty,IC=r((e,t)=>{for(var n in t)Vp(e,n,{get:t[n],enumerable:!0})},"O"),OC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EC(t))!xC.call(e,o)&&o!==n&&Vp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=CC(t,o))||i.enumerable});return e},"U"),FC=r(e=>OC(Vp({},"__esModule",{value:!0}),e),"w"),Vh={};IC(Vh,{Availability:r(()=>Hh,"Availability"),CustomSectionViewTypesV4:r(()=>Uh,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Rh,"DefaultPathType"),DesigntimeValues:r(()=>wh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>VC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>RC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>LC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>DC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>NC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>wC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>Gh,"HorizontalAlign"),InitialLoadType:r(()=>Dh,"InitialLoadType"),Placement:r(()=>Bh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>$C,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>jC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>$h,"SectionLayoutType"),SectionPosition:r(()=>Mh,"SectionPosition"),SectionPositionV4:r(()=>_h,"SectionPositionV4"),SelectType:r(()=>jh,"SelectType"),SelectionMode:r(()=>Lh,"SelectionMode"),TableCreationModeType:r(()=>kh,"TableCreationModeType"),TableTypeV4:r(()=>Nh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Qh,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Wh,"VariantManagementTypeObjectPage")});Kh.exports=FC(Vh);var Lh=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Lh||{}),Nh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Nh||{}),Dh=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Dh||{}),Rh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Rh||{}),jh=(e=>(e.single="single",e.multi="multi",e))(jh||{}),wh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(wh||{}),$h=(e=>(e.Tabs="Tabs",e.Page="Page",e))($h||{}),Mh=(e=>(e.After="After",e.Before="Before",e))(Mh||{}),Uh=(e=>(e.XML="XML",e))(Uh||{}),kh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(kh||{}),VC="sap.fe",LC="sap.fe.core.fpm",NC="sap.fe.templates.ObjectPage",DC="sap.fe.templates.ListReport",RC="sap.fe.templates.AnalyticalListPage",jC="XMLFragment",_h=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(_h||{}),wC="sap.f.routing.Router",$C="sap.f",Bh=(e=>(e.After="After",e.Before="Before",e))(Bh||{}),Hh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(Hh||{}),Gh=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(Gh||{}),Wh=(e=>(e.None="None",e.Control="Control",e))(Wh||{}),Qh=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Qh||{})});var B=we(At=>{"use strict";var Jh=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]})),MC=At&&At.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qh=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Jh(t,e,n)},zh=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"&&Jh(n,t,i[o]);return MC(n,t),n}})();Object.defineProperty(At,"__esModule",{value:!0});At.v4=At.v2=void 0;qh(Jy(),At);qh(eh(),At);At.v2=zh(Fh());At.v4=zh(Xh())});var Xp=we((VR,mb)=>{"use strict";var eE=r(function(t){return tE(t)&&!nE(t)},"isMergeableObject");function tE(e){return!!e&&typeof e=="object"}r(tE,"isNonNullObject");function nE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aE(e)}r(nE,"isSpecial");var iE=typeof Symbol=="function"&&Symbol.for,oE=iE?Symbol.for("react.element"):60103;function aE(e){return e.$$typeof===oE}r(aE,"isReactElement");function rE(e){return Array.isArray(e)?[]:{}}r(rE,"emptyTarget");function Ja(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qo(rE(e),e,t):e}r(Ja,"cloneUnlessOtherwiseSpecified");function sE(e,t,n){return e.concat(t).map(function(i){return Ja(i,n)})}r(sE,"defaultArrayMerge");function cE(e,t){if(!t.customMerge)return qo;var n=t.customMerge(e);return typeof n=="function"?n:qo}r(cE,"getMergeFunction");function lE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(lE,"getEnumerableOwnPropertySymbols");function db(e){return Object.keys(e).concat(lE(e))}r(db,"getKeys");function gb(e,t){try{return t in e}catch{return!1}}r(gb,"propertyIsOnObject");function pE(e,t){return gb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(pE,"propertyIsUnsafe");function fE(e,t,n){var i={};return n.isMergeableObject(e)&&db(e).forEach(function(o){i[o]=Ja(e[o],n)}),db(t).forEach(function(o){pE(e,o)||(gb(e,o)&&n.isMergeableObject(t[o])?i[o]=cE(o,n)(e[o],t[o],n):i[o]=Ja(t[o],n))}),i}r(fE,"mergeObject");function qo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sE,n.isMergeableObject=n.isMergeableObject||eE,n.cloneUnlessOtherwiseSpecified=Ja;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):fE(e,t,n):Ja(t,n)}r(qo,"deepmerge");qo.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 qo(i,o,n)},{})},"deepmergeAll");var uE=qo;mb.exports=uE});var Rs=we(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.mergeAnnotations=Oe.addGetByValue=Oe.createIndexedFind=Oe.lazy=Oe.Decimal=Oe.Double=Oe.isComplexTypeDefinition=Oe.unalias=Oe.alias=Oe.substringBeforeLast=Oe.substringBeforeFirst=Oe.splitAtLast=Oe.splitAtFirst=Oe.defaultReferences=Oe.TermToTypes=Oe.EnumIsFlag=void 0;var dE=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Oe,"EnumIsFlag",{enumerable:!0,get:r(function(){return dE.EnumIsFlag},"get")});var gE=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Oe,"TermToTypes",{enumerable:!0,get:r(function(){return gE.TermToTypes},"get")});var mE=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Oe,"defaultReferences",{enumerable:!0,get:r(function(){return mE.VocabularyReferences},"get")});function yb(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(yb,"splitAt");function hb(e,t){return t<0?e:e.substring(0,t)}r(hb,"substringAt");function Ds(e,t){return yb(e,e.indexOf(t))}r(Ds,"splitAtFirst");Oe.splitAtFirst=Ds;function bb(e,t){return yb(e,e.lastIndexOf(t))}r(bb,"splitAtLast");Oe.splitAtLast=bb;function yE(e,t){return hb(e,e.indexOf(t))}r(yE,"substringBeforeFirst");Oe.substringBeforeFirst=yE;function hE(e,t){return hb(e,e.lastIndexOf(t))}r(hE,"substringBeforeLast");Oe.substringBeforeLast=hE;function Tb(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=bb(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Ds(t,"@");return`${a}@${Tb(e,s)}`}else return t}r(Tb,"alias");Oe.alias=Tb;function Jp(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,c]=Ds(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]=Ds(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(Jp,"unalias");Oe.unalias=Jp;function bE(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(bE,"isComplexTypeDefinition");Oe.isComplexTypeDefinition=bE;function TE(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(TE,"Double");Oe.Double=TE;function SE(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(SE,"Decimal");Oe.Decimal=SE;function vE(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(vE,"lazy");Oe.lazy=vE;function Sb(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(Sb,"createIndexedFind");Oe.createIndexedFind=Sb;function PE(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Sb(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(PE,"addGetByValue");Oe.addGetByValue=PE;function AE(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=Jp(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(f=>{var u;return f.term=(u=Jp(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(AE,"mergeAnnotations");Oe.mergeAnnotations=AE});var Rb=we($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.convert=void 0;var js=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Rs(),Pn=Symbol("Annotation Target");function oi(e,t){return e[e.length-1]!==t&&e.push(t),e}r(oi,"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[b,T]=(0,K.splitAtFirst)(m,"@");u.push(b),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[Pn]!==void 0)t=t[Pn];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 b,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=oi(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[q,fe]=e.splitTerm(m),ie=(b=u.target.annotations[q.substring(1)])===null||b===void 0?void 0:b[fe];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 fe=Yt(e,u.target[Pn],q);return fe.objectPath.forEach(ie=>{u.objectPath.includes(ie)||(u.objectPath=oi(u.objectPath,ie))}),u.target=fe.target,u.objectPath=oi(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 pe=(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(pe)return u.target=pe,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 pe=Yt(e,ie.entityType,m);return u.target=pe.target,u.objectPath=pe.objectPath.reduce(oi,u.objectPath),u}case"EntityType":{let ie=u.target;if(m===""||m==="$Type")return u;let pe=ie.entityProperties.by_name(m);if(pe)return u.target=pe,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(oi,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 pe=(Y=ie.parameters[m])!==null&&Y!==void 0?Y:ie.parameters.find(Ve=>Ve.name===m);if(pe)return u.target=pe,u;break}case"Property":{let pe=u.target.targetType;if(pe!==void 0){let Ve=pe.properties.by_name(m);if(Ve)return u.target=Ve,u;let P=pe.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(oi,u.objectPath),u}break;case"NavigationProperty":let fe=Yt(e,u.target.targetType,m);return u.target=fe.target,u.objectPath=fe.objectPath.reduce(oi,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=oi(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=Eb(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var pA=Object.create;var Qo=Object.defineProperty;var vm=Object.getOwnPropertyDescriptor;var fA=Object.getOwnPropertyNames;var uA=Object.getPrototypeOf,dA=Object.prototype.hasOwnProperty;var r=(e,t)=>Qo(e,"name",{value:t,configurable:!0});var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ko=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},Es=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fA(t))!dA.call(e,o)&&o!==n&&Qo(e,o,{get:()=>t[o],enumerable:!(i=vm(t,o))||i.enumerable});return e},eo=(e,t,n)=>(Es(e,t,"default"),n&&Es(n,t,"default")),w=(e,t,n)=>(n=e!=null?pA(uA(e)):{},Es(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),gA=e=>Es(Qo({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?vm(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&&Qo(t,n,o),o};var Jy=we((aR,Xy)=>{var Ep=Object.defineProperty,mA=Object.getOwnPropertyDescriptor,yA=Object.getOwnPropertyNames,hA=Object.prototype.hasOwnProperty,xp=r((e,t)=>{for(var n in t)Ep(e,n,{get:t[n],enumerable:!0})},"f"),bA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yA(t))!hA.call(e,o)&&o!==n&&Ep(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=mA(t,o))||i.enumerable});return e},"ze"),TA=r(e=>bA(Ep({},"__esModule",{value:!0}),e),"Je"),Pm={};xp(Pm,{ACTIONTITLEPREFIX:r(()=>AA,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>Fm,"ALPViewType"),ActionType:r(()=>Nm,"ActionType"),ArtifactType:r(()=>Vm,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>EA,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>$m,"ChangeIndicator"),ChartColor:r(()=>Zm,"ChartColor"),CloudDevAdaptationStatus:r(()=>Xm,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>zm,"ColorPaletteDefinitionType"),ControlType:r(()=>Dm,"ControlType"),DATESETTINGSPATH:r(()=>RA,"DATESETTINGSPATH"),DataSourceType:r(()=>Jm,"DataSourceType"),DefinitionName:r(()=>km,"DefinitionName"),DirName:r(()=>jm,"DirName"),DraftDiscardEnabledSettings:r(()=>Gm,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Om,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>PA,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>MA,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>$A,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>jA,"FRAGMENTNAMEPART"),FacetBase:r(()=>Mm,"FacetBase"),Features:r(()=>iy,"Features"),FileName:r(()=>wm,"FileName"),FioriElementsVersion:r(()=>Am,"FioriElementsVersion"),FlexChangeLayer:r(()=>xm,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>Km,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Em,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>wA,"GENERICAPPSETTINGS"),LogSeverity:r(()=>ey,"LogSeverity"),MANIFESTPATH:r(()=>xA,"MANIFESTPATH"),ManifestSection:r(()=>qm,"ManifestSection"),OdataVersion:r(()=>Cm,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>vA,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>SA,"PageType"),PageTypeV2:r(()=>Ip,"PageTypeV2"),PageTypeV4:r(()=>Op,"PageTypeV4"),PropertyMessageType:r(()=>ty,"PropertyMessageType"),PropertyName:r(()=>_m,"PropertyName"),QUICKVARPATH:r(()=>NA,"QUICKVARPATH"),QUICKVARPATHX:r(()=>DA,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>kA,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>UA,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>Hm,"SchemaKeyName"),SchemaTag:r(()=>Bm,"SchemaTag"),SchemaType:r(()=>Im,"SchemaType"),SectionType:r(()=>Lm,"SectionType"),StatePreservationMode:r(()=>Qm,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>Wm,"TableColumnVerticalAlignment"),TemplateType:r(()=>ny,"TemplateType"),UIVOCABULARY:r(()=>FA,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>VA,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>LA,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>OA,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>IA,"VOCWITHSLASH"),ViewTemplateType:r(()=>Um,"ViewTemplateType"),ViewTypes:r(()=>Ym,"ViewTypes"),Visualization:r(()=>Rm,"Visualization"),defaultExportResult:r(()=>CA,"defaultExportResult"),logSeverityLabel:r(()=>_A,"logSeverityLabel"),v2:r(()=>oy,"v2"),v4:r(()=>Vy,"v4")});Xy.exports=TA(Pm);var Ip=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ip||{}),Op=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Op||{}),SA={...Ip,...Op},vA=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"]]),Am=(e=>(e.v2="v2",e.v4="v4",e))(Am||{}),Cm=(e=>(e.v2="v2",e.v4="v4",e))(Cm||{}),Em=(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))(Em||{}),xm=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(xm||{}),Im=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Im||{}),Om=(e=>(e.flex="flex",e.manifest="manifest",e))(Om||{}),Fm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Fm||{}),Lm=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Lm||{}),Vm=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Vm||{}),Nm=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Nm||{}),Dm=(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))(Dm||{}),Rm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Rm||{}),jm=(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))(jm||{}),wm=(e=>(e.App="app.json",e))(wm||{}),PA="Facet ID: ",AA="Action ID: ",$m=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))($m||{}),CA={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Mm=(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))(Mm||{}),EA="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Um=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Um||{}),km=(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))(km||{}),_m=(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))(_m||{}),Bm=(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))(Bm||{}),Hm=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Hm||{}),xA="webapp/manifest.json",IA="/@com.sap.vocabularies",OA="::@com.sap.vocabularies",FA="com.sap.vocabularies.UI.v1",LA="com.sap.vocabularies.UI.v1.",VA="@com.sap.vocabularies.UI.v1.",NA="/quickVariantSelection",DA="/quickVariantSelectionX",RA="/filterSettings/dateSettings",jA=".fragment.",Gm=(e=>(e.restricted="restricted",e))(Gm||{}),Wm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Wm||{}),Qm=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Qm||{}),Km=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Km||{}),Xm=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Xm||{}),Jm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Jm||{}),qm=(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))(qm||{}),wA="sap.ui.generic.app/settings",zm=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(zm||{}),$A="sap.fe.templates.RootContainer.view.Fcl",MA="appRootView",Ym=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Ym||{}),UA="sap.ui.core.mvc.View",kA="sap.ui.core.Fragment",Zm=(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))(Zm||{}),ey=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ey||{}),_A={error:"Error",warning:"Warning",info:"Information"},ty=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ty||{}),ny=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(ny||{}),iy=(e=>(e.BuildingBlocks="BuildingBlocks",e))(iy||{}),oy={};xp(oy,{AvatarShape:r(()=>xy,"AvatarShape"),ButtonType:r(()=>ay,"ButtonType"),CardSettingsType:r(()=>cy,"CardSettingsType"),CardTemplateType:r(()=>sy,"CardTemplateType"),ChartCardType:r(()=>ry,"ChartCardType"),ChartType:r(()=>Ey,"ChartType"),ContainerLayoutType:r(()=>Ly,"ContainerLayoutType"),CreateMode:r(()=>Fy,"CreateMode"),DateRangeType:r(()=>gy,"DateRangeType"),DefaultContentView:r(()=>Py,"DefaultContentView"),DefaultFilterMode:r(()=>Ay,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Oy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>GA,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>KA,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>QA,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>WA,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>my,"FilterPathType"),HAlign:r(()=>yy,"HAlign"),LinkListFlavorType:r(()=>dy,"LinkListFlavorType"),ListFlavorType:r(()=>py,"ListFlavorType"),ListTypeType:r(()=>fy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Cy,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>ly,"MeasureAggregateValues"),PopinLayout:r(()=>Sy,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>JA,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>XA,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>YA,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>zA,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>qA,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Iy,"SectionPosition"),SortOrderType:r(()=>uy,"SortOrderType"),Strategy:r(()=>vy,"Strategy"),TableColumnExtensionTypeV2:r(()=>Ty,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>by,"TableTypeV2"),cardTemplateSettingsMap:r(()=>HA,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>BA,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>hy,"customColumnViewTypes")});var ay=(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))(ay||{}),ry=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(ry||{}),sy=(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))(sy||{}),BA={"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"},HA={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},cy=(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))(cy||{}),ly=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(ly||{}),py=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(py||{}),fy=(e=>(e.extended="extended",e.condensed="condensed",e))(fy||{}),uy=(e=>(e.ascending="ascending",e.descending="descending",e))(uy||{}),dy=(e=>(e.standard="standard",e.carousel="carousel",e))(dy||{}),gy=(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))(gy||{}),my=(e=>(e.key="key",e.catgory="category",e))(my||{}),yy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(yy||{}),hy=(e=>(e.XML="XML",e))(hy||{}),by=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(by||{}),Ty=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Ty||{}),Sy=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Sy||{}),vy=(e=>(e.extension="extension",e))(vy||{}),Py=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Py||{}),Ay=(e=>(e.visual="visual",e.compact="compact",e))(Ay||{}),Cy=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Cy||{}),Ey=(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))(Ey||{}),xy=(e=>(e.Circle="Circle",e.Square="Square",e))(xy||{}),Iy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Iy||{}),Oy=(e=>(e.XML="XML",e))(Oy||{}),Fy=(e=>(e.inline="inline",e))(Fy||{}),GA="sap.suite.ui.generic.template",WA="sap.suite.ui.generic.template.ObjectPage",QA="sap.suite.ui.generic.template.ListReport",KA="sap.suite.ui.generic.template.AnalyticalListPage",XA="sap.ui.viewExtensions",JA="sap.ui.controllerExtensions",qA="sap.suite.ui.generic.template.ObjectPage.view.Details",zA="sap.suite.ui.generic.template.ListReport.view.ListReport",YA="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ly=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ly||{}),Vy={};xp(Vy,{Availability:r(()=>Gy,"Availability"),CustomSectionViewTypesV4:r(()=>ky,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>jy,"DefaultPathType"),DesigntimeValues:r(()=>$y,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>ZA,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>iC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>eC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>nC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>tC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>aC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>Wy,"HorizontalAlign"),InitialLoadType:r(()=>Ry,"InitialLoadType"),Placement:r(()=>Hy,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>rC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>oC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>My,"SectionLayoutType"),SectionPosition:r(()=>Uy,"SectionPosition"),SectionPositionV4:r(()=>By,"SectionPositionV4"),SelectType:r(()=>wy,"SelectType"),SelectionMode:r(()=>Ny,"SelectionMode"),TableCreationModeType:r(()=>_y,"TableCreationModeType"),TableTypeV4:r(()=>Dy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Ky,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Qy,"VariantManagementTypeObjectPage")});var Ny=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Ny||{}),Dy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Dy||{}),Ry=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Ry||{}),jy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(jy||{}),wy=(e=>(e.single="single",e.multi="multi",e))(wy||{}),$y=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))($y||{}),My=(e=>(e.Tabs="Tabs",e.Page="Page",e))(My||{}),Uy=(e=>(e.After="After",e.Before="Before",e))(Uy||{}),ky=(e=>(e.XML="XML",e))(ky||{}),_y=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(_y||{}),ZA="sap.fe",eC="sap.fe.core.fpm",tC="sap.fe.templates.ObjectPage",nC="sap.fe.templates.ListReport",iC="sap.fe.templates.AnalyticalListPage",oC="XMLFragment",By=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(By||{}),aC="sap.f.routing.Router",rC="sap.f",Hy=(e=>(e.After="After",e.Before="Before",e))(Hy||{}),Gy=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(Gy||{}),Wy=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(Wy||{}),Qy=(e=>(e.None="None",e.Control="Control",e))(Qy||{}),Ky=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Ky||{})});var eh=we(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.Features=cn.TemplateType=cn.PropertyMessageType=cn.logSeverityLabel=cn.LogSeverity=void 0;var qy;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(qy||(cn.LogSeverity=qy={}));cn.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var zy;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(zy||(cn.PropertyMessageType=zy={}));var Yy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Yy||(cn.TemplateType=Yy={}));var Zy;(function(e){e.BuildingBlocks="BuildingBlocks"})(Zy||(cn.Features=Zy={}))});var Fh=we((cR,Oh)=>{var Fp=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,cC=Object.getOwnPropertyNames,lC=Object.prototype.hasOwnProperty,pC=r((e,t)=>{for(var n in t)Fp(e,n,{get:t[n],enumerable:!0})},"G"),fC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cC(t))!lC.call(e,o)&&o!==n&&Fp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=sC(t,o))||i.enumerable});return e},"X"),uC=r(e=>fC(Fp({},"__esModule",{value:!0}),e),"H"),th={};pC(th,{AvatarShape:r(()=>Ah,"AvatarShape"),ButtonType:r(()=>nh,"ButtonType"),CardSettingsType:r(()=>ah,"CardSettingsType"),CardTemplateType:r(()=>oh,"CardTemplateType"),ChartCardType:r(()=>ih,"ChartCardType"),ChartType:r(()=>Ph,"ChartType"),ContainerLayoutType:r(()=>Ih,"ContainerLayoutType"),CreateMode:r(()=>xh,"CreateMode"),DateRangeType:r(()=>fh,"DateRangeType"),DefaultContentView:r(()=>Th,"DefaultContentView"),DefaultFilterMode:r(()=>Sh,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Eh,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>mC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>bC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>hC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>yC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>uh,"FilterPathType"),HAlign:r(()=>dh,"HAlign"),LinkListFlavorType:r(()=>ph,"LinkListFlavorType"),ListFlavorType:r(()=>sh,"ListFlavorType"),ListTypeType:r(()=>ch,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>vh,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>rh,"MeasureAggregateValues"),PopinLayout:r(()=>hh,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>SC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>TC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>AC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>PC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>vC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Ch,"SectionPosition"),SortOrderType:r(()=>lh,"SortOrderType"),Strategy:r(()=>bh,"Strategy"),TableColumnExtensionTypeV2:r(()=>yh,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>mh,"TableTypeV2"),cardTemplateSettingsMap:r(()=>gC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>dC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>gh,"customColumnViewTypes")});Oh.exports=uC(th);var nh=(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))(nh||{}),ih=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(ih||{}),oh=(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))(oh||{}),dC={"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"},gC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},ah=(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))(ah||{}),rh=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(rh||{}),sh=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(sh||{}),ch=(e=>(e.extended="extended",e.condensed="condensed",e))(ch||{}),lh=(e=>(e.ascending="ascending",e.descending="descending",e))(lh||{}),ph=(e=>(e.standard="standard",e.carousel="carousel",e))(ph||{}),fh=(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))(fh||{}),uh=(e=>(e.key="key",e.catgory="category",e))(uh||{}),dh=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(dh||{}),gh=(e=>(e.XML="XML",e))(gh||{}),mh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(mh||{}),yh=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(yh||{}),hh=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(hh||{}),bh=(e=>(e.extension="extension",e))(bh||{}),Th=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Th||{}),Sh=(e=>(e.visual="visual",e.compact="compact",e))(Sh||{}),vh=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(vh||{}),Ph=(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))(Ph||{}),Ah=(e=>(e.Circle="Circle",e.Square="Square",e))(Ah||{}),Ch=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Ch||{}),Eh=(e=>(e.XML="XML",e))(Eh||{}),xh=(e=>(e.inline="inline",e))(xh||{}),mC="sap.suite.ui.generic.template",yC="sap.suite.ui.generic.template.ObjectPage",hC="sap.suite.ui.generic.template.ListReport",bC="sap.suite.ui.generic.template.AnalyticalListPage",TC="sap.ui.viewExtensions",SC="sap.ui.controllerExtensions",vC="sap.suite.ui.generic.template.ObjectPage.view.Details",PC="sap.suite.ui.generic.template.ListReport.view.ListReport",AC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ih=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ih||{})});var Xh=we((pR,Kh)=>{var Lp=Object.defineProperty,CC=Object.getOwnPropertyDescriptor,EC=Object.getOwnPropertyNames,xC=Object.prototype.hasOwnProperty,IC=r((e,t)=>{for(var n in t)Lp(e,n,{get:t[n],enumerable:!0})},"O"),OC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EC(t))!xC.call(e,o)&&o!==n&&Lp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=CC(t,o))||i.enumerable});return e},"U"),FC=r(e=>OC(Lp({},"__esModule",{value:!0}),e),"w"),Lh={};IC(Lh,{Availability:r(()=>Hh,"Availability"),CustomSectionViewTypesV4:r(()=>Uh,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Rh,"DefaultPathType"),DesigntimeValues:r(()=>wh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>LC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>RC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>VC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>DC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>NC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>wC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>Gh,"HorizontalAlign"),InitialLoadType:r(()=>Dh,"InitialLoadType"),Placement:r(()=>Bh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>$C,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>jC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>$h,"SectionLayoutType"),SectionPosition:r(()=>Mh,"SectionPosition"),SectionPositionV4:r(()=>_h,"SectionPositionV4"),SelectType:r(()=>jh,"SelectType"),SelectionMode:r(()=>Vh,"SelectionMode"),TableCreationModeType:r(()=>kh,"TableCreationModeType"),TableTypeV4:r(()=>Nh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Qh,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Wh,"VariantManagementTypeObjectPage")});Kh.exports=FC(Lh);var Vh=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Vh||{}),Nh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Nh||{}),Dh=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Dh||{}),Rh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Rh||{}),jh=(e=>(e.single="single",e.multi="multi",e))(jh||{}),wh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(wh||{}),$h=(e=>(e.Tabs="Tabs",e.Page="Page",e))($h||{}),Mh=(e=>(e.After="After",e.Before="Before",e))(Mh||{}),Uh=(e=>(e.XML="XML",e))(Uh||{}),kh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(kh||{}),LC="sap.fe",VC="sap.fe.core.fpm",NC="sap.fe.templates.ObjectPage",DC="sap.fe.templates.ListReport",RC="sap.fe.templates.AnalyticalListPage",jC="XMLFragment",_h=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(_h||{}),wC="sap.f.routing.Router",$C="sap.f",Bh=(e=>(e.After="After",e.Before="Before",e))(Bh||{}),Hh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(Hh||{}),Gh=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(Gh||{}),Wh=(e=>(e.None="None",e.Control="Control",e))(Wh||{}),Qh=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Qh||{})});var B=we(At=>{"use strict";var Jh=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]})),MC=At&&At.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qh=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Jh(t,e,n)},zh=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"&&Jh(n,t,i[o]);return MC(n,t),n}})();Object.defineProperty(At,"__esModule",{value:!0});At.v4=At.v2=void 0;qh(Jy(),At);qh(eh(),At);At.v2=zh(Fh());At.v4=zh(Xh())});var Xp=we((LR,mb)=>{"use strict";var eE=r(function(t){return tE(t)&&!nE(t)},"isMergeableObject");function tE(e){return!!e&&typeof e=="object"}r(tE,"isNonNullObject");function nE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aE(e)}r(nE,"isSpecial");var iE=typeof Symbol=="function"&&Symbol.for,oE=iE?Symbol.for("react.element"):60103;function aE(e){return e.$$typeof===oE}r(aE,"isReactElement");function rE(e){return Array.isArray(e)?[]:{}}r(rE,"emptyTarget");function Ja(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qo(rE(e),e,t):e}r(Ja,"cloneUnlessOtherwiseSpecified");function sE(e,t,n){return e.concat(t).map(function(i){return Ja(i,n)})}r(sE,"defaultArrayMerge");function cE(e,t){if(!t.customMerge)return qo;var n=t.customMerge(e);return typeof n=="function"?n:qo}r(cE,"getMergeFunction");function lE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(lE,"getEnumerableOwnPropertySymbols");function db(e){return Object.keys(e).concat(lE(e))}r(db,"getKeys");function gb(e,t){try{return t in e}catch{return!1}}r(gb,"propertyIsOnObject");function pE(e,t){return gb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(pE,"propertyIsUnsafe");function fE(e,t,n){var i={};return n.isMergeableObject(e)&&db(e).forEach(function(o){i[o]=Ja(e[o],n)}),db(t).forEach(function(o){pE(e,o)||(gb(e,o)&&n.isMergeableObject(t[o])?i[o]=cE(o,n)(e[o],t[o],n):i[o]=Ja(t[o],n))}),i}r(fE,"mergeObject");function qo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sE,n.isMergeableObject=n.isMergeableObject||eE,n.cloneUnlessOtherwiseSpecified=Ja;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):fE(e,t,n):Ja(t,n)}r(qo,"deepmerge");qo.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 qo(i,o,n)},{})},"deepmergeAll");var uE=qo;mb.exports=uE});var Rs=we(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.mergeAnnotations=Oe.addGetByValue=Oe.createIndexedFind=Oe.lazy=Oe.Decimal=Oe.Double=Oe.isComplexTypeDefinition=Oe.unalias=Oe.alias=Oe.substringBeforeLast=Oe.substringBeforeFirst=Oe.splitAtLast=Oe.splitAtFirst=Oe.defaultReferences=Oe.TermToTypes=Oe.EnumIsFlag=void 0;var dE=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Oe,"EnumIsFlag",{enumerable:!0,get:r(function(){return dE.EnumIsFlag},"get")});var gE=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Oe,"TermToTypes",{enumerable:!0,get:r(function(){return gE.TermToTypes},"get")});var mE=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Oe,"defaultReferences",{enumerable:!0,get:r(function(){return mE.VocabularyReferences},"get")});function yb(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(yb,"splitAt");function hb(e,t){return t<0?e:e.substring(0,t)}r(hb,"substringAt");function Ds(e,t){return yb(e,e.indexOf(t))}r(Ds,"splitAtFirst");Oe.splitAtFirst=Ds;function bb(e,t){return yb(e,e.lastIndexOf(t))}r(bb,"splitAtLast");Oe.splitAtLast=bb;function yE(e,t){return hb(e,e.indexOf(t))}r(yE,"substringBeforeFirst");Oe.substringBeforeFirst=yE;function hE(e,t){return hb(e,e.lastIndexOf(t))}r(hE,"substringBeforeLast");Oe.substringBeforeLast=hE;function Tb(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=bb(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Ds(t,"@");return`${a}@${Tb(e,s)}`}else return t}r(Tb,"alias");Oe.alias=Tb;function Jp(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,c]=Ds(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]=Ds(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(Jp,"unalias");Oe.unalias=Jp;function bE(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(bE,"isComplexTypeDefinition");Oe.isComplexTypeDefinition=bE;function TE(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(TE,"Double");Oe.Double=TE;function SE(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(SE,"Decimal");Oe.Decimal=SE;function vE(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(vE,"lazy");Oe.lazy=vE;function Sb(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(Sb,"createIndexedFind");Oe.createIndexedFind=Sb;function PE(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Sb(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(PE,"addGetByValue");Oe.addGetByValue=PE;function AE(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=Jp(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(f=>{var u;return f.term=(u=Jp(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(AE,"mergeAnnotations");Oe.mergeAnnotations=AE});var Rb=we($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.convert=void 0;var js=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Rs(),Pn=Symbol("Annotation Target");function oi(e,t){return e[e.length-1]!==t&&e.push(t),e}r(oi,"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[Pn]!==void 0)t=t[Pn];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,O,V,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=oi(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[q,fe]=e.splitTerm(m),ie=(h=u.target.annotations[q.substring(1)])===null||h===void 0?void 0:h[fe];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 fe=Yt(e,u.target[Pn],q);return fe.objectPath.forEach(ie=>{u.objectPath.includes(ie)||(u.objectPath=oi(u.objectPath,ie))}),u.target=fe.target,u.objectPath=oi(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 pe=(V=(O=ie.entitySets.by_name(m))!==null&&O!==void 0?O:ie.singletons.by_name(m))!==null&&V!==void 0?V:ie.actionImports.by_name(m);if(pe)return u.target=pe,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 Le=ie.navigationPropertyBinding;return u.target=Le,u}let pe=Yt(e,ie.entityType,m);return u.target=pe.target,u.objectPath=pe.objectPath.reduce(oi,u.objectPath),u}case"EntityType":{let ie=u.target;if(m===""||m==="$Type")return u;let pe=ie.entityProperties.by_name(m);if(pe)return u.target=pe,u;let Le=ie.navigationProperties.by_name(m);if(Le)return u.target=Le,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(oi,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 pe=(Y=ie.parameters[m])!==null&&Y!==void 0?Y:ie.parameters.find(Le=>Le.name===m);if(pe)return u.target=pe,u;break}case"Property":{let pe=u.target.targetType;if(pe!==void 0){let Le=pe.properties.by_name(m);if(Le)return u.target=Le,u;let P=pe.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(oi,u.objectPath),u}break;case"NavigationProperty":let fe=Yt(e,u.target.targetType,m);return u.target=fe.target,u.objectPath=fe.objectPath.reduce(oi,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=oi(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=Eb(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,17 +16,17 @@ 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(Eb,"inferTypeFromTerm");function xE(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(xE,"isDataFieldWithForAction");function IE(e,t,n,i,o){let a;return!o.type&&t?a=Eb(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(IE,"parseRecordType");function Yp(e,t,n,i,o,a,s){let c={$Type:IE(e,t,n,i,a),fullyQualifiedName:s,[Pn]:n,__source:o};for(let l of a.propertyValues)(0,K.lazy)(c,l.name,()=>Cb(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,K.lazy)(c,"annotations",Ob(e,a,c)),xE(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(Yp,"parseRecord");function OE(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(OE,"getOrInferCollectionType");function xb(e,t,n,i,o,a,s){switch(OE(a)){case"PropertyPath":return a.map((l,p)=>vb(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)=>Pb(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>Ab(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>Yp(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(xb,"parseCollection");function FE(e){return!!e.targetTypeName}r(FE,"isV4NavigationProperty");function VE(e,t,n){var i;let o;if(n.record)o=Yp(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=Cb(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=xb(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[Pn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,js.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Ob(e,n,o))}catch{}return o}r(VE,"convertAnnotation");var Zp=class Zp{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,Fb)}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)(js.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(Zp,"Converter");var qp=Zp;function qa(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(qa,"resolveEntityType");function Ib(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(Ib,"resolveNavigationPropertyBindings");function ai(e,t){let n=t.annotations;return()=>ws(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(ai,"resolveAnnotations");function Ob(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[Pn]=n[Pn],a.fullyQualifiedName=`${i}@${a.term}`}),ws(e,n,o??[])}}r(Ob,"resolveAnnotationsOnAnnotation");function ws(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]={}),i[a].hasOwnProperty(c)||(0,K.lazy)(i[a],c,()=>e.getConvertedElement(o.fullyQualifiedName,o,(l,p)=>VE(l,t,p))),i},{})}r(ws,"createAnnotationsObject");function Fb(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Lb)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Vb)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Db)),n}r(Fb,"convertEntityContainer");function Vb(e,t){let n=t;(0,K.lazy)(n,"entityType",qa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",ai(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Ib(e,i)),n}r(Vb,"convertSingleton");function Lb(e,t){let n=t;(0,K.lazy)(n,"entityType",qa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",ai(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Ib(e,i)),n}r(Lb,"convertEntitySet");function LE(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",ai(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,zp)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,zp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Nb)),(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(LE,"convertEntityType");function zp(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(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(zp,"convertProperty");function Nb(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!FE(t)){let s=(i=e.rawSchema.associations.find(c=>c.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(c=>c.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,K.lazy)(a,"targetType",qa(e,t.targetTypeName)),(0,K.lazy)(a,"annotations",ai(e,t)),a}r(Nb,"convertNavigationProperty");function Db(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(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(Db,"convertActionImport");function NE(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",qa(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",qa(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,DE)),(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 ws(e,t,a)}),n}r(NE,"convertAction");function DE(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 ws(e,t,a)}),n}r(DE,"convertActionParameter");function RE(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,zp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Nb)),(0,K.lazy)(n,"annotations",ai(e,t)),n}r(RE,"convertComplexType");function jE(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(e,t)),n}r(jE,"convertTypeDefinition");function wE(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:js.VocabularyReferences,diagnostics:[]},n=new qp(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Fb)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Lb)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Vb)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,LE)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,NE)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,RE)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Db)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,jE)),t.resolvePath=r(function(o){let a=Yt(n,void 0,o);return a.target&&oi(a.objectPath,a.target),a},"resolvePath"),t}r(wE,"convert");$s.convert=wE});var Mb=we(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.revertTermToGenericType=void 0;var ef=Rs();function $E(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(b=>b.alias===m[0])&&(u=ef.EnumIsFlag[(0,ef.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>Ms(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:Ms(e,t)});return p}r($E,"revertObjectToRawType");function jb(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=$E(e,t);break}return n}r(jb,"revertValueToRawType");var ME=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function wb(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=$b(e,t[i][o]);if(!a.term){let s=(0,ef.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(wb,"revertAnnotationsToRawType");function Ms(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(ME.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:jb(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],wb(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(Ms,"revertCollectionItemToRawType");function $b(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=[],wb(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ms(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ms(e,t)}:{...n,value:jb(e,t)}}r($b,"revertTermToGenericType");Us.revertTermToGenericType=$b});var Ub=we(ri=>{"use strict";var UE=ri&&ri.__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]})),tf=ri&&ri.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&UE(t,e,n)};Object.defineProperty(ri,"__esModule",{value:!0});tf(Rb(),ri);tf(Rs(),ri);tf(Mb(),ri)});var sf=we(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.MergedRawMetadata=Ci.RawMetadataInstance=Ci.ensureArray=void 0;function kE(e){return e==null?[]:Array.isArray(e)?e:[e]}r(kE,"ensureArray");Ci.ensureArray=kE;var af=class af{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(af,"RawMetadataInstance");var nf=af;Ci.RawMetadataInstance=nf;var rf=class rf{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(rf,"MergedRawMetadata");var of=rf;Ci.MergedRawMetadata=of});var kb=we(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.merge=void 0;var _E=sf();function BE(...e){let t=new _E.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(BE,"merge");ks.merge=BE});var _b=we(_s=>{(function(e){e.parser=function(h,y){return new n(h,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(h,y){if(!(this instanceof n))return new n(h,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=!!h,D.noscript=!!(h||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=!h),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(h){function y(){}r(y,"F"),y.prototype=h;var D=new y;return D}),Object.keys||(Object.keys=function(h){var y=[];for(var D in h)h.hasOwnProperty(D)&&y.push(D);return y});function i(h){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),D=0,A=0,Se=t.length;A<Se;A++){var et=h[t[A]].length;if(et>y)switch(t[A]){case"textNode":ni(h);break;case"cdata":ze(h,"oncdata",h.cdata),h.cdata="";break;case"script":ze(h,"onscript",h.script),h.script="";break;default:st(h,"Max buffer length exceeded: "+t[A])}D=Math.max(D,et)}var We=e.MAX_BUFFER_LENGTH-D;h.bufferCheckPosition=We+h.position}r(i,"checkBufferLength");function o(h){for(var y=0,D=t.length;y<D;y++)h[t[y]]=""}r(o,"clearBuffers");function a(h){ni(h),h.cdata!==""&&(ze(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(ze(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){ii(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(h){return h!=="error"&&h!=="end"});function l(h,y){return new p(h,y)}r(l,"createStream");function p(h,y){if(!(this instanceof p))return new p(h,y);s.apply(this),this._parser=new n(h,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(Se){if(!Se)return D.removeAllListeners(A),D._parser["on"+A]=Se,Se;D.on(A,Se)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var y=require("string_decoder").StringDecoder;this._decoder=new y("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},p.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},p.prototype.on=function(h,y){var D=this;return!D._parser["on"+h]&&c.indexOf(h)!==-1&&(D._parser["on"+h]=function(){var A=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);A.splice(0,0,h),D.emit.apply(D,A)}),s.prototype.on.call(D,h,y)};var f="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",T={xml:m,xmlns:b},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(h){return h===" "||h===`
|
|
20
|
-
`||
|
|
21
|
-
Line: `+
|
|
22
|
-
Column: `+
|
|
23
|
-
Char: `+
|
|
24
|
-
Actual: `+
|
|
25
|
-
Actual: `+
|
|
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 Se=D-1;A&&A!=="<"&&A!=="&";)A=Zi(
|
|
27
|
-
`?(y.line++,y.column=0):y.column++);y.textNode+=h.substring(Se,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(pe(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):(fe(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:fe(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):fe(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:pe(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:pe(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,Sn(y),zt(y)):q(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:pe(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):pe(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;fe(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}Sn(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:pe(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}Sn(y),A===">"?zt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?ct(y):pe(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 pe(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 h=String.fromCharCode,y=Math.floor,D=r(function(){var A=16384,Se=[],et,We,Tt=-1,Pt=arguments.length;if(!Pt)return"";for(var Mn="";++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?Se.push(lt):(lt-=65536,et=(lt>>10)+55296,We=lt%1024+56320,Se.push(et,We)),(Tt+1===Pt||Se.length>A)&&(Mn+=h.apply(null,Se),Se.length=0)}return Mn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D})()})(typeof _s>"u"?_s.sax={}:_s)});var Bs=we((QR,Bb)=>{Bb.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Hs=we((XR,Hb)=>{var HE=Bs().isArray;Hb.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"&&!HE(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 lf=we((qR,zb)=>{var GE=_b(),WE={on:r(function(){},"on"),parse:r(function(){},"parse")},ve=Hs(),zo=Bs().isArray,I,cf=!0,de;function QE(e){return I=ve.copyOptions(e),ve.ensureFlagExists("ignoreDeclaration",I),ve.ensureFlagExists("ignoreInstruction",I),ve.ensureFlagExists("ignoreAttributes",I),ve.ensureFlagExists("ignoreText",I),ve.ensureFlagExists("ignoreComment",I),ve.ensureFlagExists("ignoreCdata",I),ve.ensureFlagExists("ignoreDoctype",I),ve.ensureFlagExists("compact",I),ve.ensureFlagExists("alwaysChildren",I),ve.ensureFlagExists("addParent",I),ve.ensureFlagExists("trim",I),ve.ensureFlagExists("nativeType",I),ve.ensureFlagExists("nativeTypeAttributes",I),ve.ensureFlagExists("sanitize",I),ve.ensureFlagExists("instructionHasAttributes",I),ve.ensureFlagExists("captureSpacesBetweenElements",I),ve.ensureAlwaysArrayExists(I),ve.ensureKeyExists("declaration",I),ve.ensureKeyExists("instruction",I),ve.ensureKeyExists("attributes",I),ve.ensureKeyExists("text",I),ve.ensureKeyExists("comment",I),ve.ensureKeyExists("cdata",I),ve.ensureKeyExists("doctype",I),ve.ensureKeyExists("type",I),ve.ensureKeyExists("name",I),ve.ensureKeyExists("elements",I),ve.ensureKeyExists("parent",I),ve.checkFnExists("doctype",I),ve.checkFnExists("instruction",I),ve.checkFnExists("cdata",I),ve.checkFnExists("comment",I),ve.checkFnExists("text",I),ve.checkFnExists("instructionName",I),ve.checkFnExists("elementName",I),ve.checkFnExists("attributeName",I),ve.checkFnExists("attributeValue",I),ve.checkFnExists("attributes",I),I}r(QE,"validateOptions");function Jb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(Jb,"nativeType");function za(e,t){var n;if(I.compact){if(!de[I[e+"Key"]]&&(zo(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(de[I[e+"Key"]]=[]),de[I[e+"Key"]]&&!zo(de[I[e+"Key"]])&&(de[I[e+"Key"]]=[de[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,de)),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,de);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,de)]=i}}zo(de[I[e+"Key"]])?de[I[e+"Key"]].push(t):de[I[e+"Key"]]=t}else{de[I.elementsKey]||(de[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,de):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,de))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,de)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,de)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=de),de[I.elementsKey].push(o)}}r(za,"addField");function qb(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,de)),(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]=Jb(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,de)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],de)]=n}}return e}r(qb,"manipulateAttributes");function KE(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=qb(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;de[I.declarationKey]={},Object.keys(t).length&&(de[I.declarationKey][I.attributesKey]=t),I.addParent&&(de[I.declarationKey][I.parentKey]=de)}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,za("instruction",o)}}r(KE,"onInstruction");function Gb(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=qb(t),"elementNameFn"in I&&(e=I.elementNameFn(e,de)),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 de)&&(zo(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(de[e]=[]),de[e]&&!zo(de[e])&&(de[e]=[de[e]]),zo(de[e])?de[e].push(n):de[e]=n}else de[I.elementsKey]||(de[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]=[]),de[I.elementsKey].push(n);n[I.parentKey]=de,de=n}r(Gb,"onStartElement");function Wb(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=Jb(e)),I.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),za("text",e))}r(Wb,"onText");function Qb(e){I.ignoreComment||(I.trim&&(e=e.trim()),za("comment",e))}r(Qb,"onComment");function Kb(e){var t=de[I.parentKey];I.addParent||delete de[I.parentKey],de=t}r(Kb,"onEndElement");function XE(e){I.ignoreCdata||(I.trim&&(e=e.trim()),za("cdata",e))}r(XE,"onCdata");function JE(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),za("doctype",e))}r(JE,"onDoctype");function Xb(e){e.note=e}r(Xb,"onError");zb.exports=function(e,t){var n=cf?GE.parser(!0,{}):n=new WE.Parser("UTF-8"),i={};if(de=i,I=QE(t),cf?(n.opt={strictEntities:!0},n.onopentag=Gb,n.ontext=Wb,n.oncomment=Qb,n.onclosetag=Kb,n.onerror=Xb,n.oncdata=XE,n.ondoctype=JE,n.onprocessinginstruction=KE):(n.on("startElement",Gb),n.on("text",Wb),n.on("comment",Qb),n.on("endElement",Kb),n.on("error",Xb)),cf)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 eT=we((YR,Zb)=>{var Yb=Hs(),qE=lf();function zE(e){var t=Yb.copyOptions(e);return Yb.ensureSpacesExists(t),t}r(zE,"validateOptions");Zb.exports=function(e,t){var n,i,o,a;return n=zE(t),i=qE(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 ff=we((ej,lT)=>{var Ce=Hs(),YE=Bs().isArray,Ct,Et;function ZE(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(ZE,"validateOptions");function kn(e,t,n){return(!n&&e.spaces?`
|
|
19
|
+
</Annotations>`),o}r(Eb,"inferTypeFromTerm");function xE(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(xE,"isDataFieldWithForAction");function IE(e,t,n,i,o){let a;return!o.type&&t?a=Eb(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(IE,"parseRecordType");function Yp(e,t,n,i,o,a,s){let c={$Type:IE(e,t,n,i,a),fullyQualifiedName:s,[Pn]:n,__source:o};for(let l of a.propertyValues)(0,K.lazy)(c,l.name,()=>Cb(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,K.lazy)(c,"annotations",Ob(e,a,c)),xE(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(Yp,"parseRecord");function OE(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(OE,"getOrInferCollectionType");function xb(e,t,n,i,o,a,s){switch(OE(a)){case"PropertyPath":return a.map((l,p)=>vb(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)=>Pb(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>Ab(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>Yp(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(xb,"parseCollection");function FE(e){return!!e.targetTypeName}r(FE,"isV4NavigationProperty");function LE(e,t,n){var i;let o;if(n.record)o=Yp(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=Cb(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=xb(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[Pn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,js.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Ob(e,n,o))}catch{}return o}r(LE,"convertAnnotation");var Zp=class Zp{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,Fb)}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)(js.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(Zp,"Converter");var qp=Zp;function qa(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(qa,"resolveEntityType");function Ib(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(Ib,"resolveNavigationPropertyBindings");function ai(e,t){let n=t.annotations;return()=>ws(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(ai,"resolveAnnotations");function Ob(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[Pn]=n[Pn],a.fullyQualifiedName=`${i}@${a.term}`}),ws(e,n,o??[])}}r(Ob,"resolveAnnotationsOnAnnotation");function ws(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)=>LE(l,t,p)))),i},{})}r(ws,"createAnnotationsObject");function Fb(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Vb)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Lb)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Db)),n}r(Fb,"convertEntityContainer");function Lb(e,t){let n=t;(0,K.lazy)(n,"entityType",qa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",ai(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Ib(e,i)),n}r(Lb,"convertSingleton");function Vb(e,t){let n=t;(0,K.lazy)(n,"entityType",qa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",ai(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Ib(e,i)),n}r(Vb,"convertEntitySet");function VE(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",ai(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,zp)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,zp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Nb)),(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(VE,"convertEntityType");function zp(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(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(zp,"convertProperty");function Nb(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!FE(t)){let s=(i=e.rawSchema.associations.find(c=>c.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(c=>c.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,K.lazy)(a,"targetType",qa(e,t.targetTypeName)),(0,K.lazy)(a,"annotations",ai(e,t)),a}r(Nb,"convertNavigationProperty");function Db(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(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(Db,"convertActionImport");function NE(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",qa(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",qa(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,DE)),(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 ws(e,t,a)}),n}r(NE,"convertAction");function DE(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 ws(e,t,a)}),n}r(DE,"convertActionParameter");function RE(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,zp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Nb)),(0,K.lazy)(n,"annotations",ai(e,t)),n}r(RE,"convertComplexType");function jE(e,t){let n=t;return(0,K.lazy)(n,"annotations",ai(e,t)),n}r(jE,"convertTypeDefinition");function wE(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:js.VocabularyReferences,diagnostics:[]},n=new qp(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Fb)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Vb)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Lb)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,VE)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,NE)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,RE)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Db)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,jE)),t.resolvePath=r(function(o){let a=Yt(n,void 0,o);return a.target&&oi(a.objectPath,a.target),a},"resolvePath"),t}r(wE,"convert");$s.convert=wE});var Mb=we(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.revertTermToGenericType=void 0;var ef=Rs();function $E(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=ef.EnumIsFlag[(0,ef.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>Ms(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:Ms(e,t)});return p}r($E,"revertObjectToRawType");function jb(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=$E(e,t);break}return n}r(jb,"revertValueToRawType");var ME=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function wb(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(o=>o!=="_keys").forEach(o=>{let a=$b(e,t[i][o]);if(!a.term){let s=(0,ef.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(wb,"revertAnnotationsToRawType");function Ms(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(ME.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:jb(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],wb(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(Ms,"revertCollectionItemToRawType");function $b(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=[],wb(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ms(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ms(e,t)}:{...n,value:jb(e,t)}}r($b,"revertTermToGenericType");Us.revertTermToGenericType=$b});var Ub=we(ri=>{"use strict";var UE=ri&&ri.__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]})),tf=ri&&ri.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&UE(t,e,n)};Object.defineProperty(ri,"__esModule",{value:!0});tf(Rb(),ri);tf(Rs(),ri);tf(Mb(),ri)});var sf=we(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.MergedRawMetadata=Ci.RawMetadataInstance=Ci.ensureArray=void 0;function kE(e){return e==null?[]:Array.isArray(e)?e:[e]}r(kE,"ensureArray");Ci.ensureArray=kE;var af=class af{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(af,"RawMetadataInstance");var nf=af;Ci.RawMetadataInstance=nf;var rf=class rf{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(rf,"MergedRawMetadata");var of=rf;Ci.MergedRawMetadata=of});var kb=we(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.merge=void 0;var _E=sf();function BE(...e){let t=new _E.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(BE,"merge");ks.merge=BE});var _b=we(_s=>{(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,Se=t.length;A<Se;A++){var et=b[t[A]].length;if(et>y)switch(t[A]){case"textNode":ni(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){ni(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(){ii(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(Se){if(!Se)return D.removeAllListeners(A),D._parser["on"+A]=Se,Se;D.on(A,Se)},"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},O=/[:_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]/,V=/[:_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
|
+
`||b==="\r"||b===" "}r(q,"isWhitespace");function fe(b){return b==='"'||b==="'"}r(fe,"isQuote");function ie(b){return b===">"||q(b)}r(ie,"isAttribEnd");function pe(b,y){return b.test(y)}r(pe,"isMatch");function Le(b,y){return!pe(b,y)}r(Le,"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&&ni(b),Xe(b,y,D)}r(ze,"emitNode");function ni(b){b.textNode=Nt(b.opt,b.textNode),b.textNode&&Xe(b,"ontext",b.textNode),b.textNode=""}r(ni,"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 ni(b),b.trackPosition&&(y+=`
|
|
21
|
+
Line: `+b.line+`
|
|
22
|
+
Column: `+b.column+`
|
|
23
|
+
Char: `+b.c),y=new Error(y),b.error=y,Xe(b,"onerror",y),b}r(st,"error");function ii(b){return b.sawRoot&&!b.closedRoot&&be(b,"Unclosed root tag"),b.state!==P.BEGIN&&b.state!==P.BEGIN_WHITESPACE&&b.state!==P.TEXT&&st(b,"Unexpected end"),ni(b),b.c="",b.closed=!0,Xe(b,"onend"),n.call(b,b.strict,b.opt),b}r(ii,"end");function be(b,y){if(typeof b!="object"||!(b instanceof n))throw new Error("bad call to strictFail");b.strict&&st(b,y)}r(be,"strictFail");function Ut(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var y=b.tags[b.tags.length-1]||b,D=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(D.ns=y.ns),b.attribList.length=0,ze(b,"onopentagstart",D)}r(Ut,"newTag");function rn(b,y){var D=b.indexOf(":"),A=D<0?["",b]:b.split(":"),Se=A[0],et=A[1];return y&&b==="xmlns"&&(Se="xmlns",et=""),{prefix:Se,local:et}}r(rn,"qname");function Sn(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var y=rn(b.attribName,!0),D=y.prefix,A=y.local;if(D==="xmlns")if(A==="xml"&&b.attribValue!==m)be(b,"xml: prefix must be bound to "+m+`
|
|
24
|
+
Actual: `+b.attribValue);else if(A==="xmlns"&&b.attribValue!==h)be(b,"xmlns: prefix must be bound to "+h+`
|
|
25
|
+
Actual: `+b.attribValue);else{var Se=b.tag,et=b.tags[b.tags.length-1]||b;Se.ns===et.ns&&(Se.ns=Object.create(et.ns)),Se.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(Sn,"attrib");function zt(b,y){if(b.opt.xmlns){var D=b.tag,A=rn(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 Se=b.tags[b.tags.length-1]||b;D.ns&&Se.ns!==D.ns&&Object.keys(D.ns).forEach(function(Wo){ze(b,"onopennamespace",{prefix:Wo,uri:D.ns[Wo]})});for(var et=0,We=b.attribList.length;et<We;et++){var Tt=b.attribList[et],Pt=Tt[0],Mn=Tt[1],lt=rn(Pt,!0),sn=lt.prefix,Cs=lt.local,Ba=sn===""?"":D.ns[sn]||"",Go={name:Pt,value:Mn,prefix:sn,local:Cs,uri:Ba};sn&&sn!=="xmlns"&&!Ba&&(be(b,"Unbound namespace prefix: "+JSON.stringify(sn)),Go.uri=sn),b.tag.attributes[Pt]=Go,ze(b,"onattribute",Go)}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 Se=b.tags[y];if(Se.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 Mn=b.tags[b.tags.length-1]||b;b.opt.xmlns&&We.ns!==Mn.ns&&Object.keys(We.ns).forEach(function(lt){var sn=We.ns[lt];ze(b,"onclosenamespace",{prefix:lt,uri:sn})})}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,Se="";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),Se=A.toString(16)):(y=y.slice(1),A=parseInt(y,10),Se=A.toString(10))),y=y.replace(/^0+/,""),isNaN(A)||Se.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 Zi(b,y){var D="";return y<b.length&&(D=b.charAt(y)),D}r(Zi,"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 ii(y);typeof b=="object"&&(b=b.toString());for(var D=0,A="";A=Zi(b,D++),y.c=A,!!A;)switch(y.trackPosition&&(y.position++,A===`
|
|
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 Se=D-1;A&&A!=="<"&&A!=="&";)A=Zi(b,D++),A&&y.trackPosition&&(y.position++,A===`
|
|
27
|
+
`?(y.line++,y.column=0):y.column++);y.textNode+=b.substring(Se,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(pe(O,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):(fe(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:fe(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):fe(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:pe(V,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:pe(O,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,Sn(y),zt(y)):q(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:pe(V,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):pe(O,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;fe(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}Sn(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:pe(O,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}Sn(y),A===">"?zt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?ct(y):pe(V,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;Le(O,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 pe(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,Se=[],et,We,Tt=-1,Pt=arguments.length;if(!Pt)return"";for(var Mn="";++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?Se.push(lt):(lt-=65536,et=(lt>>10)+55296,We=lt%1024+56320,Se.push(et,We)),(Tt+1===Pt||Se.length>A)&&(Mn+=b.apply(null,Se),Se.length=0)}return Mn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D})()})(typeof _s>"u"?_s.sax={}:_s)});var Bs=we((QR,Bb)=>{Bb.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Hs=we((XR,Hb)=>{var HE=Bs().isArray;Hb.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"&&!HE(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 lf=we((qR,zb)=>{var GE=_b(),WE={on:r(function(){},"on"),parse:r(function(){},"parse")},ve=Hs(),zo=Bs().isArray,I,cf=!0,de;function QE(e){return I=ve.copyOptions(e),ve.ensureFlagExists("ignoreDeclaration",I),ve.ensureFlagExists("ignoreInstruction",I),ve.ensureFlagExists("ignoreAttributes",I),ve.ensureFlagExists("ignoreText",I),ve.ensureFlagExists("ignoreComment",I),ve.ensureFlagExists("ignoreCdata",I),ve.ensureFlagExists("ignoreDoctype",I),ve.ensureFlagExists("compact",I),ve.ensureFlagExists("alwaysChildren",I),ve.ensureFlagExists("addParent",I),ve.ensureFlagExists("trim",I),ve.ensureFlagExists("nativeType",I),ve.ensureFlagExists("nativeTypeAttributes",I),ve.ensureFlagExists("sanitize",I),ve.ensureFlagExists("instructionHasAttributes",I),ve.ensureFlagExists("captureSpacesBetweenElements",I),ve.ensureAlwaysArrayExists(I),ve.ensureKeyExists("declaration",I),ve.ensureKeyExists("instruction",I),ve.ensureKeyExists("attributes",I),ve.ensureKeyExists("text",I),ve.ensureKeyExists("comment",I),ve.ensureKeyExists("cdata",I),ve.ensureKeyExists("doctype",I),ve.ensureKeyExists("type",I),ve.ensureKeyExists("name",I),ve.ensureKeyExists("elements",I),ve.ensureKeyExists("parent",I),ve.checkFnExists("doctype",I),ve.checkFnExists("instruction",I),ve.checkFnExists("cdata",I),ve.checkFnExists("comment",I),ve.checkFnExists("text",I),ve.checkFnExists("instructionName",I),ve.checkFnExists("elementName",I),ve.checkFnExists("attributeName",I),ve.checkFnExists("attributeValue",I),ve.checkFnExists("attributes",I),I}r(QE,"validateOptions");function Jb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(Jb,"nativeType");function za(e,t){var n;if(I.compact){if(!de[I[e+"Key"]]&&(zo(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(de[I[e+"Key"]]=[]),de[I[e+"Key"]]&&!zo(de[I[e+"Key"]])&&(de[I[e+"Key"]]=[de[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,de)),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,de);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,de)]=i}}zo(de[I[e+"Key"]])?de[I[e+"Key"]].push(t):de[I[e+"Key"]]=t}else{de[I.elementsKey]||(de[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,de):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,de))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,de)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,de)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=de),de[I.elementsKey].push(o)}}r(za,"addField");function qb(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,de)),(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]=Jb(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,de)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],de)]=n}}return e}r(qb,"manipulateAttributes");function KE(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=qb(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;de[I.declarationKey]={},Object.keys(t).length&&(de[I.declarationKey][I.attributesKey]=t),I.addParent&&(de[I.declarationKey][I.parentKey]=de)}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,za("instruction",o)}}r(KE,"onInstruction");function Gb(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=qb(t),"elementNameFn"in I&&(e=I.elementNameFn(e,de)),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 de)&&(zo(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(de[e]=[]),de[e]&&!zo(de[e])&&(de[e]=[de[e]]),zo(de[e])?de[e].push(n):de[e]=n}else de[I.elementsKey]||(de[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]=[]),de[I.elementsKey].push(n);n[I.parentKey]=de,de=n}r(Gb,"onStartElement");function Wb(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=Jb(e)),I.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),za("text",e))}r(Wb,"onText");function Qb(e){I.ignoreComment||(I.trim&&(e=e.trim()),za("comment",e))}r(Qb,"onComment");function Kb(e){var t=de[I.parentKey];I.addParent||delete de[I.parentKey],de=t}r(Kb,"onEndElement");function XE(e){I.ignoreCdata||(I.trim&&(e=e.trim()),za("cdata",e))}r(XE,"onCdata");function JE(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),za("doctype",e))}r(JE,"onDoctype");function Xb(e){e.note=e}r(Xb,"onError");zb.exports=function(e,t){var n=cf?GE.parser(!0,{}):n=new WE.Parser("UTF-8"),i={};if(de=i,I=QE(t),cf?(n.opt={strictEntities:!0},n.onopentag=Gb,n.ontext=Wb,n.oncomment=Qb,n.onclosetag=Kb,n.onerror=Xb,n.oncdata=XE,n.ondoctype=JE,n.onprocessinginstruction=KE):(n.on("startElement",Gb),n.on("text",Wb),n.on("comment",Qb),n.on("endElement",Kb),n.on("error",Xb)),cf)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 eT=we((YR,Zb)=>{var Yb=Hs(),qE=lf();function zE(e){var t=Yb.copyOptions(e);return Yb.ensureSpacesExists(t),t}r(zE,"validateOptions");Zb.exports=function(e,t){var n,i,o,a;return n=zE(t),i=qE(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 ff=we((ej,lT)=>{var Ce=Hs(),YE=Bs().isArray,Ct,Et;function ZE(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(ZE,"validateOptions");function kn(e,t,n){return(!n&&e.spaces?`
|
|
28
28
|
`:"")+Array(t+1).join(e.spaces)}r(kn,"writeIndentation");function Gs(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,"""),a="attributeNameFn"in t?t.attributeNameFn(i,o,Et,Ct):i,c.push(t.spaces&&t.indentAttributes?kn(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(kn(t,n,!1)),c.join("")}r(Gs,"writeAttributes");function tT(e,t,n){return Ct=e,Et="xml",t.ignoreDeclaration?"":"<?xml"+Gs(e[t.attributesKey],t,n)+"?>"}r(tT,"writeDeclaration");function nT(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+Gs(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(nT,"writeInstruction");function iT(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Et,Ct):e)+"-->"}r(iT,"writeComment");function oT(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Et,Ct):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(oT,"writeCdata");function aT(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Et,Ct):e)+">"}r(aT,"writeDoctype");function pf(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Et,Ct):e)}r(pf,"writeText");function ex(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(ex,"hasContent");function tx(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(Gs(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(rT(e[t.elementsKey],t,n+1)),Ct=e,Et=e.name),i.push(t.spaces&&ex(e,t)?`
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(tx,"writeElement");function rT(e,t,n,i){return e.reduce(function(o,a){var s=kn(t,n,i&&!o);switch(a.type){case"element":return o+s+tx(a,t,n);case"comment":return o+s+iT(a[t.commentKey],t);case"doctype":return o+s+aT(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+oT(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+pf(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+nT(c,t,n)}},"")}r(rT,"writeElements");function sT(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(sT,"hasContentCompact");function nx(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(">"+pf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Gs(e[n.attributesKey],n,i));var c=sT(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?kn(n,i,!1):"")+"</"+a+">"),s.join("")}r(nx,"writeElementCompact");function cT(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=YE(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(tT(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?kn(t,n,i):"")+nT(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?kn(t,n,i):"")+pf(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?kn(t,n,i):"")+oT(s[o],t));break;case t.doctypeKey:c.push(kn(t,n,i)+aT(s[o],t));break;case t.commentKey:c.push(kn(t,n,i)+iT(s[o],t));break;default:c.push(kn(t,n,i)+nx(s[o],a,t,n,sT(s[o],t)))}i=i&&!c.length}return c.join("")}r(cT,"writeElementsCompact");lT.exports=function(e,t){t=ZE(t);var n=[];return Ct=e,Et="_root_",t.compact?n.push(cT(e,t,0,!0)):(e[t.declarationKey]&&n.push(tT(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(rT(e[t.elementsKey],t,0,!n.length))),n.join("")}});var fT=we((nj,pT)=>{var ix=ff();pT.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 ix(n,t)}});var Ya=we((ij,uT)=>{var ox=lf(),ax=eT(),rx=ff(),sx=fT();uT.exports={xml2js:ox,xml2json:ax,js2xml:rx,json2xml:sx}});var bT=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 cx(e,t,n){let i=[];switch(t){case"EntitySet":gT(e,i);break;case"EntityType":hT(e,i);break;case"NavigationProperty":mT(e,n,i);break;case"Property":yT(e,n,i);break;case"Singleton":break;default:break}return dT(e,n,i),i}r(cx,"convertV2Annotations");kt.convertV2Annotations=cx;function dT(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(dT,"convertGenericAnnotations");kt.convertGenericAnnotations=dT;function gT(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(gT,"convertEntitySetAnnotations");kt.convertEntitySetAnnotations=gT;function mT(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(mT,"convertNavigationPropertyAnnotations");kt.convertNavigationPropertyAnnotations=mT;function yT(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(yT,"convertPropertyAnnotations");kt.convertPropertyAnnotations=yT;function hT(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(hT,"convertEntityTypeAnnotations");kt.convertEntityTypeAnnotations=hT});var CT=we(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.parse=void 0;var lx=Ya(),me=sf(),Za=bT(),Ks=/^Collection\((.+)\)$/;function px(e){return e.Type!==null&&e.Type!==void 0}r(px,"isV4NavProperty");function fx(e){return e.map(t=>t._attributes.Name)}r(fx,"getEntityTypeKeys");function vT(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Yo(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}o.entityProperties.push(s),t.indexOf(s.name)!==-1&&o.entityKeys.push(s);let c=(0,Za.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return c.length>0&&i.push(to(s.fullyQualifiedName,c)),o},{entityProperties:[],entityKeys:[]})}r(vT,"parseProperties");function ux(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(ux,"parseReferentialConstraint");function dx(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,me.ensureArray)(i.Principal.PropertyRef),c=(0,me.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,me.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(dx,"parseV2ReferentialConstraint");function PT(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(px(s)){let c=s.Type.match(Ks),l=c!==null,p=_n(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:ux((0,me.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,Za.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(to(`${n}/${s.Name}`,f))}return o},[])}r(PT,"parseNavigationProperties");function gx(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,me.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(gx,"parseAssociationSets");function mx(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,me.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:dx((0,me.ensureArray)(n.ReferentialConstraint),o)}})}r(mx,"parseAssociations");function yx(e,t,n){return e.reduce((i,o)=>{let a=o.Key?fx((0,me.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=vT((0,me.ensureArray)(o.Property),a,s,t),p=PT((0,me.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},u=(0,Za.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(to(f.fullyQualifiedName,u)),i.push(f),i},[])}r(yx,"parseEntityTypes");function hx(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=vT((0,me.ensureArray)(o.Property),[],a,t),c=PT((0,me.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(hx,"parseComplexTypes");function bx(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(bx,"parseTypeDefinitions");function Tx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_n(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Za.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(to(c.fullyQualifiedName,l)),c})}r(Tx,"parseEntitySets");function Sx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:_n(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Za.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(to(c.fullyQualifiedName,l)),c})}r(Sx,"parseSingletons");function TT(e,t,n){return e.map(i=>{let o=(0,me.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>Yo(l._attributes.Type).type).join(","):s=a?Yo(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Yo(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{let{isCollection:p,type:f}=Yo(l._attributes.Type),u={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:f,isCollection:p};return l._attributes.MaxLength&&(u.maxLength=parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(u.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(u.scale=parseInt(l._attributes.Scale,10)),u.nullable=l._attributes.Nullable!=="false",u}),returnType:i.ReturnType?Yo(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Ks)!==null:!1}})}r(TT,"parseActions");function vx(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,me.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Ks)!==null:!1}})}r(vx,"parseV2FunctionImport");function ST(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:_n(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_n(o)}})}r(ST,"parseActionImports");function Px(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=Qs(s,p,n,!1):l&&(c.value=AT({[l]:a[l]},p,n)),i.Annotation){let f=Js((0,me.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(to(p,f))}}return c})}r(Px,"parsePropertyValues");function Xs(e,t,n){let i=Js((0,me.ensureArray)(e.Annotation),t,n),o={type:e._attributes?_n(e._attributes.Type):void 0,propertyValues:Px((0,me.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Xs,"parseRecord");function si(e,t){return e[t]!=null}r(si,"isExpressionOfType");function Ws(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(Ws,"parseModelPath");function df(e,t,n){if(si(e,"Record")){let i=(0,me.ensureArray)(e.Record).map((o,a)=>Xs(o,t+"/"+a,n));return i.type="Record",i}else if(si(e,"PropertyPath")){let i=(0,me.ensureArray)(e.PropertyPath).map(o=>Ws(o,"PropertyPath"));return i.type="PropertyPath",i}else if(si(e,"NavigationPropertyPath")){let i=(0,me.ensureArray)(e.NavigationPropertyPath).map(o=>Ws(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(si(e,"String")){let i=(0,me.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(si(e,"AnnotationPath")){let i=(0,me.ensureArray)(e.AnnotationPath).map(o=>Ws(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(si(e,"Path")){let i=(0,me.ensureArray)(e.Path).map(o=>Ws(o,"Path"));return i.type="Path",i}else if(si(e,"If")){let i=(0,me.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(df,"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=>Qs({[i]:o},"",[],!0))):n.push(Qs({[i]:e[i]},"",[],!0))}),n}r(tt,"parseChildren");function AT(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:df(e.Collection,t,n)};case"Record":return{type:"Record",Record:Xs(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(AT,"parseInlineExpression");function Qs(e,t,n,i){let o=Object.keys(e);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:df(e.Collection,t,n)};case"Record":return{type:"Record",Record:Xs(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(Qs,"parseExpression");function Ax(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:_n(i),qualifier:o},c=`${t}@${_n(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=AT(a,c,n)),e.Annotation){let p=Js((0,me.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return si(e,"Record")?s.record=Xs(e.Record,c,n):si(e,"Collection")?s.collection=df(e.Collection,c,n):l.length===1?s.value=Qs({[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(Ax,"parseAnnotation");function Js(e,t,n){return e.map(i=>Ax(i,t,n))}r(Js,"parseAnnotations");function to(e,t){return{target:e,annotations:t}}r(to,"createAnnotationList");function Cx(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(to(_n(n._attributes.Target),Js((0,me.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(Cx,"parseAnnotationLists");function Ex(e,t,n){let i=e._attributes.Namespace,o=[],a=yx((0,me.ensureArray)(e.EntityType),o,i),s=hx((0,me.ensureArray)(e.ComplexType),o,i),c=bx((0,me.ensureArray)(e.TypeDefinition),i),l=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],b=[];if(e.EntityContainer)if(l=Tx((0,me.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=Sx((0,me.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=gx((0,me.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(vx((0,me.ensureArray)(e.EntityContainer.FunctionImport),l,u.fullyQualifiedName));else if(t==="4.0")b=b.concat(ST((0,me.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),b=b.concat(ST((0,me.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(m=m.concat(TT((0,me.ensureArray)(e.Action),i,!1)),m=m.concat(TT((0,me.ensureArray)(e.Function),i,!0)));let T=mx((0,me.ensureArray)(e.Association),i);Cx((0,me.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:b,entityTypes:a}}r(Ex,"parseSchema");function xx(e){return e.reduce((t,n)=>((0,me.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(xx,"parseReferences");var uf={};function Yo(e){let t=e.match(Ks),n=t?t[1]:e,i=_n(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Yo,"unaliasType");function _n(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=uf[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(_n,"unalias");function Ix(e){let t=e.reduce((b,T)=>b.concat(T.associations),[]),n=e.reduce((b,T)=>b.concat(T.associationSets),[]),i=e.reduce((b,T)=>b.concat(T.entitySets),[]),o=e.reduce((b,T)=>b.concat(T.singletons),[]),a=e.reduce((b,T)=>b.concat(T.entityTypes),[]),s=e.reduce((b,T)=>b.concat(T.actions),[]),c=e.reduce((b,T)=>b.concat(T.actionImports),[]),l=e.reduce((b,T)=>b.concat(T.complexTypes),[]),p=e.reduce((b,T)=>b.concat(T.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,b.annotations)});let u,m;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(u=b.entityContainer,m=b.namespace)}),i.forEach(b=>{let T=a.find(F=>F.fullyQualifiedName===b.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!==b.fullyQualifiedName);ne&&(b.navigationPropertyBinding[F.name]=ne.entitySet)}})}),a.forEach(b=>{b.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===b.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(Ix,"mergeSchemas");function Ox(e,t){uf=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{uf[n._attributes.Alias]=n._attributes.Namespace})}r(Ox,"createAliasMap");function Fx(e,t="serviceFile"){let n=(0,lx.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,me.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=xx((0,me.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Ox(a,o);let s=o.map(l=>Ex(l,i,t));return new me.RawMetadataInstance(t,i,Ix(s),a)}r(Fx,"parse");qs.parse=Fx});var ET=we(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.parse=Zo.merge=void 0;var Vx=kb();Object.defineProperty(Zo,"merge",{enumerable:!0,get:r(function(){return Vx.merge},"get")});var Lx=CT();Object.defineProperty(Zo,"parse",{enumerable:!0,get:r(function(){return Lx.parse},"get")})});var _T=we(()=>{var kT;(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 Cp(Object.create(null))}:l?function(){return Cp({__proto__:null})}:function(){return Cp({})},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:aA(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:rA(),T=typeof WeakMap=="function"?WeakMap:sA(),F=o?Symbol.for("@reflect-metadata:registry"):void 0,L=nA(),Y=iA(L);function ne(C,x,N,U){if(oe(N)){if(!et(C))throw new TypeError;if(!Tt(x))throw new TypeError;return ni(C,x)}else{if(!et(C))throw new TypeError;if(!Ge(x))throw new TypeError;if(!Ge(U)&&!oe(U)&&!Dt(U))throw new TypeError;return Dt(U)&&(U=void 0),N=Se(N),Nt(C,x,N,U)}}r(ne,"decorate"),t("decorate",ne);function q(C,x){function N(U,ae){if(!Ge(U))throw new TypeError;if(!oe(ae)&&!Pt(ae))throw new TypeError;rn(C,x,U,ae)}return r(N,"decorator"),N}r(q,"metadata"),t("metadata",q);function fe(C,x,N,U){if(!Ge(N))throw new TypeError;return oe(U)||(U=Se(U)),rn(C,x,N,U)}r(fe,"defineMetadata"),t("defineMetadata",fe);function ie(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(N)),st(C,x,N)}r(ie,"hasMetadata"),t("hasMetadata",ie);function pe(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(N)),ii(C,x,N)}r(pe,"hasOwnMetadata"),t("hasOwnMetadata",pe);function Ve(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(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=Se(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=Se(x)),Sn(C,x)}r(ke,"getMetadataKeys"),t("getMetadataKeys",ke);function Xe(C,x){if(!Ge(C))throw new TypeError;return oe(x)||(x=Se(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=Se(N)),!Ge(x))throw new TypeError;oe(N)||(N=Se(N));var U=Ha(x,N,!1);return oe(U)?!1:U.OrdinaryDeleteMetadata(C,x,N)}r(ze,"deleteMetadata"),t("deleteMetadata",ze);function ni(C,x){for(var N=C.length-1;N>=0;--N){var U=C[N],ae=U(x);if(!oe(ae)&&!Dt(ae)){if(!Tt(ae))throw new TypeError;x=ae}}return x}r(ni,"DecorateConstructor");function Nt(C,x,N,U){for(var ae=C.length-1;ae>=0;--ae){var ot=C[ae],dt=ot(x,N,U);if(!oe(dt)&&!Dt(dt)){if(!Ge(dt))throw new TypeError;U=dt}}return U}r(Nt,"DecorateProperty");function st(C,x,N){var U=ii(C,x,N);if(U)return!0;var ae=Wo(x);return Dt(ae)?!1:st(C,ae,N)}r(st,"OrdinaryHasMetadata");function ii(C,x,N){var U=Ha(x,N,!1);return oe(U)?!1:D(U.OrdinaryHasOwnMetadata(C,x,N))}r(ii,"OrdinaryHasOwnMetadata");function be(C,x,N){var U=ii(C,x,N);if(U)return Ut(C,x,N);var ae=Wo(x);if(!Dt(ae))return be(C,ae,N)}r(be,"OrdinaryGetMetadata");function Ut(C,x,N){var U=Ha(x,N,!1);if(!oe(U))return U.OrdinaryGetOwnMetadata(C,x,N)}r(Ut,"OrdinaryGetOwnMetadata");function rn(C,x,N,U){var ae=Ha(N,U,!0);ae.OrdinaryDefineOwnMetadata(C,x,N,U)}r(rn,"OrdinaryDefineOwnMetadata");function Sn(C,x){var N=zt(C,x),U=Wo(C);if(U===null)return N;var ae=Sn(U,x);if(ae.length<=0)return N;if(N.length<=0)return ae;for(var ot=new b,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(Sn,"OrdinaryMetadataKeys");function zt(C,x){var N=Ha(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 Zi(C){return typeof C=="symbol"}r(Zi,"IsSymbol");function Ge(C){return typeof C=="object"?C!==null:typeof C=="function"}r(Ge,"IsObject");function h(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",U=lt(C,a);if(U!==void 0){var ae=U.call(C,N);if(Ge(ae))throw new TypeError;return ae}return y(C,N==="default"?"number":N)}r(h,"ToPrimitive");function y(C,x){if(x==="string"){var N=C.toString;if(We(N)){var U=N.call(C);if(!Ge(U))return U}var ae=C.valueOf;if(We(ae)){var U=ae.call(C);if(!Ge(U))return U}}else{var ae=C.valueOf;if(We(ae)){var U=ae.call(C);if(!Ge(U))return U}var ot=C.toString;if(We(ot)){var U=ot.call(C);if(!Ge(U))return U}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function Se(C){var x=h(C,3);return Zi(x)?x:A(x)}r(Se,"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 Mn(C,x){return C===x||C!==C&&x!==x}r(Mn,"SameValueZero");function lt(C,x){var N=C[x];if(N!=null){if(!We(N))throw new TypeError;return N}}r(lt,"GetMethod");function sn(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(sn,"GetIterator");function Cs(C){return C.value}r(Cs,"IteratorValue");function Ba(C){var x=C.next();return x.done?!1:x}r(Ba,"IteratorStep");function Go(C){var x=C.return;x&&x.call(C)}r(Go,"IteratorClose");function Wo(C){var x=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||x!==u)return x;var N=C.prototype,U=N&&Object.getPrototypeOf(N);if(U==null||U===Object.prototype)return x;var ae=U.constructor;return typeof ae!="function"||ae===C?x:ae}r(Wo,"OrdinaryGetPrototypeOf");function tA(){var C;!oe(F)&&typeof n.Reflect<"u"&&!(F in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=oA(n.Reflect));var x,N,U,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:U===void 0&&(U=new b),U.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(U))for(var Je=sn(U);;){var at=Ba(Je);if(!at)return;var vn=Cs(at);if(vn.isProviderFor(ee,xe))return Go(Je),vn}}}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(U)&&U.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 vn=ae.get(ee);oe(vn)&&(vn=new m,ae.set(ee,vn)),vn.set(xe,Je)}return!0}}r(tA,"CreateMetadataRegistry");function nA(){var C;return!oe(F)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[F]),oe(C)&&(C=tA()),!oe(F)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,F,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(nA,"GetOrCreateMetadataRegistry");function iA(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 U(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(U,"GetOrCreateMetadataMap");function ae(X,z,ee){var xe=U(z,ee,!1);return oe(xe)?!1:D(xe.has(X))}r(ae,"OrdinaryHasOwnMetadata");function ot(X,z,ee){var xe=U(z,ee,!1);if(!oe(xe))return xe.get(X)}r(ot,"OrdinaryGetOwnMetadata");function dt(X,z,ee,xe){var Je=U(ee,xe,!0);Je.set(X,z)}r(dt,"OrdinaryDefineOwnMetadata");function Ae(X,z){var ee=[],xe=U(X,z,!1);if(oe(xe))return ee;for(var Je=xe.keys(),at=sn(Je),vn=0;;){var Sm=Ba(at);if(!Sm)return ee.length=vn,ee;var cA=Cs(Sm);try{ee[vn]=cA}catch(lA){try{Go(at)}finally{throw lA}}vn++}}r(Ae,"OrdinaryOwnMetadataKeys");function H(X,z,ee){var xe=U(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(iA,"CreateMetadataProvider");function oA(C){var x=C.defineMetadata,N=C.hasOwnMetadata,U=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 b,dt.set(H,z)),z.add(X),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:U,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:ot};return Ae}r(oA,"CreateFallbackProvider");function Ha(C,x,N){var U=L.getProvider(C,x);if(!oe(U))return U;if(N){if(L.setProvider(C,x,Y))return Y;throw new Error("Illegal state.")}}r(Ha,"GetMetadataProvider");function aA(){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})(),U=(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--,Mn(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(!Mn(this._cacheKey,H)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(Mn(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 U;function ae(Ae,H){return Ae}function ot(Ae,H){return H}function dt(Ae,H){return[Ae,H]}}r(aA,"CreateMapPolyfill");function rA(){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(rA,"CreateSetPolyfill");function sA(){var C=16,x=f.create(),N=U();return(function(){function H(){this._key=U()}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=U()},H})();function U(){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(sA,"CreateWeakMapPolyfill");function Cp(C){return C.__=void 0,delete C.__,C}r(Cp,"MakeDictionary")})})(kT||(kT={}))});var KT=we((Ej,QT)=>{var tI=0,WT="changeUtils: ";function nI(){return"id-"+new Date().valueOf()+"-"+tI++}r(nI,"uid");function iI(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(iI,"appendComponentToReference");function oI(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return iI(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(oI,"getFlexReference");function aI(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(aI,"getAppVersion");function rI(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(rI,"getProjectId");function GT(e){return JSON.stringify({fileName:e.id||nI().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:WT+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(GT,"createString");QT.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(WT,""),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=oI(t),e.appVersion=aI(t),e.projectId=rI(t,e.reference),GT(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 GT(e)},"toString")}});var JT=we((Ij,XT)=>{XT.exports={change:KT()}});var _S=we(fn=>{"use strict";var DI=/[|\\{}()[\]^$+*?.]/g,RI=Object.prototype.hasOwnProperty,zf=r(function(e,t){return RI.apply(e,[t])},"hasOwn");fn.escapeRegExpChars=function(e){return e?String(e).replace(DI,"\\$&"):""};var jI={"&":"&","<":"<",">":">",'"':""","'":"'"},wI=/[&<>'"]/g;function $I(e){return jI[e]||e}r($I,"encode_char");var MI=`var _ENCODE_HTML_RULES = {
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(tx,"writeElement");function rT(e,t,n,i){return e.reduce(function(o,a){var s=kn(t,n,i&&!o);switch(a.type){case"element":return o+s+tx(a,t,n);case"comment":return o+s+iT(a[t.commentKey],t);case"doctype":return o+s+aT(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+oT(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+pf(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+nT(c,t,n)}},"")}r(rT,"writeElements");function sT(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(sT,"hasContentCompact");function nx(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(">"+pf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Gs(e[n.attributesKey],n,i));var c=sT(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?kn(n,i,!1):"")+"</"+a+">"),s.join("")}r(nx,"writeElementCompact");function cT(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=YE(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(tT(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?kn(t,n,i):"")+nT(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?kn(t,n,i):"")+pf(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?kn(t,n,i):"")+oT(s[o],t));break;case t.doctypeKey:c.push(kn(t,n,i)+aT(s[o],t));break;case t.commentKey:c.push(kn(t,n,i)+iT(s[o],t));break;default:c.push(kn(t,n,i)+nx(s[o],a,t,n,sT(s[o],t)))}i=i&&!c.length}return c.join("")}r(cT,"writeElementsCompact");lT.exports=function(e,t){t=ZE(t);var n=[];return Ct=e,Et="_root_",t.compact?n.push(cT(e,t,0,!0)):(e[t.declarationKey]&&n.push(tT(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(rT(e[t.elementsKey],t,0,!n.length))),n.join("")}});var fT=we((nj,pT)=>{var ix=ff();pT.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 ix(n,t)}});var Ya=we((ij,uT)=>{var ox=lf(),ax=eT(),rx=ff(),sx=fT();uT.exports={xml2js:ox,xml2json:ax,js2xml:rx,json2xml:sx}});var bT=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 cx(e,t,n){let i=[];switch(t){case"EntitySet":gT(e,i);break;case"EntityType":hT(e,i);break;case"NavigationProperty":mT(e,n,i);break;case"Property":yT(e,n,i);break;case"Singleton":break;default:break}return dT(e,n,i),i}r(cx,"convertV2Annotations");kt.convertV2Annotations=cx;function dT(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(dT,"convertGenericAnnotations");kt.convertGenericAnnotations=dT;function gT(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(gT,"convertEntitySetAnnotations");kt.convertEntitySetAnnotations=gT;function mT(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(mT,"convertNavigationPropertyAnnotations");kt.convertNavigationPropertyAnnotations=mT;function yT(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(yT,"convertPropertyAnnotations");kt.convertPropertyAnnotations=yT;function hT(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(hT,"convertEntityTypeAnnotations");kt.convertEntityTypeAnnotations=hT});var CT=we(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.parse=void 0;var lx=Ya(),me=sf(),Za=bT(),Ks=/^Collection\((.+)\)$/;function px(e){return e.Type!==null&&e.Type!==void 0}r(px,"isV4NavProperty");function fx(e){return e.map(t=>t._attributes.Name)}r(fx,"getEntityTypeKeys");function vT(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:Yo(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,Za.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return u.length>0&&i.push(to(f.fullyQualifiedName,u)),o},{entityProperties:[],entityKeys:[]})}r(vT,"parseProperties");function ux(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(ux,"parseReferentialConstraint");function dx(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,me.ensureArray)(i.Principal.PropertyRef),c=(0,me.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,me.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(dx,"parseV2ReferentialConstraint");function PT(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(px(s)){let c=s.Type.match(Ks),l=c!==null,p=_n(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:ux((0,me.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,Za.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(to(`${n}/${s.Name}`,f))}return o},[])}r(PT,"parseNavigationProperties");function gx(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,me.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(gx,"parseAssociationSets");function mx(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,me.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:dx((0,me.ensureArray)(n.ReferentialConstraint),o)}})}r(mx,"parseAssociations");function yx(e,t,n){return e.reduce((i,o)=>{let a=o.Key?fx((0,me.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=vT((0,me.ensureArray)(o.Property),a,s,t),p=PT((0,me.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},u=(0,Za.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(to(f.fullyQualifiedName,u)),i.push(f),i},[])}r(yx,"parseEntityTypes");function hx(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=vT((0,me.ensureArray)(o.Property),[],a,t),c=PT((0,me.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(hx,"parseComplexTypes");function bx(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(bx,"parseTypeDefinitions");function Tx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_n(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Za.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(to(c.fullyQualifiedName,l)),c})}r(Tx,"parseEntitySets");function Sx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:_n(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Za.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(to(c.fullyQualifiedName,l)),c})}r(Sx,"parseSingletons");function TT(e,t,n){return e.map(i=>{let o=(0,me.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>Yo(l._attributes.Type).type).join(","):s=a?Yo(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Yo(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{var p,f,u,m;let{isCollection:h,type:T}=Yo(l._attributes.Type),O={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:T,isCollection:h};return l._attributes.MaxLength&&(O.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&&(O.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"?O.scale="variable":O.scale=parseInt(l._attributes.Scale,10)),O.nullable=l._attributes.Nullable!=="false",O}),returnType:i.ReturnType?Yo(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Ks)!==null:!1}})}r(TT,"parseActions");function vx(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,me.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Ks)!==null:!1}})}r(vx,"parseV2FunctionImport");function ST(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:_n(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_n(o)}})}r(ST,"parseActionImports");function Px(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=Qs(s,p,n,!1):l&&(c.value=AT({[l]:a[l]},p,n)),i.Annotation){let f=Js((0,me.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(to(p,f))}}return c})}r(Px,"parsePropertyValues");function Xs(e,t,n){let i=Js((0,me.ensureArray)(e.Annotation),t,n),o={type:e._attributes?_n(e._attributes.Type):void 0,propertyValues:Px((0,me.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Xs,"parseRecord");function si(e,t){return e[t]!=null}r(si,"isExpressionOfType");function Ws(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(Ws,"parseModelPath");function df(e,t,n){if(si(e,"Record")){let i=(0,me.ensureArray)(e.Record).map((o,a)=>Xs(o,t+"/"+a,n));return i.type="Record",i}else if(si(e,"PropertyPath")){let i=(0,me.ensureArray)(e.PropertyPath).map(o=>Ws(o,"PropertyPath"));return i.type="PropertyPath",i}else if(si(e,"NavigationPropertyPath")){let i=(0,me.ensureArray)(e.NavigationPropertyPath).map(o=>Ws(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(si(e,"String")){let i=(0,me.ensureArray)(e.String).map(o=>({type:"String",String:o._text}));return i.type="String",i}else if(si(e,"AnnotationPath")){let i=(0,me.ensureArray)(e.AnnotationPath).map(o=>Ws(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(si(e,"Path")){let i=(0,me.ensureArray)(e.Path).map(o=>Ws(o,"Path"));return i.type="Path",i}else if(si(e,"If")){let i=(0,me.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(df,"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=>Qs({[i]:o},"",[],!0))):n.push(Qs({[i]:e[i]},"",[],!0))}),n}r(tt,"parseChildren");function AT(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:df(e.Collection,t,n)};case"Record":return{type:"Record",Record:Xs(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(AT,"parseInlineExpression");function Qs(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:df(e.Collection,t,n)};case"Record":return{type:"Record",Record:Xs(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(Qs,"parseExpression");function Ax(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:_n(i),qualifier:o},c=`${t}@${_n(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=AT(a,c,n)),e.Annotation){let p=Js((0,me.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return si(e,"Record")?s.record=Xs(e.Record,c,n):si(e,"Collection")?s.collection=df(e.Collection,c,n):l.length===1?s.value=Qs({[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(Ax,"parseAnnotation");function Js(e,t,n){return e.map(i=>Ax(i,t,n))}r(Js,"parseAnnotations");function to(e,t){return{target:e,annotations:t}}r(to,"createAnnotationList");function Cx(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(to(_n(n._attributes.Target),Js((0,me.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(Cx,"parseAnnotationLists");function Ex(e,t,n){let i=e._attributes.Namespace,o=[],a=yx((0,me.ensureArray)(e.EntityType),o,i),s=hx((0,me.ensureArray)(e.ComplexType),o,i),c=bx((0,me.ensureArray)(e.TypeDefinition),i),l=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],h=[];if(e.EntityContainer)if(l=Tx((0,me.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=Sx((0,me.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=gx((0,me.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(vx((0,me.ensureArray)(e.EntityContainer.FunctionImport),l,u.fullyQualifiedName));else if(t.startsWith("4."))h=h.concat(ST((0,me.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),h=h.concat(ST((0,me.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(m=m.concat(TT((0,me.ensureArray)(e.Action),i,!1)),m=m.concat(TT((0,me.ensureArray)(e.Function),i,!0)));let T=mx((0,me.ensureArray)(e.Association),i);Cx((0,me.ensureArray)(e.Annotations),o);let O={};return O[n]=o,{associations:T,associationSets:f,annotations:O,entityContainer:u,namespace:i,entitySets:l,singletons:p,complexTypes:s,typeDefinitions:c,actions:m,actionImports:h,entityTypes:a}}r(Ex,"parseSchema");function xx(e){return e.reduce((t,n)=>((0,me.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(xx,"parseReferences");var uf={};function Yo(e){let t=e.match(Ks),n=t?t[1]:e,i=_n(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Yo,"unaliasType");function _n(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=uf[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(_n,"unalias");function Ix(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(O=>O.fullyQualifiedName===h.entityTypeName);T==null||T.navigationProperties.forEach(O=>{let V=O,Y=n.find(ne=>ne.association===V.relationship);if(Y){let ne=Y.associationEnd.find(q=>q.entitySet!==h.fullyQualifiedName);ne&&(h.navigationPropertyBinding[O.name]=ne.entitySet)}})}),a.forEach(h=>{h.navigationProperties.forEach(T=>{let O=T,V=t.find(Y=>Y.fullyQualifiedName===O.relationship);V&&V.referentialConstraints&&V.referentialConstraints.length>0&&(V.referentialConstraints[0].sourceTypeName===h.fullyQualifiedName?O.referentialConstraint=V.referentialConstraints:O.referentialConstraint=V.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(Ix,"mergeSchemas");function Ox(e,t){uf=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{uf[n._attributes.Alias]=n._attributes.Namespace})}r(Ox,"createAliasMap");function Fx(e,t="serviceFile"){let n=(0,lx.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,me.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=xx((0,me.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Ox(a,o);let s=o.map(l=>Ex(l,i,t));return new me.RawMetadataInstance(t,i,Ix(s),a)}r(Fx,"parse");qs.parse=Fx});var ET=we(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.parse=Zo.merge=void 0;var Lx=kb();Object.defineProperty(Zo,"merge",{enumerable:!0,get:r(function(){return Lx.merge},"get")});var Vx=CT();Object.defineProperty(Zo,"parse",{enumerable:!0,get:r(function(){return Vx.parse},"get")})});var _T=we(()=>{var kT;(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 Cp(Object.create(null))}:l?function(){return Cp({__proto__:null})}:function(){return Cp({})},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:aA(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:rA(),T=typeof WeakMap=="function"?WeakMap:sA(),O=o?Symbol.for("@reflect-metadata:registry"):void 0,V=nA(),Y=iA(V);function ne(C,x,N,U){if(oe(N)){if(!et(C))throw new TypeError;if(!Tt(x))throw new TypeError;return ni(C,x)}else{if(!et(C))throw new TypeError;if(!Ge(x))throw new TypeError;if(!Ge(U)&&!oe(U)&&!Dt(U))throw new TypeError;return Dt(U)&&(U=void 0),N=Se(N),Nt(C,x,N,U)}}r(ne,"decorate"),t("decorate",ne);function q(C,x){function N(U,ae){if(!Ge(U))throw new TypeError;if(!oe(ae)&&!Pt(ae))throw new TypeError;rn(C,x,U,ae)}return r(N,"decorator"),N}r(q,"metadata"),t("metadata",q);function fe(C,x,N,U){if(!Ge(N))throw new TypeError;return oe(U)||(U=Se(U)),rn(C,x,N,U)}r(fe,"defineMetadata"),t("defineMetadata",fe);function ie(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(N)),st(C,x,N)}r(ie,"hasMetadata"),t("hasMetadata",ie);function pe(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(N)),ii(C,x,N)}r(pe,"hasOwnMetadata"),t("hasOwnMetadata",pe);function Le(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(N)),be(C,x,N)}r(Le,"getMetadata"),t("getMetadata",Le);function P(C,x,N){if(!Ge(x))throw new TypeError;return oe(N)||(N=Se(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=Se(x)),Sn(C,x)}r(ke,"getMetadataKeys"),t("getMetadataKeys",ke);function Xe(C,x){if(!Ge(C))throw new TypeError;return oe(x)||(x=Se(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=Se(N)),!Ge(x))throw new TypeError;oe(N)||(N=Se(N));var U=Ha(x,N,!1);return oe(U)?!1:U.OrdinaryDeleteMetadata(C,x,N)}r(ze,"deleteMetadata"),t("deleteMetadata",ze);function ni(C,x){for(var N=C.length-1;N>=0;--N){var U=C[N],ae=U(x);if(!oe(ae)&&!Dt(ae)){if(!Tt(ae))throw new TypeError;x=ae}}return x}r(ni,"DecorateConstructor");function Nt(C,x,N,U){for(var ae=C.length-1;ae>=0;--ae){var ot=C[ae],dt=ot(x,N,U);if(!oe(dt)&&!Dt(dt)){if(!Ge(dt))throw new TypeError;U=dt}}return U}r(Nt,"DecorateProperty");function st(C,x,N){var U=ii(C,x,N);if(U)return!0;var ae=Wo(x);return Dt(ae)?!1:st(C,ae,N)}r(st,"OrdinaryHasMetadata");function ii(C,x,N){var U=Ha(x,N,!1);return oe(U)?!1:D(U.OrdinaryHasOwnMetadata(C,x,N))}r(ii,"OrdinaryHasOwnMetadata");function be(C,x,N){var U=ii(C,x,N);if(U)return Ut(C,x,N);var ae=Wo(x);if(!Dt(ae))return be(C,ae,N)}r(be,"OrdinaryGetMetadata");function Ut(C,x,N){var U=Ha(x,N,!1);if(!oe(U))return U.OrdinaryGetOwnMetadata(C,x,N)}r(Ut,"OrdinaryGetOwnMetadata");function rn(C,x,N,U){var ae=Ha(N,U,!0);ae.OrdinaryDefineOwnMetadata(C,x,N,U)}r(rn,"OrdinaryDefineOwnMetadata");function Sn(C,x){var N=zt(C,x),U=Wo(C);if(U===null)return N;var ae=Sn(U,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(Sn,"OrdinaryMetadataKeys");function zt(C,x){var N=Ha(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 Zi(C){return typeof C=="symbol"}r(Zi,"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",U=lt(C,a);if(U!==void 0){var ae=U.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 U=N.call(C);if(!Ge(U))return U}var ae=C.valueOf;if(We(ae)){var U=ae.call(C);if(!Ge(U))return U}}else{var ae=C.valueOf;if(We(ae)){var U=ae.call(C);if(!Ge(U))return U}var ot=C.toString;if(We(ot)){var U=ot.call(C);if(!Ge(U))return U}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function Se(C){var x=b(C,3);return Zi(x)?x:A(x)}r(Se,"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 Mn(C,x){return C===x||C!==C&&x!==x}r(Mn,"SameValueZero");function lt(C,x){var N=C[x];if(N!=null){if(!We(N))throw new TypeError;return N}}r(lt,"GetMethod");function sn(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(sn,"GetIterator");function Cs(C){return C.value}r(Cs,"IteratorValue");function Ba(C){var x=C.next();return x.done?!1:x}r(Ba,"IteratorStep");function Go(C){var x=C.return;x&&x.call(C)}r(Go,"IteratorClose");function Wo(C){var x=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||x!==u)return x;var N=C.prototype,U=N&&Object.getPrototypeOf(N);if(U==null||U===Object.prototype)return x;var ae=U.constructor;return typeof ae!="function"||ae===C?x:ae}r(Wo,"OrdinaryGetPrototypeOf");function tA(){var C;!oe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=oA(n.Reflect));var x,N,U,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:U===void 0&&(U=new h),U.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(U))for(var Je=sn(U);;){var at=Ba(Je);if(!at)return;var vn=Cs(at);if(vn.isProviderFor(ee,xe))return Go(Je),vn}}}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(U)&&U.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 vn=ae.get(ee);oe(vn)&&(vn=new m,ae.set(ee,vn)),vn.set(xe,Je)}return!0}}r(tA,"CreateMetadataRegistry");function nA(){var C;return!oe(O)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[O]),oe(C)&&(C=tA()),!oe(O)&&Ge(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(nA,"GetOrCreateMetadataRegistry");function iA(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 V.registerProvider(N),N;function U(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(U,"GetOrCreateMetadataMap");function ae(X,z,ee){var xe=U(z,ee,!1);return oe(xe)?!1:D(xe.has(X))}r(ae,"OrdinaryHasOwnMetadata");function ot(X,z,ee){var xe=U(z,ee,!1);if(!oe(xe))return xe.get(X)}r(ot,"OrdinaryGetOwnMetadata");function dt(X,z,ee,xe){var Je=U(ee,xe,!0);Je.set(X,z)}r(dt,"OrdinaryDefineOwnMetadata");function Ae(X,z){var ee=[],xe=U(X,z,!1);if(oe(xe))return ee;for(var Je=xe.keys(),at=sn(Je),vn=0;;){var Sm=Ba(at);if(!Sm)return ee.length=vn,ee;var cA=Cs(Sm);try{ee[vn]=cA}catch(lA){try{Go(at)}finally{throw lA}}vn++}}r(Ae,"OrdinaryOwnMetadataKeys");function H(X,z,ee){var xe=U(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(iA,"CreateMetadataProvider");function oA(C){var x=C.defineMetadata,N=C.hasOwnMetadata,U=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:U,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:ot};return Ae}r(oA,"CreateFallbackProvider");function Ha(C,x,N){var U=V.getProvider(C,x);if(!oe(U))return U;if(N){if(V.setProvider(C,x,Y))return Y;throw new Error("Illegal state.")}}r(Ha,"GetMetadataProvider");function aA(){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})(),U=(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--,Mn(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(!Mn(this._cacheKey,H)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(Mn(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 U;function ae(Ae,H){return Ae}function ot(Ae,H){return H}function dt(Ae,H){return[Ae,H]}}r(aA,"CreateMapPolyfill");function rA(){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(rA,"CreateSetPolyfill");function sA(){var C=16,x=f.create(),N=U();return(function(){function H(){this._key=U()}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=U()},H})();function U(){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(sA,"CreateWeakMapPolyfill");function Cp(C){return C.__=void 0,delete C.__,C}r(Cp,"MakeDictionary")})})(kT||(kT={}))});var KT=we((Ej,QT)=>{var tI=0,WT="changeUtils: ";function nI(){return"id-"+new Date().valueOf()+"-"+tI++}r(nI,"uid");function iI(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(iI,"appendComponentToReference");function oI(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return iI(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(oI,"getFlexReference");function aI(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(aI,"getAppVersion");function rI(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(rI,"getProjectId");function GT(e){return JSON.stringify({fileName:e.id||nI().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:WT+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(GT,"createString");QT.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(WT,""),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=oI(t),e.appVersion=aI(t),e.projectId=rI(t,e.reference),GT(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 GT(e)},"toString")}});var JT=we((Ij,XT)=>{XT.exports={change:KT()}});var _S=we(fn=>{"use strict";var DI=/[|\\{}()[\]^$+*?.]/g,RI=Object.prototype.hasOwnProperty,zf=r(function(e,t){return RI.apply(e,[t])},"hasOwn");fn.escapeRegExpChars=function(e){return e?String(e).replace(DI,"\\$&"):""};var jI={"&":"&","<":"<",">":">",'"':""","'":"'"},wI=/[&<>'"]/g;function $I(e){return jI[e]||e}r($I,"encode_char");var MI=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -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(
|
|
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(O){var V=r(function(Y,ne){var q=rt.shallowCopy(rt.createNullProtoObjWherePossible(),O);return ne&&(q=rt.shallowCopy(q,ne)),JI(Y,n)(q)},"include");return t.apply(n.context,[O||rt.createNullProtoObjWherePossible(),a,V,KS])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,h=mr.basename(m,mr.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("+XS(e)+`))
|
|
80
80
|
`;break;case mt.modes.RAW:this.source+=" ; __append("+XS(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=kI;Ne.name=GI;typeof window<"u"&&(window.ejs=Ne)});var nn={};Ko(nn,{deleteConfigEntityByPath:()=>KD,exportConfig:()=>WD,exportConfigEntityByPath:()=>QD,generateSchema:()=>GD,getApiVersion:()=>zD,getChanges:()=>eA,getGenericSchema:()=>Pp,getPathToGenericSchema:()=>xP,getProject:()=>iR,importConfig:()=>XD,importProject:()=>JD,importProjectSchema:()=>qD,isDirectory:()=>ZD,log:()=>k,readDirectory:()=>Tm});module.exports=gA(nn);var Z=w(B());var V=w(B());var ue=r(e=>typeof e=="string","isString"),Ga=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Yh=r(e=>e==null?"":""+e,"makeString"),UC=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),kC=/###/g,Zh=r(e=>e&&e.indexOf("###")>-1?e.replace(kC,"."):e,"cleanKey"),eb=r(e=>!e||ue(e),"canNotTraverseDeeper"),Wa=r((e,t,n)=>{let i=ue(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(eb(e))return{};let a=Zh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return eb(e)?{}:{obj:e,k:Zh(i[o])}},"getLastOfPath"),tb=r((e,t,n)=>{let{obj:i,k:o}=Wa(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=Wa(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=Wa(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"),_C=r((e,t,n,i)=>{let{obj:o,k:a}=Wa(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),Is=r((e,t)=>{let{obj:n,k:i}=Wa(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),BC=r((e,t,n)=>{let i=Is(e,n);return i!==void 0?i:Is(t,n)},"getPathWithDefaults"),pb=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ue(e[i])||e[i]instanceof String||ue(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):pb(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Xo=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),HC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},GC=r(e=>ue(e)?e.replace(/[&<>"'\/]/g,t=>HC[t]):e,"escape"),kp=class kp{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(kp,"RegExpCache");var Np=kp,WC=[" ",",","?","!",";"],QC=new Np(20),KC=r((e,t,n)=>{t=t||"",n=n||"";let i=WC.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=QC.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"),Dp=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"),Xa=r(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),XC={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)}},Qa=class Qa{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||XC,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:(ue(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Qa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Qa(this.logger,t)}};r(Qa,"Logger");var Rp=Qa,Un=new Rp,_p=class _p{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(_p,"EventEmitter");var Jo=_p,Bp=class Bp extends Jo{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):ue(i)&&a?c.push(...i.split(a)):c.push(i)));let l=Is(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!ue(i)?l:Dp((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),tb(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)(ue(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=Is(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?pb(l,i,a):l={...l,...i},tb(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(Bp,"ResourceStore");var Os=Bp,fb={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}},ub=Symbol("i18next/PATH_KEY");function JC(){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===ub?e:(e.push(o),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}r(JC,"createProxy");function jp(e,t){let{[ub]:n}=e(JC());return n.join((t==null?void 0:t.keySeparator)??".")}r(jp,"keysFromSelector");var nb={},ib=r(e=>!ue(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Ns=class Ns extends Jo{constructor(t,n={}){super(),UC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Un.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);return(o==null?void 0:o.res)!==void 0}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&&!KC(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ue(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:ue(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 b=this.resolve(t,o),T=b==null?void 0:b.res,F=(b==null?void 0:b.usedKey)||c,L=(b==null?void 0:b.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,fe=o.count!==void 0&&!ue(o.count),ie=Ns.hasDefaultValue(o),pe=fe?this.pluralResolver.getSuffix(u,o.count,o):"",Ve=o.ordinal&&fe?this.pluralResolver.getSuffix(u,o.count,{ordinal:!1}):"",P=fe&&!o.ordinal&&o.count===0,ke=P&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${pe}`]||o[`defaultValue${Ve}`]||o.defaultValue,Xe=T;q&&!T&&ie&&(Xe=ke);let ze=ib(Xe),ni=Object.prototype.toString.apply(Xe);if(q&&Xe&&ze&&Y.indexOf(ni)<0&&!(ue(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?(b.res=Nt,b.usedParams=this.getUsedParamsDetails(o),b):Nt}if(s){let Nt=Array.isArray(Xe),st=Nt?[]:{},ii=Nt?L:F;for(let be in Xe)if(Object.prototype.hasOwnProperty.call(Xe,be)){let Ut=`${ii}${s}${be}`;ie&&!T?st[be]=this.translate(Ut,{...o,defaultValue:ib(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&&ue(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 rn=[],Sn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Sn&&Sn[0])for(let ct=0;ct<Sn.length;ct++)rn.push(Sn[ct]);else this.options.saveMissingTo==="all"?rn=this.languageUtils.toResolveHierarchy(o.lng||this.language):rn.push(o.lng||this.language);let zt=r((ct,oe,Dt)=>{var Ge;let Zi=ie&&Dt!==T?Dt:be;this.options.missingKeyHandler?this.options.missingKeyHandler(ct,p,oe,Zi,Ut,o):(Ge=this.backendConnector)!=null&&Ge.saveMissing&&this.backendConnector.saveMissing(ct,p,oe,Zi,Ut,o),this.emit("missingKey",ct,p,oe,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&fe?rn.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(rn,c,ke))}T=this.extendTranslation(T,t,o,b,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?(b.res=T,b.usedParams=this.getUsedParamsDetails(o),b):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=ue(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 b=t.match(this.interpolator.nestingRegexp);u=b&&b.length}let m=i.replace&&!ue(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 b=t.match(this.interpolator.nestingRegexp),T=b&&b.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,(...b)=>(a==null?void 0:a[0])===b[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):this.translate(...b,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,c=ue(s)?[s]:s;return t!=null&&(c!=null&&c.length)&&i.applyPostProcessor!==!1&&(t=fb.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 ue(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&&!ue(n.count),b=m&&!n.ordinal&&n.count===0,T=n.context!==void 0&&(ue(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,!nb[`${F[0]}-${L}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((ne=this.utils)!=null&&ne.hasLoadedNamespace(c))&&(nb[`${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 pe;if(this.isValidLookup(i))return;s=q;let fe=[f];if((pe=this.i18nFormat)!=null&&pe.addLookupKeys)this.i18nFormat.addLookupKeys(fe,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&&fe.push(f+Ve.replace(ke,this.options.pluralSeparator)),fe.push(f+Ve),b&&fe.push(f+P)),T){let Xe=`${f}${this.options.contextSeparator||"_"}${n.context}`;fe.push(Xe),m&&(n.ordinal&&Ve.indexOf(ke)===0&&fe.push(Xe+Ve.replace(ke,this.options.pluralSeparator)),fe.push(Xe+Ve),b&&fe.push(Xe+P))}}let ie;for(;ie=fe.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&&!ue(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(Ns,"Translator");var Fs=Ns,Hp=class Hp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Un.create("languageUtils")}getScriptPartFromCode(t){if(t=Xa(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=Xa(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ue(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)),ue(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 ue(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))):ue(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(Hp,"LanguageUtil");var Vs=Hp,ob={zero:0,one:1,two:2,few:3,many:4,other:5},ab={select:r(e=>e===1?"one":"other","select"),resolvedOptions:r(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Gp=class Gp{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Un.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Xa(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!"),ab;if(!t.match(/-|_/))return ab;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)=>ob[o]-ob[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(Gp,"PluralResolver");var wp=Gp,rb=r((e,t,n,i=".",o=!0)=>{let a=BC(e,t,n);return!a&&o&&ue(n)&&(a=Dp(e,n,i),a===void 0&&(a=Dp(t,n,i))),a},"deepFindWithDefaults"),Lp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Wp=class Wp{constructor(t={}){var n;this.logger=Un.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:b,nestingSuffix:T,nestingSuffixEscaped:F,nestingOptionsSeparator:L,maxReplaces:Y,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:GC,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Xo(a):s||"{{",this.suffix=c?Xo(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?Xo(m):b||Xo("$t("),this.nestingSuffix=T?Xo(T):F||Xo(")"),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 b;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=rb(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(rb(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=((b=o==null?void 0:o.interpolation)==null?void 0:b.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(T=>Lp(T),"safeValue")},{regex:this.regexp,safeValue:r(T=>this.escapeValue?Lp(this.escape(T)):Lp(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=ue(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!ue(s)&&!this.useRawValueToEscape&&(s=Yh(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 b=m.match(/'/g),T=m.match(/"/g);(((b==null?void 0:b.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&&!ue(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&&!ue(a))return a;ue(a)||(a=Yh(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(Wp,"Interpolator");var $p=Wp,qC=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"),sb=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(Xa(i),o),t[s]=c),c(n)}},"createCachedFormatter"),zC=r(e=>(t,n,i)=>e(Xa(n),i)(t),"createNonCachedFormatter"),Qp=class Qp{constructor(t={}){this.logger=Un.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?sb:zC;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()]=sb(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}=qC(l);if(this.formats[p]){let m=c;try{let b=((u=o==null?void 0:o.formatParams)==null?void 0:u[o.interpolationkey])||{},T=b.locale||b.lng||o.locale||o.lng||i;m=this.formats[p](c,T,{...f,...o,...b})}catch(b){this.logger.warn(b)}return m}else this.logger.warn(`there was no format function for ${p}`);return c},t)}};r(Qp,"Formatter");var Mp=Qp,YC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Kp=class Kp extends Jo{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=Un.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=>{_C(l.loaded,[a],s),YC(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();ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ue(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 b={...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,b):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,b)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Kp,"Connector");var Up=Kp,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]),ue(e[1])&&(t.defaultValue=e[1]),ue(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"),lb=r(e=>{var t,n;return ue(e.ns)&&(e.ns=[e.ns]),ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ue(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"),xs=r(()=>{},"noop"),ZC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Ka=class Ka extends Jo{constructor(t={},n){if(super(),this.options=lb(t),this.services={},this.logger=Un,this.modules={external:[]},ZC(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&&(ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=cb();this.options={...i,...this.options,...lb(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?Un.init(o(this.modules.logger),this.options):Un.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Mp;let f=new Vs(this.options);this.store=new Os(this.options.resources,this.options);let u=this.services;u.logger=Un,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new wp(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 $p(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Up(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(b,...T)=>{this.emit(b,...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 Fs(this.services,this.options),this.translator.on("*",(b,...T)=>{this.emit(b,...T)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=xs),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=Ga(),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=xs){var a,s;let i=n,o=ue(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=Ga();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=xs),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"&&fb.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=Ga();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=ue(c)?c:c&&c[0],p=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ue(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 ue(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=Ga();return this.options.ns?(ue(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=Ga();ue(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 Vs(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 Ka(t,n)}cloneInstance(t={},n=xs){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Ka(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 Os(c,o),a.services.resourceStore=a.store}return a.translator=new Fs(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(Ka,"I18n");var Ls=Ka,R=Ls.createInstance();R.createInstance=Ls.createInstance;var gR=R.createInstance,mR=R.dir,yR=R.init,hR=R.loadResources,bR=R.reloadResources,TR=R.use,SR=R.changeLanguage,vR=R.getFixedT,PR=R.t,AR=R.exists,CR=R.setDefaultNamespace,ER=R.hasLoadedNamespace,xR=R.loadNamespaces,IR=R.loadLanguages;var OT=w(Xp()),FT=w(Ub()),ec=w(ET()),Te=require("@sap-ux/vocabularies-types/vocabularies/UI"),er=require("@sap-ux/vocabularies-types/vocabularies/Communication");var zs=w(B());var k=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(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var O="#/definitions/",Nx=[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],Dx=["sap.fe.core","sap.fe.templates"],ta=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 An(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,ec.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(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,ec.merge)(...n);i=(0,FT.convert)(o)}return i}r(An,"parseAndMergeAndConvert");var ea=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function gf(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(gf,"evaluateCommonLabel");function tc(e,t){let n=e.value;return e.$target&&(n=gf(e.$target.annotations,t,n)),n}r(tc,"getLabelForPropertyPath");function Ys(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=gf(i.annotations,t,n)),n}r(Ys,"getLabelForDataField");function Rx(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 gf(a.annotations,t,s)}}}else return}r(Rx,"getLabel");function xT(e,t,n){let i=Ys(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(xT,"getTitleForDataField");function xt(e,t){var s,c,l,p;let n="",i,o,a="";try{let f=Rx(e.Label,t);switch(e.$Type){case Te.UIAnnotationTypes.DataField:n=xT(e,t,f);break;case Te.UIAnnotationTypes.DataFieldWithUrl:i=Ys(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=Ys(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=Ys(e,t),n=i||e.Value.path;break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=xT(o,t,f);break;default:break}return n}catch{return n}}r(xt,"getDataFieldDescription");function Fe(e){return e.replace("#","::").replace(/\//g,":2f")}r(Fe,"prepareRef");function ci(e){if(e){let t=`${V.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(ci,"getPageTypeV2");function mf(e){let t="name"in e&&typeof e.name=="string"?Zs(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return V.PageTypeV4.CustomPage}r(mf,"getPageTypeV4");function jx(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(jx,"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 wx(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(wx,"determineTargetAnnotation");function $x(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($x,"adjustKey");function Mx(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=$x(t,l,a);let f=wx(l,n,e);if(f){let b=o===V.FioriElementsVersion.v2?"::":"#";t=jx(f,a).replace("#",b),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 b=o===V.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(Mx,"getKeyAndEntityTypeOfReferenceFacet");function VT(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 b=ea(e.Target);if(!b){k(i,{severity:V.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:T,entityType:F,stopProcessing:L,namespace:Y}=Mx(n,c,p,b,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(VT,"getSectionFacet");var li=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 yf(e){let t,n,i;switch(e.$Type){case Te.UIAnnotationTypes.DataField:t=ea(e.Value);break;case Te.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ea(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::${Fe(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ea(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::${Fe(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:i=ea(e.Value),n=ea(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(yf,"getSchemaKeyOfLineItemRecord");function Ux(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(Ux,"getUIAnnotationTerm");function kx(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?er.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?er.CommunicationAnnotationTerms.Address:void 0}r(kx,"getCommunicationAnnotationTerm");function _x(e,t,n){return Ux(e,t,n)||kx(e,t)}r(_x,"getAnnotationTerm");function Bx(e,t,n,i,o){var p,f,u,m,b,T,F,L,Y;let a=Bt(V.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(_x(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=(b=t==null?void 0:t.Target)==null?void 0:b.$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 er.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 er.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(Bx,"evaluateTargetAnnotation");function hf(e,t,n,i,o,a=V.FioriElementsVersion.v2,s){var l;let c=VT(e,i,t,s,a,!1);if(c)switch(e.$Type){case Te.UIAnnotationTypes.ReferenceFacet:{Bx(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&&k(s,{severity:V.LogSeverity.Error,message:R.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(l=e.Facets)==null||l.forEach(u=>{hf(u,t,n,i,f.facets,a,s)});break}}}r(hf,"addFacetToConfig");function nc(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=>{hf(u,t,f,e,o,n,i)})}return o}r(nc,"getObjectPageHeaderFacets");function ic(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=>{hf(f,t,p,e,o,n,i)})}return o}r(ic,"getObjectPageFacets");function bf(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 Nx.indexOf(l)>-1||Zs(l)})||s&&Object.keys(s).find(c=>Dx.indexOf(c)>-1)?V.FioriElementsVersion.v4:void 0}}r(bf,"getFEVersionFromManifest");function Hx(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(Hx,"getMainService");function LT(e){var i,o;let t=Hx(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(LT,"getODataVersionFromManifest");function Gx(e,t){var i,o;let n;if(e[V.ManifestSection.generic]){let a=e[V.ManifestSection.generic].pages;if(!a){k(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(ci((i=c.component)==null?void 0:i.name)===V.PageTypeV2.AnalyticalListPage){n=V.TemplateType.AnalyticalListPageV2;break}else if(ci((o=c.component)==null?void 0:o.name)===V.PageTypeV2.ListReport){n=V.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:V.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:V.ManifestSection.generic}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}});return n}r(Gx,"determineV2Template");function tr(e){var i,o,a,s;let t,n=mf(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(tr,"determineV4PageTemplateType");function Wx(e){let t;for(let n in e){let i=e[n];if(t=tr(i),t)break}return t}r(Wx,"determineV4TemplateFromPages");function Qx(e,t){let n=e[V.ManifestSection.ui5].routing&&e[V.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(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=Wx(n);return i||k(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(Qx,"determineV4Template");function no(e,t,n){let i;return e[V.ManifestSection.ovp]?i=V.TemplateType.OverviewPageV2:t===V.FioriElementsVersion.v2?i=Gx(e,n):t===V.FioriElementsVersion.v4&&(i=Qx(e,n)),i}r(no,"getTemplateTypeFromManifest");function pi(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(pi,"addSectionTitle");function Ei(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(Ei,"addSectionDescription");function na(e,t,n){var i,o;pi(e,t,n),Ei(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(na,"addTargetTitleAndSectionDescription");function NT(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(NT,"addChartFacetID");function Bn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[V.SchemaTag.isViewNode]=!0,i[V.SchemaTag.annotationPath]=t.annotationPath,na(t,i,n),i}r(Bn,"createDefaultSection");function DT(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=VT(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(DT,"getObjectPageFacetSection");var xi=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(),xi(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),IT=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}`:IT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}default:{n.filename=IT(e),n.path=`../${V.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ia(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(ia,"generatePageId");function RT(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(RT,"findMatchingKeysByAdditionalProperties");function Kx(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(Kx,"fillArrayFromAnyOfReference");function Xx(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(O)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{Kx(o,n,t,i)}),i.length===0))return;return i}r(Xx,"fillArrayFromPropertyDefinition");function Jx(e,t,n,i,o,a,s,c){var p,f,u,m;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(l.targetDefinition=t.definitions[b],(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=Hn(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=b==null?void 0:b.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(Jx,"determineNextDefinitionFromDefinitionArray");function Hn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=Hn(e,t,n,i.items,o,a,s),c;let l=Xx(i,n,e);if(l)return c=Jx(l,e,t,n,o,a,s,i),c}r(Hn,"getNextTargetDefinition");var Tf=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,OT.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 oa(e){return e==null?void 0:e.split(O)[1]}r(oa,"getDefinitionKey");function jT(e){return`#/definitions/${e}`}r(jT,"getDefinitionsRef");function wT(e){return e instanceof Error?e.message:String(e)}r(wT,"getErrorMessage");function Gn(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Gn,"updatePropertyIndices");function $T(e){return e=e.replace(V.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r($T,"removeNamespaces");function aa(e){return e=e.replace(V.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(aa,"replaceNamespaces");function fi(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(O))return t.substring(O.length)}r(fi,"getRefType");function Zs(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(Zs,"convertTemplateNameToPageTypeV4");function oc(e,t){if(e===t)return!0;let n=Zs(e);return n?n===Zs(t):!1}r(oc,"compareTemplateNames");var $n=require("@sap-ux/vocabularies-types/vocabularies/UI"),j=w(B());var Gt=w(B());var Qe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ac=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 qx(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(qx,"escapeId");var MT=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(MT||{});function zx(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(zx,"mapBreadcrumbs");var Sf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=zx(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}`),qx(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 Yx(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(Yx,"determinePattern");var UT=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=Yx(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"),Wn=r((e,t,n)=>{UT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Ie=r((e,t,n)=>{let i=Object.values(MT);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function io(){}r(io,"doNotDelete");var Pj=w(_T());var vf=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(vf,e),"syncRule");function pt(e,t){let n;return e&&(n=Reflect.getMetadata(vf,e,t)),n}r(pt,"getReflectMetadata");function BT(e){let t;return e&&(t=Reflect.getMetadata(vf,e)),t}r(BT,"getReflectTypeMetadata");var Qt=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),HT=Symbol("childId"),_e=r(e=>Reflect.metadata(HT,e),"childId"),rc=r((e,t)=>Reflect.getMetadata(HT,e,t),"getChildId"),sc=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),Zx=Symbol("descriptionSrcURL"),ye=r(e=>Reflect.metadata(Zx,e),"descriptionSrcURL");var eI=Symbol("validityMetadataKey"),S=r(e=>Reflect.metadata(eI,e),"validity");function ra(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(ra,"getTextForDeprecated");var zT=w(JT()),YT=w(B());var ZT=zT.default.change,qT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function eS(e,t){let n="";try{for(let i in qT)e[i]===void 0&&(e[i]=qT[i]);n=ZT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(eS,"createChangeString");function Zt(e){try{return ZT.parse(e)}catch{return!1}}r(Zt,"parseChangeString");function tS(e,t,n,i,o){let a=n.layer?n.layer===YT.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(tS,"fillFlexChangeContent");function _(e,t){return eS(e,t)}r(_,"exportToFlexChange");var oo=w(B());function sa(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(sa,"importProperty");function cc(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:oo.LogSeverity.Warning,message:ra(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(cc,"checkDeprecatedProperties");function Pf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(O)[1]];return Pf(n,t)}else return e.title?e.title.startsWith(oo.FACETTITLEPREFIX)?e.title.split(oo.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Pf,"getSectionTitle");function lc(e){let t=e.split(`${oo.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(lc,"getTargetFromCustomColumnRef");function ao(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(ao,"removeEmptyStructure");var Me=require("@sap-ux/vocabularies-types/vocabularies/UI");var ui=require("@sap-ux/vocabularies-types/vocabularies/UI");function pc(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(pc,"replaceSpecialChars");var ro=r(function(e){return pc($T(e))},"prepareId");function sI(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(sI,"evaluateConcat");function so(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 sI(e);if(e&&typeof e=="string")return pc(e.replace(/ /g,"_"))}r(so,"getStableIdPartFromValue");var nS=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"),di=r(function(e){let t="";if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=nS(e),t;if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ro(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=so(e.Value)+"::"),t+=e.Action,ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataField)return t="DataField::",t+=so(e.Value),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=so(e.Value)+"::",t+=nS(e),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=so(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=so(e.Value),ro(t)},"getStableIdPartFromDataField");var M=w(B());var re=w(B());var Kt=require("@sap-ux/vocabularies-types/vocabularies/UI"),rS=require("path"),sS=w(Ya());var co="ResponsiveTableWithMultiSelect<LineItems>",lo="ResponsiveTableWithInlineDelete<LineItems>",fc="TreeTable<LineItems>",uc="AnalyticalTable<LineItems>",dc="GridTable<LineItems>",Af=[co,lo,fc,uc,dc],iS=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],oS="template::",gc="template:::ObjectPageAction:::";function cI(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(cI,"addCustomColumnDefinition");function lI(e,t){let n;return e==="TableColumnActionIntentBased"?n=yf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Fe(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n=Fe(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Fe(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(lI,"getActionId");function Cf(e,t,n,i,o){let a,s=n.lineItemId===re.DefinitionName.LineItems?"":"ObjectPage",c=lI(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}=fo(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(Cf,"handleActionRecord");function pI(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(pI,"getColumnActionType");function fI(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"),pI(t,e,n),n}r(fI,"getActionType");function cS(e,t,n){let i=yf(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}`,Tc(o.properties[i],e.lineItemRecord),Sc(e.lineItemRecord,o.properties,i)}}r(cS,"generateGenericColumn");function uI(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Cf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Cf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Cf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":cS(i,t,o)}}r(uI,"handleAnyAction");function ca(e,t,n,i,o,a){o=o||re.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=bc(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:l,lineItemRecord:f,lineItemId:o,entityType:i},m=fI(f,o);m?m.forEach(b=>{uI(b,t,s,u,p,c,o)}):cS(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${O}${a}`})}r(ca,"addLineItemsType");function dI(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(dI,"addListReportLeadingProperties");function gI(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 b in a){let T=(u=a[b])==null?void 0:u.key;T!==void 0&&!m.includes(T)&&m.push(T)}po(m,o)}}r(gI,"addTabkeyEnum");function mc(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,sS.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("\\"+rS.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),po(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(mc,"addFragmentEnum");function la(e,t,n,i,o,a=re.DefinitionName.CustomColumns,s=re.DefinitionName.CustomColumn,c){cI(e,a,s),dI(e,t,s),gI(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;mc(e,o,l,"fragmentName",s),mc(e,o,l,"fragmentName",re.DefinitionName.CustomColumn),mc(e,o,l,"cellsFragmentName",s),mc(e,o,l,"cellsFragmentName",re.DefinitionName.CustomColumn)}r(la,"addTableColumnExtensions");function lS(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(lS,"removeElementsFromEnum");function yc(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<${Fe(s.value)}>`,p=Cn(s);s.type==="PropertyPath"&&(c=tc(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(yc,"addSelectionFields");function hc(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(hc,"isDraftEnabled");function pS(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(pS,"isEntityDeletable");function fS(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(fS,"isEntityUpdatable");function pa(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(pa,"addStandardHeaderActions");function uS(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(uS,"addStandardFooterActionsOP");function dS(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});k(e.logger,{severity:re.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(dS,"getUIAnnotationForEntitySet");function mI(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(mI,"copyFieldProperties");function yI(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(yI,"determineFieldDefinitionName");function hI(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(hI,"addKeysTagForDataField");function bI(e,t,n){if(e.$Type===Me.UIAnnotationTypes.DataField||e.$Type===Me.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Me.UIAnnotationTypes.DataFieldWithNavigationPath)hI(e,t,n);else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][M.SchemaTag.keys]=[{name:"Target",value:aa(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(bI,"addKeysTagToField");function TI(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(TI,"isConnectedField");function SI(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 b=l.findIndex(T=>T===u);b===-1&&(b=f,f++),Ef(e,t,m,`ConnectedFields::${a.qualifier}`,b.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(SI,"addConnectedFields");function gS(e,t,n){if(n)return n;let i=Fe(t);return e.definitions[i].properties}r(gS,"getFieldsSchemaContainer");function Ef(e,t,n,i,o,a,s,c=!0,l={},p=a.entityType.fullyQualifiedName){var T;let f=di(n),u=s===M.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=yI(s,f,i,u),b={};if(!(!n||!n.$Type)){if(n.$Type===Me.UIAnnotationTypes.DataFieldForAction||n.$Type===Me.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===M.SectionType.Section){let F=gS(t,`${e}${M.DefinitionName.Actions}<${i}>`,l.actions),L=F[u]={$ref:`${O}${m}`};L[M.SchemaTag.propertyIndex]=parseInt(o)}}else{let F=gS(t,`${e}${M.DefinitionName.Fields}<${i}>`,l.fields);F[u]={$ref:`${O}${m}`,propertyIndex:parseInt(o)},TI(n)&&(b=SI(e,t,n,a,s))}t.definitions[m]={type:"object",properties:b,description:xt(n,a.entityType),additionalProperties:!1},bI(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,Tc(t.definitions[m],n),mI(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(Ef,"addField");function vI(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(vI,"determineTargetIdOfForm");function PI(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Fe(`${t}${M.DefinitionName.Form}<${i}>`),c=Fe(`${t}${M.DefinitionName.Fields}<${i}>`),l=Fe(`${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&&Ef(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Ef(t,n,u,i,f,e,o)}}r(PI,"addFieldsToFormDefinition");function AI(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(AI,"addTagsToFormDefinition");function vc(e,t,n,i,o,a){if(!t.target)return;let s=vI(t),c=Fe(`${e}${M.DefinitionName.Form}<${s}>`),l=Fe(`${e}${M.DefinitionName.Fields}<${s}>`),p=Fe(`${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},AI(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][M.SchemaTag.isViewNode]=!0,PI(t,e,i,s,o,f),s}r(vc,"handleForm");function xf(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(xf,"replaceAlias");function Pc(e,t){let n=xf(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(Pc,"getActionNameAndId");function mS(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:mS(a.pages,t)}}r(mS,"isFirstObjectPage");function Ac(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&&mS(o,t)&&!hc(c)&&uS(e,a),delete e.definitions[M.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${M.DefinitionName.ObjectPageFooter}<${M.DefinitionName.ObjectPageFooterActions}>`]}r(Ac,"addFooterActions");function Cc(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&&pa(e,!0,c),delete e.definitions[M.DefinitionName.GenericActions],delete e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`]}r(Cc,"addHeaderActions");function Ec(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(Ec,"addCommonHeaderSchema");function yS(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(yS,"determineEntitySetOfEntityType");var En=require("@sap-ux/vocabularies-types/vocabularies/UI");var ge=w(B());function po(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(po,"addEnumToSchema");function hS(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)}}po(o,n)}r(hS,"addEnumForValidAnnotations");function Ii(e,t,n){let i=t.definitions[n].properties[ge.SchemaTag.annotationPath],o=[En.UIAnnotationTerms.SelectionVariant,En.UIAnnotationTerms.SelectionPresentationVariant];hS(e,o,i)}r(Ii,"addEnumForSingleTabVariant");function bS(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[En.UIAnnotationTerms.SelectionVariant,En.UIAnnotationTerms.SelectionPresentationVariant];hS(n.entityType,o,i)}r(bS,"addEnumForMultiTabVariant");function TS(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),po(o,i)}r(TS,"addEnumForVariantEntitySet");function SS(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[ge.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}${ge.DefinitionName.RelatedFacetKeys}`},c]}}}}r(SS,"addDefinitionForRelatedFacetKeys");function fa(e){return e.replace("#","::")}r(fa,"getFacetKeyInSchema");function nr(e,t){return`${e}<${fa(t)}>`}r(nr,"getFacetDefinitionKey");function ht(e,t,n,i=!0,o){let a=t;if(i&&(a=nr(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 bc(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][ge.SchemaTag.isViewNode]=!0;let c;o===ge.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?ge.DefinitionName.ObjectPageToolBar:ge.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=`${ge.DefinitionName.Actions}<${Fe(o)}>`;t.definitions[p].properties.actions.$ref=O+f;let u=o.startsWith(ge.DefinitionName.LineItems)?ge.DefinitionName.Actions:ge.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 b,T;if(o===ge.DefinitionName.LineItems&&t.properties.footer){T=`${ge.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${O}${T}`;try{t.definitions[T]=JSON.parse(JSON.stringify(t.definitions[ge.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ge.DefinitionName.GenericFooter}))}let F=`${ge.DefinitionName.FooterActions}<${Fe(o)}>`;t.definitions[T].properties.actions.$ref=O+F;try{b=t.definitions[F]=JSON.parse(JSON.stringify(t.definitions[ge.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ge.DefinitionName.Actions}))}b.properties={},b.additionalProperties=!1}return n&&(s=_t(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][ge.SchemaTag.annotationPath]=t.definitions[p][ge.SchemaTag.annotationPath]=s,b&&(t.definitions[T][ge.SchemaTag.annotationPath]=s))),{actions:m,footerActions:b,lineItemPath:s}}r(bc,"addCommonLineItemDefinitions");function vS(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(vS,"getDataTypeFromAnnotation");function uo(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=vS(e.$Type)),t}r(uo,"determineDataTypeOfTarget");function Cn(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=uo((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=vS(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(Cn,"determineDataType");function Tc(e,t){let n=Cn(t);n&&(e[ge.SchemaTag.dataType]=n)}r(Tc,"addDataTypeToDefinition");function en(e,t){return`${O}${nr(e,t)}`}r(en,"getFacetDefinitionLink");function PS(e,t,n,i){let o=0,a=!1,s="";do{let c=`${t}${o===0?"":"."+o}`;s=en(e,c),o++;let l=n.definitions[nr(e,c)],p=((l==null?void 0:l.annotationPath)??"").split("/").slice(0,-1).join("/");a=!l||p===i}while(!a);return s}r(PS,"getUniqueFacetDefinitionLink");function go(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${O}${i}`}r(go,"addDefinitionRef");function xc(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${ge.UIVOCABULARY}`);t=`/${n}/@${ge.UIVOCABULARY}${i}`}return t}r(xc,"getFacetAnnotationPath");function ir(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:en(a?l:c,t)};let p=ht(a?l:c,t,i,!0,a?l:void 0);pi(e,p,t),Ei(e,p,t),p[ge.SchemaTag.annotationPath]=e.annotationPath,p[ge.SchemaTag.isViewNode]=!0}r(ir,"handleAddressContact");function If(e,t,n){typeof e=="object"&&(e[t]=n)}r(If,"updateSchemaProperty");function ua(e,t,n=Fe("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${ge.DefinitionName.Fields4Dialog}${n}`];If(o.properties.fields.items,"enum",i)}r(ua,"addFieldsType");function CI(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(CI,"findFirstSchemaDefinitionKey");function Of(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=oa(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=CI(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(Of,"getEnumEntry");function AS(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=Of(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];If(c,"oneOf",o)}else If(a,"oneOf",o)}r(AS,"addDescriptiveEnumDefinition");function fo(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(fo,"getActionKey");function Sc(e,t,n){var i,o,a;try{if(e.Value)t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.value,value:so(e.Value)}];else if(e.$Type===En.UIAnnotationTypes.DataFieldWithAction||e.$Type===En.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=fo(e.Action,!0);t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.action,value:s}],c&&(t[n][ge.SchemaTag.target]=c)}else if(e.$Type===En.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=fo(e.Target.value,!1);t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.target,value:aa(s)}],t[n][ge.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===En.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===En.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=fo(s,!0);t[n][ge.SchemaTag.keys]=[{name:"SemanticObject",value:e[ge.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][ge.SchemaTag.target]=l)}}catch{return}}r(Sc,"addKeyToDefinition");function CS(e,t){e[ge.SchemaTag.messages]||(e[ge.SchemaTag.messages]=[]),Array.isArray(e[ge.SchemaTag.messages])&&e[ge.SchemaTag.messages].push({text:t})}r(CS,"addMessageToSchema");var da=w(B());var ES=[{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 IS="1.84.121";var OS={name:"@sap/ux-specification",version:IS,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.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.84.121","@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.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.4.2",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 Oi=class Oi{constructor(){Oi.distTagsOfSpec.length===0&&(Oi.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Oi.distTagsOfSpec=[]}getSpecVersion(){return IS}getDistTagsOfVersion(){let t=[],n=ES,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});k(n,{severity:da.LogSeverity.Info,message:o,location:{path:da.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Oi.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=R.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:da.LogSeverity.Warning,message:o,location:{path:da.MANIFESTPATH}})}}};r(Oi,"DistTagEvaluator"),Oi.distTagsOfSpec=[];var or=Oi;var Q=w(B());var ut=w(B());var Vi=w(B());var Ff=class Ff{constructor(t,n,i,o){this.unhandledControllers=[];let a=Ye(Vi.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!==Vi.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[`${Vi.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[Vi.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(Ff,"AppProvider");var Fi=Ff;var Ee=w(B());var ga=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"),FS=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"),VS=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 Vf(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Vf,"getNewPageTemplate");function II(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(II,"findPageInManifest");function OI(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Vf(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Vf(e[t].pageType)}),!Array.isArray(n.pages))){let i=II(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Vf(e[t].pageType)),Lf(t,e,i)}}r(OI,"transformPageFromAssociation");function FI(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)===ga.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===ga.PageTypeV2.ListReport||n.pageType===ga.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(FI,"deletePage");function Lf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===ga.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)OI(t,o,n);Array.isArray(n.pages)||FI(n,t,i)}}r(Lf,"transformPageToNewManifestV2");var yv=w(Ya());var yd={};Ko(yd,{ALPAnalyticalTable:()=>mu,ALPGridTable:()=>gu,ALPResponsiveTable:()=>du,Action:()=>Tu,AnalyticalCard:()=>Ta,AnalyticalCardSettings:()=>Vc,AnalyticalCardSettingsv4:()=>$f,AnalyticalListPageFilterBar:()=>Qf,AnalyticalTable:()=>uu,BaseCustomSection:()=>Rr,ChartSettings:()=>$u,ChartSettingsType:()=>Df,CommonCardSettings:()=>Ri,CommonHeaderFacetSettings:()=>xo,CommonTableSettings:()=>$i,CommonTableSettingsForSections:()=>Lo,CreateWithFilters:()=>ru,CustomCard:()=>jf,DataLoadSettings:()=>su,DateRange:()=>Bf,DefaultSpanObject:()=>Rf,FRAGMENT_DEFINITION:()=>Xn,Field:()=>_f,FieldForAction:()=>qf,Fields4Dialog:()=>cu,Fields4DialogOP:()=>pd,FooterAction:()=>vu,FormAction:()=>Jf,GlobalChartSettings:()=>cd,GlobalTableSettings:()=>gd,GridTable:()=>yu,HeaderAction:()=>ku,HeaderActionStandard:()=>xu,HeaderSections:()=>Wu,KPISettings:()=>Mu,LinkListCardSettings:()=>Uf,LinklistCard:()=>dr,ListCard:()=>ba,ListCardSettings:()=>wf,ListReportFilterBar:()=>jc,ObjectPageAnalyticalTable:()=>fd,ObjectPageChart:()=>sd,ObjectPageCustomSectionFragment:()=>jr,ObjectPageCustomSectionView:()=>wr,ObjectPageFooterAction:()=>Ku,ObjectPageFooterActionStandard:()=>Ou,ObjectPageGridTable:()=>ud,ObjectPageHeader:()=>Uu,ObjectPageHeaderActionStandard:()=>Iu,ObjectPageHeaderSectionAddress:()=>Gu,ObjectPageHeaderSectionChart:()=>Bu,ObjectPageHeaderSectionDataPoint:()=>Hu,ObjectPageHeaderSectionForm:()=>_u,ObjectPageLayout:()=>Ju,ObjectPageResponsiveTable:()=>No,ObjectPageSectionAddressV2:()=>ed,ObjectPageSectionChartV2:()=>Yu,ObjectPageSectionContactV2:()=>td,ObjectPageSectionFormV2:()=>zu,ObjectPageSectionTableV2:()=>Zu,ObjectPageSectionV2:()=>qu,ObjectPageSubSectionChartV2:()=>od,ObjectPageSubSectionContactV2:()=>ad,ObjectPageSubSectionFormV2:()=>id,ObjectPageSubSectionTableV2:()=>rd,ObjectPageSubSectionV2:()=>nd,ObjectPageToolBarAction:()=>md,ObjectPageTreeTable:()=>dd,QuickVariantSelection:()=>lu,QuickVariantSelectionOP:()=>ld,QuickVariantSelectionX:()=>pu,ResponsiveTable:()=>vo,SAP_UI_TABLE:()=>wc,SaveAndEditOP:()=>Eu,SelectionFieldDateSettings:()=>Gf,SelectionFields:()=>Wf,Share:()=>Pu,ShareOP:()=>Au,StackCard:()=>ur,StackCardSettings:()=>Mf,TableALP:()=>Ca,TableCard:()=>Sa,TableCardSettings:()=>kf,TableColumn:()=>Lu,TableColumnAction:()=>nl,TableColumnActionIntentBased:()=>Nu,TableCustomColumn:()=>Du,ToolBar:()=>ju,ToolBarAction:()=>Su,TreeTable:()=>fu,UpAndDownNavigationOP:()=>Cu,buildIntentBasedActionId:()=>Fu,deleteColumnFromFragment:()=>Uc,deleteType:()=>xa,exportColorPalette:()=>RS,exportCreateParametersFields:()=>Qc,exportCustomColumnsToFragment:()=>au,exportDateSettings:()=>MS,exportDateSettingsField:()=>US,exportDefaultSpan:()=>jS,exportType:()=>Ea,getChartSectionControlId:()=>fv,getContactSubSectionControlId:()=>dv,getCustomColumnPath:()=>kc,getFormSectionControlId:()=>pv,getRootCustomColumnFromFragmentJSON:()=>hr,getSectionControlId:()=>Fo,getSmartChartControlId:()=>xr,getSmartTableControlId:()=>So,getSubSectionControlId:()=>uv,getTableSectionControlId:()=>lv,importCreateParameters:()=>Wc,importDateSettings:()=>Kf});var It=w(B());var le=r(e=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),mo=r(e=>le(e)+"/tableSettings","getTableSettingPathV2"),LS=r(e=>le(e)+"/chartSettings","getChartSettingPathV2"),NS=r(e=>le(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 yo=r((e,t)=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Fc=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(Fc(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ho=r(e=>Rt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),xn=r((e,t,n)=>{let i=[];i.push(Fc(e));let o=n.replace(It.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),ln=r((e,t,n)=>xn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),DS=r((e,t,n)=>xn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Nf=r(()=>`sap.ui5/extends/extensions/${It.v2.SAPUI5_VIEW_EXTENSION}/${It.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),gi=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),`${Nf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Oc=class Oc{};r(Oc,"ApplicationV2"),d([_e("settings")],Oc.prototype,"settings",2);var Ic=Oc,Qn=class Qn{};r(Qn,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Qn.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Qn.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Qn.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.50.0"})],Qn.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.46.0"})],Qn.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.74.0"})],Qn.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Qn.prototype,"flexEnabled",2);var Li=Qn;var ar=w(B());function VI(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=ar.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ar.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ar.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(VI,"importColorPalette");function RS(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ar.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(RS,"exportColorPalette");function jS(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(jS,"exportDefaultSpan");var Lc=class Lc{};r(Lc,"ChartSettingsType"),d([g({manifest:{path:r(()=>nt()+"/chartSettings","path")}})],Lc.prototype,"showDataLabel",2);var Df=Lc,Ni=class Ni{};r(Ni,"DefaultSpanObject"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"cols",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"rows",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"minimumSubTitleRow",2);var Rf=Ni,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:jS}})],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 Ri=Be,ma=class ma{};r(ma,"CustomCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"template",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"settings",2);var jf=ma,Di=class Di extends Ri{};r(Di,"ListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"listType",2);var wf=Di,rr=class rr{};r(rr,"ListCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],rr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],rr.prototype,"template",2);var ba=rr,In=class In extends Ri{};r(In,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"navigation",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>J(t),"path"),import:VI,export:RS}})],In.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"bEnableStableColors",2);var Vc=In,Nc=class Nc extends Vc{};r(Nc,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>J(t),"path")}})],Nc.prototype,"measureAggregate",2);var $f=Nc,sr=class sr{};r(sr,"AnalyticalCard"),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 Ta=sr,ya=class ya extends Ri{};r(ya,"StackCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"itemText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"objectStreamCardsSettings",2);var Mf=ya,cr=class cr{};r(cr,"StackCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],cr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],cr.prototype,"template",2);var ur=cr,ha=class ha extends Ri{};r(ha,"LinkListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"staticContent",2);var Uf=ha,lr=class lr{};r(lr,"LinklistCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],lr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],lr.prototype,"template",2);var dr=lr,pr=class pr extends Ri{};r(pr,"TableCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],pr.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],pr.prototype,"enableAddToInsights",2);var kf=pr,fr=class fr{};r(fr,"TableCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],fr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],fr.prototype,"template",2);var Sa=fr;var wS=w(B());var LI=r((e,t,n,i,o)=>{let a=yt(n[1],o),s=n.slice(-1)[0];return Qe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Dc=class Dc{};r(Dc,"Field"),d([g({flex:{controlId:LI,controlType:r(()=>wS.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Ie})],Dc.prototype,"visible",2);var _f=Dc;var To=w(B());function Kf(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(Kf,"importDateSettings");function MS(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(MS,"exportDateSettings");function NI(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(NI,"importDateSettingsField");function US(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(US,"exportDateSettingsField");var va=class va{};r(va,"DateRange"),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],va.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path"),import:Kf,export:MS}}),S({since:"1.77.0"})],va.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],va.prototype,"exclude",2);var Bf=va,Rc={controlId:Qe,controlType:r(()=>To.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},Hf={path:r((e,t,n)=>`${le(e)}${To.DATESETTINGSPATH}/fields/${n}`,"path")},$S={...Hf,import:NI,export:US},bo=class bo{};r(bo,"SelectionFieldDateSettings"),d([g({manifest:$S}),S({since:"1.77.0"})],bo.prototype,"selectedValues",2),d([g({manifest:Hf}),S({since:"1.77.0"})],bo.prototype,"exclude",2),d([g({manifest:Hf}),S({since:"1.77.0"})],bo.prototype,"customDateRangeImplementation",2),d([g({manifest:$S}),S({since:"1.77.0"})],bo.prototype,"filter",2);var Gf=bo,Xf=class Xf{};r(Xf,"SelectionFields");var Wf=Xf,On=class On{};r(On,"ListReportFilterBar"),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"})],On.prototype,"smartVariantManagement",2),d([g({flex:Rc}),S({since:"1.40.0"})],On.prototype,"liveMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],On.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.52.0"})],On.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>le(t)+"/filterSettings","path"),import:Kf}}),S({since:"1.77.0"})],On.prototype,"dateSettings",2),d([g({flex:Rc}),S({since:"1.28.0"})],On.prototype,"showClearOnFB",2),d([g({flex:Rc}),S({since:"1.38.0"})],On.prototype,"showFilterConfiguration",2),d([g({flex:Rc}),S({since:"1.28.0"})],On.prototype,"showRestoreOnFB",2);var jc=On,gr=class gr extends jc{};r(gr,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>le(t),"path")}})],gr.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],gr.prototype,"filterDefaultsFromSelectionVariant",2);var Qf=gr;var pn=w(B());var Kn=r((e,t,n,i,o)=>{if(i()===pn.ControlType.Button){let a=n[n.length-1],s=yt(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Qe(e,t)},"getFormActionButtonId"),ji=class ji{};r(ji,"FormAction"),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_},generate:Ie})],ji.prototype,"visible",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"tooltip",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"icon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"activeIcon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}}),S({since:"1.73.0"})],ji.prototype,"type",2);var Jf=ji,wi=class wi{};r(wi,"FieldForAction"),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_},generate:Ie})],wi.prototype,"visible",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"tooltip",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"icon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"activeIcon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}}),S({since:"1.73.0"})],wi.prototype,"type",2);var qf=wi;var Le=w(B()),Fn=w(Ya());var eu=require("path"),qI=w(B()),YS=w(zS()),ZS=require("fs");var zI=(0,eu.join)(__dirname,"templates");var YI=r((e,t)=>{let n=(0,ZS.readFileSync)(e,"utf8");return(0,YS.render)(n,t)},"renderTemplate");var tu=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 YI((0,eu.join)(zI,t+".xml"),n)},"getSingleColumnContent"),nu=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=tu(i,t);n=n+`
|
|
82
|
+
`)},"scanLine")};Ne.escapeXML=rt.escapeXML;Ne.__express=Ne.renderFile;Ne.VERSION=kI;Ne.name=GI;typeof window<"u"&&(window.ejs=Ne)});var nn={};Ko(nn,{deleteConfigEntityByPath:()=>KD,exportConfig:()=>WD,exportConfigEntityByPath:()=>QD,generateSchema:()=>GD,getApiVersion:()=>zD,getChanges:()=>eA,getGenericSchema:()=>Pp,getPathToGenericSchema:()=>xP,getProject:()=>iR,importConfig:()=>XD,importProject:()=>JD,importProjectSchema:()=>qD,isDirectory:()=>ZD,log:()=>k,readDirectory:()=>Tm});module.exports=gA(nn);var Z=w(B());var L=w(B());var ue=r(e=>typeof e=="string","isString"),Ga=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Yh=r(e=>e==null?"":""+e,"makeString"),UC=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),kC=/###/g,Zh=r(e=>e&&e.indexOf("###")>-1?e.replace(kC,"."):e,"cleanKey"),eb=r(e=>!e||ue(e),"canNotTraverseDeeper"),Wa=r((e,t,n)=>{let i=ue(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(eb(e))return{};let a=Zh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return eb(e)?{}:{obj:e,k:Zh(i[o])}},"getLastOfPath"),tb=r((e,t,n)=>{let{obj:i,k:o}=Wa(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=Wa(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=Wa(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"),_C=r((e,t,n,i)=>{let{obj:o,k:a}=Wa(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),Is=r((e,t)=>{let{obj:n,k:i}=Wa(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),BC=r((e,t,n)=>{let i=Is(e,n);return i!==void 0?i:Is(t,n)},"getPathWithDefaults"),pb=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ue(e[i])||e[i]instanceof String||ue(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):pb(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Xo=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),HC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},GC=r(e=>ue(e)?e.replace(/[&<>"'\/]/g,t=>HC[t]):e,"escape"),kp=class kp{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(kp,"RegExpCache");var Np=kp,WC=[" ",",","?","!",";"],QC=new Np(20),KC=r((e,t,n)=>{t=t||"",n=n||"";let i=WC.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=QC.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"),Dp=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"),Xa=r(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),XC={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)}},Qa=class Qa{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||XC,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:(ue(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Qa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Qa(this.logger,t)}};r(Qa,"Logger");var Rp=Qa,Un=new Rp,_p=class _p{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(_p,"EventEmitter");var Jo=_p,Bp=class Bp extends Jo{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):ue(i)&&a?c.push(...i.split(a)):c.push(i)));let l=Is(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!ue(i)?l:Dp((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),tb(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)(ue(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=Is(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?pb(l,i,a):l={...l,...i},tb(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(Bp,"ResourceStore");var Os=Bp,fb={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}},ub=Symbol("i18next/PATH_KEY");function JC(){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===ub?e:(e.push(o),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}r(JC,"createProxy");function jp(e,t){let{[ub]:n}=e(JC());return n.join((t==null?void 0:t.keySeparator)??".")}r(jp,"keysFromSelector");var nb={},ib=r(e=>!ue(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Ns=class Ns extends Jo{constructor(t,n={}){super(),UC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Un.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);return(o==null?void 0:o.res)!==void 0}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&&!KC(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ue(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:ue(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,O=(h==null?void 0:h.usedKey)||c,V=(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,fe=o.count!==void 0&&!ue(o.count),ie=Ns.hasDefaultValue(o),pe=fe?this.pluralResolver.getSuffix(u,o.count,o):"",Le=o.ordinal&&fe?this.pluralResolver.getSuffix(u,o.count,{ordinal:!1}):"",P=fe&&!o.ordinal&&o.count===0,ke=P&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${pe}`]||o[`defaultValue${Le}`]||o.defaultValue,Xe=T;q&&!T&&ie&&(Xe=ke);let ze=ib(Xe),ni=Object.prototype.toString.apply(Xe);if(q&&Xe&&ze&&Y.indexOf(ni)<0&&!(ue(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(O,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?[]:{},ii=Nt?V:O;for(let be in Xe)if(Object.prototype.hasOwnProperty.call(Xe,be)){let Ut=`${ii}${s}${be}`;ie&&!T?st[be]=this.translate(Ut,{...o,defaultValue:ib(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&&ue(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 rn=[],Sn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Sn&&Sn[0])for(let ct=0;ct<Sn.length;ct++)rn.push(Sn[ct]);else this.options.saveMissingTo==="all"?rn=this.languageUtils.toResolveHierarchy(o.lng||this.language):rn.push(o.lng||this.language);let zt=r((ct,oe,Dt)=>{var Ge;let Zi=ie&&Dt!==T?Dt:be;this.options.missingKeyHandler?this.options.missingKeyHandler(ct,p,oe,Zi,Ut,o):(Ge=this.backendConnector)!=null&&Ge.saveMissing&&this.backendConnector.saveMissing(ct,p,oe,Zi,Ut,o),this.emit("missingKey",ct,p,oe,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&fe?rn.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(rn,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=ue(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&&!ue(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=ue(s)?[s]:s;return t!=null&&(c!=null&&c.length)&&i.applyPostProcessor!==!1&&(t=fb.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 ue(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&&!ue(n.count),h=m&&!n.ordinal&&n.count===0,T=n.context!==void 0&&(ue(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(V=>{var Y,ne;this.isValidLookup(i)||(c=V,!nb[`${O[0]}-${V}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((ne=this.utils)!=null&&ne.hasLoadedNamespace(c))&&(nb[`${O[0]}-${V}`]=!0,this.logger.warn(`key "${o}" for languages "${O.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!!!")),O.forEach(q=>{var pe;if(this.isValidLookup(i))return;s=q;let fe=[f];if((pe=this.i18nFormat)!=null&&pe.addLookupKeys)this.i18nFormat.addLookupKeys(fe,f,q,V,n);else{let Le;m&&(Le=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&&Le.indexOf(ke)===0&&fe.push(f+Le.replace(ke,this.options.pluralSeparator)),fe.push(f+Le),h&&fe.push(f+P)),T){let Xe=`${f}${this.options.contextSeparator||"_"}${n.context}`;fe.push(Xe),m&&(n.ordinal&&Le.indexOf(ke)===0&&fe.push(Xe+Le.replace(ke,this.options.pluralSeparator)),fe.push(Xe+Le),h&&fe.push(Xe+P))}}let ie;for(;ie=fe.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(q,V,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&&!ue(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(Ns,"Translator");var Fs=Ns,Hp=class Hp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Un.create("languageUtils")}getScriptPartFromCode(t){if(t=Xa(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=Xa(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ue(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)),ue(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 ue(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))):ue(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(Hp,"LanguageUtil");var Ls=Hp,ob={zero:0,one:1,two:2,few:3,many:4,other:5},ab={select:r(e=>e===1?"one":"other","select"),resolvedOptions:r(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Gp=class Gp{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Un.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Xa(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!"),ab;if(!t.match(/-|_/))return ab;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)=>ob[o]-ob[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(Gp,"PluralResolver");var wp=Gp,rb=r((e,t,n,i=".",o=!0)=>{let a=BC(e,t,n);return!a&&o&&ue(n)&&(a=Dp(e,n,i),a===void 0&&(a=Dp(t,n,i))),a},"deepFindWithDefaults"),Vp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Wp=class Wp{constructor(t={}){var n;this.logger=Un.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:O,nestingOptionsSeparator:V,maxReplaces:Y,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:GC,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Xo(a):s||"{{",this.suffix=c?Xo(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?Xo(m):h||Xo("$t("),this.nestingSuffix=T?Xo(T):O||Xo(")"),this.nestingOptionsSeparator=V||",",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=rb(n,l,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ne,void 0,i,{...o,...n,interpolationkey:T}):ne}let O=T.split(this.formatSeparator),V=O.shift().trim(),Y=O.join(this.formatSeparator).trim();return this.format(rb(n,l,V,this.options.keySeparator,this.options.ignoreJSONStructure),Y,i,{...o,...n,interpolationkey:V})},"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=>Vp(T),"safeValue")},{regex:this.regexp,safeValue:r(T=>this.escapeValue?Vp(this.escape(T)):Vp(T),"safeValue")}].forEach(T=>{for(c=0;a=T.regex.exec(t);){let O=a[1].trim();if(s=p(O),s===void 0)if(typeof f=="function"){let Y=f(t,a,o);s=ue(Y)?Y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,O))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${t}`),s="";else!ue(s)&&!this.useRawValueToEscape&&(s=Yh(s));let V=T.safeValue(s);if(t=t.replace(a[0],V),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(O){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,O),`${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&&!ue(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&&!ue(a))return a;ue(a)||(a=Yh(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(Wp,"Interpolator");var $p=Wp,qC=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"),sb=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(Xa(i),o),t[s]=c),c(n)}},"createCachedFormatter"),zC=r(e=>(t,n,i)=>e(Xa(n),i)(t),"createNonCachedFormatter"),Qp=class Qp{constructor(t={}){this.logger=Un.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?sb:zC;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()]=sb(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}=qC(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(Qp,"Formatter");var Mp=Qp,YC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Kp=class Kp extends Jo{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=Un.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=>{_C(l.loaded,[a],s),YC(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();ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ue(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 O;T.length===5?O=T(t,n,i,o,h):O=T(t,n,i,o),O&&typeof O.then=="function"?O.then(V=>c(null,V)).catch(c):c(null,O)}catch(O){c(O)}else T(t,n,i,o,c,h)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Kp,"Connector");var Up=Kp,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]),ue(e[1])&&(t.defaultValue=e[1]),ue(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"),lb=r(e=>{var t,n;return ue(e.ns)&&(e.ns=[e.ns]),ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ue(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"),xs=r(()=>{},"noop"),ZC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Ka=class Ka extends Jo{constructor(t={},n){if(super(),this.options=lb(t),this.services={},this.logger=Un,this.modules={external:[]},ZC(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&&(ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=cb();this.options={...i,...this.options,...lb(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?Un.init(o(this.modules.logger),this.options):Un.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Mp;let f=new Ls(this.options);this.store=new Os(this.options.resources,this.options);let u=this.services;u.logger=Un,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new wp(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 $p(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Up(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 Fs(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=xs),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=Ga(),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=xs){var a,s;let i=n,o=ue(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=Ga();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=xs),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"&&fb.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=Ga();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=ue(c)?c:c&&c[0],p=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ue(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 ue(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=Ga();return this.options.ns?(ue(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=Ga();ue(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 Ls(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 Ka(t,n)}cloneInstance(t={},n=xs){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Ka(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 Os(c,o),a.services.resourceStore=a.store}return a.translator=new Fs(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(Ka,"I18n");var Vs=Ka,R=Vs.createInstance();R.createInstance=Vs.createInstance;var gR=R.createInstance,mR=R.dir,yR=R.init,hR=R.loadResources,bR=R.reloadResources,TR=R.use,SR=R.changeLanguage,vR=R.getFixedT,PR=R.t,AR=R.exists,CR=R.setDefaultNamespace,ER=R.hasLoadedNamespace,xR=R.loadNamespaces,IR=R.loadLanguages;var OT=w(Xp()),FT=w(Ub()),ec=w(ET()),Te=require("@sap-ux/vocabularies-types/vocabularies/UI"),er=require("@sap-ux/vocabularies-types/vocabularies/Communication");var zs=w(B());var k=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(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var F="#/definitions/",Nx=[L.v4.FE_TEMPLATE_V4_LIST_REPORT,L.v4.FE_TEMPLATE_V4_ALP,L.v4.FE_TEMPLATE_V4_OBJECT_PAGE,L.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],Dx=["sap.fe.core","sap.fe.templates"],ta=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 An(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,ec.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(t,{severity:L.LogSeverity.Error,message:R.t("ANNOERR"),location:{path:R.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,ec.merge)(...n);i=(0,FT.convert)(o)}return i}r(An,"parseAndMergeAndConvert");var ea=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function gf(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(gf,"evaluateCommonLabel");function tc(e,t){let n=e.value;return e.$target&&(n=gf(e.$target.annotations,t,n)),n}r(tc,"getLabelForPropertyPath");function Ys(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=gf(i.annotations,t,n)),n}r(Ys,"getLabelForDataField");function Rx(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 gf(a.annotations,t,s)}}}else return}r(Rx,"getLabel");function xT(e,t,n){let i=Ys(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(xT,"getTitleForDataField");function xt(e,t){var s,c,l,p;let n="",i,o,a="";try{let f=Rx(e.Label,t);switch(e.$Type){case Te.UIAnnotationTypes.DataField:n=xT(e,t,f);break;case Te.UIAnnotationTypes.DataFieldWithUrl:i=Ys(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=Ys(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=Ys(e,t),n=i||e.Value.path;break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=xT(o,t,f);break;default:break}return n}catch{return n}}r(xt,"getDataFieldDescription");function Fe(e){return e.replace("#","::").replace(/\//g,":2f")}r(Fe,"prepareRef");function ci(e){if(e){let t=`${L.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(ci,"getPageTypeV2");function mf(e){let t="name"in e&&typeof e.name=="string"?Zs(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return L.PageTypeV4.CustomPage}r(mf,"getPageTypeV4");function jx(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(jx,"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 wx(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(wx,"determineTargetAnnotation");function $x(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?"":"@"}${L.UIVOCABULARY}`);return e}r($x,"adjustKey");function Mx(e,t,n,i,o=L.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=$x(t,l,a);let f=wx(l,n,e);if(f){let h=o===L.FioriElementsVersion.v2?"::":"#";t=jx(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===L.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(h)}${h}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(Mx,"getKeyAndEntityTypeOfReferenceFacet");function LT(e,t,n,i,o=L.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=ea(e.Target);if(!h){k(i,{severity:L.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:T,entityType:O,stopProcessing:V,namespace:Y}=Mx(n,c,p,h,o,a);if(V)return;c=T,p=O,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(LT,"getSectionFacet");var li=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 yf(e){let t,n,i;switch(e.$Type){case Te.UIAnnotationTypes.DataField:t=ea(e.Value);break;case Te.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ea(e.Value);break;case Te.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${L.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::${Fe(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ea(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::${Fe(e.Action)}`);break;case Te.UIAnnotationTypes.DataFieldWithNavigationPath:i=ea(e.Value),n=ea(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(yf,"getSchemaKeyOfLineItemRecord");function Ux(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(Ux,"getUIAnnotationTerm");function kx(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?er.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?er.CommunicationAnnotationTerms.Address:void 0}r(kx,"getCommunicationAnnotationTerm");function _x(e,t,n){return Ux(e,t,n)||kx(e,t)}r(_x,"getAnnotationTerm");function Bx(e,t,n,i,o){var p,f,u,m,h,T,O,V,Y;let a=Bt(L.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(_x(s,a,i)){case Te.UIAnnotationTerms.Chart:{n[s]={base:L.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:L.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:L.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:L.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:L.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:L.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case er.CommunicationAnnotationTerms.Contact:{n[s]={base:L.FacetBase.Contact},n[s].target=(V=t==null?void 0:t.Target)==null?void 0:V.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case er.CommunicationAnnotationTerms.Address:{n[s]={base:L.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:L.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",L.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(Bx,"evaluateTargetAnnotation");function hf(e,t,n,i,o,a=L.FioriElementsVersion.v2,s){var l;let c=LT(e,i,t,s,a,!1);if(c)switch(e.$Type){case Te.UIAnnotationTypes.ReferenceFacet:{Bx(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:L.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:p,Label:c.label,namespace:c.namespace};!f.ID&&a===L.FioriElementsVersion.v4&&k(s,{severity:L.LogSeverity.Error,message:R.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(l=e.Facets)==null||l.forEach(u=>{hf(u,t,n,i,f.facets,a,s)});break}}}r(hf,"addFacetToConfig");function nc(e,t,n=L.FioriElementsVersion.v2,i){var c,l;let o={};if(!e||!e.annotations)return;let a=Bt(L.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=>{hf(u,t,f,e,o,n,i)})}return o}r(nc,"getObjectPageHeaderFacets");function ic(e,t,n=L.FioriElementsVersion.v2,i){var c;let o={};if(!e||!e.annotations)return;let a=Bt(L.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=>{hf(f,t,p,e,o,n,i)})}return o}r(ic,"getObjectPageFacets");function bf(e){var t,n,i,o;if(e[L.ManifestSection.generic]&&Object.keys(e[L.ManifestSection.generic]).length>0||e[L.ManifestSection.ovp]&&Object.keys(e[L.ManifestSection.ovp]).length>0)return L.FioriElementsVersion.v2;{let a=(n=(t=e[L.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[L.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 Nx.indexOf(l)>-1||Zs(l)})||s&&Object.keys(s).find(c=>Dx.indexOf(c)>-1)?L.FioriElementsVersion.v4:void 0}}r(bf,"getFEVersionFromManifest");function Hx(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[L.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[L.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[L.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[L.ManifestSection.ui5].models[t].dataSource:void 0}r(Hx,"getMainService");function VT(e){var i,o;let t=Hx(e);if(!t)return L.OdataVersion.v2;let n=(i=e[L.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?L.OdataVersion.v4:L.OdataVersion.v2}r(VT,"getODataVersionFromManifest");function Gx(e,t){var i,o;let n;if(e[L.ManifestSection.generic]){let a=e[L.ManifestSection.generic].pages;if(!a){k(t,{severity:L.LogSeverity.Error,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return}for(let s in a){let c=a[s];if(ci((i=c.component)==null?void 0:i.name)===L.PageTypeV2.AnalyticalListPage){n=L.TemplateType.AnalyticalListPageV2;break}else if(ci((o=c.component)==null?void 0:o.name)===L.PageTypeV2.ListReport){n=L.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:L.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:L.ManifestSection.generic}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return n}r(Gx,"determineV2Template");function tr(e){var i,o,a,s;let t,n=mf(e);if(n===L.PageTypeV4.AnalyticalListPage)t=L.TemplateType.AnalyticalListPageV4;else if(n===L.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[L.ALPViewType.Primary]||c[L.ALPViewType.Secondary])?t=L.TemplateType.AnalyticalListPageV4:t=L.TemplateType.ListReportObjectPageV4}else n===L.PageTypeV4.ObjectPage?t=L.TemplateType.ListReportObjectPageV4:n===L.PageTypeV4.CustomPage&&(t=L.TemplateType.FreestylePageV4);return t}r(tr,"determineV4PageTemplateType");function Wx(e){let t;for(let n in e){let i=e[n];if(t=tr(i),t)break}return t}r(Wx,"determineV4TemplateFromPages");function Qx(e,t){let n=e[L.ManifestSection.ui5].routing&&e[L.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(t,{severity:L.LogSeverity.Info,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.ui5,"routing"]}}),L.TemplateType.ListReportObjectPageV4;let i=Wx(n);return i||k(t,{severity:L.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:L.ManifestSection.ui5}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.ui5,"routing","targets"]}}),i}r(Qx,"determineV4Template");function no(e,t,n){let i;return e[L.ManifestSection.ovp]?i=L.TemplateType.OverviewPageV2:t===L.FioriElementsVersion.v2?i=Gx(e,n):t===L.FioriElementsVersion.v4&&(i=Qx(e,n)),i}r(no,"getTemplateTypeFromManifest");function pi(e,t,n){e!=null&&e.ID?(t.title=L.FACETTITLEPREFIX+e.ID,t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:n.replace(L.UIVOCABULARYALPHADOT,"")}])}r(pi,"addSectionTitle");function Ei(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(Ei,"addSectionDescription");function na(e,t,n){var i,o;pi(e,t,n),Ei(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(na,"addTargetTitleAndSectionDescription");function NT(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(NT,"addChartFacetID");function Bn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[L.SchemaTag.isViewNode]=!0,i[L.SchemaTag.annotationPath]=t.annotationPath,na(t,i,n),i}r(Bn,"createDefaultSection");function DT(e,t,n,i=L.FioriElementsVersion.v2,o=!1){var c,l;let a=Bt(L.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=LT(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(DT,"getObjectPageFacetSection");var xi=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(),xi(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),IT=r(e=>e===L.SchemaType.FreestylePage?L.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Ye=r((e,t)=>{let n={filename:"",path:""};switch(e){case L.SchemaType.Application:{n.filename="App",n.path=`./${L.DirName.Schemas}/${n.filename}`;break}case L.SchemaType.ListReport:case L.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:IT(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}default:{n.filename=IT(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ia(e,t,n,i){if(e===L.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(ia,"generatePageId");function RT(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(RT,"findMatchingKeysByAdditionalProperties");function Kx(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(Kx,"fillArrayFromAnyOfReference");function Xx(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(F)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{Kx(o,n,t,i)}),i.length===0))return;return i}r(Xx,"fillArrayFromPropertyDefinition");function Jx(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=Hn(t,n,i,l.targetDefinition,o,a,s),l;e.length>1&&e.forEach(V=>{V!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[V].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],O=i||{};l.configObject=a.createInstance(s,T,O,(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(Jx,"determineNextDefinitionFromDefinitionArray");function Hn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=Hn(e,t,n,i.items,o,a,s),c;let l=Xx(i,n,e);if(l)return c=Jx(l,e,t,n,o,a,s,i),c}r(Hn,"getNextTargetDefinition");var Tf=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,OT.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 oa(e){return e==null?void 0:e.split(F)[1]}r(oa,"getDefinitionKey");function jT(e){return`#/definitions/${e}`}r(jT,"getDefinitionsRef");function wT(e){return e instanceof Error?e.message:String(e)}r(wT,"getErrorMessage");function Gn(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Gn,"updatePropertyIndices");function $T(e){return e=e.replace(L.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r($T,"removeNamespaces");function aa(e){return e=e.replace(L.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(aa,"replaceNamespaces");function fi(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(F))return t.substring(F.length)}r(fi,"getRefType");function Zs(e){if(e!=null&&e.startsWith(`${L.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in L.PageTypeV4)return L.PageTypeV4[n]}}r(Zs,"convertTemplateNameToPageTypeV4");function oc(e,t){if(e===t)return!0;let n=Zs(e);return n?n===Zs(t):!1}r(oc,"compareTemplateNames");var $n=require("@sap-ux/vocabularies-types/vocabularies/UI"),j=w(B());var Gt=w(B());var Qe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ac=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 qx(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(qx,"escapeId");var MT=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(MT||{});function zx(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(zx,"mapBreadcrumbs");var Sf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=zx(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}`),qx(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 Yx(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(Yx,"determinePattern");var UT=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=Yx(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"),Wn=r((e,t,n)=>{UT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Ie=r((e,t,n)=>{let i=Object.values(MT);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function io(){}r(io,"doNotDelete");var Pj=w(_T());var vf=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(vf,e),"syncRule");function pt(e,t){let n;return e&&(n=Reflect.getMetadata(vf,e,t)),n}r(pt,"getReflectMetadata");function BT(e){let t;return e&&(t=Reflect.getMetadata(vf,e)),t}r(BT,"getReflectTypeMetadata");var Qt=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),HT=Symbol("childId"),_e=r(e=>Reflect.metadata(HT,e),"childId"),rc=r((e,t)=>Reflect.getMetadata(HT,e,t),"getChildId"),sc=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),Zx=Symbol("descriptionSrcURL"),ye=r(e=>Reflect.metadata(Zx,e),"descriptionSrcURL");var eI=Symbol("validityMetadataKey"),S=r(e=>Reflect.metadata(eI,e),"validity");function ra(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(ra,"getTextForDeprecated");var zT=w(JT()),YT=w(B());var ZT=zT.default.change,qT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function eS(e,t){let n="";try{for(let i in qT)e[i]===void 0&&(e[i]=qT[i]);n=ZT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(eS,"createChangeString");function Zt(e){try{return ZT.parse(e)}catch{return!1}}r(Zt,"parseChangeString");function tS(e,t,n,i,o){let a=n.layer?n.layer===YT.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(tS,"fillFlexChangeContent");function _(e,t){return eS(e,t)}r(_,"exportToFlexChange");var oo=w(B());function sa(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(sa,"importProperty");function cc(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:oo.LogSeverity.Warning,message:ra(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(cc,"checkDeprecatedProperties");function Pf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(F)[1]];return Pf(n,t)}else return e.title?e.title.startsWith(oo.FACETTITLEPREFIX)?e.title.split(oo.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Pf,"getSectionTitle");function lc(e){let t=e.split(`${oo.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(lc,"getTargetFromCustomColumnRef");function ao(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(ao,"removeEmptyStructure");var Me=require("@sap-ux/vocabularies-types/vocabularies/UI");var ui=require("@sap-ux/vocabularies-types/vocabularies/UI");function pc(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(pc,"replaceSpecialChars");var ro=r(function(e){return pc($T(e))},"prepareId");function sI(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(sI,"evaluateConcat");function so(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 sI(e);if(e&&typeof e=="string")return pc(e.replace(/ /g,"_"))}r(so,"getStableIdPartFromValue");var nS=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"),di=r(function(e){let t="";if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=nS(e),t;if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ro(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=so(e.Value)+"::"),t+=e.Action,ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataField)return t="DataField::",t+=so(e.Value),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=so(e.Value)+"::",t+=nS(e),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=so(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ro(t);if(e.$Type&&e.$Type===ui.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=so(e.Value),ro(t)},"getStableIdPartFromDataField");var M=w(B());var re=w(B());var Kt=require("@sap-ux/vocabularies-types/vocabularies/UI"),rS=require("path"),sS=w(Ya());var co="ResponsiveTableWithMultiSelect<LineItems>",lo="ResponsiveTableWithInlineDelete<LineItems>",fc="TreeTable<LineItems>",uc="AnalyticalTable<LineItems>",dc="GridTable<LineItems>",Af=[co,lo,fc,uc,dc],iS=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],oS="template::",gc="template:::ObjectPageAction:::";function cI(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(cI,"addCustomColumnDefinition");function lI(e,t){let n;return e==="TableColumnActionIntentBased"?n=yf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Fe(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Kt.UIAnnotationTypes.DataFieldForAction?n=Fe(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Fe(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(lI,"getActionId");function Cf(e,t,n,i,o){let a,s=n.lineItemId===re.DefinitionName.LineItems?"":"ObjectPage",c=lI(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}=fo(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(Cf,"handleActionRecord");function pI(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(pI,"getColumnActionType");function fI(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"),pI(t,e,n),n}r(fI,"getActionType");function cS(e,t,n){let i=yf(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}`,Tc(o.properties[i],e.lineItemRecord),Sc(e.lineItemRecord,o.properties,i)}}r(cS,"generateGenericColumn");function uI(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Cf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Cf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Cf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":cS(i,t,o)}}r(uI,"handleAnyAction");function ca(e,t,n,i,o,a){o=o||re.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=bc(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:l,lineItemRecord:f,lineItemId:o,entityType:i},m=fI(f,o);m?m.forEach(h=>{uI(h,t,s,u,p,c,o)}):cS(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${F}${a}`})}r(ca,"addLineItemsType");function dI(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(dI,"addListReportLeadingProperties");function gI(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)}po(m,o)}}r(gI,"addTabkeyEnum");function mc(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,sS.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("\\"+rS.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),po(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(mc,"addFragmentEnum");function la(e,t,n,i,o,a=re.DefinitionName.CustomColumns,s=re.DefinitionName.CustomColumn,c){cI(e,a,s),dI(e,t,s),gI(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;mc(e,o,l,"fragmentName",s),mc(e,o,l,"fragmentName",re.DefinitionName.CustomColumn),mc(e,o,l,"cellsFragmentName",s),mc(e,o,l,"cellsFragmentName",re.DefinitionName.CustomColumn)}r(la,"addTableColumnExtensions");function lS(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(lS,"removeElementsFromEnum");function yc(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<${Fe(s.value)}>`,p=Cn(s);s.type==="PropertyPath"&&(c=tc(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(yc,"addSelectionFields");function hc(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(hc,"isDraftEnabled");function pS(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(pS,"isEntityDeletable");function fS(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(fS,"isEntityUpdatable");function pa(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(pa,"addStandardHeaderActions");function uS(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(uS,"addStandardFooterActionsOP");function dS(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});k(e.logger,{severity:re.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(dS,"getUIAnnotationForEntitySet");function mI(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(mI,"copyFieldProperties");function yI(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(yI,"determineFieldDefinitionName");function hI(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(hI,"addKeysTagForDataField");function bI(e,t,n){if(e.$Type===Me.UIAnnotationTypes.DataField||e.$Type===Me.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Me.UIAnnotationTypes.DataFieldWithNavigationPath)hI(e,t,n);else if(e.$Type===Me.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][M.SchemaTag.keys]=[{name:"Target",value:aa(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(bI,"addKeysTagToField");function TI(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(TI,"isConnectedField");function SI(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++),Ef(e,t,m,`ConnectedFields::${a.qualifier}`,h.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(SI,"addConnectedFields");function gS(e,t,n){if(n)return n;let i=Fe(t);return e.definitions[i].properties}r(gS,"getFieldsSchemaContainer");function Ef(e,t,n,i,o,a,s,c=!0,l={},p=a.entityType.fullyQualifiedName){var T;let f=di(n),u=s===M.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=yI(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 O=gS(t,`${e}${M.DefinitionName.Actions}<${i}>`,l.actions),V=O[u]={$ref:`${F}${m}`};V[M.SchemaTag.propertyIndex]=parseInt(o)}}else{let O=gS(t,`${e}${M.DefinitionName.Fields}<${i}>`,l.fields);O[u]={$ref:`${F}${m}`,propertyIndex:parseInt(o)},TI(n)&&(h=SI(e,t,n,a,s))}t.definitions[m]={type:"object",properties:h,description:xt(n,a.entityType),additionalProperties:!1},bI(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,Tc(t.definitions[m],n),mI(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(Ef,"addField");function vI(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(vI,"determineTargetIdOfForm");function PI(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Fe(`${t}${M.DefinitionName.Form}<${i}>`),c=Fe(`${t}${M.DefinitionName.Fields}<${i}>`),l=Fe(`${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&&Ef(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Ef(t,n,u,i,f,e,o)}}r(PI,"addFieldsToFormDefinition");function AI(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(AI,"addTagsToFormDefinition");function vc(e,t,n,i,o,a){if(!t.target)return;let s=vI(t),c=Fe(`${e}${M.DefinitionName.Form}<${s}>`),l=Fe(`${e}${M.DefinitionName.Fields}<${s}>`),p=Fe(`${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},AI(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][M.SchemaTag.isViewNode]=!0,PI(t,e,i,s,o,f),s}r(vc,"handleForm");function xf(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(xf,"replaceAlias");function Pc(e,t){let n=xf(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(Pc,"getActionNameAndId");function mS(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:mS(a.pages,t)}}r(mS,"isFirstObjectPage");function Ac(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&&mS(o,t)&&!hc(c)&&uS(e,a),delete e.definitions[M.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${M.DefinitionName.ObjectPageFooter}<${M.DefinitionName.ObjectPageFooterActions}>`]}r(Ac,"addFooterActions");function Cc(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&&pa(e,!0,c),delete e.definitions[M.DefinitionName.GenericActions],delete e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`]}r(Cc,"addHeaderActions");function Ec(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(Ec,"addCommonHeaderSchema");function yS(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(yS,"determineEntitySetOfEntityType");var En=require("@sap-ux/vocabularies-types/vocabularies/UI");var ge=w(B());function po(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(po,"addEnumToSchema");function hS(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)}}po(o,n)}r(hS,"addEnumForValidAnnotations");function Ii(e,t,n){let i=t.definitions[n].properties[ge.SchemaTag.annotationPath],o=[En.UIAnnotationTerms.SelectionVariant,En.UIAnnotationTerms.SelectionPresentationVariant];hS(e,o,i)}r(Ii,"addEnumForSingleTabVariant");function bS(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[En.UIAnnotationTerms.SelectionVariant,En.UIAnnotationTerms.SelectionPresentationVariant];hS(n.entityType,o,i)}r(bS,"addEnumForMultiTabVariant");function TS(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),po(o,i)}r(TS,"addEnumForVariantEntitySet");function SS(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[ge.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}${ge.DefinitionName.RelatedFacetKeys}`},c]}}}}r(SS,"addDefinitionForRelatedFacetKeys");function fa(e){return e.replace("#","::")}r(fa,"getFacetKeyInSchema");function nr(e,t){return`${e}<${fa(t)}>`}r(nr,"getFacetDefinitionKey");function ht(e,t,n,i=!0,o){let a=t;if(i&&(a=nr(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 bc(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][ge.SchemaTag.isViewNode]=!0;let c;o===ge.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?ge.DefinitionName.ObjectPageToolBar:ge.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=`${ge.DefinitionName.Actions}<${Fe(o)}>`;t.definitions[p].properties.actions.$ref=F+f;let u=o.startsWith(ge.DefinitionName.LineItems)?ge.DefinitionName.Actions:ge.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===ge.DefinitionName.LineItems&&t.properties.footer){T=`${ge.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${F}${T}`;try{t.definitions[T]=JSON.parse(JSON.stringify(t.definitions[ge.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ge.DefinitionName.GenericFooter}))}let O=`${ge.DefinitionName.FooterActions}<${Fe(o)}>`;t.definitions[T].properties.actions.$ref=F+O;try{h=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[ge.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ge.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][ge.SchemaTag.annotationPath]=t.definitions[p][ge.SchemaTag.annotationPath]=s,h&&(t.definitions[T][ge.SchemaTag.annotationPath]=s))),{actions:m,footerActions:h,lineItemPath:s}}r(bc,"addCommonLineItemDefinitions");function vS(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(vS,"getDataTypeFromAnnotation");function uo(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=vS(e.$Type)),t}r(uo,"determineDataTypeOfTarget");function Cn(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=uo((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=vS(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(Cn,"determineDataType");function Tc(e,t){let n=Cn(t);n&&(e[ge.SchemaTag.dataType]=n)}r(Tc,"addDataTypeToDefinition");function en(e,t){return`${F}${nr(e,t)}`}r(en,"getFacetDefinitionLink");function PS(e,t,n,i){let o=0,a=!1,s="";do{let c=`${t}${o===0?"":"."+o}`;s=en(e,c),o++;let l=n.definitions[nr(e,c)],p=((l==null?void 0:l.annotationPath)??"").split("/").slice(0,-1).join("/");a=!l||p===i}while(!a);return s}r(PS,"getUniqueFacetDefinitionLink");function go(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${F}${i}`}r(go,"addDefinitionRef");function xc(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${ge.UIVOCABULARY}`);t=`/${n}/@${ge.UIVOCABULARY}${i}`}return t}r(xc,"getFacetAnnotationPath");function ir(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:en(a?l:c,t)};let p=ht(a?l:c,t,i,!0,a?l:void 0);pi(e,p,t),Ei(e,p,t),p[ge.SchemaTag.annotationPath]=e.annotationPath,p[ge.SchemaTag.isViewNode]=!0}r(ir,"handleAddressContact");function If(e,t,n){typeof e=="object"&&(e[t]=n)}r(If,"updateSchemaProperty");function ua(e,t,n=Fe("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${ge.DefinitionName.Fields4Dialog}${n}`];If(o.properties.fields.items,"enum",i)}r(ua,"addFieldsType");function CI(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(CI,"findFirstSchemaDefinitionKey");function Of(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=oa(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=CI(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(Of,"getEnumEntry");function AS(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=Of(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];If(c,"oneOf",o)}else If(a,"oneOf",o)}r(AS,"addDescriptiveEnumDefinition");function fo(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(fo,"getActionKey");function Sc(e,t,n){var i,o,a;try{if(e.Value)t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.value,value:so(e.Value)}];else if(e.$Type===En.UIAnnotationTypes.DataFieldWithAction||e.$Type===En.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=fo(e.Action,!0);t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.action,value:s}],c&&(t[n][ge.SchemaTag.target]=c)}else if(e.$Type===En.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=fo(e.Target.value,!1);t[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.target,value:aa(s)}],t[n][ge.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===En.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===En.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=fo(s,!0);t[n][ge.SchemaTag.keys]=[{name:"SemanticObject",value:e[ge.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][ge.SchemaTag.target]=l)}}catch{return}}r(Sc,"addKeyToDefinition");function CS(e,t){e[ge.SchemaTag.messages]||(e[ge.SchemaTag.messages]=[]),Array.isArray(e[ge.SchemaTag.messages])&&e[ge.SchemaTag.messages].push({text:t})}r(CS,"addMessageToSchema");var da=w(B());var ES=[{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 IS="1.84.122";var OS={name:"@sap/ux-specification",version:IS,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.5","@sap-ux/edmx-parser":"0.9.5","@sap/ux-specification-types":"1.84.122","@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.5.2",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 Oi=class Oi{constructor(){Oi.distTagsOfSpec.length===0&&(Oi.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Oi.distTagsOfSpec=[]}getSpecVersion(){return IS}getDistTagsOfVersion(){let t=[],n=ES,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});k(n,{severity:da.LogSeverity.Info,message:o,location:{path:da.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Oi.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=R.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:da.LogSeverity.Warning,message:o,location:{path:da.MANIFESTPATH}})}}};r(Oi,"DistTagEvaluator"),Oi.distTagsOfSpec=[];var or=Oi;var Q=w(B());var ut=w(B());var Li=w(B());var Ff=class Ff{constructor(t,n,i,o){this.unhandledControllers=[];let a=Ye(Li.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!==Li.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[`${Li.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[Li.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(Ff,"AppProvider");var Fi=Ff;var Ee=w(B());var ga=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"),FS=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"),LS=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 Lf(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Lf,"getNewPageTemplate");function II(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(II,"findPageInManifest");function OI(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Lf(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Lf(e[t].pageType)}),!Array.isArray(n.pages))){let i=II(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Lf(e[t].pageType)),Vf(t,e,i)}}r(OI,"transformPageFromAssociation");function FI(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)===ga.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===ga.PageTypeV2.ListReport||n.pageType===ga.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(FI,"deletePage");function Vf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===ga.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)OI(t,o,n);Array.isArray(n.pages)||FI(n,t,i)}}r(Vf,"transformPageToNewManifestV2");var yv=w(Ya());var yd={};Ko(yd,{ALPAnalyticalTable:()=>mu,ALPGridTable:()=>gu,ALPResponsiveTable:()=>du,Action:()=>Tu,AnalyticalCard:()=>Ta,AnalyticalCardSettings:()=>Lc,AnalyticalCardSettingsv4:()=>$f,AnalyticalListPageFilterBar:()=>Qf,AnalyticalTable:()=>uu,BaseCustomSection:()=>Rr,ChartSettings:()=>$u,ChartSettingsType:()=>Df,CommonCardSettings:()=>Ri,CommonHeaderFacetSettings:()=>xo,CommonTableSettings:()=>$i,CommonTableSettingsForSections:()=>Vo,CreateWithFilters:()=>ru,CustomCard:()=>jf,DataLoadSettings:()=>su,DateRange:()=>Bf,DefaultSpanObject:()=>Rf,FRAGMENT_DEFINITION:()=>Xn,Field:()=>_f,FieldForAction:()=>qf,Fields4Dialog:()=>cu,Fields4DialogOP:()=>pd,FooterAction:()=>vu,FormAction:()=>Jf,GlobalChartSettings:()=>cd,GlobalTableSettings:()=>gd,GridTable:()=>yu,HeaderAction:()=>ku,HeaderActionStandard:()=>xu,HeaderSections:()=>Wu,KPISettings:()=>Mu,LinkListCardSettings:()=>Uf,LinklistCard:()=>dr,ListCard:()=>ba,ListCardSettings:()=>wf,ListReportFilterBar:()=>jc,ObjectPageAnalyticalTable:()=>fd,ObjectPageChart:()=>sd,ObjectPageCustomSectionFragment:()=>jr,ObjectPageCustomSectionView:()=>wr,ObjectPageFooterAction:()=>Ku,ObjectPageFooterActionStandard:()=>Ou,ObjectPageGridTable:()=>ud,ObjectPageHeader:()=>Uu,ObjectPageHeaderActionStandard:()=>Iu,ObjectPageHeaderSectionAddress:()=>Gu,ObjectPageHeaderSectionChart:()=>Bu,ObjectPageHeaderSectionDataPoint:()=>Hu,ObjectPageHeaderSectionForm:()=>_u,ObjectPageLayout:()=>Ju,ObjectPageResponsiveTable:()=>No,ObjectPageSectionAddressV2:()=>ed,ObjectPageSectionChartV2:()=>Yu,ObjectPageSectionContactV2:()=>td,ObjectPageSectionFormV2:()=>zu,ObjectPageSectionTableV2:()=>Zu,ObjectPageSectionV2:()=>qu,ObjectPageSubSectionChartV2:()=>od,ObjectPageSubSectionContactV2:()=>ad,ObjectPageSubSectionFormV2:()=>id,ObjectPageSubSectionTableV2:()=>rd,ObjectPageSubSectionV2:()=>nd,ObjectPageToolBarAction:()=>md,ObjectPageTreeTable:()=>dd,QuickVariantSelection:()=>lu,QuickVariantSelectionOP:()=>ld,QuickVariantSelectionX:()=>pu,ResponsiveTable:()=>vo,SAP_UI_TABLE:()=>wc,SaveAndEditOP:()=>Eu,SelectionFieldDateSettings:()=>Gf,SelectionFields:()=>Wf,Share:()=>Pu,ShareOP:()=>Au,StackCard:()=>ur,StackCardSettings:()=>Mf,TableALP:()=>Ca,TableCard:()=>Sa,TableCardSettings:()=>kf,TableColumn:()=>Vu,TableColumnAction:()=>nl,TableColumnActionIntentBased:()=>Nu,TableCustomColumn:()=>Du,ToolBar:()=>ju,ToolBarAction:()=>Su,TreeTable:()=>fu,UpAndDownNavigationOP:()=>Cu,buildIntentBasedActionId:()=>Fu,deleteColumnFromFragment:()=>Uc,deleteType:()=>xa,exportColorPalette:()=>RS,exportCreateParametersFields:()=>Qc,exportCustomColumnsToFragment:()=>au,exportDateSettings:()=>MS,exportDateSettingsField:()=>US,exportDefaultSpan:()=>jS,exportType:()=>Ea,getChartSectionControlId:()=>fv,getContactSubSectionControlId:()=>dv,getCustomColumnPath:()=>kc,getFormSectionControlId:()=>pv,getRootCustomColumnFromFragmentJSON:()=>hr,getSectionControlId:()=>Fo,getSmartChartControlId:()=>xr,getSmartTableControlId:()=>So,getSubSectionControlId:()=>uv,getTableSectionControlId:()=>lv,importCreateParameters:()=>Wc,importDateSettings:()=>Kf});var It=w(B());var le=r(e=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),mo=r(e=>le(e)+"/tableSettings","getTableSettingPathV2"),VS=r(e=>le(e)+"/chartSettings","getChartSettingPathV2"),NS=r(e=>le(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 yo=r((e,t)=>`${It.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Fc=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(Fc(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ho=r(e=>Rt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),xn=r((e,t,n)=>{let i=[];i.push(Fc(e));let o=n.replace(It.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),ln=r((e,t,n)=>xn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),DS=r((e,t,n)=>xn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Nf=r(()=>`sap.ui5/extends/extensions/${It.v2.SAPUI5_VIEW_EXTENSION}/${It.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),gi=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),`${Nf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Oc=class Oc{};r(Oc,"ApplicationV2"),d([_e("settings")],Oc.prototype,"settings",2);var Ic=Oc,Qn=class Qn{};r(Qn,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Qn.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Qn.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Qn.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.50.0"})],Qn.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.46.0"})],Qn.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>It.GENERICAPPSETTINGS,"path")}}),S({since:"1.74.0"})],Qn.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Qn.prototype,"flexEnabled",2);var Vi=Qn;var ar=w(B());function LI(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=ar.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ar.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ar.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(LI,"importColorPalette");function RS(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ar.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(RS,"exportColorPalette");function jS(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(jS,"exportDefaultSpan");var Vc=class Vc{};r(Vc,"ChartSettingsType"),d([g({manifest:{path:r(()=>nt()+"/chartSettings","path")}})],Vc.prototype,"showDataLabel",2);var Df=Vc,Ni=class Ni{};r(Ni,"DefaultSpanObject"),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"cols",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"rows",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Ni.prototype,"minimumSubTitleRow",2);var Rf=Ni,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:jS}})],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 Ri=Be,ma=class ma{};r(ma,"CustomCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"template",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ma.prototype,"settings",2);var jf=ma,Di=class Di extends Ri{};r(Di,"ListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],Di.prototype,"listType",2);var wf=Di,rr=class rr{};r(rr,"ListCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],rr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],rr.prototype,"template",2);var ba=rr,In=class In extends Ri{};r(In,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"navigation",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>J(t),"path"),import:LI,export:RS}})],In.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>J(t),"path")}})],In.prototype,"bEnableStableColors",2);var Lc=In,Nc=class Nc extends Lc{};r(Nc,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>J(t),"path")}})],Nc.prototype,"measureAggregate",2);var $f=Nc,sr=class sr{};r(sr,"AnalyticalCard"),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 Ta=sr,ya=class ya extends Ri{};r(ya,"StackCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"itemText",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ya.prototype,"objectStreamCardsSettings",2);var Mf=ya,cr=class cr{};r(cr,"StackCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],cr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],cr.prototype,"template",2);var ur=cr,ha=class ha extends Ri{};r(ha,"LinkListCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>J(t),"path")}})],ha.prototype,"staticContent",2);var Uf=ha,lr=class lr{};r(lr,"LinklistCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],lr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],lr.prototype,"template",2);var dr=lr,pr=class pr extends Ri{};r(pr,"TableCardSettings"),d([g({manifest:{path:r(t=>J(t),"path")}})],pr.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>J(t),"path")}})],pr.prototype,"enableAddToInsights",2);var kf=pr,fr=class fr{};r(fr,"TableCard"),d([g({manifest:{path:r(t=>J(t),"path")}})],fr.prototype,"model",2),d([g({manifest:{path:r(t=>J(t),"path")}})],fr.prototype,"template",2);var Sa=fr;var wS=w(B());var VI=r((e,t,n,i,o)=>{let a=yt(n[1],o),s=n.slice(-1)[0];return Qe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Dc=class Dc{};r(Dc,"Field"),d([g({flex:{controlId:VI,controlType:r(()=>wS.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Ie})],Dc.prototype,"visible",2);var _f=Dc;var To=w(B());function Kf(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(Kf,"importDateSettings");function MS(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(MS,"exportDateSettings");function NI(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(NI,"importDateSettingsField");function US(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(US,"exportDateSettingsField");var va=class va{};r(va,"DateRange"),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],va.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path"),import:Kf,export:MS}}),S({since:"1.77.0"})],va.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>le(t)+To.DATESETTINGSPATH,"path")}}),S({since:"1.77.0"})],va.prototype,"exclude",2);var Bf=va,Rc={controlId:Qe,controlType:r(()=>To.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},Hf={path:r((e,t,n)=>`${le(e)}${To.DATESETTINGSPATH}/fields/${n}`,"path")},$S={...Hf,import:NI,export:US},bo=class bo{};r(bo,"SelectionFieldDateSettings"),d([g({manifest:$S}),S({since:"1.77.0"})],bo.prototype,"selectedValues",2),d([g({manifest:Hf}),S({since:"1.77.0"})],bo.prototype,"exclude",2),d([g({manifest:Hf}),S({since:"1.77.0"})],bo.prototype,"customDateRangeImplementation",2),d([g({manifest:$S}),S({since:"1.77.0"})],bo.prototype,"filter",2);var Gf=bo,Xf=class Xf{};r(Xf,"SelectionFields");var Wf=Xf,On=class On{};r(On,"ListReportFilterBar"),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"})],On.prototype,"smartVariantManagement",2),d([g({flex:Rc}),S({since:"1.40.0"})],On.prototype,"liveMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],On.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.52.0"})],On.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>le(t)+"/filterSettings","path"),import:Kf}}),S({since:"1.77.0"})],On.prototype,"dateSettings",2),d([g({flex:Rc}),S({since:"1.28.0"})],On.prototype,"showClearOnFB",2),d([g({flex:Rc}),S({since:"1.38.0"})],On.prototype,"showFilterConfiguration",2),d([g({flex:Rc}),S({since:"1.28.0"})],On.prototype,"showRestoreOnFB",2);var jc=On,gr=class gr extends jc{};r(gr,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>le(t),"path")}})],gr.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],gr.prototype,"filterDefaultsFromSelectionVariant",2);var Qf=gr;var pn=w(B());var Kn=r((e,t,n,i,o)=>{if(i()===pn.ControlType.Button){let a=n[n.length-1],s=yt(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Qe(e,t)},"getFormActionButtonId"),ji=class ji{};r(ji,"FormAction"),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_},generate:Ie})],ji.prototype,"visible",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"tooltip",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"icon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],ji.prototype,"activeIcon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}}),S({since:"1.73.0"})],ji.prototype,"type",2);var Jf=ji,wi=class wi{};r(wi,"FieldForAction"),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_},generate:Ie})],wi.prototype,"visible",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"tooltip",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"icon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}})],wi.prototype,"activeIcon",2),d([g({flex:{controlId:Kn,controlType:r(()=>pn.ControlType.Button,"controlType"),createFlexChange:_}}),S({since:"1.73.0"})],wi.prototype,"type",2);var qf=wi;var Ve=w(B()),Fn=w(Ya());var eu=require("path"),qI=w(B()),YS=w(zS()),ZS=require("fs");var zI=(0,eu.join)(__dirname,"templates");var YI=r((e,t)=>{let n=(0,ZS.readFileSync)(e,"utf8");return(0,YS.render)(n,t)},"renderTemplate");var tu=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 YI((0,eu.join)(zI,t+".xml"),n)},"getSingleColumnContent"),nu=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=tu(i,t);n=n+`
|
|
83
83
|
`+o}return n+`
|
|
84
84
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),iu=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 $c=require("path");var Xn="core:FragmentDefinition",wc="sap.ui.table",ou=new Map([[Le.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Le.ViewTemplateType.TreeTableColumnsExtension,{namespace:wc,name:"Column"}],[Le.ViewTemplateType.GridTableColumnsExtension,{namespace:wc,name:"Column"}],[Le.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:wc,name:"AnalyticalColumn"}]]),ZI=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]]),tv={type:"element",name:"Text",attributes:{text:"Placeholder"}},eO=JSON.stringify(tv);function tO(e,t){var i;let n=t?(i=e==null?void 0:e[Xn])==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(tO,"getFragmentNamespaces");function ev(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(ev,"getTagName");function Mc(e,t,n=e){let i=tO(n,!!(t||n!==e));if(t){let o=ou.get(t);return ev(o,i.get(o.namespace))}else{let o=ou.keys();for(let a of o){let s=ou.get(a),c=i?ev(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(Mc,"getTagNameFromFragmentJSON");function hr(e,t=e){let n=Mc(e,void 0,t);return e[n]}r(hr,"getRootCustomColumnFromFragmentJSON");function nO(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(nO,"addP13nData");function nv(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=nO(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(nv,"handleFragmentColumn");function iO(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($c.sep);if(p[p.length-1]===c){let f=JSON.parse((0,Fn.xml2json)(l.fileContent,{compact:!0}));try{let u=Mc(f[Xn]);u&&(delete f[Xn][u],l.fileContent=(0,Fn.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(iO,"deleteColumnsFromFragment");function iv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===eO&&(e.splice(n,1),t-=1,t===0));n++);}r(iv,"deleteNumberOfCells");function oO(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,Fn.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&iv(c.elements[0].elements,l.length),s.fileContent=(0,Fn.json2xml)(JSON.stringify(c),{spaces:4});break}}r(oO,"deleteCellsFromFragment");function Uc(e,t,n,i){if(i){iO(e,i,t,n);let o=t.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&oO(a,i,n)}}r(Uc,"deleteColumnFromFragment");function aO(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(tv)}r(aO,"addNewColumnsInFragment");function rO(e,t){let n=JSON.parse((0,Fn.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)aO(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;iv(a,o)}e.fileContent=(0,Fn.json2xml)(JSON.stringify(n),{spaces:4})}}r(rO,"updateNonEmptyCellsFragment");function sO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split($c.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Le.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=iu(n):rO(o,n);break}}return i}r(sO,"updateCellsFragment");function cO(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){k(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,$c.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),b=n.reduce((T,F)=>F.cellsFragmentName?F:T);b&&b.cellsFragmentName?(m.fragmentName=s=b.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):VS(c,u)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(cO,"exportCustomColumnsToManifest");function lO(e,t,n,i,o){let a=tu(e,t);if(a){let s=JSON.parse((0,Fn.xml2json)(a,{compact:!0})),c=hr(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(lO,"insertNewColumnInFragment");function pO(e,t){let n=[];for(let i=0;i<e.length;i++)nv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(pO,"processCustomColumnInArray");function fO(e,t,n){if(e){if(Array.isArray(e))pO(e,t);else if(!nv(e,t)){let o=Mc(n[Xn]);o&&(delete n[Xn][o],e=void 0)}}return e}r(fO,"maintainExistingColumnInFragment");function uO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=lO(a,i,n,o,s)}return n}r(uO,"insertNewColumnsInFragment");function dO(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=nu(i,o);else{let l=JSON.parse((0,Fn.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=hr(l[Xn]),c=fO(c,i,l),c=uO(i,n,c,o,l);let f=Mc(l,o);l[Xn][f]=c;let u=JSON.stringify(l);u!==p&&(s.fileContent=(0,Fn.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(dO,"updateColumnsInFragment");function au(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:f}=cO(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=c.fragmentName,b=m.substr(i.length+1),T=b.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=dO(s,m,b,u,o),fe=!1;if(p?fe=sO(s,ne,n):fe=!0,!q){let ie={fileContent:nu(u,o),dataSourceUri:l,changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}if(!fe){let ie={fileContent:iu(n),dataSourceUri:l.replace(m,ne),changeIndicator:Le.ChangeIndicator.Deleted};e.fragments.push(ie)}}r(au,"exportCustomColumnsToFragment");var kc=r((e,t,n,i)=>{var l,p,f,u;if(!e)return;let o=ZI.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 So=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 Wc(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(Wc,"importCreateParameters");function Qc(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(Qc,"exportCreateParametersFields");function gO(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(gO,"exportVariants");function mO(e,t){t.variants&&(Object.keys(t.variants).length>0?gO(e,t):delete e.variants)}r(mO,"exportQuickVariantSelectionX");var _c=class _c{};r(_c,"CreateWithFilters"),d([g({manifest:{path:r(t=>le(t)+"/createWithFilters","path")}})],_c.prototype,"strategy",2);var ru=_c;function Sr(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(Sr,"importType");function Ea(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(Ea,"exportType");function xa(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(xa,"deleteType");var Bc=class Bc{};r(Bc,"DataLoadSettings"),d([g({manifest:{path:r(t=>NS(t),"path")}}),S({since:"1.75.2"})],Bc.prototype,"loadDataOnAppLaunch",2);var su=Bc,Hc=class Hc{};r(Hc,"Fields4Dialog"),d([g({manifest:{path:r(t=>mo(t)+"/createWithParameterDialog","path"),export:Qc}}),S({since:"1.77.0"})],Hc.prototype,"fields",2);var cu=Hc,br=class br{};r(br,"QuickVariantSelection"),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],br.prototype,"showCounts",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],br.prototype,"variants",2);var lu=br,Pa=class Pa{};r(Pa,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Pa.prototype,"showCounts",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Pa.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path"),export:mO}}),S({since:"1.48.0"})],Pa.prototype,"variants",2);var pu=Pa,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=>mo(t),"path"),import:Wc}}),S({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Qe,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.38.0"})],Ot.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.38.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.75.2"})],Ot.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.42.0"})],Ot.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ot.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var $i=Ot,Jn=class Jn extends $i{};r(Jn,"ResponsiveTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Jn.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],Jn.prototype,"createWithFilters",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_},generate:Wn}),S({since:"1.52.0"})],Jn.prototype,"popinLayout",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}})],Jn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.77.0"})],Jn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Jn.prototype,"showDraftToggle",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Jn.prototype,"growingThreshold",2);var vo=Jn,Tr=class Tr extends $i{};r(Tr,"TreeTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Tr.prototype,"type",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Tr.prototype,"showDraftToggle",2);var fu=Tr,un=class un extends $i{};r(un,"AnalyticalTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],un.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"qualifier",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],un.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"autoHide",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.78.0"})],un.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],un.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],un.prototype,"showDraftToggle",2);var uu=un,qn=class qn extends $i{};r(qn,"TableALP"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],qn.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],qn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.78.0"})],qn.prototype,"allFiltersAsInParameters",2);var Ca=qn,Gc=class Gc extends Ca{};r(Gc,"ALPResponsiveTable"),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Gc.prototype,"growingThreshold",2);var du=Gc,hu=class hu extends Ca{};r(hu,"ALPGridTable");var gu=hu,bu=class bu extends Ca{};r(bu,"ALPAnalyticalTable");var mu=bu,Aa=class Aa extends $i{};r(Aa,"GridTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Aa.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],Aa.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Aa.prototype,"showDraftToggle",2);var yu=Aa;var vr=w(B());var yO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}`},"getActionButtonId"),hO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}template::${i}`},"getStandardActionButtonId"),bO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}${gc}${i}`},"getStandardFooterActionOPButtonId"),Fu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Wt(n);return`${e}action::${i}::${Ht(o)}`},"buildIntentBasedActionId"),TO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Mi={controlId:yO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Pr={controlId:hO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},ov={controlId:bO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Kc={controlId:TO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Po=class Po{};r(Po,"Action"),d([g({flex:Mi})],Po.prototype,"tooltip",2),d([g({flex:Mi})],Po.prototype,"icon",2),d([g({flex:Mi})],Po.prototype,"activeIcon",2),d([g({flex:Mi})],Po.prototype,"type",2);var Tu=Po,Ao=class Ao{};r(Ao,"ToolBarAction"),d([g({flex:Mi})],Ao.prototype,"tooltip",2),d([g({flex:Mi})],Ao.prototype,"icon",2),d([g({flex:Mi})],Ao.prototype,"activeIcon",2),d([g({flex:Mi})],Ao.prototype,"type",2);var Su=Ao,Co=class Co{};r(Co,"FooterAction"),d([g({flex:Kc})],Co.prototype,"tooltip",2),d([g({flex:Kc})],Co.prototype,"icon",2),d([g({flex:Kc})],Co.prototype,"activeIcon",2),d([g({flex:Kc})],Co.prototype,"type",2);var vu=Co,Xc=class Xc{};r(Xc,"Share"),d([g({flex:Pr})],Xc.prototype,"visible",2);var Pu=Xc,Jc=class Jc{};r(Jc,"ShareOP"),d([g({flex:Pr})],Jc.prototype,"visible",2);var Au=Jc,qc=class qc{};r(qc,"UpAndDownNavigationOP"),d([g({flex:Pr})],qc.prototype,"visible",2);var Cu=qc,zc=class zc{};r(zc,"SaveAndEditOP"),d([g({flex:ov,generate:Ie})],zc.prototype,"visible",2);var Eu=zc,Yc=class Yc{};r(Yc,"HeaderActionStandard"),d([g({flex:Pr})],Yc.prototype,"visible",2);var xu=Yc,Zc=class Zc{};r(Zc,"ObjectPageHeaderActionStandard"),d([g({flex:Pr})],Zc.prototype,"visible",2);var Iu=Zc,el=class el{};r(el,"ObjectPageFooterActionStandard"),d([g({flex:ov})],el.prototype,"visible",2);var Ou=el;var Er=w(B());var SO=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"),vO=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"),PO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Vu={controlId:SO,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_},Ar={controlId:PO,controlType:r(()=>Er.ControlType.Button,"controlType"),createFlexChange:_},av={...Vu,controlId:vO},tl={...Ar,controlId:Fu},Cr=class Cr{};r(Cr,"TableColumn"),d([g({flex:{controlId:Sf,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_}})],Cr.prototype,"width",2),d([g({flex:{controlId:Sf,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:Wn})],Cr.prototype,"hAlign",2);var Lu=Cr,mi=class mi{};r(mi,"TableColumnAction"),d([g({flex:Vu})],mi.prototype,"width",2),d([g({flex:Vu,generate:Wn})],mi.prototype,"hAlign",2),d([g({flex:Ar})],mi.prototype,"tooltip",2),d([g({flex:Ar})],mi.prototype,"icon",2),d([g({flex:Ar})],mi.prototype,"activeIcon",2),d([g({flex:Ar})],mi.prototype,"type",2);var nl=mi,yi=class yi extends nl{};r(yi,"TableColumnActionIntentBased"),d([g({flex:av})],yi.prototype,"width",2),d([g({flex:av,generate:Wn})],yi.prototype,"hAlign",2),d([g({flex:tl})],yi.prototype,"tooltip",2),d([g({flex:tl})],yi.prototype,"icon",2),d([g({flex:tl})],yi.prototype,"activeIcon",2),d([g({flex:tl})],yi.prototype,"type",2);var Nu=yi,Ru=class Ru{};r(Ru,"TableCustomColumn");var Du=Ru;var wu=class wu{};r(wu,"ToolBar");var ju=wu;var Eo=w(B());var xr=r(e=>e+Eo.PropertyName.chart,"getSmartChartControlId"),Ui=class Ui{};r(Ui,"ChartSettings"),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showLegendButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showDownloadButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.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:_}})],Ui.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>LS(t),"path")}}),S({since:"1.81.0"})],Ui.prototype,"showDataLabel",2);var $u=Ui;var hi=class hi{};r(hi,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"groupId",2);var Mu=hi;var rv=w(B());var AO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Qe(e,n)},"getAvatarControlId"),ki=class ki{};r(ki,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],ki.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],ki.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],ki.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"}),ye("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ki.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:AO,controlType:r(()=>rv.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Ie})],ki.prototype,"displayShape",2);var Uu=ki;var il=w(B());var CO=r((e,t,n,i)=>{if(i()===il.ControlType.Button||i()===il.ControlType.HeaderAction){let o=n[2];return`${e}action::${Ht(o)}`}return Qe(e,t)},"getActionButtonId"),Ir={controlId:CO,controlType:r(()=>il.ControlType.HeaderAction,"controlType"),createFlexChange:_},_i=class _i{};r(_i,"HeaderAction"),d([g({flex:Ir,generate:Ie})],_i.prototype,"visible",2),d([g({flex:Ir})],_i.prototype,"tooltip",2),d([g({flex:Ir})],_i.prototype,"icon",2),d([g({flex:Ir})],_i.prototype,"activeIcon",2),d([g({flex:Ir})],_i.prototype,"type",2);var ku=_i;var Or=w(B());var ll="header::headerEditable::",EO=r((e,t,n,i,o)=>`${e}${ll}${o}`,"getDataPointHeaderSectionId"),xO=r((e,t,n,i,o)=>`${e}${ll}${o}::ContactAddress`,"getAddressHeaderSectionId"),IO=r((e,t,n,i,o)=>`${e}${ll}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),sv=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(Or.FACETTITLEPREFIX)?o.split(Or.FACETTITLEPREFIX)[1]:a;return`${e}${ll}${s}::Form`},"getFormHeaderSectionId"),Fr={controlType:r(()=>Or.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},ol=class ol{};r(ol,"CommonHeaderFacetSettings"),d([g({flex:{...Fr,controlId:sv},generate:Ie})],ol.prototype,"visible",2);var xo=ol,al=class al extends xo{};r(al,"ObjectPageHeaderSectionForm"),d([g({flex:{...Fr,controlId:sv}})],al.prototype,"visible",2);var _u=al,rl=class rl extends xo{};r(rl,"ObjectPageHeaderSectionChart"),d([g({flex:{...Fr,controlId:IO}})],rl.prototype,"visible",2);var Bu=rl,sl=class sl extends xo{};r(sl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...Fr,controlId:EO}})],sl.prototype,"visible",2);var Hu=sl,cl=class cl extends xo{};r(cl,"ObjectPageHeaderSectionAddress"),d([g({flex:{...Fr,controlId:xO}})],cl.prototype,"visible",2);var Gu=cl,Qu=class Qu{};r(Qu,"HeaderSections");var Wu=Qu;var Xu=w(B());var OO=r((e,t,n,i)=>{if(i()===Xu.ControlType.Button){let{actionId:o}=Wt(n);return`${e}action::${Ht(o)}::Determining`}return Qe(e,t)},"getFooterActionButtonId"),Vr={controlId:OO,controlType:r(()=>Xu.ControlType.Button,"controlType"),createFlexChange:_},Bi=class Bi{};r(Bi,"ObjectPageFooterAction"),d([g({flex:Vr,generate:Ie})],Bi.prototype,"visible",2),d([g({flex:Vr})],Bi.prototype,"tooltip",2),d([g({flex:Vr})],Bi.prototype,"icon",2),d([g({flex:Vr})],Bi.prototype,"activeIcon",2),d([g({flex:Vr})],Bi.prototype,"type",2);var Ku=Bi;var Lr=w(B());var pl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Qe(e,n)},"getControlId"),Io=class Io{};r(Io,"ObjectPageLayout"),d([g({flex:{controlId:pl,controlType:r(()=>Lr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Ie})],Io.prototype,"showHeaderContent",2),d([g({flex:{controlId:pl,controlType:r(()=>Lr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Io.prototype,"showAnchorBar",2),d([g({flex:{controlId:pl,controlType:r(()=>Lr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Io.prototype,"useIconTabBar",2),d([g({flex:{controlId:pl,controlType:r(()=>Lr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),S({since:"1.34.0"})],Io.prototype,"alwaysShowContentHeader",2);var Ju=Io;var cv=w(B());var Oo=class Oo{};r(Oo,"BaseCustomSection"),d([g({manifest:{path:gi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),S({since:"1.52.0"})],Oo.prototype,"relatedFacet",2),d([g({manifest:{path:gi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),S({since:"1.52.0"})],Oo.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>gi(t,{},i,cv.ManifestSection.generic),"path")}}),S({since:"1.52.0"})],Oo.prototype,"title",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Oo.prototype,"className",2);var Rr=Oo,Nr=class Nr extends Rr{};r(Nr,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Nr.prototype,"fragmentName",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Nr.prototype,"type",2);var jr=Nr,Dr=class Dr extends Rr{};r(Dr,"ObjectPageCustomSectionView"),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Dr.prototype,"viewName",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Dr.prototype,"type",2);var wr=Dr;var Xt=w(B());var lv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),Xt.DefinitionName.Table];return Qe(e,s)},"getTableSectionControlId"),pv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"FormGroup"];return Qe(e,s)},"getFormSectionControlId"),fv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Chart"];return Qe(e,s)},"getChartSectionControlId"),Fo=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Section"];return Qe(e,s)},"getSectionControlId"),uv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"SubSection"];return Qe(e,s)},"getSubSectionControlId"),dv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"ContactsList"];return Qe(e,s)},"getContactSubSectionControlId"),fl=class fl{};r(fl,"ObjectPageSectionV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],fl.prototype,"visible",2);var qu=fl,ul=class ul{};r(ul,"ObjectPageSectionFormV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],ul.prototype,"visible",2);var zu=ul,dl=class dl{};r(dl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],dl.prototype,"visible",2);var Yu=dl,gl=class gl{};r(gl,"ObjectPageSectionTableV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],gl.prototype,"visible",2);var Zu=gl,ml=class ml{};r(ml,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],ml.prototype,"visible",2);var ed=ml,yl=class yl{};r(yl,"ObjectPageSectionContactV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],yl.prototype,"visible",2);var td=yl,hl=class hl{};r(hl,"ObjectPageSubSectionV2"),d([g({flex:{controlId:uv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Ie})],hl.prototype,"visible",2);var nd=hl,bl=class bl{};r(bl,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:pv,controlType:r(()=>Xt.ControlType.Group,"controlType"),createFlexChange:_},generate:Ie})],bl.prototype,"visible",2);var id=bl,Tl=class Tl{};r(Tl,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:fv,controlType:r(()=>Xt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Ie})],Tl.prototype,"visible",2);var od=Tl,Sl=class Sl{};r(Sl,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:dv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Ie})],Sl.prototype,"visible",2);var ad=Sl,vl=class vl{};r(vl,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:lv,controlType:r(()=>Xt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Ie})],vl.prototype,"visible",2);var rd=vl;var Pl=class Pl{};r(Pl,"ObjectPageChart"),d([g({manifest:{path:DS}}),S({since:"1.78.0"})],Pl.prototype,"variantManagement",2);var sd=Pl,Al=class Al{};r(Al,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Rt(t)+"/chartSettings","path")}}),S({since:"1.78.0"})],Al.prototype,"variantManagement",2);var cd=Al;var tn=w(B());var Vo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=tn.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=yt(a[0],o),Qe(e,a)},"getSmartTableControlId"),$r=class $r{};r($r,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>xn(t,n,i)+tn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],$r.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>xn(t,n,i)+tn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],$r.prototype,"variants",2);var ld=$r,Cl=class Cl{};r(Cl,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>ln(t,n,i)+"/createWithParameterDialog","path"),export:Qc}}),S({since:"1.77.0"})],Cl.prototype,"fields",2);var pd=Cl,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:ln,import:Wc}}),S({since:"1.77.0"})],Ft.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.28.0"})],Ft.prototype,"editable",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.95.0"}),ye("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ft.prototype,"showPasteButton",2),d([g({manifest:{path:ln}}),S({since:"1.54.0"})],Ft.prototype,"multiSelect",2),d([g({manifest:{path:ln}}),S({since:"1.70.0"})],Ft.prototype,"selectAll",2),d([g({manifest:{path:ln}}),S({since:"1.70.0"})],Ft.prototype,"selectionLimit",2),d([g({manifest:{path:xn}}),S({since:"1.63.0"})],Ft.prototype,"quickVariantSelection",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.26.0"})],Ft.prototype,"useExportToExcel",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.50.0"})],Ft.prototype,"exportType",2),d([g({manifest:{path:xn}}),S({since:"1.48.5"}),ye("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ft.prototype,"createMode",2),d([g({manifest:{path:xn}}),S({since:"1.61.0"})],Ft.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:ln}}),S({since:"1.78.0"})],Ft.prototype,"variantManagement",2),d([_e("toolBar")],Ft.prototype,"toolBar",2);var Lo=Ft,Hi=class Hi extends Lo{};r(Hi,"ObjectPageResponsiveTable"),d([g({manifest:{path:ln}})],Hi.prototype,"type",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_}})],Hi.prototype,"includeItemInSelection",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_},generate:Ie}),S({since:"1.52.0"})],Hi.prototype,"popinLayout",2),d([g({manifest:{path:ln}}),S({since:"1.77.0"})],Hi.prototype,"inlineDelete",2),d([g({flex:{controlId:Vo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Hi.prototype,"growingThreshold",2);var No=Hi,Mr=class Mr extends Lo{};r(Mr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:ln}})],Mr.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],Mr.prototype,"condensedTableLayout",2);var fd=Mr,Ur=class Ur extends Lo{};r(Ur,"ObjectPageGridTable"),d([g({manifest:{path:ln}})],Ur.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],Ur.prototype,"condensedTableLayout",2);var ud=Ur,kr=class kr extends Lo{};r(kr,"ObjectPageTreeTable"),d([g({manifest:{path:ln}})],kr.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],kr.prototype,"condensedTableLayout",2);var dd=kr,bi=class bi{};r(bi,"GlobalTableSettings"),d([g({manifest:{path:ho}}),S({since:"1.70.0"})],bi.prototype,"selectAll",2),d([g({manifest:{path:ho}}),S({since:"1.78.0"})],bi.prototype,"variantManagement",2),d([g({manifest:{path:ho}})],bi.prototype,"type",2),d([g({manifest:{path:ho}}),S({since:"1.54.0"})],bi.prototype,"multiSelect",2),d([g({manifest:{path:ho}}),S({since:"1.67.0"})],bi.prototype,"condensedTableLayout",2),d([g({manifest:{path:ho}}),S({since:"1.77.0"})],bi.prototype,"inlineDelete",2);var gd=bi;var gv=w(B());var FO=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"),_r={controlId:FO,controlType:r(()=>gv.ControlType.Button,"controlType"),createFlexChange:_},Gi=class Gi{};r(Gi,"ObjectPageToolBarAction"),d([g({flex:_r,generate:Ie})],Gi.prototype,"visible",2),d([g({flex:_r})],Gi.prototype,"tooltip",2),d([g({flex:_r})],Gi.prototype,"icon",2),d([g({flex:_r})],Gi.prototype,"activeIcon",2),d([g({flex:_r})],Gi.prototype,"type",2);var md=Gi;var jt=w(B());function hd(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(hd,"addFlexChangeToConfigTableColumn");function El(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(El,"addFlexChangeToConfigTable");function xl(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,b;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=(b=e.jsonSchema.definitions[`${T}<${o}>`])==null?void 0:b.properties[c.propertyId]}l&&hd(t.table,c,n,i)})}r(xl,"importFlexChangesOfColumn");function Wi(e){return e.replace("/","::")}r(Wi,"convertActionKey");function bd(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(bd,"convertSelector");function VO(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(VO,"addSmartFilterBarFlex");function LO(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}`,b=`${l[0]}:::${p}:::${f}`;i.set(m,o),i.set(o,b)}else i.set(u,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(LO,"filterActions");function NO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(NO,"addColumnActionConfigPart");function DO(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(DO,"getActionId");function RO(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=LO(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"&&NO(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(RO,"addActionFlex");function jO(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(jO,"addSmartChartFlex");function Il(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=bd(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{VO(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=DO(s);l&&RO(e,c,s,n,l);break}case Ee.ControlType.SmartChart:{jO(e,c,s,n);break}default:break}}catch(s){k(i,{severity:Ee.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}r(Il,"addFlex");function wO(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(wO,"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),sa(p,s,l,e),cc(c,s,f,o)}wO(l,e)}}r(ft,"transferSettingsOfObject");function Ol(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(Ol,"determineTableType");function mv(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(mv,"evaluateFragmentColumn");function $O(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($O,"determineCellsFragmentName");function MO(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,yv.xml2json)(e[0].fileContent,{compact:!0}))[Xn];try{let f=hr(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)mv(u,n,i,o,t,a,s);else mv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(MO,"analyzeFilteredFragments");function UO(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 b=$O(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{MO(F,n,e,s,f,l,b)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{xl(i,n,L.id,L,o)})}}}r(UO,"processViewExtensions");function Ia(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;UO(f,u,e,t,a)}}r(Ia,"addFragments");function Fl(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(Fl,"importHeaderActions");var Yn=w(B());var Br="sap.suite.ui.generic.template.ListReport";var hv="sap.suite.ui.generic.template.ListReport.view.ListReport";var Ue=w(B());function Do(e,t,n){var o;let i;for(let a in e){let s=e[a];if(ci((o=s.component)==null?void 0:o.name)===Ue.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Do(s.pages,t,n),i))return n.unshift(a),i}}r(Do,"findObjectPageV2");function Oa(e,t){var n;for(let i in e){let o=e[i];if(ci((n=o.component)==null?void 0:n.name)===Ue.PageTypeV2.ListReport)return t.push(i),o}}r(Oa,"findListReportPageV2");function Fa(e){if(!e.manifest[Ue.ManifestSection.generic]){k(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){k(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(Fa,"getV2Pages");function Va(e,t,n){var i;if(!e){k(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;k(t,{severity:Ue.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:o}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}}r(Va,"checkV2Page");function La(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),ci((i=a.component)==null?void 0:i.name)===Ue.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:Ue.LogSeverity.Error,message:R.t("NOALP"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}r(La,"findAnalyticalListPage");function Td(e,t){let n=e.split("|");return Ue.v2.SectionPosition[n[0]]&&n[1]===t}r(Td,"isAssociatedCustomSection");function bv(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)Td(o,t)&&(i[o]=n[o]);return i}r(bv,"findCustomSectionExtensions");function kO(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(kO,"removeEmptySettingsOfFooter");function _O(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(_O,"removeEmptySettingsOfFilterBar");function BO(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(BO,"removeEmptySettingsOfToolBar");function Vl(e){BO(e),_O(e),kO(e)}r(Vl,"removeEmptySettings");var He=w(B());var Sv=w(B());var Sd={};Ko(Sd,{ANNOERR:()=>rF,ANNOTATIONFILE:()=>sF,COMPONENTNOTDEFINED:()=>cF,CONTEXTPATHCOULDNOTBERESOLVED:()=>nF,ENTITYSETNOTFOUND:()=>tF,FLEXERROR:()=>bF,INCONSISTENTSCHEMA:()=>EF,INVALIDANCHOR:()=>TF,INVALIDTARGETDEFINITION:()=>vF,NOALP:()=>oF,NOBASEPATH:()=>WO,NOCHARTS:()=>uF,NOENTITYSET:()=>qO,NOENTITYTYPE4SET:()=>zO,NOFE:()=>KO,NOFRAGMENT:()=>SF,NOGENERICSCHEMA:()=>XO,NOID4SECTION:()=>PF,NOLINEITEMANDCHARTS:()=>dF,NOLINEITEMS:()=>fF,NOLR:()=>iF,NOPAGEFORENTITYSET:()=>JO,NOPAGES:()=>QO,NOPRESENTATIONVARIANT:()=>YO,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>ZO,NOPRESENTATIONVARIANTFORSPV:()=>eF,NOROUTING:()=>lF,NOROUTINGID:()=>hF,NOTARGET:()=>yF,NOTARGETS:()=>mF,NOTEMPLATE:()=>aF,NOUIANNOTATIONS:()=>pF,NOVISUALIZATIONS:()=>gF,TYPEERROR:()=>CF,UNEXISTING_ANNOTATION_PATH:()=>xF,UNKNOWNMINUI5VERSION:()=>GO,WRONGMINUI5VERSION:()=>HO,XMLPARSEFAILURE:()=>AF,default:()=>IF});var HO="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",GO="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",WO="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",QO="No pages found in manifest for app with id '{{- appId}}'",KO="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",XO="No generic schema found while generating page schema for {{- pageType}}",JO="No page found in manifest for entitySet '{{- entitySet}}'",qO="No entitySet defined for page '{{- pageName}}'",zO="No entityType could be found for the given entity set '{{- entitySetName}}'",YO="No PresentationVariant defined for '{{- key}}'",ZO="No PresentationVariant found for default SelectionPresentationVariant",eF="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",tF="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",nF="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",iF="No page found in manifest for list report",oF="No page found in manifest for analytical list page",aF="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",rF="Error while parsing annotation files",sF="Annotation file: '{{- file}}'",cF="Component name is not defined for page '{{- pageName}}'",lF="Incomplete manifest definition: no routing defined",pF="No UI Annotation defined for entity type '{{- entityType }}'",fF="UI.LineItem annotation has not been defined",uF="UI.Chart annotation has not been defined",dF="Neither UI.LineItem nor UI.Chart annotation has been defined",gF="Empty Collection for Visualizations",mF="Incomplete manifest definition: no targets defined",yF="Invalid reference: annotation target '{{- target}}' not found",hF="No page found in manifest for routingId '{{- routingId}}'",bF="Error while parsing flex change",TF="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",SF="fragmentName is undefined for columnKey '{{- columnKey}}'",vF="Invalid routing target definition in manifest: '{{- target}}'",PF="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",AF="Parsing of XML file failed with error - {{- error}}",CF="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",EF="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",xF="The annotation path doesn't exist.",IF={WRONGMINUI5VERSION:HO,UNKNOWNMINUI5VERSION:GO,NOBASEPATH:WO,NOPAGES:QO,NOFE:KO,NOGENERICSCHEMA:XO,NOPAGEFORENTITYSET:JO,NOENTITYSET:qO,NOENTITYTYPE4SET:zO,NOPRESENTATIONVARIANT:YO,NOPRESENTATIONVARIANTFORDEFAULTSPV:ZO,NOPRESENTATIONVARIANTFORSPV:eF,ENTITYSETNOTFOUND:tF,CONTEXTPATHCOULDNOTBERESOLVED:nF,NOLR:iF,NOALP:oF,NOTEMPLATE:aF,ANNOERR:rF,ANNOTATIONFILE:sF,COMPONENTNOTDEFINED:cF,NOROUTING:lF,NOUIANNOTATIONS:pF,NOLINEITEMS:fF,NOCHARTS:uF,NOLINEITEMANDCHARTS:dF,NOVISUALIZATIONS:gF,NOTARGETS:mF,NOTARGET:yF,NOROUTINGID:hF,FLEXERROR:bF,INVALIDANCHOR:TF,NOFRAGMENT:SF,INVALIDTARGETDEFINITION:vF,NOID4SECTION:PF,XMLPARSEFAILURE:AF,TYPEERROR:CF,INCONSISTENTSCHEMA:EF,UNEXISTING_ANNOTATION_PATH:xF};function Tv(e){e.addResourceBundle(e.language,"translation",Sd)}r(Tv,"initI18n");function qe(e="en"){R.init({resources:{en:{translation:Sv.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
86
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var $c=require("path");var Xn="core:FragmentDefinition",wc="sap.ui.table",ou=new Map([[Ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:wc,name:"Column"}],[Ve.ViewTemplateType.GridTableColumnsExtension,{namespace:wc,name:"Column"}],[Ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:wc,name:"AnalyticalColumn"}]]),ZI=new Map([[Ve.v2.FE_TEMPLATE_V2_LIST_REPORT,Ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Ve.v2.FE_TEMPLATE_V2_ALP,Ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),tv={type:"element",name:"Text",attributes:{text:"Placeholder"}},eO=JSON.stringify(tv);function tO(e,t){var i;let n=t?(i=e==null?void 0:e[Xn])==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(tO,"getFragmentNamespaces");function ev(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(ev,"getTagName");function Mc(e,t,n=e){let i=tO(n,!!(t||n!==e));if(t){let o=ou.get(t);return ev(o,i.get(o.namespace))}else{let o=ou.keys();for(let a of o){let s=ou.get(a),c=i?ev(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(Mc,"getTagNameFromFragmentJSON");function hr(e,t=e){let n=Mc(e,void 0,t);return e[n]}r(hr,"getRootCustomColumnFromFragmentJSON");function nO(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(nO,"addP13nData");function nv(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=nO(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(nv,"handleFragmentColumn");function iO(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]+Ve.FRAGMENTNAMEPART+a;for(let l of t){let p=l.dataSourceUri.split($c.sep);if(p[p.length-1]===c){let f=JSON.parse((0,Fn.xml2json)(l.fileContent,{compact:!0}));try{let u=Mc(f[Xn]);u&&(delete f[Xn][u],l.fileContent=(0,Fn.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(iO,"deleteColumnsFromFragment");function iv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===eO&&(e.splice(n,1),t-=1,t===0));n++);}r(iv,"deleteNumberOfCells");function oO(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let c=JSON.parse((0,Fn.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&iv(c.elements[0].elements,l.length),s.fileContent=(0,Fn.json2xml)(JSON.stringify(c),{spaces:4});break}}r(oO,"deleteCellsFromFragment");function Uc(e,t,n,i){if(i){iO(e,i,t,n);let o=t.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&oO(a,i,n)}}r(Uc,"deleteColumnFromFragment");function aO(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(tv)}r(aO,"addNewColumnsInFragment");function rO(e,t){let n=JSON.parse((0,Fn.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)aO(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;iv(a,o)}e.fileContent=(0,Fn.json2xml)(JSON.stringify(n),{spaces:4})}}r(rO,"updateNonEmptyCellsFragment");function sO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split($c.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=iu(n):rO(o,n);break}}return i}r(sO,"updateCellsFragment");function cO(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){k(o,{severity:Ve.LogSeverity.Error,message:R.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Ve.ChangeIndicator.Updated,l.fragmentName=u.fragmentName,l.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,$c.sep))+Ve.FRAGMENTNAMEPART+p}if(e.indexOf(Ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Ve.ChangeIndicator.Updated;let u=e.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),m=gt(c,u),h=n.reduce((T,O)=>O.cellsFragmentName?O:T);h&&h.cellsFragmentName?(m.fragmentName=s=h.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):LS(c,u)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(cO,"exportCustomColumnsToManifest");function lO(e,t,n,i,o){let a=tu(e,t);if(a){let s=JSON.parse((0,Fn.xml2json)(a,{compact:!0})),c=hr(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(lO,"insertNewColumnInFragment");function pO(e,t){let n=[];for(let i=0;i<e.length;i++)nv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(pO,"processCustomColumnInArray");function fO(e,t,n){if(e){if(Array.isArray(e))pO(e,t);else if(!nv(e,t)){let o=Mc(n[Xn]);o&&(delete n[Xn][o],e=void 0)}}return e}r(fO,"maintainExistingColumnInFragment");function uO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=lO(a,i,n,o,s)}return n}r(uO,"insertNewColumnsInFragment");function dO(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=Ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=nu(i,o);else{let l=JSON.parse((0,Fn.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=hr(l[Xn]),c=fO(c,i,l),c=uO(i,n,c,o,l);let f=Mc(l,o);l[Xn][f]=c;let u=JSON.stringify(l);u!==p&&(s.fileContent=(0,Fn.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(dO,"updateColumnsInFragment");function au(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:f}=cO(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]+Ve.FRAGMENTNAMEPART+f;let V=p==null?void 0:p.split("."),Y=V?V[V.length-1]:null,ne=Y?Y+Ve.FRAGMENTNAMEPART+f:null,q=dO(s,m,h,u,o),fe=!1;if(p?fe=sO(s,ne,n):fe=!0,!q){let ie={fileContent:nu(u,o),dataSourceUri:l,changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(ie)}if(!fe){let ie={fileContent:iu(n),dataSourceUri:l.replace(m,ne),changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(ie)}}r(au,"exportCustomColumnsToFragment");var kc=r((e,t,n,i)=>{var l,p,f,u;if(!e)return;let o=ZI.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 So=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 Wc(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(Wc,"importCreateParameters");function Qc(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(Qc,"exportCreateParametersFields");function gO(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(gO,"exportVariants");function mO(e,t){t.variants&&(Object.keys(t.variants).length>0?gO(e,t):delete e.variants)}r(mO,"exportQuickVariantSelectionX");var _c=class _c{};r(_c,"CreateWithFilters"),d([g({manifest:{path:r(t=>le(t)+"/createWithFilters","path")}})],_c.prototype,"strategy",2);var ru=_c;function Sr(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(Sr,"importType");function Ea(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(Ea,"exportType");function xa(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(xa,"deleteType");var Bc=class Bc{};r(Bc,"DataLoadSettings"),d([g({manifest:{path:r(t=>NS(t),"path")}}),S({since:"1.75.2"})],Bc.prototype,"loadDataOnAppLaunch",2);var su=Bc,Hc=class Hc{};r(Hc,"Fields4Dialog"),d([g({manifest:{path:r(t=>mo(t)+"/createWithParameterDialog","path"),export:Qc}}),S({since:"1.77.0"})],Hc.prototype,"fields",2);var cu=Hc,br=class br{};r(br,"QuickVariantSelection"),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],br.prototype,"showCounts",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],br.prototype,"variants",2);var lu=br,Pa=class Pa{};r(Pa,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Pa.prototype,"showCounts",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path")}}),S({since:"1.48.0"})],Pa.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>le(t)+it.QUICKVARPATHX,"path"),export:mO}}),S({since:"1.48.0"})],Pa.prototype,"variants",2);var pu=Pa,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=>mo(t),"path"),import:Wc}}),S({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Qe,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.38.0"})],Ot.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.48.0"})],Ot.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.38.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.75.2"})],Ot.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.42.0"})],Ot.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ot.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var $i=Ot,Jn=class Jn extends $i{};r(Jn,"ResponsiveTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Jn.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],Jn.prototype,"createWithFilters",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_},generate:Wn}),S({since:"1.52.0"})],Jn.prototype,"popinLayout",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}})],Jn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>mo(t),"path")}}),S({since:"1.77.0"})],Jn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Jn.prototype,"showDraftToggle",2),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Jn.prototype,"growingThreshold",2);var vo=Jn,Tr=class Tr extends $i{};r(Tr,"TreeTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Tr.prototype,"type",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Tr.prototype,"showDraftToggle",2);var fu=Tr,un=class un extends $i{};r(un,"AnalyticalTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],un.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"qualifier",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],un.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>le(t),"path")}})],un.prototype,"autoHide",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.78.0"})],un.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],un.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],un.prototype,"showDraftToggle",2);var uu=un,qn=class qn extends $i{};r(qn,"TableALP"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],qn.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.38.0"}),g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.60.0"})],qn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>le(t),"path")}})],qn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.78.0"})],qn.prototype,"allFiltersAsInParameters",2);var Ca=qn,Gc=class Gc extends Ca{};r(Gc,"ALPResponsiveTable"),d([g({flex:{controlId:So,controlType:r(()=>it.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Gc.prototype,"growingThreshold",2);var du=Gc,hu=class hu extends Ca{};r(hu,"ALPGridTable");var gu=hu,bu=class bu extends Ca{};r(bu,"ALPAnalyticalTable");var mu=bu,Aa=class Aa extends $i{};r(Aa,"GridTable"),d([g({manifest:{path:r(t=>le(t),"path"),import:Sr,export:Ea,delete:xa}}),S({since:"1.50.0"})],Aa.prototype,"type",2),d([g({manifest:{path:r(t=>le(t),"path")}}),S({since:"1.54.0"})],Aa.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>it.GENERICAPPSETTINGS,"path")}}),S({since:"1.63.0"})],Aa.prototype,"showDraftToggle",2);var yu=Aa;var vr=w(B());var yO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}`},"getActionButtonId"),hO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}template::${i}`},"getStandardActionButtonId"),bO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}${gc}${i}`},"getStandardFooterActionOPButtonId"),Fu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Wt(n);return`${e}action::${i}::${Ht(o)}`},"buildIntentBasedActionId"),TO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${Ht(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Mi={controlId:yO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Pr={controlId:hO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},ov={controlId:bO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Kc={controlId:TO,controlType:r(()=>vr.ControlType.Button,"controlType"),createFlexChange:_},Po=class Po{};r(Po,"Action"),d([g({flex:Mi})],Po.prototype,"tooltip",2),d([g({flex:Mi})],Po.prototype,"icon",2),d([g({flex:Mi})],Po.prototype,"activeIcon",2),d([g({flex:Mi})],Po.prototype,"type",2);var Tu=Po,Ao=class Ao{};r(Ao,"ToolBarAction"),d([g({flex:Mi})],Ao.prototype,"tooltip",2),d([g({flex:Mi})],Ao.prototype,"icon",2),d([g({flex:Mi})],Ao.prototype,"activeIcon",2),d([g({flex:Mi})],Ao.prototype,"type",2);var Su=Ao,Co=class Co{};r(Co,"FooterAction"),d([g({flex:Kc})],Co.prototype,"tooltip",2),d([g({flex:Kc})],Co.prototype,"icon",2),d([g({flex:Kc})],Co.prototype,"activeIcon",2),d([g({flex:Kc})],Co.prototype,"type",2);var vu=Co,Xc=class Xc{};r(Xc,"Share"),d([g({flex:Pr})],Xc.prototype,"visible",2);var Pu=Xc,Jc=class Jc{};r(Jc,"ShareOP"),d([g({flex:Pr})],Jc.prototype,"visible",2);var Au=Jc,qc=class qc{};r(qc,"UpAndDownNavigationOP"),d([g({flex:Pr})],qc.prototype,"visible",2);var Cu=qc,zc=class zc{};r(zc,"SaveAndEditOP"),d([g({flex:ov,generate:Ie})],zc.prototype,"visible",2);var Eu=zc,Yc=class Yc{};r(Yc,"HeaderActionStandard"),d([g({flex:Pr})],Yc.prototype,"visible",2);var xu=Yc,Zc=class Zc{};r(Zc,"ObjectPageHeaderActionStandard"),d([g({flex:Pr})],Zc.prototype,"visible",2);var Iu=Zc,el=class el{};r(el,"ObjectPageFooterActionStandard"),d([g({flex:ov})],el.prototype,"visible",2);var Ou=el;var Er=w(B());var SO=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"),vO=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"),PO=r((e,t,n)=>{let{actionId:i}=Wt(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Lu={controlId:SO,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_},Ar={controlId:PO,controlType:r(()=>Er.ControlType.Button,"controlType"),createFlexChange:_},av={...Lu,controlId:vO},tl={...Ar,controlId:Fu},Cr=class Cr{};r(Cr,"TableColumn"),d([g({flex:{controlId:Sf,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_}})],Cr.prototype,"width",2),d([g({flex:{controlId:Sf,controlType:r(()=>Er.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:Wn})],Cr.prototype,"hAlign",2);var Vu=Cr,mi=class mi{};r(mi,"TableColumnAction"),d([g({flex:Lu})],mi.prototype,"width",2),d([g({flex:Lu,generate:Wn})],mi.prototype,"hAlign",2),d([g({flex:Ar})],mi.prototype,"tooltip",2),d([g({flex:Ar})],mi.prototype,"icon",2),d([g({flex:Ar})],mi.prototype,"activeIcon",2),d([g({flex:Ar})],mi.prototype,"type",2);var nl=mi,yi=class yi extends nl{};r(yi,"TableColumnActionIntentBased"),d([g({flex:av})],yi.prototype,"width",2),d([g({flex:av,generate:Wn})],yi.prototype,"hAlign",2),d([g({flex:tl})],yi.prototype,"tooltip",2),d([g({flex:tl})],yi.prototype,"icon",2),d([g({flex:tl})],yi.prototype,"activeIcon",2),d([g({flex:tl})],yi.prototype,"type",2);var Nu=yi,Ru=class Ru{};r(Ru,"TableCustomColumn");var Du=Ru;var wu=class wu{};r(wu,"ToolBar");var ju=wu;var Eo=w(B());var xr=r(e=>e+Eo.PropertyName.chart,"getSmartChartControlId"),Ui=class Ui{};r(Ui,"ChartSettings"),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showLegendButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showDownloadButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ui.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:xr,controlType:r(()=>Eo.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:_}})],Ui.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>VS(t),"path")}}),S({since:"1.81.0"})],Ui.prototype,"showDataLabel",2);var $u=Ui;var hi=class hi{};r(hi,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>yo(t,i),"path")}})],hi.prototype,"groupId",2);var Mu=hi;var rv=w(B());var AO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Qe(e,n)},"getAvatarControlId"),ki=class ki{};r(ki,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],ki.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.46.0"})],ki.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"})],ki.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Rt(t),"path")}}),S({since:"1.48.0"}),ye("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ki.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:AO,controlType:r(()=>rv.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Ie})],ki.prototype,"displayShape",2);var Uu=ki;var il=w(B());var CO=r((e,t,n,i)=>{if(i()===il.ControlType.Button||i()===il.ControlType.HeaderAction){let o=n[2];return`${e}action::${Ht(o)}`}return Qe(e,t)},"getActionButtonId"),Ir={controlId:CO,controlType:r(()=>il.ControlType.HeaderAction,"controlType"),createFlexChange:_},_i=class _i{};r(_i,"HeaderAction"),d([g({flex:Ir,generate:Ie})],_i.prototype,"visible",2),d([g({flex:Ir})],_i.prototype,"tooltip",2),d([g({flex:Ir})],_i.prototype,"icon",2),d([g({flex:Ir})],_i.prototype,"activeIcon",2),d([g({flex:Ir})],_i.prototype,"type",2);var ku=_i;var Or=w(B());var ll="header::headerEditable::",EO=r((e,t,n,i,o)=>`${e}${ll}${o}`,"getDataPointHeaderSectionId"),xO=r((e,t,n,i,o)=>`${e}${ll}${o}::ContactAddress`,"getAddressHeaderSectionId"),IO=r((e,t,n,i,o)=>`${e}${ll}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),sv=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(Or.FACETTITLEPREFIX)?o.split(Or.FACETTITLEPREFIX)[1]:a;return`${e}${ll}${s}::Form`},"getFormHeaderSectionId"),Fr={controlType:r(()=>Or.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},ol=class ol{};r(ol,"CommonHeaderFacetSettings"),d([g({flex:{...Fr,controlId:sv},generate:Ie})],ol.prototype,"visible",2);var xo=ol,al=class al extends xo{};r(al,"ObjectPageHeaderSectionForm"),d([g({flex:{...Fr,controlId:sv}})],al.prototype,"visible",2);var _u=al,rl=class rl extends xo{};r(rl,"ObjectPageHeaderSectionChart"),d([g({flex:{...Fr,controlId:IO}})],rl.prototype,"visible",2);var Bu=rl,sl=class sl extends xo{};r(sl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...Fr,controlId:EO}})],sl.prototype,"visible",2);var Hu=sl,cl=class cl extends xo{};r(cl,"ObjectPageHeaderSectionAddress"),d([g({flex:{...Fr,controlId:xO}})],cl.prototype,"visible",2);var Gu=cl,Qu=class Qu{};r(Qu,"HeaderSections");var Wu=Qu;var Xu=w(B());var OO=r((e,t,n,i)=>{if(i()===Xu.ControlType.Button){let{actionId:o}=Wt(n);return`${e}action::${Ht(o)}::Determining`}return Qe(e,t)},"getFooterActionButtonId"),Lr={controlId:OO,controlType:r(()=>Xu.ControlType.Button,"controlType"),createFlexChange:_},Bi=class Bi{};r(Bi,"ObjectPageFooterAction"),d([g({flex:Lr,generate:Ie})],Bi.prototype,"visible",2),d([g({flex:Lr})],Bi.prototype,"tooltip",2),d([g({flex:Lr})],Bi.prototype,"icon",2),d([g({flex:Lr})],Bi.prototype,"activeIcon",2),d([g({flex:Lr})],Bi.prototype,"type",2);var Ku=Bi;var Vr=w(B());var pl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Qe(e,n)},"getControlId"),Io=class Io{};r(Io,"ObjectPageLayout"),d([g({flex:{controlId:pl,controlType:r(()=>Vr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Ie})],Io.prototype,"showHeaderContent",2),d([g({flex:{controlId:pl,controlType:r(()=>Vr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Io.prototype,"showAnchorBar",2),d([g({flex:{controlId:pl,controlType:r(()=>Vr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Io.prototype,"useIconTabBar",2),d([g({flex:{controlId:pl,controlType:r(()=>Vr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),S({since:"1.34.0"})],Io.prototype,"alwaysShowContentHeader",2);var Ju=Io;var cv=w(B());var Oo=class Oo{};r(Oo,"BaseCustomSection"),d([g({manifest:{path:gi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),S({since:"1.52.0"})],Oo.prototype,"relatedFacet",2),d([g({manifest:{path:gi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),S({since:"1.52.0"})],Oo.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>gi(t,{},i,cv.ManifestSection.generic),"path")}}),S({since:"1.52.0"})],Oo.prototype,"title",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Oo.prototype,"className",2);var Rr=Oo,Nr=class Nr extends Rr{};r(Nr,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Nr.prototype,"fragmentName",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Nr.prototype,"type",2);var jr=Nr,Dr=class Dr extends Rr{};r(Dr,"ObjectPageCustomSectionView"),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Dr.prototype,"viewName",2),d([g({manifest:{path:gi}}),S({since:"1.52.0"})],Dr.prototype,"type",2);var wr=Dr;var Xt=w(B());var lv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),Xt.DefinitionName.Table];return Qe(e,s)},"getTableSectionControlId"),pv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"FormGroup"];return Qe(e,s)},"getFormSectionControlId"),fv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Chart"];return Qe(e,s)},"getChartSectionControlId"),Fo=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"Section"];return Qe(e,s)},"getSectionControlId"),uv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"SubSection"];return Qe(e,s)},"getSubSectionControlId"),dv=r((e,t,n,i,o)=>{let s=[yt(n[1],o),"ContactsList"];return Qe(e,s)},"getContactSubSectionControlId"),fl=class fl{};r(fl,"ObjectPageSectionV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],fl.prototype,"visible",2);var qu=fl,ul=class ul{};r(ul,"ObjectPageSectionFormV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],ul.prototype,"visible",2);var zu=ul,dl=class dl{};r(dl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],dl.prototype,"visible",2);var Yu=dl,gl=class gl{};r(gl,"ObjectPageSectionTableV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],gl.prototype,"visible",2);var Zu=gl,ml=class ml{};r(ml,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],ml.prototype,"visible",2);var ed=ml,yl=class yl{};r(yl,"ObjectPageSectionContactV2"),d([g({flex:{controlId:Fo,controlType:r(()=>Xt.ControlType.Section,"controlType"),createFlexChange:_},generate:Ie})],yl.prototype,"visible",2);var td=yl,hl=class hl{};r(hl,"ObjectPageSubSectionV2"),d([g({flex:{controlId:uv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Ie})],hl.prototype,"visible",2);var nd=hl,bl=class bl{};r(bl,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:pv,controlType:r(()=>Xt.ControlType.Group,"controlType"),createFlexChange:_},generate:Ie})],bl.prototype,"visible",2);var id=bl,Tl=class Tl{};r(Tl,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:fv,controlType:r(()=>Xt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Ie})],Tl.prototype,"visible",2);var od=Tl,Sl=class Sl{};r(Sl,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:dv,controlType:r(()=>Xt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Ie})],Sl.prototype,"visible",2);var ad=Sl,vl=class vl{};r(vl,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:lv,controlType:r(()=>Xt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Ie})],vl.prototype,"visible",2);var rd=vl;var Pl=class Pl{};r(Pl,"ObjectPageChart"),d([g({manifest:{path:DS}}),S({since:"1.78.0"})],Pl.prototype,"variantManagement",2);var sd=Pl,Al=class Al{};r(Al,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Rt(t)+"/chartSettings","path")}}),S({since:"1.78.0"})],Al.prototype,"variantManagement",2);var cd=Al;var tn=w(B());var Lo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=tn.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=yt(a[0],o),Qe(e,a)},"getSmartTableControlId"),$r=class $r{};r($r,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>xn(t,n,i)+tn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],$r.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>xn(t,n,i)+tn.QUICKVARPATH,"path")}}),S({since:"1.48.0"})],$r.prototype,"variants",2);var ld=$r,Cl=class Cl{};r(Cl,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>ln(t,n,i)+"/createWithParameterDialog","path"),export:Qc}}),S({since:"1.77.0"})],Cl.prototype,"fields",2);var pd=Cl,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:ln,import:Wc}}),S({since:"1.77.0"})],Ft.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.28.0"})],Ft.prototype,"editable",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.95.0"}),ye("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ft.prototype,"showPasteButton",2),d([g({manifest:{path:ln}}),S({since:"1.54.0"})],Ft.prototype,"multiSelect",2),d([g({manifest:{path:ln}}),S({since:"1.70.0"})],Ft.prototype,"selectAll",2),d([g({manifest:{path:ln}}),S({since:"1.70.0"})],Ft.prototype,"selectionLimit",2),d([g({manifest:{path:xn}}),S({since:"1.63.0"})],Ft.prototype,"quickVariantSelection",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.26.0"})],Ft.prototype,"useExportToExcel",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.SmartTable,"controlType"),createFlexChange:_}}),S({since:"1.50.0"})],Ft.prototype,"exportType",2),d([g({manifest:{path:xn}}),S({since:"1.48.5"}),ye("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ft.prototype,"createMode",2),d([g({manifest:{path:xn}}),S({since:"1.61.0"})],Ft.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:ln}}),S({since:"1.78.0"})],Ft.prototype,"variantManagement",2),d([_e("toolBar")],Ft.prototype,"toolBar",2);var Vo=Ft,Hi=class Hi extends Vo{};r(Hi,"ObjectPageResponsiveTable"),d([g({manifest:{path:ln}})],Hi.prototype,"type",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_}})],Hi.prototype,"includeItemInSelection",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_},generate:Ie}),S({since:"1.52.0"})],Hi.prototype,"popinLayout",2),d([g({manifest:{path:ln}}),S({since:"1.77.0"})],Hi.prototype,"inlineDelete",2),d([g({flex:{controlId:Lo,controlType:r(()=>tn.ControlType.Table,"controlType"),createFlexChange:_}}),S({since:"1.16.0"})],Hi.prototype,"growingThreshold",2);var No=Hi,Mr=class Mr extends Vo{};r(Mr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:ln}})],Mr.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],Mr.prototype,"condensedTableLayout",2);var fd=Mr,Ur=class Ur extends Vo{};r(Ur,"ObjectPageGridTable"),d([g({manifest:{path:ln}})],Ur.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],Ur.prototype,"condensedTableLayout",2);var ud=Ur,kr=class kr extends Vo{};r(kr,"ObjectPageTreeTable"),d([g({manifest:{path:ln}})],kr.prototype,"type",2),d([g({manifest:{path:xn}}),S({since:"1.67.0"})],kr.prototype,"condensedTableLayout",2);var dd=kr,bi=class bi{};r(bi,"GlobalTableSettings"),d([g({manifest:{path:ho}}),S({since:"1.70.0"})],bi.prototype,"selectAll",2),d([g({manifest:{path:ho}}),S({since:"1.78.0"})],bi.prototype,"variantManagement",2),d([g({manifest:{path:ho}})],bi.prototype,"type",2),d([g({manifest:{path:ho}}),S({since:"1.54.0"})],bi.prototype,"multiSelect",2),d([g({manifest:{path:ho}}),S({since:"1.67.0"})],bi.prototype,"condensedTableLayout",2),d([g({manifest:{path:ho}}),S({since:"1.77.0"})],bi.prototype,"inlineDelete",2);var gd=bi;var gv=w(B());var FO=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"),_r={controlId:FO,controlType:r(()=>gv.ControlType.Button,"controlType"),createFlexChange:_},Gi=class Gi{};r(Gi,"ObjectPageToolBarAction"),d([g({flex:_r,generate:Ie})],Gi.prototype,"visible",2),d([g({flex:_r})],Gi.prototype,"tooltip",2),d([g({flex:_r})],Gi.prototype,"icon",2),d([g({flex:_r})],Gi.prototype,"activeIcon",2),d([g({flex:_r})],Gi.prototype,"type",2);var md=Gi;var jt=w(B());function hd(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(hd,"addFlexChangeToConfigTableColumn");function El(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(El,"addFlexChangeToConfigTable");function xl(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&&hd(t.table,c,n,i)})}r(xl,"importFlexChangesOfColumn");function Wi(e){return e.replace("/","::")}r(Wi,"convertActionKey");function bd(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(bd,"convertSelector");function LO(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(LO,"addSmartFilterBarFlex");function VO(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(VO,"filterActions");function NO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(NO,"addColumnActionConfigPart");function DO(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(DO,"getActionId");function RO(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=VO(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"&&NO(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(RO,"addActionFlex");function jO(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(jO,"addSmartChartFlex");function Il(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=bd(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{LO(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=DO(s);l&&RO(e,c,s,n,l);break}case Ee.ControlType.SmartChart:{jO(e,c,s,n);break}default:break}}catch(s){k(i,{severity:Ee.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}r(Il,"addFlex");function wO(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(wO,"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),sa(p,s,l,e),cc(c,s,f,o)}wO(l,e)}}r(ft,"transferSettingsOfObject");function Ol(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(Ol,"determineTableType");function mv(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(mv,"evaluateFragmentColumn");function $O(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($O,"determineCellsFragmentName");function MO(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,yv.xml2json)(e[0].fileContent,{compact:!0}))[Xn];try{let f=hr(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)mv(u,n,i,o,t,a,s);else mv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(MO,"analyzeFilteredFragments");function UO(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=$O(l,e,p,f),T=m.split(".");m=T[T.length-1]+Ee.FRAGMENTNAMEPART+u;let O=i.fragments.filter(V=>V.dataSourceUri.endsWith(m));try{MO(O,n,e,s,f,l,h)}catch(V){i.logger.error(V.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(V=>{xl(i,n,V.id,V,o)})}}}r(UO,"processViewExtensions");function Ia(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;UO(f,u,e,t,a)}}r(Ia,"addFragments");function Fl(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(Fl,"importHeaderActions");var Yn=w(B());var Br="sap.suite.ui.generic.template.ListReport";var hv="sap.suite.ui.generic.template.ListReport.view.ListReport";var Ue=w(B());function Do(e,t,n){var o;let i;for(let a in e){let s=e[a];if(ci((o=s.component)==null?void 0:o.name)===Ue.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Do(s.pages,t,n),i))return n.unshift(a),i}}r(Do,"findObjectPageV2");function Oa(e,t){var n;for(let i in e){let o=e[i];if(ci((n=o.component)==null?void 0:n.name)===Ue.PageTypeV2.ListReport)return t.push(i),o}}r(Oa,"findListReportPageV2");function Fa(e){if(!e.manifest[Ue.ManifestSection.generic]){k(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){k(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(Fa,"getV2Pages");function La(e,t,n){var i;if(!e){k(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;k(t,{severity:Ue.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:o}),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}}r(La,"checkV2Page");function Va(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),ci((i=a.component)==null?void 0:i.name)===Ue.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:Ue.LogSeverity.Error,message:R.t("NOALP"),location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.generic]}})}r(Va,"findAnalyticalListPage");function Td(e,t){let n=e.split("|");return Ue.v2.SectionPosition[n[0]]&&n[1]===t}r(Td,"isAssociatedCustomSection");function bv(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)Td(o,t)&&(i[o]=n[o]);return i}r(bv,"findCustomSectionExtensions");function kO(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(kO,"removeEmptySettingsOfFooter");function _O(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(_O,"removeEmptySettingsOfFilterBar");function BO(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(BO,"removeEmptySettingsOfToolBar");function Ll(e){BO(e),_O(e),kO(e)}r(Ll,"removeEmptySettings");var He=w(B());var Sv=w(B());var Sd={};Ko(Sd,{ANNOERR:()=>rF,ANNOTATIONFILE:()=>sF,COMPONENTNOTDEFINED:()=>cF,CONTEXTPATHCOULDNOTBERESOLVED:()=>nF,ENTITYSETNOTFOUND:()=>tF,FLEXERROR:()=>bF,INCONSISTENTSCHEMA:()=>EF,INVALIDANCHOR:()=>TF,INVALIDTARGETDEFINITION:()=>vF,NOALP:()=>oF,NOBASEPATH:()=>WO,NOCHARTS:()=>uF,NOENTITYSET:()=>qO,NOENTITYTYPE4SET:()=>zO,NOFE:()=>KO,NOFRAGMENT:()=>SF,NOGENERICSCHEMA:()=>XO,NOID4SECTION:()=>PF,NOLINEITEMANDCHARTS:()=>dF,NOLINEITEMS:()=>fF,NOLR:()=>iF,NOPAGEFORENTITYSET:()=>JO,NOPAGES:()=>QO,NOPRESENTATIONVARIANT:()=>YO,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>ZO,NOPRESENTATIONVARIANTFORSPV:()=>eF,NOROUTING:()=>lF,NOROUTINGID:()=>hF,NOTARGET:()=>yF,NOTARGETS:()=>mF,NOTEMPLATE:()=>aF,NOUIANNOTATIONS:()=>pF,NOVISUALIZATIONS:()=>gF,TYPEERROR:()=>CF,UNEXISTING_ANNOTATION_PATH:()=>xF,UNKNOWNMINUI5VERSION:()=>GO,WRONGMINUI5VERSION:()=>HO,XMLPARSEFAILURE:()=>AF,default:()=>IF});var HO="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",GO="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",WO="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",QO="No pages found in manifest for app with id '{{- appId}}'",KO="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",XO="No generic schema found while generating page schema for {{- pageType}}",JO="No page found in manifest for entitySet '{{- entitySet}}'",qO="No entitySet defined for page '{{- pageName}}'",zO="No entityType could be found for the given entity set '{{- entitySetName}}'",YO="No PresentationVariant defined for '{{- key}}'",ZO="No PresentationVariant found for default SelectionPresentationVariant",eF="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",tF="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",nF="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",iF="No page found in manifest for list report",oF="No page found in manifest for analytical list page",aF="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",rF="Error while parsing annotation files",sF="Annotation file: '{{- file}}'",cF="Component name is not defined for page '{{- pageName}}'",lF="Incomplete manifest definition: no routing defined",pF="No UI Annotation defined for entity type '{{- entityType }}'",fF="UI.LineItem annotation has not been defined",uF="UI.Chart annotation has not been defined",dF="Neither UI.LineItem nor UI.Chart annotation has been defined",gF="Empty Collection for Visualizations",mF="Incomplete manifest definition: no targets defined",yF="Invalid reference: annotation target '{{- target}}' not found",hF="No page found in manifest for routingId '{{- routingId}}'",bF="Error while parsing flex change",TF="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",SF="fragmentName is undefined for columnKey '{{- columnKey}}'",vF="Invalid routing target definition in manifest: '{{- target}}'",PF="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",AF="Parsing of XML file failed with error - {{- error}}",CF="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",EF="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",xF="The annotation path doesn't exist.",IF={WRONGMINUI5VERSION:HO,UNKNOWNMINUI5VERSION:GO,NOBASEPATH:WO,NOPAGES:QO,NOFE:KO,NOGENERICSCHEMA:XO,NOPAGEFORENTITYSET:JO,NOENTITYSET:qO,NOENTITYTYPE4SET:zO,NOPRESENTATIONVARIANT:YO,NOPRESENTATIONVARIANTFORDEFAULTSPV:ZO,NOPRESENTATIONVARIANTFORSPV:eF,ENTITYSETNOTFOUND:tF,CONTEXTPATHCOULDNOTBERESOLVED:nF,NOLR:iF,NOALP:oF,NOTEMPLATE:aF,ANNOERR:rF,ANNOTATIONFILE:sF,COMPONENTNOTDEFINED:cF,NOROUTING:lF,NOUIANNOTATIONS:pF,NOLINEITEMS:fF,NOCHARTS:uF,NOLINEITEMANDCHARTS:dF,NOVISUALIZATIONS:gF,NOTARGETS:mF,NOTARGET:yF,NOROUTINGID:hF,FLEXERROR:bF,INVALIDANCHOR:TF,NOFRAGMENT:SF,INVALIDTARGETDEFINITION:vF,NOID4SECTION:PF,XMLPARSEFAILURE:AF,TYPEERROR:CF,INCONSISTENTSCHEMA:EF,UNEXISTING_ANNOTATION_PATH:xF};function Tv(e){e.addResourceBundle(e.language,"translation",Sd)}r(Tv,"initI18n");function qe(e="en"){R.init({resources:{en:{translation:Sv.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
87
87
|
|
|
88
|
-
`}),Tv(R)}r(qe,"initI18n");var Pd={};Ko(Pd,{AnalyticalListPage:()=>dn,ListReport:()=>Vn,ObjectPage:()=>St,OverviewPage:()=>Ke,exportFilterSettings:()=>Av,importDateSettingsOVP:()=>vv,importFilterSettings:()=>Pv});var Ll=w(B());var dn=class{};r(dn,"AnalyticalListPage"),d([g({flex:{controlId:ac,controlType:r(()=>Ll.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],dn.prototype,"fitContent",2),d([_e("table")],dn.prototype,"table",2),d([_e("template::SmartFilterBar")],dn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],dn.prototype,"chart",2),d([_e("analyticalListFooter")],dn.prototype,"footer",2),dn=d([Qt({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Ll.v2.FE_TEMPLATE_V2_ALP})],dn);var Hr=w(B());var Vn=class{};r(Vn,"ListReport"),d([g({flex:{controlId:ac,controlType:r(()=>Hr.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],Vn.prototype,"fitContent",2),d([_e("listReportFilter")],Vn.prototype,"filterBar",2),d([_e("listReport")],Vn.prototype,"table",2),d([_e("listReportFooter")],Vn.prototype,"footer",2),Vn=d([Qt({id:Hr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Vn);var vd=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=>Fc(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:io}}),S({since:"1.71.0"})],St.prototype,"globalTableSettings",2),St=d([Qt({id:vd.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vd.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],St);function OF(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(OF,"importDateSettingsFieldsOVP");function vv(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&&OF(e,t),t}r(vv,"importDateSettingsOVP");function Pv(e){let t={};return t.dateSettings=vv(e.filterSettings),t}r(Pv,"importFilterSettings");function FF(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(FF,"exportFilterFields");function Av(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&&FF(t,n,e))}r(Av,"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:Pv,export:Av}}),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 Ad=class Ad{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(Ad,"MetadataFactory");var Na=Ad;var bt=w(B());var VF={},LF={Table:vo,ResponsiveTableWithMultiSelect:vo,ResponsiveTableWithInlineDelete:vo},NF={[bt.v2.CardSettingsType.listCardSettings]:ba,[bt.v2.CardSettingsType.listCardSettingsv4]:ba,[bt.v2.CardSettingsType.analyticalCardSettings]:Ta,[bt.v2.CardSettingsType.analyticalCardSettingsv4]:Ta,[bt.v2.CardSettingsType.stackCardSettings]:ur,[bt.v2.CardSettingsType.linkListCardSettings]:dr,[bt.v2.CardSettingsType.tableCardSettings]:Sa,[bt.v2.CardSettingsType.tableCardSettingsv4]:Sa},DF={[bt.SAPUI5_VIEW_CLASS]:wr,[bt.SAPUI5_FRAGMENT_CLASS]:jr,Table:No,ObjectPageResponsiveTableWithMultiSelect:No,ObjectPageResponsiveTableWithInlineDelete:No},RF={[bt.PageTypeV2.AnalyticalListPage]:VF,[bt.PageTypeV2.ListReport]:LF,[bt.PageTypeV2.ObjectPage]:DF,[bt.PageTypeV2.OverviewPage]:NF},Cd=class Cd extends Na{constructor(){super(yd,Pd,RF)}};r(Cd,"MetadataInstanceFactoryV2");var wt=Cd;function jF(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(jF,"importFilterBar");function Ed(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};El(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"&&xl(e,n,s)}r(Ed,"importFlexChangesOfTableAndColumns");function wF(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[co]&&t[lo]&&(a=JSON.parse(JSON.stringify(t[co])),a.properties={...a.properties,...t[lo].properties}),ft(n.table,i.manifest,a,o,i.logger),Ed(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&&k(i.logger,{severity:He.LogSeverity.Error,message:R.t("NOLINEITEMS")})}r(wF,"importTable");function $F(e,t,n,i){let o=e.jsonSchema.definitions,a=Ol(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),Fl(t,n,o),wF(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=Wi(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)}jF(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=Wi(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($F,"addSettings");function Cv(e){if(qe(),!Fa(e))return;let n=new wt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=Oa(e.manifest[He.ManifestSection.generic].pages,o);if(Va(a,e.logger,a==null?void 0:a.entitySet),!!a)return $F(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Il(i,s,e.jsonSchema,e.logger)}),Ia(i,e,a,He.PageTypeV2.ListReport),Vl(i),i}r(Cv,"createListReportConfig");var W=w(B());var Gr=require("@sap-ux/vocabularies-types/vocabularies/UI");var UF=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function kF(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(`${Gr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Gr.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(kF,"getSingleSelectorIdPart");function _F(e){let t,n=e.split(":::");if(n.length===1)t=kF(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(`::${Gr.UIAnnotationTerms.LineItem}`,`/@${Gr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(_F,"getFacetID");function BF(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 b=_F(m);m=bd(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:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){k(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(BF,"prepareFlexChanges");var HF=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 GF(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&hd(i,t,o)}r(GF,"addFlexChangeToColumns");function Ev(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?GF(a,p,o.properties,n):El(n,p,o))}}r(Ev,"importFlexChangesOfTable");function WF(e,t){return e.facetId==="template"&&t}r(WF,"isStandardActionFlexChange");var xv=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 QF(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&&xv(l,o.split("::"))&&s,m=e.title&&xv(l,e.title.split("::"),!0),b=!t.facetId&&UF.includes(t.controlType),T=WF(t,c);return p||f||u||m||b||T}r(QF,"matchSelector");function KF(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;QF(e,f,s,c,o,a)&&(t[i]=f.newValue)}}r(KF,"importFlexChanges");function XF(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(k(n.logger,{severity:W.LogSeverity.Warning,message:ra(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(XF,"checkDeprecatedProperties");function JF(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 XF(p,a,n,l),p}r(JF,"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],b=e.jsonSchema.definitions[m];Ev(i.flexChanges,f,t,o,b,c)}else Ev(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);KF(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&JF(u,i.pageKeys,e,t,f,s,o)}}r($t,"transferSettingsAndFlexChanges");function Ov(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=`${oS}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${gc}${o}`;break}}return o.replace(/@/g,"")}r(Ov,"getActionId");function qF(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=Ov(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(qF,"fillStandardActions");function Nl(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=Wi(p),u=Ov(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]}}qF(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(Nl,"fillActions");function zF(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(zF,"fillFields");function YF(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(YF,"prepareTableSchema");function ZF(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=YF(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 b=JSON.parse(JSON.stringify(u))[`Actions<${t.id}>`];if(b!=null&&b.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");Nl(e,b.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(ZF,"fillTableInConfig");function eV(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?lc(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};Ia(n[t],e,i,W.PageTypeV2.ObjectPage,c,o)}}r(eV,"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 nV(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(nV,"fillHeaderSection");function iV(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&&Nl(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&zF(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(iV,"fillFormSection");function Iv(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,xd(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(Iv,"fillSubSection");function xd(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:HF(t[c]),schema:t[c],title:Pf(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],ZF(e,p,n,i,o),eV(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}>`],iV(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}>`],Iv(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],nV(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],Iv(e,p,n,i,o))}}r(xd,"fillSectionsInConfig");function oV(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(oV,"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&&Nl(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&Nl(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;xd(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;xd(e,l.properties,m,n.sections,t)}let p=bv(e.manifest,e.entitySet);return oV(p,n,t,i,e),n}r(aV,"fillConfig");function Dl(e){qe();let t=Fa(e);if(!t)return;let n=e.entitySet,i=[],o=Do(t,e.entitySet,i);if(Va(o,e.logger,n),!o)return;let a=BF(e.flex,n),s=new wt;return aV(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Dl,"createObjectPageConfigV2");var gn=w(B());var Od=w(Xp());var Re=w(B());var rV=["colorPalette","tabs"];function sV(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(sV,"createCard");function Fv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Fv(e,n.join("|"))}return t}r(Fv,"findAvailableId");function Wr(e,t,n,i,o,a,s){i!=null&&i.properties&&Id(e,t,n,i.properties,o,a,s)}r(Wr,"transferManifestEntriesOVP");function Ro(e,t,n,i){return e.createInstance(Re.PageTypeV2.OverviewPage,i,n,t)}r(Ro,"assignReflectMetadataRules");function cV(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=Ro(e.factory,i[1],t,"CustomCard"),Wr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(cV,"processAnyOfDefinitionsOfOVP");function lV(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!rV.includes(i)?t[i]=(0,Od.default)(t[i]||{},o||{},{arrayMerge:Tf}):t[i]=o}r(lV,"checkSyncRuleForExport");function pV(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,Od.default)(c.settings||{},o||{},{arrayMerge:Tf});else if(o!==void 0){let l=e.manifest.export;lV(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(pV,"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]=Ro(e.factory,a[0],e.currentObject[t],"CustomCard"),sV(t,e.exportResults.manifest[Re.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,Wr(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 uV(e,t){if(t==="cards")fV(e);else{let n=Hn(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=Ro(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Wr(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Id(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],Id(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(uV,"exportOfObject");function Id(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!ta(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=cV(f)):l&&typeof l=="object"&&i[c]&&uV(f,c),p!=null&&p.manifest&&pV(p,a,c,t,l,e)}}r(Id,"processProperties");function dV(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=tS(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(b=>{let T=!1,F=JSON.parse(b);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(dV,"evaluateFlexRule");function gV(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(gV,"exportConfigValueToManifest");function mV(e,t,n,i,o){let a=gt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)gV(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,xi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(mV,"evaluateManifestRule");function yV(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(yV,"getManifestPathOfSections");function hV(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(hV,"getManifestPathOfTable");function bV(e,t,n,i,o){let a;return t[0]===Re.PropertyName.sections?a=yV(t,a,n,e,o):t[0]===Re.PropertyName.table?a=hV(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(bV,"getManifestPath");function TV(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)dV(e,i,t,o,a,n,s);else if(t.manifest){let l=bV(e,i,t,n,a);mV(e,l,t,s,n)}}r(TV,"evaluateExportRule");function SV(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)&&(Uc(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);Uc(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(SV,"deleteObsoleteColumn");function vV(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=FS(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,SV(o,e,n))}r(vV,"deleteObsoleteColumnsFromFragment");function PV(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}=kc(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(PV,"clusterConfigColumnsByPath");function Vv(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}=kc(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{vV(p)}catch(f){e.logger.error(f.message)}}if(t){let c=PV(t,n,e.v2Page,s,o);for(let l in c)au(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(Vv,"transferColumnExtensions");function AV(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let f=Fv(s,[p.relativePosition,c,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(b=>{var T;return(T=b.$ref)==null?void 0:T.includes(t[p].constructor.name)}).$ref.split(O),m=e.appSchema.definitions[u[u.length-1]];Qi(e,t[p],i,[...o,s[p]],m)}let l=gt(e.exportResults.manifest,Nf());for(let p in l)Td(p,c)&&!s.includes(p)&&delete l[p]}r(AV,"transferManifestExtensions");function CV(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(CV,"getSectionId");function EV(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=Hn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);Qi(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(EV,"transferIndexTable");function xV(e,t,n,i,o,a){let s,c=lc(e.$ref);c&&(s={target:c,key:CV(t,n)}),Vv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(xV,"transferCustomColumns");function IV(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=Hn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&Qi(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(IV,"handleAnyOfDefinitions");function OV(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")AV(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){xV(c,t,s,e,n,a);return}else a?Qi(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&IV(c,e,s,n==null?void 0:n[o],o,i,t)}r(OV,"transferComplexProperty");function Qi(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&&!ta(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&rc(t,c),p=l?[...n,l]:n,f=pt(t,c),u=e.propertyDefinition=o.properties[c],m=e.nextDefinition=Hn(e.appSchema,a,s,u,c,e.factory,e.pageType);if(TV(e,f,t,[...i],p,a,c),EV(s,e,a,c,p,i),s===void 0||typeof s=="object")OV(e,i,t,p,c,m,a);else if((u==null?void 0:u.$ref)===O+"TableCustomColumns"){Vv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(Qi,"transferManifestEntriesAndFlexChange");function Lv(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=Ro(o,i,n[i],s),a.push(i),Fd(o,n[i],e,c.properties,a)}r(Lv,"transferSettingsOfRef");function FV(e,t,n,i,o,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(O);Lv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf&&e.template in gn.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let c=`${O}${gn.v2.cardTemplateSettingsMap[e.template]}`.split(O);Lv(i,c,e,t,o,a)}}r(FV,"processPropertiesOfObject");function VV(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{sa(s,l,t,e)}catch(p){k(i.logger,{severity:gn.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:wT(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&FV(e,t,o,i,a,n)}r(VV,"processOvpProperty");function Fd(e,t,n,i,o){for(let a in i)VV(t,a,o,n,i,e)}r(Fd,"processOvpProperties");function LV(e,t,n){Fd(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[gn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[gn.ManifestSection.ovp].cards[i].template,a=gn.v2.cardTemplateTypeMap[o]??"CustomCard",s=[...new Set(Object.values(gn.v2.cardTemplateTypeMap))].filter(c=>c!==a);s.push(a);for(let c of s)e.cards[i]=Ro(n,c,e.cards[i]??{},"CustomCard"),e.cards=Ro(n,c,e.cards,"CustomCard"),Fd(n,e.cards[i],t,t.jsonSchema.definitions[c].properties,["cards",i])})}r(LV,"addSettings");function Rl(e){let t=new wt,n=t.createPageInstance(gn.PageTypeV2.OverviewPage);return e.jsonSchema&&LV(n,e,t),n}r(Rl,"createOverviewPageConfig");var De=w(B());function NV(e,t,n,i){var p,f;let o=Ol(e.manifest,i),a=e.jsonSchema.definitions;Fl(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),Ed(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=Wi(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 b=m;t.filterBar.selectionFields[b]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),ft(t.filterBar.selectionFields[b],e.manifest,a.SelectionFieldDateSettings,i,e.logger,b)}}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=Wi(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(NV,"addSettings");function jl(e){if(qe(),!Fa(e))return;let n=new wt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=La(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(Va(a,e.logger,a==null?void 0:a.entitySet),!!a)return NV(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Il(i,s,e.jsonSchema,e.logger)}),Ia(i,e,a,De.PageTypeV2.AnalyticalListPage),Vl(i),i}r(jl,"createAnalyticalListPageConfig");var on=w(B());var DV=["filterBar","table","footer"];function Vd(e,t,n,i){Ii(e,n,"QuickVariant"),bS(n,"QuickVariantX",t),TS(i,n,"QuickVariantX")}r(Vd,"addEnumForVariantPaths");function Nv(e,t){var u,m,b,T,F,L,Y;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=O+co,n.properties.table.anyOf[1].$ref=O+lo,n.properties.table.anyOf[2].$ref=O+fc,n.properties.table.anyOf[3].$ref=O+uc,n.properties.table.anyOf[4].$ref=O+dc;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+on.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+on.DefinitionName.ToolBarLR;n.definitions[co]=i,n.definitions[lo]=o,n.definitions[fc]=a,n.definitions[uc]=s,n.definitions[dc]=c,Af.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&&k(e.logger,{severity:on.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{pa(n);let ne=(F=(T=f==null?void 0:f.annotations)==null?void 0:T.UI)==null?void 0:F.LineItem;ne&&Af.forEach(pe=>{n.definitions[pe][on.SchemaTag.annotationPath]=_t(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),ca(!1,n,ne,f);let q=(Y=(L=f==null?void 0:f.annotations)==null?void 0:L.UI)==null?void 0:Y.SelectionFields;yc(n,q,f),ua(n,f);let fe=[],ie=Oa(e.manifest[on.ManifestSection.generic].pages,fe);if(!ie)return k(e.logger,{severity:on.LogSeverity.Error,message:R.t("NOLR"),location:{path:on.MANIFESTPATH,range:[on.ManifestSection.generic]}}),n;la(n,f,ie,e.manifest,e.fragments),Vd(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 Gn(n,DV),n}r(Nv,"generateListReportSchemaV2");var se=w(B());var Qr=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 Dv(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(Dv,"getClassesForSingleSection");function Rv(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Dv(n,i,t),Rv(n,t)}}r(Rv,"getSubsectionClasses");function RV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],Dv(i,o,n),Rv(i,n)}r(RV,"getExportClassesForSections");function jV(e,t){let n=Oa(t.manifest[se.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:se.LogSeverity.Error,message:R.t("NOLR"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}});return}if(!n.component){k(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(jV,"findV2Page");function Ld(e,t){let n=sc(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Ld,"calculateBaseId");function jv(e,t,n=!1){let i=Qr(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=jV(a,e),c=new wt,l=c.createPageInstance(se.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Ld(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(p,l,[],[],e.jsonSchema)}return i}r(jv,"exportListReportPage");function wv(e,t,n=!1){let i=e.page.config,o=Qr(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=La(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:Ld(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(p,l,[],[],e.jsonSchema)}return o}r(wv,"exportAnalyticalListPage");function $v(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=Qr(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Do(e.manifest[se.ManifestSection.generic].pages,o,s);if(!c)return k(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&&RV(i,p,l),Object.keys(i).length!==0){let f={v2Page:c,exportResults:a,appId:e.appId,baseId:Ld(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:se.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(f,p,[],[],e.jsonSchema)}}return a}r($v,"exportObjectPage");var Mv=r(e=>{let t=Qr();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&&Wr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),wV=r((e,t,n)=>{var s;let i=Qr();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Ic,e);o.settings=Object.assign(new Li,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],xi(i.manifest,p,!1))}}let a=(s=i.manifest[se.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Lf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Uv(e,t){if(e[se.SchemaType.ListReport])return Dd(e[se.SchemaType.ListReport],t);if(e[se.SchemaType.ObjectPage])return $v(e[se.SchemaType.ObjectPage],t);if(e[se.SchemaType.OverviewPage])return Mv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[se.SchemaType.Application];return wV(n,i,o)}else if(e[se.SchemaType.AnalyticalListPage])return wv(e[se.SchemaType.AnalyticalListPage],t)}r(Uv,"exportPageV2");function Nd(e,t,n=!1){if(e[se.SchemaType.ListReport])return Dd(e[se.SchemaType.ListReport],t,n);if(e[se.SchemaType.ObjectPage])return $v(e[se.SchemaType.ObjectPage],t,n);if(e[se.SchemaType.OverviewPage])return Mv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.AnalyticalListPage])return wv(e[se.SchemaType.AnalyticalListPage],t,n)}r(Nd,"exportConfigEntityByPathV2");var Si=w(B());var $l=w(B());var kv=w(B());function _v(e,t=[]){return e.concat(["component","settings"]).concat(t)}r(_v,"getManifestPathToPageSettings");function zn(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(zn,"getManifestPropertyByPath");function Ti(e){return e!==null&&typeof e=="object"}r(Ti,"isDefinition");function wl(e,t,n,i,o,a,s){let c=n[kv.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(wl,"executeConversionExit");function Rd(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&&k(n,{severity:$l.LogSeverity.Error,message:R.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Rd,"hasPropertyTypeError");var ZM=Symbol("Property is suppressed without explanation");function Bv(e,t){e.anyOf&&e.anyOf.forEach(function(n){jo(n,t)})}r(Bv,"addAnyOfToReferredTypes");function Ul(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(Ul,"getSingleItem");function jo(e,t){if(typeof e!="object")return;let n=fi(e);n&&Hv(n,t),Bv(e,t),jo(e.additionalProperties,t),jo(Ul(e),t)}r(jo,"addReferredTypesFromElement");function Hv(e,t){t.referredTypeNames.add(e);let n=t.types[e];jo(n,t);let i=n.properties;i?Object.values(i).forEach(o=>jo(o,t)):jo(Ul(n),t),jo(n.additionalProperties,t)}r(Hv,"addReferredTypesFromType");function Ml(e,t,n,i,o){if(typeof t!="object")return;let a=fi(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=jT(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 Hv(a,o)}else jd(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(Ml,"applyAdaptationInfoToElement");function jd(e,t,n,i,o){var m,b;let a={element:i},s=BT(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;Ml(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=Ul(i);if(T)l={items:T},p=i;else return}let f,u=((b=a.referenceAdaptation)==null?void 0:b.processingRulesAdapter)||function(T,F){f=f||n&&new n;let L=pt(f,T);L!=null&&L.processingRuleAdapter&&L.processingRuleAdapter(F,t,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[Si.SchemaTag.controlId]=`${t.pageInfo.controlId}--${L.controlId}`:L.manifestPath&&(L.element[Si.SchemaTag.artifactType]="Manifest",L.element[Si.SchemaTag.manifestPath]=L.manifestPath),Bv(L.element,o),Ml(L.referenceAdaptation,L.element,e,c,o),Ml(L.additionalPropertiesAdaptation,L.element.additionalProperties,e,c,o),Ml(L.itemsAdaptation,Ul(L.element),e,c,o),p[T]=L.element):delete p[T]}}r(jd,"adjustElement");function $V(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r($V,"getViewId");function Gv(e,t,n){var q;qe();let i=no(e.manifest,Si.FioriElementsVersion.v2,n);if(!i||i===Si.TemplateType.OverviewPageV2)return;let{parent:o}=zn(e.manifest,e.pagePath);if(!o)return;let a=o.component;if(Rd(o,"entitySet",n,"string",!0)||Rd(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||An(e.annotations,n),m=(q=u==null?void 0:u.entitySets)==null?void 0:q.find(fe=>fe.name===s);if(!m)return p;let b=structuredClone(p),T=$V(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:Si.FioriElementsVersion.v2,entitySet:m,fragments:e.fragments,logger:n,entityType:m.entityType},ne={types:b.definitions,referredTypeNames:new Set};jd(Y,L,f,b,ne);for(let fe in b.definitions)ne.referredTypeNames.has(fe)||delete b.definitions[fe];return b}r(Gv,"getAdaptedSchema");var Bl=w(B());var wd=w(B());var Wv=w(B());var _l=class _l{};r(_l,"Share"),d([g({flex:{controlType:r(()=>Wv.ControlType.Button,"controlType"),createFlexChange:_},processingRuleAdapter:r(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],_l.prototype,"visible",2);var kl=_l;var Ki=class{};r(Ki,"ListHeaderActions"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:kl}}})],Ki.prototype,"Share",2),Ki=d([g({processingRuleAdapter(e){e.element[wd.SchemaTag.icon]="Export"}})],Ki);var vi=class{};r(vi,"ListHeader"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Ki}}})],vi.prototype,"actions",2),vi=d([g({processingRuleAdapter(e){e.element[wd.SchemaTag.icon]="Header"}})],vi);var Ln=class{};r(Ln,"ListReportNew"),d([g({flex:{controlType:r(()=>Bl.ControlType.DynamicPage,"controlType"),createFlexChange:_},processingRuleAdapter(t){t.controlId="page"}})],Ln.prototype,"fitContent",2),d([g({processingRuleAdapter(t){t.element[Bl.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:vi}}})],Ln.prototype,"header",2),Ln=d([Qt({id:hv,pageId:Br}),g({processingRuleAdapter(e,t,n){let i=_v(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=dS(n),{value:s}=zn(n.manifest,i),c={settings:s,entityType:o,uIAnnotations:a};e.referenceAdaptation={specificParams:c}}})],Ln);var kd=require("path"),Zv=require("fs");var an=w(B());function MV(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(MV,"getChangeMapFormImportParameters");function $d(e,t,n,i,o){if(e===void 0)return;let a=fi(t),s=a?n[a]:void 0;if(t[an.SchemaTag.conversionExit]&&(e=wl(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return $d(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=$d(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($d,"getConfigRep");function Qv(e,t,n,i,o,a,s,c){let l=$d(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(Qv,"transferValueToConfig");function UV(e,t,n,i,o,a,s,c){let l=o[an.SchemaTag.controlId],p=c[l];if(!p)return;let f=-1,u=p.find(function(m,b){return m.content.property===i?(f=b,!0):!1});u&&(Qv(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(UV,"importFlexChangesToConfigProperty");function kV(e,t,n,i,o,a,s){let c=o[an.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:f,value:u,parent:m}=zn(s.manifest,p,l?i:void 0);if(!f)return;Qv(e,t,n,i,l?u:m,o,a,s)}r(kV,"importManifestToConfigProperty");function Kv(e,t,n,i,o,a,s){if(Ti(n.properties))for(let c in n.properties){let l=n.properties[c];if(!Ti(l))continue;let p=l[an.SchemaTag.artifactType];if(p===an.ArtifactType.FlexChange)UV(e,t,i,c,l,o,a,s);else if(p===an.ArtifactType.Manifest&&l[an.SchemaTag.manifestPath])kV(e,t,i,c,l,o,a);else{let f=fi(l),u=f?o[f]:void 0;if(Ti(u)){let m=i.concat([{propertyName:c,propertyType:f.split("<")[0]}]);Kv(e,t,u,m,o,a,s)}}}}r(Kv,"importDefinitionIntoConfig");function Xv(e,t,n){var u;let i=no(e.manifest,an.FioriElementsVersion.v2,e.logger);if(!i||i===an.TemplateType.OverviewPageV2)return;let{parent:o}=zn(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=MV(e),l=e.jsonSchema,p=l.definitions,f=s.propertyInstanceProvider([]);return Kv(f,s,l,[],p,e,c),f}r(Xv,"getConfigForPage");var Vt=w(B());function _V(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(_V,"addFlexChangeInfoToList");function Jv(e,t,n,i){var c;if(n[Vt.SchemaTag.conversionExit])return wl(!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(!Ti(p))continue;let f=fi(p);p=f&&i.globalTypeDefinitions[f]||p;let u=o[l];s=s||u!==void 0;let m=Jv(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=>Ti(n.properties[l]))?void 0:o:t}r(Jv,"getValueForManifest");function Md(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 Md(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 Md(e[o],t[o])})}r(Md,"isDifferent");function BV(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(BV,"isEmpty");function HV(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 b=a[u];if(typeof b!="object"||b===null)return!0;a=b,l.push(a)});let p=l.length===s?a[c]:void 0,f=Jv(t,p,i,o);if(Md(f,p))if(f===void 0){n.manifestChangeIndicator=Vt.ChangeIndicator.Deleted;for(let u=s;u>0;u--){let m=l[u];if(!BV(m))break;let b=l[u-1],T=e[u];delete b[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(HV,"applyManifestChange");function GV(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[Vt.SchemaTag.artifactType];if(s===Vt.ArtifactType.FlexChange)_V(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]))),HV(c,a,t,i,o)}else{let c=fi(i),l=c?o.globalTypeDefinitions[c]:void 0;Ti(l)&&qv(a,t,l,o)}}r(GV,"transferConfigPropertyToExportResults");function qv(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];Ti(s)&&GV(e,t,a,s,i)}}r(qv,"transferConfigToExportResults");function zv(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 qv(t,a,e.jsonSchema,o),a}r(zv,"exportPage");var WV=!1,QV={generateListReportSchemaV2(e,t){return Nv(e,t)},createListReportConfig(e){return Cv(e)},exportListReportPage(e,t,n){return jv(e,t,n)}},Ud;function KV(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,kd.join)(__dirname.substring(0,i+13),"dist")}let t=(0,kd.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,Zv.readFileSync)(t,"utf8"))}r(KV,"getPersistentListReportNewSchema");function XV(){let e=KV();return function(t){return t===Br?{genericSchema:e,syncRuleProvider:Ln}:void 0}}r(XV,"createGenericSchemaInfoProvider");function JV(e){return e===Br?{propertyInstanceProvider:r(function(t){return new Ln},"propertyInstanceProvider")}:void 0}r(JV,"getConfigInfo");function Yv(e){let{value:t}=zn(e,[Yn.ManifestSection.generic],"pages");return Array.isArray(t)?[Yn.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Yn.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}r(Yv,"getPathForRootPage");function qV(e,t,n){let i=!e.layer||e.layer===Yn.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,_(o,t)}r(qV,"flexInfoToChangeString");function zV(){let e=XV(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Yn.ManifestSection.app].id=n,i.flexList.map(qV.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=Yv(i);if(!o)return null;let a={appId:((s=i[Yn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return Gv(a,e,n.logger)},createListReportConfig(n){let i=Yv(n.manifest);return Xv(n,i,JV)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Yn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=zv(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(zV,"createPageHandlerLRGeneric");function _d(){return WV?(Ud=Ud||zV(),Ud):QV}r(_d,"getPageHandlerLR");function Kr(e,t){return _d().generateListReportSchemaV2(e,t)}r(Kr,"generateListReportSchemaV2");function Hl(e){return _d().createListReportConfig(e)}r(Hl,"createListReportConfig");function Dd(e,t,n=!1){return _d().exportListReportPage(e,t,n)}r(Dd,"exportListReportPage");function Wl(e,t){var n,i;return(n=e.component)!=null&&n.name?ia(ci((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Wl,"generateId");function YV(e,t,n,i){e.navigation={};let o=eP(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Wl(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(YV,"getPageConfigsAndNavigations");function eP(e,t){var i;let n={};for(let o in e){let a=e[o],s=Wl(a,o);if(!s)continue;let c={pageType:ci((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=Hl(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=jl(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=Dl(p)}a.pages&&YV(c,a,t,n)}return n}r(eP,"getPagesAndConfigs");var Bd=class Bd extends Fi{constructor(t){qe();let n;t.manifest[ut.ManifestSection.generic]?n=t.manifest[ut.ManifestSection.generic].pages:k(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOFE"),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}}),n||k(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&&Wl(n[i],i),a=new Li,s=Ye(ut.SchemaType.Application),c=t.appSchemas[s.filename];ft(a,t.manifest,c.definitions.AppSettings,void 0),super(t,o,eP(n,t),a)}};r(Bd,"V2AppProvider");var Gl=Bd;function Xr(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||k(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=Wl(c,s);i[l]=c}if(t===ut.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=Xr(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(Xr,"getPages");var wo=w(B());var Hd=class Hd extends Fi{constructor(t){let n={},i=t.manifest[wo.ManifestSection.ovp],o=new Li,a=Ye(wo.SchemaType.Application);ft(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(wo.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},l={pageType:wo.PageTypeV2.OverviewPage,config:Rl(c),entitySet:i.globalFilterEntitySet},p=ia(l.pageType,l.entitySet);n[p]=l,super(t,p,n,o)}};r(Hd,"V2OvpProvider");var Ql=Hd;var Kl=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=w(B());function ZV(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(ZV,"sortByPropertyIndex");function eL(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(ZV())}r(eL,"sortPropertiesRecords");function tP(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(tP,"getExtensionText");function Gd(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(Gd,"addExtensionToSortedArray");function tL(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(tL,"addRemainingTargetByBefore");function Wd(e,t,n,i,o=!1){var l,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=tP(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 b=n.findIndex(T=>T[0]===u.position.anchor);b>-1?(Gd(u,n,b,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:nn.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&&tL(e,f,u,n,m)}else o&&(Gd(u,n,n.length,f,m),delete e[f])}let c=Object.entries(e).length;c>0&&a!==c?Wd(e,t,n,i):c>0&&Wd(e,t,n,i,!0)}r(Wd,"adjustCustomExtReferringToCustomExt");function nL(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(nL,"getExtensionAnchor");function iL(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(iL,"getLocalExtensionsToSkip");function oL(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(oL,"getExtensionIndex");function aL(e,t,n,i,o){k(e,{severity:nn.LogSeverity.Error,message:R.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(aL,"handleInvalidExtension");function rL(e,t,n,i="template",o){let a=[...t],s={...e},c=iL(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:tP(p)||l,keys:[{name:G.SchemaKeyName.key,value:`${l}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){aL(o,l,t,f,s);continue}if(!(i in p)){delete s[l];continue}let u=nL(p,a);if(u){let m=oL(p,e,t,u);m>-1&&(Gd(p,t,m,l,f),delete s[l])}else t.push([l,f]),delete s[l]}return Object.keys(s).length>0&&Wd(s,n,t,o),t}r(rL,"addExtensionToArray");function sL(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(sL,"determineActionDefinitionName");function cL(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}=fo(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r(cL,"addTargetAndKeysOfAction");function lL(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=sL(e),c=xt(i,e.entityType),l=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=pc(p),u=t.properties[`${l}::${f}`]={description:c};if(a?u.$ref=PS(s,Fe(f),e.appSchema,n):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=Cn(i),cL(u,i,p),u[G.SchemaTag.annotationType]=i.$Type,a){let m=u.$ref.replace(O,""),b=ht(s,m,e.appSchema,!1);b[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(lL,"addActionRecordToSchema");function pL(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=di(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]=Cn(s),f[c]=u,Sc(s,f,c)}}r(pL,"addLineItemRecordToSchema");function fL(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Kl.UIAnnotationTypes.DataFieldForAction||s.$Type===Kl.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))lL(e,t,n,s,a,!i);else{let c={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},l=s.$Type===Kl.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;pL(e,c,l,a,i)}a++})}r(fL,"appendLineItemsToSchema");function $o(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=bc(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);fL(e,n,i,void 0,t)}r($o,"addLineItemsTypeToSchema");function Xl(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&&(oc(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(Xl,"findPageV4");function nP(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(nP,"alignSchemaWithTemplateType");function iP(e,t,n,i,o,a){var p,f,u,m;let s=eL(t),c=new Map;if(s=s.map(b=>{let T=Of(e,b[1],b[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return c.set(T.const,b[0]),[T.const,b[1]]}),!o&&i.includes(G.DefinitionName.ObjectPageCustomSectionFragment)){let b=(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;b&&(s=rL(b,s,i,"name",a))}for(let b=0;b<s.length;b++)s[b][1][G.SchemaTag.propertyIndex]=b;let l={};s.forEach(([b,T])=>{b=c.get(b)||b,l[b]=T}),t.properties=l}r(iP,"addCustomSectionDefinition");var E=w(B()),Kd=require("@sap-ux/vocabularies-types/vocabularies/UI");var uL=["filterBar","chart","table"],Qd="@UI.LineItem";function dL(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=_t(e.fullyQualifiedName,Kd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,c="SelectionField::"+Fe(a.value);a.type==="PropertyPath"&&(s=tc(a,e)),i.properties[c]={$ref:O+c},i.properties[c][E.SchemaTag.propertyIndex]=o;let l=Cn(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(dL,"addSelectionFields");function aP(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=Fe(`${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(aP,"defineActions");function rP(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"?aa(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(rP,"findTheRightVisualization");function gL(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(gL,"analyzeChartAnnotation");function mL(e,t,n,i,o,a){var l;let{visualization:s,targetAnnotation:c}=rP((l=e.PresentationVariant)==null?void 0:l.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:R.t("NOVISUALIZATIONS")}),s=Qd,c=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:c,namespace:t,title:a}}r(mL,"analyzeSPVforView");function Jl(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}=rP(l.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(c.startsWith("SelectionPresentationVariant"))return mL(l,a,n,i,o,s);if(c.startsWith("SelectionVariant")){let p=Qd,f=`/${a}/@${Kd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("LineItem")){let p=Qd;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}=gL(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(Jl,"analyzeViewAnnotation");function yL(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 CS(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(yL,"addALPChartView");function hL(e,t,n,i,o,a){var L,Y,ne,q,fe,ie,pe,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}=Jl(c,s,"primary",void 0,n.logger);yL(e,c,l,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=O+p,aP(e,p,s,l,n.entityType);let{visualization:f,targetAnnotation:u}=Jl((pe=(ie=(fe=t==null?void 0:t[0])==null?void 0:fe.secondary)==null?void 0:ie[0])==null?void 0:pe[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 b=e.definitions[E.DefinitionName.ALPTableView];e.definitions[E.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(b)),delete e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.isViewNode],b.additionalProperties=!1,b.description="Table (key: secondary)",b.title="Table",f?(delete b.properties,b.$ref=`${O}${E.DefinitionName.ALPTable}`):i||(b.properties={}),b[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};$o(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let ke=s[F].fullyQualifiedName.split("@");b[E.SchemaTag.annotationPath]=`/${ke[0]}/@${ke[1]}`,b[E.SchemaTag.key]="secondary",b[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(hL,"addALPViews");function bL(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 aP(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${O}${o}`,n}r(bL,"addViewChartDefinitions");function TL(e,t,n,i,o,a){let s=bL(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(TL,"addViewChart");function oP(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(oP,"createEmptyProperties");function SL(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),go(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},go(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:b}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let T=b[E.DefinitionName.ViewTableColumn];b[u]=oP(T);let F=E.DefinitionName.ViewTableColumnBasicAction,L=`${E.DefinitionName.ViewTableColumnAction}`;b[F]=oP(b[L])}$o(f,u)}r(SL,"addViewLineItems");function vL(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(vL,"addTagsToView");function PL(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(PL,"getTargetEntityType");function AL(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(AL,"handleViewProperties");function CL(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)SL(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&AL(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)TL(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(CL,"addLRViewParts");function EL(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=PL(n.entitySet,l,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:b,namespace:T,title:F}=Jl(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=Fe(l[E.SchemaTag.key]),Y={viewKey:L,appSchema:e,targetAnnotation:b,navPropName:p,targetEntityType:f,title:F,entitySet:l.entitySet};CL(m,s,Y,n,i,u,l),vL(s,L,T,l)}}r(EL,"addLRViews");function xL(e,t,n,i,o,a){var f,u,m,b,T,F,L,Y,ne,q,fe,ie;let s=e.definitions[a],{visualization:c,targetAnnotation:l,namespace:p}=Jl(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(c){let pe=c.split(".")[1],Ve=`${E.DefinitionName.LineItems}OfSPV::${Fe(pe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],go(P.properties.toolBar,E.DefinitionName.ToolBar,Ve),P[E.SchemaTag.annotationPath]=l,P.properties.columns={},go(P.properties.columns,Ve),delete s.properties,go(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let ke=(u=t.entityType)==null?void 0:u.annotations.UI[pe];ke||k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOTARGET",{target:pe})});let Xe={isObjectPage:!1,appSchema:e,lineItemAnnotation:ke,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Ve};$o(Xe)}else{s.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,go(s.properties.columns,E.DefinitionName.LineItems);let pe=(T=(b=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:b[o])==null?void 0:T.LineItem;!pe&&!((Y=(L=(F=i.options)==null?void 0:F.settings)==null?void 0:L.views)!=null&&Y.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOLINEITEMS")});let Ve={isObjectPage:!1,appSchema:e,lineItemAnnotation:pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};$o(Ve),pe&&!((fe=(q=(ne=i.options)==null?void 0:ne.settings)==null?void 0:q.views)!=null&&fe.paths)&&(s[E.SchemaTag.annotationPath]=_t((ie=t.entityType)==null?void 0:ie.fullyQualifiedName,pe.term,pe.qualifier))}}r(xL,"adaptTableDefinition");function IL(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(IL,"getDefaultAnnotationPath");function OL(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=IL(t,n.entityType,n.templateType),s=nP(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(xL(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],EL(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&&hL(e,o,n,a,t,s)}r(OL,"addTableAndViews");function Jr(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(dL(a,o,c),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,Ii(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[E.ManifestSection.ui5].routing.targets;if(!f)return k(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=Xl(f,i,n,e.logger);if(!u)return o;OL(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,Gn(o,uL),o}r(Jr,"generateListReportSchemaV4");var Nn=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=w(B());var FL=["header","layout","sections","footer"],VL=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function Xd(e,t,n,i,o,a,s){let{actionName:c,namespace:l}=Pc(t.item,e),p=di(t.item),f=t.item.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Fe(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]=Cn(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(Xd,"addSingleHeaderActionV4");function sP(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(sP,"addStandardHeaderAction");function cP(e,t,n,i,o,a){let s=di(e.item),c=xt(e.item,n),l=Fe(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.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(cP,"addSingleFooterAction");function LL(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Nn.UIAnnotationTypes.DataFieldForAction||i.$Type===Nn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(VL.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(LL,"groupByCriticality");function NL(e,t,n,i,o){for(let a=0;a<e.length;a++)Xd(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(NL,"addCriticalActions");function DL(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&&(Xd(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(DL,"addCopyAction");function RL(e,t,n,i,o,a){for(let s of e)Xd(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(RL,"addUncriticalActions");function lP(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(lP,"setAnnotationPathFromEntitySetOrEntityType");function jL(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:c=[]}=n?LL(n):{};NL(s,o,t,e,i);let l=pS(a),p=fS(a);if(hc(a)&&p){let u=sP("Edit",t,i,s.length);lP(u,a,e,"UpdateHidden")}if(l){let u=sP("Delete",t,i,s.length+1);lP(u,a,e,"DeleteHidden")}let f=s.length+2;DL(c,o,t,e,i,f),RL(c,o,t,e,i,f)}r(jL,"addHeaderActionCallBackV4");function wL(e,t,n,i){let o=[],a=[];i.forEach((s,c)=>{s.Determining&&s.$Type===Nn.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];cP(c,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let c=a[s];cP(c,v.ActionType.Annotation,e,t,n,o.length+s)}}r(wL,"addFooterActionCallBackV4");function $L(e,t,n,i,o){let a=fa(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=en(v.DefinitionName.ObjectPageToolBar,t),l.properties.quickVariantSelection.$ref=en(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=ht(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=en(v.DefinitionName.AnnotationPathAsObject,t),ht(v.DefinitionName.AnnotationPathAsObject,t,n),Ii(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return $o(f,v.DefinitionName.ObjectPageTableColumn),l}r($L,"handleLineItem");function fP(e,t,n,i,o,a){a&&ql(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=ht(v.DefinitionName.ObjectPageSectionTableV4,t,n);pi(e,s,fa(t)),Ei(e,s,fa(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=en(v.DefinitionName.ObjectPageTable,t);let c=$L(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:c}}r(fP,"handleSectionTable");function ML(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:en(a,t)};let s=ht(a,t,i);e.ID||(s.properties={}),pi(e,s,t),Ei(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,vc(o,e,s,i,v.FioriElementsVersion.v4,t)}r(ML,"handleFormIdentification");function pP(e,t,n,i,o){n.properties[t]={$ref:`${O}${o}`};let a=ht(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);na(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=uo(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(pP,"handleHeaderFacet");function UL(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:en(v.DefinitionName.ObjectPageToolBarAction,f),description:l};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=c.$Type;let m=ht(v.DefinitionName.ObjectPageToolBarAction,Fe(f),n);m[v.SchemaTag.annotationPath]=xc(c),m[v.SchemaTag.dataType]=Cn(c),m.properties={},a++})}return o}r(UL,"handleChartActions");function kL(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=xc(e),o[v.SchemaTag.dataType]=uo(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=en(v.DefinitionName.ObjectPageToolBar,t);let a=ht(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=en(v.DefinitionName.ObjectPageToolBarActions,t);let s=UL(e,t,n,i);return{chart:o,chartActions:s}}r(kL,"handleChart");function uP(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&&ql(i,t,c);let p=nr(l,t),f=ht(c,p,n,!1);if(na(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=xc(e),f.properties.chart.$ref=en(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=kL(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(uP,"handleSectionChart");function _L(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${xf(o,n.serviceAVT)}`,c=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:c}}r(_L,"getVisualizationKeyAndType");function BL(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(BL,"getTargetFromNavigation");function HL(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}=_L(!!o,a,n),p=o?a:BL(n,s,l),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:c,type:l,target:p,namespace:f,navigationPath:s}}r(HL,"getVisualizationProps");function ql(e,t,n,i){e.properties[t]={$ref:en(n,i||t)}}r(ql,"addPropertyRef");function dP(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(dP,"getSectionPropertyRef");function GL(e,t,n,i,o,a){let{propertyKey:s,navigationKey:c}=dP(t,o);ql(i,s,v.DefinitionName.ObjectPageSectionTableV4,c);let{sectionTable:l,table:p}=fP(e,c,n,{target:o.target,entityType:e.entityType},a);l[v.SchemaTag.annotationPath]=e.annotationPath,na(e,l,t),delete l[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(GL,"addPVLineItemSection");function WL(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:c,navigationKey:l}=dP(t,o);ql(i,c,s,l);let{parentChartRef:p}=uP(o.target,l,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(pi(e,p,t),NT(e,p)):na(e,p,t)}r(WL,"addPVChartSection");function QL(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){k(a.logger,{severity:v.LogSeverity.Error,message:R.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=HL(e,t,a),l=o===v.SectionType.HeaderSection;c&&(c.type.startsWith(v.Visualization.Chart)?WL(e,t,n,i,c,l):c.type.startsWith(v.Visualization.LineItem)&&GL(e,t,n,i,c,a))}r(QL,"handleSectionPresentationVariant");function KL(e,t,n,i,o,a,s){let c=o;e.additionalProperties={$ref:`${O}${c}`},iP(t,e,i,c,s,n.logger);let l=t.definitions[c];typeof l=="object"&&AS(t,e,{schema:l,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(KL,"applyCustomSections");function Jd(e,t,n,i,o,a,s){let c=t[n],l=`ObjectPage${a}${c.base}<${fa(n)}>`;switch(c.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{QL(c,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{XL(c,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];fP(c,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{ML(c,n,i,o,a);break}case v.FacetBase.DataPoint:{pP(c,n,i,o,l);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?pP(c,n,i,o,l):a===v.SectionType.Section&&uP(c,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{ir(c,n,i,o,a);break}default:i.properties[n]=Bn(o,c,n)}}r(Jd,"addSection");function XL(e,t,n,i,o,a,s){let c=i.properties[t]=Bn(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)Jd(a,e.facets,p,l,n,o,s)}r(XL,"handleCollection");function JL(e,t,n){let i=ic(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)Jd(e,i,a,o,t,v.SectionType.Section,n);KL(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(JL,"addSections");function qL(e,t,n,i){let o=nc(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)Jd(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(qL,"addHeaderSections");function zL(e,t,n){let i=e.entitySet.entityType;Ec(t,i),Cc(t,i,e.entitySet,e.serviceAVT,jL),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Nn.UIAnnotationTerms.HeaderFacets}`),qL(e,t,i,n)}r(zL,"addHeader");function qr(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 k(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 k(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=Xl(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;zL(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Nn.UIAnnotationTerms.Facets}`),JL(e,i,s),Ac(i,e,v.FioriElementsVersion.v4,wL)}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],Gn(i,FL),i}r(qr,"generateObjectPageSchemaV4");function qd(e,t){return JSON.parse(JSON.stringify(t))}r(qd,"generateFreestyleSchemaV4");var mn=w(B());function zd(e,t,n,i,o,a){let s=An(n,o),c=Pi(t,s);c||k(o,{severity:mn.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:t})});let l={templateType:mn.TemplateType.ListReportObjectPageV4,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:c,entityType:c==null?void 0:c.entityType};return qr(l,e,c)}r(zd,"generateObjectPageInterfaceV4");function zl(e,t,n,i,o,a){qe();let s=An(i,o),c=s==null?void 0:s.entitySets.find(f=>f.name===n),l={templateType:e,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:c,entityType:c.entityType},p=e===mn.TemplateType.ListReportObjectPageV4?mn.v4.FE_TEMPLATE_V4_LIST_REPORT:mn.v4.FE_TEMPLATE_V4_ALP;return Jr(l,t,c,p)}r(zl,"generateListReportInterfaceV4");function Yd(e,t,n,i,o,a){let s=An(n,a),c={templateType:e,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return qd(c,t)}r(Yd,"generateFreestyleInterfaceV4");var zr=require("@sap-ux/vocabularies-types/vocabularies/UI"),gP=w(B());var $e=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),ep=r(e=>$e(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Zd=r(e=>$e(e)+"/content/header","getSettingsPathForHeaderOP"),Zn=r(e=>$e(e)+"/controlConfiguration","getControlConfigurationPath"),tp=r((e,t,n)=>Zn(e)+`/@${zr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Dn=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Rn=r((e,t,n,i,o)=>o?Dn(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),np=r((e,t,n,i,o)=>Rn(e,t,n,i,o)+gP.QUICKVARPATH,"getQuickVariantPath"),Jt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Mt=r((e,t,n,i,o)=>o?Jt(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),eg=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),ip=r((e,t,n,i,o)=>o?eg(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Mo=r((e,t,n,i)=>Zn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),mP=r((e,t,n,i)=>Zn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),vt=r((e,t,n)=>Zn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Yr=r((e,t,n,i)=>{let o=$e(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),Zl=class Zl{};r(Zl,"ApplicationV4"),d([_e("settings")],Zl.prototype,"settings",2);var Yl=Zl,Xi=class Xi{};r(Xi,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Xi.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Xi.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Xi.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),S({since:"1.78.0"})],Xi.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"})],Xi.prototype,"flexEnabled",2);var Da=Xi;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=li(t,m,a,p,!0),c&&Object.keys(c).length>0&&(sa(u,c,f,e,a,o),cc(l,c,m,s))}}}r(Ze,"importSettingsOfObject");var Jg={};Ko(Jg,{ALPChart:()=>ig,ALPTable:()=>$a,ActionAfterExecutionConfiguration:()=>mg,ActionAfterExecutionConfigurationOP:()=>fs,ActionAfterExecutionConfigurationToolBarLR:()=>xg,Actions:()=>Pg,CommonHeaderFacetSettings:()=>qi,CommonViewSettings:()=>wa,FilterBar:()=>Vg,FlexSettings:()=>Dg,HeaderSections:()=>Ug,LRChartView:()=>og,LRTableView:()=>ag,MultiTableModeV4:()=>sg,ObjectPageCustomSectionFragment:()=>ms,ObjectPageHeader:()=>Ng,ObjectPageHeaderSectionAddress:()=>Mg,ObjectPageHeaderSectionChart:()=>jg,ObjectPageHeaderSectionContact:()=>$g,ObjectPageHeaderSectionDataPoint:()=>wg,ObjectPageHeaderSectionForm:()=>Rg,ObjectPageLayout:()=>Qg,ObjectPageTable:()=>gs,ObjectPageTableColumn:()=>Ma,ObjectPageTableColumnAction:()=>Lg,ObjectPageToolBarAction:()=>Fg,Position:()=>bg,QuickVariantSelectionV4:()=>ng,QuickVariantSelectionV4OP:()=>Xg,Table:()=>cg,TableColumn:()=>cp,TableColumnAction:()=>yg,TableCreationModeOP:()=>Kg,TableCustomColumn:()=>Sg,TableSettings:()=>op,TableViewExtension:()=>rg,TableViewSettings:()=>ts,ToolBar:()=>Ag,ToolBarAction:()=>Ig,ViewPosition:()=>Tg,ViewTableColumn:()=>lp,ViewTableColumnAction:()=>hg,ViewTableCustomColumn:()=>vg,ViewToolBarAction:()=>Og,checkViewOrder:()=>pg,deleteCreationModeCreateAtEnd:()=>gg,deleteCreationModeName:()=>fg,exportCreationModeCreateAtEnd:()=>dg,exportCreationModeName:()=>lg,exportPersonalization:()=>eN,exportPersonalizationProperty:()=>tN});var tg=w(B());var YL=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 jn(e,t,n,i,o,a){let s=ep(e),c=YL(JSON.parse(JSON.stringify(t)),s),l;for(let p=0;p<c.length;p++){let f=c[p];if(f&&(f[tg.SchemaTag.key]===(a==null?void 0:a.key)||f[tg.SchemaTag.key]===i)){l=`${s}/${p}`;break}}return l||(l=`${s}/[]`),l}r(jn,"getSettingsPathForLRViewsPath");function lg(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(lg,"exportCreationModeName");function ZL(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(ZL,"fillNewlyOrderedViews");function pg(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=ZL(e,n,o,s,c,a);for(let p of Object.keys(l))e[p]=l[p]}}r(pg,"checkViewOrder");function eN(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(eN,"exportPersonalization");function tN(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(tN,"exportPersonalizationProperty");function fg(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(fg,"deleteCreationModeName");function ug(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(ug,"deleteView");function dg(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(dg,"exportCreationModeCreateAtEnd");function gg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(gg,"deleteCreationModeCreateAtEnd");function yP(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(yP,"determineIndexOfView");var Ra=class Ra{};r(Ra,"QuickVariantSelectionV4"),d([g({manifest:{path:np}})],Ra.prototype,"paths",2),d([g({manifest:{path:np}})],Ra.prototype,"hideTableTitle",2),d([g({manifest:{path:np}})],Ra.prototype,"showCounts",2);var ng=Ra,yn=class yn{};r(yn,"TableSettings"),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yn.prototype,"type",2),d([g({manifest:{path:Rn}}),S({since:"1.86.0"})],yn.prototype,"personalization",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],yn.prototype,"selectionMode",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"selectAll",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"selectionLimit",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yn.prototype,"enableExport",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"quickVariantSelection",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yn.prototype,"condensedTableLayout",2),d([g({manifest:{path:Rn}}),S({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yn.prototype,"hierarchyQualifier",2);var op=yn,ap=class ap{};r(ap,"ALPChart"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/primary/0","path"),delete:ug}})],ap.prototype,"annotationPath",2);var ig=ap,Uo=class Uo{};r(Uo,"CommonViewSettings"),d([g({manifest:{path:jn,delete:io}})],Uo.prototype,"key",2),d([g({manifest:{path:ep,import:yP,export:r((t,n)=>{pg(t,n)},"export"),delete:ug}})],Uo.prototype,"index",2),d([g({manifest:{path:jn,delete:io}})],Uo.prototype,"annotationPath",2),d([g({manifest:{path:jn}})],Uo.prototype,"entitySet",2);var wa=Uo,hn=class hn extends wa{};r(hn,"TableViewSettings"),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"type",2),d([g({manifest:{path:Dn}}),S({since:"1.86.0"})],hn.prototype,"personalization",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectionMode",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectAll",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectionLimit",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],hn.prototype,"enableExport",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"quickVariantSelection",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],hn.prototype,"condensedTableLayout",2),d([g({manifest:{path:Dn}}),S({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],hn.prototype,"hierarchyQualifier",2);var ts=hn;function nN(e){return ts}r(nN,"getTableViewSettings");var Zr=class Zr extends ts{};r(Zr,"ALPTable"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:io}})],Zr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Zr.prototype,"initialLoad",2);var $a=Zr,rp=class rp extends wa{};r(rp,"LRChartView"),d([g({manifest:{path:jn},generate:Wn})],rp.prototype,"visible",2);var og=rp,ja=class ja extends nN(wa){};r(ja,"LRTableView"),d([g({manifest:{path:jn}})],ja.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:jn}})],ja.prototype,"entitySet",2),d([g({manifest:{path:jn},generate:Wn})],ja.prototype,"visible",2);var ag=ja,Ji=class Ji{};r(Ji,"TableViewExtension"),d([g({manifest:{path:jn}})],Ji.prototype,"key",2),d([g({manifest:{path:ep,import:yP,export:r((t,n)=>{pg(t,n)},"export"),delete:ug}})],Ji.prototype,"index",2),d([g({manifest:{path:jn}})],Ji.prototype,"label",2),d([g({manifest:{path:jn}})],Ji.prototype,"template",2),d([g({manifest:{path:jn},generate:Wn})],Ji.prototype,"visible",2);var rg=Ji,sp=class sp{};r(sp,"MultiTableModeV4"),d([g({manifest:{path:r(t=>$e(t)+"/views","path")}})],sp.prototype,"showCounts",2);var sg=sp,es=class es extends op{};r(es,"Table"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:io}})],es.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],es.prototype,"initialLoad",2);var cg=es;var ns=class ns{};r(ns,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ns.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}})],ns.prototype,"enableAutoScroll",2);var mg=ns,is=class is{};r(is,"TableColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],is.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],is.prototype,"availability",2);var cp=is,os=class os{};r(os,"ViewTableColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],os.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],os.prototype,"availability",2);var lp=os,pp=class pp extends cp{};r(pp,"TableColumnAction"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],pp.prototype,"afterExecution",2);var yg=pp,fp=class fp extends lp{};r(fp,"ViewTableColumnAction"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],fp.prototype,"afterExecution",2);var hg=fp,as=class as{};r(as,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],as.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"})],as.prototype,"placement",2);var bg=as,rs=class rs{};r(rs,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],rs.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"})],rs.prototype,"placement",2);var Tg=rs,ei=class ei{};r(ei,"TableCustomColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"position",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"header",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ei.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"template",2),d([g({manifest:{path:Mt}}),S({since:"1.86.0"})],ei.prototype,"horizontalAlign",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"availability",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ei.prototype,"properties",2);var Sg=ei,ti=class ti{};r(ti,"ViewTableCustomColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"position",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"header",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ti.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"template",2),d([g({manifest:{path:Jt}}),S({since:"1.86.0"})],ti.prototype,"horizontalAlign",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"availability",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ti.prototype,"properties",2);var vg=ti;var Cg=class Cg{};r(Cg,"Actions");var Pg=Cg,Eg=class Eg{};r(Eg,"ToolBar");var Ag=Eg;var ss=class ss{};r(ss,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>ip(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ss.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>ip(t,n,i,o,a)+"/afterExecution","path")}})],ss.prototype,"enableAutoScroll",2);var xg=ss,up=class up{};r(up,"ToolBarAction"),d([g({manifest:{path:ip}})],up.prototype,"enableOnSelect",2);var Ig=up,dp=class dp{};r(dp,"ViewToolBarAction"),d([g({manifest:{path:eg}})],dp.prototype,"enableOnSelect",2);var Og=dp;var gp=class gp{};r(gp,"ObjectPageToolBarAction"),d([g({manifest:{path:mP}})],gp.prototype,"enableOnSelect",2);var Fg=gp;var mp=class mp{};r(mp,"FilterBar"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.99.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],mp.prototype,"hideFilterBar",2);var Vg=mp;var cs=class cs{};r(cs,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],cs.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/afterExecution","path")}})],cs.prototype,"enableAutoScroll",2);var fs=cs,ls=class ls{};r(ls,"ObjectPageTableColumn"),d([g({manifest:{path:Mo}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ls.prototype,"width",2),d([g({manifest:{path:Mo}}),S({since:"1.85.0"})],ls.prototype,"availability",2);var Ma=ls,ps=class ps extends Ma{};r(ps,"ObjectPageTableColumnAction"),d([g({manifest:{path:Mo}}),S({since:"1.84.0"})],ps.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/position","path")}}),S({since:"1.84.0"})],ps.prototype,"placement",2);var Lg=ps;var ko=class ko{};r(ko,"ObjectPageHeader"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],ko.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],ko.prototype,"showRelatedApps",2),d([g({manifest:{path:Zd}}),S({since:"1.84.0"})],ko.prototype,"visible",2),d([g({manifest:{path:Zd}}),S({since:"1.84.0"})],ko.prototype,"anchorBarVisible",2);var Ng=ko;var yp=class yp{};r(yp,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>tp(t,n,i)+"/flexSettings","path")}}),S({since:"1.81.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],yp.prototype,"designtime",2);var Dg=yp,us=class us{};r(us,"CommonHeaderFacetSettings"),d([g({manifest:{path:tp}}),S({since:"1.81.0"})],us.prototype,"stashed",2),d([g({manifest:{path:tp}}),S({since:"1.81.0"})],us.prototype,"flexSettings",2);var qi=us,kg=class kg extends qi{};r(kg,"ObjectPageHeaderSectionForm");var Rg=kg,_g=class _g extends qi{};r(_g,"ObjectPageHeaderSectionChart");var jg=_g,Bg=class Bg extends qi{};r(Bg,"ObjectPageHeaderSectionDataPoint");var wg=Bg,Hg=class Hg extends qi{};r(Hg,"ObjectPageHeaderSectionContact");var $g=Hg,Gg=class Gg extends qi{};r(Gg,"ObjectPageHeaderSectionAddress");var Mg=Gg,Wg=class Wg{};r(Wg,"HeaderSections");var Ug=Wg;var hp=class hp{};r(hp,"ObjectPageLayout"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],hp.prototype,"sectionLayout",2);var Qg=hp;var bp=w(B());var ds=class ds{};r(ds,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{lg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{fg(t,o)},"delete")}})],ds.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{dg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{gg(t,o)},"delete")}})],ds.prototype,"createAtEnd",2);var Kg=ds,Ua=class Ua{};r(Ua,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"showCounts",2);var Xg=Ua,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"}),ye("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"}),ye("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"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qt.prototype,"hierarchyQualifier",2);var gs=qt;var _o=class _o{};r(_o,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>Yr(t,n,i,"position"),"path"),key:"anchor"}}),S({since:"1.77.0"})],_o.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>Yr(t,n,i,"position"),"path"),key:"placement"}}),S({since:"1.77.0"})],_o.prototype,"relativePosition",2),d([g({manifest:{path:Yr}}),S({since:"1.77.0"})],_o.prototype,"title",2),d([g({manifest:{path:Yr,key:"name"}}),S({since:"1.77.0"})],_o.prototype,"fragmentName",2);var ms=_o;var Zg={};Ko(Zg,{FreestylePage:()=>zg,ListReport:()=>bn,ObjectPage:()=>wn});function iN(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(iN,"deleteAllALPViews");function oN(){}r(oN,"doNotExport");function aN(){}r(aN,"doNotImport");var bn=class{};r(bn,"ListReport"),d([g({manifest:{path:r(t=>$e(t)+"/views","path"),import:aN,export:oN,delete:iN}})],bn.prototype,"chart",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],bn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/[]/0","path")}}),ye("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],bn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}})],bn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],bn.prototype,"filterBar",2),bn=d([Qt({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],bn);var qg=w(B());var wn=class{};r(wn,"ObjectPage"),d([_e("header")],wn.prototype,"header",2),d([_e("layout")],wn.prototype,"layout",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],wn.prototype,"variantManagement",2),d([_e("sections")],wn.prototype,"sections",2),wn=d([Qt({id:`${qg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:qg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],wn);var Yg=class Yg{};r(Yg,"FreestylePage");var zg=Yg;var Tp=w(B());var rN={ALPTableView:$a},sN={ALPTableView:$a},cN={Table:gs,TableColumn:Ma,ObjectPageCustomSectionView:ms,ActionAfterExecutionConfiguration:fs},lN={[Tp.PageTypeV4.AnalyticalListPage]:rN,[Tp.PageTypeV4.ListReport]:sN,[Tp.PageTypeV4.ObjectPage]:cN},em=class em extends Na{constructor(){super(Jg,Zg,lN)}};r(em,"MetadataInstanceFactoryV4");var Ai=em;var tm=require("@sap-ux/vocabularies-types/vocabularies/UI");function nm(e,t,n,i,o,a,s){var f,u,m,b,T,F;let c=t.jsonSchema.definitions,l=a&&a!==`@${tm.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),ao(e.columns,L)}ao(e,"columns")}else{let L=(F=(T=(b=(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:b.options)==null?void 0:T.settings)==null?void 0:F.views;(!L||L.paths.length<1)&&k(t.logger,{severity:te.LogSeverity.Error,message:R.t("NOLINEITEMS")})}}r(nm,"transferColumns");function pN(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=`@${tm.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=oa(u.$ref),b=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,b),Ze(t.toolBar.actions[f],e.manifest,c[m],o,[f,l]),ao(t.toolBar.actions,f)}}}r(pN,"importActions");function hP(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,[]),pN(e,l,n,i,o,a,s),ao(l.toolBar,"actions"),ao(l,"toolBar")}r(hP,"transferToolBar");function bP(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(bP,"determineTargetAnnotationOfView");function fN(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);hP(e,t,n,i,o);let u=l.substr(l.lastIndexOf("@"));Ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),nm(f,e,n,i,o,void 0,u)}}r(fN,"importALPViews");function uN(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(uN,"getViewTypeByDefinition");function dN(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=uN(f),m=a[p[0]]=n.createInstance(i,u),b=bP(s,f);s[f].entitySet||(Ze(m,e.manifest,s[f],o,[p[0],b]),u===te.DefinitionName.LRTableView&&nm(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,b)),Object.keys(m).length===0&&delete a[p[0]]}ao(t.table,"views")}r(dN,"importLRViews");function gN(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=bP(e.jsonSchema.definitions,s);Ze(t.table,e.manifest,c,o,[s,p]),hP(e,t,n,i,o,l),nm(t.table,e,n,i,o,l,p),dN(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&fN(e,t,n,i,o)}r(gN,"addSettings");function Bo(e,t){if(qe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){k(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){k(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new Ai,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],c=mf(s);if("name"in s&&(c===te.PageTypeV4.ListReport||c===te.PageTypeV4.AnalyticalListPage)){gN(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(Bo,"createListReportConfig");var ce=w(B()),ys=require("@sap-ux/vocabularies-types/vocabularies/UI");function im(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${ys.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${ys.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(im,"getManifestId");function om(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(om,"getDefinitionId");function mN(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,c=e.jsonSchema.definitions[om(a)];if(c)for(let l in c.properties){c.properties[l].$ref.indexOf(ce.DefinitionName.CustomColumnOP)>-1?s=ce.DefinitionName.CustomColumnOP:s=ce.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(ce.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(mN,"fillTableColumnsInConfig");function yN(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${ce.DefinitionName.Actions}<${om(o)}>`];if(a)for(let s in a.properties){let c=a.properties[s];if(typeof c=="object"&&c.$ref){let l=oa(c.$ref),p=l.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(ce.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(yN,"fillTableActionsInConfig");function TP(e,t,n,i,o,a){let s=a||im(i),c=t.controlConfiguration[s];if(c){n[i]={},n[i].table=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageTable);let l=`${ce.DefinitionName.ObjectPageTable}<${a?om(a):i.replace("#","::")}>`;Ze(n[i].table,e.manifest,e.jsonSchema.definitions[l],e.routingId,[],s),n[i].table.toolBar=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ToolBar,{actions:{}}),yN(e,i,n,o,s),mN(e,c,n,i,o,s)}}r(TP,"fillTableInConfig");function hN(e,t,n,i,o){var c;let a=im(i);((c=t.controlConfiguration)==null?void 0:c[a])&&(n[i]={},n[i].form=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageForm,{actions:{}}))}r(hN,"fillFormInConfig");function SP(e,t,n,i,o){var a,s,c,l;for(let p in t){let f=t[p],u=p;if(p.includes(ys.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(O+ce.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(O)[1];u=m?im(m,!0):p,TP(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(O+ce.DefinitionName.ObjectPageSectionTableV4)?TP(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},SP(e,f.properties.subsections.properties,n,i[p].subsections,o)):(c=f.$ref)!=null&&c.startsWith(O+ce.DefinitionName.ObjectPageSectionForm)&&((l=f.$ref)!=null&&l.includes(`@${ys.UIAnnotationTerms.FieldGroup}::`))&&hN(e,n,i,p,o)}}r(SP,"fillSectionsInConfig");function bN(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(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageCustomSectionFragment);Ze(p,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],c),n.sections[c]=p}}r(bN,"fillCustomSectionsInConfig");function TN(e,t,n,i,o){var s,c;let a=e.definitions[ce.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(ce.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[l]=f?n.createInstance(ce.PageTypeV4.ObjectPage,f):{},Ze(t.header.sections[l],i,p,o,[],(c=p==null?void 0:p.title)==null?void 0:c.split(ce.FACETTITLEPREFIX)[1]))}}}r(TN,"fillHeaderFacets");function SN(e,t,n){let i=n.createPageInstance(ce.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageHeader),Ze(i.header,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageLayout),Ze(i.layout,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageLayout],e.routingId,[]),Ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[ce.DefinitionName.Sections]&&(i.sections={},SP(e,e.jsonSchema.definitions[ce.DefinitionName.Sections].properties,o,i.sections,n)),bN(e,o,i,n),TN(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(SN,"fillObjectPageConfig");function Sp(e){if(qe(),!e.manifest[ce.ManifestSection.ui5]||!e.manifest[ce.ManifestSection.ui5].routing){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5]}});return}let t=e.manifest[ce.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let i=new Ai;return SN(e,n,i)}r(Sp,"createObjectPageConfigV4");var he=w(B());var am=[],vp={};function vN(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(vN,"routesSorter");function rm(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(rm,"resolveTarget");function PN(e){let t={};e=e.concat().sort(vN);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=rm(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(PN,"populateAssociations");function AN(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:(k(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(AN,"determinePageType");function CN(e){let t=ia(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=Sp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Bo(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=Bo(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=tr(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Bo(i,a)}}}r(CN,"convertSettingsToConfig");function EN(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");am.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");am.push(t[t.length-1])}}r(EN,"updateUnhandledControllers");function xN(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(xN,"setVariantManagmentAndNavigation");function IN(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(IN,"evaluateCustomPageSettings");function ON(e,t,n,i){var p;let o=e.targets[t],a=AN(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),vp[t]&&vp[t].indexOf(".")!==-1){let f=vp[t].split(".");s.navigationProperty=f[f.length-1]}IN(o,s,a),xN(o,s),EN(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};CN(l)}r(ON,"getSinglePageAndConfig");function vP(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=R.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}vp=PN(n.routes||[]);for(let i in n.targets)ON(n,i,t,e);return t}r(vP,"getPagesAndConfigs");function PP(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 rm(t?t.target:e.routes[0].target)}else return}r(PP,"getHome");function AP(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(AP,"getSettings");function hs(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];oc(t,a.name)&&(i[o]=a)}return i}r(hs,"getPages");var sm=class sm extends Fi{constructor(t){qe();let n=new Da,i=Ye(he.SchemaType.Application),o=t.appSchemas[i.filename];Ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,PP(t.manifest[he.ManifestSection.ui5].routing),vP(t),{...AP(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=am}};r(sm,"V4AppProvider");var ka=sm;var CP=require("fs"),Ho=require("path"),EP=w(B()),cm=w(B());var xP=r((e,t,n=__dirname)=>{let i=t===cm.SchemaType.Application?`${cm.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Ho.join)(n,"schemas",e,i);if(n.endsWith((0,Ho.join)("specification","packages","specification")))return(0,Ho.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Ho.join)("src","specification")))return(0,Ho.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Ho.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),FN=r(async e=>new Promise((t,n)=>{(0,CP.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Pp=r(async(e,t)=>{try{let n=xP(e||EP.FioriElementsVersion.v4,t,__dirname);return await FN(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function VN(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 Pp(t,o)}return n}r(VN,"getGenericSchemas");function OP(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(OP,"getAnnotationsForUi");function Pi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(Pi,"getEntitySetByEntitySetName");function IP(e,t,n){let i=Xr(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=Pi(a,e.serviceAVT);s||k(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]=bs(e,t[l.filename])}}r(IP,"generateObjectPageSchemasV2");function LN(e,t,n){let i=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let c=a[s].options.settings.entitySet,l=Pi(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=tr(a[s])),n[p.filename]=Jr(e,t[f.filename],l,a[s].name)}}r(LN,"generateListReportSchemasV4");function NN(e,t,n){var o;let i=Xr(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=Pi(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]=Kr(e,n[l.filename])}}r(NN,"generateAppSchemaV2LR");function DN(e,t,n){let i=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=Pi(a,e.serviceAVT);s||k(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]=qr(e,t[l.filename],s)}}r(DN,"generateObjectPageSchemasV4");function RN(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)NN(e,o,t),IP(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=Xr(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=Pi(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]=Ts(e,t[f.filename])}IP(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Ye(Q.SchemaType.OverviewPage),c=Ye(Q.SchemaType.OverviewPage);o[s.filename]=Ss(t[c.filename],e.manifest)}return{...t,...o}}r(RN,"generateAppSchemasV2");function jN(e,t,n){let i={};return n&&(LN(e,t,i),DN(e,t,i)),{...t,...i}}r(jN,"generateAppSchemasV4");async function FP(e,t,n){let i=await VN(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?jN(e,i,t):RN(e,i,t,n)}r(FP,"generateAppSchemas");function wN(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new Gl(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new ka(e);break;case Q.TemplateType.OverviewPageV2:t=new Ql(e);break;default:t=new ka(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(wN,"importConfigs");function VP(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(VP,"getFileList");async function lm(e){var T,F;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new or().doesUi5VersionFitDistTags((F=(T=t["sap.ui5"])==null?void 0:T.dependencies)==null?void 0:F.minUI5Version,i);let l=bf(t),p=An(n,i),f=OP(p),u=no(t,l,i),b=await FP({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},f,u);return VP(b)}r(lm,"importProjectSchema");async function pm(e){var ne,q;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new or().doesUi5VersionFitDistTags((q=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:q.minUI5Version,i);let p=bf(t),f=LT(t),u=An(n,i),m=no(t,p,i),b={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},T=OP(u),F=await FP(b,T,m),Y=wN({manifest:t,flexChanges:s,appSchemas:F,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return VP(F,Y)}r(pm,"importProjectSchemaAndConfig");var $N=["header","sections","footer"];function MN(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&&(Ie(e,t,n),t.properties[n][j.SchemaTag.controlType]=o)}r(MN,"addFlexChangeForSection");function UN(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===$n.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:c,namespace:l}=Pc(a,o);if(!c)return;let p=a.Label||s,f=`HeaderAction<${Fe(c)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${$n.UIAnnotationTerms.Identification}`,`/@${$n.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(UN,"addHeaderActionCallBackV2");function kN(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===$n.UIAnnotationTypes.DataFieldForAction){let a=di(o).split("::").splice(1).join("::"),s=xt(o,e),c=Fe(`${j.DefinitionName.ObjectPageFooterAction}<${a}>`),l=o.fullyQualifiedName.replace(`@${$n.UIAnnotationTerms.Identification}`,`/@${$n.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(kN,"addFooterActionCallBackV2");function _N(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),b=Do(t[j.ManifestSection.generic].pages,n,u);return la(e,m,b,t,c,p,f,a.ID),p}r(_N,"ensureCustomColumnDefinitionExists");function Ps(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&MN(e,t,"visible",n)}r(Ps,"addAppSchemaDefinition");function BN(e,t,n){e.properties[t]={$ref:`${O}${n}`}}r(BN,"addSectionReference");function vs(e,t,n,i){let o=Fe(`${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}>`,Ii(n.entityType,i,`QuickVariant<${t}>`)}r(vs,"addTableDefinition");function HN(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]=Bn(n,i,t);let l=n.definitions[c];Ps(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,pi(i,l,t),Ei(i,l,t),vs("ObjectPageResponsiveTableWithMultiSelect",t,i,n),vs("ObjectPageResponsiveTableWithInlineDelete",t,i,n),vs("ObjectPageGridTable",t,i,n),vs("ObjectPageTreeTable",t,i,n),vs("ObjectPageAnalyticalTable",t,i,n);let p,f=yS(i.entityType,e.serviceAVT);f&&(p=_N(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))&&ca(!0,n,m.target,m.entityType,m.ID||u,p)}}r(HN,"handleLineItem");function GN(e,t,n,i,o,a=!1){e.definitions[t]=Bn(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ps(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[j.SchemaTag.isViewNode]=!0}r(GN,"handleSubSection");function WN(e,t,n,i,o){e.definitions[t]=Bn(e,n,i);let a=e.definitions[t];Ps(e,a,o,"ObjectPageSectionChartV2")}r(WN,"handleSectionChart");function LP(e,t,n,i,o,a){e.definitions[t]=Bn(e,n,i);let s=e.definitions[t];Ps(e,s,o,a||"CommonHeaderFacetSettings"),s[j.SchemaTag.annotationPath]=n.annotationPath,s[j.SchemaTag.isViewNode]=!0,s[j.SchemaTag.dataType]=uo(n==null?void 0:n.target)}r(LP,"handleHeaderFacet");function QN(e,t,n){let i=e.definitions[t],o=i[j.SchemaTag.dataType]=uo(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(QN,"addDataPointHeaderFacetDataType");function KN(e,t,n,i,o){e.definitions[t]=Bn(e,n,i);let a=e.definitions[t];return Ps(e,a,o,"ObjectPageSectionFormV2"),a[j.SchemaTag.annotationPath]=n.annotationPath,a[j.SchemaTag.isViewNode]=!0,a}r(KN,"handleFormSection");function XN(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(XN,"getSectionType");function JN(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${$n.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(JN,"getReferenceKey");function DP(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=XN(c.base,a,s),p=JN(c,n,l),f=`${l}<${p}>`;switch(BN(i,p,f),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,GN(o,f,c,n,l,s);let u=o.definitions[f].properties.subsections;for(let m in c.facets)DP(e,c.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{HN(e,p,o,c,t,l),ua(o,c.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{WN(o,f,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=KN(o,f,c,p,l);vc(j.SectionType.Section,c,u,o,j.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ir(c,p,i,o,j.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ir(c,p,i,o,j.SectionType.Section,j.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{LP(o,f,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{LP(o,f,c,p,l),QN(o,f,c);break}default:i.properties[n]=Bn(o,c,p)}}r(DP,"addSection");function NP(e,t,n,i,o,a=!1){if(e)for(let s in t)DP(i,t,s,n,o,!1,a)}r(NP,"addSectionsFromFacets");function RP(e,t,n){var f,u,m,b,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}/@${$n.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}/@${$n.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=ic((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),s=nc((b=e.entitySet)==null?void 0:b.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)?(NP(c,a,i,e,t),NP(l,s,o,e,t,!0)):RP(e,t,Y.pages)}let p=t.definitions.CustomSections;for(let L in p.properties)i.properties[L]=p.properties[L]}r(RP,"addSections");function qN(e,t,n,i){Ec(e,n),Cc(e,n,t,i,UN,!0)}r(qN,"addHeader");function zN(e,t,n,i){let o=DT(t,n,i,void 0,!0);o&&SS(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(zN,"addRelatedFacetKeysType");function bs(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?(qN(n,e.entitySet,o,e.serviceAVT),n.definitions[j.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},RP(e,n,a),zN(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]),Ac(n,e,j.FioriElementsVersion.v2,kN,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,Gn(n,$N),n):(k(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(bs,"generateObjectPageSchemaV2");var je=w(B());var YN=["filterBar","keyPerformanceIndicators","chart","table","footer"];function jP(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(jP,"retrieveNameWithoutVocabulary");function ZN(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 k(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||jP("LineItem",F),f=f||jP("Chart",F),p&&f}),p=p||"LineItem",f=f||"Chart";let u=t[p],m=t[f],b=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(b>0){let F=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],L=R.t(F);k(n,{severity:je.LogSeverity.Warning,message:L})}return{lineItemAnnotation:u,chartAnnotation:m}}r(ZN,"getLineItemAndChartAnnotation");function eD(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(eD,"addChart");function Ts(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,lS(n.definitions.TableColumnExtensionTypeV2.enum,[je.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)k(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{pa(n);let u=[],m=La(e.manifest[je.ManifestSection.generic].pages,u,e.logger),b=(l=a==null?void 0:a.annotations)==null?void 0:l.UI,{lineItemAnnotation:T,chartAnnotation:F}=ZN(m,b,e.logger);T&&iS.forEach(Y=>{n.definitions[Y][je.SchemaTag.annotationPath]=_t(a==null?void 0:a.fullyQualifiedName,T.term,T.qualifier)}),ca(!1,n,T,a),F&&eD(n,F);let L=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(yc(n,L,a),ua(n,a),!m)return k(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;la(n,a,m,e.manifest,e.fragments),Vd(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 Gn(n,YN),n}r(Ts,"generateAnalyticalListReportSchemaV2");var wP=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function tD(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(tD,"getCardDefinitionNames");function nD(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"},po(a,s.CardModel);let c=tD(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=O+"CardModel"}}r(nD,"addModelsEnum");function iD(e,t){let n=e.properties;for(let i in wP){let o=wP[i],a=o.key;n[a]&&(n[a].messages=[{text:ra(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(iD,"markDeprecatedProperties");function $P(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},iD(n,t),nD(n,t),n}r($P,"generateOverviewPageSchemaV2");var zi=w(B());function fm(e,t,n,i,o,a){qe();let s=An(e,t),c={templateType:a,fioriElementsVersion:zi.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=Pi(o,c.serviceAVT),c.entitySet||k(c.logger,{severity:zi.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(fm,"prepareGenerationV2");function um(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.ListReportObjectPageV2);return bs(s,e)}r(um,"generateObjectPageInterfaceV2");function dm(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.ListReportObjectPageV2);return Kr(s,e)}r(dm,"generateListReportInterfaceV2");function gm(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.AnalyticalListPageV2);return Ts(s,e)}r(gm,"generateAnalyticalListPageInterfaceV2");function Ss(e,t){return $P(e,t)}r(Ss,"generateOVPInterfaceV2");var As=w(B());var MP=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),oD=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function aD(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(aD,"initializeRouting");function rD(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(rD,"setTargetOptions");function sD(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==As.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(sD,"calculateQueryPattern");function UP(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){UP(e,t,n,a);return}}}r(UP,"fillNavigationParts");function cD(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(cD,"fillParentKeys");function lD(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],c=t[s.route];if(rD(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=[];UP(p,a,t,o);let f=cD(e.routePattern);l=sD(p,c,f)}i.routes.push(MP(l,s.route,s.route))}}}r(lD,"handlePageNavigation");function pD(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(pD,"removeDeletedPages");function fD(e,t){var n,i;e.entitySet?(t.options||(t.options=oD(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(fD,"transferEntitySet");function uD(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(uD,"updateRouteLayout");function dD(e,t,n){return e.pageType&&e.pageType!==As.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(dD,"fillTarget");function kP(e,t,n){var o,a;let i=aD(n[As.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(MP(":?query:",e,e));for(let s in t){let c,l=t[s];i.targets[s]&&(c=i.targets[s]),c=dD(l,c,s),fD(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={}),lD(l,t,c,i,s),uD(i,s,l),i.targets[s]=c}return pD(i,t),i}r(kP,"transformRoutingV4");var Lt=w(B());function _P(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(_P,"updateDependencyLib");function BP(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(BP,"extractLastIdPart");var HP=[Lt.FlexibleColumnLayoutAggregations.BeginColumnPages,Lt.FlexibleColumnLayoutAggregations.MidColumnPages,Lt.FlexibleColumnLayoutAggregations.EndColumnPages],GP=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:HP[o]?s.controlAggregation=HP[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)GP(e,t,c.navigation[f].route,a.target,o)}},"applyFCLRouting"),gD=r((e,t)=>{e.routing.config.routerClass=Lt.v4.FIORI_FCL_ROUTER_CLASS,GP(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,_P(e,Lt.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),mD=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"),WP=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?gD(e,t):mD(e)},"updateFcl");var $=w(B());var Ap=require("@sap-ux/vocabularies-types/vocabularies/UI");var QP=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],yD=[...QP,"views","initialLoad","template"],hD=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function bD(e,t,n){var s,c,l;let i=`@${Ap.UIAnnotationTerms.LineItem}`,o=`@${Ap.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(bD,"determineTargetAnnotationOfTable");function TD(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(TD,"determineTargetAnnotationOfChart");function SD(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(SD,"determineTargetAnnotationBasedOnParentView");function vD(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}=SD(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(vD,"determineTargetAnnotationOfView");function PD(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(PD,"determineTargetAnnotationOfHeaderSections");function AD(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=BP(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(AD,"determineTargetAnnotationOfSections");function CD(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=bD(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=TD(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=AD(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=PD(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=vD(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(CD,"determineTargetAnnotation");function ED(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(ED,"determineKeyForSyncRule");function xD(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(xD,"createNewObjectInManifest");function ID(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&&(xD(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(ID,"transferPropertyToManifest");function OD(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&&QP.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&yD.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 xi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),c}r(OD,"deleteFromManifest");function FD(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}=CD(e,n.transferParameters,n.configObject),f=ED(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,c,f,l,n.configObject),m=li(n.transferParameters.exportResults.manifest,u,l,p?void 0:c);if(m){let b={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&&ta([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=OD(e,b,n.transferParameters,m,u,l,c):o=ID(b,n.propertyDefinition,i)}return o}r(FD,"exportManifestChange");function VD(e,t,n){let i=pt(e.configObject,e.key);i!=null&&i.manifest&&FD(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(VD,"evaluateExportRule");function LD(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,ym(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(LD,"transferSubObject");function ND(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=li(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(ND,"createALPTableView");function DD(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=li(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)||Ap.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(DD,"createALPChartView");function RD(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=$e(t.pageNameArray)+"/views",s=li(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(RD,"createLRTableView");function jD(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 DD(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return ND(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=RD(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(jD,"createNewElement");function wD(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(wD,"isDefinitionTraversable");function mm(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=rc(e.configObject,e.key),s=Hn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:c,stopProcessing:l}=jD(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(O)[1],i),p=a?[...t,a]:[...t,e.key];if(c||VD(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||wD(e.propertyDefinition)&&s.configObject)&&!l){let u=a?[...n,a]:n;LD(e,s,o,p,u)}}r(mm,"transferSortedListEntry");function $D(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]],mm(e,i,o),a=!0):typeof c[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=c[0],e.propertyDefinition=p,mm(e,i,o),a=!0)}),e.index++})}return a}r($D,"transferConfigEntriesWithAnyOfDefinitions");function MD(e,t,n,i){let o=RT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(MD,"mergeEntriesForInsert");function UD(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(UD,"sortProperties");function kD(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=$D(n,p,i,o,a)}return s}r(kD,"checkIfAnyOfDefinition");function ym(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=kD(l,e,c,a,n,i),f=UD(a.properties);l!=null&&l.$ref&&MD(e,l,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!ta(o,e.entityPathArray)||(c.key=u[0],c.propertyDefinition=u[1],c.index=s,mm(c,n,i,p),u[1].$ref&&s++)})}r(ym,"transferManifestEntriesAndFlexChange");function KP(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(KP,"getClassesForSingleSection");function XP(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],KP(n,i,t),XP(n,t)}}r(XP,"getSubsectionClasses");function _D(e,t,n){let i;for(let o in e.sections)i=t.sections[o],KP(e,o,n),XP(i,n)}r(_D,"getExportClassesForSections");function JP(e,t){let n=sc(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(JP,"calculateBaseId");var qP=r((e,t,n=!1)=>{var c;let i=hD(e.manifest),o=new Ai,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(c=e.page.config)!=null&&c[$.PropertyName.sections]&&_D(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:JP(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 ym(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),BD=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 b={exportResults:c,appId:e.appId,appRootPath:e.appRootPath,baseId:JP(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 ym(b,n,[],[],[],l),c},"exportListPage"),hm=r((e,t,n,i=!1)=>{let o=new Ai,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return BD(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),zP=r((e,t,n=!1)=>hm(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),HD=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Yl,e);o.settings=Object.assign(new Da,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=li(i.manifest,p);if(((a=e.settings)==null?void 0:a[c])!==void 0)f[c]=e.settings[c];else{let u=li(i.manifest,p);((s=e.settings)==null?void 0:s[c])!==void 0?u[c]=e.settings[c]:c in u&&(delete u[c],xi(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=kP(e.home,e.pages,i.manifest),WP(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),YP=r((e,t)=>{if(e[$.SchemaType.ListReport])return hm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return qP(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return HD(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return zP(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),bm=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return hm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return qP(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return zP(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function GD(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=dm(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=um(i,o,a,s,c,l)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=Ss(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=gm(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=zl(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=zd(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=zl(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=Yd(Z.TemplateType.FreestylePageV4,i,a,c,o,s)}}return t}r(GD,"generateSchema");function WD(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Uv(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=YP(i,n)}return t}r(WD,"exportConfig");function QD(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Nd(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=bm(i,n)}return t}r(QD,"exportConfigEntityByPath");function KD(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Nd(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=bm(i,n,!0)}return t}r(KD,"deleteConfigEntityByPath");function XD(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=Hl(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Dl(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Rl(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=jl(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Bo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Sp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Bo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(XD,"importConfig");async function JD(e){return pm(e)}r(JD,"importProject");async function qD(e){return lm(e)}r(qD,"importProjectSchema");function zD(){return{version:"20",moduleVersion:OS.version}}r(zD,"getApiVersion");var Tn=require("path"),Yi=require("fs");var _a=r(async e=>new Promise((t,n)=>{(0,Yi.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),YD=r(async e=>JSON.parse(await _a(e)),"readJSON"),Tm=r(async e=>new Promise((t,n)=>{(0,Yi.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),ZD=r(async e=>new Promise(t=>{(0,Yi.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),ZP=r(async e=>new Promise(t=>{(0,Yi.exists)(e,n=>{t(n)})}),"resourceExists"),eR=r(async e=>YD((0,Tn.join)(e,"manifest.json")),"getManifest"),eA=r(async e=>{let t=[],n=(0,Tn.join)(e,"changes");if(!await ZP(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Tm(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await _a((0,Tn.join)(n,a)));return t},"getChanges"),tR=r(async e=>{let t=[],n=(0,Tn.join)(e,"ext","fragments");if(!await ZP(n))return t;let i=await Tm(n);for(let o of i){let a=(0,Tn.join)(n,o),s=await _a(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),nR=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,Tn.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await _a(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 b=(0,Tn.join)(t,i[m].settings.localUri);n.push({dataSourceUri:b,fileContent:await _a(b)})}}if(n.length===0)for(let m in i){let b=i[m];if((b==null?void 0:b.type)==="ODataAnnotation"&&((u=b==null?void 0:b.settings)!=null&&u.localUri)){let T=(0,Tn.join)(t,b.settings.localUri);n.push({dataSourceUri:T,fileContent:await _a(T)})}}return n},"getAnnotations"),iR=r(async e=>{let t=(0,Tn.basename)(e),n=(0,Tn.join)(e,"webapp"),i=await eR(n),o=await nR(i,n),a=await eA(n),s=await tR(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");eo(nn,w(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
88
|
+
`}),Tv(R)}r(qe,"initI18n");var Pd={};Ko(Pd,{AnalyticalListPage:()=>dn,ListReport:()=>Ln,ObjectPage:()=>St,OverviewPage:()=>Ke,exportFilterSettings:()=>Av,importDateSettingsOVP:()=>vv,importFilterSettings:()=>Pv});var Vl=w(B());var dn=class{};r(dn,"AnalyticalListPage"),d([g({flex:{controlId:ac,controlType:r(()=>Vl.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],dn.prototype,"fitContent",2),d([_e("table")],dn.prototype,"table",2),d([_e("template::SmartFilterBar")],dn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],dn.prototype,"chart",2),d([_e("analyticalListFooter")],dn.prototype,"footer",2),dn=d([Qt({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Vl.v2.FE_TEMPLATE_V2_ALP})],dn);var Hr=w(B());var Ln=class{};r(Ln,"ListReport"),d([g({flex:{controlId:ac,controlType:r(()=>Hr.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],Ln.prototype,"fitContent",2),d([_e("listReportFilter")],Ln.prototype,"filterBar",2),d([_e("listReport")],Ln.prototype,"table",2),d([_e("listReportFooter")],Ln.prototype,"footer",2),Ln=d([Qt({id:Hr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Ln);var vd=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=>Fc(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:io}}),S({since:"1.71.0"})],St.prototype,"globalTableSettings",2),St=d([Qt({id:vd.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vd.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],St);function OF(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(OF,"importDateSettingsFieldsOVP");function vv(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&&OF(e,t),t}r(vv,"importDateSettingsOVP");function Pv(e){let t={};return t.dateSettings=vv(e.filterSettings),t}r(Pv,"importFilterSettings");function FF(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(FF,"exportFilterFields");function Av(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&&FF(t,n,e))}r(Av,"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:Pv,export:Av}}),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 Ad=class Ad{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(Ad,"MetadataFactory");var Na=Ad;var bt=w(B());var LF={},VF={Table:vo,ResponsiveTableWithMultiSelect:vo,ResponsiveTableWithInlineDelete:vo},NF={[bt.v2.CardSettingsType.listCardSettings]:ba,[bt.v2.CardSettingsType.listCardSettingsv4]:ba,[bt.v2.CardSettingsType.analyticalCardSettings]:Ta,[bt.v2.CardSettingsType.analyticalCardSettingsv4]:Ta,[bt.v2.CardSettingsType.stackCardSettings]:ur,[bt.v2.CardSettingsType.linkListCardSettings]:dr,[bt.v2.CardSettingsType.tableCardSettings]:Sa,[bt.v2.CardSettingsType.tableCardSettingsv4]:Sa},DF={[bt.SAPUI5_VIEW_CLASS]:wr,[bt.SAPUI5_FRAGMENT_CLASS]:jr,Table:No,ObjectPageResponsiveTableWithMultiSelect:No,ObjectPageResponsiveTableWithInlineDelete:No},RF={[bt.PageTypeV2.AnalyticalListPage]:LF,[bt.PageTypeV2.ListReport]:VF,[bt.PageTypeV2.ObjectPage]:DF,[bt.PageTypeV2.OverviewPage]:NF},Cd=class Cd extends Na{constructor(){super(yd,Pd,RF)}};r(Cd,"MetadataInstanceFactoryV2");var wt=Cd;function jF(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(jF,"importFilterBar");function Ed(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};El(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"&&xl(e,n,s)}r(Ed,"importFlexChangesOfTableAndColumns");function wF(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[co]&&t[lo]&&(a=JSON.parse(JSON.stringify(t[co])),a.properties={...a.properties,...t[lo].properties}),ft(n.table,i.manifest,a,o,i.logger),Ed(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&&k(i.logger,{severity:He.LogSeverity.Error,message:R.t("NOLINEITEMS")})}r(wF,"importTable");function $F(e,t,n,i){let o=e.jsonSchema.definitions,a=Ol(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),Fl(t,n,o),wF(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=Wi(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)}jF(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=Wi(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($F,"addSettings");function Cv(e){if(qe(),!Fa(e))return;let n=new wt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=Oa(e.manifest[He.ManifestSection.generic].pages,o);if(La(a,e.logger,a==null?void 0:a.entitySet),!!a)return $F(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Il(i,s,e.jsonSchema,e.logger)}),Ia(i,e,a,He.PageTypeV2.ListReport),Ll(i),i}r(Cv,"createListReportConfig");var W=w(B());var Gr=require("@sap-ux/vocabularies-types/vocabularies/UI");var UF=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function kF(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(`${Gr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Gr.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(kF,"getSingleSelectorIdPart");function _F(e){let t,n=e.split(":::");if(n.length===1)t=kF(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(`::${Gr.UIAnnotationTerms.LineItem}`,`/@${Gr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(_F,"getFacetID");function BF(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=_F(m);m=bd(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){k(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(BF,"prepareFlexChanges");var HF=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 GF(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&hd(i,t,o)}r(GF,"addFlexChangeToColumns");function Ev(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?GF(a,p,o.properties,n):El(n,p,o))}}r(Ev,"importFlexChangesOfTable");function WF(e,t){return e.facetId==="template"&&t}r(WF,"isStandardActionFlexChange");var xv=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 QF(e,t,n,i,o,a){var O;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=((O=t.facetId)==null?void 0:O.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&xv(l,o.split("::"))&&s,m=e.title&&xv(l,e.title.split("::"),!0),h=!t.facetId&&UF.includes(t.controlType),T=WF(t,c);return p||f||u||m||h||T}r(QF,"matchSelector");function KF(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;QF(e,f,s,c,o,a)&&(t[i]=f.newValue)}}r(KF,"importFlexChanges");function XF(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(k(n.logger,{severity:W.LogSeverity.Warning,message:ra(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(XF,"checkDeprecatedProperties");function JF(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 XF(p,a,n,l),p}r(JF,"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];Ev(i.flexChanges,f,t,o,h,c)}else Ev(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);KF(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&JF(u,i.pageKeys,e,t,f,s,o)}}r($t,"transferSettingsAndFlexChanges");function Ov(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=`${oS}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${gc}${o}`;break}}return o.replace(/@/g,"")}r(Ov,"getActionId");function qF(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=Ov(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(qF,"fillStandardActions");function Nl(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=Wi(p),u=Ov(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]}}qF(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(Nl,"fillActions");function zF(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(zF,"fillFields");function YF(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(YF,"prepareTableSchema");function ZF(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=YF(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");Nl(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(ZF,"fillTableInConfig");function eL(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?lc(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};Ia(n[t],e,i,W.PageTypeV2.ObjectPage,c,o)}}r(eL,"fillCustomColumnsInConfig");function tL(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(tL,"fillChartSection");function nL(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(nL,"fillHeaderSection");function iL(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&&Nl(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&zF(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(iL,"fillFormSection");function Iv(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,xd(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(Iv,"fillSubSection");function xd(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:HF(t[c]),schema:t[c],title:Pf(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],ZF(e,p,n,i,o),eL(e,l,i,o.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${c}>`],tL(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${c}>`],iL(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}>`],Iv(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],nL(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],Iv(e,p,n,i,o))}}r(xd,"fillSectionsInConfig");function oL(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(oL,"fillCustomSectionsInConfig");function aL(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&&Nl(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&Nl(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;xd(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;xd(e,l.properties,m,n.sections,t)}let p=bv(e.manifest,e.entitySet);return oL(p,n,t,i,e),n}r(aL,"fillConfig");function Dl(e){qe();let t=Fa(e);if(!t)return;let n=e.entitySet,i=[],o=Do(t,e.entitySet,i);if(La(o,e.logger,n),!o)return;let a=BF(e.flex,n),s=new wt;return aL(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Dl,"createObjectPageConfigV2");var gn=w(B());var Od=w(Xp());var Re=w(B());var rL=["colorPalette","tabs"];function sL(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(sL,"createCard");function Fv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Fv(e,n.join("|"))}return t}r(Fv,"findAvailableId");function Wr(e,t,n,i,o,a,s){i!=null&&i.properties&&Id(e,t,n,i.properties,o,a,s)}r(Wr,"transferManifestEntriesOVP");function Ro(e,t,n,i){return e.createInstance(Re.PageTypeV2.OverviewPage,i,n,t)}r(Ro,"assignReflectMetadataRules");function cL(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=Ro(e.factory,i[1],t,"CustomCard"),Wr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(cL,"processAnyOfDefinitionsOfOVP");function lL(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!rL.includes(i)?t[i]=(0,Od.default)(t[i]||{},o||{},{arrayMerge:Tf}):t[i]=o}r(lL,"checkSyncRuleForExport");function pL(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,Od.default)(c.settings||{},o||{},{arrayMerge:Tf});else if(o!==void 0){let l=e.manifest.export;lL(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(pL,"transferToManifest");function fL(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]=Ro(e.factory,a[0],e.currentObject[t],"CustomCard"),sL(t,e.exportResults.manifest[Re.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Re.ChangeIndicator.Updated,Wr(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(fL,"transferCards");function uL(e,t){if(t==="cards")fL(e);else{let n=Hn(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=Ro(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Wr(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Id(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],Id(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(uL,"exportOfObject");function Id(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!ta(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=cL(f)):l&&typeof l=="object"&&i[c]&&uL(f,c),p!=null&&p.manifest&&pL(p,a,c,t,l,e)}}r(Id,"processProperties");function dL(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=tS(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,O=JSON.parse(h);O={content:O.content,selector:O.selector};let V=JSON.parse(u);return V={content:V.content,selector:V.selector},JSON.stringify(O)===JSON.stringify(V)&&(T=!0),T})||e.exportResults.flexChanges.push(u)}r(dL,"evaluateFlexRule");function gL(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(gL,"exportConfigValueToManifest");function mL(e,t,n,i,o){let a=gt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)gL(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,xi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(mL,"evaluateManifestRule");function yL(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(yL,"getManifestPathOfSections");function hL(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(hL,"getManifestPathOfTable");function bL(e,t,n,i,o){let a;return t[0]===Re.PropertyName.sections?a=yL(t,a,n,e,o):t[0]===Re.PropertyName.table?a=hL(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(bL,"getManifestPath");function TL(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)dL(e,i,t,o,a,n,s);else if(t.manifest){let l=bL(e,i,t,n,a);mL(e,l,t,s,n)}}r(TL,"evaluateExportRule");function SL(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)&&(Uc(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);Uc(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(SL,"deleteObsoleteColumn");function vL(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=FS(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,SL(o,e,n))}r(vL,"deleteObsoleteColumnsFromFragment");function PL(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}=kc(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(PL,"clusterConfigColumnsByPath");function Lv(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}=kc(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{vL(p)}catch(f){e.logger.error(f.message)}}if(t){let c=PL(t,n,e.v2Page,s,o);for(let l in c)au(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(Lv,"transferColumnExtensions");function AL(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let f=Fv(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]];Qi(e,t[p],i,[...o,s[p]],m)}let l=gt(e.exportResults.manifest,Nf());for(let p in l)Td(p,c)&&!s.includes(p)&&delete l[p]}r(AL,"transferManifestExtensions");function CL(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(CL,"getSectionId");function EL(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=Hn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);Qi(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(EL,"transferIndexTable");function xL(e,t,n,i,o,a){let s,c=lc(e.$ref);c&&(s={target:c,key:CL(t,n)}),Lv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(xL,"transferCustomColumns");function IL(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=Hn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&Qi(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(IL,"handleAnyOfDefinitions");function OL(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")AL(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){xL(c,t,s,e,n,a);return}else a?Qi(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&IL(c,e,s,n==null?void 0:n[o],o,i,t)}r(OL,"transferComplexProperty");function Qi(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&&!ta(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&rc(t,c),p=l?[...n,l]:n,f=pt(t,c),u=e.propertyDefinition=o.properties[c],m=e.nextDefinition=Hn(e.appSchema,a,s,u,c,e.factory,e.pageType);if(TL(e,f,t,[...i],p,a,c),EL(s,e,a,c,p,i),s===void 0||typeof s=="object")OL(e,i,t,p,c,m,a);else if((u==null?void 0:u.$ref)===F+"TableCustomColumns"){Lv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(Qi,"transferManifestEntriesAndFlexChange");function Vv(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=Ro(o,i,n[i],s),a.push(i),Fd(o,n[i],e,c.properties,a)}r(Vv,"transferSettingsOfRef");function FL(e,t,n,i,o,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(F);Vv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf&&e.template in gn.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let c=`${F}${gn.v2.cardTemplateSettingsMap[e.template]}`.split(F);Vv(i,c,e,t,o,a)}}r(FL,"processPropertiesOfObject");function LL(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{sa(s,l,t,e)}catch(p){k(i.logger,{severity:gn.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:wT(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&FL(e,t,o,i,a,n)}r(LL,"processOvpProperty");function Fd(e,t,n,i,o){for(let a in i)LL(t,a,o,n,i,e)}r(Fd,"processOvpProperties");function VL(e,t,n){Fd(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[gn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[gn.ManifestSection.ovp].cards[i].template,a=gn.v2.cardTemplateTypeMap[o]??"CustomCard",s=[...new Set(Object.values(gn.v2.cardTemplateTypeMap))].filter(c=>c!==a);s.push(a);for(let c of s)e.cards[i]=Ro(n,c,e.cards[i]??{},"CustomCard"),e.cards=Ro(n,c,e.cards,"CustomCard"),Fd(n,e.cards[i],t,t.jsonSchema.definitions[c].properties,["cards",i])})}r(VL,"addSettings");function Rl(e){let t=new wt,n=t.createPageInstance(gn.PageTypeV2.OverviewPage);return e.jsonSchema&&VL(n,e,t),n}r(Rl,"createOverviewPageConfig");var De=w(B());function NL(e,t,n,i){var p,f;let o=Ol(e.manifest,i),a=e.jsonSchema.definitions;Fl(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),Ed(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=Wi(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=Wi(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(NL,"addSettings");function jl(e){if(qe(),!Fa(e))return;let n=new wt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=Va(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(La(a,e.logger,a==null?void 0:a.entitySet),!!a)return NL(e,i,n,o[0]),e.flex.forEach(s=>{Zt(s)&&Il(i,s,e.jsonSchema,e.logger)}),Ia(i,e,a,De.PageTypeV2.AnalyticalListPage),Ll(i),i}r(jl,"createAnalyticalListPageConfig");var on=w(B());var DL=["filterBar","table","footer"];function Ld(e,t,n,i){Ii(e,n,"QuickVariant"),bS(n,"QuickVariantX",t),TS(i,n,"QuickVariantX")}r(Ld,"addEnumForVariantPaths");function Nv(e,t){var u,m,h,T,O,V,Y;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=F+co,n.properties.table.anyOf[1].$ref=F+lo,n.properties.table.anyOf[2].$ref=F+fc,n.properties.table.anyOf[3].$ref=F+uc,n.properties.table.anyOf[4].$ref=F+dc;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+on.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+on.DefinitionName.ToolBarLR;n.definitions[co]=i,n.definitions[lo]=o,n.definitions[fc]=a,n.definitions[uc]=s,n.definitions[dc]=c,Af.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&&k(e.logger,{severity:on.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(h=e.entitySet)==null?void 0:h.name})});else{pa(n);let ne=(O=(T=f==null?void 0:f.annotations)==null?void 0:T.UI)==null?void 0:O.LineItem;ne&&Af.forEach(pe=>{n.definitions[pe][on.SchemaTag.annotationPath]=_t(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),ca(!1,n,ne,f);let q=(Y=(V=f==null?void 0:f.annotations)==null?void 0:V.UI)==null?void 0:Y.SelectionFields;yc(n,q,f),ua(n,f);let fe=[],ie=Oa(e.manifest[on.ManifestSection.generic].pages,fe);if(!ie)return k(e.logger,{severity:on.LogSeverity.Error,message:R.t("NOLR"),location:{path:on.MANIFESTPATH,range:[on.ManifestSection.generic]}}),n;la(n,f,ie,e.manifest,e.fragments),Ld(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 Gn(n,DL),n}r(Nv,"generateListReportSchemaV2");var se=w(B());var Qr=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 Dv(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(Dv,"getClassesForSingleSection");function Rv(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Dv(n,i,t),Rv(n,t)}}r(Rv,"getSubsectionClasses");function RL(e,t,n){let i;for(let o in e.sections)i=t.sections[o],Dv(i,o,n),Rv(i,n)}r(RL,"getExportClassesForSections");function jL(e,t){let n=Oa(t.manifest[se.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:se.LogSeverity.Error,message:R.t("NOLR"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}});return}if(!n.component){k(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(jL,"findV2Page");function Vd(e,t){let n=sc(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Vd,"calculateBaseId");function jv(e,t,n=!1){let i=Qr(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=jL(a,e),c=new wt,l=c.createPageInstance(se.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Vd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(p,l,[],[],e.jsonSchema)}return i}r(jv,"exportListReportPage");function wv(e,t,n=!1){let i=e.page.config,o=Qr(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Va(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:Vd(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:se.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(p,l,[],[],e.jsonSchema)}return o}r(wv,"exportAnalyticalListPage");function $v(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=Qr(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Do(e.manifest[se.ManifestSection.generic].pages,o,s);if(!c)return k(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&&RL(i,p,l),Object.keys(i).length!==0){let f={v2Page:c,exportResults:a,appId:e.appId,baseId:Vd(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:se.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Qi(f,p,[],[],e.jsonSchema)}}return a}r($v,"exportObjectPage");var Mv=r(e=>{let t=Qr();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&&Wr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),wL=r((e,t,n)=>{var s;let i=Qr();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Ic,e);o.settings=Object.assign(new Vi,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],xi(i.manifest,p,!1))}}let a=(s=i.manifest[se.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Vf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Uv(e,t){if(e[se.SchemaType.ListReport])return Dd(e[se.SchemaType.ListReport],t);if(e[se.SchemaType.ObjectPage])return $v(e[se.SchemaType.ObjectPage],t);if(e[se.SchemaType.OverviewPage])return Mv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[se.SchemaType.Application];return wL(n,i,o)}else if(e[se.SchemaType.AnalyticalListPage])return wv(e[se.SchemaType.AnalyticalListPage],t)}r(Uv,"exportPageV2");function Nd(e,t,n=!1){if(e[se.SchemaType.ListReport])return Dd(e[se.SchemaType.ListReport],t,n);if(e[se.SchemaType.ObjectPage])return $v(e[se.SchemaType.ObjectPage],t,n);if(e[se.SchemaType.OverviewPage])return Mv(e[se.SchemaType.OverviewPage]);if(e[se.SchemaType.AnalyticalListPage])return wv(e[se.SchemaType.AnalyticalListPage],t,n)}r(Nd,"exportConfigEntityByPathV2");var Si=w(B());var $l=w(B());var kv=w(B());function _v(e,t=[]){return e.concat(["component","settings"]).concat(t)}r(_v,"getManifestPathToPageSettings");function zn(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(zn,"getManifestPropertyByPath");function Ti(e){return e!==null&&typeof e=="object"}r(Ti,"isDefinition");function wl(e,t,n,i,o,a,s){let c=n[kv.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(wl,"executeConversionExit");function Rd(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&&k(n,{severity:$l.LogSeverity.Error,message:R.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Rd,"hasPropertyTypeError");var ZM=Symbol("Property is suppressed without explanation");function Bv(e,t){e.anyOf&&e.anyOf.forEach(function(n){jo(n,t)})}r(Bv,"addAnyOfToReferredTypes");function Ul(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(Ul,"getSingleItem");function jo(e,t){if(typeof e!="object")return;let n=fi(e);n&&Hv(n,t),Bv(e,t),jo(e.additionalProperties,t),jo(Ul(e),t)}r(jo,"addReferredTypesFromElement");function Hv(e,t){t.referredTypeNames.add(e);let n=t.types[e];jo(n,t);let i=n.properties;i?Object.values(i).forEach(o=>jo(o,t)):jo(Ul(n),t),jo(n.additionalProperties,t)}r(Hv,"addReferredTypesFromType");function Ml(e,t,n,i,o){if(typeof t!="object")return;let a=fi(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=jT(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 Hv(a,o)}else jd(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(Ml,"applyAdaptationInfoToElement");function jd(e,t,n,i,o){var m,h;let a={element:i},s=BT(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;Ml(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=Ul(i);if(T)l={items:T},p=i;else return}let f,u=((h=a.referenceAdaptation)==null?void 0:h.processingRulesAdapter)||function(T,O){f=f||n&&new n;let V=pt(f,T);V!=null&&V.processingRuleAdapter&&V.processingRuleAdapter(O,t,e)};for(let T in l){let O=l[T];if(typeof O!="object"){p[T]=O;continue}let V={element:{...O}};u(T,V),V.element?(V.controlId?V.element[Si.SchemaTag.controlId]=`${t.pageInfo.controlId}--${V.controlId}`:V.manifestPath&&(V.element[Si.SchemaTag.artifactType]="Manifest",V.element[Si.SchemaTag.manifestPath]=V.manifestPath),Bv(V.element,o),Ml(V.referenceAdaptation,V.element,e,c,o),Ml(V.additionalPropertiesAdaptation,V.element.additionalProperties,e,c,o),Ml(V.itemsAdaptation,Ul(V.element),e,c,o),p[T]=V.element):delete p[T]}}r(jd,"adjustElement");function $L(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r($L,"getViewId");function Gv(e,t,n){var q;qe();let i=no(e.manifest,Si.FioriElementsVersion.v2,n);if(!i||i===Si.TemplateType.OverviewPageV2)return;let{parent:o}=zn(e.manifest,e.pagePath);if(!o)return;let a=o.component;if(Rd(o,"entitySet",n,"string",!0)||Rd(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||An(e.annotations,n),m=(q=u==null?void 0:u.entitySets)==null?void 0:q.find(fe=>fe.name===s);if(!m)return p;let h=structuredClone(p),T=$L(e.appId,c,s),V={pageInfo:{appId:e.appId,componentName:c,entitySet:s,controlId:T,pagePath:e.pagePath}},Y={templateType:i,manifest:e.manifest,serviceAVT:u,fioriElementsVersion:Si.FioriElementsVersion.v2,entitySet:m,fragments:e.fragments,logger:n,entityType:m.entityType},ne={types:h.definitions,referredTypeNames:new Set};jd(Y,V,f,h,ne);for(let fe in h.definitions)ne.referredTypeNames.has(fe)||delete h.definitions[fe];return h}r(Gv,"getAdaptedSchema");var Bl=w(B());var wd=w(B());var Wv=w(B());var _l=class _l{};r(_l,"Share"),d([g({flex:{controlType:r(()=>Wv.ControlType.Button,"controlType"),createFlexChange:_},processingRuleAdapter:r(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],_l.prototype,"visible",2);var kl=_l;var Ki=class{};r(Ki,"ListHeaderActions"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:kl}}})],Ki.prototype,"Share",2),Ki=d([g({processingRuleAdapter(e){e.element[wd.SchemaTag.icon]="Export"}})],Ki);var vi=class{};r(vi,"ListHeader"),d([g({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Ki}}})],vi.prototype,"actions",2),vi=d([g({processingRuleAdapter(e){e.element[wd.SchemaTag.icon]="Header"}})],vi);var Vn=class{};r(Vn,"ListReportNew"),d([g({flex:{controlType:r(()=>Bl.ControlType.DynamicPage,"controlType"),createFlexChange:_},processingRuleAdapter(t){t.controlId="page"}})],Vn.prototype,"fitContent",2),d([g({processingRuleAdapter(t){t.element[Bl.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:vi}}})],Vn.prototype,"header",2),Vn=d([Qt({id:hv,pageId:Br}),g({processingRuleAdapter(e,t,n){let i=_v(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=dS(n),{value:s}=zn(n.manifest,i),c={settings:s,entityType:o,uIAnnotations:a};e.referenceAdaptation={specificParams:c}}})],Vn);var kd=require("path"),Zv=require("fs");var an=w(B());function ML(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(ML,"getChangeMapFormImportParameters");function $d(e,t,n,i,o){if(e===void 0)return;let a=fi(t),s=a?n[a]:void 0;if(t[an.SchemaTag.conversionExit]&&(e=wl(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return $d(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=$d(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($d,"getConfigRep");function Qv(e,t,n,i,o,a,s,c){let l=$d(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(Qv,"transferValueToConfig");function UL(e,t,n,i,o,a,s,c){let l=o[an.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&&(Qv(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(UL,"importFlexChangesToConfigProperty");function kL(e,t,n,i,o,a,s){let c=o[an.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:f,value:u,parent:m}=zn(s.manifest,p,l?i:void 0);if(!f)return;Qv(e,t,n,i,l?u:m,o,a,s)}r(kL,"importManifestToConfigProperty");function Kv(e,t,n,i,o,a,s){if(Ti(n.properties))for(let c in n.properties){let l=n.properties[c];if(!Ti(l))continue;let p=l[an.SchemaTag.artifactType];if(p===an.ArtifactType.FlexChange)UL(e,t,i,c,l,o,a,s);else if(p===an.ArtifactType.Manifest&&l[an.SchemaTag.manifestPath])kL(e,t,i,c,l,o,a);else{let f=fi(l),u=f?o[f]:void 0;if(Ti(u)){let m=i.concat([{propertyName:c,propertyType:f.split("<")[0]}]);Kv(e,t,u,m,o,a,s)}}}}r(Kv,"importDefinitionIntoConfig");function Xv(e,t,n){var u;let i=no(e.manifest,an.FioriElementsVersion.v2,e.logger);if(!i||i===an.TemplateType.OverviewPageV2)return;let{parent:o}=zn(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=ML(e),l=e.jsonSchema,p=l.definitions,f=s.propertyInstanceProvider([]);return Kv(f,s,l,[],p,e,c),f}r(Xv,"getConfigForPage");var Lt=w(B());function _L(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[Lt.SchemaTag.controlId],controlType:e[Lt.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(_L,"addFlexChangeInfoToList");function Jv(e,t,n,i){var c;if(n[Lt.SchemaTag.conversionExit])return wl(!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(!Ti(p))continue;let f=fi(p);p=f&&i.globalTypeDefinitions[f]||p;let u=o[l];s=s||u!==void 0;let m=Jv(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=>Ti(n.properties[l]))?void 0:o:t}r(Jv,"getValueForManifest");function Md(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 Md(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 Md(e[o],t[o])})}r(Md,"isDifferent");function BL(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(BL,"isEmpty");function HL(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=Jv(t,p,i,o);if(Md(f,p))if(f===void 0){n.manifestChangeIndicator=Lt.ChangeIndicator.Deleted;for(let u=s;u>0;u--){let m=l[u];if(!BL(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?Lt.ChangeIndicator.Created:Lt.ChangeIndicator.Updated}}r(HL,"applyManifestChange");function GL(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[Lt.SchemaTag.artifactType];if(s===Lt.ArtifactType.FlexChange)_L(i,a,n,t.flexList);else if(s===Lt.ArtifactType.Manifest&&i[Lt.SchemaTag.manifestPath]){let c,l=i[Lt.SchemaTag.manifestPath];Array.isArray(l)?c=l.concat([n]):(c=l.path,l.addTargetPropertyToPath&&(c=c.concat([n]))),HL(c,a,t,i,o)}else{let c=fi(i),l=c?o.globalTypeDefinitions[c]:void 0;Ti(l)&&qv(a,t,l,o)}}r(GL,"transferConfigPropertyToExportResults");function qv(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];Ti(s)&&GL(e,t,a,s,i)}}r(qv,"transferConfigToExportResults");function zv(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Lt.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Lt.ChangeIndicator.NoChange,flexList:[],fragments:i};return qv(t,a,e.jsonSchema,o),a}r(zv,"exportPage");var WL=!1,QL={generateListReportSchemaV2(e,t){return Nv(e,t)},createListReportConfig(e){return Cv(e)},exportListReportPage(e,t,n){return jv(e,t,n)}},Ud;function KL(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,kd.join)(__dirname.substring(0,i+13),"dist")}let t=(0,kd.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,Zv.readFileSync)(t,"utf8"))}r(KL,"getPersistentListReportNewSchema");function XL(){let e=KL();return function(t){return t===Br?{genericSchema:e,syncRuleProvider:Vn}:void 0}}r(XL,"createGenericSchemaInfoProvider");function JL(e){return e===Br?{propertyInstanceProvider:r(function(t){return new Vn},"propertyInstanceProvider")}:void 0}r(JL,"getConfigInfo");function Yv(e){let{value:t}=zn(e,[Yn.ManifestSection.generic],"pages");return Array.isArray(t)?[Yn.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Yn.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}r(Yv,"getPathForRootPage");function qL(e,t,n){let i=!e.layer||e.layer===Yn.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,_(o,t)}r(qL,"flexInfoToChangeString");function zL(){let e=XL(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Yn.ManifestSection.app].id=n,i.flexList.map(qL.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=Yv(i);if(!o)return null;let a={appId:((s=i[Yn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return Gv(a,e,n.logger)},createListReportConfig(n){let i=Yv(n.manifest);return Xv(n,i,JL)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Yn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=zv(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(zL,"createPageHandlerLRGeneric");function _d(){return WL?(Ud=Ud||zL(),Ud):QL}r(_d,"getPageHandlerLR");function Kr(e,t){return _d().generateListReportSchemaV2(e,t)}r(Kr,"generateListReportSchemaV2");function Hl(e){return _d().createListReportConfig(e)}r(Hl,"createListReportConfig");function Dd(e,t,n=!1){return _d().exportListReportPage(e,t,n)}r(Dd,"exportListReportPage");function Wl(e,t){var n,i;return(n=e.component)!=null&&n.name?ia(ci((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Wl,"generateId");function YL(e,t,n,i){e.navigation={};let o=eP(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Wl(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(YL,"getPageConfigsAndNavigations");function eP(e,t){var i;let n={};for(let o in e){let a=e[o],s=Wl(a,o);if(!s)continue;let c={pageType:ci((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=Hl(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=jl(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=Dl(p)}a.pages&&YL(c,a,t,n)}return n}r(eP,"getPagesAndConfigs");var Bd=class Bd extends Fi{constructor(t){qe();let n;t.manifest[ut.ManifestSection.generic]?n=t.manifest[ut.ManifestSection.generic].pages:k(t.logger,{severity:ut.LogSeverity.Error,message:R.t("NOFE"),location:{path:ut.MANIFESTPATH,range:[ut.ManifestSection.generic]}}),n||k(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&&Wl(n[i],i),a=new Vi,s=Ye(ut.SchemaType.Application),c=t.appSchemas[s.filename];ft(a,t.manifest,c.definitions.AppSettings,void 0),super(t,o,eP(n,t),a)}};r(Bd,"V2AppProvider");var Gl=Bd;function Xr(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||k(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=Wl(c,s);i[l]=c}if(t===ut.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=Xr(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(Xr,"getPages");var wo=w(B());var Hd=class Hd extends Fi{constructor(t){let n={},i=t.manifest[wo.ManifestSection.ovp],o=new Vi,a=Ye(wo.SchemaType.Application);ft(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(wo.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},l={pageType:wo.PageTypeV2.OverviewPage,config:Rl(c),entitySet:i.globalFilterEntitySet},p=ia(l.pageType,l.entitySet);n[p]=l,super(t,p,n,o)}};r(Hd,"V2OvpProvider");var Ql=Hd;var Kl=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=w(B());function ZL(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(ZL,"sortByPropertyIndex");function eV(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(ZL())}r(eV,"sortPropertiesRecords");function tP(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(tP,"getExtensionText");function Gd(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(Gd,"addExtensionToSortedArray");function tV(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(tV,"addRemainingTargetByBefore");function Wd(e,t,n,i,o=!1){var l,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=tP(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?(Gd(u,n,h,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:nn.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&&tV(e,f,u,n,m)}else o&&(Gd(u,n,n.length,f,m),delete e[f])}let c=Object.entries(e).length;c>0&&a!==c?Wd(e,t,n,i):c>0&&Wd(e,t,n,i,!0)}r(Wd,"adjustCustomExtReferringToCustomExt");function nV(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(nV,"getExtensionAnchor");function iV(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(iV,"getLocalExtensionsToSkip");function oV(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(oV,"getExtensionIndex");function aV(e,t,n,i,o){k(e,{severity:nn.LogSeverity.Error,message:R.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(aV,"handleInvalidExtension");function rV(e,t,n,i="template",o){let a=[...t],s={...e},c=iV(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:tP(p)||l,keys:[{name:G.SchemaKeyName.key,value:`${l}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){aV(o,l,t,f,s);continue}if(!(i in p)){delete s[l];continue}let u=nV(p,a);if(u){let m=oV(p,e,t,u);m>-1&&(Gd(p,t,m,l,f),delete s[l])}else t.push([l,f]),delete s[l]}return Object.keys(s).length>0&&Wd(s,n,t,o),t}r(rV,"addExtensionToArray");function sV(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(sV,"determineActionDefinitionName");function cV(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}=fo(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r(cV,"addTargetAndKeysOfAction");function lV(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=sV(e),c=xt(i,e.entityType),l=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=pc(p),u=t.properties[`${l}::${f}`]={description:c};if(a?u.$ref=PS(s,Fe(f),e.appSchema,n):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=Cn(i),cV(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(lV,"addActionRecordToSchema");function pV(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=di(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]=Cn(s),f[c]=u,Sc(s,f,c)}}r(pV,"addLineItemRecordToSchema");function fV(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Kl.UIAnnotationTypes.DataFieldForAction||s.$Type===Kl.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))lV(e,t,n,s,a,!i);else{let c={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},l=s.$Type===Kl.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;pV(e,c,l,a,i)}a++})}r(fV,"appendLineItemsToSchema");function $o(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=bc(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);fV(e,n,i,void 0,t)}r($o,"addLineItemsTypeToSchema");function Xl(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&&(oc(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(Xl,"findPageV4");function nP(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(nP,"alignSchemaWithTemplateType");function iP(e,t,n,i,o,a){var p,f,u,m;let s=eV(t),c=new Map;if(s=s.map(h=>{let T=Of(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=rV(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(iP,"addCustomSectionDefinition");var E=w(B()),Kd=require("@sap-ux/vocabularies-types/vocabularies/UI");var uV=["filterBar","chart","table"],Qd="@UI.LineItem";function dV(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=_t(e.fullyQualifiedName,Kd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,c="SelectionField::"+Fe(a.value);a.type==="PropertyPath"&&(s=tc(a,e)),i.properties[c]={$ref:F+c},i.properties[c][E.SchemaTag.propertyIndex]=o;let l=Cn(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(dV,"addSelectionFields");function aP(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=Fe(`${E.DefinitionName.ChartToolBarAction}<${l.Action}>`),f=xt(l,o),u=l.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${l.Action}`]={$ref:F+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(aP,"defineActions");function rP(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"?aa(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(rP,"findTheRightVisualization");function gV(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(gV,"analyzeChartAnnotation");function mV(e,t,n,i,o,a){var l;let{visualization:s,targetAnnotation:c}=rP((l=e.PresentationVariant)==null?void 0:l.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:R.t("NOVISUALIZATIONS")}),s=Qd,c=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:c,namespace:t,title:a}}r(mV,"analyzeSPVforView");function Jl(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}=rP(l.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(c.startsWith("SelectionPresentationVariant"))return mV(l,a,n,i,o,s);if(c.startsWith("SelectionVariant")){let p=Qd,f=`/${a}/@${Kd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(c.startsWith("LineItem")){let p=Qd;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}=gV(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(Jl,"analyzeViewAnnotation");function yV(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=`${F}${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 CS(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(yV,"addALPChartView");function hV(e,t,n,i,o,a){var V,Y,ne,q,fe,ie,pe,Le;let s=(V=n.entityType)==null?void 0:V.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}=Jl(c,s,"primary",void 0,n.logger);yV(e,c,l,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=F+p,aP(e,p,s,l,n.entityType);let{visualization:f,targetAnnotation:u}=Jl((pe=(ie=(fe=t==null?void 0:t[0])==null?void 0:fe.secondary)==null?void 0:ie[0])==null?void 0:pe[E.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];f||i?(m.properties.toolBar.$ref=`${F}${E.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:F+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=`${F}${E.DefinitionName.ALPTable}`):i||(h.properties={}),h[E.SchemaTag.artifactType]=E.ArtifactType.Manifest;let T,O;if(f&&f.indexOf(E.FacetBase.LineItem)>-1?(T=f.split(".")[1],O=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(T=O=i.split(E.UIVOCABULARYDOT)[1]),T){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Le=n.entityType)==null?void 0:Le.annotations.UI[T],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};$o(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let ke=s[O].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(hV,"addALPViews");function bV(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=`${F}${i}`;let o=`${E.DefinitionName.Actions}<${e.viewKey}>`;return aP(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${F}${o}`,n}r(bV,"addViewChartDefinitions");function TV(e,t,n,i,o,a){let s=bV(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:`${F}${s}`,description:a||c,title:c}}r(TV,"addViewChart");function oP(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(oP,"createEmptyProperties");function SV(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),go(c.properties.toolBar,E.DefinitionName.ToolBar,s);let l=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${F}${a}`,description:e.title||l,title:l},go(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]=oP(T);let O=E.DefinitionName.ViewTableColumnBasicAction,V=`${E.DefinitionName.ViewTableColumnAction}`;h[O]=oP(h[V])}$o(f,u)}r(SV,"addViewLineItems");function vV(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(vV,"addTagsToView");function PV(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(PV,"getTargetEntityType");function AV(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(AV,"handleViewProperties");function CV(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)SV(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&AV(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)TV(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}${E.DefinitionName.TableViewExtension}`}}else{let c=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||c,title:c,$ref:`${F}${E.DefinitionName.LRTableView}`}}}r(CV,"addLRViewParts");function EV(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=PV(n.entitySet,l,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:h,namespace:T,title:O}=Jl(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 V=Fe(l[E.SchemaTag.key]),Y={viewKey:V,appSchema:e,targetAnnotation:h,navPropName:p,targetEntityType:f,title:O,entitySet:l.entitySet};CV(m,s,Y,n,i,u,l),vV(s,V,T,l)}}r(EV,"addLRViews");function xV(e,t,n,i,o,a){var f,u,m,h,T,O,V,Y,ne,q,fe,ie;let s=e.definitions[a],{visualization:c,targetAnnotation:l,namespace:p}=Jl(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(c){let pe=c.split(".")[1],Le=`${E.DefinitionName.LineItems}OfSPV::${Fe(pe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],go(P.properties.toolBar,E.DefinitionName.ToolBar,Le),P[E.SchemaTag.annotationPath]=l,P.properties.columns={},go(P.properties.columns,Le),delete s.properties,go(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let ke=(u=t.entityType)==null?void 0:u.annotations.UI[pe];ke||k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOTARGET",{target:pe})});let Xe={isObjectPage:!1,appSchema:e,lineItemAnnotation:ke,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Le};$o(Xe)}else{s.properties.toolBar.$ref=`${F}${E.DefinitionName.ToolBarLR}`,go(s.properties.columns,E.DefinitionName.LineItems);let pe=(T=(h=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:h[o])==null?void 0:T.LineItem;!pe&&!((Y=(V=(O=i.options)==null?void 0:O.settings)==null?void 0:V.views)!=null&&Y.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOLINEITEMS")});let Le={isObjectPage:!1,appSchema:e,lineItemAnnotation:pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};$o(Le),pe&&!((fe=(q=(ne=i.options)==null?void 0:ne.settings)==null?void 0:q.views)!=null&&fe.paths)&&(s[E.SchemaTag.annotationPath]=_t((ie=t.entityType)==null?void 0:ie.fullyQualifiedName,pe.term,pe.qualifier))}}r(xV,"adaptTableDefinition");function IV(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(IV,"getDefaultAnnotationPath");function OV(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=IV(t,n.entityType,n.templateType),s=nP(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(xV(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],EV(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&&hV(e,o,n,a,t,s)}r(OV,"addTableAndViews");function Jr(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(dV(a,o,c),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,Ii(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[E.ManifestSection.ui5].routing.targets;if(!f)return k(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=Xl(f,i,n,e.logger);if(!u)return o;OV(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,Gn(o,uV),o}r(Jr,"generateListReportSchemaV4");var Nn=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=w(B());var FV=["header","layout","sections","footer"],LV=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function Xd(e,t,n,i,o,a,s){let{actionName:c,namespace:l}=Pc(t.item,e),p=di(t.item),f=t.item.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Fe(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]=Cn(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(Xd,"addSingleHeaderActionV4");function sP(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(sP,"addStandardHeaderAction");function cP(e,t,n,i,o,a){let s=di(e.item),c=xt(e.item,n),l=Fe(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.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(cP,"addSingleFooterAction");function VV(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Nn.UIAnnotationTypes.DataFieldForAction||i.$Type===Nn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(LV.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(VV,"groupByCriticality");function NV(e,t,n,i,o){for(let a=0;a<e.length;a++)Xd(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(NV,"addCriticalActions");function DV(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&&(Xd(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(DV,"addCopyAction");function RV(e,t,n,i,o,a){for(let s of e)Xd(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(RV,"addUncriticalActions");function lP(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(lP,"setAnnotationPathFromEntitySetOrEntityType");function jV(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:c=[]}=n?VV(n):{};NV(s,o,t,e,i);let l=pS(a),p=fS(a);if(hc(a)&&p){let u=sP("Edit",t,i,s.length);lP(u,a,e,"UpdateHidden")}if(l){let u=sP("Delete",t,i,s.length+1);lP(u,a,e,"DeleteHidden")}let f=s.length+2;DV(c,o,t,e,i,f),RV(c,o,t,e,i,f)}r(jV,"addHeaderActionCallBackV4");function wV(e,t,n,i){let o=[],a=[];i.forEach((s,c)=>{s.Determining&&s.$Type===Nn.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];cP(c,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let c=a[s];cP(c,v.ActionType.Annotation,e,t,n,o.length+s)}}r(wV,"addFooterActionCallBackV4");function $V(e,t,n,i,o){let a=fa(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=en(v.DefinitionName.ObjectPageToolBar,t),l.properties.quickVariantSelection.$ref=en(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=ht(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=en(v.DefinitionName.AnnotationPathAsObject,t),ht(v.DefinitionName.AnnotationPathAsObject,t,n),Ii(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return $o(f,v.DefinitionName.ObjectPageTableColumn),l}r($V,"handleLineItem");function fP(e,t,n,i,o,a){a&&ql(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=ht(v.DefinitionName.ObjectPageSectionTableV4,t,n);pi(e,s,fa(t)),Ei(e,s,fa(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=en(v.DefinitionName.ObjectPageTable,t);let c=$V(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:c}}r(fP,"handleSectionTable");function MV(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:en(a,t)};let s=ht(a,t,i);e.ID||(s.properties={}),pi(e,s,t),Ei(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,vc(o,e,s,i,v.FioriElementsVersion.v4,t)}r(MV,"handleFormIdentification");function pP(e,t,n,i,o){n.properties[t]={$ref:`${F}${o}`};let a=ht(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);na(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=uo(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(pP,"handleHeaderFacet");function UV(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:en(v.DefinitionName.ObjectPageToolBarAction,f),description:l};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=c.$Type;let m=ht(v.DefinitionName.ObjectPageToolBarAction,Fe(f),n);m[v.SchemaTag.annotationPath]=xc(c),m[v.SchemaTag.dataType]=Cn(c),m.properties={},a++})}return o}r(UV,"handleChartActions");function kV(e,t,n,i){let o=ht(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=xc(e),o[v.SchemaTag.dataType]=uo(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=en(v.DefinitionName.ObjectPageToolBar,t);let a=ht(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=en(v.DefinitionName.ObjectPageToolBarActions,t);let s=UV(e,t,n,i);return{chart:o,chartActions:s}}r(kV,"handleChart");function uP(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&&ql(i,t,c);let p=nr(l,t),f=ht(c,p,n,!1);if(na(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=xc(e),f.properties.chart.$ref=en(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=kV(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(uP,"handleSectionChart");function _V(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${xf(o,n.serviceAVT)}`,c=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:c}}r(_V,"getVisualizationKeyAndType");function BV(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(BV,"getTargetFromNavigation");function HV(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}=_V(!!o,a,n),p=o?a:BV(n,s,l),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:c,type:l,target:p,namespace:f,navigationPath:s}}r(HV,"getVisualizationProps");function ql(e,t,n,i){e.properties[t]={$ref:en(n,i||t)}}r(ql,"addPropertyRef");function dP(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(dP,"getSectionPropertyRef");function GV(e,t,n,i,o,a){let{propertyKey:s,navigationKey:c}=dP(t,o);ql(i,s,v.DefinitionName.ObjectPageSectionTableV4,c);let{sectionTable:l,table:p}=fP(e,c,n,{target:o.target,entityType:e.entityType},a);l[v.SchemaTag.annotationPath]=e.annotationPath,na(e,l,t),delete l[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(GV,"addPVLineItemSection");function WV(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:c,navigationKey:l}=dP(t,o);ql(i,c,s,l);let{parentChartRef:p}=uP(o.target,l,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(pi(e,p,t),NT(e,p)):na(e,p,t)}r(WV,"addPVChartSection");function QV(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){k(a.logger,{severity:v.LogSeverity.Error,message:R.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=HV(e,t,a),l=o===v.SectionType.HeaderSection;c&&(c.type.startsWith(v.Visualization.Chart)?WV(e,t,n,i,c,l):c.type.startsWith(v.Visualization.LineItem)&&GV(e,t,n,i,c,a))}r(QV,"handleSectionPresentationVariant");function KV(e,t,n,i,o,a,s){let c=o;e.additionalProperties={$ref:`${F}${c}`},iP(t,e,i,c,s,n.logger);let l=t.definitions[c];typeof l=="object"&&AS(t,e,{schema:l,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(KV,"applyCustomSections");function Jd(e,t,n,i,o,a,s){let c=t[n],l=`ObjectPage${a}${c.base}<${fa(n)}>`;switch(c.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{QV(c,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{XV(c,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];fP(c,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{MV(c,n,i,o,a);break}case v.FacetBase.DataPoint:{pP(c,n,i,o,l);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?pP(c,n,i,o,l):a===v.SectionType.Section&&uP(c,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{ir(c,n,i,o,a);break}default:i.properties[n]=Bn(o,c,n)}}r(Jd,"addSection");function XV(e,t,n,i,o,a,s){let c=i.properties[t]=Bn(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)Jd(a,e.facets,p,l,n,o,s)}r(XV,"handleCollection");function JV(e,t,n){let i=ic(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)Jd(e,i,a,o,t,v.SectionType.Section,n);KV(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(JV,"addSections");function qV(e,t,n,i){let o=nc(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)Jd(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(qV,"addHeaderSections");function zV(e,t,n){let i=e.entitySet.entityType;Ec(t,i),Cc(t,i,e.entitySet,e.serviceAVT,jV),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Nn.UIAnnotationTerms.HeaderFacets}`),qV(e,t,i,n)}r(zV,"addHeader");function qr(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 k(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 k(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=Xl(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;zV(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Nn.UIAnnotationTerms.Facets}`),JV(e,i,s),Ac(i,e,v.FioriElementsVersion.v4,wV)}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],Gn(i,FV),i}r(qr,"generateObjectPageSchemaV4");function qd(e,t){return JSON.parse(JSON.stringify(t))}r(qd,"generateFreestyleSchemaV4");var mn=w(B());function zd(e,t,n,i,o,a){let s=An(n,o),c=Pi(t,s);c||k(o,{severity:mn.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:t})});let l={templateType:mn.TemplateType.ListReportObjectPageV4,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:c,entityType:c==null?void 0:c.entityType};return qr(l,e,c)}r(zd,"generateObjectPageInterfaceV4");function zl(e,t,n,i,o,a){qe();let s=An(i,o),c=s==null?void 0:s.entitySets.find(f=>f.name===n),l={templateType:e,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:c,entityType:c.entityType},p=e===mn.TemplateType.ListReportObjectPageV4?mn.v4.FE_TEMPLATE_V4_LIST_REPORT:mn.v4.FE_TEMPLATE_V4_ALP;return Jr(l,t,c,p)}r(zl,"generateListReportInterfaceV4");function Yd(e,t,n,i,o,a){let s=An(n,a),c={templateType:e,fioriElementsVersion:mn.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return qd(c,t)}r(Yd,"generateFreestyleInterfaceV4");var zr=require("@sap-ux/vocabularies-types/vocabularies/UI"),gP=w(B());var $e=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),ep=r(e=>$e(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Zd=r(e=>$e(e)+"/content/header","getSettingsPathForHeaderOP"),Zn=r(e=>$e(e)+"/controlConfiguration","getControlConfigurationPath"),tp=r((e,t,n)=>Zn(e)+`/@${zr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Dn=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Rn=r((e,t,n,i,o)=>o?Dn(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),np=r((e,t,n,i,o)=>Rn(e,t,n,i,o)+gP.QUICKVARPATH,"getQuickVariantPath"),Jt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Mt=r((e,t,n,i,o)=>o?Jt(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),eg=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Zn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),ip=r((e,t,n,i,o)=>o?eg(e,t,n,i,o):Zn(e)+`/@${zr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Mo=r((e,t,n,i)=>Zn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),mP=r((e,t,n,i)=>Zn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),vt=r((e,t,n)=>Zn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Yr=r((e,t,n,i)=>{let o=$e(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),Zl=class Zl{};r(Zl,"ApplicationV4"),d([_e("settings")],Zl.prototype,"settings",2);var Yl=Zl,Xi=class Xi{};r(Xi,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Xi.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Xi.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Xi.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),S({since:"1.78.0"})],Xi.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),S({since:"1.56.0"})],Xi.prototype,"flexEnabled",2);var Da=Xi;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=li(t,m,a,p,!0),c&&Object.keys(c).length>0&&(sa(u,c,f,e,a,o),cc(l,c,m,s))}}}r(Ze,"importSettingsOfObject");var Jg={};Ko(Jg,{ALPChart:()=>ig,ALPTable:()=>$a,ActionAfterExecutionConfiguration:()=>mg,ActionAfterExecutionConfigurationOP:()=>fs,ActionAfterExecutionConfigurationToolBarLR:()=>xg,Actions:()=>Pg,CommonHeaderFacetSettings:()=>qi,CommonViewSettings:()=>wa,FilterBar:()=>Lg,FlexSettings:()=>Dg,HeaderSections:()=>Ug,LRChartView:()=>og,LRTableView:()=>ag,MultiTableModeV4:()=>sg,ObjectPageCustomSectionFragment:()=>ms,ObjectPageHeader:()=>Ng,ObjectPageHeaderSectionAddress:()=>Mg,ObjectPageHeaderSectionChart:()=>jg,ObjectPageHeaderSectionContact:()=>$g,ObjectPageHeaderSectionDataPoint:()=>wg,ObjectPageHeaderSectionForm:()=>Rg,ObjectPageLayout:()=>Qg,ObjectPageTable:()=>gs,ObjectPageTableColumn:()=>Ma,ObjectPageTableColumnAction:()=>Vg,ObjectPageToolBarAction:()=>Fg,Position:()=>bg,QuickVariantSelectionV4:()=>ng,QuickVariantSelectionV4OP:()=>Xg,Table:()=>cg,TableColumn:()=>cp,TableColumnAction:()=>yg,TableCreationModeOP:()=>Kg,TableCustomColumn:()=>Sg,TableSettings:()=>op,TableViewExtension:()=>rg,TableViewSettings:()=>ts,ToolBar:()=>Ag,ToolBarAction:()=>Ig,ViewPosition:()=>Tg,ViewTableColumn:()=>lp,ViewTableColumnAction:()=>hg,ViewTableCustomColumn:()=>vg,ViewToolBarAction:()=>Og,checkViewOrder:()=>pg,deleteCreationModeCreateAtEnd:()=>gg,deleteCreationModeName:()=>fg,exportCreationModeCreateAtEnd:()=>dg,exportCreationModeName:()=>lg,exportPersonalization:()=>eN,exportPersonalizationProperty:()=>tN});var tg=w(B());var YV=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 jn(e,t,n,i,o,a){let s=ep(e),c=YV(JSON.parse(JSON.stringify(t)),s),l;for(let p=0;p<c.length;p++){let f=c[p];if(f&&(f[tg.SchemaTag.key]===(a==null?void 0:a.key)||f[tg.SchemaTag.key]===i)){l=`${s}/${p}`;break}}return l||(l=`${s}/[]`),l}r(jn,"getSettingsPathForLRViewsPath");function lg(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(lg,"exportCreationModeName");function ZV(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(ZV,"fillNewlyOrderedViews");function pg(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=ZV(e,n,o,s,c,a);for(let p of Object.keys(l))e[p]=l[p]}}r(pg,"checkViewOrder");function eN(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(eN,"exportPersonalization");function tN(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(tN,"exportPersonalizationProperty");function fg(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(fg,"deleteCreationModeName");function ug(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(ug,"deleteView");function dg(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(dg,"exportCreationModeCreateAtEnd");function gg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(gg,"deleteCreationModeCreateAtEnd");function yP(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(yP,"determineIndexOfView");var Ra=class Ra{};r(Ra,"QuickVariantSelectionV4"),d([g({manifest:{path:np}})],Ra.prototype,"paths",2),d([g({manifest:{path:np}})],Ra.prototype,"hideTableTitle",2),d([g({manifest:{path:np}})],Ra.prototype,"showCounts",2);var ng=Ra,yn=class yn{};r(yn,"TableSettings"),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yn.prototype,"type",2),d([g({manifest:{path:Rn}}),S({since:"1.86.0"})],yn.prototype,"personalization",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],yn.prototype,"selectionMode",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"selectAll",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"selectionLimit",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yn.prototype,"enableExport",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"})],yn.prototype,"quickVariantSelection",2),d([g({manifest:{path:Rn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yn.prototype,"condensedTableLayout",2),d([g({manifest:{path:Rn}}),S({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yn.prototype,"hierarchyQualifier",2);var op=yn,ap=class ap{};r(ap,"ALPChart"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/primary/0","path"),delete:ug}})],ap.prototype,"annotationPath",2);var ig=ap,Uo=class Uo{};r(Uo,"CommonViewSettings"),d([g({manifest:{path:jn,delete:io}})],Uo.prototype,"key",2),d([g({manifest:{path:ep,import:yP,export:r((t,n)=>{pg(t,n)},"export"),delete:ug}})],Uo.prototype,"index",2),d([g({manifest:{path:jn,delete:io}})],Uo.prototype,"annotationPath",2),d([g({manifest:{path:jn}})],Uo.prototype,"entitySet",2);var wa=Uo,hn=class hn extends wa{};r(hn,"TableViewSettings"),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"type",2),d([g({manifest:{path:Dn}}),S({since:"1.86.0"})],hn.prototype,"personalization",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectionMode",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectAll",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"selectionLimit",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],hn.prototype,"enableExport",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"})],hn.prototype,"quickVariantSelection",2),d([g({manifest:{path:Dn}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],hn.prototype,"condensedTableLayout",2),d([g({manifest:{path:Dn}}),S({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],hn.prototype,"hierarchyQualifier",2);var ts=hn;function nN(e){return ts}r(nN,"getTableViewSettings");var Zr=class Zr extends ts{};r(Zr,"ALPTable"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:io}})],Zr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Zr.prototype,"initialLoad",2);var $a=Zr,rp=class rp extends wa{};r(rp,"LRChartView"),d([g({manifest:{path:jn},generate:Wn})],rp.prototype,"visible",2);var og=rp,ja=class ja extends nN(wa){};r(ja,"LRTableView"),d([g({manifest:{path:jn}})],ja.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:jn}})],ja.prototype,"entitySet",2),d([g({manifest:{path:jn},generate:Wn})],ja.prototype,"visible",2);var ag=ja,Ji=class Ji{};r(Ji,"TableViewExtension"),d([g({manifest:{path:jn}})],Ji.prototype,"key",2),d([g({manifest:{path:ep,import:yP,export:r((t,n)=>{pg(t,n)},"export"),delete:ug}})],Ji.prototype,"index",2),d([g({manifest:{path:jn}})],Ji.prototype,"label",2),d([g({manifest:{path:jn}})],Ji.prototype,"template",2),d([g({manifest:{path:jn},generate:Wn})],Ji.prototype,"visible",2);var rg=Ji,sp=class sp{};r(sp,"MultiTableModeV4"),d([g({manifest:{path:r(t=>$e(t)+"/views","path")}})],sp.prototype,"showCounts",2);var sg=sp,es=class es extends op{};r(es,"Table"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:io}})],es.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],es.prototype,"initialLoad",2);var cg=es;var ns=class ns{};r(ns,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ns.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/afterExecution","path")}})],ns.prototype,"enableAutoScroll",2);var mg=ns,is=class is{};r(is,"TableColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],is.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],is.prototype,"availability",2);var cp=is,os=class os{};r(os,"ViewTableColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],os.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],os.prototype,"availability",2);var lp=os,pp=class pp extends cp{};r(pp,"TableColumnAction"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],pp.prototype,"afterExecution",2);var yg=pp,fp=class fp extends lp{};r(fp,"ViewTableColumnAction"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],fp.prototype,"afterExecution",2);var hg=fp,as=class as{};r(as,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Mt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],as.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"})],as.prototype,"placement",2);var bg=as,rs=class rs{};r(rs,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Jt(t,n,i,o,a)+"/position","path")}}),S({since:"1.84.0"})],rs.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"})],rs.prototype,"placement",2);var Tg=rs,ei=class ei{};r(ei,"TableCustomColumn"),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"position",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"header",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ei.prototype,"width",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"template",2),d([g({manifest:{path:Mt}}),S({since:"1.86.0"})],ei.prototype,"horizontalAlign",2),d([g({manifest:{path:Mt}}),S({since:"1.84.0"})],ei.prototype,"availability",2),d([g({manifest:{path:Mt}}),S({since:"1.85.0"})],ei.prototype,"properties",2);var Sg=ei,ti=class ti{};r(ti,"ViewTableCustomColumn"),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"position",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"header",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ti.prototype,"width",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"template",2),d([g({manifest:{path:Jt}}),S({since:"1.86.0"})],ti.prototype,"horizontalAlign",2),d([g({manifest:{path:Jt}}),S({since:"1.84.0"})],ti.prototype,"availability",2),d([g({manifest:{path:Jt}}),S({since:"1.85.0"})],ti.prototype,"properties",2);var vg=ti;var Cg=class Cg{};r(Cg,"Actions");var Pg=Cg,Eg=class Eg{};r(Eg,"ToolBar");var Ag=Eg;var ss=class ss{};r(ss,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>ip(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ss.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>ip(t,n,i,o,a)+"/afterExecution","path")}})],ss.prototype,"enableAutoScroll",2);var xg=ss,up=class up{};r(up,"ToolBarAction"),d([g({manifest:{path:ip}})],up.prototype,"enableOnSelect",2);var Ig=up,dp=class dp{};r(dp,"ViewToolBarAction"),d([g({manifest:{path:eg}})],dp.prototype,"enableOnSelect",2);var Og=dp;var gp=class gp{};r(gp,"ObjectPageToolBarAction"),d([g({manifest:{path:mP}})],gp.prototype,"enableOnSelect",2);var Fg=gp;var mp=class mp{};r(mp,"FilterBar"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.99.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],mp.prototype,"hideFilterBar",2);var Lg=mp;var cs=class cs{};r(cs,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],cs.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/afterExecution","path")}})],cs.prototype,"enableAutoScroll",2);var fs=cs,ls=class ls{};r(ls,"ObjectPageTableColumn"),d([g({manifest:{path:Mo}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ls.prototype,"width",2),d([g({manifest:{path:Mo}}),S({since:"1.85.0"})],ls.prototype,"availability",2);var Ma=ls,ps=class ps extends Ma{};r(ps,"ObjectPageTableColumnAction"),d([g({manifest:{path:Mo}}),S({since:"1.84.0"})],ps.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Mo(t,n,i,o)+"/position","path")}}),S({since:"1.84.0"})],ps.prototype,"placement",2);var Vg=ps;var ko=class ko{};r(ko,"ObjectPageHeader"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],ko.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],ko.prototype,"showRelatedApps",2),d([g({manifest:{path:Zd}}),S({since:"1.84.0"})],ko.prototype,"visible",2),d([g({manifest:{path:Zd}}),S({since:"1.84.0"})],ko.prototype,"anchorBarVisible",2);var Ng=ko;var yp=class yp{};r(yp,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>tp(t,n,i)+"/flexSettings","path")}}),S({since:"1.81.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],yp.prototype,"designtime",2);var Dg=yp,us=class us{};r(us,"CommonHeaderFacetSettings"),d([g({manifest:{path:tp}}),S({since:"1.81.0"})],us.prototype,"stashed",2),d([g({manifest:{path:tp}}),S({since:"1.81.0"})],us.prototype,"flexSettings",2);var qi=us,kg=class kg extends qi{};r(kg,"ObjectPageHeaderSectionForm");var Rg=kg,_g=class _g extends qi{};r(_g,"ObjectPageHeaderSectionChart");var jg=_g,Bg=class Bg extends qi{};r(Bg,"ObjectPageHeaderSectionDataPoint");var wg=Bg,Hg=class Hg extends qi{};r(Hg,"ObjectPageHeaderSectionContact");var $g=Hg,Gg=class Gg extends qi{};r(Gg,"ObjectPageHeaderSectionAddress");var Mg=Gg,Wg=class Wg{};r(Wg,"HeaderSections");var Ug=Wg;var hp=class hp{};r(hp,"ObjectPageLayout"),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],hp.prototype,"sectionLayout",2);var Qg=hp;var bp=w(B());var ds=class ds{};r(ds,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{lg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{fg(t,o)},"delete")}})],ds.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i),"path"),export:r((t,n,i,o)=>{dg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{gg(t,o)},"delete")}})],ds.prototype,"createAtEnd",2);var Kg=ds,Ua=class Ua{};r(Ua,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>vt(t,n,i)+bp.QUICKVARPATH,"path")}})],Ua.prototype,"showCounts",2);var Xg=Ua,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"}),ye("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"}),ye("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"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qt.prototype,"hierarchyQualifier",2);var gs=qt;var _o=class _o{};r(_o,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>Yr(t,n,i,"position"),"path"),key:"anchor"}}),S({since:"1.77.0"})],_o.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>Yr(t,n,i,"position"),"path"),key:"placement"}}),S({since:"1.77.0"})],_o.prototype,"relativePosition",2),d([g({manifest:{path:Yr}}),S({since:"1.77.0"})],_o.prototype,"title",2),d([g({manifest:{path:Yr,key:"name"}}),S({since:"1.77.0"})],_o.prototype,"fragmentName",2);var ms=_o;var Zg={};Ko(Zg,{FreestylePage:()=>zg,ListReport:()=>bn,ObjectPage:()=>wn});function iN(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(iN,"deleteAllALPViews");function oN(){}r(oN,"doNotExport");function aN(){}r(aN,"doNotImport");var bn=class{};r(bn,"ListReport"),d([g({manifest:{path:r(t=>$e(t)+"/views","path"),import:aN,export:oN,delete:iN}})],bn.prototype,"chart",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"})],bn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/[]/0","path")}}),ye("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],bn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}})],bn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],bn.prototype,"filterBar",2),bn=d([Qt({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],bn);var qg=w(B());var wn=class{};r(wn,"ObjectPage"),d([_e("header")],wn.prototype,"header",2),d([_e("layout")],wn.prototype,"layout",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),S({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],wn.prototype,"variantManagement",2),d([_e("sections")],wn.prototype,"sections",2),wn=d([Qt({id:`${qg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:qg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],wn);var Yg=class Yg{};r(Yg,"FreestylePage");var zg=Yg;var Tp=w(B());var rN={ALPTableView:$a},sN={ALPTableView:$a},cN={Table:gs,TableColumn:Ma,ObjectPageCustomSectionView:ms,ActionAfterExecutionConfiguration:fs},lN={[Tp.PageTypeV4.AnalyticalListPage]:rN,[Tp.PageTypeV4.ListReport]:sN,[Tp.PageTypeV4.ObjectPage]:cN},em=class em extends Na{constructor(){super(Jg,Zg,lN)}};r(em,"MetadataInstanceFactoryV4");var Ai=em;var tm=require("@sap-ux/vocabularies-types/vocabularies/UI");function nm(e,t,n,i,o,a,s){var f,u,m,h,T,O;let c=t.jsonSchema.definitions,l=a&&a!==`@${tm.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,p=c[l];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let V in p.properties){let ne=c[l].properties[V].$ref.split(F)[1].split("<")[0];e.columns[V]=n.createInstance(i,ne);let q=s||a;Ze(e.columns[V],t.manifest,c[ne],o,[V,q],q,t.logger),ao(e.columns,V)}ao(e,"columns")}else{let V=(O=(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:O.views;(!V||V.paths.length<1)&&k(t.logger,{severity:te.LogSeverity.Error,message:R.t("NOLINEITEMS")})}}r(nm,"transferColumns");function pN(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=`@${tm.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=oa(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]),ao(t.toolBar.actions,f)}}}r(pN,"importActions");function hP(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,[]),pN(e,l,n,i,o,a,s),ao(l.toolBar,"actions"),ao(l,"toolBar")}r(hP,"transferToolBar");function bP(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(bP,"determineTargetAnnotationOfView");function fN(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);hP(e,t,n,i,o);let u=l.substr(l.lastIndexOf("@"));Ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),nm(f,e,n,i,o,void 0,u)}}r(fN,"importALPViews");function uN(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(uN,"getViewTypeByDefinition");function dN(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=uN(f),m=a[p[0]]=n.createInstance(i,u),h=bP(s,f);s[f].entitySet||(Ze(m,e.manifest,s[f],o,[p[0],h]),u===te.DefinitionName.LRTableView&&nm(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,h)),Object.keys(m).length===0&&delete a[p[0]]}ao(t.table,"views")}r(dN,"importLRViews");function gN(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=bP(e.jsonSchema.definitions,s);Ze(t.table,e.manifest,c,o,[s,p]),hP(e,t,n,i,o,l),nm(t.table,e,n,i,o,l,p),dN(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&fN(e,t,n,i,o)}r(gN,"addSettings");function Bo(e,t){if(qe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){k(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){k(e.logger,{severity:te.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new Ai,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],c=mf(s);if("name"in s&&(c===te.PageTypeV4.ListReport||c===te.PageTypeV4.AnalyticalListPage)){gN(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(Bo,"createListReportConfig");var ce=w(B()),ys=require("@sap-ux/vocabularies-types/vocabularies/UI");function im(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${ys.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${ys.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(im,"getManifestId");function om(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(om,"getDefinitionId");function mN(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,c=e.jsonSchema.definitions[om(a)];if(c)for(let l in c.properties){c.properties[l].$ref.indexOf(ce.DefinitionName.CustomColumnOP)>-1?s=ce.DefinitionName.CustomColumnOP:s=ce.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(ce.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(mN,"fillTableColumnsInConfig");function yN(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${ce.DefinitionName.Actions}<${om(o)}>`];if(a)for(let s in a.properties){let c=a.properties[s];if(typeof c=="object"&&c.$ref){let l=oa(c.$ref),p=l.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(ce.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(yN,"fillTableActionsInConfig");function TP(e,t,n,i,o,a){let s=a||im(i),c=t.controlConfiguration[s];if(c){n[i]={},n[i].table=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageTable);let l=`${ce.DefinitionName.ObjectPageTable}<${a?om(a):i.replace("#","::")}>`;Ze(n[i].table,e.manifest,e.jsonSchema.definitions[l],e.routingId,[],s),n[i].table.toolBar=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ToolBar,{actions:{}}),yN(e,i,n,o,s),mN(e,c,n,i,o,s)}}r(TP,"fillTableInConfig");function hN(e,t,n,i,o){var c;let a=im(i);((c=t.controlConfiguration)==null?void 0:c[a])&&(n[i]={},n[i].form=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageForm,{actions:{}}))}r(hN,"fillFormInConfig");function SP(e,t,n,i,o){var a,s,c,l;for(let p in t){let f=t[p],u=p;if(p.includes(ys.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(F+ce.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(F)[1];u=m?im(m,!0):p,TP(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(F+ce.DefinitionName.ObjectPageSectionTableV4)?TP(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},SP(e,f.properties.subsections.properties,n,i[p].subsections,o)):(c=f.$ref)!=null&&c.startsWith(F+ce.DefinitionName.ObjectPageSectionForm)&&((l=f.$ref)!=null&&l.includes(`@${ys.UIAnnotationTerms.FieldGroup}::`))&&hN(e,n,i,p,o)}}r(SP,"fillSectionsInConfig");function bN(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(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageCustomSectionFragment);Ze(p,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],c),n.sections[c]=p}}r(bN,"fillCustomSectionsInConfig");function TN(e,t,n,i,o){var s,c;let a=e.definitions[ce.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(ce.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[l]=f?n.createInstance(ce.PageTypeV4.ObjectPage,f):{},Ze(t.header.sections[l],i,p,o,[],(c=p==null?void 0:p.title)==null?void 0:c.split(ce.FACETTITLEPREFIX)[1]))}}}r(TN,"fillHeaderFacets");function SN(e,t,n){let i=n.createPageInstance(ce.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageHeader),Ze(i.header,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageLayout),Ze(i.layout,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageLayout],e.routingId,[]),Ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[ce.DefinitionName.Sections]&&(i.sections={},SP(e,e.jsonSchema.definitions[ce.DefinitionName.Sections].properties,o,i.sections,n)),bN(e,o,i,n),TN(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(SN,"fillObjectPageConfig");function Sp(e){if(qe(),!e.manifest[ce.ManifestSection.ui5]||!e.manifest[ce.ManifestSection.ui5].routing){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5]}});return}let t=e.manifest[ce.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let i=new Ai;return SN(e,n,i)}r(Sp,"createObjectPageConfigV4");var he=w(B());var am=[],vp={};function vN(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(vN,"routesSorter");function rm(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(rm,"resolveTarget");function PN(e){let t={};e=e.concat().sort(vN);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=rm(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(PN,"populateAssociations");function AN(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:(k(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(AN,"determinePageType");function CN(e){let t=ia(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=Sp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Bo(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=Bo(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=tr(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Bo(i,a)}}}r(CN,"convertSettingsToConfig");function EN(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");am.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");am.push(t[t.length-1])}}r(EN,"updateUnhandledControllers");function xN(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(xN,"setVariantManagmentAndNavigation");function IN(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(IN,"evaluateCustomPageSettings");function ON(e,t,n,i){var p;let o=e.targets[t],a=AN(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),vp[t]&&vp[t].indexOf(".")!==-1){let f=vp[t].split(".");s.navigationProperty=f[f.length-1]}IN(o,s,a),xN(o,s),EN(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};CN(l)}r(ON,"getSinglePageAndConfig");function vP(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=R.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}vp=PN(n.routes||[]);for(let i in n.targets)ON(n,i,t,e);return t}r(vP,"getPagesAndConfigs");function PP(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 rm(t?t.target:e.routes[0].target)}else return}r(PP,"getHome");function AP(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(AP,"getSettings");function hs(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];oc(t,a.name)&&(i[o]=a)}return i}r(hs,"getPages");var sm=class sm extends Fi{constructor(t){qe();let n=new Da,i=Ye(he.SchemaType.Application),o=t.appSchemas[i.filename];Ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,PP(t.manifest[he.ManifestSection.ui5].routing),vP(t),{...AP(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=am}};r(sm,"V4AppProvider");var ka=sm;var CP=require("fs"),Ho=require("path"),EP=w(B()),cm=w(B());var xP=r((e,t,n=__dirname)=>{let i=t===cm.SchemaType.Application?`${cm.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Ho.join)(n,"schemas",e,i);if(n.endsWith((0,Ho.join)("specification","packages","specification")))return(0,Ho.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Ho.join)("src","specification")))return(0,Ho.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Ho.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),FN=r(async e=>new Promise((t,n)=>{(0,CP.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Pp=r(async(e,t)=>{try{let n=xP(e||EP.FioriElementsVersion.v4,t,__dirname);return await FN(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function LN(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 Pp(t,o)}return n}r(LN,"getGenericSchemas");function OP(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(OP,"getAnnotationsForUi");function Pi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(Pi,"getEntitySetByEntitySetName");function IP(e,t,n){let i=Xr(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=Pi(a,e.serviceAVT);s||k(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]=bs(e,t[l.filename])}}r(IP,"generateObjectPageSchemasV2");function VN(e,t,n){let i=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let c=a[s].options.settings.entitySet,l=Pi(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=tr(a[s])),n[p.filename]=Jr(e,t[f.filename],l,a[s].name)}}r(VN,"generateListReportSchemasV4");function NN(e,t,n){var o;let i=Xr(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=Pi(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]=Kr(e,n[l.filename])}}r(NN,"generateAppSchemaV2LR");function DN(e,t,n){let i=hs(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=Pi(a,e.serviceAVT);s||k(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]=qr(e,t[l.filename],s)}}r(DN,"generateObjectPageSchemasV4");function RN(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)NN(e,o,t),IP(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=Xr(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=Pi(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]=Ts(e,t[f.filename])}IP(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Ye(Q.SchemaType.OverviewPage),c=Ye(Q.SchemaType.OverviewPage);o[s.filename]=Ss(t[c.filename],e.manifest)}return{...t,...o}}r(RN,"generateAppSchemasV2");function jN(e,t,n){let i={};return n&&(VN(e,t,i),DN(e,t,i)),{...t,...i}}r(jN,"generateAppSchemasV4");async function FP(e,t,n){let i=await LN(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?jN(e,i,t):RN(e,i,t,n)}r(FP,"generateAppSchemas");function wN(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new Gl(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new ka(e);break;case Q.TemplateType.OverviewPageV2:t=new Ql(e);break;default:t=new ka(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(wN,"importConfigs");function LP(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(LP,"getFileList");async function lm(e){var T,O;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new or().doesUi5VersionFitDistTags((O=(T=t["sap.ui5"])==null?void 0:T.dependencies)==null?void 0:O.minUI5Version,i);let l=bf(t),p=An(n,i),f=OP(p),u=no(t,l,i),h=await FP({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},f,u);return LP(h)}r(lm,"importProjectSchema");async function pm(e){var ne,q;qe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new or().doesUi5VersionFitDistTags((q=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:q.minUI5Version,i);let p=bf(t),f=VT(t),u=An(n,i),m=no(t,p,i),h={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},T=OP(u),O=await FP(h,T,m),Y=wN({manifest:t,flexChanges:s,appSchemas:O,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return LP(O,Y)}r(pm,"importProjectSchemaAndConfig");var $N=["header","sections","footer"];function MN(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&&(Ie(e,t,n),t.properties[n][j.SchemaTag.controlType]=o)}r(MN,"addFlexChangeForSection");function UN(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===$n.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:c,namespace:l}=Pc(a,o);if(!c)return;let p=a.Label||s,f=`HeaderAction<${Fe(c)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${$n.UIAnnotationTerms.Identification}`,`/@${$n.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(UN,"addHeaderActionCallBackV2");function kN(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===$n.UIAnnotationTypes.DataFieldForAction){let a=di(o).split("::").splice(1).join("::"),s=xt(o,e),c=Fe(`${j.DefinitionName.ObjectPageFooterAction}<${a}>`),l=o.fullyQualifiedName.replace(`@${$n.UIAnnotationTerms.Identification}`,`/@${$n.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(kN,"addFooterActionCallBackV2");function _N(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=Do(t[j.ManifestSection.generic].pages,n,u);return la(e,m,h,t,c,p,f,a.ID),p}r(_N,"ensureCustomColumnDefinitionExists");function Ps(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&MN(e,t,"visible",n)}r(Ps,"addAppSchemaDefinition");function BN(e,t,n){e.properties[t]={$ref:`${F}${n}`}}r(BN,"addSectionReference");function vs(e,t,n,i){let o=Fe(`${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}>`,Ii(n.entityType,i,`QuickVariant<${t}>`)}r(vs,"addTableDefinition");function HN(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]=Bn(n,i,t);let l=n.definitions[c];Ps(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,pi(i,l,t),Ei(i,l,t),vs("ObjectPageResponsiveTableWithMultiSelect",t,i,n),vs("ObjectPageResponsiveTableWithInlineDelete",t,i,n),vs("ObjectPageGridTable",t,i,n),vs("ObjectPageTreeTable",t,i,n),vs("ObjectPageAnalyticalTable",t,i,n);let p,f=yS(i.entityType,e.serviceAVT);f&&(p=_N(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))&&ca(!0,n,m.target,m.entityType,m.ID||u,p)}}r(HN,"handleLineItem");function GN(e,t,n,i,o,a=!1){e.definitions[t]=Bn(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ps(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[j.SchemaTag.isViewNode]=!0}r(GN,"handleSubSection");function WN(e,t,n,i,o){e.definitions[t]=Bn(e,n,i);let a=e.definitions[t];Ps(e,a,o,"ObjectPageSectionChartV2")}r(WN,"handleSectionChart");function VP(e,t,n,i,o,a){e.definitions[t]=Bn(e,n,i);let s=e.definitions[t];Ps(e,s,o,a||"CommonHeaderFacetSettings"),s[j.SchemaTag.annotationPath]=n.annotationPath,s[j.SchemaTag.isViewNode]=!0,s[j.SchemaTag.dataType]=uo(n==null?void 0:n.target)}r(VP,"handleHeaderFacet");function QN(e,t,n){let i=e.definitions[t],o=i[j.SchemaTag.dataType]=uo(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(QN,"addDataPointHeaderFacetDataType");function KN(e,t,n,i,o){e.definitions[t]=Bn(e,n,i);let a=e.definitions[t];return Ps(e,a,o,"ObjectPageSectionFormV2"),a[j.SchemaTag.annotationPath]=n.annotationPath,a[j.SchemaTag.isViewNode]=!0,a}r(KN,"handleFormSection");function XN(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(XN,"getSectionType");function JN(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${$n.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(JN,"getReferenceKey");function DP(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=XN(c.base,a,s),p=JN(c,n,l),f=`${l}<${p}>`;switch(BN(i,p,f),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,GN(o,f,c,n,l,s);let u=o.definitions[f].properties.subsections;for(let m in c.facets)DP(e,c.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{HN(e,p,o,c,t,l),ua(o,c.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{WN(o,f,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=KN(o,f,c,p,l);vc(j.SectionType.Section,c,u,o,j.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ir(c,p,i,o,j.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ir(c,p,i,o,j.SectionType.Section,j.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{VP(o,f,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{VP(o,f,c,p,l),QN(o,f,c);break}default:i.properties[n]=Bn(o,c,p)}}r(DP,"addSection");function NP(e,t,n,i,o,a=!1){if(e)for(let s in t)DP(i,t,s,n,o,!1,a)}r(NP,"addSectionsFromFacets");function RP(e,t,n){var f,u,m,h,T,O;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}/@${$n.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}/@${$n.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=ic((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),s=nc((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 V in n){let Y=n[V];(O=(T=e.entitySet)==null?void 0:T.name)!=null&&O.includes(Y.entitySet)?(NP(c,a,i,e,t),NP(l,s,o,e,t,!0)):RP(e,t,Y.pages)}let p=t.definitions.CustomSections;for(let V in p.properties)i.properties[V]=p.properties[V]}r(RP,"addSections");function qN(e,t,n,i){Ec(e,n),Cc(e,n,t,i,UN,!0)}r(qN,"addHeader");function zN(e,t,n,i){let o=DT(t,n,i,void 0,!0);o&&SS(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(zN,"addRelatedFacetKeysType");function bs(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?(qN(n,e.entitySet,o,e.serviceAVT),n.definitions[j.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},RP(e,n,a),zN(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]),Ac(n,e,j.FioriElementsVersion.v2,kN,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,Gn(n,$N),n):(k(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(bs,"generateObjectPageSchemaV2");var je=w(B());var YN=["filterBar","keyPerformanceIndicators","chart","table","footer"];function jP(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(jP,"retrieveNameWithoutVocabulary");function ZN(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(O){let V=O+(o?"#"+o:"");return t[V]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),c=s?s.PresentationVariant:a("PresentationVariant");if(s&&!c){let O=o?R.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):R.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return k(n,{severity:je.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],p="",f="";l.some(function(O){return p=p||jP("LineItem",O),f=f||jP("Chart",O),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 O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][h-1],V=R.t(O);k(n,{severity:je.LogSeverity.Warning,message:V})}return{lineItemAnnotation:u,chartAnnotation:m}}r(ZN,"getLineItemAndChartAnnotation");function eD(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(eD,"addChart");function Ts(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,lS(n.definitions.TableColumnExtensionTypeV2.enum,[je.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)k(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{pa(n);let u=[],m=Va(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:O}=ZN(m,h,e.logger);T&&iS.forEach(Y=>{n.definitions[Y][je.SchemaTag.annotationPath]=_t(a==null?void 0:a.fullyQualifiedName,T.term,T.qualifier)}),ca(!1,n,T,a),O&&eD(n,O);let V=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(yc(n,V,a),ua(n,a),!m)return k(e.logger,{severity:je.LogSeverity.Error,message:R.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;la(n,a,m,e.manifest,e.fragments),Ld(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 Gn(n,YN),n}r(Ts,"generateAnalyticalListReportSchemaV2");var wP=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function tD(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(tD,"getCardDefinitionNames");function nD(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"},po(a,s.CardModel);let c=tD(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=F+"CardModel"}}r(nD,"addModelsEnum");function iD(e,t){let n=e.properties;for(let i in wP){let o=wP[i],a=o.key;n[a]&&(n[a].messages=[{text:ra(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(iD,"markDeprecatedProperties");function $P(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},iD(n,t),nD(n,t),n}r($P,"generateOverviewPageSchemaV2");var zi=w(B());function fm(e,t,n,i,o,a){qe();let s=An(e,t),c={templateType:a,fioriElementsVersion:zi.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=Pi(o,c.serviceAVT),c.entitySet||k(c.logger,{severity:zi.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(fm,"prepareGenerationV2");function um(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.ListReportObjectPageV2);return bs(s,e)}r(um,"generateObjectPageInterfaceV2");function dm(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.ListReportObjectPageV2);return Kr(s,e)}r(dm,"generateListReportInterfaceV2");function gm(e,t,n,i,o,a){let s=fm(n,a,i,o,t,zi.TemplateType.AnalyticalListPageV2);return Ts(s,e)}r(gm,"generateAnalyticalListPageInterfaceV2");function Ss(e,t){return $P(e,t)}r(Ss,"generateOVPInterfaceV2");var As=w(B());var MP=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),oD=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function aD(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(aD,"initializeRouting");function rD(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(rD,"setTargetOptions");function sD(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==As.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(sD,"calculateQueryPattern");function UP(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){UP(e,t,n,a);return}}}r(UP,"fillNavigationParts");function cD(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(cD,"fillParentKeys");function lD(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],c=t[s.route];if(rD(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=[];UP(p,a,t,o);let f=cD(e.routePattern);l=sD(p,c,f)}i.routes.push(MP(l,s.route,s.route))}}}r(lD,"handlePageNavigation");function pD(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(pD,"removeDeletedPages");function fD(e,t){var n,i;e.entitySet?(t.options||(t.options=oD(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(fD,"transferEntitySet");function uD(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(uD,"updateRouteLayout");function dD(e,t,n){return e.pageType&&e.pageType!==As.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(dD,"fillTarget");function kP(e,t,n){var o,a;let i=aD(n[As.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(MP(":?query:",e,e));for(let s in t){let c,l=t[s];i.targets[s]&&(c=i.targets[s]),c=dD(l,c,s),fD(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={}),lD(l,t,c,i,s),uD(i,s,l),i.targets[s]=c}return pD(i,t),i}r(kP,"transformRoutingV4");var Vt=w(B());function _P(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(_P,"updateDependencyLib");function BP(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(BP,"extractLastIdPart");var HP=[Vt.FlexibleColumnLayoutAggregations.BeginColumnPages,Vt.FlexibleColumnLayoutAggregations.MidColumnPages,Vt.FlexibleColumnLayoutAggregations.EndColumnPages],GP=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:HP[o]?s.controlAggregation=HP[o]:s.controlAggregation=Vt.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)GP(e,t,c.navigation[f].route,a.target,o)}},"applyFCLRouting"),gD=r((e,t)=>{e.routing.config.routerClass=Vt.v4.FIORI_FCL_ROUTER_CLASS,GP(e,t,t.home);let n={viewName:Vt.FIORI_FCL_ROOT_VIEW_NAME,type:Vt.ViewTypes.XML,async:!0,id:Vt.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,_P(e,Vt.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),mD=r(e=>{var t;e.rootView&&e.rootView.viewName===Vt.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Vt.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),WP=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?gD(e,t):mD(e)},"updateFcl");var $=w(B());var Ap=require("@sap-ux/vocabularies-types/vocabularies/UI");var QP=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],yD=[...QP,"views","initialLoad","template"],hD=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function bD(e,t,n){var s,c,l;let i=`@${Ap.UIAnnotationTerms.LineItem}`,o=`@${Ap.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(bD,"determineTargetAnnotationOfTable");function TD(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(TD,"determineTargetAnnotationOfChart");function SD(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(SD,"determineTargetAnnotationBasedOnParentView");function vD(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}=SD(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(vD,"determineTargetAnnotationOfView");function PD(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(PD,"determineTargetAnnotationOfHeaderSections");function AD(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=BP(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(AD,"determineTargetAnnotationOfSections");function CD(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=bD(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=TD(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=AD(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=PD(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=vD(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(CD,"determineTargetAnnotation");function ED(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(ED,"determineKeyForSyncRule");function xD(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(xD,"createNewObjectInManifest");function ID(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&&(xD(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(ID,"transferPropertyToManifest");function OD(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&&QP.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&yD.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 xi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),c}r(OD,"deleteFromManifest");function FD(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}=CD(e,n.transferParameters,n.configObject),f=ED(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,c,f,l,n.configObject),m=li(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&&ta([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=OD(e,h,n.transferParameters,m,u,l,c):o=ID(h,n.propertyDefinition,i)}return o}r(FD,"exportManifestChange");function LD(e,t,n){let i=pt(e.configObject,e.key);i!=null&&i.manifest&&FD(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(LD,"evaluateExportRule");function VD(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,ym(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(VD,"transferSubObject");function ND(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=li(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(ND,"createALPTableView");function DD(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=li(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)||Ap.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(DD,"createALPChartView");function RD(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=$e(t.pageNameArray)+"/views",s=li(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(RD,"createLRTableView");function jD(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 DD(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return ND(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=RD(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(jD,"createNewElement");function wD(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(wD,"isDefinitionTraversable");function mm(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=rc(e.configObject,e.key),s=Hn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:c,stopProcessing:l}=jD(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(F)[1],i),p=a?[...t,a]:[...t,e.key];if(c||LD(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||wD(e.propertyDefinition)&&s.configObject)&&!l){let u=a?[...n,a]:n;VD(e,s,o,p,u)}}r(mm,"transferSortedListEntry");function $D(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]],mm(e,i,o),a=!0):typeof c[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=c[0],e.propertyDefinition=p,mm(e,i,o),a=!0)}),e.index++})}return a}r($D,"transferConfigEntriesWithAnyOfDefinitions");function MD(e,t,n,i){let o=RT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(MD,"mergeEntriesForInsert");function UD(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(UD,"sortProperties");function kD(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=$D(n,p,i,o,a)}return s}r(kD,"checkIfAnyOfDefinition");function ym(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=kD(l,e,c,a,n,i),f=UD(a.properties);l!=null&&l.$ref&&MD(e,l,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!ta(o,e.entityPathArray)||(c.key=u[0],c.propertyDefinition=u[1],c.index=s,mm(c,n,i,p),u[1].$ref&&s++)})}r(ym,"transferManifestEntriesAndFlexChange");function KP(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(KP,"getClassesForSingleSection");function XP(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],KP(n,i,t),XP(n,t)}}r(XP,"getSubsectionClasses");function _D(e,t,n){let i;for(let o in e.sections)i=t.sections[o],KP(e,o,n),XP(i,n)}r(_D,"getExportClassesForSections");function JP(e,t){let n=sc(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(JP,"calculateBaseId");var qP=r((e,t,n=!1)=>{var c;let i=hD(e.manifest),o=new Ai,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(c=e.page.config)!=null&&c[$.PropertyName.sections]&&_D(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:JP(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 ym(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),BD=r((e,t,n,i,o,a,s=!1)=>{var T,O;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((O=f.toolBar)!=null&&O.actions&&m)for(let V in m.properties)f.toolBar.actions[V]=t.createInstance(i,$.DefinitionName.ToolBarAction,f.toolBar.actions[V]);let h={exportResults:c,appId:e.appId,appRootPath:e.appRootPath,baseId:JP(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 ym(h,n,[],[],[],l),c},"exportListPage"),hm=r((e,t,n,i=!1)=>{let o=new Ai,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return BD(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),zP=r((e,t,n=!1)=>hm(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),HD=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Yl,e);o.settings=Object.assign(new Da,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=li(i.manifest,p);if(((a=e.settings)==null?void 0:a[c])!==void 0)f[c]=e.settings[c];else{let u=li(i.manifest,p);((s=e.settings)==null?void 0:s[c])!==void 0?u[c]=e.settings[c]:c in u&&(delete u[c],xi(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=kP(e.home,e.pages,i.manifest),WP(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),YP=r((e,t)=>{if(e[$.SchemaType.ListReport])return hm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return qP(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return HD(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return zP(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),bm=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return hm(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return qP(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return zP(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function GD(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=dm(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=um(i,o,a,s,c,l)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=Ss(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=gm(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=zl(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=zd(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=zl(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=Yd(Z.TemplateType.FreestylePageV4,i,a,c,o,s)}}return t}r(GD,"generateSchema");function WD(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Uv(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=YP(i,n)}return t}r(WD,"exportConfig");function QD(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Nd(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=bm(i,n)}return t}r(QD,"exportConfigEntityByPath");function KD(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Nd(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=bm(i,n,!0)}return t}r(KD,"deleteConfigEntityByPath");function XD(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=Hl(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Dl(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Rl(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=jl(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Bo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Sp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Bo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(XD,"importConfig");async function JD(e){return pm(e)}r(JD,"importProject");async function qD(e){return lm(e)}r(qD,"importProjectSchema");function zD(){return{version:"20",moduleVersion:OS.version}}r(zD,"getApiVersion");var Tn=require("path"),Yi=require("fs");var _a=r(async e=>new Promise((t,n)=>{(0,Yi.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),YD=r(async e=>JSON.parse(await _a(e)),"readJSON"),Tm=r(async e=>new Promise((t,n)=>{(0,Yi.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),ZD=r(async e=>new Promise(t=>{(0,Yi.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),ZP=r(async e=>new Promise(t=>{(0,Yi.exists)(e,n=>{t(n)})}),"resourceExists"),eR=r(async e=>YD((0,Tn.join)(e,"manifest.json")),"getManifest"),eA=r(async e=>{let t=[],n=(0,Tn.join)(e,"changes");if(!await ZP(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Tm(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await _a((0,Tn.join)(n,a)));return t},"getChanges"),tR=r(async e=>{let t=[],n=(0,Tn.join)(e,"ext","fragments");if(!await ZP(n))return t;let i=await Tm(n);for(let o of i){let a=(0,Tn.join)(n,o),s=await _a(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),nR=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,Tn.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await _a(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,Tn.join)(t,i[m].settings.localUri);n.push({dataSourceUri:h,fileContent:await _a(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,Tn.join)(t,h.settings.localUri);n.push({dataSourceUri:T,fileContent:await _a(T)})}}return n},"getAnnotations"),iR=r(async e=>{let t=(0,Tn.basename)(e),n=(0,Tn.join)(e,"webapp"),i=await eR(n),o=await nR(i,n),a=await eA(n),s=await tR(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");eo(nn,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:
|