@sap/ux-specification 1.84.102 → 1.84.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +37 -11
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  6. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  7. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  8. package/dist/documentation/v4/v4-ListReport.html +2 -2
  9. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  10. package/dist/index-min.js +32 -32
  11. package/dist/index-min.js.map +3 -3
  12. package/dist/specification/package.json +6 -8
  13. package/dist/specification/scripts/extractDocu.js +59 -74
  14. package/dist/specification/scripts/extractDocu.js.map +1 -1
  15. package/dist/specification/scripts/to-json-schema.js +17 -7
  16. package/dist/specification/scripts/to-json-schema.js.map +1 -1
  17. package/dist/specification/src/api.js +1 -1
  18. package/dist/specification/src/sync/common/distTagEvaluator.js +17 -7
  19. package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
  20. package/dist/specification/src/sync/common/flexUtils.js +17 -7
  21. package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
  22. package/dist/specification/src/sync/i18n.js +17 -7
  23. package/dist/specification/src/sync/i18n.js.map +1 -1
  24. package/dist/specification/src/sync/v2/export/factory.js +17 -7
  25. package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
  26. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  27. package/dist/specification/src/sync/v4/export/export.js +6 -4
  28. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  29. package/dist/specification/src/sync/v4/export/factory.js +17 -7
  30. package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
  31. package/dist/types/src/index.js +17 -7
  32. package/dist/types/src/index.js.map +1 -1
  33. package/package.json +6 -8
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var nP=Object.create;var No=Object.defineProperty;var _g=Object.getOwnPropertyDescriptor;var iP=Object.getOwnPropertyNames;var oP=Object.getPrototypeOf,aP=Object.prototype.hasOwnProperty;var r=(e,t)=>No(e,"name",{value:t,configurable:!0});var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Do=(e,t)=>{for(var n in t)No(e,n,{get:t[n],enumerable:!0})},cs=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iP(t))!aP.call(e,o)&&o!==n&&No(e,o,{get:()=>t[o],enumerable:!(i=_g(t,o))||i.enumerable});return e},_i=(e,t,n)=>(cs(e,t,"default"),n&&cs(n,t,"default")),U=(e,t,n)=>(n=e!=null?nP(oP(e)):{},cs(t||!e||!e.__esModule?No(n,"default",{value:e,enumerable:!0}):n,e)),rP=e=>cs(No({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?_g(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&&No(t,n,o),o};var gy=Re((VN,dy)=>{var tp=Object.defineProperty,sP=Object.getOwnPropertyDescriptor,lP=Object.getOwnPropertyNames,cP=Object.prototype.hasOwnProperty,np=r((e,t)=>{for(var n in t)tp(e,n,{get:t[n],enumerable:!0})},"d"),pP=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lP(t))!cP.call(e,o)&&o!==n&&tp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=sP(t,o))||i.enumerable});return e},"Ke"),fP=r(e=>pP(tp({},"__esModule",{value:!0}),e),"Ye"),Bg={};np(Bg,{ACTIONTITLEPREFIX:r(()=>mP,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>qg,"ALPViewType"),ActionType:r(()=>Yg,"ActionType"),ArtifactType:r(()=>zg,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>hP,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>im,"ChangeIndicator"),ChartColor:r(()=>bm,"ChartColor"),ColorPaletteDefinitionType:r(()=>ym,"ColorPaletteDefinitionType"),ControlType:r(()=>Zg,"ControlType"),DATESETTINGSPATH:r(()=>xP,"DATESETTINGSPATH"),DataSourceType:r(()=>gm,"DataSourceType"),DefinitionName:r(()=>rm,"DefinitionName"),DirName:r(()=>tm,"DirName"),DraftDiscardEnabledSettings:r(()=>pm,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Jg,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>gP,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>LP,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>FP,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>IP,"FRAGMENTNAMEPART"),FacetBase:r(()=>om,"FacetBase"),Features:r(()=>Sm,"Features"),FileName:r(()=>nm,"FileName"),FioriElementsVersion:r(()=>Hg,"FioriElementsVersion"),FlexChangeLayer:r(()=>Qg,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>dm,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Wg,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>OP,"GENERICAPPSETTINGS"),LogSeverity:r(()=>Tm,"LogSeverity"),MANIFESTPATH:r(()=>bP,"MANIFESTPATH"),ManifestSection:r(()=>mm,"ManifestSection"),OdataVersion:r(()=>Gg,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>dP,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>uP,"PageType"),PageTypeV2:r(()=>ip,"PageTypeV2"),PageTypeV4:r(()=>op,"PageTypeV4"),PropertyName:r(()=>sm,"PropertyName"),QUICKVARPATH:r(()=>AP,"QUICKVARPATH"),QUICKVARPATHX:r(()=>EP,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>NP,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>VP,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>cm,"SchemaKeyName"),SchemaTag:r(()=>lm,"SchemaTag"),SchemaType:r(()=>Kg,"SchemaType"),SectionType:r(()=>Xg,"SectionType"),StatePreservationMode:r(()=>um,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>fm,"TableColumnVerticalAlignment"),TemplateType:r(()=>vm,"TemplateType"),UIVOCABULARY:r(()=>SP,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>CP,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>PP,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>vP,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>TP,"VOCWITHSLASH"),ViewTemplateType:r(()=>am,"ViewTemplateType"),ViewTypes:r(()=>hm,"ViewTypes"),Visualization:r(()=>em,"Visualization"),defaultExportResult:r(()=>yP,"defaultExportResult"),logSeverityLabel:r(()=>DP,"logSeverityLabel"),v2:r(()=>Pm,"v2"),v4:r(()=>qm,"v4")});dy.exports=fP(Bg);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||{}),uP={...ip,...op},dP=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"]]),Hg=(e=>(e.v2="v2",e.v4="v4",e))(Hg||{}),Gg=(e=>(e.v2="v2",e.v4="v4",e))(Gg||{}),Wg=(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))(Wg||{}),Qg=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Qg||{}),Kg=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Kg||{}),Jg=(e=>(e.flex="flex",e.manifest="manifest",e))(Jg||{}),qg=(e=>(e.Primary="primary",e.Secondary="secondary",e))(qg||{}),Xg=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Xg||{}),zg=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(zg||{}),Yg=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Yg||{}),Zg=(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))(Zg||{}),em=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(em||{}),tm=(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))(tm||{}),nm=(e=>(e.App="app.json",e))(nm||{}),gP="Facet ID: ",mP="Action ID: ",im=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(im||{}),yP={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},om=(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))(om||{}),hP="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",am=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(am||{}),rm=(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))(rm||{}),sm=(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))(sm||{}),lm=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(lm||{}),cm=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(cm||{}),bP="webapp/manifest.json",TP="/@com.sap.vocabularies",vP="::@com.sap.vocabularies",SP="com.sap.vocabularies.UI.v1",PP="com.sap.vocabularies.UI.v1.",CP="@com.sap.vocabularies.UI.v1.",AP="/quickVariantSelection",EP="/quickVariantSelectionX",xP="/filterSettings/dateSettings",IP=".fragment.",pm=(e=>(e.restricted="restricted",e))(pm||{}),fm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(fm||{}),um=(e=>(e.persistence="persistence",e.discovery="discovery",e))(um||{}),dm=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(dm||{}),gm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(gm||{}),mm=(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))(mm||{}),OP="sap.ui.generic.app/settings",ym=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(ym||{}),FP="sap.fe.templates.RootContainer.view.Fcl",LP="appRootView",hm=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(hm||{}),VP="sap.ui.core.mvc.View",NP="sap.ui.core.Fragment",bm=(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))(bm||{}),Tm=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Tm||{}),DP={error:"Error",warning:"Warning",info:"Information"},vm=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(vm||{}),Sm=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Sm||{}),Pm={};np(Pm,{AvatarShape:r(()=>Gm,"AvatarShape"),ButtonType:r(()=>Cm,"ButtonType"),CardSettingsType:r(()=>xm,"CardSettingsType"),CardTemplateType:r(()=>Em,"CardTemplateType"),ChartCardType:r(()=>Am,"ChartCardType"),ChartType:r(()=>Hm,"ChartType"),ContainerLayoutType:r(()=>Jm,"ContainerLayoutType"),CreateMode:r(()=>Km,"CreateMode"),DateRangeType:r(()=>Nm,"DateRangeType"),DefaultContentView:r(()=>km,"DefaultContentView"),DefaultFilterMode:r(()=>_m,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Qm,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>$P,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>UP,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>MP,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>wP,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Dm,"FilterPathType"),HAlign:r(()=>jm,"HAlign"),LinkListFlavorType:r(()=>Vm,"LinkListFlavorType"),ListFlavorType:r(()=>Om,"ListFlavorType"),ListTypeType:r(()=>Fm,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Bm,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Im,"MeasureAggregateValues"),PopinLayout:r(()=>Mm,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>_P,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>kP,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>GP,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>HP,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>BP,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Wm,"SectionPosition"),SortOrderType:r(()=>Lm,"SortOrderType"),Strategy:r(()=>Um,"Strategy"),TableColumnExtensionTypeV2:r(()=>wm,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>$m,"TableTypeV2"),cardTemplateSettingsMap:r(()=>RP,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>jP,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Rm,"customColumnViewTypes")});var Cm=(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))(Cm||{}),Am=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Am||{}),Em=(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))(Em||{}),jP={"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"},RP={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},xm=(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))(xm||{}),Im=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Im||{}),Om=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Om||{}),Fm=(e=>(e.extended="extended",e.condensed="condensed",e))(Fm||{}),Lm=(e=>(e.ascending="ascending",e.descending="descending",e))(Lm||{}),Vm=(e=>(e.standard="standard",e.carousel="carousel",e))(Vm||{}),Nm=(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))(Nm||{}),Dm=(e=>(e.key="key",e.catgory="category",e))(Dm||{}),jm=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(jm||{}),Rm=(e=>(e.XML="XML",e))(Rm||{}),$m=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($m||{}),wm=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(wm||{}),Mm=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Mm||{}),Um=(e=>(e.extension="extension",e))(Um||{}),km=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(km||{}),_m=(e=>(e.visual="visual",e.compact="compact",e))(_m||{}),Bm=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Bm||{}),Hm=(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))(Hm||{}),Gm=(e=>(e.Circle="Circle",e.Square="Square",e))(Gm||{}),Wm=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Wm||{}),Qm=(e=>(e.XML="XML",e))(Qm||{}),Km=(e=>(e.inline="inline",e))(Km||{}),$P="sap.suite.ui.generic.template",wP="sap.suite.ui.generic.template.ObjectPage",MP="sap.suite.ui.generic.template.ListReport",UP="sap.suite.ui.generic.template.AnalyticalListPage",kP="sap.ui.viewExtensions",_P="sap.ui.controllerExtensions",BP="sap.suite.ui.generic.template.ObjectPage.view.Details",HP="sap.suite.ui.generic.template.ListReport.view.ListReport",GP="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Jm=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Jm||{}),qm={};np(qm,{Availability:r(()=>ly,"Availability"),CloudDevAdaptationStatus:r(()=>uy,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:r(()=>oy,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Zm,"DefaultPathType"),DesigntimeValues:r(()=>ty,"DesigntimeValues"),FE_TEMPLATE_V4:r(()=>WP,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:r(()=>qP,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>QP,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>JP,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>KP,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>zP,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>cy,"HorizontalAlign"),InitialLoadType:r(()=>Ym,"InitialLoadType"),Placement:r(()=>sy,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>YP,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>XP,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>ny,"SectionLayoutType"),SectionPosition:r(()=>iy,"SectionPosition"),SectionPositionV4:r(()=>ry,"SectionPositionV4"),SelectType:r(()=>ey,"SelectType"),SelectionMode:r(()=>Xm,"SelectionMode"),TableCreationModeType:r(()=>ay,"TableCreationModeType"),TableTypeV4:r(()=>zm,"TableTypeV4"),VariantManagementTypeListReport:r(()=>fy,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>py,"VariantManagementTypeObjectPage")});var Xm=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Xm||{}),zm=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(zm||{}),Ym=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Ym||{}),Zm=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Zm||{}),ey=(e=>(e.single="single",e.multi="multi",e))(ey||{}),ty=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(ty||{}),ny=(e=>(e.Tabs="Tabs",e.Page="Page",e))(ny||{}),iy=(e=>(e.After="After",e.Before="Before",e))(iy||{}),oy=(e=>(e.XML="XML",e))(oy||{}),ay=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ay||{}),WP="sap.fe.templates",QP="sap.fe.core.fpm",KP="sap.fe.templates.ObjectPage",JP="sap.fe.templates.ListReport",qP="sap.fe.templates.AnalyticalListPage",XP="XMLFragment",ry=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ry||{}),zP="sap.f.routing.Router",YP="sap.f",sy=(e=>(e.After="After",e.Before="Before",e))(sy||{}),ly=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(ly||{}),cy=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(cy||{}),py=(e=>(e.None="None",e.Control="Control",e))(py||{}),fy=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(fy||{}),uy=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(uy||{})});var by=Re(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.Features=Ln.TemplateType=Ln.logSeverityLabel=Ln.LogSeverity=void 0;var my;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(my||(Ln.LogSeverity=my={}));Ln.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var yy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(yy||(Ln.TemplateType=yy={}));var hy;(function(e){e.BuildingBlocks="BuildingBlocks"})(hy||(Ln.Features=hy={}))});var Ky=Re((jN,Qy)=>{var ap=Object.defineProperty,ZP=Object.getOwnPropertyDescriptor,eC=Object.getOwnPropertyNames,tC=Object.prototype.hasOwnProperty,nC=r((e,t)=>{for(var n in t)ap(e,n,{get:t[n],enumerable:!0})},"G"),iC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eC(t))!tC.call(e,o)&&o!==n&&ap(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=ZP(t,o))||i.enumerable});return e},"X"),oC=r(e=>iC(ap({},"__esModule",{value:!0}),e),"H"),Ty={};nC(Ty,{AvatarShape:r(()=>_y,"AvatarShape"),ButtonType:r(()=>vy,"ButtonType"),CardSettingsType:r(()=>Cy,"CardSettingsType"),CardTemplateType:r(()=>Py,"CardTemplateType"),ChartCardType:r(()=>Sy,"ChartCardType"),ChartType:r(()=>ky,"ChartType"),ContainerLayoutType:r(()=>Wy,"ContainerLayoutType"),CreateMode:r(()=>Gy,"CreateMode"),DateRangeType:r(()=>Fy,"DateRangeType"),DefaultContentView:r(()=>wy,"DefaultContentView"),DefaultFilterMode:r(()=>My,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Hy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>sC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>pC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>cC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>lC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Ly,"FilterPathType"),HAlign:r(()=>Vy,"HAlign"),LinkListFlavorType:r(()=>Oy,"LinkListFlavorType"),ListFlavorType:r(()=>Ey,"ListFlavorType"),ListTypeType:r(()=>xy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Uy,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Ay,"MeasureAggregateValues"),PopinLayout:r(()=>Ry,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>uC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>fC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>mC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>gC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>dC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>By,"SectionPosition"),SortOrderType:r(()=>Iy,"SortOrderType"),Strategy:r(()=>$y,"Strategy"),TableColumnExtensionTypeV2:r(()=>jy,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Dy,"TableTypeV2"),cardTemplateSettingsMap:r(()=>rC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>aC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Ny,"customColumnViewTypes")});Qy.exports=oC(Ty);var vy=(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))(vy||{}),Sy=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Sy||{}),Py=(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))(Py||{}),aC={"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"},rC={"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||{}),Ay=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Ay||{}),Ey=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Ey||{}),xy=(e=>(e.extended="extended",e.condensed="condensed",e))(xy||{}),Iy=(e=>(e.ascending="ascending",e.descending="descending",e))(Iy||{}),Oy=(e=>(e.standard="standard",e.carousel="carousel",e))(Oy||{}),Fy=(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))(Fy||{}),Ly=(e=>(e.key="key",e.catgory="category",e))(Ly||{}),Vy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Vy||{}),Ny=(e=>(e.XML="XML",e))(Ny||{}),Dy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Dy||{}),jy=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(jy||{}),Ry=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Ry||{}),$y=(e=>(e.extension="extension",e))($y||{}),wy=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(wy||{}),My=(e=>(e.visual="visual",e.compact="compact",e))(My||{}),Uy=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Uy||{}),ky=(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))(ky||{}),_y=(e=>(e.Circle="Circle",e.Square="Square",e))(_y||{}),By=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(By||{}),Hy=(e=>(e.XML="XML",e))(Hy||{}),Gy=(e=>(e.inline="inline",e))(Gy||{}),sC="sap.suite.ui.generic.template",lC="sap.suite.ui.generic.template.ObjectPage",cC="sap.suite.ui.generic.template.ListReport",pC="sap.suite.ui.generic.template.AnalyticalListPage",fC="sap.ui.viewExtensions",uC="sap.ui.controllerExtensions",dC="sap.suite.ui.generic.template.ObjectPage.view.Details",gC="sap.suite.ui.generic.template.ListReport.view.ListReport",mC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Wy=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Wy||{})});var dh=Re(($N,uh)=>{var rp=Object.defineProperty,yC=Object.getOwnPropertyDescriptor,hC=Object.getOwnPropertyNames,bC=Object.prototype.hasOwnProperty,TC=r((e,t)=>{for(var n in t)rp(e,n,{get:t[n],enumerable:!0})},"U"),vC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hC(t))!bC.call(e,o)&&o!==n&&rp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=yC(t,o))||i.enumerable});return e},"w"),SC=r(e=>vC(rp({},"__esModule",{value:!0}),e),"j"),Jy={};TC(Jy,{Availability:r(()=>sh,"Availability"),CloudDevAdaptationStatus:r(()=>fh,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:r(()=>ih,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Yy,"DefaultPathType"),DesigntimeValues:r(()=>eh,"DesigntimeValues"),FE_TEMPLATE_V4:r(()=>PC,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:r(()=>xC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>CC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>EC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>AC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>OC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>lh,"HorizontalAlign"),InitialLoadType:r(()=>zy,"InitialLoadType"),Placement:r(()=>rh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>FC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>IC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>th,"SectionLayoutType"),SectionPosition:r(()=>nh,"SectionPosition"),SectionPositionV4:r(()=>ah,"SectionPositionV4"),SelectType:r(()=>Zy,"SelectType"),SelectionMode:r(()=>qy,"SelectionMode"),TableCreationModeType:r(()=>oh,"TableCreationModeType"),TableTypeV4:r(()=>Xy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>ph,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>ch,"VariantManagementTypeObjectPage")});uh.exports=SC(Jy);var qy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(qy||{}),Xy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Xy||{}),zy=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(zy||{}),Yy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Yy||{}),Zy=(e=>(e.single="single",e.multi="multi",e))(Zy||{}),eh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(eh||{}),th=(e=>(e.Tabs="Tabs",e.Page="Page",e))(th||{}),nh=(e=>(e.After="After",e.Before="Before",e))(nh||{}),ih=(e=>(e.XML="XML",e))(ih||{}),oh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(oh||{}),PC="sap.fe.templates",CC="sap.fe.core.fpm",AC="sap.fe.templates.ObjectPage",EC="sap.fe.templates.ListReport",xC="sap.fe.templates.AnalyticalListPage",IC="XMLFragment",ah=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ah||{}),OC="sap.f.routing.Router",FC="sap.f",rh=(e=>(e.After="After",e.Before="Before",e))(rh||{}),sh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(sh||{}),lh=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(lh||{}),ch=(e=>(e.None="None",e.Control="Control",e))(ch||{}),ph=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ph||{}),fh=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(fh||{})});var B=Re(Pt=>{"use strict";var gh=Pt&&Pt.__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]}),LC=Pt&&Pt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mh=Pt&&Pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gh(t,e,n)},yh=Pt&&Pt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&gh(t,e,n);return LC(t,e),t};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.v4=Pt.v2=void 0;mh(gy(),Pt);mh(by(),Pt);Pt.v2=yh(Ky());Pt.v4=yh(dh())});var Ap=Re((nD,Lh)=>{"use strict";var qC=r(function(t){return XC(t)&&!zC(t)},"isMergeableObject");function XC(e){return!!e&&typeof e=="object"}r(XC,"isNonNullObject");function zC(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eA(e)}r(zC,"isSpecial");var YC=typeof Symbol=="function"&&Symbol.for,ZC=YC?Symbol.for("react.element"):60103;function eA(e){return e.$$typeof===ZC}r(eA,"isReactElement");function tA(e){return Array.isArray(e)?[]:{}}r(tA,"emptyTarget");function Na(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wo(tA(e),e,t):e}r(Na,"cloneUnlessOtherwiseSpecified");function nA(e,t,n){return e.concat(t).map(function(i){return Na(i,n)})}r(nA,"defaultArrayMerge");function iA(e,t){if(!t.customMerge)return wo;var n=t.customMerge(e);return typeof n=="function"?n:wo}r(iA,"getMergeFunction");function oA(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(oA,"getEnumerableOwnPropertySymbols");function Oh(e){return Object.keys(e).concat(oA(e))}r(Oh,"getKeys");function Fh(e,t){try{return t in e}catch{return!1}}r(Fh,"propertyIsOnObject");function aA(e,t){return Fh(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(aA,"propertyIsUnsafe");function rA(e,t,n){var i={};return n.isMergeableObject(e)&&Oh(e).forEach(function(o){i[o]=Na(e[o],n)}),Oh(t).forEach(function(o){aA(e,o)||(Fh(e,o)&&n.isMergeableObject(t[o])?i[o]=iA(o,n)(e[o],t[o],n):i[o]=Na(t[o],n))}),i}r(rA,"mergeObject");function wo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nA,n.isMergeableObject=n.isMergeableObject||qC,n.cloneUnlessOtherwiseSpecified=Na;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):rA(e,t,n):Na(t,n)}r(wo,"deepmerge");wo.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 wo(i,o,n)},{})},"deepmergeAll");var sA=wo;Lh.exports=sA});var Ts=Re(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.mergeAnnotations=Le.addGetByValue=Le.createIndexedFind=Le.lazy=Le.Decimal=Le.Double=Le.isComplexTypeDefinition=Le.unalias=Le.alias=Le.substringBeforeLast=Le.substringBeforeFirst=Le.splitAtLast=Le.splitAtFirst=Le.defaultReferences=Le.TermToTypes=Le.EnumIsFlag=void 0;var lA=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Le,"EnumIsFlag",{enumerable:!0,get:r(function(){return lA.EnumIsFlag},"get")});var cA=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Le,"TermToTypes",{enumerable:!0,get:r(function(){return cA.TermToTypes},"get")});var pA=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Le,"defaultReferences",{enumerable:!0,get:r(function(){return pA.VocabularyReferences},"get")});function Vh(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Vh,"splitAt");function Nh(e,t){return t<0?e:e.substring(0,t)}r(Nh,"substringAt");function bs(e,t){return Vh(e,e.indexOf(t))}r(bs,"splitAtFirst");Le.splitAtFirst=bs;function Dh(e,t){return Vh(e,e.lastIndexOf(t))}r(Dh,"splitAtLast");Le.splitAtLast=Dh;function fA(e,t){return Nh(e,e.indexOf(t))}r(fA,"substringBeforeFirst");Le.substringBeforeFirst=fA;function uA(e,t){return Nh(e,e.lastIndexOf(t))}r(uA,"substringBeforeLast");Le.substringBeforeLast=uA;function jh(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Dh(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=bs(t,"@");return`${a}@${jh(e,s)}`}else return t}r(jh,"alias");Le.alias=jh;function Ep(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,l]=bs(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),p=c?s.substring(1):s,f=e.referenceMap[p];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=bs(s,"("),p=[o(l)];if(c){let f=c.slice(0,-1);p.push(`(${o(f)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(Ep,"unalias");Le.unalias=Ep;function dA(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(dA,"isComplexTypeDefinition");Le.isComplexTypeDefinition=dA;function gA(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(gA,"Double");Le.Double=gA;function mA(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(mA,"Decimal");Le.Decimal=mA;function yA(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(yA,"lazy");Le.lazy=yA;function Rh(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 l=s[t];return n.set(l,s),l===o})},"find")}r(Rh,"createIndexedFind");Le.createIndexedFind=Rh;function hA(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Rh(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(hA,"addGetByValue");Le.addGetByValue=hA;function bA(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:l}of o){let c=(a=Ep(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let p=l.map(f=>{var u;return f.term=(u=Ep(e,f.term))!==null&&u!==void 0?u:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(u=>u.term===f.term&&u.qualifier===f.qualifier));n[c].push(...p)}return n},{})}r(bA,"mergeAnnotations");Le.mergeAnnotations=bA});var qh=Re(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.convert=void 0;var vs=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Ts(),gn=Symbol("Annotation Target");function Jn(e,t){return e[e.length-1]!==t&&e.push(t),e}r(Jn,"appendObjectPath");function Jt(e,t,n,i){var o,a,s,l,c;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,v]=(0,K.splitAtFirst)(m,"@");u.push(b),u.push(`@${v}`)}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=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[gn]!==void 0)t=t[gn];else if(t._type==="Property"){let u=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(u))!==null&&c!==void 0?c:e.getConvertedComplexType(u)}let f=p.reduce((u,m)=>{var b,v,L,V,z;let ne=r(ie=>(u.messages.push({message:ie}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=Jn(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[ie,ce]=e.splitTerm(m),Y=(b=u.target.annotations[ie.substring(1)])===null||b===void 0?void 0:b[ce];return Y!==void 0?(u.target=Y,u):ne(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let ie;if(m==="$AnnotationPath"?ie=u.target.value:m==="$Path"&&(ie=u.target.path),ie!==void 0){let ce=Jt(e,u.target[gn],ie);return ce.objectPath.forEach(Y=>{u.objectPath.includes(Y)||(u.objectPath=Jn(u.objectPath,Y))}),u.target=ce.target,u.objectPath=Jn(u.objectPath,u.target),u}}switch((v=u.target)===null||v===void 0?void 0:v._type){case"Schema":break;case"EntityContainer":{let Y=u.target;if(m===""||e.unalias(m)===Y.fullyQualifiedName)return u;let oe=(V=(L=Y.entitySets.by_name(m))!==null&&L!==void 0?L:Y.singletons.by_name(m))!==null&&V!==void 0?V:Y.actionImports.by_name(m);if(oe)return u.target=oe,u}break;case"EntitySet":case"Singleton":{let Y=u.target;if(m===""||m==="$Type")return u.target=Y.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Se=Y.navigationPropertyBinding;return u.target=Se,u}let oe=Jt(e,Y.entityType,m);return u.target=oe.target,u.objectPath=oe.objectPath.reduce(Jn,u.objectPath),u}case"EntityType":{let Y=u.target;if(m===""||m==="$Type")return u;let oe=Y.entityProperties.by_name(m);if(oe)return u.target=oe,u;let Se=Y.navigationProperties.by_name(m);if(Se)return u.target=Se,u;let P=(0,K.substringBeforeFirst)(e.unalias(m),"("),Lt=Y.actions[P];if(Lt)return u.target=Lt,u}break;case"ActionImport":{let Y=Jt(e,u.target.action,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(Jn,u.objectPath),u}case"Action":{let Y=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&Y.isBound)return u.target=Y.parameters,u;let oe=(z=Y.parameters[m])!==null&&z!==void 0?z:Y.parameters.find(Se=>Se.name===m);if(oe)return u.target=oe,u;break}case"Property":{let oe=u.target.targetType;if(oe!==void 0){let Se=oe.properties.by_name(m);if(Se)return u.target=Se,u;let P=oe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let ie=u.target.typeReference;if(ie!==void 0){let Y=Jt(e,ie,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(Jn,u.objectPath),u}break;case"NavigationProperty":let ce=Jt(e,u.target.targetType,m);return u.target=ce.target,u.objectPath=ce.objectPath.reduce(Jn,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=Jn(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=kh(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var nP=Object.create;var Vo=Object.defineProperty;var _g=Object.getOwnPropertyDescriptor;var iP=Object.getOwnPropertyNames;var oP=Object.getPrototypeOf,aP=Object.prototype.hasOwnProperty;var r=(e,t)=>Vo(e,"name",{value:t,configurable:!0});var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Do=(e,t)=>{for(var n in t)Vo(e,n,{get:t[n],enumerable:!0})},cs=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iP(t))!aP.call(e,o)&&o!==n&&Vo(e,o,{get:()=>t[o],enumerable:!(i=_g(t,o))||i.enumerable});return e},_i=(e,t,n)=>(cs(e,t,"default"),n&&cs(n,t,"default")),U=(e,t,n)=>(n=e!=null?nP(oP(e)):{},cs(t||!e||!e.__esModule?Vo(n,"default",{value:e,enumerable:!0}):n,e)),rP=e=>cs(Vo({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?_g(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&&Vo(t,n,o),o};var gy=Re((NV,dy)=>{var tf=Object.defineProperty,sP=Object.getOwnPropertyDescriptor,lP=Object.getOwnPropertyNames,cP=Object.prototype.hasOwnProperty,nf=r((e,t)=>{for(var n in t)tf(e,n,{get:t[n],enumerable:!0})},"d"),fP=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lP(t))!cP.call(e,o)&&o!==n&&tf(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=sP(t,o))||i.enumerable});return e},"Ke"),pP=r(e=>fP(tf({},"__esModule",{value:!0}),e),"Ye"),Bg={};nf(Bg,{ACTIONTITLEPREFIX:r(()=>mP,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>qg,"ALPViewType"),ActionType:r(()=>Yg,"ActionType"),ArtifactType:r(()=>zg,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>hP,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>im,"ChangeIndicator"),ChartColor:r(()=>bm,"ChartColor"),ColorPaletteDefinitionType:r(()=>ym,"ColorPaletteDefinitionType"),ControlType:r(()=>Zg,"ControlType"),DATESETTINGSPATH:r(()=>xP,"DATESETTINGSPATH"),DataSourceType:r(()=>gm,"DataSourceType"),DefinitionName:r(()=>rm,"DefinitionName"),DirName:r(()=>tm,"DirName"),DraftDiscardEnabledSettings:r(()=>fm,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Jg,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>gP,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>LP,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>FP,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>OP,"FRAGMENTNAMEPART"),FacetBase:r(()=>om,"FacetBase"),Features:r(()=>Sm,"Features"),FileName:r(()=>nm,"FileName"),FioriElementsVersion:r(()=>Hg,"FioriElementsVersion"),FlexChangeLayer:r(()=>Qg,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>dm,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Wg,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>IP,"GENERICAPPSETTINGS"),LogSeverity:r(()=>Tm,"LogSeverity"),MANIFESTPATH:r(()=>bP,"MANIFESTPATH"),ManifestSection:r(()=>mm,"ManifestSection"),OdataVersion:r(()=>Gg,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>dP,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>uP,"PageType"),PageTypeV2:r(()=>of,"PageTypeV2"),PageTypeV4:r(()=>af,"PageTypeV4"),PropertyName:r(()=>sm,"PropertyName"),QUICKVARPATH:r(()=>AP,"QUICKVARPATH"),QUICKVARPATHX:r(()=>EP,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>VP,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>NP,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>cm,"SchemaKeyName"),SchemaTag:r(()=>lm,"SchemaTag"),SchemaType:r(()=>Kg,"SchemaType"),SectionType:r(()=>Xg,"SectionType"),StatePreservationMode:r(()=>um,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>pm,"TableColumnVerticalAlignment"),TemplateType:r(()=>vm,"TemplateType"),UIVOCABULARY:r(()=>SP,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>CP,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>PP,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>vP,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>TP,"VOCWITHSLASH"),ViewTemplateType:r(()=>am,"ViewTemplateType"),ViewTypes:r(()=>hm,"ViewTypes"),Visualization:r(()=>em,"Visualization"),defaultExportResult:r(()=>yP,"defaultExportResult"),logSeverityLabel:r(()=>DP,"logSeverityLabel"),v2:r(()=>Pm,"v2"),v4:r(()=>qm,"v4")});dy.exports=pP(Bg);var of=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(of||{}),af=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(af||{}),uP={...of,...af},dP=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"]]),Hg=(e=>(e.v2="v2",e.v4="v4",e))(Hg||{}),Gg=(e=>(e.v2="v2",e.v4="v4",e))(Gg||{}),Wg=(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))(Wg||{}),Qg=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Qg||{}),Kg=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Kg||{}),Jg=(e=>(e.flex="flex",e.manifest="manifest",e))(Jg||{}),qg=(e=>(e.Primary="primary",e.Secondary="secondary",e))(qg||{}),Xg=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Xg||{}),zg=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(zg||{}),Yg=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Yg||{}),Zg=(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))(Zg||{}),em=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(em||{}),tm=(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))(tm||{}),nm=(e=>(e.App="app.json",e))(nm||{}),gP="Facet ID: ",mP="Action ID: ",im=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(im||{}),yP={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},om=(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))(om||{}),hP="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",am=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(am||{}),rm=(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))(rm||{}),sm=(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))(sm||{}),lm=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(lm||{}),cm=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(cm||{}),bP="webapp/manifest.json",TP="/@com.sap.vocabularies",vP="::@com.sap.vocabularies",SP="com.sap.vocabularies.UI.v1",PP="com.sap.vocabularies.UI.v1.",CP="@com.sap.vocabularies.UI.v1.",AP="/quickVariantSelection",EP="/quickVariantSelectionX",xP="/filterSettings/dateSettings",OP=".fragment.",fm=(e=>(e.restricted="restricted",e))(fm||{}),pm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(pm||{}),um=(e=>(e.persistence="persistence",e.discovery="discovery",e))(um||{}),dm=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(dm||{}),gm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(gm||{}),mm=(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))(mm||{}),IP="sap.ui.generic.app/settings",ym=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(ym||{}),FP="sap.fe.templates.RootContainer.view.Fcl",LP="appRootView",hm=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(hm||{}),NP="sap.ui.core.mvc.View",VP="sap.ui.core.Fragment",bm=(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))(bm||{}),Tm=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Tm||{}),DP={error:"Error",warning:"Warning",info:"Information"},vm=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(vm||{}),Sm=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Sm||{}),Pm={};nf(Pm,{AvatarShape:r(()=>Gm,"AvatarShape"),ButtonType:r(()=>Cm,"ButtonType"),CardSettingsType:r(()=>xm,"CardSettingsType"),CardTemplateType:r(()=>Em,"CardTemplateType"),ChartCardType:r(()=>Am,"ChartCardType"),ChartType:r(()=>Hm,"ChartType"),ContainerLayoutType:r(()=>Jm,"ContainerLayoutType"),CreateMode:r(()=>Km,"CreateMode"),DateRangeType:r(()=>Vm,"DateRangeType"),DefaultContentView:r(()=>km,"DefaultContentView"),DefaultFilterMode:r(()=>_m,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Qm,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>$P,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>UP,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>MP,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>wP,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Dm,"FilterPathType"),HAlign:r(()=>jm,"HAlign"),LinkListFlavorType:r(()=>Nm,"LinkListFlavorType"),ListFlavorType:r(()=>Im,"ListFlavorType"),ListTypeType:r(()=>Fm,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Bm,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Om,"MeasureAggregateValues"),PopinLayout:r(()=>Mm,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>_P,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>kP,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>GP,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>HP,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>BP,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Wm,"SectionPosition"),SortOrderType:r(()=>Lm,"SortOrderType"),Strategy:r(()=>Um,"Strategy"),TableColumnExtensionTypeV2:r(()=>wm,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>$m,"TableTypeV2"),cardTemplateSettingsMap:r(()=>RP,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>jP,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Rm,"customColumnViewTypes")});var Cm=(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))(Cm||{}),Am=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Am||{}),Em=(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))(Em||{}),jP={"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"},RP={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},xm=(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))(xm||{}),Om=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Om||{}),Im=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Im||{}),Fm=(e=>(e.extended="extended",e.condensed="condensed",e))(Fm||{}),Lm=(e=>(e.ascending="ascending",e.descending="descending",e))(Lm||{}),Nm=(e=>(e.standard="standard",e.carousel="carousel",e))(Nm||{}),Vm=(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))(Vm||{}),Dm=(e=>(e.key="key",e.catgory="category",e))(Dm||{}),jm=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(jm||{}),Rm=(e=>(e.XML="XML",e))(Rm||{}),$m=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($m||{}),wm=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(wm||{}),Mm=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Mm||{}),Um=(e=>(e.extension="extension",e))(Um||{}),km=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(km||{}),_m=(e=>(e.visual="visual",e.compact="compact",e))(_m||{}),Bm=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Bm||{}),Hm=(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))(Hm||{}),Gm=(e=>(e.Circle="Circle",e.Square="Square",e))(Gm||{}),Wm=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Wm||{}),Qm=(e=>(e.XML="XML",e))(Qm||{}),Km=(e=>(e.inline="inline",e))(Km||{}),$P="sap.suite.ui.generic.template",wP="sap.suite.ui.generic.template.ObjectPage",MP="sap.suite.ui.generic.template.ListReport",UP="sap.suite.ui.generic.template.AnalyticalListPage",kP="sap.ui.viewExtensions",_P="sap.ui.controllerExtensions",BP="sap.suite.ui.generic.template.ObjectPage.view.Details",HP="sap.suite.ui.generic.template.ListReport.view.ListReport",GP="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Jm=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Jm||{}),qm={};nf(qm,{Availability:r(()=>ly,"Availability"),CloudDevAdaptationStatus:r(()=>uy,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:r(()=>oy,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Zm,"DefaultPathType"),DesigntimeValues:r(()=>ty,"DesigntimeValues"),FE_TEMPLATE_V4:r(()=>WP,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:r(()=>qP,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>QP,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>JP,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>KP,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>zP,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>cy,"HorizontalAlign"),InitialLoadType:r(()=>Ym,"InitialLoadType"),Placement:r(()=>sy,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>YP,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>XP,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>ny,"SectionLayoutType"),SectionPosition:r(()=>iy,"SectionPosition"),SectionPositionV4:r(()=>ry,"SectionPositionV4"),SelectType:r(()=>ey,"SelectType"),SelectionMode:r(()=>Xm,"SelectionMode"),TableCreationModeType:r(()=>ay,"TableCreationModeType"),TableTypeV4:r(()=>zm,"TableTypeV4"),VariantManagementTypeListReport:r(()=>py,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>fy,"VariantManagementTypeObjectPage")});var Xm=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Xm||{}),zm=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(zm||{}),Ym=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Ym||{}),Zm=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Zm||{}),ey=(e=>(e.single="single",e.multi="multi",e))(ey||{}),ty=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(ty||{}),ny=(e=>(e.Tabs="Tabs",e.Page="Page",e))(ny||{}),iy=(e=>(e.After="After",e.Before="Before",e))(iy||{}),oy=(e=>(e.XML="XML",e))(oy||{}),ay=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ay||{}),WP="sap.fe.templates",QP="sap.fe.core.fpm",KP="sap.fe.templates.ObjectPage",JP="sap.fe.templates.ListReport",qP="sap.fe.templates.AnalyticalListPage",XP="XMLFragment",ry=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ry||{}),zP="sap.f.routing.Router",YP="sap.f",sy=(e=>(e.After="After",e.Before="Before",e))(sy||{}),ly=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(ly||{}),cy=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(cy||{}),fy=(e=>(e.None="None",e.Control="Control",e))(fy||{}),py=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(py||{}),uy=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(uy||{})});var by=Re(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.Features=Ln.TemplateType=Ln.logSeverityLabel=Ln.LogSeverity=void 0;var my;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(my||(Ln.LogSeverity=my={}));Ln.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var yy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(yy||(Ln.TemplateType=yy={}));var hy;(function(e){e.BuildingBlocks="BuildingBlocks"})(hy||(Ln.Features=hy={}))});var Ky=Re((jV,Qy)=>{var rf=Object.defineProperty,ZP=Object.getOwnPropertyDescriptor,eC=Object.getOwnPropertyNames,tC=Object.prototype.hasOwnProperty,nC=r((e,t)=>{for(var n in t)rf(e,n,{get:t[n],enumerable:!0})},"G"),iC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eC(t))!tC.call(e,o)&&o!==n&&rf(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=ZP(t,o))||i.enumerable});return e},"X"),oC=r(e=>iC(rf({},"__esModule",{value:!0}),e),"H"),Ty={};nC(Ty,{AvatarShape:r(()=>_y,"AvatarShape"),ButtonType:r(()=>vy,"ButtonType"),CardSettingsType:r(()=>Cy,"CardSettingsType"),CardTemplateType:r(()=>Py,"CardTemplateType"),ChartCardType:r(()=>Sy,"ChartCardType"),ChartType:r(()=>ky,"ChartType"),ContainerLayoutType:r(()=>Wy,"ContainerLayoutType"),CreateMode:r(()=>Gy,"CreateMode"),DateRangeType:r(()=>Fy,"DateRangeType"),DefaultContentView:r(()=>wy,"DefaultContentView"),DefaultFilterMode:r(()=>My,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Hy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>sC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>fC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>cC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>lC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>Ly,"FilterPathType"),HAlign:r(()=>Ny,"HAlign"),LinkListFlavorType:r(()=>Iy,"LinkListFlavorType"),ListFlavorType:r(()=>Ey,"ListFlavorType"),ListTypeType:r(()=>xy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Uy,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Ay,"MeasureAggregateValues"),PopinLayout:r(()=>Ry,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>uC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>pC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>mC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>gC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>dC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>By,"SectionPosition"),SortOrderType:r(()=>Oy,"SortOrderType"),Strategy:r(()=>$y,"Strategy"),TableColumnExtensionTypeV2:r(()=>jy,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Dy,"TableTypeV2"),cardTemplateSettingsMap:r(()=>rC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>aC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Vy,"customColumnViewTypes")});Qy.exports=oC(Ty);var vy=(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))(vy||{}),Sy=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Sy||{}),Py=(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))(Py||{}),aC={"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"},rC={"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||{}),Ay=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Ay||{}),Ey=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Ey||{}),xy=(e=>(e.extended="extended",e.condensed="condensed",e))(xy||{}),Oy=(e=>(e.ascending="ascending",e.descending="descending",e))(Oy||{}),Iy=(e=>(e.standard="standard",e.carousel="carousel",e))(Iy||{}),Fy=(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))(Fy||{}),Ly=(e=>(e.key="key",e.catgory="category",e))(Ly||{}),Ny=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Ny||{}),Vy=(e=>(e.XML="XML",e))(Vy||{}),Dy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Dy||{}),jy=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(jy||{}),Ry=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Ry||{}),$y=(e=>(e.extension="extension",e))($y||{}),wy=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(wy||{}),My=(e=>(e.visual="visual",e.compact="compact",e))(My||{}),Uy=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Uy||{}),ky=(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))(ky||{}),_y=(e=>(e.Circle="Circle",e.Square="Square",e))(_y||{}),By=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(By||{}),Hy=(e=>(e.XML="XML",e))(Hy||{}),Gy=(e=>(e.inline="inline",e))(Gy||{}),sC="sap.suite.ui.generic.template",lC="sap.suite.ui.generic.template.ObjectPage",cC="sap.suite.ui.generic.template.ListReport",fC="sap.suite.ui.generic.template.AnalyticalListPage",pC="sap.ui.viewExtensions",uC="sap.ui.controllerExtensions",dC="sap.suite.ui.generic.template.ObjectPage.view.Details",gC="sap.suite.ui.generic.template.ListReport.view.ListReport",mC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Wy=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Wy||{})});var dh=Re(($V,uh)=>{var sf=Object.defineProperty,yC=Object.getOwnPropertyDescriptor,hC=Object.getOwnPropertyNames,bC=Object.prototype.hasOwnProperty,TC=r((e,t)=>{for(var n in t)sf(e,n,{get:t[n],enumerable:!0})},"U"),vC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hC(t))!bC.call(e,o)&&o!==n&&sf(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=yC(t,o))||i.enumerable});return e},"w"),SC=r(e=>vC(sf({},"__esModule",{value:!0}),e),"j"),Jy={};TC(Jy,{Availability:r(()=>sh,"Availability"),CloudDevAdaptationStatus:r(()=>ph,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:r(()=>ih,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Yy,"DefaultPathType"),DesigntimeValues:r(()=>eh,"DesigntimeValues"),FE_TEMPLATE_V4:r(()=>PC,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:r(()=>xC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>CC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>EC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>AC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>IC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>lh,"HorizontalAlign"),InitialLoadType:r(()=>zy,"InitialLoadType"),Placement:r(()=>rh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>FC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>OC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>th,"SectionLayoutType"),SectionPosition:r(()=>nh,"SectionPosition"),SectionPositionV4:r(()=>ah,"SectionPositionV4"),SelectType:r(()=>Zy,"SelectType"),SelectionMode:r(()=>qy,"SelectionMode"),TableCreationModeType:r(()=>oh,"TableCreationModeType"),TableTypeV4:r(()=>Xy,"TableTypeV4"),VariantManagementTypeListReport:r(()=>fh,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>ch,"VariantManagementTypeObjectPage")});uh.exports=SC(Jy);var qy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(qy||{}),Xy=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Xy||{}),zy=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(zy||{}),Yy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Yy||{}),Zy=(e=>(e.single="single",e.multi="multi",e))(Zy||{}),eh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(eh||{}),th=(e=>(e.Tabs="Tabs",e.Page="Page",e))(th||{}),nh=(e=>(e.After="After",e.Before="Before",e))(nh||{}),ih=(e=>(e.XML="XML",e))(ih||{}),oh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(oh||{}),PC="sap.fe.templates",CC="sap.fe.core.fpm",AC="sap.fe.templates.ObjectPage",EC="sap.fe.templates.ListReport",xC="sap.fe.templates.AnalyticalListPage",OC="XMLFragment",ah=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ah||{}),IC="sap.f.routing.Router",FC="sap.f",rh=(e=>(e.After="After",e.Before="Before",e))(rh||{}),sh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(sh||{}),lh=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(lh||{}),ch=(e=>(e.None="None",e.Control="Control",e))(ch||{}),fh=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(fh||{}),ph=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(ph||{})});var B=Re(Pt=>{"use strict";var gh=Pt&&Pt.__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]}),LC=Pt&&Pt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mh=Pt&&Pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gh(t,e,n)},yh=Pt&&Pt.__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"&&gh(n,t,i[o]);return LC(n,t),n}}();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.v4=Pt.v2=void 0;mh(gy(),Pt);mh(by(),Pt);Pt.v2=yh(Ky());Pt.v4=yh(dh())});var Ef=Re((nD,Lh)=>{"use strict";var qC=r(function(t){return XC(t)&&!zC(t)},"isMergeableObject");function XC(e){return!!e&&typeof e=="object"}r(XC,"isNonNullObject");function zC(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eA(e)}r(zC,"isSpecial");var YC=typeof Symbol=="function"&&Symbol.for,ZC=YC?Symbol.for("react.element"):60103;function eA(e){return e.$$typeof===ZC}r(eA,"isReactElement");function tA(e){return Array.isArray(e)?[]:{}}r(tA,"emptyTarget");function Da(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wo(tA(e),e,t):e}r(Da,"cloneUnlessOtherwiseSpecified");function nA(e,t,n){return e.concat(t).map(function(i){return Da(i,n)})}r(nA,"defaultArrayMerge");function iA(e,t){if(!t.customMerge)return wo;var n=t.customMerge(e);return typeof n=="function"?n:wo}r(iA,"getMergeFunction");function oA(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(oA,"getEnumerableOwnPropertySymbols");function Ih(e){return Object.keys(e).concat(oA(e))}r(Ih,"getKeys");function Fh(e,t){try{return t in e}catch{return!1}}r(Fh,"propertyIsOnObject");function aA(e,t){return Fh(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(aA,"propertyIsUnsafe");function rA(e,t,n){var i={};return n.isMergeableObject(e)&&Ih(e).forEach(function(o){i[o]=Da(e[o],n)}),Ih(t).forEach(function(o){aA(e,o)||(Fh(e,o)&&n.isMergeableObject(t[o])?i[o]=iA(o,n)(e[o],t[o],n):i[o]=Da(t[o],n))}),i}r(rA,"mergeObject");function wo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nA,n.isMergeableObject=n.isMergeableObject||qC,n.cloneUnlessOtherwiseSpecified=Da;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):rA(e,t,n):Da(t,n)}r(wo,"deepmerge");wo.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 wo(i,o,n)},{})},"deepmergeAll");var sA=wo;Lh.exports=sA});var Ts=Re(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.mergeAnnotations=Le.addGetByValue=Le.createIndexedFind=Le.lazy=Le.Decimal=Le.Double=Le.isComplexTypeDefinition=Le.unalias=Le.alias=Le.substringBeforeLast=Le.substringBeforeFirst=Le.splitAtLast=Le.splitAtFirst=Le.defaultReferences=Le.TermToTypes=Le.EnumIsFlag=void 0;var lA=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Le,"EnumIsFlag",{enumerable:!0,get:r(function(){return lA.EnumIsFlag},"get")});var cA=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Le,"TermToTypes",{enumerable:!0,get:r(function(){return cA.TermToTypes},"get")});var fA=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Le,"defaultReferences",{enumerable:!0,get:r(function(){return fA.VocabularyReferences},"get")});function Nh(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Nh,"splitAt");function Vh(e,t){return t<0?e:e.substring(0,t)}r(Vh,"substringAt");function bs(e,t){return Nh(e,e.indexOf(t))}r(bs,"splitAtFirst");Le.splitAtFirst=bs;function Dh(e,t){return Nh(e,e.lastIndexOf(t))}r(Dh,"splitAtLast");Le.splitAtLast=Dh;function pA(e,t){return Vh(e,e.indexOf(t))}r(pA,"substringBeforeFirst");Le.substringBeforeFirst=pA;function uA(e,t){return Vh(e,e.lastIndexOf(t))}r(uA,"substringBeforeLast");Le.substringBeforeLast=uA;function jh(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Dh(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=bs(t,"@");return`${a}@${jh(e,s)}`}else return t}r(jh,"alias");Le.alias=jh;function xf(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,l]=bs(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),f=c?s.substring(1):s,p=e.referenceMap[f];return p?c?`@${p.namespace}.${l}`:`${p.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=bs(s,"("),f=[o(l)];if(c){let p=c.slice(0,-1);f.push(`(${o(p)})`)}return a.push(f.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(xf,"unalias");Le.unalias=xf;function dA(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(dA,"isComplexTypeDefinition");Le.isComplexTypeDefinition=dA;function gA(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(gA,"Double");Le.Double=gA;function mA(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(mA,"Decimal");Le.Decimal=mA;function yA(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(yA,"lazy");Le.lazy=yA;function Rh(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 l=s[t];return n.set(l,s),l===o})},"find")}r(Rh,"createIndexedFind");Le.createIndexedFind=Rh;function hA(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Rh(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(hA,"addGetByValue");Le.addGetByValue=hA;function bA(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:l}of o){let c=(a=xf(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let f=l.map(p=>{var u;return p.term=(u=xf(e,p.term))!==null&&u!==void 0?u:p.term,p.fullyQualifiedName=p.qualifier?`${c}@${p.term}#${p.qualifier}`:`${c}@${p.term}`,p.__source=i,p}).filter(p=>!n[c].some(u=>u.term===p.term&&u.qualifier===p.qualifier));n[c].push(...f)}return n},{})}r(bA,"mergeAnnotations");Le.mergeAnnotations=bA});var qh=Re(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.convert=void 0;var vs=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Ts(),gn=Symbol("Annotation Target");function Jn(e,t){return e[e.length-1]!==t&&e.push(t),e}r(Jn,"appendObjectPath");function Jt(e,t,n,i){var o,a,s,l,c;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let f=n.split("/").reduce((u,m)=>{if(m.includes("@")){let[b,v]=(0,K.splitAtFirst)(m,"@");u.push(b),u.push(`@${v}`)}else u.push(m);return u},[]);if(t===void 0)f[0].startsWith(`${e.rawSchema.namespace}.`)&&f[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(f[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(f[0]))!==null&&s!==void 0?s:e.getConvertedAction(f[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${f[0]}()`),f.shift()):t=e.getConvertedEntityContainer();else if(t[gn]!==void 0)t=t[gn];else if(t._type==="Property"){let u=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(u))!==null&&c!==void 0?c:e.getConvertedComplexType(u)}let p=f.reduce((u,m)=>{var b,v,L,N,z;let ne=r(ie=>(u.messages.push({message:ie}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=Jn(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[ie,ce]=e.splitTerm(m),Y=(b=u.target.annotations[ie.substring(1)])===null||b===void 0?void 0:b[ce];return Y!==void 0?(u.target=Y,u):ne(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let ie;if(m==="$AnnotationPath"?ie=u.target.value:m==="$Path"&&(ie=u.target.path),ie!==void 0){let ce=Jt(e,u.target[gn],ie);return ce.objectPath.forEach(Y=>{u.objectPath.includes(Y)||(u.objectPath=Jn(u.objectPath,Y))}),u.target=ce.target,u.objectPath=Jn(u.objectPath,u.target),u}}switch((v=u.target)===null||v===void 0?void 0:v._type){case"Schema":break;case"EntityContainer":{let Y=u.target;if(m===""||e.unalias(m)===Y.fullyQualifiedName)return u;let oe=(N=(L=Y.entitySets.by_name(m))!==null&&L!==void 0?L:Y.singletons.by_name(m))!==null&&N!==void 0?N:Y.actionImports.by_name(m);if(oe)return u.target=oe,u}break;case"EntitySet":case"Singleton":{let Y=u.target;if(m===""||m==="$Type")return u.target=Y.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Se=Y.navigationPropertyBinding;return u.target=Se,u}let oe=Jt(e,Y.entityType,m);return u.target=oe.target,u.objectPath=oe.objectPath.reduce(Jn,u.objectPath),u}case"EntityType":{let Y=u.target;if(m===""||m==="$Type")return u;let oe=Y.entityProperties.by_name(m);if(oe)return u.target=oe,u;let Se=Y.navigationProperties.by_name(m);if(Se)return u.target=Se,u;let P=(0,K.substringBeforeFirst)(e.unalias(m),"("),Lt=Y.actions[P];if(Lt)return u.target=Lt,u}break;case"ActionImport":{let Y=Jt(e,u.target.action,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(Jn,u.objectPath),u}case"Action":{let Y=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&Y.isBound)return u.target=Y.parameters,u;let oe=(z=Y.parameters[m])!==null&&z!==void 0?z:Y.parameters.find(Se=>Se.name===m);if(oe)return u.target=oe,u;break}case"Property":{let oe=u.target.targetType;if(oe!==void 0){let Se=oe.properties.by_name(m);if(Se)return u.target=Se,u;let P=oe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let ie=u.target.typeReference;if(ie!==void 0){let Y=Jt(e,ie,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(Jn,u.objectPath),u}break;case"NavigationProperty":let ce=Jt(e,u.target.targetType,m);return u.target=ce.target,u.objectPath=ce.objectPath.reduce(Jn,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=Jn(u.objectPath,u.target),u}return ne(`Element '${m}' not found at ${u.target._type} '${u.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(p.messages.forEach(u=>e.logError(u.message)),!p.target)if(i){let u=kh(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):
@@ -9,24 +9,24 @@ Hint: Check and correct the path values under the following structure in the met
9
9
 
10
10
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
11
11
 
12
- <Annotation Term = `+p[0]+`>
13
- <PropertyValue Path= `+p[1]+">");return f}r(Jt,"resolveTarget");function TA(e){return e.includes("@")}r(TA,"isAnnotationPath");function $h(e,t,n,i,o){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,t.PropertyPath,o).target),a}r($h,"mapPropertyPath");function wh(e,t,n,i,o){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,a.value,o).target),a}r(wh,"mapAnnotationPath");function Mh(e,t,n,i,o){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(s,"$target",()=>Jt(e,i,t.NavigationPropertyPath,o).target),s}r(Mh,"mapNavigationPropertyPath");function vA(e,t,n,i,o){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,t.Path,o).target),a}r(vA,"mapPath");function Uh(e,t,n,i,o,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,K.Double)(a.Double);case"Decimal":return(0,K.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var p;let f=(p=e.unalias(c))!==null&&p!==void 0?p:"";return(0,K.alias)(vs.VocabularyReferences,f)});return l[0]!==void 0&&K.EnumIsFlag[(0,K.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return $h(e,a,s,t,n);case"NavigationPropertyPath":return Mh(e,a,s,t,n);case"AnnotationPath":return wh(e,a,s,t,n);case"Path":return TA(a.Path)?Jt(e,t,a.Path,n).target:vA(e,a,s,t,n);case"Record":return Op(e,n,t,i,o,a.Record,s);case"Collection":return _h(e,t,n,i,o,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}r(Uh,"parseValue");function kh(e,t,n,i){let o=K.TermToTypes[t];return i&&(t=`${(0,K.substringBeforeLast)(t,".")}.${i}`,o=K.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${o}.
12
+ <Annotation Term = `+f[0]+`>
13
+ <PropertyValue Path= `+f[1]+">");return p}r(Jt,"resolveTarget");function TA(e){return e.includes("@")}r(TA,"isAnnotationPath");function $h(e,t,n,i,o){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,t.PropertyPath,o).target),a}r($h,"mapPropertyPath");function wh(e,t,n,i,o){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,a.value,o).target),a}r(wh,"mapAnnotationPath");function Mh(e,t,n,i,o){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[gn]:i};return(0,K.lazy)(s,"$target",()=>Jt(e,i,t.NavigationPropertyPath,o).target),s}r(Mh,"mapNavigationPropertyPath");function vA(e,t,n,i,o){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[gn]:i};return(0,K.lazy)(a,"$target",()=>Jt(e,i,t.Path,o).target),a}r(vA,"mapPath");function Uh(e,t,n,i,o,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,K.Double)(a.Double);case"Decimal":return(0,K.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var f;let p=(f=e.unalias(c))!==null&&f!==void 0?f:"";return(0,K.alias)(vs.VocabularyReferences,p)});return l[0]!==void 0&&K.EnumIsFlag[(0,K.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return $h(e,a,s,t,n);case"NavigationPropertyPath":return Mh(e,a,s,t,n);case"AnnotationPath":return wh(e,a,s,t,n);case"Path":return TA(a.Path)?Jt(e,t,a.Path,n).target:vA(e,a,s,t,n);case"Record":return Ff(e,n,t,i,o,a.Record,s);case"Collection":return _h(e,t,n,i,o,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}r(Uh,"parseValue");function kh(e,t,n,i){let o=K.TermToTypes[t];return i&&(t=`${(0,K.substringBeforeLast)(t,".")}.${i}`,o=K.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${o}.
14
14
  Hint: If possible, try to maintain the Type property for each Record.
15
15
  <Annotations Target="${n}">
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),o}r(kh,"inferTypeFromTerm");function SA(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(SA,"isDataFieldWithForAction");function PA(e,t,n,i,o){let a;return!o.type&&t?a=kh(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(PA,"parseRecordType");function Op(e,t,n,i,o,a,s){let l={$Type:PA(e,t,n,i,a),fullyQualifiedName:s,[gn]:n,__source:o};for(let c of a.propertyValues)(0,K.lazy)(l,c.name,()=>Uh(e,n,t,c.name,o,c.value,`${s}/${c.name}`));return(0,K.lazy)(l,"annotations",Hh(e,a,l)),SA(l)&&(0,K.lazy)(l,"ActionTarget",()=>{var c,p;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.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(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),u}),l}r(Op,"parseRecord");function CA(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(CA,"getOrInferCollectionType");function _h(e,t,n,i,o,a,s){switch(CA(a)){case"PropertyPath":return a.map((c,p)=>$h(e,c,`${s}/${p}`,t,n));case"Path":return a.map(c=>Jt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,p)=>wh(e,c,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((c,p)=>Mh(e,c,`${s}/${p}`,t,n));case"Record":return a.map((c,p)=>Op(e,n,t,i,o,c,`${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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(_h,"parseCollection");function AA(e){return!!e.targetTypeName}r(AA,"isV4NavigationProperty");function EA(e,t,n){var i;let o;if(n.record)o=Op(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=Uh(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=_h(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[gn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,vs.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Hh(e,n,o))}catch{}return o}r(EA,"convertAnnotation");var Fp=class Fp{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,Gh)}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)(vs.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(Fp,"Converter");var xp=Fp;function Da(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(Da,"resolveEntityType");function Bh(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(Bh,"resolveNavigationPropertyBindings");function qn(e,t){let n=t.annotations;return()=>Ss(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(qn,"resolveAnnotations");function Hh(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[gn]=n[gn],a.fullyQualifiedName=`${i}@${a.term}`}),Ss(e,n,o??[])}}r(Hh,"resolveAnnotationsOnAnnotation");function Ss(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),l=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,K.lazy)(i[a],l,()=>e.getConvertedElement(o.fullyQualifiedName,o,(c,p)=>EA(c,t,p))),i},{})}r(Ss,"createAnnotationsObject");function Gh(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Qh)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Wh)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Jh)),n}r(Gh,"convertEntityContainer");function Wh(e,t){let n=t;(0,K.lazy)(n,"entityType",Da(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",qn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Bh(e,i)),n}r(Wh,"convertSingleton");function Qh(e,t){let n=t;(0,K.lazy)(n,"entityType",Da(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",qn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Bh(e,i)),n}r(Qh,"convertEntitySet");function xA(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",qn(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,Ip)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,Ip)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Kh)),(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=Jt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(xA,"convertEntityType");function Ip(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(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(Ip,"convertProperty");function Kh(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!AA(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.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",Da(e,t.targetTypeName)),(0,K.lazy)(a,"annotations",qn(e,t)),a}r(Kh,"convertNavigationProperty");function Jh(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(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(Jh,"convertActionImport");function IA(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",Da(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",Da(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,OA)),(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 l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ss(e,t,a)}),n}r(IA,"convertAction");function OA(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 l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ss(e,t,a)}),n}r(OA,"convertActionParameter");function FA(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,Ip)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Kh)),(0,K.lazy)(n,"annotations",qn(e,t)),n}r(FA,"convertComplexType");function LA(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(e,t)),n}r(LA,"convertTypeDefinition");function VA(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vs.VocabularyReferences,diagnostics:[]},n=new xp(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Gh)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Qh)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Wh)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,xA)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,IA)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,FA)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Jh)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,LA)),t.resolvePath=r(function(o){let a=Jt(n,void 0,o);return a.target&&Jn(a.objectPath,a.target),a},"resolvePath"),t}r(VA,"convert");Ps.convert=VA});var Zh=Re(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.revertTermToGenericType=void 0;var NA=Ts();function DA(e,t){var n,i,o,a,s,l,c;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(f=>Cs(e,f))};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()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.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:Cs(e,t)});return p}r(DA,"revertObjectToRawType");function Xh(e,t){let n;switch(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=DA(e,t);break}return n}r(Xh,"revertValueToRawType");var jA=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function zh(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=Yh(e,t[i][o]);if(!a.term){let s=(0,NA.unalias)(e,`${i}.${o}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}r(zh,"revertAnnotationsToRawType");function Cs(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(jA.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:Xh(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],zh(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}}}r(Cs,"revertCollectionItemToRawType");function Yh(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=[],zh(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Cs(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Cs(e,t)}:{...n,value:Xh(e,t)}}r(Yh,"revertTermToGenericType");As.revertTermToGenericType=Yh});var eb=Re(Xn=>{"use strict";var RA=Xn&&Xn.__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]}),Lp=Xn&&Xn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&RA(t,e,n)};Object.defineProperty(Xn,"__esModule",{value:!0});Lp(qh(),Xn);Lp(Ts(),Xn);Lp(Zh(),Xn)});var Rp=Re(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.MergedRawMetadata=ui.RawMetadataInstance=ui.ensureArray=void 0;function $A(e){return e==null?[]:Array.isArray(e)?e:[e]}r($A,"ensureArray");ui.ensureArray=$A;var Dp=class Dp{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(Dp,"RawMetadataInstance");var Vp=Dp;ui.RawMetadataInstance=Vp;var jp=class jp{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(jp,"MergedRawMetadata");var Np=jp;ui.MergedRawMetadata=Np});var tb=Re(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.merge=void 0;var wA=Rp();function MA(...e){let t=new wA.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(MA,"merge");Es.merge=MA});var nb=Re(xs=>{(function(e){e.parser=function(h,y){return new n(h,y)},e.SAXParser=n,e.SAXStream=p,e.createStream=c,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(v)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!h),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),Yt(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,C=0,Te=t.length;C<Te;C++){var Ye=h[t[C]].length;if(Ye>y)switch(t[C]){case"textNode":fi(h);break;case"cdata":Me(h,"oncdata",h.cdata),h.cdata="";break;case"script":Me(h,"onscript",h.script),h.script="";break;default:$t(h,"Max buffer length exceeded: "+t[C])}D=Math.max(D,Ye)}var Ge=e.MAX_BUFFER_LENGTH-D;h.bufferCheckPosition=Ge+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){fi(h),h.cdata!==""&&(Me(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Me(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){Zt(this)},"end"),write:qe,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 l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,y){return new p(h,y)}r(c,"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(C){D.emit("error",C),D._parser.error=null},this._decoder=null,l.forEach(function(C){Object.defineProperty(D,"on"+C,{get:r(function(){return D._parser["on"+C]},"get"),set:r(function(Te){if(!Te)return D.removeAllListeners(C),D._parser["on"+C]=Te,Te;D.on(C,Te)},"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]&&l.indexOf(h)!==-1&&(D._parser["on"+h]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,h),D.emit.apply(D,C)}),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/",v={xml:m,xmlns:b},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]/,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-]/,z=/[#:_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 ie(h){return h===" "||h===`
20
- `||h==="\r"||h===" "}r(ie,"isWhitespace");function ce(h){return h==='"'||h==="'"}r(ce,"isQuote");function Y(h){return h===">"||ie(h)}r(Y,"isAttribEnd");function oe(h,y){return h.test(y)}r(oe,"isMatch");function Se(h,y){return!oe(h,y)}r(Se,"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(h){var y=e.ENTITIES[h],D=typeof y=="number"?String.fromCharCode(y):y;e.ENTITIES[h]=D});for(var Lt in e.STATE)e.STATE[e.STATE[Lt]]=Lt;P=e.STATE;function Yt(h,y,D){h[y]&&h[y](D)}r(Yt,"emit");function Me(h,y,D){h.textNode&&fi(h),Yt(h,y,D)}r(Me,"emitNode");function fi(h){h.textNode=Fo(h.opt,h.textNode),h.textNode&&Yt(h,"ontext",h.textNode),h.textNode=""}r(fi,"closeText");function Fo(h,y){return h.trim&&(y=y.trim()),h.normalize&&(y=y.replace(/\s+/g," ")),y}r(Fo,"textopts");function $t(h,y){return fi(h),h.trackPosition&&(y+=`
19
+ </Annotations>`),o}r(kh,"inferTypeFromTerm");function SA(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(SA,"isDataFieldWithForAction");function PA(e,t,n,i,o){let a;return!o.type&&t?a=kh(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(PA,"parseRecordType");function Ff(e,t,n,i,o,a,s){let l={$Type:PA(e,t,n,i,a),fullyQualifiedName:s,[gn]:n,__source:o};for(let c of a.propertyValues)(0,K.lazy)(l,c.name,()=>Uh(e,n,t,c.name,o,c.value,`${s}/${c.name}`));return(0,K.lazy)(l,"annotations",Hh(e,a,l)),SA(l)&&(0,K.lazy)(l,"ActionTarget",()=>{var c,f;let p=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),u=n.actions[p];return u||(u=(f=e.getConvertedActionImport(p))===null||f===void 0?void 0:f.action),u||(u=e.getConvertedAction(p),u!=null&&u.isBound||(u=void 0)),u||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${p}')`),u}),l}r(Ff,"parseRecord");function CA(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(CA,"getOrInferCollectionType");function _h(e,t,n,i,o,a,s){switch(CA(a)){case"PropertyPath":return a.map((c,f)=>$h(e,c,`${s}/${f}`,t,n));case"Path":return a.map(c=>Jt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,f)=>wh(e,c,`${s}/${f}`,t,n));case"NavigationPropertyPath":return a.map((c,f)=>Mh(e,c,`${s}/${f}`,t,n));case"Record":return a.map((c,f)=>Ff(e,n,t,i,o,c,`${s}/${f}`));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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(_h,"parseCollection");function AA(e){return!!e.targetTypeName}r(AA,"isV4NavigationProperty");function EA(e,t,n){var i;let o;if(n.record)o=Ff(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=Uh(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=_h(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[gn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,vs.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Hh(e,n,o))}catch{}return o}r(EA,"convertAnnotation");var Lf=class Lf{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,Gh)}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)(vs.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(Lf,"Converter");var Of=Lf;function ja(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(ja,"resolveEntityType");function Bh(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(Bh,"resolveNavigationPropertyBindings");function qn(e,t){let n=t.annotations;return()=>Ss(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(qn,"resolveAnnotations");function Hh(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[gn]=n[gn],a.fullyQualifiedName=`${i}@${a.term}`}),Ss(e,n,o??[])}}r(Hh,"resolveAnnotationsOnAnnotation");function Ss(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),l=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,K.lazy)(i[a],l,()=>e.getConvertedElement(o.fullyQualifiedName,o,(c,f)=>EA(c,t,f))),i},{})}r(Ss,"createAnnotationsObject");function Gh(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Qh)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Wh)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Jh)),n}r(Gh,"convertEntityContainer");function Wh(e,t){let n=t;(0,K.lazy)(n,"entityType",ja(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",qn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Bh(e,i)),n}r(Wh,"convertSingleton");function Qh(e,t){let n=t;(0,K.lazy)(n,"entityType",ja(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",qn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",Bh(e,i)),n}r(Qh,"convertEntitySet");function xA(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",qn(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,If)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,If)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Kh)),(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=Jt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(xA,"convertEntityType");function If(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(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(If,"convertProperty");function Kh(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!AA(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.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",ja(e,t.targetTypeName)),(0,K.lazy)(a,"annotations",qn(e,t)),a}r(Kh,"convertNavigationProperty");function Jh(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(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(Jh,"convertActionImport");function OA(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",ja(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",ja(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,IA)),(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 l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ss(e,t,a)}),n}r(OA,"convertAction");function IA(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 l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ss(e,t,a)}),n}r(IA,"convertActionParameter");function FA(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,If)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Kh)),(0,K.lazy)(n,"annotations",qn(e,t)),n}r(FA,"convertComplexType");function LA(e,t){let n=t;return(0,K.lazy)(n,"annotations",qn(e,t)),n}r(LA,"convertTypeDefinition");function NA(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vs.VocabularyReferences,diagnostics:[]},n=new Of(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Gh)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Qh)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Wh)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,xA)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,OA)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,FA)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Jh)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,LA)),t.resolvePath=r(function(o){let a=Jt(n,void 0,o);return a.target&&Jn(a.objectPath,a.target),a},"resolvePath"),t}r(NA,"convert");Ps.convert=NA});var Zh=Re(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.revertTermToGenericType=void 0;var VA=Ts();function DA(e,t){var n,i,o,a,s,l,c;let f;if(Array.isArray(t))f={type:"Collection",Collection:t.map(p=>Cs(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))f={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))f={type:"Double",Double:t.valueOf()};else if(!((o=t.isString)===null||o===void 0)&&o.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(u=>u.alias===p[0])?f={type:"EnumMember",EnumMember:t.valueOf()}:f={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?f={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?f={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?f={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.call(t)?f={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?f={type:"Path",Path:t.path}:t.type==="AnnotationPath"?f={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?f={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?f={type:"Null"}:t.type==="PropertyPath"?f={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?f={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(f={type:"Record",Record:Cs(e,t)});return f}r(DA,"revertObjectToRawType");function Xh(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=DA(e,t);break}return n}r(Xh,"revertValueToRawType");var jA=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function zh(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=Yh(e,t[i][o]);if(!a.term){let s=(0,VA.unalias)(e,`${i}.${o}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}r(zh,"revertAnnotationsToRawType");function Cs(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(jA.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:Xh(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],zh(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(Cs,"revertCollectionItemToRawType");function Yh(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=[],zh(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Cs(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Cs(e,t)}:{...n,value:Xh(e,t)}}r(Yh,"revertTermToGenericType");As.revertTermToGenericType=Yh});var eb=Re(Xn=>{"use strict";var RA=Xn&&Xn.__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]}),Nf=Xn&&Xn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&RA(t,e,n)};Object.defineProperty(Xn,"__esModule",{value:!0});Nf(qh(),Xn);Nf(Ts(),Xn);Nf(Zh(),Xn)});var $f=Re(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.MergedRawMetadata=ui.RawMetadataInstance=ui.ensureArray=void 0;function $A(e){return e==null?[]:Array.isArray(e)?e:[e]}r($A,"ensureArray");ui.ensureArray=$A;var jf=class jf{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(jf,"RawMetadataInstance");var Vf=jf;ui.RawMetadataInstance=Vf;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 Df=Rf;ui.MergedRawMetadata=Df});var tb=Re(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.merge=void 0;var wA=$f();function MA(...e){let t=new wA.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(MA,"merge");Es.merge=MA});var nb=Re(xs=>{(function(e){e.parser=function(h,y){return new n(h,y)},e.SAXParser=n,e.SAXStream=f,e.createStream=c,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(v)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!h),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),Yt(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,C=0,Te=t.length;C<Te;C++){var Ye=h[t[C]].length;if(Ye>y)switch(t[C]){case"textNode":pi(h);break;case"cdata":Me(h,"oncdata",h.cdata),h.cdata="";break;case"script":Me(h,"onscript",h.script),h.script="";break;default:$t(h,"Max buffer length exceeded: "+t[C])}D=Math.max(D,Ye)}var Ge=e.MAX_BUFFER_LENGTH-D;h.bufferCheckPosition=Ge+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){pi(h),h.cdata!==""&&(Me(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Me(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){Zt(this)},"end"),write:qe,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 l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,y){return new f(h,y)}r(c,"createStream");function f(h,y){if(!(this instanceof f))return new f(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(C){D.emit("error",C),D._parser.error=null},this._decoder=null,l.forEach(function(C){Object.defineProperty(D,"on"+C,{get:r(function(){return D._parser["on"+C]},"get"),set:r(function(Te){if(!Te)return D.removeAllListeners(C),D._parser["on"+C]=Te,Te;D.on(C,Te)},"set"),enumerable:!0,configurable:!1})})}r(f,"SAXStream"),f.prototype=Object.create(s.prototype,{constructor:{value:f}}),f.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},f.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},f.prototype.on=function(h,y){var D=this;return!D._parser["on"+h]&&l.indexOf(h)!==-1&&(D._parser["on"+h]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,h),D.emit.apply(D,C)}),s.prototype.on.call(D,h,y)};var p="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",v={xml:m,xmlns:b},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]/,N=/[:_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-]/,z=/[#:_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 ie(h){return h===" "||h===`
20
+ `||h==="\r"||h===" "}r(ie,"isWhitespace");function ce(h){return h==='"'||h==="'"}r(ce,"isQuote");function Y(h){return h===">"||ie(h)}r(Y,"isAttribEnd");function oe(h,y){return h.test(y)}r(oe,"isMatch");function Se(h,y){return!oe(h,y)}r(Se,"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(h){var y=e.ENTITIES[h],D=typeof y=="number"?String.fromCharCode(y):y;e.ENTITIES[h]=D});for(var Lt in e.STATE)e.STATE[e.STATE[Lt]]=Lt;P=e.STATE;function Yt(h,y,D){h[y]&&h[y](D)}r(Yt,"emit");function Me(h,y,D){h.textNode&&pi(h),Yt(h,y,D)}r(Me,"emitNode");function pi(h){h.textNode=Fo(h.opt,h.textNode),h.textNode&&Yt(h,"ontext",h.textNode),h.textNode=""}r(pi,"closeText");function Fo(h,y){return h.trim&&(y=y.trim()),h.normalize&&(y=y.replace(/\s+/g," ")),y}r(Fo,"textopts");function $t(h,y){return pi(h),h.trackPosition&&(y+=`
21
21
  Line: `+h.line+`
22
22
  Column: `+h.column+`
23
- Char: `+h.c),y=new Error(y),h.error=y,Yt(h,"onerror",y),h}r($t,"error");function Zt(h){return h.sawRoot&&!h.closedRoot&&Ie(h,"Unclosed root tag"),h.state!==P.BEGIN&&h.state!==P.BEGIN_WHITESPACE&&h.state!==P.TEXT&&$t(h,"Unexpected end"),fi(h),h.c="",h.closed=!0,Yt(h,"onend"),n.call(h,h.strict,h.opt),h}r(Zt,"end");function Ie(h,y){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&$t(h,y)}r(Ie,"strictFail");function ki(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var y=h.tags[h.tags.length-1]||h,D=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(D.ns=y.ns),h.attribList.length=0,Me(h,"onopentagstart",D)}r(ki,"newTag");function at(h,y){var D=h.indexOf(":"),C=D<0?["",h]:h.split(":"),Te=C[0],Ye=C[1];return y&&h==="xmlns"&&(Te="xmlns",Ye=""),{prefix:Te,local:Ye}}r(at,"qname");function wt(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var y=at(h.attribName,!0),D=y.prefix,C=y.local;if(D==="xmlns")if(C==="xml"&&h.attribValue!==m)Ie(h,"xml: prefix must be bound to "+m+`
24
- Actual: `+h.attribValue);else if(C==="xmlns"&&h.attribValue!==b)Ie(h,"xmlns: prefix must be bound to "+b+`
25
- Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns===Ye.ns&&(Te.ns=Object.create(Ye.ns)),Te.ns[C]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Me(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r(wt,"attrib");function vt(h,y){if(h.opt.xmlns){var D=h.tag,C=at(h.tagName);D.prefix=C.prefix,D.local=C.local,D.uri=D.ns[C.prefix]||"",D.prefix&&!D.uri&&(Ie(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),D.uri=C.prefix);var Te=h.tags[h.tags.length-1]||h;D.ns&&Te.ns!==D.ns&&Object.keys(D.ns).forEach(function(Vo){Me(h,"onopennamespace",{prefix:Vo,uri:D.ns[Vo]})});for(var Ye=0,Ge=h.attribList.length;Ye<Ge;Ye++){var yt=h.attribList[Ye],St=yt[0],Fn=yt[1],rt=at(St,!0),en=rt.prefix,ls=rt.local,xa=en===""?"":D.ns[en]||"",Lo={name:St,value:Fn,prefix:en,local:ls,uri:xa};en&&en!=="xmlns"&&!xa&&(Ie(h,"Unbound namespace prefix: "+JSON.stringify(en)),Lo.uri=en),h.tag.attributes[St]=Lo,Me(h,"onattribute",Lo)}h.attribList.length=0}h.tag.isSelfClosing=!!y,h.sawRoot=!0,h.tags.push(h.tag),Me(h,"onopentag",h.tag),y||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=P.SCRIPT:h.state=P.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}r(vt,"openTag");function Qn(h){if(!h.tagName){Ie(h,"Weird empty close tag."),h.textNode+="</>",h.state=P.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=P.SCRIPT;return}Me(h,"onscript",h.script),h.script=""}var y=h.tags.length,D=h.tagName;h.strict||(D=D[h.looseCase]());for(var C=D;y--;){var Te=h.tags[y];if(Te.name!==C)Ie(h,"Unexpected close tag");else break}if(y<0){Ie(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=P.TEXT;return}h.tagName=D;for(var Ye=h.tags.length;Ye-- >y;){var Ge=h.tag=h.tags.pop();h.tagName=h.tag.name,Me(h,"onclosetag",h.tagName);var yt={};for(var St in Ge.ns)yt[St]=Ge.ns[St];var Fn=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Ge.ns!==Fn.ns&&Object.keys(Ge.ns).forEach(function(rt){var en=Ge.ns[rt];Me(h,"onclosenamespace",{prefix:rt,uri:en})})}y===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=P.TEXT}r(Qn,"closeTag");function pe(h){var y=h.entity,D=y.toLowerCase(),C,Te="";return h.ENTITIES[y]?h.ENTITIES[y]:h.ENTITIES[D]?h.ENTITIES[D]:(y=D,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),C=parseInt(y,16),Te=C.toString(16)):(y=y.slice(1),C=parseInt(y,10),Te=C.toString(10))),y=y.replace(/^0+/,""),isNaN(C)||Te.toLowerCase()!==y?(Ie(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(C))}r(pe,"parseEntity");function Kn(h,y){y==="<"?(h.state=P.OPEN_WAKA,h.startTagPosition=h.position):ie(y)||(Ie(h,"Non-whitespace before first tag."),h.textNode=y,h.state=P.TEXT)}r(Kn,"beginWhiteSpace");function ss(h,y){var D="";return y<h.length&&(D=h.charAt(y)),D}r(ss,"charAt");function qe(h){var y=this;if(this.error)throw this.error;if(y.closed)return $t(y,"Cannot write after close. Assign an onready handler.");if(h===null)return Zt(y);typeof h=="object"&&(h=h.toString());for(var D=0,C="";C=ss(h,D++),y.c=C,!!C;)switch(y.trackPosition&&(y.position++,C===`
23
+ Char: `+h.c),y=new Error(y),h.error=y,Yt(h,"onerror",y),h}r($t,"error");function Zt(h){return h.sawRoot&&!h.closedRoot&&Oe(h,"Unclosed root tag"),h.state!==P.BEGIN&&h.state!==P.BEGIN_WHITESPACE&&h.state!==P.TEXT&&$t(h,"Unexpected end"),pi(h),h.c="",h.closed=!0,Yt(h,"onend"),n.call(h,h.strict,h.opt),h}r(Zt,"end");function Oe(h,y){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&$t(h,y)}r(Oe,"strictFail");function ki(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var y=h.tags[h.tags.length-1]||h,D=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(D.ns=y.ns),h.attribList.length=0,Me(h,"onopentagstart",D)}r(ki,"newTag");function at(h,y){var D=h.indexOf(":"),C=D<0?["",h]:h.split(":"),Te=C[0],Ye=C[1];return y&&h==="xmlns"&&(Te="xmlns",Ye=""),{prefix:Te,local:Ye}}r(at,"qname");function wt(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var y=at(h.attribName,!0),D=y.prefix,C=y.local;if(D==="xmlns")if(C==="xml"&&h.attribValue!==m)Oe(h,"xml: prefix must be bound to "+m+`
24
+ Actual: `+h.attribValue);else if(C==="xmlns"&&h.attribValue!==b)Oe(h,"xmlns: prefix must be bound to "+b+`
25
+ Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns===Ye.ns&&(Te.ns=Object.create(Ye.ns)),Te.ns[C]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Me(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r(wt,"attrib");function vt(h,y){if(h.opt.xmlns){var D=h.tag,C=at(h.tagName);D.prefix=C.prefix,D.local=C.local,D.uri=D.ns[C.prefix]||"",D.prefix&&!D.uri&&(Oe(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),D.uri=C.prefix);var Te=h.tags[h.tags.length-1]||h;D.ns&&Te.ns!==D.ns&&Object.keys(D.ns).forEach(function(No){Me(h,"onopennamespace",{prefix:No,uri:D.ns[No]})});for(var Ye=0,Ge=h.attribList.length;Ye<Ge;Ye++){var yt=h.attribList[Ye],St=yt[0],Fn=yt[1],rt=at(St,!0),en=rt.prefix,ls=rt.local,Oa=en===""?"":D.ns[en]||"",Lo={name:St,value:Fn,prefix:en,local:ls,uri:Oa};en&&en!=="xmlns"&&!Oa&&(Oe(h,"Unbound namespace prefix: "+JSON.stringify(en)),Lo.uri=en),h.tag.attributes[St]=Lo,Me(h,"onattribute",Lo)}h.attribList.length=0}h.tag.isSelfClosing=!!y,h.sawRoot=!0,h.tags.push(h.tag),Me(h,"onopentag",h.tag),y||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=P.SCRIPT:h.state=P.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}r(vt,"openTag");function Qn(h){if(!h.tagName){Oe(h,"Weird empty close tag."),h.textNode+="</>",h.state=P.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=P.SCRIPT;return}Me(h,"onscript",h.script),h.script=""}var y=h.tags.length,D=h.tagName;h.strict||(D=D[h.looseCase]());for(var C=D;y--;){var Te=h.tags[y];if(Te.name!==C)Oe(h,"Unexpected close tag");else break}if(y<0){Oe(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=P.TEXT;return}h.tagName=D;for(var Ye=h.tags.length;Ye-- >y;){var Ge=h.tag=h.tags.pop();h.tagName=h.tag.name,Me(h,"onclosetag",h.tagName);var yt={};for(var St in Ge.ns)yt[St]=Ge.ns[St];var Fn=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Ge.ns!==Fn.ns&&Object.keys(Ge.ns).forEach(function(rt){var en=Ge.ns[rt];Me(h,"onclosenamespace",{prefix:rt,uri:en})})}y===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=P.TEXT}r(Qn,"closeTag");function fe(h){var y=h.entity,D=y.toLowerCase(),C,Te="";return h.ENTITIES[y]?h.ENTITIES[y]:h.ENTITIES[D]?h.ENTITIES[D]:(y=D,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),C=parseInt(y,16),Te=C.toString(16)):(y=y.slice(1),C=parseInt(y,10),Te=C.toString(10))),y=y.replace(/^0+/,""),isNaN(C)||Te.toLowerCase()!==y?(Oe(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(C))}r(fe,"parseEntity");function Kn(h,y){y==="<"?(h.state=P.OPEN_WAKA,h.startTagPosition=h.position):ie(y)||(Oe(h,"Non-whitespace before first tag."),h.textNode=y,h.state=P.TEXT)}r(Kn,"beginWhiteSpace");function ss(h,y){var D="";return y<h.length&&(D=h.charAt(y)),D}r(ss,"charAt");function qe(h){var y=this;if(this.error)throw this.error;if(y.closed)return $t(y,"Cannot write after close. Assign an onready handler.");if(h===null)return Zt(y);typeof h=="object"&&(h=h.toString());for(var D=0,C="";C=ss(h,D++),y.c=C,!!C;)switch(y.trackPosition&&(y.position++,C===`
26
26
  `?(y.line++,y.column=0):y.column++),y.state){case P.BEGIN:if(y.state=P.BEGIN_WHITESPACE,C==="\uFEFF")continue;Kn(y,C);continue;case P.BEGIN_WHITESPACE:Kn(y,C);continue;case P.TEXT:if(y.sawRoot&&!y.closedRoot){for(var Te=D-1;C&&C!=="<"&&C!=="&";)C=ss(h,D++),C&&y.trackPosition&&(y.position++,C===`
27
- `?(y.line++,y.column=0):y.column++);y.textNode+=h.substring(Te,D-1)}C==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!ie(C)&&(!y.sawRoot||y.closedRoot)&&Ie(y,"Text data outside of root node."),C==="&"?y.state=P.TEXT_ENTITY:y.textNode+=C);continue;case P.SCRIPT:C==="<"?y.state=P.SCRIPT_ENDING:y.script+=C;continue;case P.SCRIPT_ENDING:C==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+C,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(C==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!ie(C))if(oe(L,C))y.state=P.OPEN_TAG,y.tagName=C;else if(C==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(C==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(Ie(y,"Unencoded <"),y.startTagPosition+1<y.position){var Ye=y.position-y.startTagPosition;C=new Array(Ye).join(" ")+C}y.textNode+="<"+C,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+C==="--"){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+C,y.sgmlDecl=""):(y.sgmlDecl+C).toUpperCase()===f?(Me(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+C).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&Ie(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):C===">"?(Me(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(ce(C)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=C);continue;case P.SGML_DECL_QUOTED:C===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=C;continue;case P.DOCTYPE:C===">"?(y.state=P.TEXT,Me(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=C,C==="["?y.state=P.DOCTYPE_DTD:ce(C)&&(y.state=P.DOCTYPE_QUOTED,y.q=C));continue;case P.DOCTYPE_QUOTED:y.doctype+=C,C===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:C==="]"?(y.doctype+=C,y.state=P.DOCTYPE):C==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):ce(C)?(y.doctype+=C,y.state=P.DOCTYPE_DTD_QUOTED,y.q=C):y.doctype+=C;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=C,C===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:C==="-"?y.state=P.COMMENT_ENDING:y.comment+=C;continue;case P.COMMENT_ENDING:C==="-"?(y.state=P.COMMENT_ENDED,y.comment=Fo(y.opt,y.comment),y.comment&&Me(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+C,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:C!==">"?(Ie(y,"Malformed comment"),y.comment+="--"+C,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:C==="]"?y.state=P.CDATA_ENDING:y.cdata+=C;continue;case P.CDATA_ENDING:C==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+C,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:C===">"?(y.cdata&&Me(y,"oncdata",y.cdata),Me(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):C==="]"?y.cdata+="]":(y.cdata+="]]"+C,y.state=P.CDATA);continue;case P.PROC_INST:C==="?"?y.state=P.PROC_INST_ENDING:ie(C)?y.state=P.PROC_INST_BODY:y.procInstName+=C;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&ie(C))continue;C==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=C;continue;case P.PROC_INST_ENDING:C===">"?(Me(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+C,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:oe(V,C)?y.tagName+=C:(ki(y),C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:(ie(C)||Ie(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:C===">"?(vt(y,!0),Qn(y)):(Ie(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(ie(C))continue;C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,C)?(y.attribName=C,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:C==="="?y.state=P.ATTRIB_VALUE:C===">"?(Ie(y,"Attribute without value"),y.attribValue=y.attribName,wt(y),vt(y)):ie(C)?y.state=P.ATTRIB_NAME_SAW_WHITE:oe(V,C)?y.attribName+=C:Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(C==="=")y.state=P.ATTRIB_VALUE;else{if(ie(C))continue;Ie(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",Me(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",C===">"?vt(y):oe(L,C)?(y.attribName=C,y.state=P.ATTRIB_NAME):(Ie(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(ie(C))continue;ce(C)?(y.q=C,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||$t(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=C);continue;case P.ATTRIB_VALUE_QUOTED:if(C!==y.q){C==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=C;continue}wt(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:ie(C)?y.state=P.ATTRIB:C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,C)?(Ie(y,"No whitespace between attributes"),y.attribName=C,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!Y(C)){C==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=C;continue}wt(y),C===">"?vt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)C===">"?Qn(y):oe(V,C)?y.tagName+=C:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(ie(C)||Ie(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(ie(C))continue;Se(L,C)?y.script?(y.script+="</"+C,y.state=P.SCRIPT):Ie(y,"Invalid tagname in closing tag."):y.tagName=C}continue;case P.CLOSE_TAG_SAW_WHITE:if(ie(C))continue;C===">"?Qn(y):Ie(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var Ge,yt;switch(y.state){case P.TEXT_ENTITY:Ge=P.TEXT,yt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:Ge=P.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:Ge=P.ATTRIB_VALUE_UNQUOTED,yt="attribValue";break}if(C===";"){var St=pe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(St)?(y.entity="",y.state=Ge,y.write(St)):(y[yt]+=St,y.entity="",y.state=Ge)}else oe(y.entity.length?ne:z,C)?y.entity+=C:(Ie(y,"Invalid character in entity name"),y[yt]+="&"+y.entity+C,y.entity="",y.state=Ge);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(qe,"write");String.fromCodePoint||function(){var h=String.fromCharCode,y=Math.floor,D=r(function(){var C=16384,Te=[],Ye,Ge,yt=-1,St=arguments.length;if(!St)return"";for(var Fn="";++yt<St;){var rt=Number(arguments[yt]);if(!isFinite(rt)||rt<0||rt>1114111||y(rt)!==rt)throw RangeError("Invalid code point: "+rt);rt<=65535?Te.push(rt):(rt-=65536,Ye=(rt>>10)+55296,Ge=rt%1024+56320,Te.push(Ye,Ge)),(yt+1===St||Te.length>C)&&(Fn+=h.apply(null,Te),Te.length=0)}return Fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D}()})(typeof xs>"u"?xs.sax={}:xs)});var Is=Re((bD,ib)=>{ib.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Os=Re((vD,ob)=>{var UA=Is().isArray;ob.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"&&!UA(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 wp=Re((PD,ub)=>{var kA=nb(),_A={on:r(function(){},"on"),parse:r(function(){},"parse")},ve=Os(),Mo=Is().isArray,I,$p=!0,ue;function BA(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(BA,"validateOptions");function pb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(pb,"nativeType");function ja(e,t){var n;if(I.compact){if(!ue[I[e+"Key"]]&&(Mo(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(ue[I[e+"Key"]]=[]),ue[I[e+"Key"]]&&!Mo(ue[I[e+"Key"]])&&(ue[I[e+"Key"]]=[ue[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,ue)),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,ue);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,ue)]=i}}Mo(ue[I[e+"Key"]])?ue[I[e+"Key"]].push(t):ue[I[e+"Key"]]=t}else{ue[I.elementsKey]||(ue[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,ue):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,ue))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,ue)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,ue)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=ue),ue[I.elementsKey].push(o)}}r(ja,"addField");function fb(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,ue)),(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]=pb(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,ue)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],ue)]=n}}return e}r(fb,"manipulateAttributes");function HA(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=fb(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;ue[I.declarationKey]={},Object.keys(t).length&&(ue[I.declarationKey][I.attributesKey]=t),I.addParent&&(ue[I.declarationKey][I.parentKey]=ue)}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,ja("instruction",o)}}r(HA,"onInstruction");function ab(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=fb(t),"elementNameFn"in I&&(e=I.elementNameFn(e,ue)),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 ue)&&(Mo(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(ue[e]=[]),ue[e]&&!Mo(ue[e])&&(ue[e]=[ue[e]]),Mo(ue[e])?ue[e].push(n):ue[e]=n}else ue[I.elementsKey]||(ue[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]=[]),ue[I.elementsKey].push(n);n[I.parentKey]=ue,ue=n}r(ab,"onStartElement");function rb(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=pb(e)),I.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),ja("text",e))}r(rb,"onText");function sb(e){I.ignoreComment||(I.trim&&(e=e.trim()),ja("comment",e))}r(sb,"onComment");function lb(e){var t=ue[I.parentKey];I.addParent||delete ue[I.parentKey],ue=t}r(lb,"onEndElement");function GA(e){I.ignoreCdata||(I.trim&&(e=e.trim()),ja("cdata",e))}r(GA,"onCdata");function WA(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),ja("doctype",e))}r(WA,"onDoctype");function cb(e){e.note=e}r(cb,"onError");ub.exports=function(e,t){var n=$p?kA.parser(!0,{}):n=new _A.Parser("UTF-8"),i={};if(ue=i,I=BA(t),$p?(n.opt={strictEntities:!0},n.onopentag=ab,n.ontext=rb,n.oncomment=sb,n.onclosetag=lb,n.onerror=cb,n.oncdata=GA,n.ondoctype=WA,n.onprocessinginstruction=HA):(n.on("startElement",ab),n.on("text",rb),n.on("comment",sb),n.on("endElement",lb),n.on("error",cb)),$p)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 mb=Re((AD,gb)=>{var db=Os(),QA=wp();function KA(e){var t=db.copyOptions(e);return db.ensureSpacesExists(t),t}r(KA,"validateOptions");gb.exports=function(e,t){var n,i,o,a;return n=KA(t),i=QA(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Up=Re((xD,Ab)=>{var Ce=Os(),JA=Is().isArray,Ct,At;function qA(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(qA,"validateOptions");function Nn(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}r(Nn,"writeIndentation");function Fs(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,At,Ct));var i,o,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,o,At,Ct):i,l.push(t.spaces&&t.indentAttributes?Nn(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,At,Ct):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Nn(t,n,!1)),l.join("")}r(Fs,"writeAttributes");function yb(e,t,n){return Ct=e,At="xml",t.ignoreDeclaration?"":"<?xml"+Fs(e[t.attributesKey],t,n)+"?>"}r(yb,"writeDeclaration");function hb(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],At,Ct):i;if(typeof e[i]=="object")return Ct=e,At=o,"<?"+o+Fs(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,At,Ct)),"<?"+o+(a?" "+a:"")+"?>"}r(hb,"writeInstruction");function bb(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,At,Ct):e)+"-->"}r(bb,"writeComment");function Tb(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,At,Ct):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(Tb,"writeCdata");function vb(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,At,Ct):e)+">"}r(vb,"writeDoctype");function Mp(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,At,Ct):e)}r(Mp,"writeText");function XA(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(XA,"hasContent");function zA(e,t,n){Ct=e,At=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(Fs(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(Sb(e[t.elementsKey],t,n+1)),Ct=e,At=e.name),i.push(t.spaces&&XA(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(zA,"writeElement");function Sb(e,t,n,i){return e.reduce(function(o,a){var s=Nn(t,n,i&&!o);switch(a.type){case"element":return o+s+zA(a,t,n);case"comment":return o+s+bb(a[t.commentKey],t);case"doctype":return o+s+vb(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+Tb(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Mp(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+hb(l,t,n)}},"")}r(Sb,"writeElements");function Pb(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(Pb,"hasContentCompact");function YA(e,t,n,i,o){Ct=e,At=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(">"+Mp(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Fs(e[n.attributesKey],n,i));var l=Pb(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(Cb(e,n,i+1,!1)),Ct=e,At=t,t&&s.push((o?Nn(n,i,!1):"")+"</"+a+">"),s.join("")}r(YA,"writeElementCompact");function Cb(e,t,n,i){var o,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=JA(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:l.push(yb(s[o],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Nn(t,n,i):"")+hb(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Nn(t,n,i):"")+Mp(s[o],t));break;case t.cdataKey:l.push((t.indentCdata?Nn(t,n,i):"")+Tb(s[o],t));break;case t.doctypeKey:l.push(Nn(t,n,i)+vb(s[o],t));break;case t.commentKey:l.push(Nn(t,n,i)+bb(s[o],t));break;default:l.push(Nn(t,n,i)+YA(s[o],a,t,n,Pb(s[o],t)))}i=i&&!l.length}return l.join("")}r(Cb,"writeElementsCompact");Ab.exports=function(e,t){t=qA(t);var n=[];return Ct=e,At="_root_",t.compact?n.push(Cb(e,t,0,!0)):(e[t.declarationKey]&&n.push(yb(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Sb(e[t.elementsKey],t,0,!n.length))),n.join("")}});var xb=Re((OD,Eb)=>{var ZA=Up();Eb.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 ZA(n,t)}});var Ra=Re((FD,Ib)=>{var eE=wp(),tE=mb(),nE=Up(),iE=xb();Ib.exports={xml2js:eE,xml2json:tE,js2xml:nE,json2xml:iE}});var Db=Re(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.convertEntityTypeAnnotations=Mt.convertPropertyAnnotations=Mt.convertNavigationPropertyAnnotations=Mt.convertEntitySetAnnotations=Mt.convertGenericAnnotations=Mt.convertV2Annotations=void 0;function oE(e,t,n){let i=[];switch(t){case"EntitySet":Fb(e,i);break;case"EntityType":Nb(e,i);break;case"NavigationProperty":Lb(e,n,i);break;case"Property":Vb(e,n,i);break;case"Singleton":break;default:break}return Ob(e,n,i),i}r(oE,"convertV2Annotations");Mt.convertV2Annotations=oE;function Ob(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(Ob,"convertGenericAnnotations");Mt.convertGenericAnnotations=Ob;function Fb(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(Fb,"convertEntitySetAnnotations");Mt.convertEntitySetAnnotations=Fb;function Lb(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(Lb,"convertNavigationPropertyAnnotations");Mt.convertNavigationPropertyAnnotations=Lb;function Vb(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(Vb,"convertPropertyAnnotations");Mt.convertPropertyAnnotations=Vb;function Nb(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(Nb,"convertEntityTypeAnnotations");Mt.convertEntityTypeAnnotations=Nb});var Ub=Re(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.parse=void 0;var aE=Ra(),ge=Rp(),$a=Db(),Ns=/^Collection\((.+)\)$/;function rE(e){return e.Type!==null&&e.Type!==void 0}r(rE,"isV4NavProperty");function sE(e){return e.map(t=>t._attributes.Name)}r(sE,"getEntityTypeKeys");function $b(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Uo(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 l=(0,$a.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Bi(s.fullyQualifiedName,l)),o},{entityProperties:[],entityKeys:[]})}r($b,"parseProperties");function lE(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(lE,"parseReferentialConstraint");function cE(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,ge.ensureArray)(i.Principal.PropertyRef),l=(0,ge.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,ge.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let p=s.indexOf(c);n.push({sourceTypeName:o.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}r(cE,"parseV2ReferentialConstraint");function wb(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(rE(s)){let l=s.Type.match(Ns),c=l!==null,p=Dn(l?l[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:c,targetTypeName:p,referentialConstraint:lE((0,ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:c,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:p});let f=(0,$a.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(Bi(`${n}/${s.Name}`,f))}return o},[])}r(wb,"parseNavigationProperties");function pE(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(pE,"parseAssociationSets");function fE(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:o,referentialConstraints:cE((0,ge.ensureArray)(n.ReferentialConstraint),o)}})}r(fE,"parseAssociations");function uE(e,t,n){return e.reduce((i,o)=>{let a=o.Key?sE((0,ge.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:l,entityKeys:c}=$b((0,ge.ensureArray)(o.Property),a,s,t),p=wb((0,ge.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:p},u=(0,$a.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(Bi(f.fullyQualifiedName,u)),i.push(f),i},[])}r(uE,"parseEntityTypes");function dE(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=$b((0,ge.ensureArray)(o.Property),[],a,t),l=wb((0,ge.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}r(dE,"parseComplexTypes");function gE(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(gE,"parseTypeDefinitions");function mE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Dn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,$a.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(Bi(l.fullyQualifiedName,c)),l})}r(mE,"parseEntitySets");function yE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Dn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,$a.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(Bi(l.fullyQualifiedName,c)),l})}r(yE,"parseSingletons");function jb(e,t,n){return e.map(i=>{let o=(0,ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(c=>Uo(c._attributes.Type).type).join(","):s=a?Uo(o[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Uo(o[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:o.map(c=>{let{isCollection:p,type:f}=Uo(c._attributes.Type),u={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:p};return c._attributes.MaxLength&&(u.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(u.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(u.scale=parseInt(c._attributes.Scale,10)),u.nullable=c._attributes.Nullable!=="false",u}),returnType:i.ReturnType?Uo(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Ns)!==null:!1}})}r(jb,"parseActions");function hE(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,ge.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(Ns)!==null:!1}})}r(hE,"parseV2FunctionImport");function Rb(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:Dn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Dn(o)}})}r(Rb,"parseActionImports");function bE(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Vs(s,p,n,!1):c&&(l.value=Mb({[c]:a[c]},p,n)),i.Annotation){let f=js((0,ge.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(Bi(p,f))}}return l})}r(bE,"parsePropertyValues");function Ds(e,t,n){let i=js((0,ge.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Dn(e._attributes.Type):void 0,propertyValues:bE((0,ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Ds,"parseRecord");function zn(e,t){return e[t]!=null}r(zn,"isExpressionOfType");function Ls(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(Ls,"parseModelPath");function _p(e,t,n){if(zn(e,"Record")){let i=(0,ge.ensureArray)(e.Record).map((o,a)=>Ds(o,t+"/"+a,n));return i.type="Record",i}else if(zn(e,"PropertyPath")){let i=(0,ge.ensureArray)(e.PropertyPath).map(o=>Ls(o,"PropertyPath"));return i.type="PropertyPath",i}else if(zn(e,"NavigationPropertyPath")){let i=(0,ge.ensureArray)(e.NavigationPropertyPath).map(o=>Ls(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(zn(e,"String")){let i=(0,ge.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(zn(e,"AnnotationPath")){let i=(0,ge.ensureArray)(e.AnnotationPath).map(o=>Ls(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(zn(e,"Path")){let i=(0,ge.ensureArray)(e.Path).map(o=>Ls(o,"Path"));return i.type="Path",i}else if(zn(e,"If")){let i=(0,ge.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(_p,"parseCollection");function Ze(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=>Vs({[i]:o},"",[],!0))):n.push(Vs({[i]:e[i]},"",[],!0))}),n}r(Ze,"parseChildren");function Mb(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:_p(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ds(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:Ze(e.Function)};case"And":return{type:"And",$And:Ze(e.And)};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};case"If":return{type:"If",$If:Ze(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(Mb,"parseInlineExpression");function Vs(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:Ze(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:_p(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ds(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ze(e.And)};case"Ne":return{type:"Ne",$Ne:Ze(e.Ne)};case"Not":return{type:"Not",$Not:Ze(e.Not)[0]};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"If":return{type:"If",$If:Ze(e.If)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(Vs,"parseExpression");function TE(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Dn(i),qualifier:o},l=`${t}@${Dn(i)}`;if(o!==""&&o!==void 0&&(l+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=Mb(a,l,n)),e.Annotation){let p=js((0,ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let c=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return zn(e,"Record")?s.record=Ds(e.Record,l,n):zn(e,"Collection")?s.collection=_p(e.Collection,l,n):c.length===1?s.value=Vs({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(TE,"parseAnnotation");function js(e,t,n){return e.map(i=>TE(i,t,n))}r(js,"parseAnnotations");function Bi(e,t){return{target:e,annotations:t}}r(Bi,"createAnnotationList");function vE(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Bi(Dn(n._attributes.Target),js((0,ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(vE,"parseAnnotationLists");function SE(e,t,n){let i=e._attributes.Namespace,o=[],a=uE((0,ge.ensureArray)(e.EntityType),o,i),s=dE((0,ge.ensureArray)(e.ComplexType),o,i),l=gE((0,ge.ensureArray)(e.TypeDefinition),i),c=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],b=[];if(e.EntityContainer)if(c=mE((0,ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=yE((0,ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=pE((0,ge.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(hE((0,ge.ensureArray)(e.EntityContainer.FunctionImport),c,u.fullyQualifiedName));else if(t==="4.0")b=b.concat(Rb((0,ge.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),b=b.concat(Rb((0,ge.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(m=m.concat(jb((0,ge.ensureArray)(e.Action),i,!1)),m=m.concat(jb((0,ge.ensureArray)(e.Function),i,!0)));let v=fE((0,ge.ensureArray)(e.Association),i);vE((0,ge.ensureArray)(e.Annotations),o);let L={};return L[n]=o,{associations:v,associationSets:f,annotations:L,entityContainer:u,namespace:i,entitySets:c,singletons:p,complexTypes:s,typeDefinitions:l,actions:m,actionImports:b,entityTypes:a}}r(SE,"parseSchema");function PE(e){return e.reduce((t,n)=>((0,ge.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(PE,"parseReferences");var kp={};function Uo(e){let t=e.match(Ns),n=t?t[1]:e,i=Dn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Uo,"unaliasType");function Dn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let c=e.substring(o,a);i.push((t=kp[c])!==null&&t!==void 0?t:c),o=a,s=!1}n.includes(l)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Dn,"unalias");function CE(e){let t=e.reduce((b,v)=>b.concat(v.associations),[]),n=e.reduce((b,v)=>b.concat(v.associationSets),[]),i=e.reduce((b,v)=>b.concat(v.entitySets),[]),o=e.reduce((b,v)=>b.concat(v.singletons),[]),a=e.reduce((b,v)=>b.concat(v.entityTypes),[]),s=e.reduce((b,v)=>b.concat(v.actions),[]),l=e.reduce((b,v)=>b.concat(v.actionImports),[]),c=e.reduce((b,v)=>b.concat(v.complexTypes),[]),p=e.reduce((b,v)=>b.concat(v.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 v=a.find(L=>L.fullyQualifiedName===b.entityTypeName);v==null||v.navigationProperties.forEach(L=>{let V=L,z=n.find(ne=>ne.association===V.relationship);if(z){let ne=z.associationEnd.find(ie=>ie.entitySet!==b.fullyQualifiedName);ne&&(b.navigationPropertyBinding[L.name]=ne.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(v=>{let L=v,V=t.find(z=>z.fullyQualifiedName===L.relationship);V&&V.referentialConstraints&&V.referentialConstraints.length>0&&(V.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?L.referentialConstraint=V.referentialConstraints:L.referentialConstraint=V.referentialConstraints.map(z=>({sourceTypeName:z.targetTypeName,sourceProperty:z.targetProperty,targetTypeName:z.sourceTypeName,targetProperty:z.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:c,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}r(CE,"mergeSchemas");function AE(e,t){kp=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{kp[n._attributes.Alias]=n._attributes.Namespace})}r(AE,"createAliasMap");function EE(e,t="serviceFile"){let n=(0,aE.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=PE((0,ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));AE(a,o);let s=o.map(c=>SE(c,i,t));return new ge.RawMetadataInstance(t,i,CE(s),a)}r(EE,"parse");Rs.parse=EE});var kb=Re(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.parse=ko.merge=void 0;var xE=tb();Object.defineProperty(ko,"merge",{enumerable:!0,get:r(function(){return xE.merge},"get")});var IE=Ub();Object.defineProperty(ko,"parse",{enumerable:!0,get:r(function(){return IE.parse},"get")})});var eT=Re(()=>{var Zb;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(c,p){return function(f,u){Object.defineProperty(c,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 l(){return a()||s()}r(l,"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",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,p=!l&&!c,f={create:l?function(){return ep(Object.create(null))}:c?function(){return ep({__proto__:null})}:function(){return ep({})},has:p?function(A,x){return i.call(A,x)}:function(A,x){return x in A},get:p?function(A,x){return i.call(A,x)?A[x]:void 0}:function(A,x){return A[x]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:zS(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:YS(),v=typeof WeakMap=="function"?WeakMap:ZS(),L=o?Symbol.for("@reflect-metadata:registry"):void 0,V=JS(),z=qS(V);function ne(A,x,N,M){if(pe(N)){if(!Ye(A))throw new TypeError;if(!yt(x))throw new TypeError;return fi(A,x)}else{if(!Ye(A))throw new TypeError;if(!qe(x))throw new TypeError;if(!qe(M)&&!pe(M)&&!Kn(M))throw new TypeError;return Kn(M)&&(M=void 0),N=Te(N),Fo(A,x,N,M)}}r(ne,"decorate"),t("decorate",ne);function ie(A,x){function N(M,ae){if(!qe(M))throw new TypeError;if(!pe(ae)&&!St(ae))throw new TypeError;at(A,x,M,ae)}return r(N,"decorator"),N}r(ie,"metadata"),t("metadata",ie);function ce(A,x,N,M){if(!qe(N))throw new TypeError;return pe(M)||(M=Te(M)),at(A,x,N,M)}r(ce,"defineMetadata"),t("defineMetadata",ce);function Y(A,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),$t(A,x,N)}r(Y,"hasMetadata"),t("hasMetadata",Y);function oe(A,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),Zt(A,x,N)}r(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Se(A,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),Ie(A,x,N)}r(Se,"getMetadata"),t("getMetadata",Se);function P(A,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),ki(A,x,N)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function Lt(A,x){if(!qe(A))throw new TypeError;return pe(x)||(x=Te(x)),wt(A,x)}r(Lt,"getMetadataKeys"),t("getMetadataKeys",Lt);function Yt(A,x){if(!qe(A))throw new TypeError;return pe(x)||(x=Te(x)),vt(A,x)}r(Yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Yt);function Me(A,x,N){if(!qe(x))throw new TypeError;if(pe(N)||(N=Te(N)),!qe(x))throw new TypeError;pe(N)||(N=Te(N));var M=Ia(x,N,!1);return pe(M)?!1:M.OrdinaryDeleteMetadata(A,x,N)}r(Me,"deleteMetadata"),t("deleteMetadata",Me);function fi(A,x){for(var N=A.length-1;N>=0;--N){var M=A[N],ae=M(x);if(!pe(ae)&&!Kn(ae)){if(!yt(ae))throw new TypeError;x=ae}}return x}r(fi,"DecorateConstructor");function Fo(A,x,N,M){for(var ae=A.length-1;ae>=0;--ae){var nt=A[ae],ct=nt(x,N,M);if(!pe(ct)&&!Kn(ct)){if(!qe(ct))throw new TypeError;M=ct}}return M}r(Fo,"DecorateProperty");function $t(A,x,N){var M=Zt(A,x,N);if(M)return!0;var ae=Vo(x);return Kn(ae)?!1:$t(A,ae,N)}r($t,"OrdinaryHasMetadata");function Zt(A,x,N){var M=Ia(x,N,!1);return pe(M)?!1:D(M.OrdinaryHasOwnMetadata(A,x,N))}r(Zt,"OrdinaryHasOwnMetadata");function Ie(A,x,N){var M=Zt(A,x,N);if(M)return ki(A,x,N);var ae=Vo(x);if(!Kn(ae))return Ie(A,ae,N)}r(Ie,"OrdinaryGetMetadata");function ki(A,x,N){var M=Ia(x,N,!1);if(!pe(M))return M.OrdinaryGetOwnMetadata(A,x,N)}r(ki,"OrdinaryGetOwnMetadata");function at(A,x,N,M){var ae=Ia(N,M,!0);ae.OrdinaryDefineOwnMetadata(A,x,N,M)}r(at,"OrdinaryDefineOwnMetadata");function wt(A,x){var N=vt(A,x),M=Vo(A);if(M===null)return N;var ae=wt(M,x);if(ae.length<=0)return N;if(N.length<=0)return ae;for(var nt=new b,ct=[],Pe=0,H=N;Pe<H.length;Pe++){var J=H[Pe],X=nt.has(J);X||(nt.add(J),ct.push(J))}for(var ee=0,Ee=ae;ee<Ee.length;ee++){var J=Ee[ee],X=nt.has(J);X||(nt.add(J),ct.push(J))}return ct}r(wt,"OrdinaryMetadataKeys");function vt(A,x){var N=Ia(A,x,!1);return N?N.OrdinaryOwnMetadataKeys(A,x):[]}r(vt,"OrdinaryOwnMetadataKeys");function Qn(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}r(Qn,"Type");function pe(A){return A===void 0}r(pe,"IsUndefined");function Kn(A){return A===null}r(Kn,"IsNull");function ss(A){return typeof A=="symbol"}r(ss,"IsSymbol");function qe(A){return typeof A=="object"?A!==null:typeof A=="function"}r(qe,"IsObject");function h(A,x){switch(Qn(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var N=x===3?"string":x===5?"number":"default",M=rt(A,a);if(M!==void 0){var ae=M.call(A,N);if(qe(ae))throw new TypeError;return ae}return y(A,N==="default"?"number":N)}r(h,"ToPrimitive");function y(A,x){if(x==="string"){var N=A.toString;if(Ge(N)){var M=N.call(A);if(!qe(M))return M}var ae=A.valueOf;if(Ge(ae)){var M=ae.call(A);if(!qe(M))return M}}else{var ae=A.valueOf;if(Ge(ae)){var M=ae.call(A);if(!qe(M))return M}var nt=A.toString;if(Ge(nt)){var M=nt.call(A);if(!qe(M))return M}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(A){return!!A}r(D,"ToBoolean");function C(A){return""+A}r(C,"ToString");function Te(A){var x=h(A,3);return ss(x)?x:C(x)}r(Te,"ToPropertyKey");function Ye(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}r(Ye,"IsArray");function Ge(A){return typeof A=="function"}r(Ge,"IsCallable");function yt(A){return typeof A=="function"}r(yt,"IsConstructor");function St(A){switch(Qn(A)){case 3:return!0;case 4:return!0;default:return!1}}r(St,"IsPropertyKey");function Fn(A,x){return A===x||A!==A&&x!==x}r(Fn,"SameValueZero");function rt(A,x){var N=A[x];if(N!=null){if(!Ge(N))throw new TypeError;return N}}r(rt,"GetMethod");function en(A){var x=rt(A,s);if(!Ge(x))throw new TypeError;var N=x.call(A);if(!qe(N))throw new TypeError;return N}r(en,"GetIterator");function ls(A){return A.value}r(ls,"IteratorValue");function xa(A){var x=A.next();return x.done?!1:x}r(xa,"IteratorStep");function Lo(A){var x=A.return;x&&x.call(A)}r(Lo,"IteratorClose");function Vo(A){var x=Object.getPrototypeOf(A);if(typeof A!="function"||A===u||x!==u)return x;var N=A.prototype,M=N&&Object.getPrototypeOf(N);if(M==null||M===Object.prototype)return x;var ae=M.constructor;return typeof ae!="function"||ae===A?x:ae}r(Vo,"OrdinaryGetPrototypeOf");function KS(){var A;!pe(L)&&typeof n.Reflect<"u"&&!(L in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(A=XS(n.Reflect));var x,N,M,ae=new v,nt={registerProvider:ct,getProvider:H,setProvider:X};return nt;function ct(ee){if(!Object.isExtensible(nt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case A===ee:break;case pe(x):x=ee;break;case x===ee:break;case pe(N):N=ee;break;case N===ee:break;default:M===void 0&&(M=new b),M.add(ee);break}}function Pe(ee,Ee){if(!pe(x)){if(x.isProviderFor(ee,Ee))return x;if(!pe(N)){if(N.isProviderFor(ee,Ee))return x;if(!pe(M))for(var Ke=en(M);;){var it=xa(Ke);if(!it)return;var dn=ls(it);if(dn.isProviderFor(ee,Ee))return Lo(Ke),dn}}}if(!pe(A)&&A.isProviderFor(ee,Ee))return A}function H(ee,Ee){var Ke=ae.get(ee),it;return pe(Ke)||(it=Ke.get(Ee)),pe(it)&&(it=Pe(ee,Ee),pe(it)||(pe(Ke)&&(Ke=new m,ae.set(ee,Ke)),Ke.set(Ee,it))),it}function J(ee){if(pe(ee))throw new TypeError;return x===ee||N===ee||!pe(M)&&M.has(ee)}function X(ee,Ee,Ke){if(!J(Ke))throw new Error("Metadata provider not registered.");var it=H(ee,Ee);if(it!==Ke){if(!pe(it))return!1;var dn=ae.get(ee);pe(dn)&&(dn=new m,ae.set(ee,dn)),dn.set(Ee,Ke)}return!0}}r(KS,"CreateMetadataRegistry");function JS(){var A;return!pe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(A=n.Reflect[L]),pe(A)&&(A=KS()),!pe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,L,{enumerable:!1,configurable:!1,writable:!1,value:A}),A}r(JS,"GetOrCreateMetadataRegistry");function qS(A){var x=new v,N={isProviderFor:r(function(J,X){var ee=x.get(J);return pe(ee)?!1:ee.has(X)},"isProviderFor"),OrdinaryDefineOwnMetadata:ct,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:nt,OrdinaryOwnMetadataKeys:Pe,OrdinaryDeleteMetadata:H};return V.registerProvider(N),N;function M(J,X,ee){var Ee=x.get(J),Ke=!1;if(pe(Ee)){if(!ee)return;Ee=new m,x.set(J,Ee),Ke=!0}var it=Ee.get(X);if(pe(it)){if(!ee)return;if(it=new m,Ee.set(X,it),!A.setProvider(J,X,N))throw Ee.delete(X),Ke&&x.delete(J),new Error("Wrong provider for target.")}return it}r(M,"GetOrCreateMetadataMap");function ae(J,X,ee){var Ee=M(X,ee,!1);return pe(Ee)?!1:D(Ee.has(J))}r(ae,"OrdinaryHasOwnMetadata");function nt(J,X,ee){var Ee=M(X,ee,!1);if(!pe(Ee))return Ee.get(J)}r(nt,"OrdinaryGetOwnMetadata");function ct(J,X,ee,Ee){var Ke=M(ee,Ee,!0);Ke.set(J,X)}r(ct,"OrdinaryDefineOwnMetadata");function Pe(J,X){var ee=[],Ee=M(J,X,!1);if(pe(Ee))return ee;for(var Ke=Ee.keys(),it=en(Ke),dn=0;;){var kg=xa(it);if(!kg)return ee.length=dn,ee;var eP=ls(kg);try{ee[dn]=eP}catch(tP){try{Lo(it)}finally{throw tP}}dn++}}r(Pe,"OrdinaryOwnMetadataKeys");function H(J,X,ee){var Ee=M(X,ee,!1);if(pe(Ee)||!Ee.delete(J))return!1;if(Ee.size===0){var Ke=x.get(X);pe(Ke)||(Ke.delete(ee),Ke.size===0&&x.delete(Ke))}return!0}r(H,"OrdinaryDeleteMetadata")}r(qS,"CreateMetadataProvider");function XS(A){var x=A.defineMetadata,N=A.hasOwnMetadata,M=A.getOwnMetadata,ae=A.getOwnMetadataKeys,nt=A.deleteMetadata,ct=new v,Pe={isProviderFor:r(function(H,J){var X=ct.get(H);return!pe(X)&&X.has(J)?!0:ae(H,J).length?(pe(X)&&(X=new b,ct.set(H,X)),X.add(J),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:nt};return Pe}r(XS,"CreateFallbackProvider");function Ia(A,x,N){var M=V.getProvider(A,x);if(!pe(M))return M;if(N){if(V.setProvider(A,x,z))return z;throw new Error("Illegal state.")}}r(Ia,"GetMetadataProvider");function zS(){var A={},x=[],N=function(){function Pe(H,J,X){this._index=0,this._keys=H,this._values=J,this._selector=X}return r(Pe,"MapIterator"),Pe.prototype["@@iterator"]=function(){return this},Pe.prototype[s]=function(){return this},Pe.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var J=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:J,done:!1}}return{value:void 0,done:!0}},Pe.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),H},Pe.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:H,done:!0}},Pe}(),M=function(){function Pe(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return r(Pe,"Map"),Object.defineProperty(Pe.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Pe.prototype.has=function(H){return this._find(H,!1)>=0},Pe.prototype.get=function(H){var J=this._find(H,!1);return J>=0?this._values[J]:void 0},Pe.prototype.set=function(H,J){var X=this._find(H,!0);return this._values[X]=J,this},Pe.prototype.delete=function(H){var J=this._find(H,!1);if(J>=0){for(var X=this._keys.length,ee=J+1;ee<X;ee++)this._keys[ee-1]=this._keys[ee],this._values[ee-1]=this._values[ee];return this._keys.length--,this._values.length--,Fn(H,this._cacheKey)&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},Pe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},Pe.prototype.keys=function(){return new N(this._keys,this._values,ae)},Pe.prototype.values=function(){return new N(this._keys,this._values,nt)},Pe.prototype.entries=function(){return new N(this._keys,this._values,ct)},Pe.prototype["@@iterator"]=function(){return this.entries()},Pe.prototype[s]=function(){return this.entries()},Pe.prototype._find=function(H,J){if(!Fn(this._cacheKey,H)){this._cacheIndex=-1;for(var X=0;X<this._keys.length;X++)if(Fn(this._keys[X],H)){this._cacheIndex=X;break}}return this._cacheIndex<0&&J&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},Pe}();return M;function ae(Pe,H){return Pe}function nt(Pe,H){return H}function ct(Pe,H){return[Pe,H]}}r(zS,"CreateMapPolyfill");function YS(){var A=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 A}r(YS,"CreateSetPolyfill");function ZS(){var A=16,x=f.create(),N=M();return function(){function H(){this._key=M()}return r(H,"WeakMap"),H.prototype.has=function(J){var X=ae(J,!1);return X!==void 0?f.has(X,this._key):!1},H.prototype.get=function(J){var X=ae(J,!1);return X!==void 0?f.get(X,this._key):void 0},H.prototype.set=function(J,X){var ee=ae(J,!0);return ee[this._key]=X,this},H.prototype.delete=function(J){var X=ae(J,!1);return X!==void 0?delete X[this._key]:!1},H.prototype.clear=function(){this._key=M()},H}();function M(){var H;do H="@@WeakMap@@"+Pe();while(f.has(x,H));return x[H]=!0,H}function ae(H,J){if(!i.call(H,N)){if(!J)return;Object.defineProperty(H,N,{value:f.create()})}return H[N]}function nt(H,J){for(var X=0;X<J;++X)H[X]=Math.random()*255|0;return H}function ct(H){if(typeof Uint8Array=="function"){var J=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(J):typeof msCrypto<"u"?msCrypto.getRandomValues(J):nt(J,H),J}return nt(new Array(H),H)}function Pe(){var H=ct(A);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var J="",X=0;X<A;++X){var ee=H[X];(X===4||X===6||X===8)&&(J+="-"),ee<16&&(J+="0"),J+=ee.toString(16).toLowerCase()}return J}}r(ZS,"CreateWeakMapPolyfill");function ep(A){return A.__=void 0,delete A.__,A}r(ep,"MakeDictionary")})})(Zb||(Zb={}))});var rT=Re((zD,aT)=>{var zE=0,oT="changeUtils: ";function YE(){return"id-"+new Date().valueOf()+"-"+zE++}r(YE,"uid");function ZE(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(ZE,"appendComponentToReference");function ex(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return ZE(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(ex,"getFlexReference");function tx(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(tx,"getAppVersion");function nx(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(nx,"getProjectId");function iT(e){return JSON.stringify({fileName:e.id||YE().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:oT+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(iT,"createString");aT.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(oT,""),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=ex(t),e.appVersion=tx(t),e.projectId=nx(t,e.reference),iT(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 iT(e)},"toString")}});var lT=Re((ZD,sT)=>{sT.exports={change:rT()}});var YT=Re(an=>{"use strict";var Fx=/[|\\{}()[\]^$+*?.]/g,Lx=Object.prototype.hasOwnProperty,xf=r(function(e,t){return Lx.apply(e,[t])},"hasOwn");an.escapeRegExpChars=function(e){return e?String(e).replace(Fx,"\\$&"):""};var Vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},Nx=/[&<>'"]/g;function Dx(e){return Vx[e]||e}r(Dx,"encode_char");var jx=`var _ENCODE_HTML_RULES = {
27
+ `?(y.line++,y.column=0):y.column++);y.textNode+=h.substring(Te,D-1)}C==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!ie(C)&&(!y.sawRoot||y.closedRoot)&&Oe(y,"Text data outside of root node."),C==="&"?y.state=P.TEXT_ENTITY:y.textNode+=C);continue;case P.SCRIPT:C==="<"?y.state=P.SCRIPT_ENDING:y.script+=C;continue;case P.SCRIPT_ENDING:C==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+C,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(C==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!ie(C))if(oe(L,C))y.state=P.OPEN_TAG,y.tagName=C;else if(C==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(C==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(Oe(y,"Unencoded <"),y.startTagPosition+1<y.position){var Ye=y.position-y.startTagPosition;C=new Array(Ye).join(" ")+C}y.textNode+="<"+C,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+C==="--"){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+C,y.sgmlDecl=""):(y.sgmlDecl+C).toUpperCase()===p?(Me(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+C).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&Oe(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):C===">"?(Me(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(ce(C)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=C);continue;case P.SGML_DECL_QUOTED:C===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=C;continue;case P.DOCTYPE:C===">"?(y.state=P.TEXT,Me(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=C,C==="["?y.state=P.DOCTYPE_DTD:ce(C)&&(y.state=P.DOCTYPE_QUOTED,y.q=C));continue;case P.DOCTYPE_QUOTED:y.doctype+=C,C===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:C==="]"?(y.doctype+=C,y.state=P.DOCTYPE):C==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):ce(C)?(y.doctype+=C,y.state=P.DOCTYPE_DTD_QUOTED,y.q=C):y.doctype+=C;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=C,C===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:C==="-"?y.state=P.COMMENT_ENDING:y.comment+=C;continue;case P.COMMENT_ENDING:C==="-"?(y.state=P.COMMENT_ENDED,y.comment=Fo(y.opt,y.comment),y.comment&&Me(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+C,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:C!==">"?(Oe(y,"Malformed comment"),y.comment+="--"+C,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:C==="]"?y.state=P.CDATA_ENDING:y.cdata+=C;continue;case P.CDATA_ENDING:C==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+C,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:C===">"?(y.cdata&&Me(y,"oncdata",y.cdata),Me(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):C==="]"?y.cdata+="]":(y.cdata+="]]"+C,y.state=P.CDATA);continue;case P.PROC_INST:C==="?"?y.state=P.PROC_INST_ENDING:ie(C)?y.state=P.PROC_INST_BODY:y.procInstName+=C;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&ie(C))continue;C==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=C;continue;case P.PROC_INST_ENDING:C===">"?(Me(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+C,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:oe(N,C)?y.tagName+=C:(ki(y),C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:(ie(C)||Oe(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:C===">"?(vt(y,!0),Qn(y)):(Oe(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(ie(C))continue;C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,C)?(y.attribName=C,y.attribValue="",y.state=P.ATTRIB_NAME):Oe(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:C==="="?y.state=P.ATTRIB_VALUE:C===">"?(Oe(y,"Attribute without value"),y.attribValue=y.attribName,wt(y),vt(y)):ie(C)?y.state=P.ATTRIB_NAME_SAW_WHITE:oe(N,C)?y.attribName+=C:Oe(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(C==="=")y.state=P.ATTRIB_VALUE;else{if(ie(C))continue;Oe(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",Me(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",C===">"?vt(y):oe(L,C)?(y.attribName=C,y.state=P.ATTRIB_NAME):(Oe(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(ie(C))continue;ce(C)?(y.q=C,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||$t(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=C);continue;case P.ATTRIB_VALUE_QUOTED:if(C!==y.q){C==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=C;continue}wt(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:ie(C)?y.state=P.ATTRIB:C===">"?vt(y):C==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,C)?(Oe(y,"No whitespace between attributes"),y.attribName=C,y.attribValue="",y.state=P.ATTRIB_NAME):Oe(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!Y(C)){C==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=C;continue}wt(y),C===">"?vt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)C===">"?Qn(y):oe(N,C)?y.tagName+=C:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(ie(C)||Oe(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(ie(C))continue;Se(L,C)?y.script?(y.script+="</"+C,y.state=P.SCRIPT):Oe(y,"Invalid tagname in closing tag."):y.tagName=C}continue;case P.CLOSE_TAG_SAW_WHITE:if(ie(C))continue;C===">"?Qn(y):Oe(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var Ge,yt;switch(y.state){case P.TEXT_ENTITY:Ge=P.TEXT,yt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:Ge=P.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:Ge=P.ATTRIB_VALUE_UNQUOTED,yt="attribValue";break}if(C===";"){var St=fe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(St)?(y.entity="",y.state=Ge,y.write(St)):(y[yt]+=St,y.entity="",y.state=Ge)}else oe(y.entity.length?ne:z,C)?y.entity+=C:(Oe(y,"Invalid character in entity name"),y[yt]+="&"+y.entity+C,y.entity="",y.state=Ge);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(qe,"write");String.fromCodePoint||function(){var h=String.fromCharCode,y=Math.floor,D=r(function(){var C=16384,Te=[],Ye,Ge,yt=-1,St=arguments.length;if(!St)return"";for(var Fn="";++yt<St;){var rt=Number(arguments[yt]);if(!isFinite(rt)||rt<0||rt>1114111||y(rt)!==rt)throw RangeError("Invalid code point: "+rt);rt<=65535?Te.push(rt):(rt-=65536,Ye=(rt>>10)+55296,Ge=rt%1024+56320,Te.push(Ye,Ge)),(yt+1===St||Te.length>C)&&(Fn+=h.apply(null,Te),Te.length=0)}return Fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D}()})(typeof xs>"u"?xs.sax={}:xs)});var Os=Re((bD,ib)=>{ib.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Is=Re((vD,ob)=>{var UA=Os().isArray;ob.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"&&!UA(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 Mf=Re((PD,ub)=>{var kA=nb(),_A={on:r(function(){},"on"),parse:r(function(){},"parse")},ve=Is(),Mo=Os().isArray,O,wf=!0,ue;function BA(e){return O=ve.copyOptions(e),ve.ensureFlagExists("ignoreDeclaration",O),ve.ensureFlagExists("ignoreInstruction",O),ve.ensureFlagExists("ignoreAttributes",O),ve.ensureFlagExists("ignoreText",O),ve.ensureFlagExists("ignoreComment",O),ve.ensureFlagExists("ignoreCdata",O),ve.ensureFlagExists("ignoreDoctype",O),ve.ensureFlagExists("compact",O),ve.ensureFlagExists("alwaysChildren",O),ve.ensureFlagExists("addParent",O),ve.ensureFlagExists("trim",O),ve.ensureFlagExists("nativeType",O),ve.ensureFlagExists("nativeTypeAttributes",O),ve.ensureFlagExists("sanitize",O),ve.ensureFlagExists("instructionHasAttributes",O),ve.ensureFlagExists("captureSpacesBetweenElements",O),ve.ensureAlwaysArrayExists(O),ve.ensureKeyExists("declaration",O),ve.ensureKeyExists("instruction",O),ve.ensureKeyExists("attributes",O),ve.ensureKeyExists("text",O),ve.ensureKeyExists("comment",O),ve.ensureKeyExists("cdata",O),ve.ensureKeyExists("doctype",O),ve.ensureKeyExists("type",O),ve.ensureKeyExists("name",O),ve.ensureKeyExists("elements",O),ve.ensureKeyExists("parent",O),ve.checkFnExists("doctype",O),ve.checkFnExists("instruction",O),ve.checkFnExists("cdata",O),ve.checkFnExists("comment",O),ve.checkFnExists("text",O),ve.checkFnExists("instructionName",O),ve.checkFnExists("elementName",O),ve.checkFnExists("attributeName",O),ve.checkFnExists("attributeValue",O),ve.checkFnExists("attributes",O),O}r(BA,"validateOptions");function fb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(fb,"nativeType");function Ra(e,t){var n;if(O.compact){if(!ue[O[e+"Key"]]&&(Mo(O.alwaysArray)?O.alwaysArray.indexOf(O[e+"Key"])!==-1:O.alwaysArray)&&(ue[O[e+"Key"]]=[]),ue[O[e+"Key"]]&&!Mo(ue[O[e+"Key"]])&&(ue[O[e+"Key"]]=[ue[O[e+"Key"]]]),e+"Fn"in O&&typeof t=="string"&&(t=O[e+"Fn"](t,ue)),e==="instruction"&&("instructionFn"in O||"instructionNameFn"in O)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in O)t[n]=O.instructionFn(t[n],n,ue);else{var i=t[n];delete t[n],t[O.instructionNameFn(n,i,ue)]=i}}Mo(ue[O[e+"Key"]])?ue[O[e+"Key"]].push(t):ue[O[e+"Key"]]=t}else{ue[O.elementsKey]||(ue[O.elementsKey]=[]);var o={};if(o[O.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[O.nameKey]="instructionNameFn"in O?O.instructionNameFn(n,t,ue):n,O.instructionHasAttributes?(o[O.attributesKey]=t[n][O.attributesKey],"instructionFn"in O&&(o[O.attributesKey]=O.instructionFn(o[O.attributesKey],n,ue))):("instructionFn"in O&&(t[n]=O.instructionFn(t[n],n,ue)),o[O.instructionKey]=t[n])}else e+"Fn"in O&&(t=O[e+"Fn"](t,ue)),o[O[e+"Key"]]=t;O.addParent&&(o[O.parentKey]=ue),ue[O.elementsKey].push(o)}}r(Ra,"addField");function pb(e){if("attributesFn"in O&&e&&(e=O.attributesFn(e,ue)),(O.trim||"attributeValueFn"in O||"attributeNameFn"in O||O.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(O.trim&&(e[t]=e[t].trim()),O.nativeTypeAttributes&&(e[t]=fb(e[t])),"attributeValueFn"in O&&(e[t]=O.attributeValueFn(e[t],t,ue)),"attributeNameFn"in O)){var n=e[t];delete e[t],e[O.attributeNameFn(t,e[t],ue)]=n}}return e}r(pb,"manipulateAttributes");function HA(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||O.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=pb(t)}if(e.name.toLowerCase()==="xml"){if(O.ignoreDeclaration)return;ue[O.declarationKey]={},Object.keys(t).length&&(ue[O.declarationKey][O.attributesKey]=t),O.addParent&&(ue[O.declarationKey][O.parentKey]=ue)}else{if(O.ignoreInstruction)return;O.trim&&(e.body=e.body.trim());var o={};O.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][O.attributesKey]=t):o[e.name]=e.body,Ra("instruction",o)}}r(HA,"onInstruction");function ab(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=pb(t),"elementNameFn"in O&&(e=O.elementNameFn(e,ue)),O.compact){if(n={},!O.ignoreAttributes&&t&&Object.keys(t).length){n[O.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[O.attributesKey][i]=t[i])}!(e in ue)&&(Mo(O.alwaysArray)?O.alwaysArray.indexOf(e)!==-1:O.alwaysArray)&&(ue[e]=[]),ue[e]&&!Mo(ue[e])&&(ue[e]=[ue[e]]),Mo(ue[e])?ue[e].push(n):ue[e]=n}else ue[O.elementsKey]||(ue[O.elementsKey]=[]),n={},n[O.typeKey]="element",n[O.nameKey]=e,!O.ignoreAttributes&&t&&Object.keys(t).length&&(n[O.attributesKey]=t),O.alwaysChildren&&(n[O.elementsKey]=[]),ue[O.elementsKey].push(n);n[O.parentKey]=ue,ue=n}r(ab,"onStartElement");function rb(e){O.ignoreText||!e.trim()&&!O.captureSpacesBetweenElements||(O.trim&&(e=e.trim()),O.nativeType&&(e=fb(e)),O.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),Ra("text",e))}r(rb,"onText");function sb(e){O.ignoreComment||(O.trim&&(e=e.trim()),Ra("comment",e))}r(sb,"onComment");function lb(e){var t=ue[O.parentKey];O.addParent||delete ue[O.parentKey],ue=t}r(lb,"onEndElement");function GA(e){O.ignoreCdata||(O.trim&&(e=e.trim()),Ra("cdata",e))}r(GA,"onCdata");function WA(e){O.ignoreDoctype||(e=e.replace(/^ /,""),O.trim&&(e=e.trim()),Ra("doctype",e))}r(WA,"onDoctype");function cb(e){e.note=e}r(cb,"onError");ub.exports=function(e,t){var n=wf?kA.parser(!0,{}):n=new _A.Parser("UTF-8"),i={};if(ue=i,O=BA(t),wf?(n.opt={strictEntities:!0},n.onopentag=ab,n.ontext=rb,n.oncomment=sb,n.onclosetag=lb,n.onerror=cb,n.oncdata=GA,n.ondoctype=WA,n.onprocessinginstruction=HA):(n.on("startElement",ab),n.on("text",rb),n.on("comment",sb),n.on("endElement",lb),n.on("error",cb)),wf)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[O.elementsKey]){var o=i[O.elementsKey];delete i[O.elementsKey],i[O.elementsKey]=o,delete i.text}return i}});var mb=Re((AD,gb)=>{var db=Is(),QA=Mf();function KA(e){var t=db.copyOptions(e);return db.ensureSpacesExists(t),t}r(KA,"validateOptions");gb.exports=function(e,t){var n,i,o,a;return n=KA(t),i=QA(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var kf=Re((xD,Ab)=>{var Ce=Is(),JA=Os().isArray,Ct,At;function qA(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(qA,"validateOptions");function Vn(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}r(Vn,"writeIndentation");function Fs(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,At,Ct));var i,o,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,o,At,Ct):i,l.push(t.spaces&&t.indentAttributes?Vn(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,At,Ct):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Vn(t,n,!1)),l.join("")}r(Fs,"writeAttributes");function yb(e,t,n){return Ct=e,At="xml",t.ignoreDeclaration?"":"<?xml"+Fs(e[t.attributesKey],t,n)+"?>"}r(yb,"writeDeclaration");function hb(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],At,Ct):i;if(typeof e[i]=="object")return Ct=e,At=o,"<?"+o+Fs(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,At,Ct)),"<?"+o+(a?" "+a:"")+"?>"}r(hb,"writeInstruction");function bb(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,At,Ct):e)+"-->"}r(bb,"writeComment");function Tb(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,At,Ct):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(Tb,"writeCdata");function vb(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,At,Ct):e)+">"}r(vb,"writeDoctype");function Uf(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,At,Ct):e)}r(Uf,"writeText");function XA(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(XA,"hasContent");function zA(e,t,n){Ct=e,At=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(Fs(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(Sb(e[t.elementsKey],t,n+1)),Ct=e,At=e.name),i.push(t.spaces&&XA(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(zA,"writeElement");function Sb(e,t,n,i){return e.reduce(function(o,a){var s=Vn(t,n,i&&!o);switch(a.type){case"element":return o+s+zA(a,t,n);case"comment":return o+s+bb(a[t.commentKey],t);case"doctype":return o+s+vb(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+Tb(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Uf(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+hb(l,t,n)}},"")}r(Sb,"writeElements");function Pb(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(Pb,"hasContentCompact");function YA(e,t,n,i,o){Ct=e,At=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(">"+Uf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Fs(e[n.attributesKey],n,i));var l=Pb(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(Cb(e,n,i+1,!1)),Ct=e,At=t,t&&s.push((o?Vn(n,i,!1):"")+"</"+a+">"),s.join("")}r(YA,"writeElementCompact");function Cb(e,t,n,i){var o,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=JA(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:l.push(yb(s[o],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Vn(t,n,i):"")+hb(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Vn(t,n,i):"")+Uf(s[o],t));break;case t.cdataKey:l.push((t.indentCdata?Vn(t,n,i):"")+Tb(s[o],t));break;case t.doctypeKey:l.push(Vn(t,n,i)+vb(s[o],t));break;case t.commentKey:l.push(Vn(t,n,i)+bb(s[o],t));break;default:l.push(Vn(t,n,i)+YA(s[o],a,t,n,Pb(s[o],t)))}i=i&&!l.length}return l.join("")}r(Cb,"writeElementsCompact");Ab.exports=function(e,t){t=qA(t);var n=[];return Ct=e,At="_root_",t.compact?n.push(Cb(e,t,0,!0)):(e[t.declarationKey]&&n.push(yb(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Sb(e[t.elementsKey],t,0,!n.length))),n.join("")}});var xb=Re((ID,Eb)=>{var ZA=kf();Eb.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 ZA(n,t)}});var $a=Re((FD,Ob)=>{var eE=Mf(),tE=mb(),nE=kf(),iE=xb();Ob.exports={xml2js:eE,xml2json:tE,js2xml:nE,json2xml:iE}});var Db=Re(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.convertEntityTypeAnnotations=Mt.convertPropertyAnnotations=Mt.convertNavigationPropertyAnnotations=Mt.convertEntitySetAnnotations=Mt.convertGenericAnnotations=Mt.convertV2Annotations=void 0;function oE(e,t,n){let i=[];switch(t){case"EntitySet":Fb(e,i);break;case"EntityType":Vb(e,i);break;case"NavigationProperty":Lb(e,n,i);break;case"Property":Nb(e,n,i);break;case"Singleton":break;default:break}return Ib(e,n,i),i}r(oE,"convertV2Annotations");Mt.convertV2Annotations=oE;function Ib(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(Ib,"convertGenericAnnotations");Mt.convertGenericAnnotations=Ib;function Fb(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(Fb,"convertEntitySetAnnotations");Mt.convertEntitySetAnnotations=Fb;function Lb(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(Lb,"convertNavigationPropertyAnnotations");Mt.convertNavigationPropertyAnnotations=Lb;function Nb(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(Nb,"convertPropertyAnnotations");Mt.convertPropertyAnnotations=Nb;function Vb(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(Vb,"convertEntityTypeAnnotations");Mt.convertEntityTypeAnnotations=Vb});var Ub=Re(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.parse=void 0;var aE=$a(),ge=$f(),wa=Db(),Vs=/^Collection\((.+)\)$/;function rE(e){return e.Type!==null&&e.Type!==void 0}r(rE,"isV4NavProperty");function sE(e){return e.map(t=>t._attributes.Name)}r(sE,"getEntityTypeKeys");function $b(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Uo(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 l=(0,wa.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Bi(s.fullyQualifiedName,l)),o},{entityProperties:[],entityKeys:[]})}r($b,"parseProperties");function lE(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(lE,"parseReferentialConstraint");function cE(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,ge.ensureArray)(i.Principal.PropertyRef),l=(0,ge.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,ge.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let f=s.indexOf(c);n.push({sourceTypeName:o.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[f]._attributes.Name})}}return n},[])}r(cE,"parseV2ReferentialConstraint");function wb(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(rE(s)){let l=s.Type.match(Vs),c=l!==null,f=Dn(l?l[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:c,targetTypeName:f,referentialConstraint:lE((0,ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,f)})}else{let{Relationship:l,ToRole:c,FromRole:f}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:f});let p=(0,wa.convertV2Annotations)(s,"NavigationProperty",s.Name);p.length>0&&i.push(Bi(`${n}/${s.Name}`,p))}return o},[])}r(wb,"parseNavigationProperties");function fE(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(fE,"parseAssociationSets");function pE(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:o,referentialConstraints:cE((0,ge.ensureArray)(n.ReferentialConstraint),o)}})}r(pE,"parseAssociations");function uE(e,t,n){return e.reduce((i,o)=>{let a=o.Key?sE((0,ge.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:l,entityKeys:c}=$b((0,ge.ensureArray)(o.Property),a,s,t),f=wb((0,ge.ensureArray)(o.NavigationProperty),o,s,t),p={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:f},u=(0,wa.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(Bi(p.fullyQualifiedName,u)),i.push(p),i},[])}r(uE,"parseEntityTypes");function dE(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=$b((0,ge.ensureArray)(o.Property),[],a,t),l=wb((0,ge.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}r(dE,"parseComplexTypes");function gE(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(gE,"parseTypeDefinitions");function mE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ge.ensureArray)(a.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Dn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,wa.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(Bi(l.fullyQualifiedName,c)),l})}r(mE,"parseEntitySets");function yE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ge.ensureArray)(a.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Dn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,wa.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(Bi(l.fullyQualifiedName,c)),l})}r(yE,"parseSingletons");function jb(e,t,n){return e.map(i=>{let o=(0,ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(c=>Uo(c._attributes.Type).type).join(","):s=a?Uo(o[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Uo(o[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:o.map(c=>{let{isCollection:f,type:p}=Uo(c._attributes.Type),u={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:p,isCollection:f};return c._attributes.MaxLength&&(u.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(u.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(u.scale=parseInt(c._attributes.Scale,10)),u.nullable=c._attributes.Nullable!=="false",u}),returnType:i.ReturnType?Uo(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Vs)!==null:!1}})}r(jb,"parseActions");function hE(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,ge.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(Vs)!==null:!1}})}r(hE,"parseV2FunctionImport");function Rb(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:Dn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Dn(o)}})}r(Rb,"parseActionImports");function bE(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(p=>p!=="Property");l.name=a.Property;let f=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Ns(s,f,n,!1):c&&(l.value=Mb({[c]:a[c]},f,n)),i.Annotation){let p=js((0,ge.ensureArray)(i.Annotation),f,n);p&&p.length>0&&n.push(Bi(f,p))}}return l})}r(bE,"parsePropertyValues");function Ds(e,t,n){let i=js((0,ge.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Dn(e._attributes.Type):void 0,propertyValues:bE((0,ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Ds,"parseRecord");function zn(e,t){return e[t]!=null}r(zn,"isExpressionOfType");function Ls(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(Ls,"parseModelPath");function Bf(e,t,n){if(zn(e,"Record")){let i=(0,ge.ensureArray)(e.Record).map((o,a)=>Ds(o,t+"/"+a,n));return i.type="Record",i}else if(zn(e,"PropertyPath")){let i=(0,ge.ensureArray)(e.PropertyPath).map(o=>Ls(o,"PropertyPath"));return i.type="PropertyPath",i}else if(zn(e,"NavigationPropertyPath")){let i=(0,ge.ensureArray)(e.NavigationPropertyPath).map(o=>Ls(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(zn(e,"String")){let i=(0,ge.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(zn(e,"AnnotationPath")){let i=(0,ge.ensureArray)(e.AnnotationPath).map(o=>Ls(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(zn(e,"Path")){let i=(0,ge.ensureArray)(e.Path).map(o=>Ls(o,"Path"));return i.type="Path",i}else if(zn(e,"If")){let i=(0,ge.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(Bf,"parseCollection");function Ze(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=>Ns({[i]:o},"",[],!0))):n.push(Ns({[i]:e[i]},"",[],!0))}),n}r(Ze,"parseChildren");function Mb(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:Bf(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ds(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:Ze(e.Function)};case"And":return{type:"And",$And:Ze(e.And)};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};case"If":return{type:"If",$If:Ze(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(Mb,"parseInlineExpression");function Ns(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:Ze(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:Bf(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ds(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ze(e.And)};case"Ne":return{type:"Ne",$Ne:Ze(e.Ne)};case"Not":return{type:"Not",$Not:Ze(e.Not)[0]};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"If":return{type:"If",$If:Ze(e.If)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(Ns,"parseExpression");function TE(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Dn(i),qualifier:o},l=`${t}@${Dn(i)}`;if(o!==""&&o!==void 0&&(l+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=Mb(a,l,n)),e.Annotation){let f=js((0,ge.ensureArray)(e.Annotation),l,n);f&&f.length>0&&(s.annotations=f)}let c=Object.keys(e).filter(f=>f!=="_attributes"&&f!=="Annotation");return zn(e,"Record")?s.record=Ds(e.Record,l,n):zn(e,"Collection")?s.collection=Bf(e.Collection,l,n):c.length===1?s.value=Ns({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(TE,"parseAnnotation");function js(e,t,n){return e.map(i=>TE(i,t,n))}r(js,"parseAnnotations");function Bi(e,t){return{target:e,annotations:t}}r(Bi,"createAnnotationList");function vE(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Bi(Dn(n._attributes.Target),js((0,ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(vE,"parseAnnotationLists");function SE(e,t,n){let i=e._attributes.Namespace,o=[],a=uE((0,ge.ensureArray)(e.EntityType),o,i),s=dE((0,ge.ensureArray)(e.ComplexType),o,i),l=gE((0,ge.ensureArray)(e.TypeDefinition),i),c=[],f=[],p=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],b=[];if(e.EntityContainer)if(c=mE((0,ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),f=yE((0,ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),p=fE((0,ge.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(hE((0,ge.ensureArray)(e.EntityContainer.FunctionImport),c,u.fullyQualifiedName));else if(t==="4.0")b=b.concat(Rb((0,ge.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),b=b.concat(Rb((0,ge.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(m=m.concat(jb((0,ge.ensureArray)(e.Action),i,!1)),m=m.concat(jb((0,ge.ensureArray)(e.Function),i,!0)));let v=pE((0,ge.ensureArray)(e.Association),i);vE((0,ge.ensureArray)(e.Annotations),o);let L={};return L[n]=o,{associations:v,associationSets:p,annotations:L,entityContainer:u,namespace:i,entitySets:c,singletons:f,complexTypes:s,typeDefinitions:l,actions:m,actionImports:b,entityTypes:a}}r(SE,"parseSchema");function PE(e){return e.reduce((t,n)=>((0,ge.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(PE,"parseReferences");var _f={};function Uo(e){let t=e.match(Vs),n=t?t[1]:e,i=Dn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Uo,"unaliasType");function Dn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let c=e.substring(o,a);i.push((t=_f[c])!==null&&t!==void 0?t:c),o=a,s=!1}n.includes(l)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Dn,"unalias");function CE(e){let t=e.reduce((b,v)=>b.concat(v.associations),[]),n=e.reduce((b,v)=>b.concat(v.associationSets),[]),i=e.reduce((b,v)=>b.concat(v.entitySets),[]),o=e.reduce((b,v)=>b.concat(v.singletons),[]),a=e.reduce((b,v)=>b.concat(v.entityTypes),[]),s=e.reduce((b,v)=>b.concat(v.actions),[]),l=e.reduce((b,v)=>b.concat(v.actionImports),[]),c=e.reduce((b,v)=>b.concat(v.complexTypes),[]),f=e.reduce((b,v)=>b.concat(v.typeDefinitions),[]),p={};e.forEach(b=>{p=Object.assign(p,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 v=a.find(L=>L.fullyQualifiedName===b.entityTypeName);v==null||v.navigationProperties.forEach(L=>{let N=L,z=n.find(ne=>ne.association===N.relationship);if(z){let ne=z.associationEnd.find(ie=>ie.entitySet!==b.fullyQualifiedName);ne&&(b.navigationPropertyBinding[L.name]=ne.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(v=>{let L=v,N=t.find(z=>z.fullyQualifiedName===L.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?L.referentialConstraint=N.referentialConstraints:L.referentialConstraint=N.referentialConstraints.map(z=>({sourceTypeName:z.targetTypeName,sourceProperty:z.targetProperty,targetTypeName:z.sourceTypeName,targetProperty:z.sourceProperty})))})}),{associations:t,associationSets:n,annotations:p,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:c,typeDefinitions:f,actions:s,actionImports:l,entityTypes:a}}r(CE,"mergeSchemas");function AE(e,t){_f=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{_f[n._attributes.Alias]=n._attributes.Namespace})}r(AE,"createAliasMap");function EE(e,t="serviceFile"){let n=(0,aE.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=PE((0,ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));AE(a,o);let s=o.map(c=>SE(c,i,t));return new ge.RawMetadataInstance(t,i,CE(s),a)}r(EE,"parse");Rs.parse=EE});var kb=Re(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.parse=ko.merge=void 0;var xE=tb();Object.defineProperty(ko,"merge",{enumerable:!0,get:r(function(){return xE.merge},"get")});var OE=Ub();Object.defineProperty(ko,"parse",{enumerable:!0,get:r(function(){return OE.parse},"get")})});var eT=Re(()=>{var Zb;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(c,f){return function(p,u){Object.defineProperty(c,p,{configurable:!0,writable:!0,value:u}),f&&f(p,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 l(){return a()||s()}r(l,"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",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,f=!l&&!c,p={create:l?function(){return ef(Object.create(null))}:c?function(){return ef({__proto__:null})}:function(){return ef({})},has:f?function(A,x){return i.call(A,x)}:function(A,x){return x in A},get:f?function(A,x){return i.call(A,x)?A[x]:void 0}:function(A,x){return A[x]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:zS(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:YS(),v=typeof WeakMap=="function"?WeakMap:ZS(),L=o?Symbol.for("@reflect-metadata:registry"):void 0,N=JS(),z=qS(N);function ne(A,x,V,M){if(fe(V)){if(!Ye(A))throw new TypeError;if(!yt(x))throw new TypeError;return pi(A,x)}else{if(!Ye(A))throw new TypeError;if(!qe(x))throw new TypeError;if(!qe(M)&&!fe(M)&&!Kn(M))throw new TypeError;return Kn(M)&&(M=void 0),V=Te(V),Fo(A,x,V,M)}}r(ne,"decorate"),t("decorate",ne);function ie(A,x){function V(M,ae){if(!qe(M))throw new TypeError;if(!fe(ae)&&!St(ae))throw new TypeError;at(A,x,M,ae)}return r(V,"decorator"),V}r(ie,"metadata"),t("metadata",ie);function ce(A,x,V,M){if(!qe(V))throw new TypeError;return fe(M)||(M=Te(M)),at(A,x,V,M)}r(ce,"defineMetadata"),t("defineMetadata",ce);function Y(A,x,V){if(!qe(x))throw new TypeError;return fe(V)||(V=Te(V)),$t(A,x,V)}r(Y,"hasMetadata"),t("hasMetadata",Y);function oe(A,x,V){if(!qe(x))throw new TypeError;return fe(V)||(V=Te(V)),Zt(A,x,V)}r(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Se(A,x,V){if(!qe(x))throw new TypeError;return fe(V)||(V=Te(V)),Oe(A,x,V)}r(Se,"getMetadata"),t("getMetadata",Se);function P(A,x,V){if(!qe(x))throw new TypeError;return fe(V)||(V=Te(V)),ki(A,x,V)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function Lt(A,x){if(!qe(A))throw new TypeError;return fe(x)||(x=Te(x)),wt(A,x)}r(Lt,"getMetadataKeys"),t("getMetadataKeys",Lt);function Yt(A,x){if(!qe(A))throw new TypeError;return fe(x)||(x=Te(x)),vt(A,x)}r(Yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Yt);function Me(A,x,V){if(!qe(x))throw new TypeError;if(fe(V)||(V=Te(V)),!qe(x))throw new TypeError;fe(V)||(V=Te(V));var M=Ia(x,V,!1);return fe(M)?!1:M.OrdinaryDeleteMetadata(A,x,V)}r(Me,"deleteMetadata"),t("deleteMetadata",Me);function pi(A,x){for(var V=A.length-1;V>=0;--V){var M=A[V],ae=M(x);if(!fe(ae)&&!Kn(ae)){if(!yt(ae))throw new TypeError;x=ae}}return x}r(pi,"DecorateConstructor");function Fo(A,x,V,M){for(var ae=A.length-1;ae>=0;--ae){var nt=A[ae],ct=nt(x,V,M);if(!fe(ct)&&!Kn(ct)){if(!qe(ct))throw new TypeError;M=ct}}return M}r(Fo,"DecorateProperty");function $t(A,x,V){var M=Zt(A,x,V);if(M)return!0;var ae=No(x);return Kn(ae)?!1:$t(A,ae,V)}r($t,"OrdinaryHasMetadata");function Zt(A,x,V){var M=Ia(x,V,!1);return fe(M)?!1:D(M.OrdinaryHasOwnMetadata(A,x,V))}r(Zt,"OrdinaryHasOwnMetadata");function Oe(A,x,V){var M=Zt(A,x,V);if(M)return ki(A,x,V);var ae=No(x);if(!Kn(ae))return Oe(A,ae,V)}r(Oe,"OrdinaryGetMetadata");function ki(A,x,V){var M=Ia(x,V,!1);if(!fe(M))return M.OrdinaryGetOwnMetadata(A,x,V)}r(ki,"OrdinaryGetOwnMetadata");function at(A,x,V,M){var ae=Ia(V,M,!0);ae.OrdinaryDefineOwnMetadata(A,x,V,M)}r(at,"OrdinaryDefineOwnMetadata");function wt(A,x){var V=vt(A,x),M=No(A);if(M===null)return V;var ae=wt(M,x);if(ae.length<=0)return V;if(V.length<=0)return ae;for(var nt=new b,ct=[],Pe=0,H=V;Pe<H.length;Pe++){var J=H[Pe],X=nt.has(J);X||(nt.add(J),ct.push(J))}for(var ee=0,Ee=ae;ee<Ee.length;ee++){var J=Ee[ee],X=nt.has(J);X||(nt.add(J),ct.push(J))}return ct}r(wt,"OrdinaryMetadataKeys");function vt(A,x){var V=Ia(A,x,!1);return V?V.OrdinaryOwnMetadataKeys(A,x):[]}r(vt,"OrdinaryOwnMetadataKeys");function Qn(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}r(Qn,"Type");function fe(A){return A===void 0}r(fe,"IsUndefined");function Kn(A){return A===null}r(Kn,"IsNull");function ss(A){return typeof A=="symbol"}r(ss,"IsSymbol");function qe(A){return typeof A=="object"?A!==null:typeof A=="function"}r(qe,"IsObject");function h(A,x){switch(Qn(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var V=x===3?"string":x===5?"number":"default",M=rt(A,a);if(M!==void 0){var ae=M.call(A,V);if(qe(ae))throw new TypeError;return ae}return y(A,V==="default"?"number":V)}r(h,"ToPrimitive");function y(A,x){if(x==="string"){var V=A.toString;if(Ge(V)){var M=V.call(A);if(!qe(M))return M}var ae=A.valueOf;if(Ge(ae)){var M=ae.call(A);if(!qe(M))return M}}else{var ae=A.valueOf;if(Ge(ae)){var M=ae.call(A);if(!qe(M))return M}var nt=A.toString;if(Ge(nt)){var M=nt.call(A);if(!qe(M))return M}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(A){return!!A}r(D,"ToBoolean");function C(A){return""+A}r(C,"ToString");function Te(A){var x=h(A,3);return ss(x)?x:C(x)}r(Te,"ToPropertyKey");function Ye(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}r(Ye,"IsArray");function Ge(A){return typeof A=="function"}r(Ge,"IsCallable");function yt(A){return typeof A=="function"}r(yt,"IsConstructor");function St(A){switch(Qn(A)){case 3:return!0;case 4:return!0;default:return!1}}r(St,"IsPropertyKey");function Fn(A,x){return A===x||A!==A&&x!==x}r(Fn,"SameValueZero");function rt(A,x){var V=A[x];if(V!=null){if(!Ge(V))throw new TypeError;return V}}r(rt,"GetMethod");function en(A){var x=rt(A,s);if(!Ge(x))throw new TypeError;var V=x.call(A);if(!qe(V))throw new TypeError;return V}r(en,"GetIterator");function ls(A){return A.value}r(ls,"IteratorValue");function Oa(A){var x=A.next();return x.done?!1:x}r(Oa,"IteratorStep");function Lo(A){var x=A.return;x&&x.call(A)}r(Lo,"IteratorClose");function No(A){var x=Object.getPrototypeOf(A);if(typeof A!="function"||A===u||x!==u)return x;var V=A.prototype,M=V&&Object.getPrototypeOf(V);if(M==null||M===Object.prototype)return x;var ae=M.constructor;return typeof ae!="function"||ae===A?x:ae}r(No,"OrdinaryGetPrototypeOf");function KS(){var A;!fe(L)&&typeof n.Reflect<"u"&&!(L in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(A=XS(n.Reflect));var x,V,M,ae=new v,nt={registerProvider:ct,getProvider:H,setProvider:X};return nt;function ct(ee){if(!Object.isExtensible(nt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case A===ee:break;case fe(x):x=ee;break;case x===ee:break;case fe(V):V=ee;break;case V===ee:break;default:M===void 0&&(M=new b),M.add(ee);break}}function Pe(ee,Ee){if(!fe(x)){if(x.isProviderFor(ee,Ee))return x;if(!fe(V)){if(V.isProviderFor(ee,Ee))return x;if(!fe(M))for(var Ke=en(M);;){var it=Oa(Ke);if(!it)return;var dn=ls(it);if(dn.isProviderFor(ee,Ee))return Lo(Ke),dn}}}if(!fe(A)&&A.isProviderFor(ee,Ee))return A}function H(ee,Ee){var Ke=ae.get(ee),it;return fe(Ke)||(it=Ke.get(Ee)),fe(it)&&(it=Pe(ee,Ee),fe(it)||(fe(Ke)&&(Ke=new m,ae.set(ee,Ke)),Ke.set(Ee,it))),it}function J(ee){if(fe(ee))throw new TypeError;return x===ee||V===ee||!fe(M)&&M.has(ee)}function X(ee,Ee,Ke){if(!J(Ke))throw new Error("Metadata provider not registered.");var it=H(ee,Ee);if(it!==Ke){if(!fe(it))return!1;var dn=ae.get(ee);fe(dn)&&(dn=new m,ae.set(ee,dn)),dn.set(Ee,Ke)}return!0}}r(KS,"CreateMetadataRegistry");function JS(){var A;return!fe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(A=n.Reflect[L]),fe(A)&&(A=KS()),!fe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,L,{enumerable:!1,configurable:!1,writable:!1,value:A}),A}r(JS,"GetOrCreateMetadataRegistry");function qS(A){var x=new v,V={isProviderFor:r(function(J,X){var ee=x.get(J);return fe(ee)?!1:ee.has(X)},"isProviderFor"),OrdinaryDefineOwnMetadata:ct,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:nt,OrdinaryOwnMetadataKeys:Pe,OrdinaryDeleteMetadata:H};return N.registerProvider(V),V;function M(J,X,ee){var Ee=x.get(J),Ke=!1;if(fe(Ee)){if(!ee)return;Ee=new m,x.set(J,Ee),Ke=!0}var it=Ee.get(X);if(fe(it)){if(!ee)return;if(it=new m,Ee.set(X,it),!A.setProvider(J,X,V))throw Ee.delete(X),Ke&&x.delete(J),new Error("Wrong provider for target.")}return it}r(M,"GetOrCreateMetadataMap");function ae(J,X,ee){var Ee=M(X,ee,!1);return fe(Ee)?!1:D(Ee.has(J))}r(ae,"OrdinaryHasOwnMetadata");function nt(J,X,ee){var Ee=M(X,ee,!1);if(!fe(Ee))return Ee.get(J)}r(nt,"OrdinaryGetOwnMetadata");function ct(J,X,ee,Ee){var Ke=M(ee,Ee,!0);Ke.set(J,X)}r(ct,"OrdinaryDefineOwnMetadata");function Pe(J,X){var ee=[],Ee=M(J,X,!1);if(fe(Ee))return ee;for(var Ke=Ee.keys(),it=en(Ke),dn=0;;){var kg=Oa(it);if(!kg)return ee.length=dn,ee;var eP=ls(kg);try{ee[dn]=eP}catch(tP){try{Lo(it)}finally{throw tP}}dn++}}r(Pe,"OrdinaryOwnMetadataKeys");function H(J,X,ee){var Ee=M(X,ee,!1);if(fe(Ee)||!Ee.delete(J))return!1;if(Ee.size===0){var Ke=x.get(X);fe(Ke)||(Ke.delete(ee),Ke.size===0&&x.delete(Ke))}return!0}r(H,"OrdinaryDeleteMetadata")}r(qS,"CreateMetadataProvider");function XS(A){var x=A.defineMetadata,V=A.hasOwnMetadata,M=A.getOwnMetadata,ae=A.getOwnMetadataKeys,nt=A.deleteMetadata,ct=new v,Pe={isProviderFor:r(function(H,J){var X=ct.get(H);return!fe(X)&&X.has(J)?!0:ae(H,J).length?(fe(X)&&(X=new b,ct.set(H,X)),X.add(J),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:nt};return Pe}r(XS,"CreateFallbackProvider");function Ia(A,x,V){var M=N.getProvider(A,x);if(!fe(M))return M;if(V){if(N.setProvider(A,x,z))return z;throw new Error("Illegal state.")}}r(Ia,"GetMetadataProvider");function zS(){var A={},x=[],V=function(){function Pe(H,J,X){this._index=0,this._keys=H,this._values=J,this._selector=X}return r(Pe,"MapIterator"),Pe.prototype["@@iterator"]=function(){return this},Pe.prototype[s]=function(){return this},Pe.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var J=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:J,done:!1}}return{value:void 0,done:!0}},Pe.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),H},Pe.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:H,done:!0}},Pe}(),M=function(){function Pe(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return r(Pe,"Map"),Object.defineProperty(Pe.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Pe.prototype.has=function(H){return this._find(H,!1)>=0},Pe.prototype.get=function(H){var J=this._find(H,!1);return J>=0?this._values[J]:void 0},Pe.prototype.set=function(H,J){var X=this._find(H,!0);return this._values[X]=J,this},Pe.prototype.delete=function(H){var J=this._find(H,!1);if(J>=0){for(var X=this._keys.length,ee=J+1;ee<X;ee++)this._keys[ee-1]=this._keys[ee],this._values[ee-1]=this._values[ee];return this._keys.length--,this._values.length--,Fn(H,this._cacheKey)&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},Pe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},Pe.prototype.keys=function(){return new V(this._keys,this._values,ae)},Pe.prototype.values=function(){return new V(this._keys,this._values,nt)},Pe.prototype.entries=function(){return new V(this._keys,this._values,ct)},Pe.prototype["@@iterator"]=function(){return this.entries()},Pe.prototype[s]=function(){return this.entries()},Pe.prototype._find=function(H,J){if(!Fn(this._cacheKey,H)){this._cacheIndex=-1;for(var X=0;X<this._keys.length;X++)if(Fn(this._keys[X],H)){this._cacheIndex=X;break}}return this._cacheIndex<0&&J&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},Pe}();return M;function ae(Pe,H){return Pe}function nt(Pe,H){return H}function ct(Pe,H){return[Pe,H]}}r(zS,"CreateMapPolyfill");function YS(){var A=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(V){return this._map.has(V)},x.prototype.add=function(V){return this._map.set(V,V),this},x.prototype.delete=function(V){return this._map.delete(V)},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 A}r(YS,"CreateSetPolyfill");function ZS(){var A=16,x=p.create(),V=M();return function(){function H(){this._key=M()}return r(H,"WeakMap"),H.prototype.has=function(J){var X=ae(J,!1);return X!==void 0?p.has(X,this._key):!1},H.prototype.get=function(J){var X=ae(J,!1);return X!==void 0?p.get(X,this._key):void 0},H.prototype.set=function(J,X){var ee=ae(J,!0);return ee[this._key]=X,this},H.prototype.delete=function(J){var X=ae(J,!1);return X!==void 0?delete X[this._key]:!1},H.prototype.clear=function(){this._key=M()},H}();function M(){var H;do H="@@WeakMap@@"+Pe();while(p.has(x,H));return x[H]=!0,H}function ae(H,J){if(!i.call(H,V)){if(!J)return;Object.defineProperty(H,V,{value:p.create()})}return H[V]}function nt(H,J){for(var X=0;X<J;++X)H[X]=Math.random()*255|0;return H}function ct(H){if(typeof Uint8Array=="function"){var J=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(J):typeof msCrypto<"u"?msCrypto.getRandomValues(J):nt(J,H),J}return nt(new Array(H),H)}function Pe(){var H=ct(A);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var J="",X=0;X<A;++X){var ee=H[X];(X===4||X===6||X===8)&&(J+="-"),ee<16&&(J+="0"),J+=ee.toString(16).toLowerCase()}return J}}r(ZS,"CreateWeakMapPolyfill");function ef(A){return A.__=void 0,delete A.__,A}r(ef,"MakeDictionary")})})(Zb||(Zb={}))});var rT=Re((zD,aT)=>{var zE=0,oT="changeUtils: ";function YE(){return"id-"+new Date().valueOf()+"-"+zE++}r(YE,"uid");function ZE(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(ZE,"appendComponentToReference");function ex(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return ZE(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(ex,"getFlexReference");function tx(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(tx,"getAppVersion");function nx(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(nx,"getProjectId");function iT(e){return JSON.stringify({fileName:e.id||YE().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:oT+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(iT,"createString");aT.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(oT,""),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=ex(t),e.appVersion=tx(t),e.projectId=nx(t,e.reference),iT(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 iT(e)},"toString")}});var lT=Re((ZD,sT)=>{sT.exports={change:rT()}});var YT=Re(an=>{"use strict";var Fx=/[|\\{}()[\]^$+*?.]/g,Lx=Object.prototype.hasOwnProperty,xp=r(function(e,t){return Lx.apply(e,[t])},"hasOwn");an.escapeRegExpChars=function(e){return e?String(e).replace(Fx,"\\$&"):""};var Nx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},Vx=/[&<>'"]/g;function Dx(e){return Nx[e]||e}r(Dx,"encode_char");var jx=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,18 +37,18 @@ Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns==
37
37
  function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
- `;an.escapeXML=function(e){return e==null?"":String(e).replace(Nx,Dx)};function zT(){return Function.prototype.toString.call(this)+`;
41
- `+jx}r(zT,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(an.escapeXML,"toString",{value:zT}):an.escapeXML.toString=zT}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}an.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)xf(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};an.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var o=n[i];if(typeof t[o]<"u"){if(!xf(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};an.cache={_data:{},set:r(function(e,t){this._data[e]=t},"set"),get:r(function(e){return this._data[e]},"get"),remove:r(function(e){delete this._data[e]},"remove"),reset:r(function(){this._data={}},"reset")};an.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};an.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();an.hasOwnOnlyObject=function(e){var t=an.createNullProtoObjWherePossible();for(var n in e)xf(e,n)&&(t[n]=e[n]);return t}});var ZT=Re((m0,Rx)=>{Rx.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var lv=Re(Ne=>{"use strict";var Of=require("fs"),Za=require("path"),ot=YT(),ev=!1,$x=ZT().version,wx="<",Mx=">",Ux="%",rv="locals",kx="ejs",_x="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",sv=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Bx=sv.concat("cache"),tv=/^\uFEFF/,If=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ne.cache=ot.cache;Ne.fileLoader=Of.readFileSync;Ne.localsName=rv;Ne.promiseImpl=new Function("return this;")().Promise;Ne.resolveInclude=function(e,t,n){var i=Za.dirname,o=Za.extname,a=Za.resolve,s=a(n?t:i(t),e),l=o(e);return l||(s+=".ejs"),s};function nv(e,t){var n;if(t.some(function(i){return n=Ne.resolveInclude(e,i,!0),Of.existsSync(n)}))return n}r(nv,"resolvePaths");function Hx(e,t){var n,i,o=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=nv(e,t.root):n=Ne.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Ne.resolveInclude(e,t.filename),Of.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=nv(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}r(Hx,"getIncludePath");function er(e,t){var n,i=e.filename,o=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Ne.cache.get(i),n)return n;o||(t=iv(i).toString().replace(tv,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=iv(i).toString().replace(tv,"")}return n=Ne.compile(t,e),e.cache&&Ne.cache.set(i,n),n}r(er,"handleCache");function Gx(e,t,n){var i;if(n){try{i=er(e)(t)}catch(o){return n(o)}n(null,i)}else{if(typeof Ne.promiseImpl=="function")return new Ne.promiseImpl(function(o,a){try{i=er(e)(t),o(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}r(Gx,"tryHandleCache");function iv(e){return Ne.fileLoader(e)}r(iv,"fileLoader");function Wx(e,t){var n=ot.shallowCopy(ot.createNullProtoObjWherePossible(),t);if(n.filename=Hx(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return er(n,i.template)}return er(n)}r(Wx,"includeFile");function ov(e,t,n,i,o){var a=t.split(`
42
- `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),c=o(n),p=a.slice(s,l).map(function(f,u){var m=u+s+1;return(m==i?" >> ":" ")+m+"| "+f}).join(`
40
+ `;an.escapeXML=function(e){return e==null?"":String(e).replace(Vx,Dx)};function zT(){return Function.prototype.toString.call(this)+`;
41
+ `+jx}r(zT,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(an.escapeXML,"toString",{value:zT}):an.escapeXML.toString=zT}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}an.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)xp(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};an.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var o=n[i];if(typeof t[o]<"u"){if(!xp(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};an.cache={_data:{},set:r(function(e,t){this._data[e]=t},"set"),get:r(function(e){return this._data[e]},"get"),remove:r(function(e){delete this._data[e]},"remove"),reset:r(function(){this._data={}},"reset")};an.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};an.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();an.hasOwnOnlyObject=function(e){var t=an.createNullProtoObjWherePossible();for(var n in e)xp(e,n)&&(t[n]=e[n]);return t}});var ZT=Re((m0,Rx)=>{Rx.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var lv=Re(Ve=>{"use strict";var Ip=require("fs"),Za=require("path"),ot=YT(),ev=!1,$x=ZT().version,wx="<",Mx=">",Ux="%",rv="locals",kx="ejs",_x="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",sv=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Bx=sv.concat("cache"),tv=/^\uFEFF/,Op=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ve.cache=ot.cache;Ve.fileLoader=Ip.readFileSync;Ve.localsName=rv;Ve.promiseImpl=new Function("return this;")().Promise;Ve.resolveInclude=function(e,t,n){var i=Za.dirname,o=Za.extname,a=Za.resolve,s=a(n?t:i(t),e),l=o(e);return l||(s+=".ejs"),s};function nv(e,t){var n;if(t.some(function(i){return n=Ve.resolveInclude(e,i,!0),Ip.existsSync(n)}))return n}r(nv,"resolvePaths");function Hx(e,t){var n,i,o=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=nv(e,t.root):n=Ve.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Ve.resolveInclude(e,t.filename),Ip.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=nv(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}r(Hx,"getIncludePath");function er(e,t){var n,i=e.filename,o=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Ve.cache.get(i),n)return n;o||(t=iv(i).toString().replace(tv,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=iv(i).toString().replace(tv,"")}return n=Ve.compile(t,e),e.cache&&Ve.cache.set(i,n),n}r(er,"handleCache");function Gx(e,t,n){var i;if(n){try{i=er(e)(t)}catch(o){return n(o)}n(null,i)}else{if(typeof Ve.promiseImpl=="function")return new Ve.promiseImpl(function(o,a){try{i=er(e)(t),o(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}r(Gx,"tryHandleCache");function iv(e){return Ve.fileLoader(e)}r(iv,"fileLoader");function Wx(e,t){var n=ot.shallowCopy(ot.createNullProtoObjWherePossible(),t);if(n.filename=Hx(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return er(n,i.template)}return er(n)}r(Wx,"includeFile");function ov(e,t,n,i,o){var a=t.split(`
42
+ `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),c=o(n),f=a.slice(s,l).map(function(p,u){var m=u+s+1;return(m==i?" >> ":" ")+m+"| "+p}).join(`
43
43
  `);throw e.path=c,e.message=(c||"ejs")+":"+i+`
44
- `+p+`
44
+ `+f+`
45
45
 
46
- `+e.message,e}r(ov,"rethrow");function av(e){return e.replace(/;(\s*$)/,"$1")}r(av,"stripSemi");Ne.compile=r(function(t,n){var i;return n&&n.scope&&(ev||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),ev=!0),n.context||(n.context=n.scope),delete n.scope),i=new ft(t,n),i.compile()},"compile");Ne.render=function(e,t,n){var i=t||ot.createNullProtoObjWherePossible(),o=n||ot.createNullProtoObjWherePossible();return arguments.length==2&&ot.shallowCopyFromList(o,i,sv),er(o,e)(i)};Ne.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},o,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?ot.shallowCopy(i,e.pop()):(o.settings&&(o.settings.views&&(i.views=o.settings.views),o.settings["view cache"]&&(i.cache=!0),a=o.settings["view options"],a&&ot.shallowCopy(i,a)),ot.shallowCopyFromList(i,o,Bx)),i.filename=t):o=ot.createNullProtoObjWherePossible(),Gx(i,o,n)};Ne.Template=ft;Ne.clearCache=function(){Ne.cache.reset()};function ft(e,t){var n=ot.hasOwnOnlyObject(t),i=ot.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||ot.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Ne.openDelimiter||wx,i.closeDelimiter=n.closeDelimiter||Ne.closeDelimiter||Mx,i.delimiter=n.delimiter||Ne.delimiter||Ux,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Ne.localsName||rv,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}r(ft,"Template");ft.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};ft.prototype={createRegex:r(function(){var e=_x,t=ot.escapeRegExpChars(this.opts.delimiter),n=ot.escapeRegExpChars(this.opts.openDelimiter),i=ot.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:r(function(){var e,t,n=this.opts,i="",o="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
46
+ `+e.message,e}r(ov,"rethrow");function av(e){return e.replace(/;(\s*$)/,"$1")}r(av,"stripSemi");Ve.compile=r(function(t,n){var i;return n&&n.scope&&(ev||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),ev=!0),n.context||(n.context=n.scope),delete n.scope),i=new pt(t,n),i.compile()},"compile");Ve.render=function(e,t,n){var i=t||ot.createNullProtoObjWherePossible(),o=n||ot.createNullProtoObjWherePossible();return arguments.length==2&&ot.shallowCopyFromList(o,i,sv),er(o,e)(i)};Ve.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},o,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?ot.shallowCopy(i,e.pop()):(o.settings&&(o.settings.views&&(i.views=o.settings.views),o.settings["view cache"]&&(i.cache=!0),a=o.settings["view options"],a&&ot.shallowCopy(i,a)),ot.shallowCopyFromList(i,o,Bx)),i.filename=t):o=ot.createNullProtoObjWherePossible(),Gx(i,o,n)};Ve.Template=pt;Ve.clearCache=function(){Ve.cache.reset()};function pt(e,t){var n=ot.hasOwnOnlyObject(t),i=ot.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||ot.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Ve.openDelimiter||wx,i.closeDelimiter=n.closeDelimiter||Ve.closeDelimiter||Mx,i.delimiter=n.delimiter||Ve.delimiter||Ux,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Ve.localsName||rv,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}r(pt,"Template");pt.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};pt.prototype={createRegex:r(function(){var e=_x,t=ot.escapeRegExpChars(this.opts.delimiter),n=ot.escapeRegExpChars(this.opts.openDelimiter),i=ot.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:r(function(){var e,t,n=this.opts,i="",o="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
- `,n.outputFunctionName){if(!If.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
- `}if(n.localsName&&!If.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
50
- `,p=0;p<n.destructuredLocals.length;p++){var f=n.destructuredLocals[p];if(!If.test(f))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(c+=`,
51
- `),c+=f+" = __locals."+f}i+=c+`;
48
+ `,n.outputFunctionName){if(!Op.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
+ `}if(n.localsName&&!Op.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
50
+ `,f=0;f<n.destructuredLocals.length;f++){var p=n.destructuredLocals[f];if(!Op.test(p))throw new Error("destructuredLocals["+f+"] is not a valid JS identifier.");f>0&&(c+=`,
51
+ `),c+=p+" = __locals."+p}i+=c+`;
52
52
  `}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
53
53
  `,o+=` }
54
54
  `),o+=` return __output;
@@ -68,24 +68,24 @@ try {
68
68
 
69
69
  `,v.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,v.message+="https://github.com/RyanZim/EJS-Lint",n.async||(v.message+=`
71
- `,v.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),v}var u=n.client?t:r(function(L){var V=r(function(z,ne){var ie=ot.shallowCopy(ot.createNullProtoObjWherePossible(),L);return ne&&(ie=ot.shallowCopy(ie,ne)),Wx(z,n)(ie)},"include");return t.apply(n.context,[L||ot.createNullProtoObjWherePossible(),a,V,ov])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,b=Za.basename(m,Za.extname(m));try{Object.defineProperty(u,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return u},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
71
+ `,v.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),v}var u=n.client?t:r(function(L){var N=r(function(z,ne){var ie=ot.shallowCopy(ot.createNullProtoObjWherePossible(),L);return ne&&(ie=ot.shallowCopy(ie,ne)),Wx(z,n)(ie)},"include");return t.apply(n.context,[L||ot.createNullProtoObjWherePossible(),a,N,ov])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,b=Za.basename(m,Za.extname(m));try{Object.defineProperty(u,"name",{value:b,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,l){var c;if(s.indexOf(o+i)===0&&s.indexOf(o+i+i)!==0&&(c=n[l+2],!(c==i+a||c=="-"+i+a||c=="_"+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
- `).length-1,e){case i+n:case i+n+"_":this.mode=ft.modes.EVAL;break;case i+n+"=":this.mode=ft.modes.ESCAPED;break;case i+n+"-":this.mode=ft.modes.RAW;break;case i+n+"#":this.mode=ft.modes.COMMENT;break;case i+n+n:this.mode=ft.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
75
- `;break;case n+n+o:this.mode=ft.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+o,n+o)+`")
76
- `;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==ft.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case ft.modes.EVAL:case ft.modes.ESCAPED:case ft.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
74
+ `).length-1,e){case i+n:case i+n+"_":this.mode=pt.modes.EVAL;break;case i+n+"=":this.mode=pt.modes.ESCAPED;break;case i+n+"-":this.mode=pt.modes.RAW;break;case i+n+"#":this.mode=pt.modes.COMMENT;break;case i+n+n:this.mode=pt.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
75
+ `;break;case n+n+o:this.mode=pt.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+o,n+o)+`")
76
+ `;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==pt.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case pt.modes.EVAL:case pt.modes.ESCAPED:case pt.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
- `)}switch(this.mode){case ft.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case ft.modes.ESCAPED:this.source+=" ; __append(escapeFn("+av(e)+`))
80
- `;break;case ft.modes.RAW:this.source+=" ; __append("+av(e)+`)
81
- `;break;case ft.modes.COMMENT:break;case ft.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=ot.escapeXML;Ne.__express=Ne.renderFile;Ne.VERSION=$x;Ne.name=kx;typeof window<"u"&&(window.ejs=Ne)});var Xt={};Do(Xt,{deleteConfigEntityByPath:()=>TN,exportConfig:()=>hN,exportConfigEntityByPath:()=>bN,generateSchema:()=>yN,getApiVersion:()=>CN,getChanges:()=>QS,getGenericSchema:()=>Yc,getPathToGenericSchema:()=>uS,getProject:()=>FN,importConfig:()=>vN,importProject:()=>SN,importProjectSchema:()=>PN,isDirectory:()=>EN,log:()=>k,readDirectory:()=>Ug});module.exports=rP(Xt);var Z=U(B());var F=U(B());var de=r(e=>typeof e=="string","isString"),Oa=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),hh=r(e=>e==null?"":""+e,"makeString"),VC=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),NC=/###/g,bh=r(e=>e&&e.indexOf("###")>-1?e.replace(NC,"."):e,"cleanKey"),Th=r(e=>!e||de(e),"canNotTraverseDeeper"),Fa=r((e,t,n)=>{let i=de(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(Th(e))return{};let a=bh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Th(e)?{}:{obj:e,k:bh(i[o])}},"getLastOfPath"),vh=r((e,t,n)=>{let{obj:i,k:o}=Fa(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),l=Fa(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Fa(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),DC=r((e,t,n,i)=>{let{obj:o,k:a}=Fa(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),fs=r((e,t)=>{let{obj:n,k:i}=Fa(e,t);if(n)return n[i]},"getPath"),jC=r((e,t,n)=>{let i=fs(e,n);return i!==void 0?i:fs(t,n)},"getPathWithDefaults"),xh=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):xh(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),jo=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),RC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},$C=r(e=>de(e)?e.replace(/[&<>"'\/]/g,t=>RC[t]):e,"escape"),yp=class yp{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(yp,"RegExpCache");var cp=yp,wC=[" ",",","?","!",";"],MC=new cp(20),UC=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=MC.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"),pp=r(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}o=s}return o},"deepFind"),us=r(e=>e&&e.replace("_","-"),"getCleanedCode"),kC={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},La=class La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kC,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,o){return o&&!this.debug?null:(de(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new La(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new La(this.logger,t)}};r(La,"Logger");var fp=La,Vn=new fp,hp=class hp{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){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l.apply(l,[t,...i])})}};r(hp,"EventEmitter");var $o=hp,bp=class bp extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{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){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):de(i)&&a?l.push(...i.split(a)):l.push(i)));let c=fs(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!de(i)?c:pp(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),vh(this.data,l,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(de(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=i,i=n,n=l[1]),this.addNamespaces(n);let c=fs(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?xh(c,i,a):c={...c,...i},vh(this.data,l,c),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.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}: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 ds=bp,Ih={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Sh={},hs=class hs extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),VC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.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,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!UC(t,i,o);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:de(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:de(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(f){let ce=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${ce}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${ce}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let u=this.resolve(t,n),m=u&&u.res,b=u&&u.usedKey||s,v=u&&u.exactUsedKey||s,L=Object.prototype.toString.apply(m),V=["[object Number]","[object Function]","[object RegExp]"],z=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ne=!this.i18nFormat||this.i18nFormat.handleAsObject,ie=!de(m)&&typeof m!="boolean"&&typeof m!="number";if(ne&&m&&ie&&V.indexOf(L)<0&&!(de(z)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(u.res=ce,u.usedParams=this.getUsedParamsDetails(n),u):ce}if(a){let ce=Array.isArray(m),Y=ce?[]:{},oe=ce?v:b;for(let Se in m)if(Object.prototype.hasOwnProperty.call(m,Se)){let P=`${oe}${a}${Se}`;Y[Se]=this.translate(P,{...n,joinArrays:!1,ns:l}),Y[Se]===P&&(Y[Se]=m[Se])}m=Y}}else if(ne&&de(z)&&Array.isArray(m))m=m.join(z),m&&(m=this.extendTranslation(m,t,n,i));else{let ce=!1,Y=!1,oe=n.count!==void 0&&!de(n.count),Se=hs.hasDefaultValue(n),P=oe?this.pluralResolver.getSuffix(p,n.count,n):"",Lt=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",Yt=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Me=Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${Lt}`]||n.defaultValue;!this.isValidLookup(m)&&Se&&(ce=!0,m=Me),this.isValidLookup(m)||(Y=!0,m=s);let Fo=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:m,$t=Se&&Me!==m&&this.options.updateMissing;if(Y||ce||$t){if(this.logger.log($t?"updateKey":"missingKey",p,c,s,$t?Me:m),a){let at=this.resolve(s,{...n,keySeparator:!1});at&&at.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 Zt=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(let at=0;at<Ie.length;at++)Zt.push(Ie[at]);else this.options.saveMissingTo==="all"?Zt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Zt.push(n.lng||this.language);let ki=r((at,wt,vt)=>{let Qn=Se&&vt!==m?vt:Fo;this.options.missingKeyHandler?this.options.missingKeyHandler(at,c,wt,Qn,$t,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(at,c,wt,Qn,$t,n),this.emit("missingKey",at,c,wt,m)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Zt.forEach(at=>{let wt=this.pluralResolver.getSuffixes(at,n);Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&wt.indexOf(`${this.options.pluralSeparator}zero`)<0&&wt.push(`${this.options.pluralSeparator}zero`),wt.forEach(vt=>{ki([at],s+vt,n[`defaultValue${vt}`]||Me)})}):ki(Zt,s,Me))}m=this.extendTranslation(m,t,n,u,i),Y&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${s}`),(Y||ce)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,ce?m:void 0):m=this.options.parseMissingKeyHandler(m))}return o?(u.res=m,u.usedParams=this.getUsedParamsDetails(n),u):m}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.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 p=de(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(p){let m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let u=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,i.lng||this.language||o.usedLng,i),p){let m=t.match(this.interpolator.nestingRegexp),b=m&&m.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,b=new Array(m),v=0;v<m;v++)b[v]=arguments[v];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=de(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=Ih.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,l;return de(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(c,n),f=p.key;o=f;let u=p.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!de(n.count),b=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(de(n.context)||typeof n.context=="number")&&n.context!=="",L=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(V=>{this.isValidLookup(i)||(l=V,!Sh[`${L[0]}-${V}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Sh[`${L[0]}-${V}`]=!0,this.logger.warn(`key "${o}" for languages "${L.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),L.forEach(z=>{if(this.isValidLookup(i))return;s=z;let ne=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ne,f,z,V,n);else{let ce;m&&(ce=this.pluralResolver.getSuffix(z,n.count,n));let Y=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(ne.push(f+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(f+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(f+Y)),v){let Se=`${f}${this.options.contextSeparator}${n.context}`;ne.push(Se),m&&(ne.push(Se+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(Se+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(Se+Y))}}let ie;for(;ie=ne.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(z,V,ie,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!de(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};r(hs,"Translator");var gs=hs,sp=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Tp=class Tp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vn.create("languageUtils")}getScriptPartFromCode(t){if(t=us(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=us(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(de(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=sp(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=sp(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=sp(i[2].toLowerCase()))),i.join("-")}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.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),de(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return de(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):de(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(Tp,"LanguageUtil");var ms=Tp,_C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],BC={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},HC=["v1","v2","v3"],GC=["v4"],Ph={zero:0,one:1,two:2,few:3,many:4,other:5},WC=r(()=>{let e={};return _C.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:BC[t.fc]}})}),e},"createRules"),vp=class vp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Vn.create("pluralResolver"),(!this.options.compatibilityJSON||GC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=WC(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=us(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=new Intl.PluralRules(i,{type:o});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((o,a)=>Ph[o]-Ph[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!HC.includes(this.options.compatibilityJSON)}};r(vp,"PluralResolver");var up=vp,Ch=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=jC(e,t,n);return!a&&o&&de(n)&&(a=pp(e,n,i),a===void 0&&(a=pp(t,n,i))),a},"deepFindWithDefaults"),lp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Sp=class Sp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:o,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:p,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:b,nestingSuffix:v,nestingSuffixEscaped:L,nestingOptionsSeparator:V,maxReplaces:z,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:$C,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?jo(a):s||"{{",this.suffix=l?jo(l):c||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?jo(m):b||jo("$t("),this.nestingSuffix=v?jo(v):L||jo(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=z||1e3,this.alwaysFormat=ne!==void 0?ne:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((n,i)=>n&&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){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(b=>{if(b.indexOf(this.formatSeparator)<0){let z=Ch(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(z,void 0,i,{...o,...n,interpolationkey:b}):z}let v=b.split(this.formatSeparator),L=v.shift().trim(),V=v.join(this.formatSeparator).trim();return this.format(Ch(n,c,L,this.options.keySeparator,this.options.ignoreJSONStructure),V,i,{...o,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>lp(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?lp(this.escape(b)):lp(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let v=a[1].trim();if(s=p(v),s===void 0)if(typeof f=="function"){let V=f(t,a,o);s=de(V)?V:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!de(s)&&!this.useRawValueToEscape&&(s=hh(s));let L=b.safeValue(s);if(t=t.replace(a[0],L),u?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,l=r((c,p)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let u=c.split(new RegExp(`${f}[ ]*{`)),m=`{${u[1]}`;c=u[0],m=this.interpolate(m,s);let b=m.match(/'/g),v=m.match(/"/g);(b&&b.length%2===0&&!v||v.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),p&&(s={...p,...s})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,L),`${c}${f}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!de(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let f=o[1].split(this.formatSeparator).map(u=>u.trim());o[1]=f.shift(),c=f,p=!0}if(a=n(l.call(this,o[1].trim(),s),s),a&&o[0]===t&&!de(a))return a;de(a)||(a=hh(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),p&&(a=c.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(Sp,"Interpolator");var dp=Sp,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[l,...c]=s.split(":"),p=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.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"),Ro=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),l=t[s];return l||(l=e(us(i),o),t[s]=l),l(n)}},"createCachedFormatter"),Pp=class Pp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vn.create("formatter"),this.options=t,this.formats={number:Ro((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:Ro((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:Ro((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:Ro((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:Ro((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ro(n)}format(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:p,formatOptions:f}=QC(c);if(this.formats[p]){let u=l;try{let m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||i;u=this.formats[p](l,b,{...f,...o,...m})}catch(m){this.logger.warn(m)}return u}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};r(Pp,"Formatter");var gp=Pp,KC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Cp=class Cp extends $o{constructor(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=Vn.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=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},l={},c={};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),c[u]===void 0&&(c[u]=!0)))}),f||(l[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(l),toLoadNamespaces:Object.keys(c)}}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 l={};this.queue.forEach(c=>{DC(c.loaded,[a],s),KC(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(p=>{l[p]||(l[p]={});let f=c.loaded[p];f.length&&f.forEach(u=>{l[p][u]===void 0&&(l[p][u]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;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 l=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"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let p=c(t,n);p&&typeof p.then=="function"?p.then(f=>l(null,f)).catch(l):l(null,p)}catch(p){l(p)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(t)&&(t=this.languageUtils.toResolveHierarchy(t)),de(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){let c={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let f;p.length===5?f=p(t,n,i,o,c):f=p(t,n,i,o),f&&typeof f.then=="function"?f.then(u=>l(null,u)).catch(l):l(null,f)}catch(f){l(f)}else p(t,n,i,o,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Cp,"Connector");var mp=Cp,Ah=r(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),de(e[1])&&(t.defaultValue=e[1]),de(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),Eh=r(e=>(de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),ps=r(()=>{},"noop"),JC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Va=class Va extends $o{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Eh(t),this.services={},this.logger=Vn,this.modules={external:[]},JC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(de(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=Ah();this.options={...o,...this.options,...Eh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vn.init(a(this.modules.logger),this.options):Vn.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=gp);let u=new ms(this.options);this.store=new ds(this.options.resources,this.options);let m=this.services;m.logger=Vn,m.resourceStore=this.store,m.languageUtils=u,m.pluralResolver=new up(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(m.formatter=a(f),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new dp(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new mp(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var v=arguments.length,L=new Array(v>1?v-1:0),V=1;V<v;V++)L[V-1]=arguments[V];t.emit(b,...L)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new gs(this.services,this.options),this.translator.on("*",function(b){for(var v=arguments.length,L=new Array(v>1?v-1:0),V=1;V<v;V++)L[V-1]=arguments[V];t.emit(b,...L)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ps),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=Oa(),p=r(()=>{let f=r((u,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),i(u,m)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps,o=de(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let o=Oa();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=ps),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"&&Ih.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}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let o=Oa();this.emit("languageChanging",t);let a=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=r((c,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=r(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let p=de(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,f=>{s(f,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,l){let c;if(typeof l!="object"){for(var p=arguments.length,f=new Array(p>2?p-2:0),u=2;u<p;u++)f[u-2]=arguments[u];c=o.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let m=o.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(v=>`${c.keyPrefix}${m}${v}`):b=c.keyPrefix?`${c.keyPrefix}${m}${s}`:s,o.t(b,c)},"fixedT");return de(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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((l,c)=>{let p=this.services.backendConnector.state[`${l}|${c}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=Oa();return this.options.ns?(de(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Oa();de(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";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=this.services&&this.services.languageUtils||new ms(Ah());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Va(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Va(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ds(this.store.data,o),a.services.resourceStore=a.store),a.translator=new gs(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f<c;f++)p[f-1]=arguments[f];a.emit(l,...p)}),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(Va,"I18n");var ys=Va,j=ys.createInstance();j.createInstance=ys.createInstance;var kN=j.createInstance,_N=j.dir,BN=j.init,HN=j.loadResources,GN=j.reloadResources,WN=j.use,QN=j.changeLanguage,KN=j.getFixedT,JN=j.t,qN=j.exists,XN=j.setDefaultNamespace,zN=j.hasLoadedNamespace,YN=j.loadNamespaces,ZN=j.loadLanguages;var Hb=U(Ap()),Gb=U(eb()),Ms=U(kb()),be=require("@sap-ux/vocabularies-types/vocabularies/UI"),wa=require("@sap-ux/vocabularies-types/vocabularies/Communication");var $s=U(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(`${$s.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${$s.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${$s.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var O="#/definitions/",OE=[F.v4.FE_TEMPLATE_V4_LIST_REPORT,F.v4.FE_TEMPLATE_V4_ALP,F.v4.FE_TEMPLATE_V4_OBJECT_PAGE,F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],FE=["sap.fe.core","sap.fe.templates"],Ma=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Ut=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Zn(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,Ms.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(t,{severity:F.LogSeverity.Error,message:j.t("ANNOERR"),location:{path:j.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,Ms.merge)(...n);i=(0,Gb.convert)(o)}return i}r(Zn,"parseAndMergeAndConvert");var _o=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Bp(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 l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((o=l==null?void 0:l.Common)==null?void 0:o.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}r(Bp,"evaluateCommonLabel");function Us(e,t){let n=e.value;return e.$target&&(n=Bp(e.$target.annotations,t,n)),n}r(Us,"getLabelForPropertyPath");function ws(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=Bp(i.annotations,t,n)),n}r(ws,"getLabelForDataField");function LE(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 Bp(a.annotations,t,s)}}}else return}r(LE,"getLabel");function _b(e,t,n){let i=ws(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(_b,"getTitleForDataField");function Et(e,t){var s,l,c,p;let n="",i,o,a="";try{let f=LE(e.Label,t);switch(e.$Type){case be.UIAnnotationTypes.DataField:n=_b(e,t,f);break;case be.UIAnnotationTypes.DataFieldWithUrl:i=ws(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case be.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=ws(e,t),n=f||i||((l=(s=o.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((c=o.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case be.UIAnnotationTypes.DataFieldForAction:case be.UIAnnotationTypes.DataFieldWithAction:case be.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 be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ws(e,t),n=i||e.Value.path;break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=_b(o,t,f);break;default:break}return n}catch{return n}}r(Et,"getDataFieldDescription");function Oe(e){return e.replace("#","::").replace(/\//g,":2f")}r(Oe,"prepareRef");function Yn(e){if(e){let t=`${F.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(Yn,"getPageTypeV2");function Hp(e){if(e.name&&e.name!==F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${F.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else if((e==null?void 0:e.name)===F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE||e.viewId||e.viewName)return F.PageTypeV4.CustomPage}r(Hp,"getPageTypeV4");function VE(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(VE,"getTargetAnnotationName");function kt(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(kt,"findAlias");function NE(e,t,n){var s,l;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=kt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[o]}r(NE,"determineTargetAnnotation");function DE(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${be.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${F.UIVOCABULARY}`);return e}r(DE,"adjustKey");function jE(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,l,c=i.split("/"),p=c.length>1;p&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=DE(t,c,a);let f=NE(c,n,e);if(f){let b=o===F.FioriElementsVersion.v2?"::":"#";t=VE(f,a).replace("#",b),l=(m=f.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let b=o===F.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}r(jE,"getKeyAndEntityTypeOfReferenceFacet");function Wb(e,t,n,i,o=F.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("@")),l=e.ID?e.ID.toString():s,c=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],p=t;if(e.$Type!==be.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=_o(e.Target);if(!b){k(i,{severity:F.LogSeverity.Error,message:j.t("NOTARGET",{target:e.Target})});return}let{key:v,entityType:L,stopProcessing:V,namespace:z}=jE(n,l,p,b,o,a);if(V)return;l=v,p=L,c=z}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:c}}r(Wb,"getSectionFacet");var ei=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let l=0;l<s.length;l++){let c=s[l];if(c==="[]")continue;let p=i&&i===c?n:c.replace("??","/");if(!a[p]){if(o)return;s[l+1]==="[]"?a[p]=[]:a[p]={}}a=a[p]}return a},"getManifestSectionByPathV4");function Gp(e){let t,n,i;switch(e.$Type){case be.UIAnnotationTypes.DataField:t=_o(e.Value);break;case be.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:_o(e.Value);break;case be.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${F.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case be.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Oe(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=_o(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Oe(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:i=_o(e.Value),n=_o(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Gp,"getSchemaKeyOfLineItemRecord");function RE(e,t,n){return e.includes(be.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?be.UIAnnotationTerms.Chart:e.includes(be.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?be.UIAnnotationTerms.Identification:n&&e.includes(be.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?be.UIAnnotationTerms.LineItem:e.includes(be.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?be.UIAnnotationTerms.FieldGroup:e.includes(be.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?be.UIAnnotationTerms.DataPoint:e.includes(be.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?be.UIAnnotationTerms.PresentationVariant:void 0}r(RE,"getUIAnnotationTerm");function $E(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?wa.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?wa.CommunicationAnnotationTerms.Address:void 0}r($E,"getCommunicationAnnotationTerm");function wE(e,t,n){return RE(e,t,n)||$E(e,t)}r(wE,"getAnnotationTerm");function ME(e,t,n,i,o){var p,f,u,m,b,v,L,V,z;let a=kt(F.UIVOCABULARY,o),s=e?e.key:"",l=e.entityType;switch(wE(s,a,i)){case be.UIAnnotationTerms.Chart:{n[s]={base:F.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.Identification:{n[s]={base:F.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.LineItem:{if(!s.includes(be.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ne=s.split("::");ne[ne.length-1]=`@${be.UIAnnotationTerms.LineItem}`,s=ne.join("::")}n[s]={base:F.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.FieldGroup:{n[s]={base:F.FacetBase.Form},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.DataPoint:{n[s]={base:F.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.PresentationVariant:{n[s]={base:F.FacetBase.PresentationVariant},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case wa.CommunicationAnnotationTerms.Contact:{n[s]={base:F.FacetBase.Contact},n[s].target=(V=t==null?void 0:t.Target)==null?void 0:V.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case wa.CommunicationAnnotationTerms.Address:{n[s]={base:F.FacetBase.Address},n[s].target=(z=t==null?void 0:t.Target)==null?void 0:z.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:F.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",F.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(ME,"evaluateTargetAnnotation");function Wp(e,t,n,i,o,a=F.FioriElementsVersion.v2,s){var c;let l=Wb(e,i,t,s,a,!1);if(l)switch(e.$Type){case be.UIAnnotationTypes.ReferenceFacet:{ME(l,e,o,i,t);break}case be.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=o[l.key]={base:F.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!f.ID&&a===F.FioriElementsVersion.v4&&k(s,{severity:F.LogSeverity.Error,message:j.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(c=e.Facets)==null||c.forEach(u=>{Wp(u,t,n,i,f.facets,a,s)});break}}}r(Wp,"addFacetToConfig");function ks(e,t,n=F.FioriElementsVersion.v2,i){var l,c;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,p);s.forEach(u=>{Wp(u,t,f,e,o,n,i)})}return o}r(ks,"getObjectPageHeaderFacets");function _s(e,t,n=F.FioriElementsVersion.v2,i){var l;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{Wp(f,t,p,e,o,n,i)})}return o}r(_s,"getObjectPageFacets");function Qp(e){var t,n,i,o;if(e[F.ManifestSection.generic]&&Object.keys(e[F.ManifestSection.generic]).length>0||e[F.ManifestSection.ovp]&&Object.keys(e[F.ManifestSection.ovp]).length>0)return F.FioriElementsVersion.v2;{let a=(n=(t=e[F.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[F.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(l=>OE.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>FE.indexOf(l)>-1)?F.FioriElementsVersion.v4:void 0}}r(Qp,"getFEVersionFromManifest");function UE(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[F.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[F.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[F.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[F.ManifestSection.ui5].models[t].dataSource:void 0}r(UE,"getMainService");function Qb(e){var i,o;let t=UE(e);if(!t)return F.OdataVersion.v2;let n=(i=e[F.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?F.OdataVersion.v4:F.OdataVersion.v2}r(Qb,"getODataVersionFromManifest");function kE(e,t){var i,o;let n;if(e[F.ManifestSection.generic]){let a=e[F.ManifestSection.generic].pages;if(!a){k(t,{severity:F.LogSeverity.Error,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(Yn((i=l.component)==null?void 0:i.name)===F.PageTypeV2.AnalyticalListPage){n=F.TemplateType.AnalyticalListPageV2;break}else if(Yn((o=l.component)==null?void 0:o.name)===F.PageTypeV2.ListReport){n=F.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.generic}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return n}r(kE,"determineV2Template");function Ua(e){var i,o,a,s;let t,n=Hp(e);if(n===F.PageTypeV4.AnalyticalListPage)t=F.TemplateType.AnalyticalListPageV4;else if(n===F.PageTypeV4.ListReport){let l=(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];l&&(l[F.ALPViewType.Primary]||l[F.ALPViewType.Secondary])?t=F.TemplateType.AnalyticalListPageV4:t=F.TemplateType.ListReportObjectPageV4}else n===F.PageTypeV4.ObjectPage?t=F.TemplateType.ListReportObjectPageV4:n===F.PageTypeV4.CustomPage&&(t=F.TemplateType.FreestylePageV4);return t}r(Ua,"determineV4PageTemplateType");function _E(e){let t;for(let n in e){let i=e[n];if(t=Ua(i),t)break}return t}r(_E,"determineV4TemplateFromPages");function BE(e,t){let n=e[F.ManifestSection.ui5].routing&&e[F.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(t,{severity:F.LogSeverity.Info,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing"]}}),F.TemplateType.ListReportObjectPageV4;let i=_E(n);return i||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.ui5}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing","targets"]}}),i}r(BE,"determineV4Template");function Kp(e,t,n){let i;return e[F.ManifestSection.ovp]?i=F.TemplateType.OverviewPageV2:t===F.FioriElementsVersion.v2?i=kE(e,n):t===F.FioriElementsVersion.v4&&(i=BE(e,n)),i}r(Kp,"getTemplateTypeFromManifest");function di(e,t,n){e!=null&&e.ID?(t.title=F.FACETTITLEPREFIX+e.ID,t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:n.replace(F.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}r(di,"addSectionTitleAndDescription");function Bo(e,t,n){var i,o;di(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(Bo,"addTargetTitleAndSectionDescription");function jn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[F.SchemaTag.isViewNode]=!0,i[F.SchemaTag.annotationPath]=t.annotationPath,Bo(t,i,n),i}r(jn,"createDefaultSection");function Kb(e,t,n,i=F.FioriElementsVersion.v2,o=!1){var l,c;let a=kt(F.UIVOCABULARY,t),s=[];if(e){let p=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return p&&(s=p.reduce(function(f,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return f;let m=Wb(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(Kb,"getObjectPageFacetSection");var gi=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let p=a&&a===c?o:c.replace("??","/");if(!(!s[p]&&(a===c&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),gi(e,l.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Bb=r(e=>e===F.SchemaType.FreestylePage?F.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Je=r((e,t)=>{let n={filename:"",path:""};switch(e){case F.SchemaType.Application:{n.filename="App",n.path=`./${F.DirName.Schemas}/${n.filename}`;break}case F.SchemaType.ListReport:case F.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Bb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Bb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Ho(e,t,n,i){if(e===F.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(Ho,"generatePageId");function Jb(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,l=e.definitions[s.split(O)[1]];typeof l=="object"&&(i=l.properties,o=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let l=n[s];typeof l=="object"&&o.every(c=>l[c]!==void 0)&&a.push(s)}return a}r(Jb,"findMatchingKeysByAdditionalProperties");function HE(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(HE,"fillArrayFromAnyOfReference");function GE(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(O)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{HE(o,n,t,i)}),i.length===0))return;return i}r(GE,"fillArrayFromPropertyDefinition");function WE(e,t,n,i,o,a,s,l){var p,f,u,m;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(p=c==null?void 0:c.targetDefinition)!=null&&p.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=Rn(t,n,i,c.targetDefinition,o,a,s),c;e.length>1&&e.forEach(V=>{V!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[V].properties})}),c.title=(u=c==null?void 0:c.targetDefinition)!=null&&u.title?c.targetDefinition.title:n;let v=b==null?void 0:b.split("<")[0],L=i||{};c.configObject=a.createInstance(s,v,L,(m=c==null?void 0:c.targetDefinition)==null?void 0:m.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:o,c.configObject=i;return c}r(WE,"determineNextDefinitionFromDefinitionArray");function Rn(e,t,n,i,o,a,s){let l;if(i.type==="array")return l=Rn(e,t,n,i.items,o,a,s),l;let c=GE(i,n,e);if(c)return l=WE(c,e,t,n,o,a,s,i),l}r(Rn,"getNextTargetDefinition");var Jp=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,Hb.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function _t(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(_t,"convertActionKeyToStableId");function Go(e){return e==null?void 0:e.split(O)[1]}r(Go,"getDefinitionKey");function qb(e){return e instanceof Error?e.message:String(e)}r(qb,"getErrorMessage");function $n(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r($n,"updatePropertyIndices");function Xb(e){return e=e.replace(F.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(Xb,"removeNamespaces");function Wo(e){return e=e.replace(F.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(Wo,"replaceNamespaces");var On=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=U(B());var Bt=U(B());var We=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Bs=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),ut=r((e,t)=>{let n,i=Bt.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 QE(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(QE,"escapeId");var zb=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(zb||{});function KE(e,t,n){let i;return e=e.map(function(o){if(o===Bt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Bt.PropertyName.sections)return i=t[a+1],t[a+1]=ut(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(KE,"mapBreadcrumbs");var qp=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=KE(t,s,o)),s[0]===Bt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH):t[0]===Bt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),p=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),p=`${e}${t.join("::")}-${c}`),QE(p)},"buildColumnControlId"),Ht=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 JE(e){let t=Bt.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(JE,"determinePattern");var Yb=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,l=a.$ref?e.definitions[a.$ref.split(O)[1]]:a,c=a.description?a.description:l.description,p=JE(l);l.type&&l.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"}]},c&&(o[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),wn=r((e,t,n)=>{Yb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Fe=r((e,t,n)=>{let i=Object.values(zb);Yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Hi(){}r(Hi,"doNotDelete");var JD=U(eT());var tT=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(tT,e),"syncRule");function dt(e,t){let n;return e&&(n=Reflect.getMetadata(tT,e,t)),n}r(dt,"getReflectMetadata");var tn=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),nT=Symbol("childId"),_e=r(e=>Reflect.metadata(nT,e),"childId"),Hs=r((e,t)=>Reflect.getMetadata(nT,e,t),"getChildId"),Gs=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),qE=Symbol("descriptionSrcURL"),me=r(e=>Reflect.metadata(qE,e),"descriptionSrcURL");var XE=Symbol("validityMetadataKey"),T=r(e=>Reflect.metadata(XE,e),"validity");function Ws(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(Ws,"getTextForDeprecated");var pT=U(lT()),fT=U(B());var uT=pT.default.change,cT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function dT(e,t){let n="";try{for(let i in cT)e[i]===void 0&&(e[i]=cT[i]);n=uT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(dT,"createChangeString");function mn(e){try{return uT.parse(e)}catch{return!1}}r(mn,"parseChangeString");function gT(e,t,n,i,o){let a=n.layer?n.layer===fT.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(gT,"fillFlexChangeContent");function _(e,t){return dT(e,t)}r(_,"exportToFlexChange");var Gi=U(B());function Qo(e,t,n,i,o,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,o,n,a);c!==void 0&&(i[n]=c)}else t[s]!==void 0&&(i[n]=t[s])}r(Qo,"importProperty");function Qs(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:Gi.LogSeverity.Warning,message:Ws(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Qs,"checkDeprecatedProperties");function Xp(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(O)[1]];return Xp(n,t)}else return e.title?e.title.startsWith(Gi.FACETTITLEPREFIX)?e.title.split(Gi.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Xp,"getSectionTitle");function Ks(e){let t=e.split(`${Gi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(Ks,"getTargetFromCustomColumnRef");function Wi(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(Wi,"removeEmptyStructure");var Ue=require("@sap-ux/vocabularies-types/vocabularies/UI");var ti=require("@sap-ux/vocabularies-types/vocabularies/UI");function Js(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(Js,"replaceSpecialChars");var Qi=r(function(e){return Js(Xb(e))},"prepareId");function ix(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(ix,"evaluateConcat");function Ki(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 ix(e);if(e&&typeof e=="string")return Js(e.replace(/ /g,"_"))}r(Ki,"getStableIdPartFromValue");var mT=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"),ni=r(function(e){let t="";if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=mT(e),t;if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Qi(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Ki(e.Value)+"::"),t+=e.Action,Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataField)return t="DataField::",t+=Ki(e.Value),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Ki(e.Value)+"::",t+=mT(e),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Ki(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Ki(e.Value),Qi(t)},"getStableIdPartFromDataField");var w=U(B());var le=U(B());var Gt=require("@sap-ux/vocabularies-types/vocabularies/UI"),TT=require("path"),vT=U(Ra());var Ji="ResponsiveTableWithMultiSelect<LineItems>",qi="ResponsiveTableWithInlineDelete<LineItems>",qs="TreeTable<LineItems>",Xs="AnalyticalTable<LineItems>",zs="GridTable<LineItems>",zp=[Ji,qi,qs,Xs,zs],yT=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],hT="template::",Ys="template:::ObjectPageAction:::";function ox(e,t,n){e.definitions[le.DefinitionName.LineItems]&&(e.definitions[le.DefinitionName.LineItems].properties.custom={$ref:`${O}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${O}${n}`},description:"Custom Columns"},e.definitions[t][le.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[le.SchemaTag.artifactType]=le.ArtifactType.Manifest)}r(ox,"addCustomColumnDefinition");function ax(e,t){let n;return e==="TableColumnActionIntentBased"?n=Gp(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Oe(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n=Oe(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Oe(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(ax,"getActionId");function Yp(e,t,n,i,o){let a,s=n.lineItemId===le.DefinitionName.LineItems?"":"ObjectPage",l=ax(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,p=Et(n.lineItemRecord,n.entityType);t.properties[l]={$ref:O+c},t.properties[l][le.SchemaTag.propertyIndex]=o;let{key:f,ns:u}=zi(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[c][le.SchemaTag.target]=u)):(e.definitions[c]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[c][le.SchemaTag.isViewNode]=!0,e.definitions[c][le.SchemaTag.keys]=[{name:le.SchemaKeyName.action,value:f}],u&&(e.definitions[c][le.SchemaTag.target]=u),e.definitions[c][le.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Yp,"handleActionRecord");function rx(e,t,n){e!==le.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Gt.UIAnnotationTypes.DataFieldForAction||t.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(rx,"getColumnActionType");function sx(e,t){let n=[];if(!(e.$Type!==Gt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),rx(t,e,n),n}r(sx,"getActionType");function ST(e,t,n){let i=Gp(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:O+le.DefinitionName.TableColumn,description:Et(e.lineItemRecord,e.entityType)},o.properties[i][le.SchemaTag.propertyIndex]=n,o.properties[i][le.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,il(o.properties[i],e.lineItemRecord),ol(e.lineItemRecord,o.properties,i)}}r(ST,"generateGenericColumn");function lx(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Yp(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Yp(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Yp(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":ST(i,t,o)}}r(lx,"handleAnyAction");function Ko(e,t,n,i,o,a){o=o||le.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=nl(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:c,lineItemRecord:f,lineItemId:o,entityType:i},m=sx(f,o);m?m.forEach(b=>{lx(b,t,s,u,p,l,o)}):ST(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${O}${a}`})}r(Ko,"addLineItemsType");function cx(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((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}r(cx,"addListReportLeadingProperties");function px(e,t,n,i){var s,l,c,p,f,u;let o=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.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=(c=n.component)==null?void 0:c.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:f.variants;if(a){let m=[];for(let b in a){let v=(u=a[b])==null?void 0:u.key;v!==void 0&&!m.includes(v)&&m.push(v)}Xi(m,o)}}r(px,"addTabkeyEnum");function Zs(e,t,n,i,o){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let p=c.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let f=JSON.parse((0,vT.xml2json)(c.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("\\"+TT.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),Xi(a,(l=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:l[i])}r(Zs,"addFragmentEnum");function Jo(e,t,n,i,o,a=le.DefinitionName.CustomColumns,s=le.DefinitionName.CustomColumn,l){ox(e,a,s),cx(e,t,s),px(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;Zs(e,o,c,"fragmentName",s),Zs(e,o,c,"fragmentName",le.DefinitionName.CustomColumn),Zs(e,o,c,"cellsFragmentName",s),Zs(e,o,c,"cellsFragmentName",le.DefinitionName.CustomColumn)}r(Jo,"addTableColumnExtensions");function PT(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(PT,"removeElementsFromEnum");function el(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Ut(n==null?void 0:n.fullyQualifiedName,Gt.UIAnnotationTerms.SelectionFields);if(o&&(i[le.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${Oe(s.value)}>`,p=yn(s);s.type==="PropertyPath"&&(l=Us(s,n)),i.properties[s.value]={$ref:O+c},i.properties[s.value][le.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][le.SchemaTag.isViewNode]=!0,e.definitions[c][le.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][le.SchemaTag.dataType]=p,e.definitions[c][le.SchemaTag.keys]=[{name:le.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][le.SchemaTag.annotationPath]=`${i[le.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[c].$ref=`${O}SelectionFieldDateSettings`:e.definitions[c].properties={},a++})}r(el,"addSelectionFields");function tl(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(tl,"isDraftEnabled");function CT(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(CT,"isEntityDeletable");function AT(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(AT,"isEntityUpdatable");function qo(e,t=!1,n){let i=le.DefinitionName.HeaderActionsStandard,o=le.DefinitionName.HeaderActionsStandard,a=le.DefinitionName.HeaderActionStandard;t&&(i=le.DefinitionName.GenericActions,o=le.DefinitionName.HeaderActions,a=le.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[o];l[le.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([p,f])=>{let u=f.$ref.split(O)[1],m=`${a}<${u}>`;l.properties[p]={$ref:`${O}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][le.SchemaTag.actionType]=le.ActionType.Standard})}r(qo,"addStandardHeaderActions");function ET(e,t){let n=e.definitions[le.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(O)[1],a=`${le.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${O}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][le.SchemaTag.actionType]=le.ActionType.Standard}}r(ET,"addStandardFooterActionsOP");function fx(e,t,n,i){if(e===w.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithNavigationPath:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===w.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(fx,"copyFieldProperties");function ux(e,t,n,i){let o=e===w.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===w.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(ux,"determineFieldDefinitionName");function dx(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][w.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(dx,"addKeysTagForDataField");function gx(e,t,n){if(e.$Type===Ue.UIAnnotationTypes.DataField||e.$Type===Ue.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ue.UIAnnotationTypes.DataFieldWithNavigationPath)dx(e,t,n);else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][w.SchemaTag.keys]=[{name:"Target",value:Wo(e.Target.value)}],t.definitions[n][w.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][w.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][w.SchemaTag.keys]=[{name:w.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][w.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(gx,"addKeysTagToField");function mx(e){var t,n;return e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ue.UIAnnotationTypes.ConnectedFieldsType}r(mx,"isConnectedField");function yx(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Ue.UIAnnotationTypes.ConnectedFieldsType){let c=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,f=c.length;for(let u in p){let m=p[u];if(typeof m=="object"&&"$Type"in m){let b=c.findIndex(v=>v===u);b===-1&&(b=f,f++),Zp(e,t,m,`ConnectedFields::${a.qualifier}`,b.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(yx,"addConnectedFields");function xT(e,t,n){if(n)return n;let i=Oe(t);return e.definitions[i].properties}r(xT,"getFieldsSchemaContainer");function Zp(e,t,n,i,o,a,s,l=!0,c={},p=a.entityType.fullyQualifiedName){var v;let f=ni(n),u=s===w.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=ux(s,f,i,u),b={};if(!(!n||!n.$Type)){if(n.$Type===Ue.UIAnnotationTypes.DataFieldForAction||n.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===w.SectionType.Section){let L=xT(t,`${e}${w.DefinitionName.Actions}<${i}>`,c.actions),V=L[u]={$ref:`${O}${m}`};V[w.SchemaTag.propertyIndex]=parseInt(o)}}else{let L=xT(t,`${e}${w.DefinitionName.Fields}<${i}>`,c.fields);L[u]={$ref:`${O}${m}`,propertyIndex:parseInt(o)},mx(n)&&(b=yx(e,t,n,a,s))}t.definitions[m]={type:"object",properties:b,description:Et(n,a.entityType),additionalProperties:!1},gx(n,t,m),t.definitions[m][w.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[m][w.SchemaTag.annotationType]=n.$Type,t.definitions[m][w.SchemaTag.isViewNode]=!0,il(t.definitions[m],n),fx(s,t,n,m),n.$Type===Ue.UIAnnotationTypes.DataFieldForAction&&((v=t.definitions)!=null&&v.FormAction)&&(t.definitions[m].properties=t.definitions[w.DefinitionName.FormAction].properties)}}r(Zp,"addField");function hx(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(hx,"determineTargetIdOfForm");function bx(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Oe(`${t}${w.DefinitionName.Form}<${i}>`),l=Oe(`${t}${w.DefinitionName.Fields}<${i}>`),c=Oe(`${t}${w.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${O}${s}`},t===w.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${O}${c}`},fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][w.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][w.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][w.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][w.SchemaTag.isViewNode]=!0,e.base===w.FacetBase.Identification)for(let f in e.target){let u=e.target[f];u&&Zp(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Zp(t,n,u,i,f,e,o)}}r(bx,"addFieldsToFormDefinition");function Tx(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][w.SchemaTag.keys]=[{name:w.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][w.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][w.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][w.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(Tx,"addTagsToFormDefinition");function al(e,t,n,i,o,a){if(!t.target)return;let s=hx(t),l=Oe(`${e}${w.DefinitionName.Form}<${s}>`),c=Oe(`${e}${w.DefinitionName.Fields}<${s}>`),p=Oe(`${e}${w.DefinitionName.Actions}<${s}>`),f=!(t.base===w.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${O}${l}`},e===w.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${O}${p}`},fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][w.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},Tx(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][w.SchemaTag.isViewNode]=!0,bx(t,e,i,s,o,f),s}r(al,"handleForm");function ef(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(ef,"replaceAlias");function rl(e,t){let n=ef(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,l;return o>-1?(a=i.substring(o+1),l=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}r(rl,"getActionNameAndId");function IT(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===w.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:IT(a.pages,t)}}r(IT,"isFirstObjectPage");function sl(e,t,n,i,o){var f,u;e.definitions[w.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${O}${w.DefinitionName.ObjectPageFooter}`},e.definitions[w.DefinitionName.ObjectPageFooter].properties[w.PropertyName.actions]={$ref:`${O}${w.DefinitionName.FooterActions}`};let a=e.definitions[w.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[w.SchemaTag.isViewNode]=!0;let s=kt(w.UIVOCABULARY,t.serviceAVT),l=t.entitySet,c=l==null?void 0:l.entityType,p=s&&((u=(f=c==null?void 0:c.annotations)==null?void 0:f[s])==null?void 0:u.Identification);if(p){let m=p.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`);a[w.SchemaTag.annotationPath]=`/${m}`,i(c,e,a,p)}else c&&(a[w.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`);n===w.FioriElementsVersion.v2&&IT(o,t)&&!tl(l)&&ET(e,a),delete e.definitions[w.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${w.DefinitionName.ObjectPageFooter}<${w.DefinitionName.ObjectPageFooterActions}>`]}r(sl,"addFooterActions");function ll(e,t,n,i,o,a=!1){var u,m;let s=w.DefinitionName.HeaderActions,l=e.definitions[s];e.definitions[w.DefinitionName.ObjectPageHeader].properties[w.PropertyName.actions]={$ref:`${O}${s}`};let c=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[w.SchemaTag.isViewNode]=!0;let p=kt(w.UIVOCABULARY,i),f=p&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[p])==null?void 0:m.Identification);f?c[w.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`):t&&(c[w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`),o(t,e,f,c,i,n),a&&qo(e,!0,l),delete e.definitions[w.DefinitionName.GenericActions],delete e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`]}r(ll,"addHeaderActions");function cl(e,t){e.properties.header={$ref:`${O}${w.DefinitionName.ObjectPageHeader}`},e.definitions[w.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`])),t&&(e.definitions[w.DefinitionName.ObjectPageHeader][w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.HeaderInfo}`)}r(cl,"addCommonHeaderSchema");function OT(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(OT,"determineEntitySetOfEntityType");var hn=require("@sap-ux/vocabularies-types/vocabularies/UI");var ye=U(B());function Xi(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(Xi,"addEnumToSchema");function FT(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 l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;o.indexOf(c)===-1&&o.push(c)}}Xi(o,n)}r(FT,"addEnumForValidAnnotations");function mi(e,t,n){let i=t.definitions[n].properties[ye.SchemaTag.annotationPath],o=[hn.UIAnnotationTerms.SelectionVariant,hn.UIAnnotationTerms.SelectionPresentationVariant];FT(e,o,i)}r(mi,"addEnumForSingleTabVariant");function LT(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[hn.UIAnnotationTerms.SelectionVariant,hn.UIAnnotationTerms.SelectionPresentationVariant];FT(n.entityType,o,i)}r(LT,"addEnumForMultiTabVariant");function VT(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),Xi(o,i)}r(VT,"addEnumForVariantEntitySet");function NT(e,t,n,i){let o=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],c=a.label||a.title;return{const:l,...c&&{description:c},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[ye.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${O}${ye.DefinitionName.RelatedFacetKeys}`},l]}}}}r(NT,"addDefinitionForRelatedFacetKeys");function ka(e){return e.replace("#","::")}r(ka,"getFacetKeyInSchema");function DT(e,t){return`${e}<${ka(t)}>`}r(DT,"getFacetDefinitionKey");function gt(e,t,n,i=!0,o){let a=t;if(i&&(a=DT(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(gt,"parseSchemaDefinition");function nl(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][ye.SchemaTag.isViewNode]=!0;let l;o===ye.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?l=`${O}${a}`:(l=`${O}${a}<${o}>`,gt(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${l}`}:!1;let c=e?ye.DefinitionName.ObjectPageToolBar:ye.DefinitionName.ToolBar,p=`${c}<${o}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${c}`]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${c}`}))}let f=`${ye.DefinitionName.Actions}<${Oe(o)}>`;t.definitions[p].properties.actions.$ref=O+f;let u=o.startsWith(ye.DefinitionName.LineItems)?ye.DefinitionName.Actions:ye.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let b,v;if(o===ye.DefinitionName.LineItems&&t.properties.footer){v=`${ye.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${O}${v}`;try{t.definitions[v]=JSON.parse(JSON.stringify(t.definitions[ye.DefinitionName.GenericFooter]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ye.DefinitionName.GenericFooter}))}let L=`${ye.DefinitionName.FooterActions}<${Oe(o)}>`;t.definitions[v].properties.actions.$ref=O+L;try{b=t.definitions[L]=JSON.parse(JSON.stringify(t.definitions[ye.DefinitionName.Actions]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ye.DefinitionName.Actions}))}b.properties={},b.additionalProperties=!1}return n&&(s=Ut(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][ye.SchemaTag.annotationPath]=t.definitions[p][ye.SchemaTag.annotationPath]=s,b&&(t.definitions[v][ye.SchemaTag.annotationPath]=s))),{actions:m,footerActions:b,lineItemPath:s}}r(nl,"addCommonLineItemDefinitions");function jT(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(jT,"getDataTypeFromAnnotation");function Yi(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=jT(e.$Type)),t}r(Yi,"determineDataTypeOfTarget");function yn(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=Yi((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=jT(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(yn,"determineDataType");function il(e,t){let n=yn(t);n&&(e[ye.SchemaTag.dataType]=n)}r(il,"addDataTypeToDefinition");function ht(e,t){return`${O}${DT(e,t)}`}r(ht,"getFacetDefinitionLink");function Zi(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${O}${i}`}r(Zi,"addDefinitionRef");function pl(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${ye.UIVOCABULARY}`);t=`/${n}/@${ye.UIVOCABULARY}${i}`}return t}r(pl,"getFacetAnnotationPath");function _a(e,t,n,i,o,a,s=""){let l=`ObjectPage${o}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:ht(a?c:l,t)};let p=gt(a?c:l,t,i,!0,a?c:void 0);di(e,p,t),p[ye.SchemaTag.annotationPath]=e.annotationPath,p[ye.SchemaTag.isViewNode]=!0}r(_a,"handleAddressContact");function tf(e,t,n){typeof e=="object"&&(e[t]=n)}r(tf,"updateSchemaProperty");function Xo(e,t,n=Oe("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${ye.DefinitionName.Fields4Dialog}${n}`];tf(o.properties.fields.items,"enum",i)}r(Xo,"addFieldsType");function vx(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(vx,"findFirstSchemaDefinitionKey");function nf(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=Go(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 l=n,c=vx(a,i==null?void 0:i.keyProperties);return c?l=c.value:i!=null&&i.descriptionAsFallback&&o&&(l=o),{const:l,...o&&{description:o},...s&&{custom:s}}}r(nf,"getEnumEntry");function RT(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let c=t.properties[l],p=nf(e,c,l,i);o.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];tf(l,"oneOf",o)}else tf(a,"oneOf",o)}r(RT,"addDescriptiveEnumDefinition");function zi(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(zi,"getActionKey");function ol(e,t,n){var i,o,a;try{if(e.Value)t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.value,value:Ki(e.Value)}];else if(e.$Type===hn.UIAnnotationTypes.DataFieldWithAction||e.$Type===hn.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=zi(e.Action,!0);t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.action,value:s}],l&&(t[n][ye.SchemaTag.target]=l)}else if(e.$Type===hn.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=zi(e.Target.value,!1);t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.target,value:Wo(s)}],t[n][ye.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===hn.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=zi(s,!0);t[n][ye.SchemaTag.keys]=[{name:"SemanticObject",value:e[ye.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][ye.SchemaTag.target]=c)}}catch{return}}r(ol,"addKeyToDefinition");var zo=U(B());var $T=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{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 MT="1.84.102";var UT={name:"@sap/ux-specification",version:MT,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.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 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 -p 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/to-json-schema.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",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",iXiaSoftV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=iXiaSoft",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 -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.11.6"},devDependencies:{"@sap-ux/annotation-converter":"0.9.9","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.84.102","@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.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.5",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.57.0","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 yi=class yi{constructor(){yi.distTagsOfSpec.length===0&&(yi.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){yi.distTagsOfSpec=[]}getSpecVersion(){return MT}getDistTagsOfVersion(){let t=[],n=$T,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=j.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});k(n,{severity:zo.LogSeverity.Info,message:o,location:{path:zo.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(yi.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=j.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:zo.LogSeverity.Warning,message:o,location:{path:zo.MANIFESTPATH}})}}};r(yi,"DistTagEvaluator"),yi.distTagsOfSpec=[];var Ba=yi;var Q=U(B());var lt=U(B());var bi=U(B());var of=class of{constructor(t,n,i,o){this.unhandledControllers=[];let a=Je(bi.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!==bi.PageType.CustomPage){let l=Je(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Je(i.pageType);s.$schema=c.path}t[`${bi.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[bi.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(of,"AppProvider");var hi=of;var Ae=U(B());var Yo=U(B());var pt=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),kT=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"),_T=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 af(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(af,"getNewPageTemplate");function Cx(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(Cx,"findPageInManifest");function Ax(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=af(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:af(e[t].pageType)}),!Array.isArray(n.pages))){let i=Cx(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=af(e[t].pageType)),rf(t,e,i)}}r(Ax,"transformPageFromAssociation");function Ex(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)===Yo.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Yo.PageTypeV2.ListReport||n.pageType===Yo.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(Ex,"deletePage");function rf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Yo.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)Ax(t,o,n);Array.isArray(n.pages)||Ex(n,t,i)}}r(rf,"transformPageToNewManifestV2");var Iv=U(Ra());var Wu={};Do(Wu,{ALPAnalyticalTable:()=>Gf,ALPGridTable:()=>Hf,ALPResponsiveTable:()=>Bf,Action:()=>Jf,AnalyticalCard:()=>ia,AnalyticalCardSettings:()=>gl,AnalyticalCardSettingsv4:()=>uf,AnalyticalListPageFilterBar:()=>Sf,AnalyticalTable:()=>_f,BaseCustomSection:()=>br,ChartSettings:()=>uu,ChartSettingsType:()=>lf,CommonCardSettings:()=>Pi,CommonHeaderFacetSettings:()=>fo,CommonTableSettings:()=>Ei,CommonTableSettingsForSections:()=>ho,CreateWithFilters:()=>Rf,CustomCard:()=>pf,DataLoadSettings:()=>$f,DateRange:()=>hf,DefaultSpanObject:()=>cf,FRAGMENT_DEFINITION:()=>Un,Field:()=>yf,FieldForAction:()=>Ef,Fields4Dialog:()=>wf,Fields4DialogOP:()=>Uu,FooterAction:()=>Xf,FormAction:()=>Af,GlobalChartSettings:()=>wu,GlobalTableSettings:()=>Hu,GridTable:()=>Wf,HeaderAction:()=>mu,HeaderActionStandard:()=>tu,HeaderSections:()=>vu,KPISettings:()=>du,LinkListCardSettings:()=>gf,LinklistCard:()=>za,ListCard:()=>na,ListCardSettings:()=>ff,ListReportFilterBar:()=>Tl,ObjectPageAnalyticalTable:()=>ku,ObjectPageChart:()=>$u,ObjectPageCustomSectionFragment:()=>Tr,ObjectPageCustomSectionView:()=>vr,ObjectPageFooterAction:()=>Pu,ObjectPageFooterActionStandard:()=>iu,ObjectPageGridTable:()=>_u,ObjectPageHeader:()=>gu,ObjectPageHeaderActionStandard:()=>nu,ObjectPageHeaderSectionAddress:()=>Tu,ObjectPageHeaderSectionChart:()=>hu,ObjectPageHeaderSectionDataPoint:()=>bu,ObjectPageHeaderSectionForm:()=>yu,ObjectPageLayout:()=>Au,ObjectPageResponsiveTable:()=>bo,ObjectPageSectionAddressV2:()=>Fu,ObjectPageSectionChartV2:()=>Iu,ObjectPageSectionContactV2:()=>Lu,ObjectPageSectionFormV2:()=>xu,ObjectPageSectionTableV2:()=>Ou,ObjectPageSectionV2:()=>Eu,ObjectPageSubSectionChartV2:()=>Du,ObjectPageSubSectionContactV2:()=>ju,ObjectPageSubSectionFormV2:()=>Nu,ObjectPageSubSectionTableV2:()=>Ru,ObjectPageSubSectionV2:()=>Vu,ObjectPageToolBarAction:()=>Gu,ObjectPageTreeTable:()=>Bu,QuickVariantSelection:()=>Mf,QuickVariantSelectionOP:()=>Mu,QuickVariantSelectionX:()=>Uf,ResponsiveTable:()=>ro,SAP_UI_TABLE:()=>vl,SaveAndEditOP:()=>eu,SelectionFieldDateSettings:()=>Tf,SelectionFields:()=>vf,Share:()=>zf,ShareOP:()=>Yf,StackCard:()=>Xa,StackCardSettings:()=>df,TableALP:()=>la,TableCard:()=>oa,TableCardSettings:()=>mf,TableColumn:()=>ru,TableColumnAction:()=>kl,TableColumnActionIntentBased:()=>su,TableCustomColumn:()=>lu,ToolBar:()=>pu,ToolBarAction:()=>qf,TreeTable:()=>kf,UpAndDownNavigationOP:()=>Zf,buildIntentBasedActionId:()=>ou,deleteColumnFromFragment:()=>Cl,deleteType:()=>pa,exportColorPalette:()=>WT,exportCreateParametersFields:()=>Ll,exportCustomColumnsToFragment:()=>jf,exportDateSettings:()=>qT,exportDateSettingsField:()=>XT,exportDefaultSpan:()=>QT,exportType:()=>ca,getChartSectionControlId:()=>Pv,getContactSubSectionControlId:()=>Av,getCustomColumnPath:()=>Al,getFormSectionControlId:()=>Sv,getRootCustomColumnFromFragmentJSON:()=>tr,getSectionControlId:()=>mo,getSmartChartControlId:()=>pr,getSmartTableControlId:()=>ao,getSubSectionControlId:()=>Cv,getTableSectionControlId:()=>vv,importCreateParameters:()=>Fl,importDateSettings:()=>Pf});var xt=U(B());var fe=r(e=>`${xt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),eo=r(e=>fe(e)+"/tableSettings","getTableSettingPathV2"),BT=r(e=>fe(e)+"/chartSettings","getChartSettingPathV2"),HT=r(e=>fe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var et=r(()=>xt.ManifestSection.ovp,"getOVPsettingPath"),q=r(e=>{let t=[xt.ManifestSection.ovp];return e.forEach(n=>{n in xt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var to=r((e,t)=>`${xt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),dl=r(e=>{let t=[xt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Vt=r(e=>{let t=[];return t.push(dl(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),no=r(e=>Vt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),bn=r((e,t,n)=>{let i=[];i.push(dl(e));let o=n.replace(xt.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),nn=r((e,t,n)=>bn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),GT=r((e,t,n)=>bn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),sf=r(()=>`sap.ui5/extends/extensions/${xt.v2.SAPUI5_VIEW_EXTENSION}/${xt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),oi=r((e,t,n,...i)=>{let o="|",a=n.split(o),s=e[e.length-1].split(o),l="";a.length===4?l=[a[2],a[3]].join(o):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(o);return i.unshift(c),`${sf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ul=class ul{};r(ul,"ApplicationV2"),d([_e("settings")],ul.prototype,"settings",2);var fl=ul,ii=class ii{};r(ii,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],ii.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],ii.prototype,"description",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.50.0"})],ii.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.46.0"})],ii.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.74.0"})],ii.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"}),me("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],ii.prototype,"flexEnabled",2);var Ti=ii;var Ha=U(B());function xx(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=Ha.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Ha.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Ha.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(xx,"importColorPalette");function WT(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Ha.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(WT,"exportColorPalette");function QT(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(QT,"exportDefaultSpan");var ml=class ml{};r(ml,"ChartSettingsType"),d([g({manifest:{path:r(()=>et()+"/chartSettings","path")}})],ml.prototype,"showDataLabel",2);var lf=ml,vi=class vi{};r(vi,"DefaultSpanObject"),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"cols",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"rows",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"minimumSubTitleRow",2);var cf=vi,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>q(t),"path"),export:QT}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"customParams",2);var Pi=Be,Zo=class Zo{};r(Zo,"CustomCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Zo.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Zo.prototype,"template",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Zo.prototype,"settings",2);var pf=Zo,Si=class Si extends Pi{};r(Si,"ListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"listType",2);var ff=Si,Ga=class Ga{};r(Ga,"ListCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ga.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ga.prototype,"template",2);var na=Ga,Tn=class Tn extends Pi{};r(Tn,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"navigation",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>q(t),"path"),import:xx,export:WT}})],Tn.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"bEnableStableColors",2);var gl=Tn,yl=class yl extends gl{};r(yl,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>q(t),"path")}})],yl.prototype,"measureAggregate",2);var uf=yl,Wa=class Wa{};r(Wa,"AnalyticalCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Wa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Wa.prototype,"template",2);var ia=Wa,ea=class ea extends Pi{};r(ea,"StackCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"itemText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"objectStreamCardsSettings",2);var df=ea,Qa=class Qa{};r(Qa,"StackCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"template",2);var Xa=Qa,ta=class ta extends Pi{};r(ta,"LinkListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"staticContent",2);var gf=ta,Ka=class Ka{};r(Ka,"LinklistCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"template",2);var za=Ka,Ja=class Ja extends Pi{};r(Ja,"TableCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"enableAddToInsights",2);var mf=Ja,qa=class qa{};r(qa,"TableCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"template",2);var oa=qa;var KT=U(B());var Ix=r((e,t,n,i,o)=>{let a=ut(n[1],o),s=n.slice(-1)[0];return We(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),hl=class hl{};r(hl,"Field"),d([g({flex:{controlId:Ix,controlType:r(()=>KT.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Fe})],hl.prototype,"visible",2);var yf=hl;var oo=U(B());function Pf(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(Pf,"importDateSettings");function qT(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(qT,"exportDateSettings");function Ox(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(Ox,"importDateSettingsField");function XT(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(XT,"exportDateSettingsField");var aa=class aa{};r(aa,"DateRange"),d([g({manifest:{path:r(t=>fe(t)+oo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],aa.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>fe(t)+oo.DATESETTINGSPATH,"path"),import:Pf,export:qT}}),T({since:"1.77.0"})],aa.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>fe(t)+oo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],aa.prototype,"exclude",2);var hf=aa,bl={controlId:We,controlType:r(()=>oo.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},bf={path:r((e,t,n)=>`${fe(e)}${oo.DATESETTINGSPATH}/fields/${n}`,"path")},JT={...bf,import:Ox,export:XT},io=class io{};r(io,"SelectionFieldDateSettings"),d([g({manifest:JT}),T({since:"1.77.0"})],io.prototype,"selectedValues",2),d([g({manifest:bf}),T({since:"1.77.0"})],io.prototype,"exclude",2),d([g({manifest:bf}),T({since:"1.77.0"})],io.prototype,"customDateRangeImplementation",2),d([g({manifest:JT}),T({since:"1.77.0"})],io.prototype,"filter",2);var Tf=io,Cf=class Cf{};r(Cf,"SelectionFields");var vf=Cf,vn=class vn{};r(vn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"})],vn.prototype,"smartVariantManagement",2),d([g({flex:bl}),T({since:"1.40.0"})],vn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],vn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.52.0"})],vn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>fe(t)+"/filterSettings","path"),import:Pf}}),T({since:"1.77.0"})],vn.prototype,"dateSettings",2),d([g({flex:bl}),T({since:"1.28.0"})],vn.prototype,"showClearOnFB",2),d([g({flex:bl}),T({since:"1.38.0"})],vn.prototype,"showFilterConfiguration",2),d([g({flex:bl}),T({since:"1.28.0"})],vn.prototype,"showRestoreOnFB",2);var Tl=vn,Ya=class Ya extends Tl{};r(Ya,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}})],Ya.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],Ya.prototype,"filterDefaultsFromSelectionVariant",2);var Sf=Ya;var on=U(B());var Mn=r((e,t,n,i,o)=>{if(i()===on.ControlType.Button){let a=n[n.length-1],s=ut(n[1],o);return`${e}action::${a}::${s}::FormAction`}return We(e,t)},"getFormActionButtonId"),Ci=class Ci{};r(Ci,"FormAction"),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ci.prototype,"visible",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"tooltip",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"icon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"activeIcon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ci.prototype,"type",2);var Af=Ci,Ai=class Ai{};r(Ai,"FieldForAction"),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ai.prototype,"visible",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"tooltip",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"icon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"activeIcon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ai.prototype,"type",2);var Ef=Ai;var Ve=U(B()),Sn=U(Ra());var Ff=require("path"),Qx=U(B()),cv=U(lv()),pv=require("fs");var Kx=(0,Ff.join)(__dirname,"templates");var Jx=r((e,t)=>{let n=(0,pv.readFileSync)(e,"utf8");return(0,cv.render)(n,t)},"renderTemplate");var Lf=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 Jx((0,Ff.join)(Kx,t+".xml"),n)},"getSingleColumnContent"),Vf=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=Lf(i,t);n=n+`
78
+ `)}switch(this.mode){case pt.modes.EVAL:this.source+=" ; "+e+`
79
+ `;break;case pt.modes.ESCAPED:this.source+=" ; __append(escapeFn("+av(e)+`))
80
+ `;break;case pt.modes.RAW:this.source+=" ; __append("+av(e)+`)
81
+ `;break;case pt.modes.COMMENT:break;case pt.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
+ `)},"scanLine")};Ve.escapeXML=ot.escapeXML;Ve.__express=Ve.renderFile;Ve.VERSION=$x;Ve.name=kx;typeof window<"u"&&(window.ejs=Ve)});var Xt={};Do(Xt,{deleteConfigEntityByPath:()=>TV,exportConfig:()=>hV,exportConfigEntityByPath:()=>bV,generateSchema:()=>yV,getApiVersion:()=>CV,getChanges:()=>QS,getGenericSchema:()=>Yc,getPathToGenericSchema:()=>uS,getProject:()=>FV,importConfig:()=>vV,importProject:()=>SV,importProjectSchema:()=>PV,isDirectory:()=>EV,log:()=>k,readDirectory:()=>Ug});module.exports=rP(Xt);var Z=U(B());var F=U(B());var de=r(e=>typeof e=="string","isString"),Fa=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),hh=r(e=>e==null?"":""+e,"makeString"),NC=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),VC=/###/g,bh=r(e=>e&&e.indexOf("###")>-1?e.replace(VC,"."):e,"cleanKey"),Th=r(e=>!e||de(e),"canNotTraverseDeeper"),La=r((e,t,n)=>{let i=de(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(Th(e))return{};let a=bh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Th(e)?{}:{obj:e,k:bh(i[o])}},"getLastOfPath"),vh=r((e,t,n)=>{let{obj:i,k:o}=La(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),l=La(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=La(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),DC=r((e,t,n,i)=>{let{obj:o,k:a}=La(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),ps=r((e,t)=>{let{obj:n,k:i}=La(e,t);if(n)return n[i]},"getPath"),jC=r((e,t,n)=>{let i=ps(e,n);return i!==void 0?i:ps(t,n)},"getPathWithDefaults"),xh=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):xh(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),jo=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),RC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},$C=r(e=>de(e)?e.replace(/[&<>"'\/]/g,t=>RC[t]):e,"escape"),hf=class hf{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(hf,"RegExpCache");var ff=hf,wC=[" ",",","?","!",";"],MC=new ff(20),UC=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=MC.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"),pf=r(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}o=s}return o},"deepFind"),us=r(e=>e&&e.replace("_","-"),"getCleanedCode"),kC={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Na=class Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kC,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,o){return o&&!this.debug?null:(de(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Na(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Na(this.logger,t)}};r(Na,"Logger");var uf=Na,Nn=new uf,bf=class bf{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){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let f=0;f<c;f++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let f=0;f<c;f++)l.apply(l,[t,...i])})}};r(bf,"EventEmitter");var $o=bf,Tf=class Tf extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{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){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):de(i)&&a?l.push(...i.split(a)):l.push(i)));let c=ps(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!de(i)?c:pf(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),vh(this.data,l,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(de(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=i,i=n,n=l[1]),this.addNamespaces(n);let c=ps(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?xh(c,i,a):c={...c,...i},vh(this.data,l,c),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.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}: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(Tf,"ResourceStore");var ds=Tf,Oh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Sh={},hs=class hs extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),NC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Nn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.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,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!UC(t,i,o);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:de(a)?[a]:a};let f=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),t=f.join(o)}return{key:t,namespaces:de(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){let ce=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${ce}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${ce}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let u=this.resolve(t,n),m=u&&u.res,b=u&&u.usedKey||s,v=u&&u.exactUsedKey||s,L=Object.prototype.toString.apply(m),N=["[object Number]","[object Function]","[object RegExp]"],z=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ne=!this.i18nFormat||this.i18nFormat.handleAsObject,ie=!de(m)&&typeof m!="boolean"&&typeof m!="number";if(ne&&m&&ie&&N.indexOf(L)<0&&!(de(z)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(u.res=ce,u.usedParams=this.getUsedParamsDetails(n),u):ce}if(a){let ce=Array.isArray(m),Y=ce?[]:{},oe=ce?v:b;for(let Se in m)if(Object.prototype.hasOwnProperty.call(m,Se)){let P=`${oe}${a}${Se}`;Y[Se]=this.translate(P,{...n,joinArrays:!1,ns:l}),Y[Se]===P&&(Y[Se]=m[Se])}m=Y}}else if(ne&&de(z)&&Array.isArray(m))m=m.join(z),m&&(m=this.extendTranslation(m,t,n,i));else{let ce=!1,Y=!1,oe=n.count!==void 0&&!de(n.count),Se=hs.hasDefaultValue(n),P=oe?this.pluralResolver.getSuffix(f,n.count,n):"",Lt=n.ordinal&&oe?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",Yt=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Me=Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${Lt}`]||n.defaultValue;!this.isValidLookup(m)&&Se&&(ce=!0,m=Me),this.isValidLookup(m)||(Y=!0,m=s);let Fo=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:m,$t=Se&&Me!==m&&this.options.updateMissing;if(Y||ce||$t){if(this.logger.log($t?"updateKey":"missingKey",f,c,s,$t?Me:m),a){let at=this.resolve(s,{...n,keySeparator:!1});at&&at.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 Zt=[],Oe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Oe&&Oe[0])for(let at=0;at<Oe.length;at++)Zt.push(Oe[at]);else this.options.saveMissingTo==="all"?Zt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Zt.push(n.lng||this.language);let ki=r((at,wt,vt)=>{let Qn=Se&&vt!==m?vt:Fo;this.options.missingKeyHandler?this.options.missingKeyHandler(at,c,wt,Qn,$t,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(at,c,wt,Qn,$t,n),this.emit("missingKey",at,c,wt,m)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Zt.forEach(at=>{let wt=this.pluralResolver.getSuffixes(at,n);Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&wt.indexOf(`${this.options.pluralSeparator}zero`)<0&&wt.push(`${this.options.pluralSeparator}zero`),wt.forEach(vt=>{ki([at],s+vt,n[`defaultValue${vt}`]||Me)})}):ki(Zt,s,Me))}m=this.extendTranslation(m,t,n,u,i),Y&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${s}`),(Y||ce)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,ce?m:void 0):m=this.options.parseMissingKeyHandler(m))}return o?(u.res=m,u.usedParams=this.getUsedParamsDetails(n),u):m}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let f=de(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(f){let m=t.match(this.interpolator.nestingRegexp);p=m&&m.length}let u=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,i.lng||this.language||o.usedLng,i),f){let m=t.match(this.interpolator.nestingRegexp),b=m&&m.length;p<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,b=new Array(m),v=0;v<m;v++)b[v]=arguments[v];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=de(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=Oh.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,l;return de(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let f=this.extractFromKey(c,n),p=f.key;o=p;let u=f.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!de(n.count),b=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(de(n.context)||typeof n.context=="number")&&n.context!=="",L=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(N=>{this.isValidLookup(i)||(l=N,!Sh[`${L[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Sh[`${L[0]}-${N}`]=!0,this.logger.warn(`key "${o}" for languages "${L.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),L.forEach(z=>{if(this.isValidLookup(i))return;s=z;let ne=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ne,p,z,N,n);else{let ce;m&&(ce=this.pluralResolver.getSuffix(z,n.count,n));let Y=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(ne.push(p+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(p+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(p+Y)),v){let Se=`${p}${this.options.contextSeparator}${n.context}`;ne.push(Se),m&&(ne.push(Se+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(Se+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(Se+Y))}}let ie;for(;ie=ne.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(z,N,ie,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!de(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};r(hs,"Translator");var gs=hs,lf=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),vf=class vf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nn.create("languageUtils")}getScriptPartFromCode(t){if(t=us(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=us(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(de(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=lf(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=lf(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=lf(i[2].toLowerCase()))),i.join("-")}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.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),de(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return de(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):de(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(vf,"LanguageUtil");var ms=vf,_C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],BC={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},HC=["v1","v2","v3"],GC=["v4"],Ph={zero:0,one:1,two:2,few:3,many:4,other:5},WC=r(()=>{let e={};return _C.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:BC[t.fc]}})}),e},"createRules"),Sf=class Sf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Nn.create("pluralResolver"),(!this.options.compatibilityJSON||GC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=WC(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=us(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(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((o,a)=>Ph[o]-Ph[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!HC.includes(this.options.compatibilityJSON)}};r(Sf,"PluralResolver");var df=Sf,Ch=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=jC(e,t,n);return!a&&o&&de(n)&&(a=pf(e,n,i),a===void 0&&(a=pf(t,n,i))),a},"deepFindWithDefaults"),cf=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Pf=class Pf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:o,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:f,unescapeSuffix:p,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:b,nestingSuffix:v,nestingSuffixEscaped:L,nestingOptionsSeparator:N,maxReplaces:z,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:$C,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?jo(a):s||"{{",this.suffix=l?jo(l):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=m?jo(m):b||jo("$t("),this.nestingSuffix=v?jo(v):L||jo(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=z||1e3,this.alwaysFormat=ne!==void 0?ne:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((n,i)=>n&&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){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=r(b=>{if(b.indexOf(this.formatSeparator)<0){let z=Ch(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(z,void 0,i,{...o,...n,interpolationkey:b}):z}let v=b.split(this.formatSeparator),L=v.shift().trim(),N=v.join(this.formatSeparator).trim();return this.format(Ch(n,c,L,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...o,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>cf(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?cf(this.escape(b)):cf(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let v=a[1].trim();if(s=f(v),s===void 0)if(typeof p=="function"){let N=p(t,a,o);s=de(N)?N:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!de(s)&&!this.useRawValueToEscape&&(s=hh(s));let L=b.safeValue(s);if(t=t.replace(a[0],L),u?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,l=r((c,f)=>{let p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;let u=c.split(new RegExp(`${p}[ ]*{`)),m=`{${u[1]}`;c=u[0],m=this.interpolate(m,s);let b=m.match(/'/g),v=m.match(/"/g);(b&&b.length%2===0&&!v||v.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),f&&(s={...f,...s})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,L),`${c}${p}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!de(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let p=o[1].split(this.formatSeparator).map(u=>u.trim());o[1]=p.shift(),c=p,f=!0}if(a=n(l.call(this,o[1].trim(),s),s),a&&o[0]===t&&!de(a))return a;de(a)||(a=hh(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),f&&(a=c.reduce((p,u)=>this.format(p,u,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(Pf,"Interpolator");var gf=Pf,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[l,...c]=s.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();n[p]||(n[p]=f),f==="false"&&(n[p]=!1),f==="true"&&(n[p]=!0),isNaN(f)||(n[p]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Ro=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),l=t[s];return l||(l=e(us(i),o),t[s]=l),l(n)}},"createCachedFormatter"),Cf=class Cf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nn.create("formatter"),this.options=t,this.formats={number:Ro((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:Ro((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:Ro((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:Ro((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:Ro((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ro(n)}format(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:f,formatOptions:p}=QC(c);if(this.formats[f]){let u=l;try{let m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||i;u=this.formats[f](l,b,{...p,...o,...m})}catch(m){this.logger.warn(m)}return u}else this.logger.warn(`there was no format function for ${f}`);return l},t)}};r(Cf,"Formatter");var mf=Cf,KC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Af=class Af extends $o{constructor(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=Nn.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=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},l={},c={};return t.forEach(f=>{let p=!0;n.forEach(u=>{let m=`${f}|${u}`;!i.reload&&this.store.hasResourceBundle(f,u)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,p=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),c[u]===void 0&&(c[u]=!0)))}),p||(l[f]=!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(l),toLoadNamespaces:Object.keys(c)}}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 l={};this.queue.forEach(c=>{DC(c.loaded,[a],s),KC(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{l[f]||(l[f]={});let p=c.loaded[f];p.length&&p.forEach(u=>{l[f][u]===void 0&&(l[f][u]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;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 l=r((f,p)=>{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(f&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(f,p)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let f=c(t,n);f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(t)&&(t=this.languageUtils.toResolveHierarchy(t)),de(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){let c={...s,isUpdate:a},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(t,n,i,o,c):p=f(t,n,i,o),p&&typeof p.then=="function"?p.then(u=>l(null,u)).catch(l):l(null,p)}catch(p){l(p)}else f(t,n,i,o,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Af,"Connector");var yf=Af,Ah=r(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),de(e[1])&&(t.defaultValue=e[1]),de(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),Eh=r(e=>(de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),fs=r(()=>{},"noop"),JC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Va=class Va extends $o{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Eh(t),this.services={},this.logger=Nn,this.modules={external:[]},JC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(de(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=Ah();this.options={...o,...this.options,...Eh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Nn.init(a(this.modules.logger),this.options):Nn.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=mf);let u=new ms(this.options);this.store=new ds(this.options.resources,this.options);let m=this.services;m.logger=Nn,m.resourceStore=this.store,m.languageUtils=u,m.pluralResolver=new df(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(m.formatter=a(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new gf(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new yf(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var v=arguments.length,L=new Array(v>1?v-1:0),N=1;N<v;N++)L[N-1]=arguments[N];t.emit(b,...L)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new gs(this.services,this.options),this.translator.on("*",function(b){for(var v=arguments.length,L=new Array(v>1?v-1:0),N=1;N<v;N++)L[N-1]=arguments[N];t.emit(b,...L)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=fs),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]=function(){return t.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return t.store[p](...arguments),t}});let c=Fa(),f=r(()=>{let p=r((u,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),i(u,m)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,o=de(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let o=Fa();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=fs),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"&&Oh.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}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let o=Fa();this.emit("languageChanging",t);let a=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=r((c,f)=>{f?(a(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=r(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let f=de(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||a(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{s(p,f)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,l){let c;if(typeof l!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),u=2;u<f;u++)p[u-2]=arguments[u];c=o.options.overloadTranslationOptionHandler([s,l].concat(p))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let m=o.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(v=>`${c.keyPrefix}${m}${v}`):b=c.keyPrefix?`${c.keyPrefix}${m}${s}`:s,o.t(b,c)},"fixedT");return de(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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((l,c)=>{let f=this.services.backendConnector.state[`${l}|${c}`];return f===-1||f===0||f===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=Fa();return this.options.ns?(de(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Fa();de(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";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=this.services&&this.services.languageUtils||new ms(Ah());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Va(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Va(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ds(this.store.data,o),a.services.resourceStore=a.store),a.translator=new gs(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];a.emit(l,...f)}),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(Va,"I18n");var ys=Va,j=ys.createInstance();j.createInstance=ys.createInstance;var kV=j.createInstance,_V=j.dir,BV=j.init,HV=j.loadResources,GV=j.reloadResources,WV=j.use,QV=j.changeLanguage,KV=j.getFixedT,JV=j.t,qV=j.exists,XV=j.setDefaultNamespace,zV=j.hasLoadedNamespace,YV=j.loadNamespaces,ZV=j.loadLanguages;var Hb=U(Ef()),Gb=U(eb()),Ms=U(kb()),be=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ma=require("@sap-ux/vocabularies-types/vocabularies/Communication");var $s=U(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(`${$s.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${$s.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${$s.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var I="#/definitions/",IE=[F.v4.FE_TEMPLATE_V4_LIST_REPORT,F.v4.FE_TEMPLATE_V4_ALP,F.v4.FE_TEMPLATE_V4_OBJECT_PAGE,F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],FE=["sap.fe.core","sap.fe.templates"],Bo=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Ut=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Zn(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,Ms.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(t,{severity:F.LogSeverity.Error,message:j.t("ANNOERR"),location:{path:j.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,Ms.merge)(...n);i=(0,Gb.convert)(o)}return i}r(Zn,"parseAndMergeAndConvert");var _o=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Hf(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 l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((o=l==null?void 0:l.Common)==null?void 0:o.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}r(Hf,"evaluateCommonLabel");function Us(e,t){let n=e.value;return e.$target&&(n=Hf(e.$target.annotations,t,n)),n}r(Us,"getLabelForPropertyPath");function ws(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=Hf(i.annotations,t,n)),n}r(ws,"getLabelForDataField");function LE(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 Hf(a.annotations,t,s)}}}else return}r(LE,"getLabel");function _b(e,t,n){let i=ws(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(_b,"getTitleForDataField");function Et(e,t){var s,l,c,f;let n="",i,o,a="";try{let p=LE(e.Label,t);switch(e.$Type){case be.UIAnnotationTypes.DataField:n=_b(e,t,p);break;case be.UIAnnotationTypes.DataFieldWithUrl:i=ws(e,t),n=p||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case be.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=ws(e,t),n=p||i||((l=(s=o.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((c=o.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case be.UIAnnotationTypes.DataFieldForAction:case be.UIAnnotationTypes.DataFieldWithAction:case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(f=o.Action)==null?void 0:f.path,p?n=typeof p=="string"?p:a:n=a;break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ws(e,t),n=i||e.Value.path;break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=_b(o,t,p);break;default:break}return n}catch{return n}}r(Et,"getDataFieldDescription");function Ie(e){return e.replace("#","::").replace(/\//g,":2f")}r(Ie,"prepareRef");function Yn(e){if(e){let t=`${F.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(Yn,"getPageTypeV2");function Gf(e){if(e.name&&e.name!==F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${F.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else if((e==null?void 0:e.name)===F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE||e.viewId||e.viewName)return F.PageTypeV4.CustomPage}r(Gf,"getPageTypeV4");function NE(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(NE,"getTargetAnnotationName");function kt(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(kt,"findAlias");function VE(e,t,n){var s,l;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=kt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[o]}r(VE,"determineTargetAnnotation");function DE(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${be.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${F.UIVOCABULARY}`);return e}r(DE,"adjustKey");function jE(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,l,c=i.split("/"),f=c.length>1;f&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=DE(t,c,a);let p=VE(c,n,e);if(p){let b=o===F.FioriElementsVersion.v2?"::":"#";t=NE(p,a).replace("#",b),l=(m=p.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(f){let b=o===F.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}r(jE,"getKeyAndEntityTypeOfReferenceFacet");function Wb(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var p,u,m;let s=(u=e.fullyQualifiedName)==null?void 0:u.substring((p=e.fullyQualifiedName)==null?void 0:p.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],f=t;if(e.$Type!==be.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=_o(e.Target);if(!b){k(i,{severity:F.LogSeverity.Error,message:j.t("NOTARGET",{target:e.Target})});return}let{key:v,entityType:L,stopProcessing:N,namespace:z}=jE(n,l,f,b,o,a);if(N)return;l=v,f=L,c=z}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:f,namespace:c}}r(Wb,"getSectionFacet");var ei=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let l=0;l<s.length;l++){let c=s[l];if(c==="[]")continue;let f=i&&i===c?n:c.replace("??","/");if(!a[f]){if(o)return;s[l+1]==="[]"?a[f]=[]:a[f]={}}a=a[f]}return a},"getManifestSectionByPathV4");function Wf(e){let t,n,i;switch(e.$Type){case be.UIAnnotationTypes.DataField:t=_o(e.Value);break;case be.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:_o(e.Value);break;case be.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${F.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case be.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Ie(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=_o(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Ie(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:i=_o(e.Value),n=_o(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Wf,"getSchemaKeyOfLineItemRecord");function RE(e,t,n){return e.includes(be.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?be.UIAnnotationTerms.Chart:e.includes(be.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?be.UIAnnotationTerms.Identification:n&&e.includes(be.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?be.UIAnnotationTerms.LineItem:e.includes(be.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?be.UIAnnotationTerms.FieldGroup:e.includes(be.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?be.UIAnnotationTerms.DataPoint:e.includes(be.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?be.UIAnnotationTerms.PresentationVariant:void 0}r(RE,"getUIAnnotationTerm");function $E(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Ma.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Ma.CommunicationAnnotationTerms.Address:void 0}r($E,"getCommunicationAnnotationTerm");function wE(e,t,n){return RE(e,t,n)||$E(e,t)}r(wE,"getAnnotationTerm");function ME(e,t,n,i,o){var f,p,u,m,b,v,L,N,z;let a=kt(F.UIVOCABULARY,o),s=e?e.key:"",l=e.entityType;switch(wE(s,a,i)){case be.UIAnnotationTerms.Chart:{n[s]={base:F.FacetBase.Chart},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.Identification:{n[s]={base:F.FacetBase.Identification},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.LineItem:{if(!s.includes(be.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ne=s.split("::");ne[ne.length-1]=`@${be.UIAnnotationTerms.LineItem}`,s=ne.join("::")}n[s]={base:F.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.FieldGroup:{n[s]={base:F.FacetBase.Form},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.DataPoint:{n[s]={base:F.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.PresentationVariant:{n[s]={base:F.FacetBase.PresentationVariant},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ma.CommunicationAnnotationTerms.Contact:{n[s]={base:F.FacetBase.Contact},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ma.CommunicationAnnotationTerms.Address:{n[s]={base:F.FacetBase.Address},n[s].target=(z=t==null?void 0:t.Target)==null?void 0:z.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:F.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",F.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(ME,"evaluateTargetAnnotation");function Qf(e,t,n,i,o,a=F.FioriElementsVersion.v2,s){var c;let l=Wb(e,i,t,s,a,!1);if(l)switch(e.$Type){case be.UIAnnotationTypes.ReferenceFacet:{ME(l,e,o,i,t);break}case be.UIAnnotationTypes.CollectionFacet:{let f=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,p=o[l.key]={base:F.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:f,Label:l.label,namespace:l.namespace};!p.ID&&a===F.FioriElementsVersion.v4&&k(s,{severity:F.LogSeverity.Error,message:j.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(c=e.Facets)==null||c.forEach(u=>{Qf(u,t,n,i,p.facets,a,s)});break}}}r(Qf,"addFacetToConfig");function ks(e,t,n=F.FioriElementsVersion.v2,i){var l,c;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let f=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,f);s.forEach(u=>{Qf(u,t,p,e,o,n,i)})}return o}r(ks,"getObjectPageHeaderFacets");function _s(e,t,n=F.FioriElementsVersion.v2,i){var l;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,c);s.forEach(p=>{Qf(p,t,f,e,o,n,i)})}return o}r(_s,"getObjectPageFacets");function Kf(e){var t,n,i,o;if(e[F.ManifestSection.generic]&&Object.keys(e[F.ManifestSection.generic]).length>0||e[F.ManifestSection.ovp]&&Object.keys(e[F.ManifestSection.ovp]).length>0)return F.FioriElementsVersion.v2;{let a=(n=(t=e[F.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[F.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(l=>IE.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>FE.indexOf(l)>-1)?F.FioriElementsVersion.v4:void 0}}r(Kf,"getFEVersionFromManifest");function UE(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[F.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[F.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[F.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[F.ManifestSection.ui5].models[t].dataSource:void 0}r(UE,"getMainService");function Qb(e){var i,o;let t=UE(e);if(!t)return F.OdataVersion.v2;let n=(i=e[F.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?F.OdataVersion.v4:F.OdataVersion.v2}r(Qb,"getODataVersionFromManifest");function kE(e,t){var i,o;let n;if(e[F.ManifestSection.generic]){let a=e[F.ManifestSection.generic].pages;if(!a){k(t,{severity:F.LogSeverity.Error,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(Yn((i=l.component)==null?void 0:i.name)===F.PageTypeV2.AnalyticalListPage){n=F.TemplateType.AnalyticalListPageV2;break}else if(Yn((o=l.component)==null?void 0:o.name)===F.PageTypeV2.ListReport){n=F.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.generic}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return n}r(kE,"determineV2Template");function Ua(e){var i,o,a,s;let t,n=Gf(e);if(n===F.PageTypeV4.AnalyticalListPage)t=F.TemplateType.AnalyticalListPageV4;else if(n===F.PageTypeV4.ListReport){let l=(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];l&&(l[F.ALPViewType.Primary]||l[F.ALPViewType.Secondary])?t=F.TemplateType.AnalyticalListPageV4:t=F.TemplateType.ListReportObjectPageV4}else n===F.PageTypeV4.ObjectPage?t=F.TemplateType.ListReportObjectPageV4:n===F.PageTypeV4.CustomPage&&(t=F.TemplateType.FreestylePageV4);return t}r(Ua,"determineV4PageTemplateType");function _E(e){let t;for(let n in e){let i=e[n];if(t=Ua(i),t)break}return t}r(_E,"determineV4TemplateFromPages");function BE(e,t){let n=e[F.ManifestSection.ui5].routing&&e[F.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(t,{severity:F.LogSeverity.Info,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing"]}}),F.TemplateType.ListReportObjectPageV4;let i=_E(n);return i||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.ui5}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing","targets"]}}),i}r(BE,"determineV4Template");function Jf(e,t,n){let i;return e[F.ManifestSection.ovp]?i=F.TemplateType.OverviewPageV2:t===F.FioriElementsVersion.v2?i=kE(e,n):t===F.FioriElementsVersion.v4&&(i=BE(e,n)),i}r(Jf,"getTemplateTypeFromManifest");function di(e,t,n){e!=null&&e.ID?(t.title=F.FACETTITLEPREFIX+e.ID,t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:n.replace(F.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}r(di,"addSectionTitleAndDescription");function Ho(e,t,n){var i,o;di(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(Ho,"addTargetTitleAndSectionDescription");function jn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[F.SchemaTag.isViewNode]=!0,i[F.SchemaTag.annotationPath]=t.annotationPath,Ho(t,i,n),i}r(jn,"createDefaultSection");function Kb(e,t,n,i=F.FioriElementsVersion.v2,o=!1){var l,c;let a=kt(F.UIVOCABULARY,t),s=[];if(e){let f=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return f&&(s=f.reduce(function(p,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return p;let m=Wb(u,e,t,n,i,!0);return m&&p.push(m),p},s)),s}}r(Kb,"getObjectPageFacetSection");var gi=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let f=a&&a===c?o:c.replace("??","/");if(!(!s[f]&&(a===c&&(f=a),!s[f]))){if(Object.keys(s[f]).length===0||i&&i[i.length-1]===f&&n){Array.isArray(s)?s.splice(Number(f),1):delete s[f],l.pop(),gi(e,l.join("/"),n,i,o,a);return}s=s&&s[f]}})},"deleteEmptyStructure"),Bb=r(e=>e===F.SchemaType.FreestylePage?F.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Je=r((e,t)=>{let n={filename:"",path:""};switch(e){case F.SchemaType.Application:{n.filename="App",n.path=`./${F.DirName.Schemas}/${n.filename}`;break}case F.SchemaType.ListReport:case F.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Bb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Bb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Go(e,t,n,i){if(e===F.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(Go,"generatePageId");function Jb(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,l=e.definitions[s.split(I)[1]];typeof l=="object"&&(i=l.properties,o=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let l=n[s];typeof l=="object"&&o.every(c=>l[c]!==void 0)&&a.push(s)}return a}r(Jb,"findMatchingKeysByAdditionalProperties");function HE(e,t,n,i){let o=e.$ref;if(o){let a=o.split(I)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(HE,"fillArrayFromAnyOfReference");function GE(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(I)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{HE(o,n,t,i)}),i.length===0))return;return i}r(GE,"fillArrayFromPropertyDefinition");function WE(e,t,n,i,o,a,s,l){var f,p,u,m;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(f=c==null?void 0:c.targetDefinition)!=null&&f.$ref||((p=c==null?void 0:c.targetDefinition)==null?void 0:p.type)==="array")return c=Rn(t,n,i,c.targetDefinition,o,a,s),c;e.length>1&&e.forEach(N=>{N!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[N].properties})}),c.title=(u=c==null?void 0:c.targetDefinition)!=null&&u.title?c.targetDefinition.title:n;let v=b==null?void 0:b.split("<")[0],L=i||{};c.configObject=a.createInstance(s,v,L,(m=c==null?void 0:c.targetDefinition)==null?void 0:m.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:o,c.configObject=i;return c}r(WE,"determineNextDefinitionFromDefinitionArray");function Rn(e,t,n,i,o,a,s){let l;if(i.type==="array")return l=Rn(e,t,n,i.items,o,a,s),l;let c=GE(i,n,e);if(c)return l=WE(c,e,t,n,o,a,s,i),l}r(Rn,"getNextTargetDefinition");var qf=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,Hb.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function _t(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(_t,"convertActionKeyToStableId");function Wo(e){return e==null?void 0:e.split(I)[1]}r(Wo,"getDefinitionKey");function qb(e){return e instanceof Error?e.message:String(e)}r(qb,"getErrorMessage");function $n(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r($n,"updatePropertyIndices");function Xb(e){return e=e.replace(F.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(Xb,"removeNamespaces");function Qo(e){return e=e.replace(F.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(Qo,"replaceNamespaces");var In=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=U(B());var Bt=U(B());var We=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Bs=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),ut=r((e,t)=>{let n,i=Bt.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 QE(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(QE,"escapeId");var zb=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(zb||{});function KE(e,t,n){let i;return e=e.map(function(o){if(o===Bt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Bt.PropertyName.sections)return i=t[a+1],t[a+1]=ut(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(KE,"mapBreadcrumbs");var Xf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=KE(t,s,o)),s[0]===Bt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH):t[0]===Bt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),f,p=c.indexOf(":::");return c.startsWith("DataField")&&p>-1?(c=c.replace("/",":2f"),f=`${e}template:::TableColumn:::${c.substring(0,p)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(p+3)}`):(c=c.replace("/","_"),f=`${e}${t.join("::")}-${c}`),QE(f)},"buildColumnControlId"),Ht=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 JE(e){let t=Bt.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(JE,"determinePattern");var Yb=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,l=a.$ref?e.definitions[a.$ref.split(I)[1]]:a,c=a.description?a.description:l.description,f=JE(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(p=>{s.enum.indexOf(p)===-1&&s.enum.push(p)}),o[n]={pattern:f,anyOf:[s,{type:"string"}]},c&&(o[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),wn=r((e,t,n)=>{Yb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Fe=r((e,t,n)=>{let i=Object.values(zb);Yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Hi(){}r(Hi,"doNotDelete");var JD=U(eT());var tT=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(tT,e),"syncRule");function dt(e,t){let n;return e&&(n=Reflect.getMetadata(tT,e,t)),n}r(dt,"getReflectMetadata");var tn=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),nT=Symbol("childId"),_e=r(e=>Reflect.metadata(nT,e),"childId"),Hs=r((e,t)=>Reflect.getMetadata(nT,e,t),"getChildId"),Gs=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),qE=Symbol("descriptionSrcURL"),me=r(e=>Reflect.metadata(qE,e),"descriptionSrcURL");var XE=Symbol("validityMetadataKey"),T=r(e=>Reflect.metadata(XE,e),"validity");function Ws(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(Ws,"getTextForDeprecated");var fT=U(lT()),pT=U(B());var uT=fT.default.change,cT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function dT(e,t){let n="";try{for(let i in cT)e[i]===void 0&&(e[i]=cT[i]);n=uT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(dT,"createChangeString");function mn(e){try{return uT.parse(e)}catch{return!1}}r(mn,"parseChangeString");function gT(e,t,n,i,o){let a=n.layer?n.layer===pT.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(gT,"fillFlexChangeContent");function _(e,t){return dT(e,t)}r(_,"exportToFlexChange");var Gi=U(B());function Ko(e,t,n,i,o,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,o,n,a);c!==void 0&&(i[n]=c)}else t[s]!==void 0&&(i[n]=t[s])}r(Ko,"importProperty");function Qs(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:Gi.LogSeverity.Warning,message:Ws(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Qs,"checkDeprecatedProperties");function zf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(I)[1]];return zf(n,t)}else return e.title?e.title.startsWith(Gi.FACETTITLEPREFIX)?e.title.split(Gi.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(zf,"getSectionTitle");function Ks(e){let t=e.split(`${Gi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(Ks,"getTargetFromCustomColumnRef");function Wi(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(Wi,"removeEmptyStructure");var Ue=require("@sap-ux/vocabularies-types/vocabularies/UI");var ti=require("@sap-ux/vocabularies-types/vocabularies/UI");function Js(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(Js,"replaceSpecialChars");var Qi=r(function(e){return Js(Xb(e))},"prepareId");function ix(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(ix,"evaluateConcat");function Ki(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 ix(e);if(e&&typeof e=="string")return Js(e.replace(/ /g,"_"))}r(Ki,"getStableIdPartFromValue");var mT=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"),ni=r(function(e){let t="";if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=mT(e),t;if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Qi(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Ki(e.Value)+"::"),t+=e.Action,Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataField)return t="DataField::",t+=Ki(e.Value),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Ki(e.Value)+"::",t+=mT(e),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Ki(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Qi(t);if(e.$Type&&e.$Type===ti.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Ki(e.Value),Qi(t)},"getStableIdPartFromDataField");var w=U(B());var le=U(B());var Gt=require("@sap-ux/vocabularies-types/vocabularies/UI"),TT=require("path"),vT=U($a());var Ji="ResponsiveTableWithMultiSelect<LineItems>",qi="ResponsiveTableWithInlineDelete<LineItems>",qs="TreeTable<LineItems>",Xs="AnalyticalTable<LineItems>",zs="GridTable<LineItems>",Yf=[Ji,qi,qs,Xs,zs],yT=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],hT="template::",Ys="template:::ObjectPageAction:::";function ox(e,t,n){e.definitions[le.DefinitionName.LineItems]&&(e.definitions[le.DefinitionName.LineItems].properties.custom={$ref:`${I}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${I}${n}`},description:"Custom Columns"},e.definitions[t][le.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[le.SchemaTag.artifactType]=le.ArtifactType.Manifest)}r(ox,"addCustomColumnDefinition");function ax(e,t){let n;return e==="TableColumnActionIntentBased"?n=Wf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Ie(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n=Ie(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Ie(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(ax,"getActionId");function Zf(e,t,n,i,o){let a,s=n.lineItemId===le.DefinitionName.LineItems?"":"ObjectPage",l=ax(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,f=Et(n.lineItemRecord,n.entityType);t.properties[l]={$ref:I+c},t.properties[l][le.SchemaTag.propertyIndex]=o;let{key:p,ns:u}=zi(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:f,keys:[{name:"Action",value:p}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[c][le.SchemaTag.target]=u)):(e.definitions[c]={type:"object",properties:{},description:f,additionalProperties:!1},e.definitions[c][le.SchemaTag.isViewNode]=!0,e.definitions[c][le.SchemaTag.keys]=[{name:le.SchemaKeyName.action,value:p}],u&&(e.definitions[c][le.SchemaTag.target]=u),e.definitions[c][le.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Zf,"handleActionRecord");function rx(e,t,n){e!==le.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Gt.UIAnnotationTypes.DataFieldForAction||t.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(rx,"getColumnActionType");function sx(e,t){let n=[];if(!(e.$Type!==Gt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),rx(t,e,n),n}r(sx,"getActionType");function ST(e,t,n){let i=Wf(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:I+le.DefinitionName.TableColumn,description:Et(e.lineItemRecord,e.entityType)},o.properties[i][le.SchemaTag.propertyIndex]=n,o.properties[i][le.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,il(o.properties[i],e.lineItemRecord),ol(e.lineItemRecord,o.properties,i)}}r(ST,"generateGenericColumn");function lx(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Zf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Zf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Zf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":ST(i,t,o)}}r(lx,"handleAnyAction");function Jo(e,t,n,i,o,a){o=o||le.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=nl(e,t,n,i,o);if(n){let f=0;n.forEach(p=>{let u={lineItemPath:c,lineItemRecord:p,lineItemId:o,entityType:i},m=sx(p,o);m?m.forEach(b=>{lx(b,t,s,u,f,l,o)}):ST(u,t,f),f++})}a&&(t.definitions[o].properties.custom={$ref:`${I}${a}`})}r(Jo,"addLineItemsType");function cx(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((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}r(cx,"addListReportLeadingProperties");function fx(e,t,n,i){var s,l,c,f,p,u;let o=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.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=(p=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.quickVariantSelectionX)==null?void 0:p.variants;if(a){let m=[];for(let b in a){let v=(u=a[b])==null?void 0:u.key;v!==void 0&&!m.includes(v)&&m.push(v)}Xi(m,o)}}r(fx,"addTabkeyEnum");function Zs(e,t,n,i,o){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let f=c.dataSourceUri.split("webapp")[1];if(f&&f.indexOf(".fragment.xml")>0){let p=JSON.parse((0,vT.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!p||p.Column||p["table:Column"]||p["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!p||!p.Column&&!p["table:Column"]&&!p["table:AnalyticalColumn"]&&!p["smartfilterbar:ControlConfiguration"])){f=f.replace(new RegExp("\\"+TT.sep,"g"),"/");let u=n+f.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),Xi(a,(l=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:l[i])}r(Zs,"addFragmentEnum");function qo(e,t,n,i,o,a=le.DefinitionName.CustomColumns,s=le.DefinitionName.CustomColumn,l){ox(e,a,s),cx(e,t,s),fx(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;Zs(e,o,c,"fragmentName",s),Zs(e,o,c,"fragmentName",le.DefinitionName.CustomColumn),Zs(e,o,c,"cellsFragmentName",s),Zs(e,o,c,"cellsFragmentName",le.DefinitionName.CustomColumn)}r(qo,"addTableColumnExtensions");function PT(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(PT,"removeElementsFromEnum");function el(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Ut(n==null?void 0:n.fullyQualifiedName,Gt.UIAnnotationTerms.SelectionFields);if(o&&(i[le.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${Ie(s.value)}>`,f=yn(s);s.type==="PropertyPath"&&(l=Us(s,n)),i.properties[s.value]={$ref:I+c},i.properties[s.value][le.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][le.SchemaTag.isViewNode]=!0,e.definitions[c][le.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][le.SchemaTag.dataType]=f,e.definitions[c][le.SchemaTag.keys]=[{name:le.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][le.SchemaTag.annotationPath]=`${i[le.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(f)?e.definitions[c].$ref=`${I}SelectionFieldDateSettings`:e.definitions[c].properties={},a++})}r(el,"addSelectionFields");function tl(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(tl,"isDraftEnabled");function CT(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(CT,"isEntityDeletable");function AT(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(AT,"isEntityUpdatable");function Xo(e,t=!1,n){let i=le.DefinitionName.HeaderActionsStandard,o=le.DefinitionName.HeaderActionsStandard,a=le.DefinitionName.HeaderActionStandard;t&&(i=le.DefinitionName.GenericActions,o=le.DefinitionName.HeaderActions,a=le.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[o];l[le.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([f,p])=>{let u=p.$ref.split(I)[1],m=`${a}<${u}>`;l.properties[f]={$ref:`${I}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][le.SchemaTag.actionType]=le.ActionType.Standard})}r(Xo,"addStandardHeaderActions");function ET(e,t){let n=e.definitions[le.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(I)[1],a=`${le.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${I}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][le.SchemaTag.actionType]=le.ActionType.Standard}}r(ET,"addStandardFooterActionsOP");function px(e,t,n,i){if(e===w.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithNavigationPath:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===w.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(px,"copyFieldProperties");function ux(e,t,n,i){let o=e===w.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===w.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(ux,"determineFieldDefinitionName");function dx(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][w.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(dx,"addKeysTagForDataField");function gx(e,t,n){if(e.$Type===Ue.UIAnnotationTypes.DataField||e.$Type===Ue.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ue.UIAnnotationTypes.DataFieldWithNavigationPath)dx(e,t,n);else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][w.SchemaTag.keys]=[{name:"Target",value:Qo(e.Target.value)}],t.definitions[n][w.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][w.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][w.SchemaTag.keys]=[{name:w.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][w.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(gx,"addKeysTagToField");function mx(e){var t,n;return e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ue.UIAnnotationTypes.ConnectedFieldsType}r(mx,"isConnectedField");function yx(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Ue.UIAnnotationTypes.ConnectedFieldsType){let c=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],f=a.Data,p=c.length;for(let u in f){let m=f[u];if(typeof m=="object"&&"$Type"in m){let b=c.findIndex(v=>v===u);b===-1&&(b=p,p++),ep(e,t,m,`ConnectedFields::${a.qualifier}`,b.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(yx,"addConnectedFields");function xT(e,t,n){if(n)return n;let i=Ie(t);return e.definitions[i].properties}r(xT,"getFieldsSchemaContainer");function ep(e,t,n,i,o,a,s,l=!0,c={},f=a.entityType.fullyQualifiedName){var v;let p=ni(n),u=s===w.FioriElementsVersion.v2&&p&&p.includes("::")?p.split("::").splice(1).join("::"):p,m=ux(s,p,i,u),b={};if(!(!n||!n.$Type)){if(n.$Type===Ue.UIAnnotationTypes.DataFieldForAction||n.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===w.SectionType.Section){let L=xT(t,`${e}${w.DefinitionName.Actions}<${i}>`,c.actions),N=L[u]={$ref:`${I}${m}`};N[w.SchemaTag.propertyIndex]=parseInt(o)}}else{let L=xT(t,`${e}${w.DefinitionName.Fields}<${i}>`,c.fields);L[u]={$ref:`${I}${m}`,propertyIndex:parseInt(o)},mx(n)&&(b=yx(e,t,n,a,s))}t.definitions[m]={type:"object",properties:b,description:Et(n,a.entityType),additionalProperties:!1},gx(n,t,m),t.definitions[m][w.SchemaTag.annotationPath]=`/${f}/${n.fullyQualifiedName.split(f)[1]}`,t.definitions[m][w.SchemaTag.annotationType]=n.$Type,t.definitions[m][w.SchemaTag.isViewNode]=!0,il(t.definitions[m],n),px(s,t,n,m),n.$Type===Ue.UIAnnotationTypes.DataFieldForAction&&((v=t.definitions)!=null&&v.FormAction)&&(t.definitions[m].properties=t.definitions[w.DefinitionName.FormAction].properties)}}r(ep,"addField");function hx(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(hx,"determineTargetIdOfForm");function bx(e,t,n,i,o,a=!0){var f;if(!e.target)return;let s=Ie(`${t}${w.DefinitionName.Form}<${i}>`),l=Ie(`${t}${w.DefinitionName.Fields}<${i}>`),c=Ie(`${t}${w.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${I}${s}`},t===w.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${I}${c}`},fields:{$ref:`${I}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][w.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${I}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][w.SchemaTag.isViewNode]=!0,(f=e.entityType)!=null&&f.name&&(n.definitions[s][w.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][w.SchemaTag.isViewNode]=!0,e.base===w.FacetBase.Identification)for(let p in e.target){let u=e.target[p];u&&ep(t,n,u,i,p,e,o,a)}else for(let p in e.target.Data){let u=e.target.Data[p];ep(t,n,u,i,p,e,o)}}r(bx,"addFieldsToFormDefinition");function Tx(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][w.SchemaTag.keys]=[{name:w.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][w.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][w.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][w.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(Tx,"addTagsToFormDefinition");function al(e,t,n,i,o,a){if(!t.target)return;let s=hx(t),l=Ie(`${e}${w.DefinitionName.Form}<${s}>`),c=Ie(`${e}${w.DefinitionName.Fields}<${s}>`),f=Ie(`${e}${w.DefinitionName.Actions}<${s}>`),p=!(t.base===w.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${I}${l}`},e===w.SectionType.Section&&p?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${I}${f}`},fields:{$ref:`${I}${c}`}},description:"Form",additionalProperties:!1},i.definitions[f]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[f][w.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${I}${c}`}},description:"Form",additionalProperties:!1},Tx(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][w.SchemaTag.isViewNode]=!0,bx(t,e,i,s,o,p),s}r(al,"handleForm");function tp(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(tp,"replaceAlias");function rl(e,t){let n=tp(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,l;return o>-1?(a=i.substring(o+1),l=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}r(rl,"getActionNameAndId");function OT(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===w.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:OT(a.pages,t)}}r(OT,"isFirstObjectPage");function sl(e,t,n,i,o){var p,u;e.definitions[w.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${I}${w.DefinitionName.ObjectPageFooter}`},e.definitions[w.DefinitionName.ObjectPageFooter].properties[w.PropertyName.actions]={$ref:`${I}${w.DefinitionName.FooterActions}`};let a=e.definitions[w.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[w.SchemaTag.isViewNode]=!0;let s=kt(w.UIVOCABULARY,t.serviceAVT),l=t.entitySet,c=l==null?void 0:l.entityType,f=s&&((u=(p=c==null?void 0:c.annotations)==null?void 0:p[s])==null?void 0:u.Identification);if(f){let m=f.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`);a[w.SchemaTag.annotationPath]=`/${m}`,i(c,e,a,f)}else c&&(a[w.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`);n===w.FioriElementsVersion.v2&&OT(o,t)&&!tl(l)&&ET(e,a),delete e.definitions[w.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${w.DefinitionName.ObjectPageFooter}<${w.DefinitionName.ObjectPageFooterActions}>`]}r(sl,"addFooterActions");function ll(e,t,n,i,o,a=!1){var u,m;let s=w.DefinitionName.HeaderActions,l=e.definitions[s];e.definitions[w.DefinitionName.ObjectPageHeader].properties[w.PropertyName.actions]={$ref:`${I}${s}`};let c=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[w.SchemaTag.isViewNode]=!0;let f=kt(w.UIVOCABULARY,i),p=f&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[f])==null?void 0:m.Identification);p?c[w.SchemaTag.annotationPath]="/"+p.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`):t&&(c[w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`),o(t,e,p,c,i,n),a&&Xo(e,!0,l),delete e.definitions[w.DefinitionName.GenericActions],delete e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`]}r(ll,"addHeaderActions");function cl(e,t){e.properties.header={$ref:`${I}${w.DefinitionName.ObjectPageHeader}`},e.definitions[w.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`])),t&&(e.definitions[w.DefinitionName.ObjectPageHeader][w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.HeaderInfo}`)}r(cl,"addCommonHeaderSchema");function IT(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(IT,"determineEntitySetOfEntityType");var hn=require("@sap-ux/vocabularies-types/vocabularies/UI");var ye=U(B());function Xi(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(Xi,"addEnumToSchema");function FT(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 l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;o.indexOf(c)===-1&&o.push(c)}}Xi(o,n)}r(FT,"addEnumForValidAnnotations");function mi(e,t,n){let i=t.definitions[n].properties[ye.SchemaTag.annotationPath],o=[hn.UIAnnotationTerms.SelectionVariant,hn.UIAnnotationTerms.SelectionPresentationVariant];FT(e,o,i)}r(mi,"addEnumForSingleTabVariant");function LT(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[hn.UIAnnotationTerms.SelectionVariant,hn.UIAnnotationTerms.SelectionPresentationVariant];FT(n.entityType,o,i)}r(LT,"addEnumForMultiTabVariant");function NT(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),Xi(o,i)}r(NT,"addEnumForVariantEntitySet");function VT(e,t,n,i){let o=n.map(a=>{let s=i.find(f=>!!a[f]),l=a[s],c=a.label||a.title;return{const:l,...c&&{description:c},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[ye.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${I}${ye.DefinitionName.RelatedFacetKeys}`},l]}}}}r(VT,"addDefinitionForRelatedFacetKeys");function ka(e){return e.replace("#","::")}r(ka,"getFacetKeyInSchema");function DT(e,t){return`${e}<${ka(t)}>`}r(DT,"getFacetDefinitionKey");function gt(e,t,n,i=!0,o){let a=t;if(i&&(a=DT(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(gt,"parseSchemaDefinition");function nl(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][ye.SchemaTag.isViewNode]=!0;let l;o===ye.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?l=`${I}${a}`:(l=`${I}${a}<${o}>`,gt(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${l}`}:!1;let c=e?ye.DefinitionName.ObjectPageToolBar:ye.DefinitionName.ToolBar,f=`${c}<${o}>`;try{t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[`${c}`]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${c}`}))}let p=`${ye.DefinitionName.Actions}<${Ie(o)}>`;t.definitions[f].properties.actions.$ref=I+p;let u=o.startsWith(ye.DefinitionName.LineItems)?ye.DefinitionName.Actions:ye.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let b,v;if(o===ye.DefinitionName.LineItems&&t.properties.footer){v=`${ye.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${I}${v}`;try{t.definitions[v]=JSON.parse(JSON.stringify(t.definitions[ye.DefinitionName.GenericFooter]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ye.DefinitionName.GenericFooter}))}let L=`${ye.DefinitionName.FooterActions}<${Ie(o)}>`;t.definitions[v].properties.actions.$ref=I+L;try{b=t.definitions[L]=JSON.parse(JSON.stringify(t.definitions[ye.DefinitionName.Actions]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:ye.DefinitionName.Actions}))}b.properties={},b.additionalProperties=!1}return n&&(s=Ut(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][ye.SchemaTag.annotationPath]=t.definitions[f][ye.SchemaTag.annotationPath]=s,b&&(t.definitions[v][ye.SchemaTag.annotationPath]=s))),{actions:m,footerActions:b,lineItemPath:s}}r(nl,"addCommonLineItemDefinitions");function jT(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(jT,"getDataTypeFromAnnotation");function Yi(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=jT(e.$Type)),t}r(Yi,"determineDataTypeOfTarget");function yn(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=Yi((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=jT(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(yn,"determineDataType");function il(e,t){let n=yn(t);n&&(e[ye.SchemaTag.dataType]=n)}r(il,"addDataTypeToDefinition");function ht(e,t){return`${I}${DT(e,t)}`}r(ht,"getFacetDefinitionLink");function Zi(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${I}${i}`}r(Zi,"addDefinitionRef");function fl(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${ye.UIVOCABULARY}`);t=`/${n}/@${ye.UIVOCABULARY}${i}`}return t}r(fl,"getFacetAnnotationPath");function _a(e,t,n,i,o,a,s=""){let l=`ObjectPage${o}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:ht(a?c:l,t)};let f=gt(a?c:l,t,i,!0,a?c:void 0);di(e,f,t),f[ye.SchemaTag.annotationPath]=e.annotationPath,f[ye.SchemaTag.isViewNode]=!0}r(_a,"handleAddressContact");function np(e,t,n){typeof e=="object"&&(e[t]=n)}r(np,"updateSchemaProperty");function zo(e,t,n=Ie("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${ye.DefinitionName.Fields4Dialog}${n}`];np(o.properties.fields.items,"enum",i)}r(zo,"addFieldsType");function vx(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(vx,"findFirstSchemaDefinitionKey");function ip(e,t,n,i){var f;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let p=Wo(t.$ref),u=(f=e.definitions)==null?void 0:f[p];typeof u=="object"&&(s=!u.annotationPath,i!=null&&i.resolveDefinition&&!o&&(o=u.description,a=u.keys))}let l=n,c=vx(a,i==null?void 0:i.keyProperties);return c?l=c.value:i!=null&&i.descriptionAsFallback&&o&&(l=o),{const:l,...o&&{description:o},...s&&{custom:s}}}r(ip,"getEnumEntry");function RT(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let c=t.properties[l],f=ip(e,c,l,i);o.push(f)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];np(l,"oneOf",o)}else np(a,"oneOf",o)}r(RT,"addDescriptiveEnumDefinition");function zi(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(zi,"getActionKey");function ol(e,t,n){var i,o,a;try{if(e.Value)t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.value,value:Ki(e.Value)}];else if(e.$Type===hn.UIAnnotationTypes.DataFieldWithAction||e.$Type===hn.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=zi(e.Action,!0);t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.action,value:s}],l&&(t[n][ye.SchemaTag.target]=l)}else if(e.$Type===hn.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=zi(e.Target.value,!1);t[n][ye.SchemaTag.keys]=[{name:ye.SchemaKeyName.target,value:Qo(s)}],t[n][ye.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===hn.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=zi(s,!0);t[n][ye.SchemaTag.keys]=[{name:"SemanticObject",value:e[ye.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][ye.SchemaTag.target]=c)}}catch{return}}r(ol,"addKeyToDefinition");var Yo=U(B());var $T=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{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 MT="1.84.104";var UT={name:"@sap/ux-specification",version:MT,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.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 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 -p 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/to-json-schema.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 -p 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.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.84.104","@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.7.9",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",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.57.0","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 yi=class yi{constructor(){yi.distTagsOfSpec.length===0&&(yi.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){yi.distTagsOfSpec=[]}getSpecVersion(){return MT}getDistTagsOfVersion(){let t=[],n=$T,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=j.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});k(n,{severity:Yo.LogSeverity.Info,message:o,location:{path:Yo.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(yi.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=j.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:Yo.LogSeverity.Warning,message:o,location:{path:Yo.MANIFESTPATH}})}}};r(yi,"DistTagEvaluator"),yi.distTagsOfSpec=[];var Ba=yi;var Q=U(B());var lt=U(B());var bi=U(B());var op=class op{constructor(t,n,i,o){this.unhandledControllers=[];let a=Je(bi.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!==bi.PageType.CustomPage){let l=Je(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Je(i.pageType);s.$schema=c.path}t[`${bi.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[bi.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(op,"AppProvider");var hi=op;var Ae=U(B());var Zo=U(B());var ft=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),kT=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"),_T=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 ap(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(ap,"getNewPageTemplate");function Cx(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(Cx,"findPageInManifest");function Ax(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ap(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ap(e[t].pageType)}),!Array.isArray(n.pages))){let i=Cx(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=ap(e[t].pageType)),rp(t,e,i)}}r(Ax,"transformPageFromAssociation");function Ex(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)===Zo.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Zo.PageTypeV2.ListReport||n.pageType===Zo.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(Ex,"deletePage");function rp(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Zo.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)Ax(t,o,n);Array.isArray(n.pages)||Ex(n,t,i)}}r(rp,"transformPageToNewManifestV2");var Ov=U($a());var Wu={};Do(Wu,{ALPAnalyticalTable:()=>Gp,ALPGridTable:()=>Hp,ALPResponsiveTable:()=>Bp,Action:()=>Jp,AnalyticalCard:()=>oa,AnalyticalCardSettings:()=>gl,AnalyticalCardSettingsv4:()=>up,AnalyticalListPageFilterBar:()=>Sp,AnalyticalTable:()=>_p,BaseCustomSection:()=>br,ChartSettings:()=>uu,ChartSettingsType:()=>lp,CommonCardSettings:()=>Pi,CommonHeaderFacetSettings:()=>po,CommonTableSettings:()=>Ei,CommonTableSettingsForSections:()=>ho,CreateWithFilters:()=>Rp,CustomCard:()=>fp,DataLoadSettings:()=>$p,DateRange:()=>hp,DefaultSpanObject:()=>cp,FRAGMENT_DEFINITION:()=>Un,Field:()=>yp,FieldForAction:()=>Ep,Fields4Dialog:()=>wp,Fields4DialogOP:()=>Uu,FooterAction:()=>Xp,FormAction:()=>Ap,GlobalChartSettings:()=>wu,GlobalTableSettings:()=>Hu,GridTable:()=>Wp,HeaderAction:()=>mu,HeaderActionStandard:()=>tu,HeaderSections:()=>vu,KPISettings:()=>du,LinkListCardSettings:()=>gp,LinklistCard:()=>za,ListCard:()=>ia,ListCardSettings:()=>pp,ListReportFilterBar:()=>Tl,ObjectPageAnalyticalTable:()=>ku,ObjectPageChart:()=>$u,ObjectPageCustomSectionFragment:()=>Tr,ObjectPageCustomSectionView:()=>vr,ObjectPageFooterAction:()=>Pu,ObjectPageFooterActionStandard:()=>iu,ObjectPageGridTable:()=>_u,ObjectPageHeader:()=>gu,ObjectPageHeaderActionStandard:()=>nu,ObjectPageHeaderSectionAddress:()=>Tu,ObjectPageHeaderSectionChart:()=>hu,ObjectPageHeaderSectionDataPoint:()=>bu,ObjectPageHeaderSectionForm:()=>yu,ObjectPageLayout:()=>Au,ObjectPageResponsiveTable:()=>bo,ObjectPageSectionAddressV2:()=>Fu,ObjectPageSectionChartV2:()=>Ou,ObjectPageSectionContactV2:()=>Lu,ObjectPageSectionFormV2:()=>xu,ObjectPageSectionTableV2:()=>Iu,ObjectPageSectionV2:()=>Eu,ObjectPageSubSectionChartV2:()=>Du,ObjectPageSubSectionContactV2:()=>ju,ObjectPageSubSectionFormV2:()=>Vu,ObjectPageSubSectionTableV2:()=>Ru,ObjectPageSubSectionV2:()=>Nu,ObjectPageToolBarAction:()=>Gu,ObjectPageTreeTable:()=>Bu,QuickVariantSelection:()=>Mp,QuickVariantSelectionOP:()=>Mu,QuickVariantSelectionX:()=>Up,ResponsiveTable:()=>ro,SAP_UI_TABLE:()=>vl,SaveAndEditOP:()=>eu,SelectionFieldDateSettings:()=>Tp,SelectionFields:()=>vp,Share:()=>zp,ShareOP:()=>Yp,StackCard:()=>Xa,StackCardSettings:()=>dp,TableALP:()=>ca,TableCard:()=>aa,TableCardSettings:()=>mp,TableColumn:()=>ru,TableColumnAction:()=>kl,TableColumnActionIntentBased:()=>su,TableCustomColumn:()=>lu,ToolBar:()=>fu,ToolBarAction:()=>qp,TreeTable:()=>kp,UpAndDownNavigationOP:()=>Zp,buildIntentBasedActionId:()=>ou,deleteColumnFromFragment:()=>Cl,deleteType:()=>pa,exportColorPalette:()=>WT,exportCreateParametersFields:()=>Ll,exportCustomColumnsToFragment:()=>jp,exportDateSettings:()=>qT,exportDateSettingsField:()=>XT,exportDefaultSpan:()=>QT,exportType:()=>fa,getChartSectionControlId:()=>Pv,getContactSubSectionControlId:()=>Av,getCustomColumnPath:()=>Al,getFormSectionControlId:()=>Sv,getRootCustomColumnFromFragmentJSON:()=>tr,getSectionControlId:()=>mo,getSmartChartControlId:()=>fr,getSmartTableControlId:()=>ao,getSubSectionControlId:()=>Cv,getTableSectionControlId:()=>vv,importCreateParameters:()=>Fl,importDateSettings:()=>Pp});var xt=U(B());var pe=r(e=>`${xt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),eo=r(e=>pe(e)+"/tableSettings","getTableSettingPathV2"),BT=r(e=>pe(e)+"/chartSettings","getChartSettingPathV2"),HT=r(e=>pe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var et=r(()=>xt.ManifestSection.ovp,"getOVPsettingPath"),q=r(e=>{let t=[xt.ManifestSection.ovp];return e.forEach(n=>{n in xt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var to=r((e,t)=>`${xt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),dl=r(e=>{let t=[xt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Nt=r(e=>{let t=[];return t.push(dl(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),no=r(e=>Nt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),bn=r((e,t,n)=>{let i=[];i.push(dl(e));let o=n.replace(xt.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),nn=r((e,t,n)=>bn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),GT=r((e,t,n)=>bn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),sp=r(()=>`sap.ui5/extends/extensions/${xt.v2.SAPUI5_VIEW_EXTENSION}/${xt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),oi=r((e,t,n,...i)=>{let o="|",a=n.split(o),s=e[e.length-1].split(o),l="";a.length===4?l=[a[2],a[3]].join(o):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(o);return i.unshift(c),`${sp()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ul=class ul{};r(ul,"ApplicationV2"),d([_e("settings")],ul.prototype,"settings",2);var pl=ul,ii=class ii{};r(ii,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],ii.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],ii.prototype,"description",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.50.0"})],ii.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.46.0"})],ii.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>xt.GENERICAPPSETTINGS,"path")}}),T({since:"1.74.0"})],ii.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"}),me("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],ii.prototype,"flexEnabled",2);var Ti=ii;var Ha=U(B());function xx(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=Ha.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Ha.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Ha.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(xx,"importColorPalette");function WT(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Ha.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(WT,"exportColorPalette");function QT(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(QT,"exportDefaultSpan");var ml=class ml{};r(ml,"ChartSettingsType"),d([g({manifest:{path:r(()=>et()+"/chartSettings","path")}})],ml.prototype,"showDataLabel",2);var lp=ml,vi=class vi{};r(vi,"DefaultSpanObject"),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"cols",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"rows",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vi.prototype,"minimumSubTitleRow",2);var cp=vi,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>q(t),"path"),export:QT}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"customParams",2);var Pi=Be,ea=class ea{};r(ea,"CustomCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"template",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ea.prototype,"settings",2);var fp=ea,Si=class Si extends Pi{};r(Si,"ListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"listType",2);var pp=Si,Ga=class Ga{};r(Ga,"ListCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ga.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ga.prototype,"template",2);var ia=Ga,Tn=class Tn extends Pi{};r(Tn,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"navigation",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>q(t),"path"),import:xx,export:WT}})],Tn.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Tn.prototype,"bEnableStableColors",2);var gl=Tn,yl=class yl extends gl{};r(yl,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>q(t),"path")}})],yl.prototype,"measureAggregate",2);var up=yl,Wa=class Wa{};r(Wa,"AnalyticalCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Wa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Wa.prototype,"template",2);var oa=Wa,ta=class ta extends Pi{};r(ta,"StackCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"itemText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ta.prototype,"objectStreamCardsSettings",2);var dp=ta,Qa=class Qa{};r(Qa,"StackCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"template",2);var Xa=Qa,na=class na extends Pi{};r(na,"LinkListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],na.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],na.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],na.prototype,"staticContent",2);var gp=na,Ka=class Ka{};r(Ka,"LinklistCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"template",2);var za=Ka,Ja=class Ja extends Pi{};r(Ja,"TableCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"enableAddToInsights",2);var mp=Ja,qa=class qa{};r(qa,"TableCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"template",2);var aa=qa;var KT=U(B());var Ox=r((e,t,n,i,o)=>{let a=ut(n[1],o),s=n.slice(-1)[0];return We(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),hl=class hl{};r(hl,"Field"),d([g({flex:{controlId:Ox,controlType:r(()=>KT.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Fe})],hl.prototype,"visible",2);var yp=hl;var oo=U(B());function Pp(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(Pp,"importDateSettings");function qT(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(qT,"exportDateSettings");function Ix(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(Ix,"importDateSettingsField");function XT(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(XT,"exportDateSettingsField");var ra=class ra{};r(ra,"DateRange"),d([g({manifest:{path:r(t=>pe(t)+oo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],ra.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>pe(t)+oo.DATESETTINGSPATH,"path"),import:Pp,export:qT}}),T({since:"1.77.0"})],ra.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>pe(t)+oo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],ra.prototype,"exclude",2);var hp=ra,bl={controlId:We,controlType:r(()=>oo.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},bp={path:r((e,t,n)=>`${pe(e)}${oo.DATESETTINGSPATH}/fields/${n}`,"path")},JT={...bp,import:Ix,export:XT},io=class io{};r(io,"SelectionFieldDateSettings"),d([g({manifest:JT}),T({since:"1.77.0"})],io.prototype,"selectedValues",2),d([g({manifest:bp}),T({since:"1.77.0"})],io.prototype,"exclude",2),d([g({manifest:bp}),T({since:"1.77.0"})],io.prototype,"customDateRangeImplementation",2),d([g({manifest:JT}),T({since:"1.77.0"})],io.prototype,"filter",2);var Tp=io,Cp=class Cp{};r(Cp,"SelectionFields");var vp=Cp,vn=class vn{};r(vn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.38.0"})],vn.prototype,"smartVariantManagement",2),d([g({flex:bl}),T({since:"1.40.0"})],vn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.48.0"})],vn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.52.0"})],vn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>pe(t)+"/filterSettings","path"),import:Pp}}),T({since:"1.77.0"})],vn.prototype,"dateSettings",2),d([g({flex:bl}),T({since:"1.28.0"})],vn.prototype,"showClearOnFB",2),d([g({flex:bl}),T({since:"1.38.0"})],vn.prototype,"showFilterConfiguration",2),d([g({flex:bl}),T({since:"1.28.0"})],vn.prototype,"showRestoreOnFB",2);var Tl=vn,Ya=class Ya extends Tl{};r(Ya,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>pe(t),"path")}})],Ya.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.60.0"})],Ya.prototype,"filterDefaultsFromSelectionVariant",2);var Sp=Ya;var on=U(B());var Mn=r((e,t,n,i,o)=>{if(i()===on.ControlType.Button){let a=n[n.length-1],s=ut(n[1],o);return`${e}action::${a}::${s}::FormAction`}return We(e,t)},"getFormActionButtonId"),Ci=class Ci{};r(Ci,"FormAction"),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ci.prototype,"visible",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"tooltip",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"icon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"activeIcon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ci.prototype,"type",2);var Ap=Ci,Ai=class Ai{};r(Ai,"FieldForAction"),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ai.prototype,"visible",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"tooltip",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"icon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}})],Ai.prototype,"activeIcon",2),d([g({flex:{controlId:Mn,controlType:r(()=>on.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ai.prototype,"type",2);var Ep=Ai;var Ne=U(B()),Sn=U($a());var Fp=require("path"),Qx=U(B()),cv=U(lv()),fv=require("fs");var Kx=(0,Fp.join)(__dirname,"templates");var Jx=r((e,t)=>{let n=(0,fv.readFileSync)(e,"utf8");return(0,cv.render)(n,t)},"renderTemplate");var Lp=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 Jx((0,Fp.join)(Kx,t+".xml"),n)},"getSingleColumnContent"),Np=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=Lp(i,t);n=n+`
83
83
  `+o}return n+`
84
- </core:FragmentDefinition>`},"getColumnFragmentContent"),Nf=r(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
84
+ </core:FragmentDefinition>`},"getColumnFragmentContent"),Vp=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 Sl=require("path");var Un="core:FragmentDefinition",vl="sap.ui.table",Df=new Map([[Ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:vl,name:"Column"}],[Ve.ViewTemplateType.GridTableColumnsExtension,{namespace:vl,name:"Column"}],[Ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:vl,name:"AnalyticalColumn"}]]),qx=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]]),uv={type:"element",name:"Text",attributes:{text:"Placeholder"}},Xx=JSON.stringify(uv);function zx(e,t){var i;let n=t?(i=e==null?void 0:e[Un])==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(zx,"getFragmentNamespaces");function fv(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(fv,"getTagName");function Pl(e,t,n=e){let i=zx(n,!!(t||n!==e));if(t){let o=Df.get(t);return fv(o,i.get(o.namespace))}else{let o=Df.keys();for(let a of o){let s=Df.get(a),l=i?fv(s,i.get(s.namespace)):s.name;if(e[l])return l}}}r(Pl,"getTagNameFromFragmentJSON");function tr(e,t=e){let n=Pl(e,void 0,t);return e[n]}r(tr,"getRootCustomColumnFromFragmentJSON");function Yx(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(Yx,"addP13nData");function dv(e,t){var l,c,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=Yx(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[s])==null?void 0:c.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(dv,"handleFragmentColumn");function Zx(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),l=s[s.length-1]+Ve.FRAGMENTNAMEPART+a;for(let c of t){let p=c.dataSourceUri.split(Sl.sep);if(p[p.length-1]===l){let f=JSON.parse((0,Sn.xml2json)(c.fileContent,{compact:!0}));try{let u=Pl(f[Un]);u&&(delete f[Un][u],c.fileContent=(0,Sn.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}r(Zx,"deleteColumnsFromFragment");function gv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Xx&&(e.splice(n,1),t-=1,t===0));n++);}r(gv,"deleteNumberOfCells");function eI(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 l=JSON.parse((0,Sn.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");c&&gv(l.elements[0].elements,c.length),s.fileContent=(0,Sn.json2xml)(JSON.stringify(l),{spaces:4});break}}r(eI,"deleteCellsFromFragment");function Cl(e,t,n,i){if(i){Zx(e,i,t,n);let o=t.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&eI(a,i,n)}}r(Cl,"deleteColumnFromFragment");function tI(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(uv)}r(tI,"addNewColumnsInFragment");function nI(e,t){let n=JSON.parse((0,Sn.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)tI(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;gv(a,o)}e.fileContent=(0,Sn.json2xml)(JSON.stringify(n),{spaces:4})}}r(nI,"updateNonEmptyCellsFragment");function iI(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Sl.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=Nf(n):nI(o,n);break}}return i}r(iI,"updateCellsFragment");function oI(e,t,n,i,o){var f;let a,s,l=t.manifest,c=pt(l,e),p=c.type?c.type.toLowerCase():"xml";c.type=p.toUpperCase();for(let u of n){if(!u.fragmentName){k(o,{severity:Ve.LogSeverity.Error,message:j.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Ve.ChangeIndicator.Updated,c.fragmentName=u.fragmentName,c.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,Sl.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=pt(l,u),b=n.reduce((v,L)=>L.cellsFragmentName?L:v);b&&b.cellsFragmentName?(m.fragmentName=s=b.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):_T(l,u)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(oI,"exportCustomColumnsToManifest");function aI(e,t,n,i,o){let a=Lf(e,t);if(a){let s=JSON.parse((0,Sn.xml2json)(a,{compact:!0})),l=tr(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(o,0,l),n=c}else n=[l]}return n}r(aI,"insertNewColumnInFragment");function rI(e,t){let n=[];for(let i=0;i<e.length;i++)dv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(rI,"processCustomColumnInArray");function sI(e,t,n){if(e){if(Array.isArray(e))rI(e,t);else if(!dv(e,t)){let o=Pl(n[Un]);o&&(delete n[Un][o],e=void 0)}}return e}r(sI,"maintainExistingColumnInFragment");function lI(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=aI(a,i,n,o,s)}return n}r(lI,"insertNewColumnsInFragment");function cI(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=Vf(i,o);else{let c=JSON.parse((0,Sn.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(c);l=tr(c[Un]),l=sI(l,i,c),l=lI(i,n,l,o,c);let f=Pl(c,o);c[Un][f]=l;let u=JSON.stringify(c);u!==p&&(s.fileContent=(0,Sn.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(cI,"updateColumnsInFragment");function jf(e,t,n,i,o,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:p,fragmentType:f}=oI(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=l.fragmentName,b=m.substr(i.length+1),v=b.split(".");m=v[v.length-1]+Ve.FRAGMENTNAMEPART+f;let V=p==null?void 0:p.split("."),z=V?V[V.length-1]:null,ne=z?z+Ve.FRAGMENTNAMEPART+f:null,ie=cI(s,m,b,u,o),ce=!1;if(p?ce=iI(s,ne,n):ce=!0,!ie){let Y={fileContent:Vf(u,o),dataSourceUri:c,changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(Y)}if(!ce){let Y={fileContent:Nf(n),dataSourceUri:c.replace(m,ne),changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(Y)}}r(jf,"exportCustomColumnsToFragment");var Al=r((e,t,n,i)=>{var c,p,f,u;if(!e)return;let o=qx.get((c=e.component)==null?void 0:c.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 tt=U(B());var ao=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+tt.PropertyName.table:We(e,t),"getSmartTableControlId");function Fl(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(Fl,"importCreateParameters");function Ll(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(Ll,"exportCreateParametersFields");function pI(e,t){for(let n in t.variants){let i=t.variants[n],o=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)o.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}r(pI,"exportVariants");function fI(e,t){t.variants&&(Object.keys(t.variants).length>0?pI(e,t):delete e.variants)}r(fI,"exportQuickVariantSelectionX");var El=class El{};r(El,"CreateWithFilters"),d([g({manifest:{path:r(t=>fe(t)+"/createWithFilters","path")}})],El.prototype,"strategy",2);var Rf=El;function or(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(or,"importType");function ca(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(ca,"exportType");function pa(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(pa,"deleteType");var xl=class xl{};r(xl,"DataLoadSettings"),d([g({manifest:{path:r(t=>HT(t),"path")}}),T({since:"1.75.2"})],xl.prototype,"loadDataOnAppLaunch",2);var $f=xl,Il=class Il{};r(Il,"Fields4Dialog"),d([g({manifest:{path:r(t=>eo(t)+"/createWithParameterDialog","path"),export:Ll}}),T({since:"1.77.0"})],Il.prototype,"fields",2);var wf=Il,nr=class nr{};r(nr,"QuickVariantSelection"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],nr.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],nr.prototype,"variants",2);var Mf=nr,ra=class ra{};r(ra,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],ra.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],ra.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path"),export:fI}}),T({since:"1.48.0"})],ra.prototype,"variants",2);var Uf=ra,It=class It{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(It,"CommonTableSettings"),d([g({manifest:{key:"createWithParameterDialog",path:r(t=>eo(t),"path"),import:Fl}}),T({since:"1.77.0"})],It.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:We,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.38.0"})],It.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],It.prototype,"useExportToExcel",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],It.prototype,"exportType",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],It.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],It.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.38.0"})],It.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.70.0"})],It.prototype,"selectAll",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.70.0"})],It.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.75.2"})],It.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.42.0"})],It.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.56.0"}),me("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],It.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],It.prototype,"toolBar",2);var Ei=It,kn=class kn extends Ei{};r(kn,"ResponsiveTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:or,export:ca,delete:pa}}),T({since:"1.50.0"})],kn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],kn.prototype,"createWithFilters",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_},generate:wn}),T({since:"1.52.0"})],kn.prototype,"popinLayout",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}})],kn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.77.0"})],kn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],kn.prototype,"showDraftToggle",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],kn.prototype,"growingThreshold",2);var ro=kn,ir=class ir extends Ei{};r(ir,"TreeTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:or,export:ca,delete:pa}}),T({since:"1.50.0"})],ir.prototype,"type",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],ir.prototype,"showDraftToggle",2);var kf=ir,rn=class rn extends Ei{};r(rn,"AnalyticalTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:or,export:ca,delete:pa}}),T({since:"1.50.0"})],rn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],rn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],rn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],rn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],rn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],rn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],rn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],rn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],rn.prototype,"showDraftToggle",2);var _f=rn,_n=class _n extends Ei{};r(_n,"TableALP"),d([g({manifest:{path:r(t=>fe(t),"path"),import:or,export:ca,delete:pa}}),T({since:"1.50.0"})],_n.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],_n.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],_n.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],_n.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],_n.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],_n.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],_n.prototype,"allFiltersAsInParameters",2);var la=_n,Ol=class Ol extends la{};r(Ol,"ALPResponsiveTable"),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Ol.prototype,"growingThreshold",2);var Bf=Ol,Qf=class Qf extends la{};r(Qf,"ALPGridTable");var Hf=Qf,Kf=class Kf extends la{};r(Kf,"ALPAnalyticalTable");var Gf=Kf,sa=class sa extends Ei{};r(sa,"GridTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:or,export:ca,delete:pa}}),T({since:"1.50.0"})],sa.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],sa.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],sa.prototype,"showDraftToggle",2);var Wf=sa;var ar=U(B());var uI=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}`},"getActionButtonId"),dI=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),gI=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}${Ys}${i}`},"getStandardFooterActionOPButtonId"),ou=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Ht(n);return`${e}action::${i}::${_t(o)}`},"buildIntentBasedActionId"),mI=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),xi={controlId:uI,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},rr={controlId:dI,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},mv={controlId:gI,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},Vl={controlId:mI,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},so=class so{};r(so,"Action"),d([g({flex:xi})],so.prototype,"tooltip",2),d([g({flex:xi})],so.prototype,"icon",2),d([g({flex:xi})],so.prototype,"activeIcon",2),d([g({flex:xi})],so.prototype,"type",2);var Jf=so,lo=class lo{};r(lo,"ToolBarAction"),d([g({flex:xi})],lo.prototype,"tooltip",2),d([g({flex:xi})],lo.prototype,"icon",2),d([g({flex:xi})],lo.prototype,"activeIcon",2),d([g({flex:xi})],lo.prototype,"type",2);var qf=lo,co=class co{};r(co,"FooterAction"),d([g({flex:Vl})],co.prototype,"tooltip",2),d([g({flex:Vl})],co.prototype,"icon",2),d([g({flex:Vl})],co.prototype,"activeIcon",2),d([g({flex:Vl})],co.prototype,"type",2);var Xf=co,Nl=class Nl{};r(Nl,"Share"),d([g({flex:rr})],Nl.prototype,"visible",2);var zf=Nl,Dl=class Dl{};r(Dl,"ShareOP"),d([g({flex:rr})],Dl.prototype,"visible",2);var Yf=Dl,jl=class jl{};r(jl,"UpAndDownNavigationOP"),d([g({flex:rr})],jl.prototype,"visible",2);var Zf=jl,Rl=class Rl{};r(Rl,"SaveAndEditOP"),d([g({flex:mv,generate:Fe})],Rl.prototype,"visible",2);var eu=Rl,$l=class $l{};r($l,"HeaderActionStandard"),d([g({flex:rr})],$l.prototype,"visible",2);var tu=$l,wl=class wl{};r(wl,"ObjectPageHeaderActionStandard"),d([g({flex:rr})],wl.prototype,"visible",2);var nu=wl,Ml=class Ml{};r(Ml,"ObjectPageFooterActionStandard"),d([g({flex:mv})],Ml.prototype,"visible",2);var iu=Ml;var cr=U(B());var yI=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Ht(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),hI=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),bI=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),au={controlId:yI,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_},sr={controlId:bI,controlType:r(()=>cr.ControlType.Button,"controlType"),createFlexChange:_},yv={...au,controlId:hI},Ul={...sr,controlId:ou},lr=class lr{};r(lr,"TableColumn"),d([g({flex:{controlId:qp,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_}})],lr.prototype,"width",2),d([g({flex:{controlId:qp,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:wn})],lr.prototype,"hAlign",2);var ru=lr,ai=class ai{};r(ai,"TableColumnAction"),d([g({flex:au})],ai.prototype,"width",2),d([g({flex:au,generate:wn})],ai.prototype,"hAlign",2),d([g({flex:sr})],ai.prototype,"tooltip",2),d([g({flex:sr})],ai.prototype,"icon",2),d([g({flex:sr})],ai.prototype,"activeIcon",2),d([g({flex:sr})],ai.prototype,"type",2);var kl=ai,ri=class ri extends kl{};r(ri,"TableColumnActionIntentBased"),d([g({flex:yv})],ri.prototype,"width",2),d([g({flex:yv,generate:wn})],ri.prototype,"hAlign",2),d([g({flex:Ul})],ri.prototype,"tooltip",2),d([g({flex:Ul})],ri.prototype,"icon",2),d([g({flex:Ul})],ri.prototype,"activeIcon",2),d([g({flex:Ul})],ri.prototype,"type",2);var su=ri,cu=class cu{};r(cu,"TableCustomColumn");var lu=cu;var fu=class fu{};r(fu,"ToolBar");var pu=fu;var po=U(B());var pr=r(e=>e+po.PropertyName.chart,"getSmartChartControlId"),Ii=class Ii{};r(Ii,"ChartSettings"),d([g({flex:{controlId:pr,controlType:r(()=>po.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ii.prototype,"showLegendButton",2),d([g({flex:{controlId:pr,controlType:r(()=>po.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ii.prototype,"showDownloadButton",2),d([g({flex:{controlId:pr,controlType:r(()=>po.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Ii.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:pr,controlType:r(()=>po.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:_}})],Ii.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>BT(t),"path")}}),T({since:"1.81.0"})],Ii.prototype,"showDataLabel",2);var uu=Ii;var si=class si{};r(si,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"groupId",2);var du=si;var hv=U(B());var TI=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",We(e,n)},"getAvatarControlId"),Oi=class Oi{};r(Oi,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.46.0"})],Oi.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.46.0"})],Oi.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"})],Oi.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"}),me("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Oi.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:TI,controlType:r(()=>hv.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Fe})],Oi.prototype,"displayShape",2);var gu=Oi;var _l=U(B());var vI=r((e,t,n,i)=>{if(i()===_l.ControlType.Button||i()===_l.ControlType.HeaderAction){let o=n[2];return`${e}action::${_t(o)}`}return We(e,t)},"getActionButtonId"),fr={controlId:vI,controlType:r(()=>_l.ControlType.HeaderAction,"controlType"),createFlexChange:_},Fi=class Fi{};r(Fi,"HeaderAction"),d([g({flex:fr,generate:Fe})],Fi.prototype,"visible",2),d([g({flex:fr})],Fi.prototype,"tooltip",2),d([g({flex:fr})],Fi.prototype,"icon",2),d([g({flex:fr})],Fi.prototype,"activeIcon",2),d([g({flex:fr})],Fi.prototype,"type",2);var mu=Fi;var ur=U(B());var Kl="header::headerEditable::",SI=r((e,t,n,i,o)=>`${e}${Kl}${o}`,"getDataPointHeaderSectionId"),PI=r((e,t,n,i,o)=>`${e}${Kl}${o}::ContactAddress`,"getAddressHeaderSectionId"),CI=r((e,t,n,i,o)=>`${e}${Kl}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),bv=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(ur.FACETTITLEPREFIX)?o.split(ur.FACETTITLEPREFIX)[1]:a;return`${e}${Kl}${s}::Form`},"getFormHeaderSectionId"),dr={controlType:r(()=>ur.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},Bl=class Bl{};r(Bl,"CommonHeaderFacetSettings"),d([g({flex:{...dr,controlId:bv},generate:Fe})],Bl.prototype,"visible",2);var fo=Bl,Hl=class Hl extends fo{};r(Hl,"ObjectPageHeaderSectionForm"),d([g({flex:{...dr,controlId:bv}})],Hl.prototype,"visible",2);var yu=Hl,Gl=class Gl extends fo{};r(Gl,"ObjectPageHeaderSectionChart"),d([g({flex:{...dr,controlId:CI}})],Gl.prototype,"visible",2);var hu=Gl,Wl=class Wl extends fo{};r(Wl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...dr,controlId:SI}})],Wl.prototype,"visible",2);var bu=Wl,Ql=class Ql extends fo{};r(Ql,"ObjectPageHeaderSectionAddress"),d([g({flex:{...dr,controlId:PI}})],Ql.prototype,"visible",2);var Tu=Ql,Su=class Su{};r(Su,"HeaderSections");var vu=Su;var Cu=U(B());var AI=r((e,t,n,i)=>{if(i()===Cu.ControlType.Button){let{actionId:o}=Ht(n);return`${e}action::${_t(o)}::Determining`}return We(e,t)},"getFooterActionButtonId"),gr={controlId:AI,controlType:r(()=>Cu.ControlType.Button,"controlType"),createFlexChange:_},Li=class Li{};r(Li,"ObjectPageFooterAction"),d([g({flex:gr,generate:Fe})],Li.prototype,"visible",2),d([g({flex:gr})],Li.prototype,"tooltip",2),d([g({flex:gr})],Li.prototype,"icon",2),d([g({flex:gr})],Li.prototype,"activeIcon",2),d([g({flex:gr})],Li.prototype,"type",2);var Pu=Li;var mr=U(B());var Jl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",We(e,n)},"getControlId"),uo=class uo{};r(uo,"ObjectPageLayout"),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Fe})],uo.prototype,"showHeaderContent",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],uo.prototype,"showAnchorBar",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],uo.prototype,"useIconTabBar",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),T({since:"1.34.0"})],uo.prototype,"alwaysShowContentHeader",2);var Au=uo;var Tv=U(B());var go=class go{};r(go,"BaseCustomSection"),d([g({manifest:{path:oi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),T({since:"1.52.0"})],go.prototype,"relatedFacet",2),d([g({manifest:{path:oi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),T({since:"1.52.0"})],go.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>oi(t,{},i,Tv.ManifestSection.generic),"path")}}),T({since:"1.52.0"})],go.prototype,"title",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],go.prototype,"className",2);var br=go,yr=class yr extends br{};r(yr,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],yr.prototype,"fragmentName",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],yr.prototype,"type",2);var Tr=yr,hr=class hr extends br{};r(hr,"ObjectPageCustomSectionView"),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],hr.prototype,"viewName",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],hr.prototype,"type",2);var vr=hr;var Wt=U(B());var vv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),Wt.DefinitionName.Table];return We(e,s)},"getTableSectionControlId"),Sv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"FormGroup"];return We(e,s)},"getFormSectionControlId"),Pv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Chart"];return We(e,s)},"getChartSectionControlId"),mo=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Section"];return We(e,s)},"getSectionControlId"),Cv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"SubSection"];return We(e,s)},"getSubSectionControlId"),Av=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"ContactsList"];return We(e,s)},"getContactSubSectionControlId"),ql=class ql{};r(ql,"ObjectPageSectionV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ql.prototype,"visible",2);var Eu=ql,Xl=class Xl{};r(Xl,"ObjectPageSectionFormV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Xl.prototype,"visible",2);var xu=Xl,zl=class zl{};r(zl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],zl.prototype,"visible",2);var Iu=zl,Yl=class Yl{};r(Yl,"ObjectPageSectionTableV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Yl.prototype,"visible",2);var Ou=Yl,Zl=class Zl{};r(Zl,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Zl.prototype,"visible",2);var Fu=Zl,ec=class ec{};r(ec,"ObjectPageSectionContactV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ec.prototype,"visible",2);var Lu=ec,tc=class tc{};r(tc,"ObjectPageSubSectionV2"),d([g({flex:{controlId:Cv,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],tc.prototype,"visible",2);var Vu=tc,nc=class nc{};r(nc,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:Sv,controlType:r(()=>Wt.ControlType.Group,"controlType"),createFlexChange:_},generate:Fe})],nc.prototype,"visible",2);var Nu=nc,ic=class ic{};r(ic,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:Pv,controlType:r(()=>Wt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Fe})],ic.prototype,"visible",2);var Du=ic,oc=class oc{};r(oc,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:Av,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],oc.prototype,"visible",2);var ju=oc,ac=class ac{};r(ac,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:vv,controlType:r(()=>Wt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Fe})],ac.prototype,"visible",2);var Ru=ac;var rc=class rc{};r(rc,"ObjectPageChart"),d([g({manifest:{path:GT}}),T({since:"1.78.0"})],rc.prototype,"variantManagement",2);var $u=rc,sc=class sc{};r(sc,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Vt(t)+"/chartSettings","path")}}),T({since:"1.78.0"})],sc.prototype,"variantManagement",2);var wu=sc;var qt=U(B());var yo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=qt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=ut(a[0],o),We(e,a)},"getSmartTableControlId"),Sr=class Sr{};r(Sr,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>bn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Sr.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>bn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Sr.prototype,"variants",2);var Mu=Sr,lc=class lc{};r(lc,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>nn(t,n,i)+"/createWithParameterDialog","path"),export:Ll}}),T({since:"1.77.0"})],lc.prototype,"fields",2);var Uu=lc,Ot=class Ot{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(Ot,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:nn,import:Fl}}),T({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.28.0"})],Ot.prototype,"editable",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.95.0"}),me("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ot.prototype,"showPasteButton",2),d([g({manifest:{path:nn}}),T({since:"1.54.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:nn}}),T({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:nn}}),T({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:bn}}),T({since:"1.63.0"})],Ot.prototype,"quickVariantSelection",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:bn}}),T({since:"1.48.5"}),me("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ot.prototype,"createMode",2),d([g({manifest:{path:bn}}),T({since:"1.61.0"})],Ot.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:nn}}),T({since:"1.78.0"})],Ot.prototype,"variantManagement",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var ho=Ot,Vi=class Vi extends ho{};r(Vi,"ObjectPageResponsiveTable"),d([g({manifest:{path:nn}})],Vi.prototype,"type",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}})],Vi.prototype,"includeItemInSelection",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_},generate:Fe}),T({since:"1.52.0"})],Vi.prototype,"popinLayout",2),d([g({manifest:{path:nn}}),T({since:"1.77.0"})],Vi.prototype,"inlineDelete",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Vi.prototype,"growingThreshold",2);var bo=Vi,Pr=class Pr extends ho{};r(Pr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:nn}})],Pr.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Pr.prototype,"condensedTableLayout",2);var ku=Pr,Cr=class Cr extends ho{};r(Cr,"ObjectPageGridTable"),d([g({manifest:{path:nn}})],Cr.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Cr.prototype,"condensedTableLayout",2);var _u=Cr,Ar=class Ar extends ho{};r(Ar,"ObjectPageTreeTable"),d([g({manifest:{path:nn}})],Ar.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Ar.prototype,"condensedTableLayout",2);var Bu=Ar,li=class li{};r(li,"GlobalTableSettings"),d([g({manifest:{path:no}}),T({since:"1.70.0"})],li.prototype,"selectAll",2),d([g({manifest:{path:no}}),T({since:"1.78.0"})],li.prototype,"variantManagement",2),d([g({manifest:{path:no}})],li.prototype,"type",2),d([g({manifest:{path:no}}),T({since:"1.54.0"})],li.prototype,"multiSelect",2),d([g({manifest:{path:no}}),T({since:"1.67.0"})],li.prototype,"condensedTableLayout",2),d([g({manifest:{path:no}}),T({since:"1.77.0"})],li.prototype,"inlineDelete",2);var Hu=li;var Ev=U(B());var EI=r((e,t,n,i,o)=>{let{actionId:a}=Ht(n),s=ut(n[1],o);return`${e}${s}::action::${_t(a).replace(":2f","::")}`},"getActionButtonId"),Er={controlId:EI,controlType:r(()=>Ev.ControlType.Button,"controlType"),createFlexChange:_},Ni=class Ni{};r(Ni,"ObjectPageToolBarAction"),d([g({flex:Er,generate:Fe})],Ni.prototype,"visible",2),d([g({flex:Er})],Ni.prototype,"tooltip",2),d([g({flex:Er})],Ni.prototype,"icon",2),d([g({flex:Er})],Ni.prototype,"activeIcon",2),d([g({flex:Er})],Ni.prototype,"type",2);var Gu=Ni;var Nt=U(B());function Qu(e,t,n,i){if(t.controlType===Nt.ControlType.TableColumn||t.controlType===Nt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===Nt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Nt.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(Qu,"addFlexChangeToConfigTableColumn");function cc(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Nt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(cc,"addFlexChangeToConfigTable");function pc(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,b;let s=mn(a),l={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},c;if(s.controlType===Nt.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let v=(!t.table.type||t.table.type===Nt.v2.TableTypeV2.ResponsiveTable)&&!((m=l.controlId)!=null&&m.includes(Nt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Nt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${v}<${o}>`])==null?void 0:b.properties[l.propertyId]}c&&Qu(t.table,l,n,i)})}r(pc,"importFlexChangesOfColumn");function Di(e){return e.replace("/","::")}r(Di,"convertActionKey");function Ku(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(Ku,"convertSelector");function xI(e,t,n,i){var a,s,l,c;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(xI,"addSmartFilterBarFlex");function II(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var l;let a=_t((l=o.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),p=c.find(m=>m.startsWith("sSemanticObject")),f=c.find(m=>m.startsWith("sAction")),u=f.split("sAction::")[1].replace(":2f","::");if(p){let m=`${p.split("::")[1]}::${u}`,b=`${c[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(II,"filterActions");function OI(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(OI,"addColumnActionConfigPart");function FI(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(FI,"getActionId");function LI(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 c,p;let l=II(s.name,i);if(l.has(s.id)){let f=l.get(s.id),u=(c=f.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&OI(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(LI,"addActionFlex");function VI(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=dt(e[Ae.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ae.PropertyName.chart],t):e[Ae.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(VI,"addSmartChartFlex");function fc(e,t,n,i){var o,a;try{let s=mn(t),l=s.content.property;if((o=s.controlId)!=null&&o.includes(Ae.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ae.PageTypeV2.AnalyticalListPage))switch(s.controlId=Ku(s.controlId),s.controlType){case Ae.ControlType.SmartFilterBar:{xI(e,l,s,n);break}case Ae.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ae.ControlType.Button:{let c=FI(s);c&&LI(e,l,s,n,c);break}case Ae.ControlType.SmartChart:{VI(e,l,s,n);break}default:break}}catch(s){k(i,{severity:Ae.LogSeverity.Error,message:j.t("FLEXERROR")},...s)}}r(fc,"addFlex");function NI(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(NI,"adjustQuickVariantSelectionX");function st(e,t,n,i,o,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let p=dt(e,c);if(p!=null&&p.manifest){let f=p.manifest.path([i],t,a);s=pt(t,f),Qo(p,s,c,e),Qs(l,s,f,o)}NI(c,e)}}r(st,"transferSettingsOfObject");function uc(e,t){var o,a,s,l,c,p,f,u,m;let n=e[Ae.ManifestSection.generic].pages[t],i=Ae.v2.TableTypeV2.ResponsiveTable;return(o=e[Ae.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ae.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ae.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(p=(c=n.component)==null?void 0:c.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=Ae.v2.TableTypeV2.AnalyticalTable),i}r(uc,"determineTableType");function xv(e,t,n,i,o,a,s){var l,c;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={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.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(xv,"evaluateFragmentColumn");function DI(e,t,n,i){let o;if(e===Ae.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===Ae.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(o=t[a].fragmentName)}return o}r(DI,"determineCellsFragmentName");function jI(e,t,n,i,o,a,s){var l;if(e[0]){let p=JSON.parse((0,Iv.xml2json)(e[0].fileContent,{compact:!0}))[Un];try{let f=tr(p);if(f)if((l=t[Ae.PropertyName.table])!=null&&l.columns||(t[Ae.PropertyName.table].columns={}),Array.isArray(f))for(let u of f)xv(u,n,i,o,t,a,s);else xv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(jI,"analyzeFilteredFragments");function RI(e,t,n,i,o){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,p]=l,f=l[2];if(c&&p===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let b=DI(c,e,p,f),v=m.split(".");m=v[v.length-1]+Ae.FRAGMENTNAMEPART+u;let L=i.fragments.filter(V=>V.dataSourceUri.endsWith(m));try{jI(L,n,e,s,f,c,b)}catch(V){i.logger.error(V.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(V=>{pc(i,n,V.id,V,o)})}}}r(RI,"processViewExtensions");function fa(e,t,n,i,o,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[Ae.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let p=Ae.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[Ae.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!f)return;let u=o&&o.target?o.target:n.entitySet;RI(f,u,e,t,a)}}r(fa,"addFragments");function dc(e,t,n){if(e.header={actions:{}},n[Ae.DefinitionName.HeaderActionsStandard]){let i=n[Ae.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ae.PageTypeV2.ListReport,o,{})}}r(dc,"importHeaderActions");var He=U(B());var Fv=U(B());var Ju={};Do(Ju,{ANNOERR:()=>ZI,ANNOTATIONFILE:()=>eO,COMPONENTNOTDEFINED:()=>tO,CONTEXTPATHCOULDNOTBERESOLVED:()=>qI,ENTITYSETNOTFOUND:()=>JI,FLEXERROR:()=>pO,INCONSISTENTSCHEMA:()=>yO,INVALIDANCHOR:()=>fO,INVALIDTARGETDEFINITION:()=>dO,NOALP:()=>zI,NOBASEPATH:()=>MI,NOCHARTS:()=>oO,NOENTITYSET:()=>HI,NOENTITYTYPE4SET:()=>GI,NOFE:()=>kI,NOFRAGMENT:()=>uO,NOGENERICSCHEMA:()=>_I,NOID4SECTION:()=>gO,NOLINEITEMANDCHARTS:()=>aO,NOLINEITEMS:()=>iO,NOLR:()=>XI,NOPAGEFORENTITYSET:()=>BI,NOPAGES:()=>UI,NOPRESENTATIONVARIANT:()=>WI,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>QI,NOPRESENTATIONVARIANTFORSPV:()=>KI,NOROUTING:()=>nO,NOROUTINGID:()=>cO,NOTARGET:()=>lO,NOTARGETS:()=>sO,NOTEMPLATE:()=>YI,NOVISUALIZATIONS:()=>rO,UNKNOWNMINUI5VERSION:()=>wI,WRONGMINUI5VERSION:()=>$I,XMLPARSEFAILURE:()=>mO,default:()=>hO});var $I="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",wI="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",MI="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",UI="No pages found in manifest for app with id '{{- appId}}'",kI="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",_I="No generic schema found while generating page schema for {{- pageType}}",BI="No page found in manifest for entitySet '{{- entitySet}}'",HI="No entitySet defined for page '{{- pageName}}'",GI="No entityType could be found for the given entity set '{{- entitySetName}}'",WI="No PresentationVariant defined for '{{- key}}'",QI="No PresentationVariant found for default SelectionPresentationVariant",KI="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",JI="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",qI="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",XI="No page found in manifest for list report",zI="No page found in manifest for analytical list page",YI="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",ZI="Error while parsing annotation files",eO="Annotation file: '{{- file}}'",tO="Component name is not defined for page '{{- pageName}}'",nO="Incomplete manifest definition: no routing defined",iO="UI.LineItem annotation has not been defined",oO="UI.Chart annotation has not been defined",aO="Neither UI.LineItem nor UI.Chart annotation has been defined",rO="Empty Collection for Visualizations",sO="Incomplete manifest definition: no targets defined",lO="Invalid reference: annotation target '{{- target}}' not found",cO="No page found in manifest for routingId '{{- routingId}}'",pO="Error while parsing flex change",fO="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",uO="fragmentName is undefined for columnKey '{{- columnKey}}'",dO="Invalid routing target definition in manifest: '{{- target}}'",gO="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",mO="Parsing of XML file failed with error - {{- error}}",yO="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",hO={WRONGMINUI5VERSION:$I,UNKNOWNMINUI5VERSION:wI,NOBASEPATH:MI,NOPAGES:UI,NOFE:kI,NOGENERICSCHEMA:_I,NOPAGEFORENTITYSET:BI,NOENTITYSET:HI,NOENTITYTYPE4SET:GI,NOPRESENTATIONVARIANT:WI,NOPRESENTATIONVARIANTFORDEFAULTSPV:QI,NOPRESENTATIONVARIANTFORSPV:KI,ENTITYSETNOTFOUND:JI,CONTEXTPATHCOULDNOTBERESOLVED:qI,NOLR:XI,NOALP:zI,NOTEMPLATE:YI,ANNOERR:ZI,ANNOTATIONFILE:eO,COMPONENTNOTDEFINED:tO,NOROUTING:nO,NOLINEITEMS:iO,NOCHARTS:oO,NOLINEITEMANDCHARTS:aO,NOVISUALIZATIONS:rO,NOTARGETS:sO,NOTARGET:lO,NOROUTINGID:cO,FLEXERROR:pO,INVALIDANCHOR:fO,NOFRAGMENT:uO,INVALIDTARGETDEFINITION:dO,NOID4SECTION:gO,XMLPARSEFAILURE:mO,INCONSISTENTSCHEMA:yO};function Ov(e){e.addResourceBundle(e.language,"translation",Ju)}r(Ov,"initI18n");function Xe(e="en"){j.init({resources:{en:{translation:Fv.default}},lng:e,fallbackLng:"en",joinArrays:`
86
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Sl=require("path");var Un="core:FragmentDefinition",vl="sap.ui.table",Dp=new Map([[Ne.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Ne.ViewTemplateType.TreeTableColumnsExtension,{namespace:vl,name:"Column"}],[Ne.ViewTemplateType.GridTableColumnsExtension,{namespace:vl,name:"Column"}],[Ne.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:vl,name:"AnalyticalColumn"}]]),qx=new Map([[Ne.v2.FE_TEMPLATE_V2_LIST_REPORT,Ne.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Ne.v2.FE_TEMPLATE_V2_ALP,Ne.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Ne.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Ne.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),uv={type:"element",name:"Text",attributes:{text:"Placeholder"}},Xx=JSON.stringify(uv);function zx(e,t){var i;let n=t?(i=e==null?void 0:e[Un])==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(zx,"getFragmentNamespaces");function pv(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(pv,"getTagName");function Pl(e,t,n=e){let i=zx(n,!!(t||n!==e));if(t){let o=Dp.get(t);return pv(o,i.get(o.namespace))}else{let o=Dp.keys();for(let a of o){let s=Dp.get(a),l=i?pv(s,i.get(s.namespace)):s.name;if(e[l])return l}}}r(Pl,"getTagNameFromFragmentJSON");function tr(e,t=e){let n=Pl(e,void 0,t);return e[n]}r(tr,"getRootCustomColumnFromFragmentJSON");function Yx(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(Yx,"addP13nData");function dv(e,t){var l,c,f;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(p=>p.columnKey===a.columnKey);return s<0?!1:(n=!0,o=Yx(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[s])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(f=t[s])==null?void 0:f.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}r(dv,"handleFragmentColumn");function Zx(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),l=s[s.length-1]+Ne.FRAGMENTNAMEPART+a;for(let c of t){let f=c.dataSourceUri.split(Sl.sep);if(f[f.length-1]===l){let p=JSON.parse((0,Sn.xml2json)(c.fileContent,{compact:!0}));try{let u=Pl(p[Un]);u&&(delete p[Un][u],c.fileContent=(0,Sn.json2xml)(JSON.stringify(p),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}r(Zx,"deleteColumnsFromFragment");function gv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Xx&&(e.splice(n,1),t-=1,t===0));n++);}r(gv,"deleteNumberOfCells");function eO(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Ne.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Sn.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(f=>f.type==="element");c&&gv(l.elements[0].elements,c.length),s.fileContent=(0,Sn.json2xml)(JSON.stringify(l),{spaces:4});break}}r(eO,"deleteCellsFromFragment");function Cl(e,t,n,i){if(i){Zx(e,i,t,n);let o=t.replace(Ne.ViewTemplateType.ResponsiveTableColumnsExtension,Ne.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&eO(a,i,n)}}r(Cl,"deleteColumnFromFragment");function tO(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(uv)}r(tO,"addNewColumnsInFragment");function nO(e,t){let n=JSON.parse((0,Sn.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)tO(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;gv(a,o)}e.fileContent=(0,Sn.json2xml)(JSON.stringify(n),{spaces:4})}}r(nO,"updateNonEmptyCellsFragment");function iO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Sl.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Ne.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=Vp(n):nO(o,n);break}}return i}r(iO,"updateCellsFragment");function oO(e,t,n,i,o){var p;let a,s,l=t.manifest,c=ft(l,e),f=c.type?c.type.toLowerCase():"xml";c.type=f.toUpperCase();for(let u of n){if(!u.fragmentName){k(o,{severity:Ne.LogSeverity.Error,message:j.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Ne.ChangeIndicator.Updated,c.fragmentName=u.fragmentName,c.className=u.className,a=((p=u.fragmentName)==null?void 0:p.replace(i,"<root>/webapp").replace(/[.]/g,Sl.sep))+Ne.FRAGMENTNAMEPART+f}if(e.indexOf(Ne.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Ne.ChangeIndicator.Updated;let u=e.replace(Ne.ViewTemplateType.ResponsiveTableColumnsExtension,Ne.ViewTemplateType.ResponsiveTableCellsExtension),m=ft(l,u),b=n.reduce((v,L)=>L.cellsFragmentName?L:v);b&&b.cellsFragmentName?(m.fragmentName=s=b.cellsFragmentName,m.className=n[0].className,m.type=f.toUpperCase()):_T(l,u)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:f}}r(oO,"exportCustomColumnsToManifest");function aO(e,t,n,i,o){let a=Lp(e,t);if(a){let s=JSON.parse((0,Sn.xml2json)(a,{compact:!0})),l=tr(s,i);if(Array.isArray(n))n.some(f=>JSON.stringify(f)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(o,0,l),n=c}else n=[l]}return n}r(aO,"insertNewColumnInFragment");function rO(e,t){let n=[];for(let i=0;i<e.length;i++)dv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(rO,"processCustomColumnInArray");function sO(e,t,n){if(e){if(Array.isArray(e))rO(e,t);else if(!dv(e,t)){let o=Pl(n[Un]);o&&(delete n[Un][o],e=void 0)}}return e}r(sO,"maintainExistingColumnInFragment");function lO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=aO(a,i,n,o,s)}return n}r(lO,"insertNewColumnsInFragment");function cO(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Ne.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=Np(i,o);else{let c=JSON.parse((0,Sn.xml2json)(s.fileContent,{compact:!0})),f=JSON.stringify(c);l=tr(c[Un]),l=sO(l,i,c),l=lO(i,n,l,o,c);let p=Pl(c,o);c[Un][p]=l;let u=JSON.stringify(c);u!==f&&(s.fileContent=(0,Sn.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(cO,"updateColumnsInFragment");function jp(e,t,n,i,o,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:f,fragmentType:p}=oO(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=l.fragmentName,b=m.substr(i.length+1),v=b.split(".");m=v[v.length-1]+Ne.FRAGMENTNAMEPART+p;let N=f==null?void 0:f.split("."),z=N?N[N.length-1]:null,ne=z?z+Ne.FRAGMENTNAMEPART+p:null,ie=cO(s,m,b,u,o),ce=!1;if(f?ce=iO(s,ne,n):ce=!0,!ie){let Y={fileContent:Np(u,o),dataSourceUri:c,changeIndicator:Ne.ChangeIndicator.Deleted};e.fragments.push(Y)}if(!ce){let Y={fileContent:Vp(n),dataSourceUri:c.replace(m,ne),changeIndicator:Ne.ChangeIndicator.Deleted};e.fragments.push(Y)}}r(jp,"exportCustomColumnsToFragment");var Al=r((e,t,n,i)=>{var c,f,p,u;if(!e)return;let o=qx.get((c=e.component)==null?void 0:c.name);if(!i){let m=(u=(p=(f=e.component)==null?void 0:f.settings)==null?void 0:p.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 tt=U(B());var ao=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+tt.PropertyName.table:We(e,t),"getSmartTableControlId");function Fl(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(Fl,"importCreateParameters");function Ll(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(Ll,"exportCreateParametersFields");function fO(e,t){for(let n in t.variants){let i=t.variants[n],o=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)o.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}r(fO,"exportVariants");function pO(e,t){t.variants&&(Object.keys(t.variants).length>0?fO(e,t):delete e.variants)}r(pO,"exportQuickVariantSelectionX");var El=class El{};r(El,"CreateWithFilters"),d([g({manifest:{path:r(t=>pe(t)+"/createWithFilters","path")}})],El.prototype,"strategy",2);var Rp=El;function or(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(or,"importType");function fa(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(fa,"exportType");function pa(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(pa,"deleteType");var xl=class xl{};r(xl,"DataLoadSettings"),d([g({manifest:{path:r(t=>HT(t),"path")}}),T({since:"1.75.2"})],xl.prototype,"loadDataOnAppLaunch",2);var $p=xl,Ol=class Ol{};r(Ol,"Fields4Dialog"),d([g({manifest:{path:r(t=>eo(t)+"/createWithParameterDialog","path"),export:Ll}}),T({since:"1.77.0"})],Ol.prototype,"fields",2);var wp=Ol,nr=class nr{};r(nr,"QuickVariantSelection"),d([g({manifest:{path:r(t=>pe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],nr.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],nr.prototype,"variants",2);var Mp=nr,sa=class sa{};r(sa,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>pe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],sa.prototype,"showCounts",2),d([g({manifest:{path:r(t=>pe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],sa.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>pe(t)+tt.QUICKVARPATHX,"path"),export:pO}}),T({since:"1.48.0"})],sa.prototype,"variants",2);var Up=sa,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=>eo(t),"path"),import:Fl}}),T({since:"1.77.0"})],Ot.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:We,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.38.0"})],Ot.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],Ot.prototype,"useExportToExcel",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],Ot.prototype,"exportType",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.48.0"})],Ot.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.48.0"})],Ot.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.38.0"})],Ot.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.70.0"})],Ot.prototype,"selectAll",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.70.0"})],Ot.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.75.2"})],Ot.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.42.0"})],Ot.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.56.0"}),me("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ot.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],Ot.prototype,"toolBar",2);var Ei=Ot,kn=class kn extends Ei{};r(kn,"ResponsiveTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:or,export:fa,delete:pa}}),T({since:"1.50.0"})],kn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.54.0"})],kn.prototype,"createWithFilters",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_},generate:wn}),T({since:"1.52.0"})],kn.prototype,"popinLayout",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}})],kn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>eo(t),"path")}}),T({since:"1.77.0"})],kn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],kn.prototype,"showDraftToggle",2),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],kn.prototype,"growingThreshold",2);var ro=kn,ir=class ir extends Ei{};r(ir,"TreeTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:or,export:fa,delete:pa}}),T({since:"1.50.0"})],ir.prototype,"type",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],ir.prototype,"showDraftToggle",2);var kp=ir,rn=class rn extends Ei{};r(rn,"AnalyticalTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:or,export:fa,delete:pa}}),T({since:"1.50.0"})],rn.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],rn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],rn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],rn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.60.0"})],rn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],rn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.78.0"})],rn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.54.0"})],rn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],rn.prototype,"showDraftToggle",2);var _p=rn,_n=class _n extends Ei{};r(_n,"TableALP"),d([g({manifest:{path:r(t=>pe(t),"path"),import:or,export:fa,delete:pa}}),T({since:"1.50.0"})],_n.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],_n.prototype,"qualifier",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>pe(t),"path")}})],_n.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],_n.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.60.0"})],_n.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>pe(t),"path")}})],_n.prototype,"autoHide",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.78.0"})],_n.prototype,"allFiltersAsInParameters",2);var ca=_n,Il=class Il extends ca{};r(Il,"ALPResponsiveTable"),d([g({flex:{controlId:ao,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Il.prototype,"growingThreshold",2);var Bp=Il,Qp=class Qp extends ca{};r(Qp,"ALPGridTable");var Hp=Qp,Kp=class Kp extends ca{};r(Kp,"ALPAnalyticalTable");var Gp=Kp,la=class la extends Ei{};r(la,"GridTable"),d([g({manifest:{path:r(t=>pe(t),"path"),import:or,export:fa,delete:pa}}),T({since:"1.50.0"})],la.prototype,"type",2),d([g({manifest:{path:r(t=>pe(t),"path")}}),T({since:"1.54.0"})],la.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],la.prototype,"showDraftToggle",2);var Wp=la;var ar=U(B());var uO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}`},"getActionButtonId"),dO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),gO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}${Ys}${i}`},"getStandardFooterActionOPButtonId"),ou=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Ht(n);return`${e}action::${i}::${_t(o)}`},"buildIntentBasedActionId"),mO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),xi={controlId:uO,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},rr={controlId:dO,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},mv={controlId:gO,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},Nl={controlId:mO,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:_},so=class so{};r(so,"Action"),d([g({flex:xi})],so.prototype,"tooltip",2),d([g({flex:xi})],so.prototype,"icon",2),d([g({flex:xi})],so.prototype,"activeIcon",2),d([g({flex:xi})],so.prototype,"type",2);var Jp=so,lo=class lo{};r(lo,"ToolBarAction"),d([g({flex:xi})],lo.prototype,"tooltip",2),d([g({flex:xi})],lo.prototype,"icon",2),d([g({flex:xi})],lo.prototype,"activeIcon",2),d([g({flex:xi})],lo.prototype,"type",2);var qp=lo,co=class co{};r(co,"FooterAction"),d([g({flex:Nl})],co.prototype,"tooltip",2),d([g({flex:Nl})],co.prototype,"icon",2),d([g({flex:Nl})],co.prototype,"activeIcon",2),d([g({flex:Nl})],co.prototype,"type",2);var Xp=co,Vl=class Vl{};r(Vl,"Share"),d([g({flex:rr})],Vl.prototype,"visible",2);var zp=Vl,Dl=class Dl{};r(Dl,"ShareOP"),d([g({flex:rr})],Dl.prototype,"visible",2);var Yp=Dl,jl=class jl{};r(jl,"UpAndDownNavigationOP"),d([g({flex:rr})],jl.prototype,"visible",2);var Zp=jl,Rl=class Rl{};r(Rl,"SaveAndEditOP"),d([g({flex:mv,generate:Fe})],Rl.prototype,"visible",2);var eu=Rl,$l=class $l{};r($l,"HeaderActionStandard"),d([g({flex:rr})],$l.prototype,"visible",2);var tu=$l,wl=class wl{};r(wl,"ObjectPageHeaderActionStandard"),d([g({flex:rr})],wl.prototype,"visible",2);var nu=wl,Ml=class Ml{};r(Ml,"ObjectPageFooterActionStandard"),d([g({flex:mv})],Ml.prototype,"visible",2);var iu=Ml;var cr=U(B());var yO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Ht(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),hO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),bO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),au={controlId:yO,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_},sr={controlId:bO,controlType:r(()=>cr.ControlType.Button,"controlType"),createFlexChange:_},yv={...au,controlId:hO},Ul={...sr,controlId:ou},lr=class lr{};r(lr,"TableColumn"),d([g({flex:{controlId:Xf,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_}})],lr.prototype,"width",2),d([g({flex:{controlId:Xf,controlType:r(()=>cr.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:wn})],lr.prototype,"hAlign",2);var ru=lr,ai=class ai{};r(ai,"TableColumnAction"),d([g({flex:au})],ai.prototype,"width",2),d([g({flex:au,generate:wn})],ai.prototype,"hAlign",2),d([g({flex:sr})],ai.prototype,"tooltip",2),d([g({flex:sr})],ai.prototype,"icon",2),d([g({flex:sr})],ai.prototype,"activeIcon",2),d([g({flex:sr})],ai.prototype,"type",2);var kl=ai,ri=class ri extends kl{};r(ri,"TableColumnActionIntentBased"),d([g({flex:yv})],ri.prototype,"width",2),d([g({flex:yv,generate:wn})],ri.prototype,"hAlign",2),d([g({flex:Ul})],ri.prototype,"tooltip",2),d([g({flex:Ul})],ri.prototype,"icon",2),d([g({flex:Ul})],ri.prototype,"activeIcon",2),d([g({flex:Ul})],ri.prototype,"type",2);var su=ri,cu=class cu{};r(cu,"TableCustomColumn");var lu=cu;var pu=class pu{};r(pu,"ToolBar");var fu=pu;var fo=U(B());var fr=r(e=>e+fo.PropertyName.chart,"getSmartChartControlId"),Oi=class Oi{};r(Oi,"ChartSettings"),d([g({flex:{controlId:fr,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showLegendButton",2),d([g({flex:{controlId:fr,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showDownloadButton",2),d([g({flex:{controlId:fr,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:fr,controlType:r(()=>fo.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:_}})],Oi.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>BT(t),"path")}}),T({since:"1.81.0"})],Oi.prototype,"showDataLabel",2);var uu=Oi;var si=class si{};r(si,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>to(t,i),"path")}})],si.prototype,"groupId",2);var du=si;var hv=U(B());var TO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",We(e,n)},"getAvatarControlId"),Ii=class Ii{};r(Ii,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.46.0"})],Ii.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.46.0"})],Ii.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"})],Ii.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"}),me("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Ii.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:TO,controlType:r(()=>hv.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Fe})],Ii.prototype,"displayShape",2);var gu=Ii;var _l=U(B());var vO=r((e,t,n,i)=>{if(i()===_l.ControlType.Button||i()===_l.ControlType.HeaderAction){let o=n[2];return`${e}action::${_t(o)}`}return We(e,t)},"getActionButtonId"),pr={controlId:vO,controlType:r(()=>_l.ControlType.HeaderAction,"controlType"),createFlexChange:_},Fi=class Fi{};r(Fi,"HeaderAction"),d([g({flex:pr,generate:Fe})],Fi.prototype,"visible",2),d([g({flex:pr})],Fi.prototype,"tooltip",2),d([g({flex:pr})],Fi.prototype,"icon",2),d([g({flex:pr})],Fi.prototype,"activeIcon",2),d([g({flex:pr})],Fi.prototype,"type",2);var mu=Fi;var ur=U(B());var Kl="header::headerEditable::",SO=r((e,t,n,i,o)=>`${e}${Kl}${o}`,"getDataPointHeaderSectionId"),PO=r((e,t,n,i,o)=>`${e}${Kl}${o}::ContactAddress`,"getAddressHeaderSectionId"),CO=r((e,t,n,i,o)=>`${e}${Kl}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),bv=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(ur.FACETTITLEPREFIX)?o.split(ur.FACETTITLEPREFIX)[1]:a;return`${e}${Kl}${s}::Form`},"getFormHeaderSectionId"),dr={controlType:r(()=>ur.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},Bl=class Bl{};r(Bl,"CommonHeaderFacetSettings"),d([g({flex:{...dr,controlId:bv},generate:Fe})],Bl.prototype,"visible",2);var po=Bl,Hl=class Hl extends po{};r(Hl,"ObjectPageHeaderSectionForm"),d([g({flex:{...dr,controlId:bv}})],Hl.prototype,"visible",2);var yu=Hl,Gl=class Gl extends po{};r(Gl,"ObjectPageHeaderSectionChart"),d([g({flex:{...dr,controlId:CO}})],Gl.prototype,"visible",2);var hu=Gl,Wl=class Wl extends po{};r(Wl,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...dr,controlId:SO}})],Wl.prototype,"visible",2);var bu=Wl,Ql=class Ql extends po{};r(Ql,"ObjectPageHeaderSectionAddress"),d([g({flex:{...dr,controlId:PO}})],Ql.prototype,"visible",2);var Tu=Ql,Su=class Su{};r(Su,"HeaderSections");var vu=Su;var Cu=U(B());var AO=r((e,t,n,i)=>{if(i()===Cu.ControlType.Button){let{actionId:o}=Ht(n);return`${e}action::${_t(o)}::Determining`}return We(e,t)},"getFooterActionButtonId"),gr={controlId:AO,controlType:r(()=>Cu.ControlType.Button,"controlType"),createFlexChange:_},Li=class Li{};r(Li,"ObjectPageFooterAction"),d([g({flex:gr,generate:Fe})],Li.prototype,"visible",2),d([g({flex:gr})],Li.prototype,"tooltip",2),d([g({flex:gr})],Li.prototype,"icon",2),d([g({flex:gr})],Li.prototype,"activeIcon",2),d([g({flex:gr})],Li.prototype,"type",2);var Pu=Li;var mr=U(B());var Jl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",We(e,n)},"getControlId"),uo=class uo{};r(uo,"ObjectPageLayout"),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Fe})],uo.prototype,"showHeaderContent",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],uo.prototype,"showAnchorBar",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],uo.prototype,"useIconTabBar",2),d([g({flex:{controlId:Jl,controlType:r(()=>mr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),T({since:"1.34.0"})],uo.prototype,"alwaysShowContentHeader",2);var Au=uo;var Tv=U(B());var go=class go{};r(go,"BaseCustomSection"),d([g({manifest:{path:oi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),T({since:"1.52.0"})],go.prototype,"relatedFacet",2),d([g({manifest:{path:oi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),T({since:"1.52.0"})],go.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>oi(t,{},i,Tv.ManifestSection.generic),"path")}}),T({since:"1.52.0"})],go.prototype,"title",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],go.prototype,"className",2);var br=go,yr=class yr extends br{};r(yr,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],yr.prototype,"fragmentName",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],yr.prototype,"type",2);var Tr=yr,hr=class hr extends br{};r(hr,"ObjectPageCustomSectionView"),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],hr.prototype,"viewName",2),d([g({manifest:{path:oi}}),T({since:"1.52.0"})],hr.prototype,"type",2);var vr=hr;var Wt=U(B());var vv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),Wt.DefinitionName.Table];return We(e,s)},"getTableSectionControlId"),Sv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"FormGroup"];return We(e,s)},"getFormSectionControlId"),Pv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Chart"];return We(e,s)},"getChartSectionControlId"),mo=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Section"];return We(e,s)},"getSectionControlId"),Cv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"SubSection"];return We(e,s)},"getSubSectionControlId"),Av=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"ContactsList"];return We(e,s)},"getContactSubSectionControlId"),ql=class ql{};r(ql,"ObjectPageSectionV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ql.prototype,"visible",2);var Eu=ql,Xl=class Xl{};r(Xl,"ObjectPageSectionFormV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Xl.prototype,"visible",2);var xu=Xl,zl=class zl{};r(zl,"ObjectPageSectionChartV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],zl.prototype,"visible",2);var Ou=zl,Yl=class Yl{};r(Yl,"ObjectPageSectionTableV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Yl.prototype,"visible",2);var Iu=Yl,Zl=class Zl{};r(Zl,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Zl.prototype,"visible",2);var Fu=Zl,ec=class ec{};r(ec,"ObjectPageSectionContactV2"),d([g({flex:{controlId:mo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ec.prototype,"visible",2);var Lu=ec,tc=class tc{};r(tc,"ObjectPageSubSectionV2"),d([g({flex:{controlId:Cv,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],tc.prototype,"visible",2);var Nu=tc,nc=class nc{};r(nc,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:Sv,controlType:r(()=>Wt.ControlType.Group,"controlType"),createFlexChange:_},generate:Fe})],nc.prototype,"visible",2);var Vu=nc,ic=class ic{};r(ic,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:Pv,controlType:r(()=>Wt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Fe})],ic.prototype,"visible",2);var Du=ic,oc=class oc{};r(oc,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:Av,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],oc.prototype,"visible",2);var ju=oc,ac=class ac{};r(ac,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:vv,controlType:r(()=>Wt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Fe})],ac.prototype,"visible",2);var Ru=ac;var rc=class rc{};r(rc,"ObjectPageChart"),d([g({manifest:{path:GT}}),T({since:"1.78.0"})],rc.prototype,"variantManagement",2);var $u=rc,sc=class sc{};r(sc,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Nt(t)+"/chartSettings","path")}}),T({since:"1.78.0"})],sc.prototype,"variantManagement",2);var wu=sc;var qt=U(B());var yo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=qt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=ut(a[0],o),We(e,a)},"getSmartTableControlId"),Sr=class Sr{};r(Sr,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>bn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Sr.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>bn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Sr.prototype,"variants",2);var Mu=Sr,lc=class lc{};r(lc,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>nn(t,n,i)+"/createWithParameterDialog","path"),export:Ll}}),T({since:"1.77.0"})],lc.prototype,"fields",2);var Uu=lc,It=class It{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(It,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:nn,import:Fl}}),T({since:"1.77.0"})],It.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.28.0"})],It.prototype,"editable",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.95.0"}),me("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],It.prototype,"showPasteButton",2),d([g({manifest:{path:nn}}),T({since:"1.54.0"})],It.prototype,"multiSelect",2),d([g({manifest:{path:nn}}),T({since:"1.70.0"})],It.prototype,"selectAll",2),d([g({manifest:{path:nn}}),T({since:"1.70.0"})],It.prototype,"selectionLimit",2),d([g({manifest:{path:bn}}),T({since:"1.63.0"})],It.prototype,"quickVariantSelection",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],It.prototype,"useExportToExcel",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],It.prototype,"exportType",2),d([g({manifest:{path:bn}}),T({since:"1.48.5"}),me("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],It.prototype,"createMode",2),d([g({manifest:{path:bn}}),T({since:"1.61.0"})],It.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:nn}}),T({since:"1.78.0"})],It.prototype,"variantManagement",2),d([_e("toolBar")],It.prototype,"toolBar",2);var ho=It,Ni=class Ni extends ho{};r(Ni,"ObjectPageResponsiveTable"),d([g({manifest:{path:nn}})],Ni.prototype,"type",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}})],Ni.prototype,"includeItemInSelection",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_},generate:Fe}),T({since:"1.52.0"})],Ni.prototype,"popinLayout",2),d([g({manifest:{path:nn}}),T({since:"1.77.0"})],Ni.prototype,"inlineDelete",2),d([g({flex:{controlId:yo,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Ni.prototype,"growingThreshold",2);var bo=Ni,Pr=class Pr extends ho{};r(Pr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:nn}})],Pr.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Pr.prototype,"condensedTableLayout",2);var ku=Pr,Cr=class Cr extends ho{};r(Cr,"ObjectPageGridTable"),d([g({manifest:{path:nn}})],Cr.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Cr.prototype,"condensedTableLayout",2);var _u=Cr,Ar=class Ar extends ho{};r(Ar,"ObjectPageTreeTable"),d([g({manifest:{path:nn}})],Ar.prototype,"type",2),d([g({manifest:{path:bn}}),T({since:"1.67.0"})],Ar.prototype,"condensedTableLayout",2);var Bu=Ar,li=class li{};r(li,"GlobalTableSettings"),d([g({manifest:{path:no}}),T({since:"1.70.0"})],li.prototype,"selectAll",2),d([g({manifest:{path:no}}),T({since:"1.78.0"})],li.prototype,"variantManagement",2),d([g({manifest:{path:no}})],li.prototype,"type",2),d([g({manifest:{path:no}}),T({since:"1.54.0"})],li.prototype,"multiSelect",2),d([g({manifest:{path:no}}),T({since:"1.67.0"})],li.prototype,"condensedTableLayout",2),d([g({manifest:{path:no}}),T({since:"1.77.0"})],li.prototype,"inlineDelete",2);var Hu=li;var Ev=U(B());var EO=r((e,t,n,i,o)=>{let{actionId:a}=Ht(n),s=ut(n[1],o);return`${e}${s}::action::${_t(a).replace(":2f","::")}`},"getActionButtonId"),Er={controlId:EO,controlType:r(()=>Ev.ControlType.Button,"controlType"),createFlexChange:_},Vi=class Vi{};r(Vi,"ObjectPageToolBarAction"),d([g({flex:Er,generate:Fe})],Vi.prototype,"visible",2),d([g({flex:Er})],Vi.prototype,"tooltip",2),d([g({flex:Er})],Vi.prototype,"icon",2),d([g({flex:Er})],Vi.prototype,"activeIcon",2),d([g({flex:Er})],Vi.prototype,"type",2);var Gu=Vi;var Vt=U(B());function Qu(e,t,n,i){if(t.controlType===Vt.ControlType.TableColumn||t.controlType===Vt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===Vt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Vt.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(Qu,"addFlexChangeToConfigTableColumn");function cc(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Vt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(cc,"addFlexChangeToConfigTable");function fc(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var f,p,u,m,b;let s=mn(a),l={controlId:s.controlId,propertyId:(f=s.content)==null?void 0:f.property,newValue:(p=s.content)!=null&&p.newBinding?s.content.newBinding:(u=s.content)==null?void 0:u.newValue,controlType:s.controlType,creation:s.creation},c;if(s.controlType===Vt.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let v=(!t.table.type||t.table.type===Vt.v2.TableTypeV2.ResponsiveTable)&&!((m=l.controlId)!=null&&m.includes(Vt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Vt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${v}<${o}>`])==null?void 0:b.properties[l.propertyId]}c&&Qu(t.table,l,n,i)})}r(fc,"importFlexChangesOfColumn");function Di(e){return e.replace("/","::")}r(Di,"convertActionKey");function Ku(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(Ku,"convertSelector");function xO(e,t,n,i){var a,s,l,c;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(xO,"addSmartFilterBarFlex");function OO(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var l;let a=_t((l=o.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),f=c.find(m=>m.startsWith("sSemanticObject")),p=c.find(m=>m.startsWith("sAction")),u=p.split("sAction::")[1].replace(":2f","::");if(f){let m=`${f.split("::")[1]}::${u}`,b=`${c[0]}:::${f}:::${p}`;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(OO,"filterActions");function IO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(IO,"addColumnActionConfigPart");function FO(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(FO,"getActionId");function LO(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 c,f;let l=OO(s.name,i);if(l.has(s.id)){let p=l.get(s.id),u=(c=p.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&IO(s,e,u);let m=s.configPart[u];((f=i.definitions[p])==null?void 0:f.properties[t])&&m&&(m[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(LO,"addActionFlex");function NO(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=dt(e[Ae.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ae.PropertyName.chart],t):e[Ae.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(NO,"addSmartChartFlex");function pc(e,t,n,i){var o,a;try{let s=mn(t),l=s.content.property;if((o=s.controlId)!=null&&o.includes(Ae.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ae.PageTypeV2.AnalyticalListPage))switch(s.controlId=Ku(s.controlId),s.controlType){case Ae.ControlType.SmartFilterBar:{xO(e,l,s,n);break}case Ae.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ae.ControlType.Button:{let c=FO(s);c&&LO(e,l,s,n,c);break}case Ae.ControlType.SmartChart:{NO(e,l,s,n);break}default:break}}catch(s){k(i,{severity:Ae.LogSeverity.Error,message:j.t("FLEXERROR")},...s)}}r(pc,"addFlex");function VO(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(VO,"adjustQuickVariantSelectionX");function st(e,t,n,i,o,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let f=dt(e,c);if(f!=null&&f.manifest){let p=f.manifest.path([i],t,a);s=ft(t,p),Ko(f,s,c,e),Qs(l,s,p,o)}VO(c,e)}}r(st,"transferSettingsOfObject");function uc(e,t){var o,a,s,l,c,f,p,u,m;let n=e[Ae.ManifestSection.generic].pages[t],i=Ae.v2.TableTypeV2.ResponsiveTable;return(o=e[Ae.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ae.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ae.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((p=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.tableSettings)==null?void 0:p.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=Ae.v2.TableTypeV2.AnalyticalTable),i}r(uc,"determineTableType");function xv(e,t,n,i,o,a,s){var l,c;if(e.customData||e["table:customData"]){let f=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,p=JSON.parse(f.substr(1,f.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let m={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.id}:{},...u?{text:u}:{},...p,...p.columnKey?{columnKey:p.columnKey}:{},...p.columnIndex?{columnIndex:Number(p.columnIndex)}:{},...p.leadingProperty?{leadingProperty:p.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(xv,"evaluateFragmentColumn");function DO(e,t,n,i){let o;if(e===Ae.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===Ae.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(o=t[a].fragmentName)}return o}r(DO,"determineCellsFragmentName");function jO(e,t,n,i,o,a,s){var l;if(e[0]){let f=JSON.parse((0,Ov.xml2json)(e[0].fileContent,{compact:!0}))[Un];try{let p=tr(f);if(p)if((l=t[Ae.PropertyName.table])!=null&&l.columns||(t[Ae.PropertyName.table].columns={}),Array.isArray(p))for(let u of p)xv(u,n,i,o,t,a,s);else xv(p,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(jO,"analyzeFilteredFragments");function RO(e,t,n,i,o){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,f]=l,p=l[2];if(c&&f===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let b=DO(c,e,f,p),v=m.split(".");m=v[v.length-1]+Ae.FRAGMENTNAMEPART+u;let L=i.fragments.filter(N=>N.dataSourceUri.endsWith(m));try{jO(L,n,e,s,p,c,b)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{fc(i,n,N.id,N,o)})}}}r(RO,"processViewExtensions");function ua(e,t,n,i,o,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[Ae.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let f=Ae.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),p=t.manifest[Ae.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][f];if(!p)return;let u=o&&o.target?o.target:n.entitySet;RO(p,u,e,t,a)}}r(ua,"addFragments");function dc(e,t,n){if(e.header={actions:{}},n[Ae.DefinitionName.HeaderActionsStandard]){let i=n[Ae.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ae.PageTypeV2.ListReport,o,{})}}r(dc,"importHeaderActions");var He=U(B());var Fv=U(B());var Ju={};Do(Ju,{ANNOERR:()=>ZO,ANNOTATIONFILE:()=>eI,COMPONENTNOTDEFINED:()=>tI,CONTEXTPATHCOULDNOTBERESOLVED:()=>qO,ENTITYSETNOTFOUND:()=>JO,FLEXERROR:()=>fI,INCONSISTENTSCHEMA:()=>yI,INVALIDANCHOR:()=>pI,INVALIDTARGETDEFINITION:()=>dI,NOALP:()=>zO,NOBASEPATH:()=>MO,NOCHARTS:()=>oI,NOENTITYSET:()=>HO,NOENTITYTYPE4SET:()=>GO,NOFE:()=>kO,NOFRAGMENT:()=>uI,NOGENERICSCHEMA:()=>_O,NOID4SECTION:()=>gI,NOLINEITEMANDCHARTS:()=>aI,NOLINEITEMS:()=>iI,NOLR:()=>XO,NOPAGEFORENTITYSET:()=>BO,NOPAGES:()=>UO,NOPRESENTATIONVARIANT:()=>WO,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>QO,NOPRESENTATIONVARIANTFORSPV:()=>KO,NOROUTING:()=>nI,NOROUTINGID:()=>cI,NOTARGET:()=>lI,NOTARGETS:()=>sI,NOTEMPLATE:()=>YO,NOVISUALIZATIONS:()=>rI,UNKNOWNMINUI5VERSION:()=>wO,WRONGMINUI5VERSION:()=>$O,XMLPARSEFAILURE:()=>mI,default:()=>hI});var $O="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",wO="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",MO="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",UO="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",_O="No generic schema found while generating page schema for {{- pageType}}",BO="No page found in manifest for entitySet '{{- entitySet}}'",HO="No entitySet defined for page '{{- pageName}}'",GO="No entityType could be found for the given entity set '{{- entitySetName}}'",WO="No PresentationVariant defined for '{{- key}}'",QO="No PresentationVariant found for default SelectionPresentationVariant",KO="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",JO="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",qO="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",XO="No page found in manifest for list report",zO="No page found in manifest for analytical list page",YO="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",ZO="Error while parsing annotation files",eI="Annotation file: '{{- file}}'",tI="Component name is not defined for page '{{- pageName}}'",nI="Incomplete manifest definition: no routing defined",iI="UI.LineItem annotation has not been defined",oI="UI.Chart annotation has not been defined",aI="Neither UI.LineItem nor UI.Chart annotation has been defined",rI="Empty Collection for Visualizations",sI="Incomplete manifest definition: no targets defined",lI="Invalid reference: annotation target '{{- target}}' not found",cI="No page found in manifest for routingId '{{- routingId}}'",fI="Error while parsing flex change",pI="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",uI="fragmentName is undefined for columnKey '{{- columnKey}}'",dI="Invalid routing target definition in manifest: '{{- target}}'",gI="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",mI="Parsing of XML file failed with error - {{- error}}",yI="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",hI={WRONGMINUI5VERSION:$O,UNKNOWNMINUI5VERSION:wO,NOBASEPATH:MO,NOPAGES:UO,NOFE:kO,NOGENERICSCHEMA:_O,NOPAGEFORENTITYSET:BO,NOENTITYSET:HO,NOENTITYTYPE4SET:GO,NOPRESENTATIONVARIANT:WO,NOPRESENTATIONVARIANTFORDEFAULTSPV:QO,NOPRESENTATIONVARIANTFORSPV:KO,ENTITYSETNOTFOUND:JO,CONTEXTPATHCOULDNOTBERESOLVED:qO,NOLR:XO,NOALP:zO,NOTEMPLATE:YO,ANNOERR:ZO,ANNOTATIONFILE:eI,COMPONENTNOTDEFINED:tI,NOROUTING:nI,NOLINEITEMS:iI,NOCHARTS:oI,NOLINEITEMANDCHARTS:aI,NOVISUALIZATIONS:rI,NOTARGETS:sI,NOTARGET:lI,NOROUTINGID:cI,FLEXERROR:fI,INVALIDANCHOR:pI,NOFRAGMENT:uI,INVALIDTARGETDEFINITION:dI,NOID4SECTION:gI,XMLPARSEFAILURE:mI,INCONSISTENTSCHEMA:yI};function Iv(e){e.addResourceBundle(e.language,"translation",Ju)}r(Iv,"initI18n");function Xe(e="en"){j.init({resources:{en:{translation:Fv.default}},lng:e,fallbackLng:"en",joinArrays:`
87
87
 
88
- `}),Ov(j)}r(Xe,"initI18n");var ke=U(B());function To(e,t,n){var o;let i;for(let a in e){let s=e[a];if(Yn((o=s.component)==null?void 0:o.name)===ke.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=To(s.pages,t,n),i))return n.unshift(a),i}}r(To,"findObjectPageV2");function ua(e,t){var n;for(let i in e){let o=e[i];if(Yn((n=o.component)==null?void 0:n.name)===ke.PageTypeV2.ListReport)return t.push(i),o}}r(ua,"findListReportPageV2");function da(e){if(!e.manifest[ke.ManifestSection.generic]){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}let t=e.manifest[ke.ManifestSection.generic].pages;if(!t){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}return t}r(da,"getV2Pages");function ga(e,t,n){var i;if(!e){k(t,{severity:ke.LogSeverity.Error,message:j.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;k(t,{severity:ke.LogSeverity.Error,message:j.t("NOENTITYSET",{pageName:o}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}}r(ga,"checkV2Page");function ma(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),Yn((i=a.component)==null?void 0:i.name)===ke.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:ke.LogSeverity.Error,message:j.t("NOALP"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}r(ma,"findAnalyticalListPage");function qu(e,t){let n=e.split("|");return ke.v2.SectionPosition[n[0]]&&n[1]===t}r(qu,"isAssociatedCustomSection");function Lv(e,t){let n=pt(e,`sap.ui5/extends/extensions/${ke.v2.SAPUI5_VIEW_EXTENSION}/${ke.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)qu(o,t)&&(i[o]=n[o]);return i}r(Lv,"findCustomSectionExtensions");function bO(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(bO,"removeEmptySettingsOfFooter");function TO(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(TO,"removeEmptySettingsOfFilterBar");function vO(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(vO,"removeEmptySettingsOfToolBar");function gc(e){vO(e),TO(e),bO(e)}r(gc,"removeEmptySettings");var zu={};Do(zu,{AnalyticalListPage:()=>sn,ListReport:()=>Pn,ObjectPage:()=>bt,OverviewPage:()=>Qe,exportFilterSettings:()=>Dv,importDateSettingsOVP:()=>Vv,importFilterSettings:()=>Nv});var mc=U(B());var sn=class{};r(sn,"AnalyticalListPage"),d([g({flex:{controlId:Bs,controlType:r(()=>mc.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],sn.prototype,"fitContent",2),d([_e("table")],sn.prototype,"table",2),d([_e("template::SmartFilterBar")],sn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],sn.prototype,"chart",2),d([_e("analyticalListFooter")],sn.prototype,"footer",2),sn=d([tn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:mc.v2.FE_TEMPLATE_V2_ALP})],sn);var xr=U(B());var Pn=class{};r(Pn,"ListReport"),d([g({flex:{controlId:Bs,controlType:r(()=>xr.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],Pn.prototype,"fitContent",2),d([_e("listReportFilter")],Pn.prototype,"filterBar",2),d([_e("listReport")],Pn.prototype,"table",2),d([_e("listReportFooter")],Pn.prototype,"footer",2),Pn=d([tn({id:xr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:xr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Pn);var Xu=U(B());var bt=class{};r(bt,"ObjectPage"),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.0"})],bt.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.1"})],bt.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"})],bt.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.0"})],bt.prototype,"navToListOnSave",2),d([_e("header")],bt.prototype,"header",2),d([_e("sections")],bt.prototype,"sections",2),d([_e("layout")],bt.prototype,"layout",2),d([g({manifest:{path:r(t=>dl(t),"path")}}),T({since:"1.77.0"})],bt.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Vt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),T({since:"1.78.0"})],bt.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Vt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Hi}}),T({since:"1.71.0"})],bt.prototype,"globalTableSettings",2),bt=d([tn({id:Xu.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Xu.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],bt);function SO(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(SO,"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&&SO(e,t),t}r(Vv,"importDateSettingsOVP");function Nv(e){let t={};return t.dateSettings=Vv(e.filterSettings),t}r(Nv,"importFilterSettings");function PO(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(PO,"exportFilterFields");function Dv(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&&PO(t,n,e))}r(Dv,"exportFilterSettings");var Qe=class{};r(Qe,"OverviewPage"),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>et(),"path"),import:Nv,export:Dv}}),T({since:"1.80.0"})],Qe.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"resizableLayout",2),Qe=d([tn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Qe);var Yu=class Yu{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(Yu,"MetadataFactory");var ya=Yu;var mt=U(B());var CO={},AO={Table:ro,ResponsiveTableWithMultiSelect:ro,ResponsiveTableWithInlineDelete:ro},EO={[mt.v2.CardSettingsType.listCardSettings]:na,[mt.v2.CardSettingsType.listCardSettingsv4]:na,[mt.v2.CardSettingsType.analyticalCardSettings]:ia,[mt.v2.CardSettingsType.analyticalCardSettingsv4]:ia,[mt.v2.CardSettingsType.stackCardSettings]:Xa,[mt.v2.CardSettingsType.linkListCardSettings]:za,[mt.v2.CardSettingsType.tableCardSettings]:oa,[mt.v2.CardSettingsType.tableCardSettingsv4]:oa},xO={[mt.SAPUI5_VIEW_CLASS]:vr,[mt.SAPUI5_FRAGMENT_CLASS]:Tr,Table:bo,ObjectPageResponsiveTableWithMultiSelect:bo,ObjectPageResponsiveTableWithInlineDelete:bo},IO={[mt.PageTypeV2.AnalyticalListPage]:CO,[mt.PageTypeV2.ListReport]:AO,[mt.PageTypeV2.ObjectPage]:xO,[mt.PageTypeV2.OverviewPage]:EO},Zu=class Zu extends ya{constructor(){super(Wu,zu,IO)}};r(Zu,"MetadataInstanceFactoryV2");var Dt=Zu;function OO(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),st(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 l=s;e.filterBar.selectionFields[l]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),st(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,o,n.logger,l)}}}r(OO,"importFilterBar");function ed(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,f,u;let l=mn(s),c={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(f=l.content)!=null&&f.newBinding?l.content.newBinding:(u=l.content)==null?void 0:u.newValue,controlType:l.controlType,creation:l.creation};cc(n.table,c,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"&&pc(e,n,s)}r(ed,"importFlexChangesOfTableAndColumns");function FO(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Ji]&&t[qi]&&(a=JSON.parse(JSON.stringify(t[Ji])),a.properties={...a.properties,...t[qi].properties}),st(n.table,i.manifest,a,o,i.logger),ed(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&k(i.logger,{severity:He.LogSeverity.Error,message:j.t("NOLINEITEMS")})}r(FO,"importTable");function LO(e,t,n,i){let o=e.jsonSchema.definitions,a=uc(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),dc(t,n,o),FO(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),st(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let l in o[He.DefinitionName.ActionsLR].properties){let c=Di(l);t.table.toolBar.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),st(t.table.toolBar.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}OO(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=Di(l);t.footer.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),st(t.footer.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(LO,"addSettings");function yc(e){if(Xe(),!da(e))return;let n=new Dt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=ua(e.manifest[He.ManifestSection.generic].pages,o);if(ga(a,e.logger,a==null?void 0:a.entitySet),!!a)return LO(e,i,n,o[0]),e.flex.forEach(s=>{mn(s)&&fc(i,s,e.jsonSchema,e.logger)}),fa(i,e,a,He.PageTypeV2.ListReport),gc(i),i}r(yc,"createListReportConfig");var De=U(B());function VO(e,t,n,i){var p,f;let o=uc(e.manifest,i),a=e.jsonSchema.definitions;dc(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(st(t.table,e.manifest,s,i,e.logger),ed(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),st(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=Di(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),st(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),st(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"),st(t.filterBar.selectionFields[b],e.manifest,a.SelectionFieldDateSettings,i,e.logger,b)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),st(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[De.DefinitionName.FooterActionsLR];if(l)for(let u in l.properties){let m=Di(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),st(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(f=(p=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:f.keyPerformanceIndicators;c&&Object.keys(c).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),st(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(VO,"addSettings");function hc(e){if(Xe(),!da(e))return;let n=new Dt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=ma(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(ga(a,e.logger,a==null?void 0:a.entitySet),!!a)return VO(e,i,n,o[0]),e.flex.forEach(s=>{mn(s)&&fc(i,s,e.jsonSchema,e.logger)}),fa(i,e,a,De.PageTypeV2.AnalyticalListPage),gc(i),i}r(hc,"createAnalyticalListPageConfig");var W=U(B());var Ir=require("@sap-ux/vocabularies-types/vocabularies/UI");var DO=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function jO(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(`${Ir.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Ir.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(jO,"getSingleSelectorIdPart");function RO(e){let t,n=e.split(":::");if(n.length===1)t=jO(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(`::${Ir.UIAnnotationTerms.LineItem}`,`/@${Ir.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(RO,"getFacetID");function $O(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,p;try{let f=mn(s),u=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=u[0])!=null&&c.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=RO(m);m=Ku(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:j.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}r($O,"prepareFlexChanges");var wO=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 MO(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&Qu(i,t,o)}r(MO,"addFlexChangeToColumns");function jv(e,t,n,i,o,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,W.VOCWITHSLASH)];for(let c in e){let p=e[c],f=p.propertyId===t,u=t==="columns"&&p.controlType===W.ControlType.TableColumn;(f||u)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?MO(a,p,o.properties,n):cc(n,p,o))}}r(jv,"importFlexChangesOfTable");function UO(e,t){return e.facetId==="template"&&t}r(UO,"isStandardActionFlexChange");var Rv=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 kO(e,t,n,i,o,a){var L;let s=!1,l=!1;a?(s=l=n.test(t.controlId),o&&(s=l&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let c=t.controlId.split("::"),p=t.controlType===W.ControlType.GroupElement&&l,f=((L=t.facetId)==null?void 0:L.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&Rv(c,o.split("::"))&&s,m=e.title&&Rv(c,e.title.split("::"),!0),b=!t.facetId&&DO.includes(t.controlType),v=UO(t,l);return p||f||u||m||b||v}r(kO,"matchSelector");function _O(e,t,n,i,o,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${o}`);for(let p in n){let f=n[p];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[W.SchemaTag.controlType]))continue;kO(e,f,s,l,o,a)&&(t[i]=f.newValue)}}r(_O,"importFlexChanges");function BO(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:Ws(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(BO,"checkDeprecatedProperties");function HO(e,t,n,i,o,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,p;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),p=pt(n.manifest,c),Object.values(p).length===0&&(c=e.manifest.path(t,{},l),p=pt(n.manifest,c))):(c=e.manifest.path(t,{},l),p=pt(n.manifest,c));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 BO(p,a,n,c),p}r(HO,"importManifestSetting");function jt(e,t,n,i,o,a){var c,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let u=dt(t,f);if(f==="columns"||u!=null&&u.flex)if((c=o==null?void 0:o.type)!=null&&c.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];jv(i.flexChanges,f,t,o,b,l)}else jv(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);_O(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&HO(u,i.pageKeys,e,t,f,s,o)}}r(jt,"transferSettingsAndFlexChanges");function wv(e,t,n,i){let o=_t(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=`${hT}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${Ys}${o}`;break}}return o.replace(/@/g,"")}r(wv,"getActionId");function GO(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 l=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],c=wv(s,a,"","");e.actions[a]=i.factory.createInstance(W.PageTypeV2.ObjectPage,l,{}),jt(n,e[W.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}r(GO,"fillStandardActions");function bc(e,t,n,i,o,a){var l;n[W.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let p in t){let f=Di(p),u=wv(s,f,o,a);u&&(n[W.PropertyName.actions][f]=i.factory.createInstance(W.PageTypeV2.ObjectPage,s),jt(e,n[W.PropertyName.actions][f],e.jsonSchema.definitions[s],i,c,u)),(l=n[W.PropertyName.actions])!=null&&l[f]&&Object.keys(n[W.PropertyName.actions][f]).length===0&&delete n[W.PropertyName.actions][f]}}GO(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(bc,"fillActions");function WO(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"Field");let c=(s=t.title)!=null&&s.includes(W.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;jt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[W.DefinitionName.Field],o,{},c),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(WO,"fillFields");function QO(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(QO,"prepareTableSchema");function KO(e,t,n,i,o){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.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=QO(p,t,u);jt(e,i[t.id],t.schema,o,{title:t.title}),jt(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 v=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");bc(e,b.properties,i[t.id][W.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",v)}Object.keys(i[t.id][W.PropertyName.table].toolBar).length===0&&delete i[t.id][W.PropertyName.table].toolBar}}r(KO,"fillTableInConfig");function JO(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Ks(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};fa(n[t],e,i,W.PageTypeV2.ObjectPage,l,o)}}r(JO,"fillCustomColumnsInConfig");function qO(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)&&(jt(e,i[t.id],t.schema,o,{title:t.title}),jt(e,i[t.id][W.PropertyName.chart],e.jsonSchema.definitions[W.DefinitionName.ObjectPageChart],o,t))}r(qO,"fillChartSection");function XO(e,t,n,i){n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&jt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(XO,"fillHeaderSection");function zO(e,t,n,i){var c;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&jt(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"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&bc(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${o}`];l!=null&&l.properties&&WO(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(zO,"fillFormSection");function $v(e,t,n,i,o){var l;i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&jt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,td(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r($v,"fillSubSection");function td(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),p={id:c,type:wO(t[l]),schema:t[l],title:Xp(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],KO(e,p,n,i,o),JO(e,c,i,o.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],qO(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],zO(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],$v(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],XO(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],$v(e,p,n,i,o))}}r(td,"fillSectionsInConfig");function YO(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"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];jt(o,s,l,n,{id:a}),t.sections.custom.push(s)}}}r(YO,"fillCustomSectionsInConfig");function ZO(e,t){var f,u;let n=t.factory.createPageInstance(W.PageTypeV2.ObjectPage);jt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;jt(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>"];jt(e,n.header,o,t);let a=i[W.DefinitionName.HeaderActions];a&&bc(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&bc(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageLayout"),jt(e,n.layout,i[W.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[W.DefinitionName.HeaderSections];if(l){let m=(f=t.v2Page.component)==null?void 0:f.settings;td(e,l.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[W.DefinitionName.Sections];if(c){let m=(u=t.v2Page.component)==null?void 0:u.settings;td(e,c.properties,m,n.sections,t)}let p=Lv(e.manifest,e.entitySet);return YO(p,n,t,i,e),n}r(ZO,"fillConfig");function Tc(e){Xe();let t=da(e);if(!t)return;let n=e.entitySet,i=[],o=To(t,e.entitySet,i);if(ga(o,e.logger,n),!o)return;let a=$O(e.flex,n),s=new Dt;return ZO(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Tc,"createObjectPageConfigV2");function Sc(e,t){var n,i;return(n=e.component)!=null&&n.name?Ho(Yn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Sc,"generateId");function eF(e,t,n,i){e.navigation={};let o=Mv(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Sc(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(eF,"getPageConfigsAndNavigations");function Mv(e,t){var i;let n={};for(let o in e){let a=e[o],s=Sc(a,o);if(!s)continue;let l={pageType:Yn((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let c=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(c)if(l.pageType===lt.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=yc(p)}else if(l.pageType===lt.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=hc(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Tc(p)}a.pages&&eF(l,a,t,n)}return n}r(Mv,"getPagesAndConfigs");var nd=class nd extends hi{constructor(t){Xe();let n;t.manifest[lt.ManifestSection.generic]?n=t.manifest[lt.ManifestSection.generic].pages:k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOFE"),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}}),n||k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&Sc(n[i],i),a=new Ti,s=Je(lt.SchemaType.Application),l=t.appSchemas[s.filename];st(a,t.manifest,l.definitions.AppSettings,void 0),super(t,o,Mv(n,t),a)}};r(nd,"V2AppProvider");var vc=nd;function Or(e,t,n){var o,a;let i={};for(let s in e){let l=e[s];if((o=l.component)!=null&&o.name||k(n,{severity:lt.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:lt.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=Sc(l,s);i[c]=l}if(t===lt.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=Or(l.pages,t,n);for(let p in c)i[p]=c[p]}}return i}r(Or,"getPages");var So=U(B());var Bn=U(B());var od=U(Ap());var $e=U(B());var tF=["colorPalette","tabs"];function nF(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(nF,"createCard");function Uv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Uv(e,n.join("|"))}return t}r(Uv,"findAvailableId");function Fr(e,t,n,i,o,a,s){i!=null&&i.properties&&id(e,t,n,i.properties,o,a,s)}r(Fr,"transferManifestEntriesOVP");function vo(e,t,n,i){return e.createInstance($e.PageTypeV2.OverviewPage,i,n,t)}r(vo,"assignReflectMetadataRules");function iF(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=vo(e.factory,i[1],t,"CustomCard"),Fr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(iF,"processAnyOfDefinitionsOfOVP");function oF(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!tF.includes(i)?t[i]=(0,od.default)(t[i]||{},o||{},{arrayMerge:Jp}):t[i]=o}r(oF,"checkSyncRuleForExport");function aF(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),l=pt(i.manifest,s);if(n in $e.v2.CardSettingsType||n==="settings")l.settings=(0,od.default)(l.settings||{},o||{},{arrayMerge:Jp});else if(o!==void 0){let c=e.manifest.export;oF(c,l,a,n,o)}else l[n]!==void 0&&delete l[n]}r(aF,"transferToManifest");function rF(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values($e.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=vo(e.factory,i[0],e.currentObject[t],"CustomCard"),nF(t,e.exportResults.manifest[$e.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,Fr(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[$e.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[$e.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated)})}r(rF,"transferCards");function sF(e,t){if(t==="cards")rF(e);else{let n=Rn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,$e.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(O);e.currentObject=vo(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Fr(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(sF,"exportOfObject");function id(e,t,n,i,o,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ma(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],p=dt(e,l),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],c=iF(f)):c&&typeof c=="object"&&i[l]&&sF(f,l),p!=null&&p.manifest&&aF(p,a,l,t,c,e)}}r(id,"processProperties");function lF(e,t,n,i,o,a,s){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,o),p=gT(a,n,e.ui5Version,s,c),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 v=!1,L=JSON.parse(b);L={content:L.content,selector:L.selector};let V=JSON.parse(u);return V={content:V.content,selector:V.selector},JSON.stringify(L)===JSON.stringify(V)&&(v=!0),v})||e.exportResults.flexChanges.push(u)}r(lF,"evaluateFlexRule");function cF(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=$e.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=$e.ChangeIndicator.Updated}}r(cF,"exportConfigValueToManifest");function pF(e,t,n,i,o){let a=pt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)cF(e,n,a,o,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,gi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(pF,"evaluateManifestRule");function fF(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($e.FACETTITLEPREFIX)?o.split($e.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(fF,"getManifestPathOfSections");function uF(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(uF,"getManifestPathOfTable");function dF(e,t,n,i,o){let a;return t[0]===$e.PropertyName.sections?a=fF(t,a,n,e,o):t[0]===$e.PropertyName.table?a=uF(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(dF,"getManifestPath");function gF(e,t,n,i,o,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)lF(e,i,t,o,a,n,s);else if(t.manifest){let c=dF(e,i,t,n,a);pF(e,c,t,s,n)}}r(gF,"evaluateExportRule");function mF(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(Cl(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith($e.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace($e.ViewTemplateType.ResponsiveTableColumnsExtension,$e.ViewTemplateType.ResponsiveTableCellsExtension);Cl(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}r(mF,"deleteObsoleteColumn");function yF(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=kT(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,mF(o,e,n))}r(yF,"deleteObsoleteColumnsFromFragment");function hF(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:l,viewTemplateType:c}=Al(n,i,s.tabKey||o,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}r(hF,"clusterConfigColumnsByPath");function kv(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 l in $e.v2.TableColumnExtensionTypeV2){let{path:c}=Al(e.v2Page,s,o,l);if(!c)continue;let p={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:l,appId:e.appId};try{yF(p)}catch(f){e.logger.error(f.message)}}if(t){let l=hF(t,n,e.v2Page,s,o);for(let c in l)jf(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}r(kv,"transferColumnExtensions");function bF(e,t,n,i,o,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let f=Uv(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(b=>{var v;return(v=b.$ref)==null?void 0:v.includes(t[p].constructor.name)}).$ref.split(O),m=e.appSchema.definitions[u[u.length-1]];ji(e,t[p],i,[...o,s[p]],m)}let c=pt(e.exportResults.manifest,sf());for(let p in c)qu(p,l)&&!s.includes(p)&&delete c[p]}r(bF,"transferManifestExtensions");function TF(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===$e.PropertyName.table){n=e[i-1];break}return ut(n,t)}r(TF,"getSectionId");function vF(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=Rn(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ji(t,c.configObject,o,[...a,i],c.targetDefinition,l)})}r(vF,"transferIndexTable");function SF(e,t,n,i,o,a){let s,l=Ks(e.$ref);l&&(s={target:l,key:TF(t,n)}),kv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(SF,"transferCustomColumns");function PF(e,t,n,i,o,a,s){e.anyOf.forEach(l=>{let c=Rn(t.appSchema,n,i,l,o,t.factory,t.pageType);c&&ji(t,c.configObject,a,[...s,o],c.targetDefinition,c.title)})}r(PF,"handleAnyOfDefinitions");function CF(e,t,n,i,o,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")bF(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],l==null?void 0:l.items);else if(a&&o==="custom"){SF(l,t,s,e,n,a);return}else a?ji(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):l.anyOf&&PF(l,e,s,n==null?void 0:n[o],o,i,t)}r(CF,"transferComplexProperty");function ji(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let l in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Ma(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&Hs(t,l),p=c?[...n,c]:n,f=dt(t,l),u=e.propertyDefinition=o.properties[l],m=e.nextDefinition=Rn(e.appSchema,a,s,u,l,e.factory,e.pageType);if(gF(e,f,t,[...i],p,a,l),vF(s,e,a,l,p,i),s===void 0||typeof s=="object")CF(e,i,t,p,l,m,a);else if((u==null?void 0:u.$ref)===O+"TableCustomColumns"){kv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(ji,"transferManifestEntriesAndFlexChange");function _v(e,t,n,i,o,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=vo(o,i,n[i],s),a.push(i),ad(o,n[i],e,l.properties,a)}r(_v,"transferSettingsOfRef");function AF(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(O);_v(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${O}${Bn.v2.cardTemplateSettingsMap[e.template]}`.split(O);_v(i,l,e,t,o,a)}}r(AF,"processPropertiesOfObject");function EF(e,t,n,i,o,a){let s=dt(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=pt(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{Qo(s,c,t,e)}catch(p){k(i.logger,{severity:Bn.LogSeverity.Error,message:j.t("XMLPARSEFAILURE",{error:qb(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&AF(e,t,o,i,a,n)}r(EF,"processOvpProperty");function ad(e,t,n,i,o){for(let a in i)EF(t,a,o,n,i,e)}r(ad,"processOvpProperties");function xF(e,t,n){ad(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Bn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[Bn.ManifestSection.ovp].cards[i].template,a=Bn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=vo(n,a,{},"CustomCard"),e.cards=vo(n,a,e.cards,"CustomCard"),ad(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(xF,"addSettings");function Pc(e){let t=new Dt,n=t.createPageInstance(Bn.PageTypeV2.OverviewPage);return e.jsonSchema&&xF(n,e,t),n}r(Pc,"createOverviewPageConfig");var rd=class rd extends hi{constructor(t){let n={},i=t.manifest[So.ManifestSection.ovp],o=new Ti,a=Je(So.SchemaType.Application);st(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(So.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},c={pageType:So.PageTypeV2.OverviewPage,config:Pc(l),entitySet:i.globalFilterEntitySet},p=Ho(c.pageType,c.entitySet);n[p]=c,super(t,p,n,o)}};r(rd,"V2OvpProvider");var Cc=rd;var Ac=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=U(B());function IF(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(IF,"sortByPropertyIndex");function OF(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IF())}r(OF,"sortPropertiesRecords");function Bv(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(Bv,"getExtensionText");function sd(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(sd,"addExtensionToSortedArray");function FF(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var c,p,f;return((c=l.position)==null?void 0:c.placement)==="Before"&&((p=l.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(FF,"addRemainingTargetByBefore");function ld(e,t,n,i,o=!1){var c,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=Bv(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((c=u.position)!=null&&c.anchor&&((p=u.position)!=null&&p.placement)){let b=n.findIndex(v=>v[0]===u.position.anchor);b>-1?(sd(u,n,b,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:Xt.LogSeverity.Error,message:j.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&&FF(e,f,u,n,m)}else o&&(sd(u,n,n.length,f,m),delete e[f])}let l=Object.entries(e).length;l>0&&a!==l?ld(e,t,n,i):l>0&&ld(e,t,n,i,!0)}r(ld,"adjustCustomExtReferringToCustomExt");function LF(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(LF,"getExtensionAnchor");function VF(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(l=>l[0]===a);a&&!s&&n.push(o)}return n}r(VF,"getLocalExtensionsToSkip");function NF(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(NF,"getExtensionIndex");function DF(e,t,n,i,o){k(e,{severity:Xt.LogSeverity.Error,message:j.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(DF,"handleInvalidExtension");function jF(e,t,n,i="template",o){let a=[...t],s={...e},l=VF(s,a);if(!s)return[];for(let c of Object.keys(s)){let p=s[c];if(l!=null&&l.includes(c))continue;let f={$ref:`${O}${n}`,description:Bv(p)||c,keys:[{name:G.SchemaKeyName.key,value:`${c}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){DF(o,c,t,f,s);continue}if(!(i in p)){delete s[c];continue}let u=LF(p,a);if(u){let m=NF(p,e,t,u);m>-1&&(sd(p,t,m,c,f),delete s[c])}else t.push([c,f]),delete s[c]}return Object.keys(s).length>0&&ld(s,n,t,o),t}r(jF,"addExtensionToArray");function RF(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(RF,"determineActionDefinitionName");function $F(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}=zi(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r($F,"addTargetAndKeysOfAction");function wF(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=RF(e),l=Et(i,e.entityType),c=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=Js(p),u=t.properties[`${c}::${f}`]={description:l};if(a?u.$ref=ht(s,Oe(f)):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=yn(i),$F(u,i,p),u[G.SchemaTag.annotationType]=i.$Type,a){let m=gt(s,Oe(f),e.appSchema);m[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(wF,"addActionRecordToSchema");function MF(e,t,n,i,o){var c;let a=t.lineItemId,s=t.lineItemRecord;if((c=s.Target)!=null&&c.value){let p=`@${kt(G.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ni(s).replace(/\//g,"::");if(l){let p=o;p||(p=e.appSchema.definitions[a]);let f=p.properties,u={description:Et(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]=yn(s),f[l]=u,ol(s,f,l)}}r(MF,"addLineItemRecordToSchema");function UF(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Ac.UIAnnotationTypes.DataFieldForAction||s.$Type===Ac.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))wF(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},c=s.$Type===Ac.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;MF(e,l,c,a,i)}a++})}r(UF,"appendLineItemsToSchema");function Po(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=nl(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);UF(e,n,i,void 0,t)}r(Po,"addLineItemsTypeToSchema");function Ec(e,t,n,i){var a,s;let o;if(n){for(let l in e)if(((s=(a=e[l].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(e[l].name===t||t===G.v4.FE_TEMPLATE_V4_ALP&&e[l].name===G.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[l];break}}return o}r(Ec,"findPageV4");function Hv(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(Hv,"alignSchemaWithTemplateType");function Gv(e,t,n,i,o,a){var p,f,u,m;let s=OF(t),l=new Map;if(s=s.map(b=>{let v=nf(e,b[1],b[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return l.set(v.const,b[0]),[v.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=jF(b,s,i,"name",a))}for(let b=0;b<s.length;b++)s[b][1][G.SchemaTag.propertyIndex]=b;let c={};s.forEach(([b,v])=>{b=l.get(b)||b,c[b]=v}),t.properties=c}r(Gv,"addCustomSectionDefinition");var E=U(B()),pd=require("@sap-ux/vocabularies-types/vocabularies/UI");var kF=["filterBar","chart","table"],cd="@UI.LineItem";function _F(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=Ut(e.fullyQualifiedName,pd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,l="SelectionField::"+Oe(a.value);a.type==="PropertyPath"&&(s=Us(a,e)),i.properties[l]={$ref:O+l},i.properties[l][E.SchemaTag.propertyIndex]=o;let c=yn(a);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...c&&{dataType:c}},t.definitions[l][E.SchemaTag.isViewNode]=!0,t.definitions[l][E.SchemaTag.keys]=[{name:E.SchemaKeyName.value,value:`${a.value}`}],((p=a.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(f=a.$target)!=null&&f.fullyQualifiedName&&(t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][E.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[l][E.SchemaTag.annotationPath]=`${i[E.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(_F,"addSelectionFields");function Qv(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 l=0;s.Actions.forEach(c=>{let p=Oe(`${E.DefinitionName.ChartToolBarAction}<${c.Action}>`),f=Et(c,o),u=c.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${c.Action}`]={$ref:O+p,description:f};m[E.SchemaTag.propertyIndex]=l,m[E.SchemaTag.annotationType]=c.$Type,m[E.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[E.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][E.SchemaTag.annotationPath]=c.fullyQualifiedName,l++})}}r(Qv,"defineActions");function Kv(e,t,n,i){var l;let o,a,s;return e&&(n==="primary"?a=e.find(c=>c.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(c=>c.value.indexOf(E.FacetBase.LineItem)>-1):i?a=e.find(c=>c.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?Wo(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",E.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(Kv,"findTheRightVisualization");function BF(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(BF,"analyzeChartAnnotation");function HF(e,t,n,i,o,a){var c;let{visualization:s,targetAnnotation:l}=Kv((c=e.PresentationVariant)==null?void 0:c.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:j.t("NOVISUALIZATIONS")}),s=cd,l=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}r(HF,"analyzeSPVforView");function xc(e,t,n,i,o){let a,s,l=e==null?void 0:e.split(`${E.UIVOCABULARY}.`)[1],c=l&&(t==null?void 0:t[l]);if(!c)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=c.Text,a=c.fullyQualifiedName.split(E.UIVOCABULARYALPHADOT)[0],l.startsWith("PresentationVariant")){let{visualization:p,targetAnnotation:f}=Kv(c.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(l.startsWith("SelectionPresentationVariant"))return HF(c,a,n,i,o,s);if(l.startsWith("SelectionVariant")){let p=cd,f=`/${a}/@${pd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(l.startsWith("LineItem")){let p=cd;c.qualifier&&(p+=`#${c.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(l.startsWith("Chart")){let{visualization:p,targetAnnotation:f,chartTitle:u}=BF(a,e,c,n);return{visualization:p,targetAnnotation:f,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(xc,"analyzeViewAnnotation");function GF(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],s=i==null?void 0:i[a].fullyQualifiedName.split("@");o[E.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}o[E.SchemaTag.artifactType]=E.ArtifactType.Manifest,o[E.SchemaTag.key]="primary",o[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"primary"}]}r(GF,"addALPChartView");function WF(e,t,n,i,o,a){var V,z,ne,ie,ce,Y,oe,Se;let s=(V=n.entityType)==null?void 0:V.annotations.UI,l=(ie=(ne=(z=t==null?void 0:t[0])==null?void 0:z.primary)==null?void 0:ne[0])==null?void 0:ie[E.SchemaTag.annotationPath],{targetAnnotation:c}=xc(l,s,"primary",void 0,n.logger);GF(e,l,c,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=O+p,Qv(e,p,s,c,n.entityType);let{visualization:f,targetAnnotation:u}=xc((oe=(Y=(ce=t==null?void 0:t[0])==null?void 0:ce.secondary)==null?void 0:Y[0])==null?void 0:oe[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 v,L;if(f&&f.indexOf(E.FacetBase.LineItem)>-1?(v=f.split(".")[1],L=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(v=L=i.split(E.UIVOCABULARYDOT)[1]),v){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Se=n.entityType)==null?void 0:Se.annotations.UI[v],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};Po(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let Lt=s[L].fullyQualifiedName.split("@");b[E.SchemaTag.annotationPath]=`/${Lt[0]}/@${Lt[1]}`,b[E.SchemaTag.key]="secondary",b[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(WF,"addALPViews");function QF(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 Qv(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${O}${o}`,n}r(QF,"addViewChartDefinitions");function KF(e,t,n,i,o,a){let s=QF(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 l=`Chart View (key: ${o})`;i.properties[o]={$ref:`${O}${s}`,description:a||l,title:l}}r(KF,"addViewChart");function Wv(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(Wv,"createEmptyProperties");function JF(e,t,n,i,o){var m;let a=`${E.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${E.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=gt(E.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[E.SchemaTag.isViewNode],l[E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Zi(l.properties.toolBar,E.DefinitionName.ToolBar,s);let c=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${O}${a}`,description:e.title||c,title:c},Zi(l.properties.columns,s),l.properties.annotationPath[E.SchemaTag.hidden]=!0,l.properties.index[E.SchemaTag.hidden]=!0,l.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:l.entitySet},u=E.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let v=b[E.DefinitionName.ViewTableColumn];b[u]=Wv(v);let L=E.DefinitionName.ViewTableColumnBasicAction,V=`${E.DefinitionName.ViewTableColumnAction}`;b[L]=Wv(b[V])}Po(f,u)}r(JF,"addViewLineItems");function qF(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(qF,"addTagsToView");function XF(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(XF,"getTargetEntityType");function zF(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(zF,"handleViewProperties");function YF(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)JF(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&zF(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)KF(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.LRTableView}`}}}r(YF,"addLRViewParts");function ZF(e,t,n,i,o){var l;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 c of t){if(!c[E.SchemaTag.key])continue;let p,f=XF(n.entitySet,c,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:b,namespace:v,title:L}=xc(c==null?void 0:c[E.SchemaTag.annotationPath],u,c[E.SchemaTag.key],void 0,n.logger);c.entitySet&&(p=(l=n.entityType.navigationProperties.find(ne=>ne.targetTypeName===v))==null?void 0:l.name);let V=Oe(c[E.SchemaTag.key]),z={viewKey:V,appSchema:e,targetAnnotation:b,navPropName:p,targetEntityType:f,title:L,entitySet:c.entitySet};YF(m,s,z,n,i,u,c),qF(s,V,v,c)}}r(ZF,"addLRViews");function eL(e,t,n,i,o,a){var f,u,m,b,v,L,V,z,ne,ie,ce,Y;let s=e.definitions[a],{visualization:l,targetAnnotation:c,namespace:p}=xc(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(l){let oe=l.split(".")[1],Se=`${E.DefinitionName.LineItems}OfSPV::${Oe(oe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],Zi(P.properties.toolBar,E.DefinitionName.ToolBar,Se),P[E.SchemaTag.annotationPath]=c,P.properties.columns={},Zi(P.properties.columns,Se),delete s.properties,Zi(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let Lt=(u=t.entityType)==null?void 0:u.annotations.UI[oe];Lt||k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOTARGET",{target:oe})});let Yt={isObjectPage:!1,appSchema:e,lineItemAnnotation:Lt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Se};Po(Yt)}else{s.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,Zi(s.properties.columns,E.DefinitionName.LineItems);let oe=(v=(b=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:b[o])==null?void 0:v.LineItem;!oe&&!((z=(V=(L=i.options)==null?void 0:L.settings)==null?void 0:V.views)!=null&&z.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOLINEITEMS")});let Se={isObjectPage:!1,appSchema:e,lineItemAnnotation:oe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};Po(Se),oe&&!((ce=(ie=(ne=i.options)==null?void 0:ne.settings)==null?void 0:ie.views)!=null&&ce.paths)&&(s[E.SchemaTag.annotationPath]=Ut((Y=t.entityType)==null?void 0:Y.fullyQualifiedName,oe.term,oe.qualifier))}}r(eL,"adaptTableDefinition");function tL(e,t,n){var i,o,a,s,l,c,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((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(c=t==null?void 0:t.annotations.UI)==null?void 0:c.PresentationVariant)==null?void 0:p.term)}}r(tL,"getDefaultAnnotationPath");function nL(e,t,n,i){var l,c,p,f,u;let o=(p=(c=(l=t.options)==null?void 0:l.settings)==null?void 0:c.views)==null?void 0:p.paths,a=tL(t,n.entityType,n.templateType),s=Hv(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(eL(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],ZF(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&&WF(e,o,n,a,t,s)}r(nL,"addTableAndViews");function Lr(e,t,n,i){var c,p;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&kt(E.UIVOCABULARY,e.serviceAVT),l=s&&((p=(c=a==null?void 0:a.annotations)==null?void 0:c[s])==null?void 0:p.SelectionFields);if(_F(a,o,l),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,mi(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:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:E.MANIFESTPATH,range:[E.ManifestSection.generic]}}),o;let u=Ec(f,i,n,e.logger);if(!u)return o;nL(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,$n(o,kF),o}r(Lr,"generateListReportSchemaV4");var Cn=require("@sap-ux/vocabularies-types/vocabularies/UI"),S=U(B());var iL=["header","layout","sections","footer"],oL=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function fd(e,t,n,i,o,a,s){let{actionName:l,namespace:c}=rl(t.item,e),p=ni(t.item),f=t.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Oe(p)}>`,m=i.definitions[u]={type:"object",$ref:`${O}${S.DefinitionName.ObjectPageHeaderAction}`,description:Et(t.item,o)};m[S.SchemaTag.isViewNode]=!0,m[S.SchemaTag.dataType]=yn(t.item),m[S.SchemaTag.propertyIndex]=s,m[S.SchemaTag.keys]=[],t.item[S.SchemaKeyName.semanticObject]&&m[S.SchemaTag.keys].push({name:S.SchemaKeyName.semanticObject,value:t.item[S.SchemaKeyName.semanticObject]}),m[S.SchemaTag.keys].push({name:S.SchemaKeyName.action,value:l}),c&&(i.definitions[u][S.SchemaTag.target]=c),m[S.SchemaTag.actionType]=n,m[S.SchemaTag.annotationPath]=`/${f}`,a.properties[p]={$ref:`${O}${u}`},a.properties[p][S.SchemaTag.propertyIndex]=s}r(fd,"addSingleHeaderActionV4");function Jv(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[S.SchemaTag.isViewNode]=!0,s[S.SchemaTag.propertyIndex]=i,s[S.SchemaTag.keys]=[],s[S.SchemaTag.keys].push({name:S.SchemaKeyName.action,value:e}),s[S.SchemaTag.actionType]=S.ActionType.Standard,n.properties[o]={$ref:`${O}${a}`},n.properties[o][S.SchemaTag.propertyIndex]=i,s}r(Jv,"addStandardHeaderAction");function qv(e,t,n,i,o,a){let s=ni(e.item),l=Et(e.item,n),c=Oe(`${S.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),f=i.definitions[c]={type:"object",$ref:`${O}${S.DefinitionName.FooterActionV4}`,description:l};f[S.SchemaTag.isViewNode]=!0,f[S.SchemaTag.actionType]=t,f[S.SchemaTag.propertyIndex]=a,f[S.SchemaTag.annotationPath]=`/${p}`,o.properties[s]={$ref:`${O}${c}`}}r(qv,"addSingleFooterAction");function aL(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Cn.UIAnnotationTypes.DataFieldForAction||i.$Type===Cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(oL.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(aL,"groupByCriticality");function rL(e,t,n,i,o){for(let a=0;a<e.length;a++)fd(t,e[a],S.ActionType.Criticality,n,i,o,a)}r(rL,"addCriticalActions");function sL(e,t,n,i,o,a){let s=e.findIndex(l=>{var c,p;return((p=(c=l.item.annotations)==null?void 0:c.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(fd(t,e[s],S.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(sL,"addCopyAction");function lL(e,t,n,i,o,a){for(let s of e)fd(t,s,S.ActionType.Annotation,n,i,o,a),a++}r(lL,"addUncriticalActions");function Xv(e,t,n,i){var o,a,s,l;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[S.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${S.UIVOCABULARYALPHADOT}${i}`:e[S.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${S.UIVOCABULARYALPHADOT}${i}`}r(Xv,"setAnnotationPathFromEntitySetOrEntityType");function cL(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?aL(n):{};rL(s,o,t,e,i);let c=CT(a),p=AT(a);if(tl(a)&&p){let u=Jv("Edit",t,i,s.length);Xv(u,a,e,"UpdateHidden")}if(c){let u=Jv("Delete",t,i,s.length+1);Xv(u,a,e,"DeleteHidden")}let f=s.length+2;sL(l,o,t,e,i,f),lL(l,o,t,e,i,f)}r(cL,"addHeaderActionCallBackV4");function pL(e,t,n,i){let o=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Cn.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<o.length;s++){let l=o[s];qv(l,S.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];qv(l,S.ActionType.Annotation,e,t,n,o.length+s)}}r(pL,"addFooterActionCallBackV4");function fL(e,t,n,i,o){let a=ka(t),s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,c=gt(S.DefinitionName.ObjectPageTable,t,n);e.entityType&&l&&(c[S.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${l}`),c.properties.columns={$ref:`${O}${a}`},c.properties.toolBar.$ref=ht(S.DefinitionName.ObjectPageToolBar,t),c.properties.quickVariantSelection.$ref=ht(S.DefinitionName.QuickVariantSelectionV4OP,t);let p=gt(S.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=ht(S.DefinitionName.AnnotationPathAsObject,t),gt(S.DefinitionName.AnnotationPathAsObject,t,n),mi(e.entityType,n,`${S.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Po(f,S.DefinitionName.ObjectPageTableColumn),c}r(fL,"handleLineItem");function Yv(e,t,n,i,o,a){a&&(a.properties[t]={$ref:ht(S.DefinitionName.ObjectPageSectionTableV4,t)});let s=gt(S.DefinitionName.ObjectPageSectionTableV4,t,n);di(e,s,ka(t)),s[S.SchemaTag.annotationPath]=e.annotationPath,s[S.SchemaTag.target]=e.namespace,s.properties.table.$ref=ht(S.DefinitionName.ObjectPageTable,t);let l=fL(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:l}}r(Yv,"handleSectionTable");function uL(e,t,n,i,o){let a;o===S.SectionType.Section?a=S.DefinitionName.ObjectPageSectionForm:o===S.SectionType.HeaderSection&&(a=S.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:ht(a,t)};let s=gt(a,t,i);e.ID||(s.properties={}),di(e,s,t),s[S.SchemaTag.annotationPath]=e.annotationPath,s[S.SchemaTag.target]=e.namespace,s[S.SchemaTag.isViewNode]=!0,al(o,e,s,i,S.FioriElementsVersion.v4,t)}r(uL,"handleFormIdentification");function zv(e,t,n,i,o){n.properties[t]={$ref:`${O}${o}`};let a=gt(S.DefinitionName.CommonHeaderFacetSettings,o,i,!1);Bo(e,a,t),a[S.SchemaTag.annotationPath]=e.annotationPath,a[S.SchemaTag.target]=e.namespace,a[S.SchemaTag.dataType]=Yi(e==null?void 0:e.target),a[S.SchemaTag.isViewNode]=!0}r(zv,"handleHeaderFacet");function dL(e,t,n,i){let o=gt(S.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,c=Et(l,i),p=l.$Type.split(S.UIVOCABULARYDOT)[1],f=l.Action.replace("/","::"),u=o.properties[`${p}::${l.Action}`]={$ref:ht(S.DefinitionName.ObjectPageToolBarAction,f),description:c};u[S.SchemaTag.propertyIndex]=a,u[S.SchemaTag.annotationType]=l.$Type;let m=gt(S.DefinitionName.ObjectPageToolBarAction,Oe(f),n);m[S.SchemaTag.annotationPath]=pl(l),m[S.SchemaTag.dataType]=yn(l),m.properties={},a++})}return o}r(dL,"handleChartActions");function gL(e,t,n,i){let o=gt(S.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[S.SchemaTag.annotationPath]=pl(e),o[S.SchemaTag.dataType]=Yi(e.target||e),o[S.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=ht(S.DefinitionName.ObjectPageToolBar,t);let a=gt(S.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=ht(S.DefinitionName.ObjectPageToolBarActions,t);let s=dL(e,t,n,i);return{chart:o,chartActions:s}}r(gL,"handleChart");function Zv(e,t,n,i,o=e.entityType){i&&(i.properties[t]={$ref:ht(S.DefinitionName.ObjectPageSectionChart,t)});let a=gt(S.DefinitionName.ObjectPageSectionChart,t,n);Bo(e,a,t),a[S.SchemaTag.annotationPath]=pl(e),a.properties.chart.$ref=ht(S.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=gL(e.target||e,t,n,o);return{sectionChart:a,chart:s,chartActions:l}}r(Zv,"handleSectionChart");function mL(e,t,n,i,o){var f,u;let a,s,l;if(!(e!=null&&e.target)){k(o.logger,{severity:S.LogSeverity.Error,message:j.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=(f=e==null?void 0:e.target)==null?void 0:f.Visualizations,p=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(c!=null&&c[0])if(c[0].$target)a=c[0].$target,s=`@${a.fullyQualifiedName.split("@")[1].split("/")[0]}`,l=a;else{a=c[0],s="@"+ef(`${a.targetString.split("@")[1].split("/")[0]}`,o.serviceAVT);let b=o.entitySet.entityType.navigationProperties.find(L=>L.name===p).targetType,v=s==null?void 0:s.split(S.UIVOCABULARYDOT)[1];l=v&&((u=b==null?void 0:b.annotations)==null?void 0:u.UI[v])}if(a){let m=s.split(S.UIVOCABULARYDOT)[1],b=e.target[S.SchemaTag.fullyQualifiedName].split("@")[0],v=p?`${p}::${s}`:s;if(m.startsWith(S.Visualization.Chart)){i.properties[`${t}<${s}>`]={$ref:ht(S.DefinitionName.ObjectPageSectionChart,v)};let{sectionChart:L,chart:V}=Zv(a,v,n,void 0,e.entityType);L[S.SchemaTag.annotationPath]=e.annotationPath,Bo(e,L,t),V[S.SchemaTag.annotationPath]=`/${b}/${s}`,V[S.SchemaTag.target]=b}else if(m.startsWith(S.Visualization.LineItem)){i.properties[`${t}<${s}>`]={$ref:ht(S.DefinitionName.ObjectPageSectionTableV4,v)};let{sectionTable:L,table:V}=Yv(e,v,n,{target:l,entityType:e.entityType},o);L[S.SchemaTag.annotationPath]=e.annotationPath,Bo(e,L,t),delete L[S.SchemaTag.isViewNode],V[S.SchemaTag.annotationPath]=`/${b}/${s}`,V[S.SchemaTag.target]=b}}}r(mL,"handleSectionPresentationVariant");function yL(e,t,n,i,o,a,s){let l=o;e.additionalProperties={$ref:`${O}${l}`},Gv(t,e,i,l,s,n.logger);let c=t.definitions[l];typeof c=="object"&&RT(t,e,{schema:c,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[S.SchemaKeyName.id,S.SchemaKeyName.key],descriptionAsFallback:!0})}r(yL,"applyCustomSections");function ud(e,t,n,i,o,a,s){let l=t[n],c=`ObjectPage${a}${l.base}<${ka(n)}>`;switch(l.base){case S.FacetBase.PresentationVariant:{mL(l,n,o,i,e);break}case S.FacetBase.CollectionFacet:{hL(l,n,o,i,a,e,s);break}case S.FacetBase.LineItem:{if(a===S.SectionType.Section){let p=t[n];Yv(l,n,o,p,e,i)}break}case S.FacetBase.Form:case S.FacetBase.Identification:{uL(l,n,i,o,a);break}case S.FacetBase.DataPoint:{zv(l,n,i,o,c);break}case S.FacetBase.Chart:{a===S.SectionType.HeaderSection?zv(l,n,i,o,c):a===S.SectionType.Section&&Zv(l,n,o,i);break}case S.FacetBase.Address:case S.FacetBase.Contact:{_a(l,n,i,o,a);break}default:i.properties[n]=jn(o,l,n)}}r(ud,"addSection");function hL(e,t,n,i,o,a,s){let l=i.properties[t]=jn(n,e,t);l.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let c=l.properties.subsections;c[S.SchemaTag.annotationPath]=e.annotationPath,c[S.SchemaTag.target]=e.namespace,c[S.SchemaTag.keys]=[{name:S.SchemaKeyName.id,value:e.ID}],c[S.SchemaTag.isViewNode]=!0;for(let p in e.facets)ud(a,e.facets,p,c,n,o,s)}r(hL,"handleCollection");function bL(e,t,n){let i=_s(e.entitySet.entityType,e.serviceAVT,S.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[S.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[S.DefinitionName.Sections];for(let a in i)ud(e,i,a,o,t,S.SectionType.Section,n);yL(o,t,e,n,S.DefinitionName.ObjectPageCustomSectionFragment)}r(bL,"addSections");function TL(e,t,n,i){let o=ks(n,e.serviceAVT,S.FioriElementsVersion.v4,e.logger),a=t.definitions[S.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)ud(e,o,s,a,t,S.SectionType.HeaderSection,i);delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionAddress]}}r(TL,"addHeaderSections");function vL(e,t,n){let i=e.entitySet.entityType;cl(t,i),ll(t,i,e.entitySet,e.serviceAVT,cL),i&&(t.definitions[S.DefinitionName.HeaderSections][S.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Cn.UIAnnotationTerms.HeaderFacets}`),TL(e,t,i,n)}r(vL,"addHeader");function Vr(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${O}${S.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[S.ManifestSection.ui5].routing||!e.manifest[S.ManifestSection.ui5].routing.targets)return k(e.logger,{severity:S.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:S.MANIFESTPATH}}),i;let o=i.definitions[S.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:S.DefinitionName.Sections};if(o[S.SchemaTag.isViewNode]=!0,n){let a=e.manifest[S.ManifestSection.ui5].routing.targets;if(!a)return k(e.logger,{severity:S.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:S.MANIFESTPATH,range:[S.ManifestSection.generic]}}),i;let s=Ec(a,S.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;vL(e,i,s),o[S.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[S.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Cn.UIAnnotationTerms.Facets}`),bL(e,i,s),sl(i,e,S.FioriElementsVersion.v4,pL)}return delete i.definitions[S.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[S.DefinitionName.GenericColumnsOP],delete i.definitions[S.DefinitionName.GenericSections],delete i.definitions[S.DefinitionName.ObjectPageChart],delete i.definitions[S.DefinitionName.ObjectPageSectionAddress],delete i.definitions[S.DefinitionName.ObjectPageSectionChart],delete i.definitions[S.DefinitionName.ObjectPageSectionContact],delete i.definitions[S.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[S.DefinitionName.ObjectPageSectionForm],delete i.definitions[S.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[S.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[S.DefinitionName.ObjectPageSubSections],delete i.definitions[S.DefinitionName.ObjectPageTable],delete i.definitions[S.DefinitionName.ObjectPageToolBar],delete i.definitions[S.DefinitionName.ObjectPageToolBarAction],delete i.definitions[S.DefinitionName.ObjectPageToolBarActions],delete i.definitions[S.DefinitionName.QuickVariantSelectionV4OP],$n(i,iL),i}r(Vr,"generateObjectPageSchemaV4");function dd(e,t){return JSON.parse(JSON.stringify(t))}r(dd,"generateFreestyleSchemaV4");var ln=U(B());function gd(e,t,n,i,o,a){let s=Zn(n,o),l=ci(t,s);l||k(o,{severity:ln.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:t})});let c={templateType:ln.TemplateType.ListReportObjectPageV4,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:l,entityType:l==null?void 0:l.entityType};return Vr(c,e,l)}r(gd,"generateObjectPageInterfaceV4");function Ic(e,t,n,i,o,a){Xe();let s=Zn(i,o),l=s==null?void 0:s.entitySets.find(f=>f.name===n),c={templateType:e,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:l,entityType:l.entityType},p=e===ln.TemplateType.ListReportObjectPageV4?ln.v4.FE_TEMPLATE_V4_LIST_REPORT:ln.v4.FE_TEMPLATE_V4_ALP;return Lr(c,t,l,p)}r(Ic,"generateListReportInterfaceV4");function md(e,t,n,i,o,a){let s=Zn(n,a),l={templateType:e,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return dd(l,t)}r(md,"generateFreestyleInterfaceV4");var Nr=require("@sap-ux/vocabularies-types/vocabularies/UI"),eS=U(B());var we=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Lc=r(e=>we(e)+"/views/paths","getSettingsPathForLRViewsPaths"),yd=r(e=>we(e)+"/content/header","getSettingsPathForHeaderOP"),Hn=r(e=>we(e)+"/controlConfiguration","getControlConfigurationPath"),Vc=r((e,t,n)=>Hn(e)+`/@${Nr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),An=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),En=r((e,t,n,i,o)=>o?An(e,t,n,i,o):Hn(e)+`/@${Nr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Nc=r((e,t,n,i,o)=>En(e,t,n,i,o)+eS.QUICKVARPATH,"getQuickVariantPath"),Qt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Rt=r((e,t,n,i,o)=>o?Qt(e,t,n,i,o):Hn(e)+`/@${Nr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),hd=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Dc=r((e,t,n,i,o)=>o?hd(e,t,n,i,o):Hn(e)+`/@${Nr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Co=r((e,t,n,i)=>Hn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),tS=r((e,t,n,i)=>Hn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),Tt=r((e,t,n)=>Hn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Dr=r((e,t,n,i)=>{let o=we(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),Fc=class Fc{};r(Fc,"ApplicationV4"),d([_e("settings")],Fc.prototype,"settings",2);var Oc=Fc,Ri=class Ri{};r(Ri,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Ri.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Ri.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Ri.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),T({since:"1.78.0"})],Ri.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"})],Ri.prototype,"flexEnabled",2);var ha=Ri;var te=U(B());function ze(e,t,n,i,o,a,s){if(!n)return;let l={},c=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let f in n.properties){let u=dt(e,f);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,p,...o);l=ei(t,m,a,p,!0),l&&Object.keys(l).length>0&&(Qo(u,l,f,e,a,o),Qs(c,l,m,s))}}}r(ze,"importSettingsOfObject");var ug={};Do(ug,{ALPChart:()=>vd,ALPTable:()=>Sa,ActionAfterExecutionConfiguration:()=>Nd,ActionAfterExecutionConfigurationOP:()=>Qr,ActionAfterExecutionConfigurationToolBarLR:()=>Hd,Actions:()=>Ud,CommonHeaderFacetSettings:()=>wi,CommonViewSettings:()=>va,FilterBar:()=>Kd,FlexSettings:()=>Xd,HeaderSections:()=>ng,LRChartView:()=>Sd,LRTableView:()=>Pd,MultiTableModeV4:()=>Ad,ObjectPageCustomSectionFragment:()=>Xr,ObjectPageHeader:()=>qd,ObjectPageHeaderSectionAddress:()=>tg,ObjectPageHeaderSectionChart:()=>Yd,ObjectPageHeaderSectionContact:()=>eg,ObjectPageHeaderSectionDataPoint:()=>Zd,ObjectPageHeaderSectionForm:()=>zd,ObjectPageLayout:()=>cg,ObjectPageTable:()=>qr,ObjectPageTableColumn:()=>Pa,ObjectPageTableColumnAction:()=>Jd,ObjectPageToolBarAction:()=>Qd,Position:()=>Rd,QuickVariantSelectionV4:()=>Td,QuickVariantSelectionV4OP:()=>fg,Table:()=>Ed,TableColumn:()=>Mc,TableColumnAction:()=>Dd,TableCreationModeOP:()=>pg,TableCustomColumn:()=>wd,TableSettings:()=>jc,TableViewExtension:()=>Cd,TableViewSettings:()=>$r,ToolBar:()=>kd,ToolBarAction:()=>Gd,ViewPosition:()=>$d,ViewTableColumn:()=>Uc,ViewTableColumnAction:()=>jd,ViewTableCustomColumn:()=>Md,ViewToolBarAction:()=>Wd,checkViewOrder:()=>Id,deleteCreationModeCreateAtEnd:()=>Vd,deleteCreationModeName:()=>Od,exportCreationModeCreateAtEnd:()=>Ld,exportCreationModeName:()=>xd,exportPersonalization:()=>CL,exportPersonalizationProperty:()=>AL});var bd=U(B());var SL=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 xn(e,t,n,i,o,a){let s=Lc(e),l=SL(JSON.parse(JSON.stringify(t)),s),c;for(let p=0;p<l.length;p++){let f=l[p];if(f&&(f[bd.SchemaTag.key]===(a==null?void 0:a.key)||f[bd.SchemaTag.key]===i)){c=`${s}/${p}`;break}}return c||(c=`${s}/[]`),c}r(xn,"getSettingsPathForLRViewsPath");function xd(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(xd,"exportCreationModeName");function PL(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let c of l){let p=Number(c),f=e[c];t===f.key?s[n]=f:p>=i&&p<=o?s[Math.max(0,p+a)]=f:s[c]=f}return s}r(PL,"fillNewlyOrderedViews");function Id(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),l=Math.max(Number(i),o),c=PL(e,n,o,s,l,a);for(let p of Object.keys(c))e[p]=c[p]}}r(Id,"checkViewOrder");function CL(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(CL,"exportPersonalization");function AL(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(AL,"exportPersonalizationProperty");function Od(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(Od,"deleteCreationModeName");function Fd(e,t,n,i,o,a){var l;let s;if(!t||Object.keys(t).length===0){let c=e;Object.keys(c).forEach(p=>{c[p]&&c[p].key===o&&(e[Number(p)]={},s=p)})}if(s){let c=(l=a.table)==null?void 0:l.views;for(let p in c)c[p].index>s&&c[p].index--}}r(Fd,"deleteView");function Ld(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(Ld,"exportCreationModeCreateAtEnd");function Vd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(Vd,"deleteCreationModeCreateAtEnd");function nS(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(nS,"determineIndexOfView");var ba=class ba{};r(ba,"QuickVariantSelectionV4"),d([g({manifest:{path:Nc}})],ba.prototype,"paths",2),d([g({manifest:{path:Nc}})],ba.prototype,"hideTableTitle",2),d([g({manifest:{path:Nc}})],ba.prototype,"showCounts",2);var Td=ba,cn=class cn{};r(cn,"TableSettings"),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cn.prototype,"type",2),d([g({manifest:{path:En}}),T({since:"1.86.0"})],cn.prototype,"personalization",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],cn.prototype,"selectionMode",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"selectAll",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"selectionLimit",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cn.prototype,"enableExport",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"quickVariantSelection",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cn.prototype,"condensedTableLayout",2),d([g({manifest:{path:En}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cn.prototype,"hierarchyQualifier",2);var jc=cn,Rc=class Rc{};r(Rc,"ALPChart"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/primary/0","path"),delete:Fd}})],Rc.prototype,"annotationPath",2);var vd=Rc,Ao=class Ao{};r(Ao,"CommonViewSettings"),d([g({manifest:{path:xn,delete:Hi}})],Ao.prototype,"key",2),d([g({manifest:{path:Lc,import:nS,export:r((t,n)=>{Id(t,n)},"export"),delete:Fd}})],Ao.prototype,"index",2),d([g({manifest:{path:xn,delete:Hi}})],Ao.prototype,"annotationPath",2),d([g({manifest:{path:xn}})],Ao.prototype,"entitySet",2);var va=Ao,pn=class pn extends va{};r(pn,"TableViewSettings"),d([g({manifest:{path:An}}),T({since:"1.84.0"})],pn.prototype,"type",2),d([g({manifest:{path:An}}),T({since:"1.86.0"})],pn.prototype,"personalization",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],pn.prototype,"selectionMode",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],pn.prototype,"selectAll",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],pn.prototype,"selectionLimit",2),d([g({manifest:{path:An}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],pn.prototype,"enableExport",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],pn.prototype,"quickVariantSelection",2),d([g({manifest:{path:An}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],pn.prototype,"condensedTableLayout",2),d([g({manifest:{path:An}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],pn.prototype,"hierarchyQualifier",2);var $r=pn;function EL(e){return $r}r(EL,"getTableViewSettings");var jr=class jr extends $r{};r(jr,"ALPTable"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Hi}})],jr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jr.prototype,"initialLoad",2);var Sa=jr,$c=class $c extends va{};r($c,"LRChartView"),d([g({manifest:{path:xn},generate:wn})],$c.prototype,"visible",2);var Sd=$c,Ta=class Ta extends EL(va){};r(Ta,"LRTableView"),d([g({manifest:{path:xn}})],Ta.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:xn}})],Ta.prototype,"entitySet",2),d([g({manifest:{path:xn},generate:wn})],Ta.prototype,"visible",2);var Pd=Ta,$i=class $i{};r($i,"TableViewExtension"),d([g({manifest:{path:xn}})],$i.prototype,"key",2),d([g({manifest:{path:Lc,import:nS,export:r((t,n)=>{Id(t,n)},"export"),delete:Fd}})],$i.prototype,"index",2),d([g({manifest:{path:xn}})],$i.prototype,"label",2),d([g({manifest:{path:xn}})],$i.prototype,"template",2),d([g({manifest:{path:xn},generate:wn})],$i.prototype,"visible",2);var Cd=$i,wc=class wc{};r(wc,"MultiTableModeV4"),d([g({manifest:{path:r(t=>we(t)+"/views","path")}})],wc.prototype,"showCounts",2);var Ad=wc,Rr=class Rr extends jc{};r(Rr,"Table"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Hi}})],Rr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Rr.prototype,"initialLoad",2);var Ed=Rr;var wr=class wr{};r(wr,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/afterExecution","path")}})],wr.prototype,"enableAutoScroll",2);var Nd=wr,Mr=class Mr{};r(Mr,"TableColumn"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Mr.prototype,"width",2),d([g({manifest:{path:Rt}}),T({since:"1.85.0"})],Mr.prototype,"availability",2);var Mc=Mr,Ur=class Ur{};r(Ur,"ViewTableColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ur.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],Ur.prototype,"availability",2);var Uc=Ur,kc=class kc extends Mc{};r(kc,"TableColumnAction"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],kc.prototype,"afterExecution",2);var Dd=kc,_c=class _c extends Uc{};r(_c,"ViewTableColumnAction"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],_c.prototype,"afterExecution",2);var jd=_c,kr=class kr{};r(kr,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],kr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],kr.prototype,"placement",2);var Rd=kr,_r=class _r{};r(_r,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],_r.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],_r.prototype,"placement",2);var $d=_r,Gn=class Gn{};r(Gn,"TableCustomColumn"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"position",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"header",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Gn.prototype,"width",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"template",2),d([g({manifest:{path:Rt}}),T({since:"1.86.0"})],Gn.prototype,"horizontalAlign",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"availability",2),d([g({manifest:{path:Rt}}),T({since:"1.85.0"})],Gn.prototype,"properties",2);var wd=Gn,Wn=class Wn{};r(Wn,"ViewTableCustomColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"position",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"header",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wn.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"template",2),d([g({manifest:{path:Qt}}),T({since:"1.86.0"})],Wn.prototype,"horizontalAlign",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"availability",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],Wn.prototype,"properties",2);var Md=Wn;var _d=class _d{};r(_d,"Actions");var Ud=_d,Bd=class Bd{};r(Bd,"ToolBar");var kd=Bd;var Br=class Br{};r(Br,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>Dc(t,n,i,o,a)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Br.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Dc(t,n,i,o,a)+"/afterExecution","path")}})],Br.prototype,"enableAutoScroll",2);var Hd=Br,Bc=class Bc{};r(Bc,"ToolBarAction"),d([g({manifest:{path:Dc}})],Bc.prototype,"enableOnSelect",2);var Gd=Bc,Hc=class Hc{};r(Hc,"ViewToolBarAction"),d([g({manifest:{path:hd}})],Hc.prototype,"enableOnSelect",2);var Wd=Hc;var Gc=class Gc{};r(Gc,"ObjectPageToolBarAction"),d([g({manifest:{path:tS}})],Gc.prototype,"enableOnSelect",2);var Qd=Gc;var Wc=class Wc{};r(Wc,"FilterBar"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.99.0"}),me("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Wc.prototype,"hideFilterBar",2);var Kd=Wc;var Hr=class Hr{};r(Hr,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Hr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}})],Hr.prototype,"enableAutoScroll",2);var Qr=Hr,Gr=class Gr{};r(Gr,"ObjectPageTableColumn"),d([g({manifest:{path:Co}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Gr.prototype,"width",2),d([g({manifest:{path:Co}}),T({since:"1.85.0"})],Gr.prototype,"availability",2);var Pa=Gr,Wr=class Wr extends Pa{};r(Wr,"ObjectPageTableColumnAction"),d([g({manifest:{path:Co}}),T({since:"1.84.0"})],Wr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/position","path")}}),T({since:"1.84.0"})],Wr.prototype,"placement",2);var Jd=Wr;var Eo=class Eo{};r(Eo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],Eo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],Eo.prototype,"showRelatedApps",2),d([g({manifest:{path:yd}}),T({since:"1.84.0"})],Eo.prototype,"visible",2),d([g({manifest:{path:yd}}),T({since:"1.84.0"})],Eo.prototype,"anchorBarVisible",2);var qd=Eo;var Qc=class Qc{};r(Qc,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>Vc(t,n,i)+"/flexSettings","path")}}),T({since:"1.81.0"}),me("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Qc.prototype,"designtime",2);var Xd=Qc,Kr=class Kr{};r(Kr,"CommonHeaderFacetSettings"),d([g({manifest:{path:Vc}}),T({since:"1.81.0"})],Kr.prototype,"stashed",2),d([g({manifest:{path:Vc}}),T({since:"1.81.0"})],Kr.prototype,"flexSettings",2);var wi=Kr,ig=class ig extends wi{};r(ig,"ObjectPageHeaderSectionForm");var zd=ig,og=class og extends wi{};r(og,"ObjectPageHeaderSectionChart");var Yd=og,ag=class ag extends wi{};r(ag,"ObjectPageHeaderSectionDataPoint");var Zd=ag,rg=class rg extends wi{};r(rg,"ObjectPageHeaderSectionContact");var eg=rg,sg=class sg extends wi{};r(sg,"ObjectPageHeaderSectionAddress");var tg=sg,lg=class lg{};r(lg,"HeaderSections");var ng=lg;var Kc=class Kc{};r(Kc,"ObjectPageLayout"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Kc.prototype,"sectionLayout",2);var cg=Kc;var Jc=U(B());var Jr=class Jr{};r(Jr,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i),"path"),export:r((t,n,i,o)=>{xd(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Od(t,o)},"delete")}})],Jr.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i),"path"),export:r((t,n,i,o)=>{Ld(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Vd(t,o)},"delete")}})],Jr.prototype,"createAtEnd",2);var pg=Jr,Ca=class Ca{};r(Ca,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Ca.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Ca.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Ca.prototype,"showCounts",2);var fg=Ca,Kt=class Kt{};r(Kt,"ObjectPageTable"),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"type",2),d([g({manifest:{path:Tt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),T({since:"1.84.0"})],Kt.prototype,"creationMode",2),d([g({manifest:{path:Tt}}),T({since:"1.86.0"})],Kt.prototype,"personalization",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectionMode",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectAll",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectionLimit",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Kt.prototype,"enableExport",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"quickVariantSelection",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Kt.prototype,"condensedTableLayout",2),d([g({manifest:{path:Tt}}),T({since:"1.86.0"})],Kt.prototype,"enablePaste",2),d([g({manifest:{path:Tt}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Kt.prototype,"hierarchyQualifier",2);var qr=Kt;var xo=class xo{};r(xo,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"anchor"}}),T({since:"1.77.0"})],xo.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"placement"}}),T({since:"1.77.0"})],xo.prototype,"relativePosition",2),d([g({manifest:{path:Dr}}),T({since:"1.77.0"})],xo.prototype,"title",2),d([g({manifest:{path:Dr,key:"name"}}),T({since:"1.77.0"})],xo.prototype,"fragmentName",2);var Xr=xo;var yg={};Do(yg,{FreestylePage:()=>gg,ListReport:()=>fn,ObjectPage:()=>In});function xL(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(xL,"deleteAllALPViews");function IL(){}r(IL,"doNotExport");function OL(){}r(OL,"doNotImport");var fn=class{};r(fn,"ListReport"),d([g({manifest:{path:r(t=>we(t)+"/views","path"),import:OL,export:IL,delete:xL}})],fn.prototype,"chart",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],fn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>we(t)+"/views/paths/[]/0","path")}}),me("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],fn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>we(t),"path")}})],fn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],fn.prototype,"filterBar",2),fn=d([tn({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],fn);var dg=U(B());var In=class{};r(In,"ObjectPage"),d([_e("header")],In.prototype,"header",2),d([_e("layout")],In.prototype,"layout",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],In.prototype,"variantManagement",2),d([_e("sections")],In.prototype,"sections",2),In=d([tn({id:`${dg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:dg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],In);var mg=class mg{};r(mg,"FreestylePage");var gg=mg;var qc=U(B());var FL={ALPTableView:Sa},LL={ALPTableView:Sa},VL={Table:qr,TableColumn:Pa,ObjectPageCustomSectionView:Xr,ActionAfterExecutionConfiguration:Qr},NL={[qc.PageTypeV4.AnalyticalListPage]:FL,[qc.PageTypeV4.ListReport]:LL,[qc.PageTypeV4.ObjectPage]:VL},hg=class hg extends ya{constructor(){super(ug,yg,NL)}};r(hg,"MetadataInstanceFactoryV4");var pi=hg;var bg=require("@sap-ux/vocabularies-types/vocabularies/UI");function Tg(e,t,n,i,o,a,s){var f,u,m,b,v,L;let l=t.jsonSchema.definitions,c=a&&a!==`@${bg.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,p=l[c];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let V in p.properties){let ne=l[c].properties[V].$ref.split(O)[1].split("<")[0];e.columns[V]=n.createInstance(i,ne);let ie=s||a;ze(e.columns[V],t.manifest,l[ne],o,[V,ie],ie,t.logger),Wi(e.columns,V)}Wi(e,"columns")}else{let V=(L=(v=(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:v.settings)==null?void 0:L.views;(!V||V.paths.length<1)&&k(t.logger,{severity:te.LogSeverity.Error,message:j.t("NOLINEITEMS")})}}r(Tg,"transferColumns");function DL(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,c=s;!c&&[te.DefinitionName.LineItems,`${te.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(c=`@${bg.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${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=Go(u.$ref),b=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,b),ze(t.toolBar.actions[f],e.manifest,l[m],o,[f,c]),Wi(t.toolBar.actions,f)}}}r(DL,"importActions");function iS(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),c;!s&&t&&"table"in t?c=t.table:c=t,c.toolBar=l,ze(c.toolBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.ToolBarLR],o,[]),DL(e,c,n,i,o,a,s),Wi(c.toolBar,"actions"),Wi(c,"toolBar")}r(iS,"transferToolBar");function oS(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(oS,"determineTargetAnnotationOfView");function jL(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,te.DefinitionName.ALPChart);let s=a[te.DefinitionName.ALPChart],l=s[te.SchemaTag.annotationPath];ze(t.chart,e.manifest,s,o,[s[te.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),ze(t.chart.toolBar,e.manifest,a[te.DefinitionName.ViewChartToolBar],o,[]);let c=a[te.DefinitionName.ALPTable][te.SchemaTag.annotationPath];if(c){let p=a[te.DefinitionName.ALPTable],f=t.table=n.createInstance(i,te.DefinitionName.ALPTable);iS(e,t,n,i,o);let u=c.substr(c.lastIndexOf("@"));ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),Tg(f,e,n,i,o,void 0,u)}}r(jL,"importALPViews");function RL(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(RL,"getViewTypeByDefinition");function $L(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 l=s[te.DefinitionName.MultiTableModeV4].properties,c=Object.entries(l).sort((p,f)=>p[1][te.SchemaTag.propertyIndex]-f[1][te.SchemaTag.propertyIndex]);for(let p of c)if(p[1].$ref){let f=p[1].$ref.split(O)[1],u=RL(f),m=a[p[0]]=n.createInstance(i,u),b=oS(s,f);s[f].entitySet||(ze(m,e.manifest,s[f],o,[p[0],b]),u===te.DefinitionName.LRTableView&&Tg(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,b)),Object.keys(m).length===0&&delete a[p[0]]}Wi(t.table,"views")}r($L,"importLRViews");function wL(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,l=e.jsonSchema.definitions[s],c;l.$ref&&(s=l.$ref.split(O)[1],l=e.jsonSchema.definitions[s],c=l.properties.columns.$ref.split(O)[1]),t.table=n.createInstance(i,te.DefinitionName.Table);let p=oS(e.jsonSchema.definitions,s);ze(t.table,e.manifest,l,o,[s,p]),iS(e,t,n,i,o,c),Tg(t.table,e,n,i,o,c,p),$L(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&jL(e,t,n,i,o)}r(wL,"addSettings");function Io(e,t){if(Xe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){k(e.logger,{severity:te.LogSeverity.Error,message:j.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:j.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new pi,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Hp(s);if("name"in s&&(l===te.PageTypeV4.ListReport||l===te.PageTypeV4.AnalyticalListPage)){wL(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(Io,"createListReportConfig");var se=U(B()),zr=require("@sap-ux/vocabularies-types/vocabularies/UI");function vg(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${zr.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${zr.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(vg,"getManifestId");function Sg(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(Sg,"getDefinitionId");function ML(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Sg(a)];if(l)for(let c in l.properties){l.properties[c].$ref.indexOf(se.DefinitionName.CustomColumnOP)>-1?s=se.DefinitionName.CustomColumnOP:s=se.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(se.PageTypeV4.ObjectPage,s);ze(f,e.manifest,e.jsonSchema.definitions[s],e.routingId,[c],a),Object.keys(f).length>0&&(n[i].table.columns[c]=f)}}}r(ML,"fillTableColumnsInConfig");function UL(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${se.DefinitionName.Actions}<${Sg(o)}>`];if(a)for(let s in a.properties){let l=a.properties[s];if(typeof l=="object"&&l.$ref){let c=Go(l.$ref),p=c.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(se.PageTypeV4.ObjectPage,p),ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[c],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(UL,"fillTableActionsInConfig");function aS(e,t,n,i,o,a){let s=a||vg(i),l=t.controlConfiguration[s];if(l){n[i]={},n[i].table=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageTable);let c=`${se.DefinitionName.ObjectPageTable}<${a?Sg(a):i.replace("#","::")}>`;ze(n[i].table,e.manifest,e.jsonSchema.definitions[c],e.routingId,[],s),n[i].table.toolBar=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ToolBar,{actions:{}}),UL(e,i,n,o,s),ML(e,l,n,i,o,s)}}r(aS,"fillTableInConfig");function kL(e,t,n,i,o){var l;let a=vg(i);((l=t.controlConfiguration)==null?void 0:l[a])&&(n[i]={},n[i].form=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageForm,{actions:{}}))}r(kL,"fillFormInConfig");function rS(e,t,n,i,o){var a,s,l,c;for(let p in t){let f=t[p],u=p;if(p.includes(zr.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(O+se.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(O)[1];u=m?vg(m,!0):p,aS(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(O+se.DefinitionName.ObjectPageSectionTableV4)?aS(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},rS(e,f.properties.subsections.properties,n,i[p].subsections,o)):(l=f.$ref)!=null&&l.startsWith(O+se.DefinitionName.ObjectPageSectionForm)&&((c=f.$ref)!=null&&c.includes(`@${zr.UIAnnotationTerms.FieldGroup}::`))&&kL(e,n,i,p,o)}}r(rS,"fillSectionsInConfig");function _L(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 l in o){if("subSections"in o[l])continue;let p=i.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageCustomSectionFragment);ze(p,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),n.sections[l]=p}}r(_L,"fillCustomSectionsInConfig");function BL(e,t,n,i,o){var s,l;let a=e.definitions[se.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let c in a.properties){let p=a.properties[c],f,u=(s=a.properties[c].$ref)==null?void 0:s.split(O)[1];u&&(p=e.definitions[u],f=u.split("<")[0]),(f==null?void 0:f.includes(se.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[c]=f?n.createInstance(se.PageTypeV4.ObjectPage,f):{},ze(t.header.sections[c],i,p,o,[],(l=p==null?void 0:p.title)==null?void 0:l.split(se.FACETTITLEPREFIX)[1]))}}}r(BL,"fillHeaderFacets");function HL(e,t,n){let i=n.createPageInstance(se.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageHeader),ze(i.header,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageLayout),ze(i.layout,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageLayout],e.routingId,[]),ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[se.DefinitionName.Sections]&&(i.sections={},rS(e,e.jsonSchema.definitions[se.DefinitionName.Sections].properties,o,i.sections,n)),_L(e,o,i,n),BL(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(HL,"fillObjectPageConfig");function Xc(e){if(Xe(),!e.manifest[se.ManifestSection.ui5]||!e.manifest[se.ManifestSection.ui5].routing){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5]}});return}let t=e.manifest[se.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOTARGETS"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOROUTINGID",{routingId:e.routingId}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5,"routing"]}});return}let i=new pi;return HL(e,n,i)}r(Xc,"createObjectPageConfigV4");var he=U(B());var Pg=[],zc={};function GL(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(GL,"routesSorter");function Cg(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(Cg,"resolveTarget");function WL(e){let t={};e=e.concat().sort(GL);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Cg(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}r(WL,"populateAssociations");function QL(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:j.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(QL,"determinePageType");function KL(e){let t=Ho(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=Xc(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Io(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=Io(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=Ua(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Io(i,a)}}}r(KL,"convertSettingsToConfig");function JL(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Pg.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Pg.push(t[t.length-1])}}r(JL,"updateUnhandledControllers");function qL(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(qL,"setVariantManagmentAndNavigation");function XL(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(XL,"evaluateCustomPageSettings");function zL(e,t,n,i){var p;let o=e.targets[t],a=QL(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),zc[t]&&zc[t].indexOf(".")!==-1){let f=zc[t].split(".");s.navigationProperty=f[f.length-1]}XL(o,s,a),qL(o,s),JL(o);let l=e.routes.find(f=>(f==null?void 0:f.target)&&f.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let c={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};KL(c)}r(zL,"getSinglePageAndConfig");function sS(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=j.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}zc=WL(n.routes||[]);for(let i in n.targets)zL(n,i,t,e);return t}r(sS,"getPagesAndConfigs");function lS(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 Cg(t?t.target:e.routes[0].target)}else return}r(lS,"getHome");function cS(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(cS,"getSettings");function Yr(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];a.name===t&&(i[o]=a)}return i}r(Yr,"getPages");var Ag=class Ag extends hi{constructor(t){Xe();let n=new ha,i=Je(he.SchemaType.Application),o=t.appSchemas[i.filename];ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,lS(t.manifest[he.ManifestSection.ui5].routing),sS(t),{...cS(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Pg}};r(Ag,"V4AppProvider");var Aa=Ag;var pS=require("fs"),Oo=require("path"),fS=U(B()),Eg=U(B());var uS=r((e,t,n=__dirname)=>{let i=t===Eg.SchemaType.Application?`${Eg.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Oo.join)(n,"schemas",e,i);if(n.endsWith((0,Oo.join)("specification","packages","specification")))return(0,Oo.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Oo.join)("src","specification")))return(0,Oo.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Oo.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),YL=r(async e=>new Promise((t,n)=>{(0,pS.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Yc=r(async(e,t)=>{try{let n=uS(e||fS.FioriElementsVersion.v4,t,__dirname);return await YL(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function ZL(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=Je(o);n[a.filename]=await Yc(t,o)}return n}r(ZL,"getGenericSchemas");function gS(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=kt(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(gS,"getAnnotationsForUi");function ci(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(ci,"getEntitySetByEntitySetName");function dS(e,t,n){let i=Or(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=ci(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=Zr(e,t[c.filename])}}r(dS,"generateObjectPageSchemasV2");function eV(e,t,n){let i=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let l=a[s].options.settings.entitySet,c=ci(l,e.serviceAVT);e.entityType=c==null?void 0:c.entityType,e.entitySet=c;let p=Je(Q.SchemaType.ListReport,(c==null?void 0:c.name)||l),f=Je(Q.SchemaType.ListReport);e.templateType===Q.TemplateType.FreestylePageV4&&(e.templateType=Ua(a[s])),n[p.filename]=Lr(e,t[f.filename],c,a[s].name)}}r(eV,"generateListReportSchemasV4");function tV(e,t,n){var o;let i=Or(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=ci(s,e.serviceAVT);let l=Je(Q.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),c=Je(Q.SchemaType.ListReport);t[l.filename]=es(e,n[c.filename])}}r(tV,"generateAppSchemaV2LR");function nV(e,t,n){let i=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=ci(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:a})});let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=Vr(e,t[c.filename],s)}}r(nV,"generateObjectPageSchemasV4");function iV(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)tV(e,o,t),dS(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=Or(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=ci(c,e.serviceAVT);let p=Je(Q.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=Je(Q.SchemaType.AnalyticalListPage);o[p.filename]=ts(e,t[f.filename])}dS(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Je(Q.SchemaType.OverviewPage),l=Je(Q.SchemaType.OverviewPage);o[s.filename]=ns(t[l.filename],e.manifest)}return{...t,...o}}r(iV,"generateAppSchemasV2");function oV(e,t,n){let i={};return n&&(eV(e,t,i),nV(e,t,i)),{...t,...i}}r(oV,"generateAppSchemasV4");async function mS(e,t,n){let i=await ZL(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?oV(e,i,t):iV(e,i,t,n)}r(mS,"generateAppSchemas");function aV(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new vc(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new Aa(e);break;case Q.TemplateType.OverviewPageV2:t=new Cc(e);break;default:t=new Aa(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(aV,"importConfigs");function yS(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(yS,"getFileList");async function xg(e){var v,L;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new Ba().doesUi5VersionFitDistTags((L=(v=t["sap.ui5"])==null?void 0:v.dependencies)==null?void 0:L.minUI5Version,i);let c=Qp(t),p=Zn(n,i),f=gS(p),u=Kp(t,c,i),b=await mS({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},f,u);return yS(b)}r(xg,"importProjectSchema");async function Ig(e){var ne,ie;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:l}=e;new Ba().doesUi5VersionFitDistTags((ie=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:ie.minUI5Version,i);let p=Qp(t),f=Qb(t),u=Zn(n,i),m=Kp(t,p,i),b={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},v=gS(u),L=await mS(b,v,m),z=aV({manifest:t,flexChanges:s,appSchemas:L,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return yS(L,z)}r(Ig,"importProjectSchemaAndConfig");var rV=["header","sections","footer"];function sV(e,t,n,i){t.properties[n][R.SchemaTag.artifactType]=R.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=R.ControlType.Section;break;case"ObjectPageSubSectionV2":o=R.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=R.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=R.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=R.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=R.ControlType.ObjectPageHeaderSection;break}o&&(Fe(e,t,n),t.properties[n][R.SchemaTag.controlType]=o)}r(sV,"addFlexChangeForSection");function lV(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===On.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:c}=rl(a,o);if(!l)return;let p=a.Label||s,f=`HeaderAction<${Oe(l)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${On.UIAnnotationTerms.Identification}`,`/@${On.UIAnnotationTerms.Identification}`);t.definitions[f][R.SchemaTag.annotationPath]=`/${u}`,t.definitions[f][R.SchemaTag.actionType]=R.ActionType.Annotation,t.definitions[f].description=p,t.definitions[f][R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:s}],c&&(t.definitions[f][R.SchemaTag.target]=c),i.properties[l]={$ref:`${O}${f}`}}})}r(lV,"addHeaderActionCallBackV2");function cV(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===On.UIAnnotationTypes.DataFieldForAction){let a=ni(o).split("::").splice(1).join("::"),s=Et(o,e),l=Oe(`${R.DefinitionName.ObjectPageFooterAction}<${a}>`),c=o.fullyQualifiedName.replace(`@${On.UIAnnotationTerms.Identification}`,`/@${On.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[R.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${c}`}}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${O}${l}`}}})}r(cV,"addFooterActionCallBackV2");function pV(e,t,n,i,o,a,s,l){let c,p;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?p=`${R.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:p=`${R.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let f=`${R.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(v=>v.name===i),b=To(t[R.ManifestSection.generic].pages,n,u);return Jo(e,m,b,t,l,p,f,a.ID),p}r(pV,"ensureCustomColumnDefinitionExists");function os(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&sV(e,t,"visible",n)}r(os,"addAppSchemaDefinition");function fV(e,t,n){e.properties[t]={$ref:`${O}${n}`}}r(fV,"addSectionReference");function is(e,t,n,i){let o=Oe(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(j.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][R.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=R.FACETTITLEPREFIX+n.ID,i.definitions[o][R.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=R.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}>`,mi(n.entityType,i,`QuickVariant<${t}>`)}r(is,"addTableDefinition");function uV(e,t,n,i,o,a){if(i.base!==R.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jn(n,i,t);let c=n.definitions[l];os(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[R.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${O}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${O}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${O}ObjectPageAnalyticalTable<${t}>`},{$ref:`${O}ObjectPageGridTable<${t}>`},{$ref:`${O}ObjectPageTreeTable<${t}>`}],c[R.SchemaTag.annotationPath]=i.annotationPath,di(i,c,t),is("ObjectPageResponsiveTableWithMultiSelect",t,i,n),is("ObjectPageResponsiveTableWithInlineDelete",t,i,n),is("ObjectPageGridTable",t,i,n),is("ObjectPageTreeTable",t,i,n),is("ObjectPageAnalyticalTable",t,i,n);let p,f=OT(i.entityType,e.serviceAVT);f&&(p=pV(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===R.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&Ko(!0,n,m.target,m.entityType,m.ID||u,p)}}r(uV,"handleLineItem");function dV(e,t,n,i,o,a=!1){e.definitions[t]=jn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";os(e,s,o,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[R.SchemaTag.isViewNode]=!0}r(dV,"handleSubSection");function gV(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];os(e,a,o,"ObjectPageSectionChartV2")}r(gV,"handleSectionChart");function hS(e,t,n,i,o,a){e.definitions[t]=jn(e,n,i);let s=e.definitions[t];os(e,s,o,a||"CommonHeaderFacetSettings"),s[R.SchemaTag.annotationPath]=n.annotationPath,s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.dataType]=Yi(n==null?void 0:n.target)}r(hS,"handleHeaderFacet");function mV(e,t,n){let i=e.definitions[t],o=i[R.SchemaTag.dataType]=Yi(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(mV,"addDataPointHeaderFacetDataType");function yV(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];return os(e,a,o,"ObjectPageSectionFormV2"),a[R.SchemaTag.annotationPath]=n.annotationPath,a[R.SchemaTag.isViewNode]=!0,a}r(yV,"handleFormSection");function hV(e,t,n){let i=new Map([[R.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[R.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[R.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[R.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[R.FacetBase.Form,"ObjectPageHeaderSectionForm"],[R.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[R.FacetBase.LineItem,"ObjectPageSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSectionChartV2"],[R.FacetBase.Address,"ObjectPageSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSectionContactV2"],[R.FacetBase.Form,"ObjectPageSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[R.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[R.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[R.FacetBase.Form,"ObjectPageSubSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(hV,"getSectionType");function bV(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${On.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(bV,"getReferenceKey");function TS(e,t,n,i,o,a=!1,s=!1){let l=t[n],c=hV(l.base,a,s),p=bV(l,n,c),f=`${c}<${p}>`;switch(fV(i,p,f),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,dV(o,f,l,n,c,s);let u=o.definitions[f].properties.subsections;for(let m in l.facets)TS(e,l.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{uV(e,p,o,l,t,c),Xo(o,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{gV(o,f,l,p,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=yV(o,f,l,p,c);al(R.SectionType.Section,l,u,o,R.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{_a(l,p,i,o,R.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{_a(l,p,i,o,R.SectionType.Section,R.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{hS(o,f,l,p,c);break}case"ObjectPageHeaderSectionDataPoint":{hS(o,f,l,p,c),mV(o,f,l);break}default:i.properties[n]=jn(o,l,p)}}r(TS,"addSection");function bS(e,t,n,i,o,a=!1){if(e)for(let s in t)TS(i,t,s,n,o,!1,a)}r(bS,"addSectionsFromFacets");function vS(e,t,n){var f,u,m,b,v,L;let i=t.definitions[R.DefinitionName.Sections];i[R.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${On.UIAnnotationTerms.Facets}`);let o=t.definitions[R.DefinitionName.HeaderSections];if(o[R.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${On.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=_s((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),s=ks((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,c=s&&!!Object.keys(s).length;if(!l&&!c)return;for(let V in n){let z=n[V];(L=(v=e.entitySet)==null?void 0:v.name)!=null&&L.includes(z.entitySet)?(bS(l,a,i,e,t),bS(c,s,o,e,t,!0)):vS(e,t,z.pages)}let p=t.definitions.CustomSections;for(let V in p.properties)i.properties[V]=p.properties[V]}r(vS,"addSections");function TV(e,t,n,i){cl(e,n),ll(e,n,t,i,lV,!0)}r(TV,"addHeader");function vV(e,t,n,i){let o=Kb(t,n,i,void 0,!0);o&&NT(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(vV,"addRelatedFacetKeysType");function Zr(e,t){var s;Xe();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[R.PropertyName.sections]={$ref:O+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[R.ManifestSection.generic].pages;return a?(TV(n,e.entitySet,o,e.serviceAVT),n.definitions[R.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},vS(e,n,a),vV(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[R.SchemaTag.isViewNode]=!0):delete n.properties[R.PropertyName.sections]),sl(n,e,R.FioriElementsVersion.v2,cV,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,$n(n,rV),n):(k(e.logger,{severity:R.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),n)}r(Zr,"generateObjectPageSchemaV2");var zt=U(B());var SV=["filterBar","table","footer"];function Og(e,t,n,i){mi(e,n,"QuickVariant"),LT(n,"QuickVariantX",t),VT(i,n,"QuickVariantX")}r(Og,"addEnumForVariantPaths");function es(e,t){var u,m,b,v,L,V,z;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=O+Ji,n.properties.table.anyOf[1].$ref=O+qi,n.properties.table.anyOf[2].$ref=O+qs,n.properties.table.anyOf[3].$ref=O+Xs,n.properties.table.anyOf[4].$ref=O+zs;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)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),c={$ref:O+zt.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c,l.properties.columns=c;let p=O+zt.DefinitionName.ToolBarLR;n.definitions[Ji]=i,n.definitions[qi]=o,n.definitions[qs]=a,n.definitions[Xs]=s,n.definitions[zs]=l,zp.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:zt.LogSeverity.Error,message:j.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{qo(n);let ne=(L=(v=f==null?void 0:f.annotations)==null?void 0:v.UI)==null?void 0:L.LineItem;ne&&zp.forEach(oe=>{n.definitions[oe][zt.SchemaTag.annotationPath]=Ut(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),Ko(!1,n,ne,f);let ie=(z=(V=f==null?void 0:f.annotations)==null?void 0:V.UI)==null?void 0:z.SelectionFields;el(n,ie,f),Xo(n,f);let ce=[],Y=ua(e.manifest[zt.ManifestSection.generic].pages,ce);if(!Y)return k(e.logger,{severity:zt.LogSeverity.Error,message:j.t("NOLR"),location:{path:zt.MANIFESTPATH,range:[zt.ManifestSection.generic]}}),n;Jo(n,f,Y,e.manifest,e.fragments),Og(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 $n(n,SV),n}r(es,"generateListReportSchemaV2");var je=U(B());var PV=["filterBar","keyPerformanceIndicators","chart","table","footer"];function SS(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(SS,"retrieveNameWithoutVocabulary");function CV(e,t,n){var v;let i=(v=e==null?void 0:e.component)==null?void 0:v.settings,o=i==null?void 0:i.qualifier,a=r(function(L){let V=L+(o?"#"+o:"");return t[V]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let L=o?j.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):j.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return k(n,{severity:je.LogSeverity.Error,message:L}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],p="",f="";c.some(function(L){return p=p||SS("LineItem",L),f=f||SS("Chart",L),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 L=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],V=j.t(L);k(n,{severity:je.LogSeverity.Warning,message:V})}return{lineItemAnnotation:u,chartAnnotation:m}}r(CV,"getLineItemAndChartAnnotation");function AV(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(AV,"addChart");function ts(e,t){var s,l,c,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(j.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,PT(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:j.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{qo(n);let u=[],m=ma(e.manifest[je.ManifestSection.generic].pages,u,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:v,chartAnnotation:L}=CV(m,b,e.logger);v&&yT.forEach(z=>{n.definitions[z][je.SchemaTag.annotationPath]=Ut(a==null?void 0:a.fullyQualifiedName,v.term,v.qualifier)}),Ko(!1,n,v,a),L&&AV(n,L);let V=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(el(n,V,a),Xo(n,a),!m)return k(e.logger,{severity:je.LogSeverity.Error,message:j.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;Jo(n,a,m,e.manifest,e.fragments),Og(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 $n(n,PV),n}r(ts,"generateAnalyticalListReportSchemaV2");function EV(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(EV,"getCardDefinitionNames");function xV(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(c=>i.includes(o[c].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Xi(a,s.CardModel);let l=EV(e);for(let c of l){let p=s[c].properties.model;delete p.type,p.$ref=O+"CardModel"}}r(xV,"addModelsEnum");function PS(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},xV(n,t),n}r(PS,"generateOverviewPageSchemaV2");var Mi=U(B());function Fg(e,t,n,i,o,a){Xe();let s=Zn(e,t),l={templateType:a,fioriElementsVersion:Mi.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ci(o,l.serviceAVT),l.entitySet||k(l.logger,{severity:Mi.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:o})}),l}r(Fg,"prepareGenerationV2");function Lg(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.ListReportObjectPageV2);return Zr(s,e)}r(Lg,"generateObjectPageInterfaceV2");function Vg(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.ListReportObjectPageV2);return es(s,e)}r(Vg,"generateListReportInterfaceV2");function Ng(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.AnalyticalListPageV2);return ts(s,e)}r(Ng,"generateAnalyticalListPageInterfaceV2");function ns(e,t){return PS(e,t)}r(ns,"generateOVPInterfaceV2");var re=U(B());var as=r(e=>({flexChanges:[],manifest:{[re.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:re.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:re.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function CS(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===re.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(CS,"getClassesForSingleSection");function AS(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],CS(n,i,t),AS(n,t)}}r(AS,"getSubsectionClasses");function IV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],CS(i,o,n),AS(i,n)}r(IV,"getExportClassesForSections");function OV(e,t){let n=ua(t.manifest[re.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("NOLR"),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}});return}if(!n.component){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:re.PageTypeV2.ListReport}),location:{path:re.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(OV,"findV2Page");function Dg(e,t){let n=Gs(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Dg,"calculateBaseId");function ES(e,t,n=!1){let i=as(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=OV(a,e),l=new Dt,c=l.createPageInstance(re.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Dg(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(p,c,[],[],e.jsonSchema)}return i}r(ES,"exportListReportPage");function xS(e,t,n=!1){let i=e.page.config,o=as(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=ma(e.manifest[re.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 l=new Dt,c=l.createPageInstance(re.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Dg(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(p,c,[],[],e.jsonSchema)}return o}r(xS,"exportAnalyticalListPage");function IS(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=as(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=To(e.manifest[re.ManifestSection.generic].pages,o,s);if(!l)return k(e.logger,{severity:re.LogSeverity.Error,message:j.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}}),a;let c=new Dt,p=c.createPageInstance(re.PageTypeV2.ObjectPage,i);if(i.sections&&IV(i,p,c),Object.keys(i).length!==0){let f={v2Page:l,exportResults:a,appId:e.appId,baseId:Dg(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:re.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(f,p,[],[],e.jsonSchema)}}return a}r(IS,"exportObjectPage");var OS=r(e=>{let t=as();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Dt,i=n.createPageInstance(re.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Fr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),FV=r((e,t,n)=>{var s;let i=as();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new fl,e);o.settings=Object.assign(new Ti,e.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=pt(i.manifest,p);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:(delete f[l],gi(i.manifest,p,!1))}}let a=(s=i.manifest[re.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&rf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function FS(e,t){if(e[re.SchemaType.ListReport])return ES(e[re.SchemaType.ListReport],t);if(e[re.SchemaType.ObjectPage])return IS(e[re.SchemaType.ObjectPage],t);if(e[re.SchemaType.OverviewPage])return OS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[re.SchemaType.Application];return FV(n,i,o)}else if(e[re.SchemaType.AnalyticalListPage])return xS(e[re.SchemaType.AnalyticalListPage],t)}r(FS,"exportPageV2");function jg(e,t,n=!1){if(e[re.SchemaType.ListReport])return ES(e[re.SchemaType.ListReport],t,n);if(e[re.SchemaType.ObjectPage])return IS(e[re.SchemaType.ObjectPage],t,n);if(e[re.SchemaType.OverviewPage])return OS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.AnalyticalListPage])return xS(e[re.SchemaType.AnalyticalListPage],t,n)}r(jg,"exportConfigEntityByPathV2");var rs=U(B());var LS=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),LV=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function VV(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(VV,"initializeRouting");function NV(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(NV,"setTargetOptions");function DV(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==rs.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(DV,"calculateQueryPattern");function VS(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(l=>n[a].navigation[l].route===i);s&&(t=s,o=n[a])}if(o){VS(e,t,n,a);return}}}r(VS,"fillNavigationParts");function jV(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(jV,"fillParentKeys");function RV(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(NV(n,a,s),s!=null&&s.route&&!i.routes.some(c=>c.name===s.route)){let c=l==null?void 0:l.routePattern;if(!c){let p=[];VS(p,a,t,o);let f=jV(e.routePattern);c=DV(p,l,f)}i.routes.push(LS(c,s.route,s.route))}}}r(RV,"handlePageNavigation");function $V(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($V,"removeDeletedPages");function wV(e,t){var n,i;e.entitySet?(t.options||(t.options=LV(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(wV,"transferEntitySet");function MV(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(MV,"updateRouteLayout");function UV(e,t,n,i){return e.pageType&&e.pageType!==rs.PageTypeV4.CustomPage?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&(t={...t,viewName:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(UV,"fillTarget");function NS(e,t,n){var o,a;let i=VV(n[rs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(LS(":?query:",e,e));for(let s in t){let l,c=t[s];i.targets[s]&&(l=i.targets[s]),l=UV(c,l,s,t),wV(c,l),l&&!c.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(o=l==null?void 0:l.options)==null?void 0:o.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),RV(c,t,l,i,s),MV(i,s,c),i.targets[s]=l}return $V(i,t),i}r(NS,"transformRoutingV4");var Ft=U(B());function DS(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(DS,"updateDependencyLib");function jS(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(jS,"extractLastIdPart");var RS=[Ft.FlexibleColumnLayoutAggregations.BeginColumnPages,Ft.FlexibleColumnLayoutAggregations.MidColumnPages,Ft.FlexibleColumnLayoutAggregations.EndColumnPages],$S=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],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:RS[o]?s.controlAggregation=RS[o]:s.controlAggregation=Ft.FlexibleColumnLayoutAggregations.EndColumnPages;let c=a.pattern.replace(":?query:","");if(c?s.contextPattern=c.startsWith("/")?c:`/${c}`:s.contextPattern="",l.navigation){o++;for(let f in l.navigation)$S(e,t,l.navigation[f].route,a.target,o)}},"applyFCLRouting"),kV=r((e,t)=>{e.routing.config.routerClass=Ft.v4.FIORI_FCL_ROUTER_CLASS,$S(e,t,t.home);let n={viewName:Ft.FIORI_FCL_ROOT_VIEW_NAME,type:Ft.ViewTypes.XML,async:!0,id:Ft.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,DS(e,Ft.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),_V=r(e=>{var t;e.rootView&&e.rootView.viewName===Ft.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ft.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),wS=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?kV(e,t):_V(e)},"updateFcl");var $=U(B());var Zc=require("@sap-ux/vocabularies-types/vocabularies/UI");var MS=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],BV=[...MS,"views","initialLoad","template"],HV=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function GV(e,t,n){var s,l,c;let i=`@${Zc.UIAnnotationTerms.LineItem}`,o=`@${Zc.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=(l=t.appSchema.definitions[$.DefinitionName.ALPTable])==null?void 0:l[$.SchemaTag.annotationPath];i=o=p&&p.substr(p.lastIndexOf("@"))}else if((c=n.table)!=null&&c.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(GV,"determineTargetAnnotationOfTable");function WV(e,t,n){var a,s;let i,o;if(e.length>1){let l=(a=t.appSchema.definitions[$.DefinitionName.ALPChart])==null?void 0:a[$.SchemaTag.annotationPath];i=o=l&&l.substr(l.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(WV,"determineTargetAnnotationOfChart");function QV(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],l=s&&o.appSchema.definitions[s],c=(l==null?void 0:l[$.SchemaTag.annotationPath])&&l[$.SchemaTag.annotationPath].substr(l[$.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${c}`:c}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(QV,"determineTargetAnnotationBasedOnParentView");function KV(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}=QV(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[$.SchemaTag.annotationPath]&&l[$.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let c=l[$.SchemaTag.annotationPath].split("/");return n=i=c[c.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[$.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(KV,"determineTargetAnnotationOfView");function JV(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(JV,"determineTargetAnnotationOfHeaderSections");function qV(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=jS(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(qV,"determineTargetAnnotationOfSections");function XV(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=GV(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=WV(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=qV(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=JV(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=KV(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(XV,"determineTargetAnnotation");function zV(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(zV,"determineKeyForSyncRule");function YV(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(YV,"createNewObjectInManifest");function ZV(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&&(YV(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(ZV,"transferPropertyToManifest");function eN(e,t,n,i,o,a,s){var p,f,u;let l=!1,c=(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&&MS.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(c!=null&&c.annotationPath)&&!c.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&BV.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),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return gi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),l}r(eN,"deleteFromManifest");function tN(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:l,targetAnnotation:c,custom:p}=XV(e,n.transferParameters,n.configObject),f=zV(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,f,c,n.configObject),m=ei(n.transferParameters.exportResults.manifest,u,c,p?void 0:l);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?o=ZV(b,n.propertyDefinition,i):o=eN(e,b,n.transferParameters,m,u,c,l)}return o}r(tN,"exportManifestChange");function nN(e,t,n){let i=dt(e.configObject,e.key);i!=null&&i.manifest&&tN(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(nN,"evaluateExportRule");function iN(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,$g(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(iN,"transferSubObject");function oN(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=we(e.pageNameArray)+"/views",a=ei(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(oN,"createALPTableView");function aN(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=we(e.transferParameters.pageNameArray)+"/views",o=ei(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)||Zc.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(aN,"createALPChartView");function rN(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=we(t.pageNameArray)+"/views",s=ei(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],o=!0;else{let c=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(c===-1)s.paths.push(l),o=!0;else if(c!==i.index){let p=JSON.parse(JSON.stringify(s.paths[c]));s.paths.splice(c,1),s.paths.splice(e,0,p),o=!0}}return o}r(rN,"createLRTableView");function sN(e,t,n){let i=!1,o=!1;if(t&&!n){if(t===$.DefinitionName.ALPChartView&&e.key===$.PropertyName.chart&&e.configObject)return aN(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return oN(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=rN(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(sN,"createNewElement");function lN(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(lN,"isDefinitionTraversable");function Rg(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=Hs(e.configObject,e.key),s=Rn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:c}=sN(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(O)[1],i),p=a?[...t,a]:[...t,e.key];if(l||nN(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||lN(e.propertyDefinition)&&s.configObject)&&!c){let u=a?[...n,a]:n;iN(e,s,o,p,u)}}r(Rg,"transferSortedListEntry");function cN(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((l,c)=>l[1]&&l[1].index-c[1].index),s.forEach(l=>{var c;(c=n.properties)!=null&&c[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],Rg(e,i,o),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,Rg(e,i,o),a=!0)}),e.index++})}return a}r(cN,"transferConfigEntriesWithAnyOfDefinitions");function pN(e,t,n,i){let o=Jb(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(pN,"mergeEntriesForInsert");function fN(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(fN,"sortProperties");function uN(e,t,n,i,o,a){var l,c;let s=!1;if(e){let p=e.anyOf;if(!p){let f=(l=e.$ref)==null?void 0:l.split(O)[1];p=f?(c=t.appSchema.definitions[f])==null?void 0:c.anyOf:void 0}s=cN(n,p,i,o,a)}return s}r(uN,"checkIfAnyOfDefinition");function $g(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},c=a.additionalProperties,p=uN(c,e,l,a,n,i),f=fN(a.properties);c!=null&&c.$ref&&pN(e,c,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!Ma(o,e.entityPathArray)||(l.key=u[0],l.propertyDefinition=u[1],l.index=s,Rg(l,n,i,p),u[1].$ref&&s++)})}r($g,"transferManifestEntriesAndFlexChange");function US(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(US,"getClassesForSingleSection");function kS(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],US(n,i,t),kS(n,t)}}r(kS,"getSubsectionClasses");function dN(e,t,n){let i;for(let o in e.sections)i=t.sections[o],US(e,o,n),kS(i,n)}r(dN,"getExportClassesForSections");function _S(e,t){let n=Gs(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(_S,"calculateBaseId");var BS=r((e,t,n=!1)=>{var l;let i=HV(e.manifest),o=new pi,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[$.PropertyName.sections]&&dN(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:_S(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 $g(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),gN=r((e,t,n,i,o,a,s=!1)=>{var v,L;let l=$.defaultExportResult;l.manifest=JSON.parse(JSON.stringify(e.manifest));let c=e.jsonSchema,p=(v=n.table)!=null&&v[$.PropertyName.annotationPath]?$.DefinitionName.ALPTableView:$.DefinitionName.Table,f=n.table=t.createInstance(i,p,n.table),u=$.DefinitionName.LineItems;c.definitions[$.DefinitionName.TableSPV]&&(u=c.definitions[$.DefinitionName.TableSPV].properties.columns.$ref.split(O)[1]);let m=c.definitions[`${$.DefinitionName.Actions}<${u}>`];if((L=f.toolBar)!=null&&L.actions&&m)for(let V in m.properties)f.toolBar.actions[V]=t.createInstance(i,$.DefinitionName.ToolBarAction,f.toolBar.actions[V]);let b={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:_S(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 $g(b,n,[],[],[],c),l},"exportListPage"),wg=r((e,t,n,i=!1)=>{let o=new pi,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return gN(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),HS=r((e,t,n=!1)=>wg(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),mN=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Oc,e);o.settings=Object.assign(new ha,o.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=ei(i.manifest,p);if(((a=e.settings)==null?void 0:a[l])!==void 0)f[l]=e.settings[l];else{let u=ei(i.manifest,p);((s=e.settings)==null?void 0:s[l])!==void 0?u[l]=e.settings[l]:l in u&&(delete u[l],gi(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=NS(e.home,e.pages,i.manifest),wS(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),GS=r((e,t)=>{if(e[$.SchemaType.ListReport])return wg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return BS(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return mN(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return HS(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),Mg=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return wg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return BS(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return HS(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function yN(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:l,logger:c}=n[Z.SchemaType.ListReport];t=Vg(i,o,a,s,l,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ObjectPage];t=Lg(i,o,a,s,l,c)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=ns(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.AnalyticalListPage];t=Ng(i,o,a,s,l,c)}}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:l}=n[Z.SchemaType.ListReport];t=Ic(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:l,fragments:c}=n[Z.SchemaType.ObjectPage];t=gd(i,o,a,s,l,c)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.AnalyticalListPage];t=Ic(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.FreestylePage];t=md(Z.TemplateType.FreestylePageV4,i,a,l,o,s)}}return t}r(yN,"generateSchema");function hN(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=FS(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=GS(i,n)}return t}r(hN,"exportConfig");function bN(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=jg(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Mg(i,n)}return t}r(bN,"exportConfigEntityByPath");function TN(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=jg(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Mg(i,n,!0)}return t}r(TN,"deleteConfigEntityByPath");function vN(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=yc(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Tc(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Pc(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=hc(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Io(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Xc(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Io(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(vN,"importConfig");async function SN(e){return Ig(e)}r(SN,"importProject");async function PN(e){return xg(e)}r(PN,"importProjectSchema");function CN(){return{version:"18",moduleVersion:UT.version}}r(CN,"getApiVersion");var un=require("path"),Ui=require("fs");var Ea=r(async e=>new Promise((t,n)=>{(0,Ui.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),AN=r(async e=>JSON.parse(await Ea(e)),"readJSON"),Ug=r(async e=>new Promise((t,n)=>{(0,Ui.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),EN=r(async e=>new Promise(t=>{(0,Ui.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),WS=r(async e=>new Promise(t=>{(0,Ui.exists)(e,n=>{t(n)})}),"resourceExists"),xN=r(async e=>AN((0,un.join)(e,"manifest.json")),"getManifest"),QS=r(async e=>{let t=[],n=(0,un.join)(e,"changes");if(!await WS(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Ug(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await Ea((0,un.join)(n,a)));return t},"getChanges"),IN=r(async e=>{let t=[],n=(0,un.join)(e,"ext","fragments");if(!await WS(n))return t;let i=await Ug(n);for(let o of i){let a=(0,un.join)(n,o),s=await Ea(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),ON=r(async(e,t)=>{var o,a,s,l,c,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,un.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await Ea(m)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.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,un.join)(t,i[m].settings.localUri);n.push({dataSourceUri:b,fileContent:await Ea(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 v=(0,un.join)(t,b.settings.localUri);n.push({dataSourceUri:v,fileContent:await Ea(v)})}}return n},"getAnnotations"),FN=r(async e=>{let t=(0,un.basename)(e),n=(0,un.join)(e,"webapp"),i=await xN(n),o=await ON(i,n),a=await QS(n),s=await IN(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");_i(Xt,U(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
88
+ `}),Iv(j)}r(Xe,"initI18n");var ke=U(B());function To(e,t,n){var o;let i;for(let a in e){let s=e[a];if(Yn((o=s.component)==null?void 0:o.name)===ke.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=To(s.pages,t,n),i))return n.unshift(a),i}}r(To,"findObjectPageV2");function da(e,t){var n;for(let i in e){let o=e[i];if(Yn((n=o.component)==null?void 0:n.name)===ke.PageTypeV2.ListReport)return t.push(i),o}}r(da,"findListReportPageV2");function ga(e){if(!e.manifest[ke.ManifestSection.generic]){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}let t=e.manifest[ke.ManifestSection.generic].pages;if(!t){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}return t}r(ga,"getV2Pages");function ma(e,t,n){var i;if(!e){k(t,{severity:ke.LogSeverity.Error,message:j.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;k(t,{severity:ke.LogSeverity.Error,message:j.t("NOENTITYSET",{pageName:o}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}}r(ma,"checkV2Page");function ya(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),Yn((i=a.component)==null?void 0:i.name)===ke.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:ke.LogSeverity.Error,message:j.t("NOALP"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}r(ya,"findAnalyticalListPage");function qu(e,t){let n=e.split("|");return ke.v2.SectionPosition[n[0]]&&n[1]===t}r(qu,"isAssociatedCustomSection");function Lv(e,t){let n=ft(e,`sap.ui5/extends/extensions/${ke.v2.SAPUI5_VIEW_EXTENSION}/${ke.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)qu(o,t)&&(i[o]=n[o]);return i}r(Lv,"findCustomSectionExtensions");function bI(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(bI,"removeEmptySettingsOfFooter");function TI(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(TI,"removeEmptySettingsOfFilterBar");function vI(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(vI,"removeEmptySettingsOfToolBar");function gc(e){vI(e),TI(e),bI(e)}r(gc,"removeEmptySettings");var zu={};Do(zu,{AnalyticalListPage:()=>sn,ListReport:()=>Pn,ObjectPage:()=>bt,OverviewPage:()=>Qe,exportFilterSettings:()=>Dv,importDateSettingsOVP:()=>Nv,importFilterSettings:()=>Vv});var mc=U(B());var sn=class{};r(sn,"AnalyticalListPage"),d([g({flex:{controlId:Bs,controlType:r(()=>mc.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],sn.prototype,"fitContent",2),d([_e("table")],sn.prototype,"table",2),d([_e("template::SmartFilterBar")],sn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],sn.prototype,"chart",2),d([_e("analyticalListFooter")],sn.prototype,"footer",2),sn=d([tn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:mc.v2.FE_TEMPLATE_V2_ALP})],sn);var xr=U(B());var Pn=class{};r(Pn,"ListReport"),d([g({flex:{controlId:Bs,controlType:r(()=>xr.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],Pn.prototype,"fitContent",2),d([_e("listReportFilter")],Pn.prototype,"filterBar",2),d([_e("listReport")],Pn.prototype,"table",2),d([_e("listReportFooter")],Pn.prototype,"footer",2),Pn=d([tn({id:xr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:xr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Pn);var Xu=U(B());var bt=class{};r(bt,"ObjectPage"),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.0"})],bt.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.1"})],bt.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"})],bt.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.0"})],bt.prototype,"navToListOnSave",2),d([_e("header")],bt.prototype,"header",2),d([_e("sections")],bt.prototype,"sections",2),d([_e("layout")],bt.prototype,"layout",2),d([g({manifest:{path:r(t=>dl(t),"path")}}),T({since:"1.77.0"})],bt.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Nt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),T({since:"1.78.0"})],bt.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Nt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Hi}}),T({since:"1.71.0"})],bt.prototype,"globalTableSettings",2),bt=d([tn({id:Xu.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Xu.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],bt);function SI(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(SI,"importDateSettingsFieldsOVP");function Nv(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&&SI(e,t),t}r(Nv,"importDateSettingsOVP");function Vv(e){let t={};return t.dateSettings=Nv(e.filterSettings),t}r(Vv,"importFilterSettings");function PI(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(PI,"exportFilterFields");function Dv(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&&PI(t,n,e))}r(Dv,"exportFilterSettings");var Qe=class{};r(Qe,"OverviewPage"),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>et(),"path"),import:Vv,export:Dv}}),T({since:"1.80.0"})],Qe.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"resizableLayout",2),Qe=d([tn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Qe);var Yu=class Yu{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(Yu,"MetadataFactory");var ha=Yu;var mt=U(B());var CI={},AI={Table:ro,ResponsiveTableWithMultiSelect:ro,ResponsiveTableWithInlineDelete:ro},EI={[mt.v2.CardSettingsType.listCardSettings]:ia,[mt.v2.CardSettingsType.listCardSettingsv4]:ia,[mt.v2.CardSettingsType.analyticalCardSettings]:oa,[mt.v2.CardSettingsType.analyticalCardSettingsv4]:oa,[mt.v2.CardSettingsType.stackCardSettings]:Xa,[mt.v2.CardSettingsType.linkListCardSettings]:za,[mt.v2.CardSettingsType.tableCardSettings]:aa,[mt.v2.CardSettingsType.tableCardSettingsv4]:aa},xI={[mt.SAPUI5_VIEW_CLASS]:vr,[mt.SAPUI5_FRAGMENT_CLASS]:Tr,Table:bo,ObjectPageResponsiveTableWithMultiSelect:bo,ObjectPageResponsiveTableWithInlineDelete:bo},OI={[mt.PageTypeV2.AnalyticalListPage]:CI,[mt.PageTypeV2.ListReport]:AI,[mt.PageTypeV2.ObjectPage]:xI,[mt.PageTypeV2.OverviewPage]:EI},Zu=class Zu extends ha{constructor(){super(Wu,zu,OI)}};r(Zu,"MetadataInstanceFactoryV2");var Dt=Zu;function II(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),st(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 l=s;e.filterBar.selectionFields[l]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),st(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,o,n.logger,l)}}}r(II,"importFilterBar");function ed(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var f,p,u;let l=mn(s),c={controlId:l.controlId,propertyId:(f=l.content)==null?void 0:f.property,newValue:(p=l.content)!=null&&p.newBinding?l.content.newBinding:(u=l.content)==null?void 0:u.newValue,controlType:l.controlType,creation:l.creation};cc(n.table,c,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"&&fc(e,n,s)}r(ed,"importFlexChangesOfTableAndColumns");function FI(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Ji]&&t[qi]&&(a=JSON.parse(JSON.stringify(t[Ji])),a.properties={...a.properties,...t[qi].properties}),st(n.table,i.manifest,a,o,i.logger),ed(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&k(i.logger,{severity:He.LogSeverity.Error,message:j.t("NOLINEITEMS")})}r(FI,"importTable");function LI(e,t,n,i){let o=e.jsonSchema.definitions,a=uc(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),dc(t,n,o),FI(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),st(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let l in o[He.DefinitionName.ActionsLR].properties){let c=Di(l);t.table.toolBar.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),st(t.table.toolBar.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}II(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=Di(l);t.footer.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),st(t.footer.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(LI,"addSettings");function yc(e){if(Xe(),!ga(e))return;let n=new Dt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=da(e.manifest[He.ManifestSection.generic].pages,o);if(ma(a,e.logger,a==null?void 0:a.entitySet),!!a)return LI(e,i,n,o[0]),e.flex.forEach(s=>{mn(s)&&pc(i,s,e.jsonSchema,e.logger)}),ua(i,e,a,He.PageTypeV2.ListReport),gc(i),i}r(yc,"createListReportConfig");var De=U(B());function NI(e,t,n,i){var f,p;let o=uc(e.manifest,i),a=e.jsonSchema.definitions;dc(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(st(t.table,e.manifest,s,i,e.logger),ed(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),st(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=Di(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),st(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),st(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"),st(t.filterBar.selectionFields[b],e.manifest,a.SelectionFieldDateSettings,i,e.logger,b)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),st(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[De.DefinitionName.FooterActionsLR];if(l)for(let u in l.properties){let m=Di(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),st(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(p=(f=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:f.settings)==null?void 0:p.keyPerformanceIndicators;c&&Object.keys(c).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),st(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(NI,"addSettings");function hc(e){if(Xe(),!ga(e))return;let n=new Dt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=ya(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(ma(a,e.logger,a==null?void 0:a.entitySet),!!a)return NI(e,i,n,o[0]),e.flex.forEach(s=>{mn(s)&&pc(i,s,e.jsonSchema,e.logger)}),ua(i,e,a,De.PageTypeV2.AnalyticalListPage),gc(i),i}r(hc,"createAnalyticalListPageConfig");var W=U(B());var Or=require("@sap-ux/vocabularies-types/vocabularies/UI");var DI=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function jI(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(`${Or.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Or.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(jI,"getSingleSelectorIdPart");function RI(e){let t,n=e.split(":::");if(n.length===1)t=jI(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(`::${Or.UIAnnotationTerms.LineItem}`,`/@${Or.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(RI,"getFacetID");function $I(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,f;try{let p=mn(s),u=p&&((l=p.controlId)==null?void 0:l.split("--"))||[];if(p&&((c=u[0])!=null&&c.includes(W.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((f=u[0])!=null&&f.endsWith(t))){let m=u[1].replace(/:3a:3a/g,"::");o.exec(m)!==null&&(m=m.split("template:::TableColumn:::")[1]);let b=RI(m);m=Ku(m).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${m}::${p.content.property}`]={controlId:m,propertyId:p.content.property,facetId:b,newValue:p.content.newBinding!==void 0?p.content.newBinding:p.content.newValue,controlType:p.controlType,creation:p.creation}}}catch(p){k(n,{severity:W.LogSeverity.Error,message:j.t("FLEXERROR")},...p)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}r($I,"prepareFlexChanges");var wI=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(I,"");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(I,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function MI(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&Qu(i,t,o)}r(MI,"addFlexChangeToColumns");function jv(e,t,n,i,o,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,W.VOCWITHSLASH)];for(let c in e){let f=e[c],p=f.propertyId===t,u=t==="columns"&&f.controlType===W.ControlType.TableColumn;(p||u)&&s.indexOf(f==null?void 0:f.facetId)>-1&&(a?MI(a,f,o.properties,n):cc(n,f,o))}}r(jv,"importFlexChangesOfTable");function UI(e,t){return e.facetId==="template"&&t}r(UI,"isStandardActionFlexChange");var Rv=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 kI(e,t,n,i,o,a){var L;let s=!1,l=!1;a?(s=l=n.test(t.controlId),o&&(s=l&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let c=t.controlId.split("::"),f=t.controlType===W.ControlType.GroupElement&&l,p=((L=t.facetId)==null?void 0:L.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&Rv(c,o.split("::"))&&s,m=e.title&&Rv(c,e.title.split("::"),!0),b=!t.facetId&&DI.includes(t.controlType),v=UI(t,l);return f||p||u||m||b||v}r(kI,"matchSelector");function _I(e,t,n,i,o,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${o}`);for(let f in n){let p=n[f];if(p.propertyId!==i||p.controlType!==((c=e.properties[p.propertyId])==null?void 0:c[W.SchemaTag.controlType]))continue;kI(e,p,s,l,o,a)&&(t[i]=p.newValue)}}r(_I,"importFlexChanges");function BI(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:Ws(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(BI,"checkDeprecatedProperties");function HI(e,t,n,i,o,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,f;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),f=ft(n.manifest,c),Object.values(f).length===0&&(c=e.manifest.path(t,{},l),f=ft(n.manifest,c))):(c=e.manifest.path(t,{},l),f=ft(n.manifest,c));let p=e.manifest.import;if(p&&typeof p=="function"){let u=p(f,s==null?void 0:s.id);u!==void 0&&(i[o]=u)}else{let u=e.manifest.key||o;u in f&&(i[o]=f[u])}return BI(f,a,n,c),f}r(HI,"importManifestSetting");function jt(e,t,n,i,o,a){var c,f;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let p in n.properties||n){let u=dt(t,p);if(p==="columns"||u!=null&&u.flex)if((c=o==null?void 0:o.type)!=null&&c.startsWith("ObjectPageSectionTableV2")||(f=o==null?void 0:o.type)!=null&&f.startsWith("ObjectPageSubSectionTableV2"))if(p==="columns"){let m=n.properties[p].$ref.split(I)[1],b=e.jsonSchema.definitions[m];jv(i.flexChanges,p,t,o,b,l)}else jv(i.flexChanges,p,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);_I(n,t,i.flexChanges,p,m,a)}else u!=null&&u.manifest&&HI(u,i.pageKeys,e,t,p,s,o)}}r(jt,"transferSettingsAndFlexChanges");function wv(e,t,n,i){let o=_t(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=`${hT}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${Ys}${o}`;break}}return o.replace(/@/g,"")}r(wv,"getActionId");function GI(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(I)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],c=wv(s,a,"","");e.actions[a]=i.factory.createInstance(W.PageTypeV2.ObjectPage,l,{}),jt(n,e[W.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}r(GI,"fillStandardActions");function bc(e,t,n,i,o,a){var l;n[W.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let f in t){let p=Di(f),u=wv(s,p,o,a);u&&(n[W.PropertyName.actions][p]=i.factory.createInstance(W.PageTypeV2.ObjectPage,s),jt(e,n[W.PropertyName.actions][p],e.jsonSchema.definitions[s],i,c,u)),(l=n[W.PropertyName.actions])!=null&&l[p]&&Object.keys(n[W.PropertyName.actions][p]).length===0&&delete n[W.PropertyName.actions][p]}}GI(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(bc,"fillActions");function WI(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"Field");let c=(s=t.title)!=null&&s.includes(W.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;jt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[W.DefinitionName.Field],o,{},c),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(WI,"fillFields");function QI(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(QI,"prepareTableSchema");function KI(e,t,n,i,o){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let f=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",p=o.factory.createInstance(W.PageTypeV2.ObjectPage,`ObjectPage${f}`,{toolBar:{}});i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][W.PropertyName.table]=p;let u=e.jsonSchema.definitions,m=QI(f,t,u);jt(e,i[t.id],t.schema,o,{title:t.title}),jt(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 v=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");bc(e,b.properties,i[t.id][W.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",v)}Object.keys(i[t.id][W.PropertyName.table].toolBar).length===0&&delete i[t.id][W.PropertyName.table].toolBar}}r(KI,"fillTableInConfig");function JI(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Ks(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};ua(n[t],e,i,W.PageTypeV2.ObjectPage,l,o)}}r(JI,"fillCustomColumnsInConfig");function qI(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)&&(jt(e,i[t.id],t.schema,o,{title:t.title}),jt(e,i[t.id][W.PropertyName.chart],e.jsonSchema.definitions[W.DefinitionName.ObjectPageChart],o,t))}r(qI,"fillChartSection");function XI(e,t,n,i){n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&jt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(XI,"fillHeaderSection");function zI(e,t,n,i){var c;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&jt(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"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&bc(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${o}`];l!=null&&l.properties&&WI(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(zI,"fillFormSection");function $v(e,t,n,i,o){var l;i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&jt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,td(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r($v,"fillSubSection");function td(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),f={id:c,type:wI(t[l]),schema:t[l],title:zf(t[l],e.jsonSchema)};if(f.schema.$ref&&f.type)switch(f.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{f.schema=a[`${f.type}<${l}>`],KI(e,f,n,i,o),JI(e,c,i,o.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{f.schema=a[`${f.type}<${l}>`],qI(e,f,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{f.schema=a[`${f.type}<${l}>`],zI(e,f,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{f.schema=a[`${f.type}<${l}>`],$v(e,f,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{f.schema=a[`${f.type}<${l}>`],XI(e,f,i,o);break}}else(s=f.schema.properties)!=null&&s.subsections&&(f.schema=a[`${f.type}<${l}>`],$v(e,f,n,i,o))}}r(td,"fillSectionsInConfig");function YI(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"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];jt(o,s,l,n,{id:a}),t.sections.custom.push(s)}}}r(YI,"fillCustomSectionsInConfig");function ZI(e,t){var p,u;let n=t.factory.createPageInstance(W.PageTypeV2.ObjectPage);jt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;jt(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>"];jt(e,n.header,o,t);let a=i[W.DefinitionName.HeaderActions];a&&bc(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&bc(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageLayout"),jt(e,n.layout,i[W.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[W.DefinitionName.HeaderSections];if(l){let m=(p=t.v2Page.component)==null?void 0:p.settings;td(e,l.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[W.DefinitionName.Sections];if(c){let m=(u=t.v2Page.component)==null?void 0:u.settings;td(e,c.properties,m,n.sections,t)}let f=Lv(e.manifest,e.entitySet);return YI(f,n,t,i,e),n}r(ZI,"fillConfig");function Tc(e){Xe();let t=ga(e);if(!t)return;let n=e.entitySet,i=[],o=To(t,e.entitySet,i);if(ma(o,e.logger,n),!o)return;let a=$I(e.flex,n),s=new Dt;return ZI(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Tc,"createObjectPageConfigV2");function Sc(e,t){var n,i;return(n=e.component)!=null&&n.name?Go(Yn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Sc,"generateId");function eF(e,t,n,i){e.navigation={};let o=Mv(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Sc(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(eF,"getPageConfigsAndNavigations");function Mv(e,t){var i;let n={};for(let o in e){let a=e[o],s=Sc(a,o);if(!s)continue;let l={pageType:Yn((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let c=Object.keys(t.appSchemas).find(f=>f.includes(s))||Object.keys(t.appSchemas).find(f=>f.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(f=>f.includes(l.pageType));if(c)if(l.pageType===lt.PageTypeV2.ListReport){let f={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=yc(f)}else if(l.pageType===lt.PageTypeV2.AnalyticalListPage){let f={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=hc(f)}else{let f={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Tc(f)}a.pages&&eF(l,a,t,n)}return n}r(Mv,"getPagesAndConfigs");var nd=class nd extends hi{constructor(t){Xe();let n;t.manifest[lt.ManifestSection.generic]?n=t.manifest[lt.ManifestSection.generic].pages:k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOFE"),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}}),n||k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&Sc(n[i],i),a=new Ti,s=Je(lt.SchemaType.Application),l=t.appSchemas[s.filename];st(a,t.manifest,l.definitions.AppSettings,void 0),super(t,o,Mv(n,t),a)}};r(nd,"V2AppProvider");var vc=nd;function Ir(e,t,n){var o,a;let i={};for(let s in e){let l=e[s];if((o=l.component)!=null&&o.name||k(n,{severity:lt.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:lt.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=Sc(l,s);i[c]=l}if(t===lt.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=Ir(l.pages,t,n);for(let f in c)i[f]=c[f]}}return i}r(Ir,"getPages");var So=U(B());var Bn=U(B());var od=U(Ef());var $e=U(B());var tF=["colorPalette","tabs"];function nF(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(nF,"createCard");function Uv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Uv(e,n.join("|"))}return t}r(Uv,"findAvailableId");function Fr(e,t,n,i,o,a,s){i!=null&&i.properties&&id(e,t,n,i.properties,o,a,s)}r(Fr,"transferManifestEntriesOVP");function vo(e,t,n,i){return e.createInstance($e.PageTypeV2.OverviewPage,i,n,t)}r(vo,"assignReflectMetadataRules");function iF(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(I),o=e.appSchema.definitions[i[1]];t=vo(e.factory,i[1],t,"CustomCard"),Fr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(iF,"processAnyOfDefinitionsOfOVP");function oF(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!tF.includes(i)?t[i]=(0,od.default)(t[i]||{},o||{},{arrayMerge:qf}):t[i]=o}r(oF,"checkSyncRuleForExport");function aF(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),l=ft(i.manifest,s);if(n in $e.v2.CardSettingsType||n==="settings")l.settings=(0,od.default)(l.settings||{},o||{},{arrayMerge:qf});else if(o!==void 0){let c=e.manifest.export;oF(c,l,a,n,o)}else l[n]!==void 0&&delete l[n]}r(aF,"transferToManifest");function rF(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values($e.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=vo(e.factory,i[0],e.currentObject[t],"CustomCard"),nF(t,e.exportResults.manifest[$e.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,Fr(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[$e.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[$e.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated)})}r(rF,"transferCards");function sF(e,t){if(t==="cards")rF(e);else{let n=Rn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,$e.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(I);e.currentObject=vo(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Fr(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(sF,"exportOfObject");function id(e,t,n,i,o,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Bo(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],f=dt(e,l),p={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(p.currentObject=e[a[a.length-2]],c=iF(p)):c&&typeof c=="object"&&i[l]&&sF(p,l),f!=null&&f.manifest&&aF(f,a,l,t,c,e)}}r(id,"processProperties");function lF(e,t,n,i,o,a,s){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,o),f=gT(a,n,e.ui5Version,s,c),p=JSON.parse(JSON.stringify(e.exportResults.manifest));p["sap.app"].id=e.appId;let u=n.flex.createFlexChange(f,p);e.exportResults.flexChanges.find(b=>{let v=!1,L=JSON.parse(b);L={content:L.content,selector:L.selector};let N=JSON.parse(u);return N={content:N.content,selector:N.selector},JSON.stringify(L)===JSON.stringify(N)&&(v=!0),v})||e.exportResults.flexChanges.push(u)}r(lF,"evaluateFlexRule");function cF(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=$e.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=$e.ChangeIndicator.Updated}}r(cF,"exportConfigValueToManifest");function fF(e,t,n,i,o){let a=ft(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)cF(e,n,a,o,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,gi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(fF,"evaluateManifestRule");function pF(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($e.FACETTITLEPREFIX)?o.split($e.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(pF,"getManifestPathOfSections");function uF(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(uF,"getManifestPathOfTable");function dF(e,t,n,i,o){let a;return t[0]===$e.PropertyName.sections?a=pF(t,a,n,e,o):t[0]===$e.PropertyName.table?a=uF(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(dF,"getManifestPath");function gF(e,t,n,i,o,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)lF(e,i,t,o,a,n,s);else if(t.manifest){let c=dF(e,i,t,n,a);fF(e,c,t,s,n)}}r(gF,"evaluateExportRule");function mF(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(Cl(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith($e.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace($e.ViewTemplateType.ResponsiveTableColumnsExtension,$e.ViewTemplateType.ResponsiveTableCellsExtension);Cl(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}r(mF,"deleteObsoleteColumn");function yF(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=kT(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,mF(o,e,n))}r(yF,"deleteObsoleteColumnsFromFragment");function hF(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:l,viewTemplateType:c}=Al(n,i,s.tabKey||o,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}r(hF,"clusterConfigColumnsByPath");function kv(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 l in $e.v2.TableColumnExtensionTypeV2){let{path:c}=Al(e.v2Page,s,o,l);if(!c)continue;let f={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:l,appId:e.appId};try{yF(f)}catch(p){e.logger.error(p.message)}}if(t){let l=hF(t,n,e.v2Page,s,o);for(let c in l)jp(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}r(kv,"transferColumnExtensions");function bF(e,t,n,i,o,a){let s=[],l=n.split("|")[1];if(!t)return;for(let f of t){let p=Uv(s,[f.relativePosition,l,f.relatedFacet].join("|"));s.push(p)}for(let f=0;f<s.length;f++){let u=a.anyOf.find(b=>{var v;return(v=b.$ref)==null?void 0:v.includes(t[f].constructor.name)}).$ref.split(I),m=e.appSchema.definitions[u[u.length-1]];ji(e,t[f],i,[...o,s[f]],m)}let c=ft(e.exportResults.manifest,sp());for(let f in c)qu(f,l)&&!s.includes(f)&&delete c[f]}r(bF,"transferManifestExtensions");function TF(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===$e.PropertyName.table){n=e[i-1];break}return ut(n,t)}r(TF,"getSectionId");function vF(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=Rn(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ji(t,c.configObject,o,[...a,i],c.targetDefinition,l)})}r(vF,"transferIndexTable");function SF(e,t,n,i,o,a){let s,l=Ks(e.$ref);l&&(s={target:l,key:TF(t,n)}),kv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(SF,"transferCustomColumns");function PF(e,t,n,i,o,a,s){e.anyOf.forEach(l=>{let c=Rn(t.appSchema,n,i,l,o,t.factory,t.pageType);c&&ji(t,c.configObject,a,[...s,o],c.targetDefinition,c.title)})}r(PF,"handleAnyOfDefinitions");function CF(e,t,n,i,o,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")bF(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],l==null?void 0:l.items);else if(a&&o==="custom"){SF(l,t,s,e,n,a);return}else a?ji(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):l.anyOf&&PF(l,e,s,n==null?void 0:n[o],o,i,t)}r(CF,"transferComplexProperty");function ji(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let l in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Bo(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&Hs(t,l),f=c?[...n,c]:n,p=dt(t,l),u=e.propertyDefinition=o.properties[l],m=e.nextDefinition=Rn(e.appSchema,a,s,u,l,e.factory,e.pageType);if(gF(e,p,t,[...i],f,a,l),vF(s,e,a,l,f,i),s===void 0||typeof s=="object")CF(e,i,t,f,l,m,a);else if((u==null?void 0:u.$ref)===I+"TableCustomColumns"){kv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(ji,"transferManifestEntriesAndFlexChange");function _v(e,t,n,i,o,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=vo(o,i,n[i],s),a.push(i),ad(o,n[i],e,l.properties,a)}r(_v,"transferSettingsOfRef");function AF(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(I);_v(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${I}${Bn.v2.cardTemplateSettingsMap[e.template]}`.split(I);_v(i,l,e,t,o,a)}}r(AF,"processPropertiesOfObject");function EF(e,t,n,i,o,a){let s=dt(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=ft(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{Ko(s,c,t,e)}catch(f){k(i.logger,{severity:Bn.LogSeverity.Error,message:j.t("XMLPARSEFAILURE",{error:qb(f)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&AF(e,t,o,i,a,n)}r(EF,"processOvpProperty");function ad(e,t,n,i,o){for(let a in i)EF(t,a,o,n,i,e)}r(ad,"processOvpProperties");function xF(e,t,n){ad(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Bn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[Bn.ManifestSection.ovp].cards[i].template,a=Bn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=vo(n,a,{},"CustomCard"),e.cards=vo(n,a,e.cards,"CustomCard"),ad(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(xF,"addSettings");function Pc(e){let t=new Dt,n=t.createPageInstance(Bn.PageTypeV2.OverviewPage);return e.jsonSchema&&xF(n,e,t),n}r(Pc,"createOverviewPageConfig");var rd=class rd extends hi{constructor(t){let n={},i=t.manifest[So.ManifestSection.ovp],o=new Ti,a=Je(So.SchemaType.Application);st(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(p=>p.includes(So.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},c={pageType:So.PageTypeV2.OverviewPage,config:Pc(l),entitySet:i.globalFilterEntitySet},f=Go(c.pageType,c.entitySet);n[f]=c,super(t,f,n,o)}};r(rd,"V2OvpProvider");var Cc=rd;var Ac=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=U(B());function OF(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(OF,"sortByPropertyIndex");function IF(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(OF())}r(IF,"sortPropertiesRecords");function Bv(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(Bv,"getExtensionText");function sd(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(sd,"addExtensionToSortedArray");function FF(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var c,f,p;return((c=l.position)==null?void 0:c.placement)==="Before"&&((f=l.position)==null?void 0:f.anchor)===((p=n.position)==null?void 0:p.anchor)})===-1&&(i.splice(i.length,0,[t,o]),delete e[t])}r(FF,"addRemainingTargetByBefore");function ld(e,t,n,i,o=!1){var c,f;let a=Object.entries(e).length,s=r((p,u)=>{let m=Bv(p);return{$ref:`${I}${t}`,description:m,keys:[{name:G.SchemaKeyName.key,value:`${u}`}]}},"getExtensionDetails");for(let p of Object.keys(e)){let u=e[p],m=s(u,p);if((c=u.position)!=null&&c.anchor&&((f=u.position)!=null&&f.placement)){let b=n.findIndex(v=>v[0]===u.position.anchor);b>-1?(sd(u,n,b,p,m),delete e[p]):p===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:Xt.LogSeverity.Error,message:j.t("INVALIDANCHOR",{id:p,anchor:u.position.anchor}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):o&&FF(e,p,u,n,m)}else o&&(sd(u,n,n.length,p,m),delete e[p])}let l=Object.entries(e).length;l>0&&a!==l?ld(e,t,n,i):l>0&&ld(e,t,n,i,!0)}r(ld,"adjustCustomExtReferringToCustomExt");function LF(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(LF,"getExtensionAnchor");function NF(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(l=>l[0]===a);a&&!s&&n.push(o)}return n}r(NF,"getLocalExtensionsToSkip");function VF(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(VF,"getExtensionIndex");function DF(e,t,n,i,o){k(e,{severity:Xt.LogSeverity.Error,message:j.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(DF,"handleInvalidExtension");function jF(e,t,n,i="template",o){let a=[...t],s={...e},l=NF(s,a);if(!s)return[];for(let c of Object.keys(s)){let f=s[c];if(l!=null&&l.includes(c))continue;let p={$ref:`${I}${n}`,description:Bv(f)||c,keys:[{name:G.SchemaKeyName.key,value:`${c}`}],actionType:G.ActionType.Custom};if(typeof f!="object"){DF(o,c,t,p,s);continue}if(!(i in f)){delete s[c];continue}let u=LF(f,a);if(u){let m=VF(f,e,t,u);m>-1&&(sd(f,t,m,c,p),delete s[c])}else t.push([c,p]),delete s[c]}return Object.keys(s).length>0&&ld(s,n,t,o),t}r(jF,"addExtensionToArray");function RF(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(RF,"determineActionDefinitionName");function $F(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}=zi(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r($F,"addTargetAndKeysOfAction");function wF(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=RF(e),l=Et(i,e.entityType),c=i.$Type.split(`${G.UIVOCABULARY}.`)[1],f=typeof i.Action=="string"?i.Action:i.Action.path,p=Js(f),u=t.properties[`${c}::${p}`]={description:l};if(a?u.$ref=ht(s,Ie(p)):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=yn(i),$F(u,i,f),u[G.SchemaTag.annotationType]=i.$Type,a){let m=gt(s,Ie(p),e.appSchema);m[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(wF,"addActionRecordToSchema");function MF(e,t,n,i,o){var c;let a=t.lineItemId,s=t.lineItemRecord;if((c=s.Target)!=null&&c.value){let f=`@${kt(G.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(f,"@")}let l=ni(s).replace(/\//g,"::");if(l){let f=o;f||(f=e.appSchema.definitions[a]);let p=f.properties,u={description:Et(s,e.entityType)};o?(u.properties={},u.type="object",u.isViewNode=!0):u.$ref=I+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]=yn(s),p[l]=u,ol(s,p,l)}}r(MF,"addLineItemRecordToSchema");function UF(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Ac.UIAnnotationTypes.DataFieldForAction||s.$Type===Ac.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))wF(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},c=s.$Type===Ac.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;MF(e,l,c,a,i)}a++})}r(UF,"appendLineItemsToSchema");function Po(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=nl(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);UF(e,n,i,void 0,t)}r(Po,"addLineItemsTypeToSchema");function Ec(e,t,n,i){var a,s;let o;if(n){for(let l in e)if(((s=(a=e[l].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(e[l].name===t||t===G.v4.FE_TEMPLATE_V4_ALP&&e[l].name===G.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[l];break}}return o}r(Ec,"findPageV4");function Hv(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=`${I}${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=`${I}${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(Hv,"alignSchemaWithTemplateType");function Gv(e,t,n,i,o,a){var f,p,u,m;let s=IF(t),l=new Map;if(s=s.map(b=>{let v=ip(e,b[1],b[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return l.set(v.const,b[0]),[v.const,b[1]]}),!o&&i.includes(G.DefinitionName.ObjectPageCustomSectionFragment)){let b=(m=(u=(p=(f=n.options)==null?void 0:f.settings)==null?void 0:p.content)==null?void 0:u.body)==null?void 0:m.sections;b&&(s=jF(b,s,i,"name",a))}for(let b=0;b<s.length;b++)s[b][1][G.SchemaTag.propertyIndex]=b;let c={};s.forEach(([b,v])=>{b=l.get(b)||b,c[b]=v}),t.properties=c}r(Gv,"addCustomSectionDefinition");var E=U(B()),fd=require("@sap-ux/vocabularies-types/vocabularies/UI");var kF=["filterBar","chart","table"],cd="@UI.LineItem";function _F(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=Ut(e.fullyQualifiedName,fd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var f,p;let s=a.value,l="SelectionField::"+Ie(a.value);a.type==="PropertyPath"&&(s=Us(a,e)),i.properties[l]={$ref:I+l},i.properties[l][E.SchemaTag.propertyIndex]=o;let c=yn(a);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...c&&{dataType:c}},t.definitions[l][E.SchemaTag.isViewNode]=!0,t.definitions[l][E.SchemaTag.keys]=[{name:E.SchemaKeyName.value,value:`${a.value}`}],((f=a.$target)==null?void 0:f.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(p=a.$target)!=null&&p.fullyQualifiedName&&(t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][E.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[l][E.SchemaTag.annotationPath]=`${i[E.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(_F,"addSelectionFields");function Qv(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 l=0;s.Actions.forEach(c=>{let f=Ie(`${E.DefinitionName.ChartToolBarAction}<${c.Action}>`),p=Et(c,o),u=c.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${c.Action}`]={$ref:I+f,description:p};m[E.SchemaTag.propertyIndex]=l,m[E.SchemaTag.annotationType]=c.$Type,m[E.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}`,e.definitions[f]=JSON.parse(JSON.stringify(e.definitions[E.DefinitionName.ViewToolBarAction])),e.definitions[f].properties={},e.definitions[f][E.SchemaTag.annotationPath]=c.fullyQualifiedName,l++})}}r(Qv,"defineActions");function Kv(e,t,n,i){var l;let o,a,s;return e&&(n==="primary"?a=e.find(c=>c.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(c=>c.value.indexOf(E.FacetBase.LineItem)>-1):i?a=e.find(c=>c.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?Qo(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",E.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(Kv,"findTheRightVisualization");function BF(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(BF,"analyzeChartAnnotation");function HF(e,t,n,i,o,a){var c;let{visualization:s,targetAnnotation:l}=Kv((c=e.PresentationVariant)==null?void 0:c.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:j.t("NOVISUALIZATIONS")}),s=cd,l=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}r(HF,"analyzeSPVforView");function xc(e,t,n,i,o){let a,s,l=e==null?void 0:e.split(`${E.UIVOCABULARY}.`)[1],c=l&&(t==null?void 0:t[l]);if(!c)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=c.Text,a=c.fullyQualifiedName.split(E.UIVOCABULARYALPHADOT)[0],l.startsWith("PresentationVariant")){let{visualization:f,targetAnnotation:p}=Kv(c.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:f,targetAnnotation:p,namespace:a,title:s}}else{if(l.startsWith("SelectionPresentationVariant"))return HF(c,a,n,i,o,s);if(l.startsWith("SelectionVariant")){let f=cd,p=`/${a}/@${fd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:f,targetAnnotation:p,namespace:a,title:s}}else if(l.startsWith("LineItem")){let f=cd;c.qualifier&&(f+=`#${c.qualifier}`);let p=e.substring(0,1)==="@"?`/${a}/${e}`:`/${a}/@${e}`;return s=s||`Table View (${n})`,{visualization:f,targetAnnotation:p,namespace:a,title:s}}else if(l.startsWith("Chart")){let{visualization:f,targetAnnotation:p,chartTitle:u}=BF(a,e,c,n);return{visualization:f,targetAnnotation:p,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(xc,"analyzeViewAnnotation");function GF(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=`${I}${E.DefinitionName.ALPChart}`,t){let a=t.split(E.UIVOCABULARYDOT)[1],s=i==null?void 0:i[a].fullyQualifiedName.split("@");o[E.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}o[E.SchemaTag.artifactType]=E.ArtifactType.Manifest,o[E.SchemaTag.key]="primary",o[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"primary"}]}r(GF,"addALPChartView");function WF(e,t,n,i,o,a){var N,z,ne,ie,ce,Y,oe,Se;let s=(N=n.entityType)==null?void 0:N.annotations.UI,l=(ie=(ne=(z=t==null?void 0:t[0])==null?void 0:z.primary)==null?void 0:ne[0])==null?void 0:ie[E.SchemaTag.annotationPath],{targetAnnotation:c}=xc(l,s,"primary",void 0,n.logger);GF(e,l,c,s);let f="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=I+f,Qv(e,f,s,c,n.entityType);let{visualization:p,targetAnnotation:u}=xc((oe=(Y=(ce=t==null?void 0:t[0])==null?void 0:ce.secondary)==null?void 0:Y[0])==null?void 0:oe[E.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];p||i?(m.properties.toolBar.$ref=`${I}${E.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:I+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",p?(delete b.properties,b.$ref=`${I}${E.DefinitionName.ALPTable}`):i||(b.properties={}),b[E.SchemaTag.artifactType]=E.ArtifactType.Manifest;let v,L;if(p&&p.indexOf(E.FacetBase.LineItem)>-1?(v=p.split(".")[1],L=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(v=L=i.split(E.UIVOCABULARYDOT)[1]),v){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Se=n.entityType)==null?void 0:Se.annotations.UI[v],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};Po(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let Lt=s[L].fullyQualifiedName.split("@");b[E.SchemaTag.annotationPath]=`/${Lt[0]}/@${Lt[1]}`,b[E.SchemaTag.key]="secondary",b[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(WF,"addALPViews");function QF(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=`${I}${i}`;let o=`${E.DefinitionName.Actions}<${e.viewKey}>`;return Qv(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${I}${o}`,n}r(QF,"addViewChartDefinitions");function KF(e,t,n,i,o,a){let s=QF(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 l=`Chart View (key: ${o})`;i.properties[o]={$ref:`${I}${s}`,description:a||l,title:l}}r(KF,"addViewChart");function Wv(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(Wv,"createEmptyProperties");function JF(e,t,n,i,o){var m;let a=`${E.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${E.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=gt(E.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[E.SchemaTag.isViewNode],l[E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Zi(l.properties.toolBar,E.DefinitionName.ToolBar,s);let c=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${I}${a}`,description:e.title||c,title:c},Zi(l.properties.columns,s),l.properties.annotationPath[E.SchemaTag.hidden]=!0,l.properties.index[E.SchemaTag.hidden]=!0,l.properties.entitySet[E.SchemaTag.hidden]=!0;let f=(n==null?void 0:n.split(".")[1])||i.split(E.UIVOCABULARYDOT)[1],p={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[f],entityType:e.targetEntityType,oDataServiceAVT:o.serviceAVT,lineItemId:s,entitySet:l.entitySet},u=E.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let v=b[E.DefinitionName.ViewTableColumn];b[u]=Wv(v);let L=E.DefinitionName.ViewTableColumnBasicAction,N=`${E.DefinitionName.ViewTableColumnAction}`;b[L]=Wv(b[N])}Po(p,u)}r(JF,"addViewLineItems");function qF(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(qF,"addTagsToView");function XF(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(XF,"getTargetEntityType");function zF(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(zF,"handleViewProperties");function YF(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)JF(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&zF(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)KF(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${I}${E.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${I}${E.DefinitionName.LRTableView}`}}}r(YF,"addLRViewParts");function ZF(e,t,n,i,o){var l;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 c of t){if(!c[E.SchemaTag.key])continue;let f,p=XF(n.entitySet,c,n),u=p==null?void 0:p.annotations.UI,{visualization:m,targetAnnotation:b,namespace:v,title:L}=xc(c==null?void 0:c[E.SchemaTag.annotationPath],u,c[E.SchemaTag.key],void 0,n.logger);c.entitySet&&(f=(l=n.entityType.navigationProperties.find(ne=>ne.targetTypeName===v))==null?void 0:l.name);let N=Ie(c[E.SchemaTag.key]),z={viewKey:N,appSchema:e,targetAnnotation:b,navPropName:f,targetEntityType:p,title:L,entitySet:c.entitySet};YF(m,s,z,n,i,u,c),qF(s,N,v,c)}}r(ZF,"addLRViews");function eL(e,t,n,i,o,a){var p,u,m,b,v,L,N,z,ne,ie,ce,Y;let s=e.definitions[a],{visualization:l,targetAnnotation:c,namespace:f}=xc(n,(p=t.entityType)==null?void 0:p.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(l){let oe=l.split(".")[1],Se=`${E.DefinitionName.LineItems}OfSPV::${Ie(oe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],Zi(P.properties.toolBar,E.DefinitionName.ToolBar,Se),P[E.SchemaTag.annotationPath]=c,P.properties.columns={},Zi(P.properties.columns,Se),delete s.properties,Zi(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${f}/@${n}`;let Lt=(u=t.entityType)==null?void 0:u.annotations.UI[oe];Lt||k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOTARGET",{target:oe})});let Yt={isObjectPage:!1,appSchema:e,lineItemAnnotation:Lt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Se};Po(Yt)}else{s.properties.toolBar.$ref=`${I}${E.DefinitionName.ToolBarLR}`,Zi(s.properties.columns,E.DefinitionName.LineItems);let oe=(v=(b=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:b[o])==null?void 0:v.LineItem;!oe&&!((z=(N=(L=i.options)==null?void 0:L.settings)==null?void 0:N.views)!=null&&z.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOLINEITEMS")});let Se={isObjectPage:!1,appSchema:e,lineItemAnnotation:oe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};Po(Se),oe&&!((ce=(ie=(ne=i.options)==null?void 0:ne.settings)==null?void 0:ie.views)!=null&&ce.paths)&&(s[E.SchemaTag.annotationPath]=Ut((Y=t.entityType)==null?void 0:Y.fullyQualifiedName,oe.term,oe.qualifier))}}r(eL,"adaptTableDefinition");function tL(e,t,n){var i,o,a,s,l,c,f;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((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((f=(c=t==null?void 0:t.annotations.UI)==null?void 0:c.PresentationVariant)==null?void 0:f.term)}}r(tL,"getDefaultAnnotationPath");function nL(e,t,n,i){var l,c,f,p,u;let o=(f=(c=(l=t.options)==null?void 0:l.settings)==null?void 0:c.views)==null?void 0:f.paths,a=tL(t,n.entityType,n.templateType),s=Hv(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(eL(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],ZF(e,o,n,t,s)):(u=(p=t.options)==null?void 0:p.settings)!=null&&u.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[E.PropertyName.chart][E.SchemaTag.hidden]=!0):n.templateType===E.TemplateType.AnalyticalListPageV4&&WF(e,o,n,a,t,s)}r(nL,"addTableAndViews");function Lr(e,t,n,i){var c,f;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&kt(E.UIVOCABULARY,e.serviceAVT),l=s&&((f=(c=a==null?void 0:a.annotations)==null?void 0:c[s])==null?void 0:f.SelectionFields);if(_F(a,o,l),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,mi(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let p=e.manifest[E.ManifestSection.ui5].routing.targets;if(!p)return k(e.logger,{severity:E.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:E.MANIFESTPATH,range:[E.ManifestSection.generic]}}),o;let u=Ec(p,i,n,e.logger);if(!u)return o;nL(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,$n(o,kF),o}r(Lr,"generateListReportSchemaV4");var Cn=require("@sap-ux/vocabularies-types/vocabularies/UI"),S=U(B());var iL=["header","layout","sections","footer"],oL=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function pd(e,t,n,i,o,a,s){let{actionName:l,namespace:c}=rl(t.item,e),f=ni(t.item),p=t.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Ie(f)}>`,m=i.definitions[u]={type:"object",$ref:`${I}${S.DefinitionName.ObjectPageHeaderAction}`,description:Et(t.item,o)};m[S.SchemaTag.isViewNode]=!0,m[S.SchemaTag.dataType]=yn(t.item),m[S.SchemaTag.propertyIndex]=s,m[S.SchemaTag.keys]=[],t.item[S.SchemaKeyName.semanticObject]&&m[S.SchemaTag.keys].push({name:S.SchemaKeyName.semanticObject,value:t.item[S.SchemaKeyName.semanticObject]}),m[S.SchemaTag.keys].push({name:S.SchemaKeyName.action,value:l}),c&&(i.definitions[u][S.SchemaTag.target]=c),m[S.SchemaTag.actionType]=n,m[S.SchemaTag.annotationPath]=`/${p}`,a.properties[f]={$ref:`${I}${u}`},a.properties[f][S.SchemaTag.propertyIndex]=s}r(pd,"addSingleHeaderActionV4");function Jv(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[S.SchemaTag.isViewNode]=!0,s[S.SchemaTag.propertyIndex]=i,s[S.SchemaTag.keys]=[],s[S.SchemaTag.keys].push({name:S.SchemaKeyName.action,value:e}),s[S.SchemaTag.actionType]=S.ActionType.Standard,n.properties[o]={$ref:`${I}${a}`},n.properties[o][S.SchemaTag.propertyIndex]=i,s}r(Jv,"addStandardHeaderAction");function qv(e,t,n,i,o,a){let s=ni(e.item),l=Et(e.item,n),c=Ie(`${S.DefinitionName.ObjectPageFooterAction}<${s}>`),f=e.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),p=i.definitions[c]={type:"object",$ref:`${I}${S.DefinitionName.FooterActionV4}`,description:l};p[S.SchemaTag.isViewNode]=!0,p[S.SchemaTag.actionType]=t,p[S.SchemaTag.propertyIndex]=a,p[S.SchemaTag.annotationPath]=`/${f}`,o.properties[s]={$ref:`${I}${c}`}}r(qv,"addSingleFooterAction");function aL(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Cn.UIAnnotationTypes.DataFieldForAction||i.$Type===Cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(oL.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(aL,"groupByCriticality");function rL(e,t,n,i,o){for(let a=0;a<e.length;a++)pd(t,e[a],S.ActionType.Criticality,n,i,o,a)}r(rL,"addCriticalActions");function sL(e,t,n,i,o,a){let s=e.findIndex(l=>{var c,f;return((f=(c=l.item.annotations)==null?void 0:c.UI)==null?void 0:f.IsCopyAction)!==void 0});s>-1&&(pd(t,e[s],S.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(sL,"addCopyAction");function lL(e,t,n,i,o,a){for(let s of e)pd(t,s,S.ActionType.Annotation,n,i,o,a),a++}r(lL,"addUncriticalActions");function Xv(e,t,n,i){var o,a,s,l;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[S.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${S.UIVOCABULARYALPHADOT}${i}`:e[S.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${S.UIVOCABULARYALPHADOT}${i}`}r(Xv,"setAnnotationPathFromEntitySetOrEntityType");function cL(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?aL(n):{};rL(s,o,t,e,i);let c=CT(a),f=AT(a);if(tl(a)&&f){let u=Jv("Edit",t,i,s.length);Xv(u,a,e,"UpdateHidden")}if(c){let u=Jv("Delete",t,i,s.length+1);Xv(u,a,e,"DeleteHidden")}let p=s.length+2;sL(l,o,t,e,i,p),lL(l,o,t,e,i,p)}r(cL,"addHeaderActionCallBackV4");function fL(e,t,n,i){let o=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Cn.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<o.length;s++){let l=o[s];qv(l,S.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];qv(l,S.ActionType.Annotation,e,t,n,o.length+s)}}r(fL,"addFooterActionCallBackV4");function pL(e,t,n,i,o){let a=ka(t),s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,c=gt(S.DefinitionName.ObjectPageTable,t,n);e.entityType&&l&&(c[S.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${l}`),c.properties.columns={$ref:`${I}${a}`},c.properties.toolBar.$ref=ht(S.DefinitionName.ObjectPageToolBar,t),c.properties.quickVariantSelection.$ref=ht(S.DefinitionName.QuickVariantSelectionV4OP,t);let f=gt(S.DefinitionName.QuickVariantSelectionV4OP,t,n);f.properties.paths.items.$ref=ht(S.DefinitionName.AnnotationPathAsObject,t),gt(S.DefinitionName.AnnotationPathAsObject,t,n),mi(e.entityType,n,`${S.DefinitionName.AnnotationPathAsObject}<${a}>`);let p={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Po(p,S.DefinitionName.ObjectPageTableColumn),c}r(pL,"handleLineItem");function Yv(e,t,n,i,o,a){a&&(a.properties[t]={$ref:ht(S.DefinitionName.ObjectPageSectionTableV4,t)});let s=gt(S.DefinitionName.ObjectPageSectionTableV4,t,n);di(e,s,ka(t)),s[S.SchemaTag.annotationPath]=e.annotationPath,s[S.SchemaTag.target]=e.namespace,s.properties.table.$ref=ht(S.DefinitionName.ObjectPageTable,t);let l=pL(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:l}}r(Yv,"handleSectionTable");function uL(e,t,n,i,o){let a;o===S.SectionType.Section?a=S.DefinitionName.ObjectPageSectionForm:o===S.SectionType.HeaderSection&&(a=S.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:ht(a,t)};let s=gt(a,t,i);e.ID||(s.properties={}),di(e,s,t),s[S.SchemaTag.annotationPath]=e.annotationPath,s[S.SchemaTag.target]=e.namespace,s[S.SchemaTag.isViewNode]=!0,al(o,e,s,i,S.FioriElementsVersion.v4,t)}r(uL,"handleFormIdentification");function zv(e,t,n,i,o){n.properties[t]={$ref:`${I}${o}`};let a=gt(S.DefinitionName.CommonHeaderFacetSettings,o,i,!1);Ho(e,a,t),a[S.SchemaTag.annotationPath]=e.annotationPath,a[S.SchemaTag.target]=e.namespace,a[S.SchemaTag.dataType]=Yi(e==null?void 0:e.target),a[S.SchemaTag.isViewNode]=!0}r(zv,"handleHeaderFacet");function dL(e,t,n,i){let o=gt(S.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,c=Et(l,i),f=l.$Type.split(S.UIVOCABULARYDOT)[1],p=l.Action.replace("/","::"),u=o.properties[`${f}::${l.Action}`]={$ref:ht(S.DefinitionName.ObjectPageToolBarAction,p),description:c};u[S.SchemaTag.propertyIndex]=a,u[S.SchemaTag.annotationType]=l.$Type;let m=gt(S.DefinitionName.ObjectPageToolBarAction,Ie(p),n);m[S.SchemaTag.annotationPath]=fl(l),m[S.SchemaTag.dataType]=yn(l),m.properties={},a++})}return o}r(dL,"handleChartActions");function gL(e,t,n,i){let o=gt(S.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[S.SchemaTag.annotationPath]=fl(e),o[S.SchemaTag.dataType]=Yi(e.target||e),o[S.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=ht(S.DefinitionName.ObjectPageToolBar,t);let a=gt(S.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=ht(S.DefinitionName.ObjectPageToolBarActions,t);let s=dL(e,t,n,i);return{chart:o,chartActions:s}}r(gL,"handleChart");function Zv(e,t,n,i,o=e.entityType){i&&(i.properties[t]={$ref:ht(S.DefinitionName.ObjectPageSectionChart,t)});let a=gt(S.DefinitionName.ObjectPageSectionChart,t,n);Ho(e,a,t),a[S.SchemaTag.annotationPath]=fl(e),a.properties.chart.$ref=ht(S.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=gL(e.target||e,t,n,o);return{sectionChart:a,chart:s,chartActions:l}}r(Zv,"handleSectionChart");function mL(e,t,n,i,o){var p,u;let a,s,l;if(!(e!=null&&e.target)){k(o.logger,{severity:S.LogSeverity.Error,message:j.t("NOPRESENTATIONVARIANT",{key:t})});return}let c=(p=e==null?void 0:e.target)==null?void 0:p.Visualizations,f=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(c!=null&&c[0])if(c[0].$target)a=c[0].$target,s=`@${a.fullyQualifiedName.split("@")[1].split("/")[0]}`,l=a;else{a=c[0],s="@"+tp(`${a.targetString.split("@")[1].split("/")[0]}`,o.serviceAVT);let b=o.entitySet.entityType.navigationProperties.find(L=>L.name===f).targetType,v=s==null?void 0:s.split(S.UIVOCABULARYDOT)[1];l=v&&((u=b==null?void 0:b.annotations)==null?void 0:u.UI[v])}if(a){let m=s.split(S.UIVOCABULARYDOT)[1],b=e.target[S.SchemaTag.fullyQualifiedName].split("@")[0],v=f?`${f}::${s}`:s;if(m.startsWith(S.Visualization.Chart)){i.properties[`${t}<${s}>`]={$ref:ht(S.DefinitionName.ObjectPageSectionChart,v)};let{sectionChart:L,chart:N}=Zv(a,v,n,void 0,e.entityType);L[S.SchemaTag.annotationPath]=e.annotationPath,Ho(e,L,t),N[S.SchemaTag.annotationPath]=`/${b}/${s}`,N[S.SchemaTag.target]=b}else if(m.startsWith(S.Visualization.LineItem)){i.properties[`${t}<${s}>`]={$ref:ht(S.DefinitionName.ObjectPageSectionTableV4,v)};let{sectionTable:L,table:N}=Yv(e,v,n,{target:l,entityType:e.entityType},o);L[S.SchemaTag.annotationPath]=e.annotationPath,Ho(e,L,t),delete L[S.SchemaTag.isViewNode],N[S.SchemaTag.annotationPath]=`/${b}/${s}`,N[S.SchemaTag.target]=b}}}r(mL,"handleSectionPresentationVariant");function yL(e,t,n,i,o,a,s){let l=o;e.additionalProperties={$ref:`${I}${l}`},Gv(t,e,i,l,s,n.logger);let c=t.definitions[l];typeof c=="object"&&RT(t,e,{schema:c,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[S.SchemaKeyName.id,S.SchemaKeyName.key],descriptionAsFallback:!0})}r(yL,"applyCustomSections");function ud(e,t,n,i,o,a,s){let l=t[n],c=`ObjectPage${a}${l.base}<${ka(n)}>`;switch(l.base){case S.FacetBase.PresentationVariant:{mL(l,n,o,i,e);break}case S.FacetBase.CollectionFacet:{hL(l,n,o,i,a,e,s);break}case S.FacetBase.LineItem:{if(a===S.SectionType.Section){let f=t[n];Yv(l,n,o,f,e,i)}break}case S.FacetBase.Form:case S.FacetBase.Identification:{uL(l,n,i,o,a);break}case S.FacetBase.DataPoint:{zv(l,n,i,o,c);break}case S.FacetBase.Chart:{a===S.SectionType.HeaderSection?zv(l,n,i,o,c):a===S.SectionType.Section&&Zv(l,n,o,i);break}case S.FacetBase.Address:case S.FacetBase.Contact:{_a(l,n,i,o,a);break}default:i.properties[n]=jn(o,l,n)}}r(ud,"addSection");function hL(e,t,n,i,o,a,s){let l=i.properties[t]=jn(n,e,t);l.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let c=l.properties.subsections;c[S.SchemaTag.annotationPath]=e.annotationPath,c[S.SchemaTag.target]=e.namespace,c[S.SchemaTag.keys]=[{name:S.SchemaKeyName.id,value:e.ID}],c[S.SchemaTag.isViewNode]=!0;for(let f in e.facets)ud(a,e.facets,f,c,n,o,s)}r(hL,"handleCollection");function bL(e,t,n){let i=_s(e.entitySet.entityType,e.serviceAVT,S.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[S.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[S.DefinitionName.Sections];for(let a in i)ud(e,i,a,o,t,S.SectionType.Section,n);yL(o,t,e,n,S.DefinitionName.ObjectPageCustomSectionFragment)}r(bL,"addSections");function TL(e,t,n,i){let o=ks(n,e.serviceAVT,S.FioriElementsVersion.v4,e.logger),a=t.definitions[S.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)ud(e,o,s,a,t,S.SectionType.HeaderSection,i);delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[S.DefinitionName.ObjectPageHeaderSectionAddress]}}r(TL,"addHeaderSections");function vL(e,t,n){let i=e.entitySet.entityType;cl(t,i),ll(t,i,e.entitySet,e.serviceAVT,cL),i&&(t.definitions[S.DefinitionName.HeaderSections][S.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Cn.UIAnnotationTerms.HeaderFacets}`),TL(e,t,i,n)}r(vL,"addHeader");function Nr(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${I}${S.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[S.ManifestSection.ui5].routing||!e.manifest[S.ManifestSection.ui5].routing.targets)return k(e.logger,{severity:S.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:S.MANIFESTPATH}}),i;let o=i.definitions[S.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:S.DefinitionName.Sections};if(o[S.SchemaTag.isViewNode]=!0,n){let a=e.manifest[S.ManifestSection.ui5].routing.targets;if(!a)return k(e.logger,{severity:S.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:S.MANIFESTPATH,range:[S.ManifestSection.generic]}}),i;let s=Ec(a,S.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;vL(e,i,s),o[S.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[S.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Cn.UIAnnotationTerms.Facets}`),bL(e,i,s),sl(i,e,S.FioriElementsVersion.v4,fL)}return delete i.definitions[S.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[S.DefinitionName.GenericColumnsOP],delete i.definitions[S.DefinitionName.GenericSections],delete i.definitions[S.DefinitionName.ObjectPageChart],delete i.definitions[S.DefinitionName.ObjectPageSectionAddress],delete i.definitions[S.DefinitionName.ObjectPageSectionChart],delete i.definitions[S.DefinitionName.ObjectPageSectionContact],delete i.definitions[S.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[S.DefinitionName.ObjectPageSectionForm],delete i.definitions[S.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[S.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[S.DefinitionName.ObjectPageSubSections],delete i.definitions[S.DefinitionName.ObjectPageTable],delete i.definitions[S.DefinitionName.ObjectPageToolBar],delete i.definitions[S.DefinitionName.ObjectPageToolBarAction],delete i.definitions[S.DefinitionName.ObjectPageToolBarActions],delete i.definitions[S.DefinitionName.QuickVariantSelectionV4OP],$n(i,iL),i}r(Nr,"generateObjectPageSchemaV4");function dd(e,t){return JSON.parse(JSON.stringify(t))}r(dd,"generateFreestyleSchemaV4");var ln=U(B());function gd(e,t,n,i,o,a){let s=Zn(n,o),l=ci(t,s);l||k(o,{severity:ln.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:t})});let c={templateType:ln.TemplateType.ListReportObjectPageV4,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:l,entityType:l==null?void 0:l.entityType};return Nr(c,e,l)}r(gd,"generateObjectPageInterfaceV4");function Oc(e,t,n,i,o,a){Xe();let s=Zn(i,o),l=s==null?void 0:s.entitySets.find(p=>p.name===n),c={templateType:e,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:l,entityType:l.entityType},f=e===ln.TemplateType.ListReportObjectPageV4?ln.v4.FE_TEMPLATE_V4_LIST_REPORT:ln.v4.FE_TEMPLATE_V4_ALP;return Lr(c,t,l,f)}r(Oc,"generateListReportInterfaceV4");function md(e,t,n,i,o,a){let s=Zn(n,a),l={templateType:e,fioriElementsVersion:ln.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return dd(l,t)}r(md,"generateFreestyleInterfaceV4");var Vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),eS=U(B());var we=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Lc=r(e=>we(e)+"/views/paths","getSettingsPathForLRViewsPaths"),yd=r(e=>we(e)+"/content/header","getSettingsPathForHeaderOP"),Hn=r(e=>we(e)+"/controlConfiguration","getControlConfigurationPath"),Nc=r((e,t,n)=>Hn(e)+`/@${Vr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),An=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),En=r((e,t,n,i,o)=>o?An(e,t,n,i,o):Hn(e)+`/@${Vr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Vc=r((e,t,n,i,o)=>En(e,t,n,i,o)+eS.QUICKVARPATH,"getQuickVariantPath"),Qt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Rt=r((e,t,n,i,o)=>o?Qt(e,t,n,i,o):Hn(e)+`/@${Vr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),hd=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Hn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Dc=r((e,t,n,i,o)=>o?hd(e,t,n,i,o):Hn(e)+`/@${Vr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Co=r((e,t,n,i)=>Hn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),tS=r((e,t,n,i)=>Hn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),Tt=r((e,t,n)=>Hn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Dr=r((e,t,n,i)=>{let o=we(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),Fc=class Fc{};r(Fc,"ApplicationV4"),d([_e("settings")],Fc.prototype,"settings",2);var Ic=Fc,Ri=class Ri{};r(Ri,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Ri.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Ri.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Ri.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),T({since:"1.78.0"})],Ri.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"})],Ri.prototype,"flexEnabled",2);var ba=Ri;var te=U(B());function ze(e,t,n,i,o,a,s){if(!n)return;let l={},c=e==null?void 0:e.getDeprecated,f=a&&a.replace("/","::");for(let p in n.properties){let u=dt(e,p);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,f,...o);l=ei(t,m,a,f,!0),l&&Object.keys(l).length>0&&(Ko(u,l,p,e,a,o),Qs(c,l,m,s))}}}r(ze,"importSettingsOfObject");var ug={};Do(ug,{ALPChart:()=>vd,ALPTable:()=>Pa,ActionAfterExecutionConfiguration:()=>Vd,ActionAfterExecutionConfigurationOP:()=>Qr,ActionAfterExecutionConfigurationToolBarLR:()=>Hd,Actions:()=>Ud,CommonHeaderFacetSettings:()=>wi,CommonViewSettings:()=>Sa,FilterBar:()=>Kd,FlexSettings:()=>Xd,HeaderSections:()=>ng,LRChartView:()=>Sd,LRTableView:()=>Pd,MultiTableModeV4:()=>Ad,ObjectPageCustomSectionFragment:()=>Xr,ObjectPageHeader:()=>qd,ObjectPageHeaderSectionAddress:()=>tg,ObjectPageHeaderSectionChart:()=>Yd,ObjectPageHeaderSectionContact:()=>eg,ObjectPageHeaderSectionDataPoint:()=>Zd,ObjectPageHeaderSectionForm:()=>zd,ObjectPageLayout:()=>cg,ObjectPageTable:()=>qr,ObjectPageTableColumn:()=>Ca,ObjectPageTableColumnAction:()=>Jd,ObjectPageToolBarAction:()=>Qd,Position:()=>Rd,QuickVariantSelectionV4:()=>Td,QuickVariantSelectionV4OP:()=>pg,Table:()=>Ed,TableColumn:()=>Mc,TableColumnAction:()=>Dd,TableCreationModeOP:()=>fg,TableCustomColumn:()=>wd,TableSettings:()=>jc,TableViewExtension:()=>Cd,TableViewSettings:()=>$r,ToolBar:()=>kd,ToolBarAction:()=>Gd,ViewPosition:()=>$d,ViewTableColumn:()=>Uc,ViewTableColumnAction:()=>jd,ViewTableCustomColumn:()=>Md,ViewToolBarAction:()=>Wd,checkViewOrder:()=>Od,deleteCreationModeCreateAtEnd:()=>Nd,deleteCreationModeName:()=>Id,exportCreationModeCreateAtEnd:()=>Ld,exportCreationModeName:()=>xd,exportPersonalization:()=>CL,exportPersonalizationProperty:()=>AL});var bd=U(B());var SL=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 xn(e,t,n,i,o,a){let s=Lc(e),l=SL(JSON.parse(JSON.stringify(t)),s),c;for(let f=0;f<l.length;f++){let p=l[f];if(p&&(p[bd.SchemaTag.key]===(a==null?void 0:a.key)||p[bd.SchemaTag.key]===i)){c=`${s}/${f}`;break}}return c||(c=`${s}/[]`),c}r(xn,"getSettingsPathForLRViewsPath");function xd(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(xd,"exportCreationModeName");function PL(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let c of l){let f=Number(c),p=e[c];t===p.key?s[n]=p:f>=i&&f<=o?s[Math.max(0,f+a)]=p:s[c]=p}return s}r(PL,"fillNewlyOrderedViews");function Od(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),l=Math.max(Number(i),o),c=PL(e,n,o,s,l,a);for(let f of Object.keys(c))e[f]=c[f]}}r(Od,"checkViewOrder");function CL(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(CL,"exportPersonalization");function AL(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(AL,"exportPersonalizationProperty");function Id(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(Id,"deleteCreationModeName");function Fd(e,t,n,i,o,a){var l;let s;if(!t||Object.keys(t).length===0){let c=e;Object.keys(c).forEach(f=>{c[f]&&c[f].key===o&&(e[Number(f)]={},s=f)})}if(s){let c=(l=a.table)==null?void 0:l.views;for(let f in c)c[f].index>s&&c[f].index--}}r(Fd,"deleteView");function Ld(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(Ld,"exportCreationModeCreateAtEnd");function Nd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(Nd,"deleteCreationModeCreateAtEnd");function nS(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(nS,"determineIndexOfView");var Ta=class Ta{};r(Ta,"QuickVariantSelectionV4"),d([g({manifest:{path:Vc}})],Ta.prototype,"paths",2),d([g({manifest:{path:Vc}})],Ta.prototype,"hideTableTitle",2),d([g({manifest:{path:Vc}})],Ta.prototype,"showCounts",2);var Td=Ta,cn=class cn{};r(cn,"TableSettings"),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cn.prototype,"type",2),d([g({manifest:{path:En}}),T({since:"1.86.0"})],cn.prototype,"personalization",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],cn.prototype,"selectionMode",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"selectAll",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"selectionLimit",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cn.prototype,"enableExport",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],cn.prototype,"quickVariantSelection",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cn.prototype,"condensedTableLayout",2),d([g({manifest:{path:En}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cn.prototype,"hierarchyQualifier",2);var jc=cn,Rc=class Rc{};r(Rc,"ALPChart"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/primary/0","path"),delete:Fd}})],Rc.prototype,"annotationPath",2);var vd=Rc,Ao=class Ao{};r(Ao,"CommonViewSettings"),d([g({manifest:{path:xn,delete:Hi}})],Ao.prototype,"key",2),d([g({manifest:{path:Lc,import:nS,export:r((t,n)=>{Od(t,n)},"export"),delete:Fd}})],Ao.prototype,"index",2),d([g({manifest:{path:xn,delete:Hi}})],Ao.prototype,"annotationPath",2),d([g({manifest:{path:xn}})],Ao.prototype,"entitySet",2);var Sa=Ao,fn=class fn extends Sa{};r(fn,"TableViewSettings"),d([g({manifest:{path:An}}),T({since:"1.84.0"})],fn.prototype,"type",2),d([g({manifest:{path:An}}),T({since:"1.86.0"})],fn.prototype,"personalization",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],fn.prototype,"selectionMode",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],fn.prototype,"selectAll",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],fn.prototype,"selectionLimit",2),d([g({manifest:{path:An}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],fn.prototype,"enableExport",2),d([g({manifest:{path:An}}),T({since:"1.84.0"})],fn.prototype,"quickVariantSelection",2),d([g({manifest:{path:An}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],fn.prototype,"condensedTableLayout",2),d([g({manifest:{path:An}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fn.prototype,"hierarchyQualifier",2);var $r=fn;function EL(e){return $r}r(EL,"getTableViewSettings");var jr=class jr extends $r{};r(jr,"ALPTable"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Hi}})],jr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jr.prototype,"initialLoad",2);var Pa=jr,$c=class $c extends Sa{};r($c,"LRChartView"),d([g({manifest:{path:xn},generate:wn})],$c.prototype,"visible",2);var Sd=$c,va=class va extends EL(Sa){};r(va,"LRTableView"),d([g({manifest:{path:xn}})],va.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:xn}})],va.prototype,"entitySet",2),d([g({manifest:{path:xn},generate:wn})],va.prototype,"visible",2);var Pd=va,$i=class $i{};r($i,"TableViewExtension"),d([g({manifest:{path:xn}})],$i.prototype,"key",2),d([g({manifest:{path:Lc,import:nS,export:r((t,n)=>{Od(t,n)},"export"),delete:Fd}})],$i.prototype,"index",2),d([g({manifest:{path:xn}})],$i.prototype,"label",2),d([g({manifest:{path:xn}})],$i.prototype,"template",2),d([g({manifest:{path:xn},generate:wn})],$i.prototype,"visible",2);var Cd=$i,wc=class wc{};r(wc,"MultiTableModeV4"),d([g({manifest:{path:r(t=>we(t)+"/views","path")}})],wc.prototype,"showCounts",2);var Ad=wc,Rr=class Rr extends jc{};r(Rr,"Table"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Hi}})],Rr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Rr.prototype,"initialLoad",2);var Ed=Rr;var wr=class wr{};r(wr,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/afterExecution","path")}})],wr.prototype,"enableAutoScroll",2);var Vd=wr,Mr=class Mr{};r(Mr,"TableColumn"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Mr.prototype,"width",2),d([g({manifest:{path:Rt}}),T({since:"1.85.0"})],Mr.prototype,"availability",2);var Mc=Mr,Ur=class Ur{};r(Ur,"ViewTableColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ur.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],Ur.prototype,"availability",2);var Uc=Ur,kc=class kc extends Mc{};r(kc,"TableColumnAction"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],kc.prototype,"afterExecution",2);var Dd=kc,_c=class _c extends Uc{};r(_c,"ViewTableColumnAction"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],_c.prototype,"afterExecution",2);var jd=_c,kr=class kr{};r(kr,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],kr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Rt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],kr.prototype,"placement",2);var Rd=kr,_r=class _r{};r(_r,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],_r.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],_r.prototype,"placement",2);var $d=_r,Gn=class Gn{};r(Gn,"TableCustomColumn"),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"position",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"header",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Gn.prototype,"width",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"template",2),d([g({manifest:{path:Rt}}),T({since:"1.86.0"})],Gn.prototype,"horizontalAlign",2),d([g({manifest:{path:Rt}}),T({since:"1.84.0"})],Gn.prototype,"availability",2),d([g({manifest:{path:Rt}}),T({since:"1.85.0"})],Gn.prototype,"properties",2);var wd=Gn,Wn=class Wn{};r(Wn,"ViewTableCustomColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"position",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"header",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wn.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"template",2),d([g({manifest:{path:Qt}}),T({since:"1.86.0"})],Wn.prototype,"horizontalAlign",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Wn.prototype,"availability",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],Wn.prototype,"properties",2);var Md=Wn;var _d=class _d{};r(_d,"Actions");var Ud=_d,Bd=class Bd{};r(Bd,"ToolBar");var kd=Bd;var Br=class Br{};r(Br,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>Dc(t,n,i,o,a)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Br.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Dc(t,n,i,o,a)+"/afterExecution","path")}})],Br.prototype,"enableAutoScroll",2);var Hd=Br,Bc=class Bc{};r(Bc,"ToolBarAction"),d([g({manifest:{path:Dc}})],Bc.prototype,"enableOnSelect",2);var Gd=Bc,Hc=class Hc{};r(Hc,"ViewToolBarAction"),d([g({manifest:{path:hd}})],Hc.prototype,"enableOnSelect",2);var Wd=Hc;var Gc=class Gc{};r(Gc,"ObjectPageToolBarAction"),d([g({manifest:{path:tS}})],Gc.prototype,"enableOnSelect",2);var Qd=Gc;var Wc=class Wc{};r(Wc,"FilterBar"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.99.0"}),me("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Wc.prototype,"hideFilterBar",2);var Kd=Wc;var Hr=class Hr{};r(Hr,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}}),me("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Hr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}})],Hr.prototype,"enableAutoScroll",2);var Qr=Hr,Gr=class Gr{};r(Gr,"ObjectPageTableColumn"),d([g({manifest:{path:Co}}),T({since:"1.84.0"}),me("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Gr.prototype,"width",2),d([g({manifest:{path:Co}}),T({since:"1.85.0"})],Gr.prototype,"availability",2);var Ca=Gr,Wr=class Wr extends Ca{};r(Wr,"ObjectPageTableColumnAction"),d([g({manifest:{path:Co}}),T({since:"1.84.0"})],Wr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/position","path")}}),T({since:"1.84.0"})],Wr.prototype,"placement",2);var Jd=Wr;var Eo=class Eo{};r(Eo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],Eo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],Eo.prototype,"showRelatedApps",2),d([g({manifest:{path:yd}}),T({since:"1.84.0"})],Eo.prototype,"visible",2),d([g({manifest:{path:yd}}),T({since:"1.84.0"})],Eo.prototype,"anchorBarVisible",2);var qd=Eo;var Qc=class Qc{};r(Qc,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>Nc(t,n,i)+"/flexSettings","path")}}),T({since:"1.81.0"}),me("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Qc.prototype,"designtime",2);var Xd=Qc,Kr=class Kr{};r(Kr,"CommonHeaderFacetSettings"),d([g({manifest:{path:Nc}}),T({since:"1.81.0"})],Kr.prototype,"stashed",2),d([g({manifest:{path:Nc}}),T({since:"1.81.0"})],Kr.prototype,"flexSettings",2);var wi=Kr,ig=class ig extends wi{};r(ig,"ObjectPageHeaderSectionForm");var zd=ig,og=class og extends wi{};r(og,"ObjectPageHeaderSectionChart");var Yd=og,ag=class ag extends wi{};r(ag,"ObjectPageHeaderSectionDataPoint");var Zd=ag,rg=class rg extends wi{};r(rg,"ObjectPageHeaderSectionContact");var eg=rg,sg=class sg extends wi{};r(sg,"ObjectPageHeaderSectionAddress");var tg=sg,lg=class lg{};r(lg,"HeaderSections");var ng=lg;var Kc=class Kc{};r(Kc,"ObjectPageLayout"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Kc.prototype,"sectionLayout",2);var cg=Kc;var Jc=U(B());var Jr=class Jr{};r(Jr,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i),"path"),export:r((t,n,i,o)=>{xd(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Id(t,o)},"delete")}})],Jr.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i),"path"),export:r((t,n,i,o)=>{Ld(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{Nd(t,o)},"delete")}})],Jr.prototype,"createAtEnd",2);var fg=Jr,Aa=class Aa{};r(Aa,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Aa.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Aa.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>Tt(t,n,i)+Jc.QUICKVARPATH,"path")}})],Aa.prototype,"showCounts",2);var pg=Aa,Kt=class Kt{};r(Kt,"ObjectPageTable"),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"type",2),d([g({manifest:{path:Tt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),T({since:"1.84.0"})],Kt.prototype,"creationMode",2),d([g({manifest:{path:Tt}}),T({since:"1.86.0"})],Kt.prototype,"personalization",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectionMode",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectAll",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"selectionLimit",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Kt.prototype,"enableExport",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"})],Kt.prototype,"quickVariantSelection",2),d([g({manifest:{path:Tt}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Kt.prototype,"condensedTableLayout",2),d([g({manifest:{path:Tt}}),T({since:"1.86.0"})],Kt.prototype,"enablePaste",2),d([g({manifest:{path:Tt}}),T({since:"1.117.0"}),me("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Kt.prototype,"hierarchyQualifier",2);var qr=Kt;var xo=class xo{};r(xo,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"anchor"}}),T({since:"1.77.0"})],xo.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>Dr(t,n,i,"position"),"path"),key:"placement"}}),T({since:"1.77.0"})],xo.prototype,"relativePosition",2),d([g({manifest:{path:Dr}}),T({since:"1.77.0"})],xo.prototype,"title",2),d([g({manifest:{path:Dr,key:"name"}}),T({since:"1.77.0"})],xo.prototype,"fragmentName",2);var Xr=xo;var yg={};Do(yg,{FreestylePage:()=>gg,ListReport:()=>pn,ObjectPage:()=>On});function xL(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(xL,"deleteAllALPViews");function OL(){}r(OL,"doNotExport");function IL(){}r(IL,"doNotImport");var pn=class{};r(pn,"ListReport"),d([g({manifest:{path:r(t=>we(t)+"/views","path"),import:IL,export:OL,delete:xL}})],pn.prototype,"chart",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],pn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>we(t)+"/views/paths/[]/0","path")}}),me("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],pn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>we(t),"path")}})],pn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],pn.prototype,"filterBar",2),pn=d([tn({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],pn);var dg=U(B());var On=class{};r(On,"ObjectPage"),d([_e("header")],On.prototype,"header",2),d([_e("layout")],On.prototype,"layout",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),me("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],On.prototype,"variantManagement",2),d([_e("sections")],On.prototype,"sections",2),On=d([tn({id:`${dg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:dg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],On);var mg=class mg{};r(mg,"FreestylePage");var gg=mg;var qc=U(B());var FL={ALPTableView:Pa},LL={ALPTableView:Pa},NL={Table:qr,TableColumn:Ca,ObjectPageCustomSectionView:Xr,ActionAfterExecutionConfiguration:Qr},VL={[qc.PageTypeV4.AnalyticalListPage]:FL,[qc.PageTypeV4.ListReport]:LL,[qc.PageTypeV4.ObjectPage]:NL},hg=class hg extends ha{constructor(){super(ug,yg,VL)}};r(hg,"MetadataInstanceFactoryV4");var fi=hg;var bg=require("@sap-ux/vocabularies-types/vocabularies/UI");function Tg(e,t,n,i,o,a,s){var p,u,m,b,v,L;let l=t.jsonSchema.definitions,c=a&&a!==`@${bg.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,f=l[c];if(f&&Object.keys(f.properties).length>0){e.columns={};for(let N in f.properties){let ne=l[c].properties[N].$ref.split(I)[1].split("<")[0];e.columns[N]=n.createInstance(i,ne);let ie=s||a;ze(e.columns[N],t.manifest,l[ne],o,[N,ie],ie,t.logger),Wi(e.columns,N)}Wi(e,"columns")}else{let N=(L=(v=(b=(m=(u=(p=t.manifest["sap.ui5"])==null?void 0:p.routing)==null?void 0:u.targets)==null?void 0:m[o])==null?void 0:b.options)==null?void 0:v.settings)==null?void 0:L.views;(!N||N.paths.length<1)&&k(t.logger,{severity:te.LogSeverity.Error,message:j.t("NOLINEITEMS")})}}r(Tg,"transferColumns");function DL(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,c=s;!c&&[te.DefinitionName.LineItems,`${te.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(c=`@${bg.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let f=l[`${te.DefinitionName.Actions}<${a}>`];if(typeof f=="object")for(let p in f.properties){let u=f.properties[p];if(typeof u=="object"&&u.$ref){let m=Wo(u.$ref),b=m.split("<")[0];t.toolBar.actions[p]=n.createInstance(i,b),ze(t.toolBar.actions[p],e.manifest,l[m],o,[p,c]),Wi(t.toolBar.actions,p)}}}r(DL,"importActions");function iS(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),c;!s&&t&&"table"in t?c=t.table:c=t,c.toolBar=l,ze(c.toolBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.ToolBarLR],o,[]),DL(e,c,n,i,o,a,s),Wi(c.toolBar,"actions"),Wi(c,"toolBar")}r(iS,"transferToolBar");function oS(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(oS,"determineTargetAnnotationOfView");function jL(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,te.DefinitionName.ALPChart);let s=a[te.DefinitionName.ALPChart],l=s[te.SchemaTag.annotationPath];ze(t.chart,e.manifest,s,o,[s[te.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),ze(t.chart.toolBar,e.manifest,a[te.DefinitionName.ViewChartToolBar],o,[]);let c=a[te.DefinitionName.ALPTable][te.SchemaTag.annotationPath];if(c){let f=a[te.DefinitionName.ALPTable],p=t.table=n.createInstance(i,te.DefinitionName.ALPTable);iS(e,t,n,i,o);let u=c.substr(c.lastIndexOf("@"));ze(p,e.manifest,f,o,[f[te.SchemaTag.key],u]),Tg(p,e,n,i,o,void 0,u)}}r(jL,"importALPViews");function RL(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(RL,"getViewTypeByDefinition");function $L(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 l=s[te.DefinitionName.MultiTableModeV4].properties,c=Object.entries(l).sort((f,p)=>f[1][te.SchemaTag.propertyIndex]-p[1][te.SchemaTag.propertyIndex]);for(let f of c)if(f[1].$ref){let p=f[1].$ref.split(I)[1],u=RL(p),m=a[f[0]]=n.createInstance(i,u),b=oS(s,p);s[p].entitySet||(ze(m,e.manifest,s[p],o,[f[0],b]),u===te.DefinitionName.LRTableView&&Tg(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${f[0]}`,b)),Object.keys(m).length===0&&delete a[f[0]]}Wi(t.table,"views")}r($L,"importLRViews");function wL(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,l=e.jsonSchema.definitions[s],c;l.$ref&&(s=l.$ref.split(I)[1],l=e.jsonSchema.definitions[s],c=l.properties.columns.$ref.split(I)[1]),t.table=n.createInstance(i,te.DefinitionName.Table);let f=oS(e.jsonSchema.definitions,s);ze(t.table,e.manifest,l,o,[s,f]),iS(e,t,n,i,o,c),Tg(t.table,e,n,i,o,c,f),$L(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&jL(e,t,n,i,o)}r(wL,"addSettings");function Oo(e,t){if(Xe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){k(e.logger,{severity:te.LogSeverity.Error,message:j.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:j.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new fi,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Gf(s);if("name"in s&&(l===te.PageTypeV4.ListReport||l===te.PageTypeV4.AnalyticalListPage)){wL(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(Oo,"createListReportConfig");var se=U(B()),zr=require("@sap-ux/vocabularies-types/vocabularies/UI");function vg(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${zr.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${zr.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(vg,"getManifestId");function Sg(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(Sg,"getDefinitionId");function ML(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Sg(a)];if(l)for(let c in l.properties){l.properties[c].$ref.indexOf(se.DefinitionName.CustomColumnOP)>-1?s=se.DefinitionName.CustomColumnOP:s=se.DefinitionName.ObjectPageTableColumn;let p=o.createInstance(se.PageTypeV4.ObjectPage,s);ze(p,e.manifest,e.jsonSchema.definitions[s],e.routingId,[c],a),Object.keys(p).length>0&&(n[i].table.columns[c]=p)}}}r(ML,"fillTableColumnsInConfig");function UL(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${se.DefinitionName.Actions}<${Sg(o)}>`];if(a)for(let s in a.properties){let l=a.properties[s];if(typeof l=="object"&&l.$ref){let c=Wo(l.$ref),f=c.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(se.PageTypeV4.ObjectPage,f),ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[c],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(UL,"fillTableActionsInConfig");function aS(e,t,n,i,o,a){let s=a||vg(i),l=t.controlConfiguration[s];if(l){n[i]={},n[i].table=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageTable);let c=`${se.DefinitionName.ObjectPageTable}<${a?Sg(a):i.replace("#","::")}>`;ze(n[i].table,e.manifest,e.jsonSchema.definitions[c],e.routingId,[],s),n[i].table.toolBar=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ToolBar,{actions:{}}),UL(e,i,n,o,s),ML(e,l,n,i,o,s)}}r(aS,"fillTableInConfig");function kL(e,t,n,i,o){var l;let a=vg(i);((l=t.controlConfiguration)==null?void 0:l[a])&&(n[i]={},n[i].form=o.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageForm,{actions:{}}))}r(kL,"fillFormInConfig");function rS(e,t,n,i,o){var a,s,l,c;for(let f in t){let p=t[f],u=f;if(f.includes(zr.UIAnnotationTerms.PresentationVariant)&&((a=p.$ref)!=null&&a.startsWith(I+se.DefinitionName.ObjectPageSectionTableV4))){let m=p.$ref.split(I)[1];u=m?vg(m,!0):f,aS(e,n,i,f,o,u)}else(s=p.$ref)!=null&&s.startsWith(I+se.DefinitionName.ObjectPageSectionTableV4)?aS(e,n,i,f,o):p.properties&&p.properties.subsections?(i[f]={subsections:{}},rS(e,p.properties.subsections.properties,n,i[f].subsections,o)):(l=p.$ref)!=null&&l.startsWith(I+se.DefinitionName.ObjectPageSectionForm)&&((c=p.$ref)!=null&&c.includes(`@${zr.UIAnnotationTerms.FieldGroup}::`))&&kL(e,n,i,f,o)}}r(rS,"fillSectionsInConfig");function _L(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 l in o){if("subSections"in o[l])continue;let f=i.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageCustomSectionFragment);ze(f,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),n.sections[l]=f}}r(_L,"fillCustomSectionsInConfig");function BL(e,t,n,i,o){var s,l;let a=e.definitions[se.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let c in a.properties){let f=a.properties[c],p,u=(s=a.properties[c].$ref)==null?void 0:s.split(I)[1];u&&(f=e.definitions[u],p=u.split("<")[0]),(p==null?void 0:p.includes(se.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[c]=p?n.createInstance(se.PageTypeV4.ObjectPage,p):{},ze(t.header.sections[c],i,f,o,[],(l=f==null?void 0:f.title)==null?void 0:l.split(se.FACETTITLEPREFIX)[1]))}}}r(BL,"fillHeaderFacets");function HL(e,t,n){let i=n.createPageInstance(se.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageHeader),ze(i.header,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(se.PageTypeV4.ObjectPage,se.DefinitionName.ObjectPageLayout),ze(i.layout,e.manifest,e.jsonSchema.definitions[se.DefinitionName.ObjectPageLayout],e.routingId,[]),ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[se.DefinitionName.Sections]&&(i.sections={},rS(e,e.jsonSchema.definitions[se.DefinitionName.Sections].properties,o,i.sections,n)),_L(e,o,i,n),BL(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(HL,"fillObjectPageConfig");function Xc(e){if(Xe(),!e.manifest[se.ManifestSection.ui5]||!e.manifest[se.ManifestSection.ui5].routing){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5]}});return}let t=e.manifest[se.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOTARGETS"),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:se.LogSeverity.Error,message:j.t("NOROUTINGID",{routingId:e.routingId}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.ui5,"routing"]}});return}let i=new fi;return HL(e,n,i)}r(Xc,"createObjectPageConfigV4");var he=U(B());var Pg=[],zc={};function GL(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(GL,"routesSorter");function Cg(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(Cg,"resolveTarget");function WL(e){let t={};e=e.concat().sort(GL);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Cg(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}r(WL,"populateAssociations");function QL(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:j.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(QL,"determinePageType");function KL(e){let t=Go(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=Xc(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Oo(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=Oo(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=Ua(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Oo(i,a)}}}r(KL,"convertSettingsToConfig");function JL(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Pg.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Pg.push(t[t.length-1])}}r(JL,"updateUnhandledControllers");function qL(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(qL,"setVariantManagmentAndNavigation");function XL(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(XL,"evaluateCustomPageSettings");function zL(e,t,n,i){var f;let o=e.targets[t],a=QL(o,i.logger,t),s={pageType:a};if(o.options&&(s.entitySet=(f=o.options.settings)==null?void 0:f.entitySet),o.controlAggregation&&(s.controlAggregation=o.controlAggregation),zc[t]&&zc[t].indexOf(".")!==-1){let p=zc[t].split(".");s.navigationProperty=p[p.length-1]}XL(o,s,a),qL(o,s),JL(o);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let c={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};KL(c)}r(zL,"getSinglePageAndConfig");function sS(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=j.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}zc=WL(n.routes||[]);for(let i in n.targets)zL(n,i,t,e);return t}r(sS,"getPagesAndConfigs");function lS(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 Cg(t?t.target:e.routes[0].target)}else return}r(lS,"getHome");function cS(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(cS,"getSettings");function Yr(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];a.name===t&&(i[o]=a)}return i}r(Yr,"getPages");var Ag=class Ag extends hi{constructor(t){Xe();let n=new ba,i=Je(he.SchemaType.Application),o=t.appSchemas[i.filename];ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,lS(t.manifest[he.ManifestSection.ui5].routing),sS(t),{...cS(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Pg}};r(Ag,"V4AppProvider");var Ea=Ag;var fS=require("fs"),Io=require("path"),pS=U(B()),Eg=U(B());var uS=r((e,t,n=__dirname)=>{let i=t===Eg.SchemaType.Application?`${Eg.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Io.join)(n,"schemas",e,i);if(n.endsWith((0,Io.join)("specification","packages","specification")))return(0,Io.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Io.join)("src","specification")))return(0,Io.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Io.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),YL=r(async e=>new Promise((t,n)=>{(0,fS.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Yc=r(async(e,t)=>{try{let n=uS(e||pS.FioriElementsVersion.v4,t,__dirname);return await YL(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function ZL(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=Je(o);n[a.filename]=await Yc(t,o)}return n}r(ZL,"getGenericSchemas");function gS(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=kt(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(gS,"getAnnotationsForUi");function ci(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(ci,"getEntitySetByEntitySetName");function dS(e,t,n){let i=Ir(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=ci(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=Zr(e,t[c.filename])}}r(dS,"generateObjectPageSchemasV2");function eN(e,t,n){let i=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let l=a[s].options.settings.entitySet,c=ci(l,e.serviceAVT);e.entityType=c==null?void 0:c.entityType,e.entitySet=c;let f=Je(Q.SchemaType.ListReport,(c==null?void 0:c.name)||l),p=Je(Q.SchemaType.ListReport);e.templateType===Q.TemplateType.FreestylePageV4&&(e.templateType=Ua(a[s])),n[f.filename]=Lr(e,t[p.filename],c,a[s].name)}}r(eN,"generateListReportSchemasV4");function tN(e,t,n){var o;let i=Ir(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=ci(s,e.serviceAVT);let l=Je(Q.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),c=Je(Q.SchemaType.ListReport);t[l.filename]=es(e,n[c.filename])}}r(tN,"generateAppSchemaV2LR");function nN(e,t,n){let i=Yr(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=ci(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:a})});let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=Nr(e,t[c.filename],s)}}r(nN,"generateObjectPageSchemasV4");function iN(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)tN(e,o,t),dS(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=Ir(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=ci(c,e.serviceAVT);let f=Je(Q.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),p=Je(Q.SchemaType.AnalyticalListPage);o[f.filename]=ts(e,t[p.filename])}dS(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Je(Q.SchemaType.OverviewPage),l=Je(Q.SchemaType.OverviewPage);o[s.filename]=ns(t[l.filename],e.manifest)}return{...t,...o}}r(iN,"generateAppSchemasV2");function oN(e,t,n){let i={};return n&&(eN(e,t,i),nN(e,t,i)),{...t,...i}}r(oN,"generateAppSchemasV4");async function mS(e,t,n){let i=await ZL(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?oN(e,i,t):iN(e,i,t,n)}r(mS,"generateAppSchemas");function aN(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new vc(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new Ea(e);break;case Q.TemplateType.OverviewPageV2:t=new Cc(e);break;default:t=new Ea(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(aN,"importConfigs");function yS(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(yS,"getFileList");async function xg(e){var v,L;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new Ba().doesUi5VersionFitDistTags((L=(v=t["sap.ui5"])==null?void 0:v.dependencies)==null?void 0:L.minUI5Version,i);let c=Kf(t),f=Zn(n,i),p=gS(f),u=Jf(t,c,i),b=await mS({templateType:u,manifest:t,serviceAVT:f,fragments:o,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},p,u);return yS(b)}r(xg,"importProjectSchema");async function Og(e){var ne,ie;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:l}=e;new Ba().doesUi5VersionFitDistTags((ie=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:ie.minUI5Version,i);let f=Kf(t),p=Qb(t),u=Zn(n,i),m=Jf(t,f,i),b={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:f,logger:i,featureToggles:l},v=gS(u),L=await mS(b,v,m),z=aN({manifest:t,flexChanges:s,appSchemas:L,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:f,oDataVersion:p});return yS(L,z)}r(Og,"importProjectSchemaAndConfig");var rN=["header","sections","footer"];function sN(e,t,n,i){t.properties[n][R.SchemaTag.artifactType]=R.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=R.ControlType.Section;break;case"ObjectPageSubSectionV2":o=R.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=R.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=R.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=R.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=R.ControlType.ObjectPageHeaderSection;break}o&&(Fe(e,t,n),t.properties[n][R.SchemaTag.controlType]=o)}r(sN,"addFlexChangeForSection");function lN(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===In.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:c}=rl(a,o);if(!l)return;let f=a.Label||s,p=`HeaderAction<${Ie(l)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${In.UIAnnotationTerms.Identification}`,`/@${In.UIAnnotationTerms.Identification}`);t.definitions[p][R.SchemaTag.annotationPath]=`/${u}`,t.definitions[p][R.SchemaTag.actionType]=R.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:s}],c&&(t.definitions[p][R.SchemaTag.target]=c),i.properties[l]={$ref:`${I}${p}`}}})}r(lN,"addHeaderActionCallBackV2");function cN(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===In.UIAnnotationTypes.DataFieldForAction){let a=ni(o).split("::").splice(1).join("::"),s=Et(o,e),l=Ie(`${R.DefinitionName.ObjectPageFooterAction}<${a}>`),c=o.fullyQualifiedName.replace(`@${In.UIAnnotationTerms.Identification}`,`/@${In.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[R.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${c}`}}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${I}${l}`}}})}r(cN,"addFooterActionCallBackV2");function fN(e,t,n,i,o,a,s,l){let c,f;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?f=`${R.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:f=`${R.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[f])return f;let p=`${R.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[p]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(v=>v.name===i),b=To(t[R.ManifestSection.generic].pages,n,u);return qo(e,m,b,t,l,f,p,a.ID),f}r(fN,"ensureCustomColumnDefinitionExists");function os(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&sN(e,t,"visible",n)}r(os,"addAppSchemaDefinition");function pN(e,t,n){e.properties[t]={$ref:`${I}${n}`}}r(pN,"addSectionReference");function is(e,t,n,i){let o=Ie(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=I+t,i.definitions[o].properties.toolBar.$ref=`${I}ObjectPageToolBar<${t}>`,i.definitions[o][R.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=R.FACETTITLEPREFIX+n.ID,i.definitions[o][R.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=R.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${I}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=`${I}QuickVariant<${t}>`,mi(n.entityType,i,`QuickVariant<${t}>`)}r(is,"addTableDefinition");function uN(e,t,n,i,o,a){if(i.base!==R.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jn(n,i,t);let c=n.definitions[l];os(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[R.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${I}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${I}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${I}ObjectPageAnalyticalTable<${t}>`},{$ref:`${I}ObjectPageGridTable<${t}>`},{$ref:`${I}ObjectPageTreeTable<${t}>`}],c[R.SchemaTag.annotationPath]=i.annotationPath,di(i,c,t),is("ObjectPageResponsiveTableWithMultiSelect",t,i,n),is("ObjectPageResponsiveTableWithInlineDelete",t,i,n),is("ObjectPageGridTable",t,i,n),is("ObjectPageTreeTable",t,i,n),is("ObjectPageAnalyticalTable",t,i,n);let f,p=IT(i.entityType,e.serviceAVT);p&&(f=fN(n,e.manifest,p.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let u in o){let m=o[u];m.base===R.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&Jo(!0,n,m.target,m.entityType,m.ID||u,f)}}r(uN,"handleLineItem");function dN(e,t,n,i,o,a=!1){e.definitions[t]=jn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";os(e,s,o,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[R.SchemaTag.isViewNode]=!0}r(dN,"handleSubSection");function gN(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];os(e,a,o,"ObjectPageSectionChartV2")}r(gN,"handleSectionChart");function hS(e,t,n,i,o,a){e.definitions[t]=jn(e,n,i);let s=e.definitions[t];os(e,s,o,a||"CommonHeaderFacetSettings"),s[R.SchemaTag.annotationPath]=n.annotationPath,s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.dataType]=Yi(n==null?void 0:n.target)}r(hS,"handleHeaderFacet");function mN(e,t,n){let i=e.definitions[t],o=i[R.SchemaTag.dataType]=Yi(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(mN,"addDataPointHeaderFacetDataType");function yN(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];return os(e,a,o,"ObjectPageSectionFormV2"),a[R.SchemaTag.annotationPath]=n.annotationPath,a[R.SchemaTag.isViewNode]=!0,a}r(yN,"handleFormSection");function hN(e,t,n){let i=new Map([[R.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[R.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[R.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[R.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[R.FacetBase.Form,"ObjectPageHeaderSectionForm"],[R.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[R.FacetBase.LineItem,"ObjectPageSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSectionChartV2"],[R.FacetBase.Address,"ObjectPageSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSectionContactV2"],[R.FacetBase.Form,"ObjectPageSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[R.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[R.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[R.FacetBase.Form,"ObjectPageSubSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(hN,"getSectionType");function bN(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${In.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(bN,"getReferenceKey");function TS(e,t,n,i,o,a=!1,s=!1){let l=t[n],c=hN(l.base,a,s),f=bN(l,n,c),p=`${c}<${f}>`;switch(pN(i,f,p),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,dN(o,p,l,n,c,s);let u=o.definitions[p].properties.subsections;for(let m in l.facets)TS(e,l.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{uN(e,f,o,l,t,c),zo(o,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{gN(o,p,l,f,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=yN(o,p,l,f,c);al(R.SectionType.Section,l,u,o,R.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{_a(l,f,i,o,R.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{_a(l,f,i,o,R.SectionType.Section,R.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{hS(o,p,l,f,c);break}case"ObjectPageHeaderSectionDataPoint":{hS(o,p,l,f,c),mN(o,p,l);break}default:i.properties[n]=jn(o,l,f)}}r(TS,"addSection");function bS(e,t,n,i,o,a=!1){if(e)for(let s in t)TS(i,t,s,n,o,!1,a)}r(bS,"addSectionsFromFacets");function vS(e,t,n){var p,u,m,b,v,L;let i=t.definitions[R.DefinitionName.Sections];i[R.SchemaTag.isViewNode]=!0,(p=e.entitySet)!=null&&p.entityType&&(i[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${In.UIAnnotationTerms.Facets}`);let o=t.definitions[R.DefinitionName.HeaderSections];if(o[R.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${In.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=_s((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),s=ks((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,c=s&&!!Object.keys(s).length;if(!l&&!c)return;for(let N in n){let z=n[N];(L=(v=e.entitySet)==null?void 0:v.name)!=null&&L.includes(z.entitySet)?(bS(l,a,i,e,t),bS(c,s,o,e,t,!0)):vS(e,t,z.pages)}let f=t.definitions.CustomSections;for(let N in f.properties)i.properties[N]=f.properties[N]}r(vS,"addSections");function TN(e,t,n,i){cl(e,n),ll(e,n,t,i,lN,!0)}r(TN,"addHeader");function vN(e,t,n,i){let o=Kb(t,n,i,void 0,!0);o&&VT(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(vN,"addRelatedFacetKeysType");function Zr(e,t){var s;Xe();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[R.PropertyName.sections]={$ref:I+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[R.ManifestSection.generic].pages;return a?(TN(n,e.entitySet,o,e.serviceAVT),n.definitions[R.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},vS(e,n,a),vN(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[R.SchemaTag.isViewNode]=!0):delete n.properties[R.PropertyName.sections]),sl(n,e,R.FioriElementsVersion.v2,cN,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,$n(n,rN),n):(k(e.logger,{severity:R.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),n)}r(Zr,"generateObjectPageSchemaV2");var zt=U(B());var SN=["filterBar","table","footer"];function Ig(e,t,n,i){mi(e,n,"QuickVariant"),LT(n,"QuickVariantX",t),NT(i,n,"QuickVariantX")}r(Ig,"addEnumForVariantPaths");function es(e,t){var u,m,b,v,L,N,z;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=I+Ji,n.properties.table.anyOf[1].$ref=I+qi,n.properties.table.anyOf[2].$ref=I+qs,n.properties.table.anyOf[3].$ref=I+Xs,n.properties.table.anyOf[4].$ref=I+zs;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)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),c={$ref:I+zt.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c,l.properties.columns=c;let f=I+zt.DefinitionName.ToolBarLR;n.definitions[Ji]=i,n.definitions[qi]=o,n.definitions[qs]=a,n.definitions[Xs]=s,n.definitions[zs]=l,Yf.forEach(ne=>{n.definitions[ne].properties.toolBar.$ref=f});let p=(u=e.entitySet)==null?void 0:u.entityType;if(!p)(m=e.entitySet)!=null&&m.name&&k(e.logger,{severity:zt.LogSeverity.Error,message:j.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{Xo(n);let ne=(L=(v=p==null?void 0:p.annotations)==null?void 0:v.UI)==null?void 0:L.LineItem;ne&&Yf.forEach(oe=>{n.definitions[oe][zt.SchemaTag.annotationPath]=Ut(p==null?void 0:p.fullyQualifiedName,ne.term,ne.qualifier)}),Jo(!1,n,ne,p);let ie=(z=(N=p==null?void 0:p.annotations)==null?void 0:N.UI)==null?void 0:z.SelectionFields;el(n,ie,p),zo(n,p);let ce=[],Y=da(e.manifest[zt.ManifestSection.generic].pages,ce);if(!Y)return k(e.logger,{severity:zt.LogSeverity.Error,message:j.t("NOLR"),location:{path:zt.MANIFESTPATH,range:[zt.ManifestSection.generic]}}),n;qo(n,p,Y,e.manifest,e.fragments),Ig(p,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 $n(n,SN),n}r(es,"generateListReportSchemaV2");var je=U(B());var PN=["filterBar","keyPerformanceIndicators","chart","table","footer"];function SS(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(SS,"retrieveNameWithoutVocabulary");function CN(e,t,n){var v;let i=(v=e==null?void 0:e.component)==null?void 0:v.settings,o=i==null?void 0:i.qualifier,a=r(function(L){let N=L+(o?"#"+o:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let L=o?j.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):j.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return k(n,{severity:je.LogSeverity.Error,message:L}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],f="",p="";c.some(function(L){return f=f||SS("LineItem",L),p=p||SS("Chart",L),f&&p}),f=f||"LineItem",p=p||"Chart";let u=t[f],m=t[p],b=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(b>0){let L=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],N=j.t(L);k(n,{severity:je.LogSeverity.Warning,message:N})}return{lineItemAnnotation:u,chartAnnotation:m}}r(CN,"getLineItemAndChartAnnotation");function AN(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(AN,"addChart");function ts(e,t){var s,l,c,f,p;let n=JSON.parse(JSON.stringify(t));n.properties[je.PropertyName.table].anyOf[0].$ref=I+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${I}${je.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${I}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[je.PropertyName.table].anyOf[1].$ref=`${I}ALPGridTable<LineItems>`;try{let u=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));u.properties.columns.$ref=`${I}${je.DefinitionName.LineItems}`,u.properties.toolBar.$ref=`${I}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=u}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[je.PropertyName.table].anyOf[2].$ref=`${I}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${I}${je.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${I}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,PT(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:j.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{Xo(n);let u=[],m=ya(e.manifest[je.ManifestSection.generic].pages,u,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:v,chartAnnotation:L}=CN(m,b,e.logger);v&&yT.forEach(z=>{n.definitions[z][je.SchemaTag.annotationPath]=Ut(a==null?void 0:a.fullyQualifiedName,v.term,v.qualifier)}),Jo(!1,n,v,a),L&&AN(n,L);let N=(p=(f=a==null?void 0:a.annotations)==null?void 0:f.UI)==null?void 0:p.SelectionFields;if(el(n,N,a),zo(n,a),!m)return k(e.logger,{severity:je.LogSeverity.Error,message:j.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;qo(n,a,m,e.manifest,e.fragments),Ig(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 $n(n,PN),n}r(ts,"generateAnalyticalListReportSchemaV2");function EN(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(EN,"getCardDefinitionNames");function xN(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(c=>i.includes(o[c].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Xi(a,s.CardModel);let l=EN(e);for(let c of l){let f=s[c].properties.model;delete f.type,f.$ref=I+"CardModel"}}r(xN,"addModelsEnum");function PS(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},xN(n,t),n}r(PS,"generateOverviewPageSchemaV2");var Mi=U(B());function Fg(e,t,n,i,o,a){Xe();let s=Zn(e,t),l={templateType:a,fioriElementsVersion:Mi.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ci(o,l.serviceAVT),l.entitySet||k(l.logger,{severity:Mi.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:o})}),l}r(Fg,"prepareGenerationV2");function Lg(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.ListReportObjectPageV2);return Zr(s,e)}r(Lg,"generateObjectPageInterfaceV2");function Ng(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.ListReportObjectPageV2);return es(s,e)}r(Ng,"generateListReportInterfaceV2");function Vg(e,t,n,i,o,a){let s=Fg(n,a,i,o,t,Mi.TemplateType.AnalyticalListPageV2);return ts(s,e)}r(Vg,"generateAnalyticalListPageInterfaceV2");function ns(e,t){return PS(e,t)}r(ns,"generateOVPInterfaceV2");var re=U(B());var as=r(e=>({flexChanges:[],manifest:{[re.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:re.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:re.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function CS(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===re.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(CS,"getClassesForSingleSection");function AS(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],CS(n,i,t),AS(n,t)}}r(AS,"getSubsectionClasses");function ON(e,t,n){let i;for(let o in e.sections)i=t.sections[o],CS(i,o,n),AS(i,n)}r(ON,"getExportClassesForSections");function IN(e,t){let n=da(t.manifest[re.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("NOLR"),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}});return}if(!n.component){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:re.PageTypeV2.ListReport}),location:{path:re.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(IN,"findV2Page");function Dg(e,t){let n=Gs(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Dg,"calculateBaseId");function ES(e,t,n=!1){let i=as(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=IN(a,e),l=new Dt,c=l.createPageInstance(re.PageTypeV2.ListReport,o),f={v2Page:s,exportResults:i,appId:e.appId,baseId:Dg(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(f,c,[],[],e.jsonSchema)}return i}r(ES,"exportListReportPage");function xS(e,t,n=!1){let i=e.page.config,o=as(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=ya(e.manifest[re.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 l=new Dt,c=l.createPageInstance(re.PageTypeV2.AnalyticalListPage,i),f={v2Page:s,exportResults:o,appId:e.appId,baseId:Dg(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(f,c,[],[],e.jsonSchema)}return o}r(xS,"exportAnalyticalListPage");function OS(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=as(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=To(e.manifest[re.ManifestSection.generic].pages,o,s);if(!l)return k(e.logger,{severity:re.LogSeverity.Error,message:j.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}}),a;let c=new Dt,f=c.createPageInstance(re.PageTypeV2.ObjectPage,i);if(i.sections&&ON(i,f,c),Object.keys(i).length!==0){let p={v2Page:l,exportResults:a,appId:e.appId,baseId:Dg(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:re.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ji(p,f,[],[],e.jsonSchema)}}return a}r(OS,"exportObjectPage");var IS=r(e=>{let t=as();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Dt,i=n.createPageInstance(re.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Fr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),FN=r((e,t,n)=>{var s;let i=as();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new pl,e);o.settings=Object.assign(new Ti,e.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let f=c.manifest.path(),p=ft(i.manifest,f);e.settings&&e.settings[l]!==void 0?p[l]=e.settings[l]:(delete p[l],gi(i.manifest,f,!1))}}let a=(s=i.manifest[re.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&rp(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function FS(e,t){if(e[re.SchemaType.ListReport])return ES(e[re.SchemaType.ListReport],t);if(e[re.SchemaType.ObjectPage])return OS(e[re.SchemaType.ObjectPage],t);if(e[re.SchemaType.OverviewPage])return IS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[re.SchemaType.Application];return FN(n,i,o)}else if(e[re.SchemaType.AnalyticalListPage])return xS(e[re.SchemaType.AnalyticalListPage],t)}r(FS,"exportPageV2");function jg(e,t,n=!1){if(e[re.SchemaType.ListReport])return ES(e[re.SchemaType.ListReport],t,n);if(e[re.SchemaType.ObjectPage])return OS(e[re.SchemaType.ObjectPage],t,n);if(e[re.SchemaType.OverviewPage])return IS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.AnalyticalListPage])return xS(e[re.SchemaType.AnalyticalListPage],t,n)}r(jg,"exportConfigEntityByPathV2");var rs=U(B());var LS=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),LN=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function NN(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(NN,"initializeRouting");function VN(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(VN,"setTargetOptions");function DN(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==rs.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(DN,"calculateQueryPattern");function NS(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(l=>n[a].navigation[l].route===i);s&&(t=s,o=n[a])}if(o){NS(e,t,n,a);return}}}r(NS,"fillNavigationParts");function jN(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(jN,"fillParentKeys");function RN(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(VN(n,a,s),s!=null&&s.route&&!i.routes.some(c=>c.name===s.route)){let c=l==null?void 0:l.routePattern;if(!c){let f=[];NS(f,a,t,o);let p=jN(e.routePattern);c=DN(f,l,p)}i.routes.push(LS(c,s.route,s.route))}}}r(RN,"handlePageNavigation");function $N(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($N,"removeDeletedPages");function wN(e,t){var n,i;e.entitySet?(t.options||(t.options=LN(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(wN,"transferEntitySet");function MN(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(MN,"updateRouteLayout");function UN(e,t,n,i){return e.pageType&&e.pageType!==rs.PageTypeV4.CustomPage?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&(t={...t,viewName:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(UN,"fillTarget");function VS(e,t,n){var o,a;let i=NN(n[rs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(LS(":?query:",e,e));for(let s in t){let l,c=t[s];i.targets[s]&&(l=i.targets[s]),l=UN(c,l,s,t),wN(c,l),l&&!c.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(o=l==null?void 0:l.options)==null?void 0:o.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),RN(c,t,l,i,s),MN(i,s,c),i.targets[s]=l}return $N(i,t),i}r(VS,"transformRoutingV4");var Ft=U(B());function DS(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(DS,"updateDependencyLib");function jS(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(jS,"extractLastIdPart");var RS=[Ft.FlexibleColumnLayoutAggregations.BeginColumnPages,Ft.FlexibleColumnLayoutAggregations.MidColumnPages,Ft.FlexibleColumnLayoutAggregations.EndColumnPages],$S=r((e,t,n,i=[],o=0)=>{var f;let a=e.routing.routes.find(p=>p.name===n);if(!a)return;typeof a.target=="string"&&(a.target=o<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(f=t.pages)==null?void 0:f[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:RS[o]?s.controlAggregation=RS[o]:s.controlAggregation=Ft.FlexibleColumnLayoutAggregations.EndColumnPages;let c=a.pattern.replace(":?query:","");if(c?s.contextPattern=c.startsWith("/")?c:`/${c}`:s.contextPattern="",l.navigation){o++;for(let p in l.navigation)$S(e,t,l.navigation[p].route,a.target,o)}},"applyFCLRouting"),kN=r((e,t)=>{e.routing.config.routerClass=Ft.v4.FIORI_FCL_ROUTER_CLASS,$S(e,t,t.home);let n={viewName:Ft.FIORI_FCL_ROOT_VIEW_NAME,type:Ft.ViewTypes.XML,async:!0,id:Ft.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,DS(e,Ft.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),_N=r(e=>{var t;e.rootView&&e.rootView.viewName===Ft.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ft.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),wS=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?kN(e,t):_N(e)},"updateFcl");var $=U(B());var Zc=require("@sap-ux/vocabularies-types/vocabularies/UI");var MS=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],BN=[...MS,"views","initialLoad","template"],HN=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function GN(e,t,n){var s,l,c;let i=`@${Zc.UIAnnotationTerms.LineItem}`,o=`@${Zc.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[$.DefinitionName.TableSPV])==null?void 0:s[$.SchemaTag.annotationPath];if(e.length>1&&t.config.table.annotationPath){let f=(l=t.appSchema.definitions[$.DefinitionName.ALPTable])==null?void 0:l[$.SchemaTag.annotationPath];i=o=f&&f.substr(f.lastIndexOf("@"))}else if((c=n.table)!=null&&c.annotationPath)i=o=`@${n.table.annotationPath}`;else if(e[0]===$.PropertyName.table&&a){let f=a.split("/");i=o=f[f.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:o}}r(GN,"determineTargetAnnotationOfTable");function WN(e,t,n){var a,s;let i,o;if(e.length>1){let l=(a=t.appSchema.definitions[$.DefinitionName.ALPChart])==null?void 0:a[$.SchemaTag.annotationPath];i=o=l&&l.substr(l.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(WN,"determineTargetAnnotationOfChart");function QN(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(I)[1],l=s&&o.appSchema.definitions[s],c=(l==null?void 0:l[$.SchemaTag.annotationPath])&&l[$.SchemaTag.annotationPath].substr(l[$.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${c}`:c}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(QN,"determineTargetAnnotationBasedOnParentView");function KN(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}=QN(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[$.SchemaTag.annotationPath]&&l[$.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let c=l[$.SchemaTag.annotationPath].split("/");return n=i=c[c.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[$.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(KN,"determineTargetAnnotationOfView");function JN(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(JN,"determineTargetAnnotationOfHeaderSections");function qN(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=jS(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(qN,"determineTargetAnnotationOfSections");function XN(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=GN(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=WN(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=qN(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=JN(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=KN(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(XN,"determineTargetAnnotation");function zN(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(zN,"determineKeyForSyncRule");function YN(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(YN,"createNewObjectInManifest");function ZN(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&&(YN(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(ZN,"transferPropertyToManifest");function eV(e,t,n,i,o,a,s){var f,p,u;let l=!1,c=(f=n.appSchema.definitions.MultiTableModeV4)==null?void 0:f.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((p=n.config.table)!=null&&p.views)||e[1]==="views"&&((u=n.config.table)!=null&&u.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&MS.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(c!=null&&c.annotationPath)&&!c.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&BN.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),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return gi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),l}r(eV,"deleteFromManifest");function tV(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:l,targetAnnotation:c,custom:f}=XN(e,n.transferParameters,n.configObject),p=zN(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,p,c,n.configObject),m=ei(n.transferParameters.exportResults.manifest,u,c,f?void 0:l);if(m){let b={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:p};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Bo([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=eV(e,b,n.transferParameters,m,u,c,l):o=ZN(b,n.propertyDefinition,i)}return o}r(tV,"exportManifestChange");function nV(e,t,n){let i=dt(e.configObject,e.key);i!=null&&i.manifest&&tV(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(nV,"evaluateExportRule");function iV(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,$g(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(iV,"transferSubObject");function oV(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=we(e.pageNameArray)+"/views",a=ei(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(oV,"createALPTableView");function aV(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=we(e.transferParameters.pageNameArray)+"/views",o=ei(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)||Zc.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(aV,"createALPChartView");function rV(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=we(t.pageNameArray)+"/views",s=ei(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],o=!0;else{let c=s.paths.findIndex(f=>f.key===i.key||f.key===n);if(c===-1)s.paths.push(l),o=!0;else if(c!==i.index){let f=JSON.parse(JSON.stringify(s.paths[c]));s.paths.splice(c,1),s.paths.splice(e,0,f),o=!0}}return o}r(rV,"createLRTableView");function sV(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 aV(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return oV(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=rV(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(sV,"createNewElement");function lV(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(lV,"isDefinitionTraversable");function Rg(e,t,n,i=!1){var p;let o=e.configObject[e.key],a=Hs(e.configObject,e.key),s=Rn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:c}=sV(e,(p=e.propertyDefinition.$ref)==null?void 0:p.split(I)[1],i),f=a?[...t,a]:[...t,e.key];if(l||nV(e,f,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||lV(e.propertyDefinition)&&s.configObject)&&!c){let u=a?[...n,a]:n;iV(e,s,o,f,u)}}r(Rg,"transferSortedListEntry");function cV(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((l,c)=>l[1]&&l[1].index-c[1].index),s.forEach(l=>{var c;(c=n.properties)!=null&&c[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],Rg(e,i,o),a=!0):typeof l[1]=="object"&&t.forEach(f=>{f.$ref&&(e.key=l[0],e.propertyDefinition=f,Rg(e,i,o),a=!0)}),e.index++})}return a}r(cV,"transferConfigEntriesWithAnyOfDefinitions");function fV(e,t,n,i){let o=Jb(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(fV,"mergeEntriesForInsert");function pV(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(pV,"sortProperties");function uV(e,t,n,i,o,a){var l,c;let s=!1;if(e){let f=e.anyOf;if(!f){let p=(l=e.$ref)==null?void 0:l.split(I)[1];f=p?(c=t.appSchema.definitions[p])==null?void 0:c.anyOf:void 0}s=cV(n,f,i,o,a)}return s}r(uV,"checkIfAnyOfDefinition");function $g(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},c=a.additionalProperties,f=uV(c,e,l,a,n,i),p=pV(a.properties);c!=null&&c.$ref&&fV(e,c,p,t),s=0,p&&p.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!Bo(o,e.entityPathArray)||(l.key=u[0],l.propertyDefinition=u[1],l.index=s,Rg(l,n,i,f),u[1].$ref&&s++)})}r($g,"transferManifestEntriesAndFlexChange");function US(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(US,"getClassesForSingleSection");function kS(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],US(n,i,t),kS(n,t)}}r(kS,"getSubsectionClasses");function dV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],US(e,o,n),kS(i,n)}r(dV,"getExportClassesForSections");function _S(e,t){let n=Gs(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(_S,"calculateBaseId");var BS=r((e,t,n=!1)=>{var l;let i=HN(e.manifest),o=new fi,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[$.PropertyName.sections]&&dV(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:_S(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 $g(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),gV=r((e,t,n,i,o,a,s=!1)=>{var v,L;let l=$.defaultExportResult;l.manifest=JSON.parse(JSON.stringify(e.manifest));let c=e.jsonSchema,f=(v=n.table)!=null&&v[$.PropertyName.annotationPath]?$.DefinitionName.ALPTableView:$.DefinitionName.Table,p=n.table=t.createInstance(i,f,n.table),u=$.DefinitionName.LineItems;c.definitions[$.DefinitionName.TableSPV]&&(u=c.definitions[$.DefinitionName.TableSPV].properties.columns.$ref.split(I)[1]);let m=c.definitions[`${$.DefinitionName.Actions}<${u}>`];if((L=p.toolBar)!=null&&L.actions&&m)for(let N in m.properties)p.toolBar.actions[N]=t.createInstance(i,$.DefinitionName.ToolBarAction,p.toolBar.actions[N]);let b={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:_S(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 $g(b,n,[],[],[],c),l},"exportListPage"),wg=r((e,t,n,i=!1)=>{let o=new fi,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return gV(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),HS=r((e,t,n=!1)=>wg(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),mV=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Ic,e);o.settings=Object.assign(new ba,o.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let f=c.manifest.path(),p=ei(i.manifest,f);if(((a=e.settings)==null?void 0:a[l])!==void 0)p[l]=e.settings[l];else{let u=ei(i.manifest,f);((s=e.settings)==null?void 0:s[l])!==void 0?u[l]=e.settings[l]:l in u&&(delete u[l],gi(i.manifest,f,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=VS(e.home,e.pages,i.manifest),wS(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),GS=r((e,t)=>{if(e[$.SchemaType.ListReport])return wg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return BS(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return mV(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return HS(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),Mg=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return wg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return BS(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return HS(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function yV(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:l,logger:c}=n[Z.SchemaType.ListReport];t=Ng(i,o,a,s,l,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ObjectPage];t=Lg(i,o,a,s,l,c)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=ns(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.AnalyticalListPage];t=Vg(i,o,a,s,l,c)}}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:l}=n[Z.SchemaType.ListReport];t=Oc(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:l,fragments:c}=n[Z.SchemaType.ObjectPage];t=gd(i,o,a,s,l,c)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.AnalyticalListPage];t=Oc(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.FreestylePage];t=md(Z.TemplateType.FreestylePageV4,i,a,l,o,s)}}return t}r(yV,"generateSchema");function hV(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=FS(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=GS(i,n)}return t}r(hV,"exportConfig");function bV(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=jg(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Mg(i,n)}return t}r(bV,"exportConfigEntityByPath");function TV(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=jg(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Mg(i,n,!0)}return t}r(TV,"deleteConfigEntityByPath");function vV(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=yc(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Tc(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Pc(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=hc(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Oo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=Xc(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Oo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(vV,"importConfig");async function SV(e){return Og(e)}r(SV,"importProject");async function PV(e){return xg(e)}r(PV,"importProjectSchema");function CV(){return{version:"20",moduleVersion:UT.version}}r(CV,"getApiVersion");var un=require("path"),Ui=require("fs");var xa=r(async e=>new Promise((t,n)=>{(0,Ui.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),AV=r(async e=>JSON.parse(await xa(e)),"readJSON"),Ug=r(async e=>new Promise((t,n)=>{(0,Ui.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),EV=r(async e=>new Promise(t=>{(0,Ui.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),WS=r(async e=>new Promise(t=>{(0,Ui.exists)(e,n=>{t(n)})}),"resourceExists"),xV=r(async e=>AV((0,un.join)(e,"manifest.json")),"getManifest"),QS=r(async e=>{let t=[],n=(0,un.join)(e,"changes");if(!await WS(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Ug(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await xa((0,un.join)(n,a)));return t},"getChanges"),OV=r(async e=>{let t=[],n=(0,un.join)(e,"ext","fragments");if(!await WS(n))return t;let i=await Ug(n);for(let o of i){let a=(0,un.join)(n,o),s=await xa(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),IV=r(async(e,t)=>{var o,a,s,l,c,f,p,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,un.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await xa(m)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let m of i.mainService.settings.annotations)if((p=(f=i[m])==null?void 0:f.settings)!=null&&p.localUri){let b=(0,un.join)(t,i[m].settings.localUri);n.push({dataSourceUri:b,fileContent:await xa(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 v=(0,un.join)(t,b.settings.localUri);n.push({dataSourceUri:v,fileContent:await xa(v)})}}return n},"getAnnotations"),FV=r(async e=>{let t=(0,un.basename)(e),n=(0,un.join)(e,"webapp"),i=await xV(n),o=await IV(i,n),a=await QS(n),s=await OV(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");_i(Xt,U(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: