@sap/ux-specification 1.71.111 → 1.71.113

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 (27) hide show
  1. package/CHANGELOG.md +42 -1
  2. package/dist/documentation/runDocu-min.js +5 -5
  3. package/dist/documentation/runDocu-min.js.map +2 -2
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  5. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  6. package/dist/documentation/v2/v2-ListReport.html +2 -2
  7. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  8. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  9. package/dist/index-min.js +26 -26
  10. package/dist/index-min.js.map +3 -3
  11. package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -21
  12. package/dist/schemas/v2/ListReportConfig.json +4 -28
  13. package/dist/specification/package.json +4 -4
  14. package/dist/specification/src/api.d.ts.map +1 -1
  15. package/dist/specification/src/api.js +6 -1
  16. package/dist/specification/src/api.js.map +1 -1
  17. package/dist/specification/src/sync/common/dist_tag.json +9 -1
  18. package/dist/specification/src/sync/v2/export/controls/Table.d.ts +0 -1
  19. package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  20. package/dist/specification/src/sync/v2/export/controls/Table.js +0 -9
  21. package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
  22. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  23. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +3 -2
  24. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  25. package/dist/types/src/v2/controls/Table.d.ts +0 -3
  26. package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
  27. package/package.json +4 -4
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var Ym=Object.create;var xi=Object.defineProperty;var mf=Object.getOwnPropertyDescriptor;var Zm=Object.getOwnPropertyNames;var ey=Object.getPrototypeOf,ty=Object.prototype.hasOwnProperty;var s=(e,t)=>xi(e,"name",{value:t,configurable:!0});var Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),So=(e,t)=>{for(var n in t)xi(e,n,{get:t[n],enumerable:!0})},xo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Zm(t))!ty.call(e,r)&&r!==n&&xi(e,r,{get:()=>t[r],enumerable:!(i=mf(t,r))||i.enumerable});return e},Jn=(e,t,n)=>(xo(e,t,"default"),n&&xo(n,t,"default")),B=(e,t,n)=>(n=e!=null?Ym(ey(e)):{},xo(t||!e||!e.__esModule?xi(n,"default",{value:e,enumerable:!0}):n,e)),ny=e=>xo(xi({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?mf(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(r=(i?a(t,n,r):a(r))||r);return i&&r&&xi(t,n,r),r};var vu=Ae((MS,Tu)=>{var ds=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,ry=Object.getOwnPropertyNames,oy=Object.prototype.hasOwnProperty,yf=s((e,t)=>{for(var n in t)ds(e,n,{get:t[n],enumerable:!0})},"u"),ay=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ry(t))!oy.call(e,r)&&r!==n&&ds(e,r,{get:()=>t[r],enumerable:!(i=iy(t,r))||i.enumerable});return e},"Ce"),sy=s(e=>ay(ds({},"__esModule",{value:!0}),e),"Te"),hf={};yf(hf,{ALPViewType:()=>Pf,ActionTitlePrefix:()=>uy,ActionType:()=>If,ArtifactType:()=>Ef,BindingPropertyRegexAsString:()=>dy,ChangeIndicator:()=>jf,ControlType:()=>Of,DataSourceType:()=>Gf,DefinitionName:()=>$f,DirName:()=>Lf,DraftDiscardEnabledSettings:()=>kf,ExportArtifacts:()=>Sf,ExportType:()=>Nf,FIORI_FCL_ROOT_ID:()=>Ey,FIORI_FCL_ROOT_VIEW_NAME:()=>Ay,FRAGMENTNAMEPART:()=>Sy,FacetBase:()=>Df,FacetTitlePrefix:()=>fy,Features:()=>zf,FileName:()=>Vf,FioriElementsVersion:()=>bf,FlexChangeLayer:()=>Cf,FlexibleColumnLayoutAggregations:()=>Hf,FlexibleColumnLayoutType:()=>vf,GENERICAPPSETTINGS:()=>Py,LogSeverity:()=>Jf,LogSeverityLabel:()=>Fy,MANIFESTPATH:()=>gy,ManifestSection:()=>Kf,OdataVersion:()=>Tf,PACKAGEJSON:()=>my,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>cy,PageType:()=>ly,PageTypeV2:()=>gs,PropertyName:()=>Rf,QUICKVARPATH:()=>Cy,QUICKVARPATHX:()=>xy,SAPUI5_FRAGMENT_CLASS:()=>Oy,SAPUI5_VIEW_CLASS:()=>Iy,SchemaKeyName:()=>Mf,SchemaTag:()=>_f,SchemaType:()=>xf,SectionType:()=>Af,StatePreservationMode:()=>Uf,TableColumnVerticalAlignment:()=>Bf,TemplateType:()=>Qf,UIVOCABULARY:()=>by,UIVOCABULARYALPHADOT:()=>vy,UIVOCABULARYDOT:()=>Ty,VOCWITHCOLONS:()=>hy,VOCWITHSLASH:()=>yy,ViewTemplateType:()=>wf,ViewTypes:()=>Wf,Visualization:()=>Ff,defaultExportResult:()=>py,v2:()=>qf});Tu.exports=sy(hf);var gs=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(gs||{}),ly={...gs},cy=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"]]),bf=(e=>(e.v2="v2",e.v4="v4",e))(bf||{}),Tf=(e=>(e.v2="v2",e.v4="v4",e))(Tf||{}),vf=(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))(vf||{}),Cf=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Cf||{}),xf=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(xf||{}),Sf=(e=>(e.flex="flex",e.manifest="manifest",e))(Sf||{}),Pf=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Pf||{}),Af=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Af||{}),Ef=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Ef||{}),If=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(If||{}),Of=(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))(Of||{}),Ff=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Ff||{}),Nf=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(Nf||{}),Lf=(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))(Lf||{}),Vf=(e=>(e.App="app.json",e))(Vf||{}),fy="Facet ID: ",uy="Action ID: ",jf=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(jf||{}),py={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Df=(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))(Df||{}),dy="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",wf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(wf||{}),$f=(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.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.Footer="Footer",e.FooterAction="FooterAction",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.SectionActions="SectionActions",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.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",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.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.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.SaveAndEdit="SaveAndEdit",e))($f||{}),Rf=(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))(Rf||{}),_f=(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))(_f||{}),Mf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Mf||{}),gy="webapp/manifest.json",my="package.json",yy="/@com.sap.vocabularies",hy="::@com.sap.vocabularies",by="com.sap.vocabularies.UI.v1",Ty="com.sap.vocabularies.UI.v1.",vy="@com.sap.vocabularies.UI.v1.",Cy="/quickVariantSelection",xy="/quickVariantSelectionX",Sy=".fragment.",kf=(e=>(e.restricted="restricted",e))(kf||{}),Bf=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Bf||{}),Uf=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Uf||{}),Hf=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Hf||{}),Gf=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Gf||{}),Kf=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Kf||{}),Py="sap.ui.generic.app/settings",Ay="sap.fe.templates.RootContainer.view.Fcl",Ey="appRootView",Wf=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Wf||{}),Iy="sap.ui.core.mvc.View",Oy="sap.ui.core.Fragment",Jf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Jf||{}),Fy={error:"Error",warning:"Warning",info:"Information"},Qf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Qf||{}),zf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(zf||{}),qf={};yf(qf,{AvatarShape:()=>gu,ButtonType:()=>Xf,CardSettingsType:()=>eu,CardTemplateType:()=>Zf,ChartCardType:()=>Yf,ChartType:()=>du,ContainerLayoutType:()=>bu,CreateMode:()=>hu,DefaultContentView:()=>uu,DefaultFilterMode:()=>pu,ExtensionFragmentTypes:()=>yu,FE_TEMPLATE_V2:()=>Vy,FE_TEMPLATE_V2_ALP:()=>wy,FE_TEMPLATE_V2_LIST_REPORT:()=>Dy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>jy,HAlign:()=>ou,LinkListFlavorType:()=>ru,ListFlavorType:()=>tu,ListTypeType:()=>nu,PopinLayout:()=>cu,SAPUI5_CONTROLLER_EXTENSION:()=>Ry,SAPUI5_VIEW_EXTENSION:()=>$y,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>ky,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>My,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>_y,SectionPosition:()=>mu,SortOrderType:()=>iu,Strategy:()=>fu,TableColumnExtensionTypeV2:()=>lu,TableTypeV2:()=>su,cardTemplateSettingsMap:()=>Ly,cardTemplateTypeMap:()=>Ny,customColumnViewTypes:()=>au});var Xf=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Xf||{}),Yf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Yf||{}),Zf=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Zf||{}),Ny={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},Ly={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(eu||{}),tu=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(tu||{}),nu=(e=>(e.extended="extended",e.condensed="condensed",e))(nu||{}),iu=(e=>(e.ascending="ascending",e.descending="descending",e))(iu||{}),ru=(e=>(e.standard="standard",e.carousel="carousel",e))(ru||{}),ou=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(ou||{}),au=(e=>(e.XML="XML",e))(au||{}),su=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(su||{}),lu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(lu||{}),cu=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(cu||{}),fu=(e=>(e.extension="extension",e))(fu||{}),uu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(uu||{}),pu=(e=>(e.visual="visual",e.compact="compact",e))(pu||{}),du=(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))(du||{}),gu=(e=>(e.Circle="Circle",e.Square="Square",e))(gu||{}),mu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(mu||{}),yu=(e=>(e.XML="XML",e))(yu||{}),hu=(e=>(e.inline="inline",e))(hu||{}),Vy="sap.suite.ui.generic.template",jy="sap.suite.ui.generic.template.ObjectPage",Dy="sap.suite.ui.generic.template.ListReport",wy="sap.suite.ui.generic.template.AnalyticalListPage",$y="sap.ui.viewExtensions",Ry="sap.ui.controllerExtensions",_y="sap.suite.ui.generic.template.ObjectPage.view.Details",My="sap.suite.ui.generic.template.ListReport.view.ListReport",ky="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",bu=(e=>(e.fixed="fixed",e.resizable="resizable",e))(bu||{})});var Pu=Ae(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Features=Ht.TemplateType=Ht.LogSeverityLabel=Ht.LogSeverity=void 0;var Cu;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Cu||(Ht.LogSeverity=Cu={}));Ht.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var xu;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(xu||(Ht.TemplateType=xu={}));var Su;(function(e){e.BuildingBlocks="BuildingBlocks"})(Su||(Ht.Features=Su={}))});var zu=Ae((US,Qu)=>{var ms=Object.defineProperty,By=Object.getOwnPropertyDescriptor,Uy=Object.getOwnPropertyNames,Hy=Object.prototype.hasOwnProperty,Gy=s((e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},"R"),Ky=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Uy(t))!Hy.call(e,r)&&r!==n&&ms(e,r,{get:()=>t[r],enumerable:!(i=By(t,r))||i.enumerable});return e},"h"),Wy=s(e=>Ky(ms({},"__esModule",{value:!0}),e),"N"),Au={};Gy(Au,{AvatarShape:()=>Hu,ButtonType:()=>Eu,CardSettingsType:()=>Fu,CardTemplateType:()=>Ou,ChartCardType:()=>Iu,ChartType:()=>Uu,ContainerLayoutType:()=>Ju,CreateMode:()=>Wu,DefaultContentView:()=>ku,DefaultFilterMode:()=>Bu,ExtensionFragmentTypes:()=>Ku,FE_TEMPLATE_V2:()=>zy,FE_TEMPLATE_V2_ALP:()=>Yy,FE_TEMPLATE_V2_LIST_REPORT:()=>Xy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>qy,HAlign:()=>Du,LinkListFlavorType:()=>ju,ListFlavorType:()=>Nu,ListTypeType:()=>Lu,PopinLayout:()=>_u,SAPUI5_CONTROLLER_EXTENSION:()=>eh,SAPUI5_VIEW_EXTENSION:()=>Zy,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>ih,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>nh,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>th,SectionPosition:()=>Gu,SortOrderType:()=>Vu,Strategy:()=>Mu,TableColumnExtensionTypeV2:()=>Ru,TableTypeV2:()=>$u,cardTemplateSettingsMap:()=>Qy,cardTemplateTypeMap:()=>Jy,customColumnViewTypes:()=>wu});Qu.exports=Wy(Au);var Eu=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Eu||{}),Iu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Iu||{}),Ou=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Ou||{}),Jy={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},Qy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Fu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Fu||{}),Nu=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Nu||{}),Lu=(e=>(e.extended="extended",e.condensed="condensed",e))(Lu||{}),Vu=(e=>(e.ascending="ascending",e.descending="descending",e))(Vu||{}),ju=(e=>(e.standard="standard",e.carousel="carousel",e))(ju||{}),Du=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Du||{}),wu=(e=>(e.XML="XML",e))(wu||{}),$u=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($u||{}),Ru=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Ru||{}),_u=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(_u||{}),Mu=(e=>(e.extension="extension",e))(Mu||{}),ku=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(ku||{}),Bu=(e=>(e.visual="visual",e.compact="compact",e))(Bu||{}),Uu=(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))(Uu||{}),Hu=(e=>(e.Circle="Circle",e.Square="Square",e))(Hu||{}),Gu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Gu||{}),Ku=(e=>(e.XML="XML",e))(Ku||{}),Wu=(e=>(e.inline="inline",e))(Wu||{}),zy="sap.suite.ui.generic.template",qy="sap.suite.ui.generic.template.ObjectPage",Xy="sap.suite.ui.generic.template.ListReport",Yy="sap.suite.ui.generic.template.AnalyticalListPage",Zy="sap.ui.viewExtensions",eh="sap.ui.controllerExtensions",th="sap.suite.ui.generic.template.ObjectPage.view.Details",nh="sap.suite.ui.generic.template.ListReport.view.ListReport",ih="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ju=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ju||{})});var W=Ae(dt=>{"use strict";var qu=dt&&dt.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),rh=dt&&dt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xu=dt&&dt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qu(t,e,n)},oh=dt&&dt.__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)&&qu(t,e,n);return rh(t,e),t};Object.defineProperty(dt,"__esModule",{value:!0});dt.v2=void 0;Xu(vu(),dt);Xu(Pu(),dt);dt.v2=oh(zu())});var Vs=Ae((sP,cp)=>{"use strict";var Ph=s(function(t){return Ah(t)&&!Eh(t)},"isMergeableObject");function Ah(e){return!!e&&typeof e=="object"}s(Ah,"isNonNullObject");function Eh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fh(e)}s(Eh,"isSpecial");var Ih=typeof Symbol=="function"&&Symbol.for,Oh=Ih?Symbol.for("react.element"):60103;function Fh(e){return e.$$typeof===Oh}s(Fh,"isReactElement");function Nh(e){return Array.isArray(e)?[]:{}}s(Nh,"emptyTarget");function sr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ei(Nh(e),e,t):e}s(sr,"cloneUnlessOtherwiseSpecified");function Lh(e,t,n){return e.concat(t).map(function(i){return sr(i,n)})}s(Lh,"defaultArrayMerge");function Vh(e,t){if(!t.customMerge)return Ei;var n=t.customMerge(e);return typeof n=="function"?n:Ei}s(Vh,"getMergeFunction");function jh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}s(jh,"getEnumerableOwnPropertySymbols");function sp(e){return Object.keys(e).concat(jh(e))}s(sp,"getKeys");function lp(e,t){try{return t in e}catch{return!1}}s(lp,"propertyIsOnObject");function Dh(e,t){return lp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}s(Dh,"propertyIsUnsafe");function wh(e,t,n){var i={};return n.isMergeableObject(e)&&sp(e).forEach(function(r){i[r]=sr(e[r],n)}),sp(t).forEach(function(r){Dh(e,r)||(lp(e,r)&&n.isMergeableObject(t[r])?i[r]=Vh(r,n)(e[r],t[r],n):i[r]=sr(t[r],n))}),i}s(wh,"mergeObject");function Ei(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Lh,n.isMergeableObject=n.isMergeableObject||Ph,n.cloneUnlessOtherwiseSpecified=sr;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):wh(e,t,n):sr(t,n)}s(Ei,"deepmerge");Ei.all=s(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ei(i,r,n)},{})},"deepmergeAll");var $h=Ei;cp.exports=$h});var jo=Ae(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var Rh=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:function(){return Rh.EnumIsFlag}});var _h=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:function(){return _h.TermToTypes}});var Mh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:function(){return Mh.VocabularyReferences}});function fp(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}s(fp,"splitAt");function up(e,t){return t<0?e:e.substring(0,t)}s(up,"substringAt");function Vo(e,t){return fp(e,e.indexOf(t))}s(Vo,"splitAtFirst");be.splitAtFirst=Vo;function pp(e,t){return fp(e,e.lastIndexOf(t))}s(pp,"splitAtLast");be.splitAtLast=pp;function kh(e,t){return up(e,e.indexOf(t))}s(kh,"substringBeforeFirst");be.substringBeforeFirst=kh;function Bh(e,t){return up(e,e.lastIndexOf(t))}s(Bh,"substringBeforeLast");be.substringBeforeLast=Bh;function dp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,a)=>(o[a.namespace]=a,o),{})),!t)return t;let[n,i]=pp(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,a]=Vo(t,"@");return`${o}@${dp(e,a)}`}else return t}s(dp,"alias");be.alias=dp;function js(e,t,n){var i;let r=s(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[a,l]=Vo(o,".");if(!l||l.includes("."))return o;let c=a.startsWith("@"),f=c?a.substring(1):a,u=e.referenceMap[f];return u?c?`@${u.namespace}.${l}`:`${u.namespace}.${l}`:n&&!c?`${n}.${l}`:o},"_unalias");return(i=t==null?void 0:t.split("/").reduce((o,a)=>{let[l,c]=Vo(a,"("),f=[r(l)];if(c){let u=c.slice(0,-1);f.push(`(${r(u)})`)}return o.push(f.join("")),o},[]))===null||i===void 0?void 0:i.join("/")}s(js,"unalias");be.unalias=js;function Uh(e){return!!e&&e._type==="ComplexType"&&!!e.properties}s(Uh,"isComplexTypeDefinition");be.isComplexTypeDefinition=Uh;function Hh(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}s(Hh,"Decimal");be.Decimal=Hh;function Gh(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(o){r=o}})}s(Gh,"lazy");be.lazy=Gh;function gp(e,t){let n=new Map;return s(function(r){let o=n.get(r);return(o==null?void 0:o[t])===r?o:e.find(a=>{if(!(a!=null&&a.hasOwnProperty(t)))return!1;let l=a[t];return n.set(l,a),l===r})},"find")}s(gp,"createIndexedFind");be.createIndexedFind=gp;function Kh(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:gp(e,t)});else throw new Error(`Property '${n}' already exists`);return e}s(Kh,"addGetByValue");be.addGetByValue=Kh;function Wh(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:a,annotations:l}of r){let c=(o=js(e,a))!==null&&o!==void 0?o:a;n[c]||(n[c]=[]);let f=l.map(u=>{var p;return u.term=(p=js(e,u.term))!==null&&p!==void 0?p:u.term,u.fullyQualifiedName=u.qualifier?`${c}@${u.term}#${u.qualifier}`:`${c}@${u.term}`,u.__source=i,u}).filter(u=>!n[c].some(p=>p.term===u.term&&p.qualifier===u.qualifier));n[c].push(...f)}return n},{})}s(Wh,"mergeAnnotations");be.mergeAnnotations=Wh});var Op=Ae(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.convert=void 0;var lr=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),k=jo(),wt=Symbol("Annotation Target");function nn(e,t){return e[e.length-1]!==t&&e.push(t),e}s(nn,"appendObjectPath");function xt(e,t,n,i){var r,o,a,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((p,g)=>{if(g.includes("@")){let[b,x]=(0,k.splitAtFirst)(g,"@");p.push(b),p.push(`@${x}`)}else p.push(g);return p},[]);if(t===void 0)f[0].startsWith(`${e.rawSchema.namespace}.`)&&f[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(a=(o=e.getConvertedEntityType(f[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(f[0]))!==null&&a!==void 0?a:e.getConvertedAction(f[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${f[0]}()`),f.shift()):t=e.getConvertedEntityContainer();else if(t[wt]!==void 0)t=t[wt];else if(t._type==="Property"){let p=(0,k.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let u=f.reduce((p,g)=>{var b,x,I,L,U;let te=s(re=>(p.messages.push({message:re}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=nn(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[re,oe]=e.splitTerm(g),J=(b=p.target.annotations[re.substring(1)])===null||b===void 0?void 0:b[oe];return J!==void 0?(p.target=J,p):te(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let re;if(g==="$AnnotationPath"?re=p.target.value:g==="$Path"&&(re=p.target.path),re!==void 0){let oe=xt(e,p.target[wt],re);return oe.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=nn(p.objectPath,J))}),p.target=oe.target,p.objectPath=nn(p.objectPath,p.target),p}}switch((x=p.target)===null||x===void 0?void 0:x._type){case"Schema":break;case"EntityContainer":{let J=p.target;if(g===""||e.unalias(g)===J.fullyQualifiedName)return p;let le=(L=(I=J.entitySets.by_name(g))!==null&&I!==void 0?I:J.singletons.by_name(g))!==null&&L!==void 0?L:J.actionImports.by_name(g);if(le)return p.target=le,p}break;case"EntitySet":case"Singleton":{let J=p.target;if(g===""||g==="$Type")return p.target=J.entityType,p;if(g==="$")return p;if(g==="$NavigationPropertyBinding"){let Se=J.navigationPropertyBinding;return p.target=Se,p}let le=xt(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(nn,p.objectPath),p}case"EntityType":{let J=p.target;if(g===""||g==="$Type")return p;let le=J.entityProperties.by_name(g);if(le)return p.target=le,p;let Se=J.navigationProperties.by_name(g);if(Se)return p.target=Se,p;let C=(0,k.substringBeforeFirst)(e.unalias(g),"("),Zt=J.actions[C];if(Zt)return p.target=Zt,p}break;case"ActionImport":{let J=xt(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(nn,p.objectPath),p}case"Action":{let J=p.target;if(g===""||g==="@$ui5.overload"||g==="0")return p;if(g==="$Parameter"&&J.isBound)return p.target=J.parameters,p;let le=(U=J.parameters[g])!==null&&U!==void 0?U:J.parameters.find(Se=>Se.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Se=le.properties.by_name(g);if(Se)return p.target=Se,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let re=p.target.typeReference;if(re!==void 0){let J=xt(e,re,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(nn,p.objectPath),p}break;case"NavigationProperty":let oe=xt(e,p.target.targetType,g);return p.target=oe.target,p.objectPath=oe.objectPath.reduce(nn,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=nn(p.objectPath,p.target),p}return te(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(p=>e.logError(p.message)),!u.target)if(i){let p=Tp(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var ey=Object.create;var xi=Object.defineProperty;var mf=Object.getOwnPropertyDescriptor;var ty=Object.getOwnPropertyNames;var ny=Object.getPrototypeOf,iy=Object.prototype.hasOwnProperty;var o=(e,t)=>xi(e,"name",{value:t,configurable:!0});var Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),So=(e,t)=>{for(var n in t)xi(e,n,{get:t[n],enumerable:!0})},xo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ty(t))!iy.call(e,r)&&r!==n&&xi(e,r,{get:()=>t[r],enumerable:!(i=mf(t,r))||i.enumerable});return e},Jn=(e,t,n)=>(xo(e,t,"default"),n&&xo(n,t,"default")),U=(e,t,n)=>(n=e!=null?ey(ny(e)):{},xo(t||!e||!e.__esModule?xi(n,"default",{value:e,enumerable:!0}):n,e)),ry=e=>xo(xi({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?mf(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&xi(t,n,r),r};var vu=Ae((kS,Tu)=>{var ds=Object.defineProperty,oy=Object.getOwnPropertyDescriptor,ay=Object.getOwnPropertyNames,sy=Object.prototype.hasOwnProperty,yf=o((e,t)=>{for(var n in t)ds(e,n,{get:t[n],enumerable:!0})},"u"),ly=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ay(t))!sy.call(e,r)&&r!==n&&ds(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=oy(t,r))||i.enumerable});return e},"Ce"),cy=o(e=>ly(ds({},"__esModule",{value:!0}),e),"Te"),hf={};yf(hf,{ALPViewType:o(()=>Pf,"ALPViewType"),ActionTitlePrefix:o(()=>dy,"ActionTitlePrefix"),ActionType:o(()=>If,"ActionType"),ArtifactType:o(()=>Ef,"ArtifactType"),BindingPropertyRegexAsString:o(()=>my,"BindingPropertyRegexAsString"),ChangeIndicator:o(()=>jf,"ChangeIndicator"),ControlType:o(()=>Of,"ControlType"),DataSourceType:o(()=>Gf,"DataSourceType"),DefinitionName:o(()=>$f,"DefinitionName"),DirName:o(()=>Lf,"DirName"),DraftDiscardEnabledSettings:o(()=>kf,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>Sf,"ExportArtifacts"),ExportType:o(()=>Nf,"ExportType"),FIORI_FCL_ROOT_ID:o(()=>Oy,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>Iy,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>Ay,"FRAGMENTNAMEPART"),FacetBase:o(()=>Df,"FacetBase"),FacetTitlePrefix:o(()=>py,"FacetTitlePrefix"),Features:o(()=>zf,"Features"),FileName:o(()=>Vf,"FileName"),FioriElementsVersion:o(()=>bf,"FioriElementsVersion"),FlexChangeLayer:o(()=>Cf,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>Hf,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>vf,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>Ey,"GENERICAPPSETTINGS"),LogSeverity:o(()=>Jf,"LogSeverity"),LogSeverityLabel:o(()=>Ly,"LogSeverityLabel"),MANIFESTPATH:o(()=>yy,"MANIFESTPATH"),ManifestSection:o(()=>Kf,"ManifestSection"),OdataVersion:o(()=>Tf,"OdataVersion"),PACKAGEJSON:o(()=>hy,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>uy,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>fy,"PageType"),PageTypeV2:o(()=>gs,"PageTypeV2"),PropertyName:o(()=>Rf,"PropertyName"),QUICKVARPATH:o(()=>Sy,"QUICKVARPATH"),QUICKVARPATHX:o(()=>Py,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>Ny,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>Fy,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>Mf,"SchemaKeyName"),SchemaTag:o(()=>_f,"SchemaTag"),SchemaType:o(()=>xf,"SchemaType"),SectionType:o(()=>Af,"SectionType"),StatePreservationMode:o(()=>Bf,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>Uf,"TableColumnVerticalAlignment"),TemplateType:o(()=>Qf,"TemplateType"),UIVOCABULARY:o(()=>vy,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>xy,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>Cy,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>Ty,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>by,"VOCWITHSLASH"),ViewTemplateType:o(()=>wf,"ViewTemplateType"),ViewTypes:o(()=>Wf,"ViewTypes"),Visualization:o(()=>Ff,"Visualization"),defaultExportResult:o(()=>gy,"defaultExportResult"),v2:o(()=>qf,"v2")});Tu.exports=cy(hf);var gs=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(gs||{}),fy={...gs},uy=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"]]),bf=(e=>(e.v2="v2",e.v4="v4",e))(bf||{}),Tf=(e=>(e.v2="v2",e.v4="v4",e))(Tf||{}),vf=(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))(vf||{}),Cf=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Cf||{}),xf=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(xf||{}),Sf=(e=>(e.flex="flex",e.manifest="manifest",e))(Sf||{}),Pf=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Pf||{}),Af=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Af||{}),Ef=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Ef||{}),If=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(If||{}),Of=(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))(Of||{}),Ff=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Ff||{}),Nf=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(Nf||{}),Lf=(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))(Lf||{}),Vf=(e=>(e.App="app.json",e))(Vf||{}),py="Facet ID: ",dy="Action ID: ",jf=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(jf||{}),gy={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Df=(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))(Df||{}),my="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",wf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(wf||{}),$f=(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.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.Footer="Footer",e.FooterAction="FooterAction",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.SectionActions="SectionActions",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.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",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.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.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.SaveAndEdit="SaveAndEdit",e))($f||{}),Rf=(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))(Rf||{}),_f=(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))(_f||{}),Mf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Mf||{}),yy="webapp/manifest.json",hy="package.json",by="/@com.sap.vocabularies",Ty="::@com.sap.vocabularies",vy="com.sap.vocabularies.UI.v1",Cy="com.sap.vocabularies.UI.v1.",xy="@com.sap.vocabularies.UI.v1.",Sy="/quickVariantSelection",Py="/quickVariantSelectionX",Ay=".fragment.",kf=(e=>(e.restricted="restricted",e))(kf||{}),Uf=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Uf||{}),Bf=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Bf||{}),Hf=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Hf||{}),Gf=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Gf||{}),Kf=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Kf||{}),Ey="sap.ui.generic.app/settings",Iy="sap.fe.templates.RootContainer.view.Fcl",Oy="appRootView",Wf=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Wf||{}),Fy="sap.ui.core.mvc.View",Ny="sap.ui.core.Fragment",Jf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Jf||{}),Ly={error:"Error",warning:"Warning",info:"Information"},Qf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Qf||{}),zf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(zf||{}),qf={};yf(qf,{AvatarShape:o(()=>gu,"AvatarShape"),ButtonType:o(()=>Xf,"ButtonType"),CardSettingsType:o(()=>eu,"CardSettingsType"),CardTemplateType:o(()=>Zf,"CardTemplateType"),ChartCardType:o(()=>Yf,"ChartCardType"),ChartType:o(()=>du,"ChartType"),ContainerLayoutType:o(()=>bu,"ContainerLayoutType"),CreateMode:o(()=>hu,"CreateMode"),DefaultContentView:o(()=>uu,"DefaultContentView"),DefaultFilterMode:o(()=>pu,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>yu,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Dy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>Ry,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>$y,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>wy,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>ou,"HAlign"),LinkListFlavorType:o(()=>ru,"LinkListFlavorType"),ListFlavorType:o(()=>tu,"ListFlavorType"),ListTypeType:o(()=>nu,"ListTypeType"),PopinLayout:o(()=>cu,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>My,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>_y,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>By,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>Uy,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>ky,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>mu,"SectionPosition"),SortOrderType:o(()=>iu,"SortOrderType"),Strategy:o(()=>fu,"Strategy"),TableColumnExtensionTypeV2:o(()=>lu,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>su,"TableTypeV2"),cardTemplateSettingsMap:o(()=>jy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Vy,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>au,"customColumnViewTypes")});var Xf=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Xf||{}),Yf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Yf||{}),Zf=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Zf||{}),Vy={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},jy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(eu||{}),tu=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(tu||{}),nu=(e=>(e.extended="extended",e.condensed="condensed",e))(nu||{}),iu=(e=>(e.ascending="ascending",e.descending="descending",e))(iu||{}),ru=(e=>(e.standard="standard",e.carousel="carousel",e))(ru||{}),ou=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(ou||{}),au=(e=>(e.XML="XML",e))(au||{}),su=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(su||{}),lu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(lu||{}),cu=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(cu||{}),fu=(e=>(e.extension="extension",e))(fu||{}),uu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(uu||{}),pu=(e=>(e.visual="visual",e.compact="compact",e))(pu||{}),du=(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))(du||{}),gu=(e=>(e.Circle="Circle",e.Square="Square",e))(gu||{}),mu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(mu||{}),yu=(e=>(e.XML="XML",e))(yu||{}),hu=(e=>(e.inline="inline",e))(hu||{}),Dy="sap.suite.ui.generic.template",wy="sap.suite.ui.generic.template.ObjectPage",$y="sap.suite.ui.generic.template.ListReport",Ry="sap.suite.ui.generic.template.AnalyticalListPage",_y="sap.ui.viewExtensions",My="sap.ui.controllerExtensions",ky="sap.suite.ui.generic.template.ObjectPage.view.Details",Uy="sap.suite.ui.generic.template.ListReport.view.ListReport",By="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",bu=(e=>(e.fixed="fixed",e.resizable="resizable",e))(bu||{})});var Pu=Ae(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Features=Ht.TemplateType=Ht.LogSeverityLabel=Ht.LogSeverity=void 0;var Cu;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Cu||(Ht.LogSeverity=Cu={}));Ht.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var xu;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(xu||(Ht.TemplateType=xu={}));var Su;(function(e){e.BuildingBlocks="BuildingBlocks"})(Su||(Ht.Features=Su={}))});var zu=Ae((HS,Qu)=>{var ms=Object.defineProperty,Hy=Object.getOwnPropertyDescriptor,Gy=Object.getOwnPropertyNames,Ky=Object.prototype.hasOwnProperty,Wy=o((e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},"R"),Jy=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gy(t))!Ky.call(e,r)&&r!==n&&ms(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=Hy(t,r))||i.enumerable});return e},"h"),Qy=o(e=>Jy(ms({},"__esModule",{value:!0}),e),"N"),Au={};Wy(Au,{AvatarShape:o(()=>Hu,"AvatarShape"),ButtonType:o(()=>Eu,"ButtonType"),CardSettingsType:o(()=>Fu,"CardSettingsType"),CardTemplateType:o(()=>Ou,"CardTemplateType"),ChartCardType:o(()=>Iu,"ChartCardType"),ChartType:o(()=>Bu,"ChartType"),ContainerLayoutType:o(()=>Ju,"ContainerLayoutType"),CreateMode:o(()=>Wu,"CreateMode"),DefaultContentView:o(()=>ku,"DefaultContentView"),DefaultFilterMode:o(()=>Uu,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Ku,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Xy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>eh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>Zy,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>Yy,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>Du,"HAlign"),LinkListFlavorType:o(()=>ju,"LinkListFlavorType"),ListFlavorType:o(()=>Nu,"ListFlavorType"),ListTypeType:o(()=>Lu,"ListTypeType"),PopinLayout:o(()=>_u,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>nh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>th,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>oh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>rh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>ih,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>Gu,"SectionPosition"),SortOrderType:o(()=>Vu,"SortOrderType"),Strategy:o(()=>Mu,"Strategy"),TableColumnExtensionTypeV2:o(()=>Ru,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>$u,"TableTypeV2"),cardTemplateSettingsMap:o(()=>qy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>zy,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>wu,"customColumnViewTypes")});Qu.exports=Qy(Au);var Eu=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Eu||{}),Iu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Iu||{}),Ou=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Ou||{}),zy={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},qy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Fu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Fu||{}),Nu=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Nu||{}),Lu=(e=>(e.extended="extended",e.condensed="condensed",e))(Lu||{}),Vu=(e=>(e.ascending="ascending",e.descending="descending",e))(Vu||{}),ju=(e=>(e.standard="standard",e.carousel="carousel",e))(ju||{}),Du=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Du||{}),wu=(e=>(e.XML="XML",e))(wu||{}),$u=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($u||{}),Ru=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Ru||{}),_u=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(_u||{}),Mu=(e=>(e.extension="extension",e))(Mu||{}),ku=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(ku||{}),Uu=(e=>(e.visual="visual",e.compact="compact",e))(Uu||{}),Bu=(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))(Bu||{}),Hu=(e=>(e.Circle="Circle",e.Square="Square",e))(Hu||{}),Gu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Gu||{}),Ku=(e=>(e.XML="XML",e))(Ku||{}),Wu=(e=>(e.inline="inline",e))(Wu||{}),Xy="sap.suite.ui.generic.template",Yy="sap.suite.ui.generic.template.ObjectPage",Zy="sap.suite.ui.generic.template.ListReport",eh="sap.suite.ui.generic.template.AnalyticalListPage",th="sap.ui.viewExtensions",nh="sap.ui.controllerExtensions",ih="sap.suite.ui.generic.template.ObjectPage.view.Details",rh="sap.suite.ui.generic.template.ListReport.view.ListReport",oh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ju=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ju||{})});var W=Ae(dt=>{"use strict";var qu=dt&&dt.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),ah=dt&&dt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xu=dt&&dt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qu(t,e,n)},sh=dt&&dt.__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)&&qu(t,e,n);return ah(t,e),t};Object.defineProperty(dt,"__esModule",{value:!0});dt.v2=void 0;Xu(vu(),dt);Xu(Pu(),dt);dt.v2=sh(zu())});var Vs=Ae((cP,cp)=>{"use strict";var Eh=o(function(t){return Ih(t)&&!Oh(t)},"isMergeableObject");function Ih(e){return!!e&&typeof e=="object"}o(Ih,"isNonNullObject");function Oh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Lh(e)}o(Oh,"isSpecial");var Fh=typeof Symbol=="function"&&Symbol.for,Nh=Fh?Symbol.for("react.element"):60103;function Lh(e){return e.$$typeof===Nh}o(Lh,"isReactElement");function Vh(e){return Array.isArray(e)?[]:{}}o(Vh,"emptyTarget");function sr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ei(Vh(e),e,t):e}o(sr,"cloneUnlessOtherwiseSpecified");function jh(e,t,n){return e.concat(t).map(function(i){return sr(i,n)})}o(jh,"defaultArrayMerge");function Dh(e,t){if(!t.customMerge)return Ei;var n=t.customMerge(e);return typeof n=="function"?n:Ei}o(Dh,"getMergeFunction");function wh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(wh,"getEnumerableOwnPropertySymbols");function sp(e){return Object.keys(e).concat(wh(e))}o(sp,"getKeys");function lp(e,t){try{return t in e}catch{return!1}}o(lp,"propertyIsOnObject");function $h(e,t){return lp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o($h,"propertyIsUnsafe");function Rh(e,t,n){var i={};return n.isMergeableObject(e)&&sp(e).forEach(function(r){i[r]=sr(e[r],n)}),sp(t).forEach(function(r){$h(e,r)||(lp(e,r)&&n.isMergeableObject(t[r])?i[r]=Dh(r,n)(e[r],t[r],n):i[r]=sr(t[r],n))}),i}o(Rh,"mergeObject");function Ei(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||jh,n.isMergeableObject=n.isMergeableObject||Eh,n.cloneUnlessOtherwiseSpecified=sr;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Rh(e,t,n):sr(t,n)}o(Ei,"deepmerge");Ei.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ei(i,r,n)},{})},"deepmergeAll");var _h=Ei;cp.exports=_h});var jo=Ae(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var Mh=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:o(function(){return Mh.EnumIsFlag},"get")});var kh=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:o(function(){return kh.TermToTypes},"get")});var Uh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:o(function(){return Uh.VocabularyReferences},"get")});function fp(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(fp,"splitAt");function up(e,t){return t<0?e:e.substring(0,t)}o(up,"substringAt");function Vo(e,t){return fp(e,e.indexOf(t))}o(Vo,"splitAtFirst");be.splitAtFirst=Vo;function pp(e,t){return fp(e,e.lastIndexOf(t))}o(pp,"splitAtLast");be.splitAtLast=pp;function Bh(e,t){return up(e,e.indexOf(t))}o(Bh,"substringBeforeFirst");be.substringBeforeFirst=Bh;function Hh(e,t){return up(e,e.lastIndexOf(t))}o(Hh,"substringBeforeLast");be.substringBeforeLast=Hh;function dp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=pp(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Vo(t,"@");return`${a}@${dp(e,s)}`}else return t}o(dp,"alias");be.alias=dp;function js(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[s,l]=Vo(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),f=c?s.substring(1):s,u=e.referenceMap[f];return u?c?`@${u.namespace}.${l}`:`${u.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=Vo(s,"("),f=[r(l)];if(c){let u=c.slice(0,-1);f.push(`(${r(u)})`)}return a.push(f.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(js,"unalias");be.unalias=js;function Gh(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(Gh,"isComplexTypeDefinition");be.isComplexTypeDefinition=Gh;function Kh(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(Kh,"Decimal");be.Decimal=Kh;function Wh(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(Wh,"lazy");be.lazy=Wh;function gp(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(gp,"createIndexedFind");be.createIndexedFind=gp;function Jh(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:gp(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(Jh,"addGetByValue");be.addGetByValue=Jh;function Qh(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let c=(a=js(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let f=l.map(u=>{var p;return u.term=(p=js(e,u.term))!==null&&p!==void 0?p:u.term,u.fullyQualifiedName=u.qualifier?`${c}@${u.term}#${u.qualifier}`:`${c}@${u.term}`,u.__source=i,u}).filter(u=>!n[c].some(p=>p.term===u.term&&p.qualifier===u.qualifier));n[c].push(...f)}return n},{})}o(Qh,"mergeAnnotations");be.mergeAnnotations=Qh});var Op=Ae(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.convert=void 0;var lr=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),k=jo(),wt=Symbol("Annotation Target");function nn(e,t){return e[e.length-1]!==t&&e.push(t),e}o(nn,"appendObjectPath");function xt(e,t,n,i){var r,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((p,g)=>{if(g.includes("@")){let[b,x]=(0,k.splitAtFirst)(g,"@");p.push(b),p.push(`@${x}`)}else p.push(g);return p},[]);if(t===void 0)f[0].startsWith(`${e.rawSchema.namespace}.`)&&f[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.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[wt]!==void 0)t=t[wt];else if(t._type==="Property"){let p=(0,k.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let u=f.reduce((p,g)=>{var b,x,I,L,B;let te=o(re=>(p.messages.push({message:re}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=nn(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[re,oe]=e.splitTerm(g),J=(b=p.target.annotations[re.substring(1)])===null||b===void 0?void 0:b[oe];return J!==void 0?(p.target=J,p):te(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let re;if(g==="$AnnotationPath"?re=p.target.value:g==="$Path"&&(re=p.target.path),re!==void 0){let oe=xt(e,p.target[wt],re);return oe.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=nn(p.objectPath,J))}),p.target=oe.target,p.objectPath=nn(p.objectPath,p.target),p}}switch((x=p.target)===null||x===void 0?void 0:x._type){case"Schema":break;case"EntityContainer":{let J=p.target;if(g===""||e.unalias(g)===J.fullyQualifiedName)return p;let le=(L=(I=J.entitySets.by_name(g))!==null&&I!==void 0?I:J.singletons.by_name(g))!==null&&L!==void 0?L:J.actionImports.by_name(g);if(le)return p.target=le,p}break;case"EntitySet":case"Singleton":{let J=p.target;if(g===""||g==="$Type")return p.target=J.entityType,p;if(g==="$")return p;if(g==="$NavigationPropertyBinding"){let Se=J.navigationPropertyBinding;return p.target=Se,p}let le=xt(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(nn,p.objectPath),p}case"EntityType":{let J=p.target;if(g===""||g==="$Type")return p;let le=J.entityProperties.by_name(g);if(le)return p.target=le,p;let Se=J.navigationProperties.by_name(g);if(Se)return p.target=Se,p;let C=(0,k.substringBeforeFirst)(e.unalias(g),"("),Zt=J.actions[C];if(Zt)return p.target=Zt,p}break;case"ActionImport":{let J=xt(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(nn,p.objectPath),p}case"Action":{let J=p.target;if(g===""||g==="@$ui5.overload"||g==="0")return p;if(g==="$Parameter"&&J.isBound)return p.target=J.parameters,p;let le=(B=J.parameters[g])!==null&&B!==void 0?B:J.parameters.find(Se=>Se.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Se=le.properties.by_name(g);if(Se)return p.target=Se,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let re=p.target.typeReference;if(re!==void 0){let J=xt(e,re,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(nn,p.objectPath),p}break;case"NavigationProperty":let oe=xt(e,p.target.targetType,g);return p.target=oe.target,p.objectPath=oe.objectPath.reduce(nn,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=nn(p.objectPath,p.target),p}return te(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(p=>e.logError(p.message)),!u.target)if(i){let p=Tp(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):
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
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
12
  <Annotation Term = `+f[0]+`>
13
- <PropertyValue Path= `+f[1]+">");return u}s(xt,"resolveTarget");function Jh(e){return e.includes("@")}s(Jh,"isAnnotationPath");function mp(e,t,n,i,r){let o={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(o,"$target",()=>xt(e,i,t.PropertyPath,r).target),o}s(mp,"mapPropertyPath");function yp(e,t,n,i,r){let o={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(o,"$target",()=>xt(e,i,o.value,r).target),o}s(yp,"mapAnnotationPath");function hp(e,t,n,i,r){var o;let a={type:"NavigationPropertyPath",value:(o=t.NavigationPropertyPath)!==null&&o!==void 0?o:"",fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(a,"$target",()=>xt(e,i,t.NavigationPropertyPath,r).target),a}s(hp,"mapNavigationPropertyPath");function Qh(e,t,n,i,r){let o={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[wt]:i};return(0,k.lazy)(o,"$target",()=>xt(e,i,t.Path,r).target),o}s(Qh,"mapPath");function bp(e,t,n,i,r,o,a){if(o!==void 0)switch(o.type){case"String":return o.String;case"Int":return o.Int;case"Bool":return o.Bool;case"Decimal":return(0,k.Decimal)(o.Decimal);case"Date":return o.Date;case"EnumMember":let l=o.EnumMember.split(" ").map(c=>{var f;let u=(f=e.unalias(c))!==null&&f!==void 0?f:"";return(0,k.alias)(lr.VocabularyReferences,u)});return l[0]!==void 0&&k.EnumIsFlag[(0,k.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return mp(e,o,a,t,n);case"NavigationPropertyPath":return hp(e,o,a,t,n);case"AnnotationPath":return yp(e,o,a,t,n);case"Path":return Jh(o.Path)?xt(e,t,o.Path,n).target:Qh(e,o,a,t,n);case"Record":return $s(e,n,t,i,r,o.Record,a);case"Collection":return vp(e,t,n,i,r,o.Collection,a);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 o}}s(bp,"parseValue");function Tp(e,t,n,i){let r=k.TermToTypes[t];return i&&(t=`${(0,k.substringBeforeLast)(t,".")}.${i}`,r=k.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
13
+ <PropertyValue Path= `+f[1]+">");return u}o(xt,"resolveTarget");function zh(e){return e.includes("@")}o(zh,"isAnnotationPath");function mp(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(a,"$target",()=>xt(e,i,t.PropertyPath,r).target),a}o(mp,"mapPropertyPath");function yp(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(a,"$target",()=>xt(e,i,a.value,r).target),a}o(yp,"mapAnnotationPath");function hp(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[wt]:i};return(0,k.lazy)(s,"$target",()=>xt(e,i,t.NavigationPropertyPath,r).target),s}o(hp,"mapNavigationPropertyPath");function qh(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[wt]:i};return(0,k.lazy)(a,"$target",()=>xt(e,i,t.Path,r).target),a}o(qh,"mapPath");function bp(e,t,n,i,r,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"Decimal":return(0,k.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var f;let u=(f=e.unalias(c))!==null&&f!==void 0?f:"";return(0,k.alias)(lr.VocabularyReferences,u)});return l[0]!==void 0&&k.EnumIsFlag[(0,k.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return mp(e,a,s,t,n);case"NavigationPropertyPath":return hp(e,a,s,t,n);case"AnnotationPath":return yp(e,a,s,t,n);case"Path":return zh(a.Path)?xt(e,t,a.Path,n).target:qh(e,a,s,t,n);case"Record":return $s(e,n,t,i,r,a.Record,s);case"Collection":return vp(e,t,n,i,r,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}}o(bp,"parseValue");function Tp(e,t,n,i){let r=k.TermToTypes[t];return i&&(t=`${(0,k.substringBeforeLast)(t,".")}.${i}`,r=k.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
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>`),r}s(Tp,"inferTypeFromTerm");function zh(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}s(zh,"isDataFieldWithForAction");function qh(e,t,n,i,r){let o;return!r.type&&t?o=Tp(e,t,n.fullyQualifiedName,i):o=e.unalias(r.type),o}s(qh,"parseRecordType");function $s(e,t,n,i,r,o,a){let l={$Type:qh(e,t,n,i,o),fullyQualifiedName:a,[wt]:n,__source:r};for(let c of o.propertyValues)(0,k.lazy)(l,c.name,()=>bp(e,n,t,c.name,r,c.value,`${a}/${c.name}`));return(0,k.lazy)(l,"annotations",xp(e,o,l)),zh(l)&&(0,k.lazy)(l,"ActionTarget",()=>{var c,f;let u=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[u];return p||(p=(f=e.getConvertedActionImport(u))===null||f===void 0?void 0:f.action),p||(p=e.getConvertedAction(u),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${u}')`),p}),l}s($s,"parseRecord");function Xh(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}s(Xh,"getOrInferCollectionType");function vp(e,t,n,i,r,o,a){switch(Xh(o)){case"PropertyPath":return o.map((c,f)=>mp(e,c,`${a}/${f}`,t,n));case"Path":return o.map(c=>xt(e,t,c.Path,n).target);case"AnnotationPath":return o.map((c,f)=>yp(e,c,`${a}/${f}`,t,n));case"NavigationPropertyPath":return o.map((c,f)=>hp(e,c,`${a}/${f}`,t,n));case"Record":return o.map((c,f)=>$s(e,n,t,i,r,c,`${a}/${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 o.map(c=>c);case"String":return o.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(o.length===0)return[];throw new Error("Unsupported case")}}s(vp,"parseCollection");function Yh(e){return!!e.targetTypeName}s(Yh,"isV4NavigationProperty");function Zh(e,t,n){var i;let r;if(n.record)r=$s(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=bp(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=vp(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[wt]=t;let[o,a]=e.splitTerm(n.term);r.term=e.unalias(`${o}.${a}`,lr.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,k.lazy)(r,"annotations",xp(e,n,r))}catch{}return r}s(Zh,"convertAnnotation");var Rs=class Rs{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,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,Sp)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,o)=>{let a=this.getConvertedElement(o.fullyQualifiedName,o,n);return a&&r.push(a),r},[]);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 r=this.convertedElements.get(t);if(r===void 0){let o=typeof n=="function"?n.apply(void 0,[t]):n;o!==void 0&&(r=i.apply(void 0,[this,o]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,k.alias)(lr.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:""}};s(Rs,"Converter");var Ds=Rs;function cr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}s(cr,"resolveEntityType");function Cp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,k.lazy)(n,i,()=>{var o;return(o=e.getConvertedEntitySet(r))!==null&&o!==void 0?o:e.getConvertedSingleton(r)}),n},{})}s(Cp,"resolveNavigationPropertyBindings");function rn(e,t){let n=t.annotations;return()=>Do(e,t,n??e.getAnnotations(t.fullyQualifiedName))}s(rn,"resolveAnnotations");function xp(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(o=>{o.target=i,o.__source=n.__source,o[wt]=n[wt],o.fullyQualifiedName=`${i}@${o.term}`}),Do(e,n,r??[])}}s(xp,"resolveAnnotationsOnAnnotation");function Do(e,t,n){return n.reduce((i,r)=>{let[o,a]=e.splitTerm(r.term),l=`${a}${r.qualifier?"#"+r.qualifier:""}`;return i[o]===void 0&&(i[o]={}),i[o].hasOwnProperty(l)||(0,k.lazy)(i[o],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,f)=>Zh(c,t,f))),i},{})}s(Do,"createAnnotationsObject");function Sp(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Ap)),(0,k.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Pp)),(0,k.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Ip)),n}s(Sp,"convertEntityContainer");function Pp(e,t){let n=t;(0,k.lazy)(n,"entityType",cr(e,t.entityTypeName)),(0,k.lazy)(n,"annotations",rn(e,n));let i=t.navigationPropertyBinding;return(0,k.lazy)(n,"navigationPropertyBinding",Cp(e,i)),n}s(Pp,"convertSingleton");function Ap(e,t){let n=t;(0,k.lazy)(n,"entityType",cr(e,t.entityTypeName)),(0,k.lazy)(n,"annotations",rn(e,n));let i=t.navigationPropertyBinding;return(0,k.lazy)(n,"navigationPropertyBinding",Cp(e,i)),n}s(Ap,"convertEntitySet");function eb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"keys",e.convert(t.keys,ws)),(0,k.lazy)(n,"entityProperties",e.convert(t.entityProperties,ws)),(0,k.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Ep)),(0,k.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let o=`${e.rawSchema.namespace}.${r.name}`;return i[o]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let o=xt(e,t,i);return r?{target:o.target,visitedObjects:o.objectPath,messages:o.messages}:o.target},n}s(eb,"convertEntityType");function ws(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"targetType",()=>{var i;let r=t.type,o=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(o))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(o)}),n}s(ws,"convertProperty");function Ep(e,t){var n,i,r;let o=t;if(o.referentialConstraint=(n=o.referentialConstraint)!==null&&n!==void 0?n:[],!Yh(t)){let a=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);o.isCollection=(a==null?void 0:a.multiplicity)==="*",o.targetTypeName=(r=a==null?void 0:a.type)!==null&&r!==void 0?r:""}return(0,k.lazy)(o,"targetType",cr(e,t.targetTypeName)),(0,k.lazy)(o,"annotations",rn(e,t)),o}s(Ep,"convertNavigationProperty");function Ip(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}s(Ip,"convertActionImport");function tb(e,t){let n=t;return n.sourceType&&(0,k.lazy)(n,"sourceEntityType",cr(e,t.sourceType)),n.returnType&&(0,k.lazy)(n,"returnEntityType",cr(e,t.returnType)),(0,k.lazy)(n,"parameters",e.convert(t.parameters,nb)),(0,k.lazy)(n,"annotations",()=>{let i=(0,k.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,o=e.getAnnotations(r),a=e.getAnnotations(i);for(let l of a)o.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||o.push(l);return Do(e,t,o)}),n}s(tb,"convertAction");function nb(e,t){let n=t;return(0,k.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,k.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,o=e.getAnnotations(r),a=e.getAnnotations(i);for(let l of a)o.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||o.push(l);return Do(e,t,o)}),n}s(nb,"convertActionParameter");function ib(e,t){let n=t;return(0,k.lazy)(n,"properties",e.convert(t.properties,ws)),(0,k.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Ep)),(0,k.lazy)(n,"annotations",rn(e,t)),n}s(ib,"convertComplexType");function rb(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),n}s(rb,"convertTypeDefinition");function ob(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:lr.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=lr.VocabularyReferences);let n=new Ds(e,t);return(0,k.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Sp)),(0,k.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Ap)),(0,k.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Pp)),(0,k.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,eb)),(0,k.lazy)(t,"actions",n.convert(n.rawSchema.actions,tb)),(0,k.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,ib)),(0,k.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Ip)),(0,k.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,rb)),t.resolvePath=s(function(r){let o=xt(n,void 0,r);return o.target&&nn(o.objectPath,o.target),o},"resolvePath"),t}s(ob,"convert");wo.convert=ob});var Vp=Ae(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.revertTermToGenericType=void 0;var ab=jo();function sb(e,t){var n,i,r,o,a,l;let c;if(Array.isArray(t))c={type:"Collection",Collection:t.map(f=>$o(e,f))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))c={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[0])?c={type:"EnumMember",EnumMember:t.valueOf()}:c={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?c={type:"Int",Int:t.valueOf()}:!((o=t.isFloat)===null||o===void 0)&&o.call(t)?c={type:"Float",Float:t.valueOf()}:!((a=t.isDate)===null||a===void 0)&&a.call(t)?c={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?c={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?c={type:"Path",Path:t.path}:t.type==="AnnotationPath"?c={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?c={type:"Apply",Apply:t.Apply}:t.type==="Null"?c={type:"Null"}:t.type==="PropertyPath"?c={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?c={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(c={type:"Record",Record:$o(e,t)});return c}s(sb,"revertObjectToRawType");function Fp(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(o=>o.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=sb(e,t);break}return n}s(Fp,"revertValueToRawType");var lb=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Np(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let o=Lp(e,t[i][r]);if(!o.term){let a=(0,ab.unalias)(e,`${i}.${r}`);if(a){let l=a.split("#");o.term=l[0],l.length>1&&(o.qualifier=l[1])}}n.push(o)})})}s(Np,"revertAnnotationsToRawType");function $o(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(lb.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Fp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Np(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}}}s($o,"revertCollectionItemToRawType");function Lp(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=[],Np(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>$o(e,i))}):t.hasOwnProperty("$Type")?{...n,record:$o(e,t)}:{...n,value:Fp(e,t)}}s(Lp,"revertTermToGenericType");Ro.revertTermToGenericType=Lp});var jp=Ae(on=>{"use strict";var cb=on&&on.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),_s=on&&on.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cb(t,e,n)};Object.defineProperty(on,"__esModule",{value:!0});_s(Op(),on);_s(jo(),on);_s(Vp(),on)});var Hs=Ae(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.MergedRawMetadata=Tn.RawMetadataInstance=Tn.ensureArray=void 0;function fb(e){return e==null?[]:Array.isArray(e)?e:[e]}s(fb,"ensureArray");Tn.ensureArray=fb;var Bs=class Bs{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};s(Bs,"RawMetadataInstance");var Ms=Bs;Tn.RawMetadataInstance=Ms;var Us=class Us{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))}};s(Us,"MergedRawMetadata");var ks=Us;Tn.MergedRawMetadata=ks});var Dp=Ae(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.merge=void 0;var ub=Hs();function pb(...e){let t=new ub.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}s(pb,"merge");_o.merge=pb});var wp=Ae(Mo=>{(function(e){e.parser=function(h,d){return new n(h,d)},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,d){if(!(this instanceof n))return new n(h,d);var E=this;r(E),E.q=E.c="",E.bufferCheckPosition=e.MAX_BUFFER_LENGTH,E.opt=d||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!h,E.noscript=!!(h||E.opt.noscript),E.state=C.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(x)),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),Bt(E,"onready")}s(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}s(d,"F"),d.prototype=h;var E=new d;return E}),Object.keys||(Object.keys=function(h){var d=[];for(var E in h)h.hasOwnProperty(E)&&d.push(E);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),E=0,v=0,se=t.length;v<se;v++){var Me=h[t[v]].length;if(Me>d)switch(t[v]){case"textNode":bn(h);break;case"cdata":Pe(h,"oncdata",h.cdata),h.cdata="";break;case"script":Pe(h,"onscript",h.script),h.script="";break;default:Ct(h,"Max buffer length exceeded: "+t[v])}E=Math.max(E,Me)}var Ne=e.MAX_BUFFER_LENGTH-E;h.bufferCheckPosition=Ne+h.position}s(i,"checkBufferLength");function r(h){for(var d=0,E=t.length;d<E;d++)h[t[d]]=""}s(r,"clearBuffers");function o(h){bn(h),h.cdata!==""&&(Pe(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Pe(h,"onscript",h.script),h.script="")}s(o,"flushBuffers"),n.prototype={end:function(){It(this)},write:Re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var a;try{a=require("stream").Stream}catch{a=s(function(){},"Stream")}a||(a=s(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,d){return new f(h,d)}s(c,"createStream");function f(h,d){if(!(this instanceof f))return new f(h,d);a.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(v){E.emit("error",v),E._parser.error=null},this._decoder=null,l.forEach(function(v){Object.defineProperty(E,"on"+v,{get:function(){return E._parser["on"+v]},set:function(se){if(!se)return E.removeAllListeners(v),E._parser["on"+v]=se,se;E.on(v,se)},enumerable:!0,configurable:!1})})}s(f,"SAXStream"),f.prototype=Object.create(a.prototype,{constructor:{value:f}}),f.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var d=require("string_decoder").StringDecoder;this._decoder=new d("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,d){var E=this;return!E._parser["on"+h]&&l.indexOf(h)!==-1&&(E._parser["on"+h]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,h),E.emit.apply(E,v)}),a.prototype.on.call(E,h,d)};var u="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",x={xml:g,xmlns:b},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_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]/,te=/[#:_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 re(h){return h===" "||h===`
20
- `||h==="\r"||h===" "}s(re,"isWhitespace");function oe(h){return h==='"'||h==="'"}s(oe,"isQuote");function J(h){return h===">"||re(h)}s(J,"isAttribEnd");function le(h,d){return h.test(d)}s(le,"isMatch");function Se(h,d){return!le(h,d)}s(Se,"notMatch");var C=0;e.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},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 d=e.ENTITIES[h],E=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[h]=E});for(var Zt in e.STATE)e.STATE[e.STATE[Zt]]=Zt;C=e.STATE;function Bt(h,d,E){h[d]&&h[d](E)}s(Bt,"emit");function Pe(h,d,E){h.textNode&&bn(h),Bt(h,d,E)}s(Pe,"emitNode");function bn(h){h.textNode=Ti(h.opt,h.textNode),h.textNode&&Bt(h,"ontext",h.textNode),h.textNode=""}s(bn,"closeText");function Ti(h,d){return h.trim&&(d=d.trim()),h.normalize&&(d=d.replace(/\s+/g," ")),d}s(Ti,"textopts");function Ct(h,d){return bn(h),h.trackPosition&&(d+=`
19
+ </Annotations>`),r}o(Tp,"inferTypeFromTerm");function Xh(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(Xh,"isDataFieldWithForAction");function Yh(e,t,n,i,r){let a;return!r.type&&t?a=Tp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(Yh,"parseRecordType");function $s(e,t,n,i,r,a,s){let l={$Type:Yh(e,t,n,i,a),fullyQualifiedName:s,[wt]:n,__source:r};for(let c of a.propertyValues)(0,k.lazy)(l,c.name,()=>bp(e,n,t,c.name,r,c.value,`${s}/${c.name}`));return(0,k.lazy)(l,"annotations",xp(e,a,l)),Xh(l)&&(0,k.lazy)(l,"ActionTarget",()=>{var c,f;let u=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[u];return p||(p=(f=e.getConvertedActionImport(u))===null||f===void 0?void 0:f.action),p||(p=e.getConvertedAction(u),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${u}')`),p}),l}o($s,"parseRecord");function Zh(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(Zh,"getOrInferCollectionType");function vp(e,t,n,i,r,a,s){switch(Zh(a)){case"PropertyPath":return a.map((c,f)=>mp(e,c,`${s}/${f}`,t,n));case"Path":return a.map(c=>xt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,f)=>yp(e,c,`${s}/${f}`,t,n));case"NavigationPropertyPath":return a.map((c,f)=>hp(e,c,`${s}/${f}`,t,n));case"Record":return a.map((c,f)=>$s(e,n,t,i,r,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")}}o(vp,"parseCollection");function eb(e){return!!e.targetTypeName}o(eb,"isV4NavigationProperty");function tb(e,t,n){var i;let r;if(n.record)r=$s(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=bp(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=vp(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[wt]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,lr.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,k.lazy)(r,"annotations",xp(e,n,r))}catch{}return r}o(tb,"convertAnnotation");var Rs=class Rs{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,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,Sp)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,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 r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,k.alias)(lr.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:""}};o(Rs,"Converter");var Ds=Rs;function cr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(cr,"resolveEntityType");function Cp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,k.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(Cp,"resolveNavigationPropertyBindings");function rn(e,t){let n=t.annotations;return()=>Do(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(rn,"resolveAnnotations");function xp(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[wt]=n[wt],a.fullyQualifiedName=`${i}@${a.term}`}),Do(e,n,r??[])}}o(xp,"resolveAnnotationsOnAnnotation");function Do(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,k.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,f)=>tb(c,t,f))),i},{})}o(Do,"createAnnotationsObject");function Sp(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Ap)),(0,k.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Pp)),(0,k.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Ip)),n}o(Sp,"convertEntityContainer");function Pp(e,t){let n=t;(0,k.lazy)(n,"entityType",cr(e,t.entityTypeName)),(0,k.lazy)(n,"annotations",rn(e,n));let i=t.navigationPropertyBinding;return(0,k.lazy)(n,"navigationPropertyBinding",Cp(e,i)),n}o(Pp,"convertSingleton");function Ap(e,t){let n=t;(0,k.lazy)(n,"entityType",cr(e,t.entityTypeName)),(0,k.lazy)(n,"annotations",rn(e,n));let i=t.navigationPropertyBinding;return(0,k.lazy)(n,"navigationPropertyBinding",Cp(e,i)),n}o(Ap,"convertEntitySet");function nb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"keys",e.convert(t.keys,ws)),(0,k.lazy)(n,"entityProperties",e.convert(t.entityProperties,ws)),(0,k.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Ep)),(0,k.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=xt(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(nb,"convertEntityType");function ws(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(ws,"convertProperty");function Ep(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!eb(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=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,k.lazy)(a,"targetType",cr(e,t.targetTypeName)),(0,k.lazy)(a,"annotations",rn(e,t)),a}o(Ep,"convertNavigationProperty");function Ip(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),(0,k.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(Ip,"convertActionImport");function ib(e,t){let n=t;return n.sourceType&&(0,k.lazy)(n,"sourceEntityType",cr(e,t.sourceType)),n.returnType&&(0,k.lazy)(n,"returnEntityType",cr(e,t.returnType)),(0,k.lazy)(n,"parameters",e.convert(t.parameters,rb)),(0,k.lazy)(n,"annotations",()=>{let i=(0,k.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Do(e,t,a)}),n}o(ib,"convertAction");function rb(e,t){let n=t;return(0,k.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,k.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Do(e,t,a)}),n}o(rb,"convertActionParameter");function ob(e,t){let n=t;return(0,k.lazy)(n,"properties",e.convert(t.properties,ws)),(0,k.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Ep)),(0,k.lazy)(n,"annotations",rn(e,t)),n}o(ob,"convertComplexType");function ab(e,t){let n=t;return(0,k.lazy)(n,"annotations",rn(e,t)),n}o(ab,"convertTypeDefinition");function sb(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:lr.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=lr.VocabularyReferences);let n=new Ds(e,t);return(0,k.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Sp)),(0,k.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Ap)),(0,k.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Pp)),(0,k.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,nb)),(0,k.lazy)(t,"actions",n.convert(n.rawSchema.actions,ib)),(0,k.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,ob)),(0,k.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Ip)),(0,k.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,ab)),t.resolvePath=o(function(r){let a=xt(n,void 0,r);return a.target&&nn(a.objectPath,a.target),a},"resolvePath"),t}o(sb,"convert");wo.convert=sb});var Vp=Ae(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.revertTermToGenericType=void 0;var lb=jo();function cb(e,t){var n,i,r,a,s,l;let c;if(Array.isArray(t))c={type:"Collection",Collection:t.map(f=>$o(e,f))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))c={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[0])?c={type:"EnumMember",EnumMember:t.valueOf()}:c={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?c={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?c={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?c={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?c={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?c={type:"Path",Path:t.path}:t.type==="AnnotationPath"?c={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?c={type:"Apply",Apply:t.Apply}:t.type==="Null"?c={type:"Null"}:t.type==="PropertyPath"?c={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?c={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(c={type:"Record",Record:$o(e,t)});return c}o(cb,"revertObjectToRawType");function Fp(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=cb(e,t);break}return n}o(Fp,"revertValueToRawType");var fb=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Np(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=Lp(e,t[i][r]);if(!a.term){let s=(0,lb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(Np,"revertAnnotationsToRawType");function $o(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(fb.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Fp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Np(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}}}o($o,"revertCollectionItemToRawType");function Lp(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=[],Np(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>$o(e,i))}):t.hasOwnProperty("$Type")?{...n,record:$o(e,t)}:{...n,value:Fp(e,t)}}o(Lp,"revertTermToGenericType");Ro.revertTermToGenericType=Lp});var jp=Ae(on=>{"use strict";var ub=on&&on.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),_s=on&&on.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ub(t,e,n)};Object.defineProperty(on,"__esModule",{value:!0});_s(Op(),on);_s(jo(),on);_s(Vp(),on)});var Hs=Ae(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.MergedRawMetadata=bn.RawMetadataInstance=bn.ensureArray=void 0;function pb(e){return e==null?[]:Array.isArray(e)?e:[e]}o(pb,"ensureArray");bn.ensureArray=pb;var Us=class Us{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Us,"RawMetadataInstance");var Ms=Us;bn.RawMetadataInstance=Ms;var Bs=class Bs{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Bs,"MergedRawMetadata");var ks=Bs;bn.MergedRawMetadata=ks});var Dp=Ae(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.merge=void 0;var db=Hs();function gb(...e){let t=new db.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(gb,"merge");_o.merge=gb});var wp=Ae(Mo=>{(function(e){e.parser=function(h,d){return new n(h,d)},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,d){if(!(this instanceof n))return new n(h,d);var E=this;r(E),E.q=E.c="",E.bufferCheckPosition=e.MAX_BUFFER_LENGTH,E.opt=d||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!h,E.noscript=!!(h||E.opt.noscript),E.state=C.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(x)),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),Ut(E,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}o(d,"F"),d.prototype=h;var E=new d;return E}),Object.keys||(Object.keys=function(h){var d=[];for(var E in h)h.hasOwnProperty(E)&&d.push(E);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),E=0,v=0,se=t.length;v<se;v++){var Me=h[t[v]].length;if(Me>d)switch(t[v]){case"textNode":hn(h);break;case"cdata":Pe(h,"oncdata",h.cdata),h.cdata="";break;case"script":Pe(h,"onscript",h.script),h.script="";break;default:Ct(h,"Max buffer length exceeded: "+t[v])}E=Math.max(E,Me)}var Ne=e.MAX_BUFFER_LENGTH-E;h.bufferCheckPosition=Ne+h.position}o(i,"checkBufferLength");function r(h){for(var d=0,E=t.length;d<E;d++)h[t[d]]=""}o(r,"clearBuffers");function a(h){hn(h),h.cdata!==""&&(Pe(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Pe(h,"onscript",h.script),h.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){It(this)},"end"),write:$e,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,d){return new f(h,d)}o(c,"createStream");function f(h,d){if(!(this instanceof f))return new f(h,d);s.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(v){E.emit("error",v),E._parser.error=null},this._decoder=null,l.forEach(function(v){Object.defineProperty(E,"on"+v,{get:o(function(){return E._parser["on"+v]},"get"),set:o(function(se){if(!se)return E.removeAllListeners(v),E._parser["on"+v]=se,se;E.on(v,se)},"set"),enumerable:!0,configurable:!1})})}o(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 d=require("string_decoder").StringDecoder;this._decoder=new d("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,d){var E=this;return!E._parser["on"+h]&&l.indexOf(h)!==-1&&(E._parser["on"+h]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,h),E.emit.apply(E,v)}),s.prototype.on.call(E,h,d)};var u="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",x={xml:g,xmlns:b},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,B=/[#:_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]/,te=/[#:_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 re(h){return h===" "||h===`
20
+ `||h==="\r"||h===" "}o(re,"isWhitespace");function oe(h){return h==='"'||h==="'"}o(oe,"isQuote");function J(h){return h===">"||re(h)}o(J,"isAttribEnd");function le(h,d){return h.test(d)}o(le,"isMatch");function Se(h,d){return!le(h,d)}o(Se,"notMatch");var C=0;e.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},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 d=e.ENTITIES[h],E=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[h]=E});for(var Zt in e.STATE)e.STATE[e.STATE[Zt]]=Zt;C=e.STATE;function Ut(h,d,E){h[d]&&h[d](E)}o(Ut,"emit");function Pe(h,d,E){h.textNode&&hn(h),Ut(h,d,E)}o(Pe,"emitNode");function hn(h){h.textNode=Ti(h.opt,h.textNode),h.textNode&&Ut(h,"ontext",h.textNode),h.textNode=""}o(hn,"closeText");function Ti(h,d){return h.trim&&(d=d.trim()),h.normalize&&(d=d.replace(/\s+/g," ")),d}o(Ti,"textopts");function Ct(h,d){return hn(h),h.trackPosition&&(d+=`
21
21
  Line: `+h.line+`
22
22
  Column: `+h.column+`
23
- Char: `+h.c),d=new Error(d),h.error=d,Bt(h,"onerror",d),h}s(Ct,"error");function It(h){return h.sawRoot&&!h.closedRoot&&ge(h,"Unclosed root tag"),h.state!==C.BEGIN&&h.state!==C.BEGIN_WHITESPACE&&h.state!==C.TEXT&&Ct(h,"Unexpected end"),bn(h),h.c="",h.closed=!0,Bt(h,"onend"),n.call(h,h.strict,h.opt),h}s(It,"end");function ge(h,d){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&Ct(h,d)}s(ge,"strictFail");function Wn(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var d=h.tags[h.tags.length-1]||h,E=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(E.ns=d.ns),h.attribList.length=0,Pe(h,"onopentagstart",E)}s(Wn,"newTag");function Ke(h,d){var E=h.indexOf(":"),v=E<0?["",h]:h.split(":"),se=v[0],Me=v[1];return d&&h==="xmlns"&&(se="xmlns",Me=""),{prefix:se,local:Me}}s(Ke,"qname");function ut(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 d=Ke(h.attribName,!0),E=d.prefix,v=d.local;if(E==="xmlns")if(v==="xml"&&h.attribValue!==g)ge(h,"xml: prefix must be bound to "+g+`
23
+ Char: `+h.c),d=new Error(d),h.error=d,Ut(h,"onerror",d),h}o(Ct,"error");function It(h){return h.sawRoot&&!h.closedRoot&&ge(h,"Unclosed root tag"),h.state!==C.BEGIN&&h.state!==C.BEGIN_WHITESPACE&&h.state!==C.TEXT&&Ct(h,"Unexpected end"),hn(h),h.c="",h.closed=!0,Ut(h,"onend"),n.call(h,h.strict,h.opt),h}o(It,"end");function ge(h,d){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&Ct(h,d)}o(ge,"strictFail");function Wn(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var d=h.tags[h.tags.length-1]||h,E=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(E.ns=d.ns),h.attribList.length=0,Pe(h,"onopentagstart",E)}o(Wn,"newTag");function Ke(h,d){var E=h.indexOf(":"),v=E<0?["",h]:h.split(":"),se=v[0],Me=v[1];return d&&h==="xmlns"&&(se="xmlns",Me=""),{prefix:se,local:Me}}o(Ke,"qname");function ut(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 d=Ke(h.attribName,!0),E=d.prefix,v=d.local;if(E==="xmlns")if(v==="xml"&&h.attribValue!==g)ge(h,"xml: prefix must be bound to "+g+`
24
24
  Actual: `+h.attribValue);else if(v==="xmlns"&&h.attribValue!==b)ge(h,"xmlns: prefix must be bound to "+b+`
25
- Actual: `+h.attribValue);else{var se=h.tag,Me=h.tags[h.tags.length-1]||h;se.ns===Me.ns&&(se.ns=Object.create(Me.ns)),se.ns[v]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Pe(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}s(ut,"attrib");function tt(h,d){if(h.opt.xmlns){var E=h.tag,v=Ke(h.tagName);E.prefix=v.prefix,E.local=v.local,E.uri=E.ns[v.prefix]||"",E.prefix&&!E.uri&&(ge(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),E.uri=v.prefix);var se=h.tags[h.tags.length-1]||h;E.ns&&se.ns!==E.ns&&Object.keys(E.ns).forEach(function(Ci){Pe(h,"onopennamespace",{prefix:Ci,uri:E.ns[Ci]})});for(var Me=0,Ne=h.attribList.length;Me<Ne;Me++){var et=h.attribList[Me],pt=et[0],Ut=et[1],We=Ke(pt,!0),Ot=We.prefix,Co=We.local,tr=Ot===""?"":E.ns[Ot]||"",vi={name:pt,value:Ut,prefix:Ot,local:Co,uri:tr};Ot&&Ot!=="xmlns"&&!tr&&(ge(h,"Unbound namespace prefix: "+JSON.stringify(Ot)),vi.uri=Ot),h.tag.attributes[pt]=vi,Pe(h,"onattribute",vi)}h.attribList.length=0}h.tag.isSelfClosing=!!d,h.sawRoot=!0,h.tags.push(h.tag),Pe(h,"onopentag",h.tag),d||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=C.SCRIPT:h.state=C.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}s(tt,"openTag");function en(h){if(!h.tagName){ge(h,"Weird empty close tag."),h.textNode+="</>",h.state=C.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=C.SCRIPT;return}Pe(h,"onscript",h.script),h.script=""}var d=h.tags.length,E=h.tagName;h.strict||(E=E[h.looseCase]());for(var v=E;d--;){var se=h.tags[d];if(se.name!==v)ge(h,"Unexpected close tag");else break}if(d<0){ge(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=C.TEXT;return}h.tagName=E;for(var Me=h.tags.length;Me-- >d;){var Ne=h.tag=h.tags.pop();h.tagName=h.tag.name,Pe(h,"onclosetag",h.tagName);var et={};for(var pt in Ne.ns)et[pt]=Ne.ns[pt];var Ut=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Ne.ns!==Ut.ns&&Object.keys(Ne.ns).forEach(function(We){var Ot=Ne.ns[We];Pe(h,"onclosenamespace",{prefix:We,uri:Ot})})}d===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=C.TEXT}s(en,"closeTag");function q(h){var d=h.entity,E=d.toLowerCase(),v,se="";return h.ENTITIES[d]?h.ENTITIES[d]:h.ENTITIES[E]?h.ENTITIES[E]:(d=E,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),v=parseInt(d,16),se=v.toString(16)):(d=d.slice(1),v=parseInt(d,10),se=v.toString(10))),d=d.replace(/^0+/,""),isNaN(v)||se.toLowerCase()!==d?(ge(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(v))}s(q,"parseEntity");function tn(h,d){d==="<"?(h.state=C.OPEN_WAKA,h.startTagPosition=h.position):re(d)||(ge(h,"Non-whitespace before first tag."),h.textNode=d,h.state=C.TEXT)}s(tn,"beginWhiteSpace");function vo(h,d){var E="";return d<h.length&&(E=h.charAt(d)),E}s(vo,"charAt");function Re(h){var d=this;if(this.error)throw this.error;if(d.closed)return Ct(d,"Cannot write after close. Assign an onready handler.");if(h===null)return It(d);typeof h=="object"&&(h=h.toString());for(var E=0,v="";v=vo(h,E++),d.c=v,!!v;)switch(d.trackPosition&&(d.position++,v===`
25
+ Actual: `+h.attribValue);else{var se=h.tag,Me=h.tags[h.tags.length-1]||h;se.ns===Me.ns&&(se.ns=Object.create(Me.ns)),se.ns[v]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Pe(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}o(ut,"attrib");function tt(h,d){if(h.opt.xmlns){var E=h.tag,v=Ke(h.tagName);E.prefix=v.prefix,E.local=v.local,E.uri=E.ns[v.prefix]||"",E.prefix&&!E.uri&&(ge(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),E.uri=v.prefix);var se=h.tags[h.tags.length-1]||h;E.ns&&se.ns!==E.ns&&Object.keys(E.ns).forEach(function(Ci){Pe(h,"onopennamespace",{prefix:Ci,uri:E.ns[Ci]})});for(var Me=0,Ne=h.attribList.length;Me<Ne;Me++){var et=h.attribList[Me],pt=et[0],Bt=et[1],We=Ke(pt,!0),Ot=We.prefix,Co=We.local,tr=Ot===""?"":E.ns[Ot]||"",vi={name:pt,value:Bt,prefix:Ot,local:Co,uri:tr};Ot&&Ot!=="xmlns"&&!tr&&(ge(h,"Unbound namespace prefix: "+JSON.stringify(Ot)),vi.uri=Ot),h.tag.attributes[pt]=vi,Pe(h,"onattribute",vi)}h.attribList.length=0}h.tag.isSelfClosing=!!d,h.sawRoot=!0,h.tags.push(h.tag),Pe(h,"onopentag",h.tag),d||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=C.SCRIPT:h.state=C.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}o(tt,"openTag");function en(h){if(!h.tagName){ge(h,"Weird empty close tag."),h.textNode+="</>",h.state=C.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=C.SCRIPT;return}Pe(h,"onscript",h.script),h.script=""}var d=h.tags.length,E=h.tagName;h.strict||(E=E[h.looseCase]());for(var v=E;d--;){var se=h.tags[d];if(se.name!==v)ge(h,"Unexpected close tag");else break}if(d<0){ge(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=C.TEXT;return}h.tagName=E;for(var Me=h.tags.length;Me-- >d;){var Ne=h.tag=h.tags.pop();h.tagName=h.tag.name,Pe(h,"onclosetag",h.tagName);var et={};for(var pt in Ne.ns)et[pt]=Ne.ns[pt];var Bt=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Ne.ns!==Bt.ns&&Object.keys(Ne.ns).forEach(function(We){var Ot=Ne.ns[We];Pe(h,"onclosenamespace",{prefix:We,uri:Ot})})}d===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=C.TEXT}o(en,"closeTag");function q(h){var d=h.entity,E=d.toLowerCase(),v,se="";return h.ENTITIES[d]?h.ENTITIES[d]:h.ENTITIES[E]?h.ENTITIES[E]:(d=E,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),v=parseInt(d,16),se=v.toString(16)):(d=d.slice(1),v=parseInt(d,10),se=v.toString(10))),d=d.replace(/^0+/,""),isNaN(v)||se.toLowerCase()!==d?(ge(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(v))}o(q,"parseEntity");function tn(h,d){d==="<"?(h.state=C.OPEN_WAKA,h.startTagPosition=h.position):re(d)||(ge(h,"Non-whitespace before first tag."),h.textNode=d,h.state=C.TEXT)}o(tn,"beginWhiteSpace");function vo(h,d){var E="";return d<h.length&&(E=h.charAt(d)),E}o(vo,"charAt");function $e(h){var d=this;if(this.error)throw this.error;if(d.closed)return Ct(d,"Cannot write after close. Assign an onready handler.");if(h===null)return It(d);typeof h=="object"&&(h=h.toString());for(var E=0,v="";v=vo(h,E++),d.c=v,!!v;)switch(d.trackPosition&&(d.position++,v===`
26
26
  `?(d.line++,d.column=0):d.column++),d.state){case C.BEGIN:if(d.state=C.BEGIN_WHITESPACE,v==="\uFEFF")continue;tn(d,v);continue;case C.BEGIN_WHITESPACE:tn(d,v);continue;case C.TEXT:if(d.sawRoot&&!d.closedRoot){for(var se=E-1;v&&v!=="<"&&v!=="&";)v=vo(h,E++),v&&d.trackPosition&&(d.position++,v===`
27
- `?(d.line++,d.column=0):d.column++);d.textNode+=h.substring(se,E-1)}v==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):(!re(v)&&(!d.sawRoot||d.closedRoot)&&ge(d,"Text data outside of root node."),v==="&"?d.state=C.TEXT_ENTITY:d.textNode+=v);continue;case C.SCRIPT:v==="<"?d.state=C.SCRIPT_ENDING:d.script+=v;continue;case C.SCRIPT_ENDING:v==="/"?d.state=C.CLOSE_TAG:(d.script+="<"+v,d.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(v==="!")d.state=C.SGML_DECL,d.sgmlDecl="";else if(!re(v))if(le(I,v))d.state=C.OPEN_TAG,d.tagName=v;else if(v==="/")d.state=C.CLOSE_TAG,d.tagName="";else if(v==="?")d.state=C.PROC_INST,d.procInstName=d.procInstBody="";else{if(ge(d,"Unencoded <"),d.startTagPosition+1<d.position){var Me=d.position-d.startTagPosition;v=new Array(Me).join(" ")+v}d.textNode+="<"+v,d.state=C.TEXT}continue;case C.SGML_DECL:(d.sgmlDecl+v).toUpperCase()===u?(Pe(d,"onopencdata"),d.state=C.CDATA,d.sgmlDecl="",d.cdata=""):d.sgmlDecl+v==="--"?(d.state=C.COMMENT,d.comment="",d.sgmlDecl=""):(d.sgmlDecl+v).toUpperCase()===p?(d.state=C.DOCTYPE,(d.doctype||d.sawRoot)&&ge(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):v===">"?(Pe(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=C.TEXT):(oe(v)&&(d.state=C.SGML_DECL_QUOTED),d.sgmlDecl+=v);continue;case C.SGML_DECL_QUOTED:v===d.q&&(d.state=C.SGML_DECL,d.q=""),d.sgmlDecl+=v;continue;case C.DOCTYPE:v===">"?(d.state=C.TEXT,Pe(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=v,v==="["?d.state=C.DOCTYPE_DTD:oe(v)&&(d.state=C.DOCTYPE_QUOTED,d.q=v));continue;case C.DOCTYPE_QUOTED:d.doctype+=v,v===d.q&&(d.q="",d.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:d.doctype+=v,v==="]"?d.state=C.DOCTYPE:oe(v)&&(d.state=C.DOCTYPE_DTD_QUOTED,d.q=v);continue;case C.DOCTYPE_DTD_QUOTED:d.doctype+=v,v===d.q&&(d.state=C.DOCTYPE_DTD,d.q="");continue;case C.COMMENT:v==="-"?d.state=C.COMMENT_ENDING:d.comment+=v;continue;case C.COMMENT_ENDING:v==="-"?(d.state=C.COMMENT_ENDED,d.comment=Ti(d.opt,d.comment),d.comment&&Pe(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+v,d.state=C.COMMENT);continue;case C.COMMENT_ENDED:v!==">"?(ge(d,"Malformed comment"),d.comment+="--"+v,d.state=C.COMMENT):d.state=C.TEXT;continue;case C.CDATA:v==="]"?d.state=C.CDATA_ENDING:d.cdata+=v;continue;case C.CDATA_ENDING:v==="]"?d.state=C.CDATA_ENDING_2:(d.cdata+="]"+v,d.state=C.CDATA);continue;case C.CDATA_ENDING_2:v===">"?(d.cdata&&Pe(d,"oncdata",d.cdata),Pe(d,"onclosecdata"),d.cdata="",d.state=C.TEXT):v==="]"?d.cdata+="]":(d.cdata+="]]"+v,d.state=C.CDATA);continue;case C.PROC_INST:v==="?"?d.state=C.PROC_INST_ENDING:re(v)?d.state=C.PROC_INST_BODY:d.procInstName+=v;continue;case C.PROC_INST_BODY:if(!d.procInstBody&&re(v))continue;v==="?"?d.state=C.PROC_INST_ENDING:d.procInstBody+=v;continue;case C.PROC_INST_ENDING:v===">"?(Pe(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=C.TEXT):(d.procInstBody+="?"+v,d.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:le(L,v)?d.tagName+=v:(Wn(d),v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:(re(v)||ge(d,"Invalid character in tag name"),d.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:v===">"?(tt(d,!0),en(d)):(ge(d,"Forward-slash in opening tag not followed by >"),d.state=C.ATTRIB);continue;case C.ATTRIB:if(re(v))continue;v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:le(I,v)?(d.attribName=v,d.attribValue="",d.state=C.ATTRIB_NAME):ge(d,"Invalid attribute name");continue;case C.ATTRIB_NAME:v==="="?d.state=C.ATTRIB_VALUE:v===">"?(ge(d,"Attribute without value"),d.attribValue=d.attribName,ut(d),tt(d)):re(v)?d.state=C.ATTRIB_NAME_SAW_WHITE:le(L,v)?d.attribName+=v:ge(d,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(v==="=")d.state=C.ATTRIB_VALUE;else{if(re(v))continue;ge(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Pe(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",v===">"?tt(d):le(I,v)?(d.attribName=v,d.state=C.ATTRIB_NAME):(ge(d,"Invalid attribute name"),d.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(re(v))continue;oe(v)?(d.q=v,d.state=C.ATTRIB_VALUE_QUOTED):(ge(d,"Unquoted attribute value"),d.state=C.ATTRIB_VALUE_UNQUOTED,d.attribValue=v);continue;case C.ATTRIB_VALUE_QUOTED:if(v!==d.q){v==="&"?d.state=C.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=v;continue}ut(d),d.q="",d.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:re(v)?d.state=C.ATTRIB:v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:le(I,v)?(ge(d,"No whitespace between attributes"),d.attribName=v,d.attribValue="",d.state=C.ATTRIB_NAME):ge(d,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!J(v)){v==="&"?d.state=C.ATTRIB_VALUE_ENTITY_U:d.attribValue+=v;continue}ut(d),v===">"?tt(d):d.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(d.tagName)v===">"?en(d):le(L,v)?d.tagName+=v:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=C.SCRIPT):(re(v)||ge(d,"Invalid tagname in closing tag"),d.state=C.CLOSE_TAG_SAW_WHITE);else{if(re(v))continue;Se(I,v)?d.script?(d.script+="</"+v,d.state=C.SCRIPT):ge(d,"Invalid tagname in closing tag."):d.tagName=v}continue;case C.CLOSE_TAG_SAW_WHITE:if(re(v))continue;v===">"?en(d):ge(d,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var Ne,et;switch(d.state){case C.TEXT_ENTITY:Ne=C.TEXT,et="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:Ne=C.ATTRIB_VALUE_QUOTED,et="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:Ne=C.ATTRIB_VALUE_UNQUOTED,et="attribValue";break}if(v===";")if(d.opt.unparsedEntities){var pt=q(d);d.entity="",d.state=Ne,d.write(pt)}else d[et]+=q(d),d.entity="",d.state=Ne;else le(d.entity.length?te:U,v)?d.entity+=v:(ge(d,"Invalid character in entity name"),d[et]+="&"+d.entity+v,d.entity="",d.state=Ne);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}s(Re,"write");String.fromCodePoint||function(){var h=String.fromCharCode,d=Math.floor,E=s(function(){var v=16384,se=[],Me,Ne,et=-1,pt=arguments.length;if(!pt)return"";for(var Ut="";++et<pt;){var We=Number(arguments[et]);if(!isFinite(We)||We<0||We>1114111||d(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?se.push(We):(We-=65536,Me=(We>>10)+55296,Ne=We%1024+56320,se.push(Me,Ne)),(et+1===pt||se.length>v)&&(Ut+=h.apply(null,se),se.length=0)}return Ut},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E}()})(typeof Mo>"u"?Mo.sax={}:Mo)});var ko=Ae((xP,$p)=>{$p.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Bo=Ae((SP,Rp)=>{var db=ko().isArray;Rp.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!db(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var Ks=Ae((PP,Kp)=>{var gb=wp(),mb={on:function(){},parse:function(){}},ce=Bo(),Ii=ko().isArray,P,Gs=!0,ee;function yb(e){return P=ce.copyOptions(e),ce.ensureFlagExists("ignoreDeclaration",P),ce.ensureFlagExists("ignoreInstruction",P),ce.ensureFlagExists("ignoreAttributes",P),ce.ensureFlagExists("ignoreText",P),ce.ensureFlagExists("ignoreComment",P),ce.ensureFlagExists("ignoreCdata",P),ce.ensureFlagExists("ignoreDoctype",P),ce.ensureFlagExists("compact",P),ce.ensureFlagExists("alwaysChildren",P),ce.ensureFlagExists("addParent",P),ce.ensureFlagExists("trim",P),ce.ensureFlagExists("nativeType",P),ce.ensureFlagExists("nativeTypeAttributes",P),ce.ensureFlagExists("sanitize",P),ce.ensureFlagExists("instructionHasAttributes",P),ce.ensureFlagExists("captureSpacesBetweenElements",P),ce.ensureAlwaysArrayExists(P),ce.ensureKeyExists("declaration",P),ce.ensureKeyExists("instruction",P),ce.ensureKeyExists("attributes",P),ce.ensureKeyExists("text",P),ce.ensureKeyExists("comment",P),ce.ensureKeyExists("cdata",P),ce.ensureKeyExists("doctype",P),ce.ensureKeyExists("type",P),ce.ensureKeyExists("name",P),ce.ensureKeyExists("elements",P),ce.ensureKeyExists("parent",P),ce.checkFnExists("doctype",P),ce.checkFnExists("instruction",P),ce.checkFnExists("cdata",P),ce.checkFnExists("comment",P),ce.checkFnExists("text",P),ce.checkFnExists("instructionName",P),ce.checkFnExists("elementName",P),ce.checkFnExists("attributeName",P),ce.checkFnExists("attributeValue",P),ce.checkFnExists("attributes",P),P}s(yb,"validateOptions");function Hp(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}s(Hp,"nativeType");function fr(e,t){var n;if(P.compact){if(!ee[P[e+"Key"]]&&(Ii(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(ee[P[e+"Key"]]=[]),ee[P[e+"Key"]]&&!Ii(ee[P[e+"Key"]])&&(ee[P[e+"Key"]]=[ee[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,ee)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,ee);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,ee)]=i}}Ii(ee[P[e+"Key"]])?ee[P[e+"Key"]].push(t):ee[P[e+"Key"]]=t}else{ee[P.elementsKey]||(ee[P.elementsKey]=[]);var r={};if(r[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,ee):n,P.instructionHasAttributes?(r[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(r[P.attributesKey]=P.instructionFn(r[P.attributesKey],n,ee))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,ee)),r[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,ee)),r[P[e+"Key"]]=t;P.addParent&&(r[P.parentKey]=ee),ee[P.elementsKey].push(r)}}s(fr,"addField");function Gp(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,ee)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Hp(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,ee)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],ee)]=n}}return e}s(Gp,"manipulateAttributes");function hb(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.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=Gp(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;ee[P.declarationKey]={},Object.keys(t).length&&(ee[P.declarationKey][P.attributesKey]=t),P.addParent&&(ee[P.declarationKey][P.parentKey]=ee)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var r={};P.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][P.attributesKey]=t):r[e.name]=e.body,fr("instruction",r)}}s(hb,"onInstruction");function _p(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Gp(t),"elementNameFn"in P&&(e=P.elementNameFn(e,ee)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in ee)&&(Ii(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(ee[e]=[]),ee[e]&&!Ii(ee[e])&&(ee[e]=[ee[e]]),Ii(ee[e])?ee[e].push(n):ee[e]=n}else ee[P.elementsKey]||(ee[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),ee[P.elementsKey].push(n);n[P.parentKey]=ee,ee=n}s(_p,"onStartElement");function Mp(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Hp(e)),P.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),fr("text",e))}s(Mp,"onText");function kp(e){P.ignoreComment||(P.trim&&(e=e.trim()),fr("comment",e))}s(kp,"onComment");function Bp(e){var t=ee[P.parentKey];P.addParent||delete ee[P.parentKey],ee=t}s(Bp,"onEndElement");function bb(e){P.ignoreCdata||(P.trim&&(e=e.trim()),fr("cdata",e))}s(bb,"onCdata");function Tb(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),fr("doctype",e))}s(Tb,"onDoctype");function Up(e){e.note=e}s(Up,"onError");Kp.exports=function(e,t){var n=Gs?gb.parser(!0,{}):n=new mb.Parser("UTF-8"),i={};if(ee=i,P=yb(t),Gs?(n.opt={strictEntities:!0},n.onopentag=_p,n.ontext=Mp,n.oncomment=kp,n.onclosetag=Bp,n.onerror=Up,n.oncdata=bb,n.ondoctype=Tb,n.onprocessinginstruction=hb):(n.on("startElement",_p),n.on("text",Mp),n.on("comment",kp),n.on("endElement",Bp),n.on("error",Up)),Gs)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var r=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=r,delete i.text}return i}});var Qp=Ae((EP,Jp)=>{var Wp=Bo(),vb=Ks();function Cb(e){var t=Wp.copyOptions(e);return Wp.ensureSpacesExists(t),t}s(Cb,"validateOptions");Jp.exports=function(e,t){var n,i,r,o;return n=Cb(t),i=vb(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(a,l){return a===o?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Js=Ae((OP,id)=>{var ue=Bo(),xb=ko().isArray,nt,it;function Sb(e){var t=ue.copyOptions(e);return ue.ensureFlagExists("ignoreDeclaration",t),ue.ensureFlagExists("ignoreInstruction",t),ue.ensureFlagExists("ignoreAttributes",t),ue.ensureFlagExists("ignoreText",t),ue.ensureFlagExists("ignoreComment",t),ue.ensureFlagExists("ignoreCdata",t),ue.ensureFlagExists("ignoreDoctype",t),ue.ensureFlagExists("compact",t),ue.ensureFlagExists("indentText",t),ue.ensureFlagExists("indentCdata",t),ue.ensureFlagExists("indentAttributes",t),ue.ensureFlagExists("indentInstruction",t),ue.ensureFlagExists("fullTagEmptyElement",t),ue.ensureFlagExists("noQuotesForNativeAttributes",t),ue.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ue.ensureKeyExists("declaration",t),ue.ensureKeyExists("instruction",t),ue.ensureKeyExists("attributes",t),ue.ensureKeyExists("text",t),ue.ensureKeyExists("comment",t),ue.ensureKeyExists("cdata",t),ue.ensureKeyExists("doctype",t),ue.ensureKeyExists("type",t),ue.ensureKeyExists("name",t),ue.ensureKeyExists("elements",t),ue.checkFnExists("doctype",t),ue.checkFnExists("instruction",t),ue.checkFnExists("cdata",t),ue.checkFnExists("comment",t),ue.checkFnExists("text",t),ue.checkFnExists("instructionName",t),ue.checkFnExists("elementName",t),ue.checkFnExists("attributeName",t),ue.checkFnExists("attributeValue",t),ue.checkFnExists("attributes",t),ue.checkFnExists("fullTagEmptyElement",t),t}s(Sb,"validateOptions");function Kt(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}s(Kt,"writeIndentation");function Uo(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,it,nt));var i,r,o,a,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(a=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"&quot;"),o="attributeNameFn"in t?t.attributeNameFn(i,r,it,nt):i,l.push(t.spaces&&t.indentAttributes?Kt(t,n+1,!1):" "),l.push(o+"="+a+("attributeValueFn"in t?t.attributeValueFn(r,i,it,nt):r)+a));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Kt(t,n,!1)),l.join("")}s(Uo,"writeAttributes");function zp(e,t,n){return nt=e,it="xml",t.ignoreDeclaration?"":"<?xml"+Uo(e[t.attributesKey],t,n)+"?>"}s(zp,"writeDeclaration");function qp(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],it,nt):i;if(typeof e[i]=="object")return nt=e,it=r,"<?"+r+Uo(e[i][t.attributesKey],t,n)+"?>";var o=e[i]?e[i]:"";return"instructionFn"in t&&(o=t.instructionFn(o,i,it,nt)),"<?"+r+(o?" "+o:"")+"?>"}s(qp,"writeInstruction");function Xp(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,it,nt):e)+"-->"}s(Xp,"writeComment");function Yp(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,it,nt):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}s(Yp,"writeCdata");function Zp(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,it,nt):e)+">"}s(Zp,"writeDoctype");function Ws(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,it,nt):e)}s(Ws,"writeText");function Pb(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}s(Pb,"hasContent");function Ab(e,t,n){nt=e,it=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Uo(e[t.attributesKey],t,n));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(ed(e[t.elementsKey],t,n+1)),nt=e,it=e.name),i.push(t.spaces&&Pb(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}s(Ab,"writeElement");function ed(e,t,n,i){return e.reduce(function(r,o){var a=Kt(t,n,i&&!r);switch(o.type){case"element":return r+a+Ab(o,t,n);case"comment":return r+a+Xp(o[t.commentKey],t);case"doctype":return r+a+Zp(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?a:"")+Yp(o[t.cdataKey],t);case"text":return r+(t.indentText?a:"")+Ws(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?a:"")+qp(l,t,n)}},"")}s(ed,"writeElements");function td(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}s(td,"hasContentCompact");function Eb(e,t,n,i,r){nt=e,it=t;var o="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?"<"+o+"></"+o+">":"<"+o+"/>";var a=[];if(t){if(a.push("<"+o),typeof e!="object")return a.push(">"+Ws(e,n)+"</"+o+">"),a.join("");e[n.attributesKey]&&a.push(Uo(e[n.attributesKey],n,i));var l=td(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)a.push(">");else return a.push("/>"),a.join("")}return a.push(nd(e,n,i+1,!1)),nt=e,it=t,t&&a.push((r?Kt(n,i,!1):"")+"</"+o+">"),a.join("")}s(Eb,"writeElementCompact");function nd(e,t,n,i){var r,o,a,l=[];for(o in e)if(e.hasOwnProperty(o))for(a=xb(e[o])?e[o]:[e[o]],r=0;r<a.length;++r){switch(o){case t.declarationKey:l.push(zp(a[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Kt(t,n,i):"")+qp(a[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Kt(t,n,i):"")+Ws(a[r],t));break;case t.cdataKey:l.push((t.indentCdata?Kt(t,n,i):"")+Yp(a[r],t));break;case t.doctypeKey:l.push(Kt(t,n,i)+Zp(a[r],t));break;case t.commentKey:l.push(Kt(t,n,i)+Xp(a[r],t));break;default:l.push(Kt(t,n,i)+Eb(a[r],o,t,n,td(a[r],t)))}i=i&&!l.length}return l.join("")}s(nd,"writeElementsCompact");id.exports=function(e,t){t=Sb(t);var n=[];return nt=e,it="_root_",t.compact?n.push(nd(e,t,0,!0)):(e[t.declarationKey]&&n.push(zp(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(ed(e[t.elementsKey],t,0,!n.length))),n.join("")}});var od=Ae((NP,rd)=>{var Ib=Js();rd.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 Ib(n,t)}});var ur=Ae((LP,ad)=>{var Ob=Ks(),Fb=Qp(),Nb=Js(),Lb=od();ad.exports={xml2js:Ob,xml2json:Fb,js2xml:Nb,json2xml:Lb}});var pd=Ae(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.convertEntityTypeAnnotations=gt.convertPropertyAnnotations=gt.convertNavigationPropertyAnnotations=gt.convertEntitySetAnnotations=gt.convertGenericAnnotations=gt.convertV2Annotations=void 0;function Vb(e,t,n){let i=[];switch(t){case"EntitySet":ld(e,i);break;case"EntityType":ud(e,i);break;case"NavigationProperty":cd(e,n,i);break;case"Property":fd(e,n,i);break;case"Singleton":break;default:break}return sd(e,n,i),i}s(Vb,"convertV2Annotations");gt.convertV2Annotations=Vb;function sd(e,t,n){function i(r,o){r&&n.push(o)}if(s(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}s(sd,"convertGenericAnnotations");gt.convertGenericAnnotations=sd;function ld(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"]}}]}})}s(ld,"convertEntitySetAnnotations");gt.convertEntitySetAnnotations=ld;function cd(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}}]}}}]}]}}]}})}s(cd,"convertNavigationPropertyAnnotations");gt.convertNavigationPropertyAnnotations=cd;function fd(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}]}}]}})}s(fd,"convertPropertyAnnotations");gt.convertPropertyAnnotations=fd;function ud(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:[]}}]}})}s(ud,"convertEntityTypeAnnotations");gt.convertEntityTypeAnnotations=ud});var vd=Ae(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.parse=void 0;var jb=ur(),ne=Hs(),pr=pd(),md=/^Collection\((.+)\)$/;function Db(e){return e.Type!==null&&e.Type!==void 0}s(Db,"isV4NavProperty");function wb(e){return e.map(t=>t._attributes.Name)}s(wb,"getEntityTypeKeys");function yd(e,t,n,i){return e.reduce((r,o)=>{let a={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:Oi(o._attributes.Type).type};if(o._attributes.MaxLength&&(a.maxLength=parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(a.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(a.scale=parseInt(o._attributes.Scale,10)),a.nullable=o._attributes.Nullable!=="false",o._attributes.DefaultValue)switch(a.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":a.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":a.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":a.defaultValue=o._attributes.DefaultValue==="true";break;default:a.defaultValue=o._attributes.DefaultValue;break}r.entityProperties.push(a),t.indexOf(a.name)!==-1&&r.entityKeys.push(a);let l=(0,pr.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(Qn(a.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}s(yd,"parseProperties");function $b(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}s($b,"parseReferentialConstraint");function Rb(e,t){return e.reduce((n,i)=>{let r=t.find(a=>a.role===i.Principal._attributes.Role),o=t.find(a=>a.role===i.Dependent._attributes.Role);if(r!==void 0&&o!==void 0){let a=(0,ne.ensureArray)(i.Principal.PropertyRef),l=(0,ne.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(o=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=a,a=(0,ne.ensureArray)(i.Dependent.PropertyRef));for(let c of a){let f=a.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:o.type,targetProperty:l[f]._attributes.Name})}}return n},[])}s(Rb,"parseV2ReferentialConstraint");function hd(e,t,n,i){return e.reduce((r,o)=>{let a=o._attributes;if(Db(a)){let l=a.Type.match(md),c=l!==null,f=Wt(l?l[1]:a.Type);r.push({_type:"NavigationProperty",name:a.Name,fullyQualifiedName:`${n}/${a.Name}`,partner:a.Partner,containsTarget:a.ContainsTarget==="true",isCollection:c,targetTypeName:f,referentialConstraint:$b((0,ne.ensureArray)(o.ReferentialConstraint),t._attributes.Name,f)})}else{let{Relationship:l,ToRole:c,FromRole:f}=a;r.push({_type:"NavigationProperty",name:a.Name,fullyQualifiedName:`${n}/${a.Name}`,relationship:l,toRole:c,fromRole:f});let u=(0,pr.convertV2Annotations)(a,"NavigationProperty",a.Name);u.length>0&&i.push(Qn(`${n}/${a.Name}`,u))}return r},[])}s(hd,"parseNavigationProperties");function _b(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,o=(0,ne.ensureArray)(i.End).map(a=>({entitySet:`${t}.${n._attributes.Name}/${a._attributes.EntitySet}`,role:a._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:o}})}s(_b,"parseAssociationSets");function Mb(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,ne.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:Rb((0,ne.ensureArray)(n.ReferentialConstraint),r)}})}s(Mb,"parseAssociations");function kb(e,t,n){return e.reduce((i,r)=>{let o=r.Key?wb((0,ne.ensureArray)(r.Key.PropertyRef)):[],a=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=yd((0,ne.ensureArray)(r.Property),o,a,t),f=hd((0,ne.ensureArray)(r.NavigationProperty),r,a,t),u={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:a,keys:c,entityProperties:l,actions:{},navigationProperties:f},p=(0,pr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(Qn(u.fullyQualifiedName,p)),i.push(u),i},[])}s(kb,"parseEntityTypes");function Bb(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:a}=yd((0,ne.ensureArray)(r.Property),[],o,t),l=hd((0,ne.ensureArray)(r.NavigationProperty),r,o,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:o,properties:a,navigationProperties:l}),i},[])}s(Bb,"parseComplexTypes");function Ub(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}s(Ub,"parseTypeDefinitions");function Hb(e,t,n,i){return e.map(o=>{let a=Object.fromEntries((0,ne.ensureArray)(o.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"EntitySet",name:o._attributes.Name,entityTypeName:Wt(o._attributes.EntityType),navigationPropertyBinding:a,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},c=(0,pr.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return c.length>0&&i.push(Qn(l.fullyQualifiedName,c)),l})}s(Hb,"parseEntitySets");function Gb(e,t,n,i){return e.map(o=>{let a=Object.fromEntries((0,ne.ensureArray)(o.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"Singleton",name:o._attributes.Name,entityTypeName:Wt(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:a,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},c=(0,pr.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return c.length>0&&i.push(Qn(l.fullyQualifiedName,c)),l})}s(Gb,"parseSingletons");function dd(e,t,n){return e.map(i=>{let r=(0,ne.ensureArray)(i.Parameter),o=i._attributes.IsBound==="true",a;n?a=r.map(c=>Oi(c._attributes.Type).type).join(","):a=o?Oi(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${a})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?Oi(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:f,type:u}=Oi(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:u,isCollection:f};return c._attributes.MaxLength&&(p.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(p.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(p.scale=parseInt(c._attributes.Scale,10)),p.nullable=c._attributes.Nullable!=="false",p}),returnType:i.ReturnType?Oi(i.ReturnType._attributes.Type).type:""}})}s(dd,"parseActions");function Kb(e,t,n){return e.map(i=>{let r=t.find(a=>a.name===i._attributes.EntitySet),o=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:o,isFunction:!1,parameters:(0,ne.ensureArray)(i.Parameter).map(a=>({_type:"ActionParameter",name:a._attributes.Name,fullyQualifiedName:`${o}/${a._attributes.Name}`,type:a._attributes.Type,isCollection:a._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}s(Kb,"parseV2FunctionImport");function gd(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Wt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Wt(r)}})}s(gd,"parseActionImports");function Wb(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:o,...a}=i,l={};if(o){let c=Object.keys(o).find(u=>u!=="Property");l.name=o.Property;let f=`${t}/${l.name}`;if(a&&Object.keys(a).length>0?l.value=Td(a,f,n):c&&(l.value=bd({[c]:o[c]},f,n)),i.Annotation){let u=Ko((0,ne.ensureArray)(i.Annotation),f,n);u&&u.length>0&&n.push(Qn(f,u))}}return l})}s(Wb,"parsePropertyValues");function Go(e,t,n){let i=Ko((0,ne.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Wt(e._attributes.Type):void 0,propertyValues:Wb((0,ne.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}s(Go,"parseRecord");function an(e,t){return e[t]!=null}s(an,"isExpressionOfType");function Ho(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}}}s(Ho,"parseModelPath");function zs(e,t,n){if(an(e,"Record")){let i=(0,ne.ensureArray)(e.Record).map((r,o)=>Go(r,t+"/"+o,n));return i.type="Record",i}else if(an(e,"PropertyPath")){let i=(0,ne.ensureArray)(e.PropertyPath).map(r=>Ho(r,"PropertyPath"));return i.type="PropertyPath",i}else if(an(e,"NavigationPropertyPath")){let i=(0,ne.ensureArray)(e.NavigationPropertyPath).map(r=>Ho(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(an(e,"String")){let i=(0,ne.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(an(e,"AnnotationPath")){let i=(0,ne.ensureArray)(e.AnnotationPath).map(r=>Ho(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(an(e,"Path")){let i=(0,ne.ensureArray)(e.Path).map(r=>Ho(r,"Path"));return i.type="Path",i}else if(an(e,"If")){let i=(0,ne.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}s(zs,"parseCollection");function bd(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:zs(e.Collection,t,n)};case"Record":return{type:"Record",Record:Go(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}s(bd,"parseInlineExpression");function Td(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._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[r]._text};case"Collection":return{type:"Collection",Collection:zs(e.Collection,t,n)};case"Record":return{type:"Record",Record:Go(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}s(Td,"parseExpression");function Jb(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,a={term:Wt(i),qualifier:r},l=`${t}@${Wt(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(a.value=bd(o,l,n)),e.Annotation){let f=Ko((0,ne.ensureArray)(e.Annotation),l,n);f&&f.length>0&&(a.annotations=f)}let c=Object.keys(e).filter(f=>f!=="_attributes"&&f!=="Annotation");return an(e,"Record")?a.record=Go(e.Record,l,n):an(e,"Collection")?a.collection=zs(e.Collection,l,n):c.length===1?a.value=Td({[c[0]]:e[c[0]]},l,n):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),a}s(Jb,"parseAnnotation");function Ko(e,t,n){return e.map(i=>Jb(i,t,n))}s(Ko,"parseAnnotations");function Qn(e,t){return{target:e,annotations:t}}s(Qn,"createAnnotationList");function Qb(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qn(Wt(n._attributes.Target),Ko((0,ne.ensureArray)(n.Annotation),n._attributes.Target,t)))})}s(Qb,"parseAnnotationLists");function zb(e,t,n){let i=e._attributes.Namespace,r=[],o=kb((0,ne.ensureArray)(e.EntityType),r,i),a=Bb((0,ne.ensureArray)(e.ComplexType),r,i),l=Ub((0,ne.ensureArray)(e.TypeDefinition),i),c=[],f=[],u=[],p={_type:"EntityContainer",fullyQualifiedName:""},g=[],b=[];if(e.EntityContainer)if(c=Hb((0,ne.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),f=Gb((0,ne.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),u=_b((0,ne.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),p={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")g=g.concat(Kb((0,ne.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(gd((0,ne.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(gd((0,ne.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(g=g.concat(dd((0,ne.ensureArray)(e.Action),i,!1)),g=g.concat(dd((0,ne.ensureArray)(e.Function),i,!0)));let x=Mb((0,ne.ensureArray)(e.Association),i);Qb((0,ne.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:x,associationSets:u,annotations:I,entityContainer:p,namespace:i,entitySets:c,singletons:f,complexTypes:a,typeDefinitions:l,actions:g,actionImports:b,entityTypes:o}}s(zb,"parseSchema");function qb(e){return e.reduce((t,n)=>((0,ne.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}s(qb,"parseReferences");var Qs={};function Oi(e){let t=e.match(md),n=t?t[1]:e,i=Wt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}s(Oi,"unaliasType");function Wt(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let o=0,a=!0;o<e.length;o++){let l=e[o];if(a&&l==="."){let c=e.substring(r,o);i.push((t=Qs[c])!==null&&t!==void 0?t:c),r=o,a=!1}n.includes(l)&&(i.push(e.substring(r,o+1)),r=o+1,a=!0)}return i.push(e.substring(r)),i.join("")}s(Wt,"unalias");function Xb(e){let t=e.reduce((b,x)=>b.concat(x.associations),[]),n=e.reduce((b,x)=>b.concat(x.associationSets),[]),i=e.reduce((b,x)=>b.concat(x.entitySets),[]),r=e.reduce((b,x)=>b.concat(x.singletons),[]),o=e.reduce((b,x)=>b.concat(x.entityTypes),[]),a=e.reduce((b,x)=>b.concat(x.actions),[]),l=e.reduce((b,x)=>b.concat(x.actionImports),[]),c=e.reduce((b,x)=>b.concat(x.complexTypes),[]),f=e.reduce((b,x)=>b.concat(x.typeDefinitions),[]),u={};e.forEach(b=>{u=Object.assign(u,b.annotations)});let p,g;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(p=b.entityContainer,g=b.namespace)}),i.forEach(b=>{let x=o.find(I=>I.fullyQualifiedName===b.entityTypeName);x==null||x.navigationProperties.forEach(I=>{let L=I,U=n.find(te=>te.association===L.relationship);if(U){let te=U.associationEnd.find(re=>re.entitySet!==b.fullyQualifiedName);te&&(b.navigationPropertyBinding[I.name]=te.entitySet)}})}),o.forEach(b=>{b.navigationProperties.forEach(x=>{let I=x,L=t.find(U=>U.fullyQualifiedName===I.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?I.referentialConstraint=L.referentialConstraints:I.referentialConstraint=L.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:u,entityContainer:p,namespace:g,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:f,actions:a,actionImports:l,entityTypes:o}}s(Xb,"mergeSchemas");function Yb(e,t){Qs=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Qs[n._attributes.Alias]=n._attributes.Namespace})}s(Yb,"createAliasMap");function Zb(e,t="serviceFile"){let n=(0,jb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,ne.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=qb((0,ne.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Yb(o,r);let a=r.map(c=>zb(c,i,t));return new ne.RawMetadataInstance(t,i,Xb(a),o)}s(Zb,"parse");Wo.parse=Zb});var Cd=Ae(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.parse=Fi.merge=void 0;var eT=Dp();Object.defineProperty(Fi,"merge",{enumerable:!0,get:function(){return eT.merge}});var tT=vd();Object.defineProperty(Fi,"parse",{enumerable:!0,get:function(){return tT.parse}})});var $d=Ae(()=>{var wd;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(c,f){return function(u,p){Object.defineProperty(c,u,{configurable:!0,writable:!0,value:p}),f&&f(u,p)}}s(r,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function l(){return o()||a()}s(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,f=!l&&!c,u={create:l?function(){return ps(Object.create(null))}:c?function(){return ps({__proto__:null})}:function(){return ps({})},has:f?function(T,S){return i.call(T,S)}:function(T,S){return S in T},get:f?function(T,S){return i.call(T,S)?T[S]:void 0}:function(T,S){return T[S]}},p=Object.getPrototypeOf(Function),g=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Jm(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Qm(),x=typeof WeakMap=="function"?WeakMap:zm(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,L=Gm(),U=Km(L);function te(T,S,A,V){if(q(A)){if(!Me(T))throw new TypeError;if(!et(S))throw new TypeError;return bn(T,S)}else{if(!Me(T))throw new TypeError;if(!Re(S))throw new TypeError;if(!Re(V)&&!q(V)&&!tn(V))throw new TypeError;return tn(V)&&(V=void 0),A=se(A),Ti(T,S,A,V)}}s(te,"decorate"),t("decorate",te);function re(T,S){function A(V,Q){if(!Re(V))throw new TypeError;if(!q(Q)&&!pt(Q))throw new TypeError;Ke(T,S,V,Q)}return s(A,"decorator"),A}s(re,"metadata"),t("metadata",re);function oe(T,S,A,V){if(!Re(A))throw new TypeError;return q(V)||(V=se(V)),Ke(T,S,A,V)}s(oe,"defineMetadata"),t("defineMetadata",oe);function J(T,S,A){if(!Re(S))throw new TypeError;return q(A)||(A=se(A)),Ct(T,S,A)}s(J,"hasMetadata"),t("hasMetadata",J);function le(T,S,A){if(!Re(S))throw new TypeError;return q(A)||(A=se(A)),It(T,S,A)}s(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Se(T,S,A){if(!Re(S))throw new TypeError;return q(A)||(A=se(A)),ge(T,S,A)}s(Se,"getMetadata"),t("getMetadata",Se);function C(T,S,A){if(!Re(S))throw new TypeError;return q(A)||(A=se(A)),Wn(T,S,A)}s(C,"getOwnMetadata"),t("getOwnMetadata",C);function Zt(T,S){if(!Re(T))throw new TypeError;return q(S)||(S=se(S)),ut(T,S)}s(Zt,"getMetadataKeys"),t("getMetadataKeys",Zt);function Bt(T,S){if(!Re(T))throw new TypeError;return q(S)||(S=se(S)),tt(T,S)}s(Bt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Bt);function Pe(T,S,A){if(!Re(S))throw new TypeError;if(q(A)||(A=se(A)),!Re(S))throw new TypeError;q(A)||(A=se(A));var V=nr(S,A,!1);return q(V)?!1:V.OrdinaryDeleteMetadata(T,S,A)}s(Pe,"deleteMetadata"),t("deleteMetadata",Pe);function bn(T,S){for(var A=T.length-1;A>=0;--A){var V=T[A],Q=V(S);if(!q(Q)&&!tn(Q)){if(!et(Q))throw new TypeError;S=Q}}return S}s(bn,"DecorateConstructor");function Ti(T,S,A,V){for(var Q=T.length-1;Q>=0;--Q){var Be=T[Q],Je=Be(S,A,V);if(!q(Je)&&!tn(Je)){if(!Re(Je))throw new TypeError;V=Je}}return V}s(Ti,"DecorateProperty");function Ct(T,S,A){var V=It(T,S,A);if(V)return!0;var Q=Ci(S);return tn(Q)?!1:Ct(T,Q,A)}s(Ct,"OrdinaryHasMetadata");function It(T,S,A){var V=nr(S,A,!1);return q(V)?!1:E(V.OrdinaryHasOwnMetadata(T,S,A))}s(It,"OrdinaryHasOwnMetadata");function ge(T,S,A){var V=It(T,S,A);if(V)return Wn(T,S,A);var Q=Ci(S);if(!tn(Q))return ge(T,Q,A)}s(ge,"OrdinaryGetMetadata");function Wn(T,S,A){var V=nr(S,A,!1);if(!q(V))return V.OrdinaryGetOwnMetadata(T,S,A)}s(Wn,"OrdinaryGetOwnMetadata");function Ke(T,S,A,V){var Q=nr(A,V,!0);Q.OrdinaryDefineOwnMetadata(T,S,A,V)}s(Ke,"OrdinaryDefineOwnMetadata");function ut(T,S){var A=tt(T,S),V=Ci(T);if(V===null)return A;var Q=ut(V,S);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Be=new b,Je=[],fe=0,R=A;fe<R.length;fe++){var M=R[fe],H=Be.has(M);H||(Be.add(M),Je.push(M))}for(var K=0,me=Q;K<me.length;K++){var M=me[K],H=Be.has(M);H||(Be.add(M),Je.push(M))}return Je}s(ut,"OrdinaryMetadataKeys");function tt(T,S){var A=nr(T,S,!1);return A?A.OrdinaryOwnMetadataKeys(T,S):[]}s(tt,"OrdinaryOwnMetadataKeys");function en(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}s(en,"Type");function q(T){return T===void 0}s(q,"IsUndefined");function tn(T){return T===null}s(tn,"IsNull");function vo(T){return typeof T=="symbol"}s(vo,"IsSymbol");function Re(T){return typeof T=="object"?T!==null:typeof T=="function"}s(Re,"IsObject");function h(T,S){switch(en(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var A=S===3?"string":S===5?"number":"default",V=We(T,o);if(V!==void 0){var Q=V.call(T,A);if(Re(Q))throw new TypeError;return Q}return d(T,A==="default"?"number":A)}s(h,"ToPrimitive");function d(T,S){if(S==="string"){var A=T.toString;if(Ne(A)){var V=A.call(T);if(!Re(V))return V}var Q=T.valueOf;if(Ne(Q)){var V=Q.call(T);if(!Re(V))return V}}else{var Q=T.valueOf;if(Ne(Q)){var V=Q.call(T);if(!Re(V))return V}var Be=T.toString;if(Ne(Be)){var V=Be.call(T);if(!Re(V))return V}}throw new TypeError}s(d,"OrdinaryToPrimitive");function E(T){return!!T}s(E,"ToBoolean");function v(T){return""+T}s(v,"ToString");function se(T){var S=h(T,3);return vo(S)?S:v(S)}s(se,"ToPropertyKey");function Me(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}s(Me,"IsArray");function Ne(T){return typeof T=="function"}s(Ne,"IsCallable");function et(T){return typeof T=="function"}s(et,"IsConstructor");function pt(T){switch(en(T)){case 3:return!0;case 4:return!0;default:return!1}}s(pt,"IsPropertyKey");function Ut(T,S){return T===S||T!==T&&S!==S}s(Ut,"SameValueZero");function We(T,S){var A=T[S];if(A!=null){if(!Ne(A))throw new TypeError;return A}}s(We,"GetMethod");function Ot(T){var S=We(T,a);if(!Ne(S))throw new TypeError;var A=S.call(T);if(!Re(A))throw new TypeError;return A}s(Ot,"GetIterator");function Co(T){return T.value}s(Co,"IteratorValue");function tr(T){var S=T.next();return S.done?!1:S}s(tr,"IteratorStep");function vi(T){var S=T.return;S&&S.call(T)}s(vi,"IteratorClose");function Ci(T){var S=Object.getPrototypeOf(T);if(typeof T!="function"||T===p||S!==p)return S;var A=T.prototype,V=A&&Object.getPrototypeOf(A);if(V==null||V===Object.prototype)return S;var Q=V.constructor;return typeof Q!="function"||Q===T?S:Q}s(Ci,"OrdinaryGetPrototypeOf");function Hm(){var T;!q(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(T=Wm(n.Reflect));var S,A,V,Q=new x,Be={registerProvider:Je,getProvider:R,setProvider:H};return Be;function Je(K){if(!Object.isExtensible(Be))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case T===K:break;case q(S):S=K;break;case S===K:break;case q(A):A=K;break;case A===K:break;default:V===void 0&&(V=new b),V.add(K);break}}function fe(K,me){if(!q(S)){if(S.isProviderFor(K,me))return S;if(!q(A)){if(A.isProviderFor(K,me))return S;if(!q(V))for(var je=Ot(V);;){var Ue=tr(je);if(!Ue)return;var Dt=Co(Ue);if(Dt.isProviderFor(K,me))return vi(je),Dt}}}if(!q(T)&&T.isProviderFor(K,me))return T}function R(K,me){var je=Q.get(K),Ue;return q(je)||(Ue=je.get(me)),q(Ue)&&(Ue=fe(K,me),q(Ue)||(q(je)&&(je=new g,Q.set(K,je)),je.set(me,Ue))),Ue}function M(K){if(q(K))throw new TypeError;return S===K||A===K||!q(V)&&V.has(K)}function H(K,me,je){if(!M(je))throw new Error("Metadata provider not registered.");var Ue=R(K,me);if(Ue!==je){if(!q(Ue))return!1;var Dt=Q.get(K);q(Dt)&&(Dt=new g,Q.set(K,Dt)),Dt.set(me,je)}return!0}}s(Hm,"CreateMetadataRegistry");function Gm(){var T;return!q(I)&&Re(n.Reflect)&&Object.isExtensible(n.Reflect)&&(T=n.Reflect[I]),q(T)&&(T=Hm()),!q(I)&&Re(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:T}),T}s(Gm,"GetOrCreateMetadataRegistry");function Km(T){var S=new x,A={isProviderFor:function(M,H){var K=S.get(M);return q(K)?!1:K.has(H)},OrdinaryDefineOwnMetadata:Je,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Be,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:R};return L.registerProvider(A),A;function V(M,H,K){var me=S.get(M),je=!1;if(q(me)){if(!K)return;me=new g,S.set(M,me),je=!0}var Ue=me.get(H);if(q(Ue)){if(!K)return;if(Ue=new g,me.set(H,Ue),!T.setProvider(M,H,A))throw me.delete(H),je&&S.delete(M),new Error("Wrong provider for target.")}return Ue}s(V,"GetOrCreateMetadataMap");function Q(M,H,K){var me=V(H,K,!1);return q(me)?!1:E(me.has(M))}s(Q,"OrdinaryHasOwnMetadata");function Be(M,H,K){var me=V(H,K,!1);if(!q(me))return me.get(M)}s(Be,"OrdinaryGetOwnMetadata");function Je(M,H,K,me){var je=V(K,me,!0);je.set(M,H)}s(Je,"OrdinaryDefineOwnMetadata");function fe(M,H){var K=[],me=V(M,H,!1);if(q(me))return K;for(var je=me.keys(),Ue=Ot(je),Dt=0;;){var gf=tr(Ue);if(!gf)return K.length=Dt,K;var qm=Co(gf);try{K[Dt]=qm}catch(Xm){try{vi(Ue)}finally{throw Xm}}Dt++}}s(fe,"OrdinaryOwnMetadataKeys");function R(M,H,K){var me=V(H,K,!1);if(q(me)||!me.delete(M))return!1;if(me.size===0){var je=S.get(H);q(je)||(je.delete(K),je.size===0&&S.delete(je))}return!0}s(R,"OrdinaryDeleteMetadata")}s(Km,"CreateMetadataProvider");function Wm(T){var S=T.defineMetadata,A=T.hasOwnMetadata,V=T.getOwnMetadata,Q=T.getOwnMetadataKeys,Be=T.deleteMetadata,Je=new x,fe={isProviderFor:function(R,M){var H=Je.get(R);return!q(H)&&H.has(M)?!0:Q(R,M).length?(q(H)&&(H=new b,Je.set(R,H)),H.add(M),!0):!1},OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:V,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Be};return fe}s(Wm,"CreateFallbackProvider");function nr(T,S,A){var V=L.getProvider(T,S);if(!q(V))return V;if(A){if(L.setProvider(T,S,U))return U;throw new Error("Illegal state.")}}s(nr,"GetMetadataProvider");function Jm(){var T={},S=[],A=function(){function fe(R,M,H){this._index=0,this._keys=R,this._values=M,this._selector=H}return s(fe,"MapIterator"),fe.prototype["@@iterator"]=function(){return this},fe.prototype[a]=function(){return this},fe.prototype.next=function(){var R=this._index;if(R>=0&&R<this._keys.length){var M=this._selector(this._keys[R],this._values[R]);return R+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:M,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(R){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),R},fe.prototype.return=function(R){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:R,done:!0}},fe}(),V=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return s(fe,"Map"),Object.defineProperty(fe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),fe.prototype.has=function(R){return this._find(R,!1)>=0},fe.prototype.get=function(R){var M=this._find(R,!1);return M>=0?this._values[M]:void 0},fe.prototype.set=function(R,M){var H=this._find(R,!0);return this._values[H]=M,this},fe.prototype.delete=function(R){var M=this._find(R,!1);if(M>=0){for(var H=this._keys.length,K=M+1;K<H;K++)this._keys[K-1]=this._keys[K],this._values[K-1]=this._values[K];return this._keys.length--,this._values.length--,Ut(R,this._cacheKey)&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},fe.prototype.keys=function(){return new A(this._keys,this._values,Q)},fe.prototype.values=function(){return new A(this._keys,this._values,Be)},fe.prototype.entries=function(){return new A(this._keys,this._values,Je)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[a]=function(){return this.entries()},fe.prototype._find=function(R,M){if(!Ut(this._cacheKey,R)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(Ut(this._keys[H],R)){this._cacheIndex=H;break}}return this._cacheIndex<0&&M&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},fe}();return V;function Q(fe,R){return fe}function Be(fe,R){return R}function Je(fe,R){return[fe,R]}}s(Jm,"CreateMapPolyfill");function Qm(){var T=function(){function S(){this._map=new g}return s(S,"Set"),Object.defineProperty(S.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),S.prototype.has=function(A){return this._map.has(A)},S.prototype.add=function(A){return this._map.set(A,A),this},S.prototype.delete=function(A){return this._map.delete(A)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[a]=function(){return this.keys()},S}();return T}s(Qm,"CreateSetPolyfill");function zm(){var T=16,S=u.create(),A=V();return function(){function R(){this._key=V()}return s(R,"WeakMap"),R.prototype.has=function(M){var H=Q(M,!1);return H!==void 0?u.has(H,this._key):!1},R.prototype.get=function(M){var H=Q(M,!1);return H!==void 0?u.get(H,this._key):void 0},R.prototype.set=function(M,H){var K=Q(M,!0);return K[this._key]=H,this},R.prototype.delete=function(M){var H=Q(M,!1);return H!==void 0?delete H[this._key]:!1},R.prototype.clear=function(){this._key=V()},R}();function V(){var R;do R="@@WeakMap@@"+fe();while(u.has(S,R));return S[R]=!0,R}function Q(R,M){if(!i.call(R,A)){if(!M)return;Object.defineProperty(R,A,{value:u.create()})}return R[A]}function Be(R,M){for(var H=0;H<M;++H)R[H]=Math.random()*255|0;return R}function Je(R){if(typeof Uint8Array=="function"){var M=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(M):typeof msCrypto<"u"?msCrypto.getRandomValues(M):Be(M,R),M}return Be(new Array(R),R)}function fe(){var R=Je(T);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var M="",H=0;H<T;++H){var K=R[H];(H===4||H===6||H===8)&&(M+="-"),K<16&&(M+="0"),M+=K.toString(16).toLowerCase()}return M}}s(zm,"CreateWeakMapPolyfill");function ps(T){return T.__=void 0,delete T.__,T}s(ps,"MakeDictionary")})})(wd||(wd={}))});var Gd=Ae((ZP,Hd)=>{var CT=0,Ud="changeUtils: ";function xT(){return"id-"+new Date().valueOf()+"-"+CT++}s(xT,"uid");function ST(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}s(ST,"appendComponentToReference");function PT(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return ST(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}s(PT,"getFlexReference");function AT(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}s(AT,"getAppVersion");function ET(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}s(ET,"getProjectId");function Bd(e){return JSON.stringify({fileName:e.id||xT().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:Ud+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})}s(Bd,"createString");Hd.exports={parse: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(Ud,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString: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=PT(t),e.appVersion=AT(t),e.projectId=ET(t,e.reference),Bd(e)},toString: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 Bd(e)}}});var Wd=Ae((tA,Kd)=>{Kd.exports={change:Gd()}});var $g=Ae(Lt=>{"use strict";var ZT=/[|\\{}()[\]^$+*?.]/g,ev=Object.prototype.hasOwnProperty,Ol=s(function(e,t){return ev.apply(e,[t])},"hasOwn");Lt.escapeRegExpChars=function(e){return e?String(e).replace(ZT,"\\$&"):""};var tv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},nv=/[&<>'"]/g;function iv(e){return tv[e]||e}s(iv,"encode_char");var rv=`var _ENCODE_HTML_RULES = {
27
+ `?(d.line++,d.column=0):d.column++);d.textNode+=h.substring(se,E-1)}v==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):(!re(v)&&(!d.sawRoot||d.closedRoot)&&ge(d,"Text data outside of root node."),v==="&"?d.state=C.TEXT_ENTITY:d.textNode+=v);continue;case C.SCRIPT:v==="<"?d.state=C.SCRIPT_ENDING:d.script+=v;continue;case C.SCRIPT_ENDING:v==="/"?d.state=C.CLOSE_TAG:(d.script+="<"+v,d.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(v==="!")d.state=C.SGML_DECL,d.sgmlDecl="";else if(!re(v))if(le(I,v))d.state=C.OPEN_TAG,d.tagName=v;else if(v==="/")d.state=C.CLOSE_TAG,d.tagName="";else if(v==="?")d.state=C.PROC_INST,d.procInstName=d.procInstBody="";else{if(ge(d,"Unencoded <"),d.startTagPosition+1<d.position){var Me=d.position-d.startTagPosition;v=new Array(Me).join(" ")+v}d.textNode+="<"+v,d.state=C.TEXT}continue;case C.SGML_DECL:(d.sgmlDecl+v).toUpperCase()===u?(Pe(d,"onopencdata"),d.state=C.CDATA,d.sgmlDecl="",d.cdata=""):d.sgmlDecl+v==="--"?(d.state=C.COMMENT,d.comment="",d.sgmlDecl=""):(d.sgmlDecl+v).toUpperCase()===p?(d.state=C.DOCTYPE,(d.doctype||d.sawRoot)&&ge(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):v===">"?(Pe(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=C.TEXT):(oe(v)&&(d.state=C.SGML_DECL_QUOTED),d.sgmlDecl+=v);continue;case C.SGML_DECL_QUOTED:v===d.q&&(d.state=C.SGML_DECL,d.q=""),d.sgmlDecl+=v;continue;case C.DOCTYPE:v===">"?(d.state=C.TEXT,Pe(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=v,v==="["?d.state=C.DOCTYPE_DTD:oe(v)&&(d.state=C.DOCTYPE_QUOTED,d.q=v));continue;case C.DOCTYPE_QUOTED:d.doctype+=v,v===d.q&&(d.q="",d.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:d.doctype+=v,v==="]"?d.state=C.DOCTYPE:oe(v)&&(d.state=C.DOCTYPE_DTD_QUOTED,d.q=v);continue;case C.DOCTYPE_DTD_QUOTED:d.doctype+=v,v===d.q&&(d.state=C.DOCTYPE_DTD,d.q="");continue;case C.COMMENT:v==="-"?d.state=C.COMMENT_ENDING:d.comment+=v;continue;case C.COMMENT_ENDING:v==="-"?(d.state=C.COMMENT_ENDED,d.comment=Ti(d.opt,d.comment),d.comment&&Pe(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+v,d.state=C.COMMENT);continue;case C.COMMENT_ENDED:v!==">"?(ge(d,"Malformed comment"),d.comment+="--"+v,d.state=C.COMMENT):d.state=C.TEXT;continue;case C.CDATA:v==="]"?d.state=C.CDATA_ENDING:d.cdata+=v;continue;case C.CDATA_ENDING:v==="]"?d.state=C.CDATA_ENDING_2:(d.cdata+="]"+v,d.state=C.CDATA);continue;case C.CDATA_ENDING_2:v===">"?(d.cdata&&Pe(d,"oncdata",d.cdata),Pe(d,"onclosecdata"),d.cdata="",d.state=C.TEXT):v==="]"?d.cdata+="]":(d.cdata+="]]"+v,d.state=C.CDATA);continue;case C.PROC_INST:v==="?"?d.state=C.PROC_INST_ENDING:re(v)?d.state=C.PROC_INST_BODY:d.procInstName+=v;continue;case C.PROC_INST_BODY:if(!d.procInstBody&&re(v))continue;v==="?"?d.state=C.PROC_INST_ENDING:d.procInstBody+=v;continue;case C.PROC_INST_ENDING:v===">"?(Pe(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=C.TEXT):(d.procInstBody+="?"+v,d.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:le(L,v)?d.tagName+=v:(Wn(d),v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:(re(v)||ge(d,"Invalid character in tag name"),d.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:v===">"?(tt(d,!0),en(d)):(ge(d,"Forward-slash in opening tag not followed by >"),d.state=C.ATTRIB);continue;case C.ATTRIB:if(re(v))continue;v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:le(I,v)?(d.attribName=v,d.attribValue="",d.state=C.ATTRIB_NAME):ge(d,"Invalid attribute name");continue;case C.ATTRIB_NAME:v==="="?d.state=C.ATTRIB_VALUE:v===">"?(ge(d,"Attribute without value"),d.attribValue=d.attribName,ut(d),tt(d)):re(v)?d.state=C.ATTRIB_NAME_SAW_WHITE:le(L,v)?d.attribName+=v:ge(d,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(v==="=")d.state=C.ATTRIB_VALUE;else{if(re(v))continue;ge(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Pe(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",v===">"?tt(d):le(I,v)?(d.attribName=v,d.state=C.ATTRIB_NAME):(ge(d,"Invalid attribute name"),d.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(re(v))continue;oe(v)?(d.q=v,d.state=C.ATTRIB_VALUE_QUOTED):(ge(d,"Unquoted attribute value"),d.state=C.ATTRIB_VALUE_UNQUOTED,d.attribValue=v);continue;case C.ATTRIB_VALUE_QUOTED:if(v!==d.q){v==="&"?d.state=C.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=v;continue}ut(d),d.q="",d.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:re(v)?d.state=C.ATTRIB:v===">"?tt(d):v==="/"?d.state=C.OPEN_TAG_SLASH:le(I,v)?(ge(d,"No whitespace between attributes"),d.attribName=v,d.attribValue="",d.state=C.ATTRIB_NAME):ge(d,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!J(v)){v==="&"?d.state=C.ATTRIB_VALUE_ENTITY_U:d.attribValue+=v;continue}ut(d),v===">"?tt(d):d.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(d.tagName)v===">"?en(d):le(L,v)?d.tagName+=v:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=C.SCRIPT):(re(v)||ge(d,"Invalid tagname in closing tag"),d.state=C.CLOSE_TAG_SAW_WHITE);else{if(re(v))continue;Se(I,v)?d.script?(d.script+="</"+v,d.state=C.SCRIPT):ge(d,"Invalid tagname in closing tag."):d.tagName=v}continue;case C.CLOSE_TAG_SAW_WHITE:if(re(v))continue;v===">"?en(d):ge(d,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var Ne,et;switch(d.state){case C.TEXT_ENTITY:Ne=C.TEXT,et="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:Ne=C.ATTRIB_VALUE_QUOTED,et="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:Ne=C.ATTRIB_VALUE_UNQUOTED,et="attribValue";break}if(v===";")if(d.opt.unparsedEntities){var pt=q(d);d.entity="",d.state=Ne,d.write(pt)}else d[et]+=q(d),d.entity="",d.state=Ne;else le(d.entity.length?te:B,v)?d.entity+=v:(ge(d,"Invalid character in entity name"),d[et]+="&"+d.entity+v,d.entity="",d.state=Ne);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}o($e,"write");String.fromCodePoint||function(){var h=String.fromCharCode,d=Math.floor,E=o(function(){var v=16384,se=[],Me,Ne,et=-1,pt=arguments.length;if(!pt)return"";for(var Bt="";++et<pt;){var We=Number(arguments[et]);if(!isFinite(We)||We<0||We>1114111||d(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?se.push(We):(We-=65536,Me=(We>>10)+55296,Ne=We%1024+56320,se.push(Me,Ne)),(et+1===pt||se.length>v)&&(Bt+=h.apply(null,se),se.length=0)}return Bt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E}()})(typeof Mo>"u"?Mo.sax={}:Mo)});var ko=Ae((AP,$p)=>{$p.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Uo=Ae((IP,Rp)=>{var mb=ko().isArray;Rp.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!mb(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Ks=Ae((FP,Kp)=>{var yb=wp(),hb={on:o(function(){},"on"),parse:o(function(){},"parse")},ce=Uo(),Ii=ko().isArray,P,Gs=!0,ee;function bb(e){return P=ce.copyOptions(e),ce.ensureFlagExists("ignoreDeclaration",P),ce.ensureFlagExists("ignoreInstruction",P),ce.ensureFlagExists("ignoreAttributes",P),ce.ensureFlagExists("ignoreText",P),ce.ensureFlagExists("ignoreComment",P),ce.ensureFlagExists("ignoreCdata",P),ce.ensureFlagExists("ignoreDoctype",P),ce.ensureFlagExists("compact",P),ce.ensureFlagExists("alwaysChildren",P),ce.ensureFlagExists("addParent",P),ce.ensureFlagExists("trim",P),ce.ensureFlagExists("nativeType",P),ce.ensureFlagExists("nativeTypeAttributes",P),ce.ensureFlagExists("sanitize",P),ce.ensureFlagExists("instructionHasAttributes",P),ce.ensureFlagExists("captureSpacesBetweenElements",P),ce.ensureAlwaysArrayExists(P),ce.ensureKeyExists("declaration",P),ce.ensureKeyExists("instruction",P),ce.ensureKeyExists("attributes",P),ce.ensureKeyExists("text",P),ce.ensureKeyExists("comment",P),ce.ensureKeyExists("cdata",P),ce.ensureKeyExists("doctype",P),ce.ensureKeyExists("type",P),ce.ensureKeyExists("name",P),ce.ensureKeyExists("elements",P),ce.ensureKeyExists("parent",P),ce.checkFnExists("doctype",P),ce.checkFnExists("instruction",P),ce.checkFnExists("cdata",P),ce.checkFnExists("comment",P),ce.checkFnExists("text",P),ce.checkFnExists("instructionName",P),ce.checkFnExists("elementName",P),ce.checkFnExists("attributeName",P),ce.checkFnExists("attributeValue",P),ce.checkFnExists("attributes",P),P}o(bb,"validateOptions");function Hp(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(Hp,"nativeType");function fr(e,t){var n;if(P.compact){if(!ee[P[e+"Key"]]&&(Ii(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(ee[P[e+"Key"]]=[]),ee[P[e+"Key"]]&&!Ii(ee[P[e+"Key"]])&&(ee[P[e+"Key"]]=[ee[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,ee)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,ee);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,ee)]=i}}Ii(ee[P[e+"Key"]])?ee[P[e+"Key"]].push(t):ee[P[e+"Key"]]=t}else{ee[P.elementsKey]||(ee[P.elementsKey]=[]);var r={};if(r[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,ee):n,P.instructionHasAttributes?(r[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(r[P.attributesKey]=P.instructionFn(r[P.attributesKey],n,ee))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,ee)),r[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,ee)),r[P[e+"Key"]]=t;P.addParent&&(r[P.parentKey]=ee),ee[P.elementsKey].push(r)}}o(fr,"addField");function Gp(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,ee)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Hp(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,ee)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],ee)]=n}}return e}o(Gp,"manipulateAttributes");function Tb(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.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=Gp(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;ee[P.declarationKey]={},Object.keys(t).length&&(ee[P.declarationKey][P.attributesKey]=t),P.addParent&&(ee[P.declarationKey][P.parentKey]=ee)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var r={};P.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][P.attributesKey]=t):r[e.name]=e.body,fr("instruction",r)}}o(Tb,"onInstruction");function _p(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Gp(t),"elementNameFn"in P&&(e=P.elementNameFn(e,ee)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in ee)&&(Ii(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(ee[e]=[]),ee[e]&&!Ii(ee[e])&&(ee[e]=[ee[e]]),Ii(ee[e])?ee[e].push(n):ee[e]=n}else ee[P.elementsKey]||(ee[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),ee[P.elementsKey].push(n);n[P.parentKey]=ee,ee=n}o(_p,"onStartElement");function Mp(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Hp(e)),P.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),fr("text",e))}o(Mp,"onText");function kp(e){P.ignoreComment||(P.trim&&(e=e.trim()),fr("comment",e))}o(kp,"onComment");function Up(e){var t=ee[P.parentKey];P.addParent||delete ee[P.parentKey],ee=t}o(Up,"onEndElement");function vb(e){P.ignoreCdata||(P.trim&&(e=e.trim()),fr("cdata",e))}o(vb,"onCdata");function Cb(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),fr("doctype",e))}o(Cb,"onDoctype");function Bp(e){e.note=e}o(Bp,"onError");Kp.exports=function(e,t){var n=Gs?yb.parser(!0,{}):n=new hb.Parser("UTF-8"),i={};if(ee=i,P=bb(t),Gs?(n.opt={strictEntities:!0},n.onopentag=_p,n.ontext=Mp,n.oncomment=kp,n.onclosetag=Up,n.onerror=Bp,n.oncdata=vb,n.ondoctype=Cb,n.onprocessinginstruction=Tb):(n.on("startElement",_p),n.on("text",Mp),n.on("comment",kp),n.on("endElement",Up),n.on("error",Bp)),Gs)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var r=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=r,delete i.text}return i}});var Qp=Ae((LP,Jp)=>{var Wp=Uo(),xb=Ks();function Sb(e){var t=Wp.copyOptions(e);return Wp.ensureSpacesExists(t),t}o(Sb,"validateOptions");Jp.exports=function(e,t){var n,i,r,a;return n=Sb(t),i=xb(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Js=Ae((jP,id)=>{var ue=Uo(),Pb=ko().isArray,nt,it;function Ab(e){var t=ue.copyOptions(e);return ue.ensureFlagExists("ignoreDeclaration",t),ue.ensureFlagExists("ignoreInstruction",t),ue.ensureFlagExists("ignoreAttributes",t),ue.ensureFlagExists("ignoreText",t),ue.ensureFlagExists("ignoreComment",t),ue.ensureFlagExists("ignoreCdata",t),ue.ensureFlagExists("ignoreDoctype",t),ue.ensureFlagExists("compact",t),ue.ensureFlagExists("indentText",t),ue.ensureFlagExists("indentCdata",t),ue.ensureFlagExists("indentAttributes",t),ue.ensureFlagExists("indentInstruction",t),ue.ensureFlagExists("fullTagEmptyElement",t),ue.ensureFlagExists("noQuotesForNativeAttributes",t),ue.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ue.ensureKeyExists("declaration",t),ue.ensureKeyExists("instruction",t),ue.ensureKeyExists("attributes",t),ue.ensureKeyExists("text",t),ue.ensureKeyExists("comment",t),ue.ensureKeyExists("cdata",t),ue.ensureKeyExists("doctype",t),ue.ensureKeyExists("type",t),ue.ensureKeyExists("name",t),ue.ensureKeyExists("elements",t),ue.checkFnExists("doctype",t),ue.checkFnExists("instruction",t),ue.checkFnExists("cdata",t),ue.checkFnExists("comment",t),ue.checkFnExists("text",t),ue.checkFnExists("instructionName",t),ue.checkFnExists("elementName",t),ue.checkFnExists("attributeName",t),ue.checkFnExists("attributeValue",t),ue.checkFnExists("attributes",t),ue.checkFnExists("fullTagEmptyElement",t),t}o(Ab,"validateOptions");function Kt(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}o(Kt,"writeIndentation");function Bo(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,it,nt));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,r,it,nt):i,l.push(t.spaces&&t.indentAttributes?Kt(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,it,nt):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Kt(t,n,!1)),l.join("")}o(Bo,"writeAttributes");function zp(e,t,n){return nt=e,it="xml",t.ignoreDeclaration?"":"<?xml"+Bo(e[t.attributesKey],t,n)+"?>"}o(zp,"writeDeclaration");function qp(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],it,nt):i;if(typeof e[i]=="object")return nt=e,it=r,"<?"+r+Bo(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,it,nt)),"<?"+r+(a?" "+a:"")+"?>"}o(qp,"writeInstruction");function Xp(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,it,nt):e)+"-->"}o(Xp,"writeComment");function Yp(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,it,nt):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(Yp,"writeCdata");function Zp(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,it,nt):e)+">"}o(Zp,"writeDoctype");function Ws(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,it,nt):e)}o(Ws,"writeText");function Eb(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(Eb,"hasContent");function Ib(e,t,n){nt=e,it=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Bo(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(ed(e[t.elementsKey],t,n+1)),nt=e,it=e.name),i.push(t.spaces&&Eb(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Ib,"writeElement");function ed(e,t,n,i){return e.reduce(function(r,a){var s=Kt(t,n,i&&!r);switch(a.type){case"element":return r+s+Ib(a,t,n);case"comment":return r+s+Xp(a[t.commentKey],t);case"doctype":return r+s+Zp(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+Yp(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Ws(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+qp(l,t,n)}},"")}o(ed,"writeElements");function td(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(td,"hasContentCompact");function Ob(e,t,n,i,r){nt=e,it=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(">"+Ws(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Bo(e[n.attributesKey],n,i));var l=td(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(nd(e,n,i+1,!1)),nt=e,it=t,t&&s.push((r?Kt(n,i,!1):"")+"</"+a+">"),s.join("")}o(Ob,"writeElementCompact");function nd(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=Pb(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(zp(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Kt(t,n,i):"")+qp(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Kt(t,n,i):"")+Ws(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Kt(t,n,i):"")+Yp(s[r],t));break;case t.doctypeKey:l.push(Kt(t,n,i)+Zp(s[r],t));break;case t.commentKey:l.push(Kt(t,n,i)+Xp(s[r],t));break;default:l.push(Kt(t,n,i)+Ob(s[r],a,t,n,td(s[r],t)))}i=i&&!l.length}return l.join("")}o(nd,"writeElementsCompact");id.exports=function(e,t){t=Ab(t);var n=[];return nt=e,it="_root_",t.compact?n.push(nd(e,t,0,!0)):(e[t.declarationKey]&&n.push(zp(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(ed(e[t.elementsKey],t,0,!n.length))),n.join("")}});var od=Ae((wP,rd)=>{var Fb=Js();rd.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 Fb(n,t)}});var ur=Ae(($P,ad)=>{var Nb=Ks(),Lb=Qp(),Vb=Js(),jb=od();ad.exports={xml2js:Nb,xml2json:Lb,js2xml:Vb,json2xml:jb}});var pd=Ae(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.convertEntityTypeAnnotations=gt.convertPropertyAnnotations=gt.convertNavigationPropertyAnnotations=gt.convertEntitySetAnnotations=gt.convertGenericAnnotations=gt.convertV2Annotations=void 0;function Db(e,t,n){let i=[];switch(t){case"EntitySet":ld(e,i);break;case"EntityType":ud(e,i);break;case"NavigationProperty":cd(e,n,i);break;case"Property":fd(e,n,i);break;case"Singleton":break;default:break}return sd(e,n,i),i}o(Db,"convertV2Annotations");gt.convertV2Annotations=Db;function sd(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(sd,"convertGenericAnnotations");gt.convertGenericAnnotations=sd;function ld(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(ld,"convertEntitySetAnnotations");gt.convertEntitySetAnnotations=ld;function cd(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(cd,"convertNavigationPropertyAnnotations");gt.convertNavigationPropertyAnnotations=cd;function fd(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(fd,"convertPropertyAnnotations");gt.convertPropertyAnnotations=fd;function ud(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(ud,"convertEntityTypeAnnotations");gt.convertEntityTypeAnnotations=ud});var vd=Ae(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.parse=void 0;var wb=ur(),ne=Hs(),pr=pd(),md=/^Collection\((.+)\)$/;function $b(e){return e.Type!==null&&e.Type!==void 0}o($b,"isV4NavProperty");function Rb(e){return e.map(t=>t._attributes.Name)}o(Rb,"getEntityTypeKeys");function yd(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Oi(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":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,pr.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Qn(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(yd,"parseProperties");function _b(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(_b,"parseReferentialConstraint");function Mb(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,ne.ensureArray)(i.Principal.PropertyRef),l=(0,ne.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,ne.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let f=s.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[f]._attributes.Name})}}return n},[])}o(Mb,"parseV2ReferentialConstraint");function hd(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if($b(s)){let l=s.Type.match(md),c=l!==null,f=Wt(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:c,targetTypeName:f,referentialConstraint:_b((0,ne.ensureArray)(a.ReferentialConstraint),t._attributes.Name,f)})}else{let{Relationship:l,ToRole:c,FromRole:f}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:f});let u=(0,pr.convertV2Annotations)(s,"NavigationProperty",s.Name);u.length>0&&i.push(Qn(`${n}/${s.Name}`,u))}return r},[])}o(hd,"parseNavigationProperties");function kb(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,ne.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(kb,"parseAssociationSets");function Ub(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,ne.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:Mb((0,ne.ensureArray)(n.ReferentialConstraint),r)}})}o(Ub,"parseAssociations");function Bb(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Rb((0,ne.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=yd((0,ne.ensureArray)(r.Property),a,s,t),f=hd((0,ne.ensureArray)(r.NavigationProperty),r,s,t),u={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:f},p=(0,pr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(Qn(u.fullyQualifiedName,p)),i.push(u),i},[])}o(Bb,"parseEntityTypes");function Hb(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=yd((0,ne.ensureArray)(r.Property),[],a,t),l=hd((0,ne.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(Hb,"parseComplexTypes");function Gb(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(Gb,"parseTypeDefinitions");function Kb(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ne.ensureArray)(a.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Wt(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,pr.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(Qn(l.fullyQualifiedName,c)),l})}o(Kb,"parseEntitySets");function Wb(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ne.ensureArray)(a.NavigationPropertyBinding).map(f=>[f._attributes.Path,`${t}.${n}/${f._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Wt(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,pr.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(Qn(l.fullyQualifiedName,c)),l})}o(Wb,"parseSingletons");function dd(e,t,n){return e.map(i=>{let r=(0,ne.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(c=>Oi(c._attributes.Type).type).join(","):s=a?Oi(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Oi(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:f,type:u}=Oi(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:u,isCollection:f};return c._attributes.MaxLength&&(p.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(p.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(p.scale=parseInt(c._attributes.Scale,10)),p.nullable=c._attributes.Nullable!=="false",p}),returnType:i.ReturnType?Oi(i.ReturnType._attributes.Type).type:""}})}o(dd,"parseActions");function Jb(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,ne.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:""}})}o(Jb,"parseV2FunctionImport");function gd(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Wt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Wt(r)}})}o(gd,"parseActionImports");function Qb(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(u=>u!=="Property");l.name=a.Property;let f=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Td(s,f,n):c&&(l.value=bd({[c]:a[c]},f,n)),i.Annotation){let u=Ko((0,ne.ensureArray)(i.Annotation),f,n);u&&u.length>0&&n.push(Qn(f,u))}}return l})}o(Qb,"parsePropertyValues");function Go(e,t,n){let i=Ko((0,ne.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Wt(e._attributes.Type):void 0,propertyValues:Qb((0,ne.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Go,"parseRecord");function an(e,t){return e[t]!=null}o(an,"isExpressionOfType");function Ho(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Ho,"parseModelPath");function zs(e,t,n){if(an(e,"Record")){let i=(0,ne.ensureArray)(e.Record).map((r,a)=>Go(r,t+"/"+a,n));return i.type="Record",i}else if(an(e,"PropertyPath")){let i=(0,ne.ensureArray)(e.PropertyPath).map(r=>Ho(r,"PropertyPath"));return i.type="PropertyPath",i}else if(an(e,"NavigationPropertyPath")){let i=(0,ne.ensureArray)(e.NavigationPropertyPath).map(r=>Ho(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(an(e,"String")){let i=(0,ne.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(an(e,"AnnotationPath")){let i=(0,ne.ensureArray)(e.AnnotationPath).map(r=>Ho(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(an(e,"Path")){let i=(0,ne.ensureArray)(e.Path).map(r=>Ho(r,"Path"));return i.type="Path",i}else if(an(e,"If")){let i=(0,ne.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(zs,"parseCollection");function bd(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:zs(e.Collection,t,n)};case"Record":return{type:"Record",Record:Go(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(bd,"parseInlineExpression");function Td(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._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[r]._text};case"Collection":return{type:"Collection",Collection:zs(e.Collection,t,n)};case"Record":return{type:"Record",Record:Go(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}o(Td,"parseExpression");function zb(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Wt(i),qualifier:r},l=`${t}@${Wt(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=bd(a,l,n)),e.Annotation){let f=Ko((0,ne.ensureArray)(e.Annotation),l,n);f&&f.length>0&&(s.annotations=f)}let c=Object.keys(e).filter(f=>f!=="_attributes"&&f!=="Annotation");return an(e,"Record")?s.record=Go(e.Record,l,n):an(e,"Collection")?s.collection=zs(e.Collection,l,n):c.length===1?s.value=Td({[c[0]]:e[c[0]]},l,n):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(zb,"parseAnnotation");function Ko(e,t,n){return e.map(i=>zb(i,t,n))}o(Ko,"parseAnnotations");function Qn(e,t){return{target:e,annotations:t}}o(Qn,"createAnnotationList");function qb(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qn(Wt(n._attributes.Target),Ko((0,ne.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(qb,"parseAnnotationLists");function Xb(e,t,n){let i=e._attributes.Namespace,r=[],a=Bb((0,ne.ensureArray)(e.EntityType),r,i),s=Hb((0,ne.ensureArray)(e.ComplexType),r,i),l=Gb((0,ne.ensureArray)(e.TypeDefinition),i),c=[],f=[],u=[],p={_type:"EntityContainer",fullyQualifiedName:""},g=[],b=[];if(e.EntityContainer)if(c=Kb((0,ne.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),f=Wb((0,ne.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),u=kb((0,ne.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),p={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")g=g.concat(Jb((0,ne.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(gd((0,ne.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(gd((0,ne.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(g=g.concat(dd((0,ne.ensureArray)(e.Action),i,!1)),g=g.concat(dd((0,ne.ensureArray)(e.Function),i,!0)));let x=Ub((0,ne.ensureArray)(e.Association),i);qb((0,ne.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:x,associationSets:u,annotations:I,entityContainer:p,namespace:i,entitySets:c,singletons:f,complexTypes:s,typeDefinitions:l,actions:g,actionImports:b,entityTypes:a}}o(Xb,"parseSchema");function Yb(e){return e.reduce((t,n)=>((0,ne.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(Yb,"parseReferences");var Qs={};function Oi(e){let t=e.match(md),n=t?t[1]:e,i=Wt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Oi,"unaliasType");function Wt(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let c=e.substring(r,a);i.push((t=Qs[c])!==null&&t!==void 0?t:c),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Wt,"unalias");function Zb(e){let t=e.reduce((b,x)=>b.concat(x.associations),[]),n=e.reduce((b,x)=>b.concat(x.associationSets),[]),i=e.reduce((b,x)=>b.concat(x.entitySets),[]),r=e.reduce((b,x)=>b.concat(x.singletons),[]),a=e.reduce((b,x)=>b.concat(x.entityTypes),[]),s=e.reduce((b,x)=>b.concat(x.actions),[]),l=e.reduce((b,x)=>b.concat(x.actionImports),[]),c=e.reduce((b,x)=>b.concat(x.complexTypes),[]),f=e.reduce((b,x)=>b.concat(x.typeDefinitions),[]),u={};e.forEach(b=>{u=Object.assign(u,b.annotations)});let p,g;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(p=b.entityContainer,g=b.namespace)}),i.forEach(b=>{let x=a.find(I=>I.fullyQualifiedName===b.entityTypeName);x==null||x.navigationProperties.forEach(I=>{let L=I,B=n.find(te=>te.association===L.relationship);if(B){let te=B.associationEnd.find(re=>re.entitySet!==b.fullyQualifiedName);te&&(b.navigationPropertyBinding[I.name]=te.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(x=>{let I=x,L=t.find(B=>B.fullyQualifiedName===I.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?I.referentialConstraint=L.referentialConstraints:I.referentialConstraint=L.referentialConstraints.map(B=>({sourceTypeName:B.targetTypeName,sourceProperty:B.targetProperty,targetTypeName:B.sourceTypeName,targetProperty:B.sourceProperty})))})}),{associations:t,associationSets:n,annotations:u,entityContainer:p,namespace:g,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:f,actions:s,actionImports:l,entityTypes:a}}o(Zb,"mergeSchemas");function eT(e,t){Qs=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Qs[n._attributes.Alias]=n._attributes.Namespace})}o(eT,"createAliasMap");function tT(e,t="serviceFile"){let n=(0,wb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,ne.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=Yb((0,ne.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));eT(a,r);let s=r.map(c=>Xb(c,i,t));return new ne.RawMetadataInstance(t,i,Zb(s),a)}o(tT,"parse");Wo.parse=tT});var Cd=Ae(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.parse=Fi.merge=void 0;var nT=Dp();Object.defineProperty(Fi,"merge",{enumerable:!0,get:o(function(){return nT.merge},"get")});var iT=vd();Object.defineProperty(Fi,"parse",{enumerable:!0,get:o(function(){return iT.parse},"get")})});var $d=Ae(()=>{var wd;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(c,f){return function(u,p){Object.defineProperty(c,u,{configurable:!0,writable:!0,value:p}),f&&f(u,p)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,f=!l&&!c,u={create:l?function(){return ps(Object.create(null))}:c?function(){return ps({__proto__:null})}:function(){return ps({})},has:f?function(T,S){return i.call(T,S)}:function(T,S){return S in T},get:f?function(T,S){return i.call(T,S)?T[S]:void 0}:function(T,S){return T[S]}},p=Object.getPrototypeOf(Function),g=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:zm(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qm(),x=typeof WeakMap=="function"?WeakMap:Xm(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,L=Wm(),B=Jm(L);function te(T,S,A,V){if(q(A)){if(!Me(T))throw new TypeError;if(!et(S))throw new TypeError;return hn(T,S)}else{if(!Me(T))throw new TypeError;if(!$e(S))throw new TypeError;if(!$e(V)&&!q(V)&&!tn(V))throw new TypeError;return tn(V)&&(V=void 0),A=se(A),Ti(T,S,A,V)}}o(te,"decorate"),t("decorate",te);function re(T,S){function A(V,Q){if(!$e(V))throw new TypeError;if(!q(Q)&&!pt(Q))throw new TypeError;Ke(T,S,V,Q)}return o(A,"decorator"),A}o(re,"metadata"),t("metadata",re);function oe(T,S,A,V){if(!$e(A))throw new TypeError;return q(V)||(V=se(V)),Ke(T,S,A,V)}o(oe,"defineMetadata"),t("defineMetadata",oe);function J(T,S,A){if(!$e(S))throw new TypeError;return q(A)||(A=se(A)),Ct(T,S,A)}o(J,"hasMetadata"),t("hasMetadata",J);function le(T,S,A){if(!$e(S))throw new TypeError;return q(A)||(A=se(A)),It(T,S,A)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Se(T,S,A){if(!$e(S))throw new TypeError;return q(A)||(A=se(A)),ge(T,S,A)}o(Se,"getMetadata"),t("getMetadata",Se);function C(T,S,A){if(!$e(S))throw new TypeError;return q(A)||(A=se(A)),Wn(T,S,A)}o(C,"getOwnMetadata"),t("getOwnMetadata",C);function Zt(T,S){if(!$e(T))throw new TypeError;return q(S)||(S=se(S)),ut(T,S)}o(Zt,"getMetadataKeys"),t("getMetadataKeys",Zt);function Ut(T,S){if(!$e(T))throw new TypeError;return q(S)||(S=se(S)),tt(T,S)}o(Ut,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Ut);function Pe(T,S,A){if(!$e(S))throw new TypeError;if(q(A)||(A=se(A)),!$e(S))throw new TypeError;q(A)||(A=se(A));var V=nr(S,A,!1);return q(V)?!1:V.OrdinaryDeleteMetadata(T,S,A)}o(Pe,"deleteMetadata"),t("deleteMetadata",Pe);function hn(T,S){for(var A=T.length-1;A>=0;--A){var V=T[A],Q=V(S);if(!q(Q)&&!tn(Q)){if(!et(Q))throw new TypeError;S=Q}}return S}o(hn,"DecorateConstructor");function Ti(T,S,A,V){for(var Q=T.length-1;Q>=0;--Q){var Ue=T[Q],Je=Ue(S,A,V);if(!q(Je)&&!tn(Je)){if(!$e(Je))throw new TypeError;V=Je}}return V}o(Ti,"DecorateProperty");function Ct(T,S,A){var V=It(T,S,A);if(V)return!0;var Q=Ci(S);return tn(Q)?!1:Ct(T,Q,A)}o(Ct,"OrdinaryHasMetadata");function It(T,S,A){var V=nr(S,A,!1);return q(V)?!1:E(V.OrdinaryHasOwnMetadata(T,S,A))}o(It,"OrdinaryHasOwnMetadata");function ge(T,S,A){var V=It(T,S,A);if(V)return Wn(T,S,A);var Q=Ci(S);if(!tn(Q))return ge(T,Q,A)}o(ge,"OrdinaryGetMetadata");function Wn(T,S,A){var V=nr(S,A,!1);if(!q(V))return V.OrdinaryGetOwnMetadata(T,S,A)}o(Wn,"OrdinaryGetOwnMetadata");function Ke(T,S,A,V){var Q=nr(A,V,!0);Q.OrdinaryDefineOwnMetadata(T,S,A,V)}o(Ke,"OrdinaryDefineOwnMetadata");function ut(T,S){var A=tt(T,S),V=Ci(T);if(V===null)return A;var Q=ut(V,S);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Ue=new b,Je=[],fe=0,R=A;fe<R.length;fe++){var M=R[fe],H=Ue.has(M);H||(Ue.add(M),Je.push(M))}for(var K=0,me=Q;K<me.length;K++){var M=me[K],H=Ue.has(M);H||(Ue.add(M),Je.push(M))}return Je}o(ut,"OrdinaryMetadataKeys");function tt(T,S){var A=nr(T,S,!1);return A?A.OrdinaryOwnMetadataKeys(T,S):[]}o(tt,"OrdinaryOwnMetadataKeys");function en(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}o(en,"Type");function q(T){return T===void 0}o(q,"IsUndefined");function tn(T){return T===null}o(tn,"IsNull");function vo(T){return typeof T=="symbol"}o(vo,"IsSymbol");function $e(T){return typeof T=="object"?T!==null:typeof T=="function"}o($e,"IsObject");function h(T,S){switch(en(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var A=S===3?"string":S===5?"number":"default",V=We(T,a);if(V!==void 0){var Q=V.call(T,A);if($e(Q))throw new TypeError;return Q}return d(T,A==="default"?"number":A)}o(h,"ToPrimitive");function d(T,S){if(S==="string"){var A=T.toString;if(Ne(A)){var V=A.call(T);if(!$e(V))return V}var Q=T.valueOf;if(Ne(Q)){var V=Q.call(T);if(!$e(V))return V}}else{var Q=T.valueOf;if(Ne(Q)){var V=Q.call(T);if(!$e(V))return V}var Ue=T.toString;if(Ne(Ue)){var V=Ue.call(T);if(!$e(V))return V}}throw new TypeError}o(d,"OrdinaryToPrimitive");function E(T){return!!T}o(E,"ToBoolean");function v(T){return""+T}o(v,"ToString");function se(T){var S=h(T,3);return vo(S)?S:v(S)}o(se,"ToPropertyKey");function Me(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}o(Me,"IsArray");function Ne(T){return typeof T=="function"}o(Ne,"IsCallable");function et(T){return typeof T=="function"}o(et,"IsConstructor");function pt(T){switch(en(T)){case 3:return!0;case 4:return!0;default:return!1}}o(pt,"IsPropertyKey");function Bt(T,S){return T===S||T!==T&&S!==S}o(Bt,"SameValueZero");function We(T,S){var A=T[S];if(A!=null){if(!Ne(A))throw new TypeError;return A}}o(We,"GetMethod");function Ot(T){var S=We(T,s);if(!Ne(S))throw new TypeError;var A=S.call(T);if(!$e(A))throw new TypeError;return A}o(Ot,"GetIterator");function Co(T){return T.value}o(Co,"IteratorValue");function tr(T){var S=T.next();return S.done?!1:S}o(tr,"IteratorStep");function vi(T){var S=T.return;S&&S.call(T)}o(vi,"IteratorClose");function Ci(T){var S=Object.getPrototypeOf(T);if(typeof T!="function"||T===p||S!==p)return S;var A=T.prototype,V=A&&Object.getPrototypeOf(A);if(V==null||V===Object.prototype)return S;var Q=V.constructor;return typeof Q!="function"||Q===T?S:Q}o(Ci,"OrdinaryGetPrototypeOf");function Km(){var T;!q(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(T=Qm(n.Reflect));var S,A,V,Q=new x,Ue={registerProvider:Je,getProvider:R,setProvider:H};return Ue;function Je(K){if(!Object.isExtensible(Ue))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case T===K:break;case q(S):S=K;break;case S===K:break;case q(A):A=K;break;case A===K:break;default:V===void 0&&(V=new b),V.add(K);break}}function fe(K,me){if(!q(S)){if(S.isProviderFor(K,me))return S;if(!q(A)){if(A.isProviderFor(K,me))return S;if(!q(V))for(var je=Ot(V);;){var Be=tr(je);if(!Be)return;var Dt=Co(Be);if(Dt.isProviderFor(K,me))return vi(je),Dt}}}if(!q(T)&&T.isProviderFor(K,me))return T}function R(K,me){var je=Q.get(K),Be;return q(je)||(Be=je.get(me)),q(Be)&&(Be=fe(K,me),q(Be)||(q(je)&&(je=new g,Q.set(K,je)),je.set(me,Be))),Be}function M(K){if(q(K))throw new TypeError;return S===K||A===K||!q(V)&&V.has(K)}function H(K,me,je){if(!M(je))throw new Error("Metadata provider not registered.");var Be=R(K,me);if(Be!==je){if(!q(Be))return!1;var Dt=Q.get(K);q(Dt)&&(Dt=new g,Q.set(K,Dt)),Dt.set(me,je)}return!0}}o(Km,"CreateMetadataRegistry");function Wm(){var T;return!q(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&(T=n.Reflect[I]),q(T)&&(T=Km()),!q(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:T}),T}o(Wm,"GetOrCreateMetadataRegistry");function Jm(T){var S=new x,A={isProviderFor:o(function(M,H){var K=S.get(M);return q(K)?!1:K.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:Je,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Ue,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:R};return L.registerProvider(A),A;function V(M,H,K){var me=S.get(M),je=!1;if(q(me)){if(!K)return;me=new g,S.set(M,me),je=!0}var Be=me.get(H);if(q(Be)){if(!K)return;if(Be=new g,me.set(H,Be),!T.setProvider(M,H,A))throw me.delete(H),je&&S.delete(M),new Error("Wrong provider for target.")}return Be}o(V,"GetOrCreateMetadataMap");function Q(M,H,K){var me=V(H,K,!1);return q(me)?!1:E(me.has(M))}o(Q,"OrdinaryHasOwnMetadata");function Ue(M,H,K){var me=V(H,K,!1);if(!q(me))return me.get(M)}o(Ue,"OrdinaryGetOwnMetadata");function Je(M,H,K,me){var je=V(K,me,!0);je.set(M,H)}o(Je,"OrdinaryDefineOwnMetadata");function fe(M,H){var K=[],me=V(M,H,!1);if(q(me))return K;for(var je=me.keys(),Be=Ot(je),Dt=0;;){var gf=tr(Be);if(!gf)return K.length=Dt,K;var Ym=Co(gf);try{K[Dt]=Ym}catch(Zm){try{vi(Be)}finally{throw Zm}}Dt++}}o(fe,"OrdinaryOwnMetadataKeys");function R(M,H,K){var me=V(H,K,!1);if(q(me)||!me.delete(M))return!1;if(me.size===0){var je=S.get(H);q(je)||(je.delete(K),je.size===0&&S.delete(je))}return!0}o(R,"OrdinaryDeleteMetadata")}o(Jm,"CreateMetadataProvider");function Qm(T){var S=T.defineMetadata,A=T.hasOwnMetadata,V=T.getOwnMetadata,Q=T.getOwnMetadataKeys,Ue=T.deleteMetadata,Je=new x,fe={isProviderFor:o(function(R,M){var H=Je.get(R);return!q(H)&&H.has(M)?!0:Q(R,M).length?(q(H)&&(H=new b,Je.set(R,H)),H.add(M),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:V,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Ue};return fe}o(Qm,"CreateFallbackProvider");function nr(T,S,A){var V=L.getProvider(T,S);if(!q(V))return V;if(A){if(L.setProvider(T,S,B))return B;throw new Error("Illegal state.")}}o(nr,"GetMetadataProvider");function zm(){var T={},S=[],A=function(){function fe(R,M,H){this._index=0,this._keys=R,this._values=M,this._selector=H}return o(fe,"MapIterator"),fe.prototype["@@iterator"]=function(){return this},fe.prototype[s]=function(){return this},fe.prototype.next=function(){var R=this._index;if(R>=0&&R<this._keys.length){var M=this._selector(this._keys[R],this._values[R]);return R+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:M,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(R){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),R},fe.prototype.return=function(R){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:R,done:!0}},fe}(),V=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return o(fe,"Map"),Object.defineProperty(fe.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),fe.prototype.has=function(R){return this._find(R,!1)>=0},fe.prototype.get=function(R){var M=this._find(R,!1);return M>=0?this._values[M]:void 0},fe.prototype.set=function(R,M){var H=this._find(R,!0);return this._values[H]=M,this},fe.prototype.delete=function(R){var M=this._find(R,!1);if(M>=0){for(var H=this._keys.length,K=M+1;K<H;K++)this._keys[K-1]=this._keys[K],this._values[K-1]=this._values[K];return this._keys.length--,this._values.length--,Bt(R,this._cacheKey)&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},fe.prototype.keys=function(){return new A(this._keys,this._values,Q)},fe.prototype.values=function(){return new A(this._keys,this._values,Ue)},fe.prototype.entries=function(){return new A(this._keys,this._values,Je)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[s]=function(){return this.entries()},fe.prototype._find=function(R,M){if(!Bt(this._cacheKey,R)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(Bt(this._keys[H],R)){this._cacheIndex=H;break}}return this._cacheIndex<0&&M&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},fe}();return V;function Q(fe,R){return fe}function Ue(fe,R){return R}function Je(fe,R){return[fe,R]}}o(zm,"CreateMapPolyfill");function qm(){var T=function(){function S(){this._map=new g}return o(S,"Set"),Object.defineProperty(S.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),S.prototype.has=function(A){return this._map.has(A)},S.prototype.add=function(A){return this._map.set(A,A),this},S.prototype.delete=function(A){return this._map.delete(A)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[s]=function(){return this.keys()},S}();return T}o(qm,"CreateSetPolyfill");function Xm(){var T=16,S=u.create(),A=V();return function(){function R(){this._key=V()}return o(R,"WeakMap"),R.prototype.has=function(M){var H=Q(M,!1);return H!==void 0?u.has(H,this._key):!1},R.prototype.get=function(M){var H=Q(M,!1);return H!==void 0?u.get(H,this._key):void 0},R.prototype.set=function(M,H){var K=Q(M,!0);return K[this._key]=H,this},R.prototype.delete=function(M){var H=Q(M,!1);return H!==void 0?delete H[this._key]:!1},R.prototype.clear=function(){this._key=V()},R}();function V(){var R;do R="@@WeakMap@@"+fe();while(u.has(S,R));return S[R]=!0,R}function Q(R,M){if(!i.call(R,A)){if(!M)return;Object.defineProperty(R,A,{value:u.create()})}return R[A]}function Ue(R,M){for(var H=0;H<M;++H)R[H]=Math.random()*255|0;return R}function Je(R){if(typeof Uint8Array=="function"){var M=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(M):typeof msCrypto<"u"?msCrypto.getRandomValues(M):Ue(M,R),M}return Ue(new Array(R),R)}function fe(){var R=Je(T);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var M="",H=0;H<T;++H){var K=R[H];(H===4||H===6||H===8)&&(M+="-"),K<16&&(M+="0"),M+=K.toString(16).toLowerCase()}return M}}o(Xm,"CreateWeakMapPolyfill");function ps(T){return T.__=void 0,delete T.__,T}o(ps,"MakeDictionary")})})(wd||(wd={}))});var Gd=Ae((oA,Hd)=>{var ST=0,Bd="changeUtils: ";function PT(){return"id-"+new Date().valueOf()+"-"+ST++}o(PT,"uid");function AT(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(AT,"appendComponentToReference");function ET(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return AT(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(ET,"getFlexReference");function IT(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(IT,"getAppVersion");function OT(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(OT,"getProjectId");function Ud(e){return JSON.stringify({fileName:e.id||PT().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:Bd+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(Ud,"createString");Hd.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(Bd,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=ET(t),e.appVersion=IT(t),e.projectId=OT(t,e.reference),Ud(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return Ud(e)},"toString")}});var Wd=Ae((sA,Kd)=>{Kd.exports={change:Gd()}});var _g=Ae(Lt=>{"use strict";var ev=/[|\\{}()[\]^$+*?.]/g,tv=Object.prototype.hasOwnProperty,Ol=o(function(e,t){return tv.apply(e,[t])},"hasOwn");Lt.escapeRegExpChars=function(e){return e?String(e).replace(ev,"\\$&"):""};var nv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},iv=/[&<>'"]/g;function rv(e){return nv[e]||e}o(rv,"encode_char");var ov=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,13 +37,13 @@ Actual: `+h.attribValue);else{var se=h.tag,Me=h.tags[h.tags.length-1]||h;se.ns==
37
37
  function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
- `;Lt.escapeXML=function(e){return e==null?"":String(e).replace(nv,iv)};function wg(){return Function.prototype.toString.call(this)+`;
41
- `+rv}s(wg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Lt.escapeXML,"toString",{value:wg}):Lt.escapeXML.toString=wg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Lt.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Ol(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Lt.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!Ol(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Lt.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};Lt.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Lt.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Lt.hasOwnOnlyObject=function(e){var t=Lt.createNullProtoObjWherePossible();for(var n in e)Ol(e,n)&&(t[n]=e[n]);return t}});var Rg=Ae((TE,ov)=>{ov.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 Wg=Ae(ve=>{"use strict";var Nl=require("fs"),wr=require("path"),Ge=$g(),_g=!1,av=Rg().version,sv="<",lv=">",cv="%",Gg="locals",fv="ejs",uv="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Kg=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],pv=Kg.concat("cache"),Mg=/^\uFEFF/,Fl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;ve.cache=Ge.cache;ve.fileLoader=Nl.readFileSync;ve.localsName=Gg;ve.promiseImpl=new Function("return this;")().Promise;ve.resolveInclude=function(e,t,n){var i=wr.dirname,r=wr.extname,o=wr.resolve,a=o(n?t:i(t),e),l=r(e);return l||(a+=".ejs"),a};function kg(e,t){var n;if(t.some(function(i){return n=ve.resolveInclude(e,i,!0),Nl.existsSync(n)}))return n}s(kg,"resolvePaths");function dv(e,t){var n,i,r=t.views,o=/^[A-Za-z]+:\\|^\//.exec(e);if(o&&o.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=kg(e,t.root):n=ve.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=ve.resolveInclude(e,t.filename),Nl.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=kg(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}s(dv,"getIncludePath");function $r(e,t){var n,i=e.filename,r=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;r||(t=Bg(i).toString().replace(Mg,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Bg(i).toString().replace(Mg,"")}return n=ve.compile(t,e),e.cache&&ve.cache.set(i,n),n}s($r,"handleCache");function gv(e,t,n){var i;if(n){try{i=$r(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof ve.promiseImpl=="function")return new ve.promiseImpl(function(r,o){try{i=$r(e)(t),r(i)}catch(a){o(a)}});throw new Error("Please provide a callback function")}}s(gv,"tryHandleCache");function Bg(e){return ve.fileLoader(e)}s(Bg,"fileLoader");function mv(e,t){var n=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),t);if(n.filename=dv(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return $r(n,i.template)}return $r(n)}s(mv,"includeFile");function Ug(e,t,n,i,r){var o=t.split(`
42
- `),a=Math.max(i-3,0),l=Math.min(o.length,i+3),c=r(n),f=o.slice(a,l).map(function(u,p){var g=p+a+1;return(g==i?" >> ":" ")+g+"| "+u}).join(`
40
+ `;Lt.escapeXML=function(e){return e==null?"":String(e).replace(iv,rv)};function Rg(){return Function.prototype.toString.call(this)+`;
41
+ `+ov}o(Rg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Lt.escapeXML,"toString",{value:Rg}):Lt.escapeXML.toString=Rg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Lt.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Ol(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Lt.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!Ol(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Lt.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};Lt.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Lt.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Lt.hasOwnOnlyObject=function(e){var t=Lt.createNullProtoObjWherePossible();for(var n in e)Ol(e,n)&&(t[n]=e[n]);return t}});var Mg=Ae((AE,av)=>{av.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 Qg=Ae(ve=>{"use strict";var Nl=require("fs"),wr=require("path"),Ge=_g(),kg=!1,sv=Mg().version,lv="<",cv=">",fv="%",Wg="locals",uv="ejs",pv="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Jg=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],dv=Jg.concat("cache"),Ug=/^\uFEFF/,Fl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;ve.cache=Ge.cache;ve.fileLoader=Nl.readFileSync;ve.localsName=Wg;ve.promiseImpl=new Function("return this;")().Promise;ve.resolveInclude=function(e,t,n){var i=wr.dirname,r=wr.extname,a=wr.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function Bg(e,t){var n;if(t.some(function(i){return n=ve.resolveInclude(e,i,!0),Nl.existsSync(n)}))return n}o(Bg,"resolvePaths");function gv(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=Bg(e,t.root):n=ve.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=ve.resolveInclude(e,t.filename),Nl.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=Bg(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(gv,"getIncludePath");function $r(e,t){var n,i=e.filename,r=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;r||(t=Hg(i).toString().replace(Ug,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Hg(i).toString().replace(Ug,"")}return n=ve.compile(t,e),e.cache&&ve.cache.set(i,n),n}o($r,"handleCache");function mv(e,t,n){var i;if(n){try{i=$r(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof ve.promiseImpl=="function")return new ve.promiseImpl(function(r,a){try{i=$r(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(mv,"tryHandleCache");function Hg(e){return ve.fileLoader(e)}o(Hg,"fileLoader");function yv(e,t){var n=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),t);if(n.filename=gv(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return $r(n,i.template)}return $r(n)}o(yv,"includeFile");function Gg(e,t,n,i,r){var a=t.split(`
42
+ `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),c=r(n),f=a.slice(s,l).map(function(u,p){var g=p+s+1;return(g==i?" >> ":" ")+g+"| "+u}).join(`
43
43
  `);throw e.path=c,e.message=(c||"ejs")+":"+i+`
44
44
  `+f+`
45
45
 
46
- `+e.message,e}s(Ug,"rethrow");function Hg(e){return e.replace(/;(\s*$)/,"$1")}s(Hg,"stripSemi");ve.compile=s(function(t,n){var i;return n&&n.scope&&(_g||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),_g=!0),n.context||(n.context=n.scope),delete n.scope),i=new qe(t,n),i.compile()},"compile");ve.render=function(e,t,n){var i=t||Ge.createNullProtoObjWherePossible(),r=n||Ge.createNullProtoObjWherePossible();return arguments.length==2&&Ge.shallowCopyFromList(r,i,Kg),$r(r,e)(i)};ve.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,o;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Ge.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),o=r.settings["view options"],o&&Ge.shallowCopy(i,o)),Ge.shallowCopyFromList(i,r,pv)),i.filename=t):r=Ge.createNullProtoObjWherePossible(),gv(i,r,n)};ve.Template=qe;ve.clearCache=function(){ve.cache.reset()};function qe(e,t){var n=Ge.hasOwnOnlyObject(t),i=Ge.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||Ge.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||ve.openDelimiter||sv,i.closeDelimiter=n.closeDelimiter||ve.closeDelimiter||lv,i.delimiter=n.delimiter||ve.delimiter||cv,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||Gg,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()}s(qe,"Template");qe.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};qe.prototype={createRegex:function(){var e=uv,t=Ge.escapeRegExpChars(this.opts.delimiter),n=Ge.escapeRegExpChars(this.opts.openDelimiter),i=Ge.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},compile:function(){var e,t,n=this.opts,i="",r="",o=n.escapeFunction,a,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
46
+ `+e.message,e}o(Gg,"rethrow");function Kg(e){return e.replace(/;(\s*$)/,"$1")}o(Kg,"stripSemi");ve.compile=o(function(t,n){var i;return n&&n.scope&&(kg||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),kg=!0),n.context||(n.context=n.scope),delete n.scope),i=new qe(t,n),i.compile()},"compile");ve.render=function(e,t,n){var i=t||Ge.createNullProtoObjWherePossible(),r=n||Ge.createNullProtoObjWherePossible();return arguments.length==2&&Ge.shallowCopyFromList(r,i,Jg),$r(r,e)(i)};ve.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Ge.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Ge.shallowCopy(i,a)),Ge.shallowCopyFromList(i,r,dv)),i.filename=t):r=Ge.createNullProtoObjWherePossible(),mv(i,r,n)};ve.Template=qe;ve.clearCache=function(){ve.cache.reset()};function qe(e,t){var n=Ge.hasOwnOnlyObject(t),i=Ge.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||Ge.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||ve.openDelimiter||lv,i.closeDelimiter=n.closeDelimiter||ve.closeDelimiter||cv,i.delimiter=n.delimiter||ve.delimiter||fv,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||Wg,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()}o(qe,"Template");qe.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};qe.prototype={createRegex:o(function(){var e=pv,t=Ge.escapeRegExpChars(this.opts.delimiter),n=Ge.escapeRegExpChars(this.opts.openDelimiter),i=Ge.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",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
48
  `,n.outputFunctionName){if(!Fl.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
49
  `}if(n.localsName&&!Fl.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+` || {}),
@@ -59,33 +59,33 @@ try {
59
59
  `+this.source+`} catch (e) {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
- `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+o.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+Ug.toString()+`;
62
+ `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+Gg.toString()+`;
64
64
  `+e)),n.strict&&(e=`"use strict";
65
65
  `+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
66
66
  //# sourceURL=`+l+`
67
- `);try{if(n.async)try{a=new Function("return (async function(){}).constructor;")()}catch(x){throw x instanceof SyntaxError?new Error("This environment does not support async/await"):x}else a=Function;t=new a(n.localsName+", escapeFn, include, rethrow",e)}catch(x){throw x instanceof SyntaxError&&(n.filename&&(x.message+=" in "+n.filename),x.message+=` while compiling ejs
67
+ `);try{if(n.async)try{s=new Function("return (async function(){}).constructor;")()}catch(x){throw x instanceof SyntaxError?new Error("This environment does not support async/await"):x}else s=Function;t=new s(n.localsName+", escapeFn, include, rethrow",e)}catch(x){throw x instanceof SyntaxError&&(n.filename&&(x.message+=" in "+n.filename),x.message+=` while compiling ejs
68
68
 
69
69
  `,x.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,x.message+="https://github.com/RyanZim/EJS-Lint",n.async||(x.message+=`
71
- `,x.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),x}var p=n.client?t:s(function(I){var L=s(function(U,te){var re=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),I);return te&&(re=Ge.shallowCopy(re,te)),mv(U,n)(re)},"include");return t.apply(n.context,[I||Ge.createNullProtoObjWherePossible(),o,L,Ug])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var g=n.filename,b=wr.basename(g,wr.extname(g));try{Object.defineProperty(p,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return p},generateSource:function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
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,r=this.opts.openDelimiter,o=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(a,l){var c;if(a.indexOf(r+i)===0&&a.indexOf(r+i+i)!==0&&(c=n[l+2],!(c==i+o||c=="-"+i+o||c=="_"+i+o)))throw new Error('Could not find matching close tag for "'+a+'".');t.scanLine(a)})},parseTemplateText:function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},_addOutput: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
- `},scanLine:function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,o=0;switch(o=e.split(`
71
+ `,x.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),x}var p=n.client?t:o(function(I){var L=o(function(B,te){var re=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),I);return te&&(re=Ge.shallowCopy(re,te)),yv(B,n)(re)},"include");return t.apply(n.context,[I||Ge.createNullProtoObjWherePossible(),a,L,Gg])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var g=n.filename,b=wr.basename(g,wr.extname(g));try{Object.defineProperty(p,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return p},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
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,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var c;if(s.indexOf(r+i)===0&&s.indexOf(r+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:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(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
+ `},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=qe.modes.EVAL;break;case i+n+"=":this.mode=qe.modes.ESCAPED;break;case i+n+"-":this.mode=qe.modes.RAW;break;case i+n+"#":this.mode=qe.modes.COMMENT;break;case i+n+n:this.mode=qe.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
75
75
  `;break;case n+n+r:this.mode=qe.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+r,n+r)+`")
76
76
  `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==qe.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 qe.modes.EVAL:case qe.modes.ESCAPED:case qe.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case qe.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case qe.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Hg(e)+`))
80
- `;break;case qe.modes.RAW:this.source+=" ; __append("+Hg(e)+`)
81
- `;break;case qe.modes.COMMENT:break;case qe.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&o&&(this.currentLine+=o,this.source+=" ; __line = "+this.currentLine+`
82
- `)}};ve.escapeXML=Ge.escapeXML;ve.__express=ve.renderFile;ve.VERSION=av;ve.name=fv;typeof window<"u"&&(window.ejs=ve)});var Kn={};So(Kn,{deleteConfigEntityByPath:()=>IS,exportConfig:()=>AS,exportConfigEntityByPath:()=>ES,generateSchema:()=>PS,getApiVersion:()=>LS,getChanges:()=>Um,getGenericSchema:()=>fs,getPathToGenericSchema:()=>Sm,getProject:()=>RS,importConfig:()=>OS,importProject:()=>FS,importProjectSchema:()=>NS,isDirectory:()=>jS,log:()=>X,readDirectory:()=>df});module.exports=ny(Kn);var Ce=B(W());var D=B(W());var ah={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)}},or=class or{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||ah,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,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new or(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new or(this.logger,t)}};s(or,"Logger");var hs=or,Gt=new hs,Ps=class Ps{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[l,c]=a;for(let f=0;f<c;f++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[l,c]=a;for(let f=0;f<c;f++)l.apply(l,[t,...i])})}};s(Ps,"EventEmitter");var Ai=Ps;function ir(){let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}s(ir,"defer");function Yu(e){return e==null?"":""+e}s(Yu,"makeString");function sh(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}s(sh,"copy");var lh=/###/g;function rr(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(lh,"."):l}s(i,"cleanKey");function r(){return!e||typeof e=="string"}s(r,"canNotTraverseDeeper");let o=typeof t!="string"?t:t.split("."),a=0;for(;a<o.length-1;){if(r())return{};let l=i(o[a]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++a}return r()?{}:{obj:e,k:i(o[a])}}s(rr,"getLastOfPath");function Zu(e,t,n){let{obj:i,k:r}=rr(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),l=rr(e,a,Object);for(;l.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),l=rr(e,a,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n}s(Zu,"setPath");function ch(e,t,n,i){let{obj:r,k:o}=rr(e,t,Object);r[o]=r[o]||[],i&&(r[o]=r[o].concat(n)),i||r[o].push(n)}s(ch,"pushPath");function Ao(e,t){let{obj:n,k:i}=rr(e,t);if(n)return n[i]}s(Ao,"getPath");function fh(e,t,n){let i=Ao(e,n);return i!==void 0?i:Ao(t,n)}s(fh,"getPathWithDefaults");function op(e,t,n){for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):op(e[i],t[i],n):e[i]=t[i]);return e}s(op,"deepExtend");function Si(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}s(Si,"regexEscape");var uh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ph(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>uh[t]):e}s(ph,"escape");var As=class As{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}};s(As,"RegExpCache");var bs=As,dh=[" ",",","?","!",";"],gh=new bs(20);function mh(e,t,n){t=t||"",n=n||"";let i=dh.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(i.length===0)return!0;let r=gh.getRegExp(`(${i.map(a=>a==="?"?"\\?":a).join("|")})`),o=!r.test(e);if(!o){let a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(o=!0)}return o}s(mh,"looksLikeObjectPath");function Ts(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),r=e;for(let o=0;o<i.length;){if(!r||typeof r!="object")return;let a,l="";for(let c=o;c<i.length;++c)if(c!==o&&(l+=n),l+=i[c],a=r[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<i.length-1)continue;o+=c-o+1;break}r=a}return r}s(Ts,"deepFind");function Eo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}s(Eo,"getCleanedCode");var Es=class Es extends Ai{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 r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&o?l.push(...i.split(o)):l.push(i)));let c=Ao(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!a||typeof i!="string"?c:Ts(this.data&&this.data[t]&&this.data[t][n],i,o)}addResource(t,n,i,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(a?i.split(a):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),Zu(this.data,l,r),o.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let o in i)(typeof i[o]=="string"||Array.isArray(i[o]))&&this.addResource(t,n,o,i[o],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let c=Ao(this.data,l)||{};a.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?op(c,i,o):c={...c,...i},Zu(this.data,l,c),a.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(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};s(Es,"ResourceStore");var Io=Es,ap={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,i,r))}),t}},ep={},Lo=class Lo extends Ai{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gt.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 r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS||[],a=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!mh(t,i,r);if(a&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};let f=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(f[0])>-1)&&(o=f.shift()),t=f.join(r)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}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 r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],f=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(u){let oe=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${oe}${a}`,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${oe}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||a,x=p&&p.exactUsedKey||a,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&L.indexOf(I)<0&&!(typeof U=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,g,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(p.res=oe,p.usedParams=this.getUsedParamsDetails(n),p):oe}if(o){let oe=Array.isArray(g),J=oe?[]:{},le=oe?x:b;for(let Se in g)if(Object.prototype.hasOwnProperty.call(g,Se)){let C=`${le}${o}${Se}`;J[Se]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Se]===C&&(J[Se]=g[Se])}g=J}}else if(te&&typeof U=="string"&&Array.isArray(g))g=g.join(U),g&&(g=this.extendTranslation(g,t,n,i));else{let oe=!1,J=!1,le=n.count!==void 0&&typeof n.count!="string",Se=Lo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(f,n.count,n):"",Zt=n.ordinal&&le?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",Bt=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Pe=Bt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${Zt}`]||n.defaultValue;!this.isValidLookup(g)&&Se&&(oe=!0,g=Pe),this.isValidLookup(g)||(J=!0,g=a);let Ti=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,Ct=Se&&Pe!==g&&this.options.updateMissing;if(J||oe||Ct){if(this.logger.log(Ct?"updateKey":"missingKey",f,c,a,Ct?Pe:g),o){let Ke=this.resolve(a,{...n,keySeparator:!1});Ke&&Ke.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 It=[],ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ge&&ge[0])for(let Ke=0;Ke<ge.length;Ke++)It.push(ge[Ke]);else this.options.saveMissingTo==="all"?It=this.languageUtils.toResolveHierarchy(n.lng||this.language):It.push(n.lng||this.language);let Wn=s((Ke,ut,tt)=>{let en=Se&&tt!==g?tt:Ti;this.options.missingKeyHandler?this.options.missingKeyHandler(Ke,c,ut,en,Ct,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ke,c,ut,en,Ct,n),this.emit("missingKey",Ke,c,ut,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?It.forEach(Ke=>{let ut=this.pluralResolver.getSuffixes(Ke,n);Bt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ut.indexOf(`${this.options.pluralSeparator}zero`)<0&&ut.push(`${this.options.pluralSeparator}zero`),ut.forEach(tt=>{Wn([Ke],a+tt,n[`defaultValue${tt}`]||Pe)})}):Wn(It,a,Pe))}g=this.extendTranslation(g,t,n,p,i),J&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${a}`),(J||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,oe?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,i,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let f=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(f){let g=t.match(this.interpolator.nestingRegexp);u=g&&g.length}let p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language,i),f){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;u<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),x=0;x<g;x++)b[x]=arguments[x];return o&&o[0]===b[0]&&!i.context?(a.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):a.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=ap.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let f=this.extractFromKey(c,n),u=f.key;r=u;let p=f.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&typeof n.count!="string",b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(L=>{this.isValidLookup(i)||(l=L,!ep[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(ep[`${I[0]}-${L}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(U=>{if(this.isValidLookup(i))return;a=U;let te=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,u,U,L,n);else{let oe;g&&(oe=this.pluralResolver.getSuffix(U,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(te.push(u+oe),n.ordinal&&oe.indexOf(le)===0&&te.push(u+oe.replace(le,this.options.pluralSeparator)),b&&te.push(u+J)),x){let Se=`${u}${this.options.contextSeparator}${n.context}`;te.push(Se),g&&(te.push(Se+oe),n.ordinal&&oe.indexOf(le)===0&&te.push(Se+oe.replace(le,this.options.pluralSeparator)),b&&te.push(Se+J))}}let re;for(;re=te.pop();)this.isValidLookup(i)||(o=re,i=this.getResource(U,L,re,n))}))})}),{res:i,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}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&&typeof t.replace!="string",r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let o of n)delete r[o]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};s(Lo,"Translator");var Oo=Lo;function ys(e){return e.charAt(0).toUpperCase()+e.slice(1)}s(ys,"capitalize");var Is=class Is{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gt.create("languageUtils")}getScriptPartFromCode(t){if(t=Eo(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=Eo(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ys(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]=ys(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ys(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 r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(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),r=[],o=s(a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))},"addCode");return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),i.forEach(a=>{r.indexOf(a)<0&&o(this.formatLanguageCode(a))}),r}};s(Is,"LanguageUtil");var Fo=Is,yh=[{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}],hh={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},bh=["v1","v2","v3"],Th=["v4"],tp={zero:0,one:1,two:2,few:3,many:4,other:5};function vh(){let e={};return yh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:hh[t.fc]}})}),e}s(vh,"createRules");var Os=class Os{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Gt.create("pluralResolver"),(!this.options.compatibilityJSON||Th.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=vh()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Eo(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}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(r=>`${n}${r}`)}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((r,o)=>tp[r]-tp[o]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,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)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let o=s(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!bh.includes(this.options.compatibilityJSON)}};s(Os,"PluralResolver");var vs=Os;function np(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=fh(e,t,n);return!o&&r&&typeof n=="string"&&(o=Ts(e,n,i),o===void 0&&(o=Ts(t,n,i))),o}s(np,"deepFindWithDefaults");var Fs=class Fs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gt.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:r,prefix:o,prefixEscaped:a,suffix:l,suffixEscaped:c,formatSeparator:f,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:x,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:U,alwaysFormat:te}=t.interpolation;this.escape=n!==void 0?n:ph,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?Si(o):a||"{{",this.suffix=l?Si(l):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=u?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=g?Si(g):b||Si("$t("),this.nestingSuffix=x?Si(x):I||Si(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=U||1e3,this.alwaysFormat=te!==void 0?te:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=s((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,r){let o,a,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}s(f,"regexSafe");let u=s(x=>{if(x.indexOf(this.formatSeparator)<0){let te=np(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,i,{...r,...n,interpolationkey:x}):te}let I=x.split(this.formatSeparator),L=I.shift().trim(),U=I.join(this.formatSeparator).trim();return this.format(np(n,c,L,this.options.keySeparator,this.options.ignoreJSONStructure),U,i,{...r,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,g=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>f(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?f(this.escape(x)):f(x)}].forEach(x=>{for(l=0;o=x.regex.exec(t);){let I=o[1].trim();if(a=u(I),a===void 0)if(typeof p=="function"){let U=p(t,o,r);a=typeof U=="string"?U:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))a="";else if(g){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Yu(a));let L=x.safeValue(a);if(t=t.replace(o[0],L),g?(x.regex.lastIndex+=a.length,x.regex.lastIndex-=o[0].length):x.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,a;function l(c,f){let u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;let p=c.split(new RegExp(`${u}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,a);let b=g.match(/'/g),x=g.match(/"/g);(b&&b.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{a=JSON.parse(g),f&&(a={...f,...a})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${u}${g}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,c}for(s(l,"handleHasOptions");r=this.nestingRegexp.exec(t);){let c=[];a={...i},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let f=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let u=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=u.shift(),c=u,f=!0}if(o=n(l.call(this,r[1].trim(),a),a),o&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Yu(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),f&&(o=c.reduce((u,p)=>this.format(u,p,i.lng,{...i,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}};s(Fs,"Interpolator");var Cs=Fs;function Ch(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(a=>{if(a){let[l,...c]=a.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),u=l.trim();n[u]||(n[u]=f),f==="false"&&(n[u]=!1),f==="true"&&(n[u]=!0),isNaN(f)||(n[u]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}s(Ch,"parseFormatStr");function Pi(e){let t={};return s(function(i,r,o){let a=r+JSON.stringify(o),l=t[a];return l||(l=e(Eo(r),o),t[a]=l),l(i)},"invokeFormatter")}s(Pi,"createCachedFormatter");var Ns=class Ns{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gt.create("formatter"),this.options=t,this.formats={number:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return o=>r.format(o)}),currency:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return o=>r.format(o)}),datetime:Pi((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return o=>r.format(o)}),relativetime:Pi((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return o=>r.format(o,i.range||"day")}),list:Pi((n,i)=>{let r=new Intl.ListFormat(n,{...i});return o=>r.format(o)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Pi(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{let{formatName:f,formatOptions:u}=Ch(c);if(this.formats[f]){let p=l;try{let g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},b=g.locale||g.lng||r.locale||r.lng||i;p=this.formats[f](l,b,{...u,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${f}`);return l},t)}};s(Ns,"Formatter");var xs=Ns;function xh(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}s(xh,"removePending");var Ls=class Ls extends Ai{constructor(t,n,i){let r=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=r,this.logger=Gt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let o={},a={},l={},c={};return t.forEach(f=>{let u=!0;n.forEach(p=>{let g=`${f}|${p}`;!i.reload&&this.store.hasResourceBundle(f,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?a[g]===void 0&&(a[g]=!0):(this.state[g]=1,u=!1,a[g]===void 0&&(a[g]=!0),o[g]===void 0&&(o[g]=!0),c[p]===void 0&&(c[p]=!0)))}),u||(l[f]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let r=t.split("|"),o=r[0],a=r[1];n&&this.emit("failedLoading",o,a,n),i&&this.store.addResourceBundle(o,a,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;let l={};this.queue.forEach(c=>{ch(c.loaded,[o],a),xh(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{l[f]||(l[f]={});let u=c.loaded[f];u.length&&u.forEach(p=>{l[f][p]===void 0&&(l[f][p]=!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 r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:o,callback:a});return}this.readingCalls++;let l=s((f,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,o*2,a)},o);return}a(f,u)},"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(u=>l(null,u)).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]:{},r=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."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let o=this.queueLoad(t,n,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}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("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${r} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${r}`,l),this.loaded(t,a,l)})}saveMissing(t,n,i,r,o){let a=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={...a,isUpdate:o},f=this.backend.create.bind(this.backend);if(f.length<6)try{let u;f.length===5?u=f(t,n,i,r,c):u=f(t,n,i,r),u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}else f(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};s(Ls,"Connector");var Ss=Ls;function ip(){return{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:s(function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let i=t[3]||t[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}s(ip,"get");function rp(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}s(rp,"transformOptions");function Po(){}s(Po,"noop");function Sh(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}s(Sh,"bindMemberFunctions");var ar=class ar extends Ai{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=rp(t),this.services={},this.logger=Gt,this.modules={external:[]},Sh(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=ip();this.options={...r,...this.options,...rp(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(u){return u?typeof u=="function"?new u:u:null}if(s(o,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Gt.init(o(this.modules.logger),this.options):Gt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=xs);let p=new Fo(this.options);this.store=new Io(this.options.resources,this.options);let g=this.services;g.logger=Gt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new vs(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=o(u),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Cs(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Ss(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),L=1;L<x;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.languageDetector&&(g.languageDetector=o(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=o(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Oo(this.services,this.options),this.translator.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),L=1;L<x;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Po),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});let c=ir(),f=s(()=>{let u=s((p,g)=>{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(g),i(p,g)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)},"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]:Po,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let o=[],a=s(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})},"append");r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=ir();return t||(t=this.languages),n||(n=this.options.ns),i||(i=Po),this.services.backendConnector.reload(t,n,o=>{r.resolve(),i(o)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ap.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 r=ir();this.emit("languageChanging",t);let o=s(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),a=s((c,f)=>{f?(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=s(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||o(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,u=>{a(u,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),r}getFixedT(t,n,i){var r=this;let o=s(function(a,l){let c;if(typeof l!="object"){for(var f=arguments.length,u=new Array(f>2?f-2:0),p=2;p<f;p++)u[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([a,l].concat(u))}else c={...l};c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,c.keyPrefix=c.keyPrefix||i||o.keyPrefix;let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(a)?b=a.map(x=>`${c.keyPrefix}${g}${x}`):b=c.keyPrefix?`${c.keyPrefix}${g}${a}`:a,r.t(b,c)},"fixedT");return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=i,o}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],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let a=s((l,c)=>{let f=this.services.backendConnector.state[`${l}|${c}`];return f===-1||f===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,t)&&(!r||a(o,t)))}loadNamespaces(t,n){let i=ir();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=ir();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],o=t.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=r.concat(o),this.loadResources(a=>{i.resolve(),n&&n(a)}),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 Fo(ip());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 ar(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},o=new ar(r);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new Io(this.store.data,r),o.services.resourceStore=o.store),o.translator=new Oo(o.services,r),o.translator.on("*",function(l){for(var c=arguments.length,f=new Array(c>1?c-1:0),u=1;u<c;u++)f[u-1]=arguments[u];o.emit(l,...f)}),o.init(r,n),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};s(ar,"I18n");var No=ar,$=No.createInstance();$.createInstance=No.createInstance;var KS=$.createInstance,WS=$.dir,JS=$.init,QS=$.loadResources,zS=$.reloadResources,qS=$.use,XS=$.changeLanguage,YS=$.getFixedT,ZS=$.t,eP=$.exists,tP=$.setDefaultNamespace,nP=$.hasLoadedNamespace,iP=$.loadNamespaces,rP=$.loadLanguages;var Pd=B(Vs()),Ad=B(jp()),Qo=B(Cd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),dr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var qs=B(W());var X=s((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?console.log(`${qs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${qs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",Xs=s((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),$t=s((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function gr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Qo.parse)(r.fileContent,r.dataSourceUri))}catch(o){return X(t,{severity:D.LogSeverity.Error,message:$.t("ANNOERR"),location:{path:$.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},o),i}}),n.length>0&&(i=(0,Ad.convert)((0,Qo.merge)(...n))),i}s(gr,"parseAndMergeAndConvert");var Ni=s(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Ys(e,t,n){var i,r,o,a;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((a=(o=e.Common)==null?void 0:o.Label)==null?void 0:a.toString())=="string"&&(n=e.Common.Label.toString());return n}s(Ys,"evaluateCommonLabel");function Ed(e,t){let n=e.value;return e.$target&&(n=Ys(e.$target.annotations,t,n)),n}s(Ed,"getLabelForPropertyPath");function Jo(e,t){var r,o;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(a=>a.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),(o=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&o.Label&&(n=Ys(i.annotations,t,n)),n}s(Jo,"getLabelForDataField");function nT(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let o=r[0];if((i=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&i.Label){let a=e;return Ys(o.annotations,t,a)}}}else return}s(nT,"getLabel");function xd(e,t,n){let i=Jo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}s(xd,"getTitleForDataField");function mr(e,t){var a,l,c,f;let n="",i,r,o="";try{let u=nT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=xd(e,t,u);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=Jo(e,t),n=u||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Jo(e,t),n=u||i||((l=(a=r.Target)==null?void 0:a.$target)==null?void 0:l.Title)||((c=r.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,o=typeof e.Action=="string"?r.Action:(f=r.Action)==null?void 0:f.path,u?n=typeof u=="string"?u:o:n=o;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Jo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=xd(r,t,u);break;default:break}return n}catch{return n}}s(mr,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}s(_e,"prepareRef");function sn(e){if(e){let t=`${D.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}s(sn,"getPageTypeV2");function iT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}s(iT,"getTargetAnnotationName");function Jt(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}s(Jt,"findAlias");function rT(e,t,n){var a,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),o=Jt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(a=t==null?void 0:t.annotations)==null?void 0:a[o])==null?void 0:l[r]}s(rT,"determineTargetAnnotation");function oT(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${D.UIVOCABULARY}`);return e}s(oT,"adjustKey");function aT(e,t,n,i,r=D.FioriElementsVersion.v2,o=!1){var p,g;let a=!1,l,c=i.split("/"),f=c.length>1;f&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=oT(t,c,o);let u=rT(c,n,e);if(u){let b=r===D.FioriElementsVersion.v2?"::":"#";t=iT(u,o).replace("#",b),l=(g=u.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return a=!0,{key:t,entityType:n,stopProcessing:a,namespace:l};if(f){let b=r===D.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:a,namespace:l}}s(aT,"getKeyAndEntityTypeOfReferenceFacet");function Id(e,t,n,i,r=D.FioriElementsVersion.v2,o=!1){var u,p,g;let a=(p=e.fullyQualifiedName)==null?void 0:p.substring((u=e.fullyQualifiedName)==null?void 0:u.lastIndexOf("@")),l=e.ID?e.ID.toString():a,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],f=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Ni(e.Target);if(!b){X(i,{severity:D.LogSeverity.Error,message:$.t("NOTARGET",{target:e.Target})});return}let{key:x,entityType:I,stopProcessing:L,namespace:U}=aT(n,l,f,b,r,o);if(L)return;l=x,f=I,c=U}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}}s(Id,"getSectionFacet");function Zs(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Ni(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ni(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${D.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ni(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ni(e.Value),n=Ni(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}s(Zs,"getSchemaKeyOfLineItemRecord");function sT(e,t,n){return e.includes(ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ae.UIAnnotationTerms.Chart:e.includes(ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ae.UIAnnotationTerms.Identification:n&&e.includes(ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ae.UIAnnotationTerms.LineItem:e.includes(ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ae.UIAnnotationTerms.FieldGroup:e.includes(ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ae.UIAnnotationTerms.DataPoint:e.includes(ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ae.UIAnnotationTerms.PresentationVariant:void 0}s(sT,"getUIAnnotationTerm");function lT(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?dr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?dr.CommunicationAnnotationTerms.Address:void 0}s(lT,"getCommunicationAnnotationTerm");function cT(e,t,n){return sT(e,t,n)||lT(e,t)}s(cT,"getAnnotationTerm");function fT(e,t,n,i,r){var f,u,p,g,b,x,I,L,U;let o=Jt(D.UIVOCABULARY,r),a=e?e.key:"",l=e.entityType;switch(cT(a,o,i)){case ae.UIAnnotationTerms.Chart:{n[a]={base:D.FacetBase.Chart},n[a].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[a]={base:D.FacetBase.Identification},n[a].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!a.includes(ae.UIAnnotationTerms.LineItem)&&a.includes(".LineItem")){let te=a.split("::");te[te.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,a=te.join("::")}n[a]={base:D.FacetBase.LineItem},n[a].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[a]={base:D.FacetBase.Form},n[a].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[a]={base:D.FacetBase.DataPoint},n[a].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[a].target=(x=t==null?void 0:t.Target)==null?void 0:x.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[a]={base:D.FacetBase.PresentationVariant},n[a].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case dr.CommunicationAnnotationTerms.Contact:{n[a]={base:D.FacetBase.Contact},n[a].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}case dr.CommunicationAnnotationTerms.Address:{n[a]={base:D.FacetBase.Address},n[a].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[a].entityType=l,n[a].namespace=e.namespace;break}default:n[a]={base:D.FacetBase.Unknown}}n[a]&&(n[a].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",D.VOCWITHSLASH)}`,t.Label&&(n[a].Label=t.Label),t.ID&&(n[a].ID=t.ID),e&&e.entityType&&(n[a].entityType=e.entityType))}s(fT,"evaluateTargetAnnotation");function el(e,t,n,i,r,o=D.FioriElementsVersion.v2,a){var c;let l=Id(e,i,t,a,o,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{fT(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let f=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,u=r[l.key]={base:D.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:f,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{el(p,t,n,i,u.facets,o,a)});break}}}s(el,"addFacetToConfig");function Od(e,t,n=D.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let o=Jt(D.UIVOCABULARY,t),a=o&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:c.HeaderFacets);if(a){let f=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,f);a.forEach(p=>{el(p,t,u,e,r,n,i)})}return r}s(Od,"getObjectPageHeaderFacets");function Fd(e,t,n=D.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let o=Jt(D.UIVOCABULARY,t),a=o&&((l=e==null?void 0:e.annotations[o])==null?void 0:l.Facets);if(a){let c=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,c);a.forEach(u=>{el(u,t,f,e,r,n,i)})}return r}s(Fd,"getObjectPageFacets");function tl(e){return e[D.ManifestSection.generic]||e[D.ManifestSection.ovp]?D.FioriElementsVersion.v2:D.FioriElementsVersion.v4}s(tl,"getVersionFromManifest");function uT(e,t){var i,r;let n;if(e[D.ManifestSection.generic]){let o=e[D.ManifestSection.generic].pages;if(!o){X(t,{severity:D.LogSeverity.Error,message:$.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}});return}for(let a in o){let l=o[a];if(sn((i=l.component)==null?void 0:i.name)===D.PageTypeV2.AnalyticalListPage){n=D.TemplateType.AnalyticalListPageV2;break}else if(sn((r=l.component)==null?void 0:r.name)===D.PageTypeV2.ListReport){n=D.TemplateType.ListReportObjectPageV2;break}}}else n||X(t,{severity:D.LogSeverity.Error,message:$.t("NOTEMPLATE",{section:D.ManifestSection.generic}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}});return n}s(uT,"determineV2Template");function nl(e,t,n){let i;return e[D.ManifestSection.ovp]?i=D.TemplateType.OverviewPageV2:t===D.FioriElementsVersion.v2&&(i=uT(e,n)),i}s(nl,"getTemplateTypeFromManifest");function yr(e,t,n){e!=null&&e.ID?(t.title=D.FacetTitlePrefix+e.ID,t[D.SchemaTag.keys]=[{name:D.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[D.SchemaTag.keys]=[{name:D.SchemaKeyName.id,value:n.replace(D.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}s(yr,"addSectionTitleAndDescription");function pT(e,t,n){var i,r;yr(e,t,n),!(e!=null&&e.ID||e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}s(pT,"addTargetTitleAndSectionDescription");function zn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[D.SchemaTag.isViewNode]=!0,i[D.SchemaTag.annotationPath]=t.annotationPath,pT(t,i,n),i}s(zn,"createDefaultSection");function Nd(e,t,n,i=D.FioriElementsVersion.v2,r=!1){var l,c;let o=Jt(D.UIVOCABULARY,t),a=[];if(e){let f=o&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:c.Facets);return f&&(a=f.reduce(function(u,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return u;let g=Id(p,e,t,n,i,!0);return g&&u.push(g),u},a)),a}}s(Nd,"getObjectPageFacetSection");var hr=s((e,t,n,i,r,o)=>{if(!t)return;let a=e,l=t.split("/");l.forEach(function(c){let f=o&&o===c?r:c.replace("??","/");if(a[f]){if(Object.keys(a[f]).length===0||i&&i[i.length-1]===f&&n){Array.isArray(a)?a.splice(Number(f),1):delete a[f],l.pop(),hr(e,l.join("/"),n,i,r,o);return}a=a&&a[f]}})},"deleteEmptyStructure"),Sd=s(e=>`${e}`,"getGenericSchemaFileName"),Xe=s((e,t)=>{let n={filename:"",path:""};switch(e){case D.SchemaType.Application:{n.filename="App",n.path=`./${D.DirName.Schemas}/${n.filename}`;break}case D.SchemaType.ListReport:case D.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Sd(e),n.path=`../${D.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Sd(e),n.path=`../${D.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function zo(e,t,n,i){if(e===D.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}s(zo,"generatePageId");function dT(e,t,n,i){let r=e.$ref;if(r){let o=r.split(j)[1];if(t.definitions[o]){let a=t.definitions[o].controlProperty;r.includes(n[a])&&i.push(o)}}}s(dT,"fillArrayFromAnyOfReference");function gT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{dT(r,n,t,i)}),i.length===0))return;return i}s(gT,"fillArrayFromPropertyDefinition");function mT(e,t,n,i,r,o,a,l){var f,u,p,g;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||((u=c==null?void 0:c.targetDefinition)==null?void 0:u.type)==="array")return c=vn(t,n,i,c.targetDefinition,r,o,a),c;e.length>1&&e.forEach(L=>{L!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[L].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let x=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=o.createInstance(a,x,I,(g=c==null?void 0:c.targetDefinition)==null?void 0:g.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}s(mT,"determineNextDefinitionFromDefinitionArray");function vn(e,t,n,i,r,o,a){let l;if(i.type==="array")return l=vn(e,t,n,i.items,r,o,a),l;let c=gT(i,n,e);if(c)return l=mT(c,e,t,n,r,o,a,i),l}s(vn,"getNextTargetDefinition");var il=s((e,t,n)=>{let i=e.slice();return t.forEach((r,o)=>{typeof i[o]>"u"?i[o]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[o]=(0,Pd.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function mt(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}s(mt,"convertActionKeyToStableId");function Li(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}s(Li,"updatePropertyIndices");function Ld(e){return e=e.replace(D.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}s(Ld,"removeNamespaces");function qo(e){return e=e.replace(D.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}s(qo,"replaceNamespaces");var Un=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=B(W());var yt=B(W());var Ie=s((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Xo=s((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Ye=s((e,t)=>{let n,i=yt.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 yT(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}s(yT,"escapeId");var Vd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Vd||{});function hT(e,t,n){let i;return e=e.map(function(r){if(r===yt.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===yt.PropertyName.sections)return i=t[o+1],t[o+1]=Ye(i,n)+"::Table",t[o+1]}return r}),{idBreadcrumbs:e}}s(hT,"mapBreadcrumbs");var rl=s((e,t,n,i,r)=>{let o="listReport",a=[...n];({idBreadcrumbs:t}=hT(t,a,r)),a[0]===yt.PropertyName.sections?o=a[1].replace(/::com.sap.vocabularies/g,yt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,yt.VOCWITHSLASH):t[0]===yt.PropertyName.table&&(o=t[0]);let l=a[a.length-1].replace(/::com.sap.vocabularies/g,yt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,yt.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,f=l.indexOf(":::");return l.startsWith("DataField")&&f>-1?c=`${e}template:::TableColumn:::${l.substring(0,f)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(f+3)}`:c=`${e}${t.join("::")}-${l}`,yT(c)},"buildColumnControlId"),ht=s(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function bT(e){let t=yt.BindingPropertyRegexAsString;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}s(bT,"determinePattern");var jd=s((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let o=r[n],a=o,l=o.$ref?e.definitions[o.$ref.split(j)[1]]:o,c=o.description?o.description:l.description,f=bT(l);l.type&&l.type==="boolean"&&(a={enum:[!1,!0]}),i&&a.enum&&i.forEach(u=>{a.enum.indexOf(u)===-1&&a.enum.push(u)}),r[n]={pattern:f,anyOf:[a,{type:"string"}]},c&&(r[n].description=c,delete o.description)},"addPatternForBindingChangeOfEnum"),Vi=s((e,t,n)=>{jd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ye=s((e,t,n)=>{let i=Object.values(Vd);jd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Dd(){}s(Dd,"doNotDelete");var qP=B($d());var Rd=Symbol("specificationMetadataKey"),y=s(e=>Reflect.metadata(Rd,e),"syncRule");function St(e,t){let n;return e&&(n=Reflect.getMetadata(Rd,e,t)),n}s(St,"getReflectMetadata");var Cn=s(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),_d=Symbol("childId"),Qe=s(e=>Reflect.metadata(_d,e),"childId"),Md=s((e,t)=>Reflect.getMetadata(_d,e,t),"getChildId"),kd=s(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),TT=Symbol("descriptionSrcURL"),ln=s(e=>Reflect.metadata(TT,e),"descriptionSrcURL");var vT=Symbol("validityMetadataKey"),F=s(e=>Reflect.metadata(vT,e),"validity");function Yo(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}s(Yo,"getTextForDeprecated");var Qd=B(Wd()),zd=B(W());var qd=Qd.default.change,Jd={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function Xd(e,t){let n="";try{for(let i in Jd)e[i]===void 0&&(e[i]=Jd[i]);n=qd.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}s(Xd,"createChangeString");function xn(e){try{return qd.parse(e)}catch{return!1}}s(xn,"parseChangeString");function Yd(e,t,n,i,r){let o=n.layer?n.layer===zd.FlexChangeLayer.Customer:!0,a={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:o};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(a,e,i):e[i].toString().startsWith("{")?(a.content.newBinding=e[i],a.type="propertyBindingChange"):a.content.newValue=e[i]:a.content.newValue=null,a}s(Yd,"fillFlexChangeContent");function w(e,t){return Xd(e,t)}s(w,"exportToFlexChange");var qn=B(W());function Zo(e,t,n,i,r,o){let a=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,o);c!==void 0&&(i[n]=c)}else t[a]!==void 0&&(i[n]=t[a])}s(Zo,"importProperty");function Zd(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(X(i,{severity:qn.LogSeverity.Warning,message:Yo(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}s(Zd,"checkDeprecatedProperties");function ol(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return ol(n,t)}else return e.title?e.title.startsWith(qn.FacetTitlePrefix)?e.title.split(qn.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}s(ol,"getSectionTitle");function ea(e){let t=e.split(`${qn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}s(ea,"getTargetFromCustomColumnRef");var Le=require("@sap-ux/vocabularies-types/vocabularies/UI");var cn=require("@sap-ux/vocabularies-types/vocabularies/UI");function tg(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}}s(tg,"replaceSpecialChars");var Xn=s(function(e){return tg(Ld(e))},"prepareId");function IT(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}s(IT,"evaluateConcat");function Yn(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return IT(e);if(e&&typeof e=="string")return tg(e.replace(/ /g,"_"))}s(Yn,"getStableIdPartFromValue");var eg=s(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"),ng=s(function(e){let t="";if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=eg(e),t;if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Xn(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Yn(e.Value)+"::"),t+=e.Action,Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataField)return t="DataField::",t+=Yn(e.Value),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Yn(e.Value)+"::",t+=eg(e),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Yn(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Yn(e.Value),Xn(t)},"getStableIdPartFromDataField");var O=B(W());var Y=B(W());var bt=require("@sap-ux/vocabularies-types/vocabularies/UI"),sg=require("path"),lg=B(ur());var ji="ResponsiveTable<LineItems>",br="TreeTable<LineItems>",Tr="AnalyticalTable<LineItems>",vr="GridTable<LineItems>",ig=[br,Tr,vr],rg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],og="template::",ta="template:::ObjectPageAction:::";function OT(e,t,n){e.definitions[Y.DefinitionName.LineItems]&&(e.definitions[Y.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][Y.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[Y.SchemaTag.artifactType]=Y.ArtifactType.Manifest)}s(OT,"addCustomColumnDefinition");function FT(e,t){let n;return e==="TableColumnActionIntentBased"?n=Zs(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===bt.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}s(FT,"getActionId");function al(e,t,n,i,r){let o,a=n.lineItemId===Y.DefinitionName.LineItems?"":"ObjectPage",l=FT(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(o="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?o="TableColumnAction":(o=a!==""?`${a}${i}`:"Action",i="ToolBarAction");let c=`${a}${i}<${l}>`,f=mr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][Y.SchemaTag.propertyIndex]=r;let{key:u,ns:p}=Cr(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[o])),description:f,keys:[{name:"Action",value:u}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][Y.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:f,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.action,value:u}],p&&(e.definitions[c][Y.SchemaTag.target]=p),e.definitions[c][Y.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}s(al,"handleActionRecord");function NT(e,t,n){e!==Y.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===bt.UIAnnotationTypes.DataFieldForAction||t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}s(NT,"getColumnActionType");function LT(e,t){let n=[];if(!(e.$Type!==bt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),NT(t,e,n),n}s(LT,"getActionType");function cg(e,t,n){let i=Zs(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+Y.DefinitionName.TableColumn,description:mr(e.lineItemRecord,e.entityType)},r.properties[i][Y.SchemaTag.propertyIndex]=n,r.properties[i][Y.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,ra(r.properties[i],e.lineItemRecord),gg(e.lineItemRecord,r.properties,i)}}s(cg,"generateGenericColumn");function VT(e,t,n,i,r,o,a){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{al(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&&al(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{al(t,t.definitions[a],i,e,r);break}case"ObjectPageTableColumnAction":cg(i,t,r)}}s(VT,"handleAnyAction");function Di(e,t,n,i,r,o){r=r||Y.DefinitionName.LineItems;let{actions:a,footerActions:l,lineItemPath:c}=dg(e,t,n,i,r);if(n){let f=0;n.forEach(u=>{let p={lineItemPath:c,lineItemRecord:u,lineItemId:r,entityType:i},g=LT(u,r);g?g.forEach(b=>{VT(b,t,a,p,f,l,r)}):cg(p,t,f),f++})}o&&(t.definitions[r].properties.custom={$ref:`${j}${o}`})}s(Di,"addLineItemsType");function jT(e,t,n){var r,o;let i=(o=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:o.leadingProperty;if(i){let a=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=a==null?void 0:a.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}s(jT,"addListReportLeadingProperties");function DT(e,t,n,i){var a,l,c,f,u,p;let r=(l=(a=e.definitions[t])==null?void 0:a.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let o=(u=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.quickVariantSelectionX)==null?void 0:u.variants;if(o){let g=[];for(let b in o){let x=(p=o[b])==null?void 0:p.key;x!==void 0&&!g.includes(x)&&g.push(x)}Zn(g,r)}}s(DT,"addTabkeyEnum");function na(e,t,n,i,r){var a,l;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(c=>{let f=c.dataSourceUri.split("webapp")[1];if(f&&f.indexOf(".fragment.xml")>0){let u=JSON.parse((0,lg.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!u||u.Column||u["table:Column"]||u["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!u||!u.Column&&!u["table:Column"]&&!u["table:AnalyticalColumn"]&&!u["smartfilterbar:ControlConfiguration"])){f=f.replace(new RegExp("\\"+sg.sep,"g"),"/");let p=n+f.split(".fragment.xml")[0].replace(/\//g,".");o.push(p)}}}),Zn(o,(l=(a=e.definitions[r])==null?void 0:a.properties)==null?void 0:l[i])}s(na,"addFragmentEnum");function wi(e,t,n,i,r,o=Y.DefinitionName.CustomColumns,a=Y.DefinitionName.CustomColumn,l){OT(e,o,a),jT(e,t,a),DT(e,a,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;na(e,r,c,"fragmentName",a),na(e,r,c,"fragmentName",Y.DefinitionName.CustomColumn),na(e,r,c,"cellsFragmentName",a),na(e,r,c,"cellsFragmentName",Y.DefinitionName.CustomColumn)}s(wi,"addTableColumnExtensions");function fg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}s(fg,"removeElementsFromEnum");function ia(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=$t(n==null?void 0:n.fullyQualifiedName,bt.UIAnnotationTerms.SelectionFields);if(r&&(i[Y.SchemaTag.annotationPath]=r),!t)return;let o=0;t.forEach(a=>{let l=a.value,c=`SelectionField<${_e(a.value)}>`,f=sl(a);a.type==="PropertyPath"&&(l=Ed(a,n)),i.properties[a.value]={$ref:j+c},i.properties[a.value][Y.SchemaTag.propertyIndex]=o,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.annotationType]=a==null?void 0:a.type,e.definitions[c][Y.SchemaTag.dataType]=f,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.value,value:`${a.value}`}],e.definitions[c][Y.SchemaTag.annotationPath]=`${i[Y.SchemaTag.annotationPath]}/${o}`,e.definitions[c].properties={},o++})}s(ia,"addSelectionFields");function ug(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}s(ug,"isDraftEnabled");function $i(e,t=!1,n){let i=Y.DefinitionName.HeaderActionsStandard,r=Y.DefinitionName.HeaderActionsStandard,o=Y.DefinitionName.HeaderActionStandard;t&&(i=Y.DefinitionName.GenericActions,r=Y.DefinitionName.HeaderActions,o=Y.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i],l=e.definitions[r];l[Y.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||a).properties).forEach(([f,u])=>{let p=u.$ref.split(j)[1],g=`${o}<${p}>`;l.properties[f]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][Y.SchemaTag.actionType]=Y.ActionType.Standard})}s($i,"addStandardHeaderActions");function pg(e,t){let n=e.definitions[Y.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],o=`${Y.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${o}`},e.definitions[o]=e.definitions[r],e.definitions[r][Y.SchemaTag.actionType]=Y.ActionType.Standard}}s(pg,"addStandardFooterActionsOP");function wT(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Le.UIAnnotationTypes.DataField:case Le.UIAnnotationTypes.DataFieldForAnnotation:case Le.UIAnnotationTypes.DataFieldWithNavigationPath:case Le.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Le.UIAnnotationTypes.DataField:case Le.UIAnnotationTypes.DataFieldForAnnotation:case Le.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}s(wT,"copyFieldProperties");function $T(e,t,n,i){let r=e===O.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===O.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}s($T,"determineFieldDefinitionName");function RT(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][O.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(RT,"addKeysTagForDataField");function _T(e,t,n){if(e.$Type===Le.UIAnnotationTypes.DataField||e.$Type===Le.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Le.UIAnnotationTypes.DataFieldWithNavigationPath)RT(e,t,n);else if(e.$Type===Le.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:qo(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Le.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][O.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Le.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][O.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(_T,"addKeysTagToField");function mg(e,t,n,i,r,o,a,l=!0){var p;let c=ng(n),f=a===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,u=$T(a,c,i,f);if(!(!n||!n.$Type)){if(n.$Type===Le.UIAnnotationTypes.DataFieldForAction||n.$Type===Le.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=_e(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[f]={$ref:`${j}${u}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=_e(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[f]={$ref:`${j}${u}`,propertyIndex:parseInt(r)}}t.definitions[u]={type:"object",properties:{},description:mr(n,o.entityType),additionalProperties:!1},_T(n,t,u),t.definitions[u][O.SchemaTag.annotationPath]=`/${o.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(o.entityType.fullyQualifiedName)[1]}`,t.definitions[u][O.SchemaTag.annotationType]=n.$Type,t.definitions[u][O.SchemaTag.isViewNode]=!0,ra(t.definitions[u],n),wT(a,t,n,u),n.$Type===Le.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[u].properties=t.definitions[O.DefinitionName.FormAction].properties)}}s(mg,"addField");function MT(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}s(MT,"determineTargetIdOfForm");function kT(e,t,n,i,r,o=!0){var f;if(!e.target)return;let a=_e(`${t}${O.DefinitionName.Form}<${i}>`),l=_e(`${t}${O.DefinitionName.Fields}<${i}>`),c=_e(`${t}${O.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${a}`},t===O.SectionType.Section&&o?(n.definitions[a]={type:"object",properties:{actions:{$ref:`${j}${c}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][O.SchemaTag.isViewNode]=!0):n.definitions[a]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[a][O.SchemaTag.isViewNode]=!0,(f=e.entityType)!=null&&f.name&&(n.definitions[a][O.SchemaTag.annotationPath]=$t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][O.SchemaTag.isViewNode]=!0,e.base===O.FacetBase.Identification)for(let u in e.target){let p=e.target[u];p&&mg(t,n,p,i,u,e,r,o)}else for(let u in e.target.Data){let p=e.target.Data[u];mg(t,n,p,i,u,e,r)}}s(kT,"addFieldsToFormDefinition");function BT(e,t,n){var i,r;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][O.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][O.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][O.SchemaTag.annotationPath]=$t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}s(BT,"addTagsToFormDefinition");function yg(e,t,n,i,r,o){if(!t.target)return;let a=MT(t),l=_e(`${e}${O.DefinitionName.Form}<${a}>`),c=_e(`${e}${O.DefinitionName.Fields}<${a}>`),f=_e(`${e}${O.DefinitionName.Actions}<${a}>`),u=!(t.base===O.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&u?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${f}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[f]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[f][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},BT(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,kT(t,e,i,a,r,u),a}s(yg,"handleForm");function UT(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),o=t.references.find(a=>a.alias===r);o&&(i=e.replace(n,o.namespace))}return i}s(UT,"replaceAlias");function ll(e,t){let n=UT(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let o,a,l;return r>-1?(o=i.substring(r+1),l=i.substring(0,r),a=`${i.substring(0,r)}::${o}`):(o=i,l=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(a=`${l.substring(0,l.length-1)}::${o}`)),{actionName:o,actionId:a,namespace:l}}s(ll,"getActionNameAndId");function hg(e,t){var n,i;for(let r in e){let o=e[r];return((n=o.component)==null?void 0:n.name)===O.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===o.entitySet:hg(o.pages,t)}}s(hg,"isFirstObjectPage");function bg(e,t,n,i){var c,f,u;e.definitions[O.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${O.DefinitionName.ObjectPageFooter}`},e.definitions[O.DefinitionName.ObjectPageFooter].properties[O.PropertyName.actions]={$ref:`${j}${O.DefinitionName.FooterActions}`};let r=e.definitions[O.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[O.SchemaTag.isViewNode]=!0;let o=Jt(O.UIVOCABULARY,t.serviceAVT),a=(c=t.entitySet)==null?void 0:c.entityType,l=o&&((u=(f=a==null?void 0:a.annotations)==null?void 0:f[o])==null?void 0:u.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Le.UIAnnotationTerms.Identification}`,`/@${Le.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Le.UIAnnotationTypes.DataFieldForAction){let{actionName:x,actionId:I}=ll(g,t.serviceAVT),L=g.Label||x,U=_e(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[U]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[U]={type:"object",properties:{},description:L},e.definitions[U][O.SchemaTag.isViewNode]=!0,e.definitions[U][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${U}`}}})}else a&&(r[O.SchemaTag.annotationPath]=`/${a.fullyQualifiedName}/@${Le.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&hg(i,t)&&!ug(a)&&pg(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}s(bg,"addFooterActions");function Tg(e,t,n,i,r=!1){var u,p;let o=O.DefinitionName.HeaderActions,a=e.definitions[o];e.definitions[O.DefinitionName.ObjectPageHeader].properties[O.PropertyName.actions]={$ref:`${j}${o}`};let l=e.definitions[o]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[O.SchemaTag.isViewNode]=!0;let c=Jt(O.UIVOCABULARY,n),f=c&&((p=(u=t==null?void 0:t.annotations)==null?void 0:u[c])==null?void 0:p.Identification);f?(l[O.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Le.UIAnnotationTerms.Identification}`,`/@${Le.UIAnnotationTerms.Identification}`),f.forEach(i(t,e,f,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Le.UIAnnotationTerms.Identification}`),r&&$i(e,!0,a),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}s(Tg,"addHeaderActions");function vg(e,t){e.properties.header={$ref:`${j}${O.DefinitionName.ObjectPageHeader}`},e.definitions[O.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`])),t&&(e.definitions[O.DefinitionName.ObjectPageHeader][O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Le.UIAnnotationTerms.HeaderInfo}`)}s(vg,"addCommonHeaderSchema");function Cg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}s(Cg,"determineEntitySetOfFacet");var Rt=require("@sap-ux/vocabularies-types/vocabularies/UI");var he=B(W());function Zn(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}s(Zn,"addEnumToSchema");function xg(e,t,n){var o;let i=(o=e==null?void 0:e.annotations)==null?void 0:o.UI;if(!i)return;let r=[];for(let a in i){let l=i[a];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}Zn(r,n)}s(xg,"addEnumForValidAnnotations");function oa(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Rt.UIAnnotationTerms.SelectionVariant,Rt.UIAnnotationTerms.SelectionPresentationVariant];xg(e,r,i)}s(oa,"addEnumForSingleTabVariant");function Sg(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[Rt.UIAnnotationTerms.SelectionVariant,Rt.UIAnnotationTerms.SelectionPresentationVariant];xg(n.entityType,r,i)}s(Sg,"addEnumForMultiTabVariant");function Pg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),Zn(r,i)}s(Pg,"addEnumForVariantEntitySet");function Ag(e,t,n,i){let r=n.map(o=>{let a=i.find(c=>!!o[c]);return{const:o[a],...o.label&&{description:o.label},...o.custom&&{custom:o.custom}}});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let o of t){let a=e.definitions[o],l=a.properties.relatedFacet;a.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},l]}}}}s(Ag,"addDefinitionForRelatedFacetKeys");function HT(e){return e.replace("#","::")}s(HT,"getFacetKeyInSchema");function Eg(e,t){return`${e}<${HT(t)}>`}s(Eg,"getFacetDefinitionKey");function GT(e,t,n,i=!0,r){let o=t;if(i&&(o=Eg(r||e,t)),e&&e!==o)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=a}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[o]}s(GT,"parseSchemaDefinition");function dg(e,t,n,i,r){let o;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][he.SchemaTag.isViewNode]=!0;let a=e?he.DefinitionName.ObjectPageToolBar:he.DefinitionName.ToolBar,l=`${a}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${a}`]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${a}`}))}let c=`Actions<${_e(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let f=e?he.DefinitionName.ObjectPageToolBarActions:he.DefinitionName.Actions,u;try{u=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[f])),u.properties={},u.additionalProperties=!1}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let p,g;if(r===he.DefinitionName.LineItems&&t.properties.footer){g=`${he.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[he.DefinitionName.GenericFooter]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:he.DefinitionName.GenericFooter}))}let b=`${he.DefinitionName.FooterActions}<${_e(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[he.DefinitionName.Actions]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:he.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(o=$t(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),o&&(t.definitions[r][he.SchemaTag.annotationPath]=t.definitions[l][he.SchemaTag.annotationPath]=o,p&&(t.definitions[g][he.SchemaTag.annotationPath]=o))),{actions:u,footerActions:p,lineItemPath:o}}s(dg,"addCommonLineItemDefinitions");function Ig(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}s(Ig,"getDataTypeFromAnnotation");function aa(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=Ig(e.$Type)),t}s(aa,"determineDataTypeOfTarget");function sl(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=aa((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=Ig(e.$Type):e.type&&(t=e.type),t}catch{return t}}s(sl,"determineDataType");function ra(e,t){let n=sl(t);n&&(e[he.SchemaTag.dataType]=n)}s(ra,"addDataTypeToDefinition");function KT(e,t){return`${j}${Eg(e,t)}`}s(KT,"getFacetDefinitionLink");function cl(e,t,n,i,r,o,a=""){let l=`ObjectPage${r}${e.base}${a}`,c=`ObjectPage${o}${e.base}${a}`;n.properties[t]={$ref:KT(o?c:l,t)};let f=GT(o?c:l,t,i,!0,o?c:void 0);yr(e,f,t),f[he.SchemaTag.annotationPath]=e.annotationPath,f[he.SchemaTag.isViewNode]=!0}s(cl,"handleAddressContact");function Cr(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),o=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,o),n=r>0?n.substring(r+1):n.substring(o+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}s(Cr,"getActionKey");function gg(e,t,n){var i,r,o;try{if(e.Value)t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.value,value:Yn(e.Value)}];else if(e.$Type===Rt.UIAnnotationTypes.DataFieldWithAction||e.$Type===Rt.UIAnnotationTypes.DataFieldForAction){let{key:a,ns:l}=Cr(e.Action,!0);t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.action,value:a}],l&&(t[n][he.SchemaTag.target]=l)}else if(e.$Type===Rt.UIAnnotationTypes.DataFieldForAnnotation){let{key:a}=Cr(e.Target.value,!1);t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.target,value:qo(a)}],t[n][he.SchemaTag.target]=(o=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:o.split("@")[0]}else if(e.$Type===Rt.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Rt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let a=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Cr(a,!0);t[n][he.SchemaTag.keys]=[{name:"SemanticObject",value:e[he.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][he.SchemaTag.target]=c)}}catch{return}}s(gg,"addKeyToDefinition");var Ri=B(W());var Og=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{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 Fg="1.71.111";var Sn=class Sn{constructor(){Sn.distTagsOfSpec.length===0&&(Sn.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Sn.distTagsOfSpec=[]}getSpecVersion(){return Fg}getDistTagsOfVersion(){let t=[],n=Og,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(o=>o.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=$.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});X(n,{severity:Ri.LogSeverity.Info,message:r,location:{path:Ri.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Sn.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=$.t("WRONGMINUI5VERSION",{minUI5Version:t});X(n,{severity:Ri.LogSeverity.Warning,message:r,location:{path:Ri.MANIFESTPATH}})}}};s(Sn,"DistTagEvaluator"),Sn.distTagsOfSpec=[];var xr=Sn;var Z=B(W());var ke=B(W());var Pt=B(W());var fl=class fl{constructor(t,n,i,r,o,a,l){this.unhandledControllers=[];let c=Xe(Pt.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:o,odata:o===Pt.FioriElementsVersion.v2?Pt.OdataVersion.v2:Pt.OdataVersion.v4},...a&&{settings:a}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let o in this.app.pages)if(i=this.app.pages[o],i.config){let a=i.config;if(i.pageType!==Pt.PageType.CustomPage){let l=Xe(i.pageType,i.entitySet);if(this.schemas[l.filename])a.$schema=l.path;else{let c=Xe(i.pageType);a.$schema=c.path}t[`${Pt.DirName.Pages}/${o}.json`]=a}}let r=JSON.parse(JSON.stringify(this.app));for(let o in r.pages)delete r.pages[o].config;return n[Pt.FileName.App]=r,{appConfig:n,pageConfigs:t}}};s(fl,"AppProvider");var _i=fl;var ie=B(W());var ei=B(W());function sa(e,t,n){if(t.controlType.endsWith(ei.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===ei.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[ei.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),a=r[r.length-1].split("template:::TableColumn:::"),l=a[a.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ei.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}s(sa,"addFlexForTable");var Mi=B(W());var ze=s((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Ng=s((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var Lg=s((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function ul(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}s(ul,"getNewPageTemplate");function zT(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}s(zT,"findPageInManifest");function qT(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ul(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ul(e[t].pageType)}),!Array.isArray(n.pages))){let i=zT(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=ul(e[t].pageType)),pl(t,e,i)}}s(qT,"transformPageFromAssociation");function XT(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var o;let r=e.pages[i];if(((o=r.component)==null?void 0:o.name)===Mi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let a=`ObjectPage_${r.entitySet}`;t[a]||delete e.pages[i]}}),(n.pageType===Mi.PageTypeV2.ListReport||n.pageType===Mi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}s(XT,"deletePage");function pl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Mi.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)qT(t,r,n);Array.isArray(n.pages)||XT(n,t,i)}}s(pl,"transformPageToNewManifestV2");var um=B(ur());var Uc={};So(Uc,{ALPAnalyticalTable:()=>Gl,ALPGridTable:()=>Hl,ALPResponsiveTable:()=>Ul,Action:()=>Ql,AnalyticalCard:()=>Nr,AnalyticalCardSettings:()=>bl,AnalyticalListPageFilterBar:()=>Pl,AnalyticalTable:()=>Bl,BaseCustomSection:()=>eo,ChartSettings:()=>pc,ChartSettingsType:()=>gl,CommonCardSettings:()=>Fn,CommonHeaderFacetSettings:()=>li,CommonTableSettings:()=>Vn,CommonTableSettingsForSections:()=>gi,CreateWithFilters:()=>Rl,CustomCard:()=>yl,DefaultSpanObject:()=>ml,FRAGMENT_DEFINITION:()=>Yt,Field:()=>xl,FieldForAction:()=>Il,FooterAction:()=>ql,FormAction:()=>El,GlobalTableSettings:()=>kc,GridTable:()=>Kl,HeaderAction:()=>mc,HeaderActionStandard:()=>tc,HeaderSections:()=>vc,KPISettings:()=>dc,LinkListCardSettings:()=>vl,LinklistCard:()=>Vr,ListCard:()=>Fr,ListCardSettings:()=>hl,ListReportFilterBar:()=>da,ObjectPageAnalyticalTable:()=>Rc,ObjectPageCustomSectionFragment:()=>to,ObjectPageCustomSectionView:()=>no,ObjectPageFooterAction:()=>xc,ObjectPageFooterActionStandard:()=>ic,ObjectPageGridTable:()=>_c,ObjectPageHeader:()=>gc,ObjectPageHeaderActionStandard:()=>nc,ObjectPageHeaderSectionAddress:()=>Tc,ObjectPageHeaderSectionChart:()=>hc,ObjectPageHeaderSectionDataPoint:()=>bc,ObjectPageHeaderSectionForm:()=>yc,ObjectPageLayout:()=>Pc,ObjectPageResponsiveTable:()=>mi,ObjectPageSectionAddressV2:()=>Fc,ObjectPageSectionChartV2:()=>Ic,ObjectPageSectionContactV2:()=>Nc,ObjectPageSectionFormV2:()=>Ec,ObjectPageSectionTableV2:()=>Oc,ObjectPageSectionV2:()=>Ac,ObjectPageSubSectionChartV2:()=>jc,ObjectPageSubSectionContactV2:()=>Dc,ObjectPageSubSectionFormV2:()=>Vc,ObjectPageSubSectionTableV2:()=>wc,ObjectPageSubSectionV2:()=>Lc,ObjectPageToolBarAction:()=>Bc,ObjectPageTreeTable:()=>Mc,QuickVariantSelection:()=>_l,QuickVariantSelectionOP:()=>$c,QuickVariantSelectionX:()=>Ml,ResponsiveTable:()=>ni,SAP_UI_TABLE:()=>ga,SaveAndEditOP:()=>ec,Share:()=>Xl,ShareOP:()=>Yl,StackCard:()=>Lr,StackCardSettings:()=>Tl,TableALP:()=>Wi,TableCard:()=>jr,TableCardSettings:()=>Cl,TableColumn:()=>ac,TableColumnAction:()=>Na,TableColumnActionIntentBased:()=>sc,TableCustomColumn:()=>lc,ToolBar:()=>fc,ToolBarAction:()=>zl,TreeTable:()=>kl,UpAndDownNavigationOP:()=>Zl,buildIntentBasedActionId:()=>rc,deleteColumnFromFragment:()=>ha,deleteType:()=>Qi,exportCustomColumnsToFragment:()=>$l,exportDefaultSpan:()=>jg,exportType:()=>Ji,getChartSectionControlId:()=>am,getContactSubSectionControlId:()=>lm,getCustomColumnPath:()=>ba,getFormSectionControlId:()=>om,getRootCustomColumnFromFragmentJSON:()=>Rr,getSectionControlId:()=>ui,getSmartChartControlId:()=>Wr,getSmartTableControlId:()=>dn,getSubSectionControlId:()=>sm,getTableSectionControlId:()=>rm});var ot=B(W());var pe=s(e=>`${ot.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),fa=s(e=>pe(e)+"/tableSettings","getTableSettingPathV2");var He=s(()=>ot.ManifestSection.ovp,"getOVPsettingPath"),G=s(e=>{let t=[ot.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in ot.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ti=s((e,t)=>`${ot.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Vg=s(e=>{let t=[ot.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ft=s(e=>{let t=[];return t.push(Vg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ki=s(e=>Ft(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Qt=s((e,t,n)=>{let i=[];i.push(Vg(e));let r=n.replace(ot.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),En=s((e,t,n)=>Qt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var dl=s(()=>`sap.ui5/extends/extensions/${ot.v2.SAPUI5_VIEW_EXTENSION}/${ot.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),fn=s((e,t,n,...i)=>{let r="|",o=n.split(r),a=e[e.length-1].split(r),l="";o.length===4?l=[o[2],o[3]].join(r):o.length===3&&(l=o[2]);let c=[o[0],a[a.length-1],l].join(r);return i.unshift(c),`${dl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ca=class ca{};s(ca,"ApplicationV2"),m([Qe("settings")],ca.prototype,"settings",2);var la=ca,Pn=class Pn{};s(Pn,"AppSettings"),m([y({manifest:{path:()=>"sap.app"}})],Pn.prototype,"title",2),m([y({manifest:{path:()=>"sap.app"}})],Pn.prototype,"description",2),m([y({manifest:{path:()=>ot.GENERICAPPSETTINGS}}),F({since:"1.50.0"})],Pn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:()=>ot.GENERICAPPSETTINGS}}),F({since:"1.46.0"})],Pn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:()=>"sap.ui5"}}),F({since:"1.56.0"}),ln("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Pn.prototype,"flexEnabled",2);var An=Pn;function jg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}s(jg,"exportDefaultSpan");var ua=class ua{};s(ua,"ChartSettingsType"),m([y({manifest:{path:()=>He()+"/chartSettings"}})],ua.prototype,"showDataLabel",2);var gl=ua,In=class In{};s(In,"DefaultSpanObject"),m([y({manifest:{path:t=>G(t)}})],In.prototype,"cols",2),m([y({manifest:{path:t=>G(t)}})],In.prototype,"rows",2),m([y({manifest:{path:t=>G(t)}})],In.prototype,"showOnlyHeader",2),m([y({manifest:{path:t=>G(t)}})],In.prototype,"minimumTitleRow",2),m([y({manifest:{path:t=>G(t)}})],In.prototype,"minimumSubTitleRow",2);var ml=In,Oe=class Oe{};s(Oe,"CommonCardSettings"),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"entitySet",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"title",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"subTitle",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"annotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"category",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"valueSelectionInfo",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"showFilterInHeader",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"sortBy",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"sortOrder",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:t=>G(t),export:jg}})],Oe.prototype,"defaultSpan",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"requireAppAuthorization",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"showSortingInHeader",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"tabs",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"addODataSelect",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"showRefresh",2),m([y({manifest:{path:t=>G(t)}})],Oe.prototype,"customParams",2);var Fn=Oe,Bi=class Bi{};s(Bi,"CustomCard"),m([y({manifest:{path:t=>G(t)}})],Bi.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Bi.prototype,"template",2),m([y({manifest:{path:t=>G(t)}})],Bi.prototype,"settings",2);var yl=Bi,On=class On extends Fn{};s(On,"ListCardSettings"),m([y({manifest:{path:t=>G(t)}})],On.prototype,"showLineItemDetail",2),m([y({manifest:{path:t=>G(t)}})],On.prototype,"imageSupported",2),m([y({manifest:{path:t=>G(t)}})],On.prototype,"enableAddToInsights",2),m([y({manifest:{path:t=>G(t)}})],On.prototype,"listFlavor",2),m([y({manifest:{path:t=>G(t)}})],On.prototype,"listType",2);var hl=On,Sr=class Sr{};s(Sr,"ListCard"),m([y({manifest:{path:t=>G(t)}})],Sr.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Sr.prototype,"template",2);var Fr=Sr,zt=class zt extends Fn{};s(zt,"AnalyticalCardSettings"),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"chartAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"ignoreSapText",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"enableAddToInsights",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"navigation",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"valueSelectionInfo",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"chartProperties",2),m([y({manifest:{path:t=>G(t)}})],zt.prototype,"colorPalette",2);var bl=zt,Pr=class Pr{};s(Pr,"AnalyticalCard"),m([y({manifest:{path:t=>G(t)}})],Pr.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Pr.prototype,"template",2);var Nr=Pr,Ui=class Ui extends Fn{};s(Ui,"StackCardSettings"),m([y({manifest:{path:t=>G(t)}})],Ui.prototype,"itemText",2),m([y({manifest:{path:t=>G(t)}})],Ui.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:t=>G(t)}})],Ui.prototype,"objectStreamCardsSettings",2);var Tl=Ui,Ar=class Ar{};s(Ar,"StackCard"),m([y({manifest:{path:t=>G(t)}})],Ar.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Ar.prototype,"template",2);var Lr=Ar,Hi=class Hi extends Fn{};s(Hi,"LinkListCardSettings"),m([y({manifest:{path:t=>G(t)}})],Hi.prototype,"listFlavor",2),m([y({manifest:{path:t=>G(t)}})],Hi.prototype,"headerAnnotationPath",2),m([y({manifest:{path:t=>G(t)}})],Hi.prototype,"staticContent",2);var vl=Hi,Er=class Er{};s(Er,"LinklistCard"),m([y({manifest:{path:t=>G(t)}})],Er.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Er.prototype,"template",2);var Vr=Er,Ir=class Ir extends Fn{};s(Ir,"TableCardSettings"),m([y({manifest:{path:t=>G(t)}})],Ir.prototype,"showLineItemDetail",2),m([y({manifest:{path:t=>G(t)}})],Ir.prototype,"enableAddToInsights",2);var Cl=Ir,Or=class Or{};s(Or,"TableCard"),m([y({manifest:{path:t=>G(t)}})],Or.prototype,"model",2),m([y({manifest:{path:t=>G(t)}})],Or.prototype,"template",2);var jr=Or;var Dg=B(W());var YT=s((e,t,n,i,r)=>{let o=Ye(n[1],r),a=n.slice(-1)[0];return Ie(e,[o,a,"GroupElement"])},"getSmartFieldControlId"),pa=class pa{};s(pa,"Field"),m([y({flex:{controlId:YT,controlType:()=>Dg.ControlType.GroupElement,createFlexChange:w},generate:ye})],pa.prototype,"visible",2);var xl=pa;var Al=B(W());var Sl={controlId:Ie,controlType:()=>Al.ControlType.SmartFilterBar,createFlexChange:w},qt=class qt{};s(qt,"ListReportFilterBar"),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.38.0"})],qt.prototype,"smartVariantManagement",2),m([y({flex:Sl}),F({since:"1.40.0"})],qt.prototype,"liveMode",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.48.0"})],qt.prototype,"variantManagementHidden",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.52.0"})],qt.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Ie,controlType:()=>Al.ControlType.SmartFilterBar,createFlexChange:w}}),F({since:"1.28.0"})],qt.prototype,"showClearOnFB",2),m([y({flex:Sl}),F({since:"1.38.0"})],qt.prototype,"showFilterConfiguration",2),m([y({flex:Sl}),F({since:"1.28.0"})],qt.prototype,"showRestoreOnFB",2);var da=qt,Dr=class Dr extends da{};s(Dr,"AnalyticalListPageFilterBar"),m([y({manifest:{path:t=>pe(t)}})],Dr.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.60.0"})],Dr.prototype,"filterDefaultsFromSelectionVariant",2);var Pl=Dr;var Nt=B(W());var Xt=s((e,t,n,i,r)=>{if(i()===Nt.ControlType.Button){let o=n[n.length-1],a=Ye(n[1],r);return`${e}action::${o}::${a}::FormAction`}return Ie(e,t)},"getFormActionButtonId"),Nn=class Nn{};s(Nn,"FormAction"),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w},generate:ye})],Nn.prototype,"visible",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Nn.prototype,"tooltip",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Nn.prototype,"icon",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Nn.prototype,"activeIcon",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Nn.prototype,"type",2);var El=Nn,Ln=class Ln{};s(Ln,"FieldForAction"),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w},generate:ye})],Ln.prototype,"visible",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Ln.prototype,"tooltip",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Ln.prototype,"icon",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Ln.prototype,"activeIcon",2),m([y({flex:{controlId:Xt,controlType:()=>Nt.ControlType.Button,createFlexChange:w}})],Ln.prototype,"type",2);var Il=Ln;var Te=B(W()),_t=B(ur());var Ll=require("path"),yv=B(W()),Jg=B(Wg()),Qg=require("fs");var hv=(0,Ll.join)(__dirname,"templates");var bv=s((e,t)=>{let n=(0,Qg.readFileSync)(e,"utf8");return(0,Jg.render)(n,t)},"renderTemplate");var Vl=s((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 bv((0,Ll.join)(hv,t+".xml"),n)},"getSingleColumnContent"),jl=s((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=Vl(i,t);n=n+`
79
+ `;break;case qe.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Kg(e)+`))
80
+ `;break;case qe.modes.RAW:this.source+=" ; __append("+Kg(e)+`)
81
+ `;break;case qe.modes.COMMENT:break;case qe.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=Ge.escapeXML;ve.__express=ve.renderFile;ve.VERSION=sv;ve.name=uv;typeof window<"u"&&(window.ejs=ve)});var Kn={};So(Kn,{deleteConfigEntityByPath:()=>OS,exportConfig:()=>ES,exportConfigEntityByPath:()=>IS,generateSchema:()=>AS,getApiVersion:()=>VS,getChanges:()=>Gm,getGenericSchema:()=>fs,getPathToGenericSchema:()=>Am,getProject:()=>_S,importConfig:()=>FS,importProject:()=>NS,importProjectSchema:()=>LS,isDirectory:()=>DS,log:()=>X,readDirectory:()=>df});module.exports=ry(Kn);var Ce=U(W());var D=U(W());var lh={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)}},or=class or{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||lh,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,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new or(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new or(this.logger,t)}};o(or,"Logger");var hs=or,Gt=new hs,Ps=class Ps{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];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])})}};o(Ps,"EventEmitter");var Ai=Ps;function ir(){let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}o(ir,"defer");function Yu(e){return e==null?"":""+e}o(Yu,"makeString");function ch(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}o(ch,"copy");var fh=/###/g;function rr(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(fh,"."):l}o(i,"cleanKey");function r(){return!e||typeof e=="string"}o(r,"canNotTraverseDeeper");let a=typeof t!="string"?t:t.split("."),s=0;for(;s<a.length-1;){if(r())return{};let l=i(a[s]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++s}return r()?{}:{obj:e,k:i(a[s])}}o(rr,"getLastOfPath");function Zu(e,t,n){let{obj:i,k:r}=rr(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=rr(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=rr(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n}o(Zu,"setPath");function uh(e,t,n,i){let{obj:r,k:a}=rr(e,t,Object);r[a]=r[a]||[],i&&(r[a]=r[a].concat(n)),i||r[a].push(n)}o(uh,"pushPath");function Ao(e,t){let{obj:n,k:i}=rr(e,t);if(n)return n[i]}o(Ao,"getPath");function ph(e,t,n){let i=Ao(e,n);return i!==void 0?i:Ao(t,n)}o(ph,"getPathWithDefaults");function op(e,t,n){for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):op(e[i],t[i],n):e[i]=t[i]);return e}o(op,"deepExtend");function Si(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}o(Si,"regexEscape");var dh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function gh(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>dh[t]):e}o(gh,"escape");var As=class As{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(As,"RegExpCache");var bs=As,mh=[" ",",","?","!",";"],yh=new bs(20);function hh(e,t,n){t=t||"",n=n||"";let i=mh.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=yh.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a}o(hh,"looksLikeObjectPath");function Ts(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),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}r=s}return r}o(Ts,"deepFind");function Eo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}o(Eo,"getCleanedCode");var Es=class Es extends Ai{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 r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&a?l.push(...i.split(a)):l.push(i)));let c=Ao(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||typeof i!="string"?c:Ts(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){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("."),r=n,n=l[1]),this.addNamespaces(n),Zu(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(typeof i[a]=="string"||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let c=Ao(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?op(c,i,a):c={...c,...i},Zu(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(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Es,"ResourceStore");var Io=Es,ap={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},ep={},Lo=class Lo extends Ai{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ch(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gt.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 r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hh(t,i,r);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};let f=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),t=f.join(r)}return typeof a=="string"&&(a=[a]),{key:t,namespaces: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 r=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,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(u){let oe=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${oe}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${oe}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||s,x=p&&p.exactUsedKey||s,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],B=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&L.indexOf(I)<0&&!(typeof B=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,g,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(p.res=oe,p.usedParams=this.getUsedParamsDetails(n),p):oe}if(a){let oe=Array.isArray(g),J=oe?[]:{},le=oe?x:b;for(let Se in g)if(Object.prototype.hasOwnProperty.call(g,Se)){let C=`${le}${a}${Se}`;J[Se]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Se]===C&&(J[Se]=g[Se])}g=J}}else if(te&&typeof B=="string"&&Array.isArray(g))g=g.join(B),g&&(g=this.extendTranslation(g,t,n,i));else{let oe=!1,J=!1,le=n.count!==void 0&&typeof n.count!="string",Se=Lo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(f,n.count,n):"",Zt=n.ordinal&&le?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",Ut=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Pe=Ut&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${Zt}`]||n.defaultValue;!this.isValidLookup(g)&&Se&&(oe=!0,g=Pe),this.isValidLookup(g)||(J=!0,g=s);let Ti=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,Ct=Se&&Pe!==g&&this.options.updateMissing;if(J||oe||Ct){if(this.logger.log(Ct?"updateKey":"missingKey",f,c,s,Ct?Pe:g),a){let Ke=this.resolve(s,{...n,keySeparator:!1});Ke&&Ke.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 It=[],ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ge&&ge[0])for(let Ke=0;Ke<ge.length;Ke++)It.push(ge[Ke]);else this.options.saveMissingTo==="all"?It=this.languageUtils.toResolveHierarchy(n.lng||this.language):It.push(n.lng||this.language);let Wn=o((Ke,ut,tt)=>{let en=Se&&tt!==g?tt:Ti;this.options.missingKeyHandler?this.options.missingKeyHandler(Ke,c,ut,en,Ct,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ke,c,ut,en,Ct,n),this.emit("missingKey",Ke,c,ut,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?It.forEach(Ke=>{let ut=this.pluralResolver.getSuffixes(Ke,n);Ut&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ut.indexOf(`${this.options.pluralSeparator}zero`)<0&&ut.push(`${this.options.pluralSeparator}zero`),ut.forEach(tt=>{Wn([Ke],s+tt,n[`defaultValue${tt}`]||Pe)})}):Wn(It,s,Pe))}g=this.extendTranslation(g,t,n,p,i),J&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${s}`),(J||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,oe?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let f=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(f){let g=t.match(this.interpolator.nestingRegexp);u=g&&g.length}let p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language,i),f){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;u<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),x=0;x<g;x++)b[x]=arguments[x];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=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=ap.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let f=this.extractFromKey(c,n),u=f.key;r=u;let p=f.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&typeof n.count!="string",b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(L=>{this.isValidLookup(i)||(l=L,!ep[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(ep[`${I[0]}-${L}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(B=>{if(this.isValidLookup(i))return;s=B;let te=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,u,B,L,n);else{let oe;g&&(oe=this.pluralResolver.getSuffix(B,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(te.push(u+oe),n.ordinal&&oe.indexOf(le)===0&&te.push(u+oe.replace(le,this.options.pluralSeparator)),b&&te.push(u+J)),x){let Se=`${u}${this.options.contextSeparator}${n.context}`;te.push(Se),g&&(te.push(Se+oe),n.ordinal&&oe.indexOf(le)===0&&te.push(Se+oe.replace(le,this.options.pluralSeparator)),b&&te.push(Se+J))}}let re;for(;re=te.pop();)this.isValidLookup(i)||(a=re,i=this.getResource(B,L,re,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}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&&typeof t.replace!="string",r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Lo,"Translator");var Oo=Lo;function ys(e){return e.charAt(0).toUpperCase()+e.slice(1)}o(ys,"capitalize");var Is=class Is{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gt.create("languageUtils")}getScriptPartFromCode(t){if(t=Eo(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=Eo(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ys(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]=ys(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ys(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 r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.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)),typeof t=="string"&&(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),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(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))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(Is,"LanguageUtil");var Fo=Is,bh=[{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}],Th={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},vh=["v1","v2","v3"],Ch=["v4"],tp={zero:0,one:1,two:2,few:3,many:4,other:5};function xh(){let e={};return bh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Th[t.fc]}})}),e}o(xh,"createRules");var Os=class Os{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Gt.create("pluralResolver"),(!this.options.compatibilityJSON||Ch.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=xh()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Eo(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}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(r=>`${n}${r}`)}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((r,a)=>tp[r]-tp[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,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)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.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!vh.includes(this.options.compatibilityJSON)}};o(Os,"PluralResolver");var vs=Os;function np(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=ph(e,t,n);return!a&&r&&typeof n=="string"&&(a=Ts(e,n,i),a===void 0&&(a=Ts(t,n,i))),a}o(np,"deepFindWithDefaults");var Fs=class Fs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gt.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:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:f,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:x,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:B,alwaysFormat:te}=t.interpolation;this.escape=n!==void 0?n:gh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Si(a):s||"{{",this.suffix=l?Si(l):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=u?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=g?Si(g):b||Si("$t("),this.nestingSuffix=x?Si(x):I||Si(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=B||1e3,this.alwaysFormat=te!==void 0?te:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((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,r){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}o(f,"regexSafe");let u=o(x=>{if(x.indexOf(this.formatSeparator)<0){let te=np(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,i,{...r,...n,interpolationkey:x}):te}let I=x.split(this.formatSeparator),L=I.shift().trim(),B=I.join(this.formatSeparator).trim();return this.format(np(n,c,L,this.options.keySeparator,this.options.ignoreJSONStructure),B,i,{...r,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,g=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(x=>f(x),"safeValue")},{regex:this.regexp,safeValue:o(x=>this.escapeValue?f(this.escape(x)):f(x),"safeValue")}].forEach(x=>{for(l=0;a=x.regex.exec(t);){let I=a[1].trim();if(s=u(I),s===void 0)if(typeof p=="function"){let B=p(t,a,r);s=typeof B=="string"?B:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(g){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Yu(s));let L=x.safeValue(s);if(t=t.replace(a[0],L),g?(x.regex.lastIndex+=s.length,x.regex.lastIndex-=a[0].length):x.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s;function l(c,f){let u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;let p=c.split(new RegExp(`${u}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,s);let b=g.match(/'/g),x=g.match(/"/g);(b&&b.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{s=JSON.parse(g),f&&(s={...f,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${u}${g}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c}for(o(l,"handleHasOptions");r=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let f=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let u=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=u.shift(),c=u,f=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Yu(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),f&&(a=c.reduce((u,p)=>this.format(u,p,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Fs,"Interpolator");var Cs=Fs;function Sh(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),u=l.trim();n[u]||(n[u]=f),f==="false"&&(n[u]=!1),f==="true"&&(n[u]=!0),isNaN(f)||(n[u]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}o(Sh,"parseFormatStr");function Pi(e){let t={};return o(function(i,r,a){let s=r+JSON.stringify(a),l=t[s];return l||(l=e(Eo(r),a),t[s]=l),l(i)},"invokeFormatter")}o(Pi,"createCachedFormatter");var Ns=class Ns{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gt.create("formatter"),this.options=t,this.formats={number:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Pi((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Pi((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Pi((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Pi(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{let{formatName:f,formatOptions:u}=Sh(c);if(this.formats[f]){let p=l;try{let g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},b=g.locale||g.lng||r.locale||r.lng||i;p=this.formats[f](l,b,{...u,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${f}`);return l},t)}};o(Ns,"Formatter");var xs=Ns;function Ph(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}o(Ph,"removePending");var Ls=class Ls extends Ai{constructor(t,n,i){let r=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=r,this.logger=Gt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},c={};return t.forEach(f=>{let u=!0;n.forEach(p=>{let g=`${f}|${p}`;!i.reload&&this.store.hasResourceBundle(f,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?s[g]===void 0&&(s[g]=!0):(this.state[g]=1,u=!1,s[g]===void 0&&(s[g]=!0),a[g]===void 0&&(a[g]=!0),c[p]===void 0&&(c[p]=!0)))}),u||(l[f]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;let l={};this.queue.forEach(c=>{uh(c.loaded,[a],s),Ph(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{l[f]||(l[f]={});let u=c.loaded[f];u.length&&u.forEach(p=>{l[f][p]===void 0&&(l[f][p]=!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 r=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:r,wait:a,callback:s});return}this.readingCalls++;let l=o((f,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(f,u)},"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(u=>l(null,u)).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]:{},r=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."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){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 u;f.length===5?u=f(t,n,i,r,c):u=f(t,n,i,r),u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}else f(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Ls,"Connector");var Ss=Ls;function ip(){return{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:o(function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let i=t[3]||t[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}o(ip,"get");function rp(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}o(rp,"transformOptions");function Po(){}o(Po,"noop");function Ah(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}o(Ah,"bindMemberFunctions");var ar=class ar extends Ai{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=rp(t),this.services={},this.logger=Gt,this.modules={external:[]},Ah(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=ip();this.options={...r,...this.options,...rp(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(u){return u?typeof u=="function"?new u:u:null}if(o(a,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Gt.init(a(this.modules.logger),this.options):Gt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=xs);let p=new Fo(this.options);this.store=new Io(this.options.resources,this.options);let g=this.services;g.logger=Gt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new vs(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(u),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Cs(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Ss(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),L=1;L<x;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Oo(this.services,this.options),this.translator.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),L=1;L<x;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Po),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});let c=ir(),f=o(()=>{let u=o((p,g)=>{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(g),i(p,g)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)},"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]:Po,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})},"append");r?s(r):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 r=ir();return t||(t=this.languages),n||(n=this.options.ns),i||(i=Po),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ap.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 r=ir();this.emit("languageChanging",t);let a=o(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=o((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,r.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=o(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let f=typeof c=="string"?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,u=>{s(u,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),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let c;if(typeof l!="object"){for(var f=arguments.length,u=new Array(f>2?f-2:0),p=2;p<f;p++)u[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([s,l].concat(u))}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||i||a.keyPrefix;let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(x=>`${c.keyPrefix}${g}${x}`):b=c.keyPrefix?`${c.keyPrefix}${g}${s}`:s,r.t(b,c)},"fixedT");return typeof t=="string"?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],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,c)=>{let f=this.services.backendConnector.state[`${l}|${c}`];return f===-1||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)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=ir();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=ir();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){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 Fo(ip());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 ar(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new ar(r);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 Io(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Oo(a.services,r),a.translator.on("*",function(l){for(var c=arguments.length,f=new Array(c>1?c-1:0),u=1;u<c;u++)f[u-1]=arguments[u];a.emit(l,...f)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(ar,"I18n");var No=ar,$=No.createInstance();$.createInstance=No.createInstance;var JS=$.createInstance,QS=$.dir,zS=$.init,qS=$.loadResources,XS=$.reloadResources,YS=$.use,ZS=$.changeLanguage,eP=$.getFixedT,tP=$.t,nP=$.exists,iP=$.setDefaultNamespace,rP=$.hasLoadedNamespace,oP=$.loadNamespaces,aP=$.loadLanguages;var Pd=U(Vs()),Ad=U(jp()),Qo=U(Cd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),dr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var qs=U(W());var X=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?console.log(`${qs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${qs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",Xs=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),$t=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function gr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Qo.parse)(r.fileContent,r.dataSourceUri))}catch(a){return X(t,{severity:D.LogSeverity.Error,message:$.t("ANNOERR"),location:{path:$.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,Ad.convert)((0,Qo.merge)(...n))),i}o(gr,"parseAndMergeAndConvert");var Ni=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Ys(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(Ys,"evaluateCommonLabel");function Ed(e,t){let n=e.value;return e.$target&&(n=Ys(e.$target.annotations,t,n)),n}o(Ed,"getLabelForPropertyPath");function Jo(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(i=e.Target.$target.Value.$target),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=Ys(i.annotations,t,n)),n}o(Jo,"getLabelForDataField");function rT(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Ys(a.annotations,t,s)}}}else return}o(rT,"getLabel");function xd(e,t,n){let i=Jo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(xd,"getTitleForDataField");function mr(e,t){var s,l,c,f;let n="",i,r,a="";try{let u=rT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=xd(e,t,u);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=Jo(e,t),n=u||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Jo(e,t),n=u||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((c=r.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(f=r.Action)==null?void 0:f.path,u?n=typeof u=="string"?u:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Jo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=xd(r,t,u);break;default:break}return n}catch{return n}}o(mr,"getDatafieldDescription");function Re(e){return e.replace("#","::").replace(/\//g,":2f")}o(Re,"prepareRef");function sn(e){if(e){let t=`${D.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(sn,"getPageTypeV2");function oT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(oT,"getTargetAnnotationName");function Jt(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(Jt,"findAlias");function aT(e,t,n){var s,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=Jt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(aT,"determineTargetAnnotation");function sT(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${D.UIVOCABULARY}`);return e}o(sT,"adjustKey");function lT(e,t,n,i,r=D.FioriElementsVersion.v2,a=!1){var p,g;let s=!1,l,c=i.split("/"),f=c.length>1;f&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=sT(t,c,a);let u=aT(c,n,e);if(u){let b=r===D.FioriElementsVersion.v2?"::":"#";t=oT(u,a).replace("#",b),l=(g=u.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(f){let b=r===D.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(lT,"getKeyAndEntityTypeOfReferenceFacet");function Id(e,t,n,i,r=D.FioriElementsVersion.v2,a=!1){var u,p,g;let s=(p=e.fullyQualifiedName)==null?void 0:p.substring((u=e.fullyQualifiedName)==null?void 0:u.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],f=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Ni(e.Target);if(!b){X(i,{severity:D.LogSeverity.Error,message:$.t("NOTARGET",{target:e.Target})});return}let{key:x,entityType:I,stopProcessing:L,namespace:B}=lT(n,l,f,b,r,a);if(L)return;l=x,f=I,c=B}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}}o(Id,"getSectionFacet");function Zs(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Ni(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ni(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${D.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ni(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ni(e.Value),n=Ni(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Zs,"getSchemaKeyOfLineItemRecord");function cT(e,t,n){return e.includes(ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ae.UIAnnotationTerms.Chart:e.includes(ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ae.UIAnnotationTerms.Identification:n&&e.includes(ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ae.UIAnnotationTerms.LineItem:e.includes(ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ae.UIAnnotationTerms.FieldGroup:e.includes(ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ae.UIAnnotationTerms.DataPoint:e.includes(ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ae.UIAnnotationTerms.PresentationVariant:void 0}o(cT,"getUIAnnotationTerm");function fT(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?dr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?dr.CommunicationAnnotationTerms.Address:void 0}o(fT,"getCommunicationAnnotationTerm");function uT(e,t,n){return cT(e,t,n)||fT(e,t)}o(uT,"getAnnotationTerm");function pT(e,t,n,i,r){var f,u,p,g,b,x,I,L,B;let a=Jt(D.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(uT(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:D.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 ae.UIAnnotationTerms.Identification:{n[s]={base:D.FacetBase.Identification},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 ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let te=s.split("::");te[te.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=te.join("::")}n[s]={base:D.FacetBase.LineItem},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 ae.UIAnnotationTerms.FieldGroup:{n[s]={base:D.FacetBase.Form},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[s]={base:D.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(x=t==null?void 0:t.Target)==null?void 0:x.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:D.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dr.CommunicationAnnotationTerms.Contact:{n[s]={base:D.FacetBase.Contact},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 dr.CommunicationAnnotationTerms.Address:{n[s]={base:D.FacetBase.Address},n[s].target=(B=t==null?void 0:t.Target)==null?void 0:B.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:D.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",D.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(pT,"evaluateTargetAnnotation");function el(e,t,n,i,r,a=D.FioriElementsVersion.v2,s){var c;let l=Id(e,i,t,s,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{pT(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let f=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,u=r[l.key]={base:D.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:f,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{el(p,t,n,i,u.facets,a,s)});break}}}o(el,"addFacetToConfig");function Od(e,t,n=D.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let a=Jt(D.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("."),u=e&&e.fullyQualifiedName.substring(0,f);s.forEach(p=>{el(p,t,u,e,r,n,i)})}return r}o(Od,"getObjectPageHeaderFacets");function Fd(e,t,n=D.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=Jt(D.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(u=>{el(u,t,f,e,r,n,i)})}return r}o(Fd,"getObjectPageFacets");function tl(e){return e[D.ManifestSection.generic]||e[D.ManifestSection.ovp]?D.FioriElementsVersion.v2:D.FioriElementsVersion.v4}o(tl,"getVersionFromManifest");function dT(e,t){var i,r;let n;if(e[D.ManifestSection.generic]){let a=e[D.ManifestSection.generic].pages;if(!a){X(t,{severity:D.LogSeverity.Error,message:$.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(sn((i=l.component)==null?void 0:i.name)===D.PageTypeV2.AnalyticalListPage){n=D.TemplateType.AnalyticalListPageV2;break}else if(sn((r=l.component)==null?void 0:r.name)===D.PageTypeV2.ListReport){n=D.TemplateType.ListReportObjectPageV2;break}}}else n||X(t,{severity:D.LogSeverity.Error,message:$.t("NOTEMPLATE",{section:D.ManifestSection.generic}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}});return n}o(dT,"determineV2Template");function nl(e,t,n){let i;return e[D.ManifestSection.ovp]?i=D.TemplateType.OverviewPageV2:t===D.FioriElementsVersion.v2&&(i=dT(e,n)),i}o(nl,"getTemplateTypeFromManifest");function yr(e,t,n){e!=null&&e.ID?(t.title=D.FacetTitlePrefix+e.ID,t[D.SchemaTag.keys]=[{name:D.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[D.SchemaTag.keys]=[{name:D.SchemaKeyName.id,value:n.replace(D.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(yr,"addSectionTitleAndDescription");function gT(e,t,n){var i,r;yr(e,t,n),!(e!=null&&e.ID||e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(gT,"addTargetTitleAndSectionDescription");function zn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[D.SchemaTag.isViewNode]=!0,i[D.SchemaTag.annotationPath]=t.annotationPath,gT(t,i,n),i}o(zn,"createDefaultSection");function Nd(e,t,n,i=D.FioriElementsVersion.v2,r=!1){var l,c;let a=Jt(D.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(u,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return u;let g=Id(p,e,t,n,i,!0);return g&&u.push(g),u},s)),s}}o(Nd,"getObjectPageFacetSection");var hr=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let f=a&&a===c?r:c.replace("??","/");if(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(),hr(e,l.join("/"),n,i,r,a);return}s=s&&s[f]}})},"deleteEmptyStructure"),Sd=o(e=>`${e}`,"getGenericSchemaFileName"),Xe=o((e,t)=>{let n={filename:"",path:""};switch(e){case D.SchemaType.Application:{n.filename="App",n.path=`./${D.DirName.Schemas}/${n.filename}`;break}case D.SchemaType.ListReport:case D.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Sd(e),n.path=`../${D.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Sd(e),n.path=`../${D.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function zo(e,t,n,i){if(e===D.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(zo,"generatePageId");function mT(e,t,n,i){let r=e.$ref;if(r){let a=r.split(j)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;r.includes(n[s])&&i.push(a)}}}o(mT,"fillArrayFromAnyOfReference");function yT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{mT(r,n,t,i)}),i.length===0))return;return i}o(yT,"fillArrayFromPropertyDefinition");function hT(e,t,n,i,r,a,s,l){var f,u,p,g;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||((u=c==null?void 0:c.targetDefinition)==null?void 0:u.type)==="array")return c=Tn(t,n,i,c.targetDefinition,r,a,s),c;e.length>1&&e.forEach(L=>{L!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[L].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let x=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=a.createInstance(s,x,I,(g=c==null?void 0:c.targetDefinition)==null?void 0:g.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}o(hT,"determineNextDefinitionFromDefinitionArray");function Tn(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Tn(e,t,n,i.items,r,a,s),l;let c=yT(i,n,e);if(c)return l=hT(c,e,t,n,r,a,s,i),l}o(Tn,"getNextTargetDefinition");var il=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,Pd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function mt(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}o(mt,"convertActionKeyToStableId");function Li(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Li,"updatePropertyIndices");function Ld(e){return e=e.replace(D.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(Ld,"removeNamespaces");function qo(e){return e=e.replace(D.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(qo,"replaceNamespaces");var Bn=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=U(W());var yt=U(W());var Ie=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Xo=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Ye=o((e,t)=>{let n,i=yt.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 bT(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(bT,"escapeId");var Vd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Vd||{});function TT(e,t,n){let i;return e=e.map(function(r){if(r===yt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===yt.PropertyName.sections)return i=t[a+1],t[a+1]=Ye(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(TT,"mapBreadcrumbs");var rl=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=TT(t,s,r)),s[0]===yt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,yt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,yt.VOCWITHSLASH):t[0]===yt.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,yt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,yt.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,f=l.indexOf(":::");return l.startsWith("DataField")&&f>-1?c=`${e}template:::TableColumn:::${l.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(f+3)}`:c=`${e}${t.join("::")}-${l}`,bT(c)},"buildColumnControlId"),ht=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function vT(e){let t=yt.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(vT,"determinePattern");var jd=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,c=a.description?a.description:l.description,f=vT(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(u=>{s.enum.indexOf(u)===-1&&s.enum.push(u)}),r[n]={pattern:f,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Vi=o((e,t,n)=>{jd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ye=o((e,t,n)=>{let i=Object.values(Vd);jd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Dd(){}o(Dd,"doNotDelete");var nA=U($d());var Rd=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(Rd,e),"syncRule");function St(e,t){let n;return e&&(n=Reflect.getMetadata(Rd,e,t)),n}o(St,"getReflectMetadata");var vn=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),_d=Symbol("childId"),Qe=o(e=>Reflect.metadata(_d,e),"childId"),Md=o((e,t)=>Reflect.getMetadata(_d,e,t),"getChildId"),kd=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),CT=Symbol("descriptionSrcURL"),ln=o(e=>Reflect.metadata(CT,e),"descriptionSrcURL");var xT=Symbol("validityMetadataKey"),F=o(e=>Reflect.metadata(xT,e),"validity");function Yo(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Yo,"getTextForDeprecated");var Qd=U(Wd()),zd=U(W());var qd=Qd.default.change,Jd={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function Xd(e,t){let n="";try{for(let i in Jd)e[i]===void 0&&(e[i]=Jd[i]);n=qd.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(Xd,"createChangeString");function Cn(e){try{return qd.parse(e)}catch{return!1}}o(Cn,"parseChangeString");function Yd(e,t,n,i,r){let a=n.layer?n.layer===zd.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(Yd,"fillFlexChangeContent");function w(e,t){return Xd(e,t)}o(w,"exportToFlexChange");var qn=U(W());function Zo(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,a);c!==void 0&&(i[n]=c)}else t[s]!==void 0&&(i[n]=t[s])}o(Zo,"importProperty");function Zd(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(X(i,{severity:qn.LogSeverity.Warning,message:Yo(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Zd,"checkDeprecatedProperties");function ol(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return ol(n,t)}else return e.title?e.title.startsWith(qn.FacetTitlePrefix)?e.title.split(qn.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(ol,"getSectionTitle");function ea(e){let t=e.split(`${qn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(ea,"getTargetFromCustomColumnRef");var Le=require("@sap-ux/vocabularies-types/vocabularies/UI");var cn=require("@sap-ux/vocabularies-types/vocabularies/UI");function tg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(tg,"replaceSpecialChars");var Xn=o(function(e){return tg(Ld(e))},"prepareId");function FT(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}o(FT,"evaluateConcat");function Yn(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return FT(e);if(e&&typeof e=="string")return tg(e.replace(/ /g,"_"))}o(Yn,"getStableIdPartFromValue");var eg=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),ng=o(function(e){let t="";if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=eg(e),t;if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Xn(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Yn(e.Value)+"::"),t+=e.Action,Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataField)return t="DataField::",t+=Yn(e.Value),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Yn(e.Value)+"::",t+=eg(e),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Yn(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Xn(t);if(e.$Type&&e.$Type===cn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Yn(e.Value),Xn(t)},"getStableIdPartFromDataField");var O=U(W());var Y=U(W());var bt=require("@sap-ux/vocabularies-types/vocabularies/UI"),sg=require("path"),lg=U(ur());var ji="ResponsiveTable<LineItems>",br="TreeTable<LineItems>",Tr="AnalyticalTable<LineItems>",vr="GridTable<LineItems>",ig=[br,Tr,vr],rg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],og="template::",ta="template:::ObjectPageAction:::";function NT(e,t,n){e.definitions[Y.DefinitionName.LineItems]&&(e.definitions[Y.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][Y.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[Y.SchemaTag.artifactType]=Y.ArtifactType.Manifest)}o(NT,"addCustomColumnDefinition");function LT(e,t){let n;return e==="TableColumnActionIntentBased"?n=Zs(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Re(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===bt.UIAnnotationTypes.DataFieldForAction?n=Re(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Re(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(LT,"getActionId");function al(e,t,n,i,r){let a,s=n.lineItemId===Y.DefinitionName.LineItems?"":"ObjectPage",l=LT(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=mr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][Y.SchemaTag.propertyIndex]=r;let{key:u,ns:p}=Cr(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:f,keys:[{name:"Action",value:u}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][Y.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:f,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.action,value:u}],p&&(e.definitions[c][Y.SchemaTag.target]=p),e.definitions[c][Y.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(al,"handleActionRecord");function VT(e,t,n){e!==Y.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===bt.UIAnnotationTypes.DataFieldForAction||t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(VT,"getColumnActionType");function jT(e,t){let n=[];if(!(e.$Type!==bt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),VT(t,e,n),n}o(jT,"getActionType");function cg(e,t,n){let i=Zs(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+Y.DefinitionName.TableColumn,description:mr(e.lineItemRecord,e.entityType)},r.properties[i][Y.SchemaTag.propertyIndex]=n,r.properties[i][Y.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,ra(r.properties[i],e.lineItemRecord),gg(e.lineItemRecord,r.properties,i)}}o(cg,"generateGenericColumn");function DT(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{al(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&al(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{al(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":cg(i,t,r)}}o(DT,"handleAnyAction");function Di(e,t,n,i,r,a){r=r||Y.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=dg(e,t,n,i,r);if(n){let f=0;n.forEach(u=>{let p={lineItemPath:c,lineItemRecord:u,lineItemId:r,entityType:i},g=jT(u,r);g?g.forEach(b=>{DT(b,t,s,p,f,l,r)}):cg(p,t,f),f++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(Di,"addLineItemsType");function wT(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}o(wT,"addListReportLeadingProperties");function $T(e,t,n,i){var s,l,c,f,u,p;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(u=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.quickVariantSelectionX)==null?void 0:u.variants;if(a){let g=[];for(let b in a){let x=(p=a[b])==null?void 0:p.key;x!==void 0&&!g.includes(x)&&g.push(x)}Zn(g,r)}}o($T,"addTabkeyEnum");function na(e,t,n,i,r){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 u=JSON.parse((0,lg.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!u||u.Column||u["table:Column"]||u["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!u||!u.Column&&!u["table:Column"]&&!u["table:AnalyticalColumn"]&&!u["smartfilterbar:ControlConfiguration"])){f=f.replace(new RegExp("\\"+sg.sep,"g"),"/");let p=n+f.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),Zn(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(na,"addFragmentEnum");function wi(e,t,n,i,r,a=Y.DefinitionName.CustomColumns,s=Y.DefinitionName.CustomColumn,l){NT(e,a,s),wT(e,t,s),$T(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;na(e,r,c,"fragmentName",s),na(e,r,c,"fragmentName",Y.DefinitionName.CustomColumn),na(e,r,c,"cellsFragmentName",s),na(e,r,c,"cellsFragmentName",Y.DefinitionName.CustomColumn)}o(wi,"addTableColumnExtensions");function fg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(fg,"removeElementsFromEnum");function ia(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=$t(n==null?void 0:n.fullyQualifiedName,bt.UIAnnotationTerms.SelectionFields);if(r&&(i[Y.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${Re(s.value)}>`,f=sl(s);s.type==="PropertyPath"&&(l=Ed(s,n)),i.properties[s.value]={$ref:j+c},i.properties[s.value][Y.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][Y.SchemaTag.dataType]=f,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][Y.SchemaTag.annotationPath]=`${i[Y.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}o(ia,"addSelectionFields");function ug(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}o(ug,"isDraftEnabled");function $i(e,t=!1,n){let i=Y.DefinitionName.HeaderActionsStandard,r=Y.DefinitionName.HeaderActionsStandard,a=Y.DefinitionName.HeaderActionStandard;t&&(i=Y.DefinitionName.GenericActions,r=Y.DefinitionName.HeaderActions,a=Y.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[r];l[Y.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([f,u])=>{let p=u.$ref.split(j)[1],g=`${a}<${p}>`;l.properties[f]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][Y.SchemaTag.actionType]=Y.ActionType.Standard})}o($i,"addStandardHeaderActions");function pg(e,t){let n=e.definitions[Y.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${Y.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][Y.SchemaTag.actionType]=Y.ActionType.Standard}}o(pg,"addStandardFooterActionsOP");function RT(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Le.UIAnnotationTypes.DataField:case Le.UIAnnotationTypes.DataFieldForAnnotation:case Le.UIAnnotationTypes.DataFieldWithNavigationPath:case Le.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Le.UIAnnotationTypes.DataField:case Le.UIAnnotationTypes.DataFieldForAnnotation:case Le.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(RT,"copyFieldProperties");function _T(e,t,n,i){let r=e===O.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===O.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(_T,"determineFieldDefinitionName");function MT(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][O.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(MT,"addKeysTagForDataField");function kT(e,t,n){if(e.$Type===Le.UIAnnotationTypes.DataField||e.$Type===Le.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Le.UIAnnotationTypes.DataFieldWithNavigationPath)MT(e,t,n);else if(e.$Type===Le.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:qo(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Le.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][O.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Le.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][O.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(kT,"addKeysTagToField");function mg(e,t,n,i,r,a,s,l=!0){var p;let c=ng(n),f=s===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,u=_T(s,c,i,f);if(!(!n||!n.$Type)){if(n.$Type===Le.UIAnnotationTypes.DataFieldForAction||n.$Type===Le.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=Re(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[f]={$ref:`${j}${u}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=Re(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[f]={$ref:`${j}${u}`,propertyIndex:parseInt(r)}}t.definitions[u]={type:"object",properties:{},description:mr(n,a.entityType),additionalProperties:!1},kT(n,t,u),t.definitions[u][O.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[u][O.SchemaTag.annotationType]=n.$Type,t.definitions[u][O.SchemaTag.isViewNode]=!0,ra(t.definitions[u],n),RT(s,t,n,u),n.$Type===Le.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[u].properties=t.definitions[O.DefinitionName.FormAction].properties)}}o(mg,"addField");function UT(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(UT,"determineTargetIdOfForm");function BT(e,t,n,i,r,a=!0){var f;if(!e.target)return;let s=Re(`${t}${O.DefinitionName.Form}<${i}>`),l=Re(`${t}${O.DefinitionName.Fields}<${i}>`),c=Re(`${t}${O.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${s}`},t===O.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${j}${c}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][O.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][O.SchemaTag.isViewNode]=!0,(f=e.entityType)!=null&&f.name&&(n.definitions[s][O.SchemaTag.annotationPath]=$t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][O.SchemaTag.isViewNode]=!0,e.base===O.FacetBase.Identification)for(let u in e.target){let p=e.target[u];p&&mg(t,n,p,i,u,e,r,a)}else for(let u in e.target.Data){let p=e.target.Data[u];mg(t,n,p,i,u,e,r)}}o(BT,"addFieldsToFormDefinition");function HT(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][O.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][O.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][O.SchemaTag.annotationPath]=$t(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(HT,"addTagsToFormDefinition");function yg(e,t,n,i,r,a){if(!t.target)return;let s=UT(t),l=Re(`${e}${O.DefinitionName.Form}<${s}>`),c=Re(`${e}${O.DefinitionName.Fields}<${s}>`),f=Re(`${e}${O.DefinitionName.Actions}<${s}>`),u=!(t.base===O.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&u?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${f}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[f]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[f][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},HT(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,BT(t,e,i,s,r,u),s}o(yg,"handleForm");function GT(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(GT,"replaceAlias");function ll(e,t){let n=GT(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(ll,"getActionNameAndId");function hg(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===O.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:hg(a.pages,t)}}o(hg,"isFirstObjectPage");function bg(e,t,n,i){var c,f,u;e.definitions[O.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${O.DefinitionName.ObjectPageFooter}`},e.definitions[O.DefinitionName.ObjectPageFooter].properties[O.PropertyName.actions]={$ref:`${j}${O.DefinitionName.FooterActions}`};let r=e.definitions[O.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[O.SchemaTag.isViewNode]=!0;let a=Jt(O.UIVOCABULARY,t.serviceAVT),s=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((u=(f=s==null?void 0:s.annotations)==null?void 0:f[a])==null?void 0:u.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Le.UIAnnotationTerms.Identification}`,`/@${Le.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Le.UIAnnotationTypes.DataFieldForAction){let{actionName:x,actionId:I}=ll(g,t.serviceAVT),L=g.Label||x,B=Re(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[B]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[B]={type:"object",properties:{},description:L},e.definitions[B][O.SchemaTag.isViewNode]=!0,e.definitions[B][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${B}`}}})}else s&&(r[O.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Le.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&hg(i,t)&&!ug(s)&&pg(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}o(bg,"addFooterActions");function Tg(e,t,n,i,r=!1){var u,p;let a=O.DefinitionName.HeaderActions,s=e.definitions[a];e.definitions[O.DefinitionName.ObjectPageHeader].properties[O.PropertyName.actions]={$ref:`${j}${a}`};let l=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[O.SchemaTag.isViewNode]=!0;let c=Jt(O.UIVOCABULARY,n),f=c&&((p=(u=t==null?void 0:t.annotations)==null?void 0:u[c])==null?void 0:p.Identification);f?(l[O.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Le.UIAnnotationTerms.Identification}`,`/@${Le.UIAnnotationTerms.Identification}`),f.forEach(i(t,e,f,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Le.UIAnnotationTerms.Identification}`),r&&$i(e,!0,s),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}o(Tg,"addHeaderActions");function vg(e,t){e.properties.header={$ref:`${j}${O.DefinitionName.ObjectPageHeader}`},e.definitions[O.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`])),t&&(e.definitions[O.DefinitionName.ObjectPageHeader][O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Le.UIAnnotationTerms.HeaderInfo}`)}o(vg,"addCommonHeaderSchema");function Cg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(Cg,"determineEntitySetOfFacet");var Rt=require("@sap-ux/vocabularies-types/vocabularies/UI");var he=U(W());function Zn(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Zn,"addEnumToSchema");function xg(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}Zn(r,n)}o(xg,"addEnumForValidAnnotations");function oa(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Rt.UIAnnotationTerms.SelectionVariant,Rt.UIAnnotationTerms.SelectionPresentationVariant];xg(e,r,i)}o(oa,"addEnumForSingleTabVariant");function Sg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Rt.UIAnnotationTerms.SelectionVariant,Rt.UIAnnotationTerms.SelectionPresentationVariant];xg(n.entityType,r,i)}o(Sg,"addEnumForMultiTabVariant");function Pg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Zn(r,i)}o(Pg,"addEnumForVariantEntitySet");function Ag(e,t,n,i){let r=n.map(a=>{let s=i.find(c=>!!a[c]);return{const:a[s],...a.label&&{description:a.label},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},l]}}}}o(Ag,"addDefinitionForRelatedFacetKeys");function KT(e){return e.replace("#","::")}o(KT,"getFacetKeyInSchema");function Eg(e,t){return`${e}<${KT(t)}>`}o(Eg,"getFacetDefinitionKey");function WT(e,t,n,i=!0,r){let a=t;if(i&&(a=Eg(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(WT,"parseSchemaDefinition");function dg(e,t,n,i,r){let a;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][he.SchemaTag.isViewNode]=!0;let s=e?he.DefinitionName.ObjectPageToolBar:he.DefinitionName.ToolBar,l=`${s}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let c=`Actions<${Re(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let f=e?he.DefinitionName.ObjectPageToolBarActions:he.DefinitionName.Actions,u;try{u=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[f])),u.properties={},u.additionalProperties=!1}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let p,g;if(r===he.DefinitionName.LineItems&&t.properties.footer){g=`${he.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[he.DefinitionName.GenericFooter]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:he.DefinitionName.GenericFooter}))}let b=`${he.DefinitionName.FooterActions}<${Re(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[he.DefinitionName.Actions]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:he.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(a=$t(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[r][he.SchemaTag.annotationPath]=t.definitions[l][he.SchemaTag.annotationPath]=a,p&&(t.definitions[g][he.SchemaTag.annotationPath]=a))),{actions:u,footerActions:p,lineItemPath:a}}o(dg,"addCommonLineItemDefinitions");function Ig(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(Ig,"getDataTypeFromAnnotation");function aa(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=Ig(e.$Type)),t}o(aa,"determineDataTypeOfTarget");function sl(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=aa((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=Ig(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(sl,"determineDataType");function ra(e,t){let n=sl(t);n&&(e[he.SchemaTag.dataType]=n)}o(ra,"addDataTypeToDefinition");function JT(e,t){return`${j}${Eg(e,t)}`}o(JT,"getFacetDefinitionLink");function cl(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:JT(a?c:l,t)};let f=WT(a?c:l,t,i,!0,a?c:void 0);yr(e,f,t),f[he.SchemaTag.annotationPath]=e.annotationPath,f[he.SchemaTag.isViewNode]=!0}o(cl,"handleAddressContact");function Cr(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Cr,"getActionKey");function gg(e,t,n){var i,r,a;try{if(e.Value)t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.value,value:Yn(e.Value)}];else if(e.$Type===Rt.UIAnnotationTypes.DataFieldWithAction||e.$Type===Rt.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Cr(e.Action,!0);t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.action,value:s}],l&&(t[n][he.SchemaTag.target]=l)}else if(e.$Type===Rt.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Cr(e.Target.value,!1);t[n][he.SchemaTag.keys]=[{name:he.SchemaKeyName.target,value:qo(s)}],t[n][he.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Rt.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Rt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Cr(s,!0);t[n][he.SchemaTag.keys]=[{name:"SemanticObject",value:e[he.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][he.SchemaTag.target]=c)}}catch{return}}o(gg,"addKeyToDefinition");var Ri=U(W());var Og=[{version:"1.120",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{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 Ng="1.71.113";var Lg={name:"@sap/ux-specification",version:Ng,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 -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 -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",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --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 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.10.13"},devDependencies:{"@sap-ux/annotation-converter":"0.8.14","@sap-ux/edmx-parser":"0.7.1","@sap/ux-specification-types":"1.71.113","@types/d3":"7.4.3","@types/jquery":"3.5.30","@ui5/flexibility-utils":"0.1.3",axios:"1.7.2",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.11.5",jquery:"3.7.1",jsdom:"24.1.0","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 xn=class xn{constructor(){xn.distTagsOfSpec.length===0&&(xn.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){xn.distTagsOfSpec=[]}getSpecVersion(){return Ng}getDistTagsOfVersion(){let t=[],n=Og,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=$.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});X(n,{severity:Ri.LogSeverity.Info,message:r,location:{path:Ri.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(xn.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=$.t("WRONGMINUI5VERSION",{minUI5Version:t});X(n,{severity:Ri.LogSeverity.Warning,message:r,location:{path:Ri.MANIFESTPATH}})}}};o(xn,"DistTagEvaluator"),xn.distTagsOfSpec=[];var xr=xn;var Z=U(W());var ke=U(W());var Pt=U(W());var fl=class fl{constructor(t,n,i,r,a,s,l){this.unhandledControllers=[];let c=Xe(Pt.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===Pt.FioriElementsVersion.v2?Pt.OdataVersion.v2:Pt.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=l}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!==Pt.PageType.CustomPage){let l=Xe(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Xe(i.pageType);s.$schema=c.path}t[`${Pt.DirName.Pages}/${a}.json`]=s}}let r=JSON.parse(JSON.stringify(this.app));for(let a in r.pages)delete r.pages[a].config;return n[Pt.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(fl,"AppProvider");var _i=fl;var ie=U(W());var ei=U(W());function sa(e,t,n){if(t.controlType.endsWith(ei.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===ei.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[ei.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ei.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(sa,"addFlexForTable");var Mi=U(W());var ze=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Vg=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var jg=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function ul(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(ul,"getNewPageTemplate");function qT(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(qT,"findPageInManifest");function XT(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ul(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ul(e[t].pageType)}),!Array.isArray(n.pages))){let i=qT(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=ul(e[t].pageType)),pl(t,e,i)}}o(XT,"transformPageFromAssociation");function YT(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Mi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Mi.PageTypeV2.ListReport||n.pageType===Mi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(YT,"deletePage");function pl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Mi.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)XT(t,r,n);Array.isArray(n.pages)||YT(n,t,i)}}o(pl,"transformPageToNewManifestV2");var dm=U(ur());var Bc={};So(Bc,{ALPAnalyticalTable:()=>Gl,ALPGridTable:()=>Hl,ALPResponsiveTable:()=>Bl,Action:()=>Ql,AnalyticalCard:()=>Nr,AnalyticalCardSettings:()=>bl,AnalyticalListPageFilterBar:()=>Pl,AnalyticalTable:()=>Ul,BaseCustomSection:()=>eo,ChartSettings:()=>pc,ChartSettingsType:()=>gl,CommonCardSettings:()=>On,CommonHeaderFacetSettings:()=>li,CommonTableSettings:()=>Vn,CommonTableSettingsForSections:()=>gi,CreateWithFilters:()=>Rl,CustomCard:()=>yl,DefaultSpanObject:()=>ml,FRAGMENT_DEFINITION:()=>Yt,Field:()=>xl,FieldForAction:()=>Il,FooterAction:()=>ql,FormAction:()=>El,GlobalTableSettings:()=>kc,GridTable:()=>Kl,HeaderAction:()=>mc,HeaderActionStandard:()=>tc,HeaderSections:()=>vc,KPISettings:()=>dc,LinkListCardSettings:()=>vl,LinklistCard:()=>Vr,ListCard:()=>Fr,ListCardSettings:()=>hl,ListReportFilterBar:()=>da,ObjectPageAnalyticalTable:()=>Rc,ObjectPageCustomSectionFragment:()=>to,ObjectPageCustomSectionView:()=>no,ObjectPageFooterAction:()=>xc,ObjectPageFooterActionStandard:()=>ic,ObjectPageGridTable:()=>_c,ObjectPageHeader:()=>gc,ObjectPageHeaderActionStandard:()=>nc,ObjectPageHeaderSectionAddress:()=>Tc,ObjectPageHeaderSectionChart:()=>hc,ObjectPageHeaderSectionDataPoint:()=>bc,ObjectPageHeaderSectionForm:()=>yc,ObjectPageLayout:()=>Pc,ObjectPageResponsiveTable:()=>mi,ObjectPageSectionAddressV2:()=>Fc,ObjectPageSectionChartV2:()=>Ic,ObjectPageSectionContactV2:()=>Nc,ObjectPageSectionFormV2:()=>Ec,ObjectPageSectionTableV2:()=>Oc,ObjectPageSectionV2:()=>Ac,ObjectPageSubSectionChartV2:()=>jc,ObjectPageSubSectionContactV2:()=>Dc,ObjectPageSubSectionFormV2:()=>Vc,ObjectPageSubSectionTableV2:()=>wc,ObjectPageSubSectionV2:()=>Lc,ObjectPageToolBarAction:()=>Uc,ObjectPageTreeTable:()=>Mc,QuickVariantSelection:()=>_l,QuickVariantSelectionOP:()=>$c,QuickVariantSelectionX:()=>Ml,ResponsiveTable:()=>ni,SAP_UI_TABLE:()=>ga,SaveAndEditOP:()=>ec,Share:()=>Xl,ShareOP:()=>Yl,StackCard:()=>Lr,StackCardSettings:()=>Tl,TableALP:()=>Wi,TableCard:()=>jr,TableCardSettings:()=>Cl,TableColumn:()=>ac,TableColumnAction:()=>Na,TableColumnActionIntentBased:()=>sc,TableCustomColumn:()=>lc,ToolBar:()=>fc,ToolBarAction:()=>zl,TreeTable:()=>kl,UpAndDownNavigationOP:()=>Zl,buildIntentBasedActionId:()=>rc,deleteColumnFromFragment:()=>ha,deleteType:()=>Qi,exportCustomColumnsToFragment:()=>$l,exportDefaultSpan:()=>wg,exportType:()=>Ji,getChartSectionControlId:()=>lm,getContactSubSectionControlId:()=>fm,getCustomColumnPath:()=>ba,getFormSectionControlId:()=>sm,getRootCustomColumnFromFragmentJSON:()=>Rr,getSectionControlId:()=>ui,getSmartChartControlId:()=>Wr,getSmartTableControlId:()=>Ln,getSubSectionControlId:()=>cm,getTableSectionControlId:()=>am});var rt=U(W());var pe=o(e=>`${rt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),fa=o(e=>pe(e)+"/tableSettings","getTableSettingPathV2");var He=o(()=>rt.ManifestSection.ovp,"getOVPsettingPath"),G=o(e=>{let t=[rt.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in rt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ti=o((e,t)=>`${rt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Dg=o(e=>{let t=[rt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ft=o(e=>{let t=[];return t.push(Dg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ki=o(e=>Ft(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Qt=o((e,t,n)=>{let i=[];i.push(Dg(e));let r=n.replace(rt.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),An=o((e,t,n)=>Qt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var dl=o(()=>`sap.ui5/extends/extensions/${rt.v2.SAPUI5_VIEW_EXTENSION}/${rt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),fn=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(r);return i.unshift(c),`${dl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),ca=class ca{};o(ca,"ApplicationV2"),m([Qe("settings")],ca.prototype,"settings",2);var la=ca,Sn=class Sn{};o(Sn,"AppSettings"),m([y({manifest:{path:o(()=>"sap.app","path")}})],Sn.prototype,"title",2),m([y({manifest:{path:o(()=>"sap.app","path")}})],Sn.prototype,"description",2),m([y({manifest:{path:o(()=>rt.GENERICAPPSETTINGS,"path")}}),F({since:"1.50.0"})],Sn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:o(()=>rt.GENERICAPPSETTINGS,"path")}}),F({since:"1.46.0"})],Sn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:o(()=>"sap.ui5","path")}}),F({since:"1.56.0"}),ln("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Sn.prototype,"flexEnabled",2);var Pn=Sn;function wg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(wg,"exportDefaultSpan");var ua=class ua{};o(ua,"ChartSettingsType"),m([y({manifest:{path:o(()=>He()+"/chartSettings","path")}})],ua.prototype,"showDataLabel",2);var gl=ua,En=class En{};o(En,"DefaultSpanObject"),m([y({manifest:{path:o(t=>G(t),"path")}})],En.prototype,"cols",2),m([y({manifest:{path:o(t=>G(t),"path")}})],En.prototype,"rows",2),m([y({manifest:{path:o(t=>G(t),"path")}})],En.prototype,"showOnlyHeader",2),m([y({manifest:{path:o(t=>G(t),"path")}})],En.prototype,"minimumTitleRow",2),m([y({manifest:{path:o(t=>G(t),"path")}})],En.prototype,"minimumSubTitleRow",2);var ml=En,Oe=class Oe{};o(Oe,"CommonCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"entitySet",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"title",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"subTitle",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"annotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"category",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"showFilterInHeader",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"sortBy",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"sortOrder",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:o(t=>G(t),"path"),export:wg}})],Oe.prototype,"defaultSpan",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"requireAppAuthorization",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"showSortingInHeader",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"tabs",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"addODataSelect",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"showRefresh",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Oe.prototype,"customParams",2);var On=Oe,Ui=class Ui{};o(Ui,"CustomCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Ui.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Ui.prototype,"template",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Ui.prototype,"settings",2);var yl=Ui,In=class In extends On{};o(In,"ListCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],In.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>G(t),"path")}})],In.prototype,"imageSupported",2),m([y({manifest:{path:o(t=>G(t),"path")}})],In.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>G(t),"path")}})],In.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>G(t),"path")}})],In.prototype,"listType",2);var hl=In,Sr=class Sr{};o(Sr,"ListCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Sr.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Sr.prototype,"template",2);var Fr=Sr,zt=class zt extends On{};o(zt,"AnalyticalCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"chartAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"ignoreSapText",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"navigation",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"chartProperties",2),m([y({manifest:{path:o(t=>G(t),"path")}})],zt.prototype,"colorPalette",2);var bl=zt,Pr=class Pr{};o(Pr,"AnalyticalCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Pr.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Pr.prototype,"template",2);var Nr=Pr,Bi=class Bi extends On{};o(Bi,"StackCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],Bi.prototype,"itemText",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Bi.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Bi.prototype,"objectStreamCardsSettings",2);var Tl=Bi,Ar=class Ar{};o(Ar,"StackCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Ar.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Ar.prototype,"template",2);var Lr=Ar,Hi=class Hi extends On{};o(Hi,"LinkListCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],Hi.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Hi.prototype,"headerAnnotationPath",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Hi.prototype,"staticContent",2);var vl=Hi,Er=class Er{};o(Er,"LinklistCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Er.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Er.prototype,"template",2);var Vr=Er,Ir=class Ir extends On{};o(Ir,"TableCardSettings"),m([y({manifest:{path:o(t=>G(t),"path")}})],Ir.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Ir.prototype,"enableAddToInsights",2);var Cl=Ir,Or=class Or{};o(Or,"TableCard"),m([y({manifest:{path:o(t=>G(t),"path")}})],Or.prototype,"model",2),m([y({manifest:{path:o(t=>G(t),"path")}})],Or.prototype,"template",2);var jr=Or;var $g=U(W());var ZT=o((e,t,n,i,r)=>{let a=Ye(n[1],r),s=n.slice(-1)[0];return Ie(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),pa=class pa{};o(pa,"Field"),m([y({flex:{controlId:ZT,controlType:o(()=>$g.ControlType.GroupElement,"controlType"),createFlexChange:w},generate:ye})],pa.prototype,"visible",2);var xl=pa;var Al=U(W());var Sl={controlId:Ie,controlType:o(()=>Al.ControlType.SmartFilterBar,"controlType"),createFlexChange:w},qt=class qt{};o(qt,"ListReportFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.38.0"})],qt.prototype,"smartVariantManagement",2),m([y({flex:Sl}),F({since:"1.40.0"})],qt.prototype,"liveMode",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.48.0"})],qt.prototype,"variantManagementHidden",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.52.0"})],qt.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Ie,controlType:o(()=>Al.ControlType.SmartFilterBar,"controlType"),createFlexChange:w}}),F({since:"1.28.0"})],qt.prototype,"showClearOnFB",2),m([y({flex:Sl}),F({since:"1.38.0"})],qt.prototype,"showFilterConfiguration",2),m([y({flex:Sl}),F({since:"1.28.0"})],qt.prototype,"showRestoreOnFB",2);var da=qt,Dr=class Dr extends da{};o(Dr,"AnalyticalListPageFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}})],Dr.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.60.0"})],Dr.prototype,"filterDefaultsFromSelectionVariant",2);var Pl=Dr;var Nt=U(W());var Xt=o((e,t,n,i,r)=>{if(i()===Nt.ControlType.Button){let a=n[n.length-1],s=Ye(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Ie(e,t)},"getFormActionButtonId"),Fn=class Fn{};o(Fn,"FormAction"),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w},generate:ye})],Fn.prototype,"visible",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Fn.prototype,"tooltip",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Fn.prototype,"icon",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Fn.prototype,"activeIcon",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Fn.prototype,"type",2);var El=Fn,Nn=class Nn{};o(Nn,"FieldForAction"),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w},generate:ye})],Nn.prototype,"visible",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Nn.prototype,"tooltip",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Nn.prototype,"icon",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Nn.prototype,"activeIcon",2),m([y({flex:{controlId:Xt,controlType:o(()=>Nt.ControlType.Button,"controlType"),createFlexChange:w}})],Nn.prototype,"type",2);var Il=Nn;var Te=U(W()),_t=U(ur());var Ll=require("path"),hv=U(W()),zg=U(Qg()),qg=require("fs");var bv=(0,Ll.join)(__dirname,"templates");var Tv=o((e,t)=>{let n=(0,qg.readFileSync)(e,"utf8");return(0,zg.render)(n,t)},"renderTemplate");var Vl=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return Tv((0,Ll.join)(bv,t+".xml"),n)},"getSingleColumnContent"),jl=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=Vl(i,t);n=n+`
83
83
  `+r}return n+`
84
- </core:FragmentDefinition>`},"getColumnFragmentContent"),Dl=s(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
84
+ </core:FragmentDefinition>`},"getColumnFragmentContent"),Dl=o(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 ma=require("path");var Yt="core:FragmentDefinition",ga="sap.ui.table",wl=new Map([[Te.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Te.ViewTemplateType.TreeTableColumnsExtension,{namespace:ga,name:"Column"}],[Te.ViewTemplateType.GridTableColumnsExtension,{namespace:ga,name:"Column"}],[Te.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ga,name:"AnalyticalColumn"}]]),Tv=new Map([[Te.v2.FE_TEMPLATE_V2_LIST_REPORT,Te.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Te.v2.FE_TEMPLATE_V2_ALP,Te.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Te.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Te.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),qg={type:"element",name:"Text",attributes:{text:"Placeholder"}},vv=JSON.stringify(qg);function Cv(e,t){let n=t?e[Yt]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let o=i.get(n[r]);i.set(n[r],o?[...o,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}s(Cv,"getFragmentNamespaces");function zg(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}s(zg,"getTagName");function ya(e,t,n=e){let i=Cv(n,!!(t||n!==e));if(t){let r=wl.get(t);return zg(r,i.get(r.namespace))}else{let r=wl.keys();for(let o of r){let a=wl.get(o),l=i?zg(a,i.get(a.namespace)):a.name;if(e[l])return l}}}s(ya,"getTagNameFromFragmentJSON");function Rr(e,t=e){let n=ya(e,void 0,t);return e[n]}s(Rr,"getRootCustomColumnFromFragmentJSON");function xv(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let o=e[t][r];!n.includes(r)&&o!==void 0&&o.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${o.toString()}"`)}return i+="}",i}s(xv,"addP13nData");function Xg(e,t){var l,c,f;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,o=JSON.parse(r.substr(1,r.length)),a=t.findIndex(u=>u.columnKey===o.columnKey);return a<0?!1:(n=!0,r=xv(t,a),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[a])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[a])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(f=t[a])==null?void 0:f.text),e._attributes||(e._attributes={}),e._attributes.id=t[a].id,t.splice(a,1),n)}s(Xg,"handleFragmentColumn");function Sv(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),o=e.type?e.type.toLowerCase():"xml",a=r.split("."),l=a[a.length-1]+Te.FRAGMENTNAMEPART+o;for(let c of t){let f=c.dataSourceUri.split(ma.sep);if(f[f.length-1]===l){let u=JSON.parse((0,_t.xml2json)(c.fileContent,{compact:!0})),p=ya(u[Yt]);p&&(delete u[Yt][p],c.fileContent=(0,_t.json2xml)(JSON.stringify(u),{compact:!0,spaces:4}));break}}}s(Sv,"deleteColumnsFromFragment");function Yg(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===vv&&(e.splice(n,1),t-=1,t===0));n++);}s(Yg,"deleteNumberOfCells");function Pv(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Te.FRAGMENTNAMEPART+i;for(let a of t)if(a.dataSourceUri.endsWith(o)){let l=JSON.parse((0,_t.xml2json)(a.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(f=>f.type==="element");c&&Yg(l.elements[0].elements,c.length),a.fileContent=(0,_t.json2xml)(JSON.stringify(l),{spaces:4});break}}s(Pv,"deleteCellsFromFragment");function ha(e,t,n,i){if(i){Sv(e,i,t,n);let r=t.replace(Te.ViewTemplateType.ResponsiveTableColumnsExtension,Te.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&Pv(o,i,n)}}s(ha,"deleteColumnFromFragment");function Av(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(qg)}s(Av,"addNewColumnsInFragment");function Ev(e,t){let n=JSON.parse((0,_t.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)Av(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,o=n.elements[0].elements;Yg(o,r)}e.fileContent=(0,_t.json2xml)(JSON.stringify(n),{spaces:4})}}s(Ev,"updateNonEmptyCellsFragment");function Iv(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(ma.sep);if(o[o.length-1]===t){i=!0,r.changeIndicator=Te.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Dl(n):Ev(r,n);break}}return i}s(Iv,"updateCellsFragment");function Ov(e,t,n,i,r){var u;let o,a,l=t.manifest,c=ze(l,e),f=c.type?c.type.toLowerCase():"xml";c.type=f.toUpperCase();for(let p of n){if(!p.fragmentName){X(r,{severity:Te.LogSeverity.Error,message:$.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}t.manifestChangeIndicator=Te.ChangeIndicator.Updated,c.fragmentName=p.fragmentName,c.className=p.className,o=((u=p.fragmentName)==null?void 0:u.replace(i,"<root>/webapp").replace(/[.]/g,ma.sep))+Te.FRAGMENTNAMEPART+f}if(e.indexOf(Te.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Te.ChangeIndicator.Updated;let p=e.replace(Te.ViewTemplateType.ResponsiveTableColumnsExtension,Te.ViewTemplateType.ResponsiveTableCellsExtension),g=ze(l,p),b=n.reduce((x,I)=>I.cellsFragmentName?I:x);b&&b.cellsFragmentName?(g.fragmentName=a=b.cellsFragmentName,g.className=n[0].className,g.type=f.toUpperCase()):Lg(l,p)}return{manifestSection:c,lsFilePath:o,cellsFragmentName:a,fragmentType:f}}s(Ov,"exportCustomColumnsToManifest");function Fv(e,t,n,i,r){let o=Vl(e,t);if(o){let a=JSON.parse((0,_t.xml2json)(o,{compact:!0})),l=Rr(a,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(r,0,l),n=c}else n=[l]}return n}s(Fv,"insertNewColumnInFragment");function Nv(e,t){let n=[];for(let i=0;i<e.length;i++)Xg(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}s(Nv,"processCustomColumnInArray");function Lv(e,t,n){if(e){if(Array.isArray(e))Nv(e,t);else if(!Xg(e,t)){let r=ya(n[Yt]);r&&(delete n[Yt][r],e=void 0)}}return e}s(Lv,"maintainExistingColumnInFragment");function Vv(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let a=e.indexOf(o);n=Fv(o,i,n,r,a)}return n}s(Vv,"insertNewColumnsInFragment");function jv(e,t,n,i,r){let o=!1;if(!e)return o;for(let a of e)if(a.dataSourceUri.endsWith(t)){let l={};if(o=!0,a.changeIndicator=Te.ChangeIndicator.Updated,!a.fileContent||a.fileContent.length===0)a.fileContent=jl(i,r);else{let c=JSON.parse((0,_t.xml2json)(a.fileContent,{compact:!0})),f=JSON.stringify(c);l=Rr(c[Yt]),l=Lv(l,i,c),l=Vv(i,n,l,r,c);let u=ya(c,r);c[Yt][u]=l;let p=JSON.stringify(c);p!==f&&(a.fileContent=(0,_t.json2xml)(p,{compact:!0,spaces:4}))}break}return o}s(jv,"updateColumnsInFragment");function $l(e,t,n,i,r,o){let a=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:f,fragmentType:u}=Ov(t,e,n,i,o),p=JSON.parse(JSON.stringify(n)),g=l.fragmentName,b=g.substr(i.length+1),x=b.split(".");g=x[x.length-1]+Te.FRAGMENTNAMEPART+u;let L=f==null?void 0:f.split("."),U=L?L[L.length-1]:null,te=U?U+Te.FRAGMENTNAMEPART+u:null,re=jv(a,g,b,p,r),oe=!1;if(f?oe=Iv(a,te,n):oe=!0,!re){let J={fileContent:jl(p,r),dataSourceUri:c,changeIndicator:Te.ChangeIndicator.Deleted};e.fragments.push(J)}if(!oe){let J={fileContent:Dl(n),dataSourceUri:c.replace(g,te),changeIndicator:Te.ChangeIndicator.Deleted};e.fragments.push(J)}}s($l,"exportCustomColumnsToFragment");var ba=s((e,t,n,i)=>{var c,f,u,p;if(!e)return;let r=Tv.get((c=e.component)==null?void 0:c.name);if(!i){let g=(p=(u=(f=e.component)==null?void 0:f.settings)==null?void 0:u.tableSettings)==null?void 0:p.type;g||(g="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(g="AnalyticalTable"),i=g+"ColumnsExtension"}let o=i,a=`${i}|${t}`;return n&&(a+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+a,viewTemplateType:o}},"getCustomColumnPath");var we=B(W());var dn=s((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+we.PropertyName.table:Ie(e,t),"getSmartTableControlId");function Dv(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let o in i)r.indexOf(o)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[o]=i[o],delete i[o]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}s(Dv,"exportVariants");function wv(e,t){t.variants&&(Object.keys(t.variants).length>0?Dv(e,t):delete e.variants)}s(wv,"exportQuickVariantSelectionX");var Ta=class Ta{};s(Ta,"CreateWithFilters"),m([y({manifest:{path:t=>pe(t)+"/createWithFilters"}})],Ta.prototype,"strategy",2);var Rl=Ta;function kr(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}s(kr,"importType");function Ji(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}s(Ji,"exportType");function Qi(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}s(Qi,"deleteType");var _r=class _r{};s(_r,"QuickVariantSelection"),m([y({manifest:{path:t=>pe(t)+we.QUICKVARPATH}}),F({since:"1.48.0"})],_r.prototype,"showCounts",2),m([y({manifest:{path:t=>pe(t)+we.QUICKVARPATH}}),F({since:"1.48.0"})],_r.prototype,"variants",2);var _l=_r,Gi=class Gi{};s(Gi,"QuickVariantSelectionX"),m([y({manifest:{path:t=>pe(t)+we.QUICKVARPATHX}}),F({since:"1.48.0"})],Gi.prototype,"showCounts",2),m([y({manifest:{path:t=>pe(t)+we.QUICKVARPATHX}}),F({since:"1.48.0"})],Gi.prototype,"enableAutoBinding",2),m([y({manifest:{path:t=>pe(t)+we.QUICKVARPATHX,export:wv}}),F({since:"1.48.0"})],Gi.prototype,"variants",2);var Ml=Gi,rt=class rt{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(rt,"CommonTableSettings"),m([y({flex:{controlId:Ie,controlType:()=>we.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.38.0"})],rt.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.26.0"})],rt.prototype,"useExportToExcel",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.50.0"})],rt.prototype,"exportType",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.SmartTable,createFlexChange:w}})],rt.prototype,"fitContainer",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.48.0"})],rt.prototype,"quickVariantSelection",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.48.0"})],rt.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:t=>fa(t)}}),F({since:"1.38.0"})],rt.prototype,"multiSelect",2),m([y({manifest:{path:t=>fa(t)}}),F({since:"1.70.0"})],rt.prototype,"selectAll",2),m([y({manifest:{path:t=>fa(t)}}),F({since:"1.70.0"})],rt.prototype,"selectionLimit",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.40.0"})],rt.prototype,"enableAutoBinding",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.42.0"})],rt.prototype,"condensedTableLayout",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.56.0"}),ln("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],rt.prototype,"enableTableFilterInPageVariant",2),m([Qe("toolBar")],rt.prototype,"toolBar",2);var Vn=rt,un=class un extends Vn{};s(un,"ResponsiveTable"),m([y({manifest:{path:t=>pe(t),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],un.prototype,"type",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.54.0"})],un.prototype,"createWithFilters",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.Table,createFlexChange:w},generate:Vi}),F({since:"1.52.0"})],un.prototype,"popinLayout",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.Table,createFlexChange:w}})],un.prototype,"includeItemInSelection",2),m([y({manifest:{path:()=>we.GENERICAPPSETTINGS}}),F({since:"1.63.0"})],un.prototype,"showDraftToggle",2),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.Table,createFlexChange:w}}),F({since:"1.16.0"})],un.prototype,"growingThreshold",2);var ni=un,Mr=class Mr extends Vn{};s(Mr,"TreeTable"),m([y({manifest:{path:t=>pe(t),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Mr.prototype,"type",2),m([y({manifest:{path:()=>we.GENERICAPPSETTINGS}}),F({since:"1.63.0"})],Mr.prototype,"showDraftToggle",2);var kl=Mr,Mt=class Mt extends Vn{};s(Mt,"AnalyticalTable"),m([y({manifest:{path:t=>pe(t),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Mt.prototype,"type",2),m([y({manifest:{path:t=>pe(t)}})],Mt.prototype,"qualifier",2),m([y({manifest:{path:t=>pe(t)}})],Mt.prototype,"defaultContentView",2),m([y({manifest:{path:t=>pe(t)}})],Mt.prototype,"defaultFilterMode",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.60.0"})],Mt.prototype,"contentTitle",2),m([y({manifest:{path:t=>pe(t)}})],Mt.prototype,"autoHide",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.54.0"})],Mt.prototype,"createWithFilters",2),m([y({manifest:{path:()=>we.GENERICAPPSETTINGS}}),F({since:"1.63.0"})],Mt.prototype,"showDraftToggle",2);var Bl=Mt,pn=class pn extends Vn{};s(pn,"TableALP"),m([y({manifest:{path:t=>pe(t),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],pn.prototype,"type",2),m([y({manifest:{path:t=>pe(t)}})],pn.prototype,"qualifier",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.38.0"}),y({manifest:{path:t=>pe(t)}})],pn.prototype,"defaultContentView",2),m([y({manifest:{path:t=>pe(t)}})],pn.prototype,"defaultFilterMode",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.60.0"})],pn.prototype,"contentTitle",2),m([y({manifest:{path:t=>pe(t)}})],pn.prototype,"autoHide",2);var Wi=pn,va=class va extends Wi{};s(va,"ALPResponsiveTable"),m([y({flex:{controlId:dn,controlType:()=>we.ControlType.Table,createFlexChange:w}}),F({since:"1.16.0"})],va.prototype,"growingThreshold",2);var Ul=va,Wl=class Wl extends Wi{};s(Wl,"ALPGridTable");var Hl=Wl,Jl=class Jl extends Wi{};s(Jl,"ALPAnalyticalTable");var Gl=Jl,Ki=class Ki extends Vn{};s(Ki,"GridTable"),m([y({manifest:{path:t=>pe(t),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Ki.prototype,"type",2),m([y({manifest:{path:t=>pe(t)}}),F({since:"1.54.0"})],Ki.prototype,"createWithFilters",2),m([y({manifest:{path:()=>we.GENERICAPPSETTINGS}}),F({since:"1.63.0"})],Ki.prototype,"showDraftToggle",2);var Kl=Ki;var Br=B(W());var $v=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${mt(i).replace(":2f","::")}`},"getActionButtonId"),Rv=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),_v=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}${ta}${i}`},"getStandardFooterActionOPButtonId"),rc=s((e,t,n)=>{let{semanticObjectId:i,actionId:r}=ht(n);return`${e}action::${i}::${mt(r)}`},"buildIntentBasedActionId"),Mv=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${mt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),jn={controlId:$v,controlType:()=>Br.ControlType.Button,createFlexChange:w},Ur={controlId:Rv,controlType:()=>Br.ControlType.Button,createFlexChange:w},Zg={controlId:_v,controlType:()=>Br.ControlType.Button,createFlexChange:w},Ca={controlId:Mv,controlType:()=>Br.ControlType.Button,createFlexChange:w},ii=class ii{};s(ii,"Action"),m([y({flex:jn})],ii.prototype,"tooltip",2),m([y({flex:jn})],ii.prototype,"icon",2),m([y({flex:jn})],ii.prototype,"activeIcon",2),m([y({flex:jn})],ii.prototype,"type",2);var Ql=ii,ri=class ri{};s(ri,"ToolBarAction"),m([y({flex:jn})],ri.prototype,"tooltip",2),m([y({flex:jn})],ri.prototype,"icon",2),m([y({flex:jn})],ri.prototype,"activeIcon",2),m([y({flex:jn})],ri.prototype,"type",2);var zl=ri,oi=class oi{};s(oi,"FooterAction"),m([y({flex:Ca})],oi.prototype,"tooltip",2),m([y({flex:Ca})],oi.prototype,"icon",2),m([y({flex:Ca})],oi.prototype,"activeIcon",2),m([y({flex:Ca})],oi.prototype,"type",2);var ql=oi,xa=class xa{};s(xa,"Share"),m([y({flex:Ur})],xa.prototype,"visible",2);var Xl=xa,Sa=class Sa{};s(Sa,"ShareOP"),m([y({flex:Ur})],Sa.prototype,"visible",2);var Yl=Sa,Pa=class Pa{};s(Pa,"UpAndDownNavigationOP"),m([y({flex:Ur})],Pa.prototype,"visible",2);var Zl=Pa,Aa=class Aa{};s(Aa,"SaveAndEditOP"),m([y({flex:Zg,generate:ye})],Aa.prototype,"visible",2);var ec=Aa,Ea=class Ea{};s(Ea,"HeaderActionStandard"),m([y({flex:Ur})],Ea.prototype,"visible",2);var tc=Ea,Ia=class Ia{};s(Ia,"ObjectPageHeaderActionStandard"),m([y({flex:Ur})],Ia.prototype,"visible",2);var nc=Ia,Oa=class Oa{};s(Oa,"ObjectPageFooterActionStandard"),m([y({flex:Zg})],Oa.prototype,"visible",2);var ic=Oa;var Kr=B(W());var kv=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=ht(n),a=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${a}:::sAction::${o}`},"buildColumnActionId"),Bv=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:a}=ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${a}:::sAction::${o}`},"buildColumnIntentBasedId"),Uv=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),oc={controlId:kv,controlType:()=>Kr.ControlType.TableColumn,createFlexChange:w},Hr={controlId:Uv,controlType:()=>Kr.ControlType.Button,createFlexChange:w},em={...oc,controlId:Bv},Fa={...Hr,controlId:rc},Gr=class Gr{};s(Gr,"TableColumn"),m([y({flex:{controlId:rl,controlType:()=>Kr.ControlType.TableColumn,createFlexChange:w}})],Gr.prototype,"width",2),m([y({flex:{controlId:rl,controlType:()=>Kr.ControlType.TableColumn,createFlexChange:w},generate:Vi})],Gr.prototype,"hAlign",2);var ac=Gr,gn=class gn{};s(gn,"TableColumnAction"),m([y({flex:oc})],gn.prototype,"width",2),m([y({flex:oc,generate:Vi})],gn.prototype,"hAlign",2),m([y({flex:Hr})],gn.prototype,"tooltip",2),m([y({flex:Hr})],gn.prototype,"icon",2),m([y({flex:Hr})],gn.prototype,"activeIcon",2),m([y({flex:Hr})],gn.prototype,"type",2);var Na=gn,mn=class mn extends Na{};s(mn,"TableColumnActionIntentBased"),m([y({flex:em})],mn.prototype,"width",2),m([y({flex:em,generate:Vi})],mn.prototype,"hAlign",2),m([y({flex:Fa})],mn.prototype,"tooltip",2),m([y({flex:Fa})],mn.prototype,"icon",2),m([y({flex:Fa})],mn.prototype,"activeIcon",2),m([y({flex:Fa})],mn.prototype,"type",2);var sc=mn,cc=class cc{};s(cc,"TableCustomColumn");var lc=cc;var uc=class uc{};s(uc,"ToolBar");var fc=uc;var si=B(W());var Wr=s(e=>e+si.PropertyName.chart,"getSmartChartControlId"),ai=class ai{};s(ai,"ChartSettings"),m([y({flex:{controlId:Wr,controlType:()=>si.ControlType.SmartChart,createFlexChange:w}})],ai.prototype,"showLegendButton",2),m([y({flex:{controlId:Wr,controlType:()=>si.ControlType.SmartChart,createFlexChange:w}})],ai.prototype,"showDownloadButton",2),m([y({flex:{controlId:Wr,controlType:()=>si.ControlType.SmartChart,createFlexChange:w}})],ai.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:Wr,controlType:()=>si.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:w}})],ai.prototype,"ignoredChartTypes",2);var pc=ai;var yn=class yn{};s(yn,"KPISettings"),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"model",2),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"entitySet",2),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"qualifier",2),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"filterable",2),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"detailNavigation",2),m([y({manifest:{path:(t,n,i)=>ti(t,i)}})],yn.prototype,"groupId",2);var dc=yn;var tm=B(W());var Hv=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Ie(e,n)},"getAvatarControlId"),Dn=class Dn{};s(Dn,"ObjectPageHeader"),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.46.0"})],Dn.prototype,"showRelatedApps",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.46.0"})],Dn.prototype,"editableHeaderContent",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.48.0"})],Dn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.48.0"}),ln("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Dn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:Hv,controlType:()=>tm.ControlType.Avatar,createFlexChange:w},generate:ye})],Dn.prototype,"displayShape",2);var gc=Dn;var La=B(W());var Gv=s((e,t,n,i)=>{if(i()===La.ControlType.Button||i()===La.ControlType.HeaderAction){let r=n[2];return`${e}action::${mt(r)}`}return Ie(e,t)},"getActionButtonId"),Jr={controlId:Gv,controlType:()=>La.ControlType.HeaderAction,createFlexChange:w},wn=class wn{};s(wn,"HeaderAction"),m([y({flex:Jr,generate:ye})],wn.prototype,"visible",2),m([y({flex:Jr})],wn.prototype,"tooltip",2),m([y({flex:Jr})],wn.prototype,"icon",2),m([y({flex:Jr})],wn.prototype,"activeIcon",2),m([y({flex:Jr})],wn.prototype,"type",2);var mc=wn;var Qr=B(W());var Ra="header::headerEditable::",Kv=s((e,t,n,i,r)=>`${e}${Ra}${r}`,"getDataPointHeaderSectionId"),Wv=s((e,t,n,i,r)=>`${e}${Ra}${r}::ContactAddress`,"getAddressHeaderSectionId"),Jv=s((e,t,n,i,r)=>`${e}${Ra}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),nm=s((e,t,n,i,r)=>{let o=n[n.length-1].replace(/@com.sap/g,"com.sap"),a=r!=null&&r.includes(Qr.FacetTitlePrefix)?r.split(Qr.FacetTitlePrefix)[1]:o;return`${e}${Ra}${a}::Form`},"getFormHeaderSectionId"),zr={controlType:()=>Qr.ControlType.ObjectPageHeaderSection,createFlexChange:w},Va=class Va{};s(Va,"CommonHeaderFacetSettings"),m([y({flex:{...zr,controlId:nm},generate:ye})],Va.prototype,"visible",2);var li=Va,ja=class ja extends li{};s(ja,"ObjectPageHeaderSectionForm"),m([y({flex:{...zr,controlId:nm}})],ja.prototype,"visible",2);var yc=ja,Da=class Da extends li{};s(Da,"ObjectPageHeaderSectionChart"),m([y({flex:{...zr,controlId:Jv}})],Da.prototype,"visible",2);var hc=Da,wa=class wa extends li{};s(wa,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...zr,controlId:Kv}})],wa.prototype,"visible",2);var bc=wa,$a=class $a extends li{};s($a,"ObjectPageHeaderSectionAddress"),m([y({flex:{...zr,controlId:Wv}})],$a.prototype,"visible",2);var Tc=$a,Cc=class Cc{};s(Cc,"HeaderSections");var vc=Cc;var Sc=B(W());var Qv=s((e,t,n,i)=>{if(i()===Sc.ControlType.Button){let{actionId:r}=ht(n);return`${e}action::${mt(r)}::Determining`}return Ie(e,t)},"getFooterActionButtonId"),qr={controlId:Qv,controlType:()=>Sc.ControlType.Button,createFlexChange:w},$n=class $n{};s($n,"ObjectPageFooterAction"),m([y({flex:qr,generate:ye})],$n.prototype,"visible",2),m([y({flex:qr})],$n.prototype,"tooltip",2),m([y({flex:qr})],$n.prototype,"icon",2),m([y({flex:qr})],$n.prototype,"activeIcon",2),m([y({flex:qr})],$n.prototype,"type",2);var xc=$n;var Xr=B(W());var _a=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Ie(e,n)},"getControlId"),ci=class ci{};s(ci,"ObjectPageLayout"),m([y({flex:{controlId:_a,controlType:()=>Xr.ControlType.ObjectPageLayout,createFlexChange:w},generate:ye})],ci.prototype,"showHeaderContent",2),m([y({flex:{controlId:_a,controlType:()=>Xr.ControlType.ObjectPageLayout,createFlexChange:w}})],ci.prototype,"showAnchorBar",2),m([y({flex:{controlId:_a,controlType:()=>Xr.ControlType.ObjectPageLayout,createFlexChange:w}})],ci.prototype,"useIconTabBar",2),m([y({flex:{controlId:_a,controlType:()=>Xr.ControlType.ObjectPageLayout,createFlexChange:w}}),F({since:"1.34.0"})],ci.prototype,"alwaysShowContentHeader",2);var Pc=ci;var im=B(W());var fi=class fi{};s(fi,"BaseCustomSection"),m([y({manifest:{path:fn,export:!1,import:(t,n)=>n.split("|")[2]}}),F({since:"1.52.0"})],fi.prototype,"relatedFacet",2),m([y({manifest:{path:fn,export:!1,import:(t,n)=>n.split("|")[0]}}),F({since:"1.52.0"})],fi.prototype,"relativePosition",2),m([y({manifest:{path:(t,n,i)=>fn(t,{},i,im.ManifestSection.generic)}}),F({since:"1.52.0"})],fi.prototype,"title",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],fi.prototype,"className",2);var eo=fi,Yr=class Yr extends eo{};s(Yr,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Yr.prototype,"fragmentName",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Yr.prototype,"type",2);var to=Yr,Zr=class Zr extends eo{};s(Zr,"ObjectPageCustomSectionView"),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Zr.prototype,"viewName",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Zr.prototype,"type",2);var no=Zr;var Tt=B(W());var rm=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),Tt.DefinitionName.Table];return Ie(e,a)},"getTableSectionControlId"),om=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),"FormGroup"];return Ie(e,a)},"getFormSectionControlId"),am=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),"Chart"];return Ie(e,a)},"getChartSectionControlId"),ui=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),"Section"];return Ie(e,a)},"getSectionControlId"),sm=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),"SubSection"];return Ie(e,a)},"getSubSectionControlId"),lm=s((e,t,n,i,r)=>{let a=[Ye(n[1],r),"ContactsList"];return Ie(e,a)},"getContactSubSectionControlId"),Ma=class Ma{};s(Ma,"ObjectPageSectionV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],Ma.prototype,"visible",2);var Ac=Ma,ka=class ka{};s(ka,"ObjectPageSectionFormV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],ka.prototype,"visible",2);var Ec=ka,Ba=class Ba{};s(Ba,"ObjectPageSectionChartV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],Ba.prototype,"visible",2);var Ic=Ba,Ua=class Ua{};s(Ua,"ObjectPageSectionTableV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],Ua.prototype,"visible",2);var Oc=Ua,Ha=class Ha{};s(Ha,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],Ha.prototype,"visible",2);var Fc=Ha,Ga=class Ga{};s(Ga,"ObjectPageSectionContactV2"),m([y({flex:{controlId:ui,controlType:()=>Tt.ControlType.Section,createFlexChange:w},generate:ye})],Ga.prototype,"visible",2);var Nc=Ga,Ka=class Ka{};s(Ka,"ObjectPageSubSectionV2"),m([y({flex:{controlId:sm,controlType:()=>Tt.ControlType.SubSection,createFlexChange:w},generate:ye})],Ka.prototype,"visible",2);var Lc=Ka,Wa=class Wa{};s(Wa,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:om,controlType:()=>Tt.ControlType.Group,createFlexChange:w},generate:ye})],Wa.prototype,"visible",2);var Vc=Wa,Ja=class Ja{};s(Ja,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:am,controlType:()=>Tt.ControlType.SmartChart,createFlexChange:w},generate:ye})],Ja.prototype,"visible",2);var jc=Ja,Qa=class Qa{};s(Qa,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:lm,controlType:()=>Tt.ControlType.SubSection,createFlexChange:w},generate:ye})],Qa.prototype,"visible",2);var Dc=Qa,za=class za{};s(za,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:rm,controlType:()=>Tt.ControlType.SmartTable,createFlexChange:w},generate:ye})],za.prototype,"visible",2);var wc=za;var At=B(W());var di=s((e,t,n,i,r)=>{let o=n.slice(1,2),a;return i()==="sap.ui.comp.smarttable.SmartTable"?a=At.DefinitionName.Table:i()==="sap.m.Table"&&(a="responsiveTable"),o.push(a),o[0]=Ye(o[0],r),Ie(e,o)},"getSmartTableControlId"),io=class io{};s(io,"QuickVariantSelectionOP"),m([y({manifest:{path:(t,n,i)=>Qt(t,n,i)+At.QUICKVARPATH}}),F({since:"1.48.0"})],io.prototype,"showCounts",2),m([y({manifest:{path:(t,n,i)=>Qt(t,n,i)+At.QUICKVARPATH}}),F({since:"1.48.0"})],io.prototype,"variants",2);var $c=io,vt=class vt{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(vt,"CommonTableSettingsForSections"),m([y({flex:{controlId:di,controlType:()=>At.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.28.0"})],vt.prototype,"editable",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.95.0"}),ln("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],vt.prototype,"showPasteButton",2),m([y({manifest:{path:En}}),F({since:"1.54.0"})],vt.prototype,"multiSelect",2),m([y({manifest:{path:En}}),F({since:"1.70.0"})],vt.prototype,"selectAll",2),m([y({manifest:{path:En}}),F({since:"1.70.0"})],vt.prototype,"selectionLimit",2),m([y({manifest:{path:Qt}}),F({since:"1.63.0"})],vt.prototype,"quickVariantSelection",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.26.0"})],vt.prototype,"useExportToExcel",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.SmartTable,createFlexChange:w}}),F({since:"1.50.0"})],vt.prototype,"exportType",2),m([y({manifest:{path:Qt}}),F({since:"1.48.5"}),ln("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],vt.prototype,"createMode",2),m([y({manifest:{path:Qt}}),F({since:"1.61.0"})],vt.prototype,"disableDefaultInlineCreateSort",2),m([Qe("toolBar")],vt.prototype,"toolBar",2);var gi=vt,pi=class pi extends gi{};s(pi,"ObjectPageResponsiveTable"),m([y({manifest:{path:En}})],pi.prototype,"type",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.Table,createFlexChange:w}})],pi.prototype,"includeItemInSelection",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.Table,createFlexChange:w},generate:ye}),F({since:"1.52.0"})],pi.prototype,"popinLayout",2),m([y({flex:{controlId:di,controlType:()=>At.ControlType.Table,createFlexChange:w}}),F({since:"1.16.0"})],pi.prototype,"growingThreshold",2);var mi=pi,ro=class ro extends gi{};s(ro,"ObjectPageAnalyticalTable"),m([y({manifest:{path:En}})],ro.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],ro.prototype,"condensedTableLayout",2);var Rc=ro,oo=class oo extends gi{};s(oo,"ObjectPageGridTable"),m([y({manifest:{path:En}})],oo.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],oo.prototype,"condensedTableLayout",2);var _c=oo,ao=class ao extends gi{};s(ao,"ObjectPageTreeTable"),m([y({manifest:{path:En}})],ao.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],ao.prototype,"condensedTableLayout",2);var Mc=ao,Rn=class Rn{};s(Rn,"GlobalTableSettings"),m([y({manifest:{path:ki}}),F({since:"1.70.0"})],Rn.prototype,"selectAll",2),m([y({manifest:{path:ki}}),F({since:"1.78.0"})],Rn.prototype,"variantManagement",2),m([y({manifest:{path:ki}})],Rn.prototype,"type",2),m([y({manifest:{path:ki}}),F({since:"1.54.0"})],Rn.prototype,"multiSelect",2),m([y({manifest:{path:ki}}),F({since:"1.67.0"})],Rn.prototype,"condensedTableLayout",2);var kc=Rn;var cm=B(W());var zv=s((e,t,n,i,r)=>{let{actionId:o}=ht(n),a=Ye(n[1],r);return`${e}${a}::action::${mt(o).replace(":2f","::")}`},"getActionButtonId"),so={controlId:zv,controlType:()=>cm.ControlType.Button,createFlexChange:w},_n=class _n{};s(_n,"ObjectPageToolBarAction"),m([y({flex:so,generate:ye})],_n.prototype,"visible",2),m([y({flex:so})],_n.prototype,"tooltip",2),m([y({flex:so})],_n.prototype,"icon",2),m([y({flex:so})],_n.prototype,"activeIcon",2),m([y({flex:so})],_n.prototype,"type",2);var Bc=_n;function Mn(e){return e.replace("/","::")}s(Mn,"convertActionKey");function Hc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}s(Hc,"convertSelector");function qv(e,t,n,i){var o,a,l,c;(((a=(o=i.definitions)==null?void 0:o.ListReportFilterBar)==null?void 0:a.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)}s(qv,"addSmartFilterBarFlex");function Xv(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let o=mt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),a=o.indexOf(":::");if(o.startsWith("DataField")&&a>-1){let c=o.split(":::"),f=c.find(g=>g.startsWith("sSemanticObject")),u=c.find(g=>g.startsWith("sAction")),p=u.split("sAction::")[1].replace(":2f","::");if(f){let g=`${f.split("::")[1]}::${p}`,b=`${c[0]}:::${f}:::${u}`;i.set(g,r),i.set(r,b)}else i.set(p,r),i.set(r,o)}else i.set(o.replace(":2f","::"),r),i.set(r,o)}),i}s(Xv,"filterActions");function Yv(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}s(Yv,"addColumnActionConfigPart");function Zv(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]}s(Zv,"getActionId");function eC(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(a=>{var c,f;let l=Xv(a.name,i);if(l.has(a.id)){let u=l.get(a.id),p=(c=u.split("<")[1])==null?void 0:c.split(">")[0];a.name==="TableColumnAction"&&Yv(a,e,p);let g=a.configPart[p];((f=i.definitions[u])==null?void 0:f.properties[t])&&g&&(g[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}s(eC,"addActionFlex");function tC(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let a=St(e[ie.PropertyName.chart],t);(o=a==null?void 0:a.flex)!=null&&o.importFlexValue?a.flex.importFlexValue(n,e[ie.PropertyName.chart],t):e[ie.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}s(tC,"addSmartChartFlex");function nC(e,t,n){var a;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===ie.v2.TableTypeV2.ResponsiveTable)&&!((a=i.controlId)!=null&&a.includes(ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ie.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTable":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===ie.ControlType.TableColumn)&&sa(e.table,i,n)}s(nC,"addAdditionalFlexChanges");function qa(e,t,n,i){var r,o;try{let a=xn(t),l=a.content.property;if((r=a.controlId)!=null&&r.includes(ie.PageTypeV2.ListReport)||(o=a.controlId)!=null&&o.includes(ie.PageTypeV2.AnalyticalListPage))switch(a.controlId=Hc(a.controlId),a.controlType){case ie.ControlType.SmartFilterBar:{qv(e,l,a,n);break}case ie.ControlType.DynamicPage:{n.properties[l]&&(e[a.content.property]=a.content.newValue);break}case ie.ControlType.Button:{let c=Zv(a);c&&eC(e,l,a,n,c);break}case ie.ControlType.SmartChart:{tC(e,l,a,n);break}default:{nC(e,a,n);break}}}catch(a){X(i,{severity:ie.LogSeverity.Error,message:$.t("FLEXERROR")},...a)}}s(qa,"addFlex");function Ze(e,t,n,i,r,o){if(!n)return;let a={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let f=St(e,c);if(f!=null&&f.manifest){let u=f.manifest.path([i],t,o);a=ze(t,u),Zo(f,a,c,e),Zd(l,a,u,r)}}}s(Ze,"transferSettingsOfObject");function Xa(e,t){var r,o,a,l,c,f,u,p,g;let n=e[ie.ManifestSection.generic].pages[t],i=ie.v2.TableTypeV2.ResponsiveTable;return(r=e[ie.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((a=(o=e[ie.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&a.type||(l=e[ie.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((u=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.tableSettings)==null?void 0:u.type)||((p=n.component)==null?void 0:p.settings.tableType):((g=n.component)==null?void 0:g.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ie.v2.TableTypeV2.AnalyticalTable),i}s(Xa,"determineTableType");function fm(e,t,n,i,r,o,a){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,u=JSON.parse(f.substr(1,f.length)),p=e.Text&&e.Text._attributes&&e.Text._attributes.text;p||(p=e.Label&&e.Label._attributes&&e.Label._attributes.text);let g={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.id}:{},...p?{text:p}:{},...u,...u.columnKey?{columnKey:u.columnKey}:{},...u.columnIndex?{columnIndex:Number(u.columnIndex)}:{},...u.leadingProperty?{leadingProperty:u.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:o};a&&(g.cellsFragmentName=a),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(g)}}s(fm,"evaluateFragmentColumn");function iC(e,t,n,i){let r;if(e===ie.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[a,l,c]=o.split("|");a===ie.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[o].fragmentName)}return r}s(iC,"determineCellsFragmentName");function rC(e,t,n,i,r,o,a){var l;if(e[0]){let f=JSON.parse((0,um.xml2json)(e[0].fileContent,{compact:!0}))[Yt],u=Rr(f);if(u)if((l=t[ie.PropertyName.table])!=null&&l.columns||(t[ie.PropertyName.table].columns={}),Array.isArray(u))for(let p of u)fm(p,n,i,r,t,o,a);else fm(u,n,i,r,t,o,a)}}s(rC,"analyzeFilteredFragments");function oC(e,t,n,i,r){for(let o of Object.keys(e)){let a=o.split("|"),[l,c]=a,f=a[2],u=ie.ViewTemplateType[l];if(u&&"|"+c===t){let p=e[o].type?e[o].type.toLowerCase():"xml",g=e[o].fragmentName;if(!g)continue;let b=iC(u,e,c,f),x=g.split(".");g=x[x.length-1]+ie.FRAGMENTNAMEPART+p;let I=r.filter(L=>L.dataSourceUri.endsWith(g));rC(I,i,e,o,f,u,b)}}}s(oC,"processViewExtensions");function zi(e,t,n,i,r,o){if(!r)return;let a="|"+(o&&o.target?o.target:n.entitySet);if(t[ie.ManifestSection.ui5]&&t[ie.ManifestSection.ui5].extends&&t[ie.ManifestSection.ui5].extends.extensions&&t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),c=t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!c)return;oC(c,a,o,e,r)}}s(zi,"addFragments");function Ya(e,t,n){if(e.header={actions:{}},n[ie.DefinitionName.HeaderActionsStandard]){let i=n[ie.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ie.PageTypeV2.ListReport,r,{})}}s(Ya,"importHeaderActions");var $e=B(W());var dm=B(W());var Gc={};So(Gc,{ANNOERR:()=>PC,ANNOTATIONFILE:()=>AC,COMPONENTNOTDEFINED:()=>EC,CONTEXTPATHCOULDNOTBERESOLVED:()=>vC,ENTITYSETNOTFOUND:()=>TC,FLEXERROR:()=>wC,INCONSISTENTSCHEMA:()=>BC,INVALIDANCHOR:()=>$C,INVALIDSPECFORV4:()=>lC,INVALIDTARGETDEFINITION:()=>_C,NOALP:()=>xC,NOBASEPATH:()=>cC,NOCHARTS:()=>FC,NOENTITYSET:()=>gC,NOENTITYTYPE4SET:()=>mC,NOFE:()=>uC,NOFRAGMENT:()=>RC,NOGENERICSCHEMA:()=>pC,NOID4SECTION:()=>MC,NOLINEITEMANDCHARTS:()=>NC,NOLINEITEMS:()=>OC,NOLR:()=>CC,NOPAGEFORENTITYSET:()=>dC,NOPAGES:()=>fC,NOPRESENTATIONVARIANT:()=>yC,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>hC,NOPRESENTATIONVARIANTFORSPV:()=>bC,NOROUTING:()=>IC,NOROUTINGID:()=>DC,NOTARGET:()=>jC,NOTARGETS:()=>VC,NOTEMPLATE:()=>SC,NOVISUALIZATIONS:()=>LC,UNKNOWNMINUI5VERSION:()=>sC,WRONGMINUI5VERSION:()=>aC,XMLPARSEFAILURE:()=>kC,default:()=>UC});var aC="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",sC="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",lC="The given specification version cannot be used for apps of OData V4, upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",cC="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",fC="No pages found in manifest for app with id '{{- appId}}'",uC="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",pC="No generic schema found while generating page schema for {{- pageType}}",dC="No page found in manifest for entitySet '{{- entitySet}}'",gC="No entitySet defined for page '{{- pageName}}'",mC="No entityType could be found for the given entity set '{{- entitySetName}}'",yC="No PresentationVariant defined for '{{- key}}'",hC="No PresentationVariant found for default SelectionPresentationVariant",bC="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",TC="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",vC="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",CC="No page found in manifest for list report",xC="No page found in manifest for analytical list page",SC="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",PC="Error while parsing annotation files",AC="Annotation file: '{{- file}}'",EC="Component name is not defined for page '{{- pageName}}'",IC="Incomplete manifest definition: no routing defined",OC="UI.LineItem annotation has not been defined",FC="UI.Chart annotation has not been defined",NC="Neither UI.LineItem nor UI.Chart annotation has been defined",LC="Empty Collection for Visualizations",VC="Incomplete manifest definition: no targets defined",jC="Invalid reference: annotation target '{{- target}}' not found",DC="No page found in manifest for routingId '{{- routingId}}'",wC="Error while parsing flex change",$C="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",RC="fragmentName is undefined for columnKey '{{- columnKey}}'",_C="Invalid routing target definition in manifest: '{{- target}}'",MC="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",kC="Parsing of XML file failed with error - {{- error}}",BC="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",UC={WRONGMINUI5VERSION:aC,UNKNOWNMINUI5VERSION:sC,INVALIDSPECFORV4:lC,NOBASEPATH:cC,NOPAGES:fC,NOFE:uC,NOGENERICSCHEMA:pC,NOPAGEFORENTITYSET:dC,NOENTITYSET:gC,NOENTITYTYPE4SET:mC,NOPRESENTATIONVARIANT:yC,NOPRESENTATIONVARIANTFORDEFAULTSPV:hC,NOPRESENTATIONVARIANTFORSPV:bC,ENTITYSETNOTFOUND:TC,CONTEXTPATHCOULDNOTBERESOLVED:vC,NOLR:CC,NOALP:xC,NOTEMPLATE:SC,ANNOERR:PC,ANNOTATIONFILE:AC,COMPONENTNOTDEFINED:EC,NOROUTING:IC,NOLINEITEMS:OC,NOCHARTS:FC,NOLINEITEMANDCHARTS:NC,NOVISUALIZATIONS:LC,NOTARGETS:VC,NOTARGET:jC,NOROUTINGID:DC,FLEXERROR:wC,INVALIDANCHOR:$C,NOFRAGMENT:RC,INVALIDTARGETDEFINITION:_C,NOID4SECTION:MC,XMLPARSEFAILURE:kC,INCONSISTENTSCHEMA:BC};function pm(e){e.addResourceBundle(e.language,"translation",Gc)}s(pm,"initI18n");function at(e="en"){$.init({resources:{en:{translation:dm.default}},lng:e,fallbackLng:"en",joinArrays:`
86
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var ma=require("path");var Yt="core:FragmentDefinition",ga="sap.ui.table",wl=new Map([[Te.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Te.ViewTemplateType.TreeTableColumnsExtension,{namespace:ga,name:"Column"}],[Te.ViewTemplateType.GridTableColumnsExtension,{namespace:ga,name:"Column"}],[Te.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ga,name:"AnalyticalColumn"}]]),vv=new Map([[Te.v2.FE_TEMPLATE_V2_LIST_REPORT,Te.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Te.v2.FE_TEMPLATE_V2_ALP,Te.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Te.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Te.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Yg={type:"element",name:"Text",attributes:{text:"Placeholder"}},Cv=JSON.stringify(Yg);function xv(e,t){let n=t?e[Yt]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}o(xv,"getFragmentNamespaces");function Xg(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(Xg,"getTagName");function ya(e,t,n=e){let i=xv(n,!!(t||n!==e));if(t){let r=wl.get(t);return Xg(r,i.get(r.namespace))}else{let r=wl.keys();for(let a of r){let s=wl.get(a),l=i?Xg(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(ya,"getTagNameFromFragmentJSON");function Rr(e,t=e){let n=ya(e,void 0,t);return e[n]}o(Rr,"getRootCustomColumnFromFragmentJSON");function Sv(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(Sv,"addP13nData");function Zg(e,t){var l,c,f;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(u=>u.columnKey===a.columnKey);return s<0?!1:(n=!0,r=Sv(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(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)}o(Zg,"handleFragmentColumn");function Pv(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Te.FRAGMENTNAMEPART+a;for(let c of t){let f=c.dataSourceUri.split(ma.sep);if(f[f.length-1]===l){let u=JSON.parse((0,_t.xml2json)(c.fileContent,{compact:!0})),p=ya(u[Yt]);p&&(delete u[Yt][p],c.fileContent=(0,_t.json2xml)(JSON.stringify(u),{compact:!0,spaces:4}));break}}}o(Pv,"deleteColumnsFromFragment");function em(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Cv&&(e.splice(n,1),t-=1,t===0));n++);}o(em,"deleteNumberOfCells");function Av(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Te.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,_t.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(f=>f.type==="element");c&&em(l.elements[0].elements,c.length),s.fileContent=(0,_t.json2xml)(JSON.stringify(l),{spaces:4});break}}o(Av,"deleteCellsFromFragment");function ha(e,t,n,i){if(i){Pv(e,i,t,n);let r=t.replace(Te.ViewTemplateType.ResponsiveTableColumnsExtension,Te.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&Av(a,i,n)}}o(ha,"deleteColumnFromFragment");function Ev(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(Yg)}o(Ev,"addNewColumnsInFragment");function Iv(e,t){let n=JSON.parse((0,_t.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)Ev(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;em(a,r)}e.fileContent=(0,_t.json2xml)(JSON.stringify(n),{spaces:4})}}o(Iv,"updateNonEmptyCellsFragment");function Ov(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(ma.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Te.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Dl(n):Iv(r,n);break}}return i}o(Ov,"updateCellsFragment");function Fv(e,t,n,i,r){var u;let a,s,l=t.manifest,c=ze(l,e),f=c.type?c.type.toLowerCase():"xml";c.type=f.toUpperCase();for(let p of n){if(!p.fragmentName){X(r,{severity:Te.LogSeverity.Error,message:$.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}t.manifestChangeIndicator=Te.ChangeIndicator.Updated,c.fragmentName=p.fragmentName,c.className=p.className,a=((u=p.fragmentName)==null?void 0:u.replace(i,"<root>/webapp").replace(/[.]/g,ma.sep))+Te.FRAGMENTNAMEPART+f}if(e.indexOf(Te.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Te.ChangeIndicator.Updated;let p=e.replace(Te.ViewTemplateType.ResponsiveTableColumnsExtension,Te.ViewTemplateType.ResponsiveTableCellsExtension),g=ze(l,p),b=n.reduce((x,I)=>I.cellsFragmentName?I:x);b&&b.cellsFragmentName?(g.fragmentName=s=b.cellsFragmentName,g.className=n[0].className,g.type=f.toUpperCase()):jg(l,p)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:f}}o(Fv,"exportCustomColumnsToManifest");function Nv(e,t,n,i,r){let a=Vl(e,t);if(a){let s=JSON.parse((0,_t.xml2json)(a,{compact:!0})),l=Rr(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(r,0,l),n=c}else n=[l]}return n}o(Nv,"insertNewColumnInFragment");function Lv(e,t){let n=[];for(let i=0;i<e.length;i++)Zg(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(Lv,"processCustomColumnInArray");function Vv(e,t,n){if(e){if(Array.isArray(e))Lv(e,t);else if(!Zg(e,t)){let r=ya(n[Yt]);r&&(delete n[Yt][r],e=void 0)}}return e}o(Vv,"maintainExistingColumnInFragment");function jv(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Nv(a,i,n,r,s)}return n}o(jv,"insertNewColumnsInFragment");function Dv(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Te.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=jl(i,r);else{let c=JSON.parse((0,_t.xml2json)(s.fileContent,{compact:!0})),f=JSON.stringify(c);l=Rr(c[Yt]),l=Vv(l,i,c),l=jv(i,n,l,r,c);let u=ya(c,r);c[Yt][u]=l;let p=JSON.stringify(c);p!==f&&(s.fileContent=(0,_t.json2xml)(p,{compact:!0,spaces:4}))}break}return a}o(Dv,"updateColumnsInFragment");function $l(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:f,fragmentType:u}=Fv(t,e,n,i,a),p=JSON.parse(JSON.stringify(n)),g=l.fragmentName,b=g.substr(i.length+1),x=b.split(".");g=x[x.length-1]+Te.FRAGMENTNAMEPART+u;let L=f==null?void 0:f.split("."),B=L?L[L.length-1]:null,te=B?B+Te.FRAGMENTNAMEPART+u:null,re=Dv(s,g,b,p,r),oe=!1;if(f?oe=Ov(s,te,n):oe=!0,!re){let J={fileContent:jl(p,r),dataSourceUri:c,changeIndicator:Te.ChangeIndicator.Deleted};e.fragments.push(J)}if(!oe){let J={fileContent:Dl(n),dataSourceUri:c.replace(g,te),changeIndicator:Te.ChangeIndicator.Deleted};e.fragments.push(J)}}o($l,"exportCustomColumnsToFragment");var ba=o((e,t,n,i)=>{var c,f,u,p;if(!e)return;let r=vv.get((c=e.component)==null?void 0:c.name);if(!i){let g=(p=(u=(f=e.component)==null?void 0:f.settings)==null?void 0:u.tableSettings)==null?void 0:p.type;g||(g="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(g="AnalyticalTable"),i=g+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var _e=U(W());var Ln=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+_e.PropertyName.table:Ie(e,t),"getSmartTableControlId");function wv(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.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}}}o(wv,"exportVariants");function $v(e,t){t.variants&&(Object.keys(t.variants).length>0?wv(e,t):delete e.variants)}o($v,"exportQuickVariantSelectionX");var Ta=class Ta{};o(Ta,"CreateWithFilters"),m([y({manifest:{path:o(t=>pe(t)+"/createWithFilters","path")}})],Ta.prototype,"strategy",2);var Rl=Ta;function kr(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(kr,"importType");function Ji(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Ji,"exportType");function Qi(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Qi,"deleteType");var _r=class _r{};o(_r,"QuickVariantSelection"),m([y({manifest:{path:o(t=>pe(t)+_e.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],_r.prototype,"showCounts",2),m([y({manifest:{path:o(t=>pe(t)+_e.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],_r.prototype,"variants",2);var _l=_r,Gi=class Gi{};o(Gi,"QuickVariantSelectionX"),m([y({manifest:{path:o(t=>pe(t)+_e.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Gi.prototype,"showCounts",2),m([y({manifest:{path:o(t=>pe(t)+_e.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Gi.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>pe(t)+_e.QUICKVARPATHX,"path"),export:$v}}),F({since:"1.48.0"})],Gi.prototype,"variants",2);var Ml=Gi,ot=class ot{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ot,"CommonTableSettings"),m([y({flex:{controlId:Ie,controlType:o(()=>_e.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.38.0"})],ot.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.26.0"})],ot.prototype,"useExportToExcel",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.50.0"})],ot.prototype,"exportType",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.48.0"})],ot.prototype,"quickVariantSelection",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.48.0"})],ot.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:o(t=>fa(t),"path")}}),F({since:"1.38.0"})],ot.prototype,"multiSelect",2),m([y({manifest:{path:o(t=>fa(t),"path")}}),F({since:"1.70.0"})],ot.prototype,"selectAll",2),m([y({manifest:{path:o(t=>fa(t),"path")}}),F({since:"1.70.0"})],ot.prototype,"selectionLimit",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.40.0"})],ot.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.42.0"})],ot.prototype,"condensedTableLayout",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.56.0"}),ln("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ot.prototype,"enableTableFilterInPageVariant",2),m([Qe("toolBar")],ot.prototype,"toolBar",2);var Vn=ot,un=class un extends Vn{};o(un,"ResponsiveTable"),m([y({manifest:{path:o(t=>pe(t),"path"),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],un.prototype,"type",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.54.0"})],un.prototype,"createWithFilters",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.Table,"controlType"),createFlexChange:w},generate:Vi}),F({since:"1.52.0"})],un.prototype,"popinLayout",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.Table,"controlType"),createFlexChange:w}})],un.prototype,"includeItemInSelection",2),m([y({manifest:{path:o(()=>_e.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],un.prototype,"showDraftToggle",2),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.Table,"controlType"),createFlexChange:w}}),F({since:"1.16.0"})],un.prototype,"growingThreshold",2);var ni=un,Mr=class Mr extends Vn{};o(Mr,"TreeTable"),m([y({manifest:{path:o(t=>pe(t),"path"),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Mr.prototype,"type",2),m([y({manifest:{path:o(()=>_e.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Mr.prototype,"showDraftToggle",2);var kl=Mr,Mt=class Mt extends Vn{};o(Mt,"AnalyticalTable"),m([y({manifest:{path:o(t=>pe(t),"path"),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Mt.prototype,"type",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],Mt.prototype,"qualifier",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],Mt.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],Mt.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.60.0"})],Mt.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],Mt.prototype,"autoHide",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.54.0"})],Mt.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>_e.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Mt.prototype,"showDraftToggle",2);var Ul=Mt,pn=class pn extends Vn{};o(pn,"TableALP"),m([y({manifest:{path:o(t=>pe(t),"path"),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],pn.prototype,"type",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],pn.prototype,"qualifier",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.38.0"}),y({manifest:{path:o(t=>pe(t),"path")}})],pn.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],pn.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.60.0"})],pn.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>pe(t),"path")}})],pn.prototype,"autoHide",2);var Wi=pn,va=class va extends Wi{};o(va,"ALPResponsiveTable"),m([y({flex:{controlId:Ln,controlType:o(()=>_e.ControlType.Table,"controlType"),createFlexChange:w}}),F({since:"1.16.0"})],va.prototype,"growingThreshold",2);var Bl=va,Wl=class Wl extends Wi{};o(Wl,"ALPGridTable");var Hl=Wl,Jl=class Jl extends Wi{};o(Jl,"ALPAnalyticalTable");var Gl=Jl,Ki=class Ki extends Vn{};o(Ki,"GridTable"),m([y({manifest:{path:o(t=>pe(t),"path"),import:kr,export:Ji,delete:Qi}}),F({since:"1.50.0"})],Ki.prototype,"type",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.54.0"})],Ki.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>_e.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Ki.prototype,"showDraftToggle",2);var Kl=Ki;var Ur=U(W());var Rv=o((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${mt(i).replace(":2f","::")}`},"getActionButtonId"),_v=o((e,t,n)=>{let{actionId:i}=ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),Mv=o((e,t,n)=>{let{actionId:i}=ht(n);return`${e}${ta}${i}`},"getStandardFooterActionOPButtonId"),rc=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=ht(n);return`${e}action::${i}::${mt(r)}`},"buildIntentBasedActionId"),kv=o((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${mt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),jn={controlId:Rv,controlType:o(()=>Ur.ControlType.Button,"controlType"),createFlexChange:w},Br={controlId:_v,controlType:o(()=>Ur.ControlType.Button,"controlType"),createFlexChange:w},tm={controlId:Mv,controlType:o(()=>Ur.ControlType.Button,"controlType"),createFlexChange:w},Ca={controlId:kv,controlType:o(()=>Ur.ControlType.Button,"controlType"),createFlexChange:w},ii=class ii{};o(ii,"Action"),m([y({flex:jn})],ii.prototype,"tooltip",2),m([y({flex:jn})],ii.prototype,"icon",2),m([y({flex:jn})],ii.prototype,"activeIcon",2),m([y({flex:jn})],ii.prototype,"type",2);var Ql=ii,ri=class ri{};o(ri,"ToolBarAction"),m([y({flex:jn})],ri.prototype,"tooltip",2),m([y({flex:jn})],ri.prototype,"icon",2),m([y({flex:jn})],ri.prototype,"activeIcon",2),m([y({flex:jn})],ri.prototype,"type",2);var zl=ri,oi=class oi{};o(oi,"FooterAction"),m([y({flex:Ca})],oi.prototype,"tooltip",2),m([y({flex:Ca})],oi.prototype,"icon",2),m([y({flex:Ca})],oi.prototype,"activeIcon",2),m([y({flex:Ca})],oi.prototype,"type",2);var ql=oi,xa=class xa{};o(xa,"Share"),m([y({flex:Br})],xa.prototype,"visible",2);var Xl=xa,Sa=class Sa{};o(Sa,"ShareOP"),m([y({flex:Br})],Sa.prototype,"visible",2);var Yl=Sa,Pa=class Pa{};o(Pa,"UpAndDownNavigationOP"),m([y({flex:Br})],Pa.prototype,"visible",2);var Zl=Pa,Aa=class Aa{};o(Aa,"SaveAndEditOP"),m([y({flex:tm,generate:ye})],Aa.prototype,"visible",2);var ec=Aa,Ea=class Ea{};o(Ea,"HeaderActionStandard"),m([y({flex:Br})],Ea.prototype,"visible",2);var tc=Ea,Ia=class Ia{};o(Ia,"ObjectPageHeaderActionStandard"),m([y({flex:Br})],Ia.prototype,"visible",2);var nc=Ia,Oa=class Oa{};o(Oa,"ObjectPageFooterActionStandard"),m([y({flex:tm})],Oa.prototype,"visible",2);var ic=Oa;var Kr=U(W());var Uv=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=ht(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),Bv=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),Hv=o((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),oc={controlId:Uv,controlType:o(()=>Kr.ControlType.TableColumn,"controlType"),createFlexChange:w},Hr={controlId:Hv,controlType:o(()=>Kr.ControlType.Button,"controlType"),createFlexChange:w},nm={...oc,controlId:Bv},Fa={...Hr,controlId:rc},Gr=class Gr{};o(Gr,"TableColumn"),m([y({flex:{controlId:rl,controlType:o(()=>Kr.ControlType.TableColumn,"controlType"),createFlexChange:w}})],Gr.prototype,"width",2),m([y({flex:{controlId:rl,controlType:o(()=>Kr.ControlType.TableColumn,"controlType"),createFlexChange:w},generate:Vi})],Gr.prototype,"hAlign",2);var ac=Gr,dn=class dn{};o(dn,"TableColumnAction"),m([y({flex:oc})],dn.prototype,"width",2),m([y({flex:oc,generate:Vi})],dn.prototype,"hAlign",2),m([y({flex:Hr})],dn.prototype,"tooltip",2),m([y({flex:Hr})],dn.prototype,"icon",2),m([y({flex:Hr})],dn.prototype,"activeIcon",2),m([y({flex:Hr})],dn.prototype,"type",2);var Na=dn,gn=class gn extends Na{};o(gn,"TableColumnActionIntentBased"),m([y({flex:nm})],gn.prototype,"width",2),m([y({flex:nm,generate:Vi})],gn.prototype,"hAlign",2),m([y({flex:Fa})],gn.prototype,"tooltip",2),m([y({flex:Fa})],gn.prototype,"icon",2),m([y({flex:Fa})],gn.prototype,"activeIcon",2),m([y({flex:Fa})],gn.prototype,"type",2);var sc=gn,cc=class cc{};o(cc,"TableCustomColumn");var lc=cc;var uc=class uc{};o(uc,"ToolBar");var fc=uc;var si=U(W());var Wr=o(e=>e+si.PropertyName.chart,"getSmartChartControlId"),ai=class ai{};o(ai,"ChartSettings"),m([y({flex:{controlId:Wr,controlType:o(()=>si.ControlType.SmartChart,"controlType"),createFlexChange:w}})],ai.prototype,"showLegendButton",2),m([y({flex:{controlId:Wr,controlType:o(()=>si.ControlType.SmartChart,"controlType"),createFlexChange:w}})],ai.prototype,"showDownloadButton",2),m([y({flex:{controlId:Wr,controlType:o(()=>si.ControlType.SmartChart,"controlType"),createFlexChange:w}})],ai.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:Wr,controlType:o(()=>si.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:w}})],ai.prototype,"ignoredChartTypes",2);var pc=ai;var mn=class mn{};o(mn,"KPISettings"),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"model",2),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"entitySet",2),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"qualifier",2),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"filterable",2),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"detailNavigation",2),m([y({manifest:{path:o((t,n,i)=>ti(t,i),"path")}})],mn.prototype,"groupId",2);var dc=mn;var im=U(W());var Gv=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Ie(e,n)},"getAvatarControlId"),Dn=class Dn{};o(Dn,"ObjectPageHeader"),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.46.0"})],Dn.prototype,"showRelatedApps",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.46.0"})],Dn.prototype,"editableHeaderContent",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.48.0"})],Dn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.48.0"}),ln("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Dn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:Gv,controlType:o(()=>im.ControlType.Avatar,"controlType"),createFlexChange:w},generate:ye})],Dn.prototype,"displayShape",2);var gc=Dn;var La=U(W());var Kv=o((e,t,n,i)=>{if(i()===La.ControlType.Button||i()===La.ControlType.HeaderAction){let r=n[2];return`${e}action::${mt(r)}`}return Ie(e,t)},"getActionButtonId"),Jr={controlId:Kv,controlType:o(()=>La.ControlType.HeaderAction,"controlType"),createFlexChange:w},wn=class wn{};o(wn,"HeaderAction"),m([y({flex:Jr,generate:ye})],wn.prototype,"visible",2),m([y({flex:Jr})],wn.prototype,"tooltip",2),m([y({flex:Jr})],wn.prototype,"icon",2),m([y({flex:Jr})],wn.prototype,"activeIcon",2),m([y({flex:Jr})],wn.prototype,"type",2);var mc=wn;var Qr=U(W());var Ra="header::headerEditable::",Wv=o((e,t,n,i,r)=>`${e}${Ra}${r}`,"getDataPointHeaderSectionId"),Jv=o((e,t,n,i,r)=>`${e}${Ra}${r}::ContactAddress`,"getAddressHeaderSectionId"),Qv=o((e,t,n,i,r)=>`${e}${Ra}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),rm=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Qr.FacetTitlePrefix)?r.split(Qr.FacetTitlePrefix)[1]:a;return`${e}${Ra}${s}::Form`},"getFormHeaderSectionId"),zr={controlType:o(()=>Qr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:w},Va=class Va{};o(Va,"CommonHeaderFacetSettings"),m([y({flex:{...zr,controlId:rm},generate:ye})],Va.prototype,"visible",2);var li=Va,ja=class ja extends li{};o(ja,"ObjectPageHeaderSectionForm"),m([y({flex:{...zr,controlId:rm}})],ja.prototype,"visible",2);var yc=ja,Da=class Da extends li{};o(Da,"ObjectPageHeaderSectionChart"),m([y({flex:{...zr,controlId:Qv}})],Da.prototype,"visible",2);var hc=Da,wa=class wa extends li{};o(wa,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...zr,controlId:Wv}})],wa.prototype,"visible",2);var bc=wa,$a=class $a extends li{};o($a,"ObjectPageHeaderSectionAddress"),m([y({flex:{...zr,controlId:Jv}})],$a.prototype,"visible",2);var Tc=$a,Cc=class Cc{};o(Cc,"HeaderSections");var vc=Cc;var Sc=U(W());var zv=o((e,t,n,i)=>{if(i()===Sc.ControlType.Button){let{actionId:r}=ht(n);return`${e}action::${mt(r)}::Determining`}return Ie(e,t)},"getFooterActionButtonId"),qr={controlId:zv,controlType:o(()=>Sc.ControlType.Button,"controlType"),createFlexChange:w},$n=class $n{};o($n,"ObjectPageFooterAction"),m([y({flex:qr,generate:ye})],$n.prototype,"visible",2),m([y({flex:qr})],$n.prototype,"tooltip",2),m([y({flex:qr})],$n.prototype,"icon",2),m([y({flex:qr})],$n.prototype,"activeIcon",2),m([y({flex:qr})],$n.prototype,"type",2);var xc=$n;var Xr=U(W());var _a=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Ie(e,n)},"getControlId"),ci=class ci{};o(ci,"ObjectPageLayout"),m([y({flex:{controlId:_a,controlType:o(()=>Xr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:w},generate:ye})],ci.prototype,"showHeaderContent",2),m([y({flex:{controlId:_a,controlType:o(()=>Xr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:w}})],ci.prototype,"showAnchorBar",2),m([y({flex:{controlId:_a,controlType:o(()=>Xr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:w}})],ci.prototype,"useIconTabBar",2),m([y({flex:{controlId:_a,controlType:o(()=>Xr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:w}}),F({since:"1.34.0"})],ci.prototype,"alwaysShowContentHeader",2);var Pc=ci;var om=U(W());var fi=class fi{};o(fi,"BaseCustomSection"),m([y({manifest:{path:fn,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),F({since:"1.52.0"})],fi.prototype,"relatedFacet",2),m([y({manifest:{path:fn,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),F({since:"1.52.0"})],fi.prototype,"relativePosition",2),m([y({manifest:{path:o((t,n,i)=>fn(t,{},i,om.ManifestSection.generic),"path")}}),F({since:"1.52.0"})],fi.prototype,"title",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],fi.prototype,"className",2);var eo=fi,Yr=class Yr extends eo{};o(Yr,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Yr.prototype,"fragmentName",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Yr.prototype,"type",2);var to=Yr,Zr=class Zr extends eo{};o(Zr,"ObjectPageCustomSectionView"),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Zr.prototype,"viewName",2),m([y({manifest:{path:fn}}),F({since:"1.52.0"})],Zr.prototype,"type",2);var no=Zr;var Tt=U(W());var am=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),Tt.DefinitionName.Table];return Ie(e,s)},"getTableSectionControlId"),sm=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),"FormGroup"];return Ie(e,s)},"getFormSectionControlId"),lm=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),"Chart"];return Ie(e,s)},"getChartSectionControlId"),ui=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),"Section"];return Ie(e,s)},"getSectionControlId"),cm=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),"SubSection"];return Ie(e,s)},"getSubSectionControlId"),fm=o((e,t,n,i,r)=>{let s=[Ye(n[1],r),"ContactsList"];return Ie(e,s)},"getContactSubSectionControlId"),Ma=class Ma{};o(Ma,"ObjectPageSectionV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],Ma.prototype,"visible",2);var Ac=Ma,ka=class ka{};o(ka,"ObjectPageSectionFormV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],ka.prototype,"visible",2);var Ec=ka,Ua=class Ua{};o(Ua,"ObjectPageSectionChartV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],Ua.prototype,"visible",2);var Ic=Ua,Ba=class Ba{};o(Ba,"ObjectPageSectionTableV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],Ba.prototype,"visible",2);var Oc=Ba,Ha=class Ha{};o(Ha,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],Ha.prototype,"visible",2);var Fc=Ha,Ga=class Ga{};o(Ga,"ObjectPageSectionContactV2"),m([y({flex:{controlId:ui,controlType:o(()=>Tt.ControlType.Section,"controlType"),createFlexChange:w},generate:ye})],Ga.prototype,"visible",2);var Nc=Ga,Ka=class Ka{};o(Ka,"ObjectPageSubSectionV2"),m([y({flex:{controlId:cm,controlType:o(()=>Tt.ControlType.SubSection,"controlType"),createFlexChange:w},generate:ye})],Ka.prototype,"visible",2);var Lc=Ka,Wa=class Wa{};o(Wa,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:sm,controlType:o(()=>Tt.ControlType.Group,"controlType"),createFlexChange:w},generate:ye})],Wa.prototype,"visible",2);var Vc=Wa,Ja=class Ja{};o(Ja,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:lm,controlType:o(()=>Tt.ControlType.SmartChart,"controlType"),createFlexChange:w},generate:ye})],Ja.prototype,"visible",2);var jc=Ja,Qa=class Qa{};o(Qa,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:fm,controlType:o(()=>Tt.ControlType.SubSection,"controlType"),createFlexChange:w},generate:ye})],Qa.prototype,"visible",2);var Dc=Qa,za=class za{};o(za,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:am,controlType:o(()=>Tt.ControlType.SmartTable,"controlType"),createFlexChange:w},generate:ye})],za.prototype,"visible",2);var wc=za;var At=U(W());var di=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=At.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Ye(a[0],r),Ie(e,a)},"getSmartTableControlId"),io=class io{};o(io,"QuickVariantSelectionOP"),m([y({manifest:{path:o((t,n,i)=>Qt(t,n,i)+At.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],io.prototype,"showCounts",2),m([y({manifest:{path:o((t,n,i)=>Qt(t,n,i)+At.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],io.prototype,"variants",2);var $c=io,vt=class vt{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(vt,"CommonTableSettingsForSections"),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.28.0"})],vt.prototype,"editable",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.95.0"}),ln("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],vt.prototype,"showPasteButton",2),m([y({manifest:{path:An}}),F({since:"1.54.0"})],vt.prototype,"multiSelect",2),m([y({manifest:{path:An}}),F({since:"1.70.0"})],vt.prototype,"selectAll",2),m([y({manifest:{path:An}}),F({since:"1.70.0"})],vt.prototype,"selectionLimit",2),m([y({manifest:{path:Qt}}),F({since:"1.63.0"})],vt.prototype,"quickVariantSelection",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.26.0"})],vt.prototype,"useExportToExcel",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:w}}),F({since:"1.50.0"})],vt.prototype,"exportType",2),m([y({manifest:{path:Qt}}),F({since:"1.48.5"}),ln("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],vt.prototype,"createMode",2),m([y({manifest:{path:Qt}}),F({since:"1.61.0"})],vt.prototype,"disableDefaultInlineCreateSort",2),m([Qe("toolBar")],vt.prototype,"toolBar",2);var gi=vt,pi=class pi extends gi{};o(pi,"ObjectPageResponsiveTable"),m([y({manifest:{path:An}})],pi.prototype,"type",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.Table,"controlType"),createFlexChange:w}})],pi.prototype,"includeItemInSelection",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.Table,"controlType"),createFlexChange:w},generate:ye}),F({since:"1.52.0"})],pi.prototype,"popinLayout",2),m([y({flex:{controlId:di,controlType:o(()=>At.ControlType.Table,"controlType"),createFlexChange:w}}),F({since:"1.16.0"})],pi.prototype,"growingThreshold",2);var mi=pi,ro=class ro extends gi{};o(ro,"ObjectPageAnalyticalTable"),m([y({manifest:{path:An}})],ro.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],ro.prototype,"condensedTableLayout",2);var Rc=ro,oo=class oo extends gi{};o(oo,"ObjectPageGridTable"),m([y({manifest:{path:An}})],oo.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],oo.prototype,"condensedTableLayout",2);var _c=oo,ao=class ao extends gi{};o(ao,"ObjectPageTreeTable"),m([y({manifest:{path:An}})],ao.prototype,"type",2),m([y({manifest:{path:Qt}}),F({since:"1.67.0"})],ao.prototype,"condensedTableLayout",2);var Mc=ao,Rn=class Rn{};o(Rn,"GlobalTableSettings"),m([y({manifest:{path:ki}}),F({since:"1.70.0"})],Rn.prototype,"selectAll",2),m([y({manifest:{path:ki}}),F({since:"1.78.0"})],Rn.prototype,"variantManagement",2),m([y({manifest:{path:ki}})],Rn.prototype,"type",2),m([y({manifest:{path:ki}}),F({since:"1.54.0"})],Rn.prototype,"multiSelect",2),m([y({manifest:{path:ki}}),F({since:"1.67.0"})],Rn.prototype,"condensedTableLayout",2);var kc=Rn;var um=U(W());var qv=o((e,t,n,i,r)=>{let{actionId:a}=ht(n),s=Ye(n[1],r);return`${e}${s}::action::${mt(a).replace(":2f","::")}`},"getActionButtonId"),so={controlId:qv,controlType:o(()=>um.ControlType.Button,"controlType"),createFlexChange:w},_n=class _n{};o(_n,"ObjectPageToolBarAction"),m([y({flex:so,generate:ye})],_n.prototype,"visible",2),m([y({flex:so})],_n.prototype,"tooltip",2),m([y({flex:so})],_n.prototype,"icon",2),m([y({flex:so})],_n.prototype,"activeIcon",2),m([y({flex:so})],_n.prototype,"type",2);var Uc=_n;function Mn(e){return e.replace("/","::")}o(Mn,"convertActionKey");function Hc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(Hc,"convertSelector");function Xv(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)}o(Xv,"addSmartFilterBarFlex");function Yv(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=mt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),f=c.find(g=>g.startsWith("sSemanticObject")),u=c.find(g=>g.startsWith("sAction")),p=u.split("sAction::")[1].replace(":2f","::");if(f){let g=`${f.split("::")[1]}::${p}`,b=`${c[0]}:::${f}:::${u}`;i.set(g,r),i.set(r,b)}else i.set(p,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(Yv,"filterActions");function Zv(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(Zv,"addColumnActionConfigPart");function eC(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(eC,"getActionId");function tC(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var c,f;let l=Yv(s.name,i);if(l.has(s.id)){let u=l.get(s.id),p=(c=u.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&Zv(s,e,p);let g=s.configPart[p];((f=i.definitions[u])==null?void 0:f.properties[t])&&g&&(g[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(tC,"addActionFlex");function nC(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=St(e[ie.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ie.PropertyName.chart],t):e[ie.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(nC,"addSmartChartFlex");function iC(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===ie.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ie.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTable":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===ie.ControlType.TableColumn)&&sa(e.table,i,n)}o(iC,"addAdditionalFlexChanges");function qa(e,t,n,i){var r,a;try{let s=Cn(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ie.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ie.PageTypeV2.AnalyticalListPage))switch(s.controlId=Hc(s.controlId),s.controlType){case ie.ControlType.SmartFilterBar:{Xv(e,l,s,n);break}case ie.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ie.ControlType.Button:{let c=eC(s);c&&tC(e,l,s,n,c);break}case ie.ControlType.SmartChart:{nC(e,l,s,n);break}default:{iC(e,s,n);break}}}catch(s){X(i,{severity:ie.LogSeverity.Error,message:$.t("FLEXERROR")},...s)}}o(qa,"addFlex");function Ze(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let f=St(e,c);if(f!=null&&f.manifest){let u=f.manifest.path([i],t,a);s=ze(t,u),Zo(f,s,c,e),Zd(l,s,u,r)}}}o(Ze,"transferSettingsOfObject");function Xa(e,t){var r,a,s,l,c,f,u,p,g;let n=e[ie.ManifestSection.generic].pages[t],i=ie.v2.TableTypeV2.ResponsiveTable;return(r=e[ie.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ie.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ie.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((u=(f=(c=n.component)==null?void 0:c.settings)==null?void 0:f.tableSettings)==null?void 0:u.type)||((p=n.component)==null?void 0:p.settings.tableType):((g=n.component)==null?void 0:g.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ie.v2.TableTypeV2.AnalyticalTable),i}o(Xa,"determineTableType");function pm(e,t,n,i,r,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,u=JSON.parse(f.substr(1,f.length)),p=e.Text&&e.Text._attributes&&e.Text._attributes.text;p||(p=e.Label&&e.Label._attributes&&e.Label._attributes.text);let g={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.id}:{},...p?{text:p}:{},...u,...u.columnKey?{columnKey:u.columnKey}:{},...u.columnIndex?{columnIndex:Number(u.columnIndex)}:{},...u.leadingProperty?{leadingProperty:u.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(g.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(g)}}o(pm,"evaluateFragmentColumn");function rC(e,t,n,i){let r;if(e===ie.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===ie.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[a].fragmentName)}return r}o(rC,"determineCellsFragmentName");function oC(e,t,n,i,r,a,s){var l;if(e[0]){let f=JSON.parse((0,dm.xml2json)(e[0].fileContent,{compact:!0}))[Yt],u=Rr(f);if(u)if((l=t[ie.PropertyName.table])!=null&&l.columns||(t[ie.PropertyName.table].columns={}),Array.isArray(u))for(let p of u)pm(p,n,i,r,t,a,s);else pm(u,n,i,r,t,a,s)}}o(oC,"analyzeFilteredFragments");function aC(e,t,n,i,r){for(let a of Object.keys(e)){let s=a.split("|"),[l,c]=s,f=s[2],u=ie.ViewTemplateType[l];if(u&&"|"+c===t){let p=e[a].type?e[a].type.toLowerCase():"xml",g=e[a].fragmentName;if(!g)continue;let b=rC(u,e,c,f),x=g.split(".");g=x[x.length-1]+ie.FRAGMENTNAMEPART+p;let I=r.filter(L=>L.dataSourceUri.endsWith(g));oC(I,i,e,a,f,u,b)}}}o(aC,"processViewExtensions");function zi(e,t,n,i,r,a){if(!r)return;let s="|"+(a&&a.target?a.target:n.entitySet);if(t[ie.ManifestSection.ui5]&&t[ie.ManifestSection.ui5].extends&&t[ie.ManifestSection.ui5].extends.extensions&&t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),c=t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!c)return;aC(c,s,a,e,r)}}o(zi,"addFragments");function Ya(e,t,n){if(e.header={actions:{}},n[ie.DefinitionName.HeaderActionsStandard]){let i=n[ie.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ie.PageTypeV2.ListReport,r,{})}}o(Ya,"importHeaderActions");var we=U(W());var mm=U(W());var Gc={};So(Gc,{ANNOERR:()=>AC,ANNOTATIONFILE:()=>EC,COMPONENTNOTDEFINED:()=>IC,CONTEXTPATHCOULDNOTBERESOLVED:()=>CC,ENTITYSETNOTFOUND:()=>vC,FLEXERROR:()=>$C,INCONSISTENTSCHEMA:()=>BC,INVALIDANCHOR:()=>RC,INVALIDSPECFORV4:()=>cC,INVALIDTARGETDEFINITION:()=>MC,NOALP:()=>SC,NOBASEPATH:()=>fC,NOCHARTS:()=>NC,NOENTITYSET:()=>mC,NOENTITYTYPE4SET:()=>yC,NOFE:()=>pC,NOFRAGMENT:()=>_C,NOGENERICSCHEMA:()=>dC,NOID4SECTION:()=>kC,NOLINEITEMANDCHARTS:()=>LC,NOLINEITEMS:()=>FC,NOLR:()=>xC,NOPAGEFORENTITYSET:()=>gC,NOPAGES:()=>uC,NOPRESENTATIONVARIANT:()=>hC,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>bC,NOPRESENTATIONVARIANTFORSPV:()=>TC,NOROUTING:()=>OC,NOROUTINGID:()=>wC,NOTARGET:()=>DC,NOTARGETS:()=>jC,NOTEMPLATE:()=>PC,NOVISUALIZATIONS:()=>VC,UNKNOWNMINUI5VERSION:()=>lC,WRONGMINUI5VERSION:()=>sC,XMLPARSEFAILURE:()=>UC,default:()=>HC});var sC="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",lC="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",cC="The given specification version cannot be used for apps of OData V4, upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",fC="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",uC="No pages found in manifest for app with id '{{- appId}}'",pC="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",dC="No generic schema found while generating page schema for {{- pageType}}",gC="No page found in manifest for entitySet '{{- entitySet}}'",mC="No entitySet defined for page '{{- pageName}}'",yC="No entityType could be found for the given entity set '{{- entitySetName}}'",hC="No PresentationVariant defined for '{{- key}}'",bC="No PresentationVariant found for default SelectionPresentationVariant",TC="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",vC="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",CC="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",xC="No page found in manifest for list report",SC="No page found in manifest for analytical list page",PC="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",AC="Error while parsing annotation files",EC="Annotation file: '{{- file}}'",IC="Component name is not defined for page '{{- pageName}}'",OC="Incomplete manifest definition: no routing defined",FC="UI.LineItem annotation has not been defined",NC="UI.Chart annotation has not been defined",LC="Neither UI.LineItem nor UI.Chart annotation has been defined",VC="Empty Collection for Visualizations",jC="Incomplete manifest definition: no targets defined",DC="Invalid reference: annotation target '{{- target}}' not found",wC="No page found in manifest for routingId '{{- routingId}}'",$C="Error while parsing flex change",RC="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",_C="fragmentName is undefined for columnKey '{{- columnKey}}'",MC="Invalid routing target definition in manifest: '{{- target}}'",kC="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",UC="Parsing of XML file failed with error - {{- error}}",BC="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",HC={WRONGMINUI5VERSION:sC,UNKNOWNMINUI5VERSION:lC,INVALIDSPECFORV4:cC,NOBASEPATH:fC,NOPAGES:uC,NOFE:pC,NOGENERICSCHEMA:dC,NOPAGEFORENTITYSET:gC,NOENTITYSET:mC,NOENTITYTYPE4SET:yC,NOPRESENTATIONVARIANT:hC,NOPRESENTATIONVARIANTFORDEFAULTSPV:bC,NOPRESENTATIONVARIANTFORSPV:TC,ENTITYSETNOTFOUND:vC,CONTEXTPATHCOULDNOTBERESOLVED:CC,NOLR:xC,NOALP:SC,NOTEMPLATE:PC,ANNOERR:AC,ANNOTATIONFILE:EC,COMPONENTNOTDEFINED:IC,NOROUTING:OC,NOLINEITEMS:FC,NOCHARTS:NC,NOLINEITEMANDCHARTS:LC,NOVISUALIZATIONS:VC,NOTARGETS:jC,NOTARGET:DC,NOROUTINGID:wC,FLEXERROR:$C,INVALIDANCHOR:RC,NOFRAGMENT:_C,INVALIDTARGETDEFINITION:MC,NOID4SECTION:kC,XMLPARSEFAILURE:UC,INCONSISTENTSCHEMA:BC};function gm(e){e.addResourceBundle(e.language,"translation",Gc)}o(gm,"initI18n");function at(e="en"){$.init({resources:{en:{translation:mm.default}},lng:e,fallbackLng:"en",joinArrays:`
87
87
 
88
- `}),pm($)}s(at,"initI18n");var Ee=B(W());function yi(e,t,n){var r;let i;for(let o in e){let a=e[o];if(sn((r=a.component)==null?void 0:r.name)===Ee.PageTypeV2.ObjectPage&&a.entitySet===t)return n.unshift(o),a;if(a.pages&&(i=yi(a.pages,t,n),i))return n.unshift(o),i}}s(yi,"findObjectPageV2");function qi(e,t){var n;for(let i in e){let r=e[i];if(sn((n=r.component)==null?void 0:n.name)===Ee.PageTypeV2.ListReport)return t.push(i),r}}s(qi,"findListReportPageV2");function Xi(e){if(!e.manifest[Ee.ManifestSection.generic]){X(e.logger,{severity:Ee.LogSeverity.Error,message:$.t("NOFE"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}let t=e.manifest[Ee.ManifestSection.generic].pages;if(!t){X(e.logger,{severity:Ee.LogSeverity.Error,message:$.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}return t}s(Xi,"getV2Pages");function Yi(e,t,n){var i;if(!e){X(t,{severity:Ee.LogSeverity.Error,message:$.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;X(t,{severity:Ee.LogSeverity.Error,message:$.t("NOENTITYSET",{pageName:r}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}})}}s(Yi,"checkV2Page");function Zi(e,t,n){var i;for(let r in e){let o=e[r];if(t.push(r),sn((i=o.component)==null?void 0:i.name)===Ee.PageTypeV2.AnalyticalListPage)return o}X(n,{severity:Ee.LogSeverity.Error,message:$.t("NOALP"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}})}s(Zi,"findAnalyticalListPage");function Kc(e,t){let n=e.split("|");return Ee.v2.SectionPosition[n[0]]&&n[1]===t}s(Kc,"isAssociatedCustomSection");function gm(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Ee.v2.SAPUI5_VIEW_EXTENSION}/${Ee.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Kc(r,t)&&(i[r]=n[r]);return i}s(gm,"findCustomSectionExtensions");function HC(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}}s(HC,"removeEmptySettingsOfFooter");function GC(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}s(GC,"removeEmptySettingsOfFilterBar");function KC(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}}s(KC,"removeEmptySettingsOfToolBar");function Za(e){KC(e),GC(e),HC(e)}s(Za,"removeEmptySettings");var Jc={};So(Jc,{AnalyticalListPage:()=>Vt,ListReport:()=>kt,ObjectPage:()=>st,OverviewPage:()=>De});var es=B(W());var Vt=class{};s(Vt,"AnalyticalListPage"),m([y({flex:{controlId:Xo,controlType:()=>es.ControlType.DynamicPage,createFlexChange:w}})],Vt.prototype,"fitContent",2),m([Qe("table")],Vt.prototype,"table",2),m([Qe("template::SmartFilterBar")],Vt.prototype,"filterBar",2),m([Qe("analyticalListPageChart")],Vt.prototype,"chart",2),m([Qe("analyticalListFooter")],Vt.prototype,"footer",2),Vt=m([Cn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:es.v2.FE_TEMPLATE_V2_ALP})],Vt);var lo=B(W());var kt=class{};s(kt,"ListReport"),m([y({flex:{controlId:Xo,controlType:()=>lo.ControlType.DynamicPage,createFlexChange:w}})],kt.prototype,"fitContent",2),m([Qe("listReportFilter")],kt.prototype,"filterBar",2),m([Qe("listReport")],kt.prototype,"table",2),m([Qe("listReportFooter")],kt.prototype,"footer",2),kt=m([Cn({id:lo.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:lo.v2.FE_TEMPLATE_V2_LIST_REPORT})],kt);var Wc=B(W());var st=class{};s(st,"ObjectPage"),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.52.0"})],st.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.52.1"})],st.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.48.0"})],st.prototype,"allowDeepLinking",2),m([y({manifest:{path:t=>Ft(t)}}),F({since:"1.52.0"})],st.prototype,"navToListOnSave",2),m([Qe("header")],st.prototype,"header",2),m([Qe("sections")],st.prototype,"sections",2),m([Qe("layout")],st.prototype,"layout",2),m([y({manifest:{path:t=>Ft(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:Dd}}),F({since:"1.71.0"})],st.prototype,"globalTableSettings",2),st=m([Cn({id:Wc.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Wc.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],st);var De=class{};s(De,"OverviewPage"),m([y({manifest:{path:()=>He()}})],De.prototype,"globalFilterModel",2),m([y({manifest:{path:()=>He()}})],De.prototype,"globalFilterEntityType",2),m([y({manifest:{path:()=>He()}})],De.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:()=>He()}})],De.prototype,"showBasicSearch",2),m([y({manifest:{path:()=>He()}})],De.prototype,"disableErrorPage",2),m([y({manifest:{path:()=>He()}})],De.prototype,"smartVariantRequired",2),m([y({manifest:{path:()=>He()}})],De.prototype,"bHeaderExpanded",2),m([y({manifest:{path:()=>He()}})],De.prototype,"containerLayout",2),m([y({manifest:{path:()=>He()}})],De.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:()=>He()}})],De.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:()=>He()}})],De.prototype,"enableLiveFilter",2),m([y({manifest:{path:()=>He()}})],De.prototype,"enableLazyRendering",2),m([y({manifest:{path:()=>He()}})],De.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:()=>He()}})],De.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:()=>He()}})],De.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:()=>He()}})],De.prototype,"useDateRangeType",2),m([y({manifest:{path:()=>He()}})],De.prototype,"dataLoadSettings",2),m([y({manifest:{path:()=>He()}})],De.prototype,"resizableLayout",2),De=m([Cn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],De);var Qc=class Qc{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let o=this.controls[r]?this.controls[r]:this.controls[n];return o||(o=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),o?Object.assign(new o,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};s(Qc,"MetadataFactory");var ts=Qc;var lt=B(W());var WC={},JC={Table:ni,ResponsiveTableWithMultiSelect:ni,ResponsiveTableWithInlineDelete:ni},QC={[lt.v2.CardSettingsType.listCardSettings]:Fr,[lt.v2.CardSettingsType.analyticalCardSettings]:Nr,[lt.v2.CardSettingsType.stackCardSettings]:Lr,[lt.v2.CardSettingsType.linkListCardSettings]:Vr,[lt.v2.CardSettingsType.tableCardSettings]:jr},zC={[lt.SAPUI5_VIEW_CLASS]:no,[lt.SAPUI5_FRAGMENT_CLASS]:to,Table:mi,ObjectPageResponsiveTableWithMultiSelect:mi,ObjectPageResponsiveTableWithInlineDelete:mi},qC={[lt.PageTypeV2.AnalyticalListPage]:WC,[lt.PageTypeV2.ListReport]:JC,[lt.PageTypeV2.ObjectPage]:zC,[lt.PageTypeV2.OverviewPage]:QC},zc=class zc extends ts{constructor(){super(Uc,Jc,qC)}};s(zc,"MetadataInstanceFactoryV2");var ct=zc;function XC(e,t,n,i,r){e.filterBar=t.createInstance($e.PageTypeV2.ListReport,$e.DefinitionName.ListReportFilterBar,e.filterBar),Ze(e.filterBar,n.manifest,i[$e.DefinitionName.ListReportFilterBar],r,n.logger)}s(XC,"importFilterBar");function YC(e,t,n,i,r){var a;let o;e?o=i.jsonSchema.definitions[e+"<LineItems>"]:o=i.jsonSchema.definitions[ji],Ze(n.table,i.manifest,o,r,i.logger),(!((a=t.LineItems)!=null&&a.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&X(i.logger,{severity:$e.LogSeverity.Error,message:$.t("NOLINEITEMS")})}s(YC,"importTable");function ZC(e,t,n,i){let r=e.jsonSchema.definitions,o=Xa(e.manifest,i);if(t.table=n.createInstance($e.PageTypeV2.ListReport,o,t.table),Ya(t,n,r),YC(o,r,t,e,i),t.table.toolBar=n.createInstance($e.PageTypeV2.ListReport,$e.DefinitionName.ToolBar,{actions:{}}),Ze(t.table.toolBar,e.manifest,r[$e.DefinitionName.ToolBar],i,e.logger),r[$e.DefinitionName.ActionsLR])for(let l in r[$e.DefinitionName.ActionsLR].properties){let c=Mn(l);t.table.toolBar.actions[c]=n.createInstance($e.PageTypeV2.ListReport,$e.DefinitionName.Action),Ze(t.table.toolBar.actions[c],e.manifest,r[$e.DefinitionName.Action],i,e.logger)}XC(t,n,e,r,i),t.footer={actions:{}};let a=r[$e.DefinitionName.FooterActionsLR];if(a)for(let l in a.properties){let c=Mn(l);t.footer.actions[c]=n.createInstance($e.PageTypeV2.ListReport,$e.DefinitionName.FooterAction),Ze(t.footer.actions[c],e.manifest,r[$e.DefinitionName.Action],i,e.logger)}}s(ZC,"addSettings");function ns(e){if(at(),!Xi(e))return;let n=new ct,i=n.createPageInstance($e.PageTypeV2.ListReport),r=[],o=qi(e.manifest[$e.ManifestSection.generic].pages,r);if(Yi(o,e.logger,o==null?void 0:o.entitySet),!!o)return ZC(e,i,n,r[0]),e.flex.forEach(a=>{xn(a)&&qa(i,a,e.jsonSchema,e.logger)}),zi(i,e.manifest,o,$e.PageTypeV2.ListReport,e.fragments),Za(i),i}s(ns,"createListReportConfig");var Ve=B(W());function ex(e,t,n,i){var c,f;let r=Xa(e.manifest,i),o=e.jsonSchema.definitions;if(Ya(t,n,o),t.table=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Ze(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.ToolBar,{actions:{}}),Ze(t.table.toolBar,e.manifest,o[Ve.DefinitionName.ToolBar],i,e.logger),o[Ve.DefinitionName.ActionsLR])for(let u in o[Ve.DefinitionName.ActionsLR].properties){let p=Mn(u);t.table.toolBar.actions[p]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.Action),Ze(t.table.toolBar.actions[p],e.manifest,o[Ve.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Ze(t.filterBar,e.manifest,o[Ve.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Ze(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let a=o[Ve.DefinitionName.FooterActionsLR];if(a)for(let u in a.properties){let p=Mn(u);t.footer.actions[p]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.FooterAction),Ze(t.footer.actions[p],e.manifest,o[Ve.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(f=(c=e.manifest[Ve.ManifestSection.generic].pages[i].component)==null?void 0:c.settings)==null?void 0:f.keyPerformanceIndicators;l&&Object.keys(l).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Ze(t.keyPerformanceIndicators[u],e.manifest,o.KPISettings,i,e.logger,u)})}s(ex,"addSettings");function is(e){if(at(),!Xi(e))return;let n=new ct,i=n.createPageInstance(Ve.PageTypeV2.AnalyticalListPage),r=[],o=Zi(e.manifest[Ve.ManifestSection.generic].pages,r,e.logger);if(Yi(o,e.logger,o==null?void 0:o.entitySet),!!o)return ex(e,i,n,r[0]),e.flex.forEach(a=>{xn(a)&&qa(i,a,e.jsonSchema)}),zi(i,e.manifest,o,Ve.PageTypeV2.AnalyticalListPage,e.fragments),Za(i),i}s(is,"createAnalyticalListPageConfig");var _=B(W());var co=require("@sap-ux/vocabularies-types/vocabularies/UI");var nx=[_.ControlType.Avatar,_.ControlType.ObjectPageLayout,_.ControlType.DynamicPage];function ix(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(`${co.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${_.ActionTitlePrefix}${t}`;else if(e[0].indexOf(co.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}s(ix,"getSingleSelectorIdPart");function rx(e){let t,n=e.split(":::");if(n.length===1)t=ix(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(`::${co.UIAnnotationTerms.LineItem}`,`/@${co.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}s(rx,"getFacetID");function ox(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(a=>{var l,c,f;try{let u=xn(a),p=u&&((l=u.controlId)==null?void 0:l.split("--"))||[];if(u&&((c=p[0])!=null&&c.includes(_.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((f=p[0])!=null&&f.endsWith(t))){let g=p[1].replace(/:3a:3a/g,"::");r.exec(g)!==null&&(g=g.split("template:::TableColumn:::")[1]);let b=rx(g);g=Hc(g).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${g}::${u.content.property}`]={controlId:g,propertyId:u.content.property,facetId:b,newValue:u.content.newBinding!==void 0?u.content.newBinding:u.content.newValue,controlType:u.controlType,creation:u.creation}}}catch(u){X(n,{severity:_.LogSeverity.Error,message:$.t("FLEXERROR")},...u)}}),Object.entries(i).sort((a,l)=>a[1].creation-l[1].creation).reduce((a,[l,c])=>(a[l]=c,a),{})}s(ox,"prepareFlexChanges");var ax=s(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");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(j,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function sx(e,t,n,i,r,o){let a;r?a=[r.replace(/@/g,"")]:a=[o.replace(/@/g,""),o==null?void 0:o.replace(/::@com.sap.vocabularies/g,_.VOCWITHSLASH)];for(let l in e){let c=e[l],f=c.propertyId===t,u=t==="columns"&&c.controlType===_.ControlType.TableColumn;(f||u)&&a.indexOf(c==null?void 0:c.facetId)>-1&&sa(n,c,i.jsonSchema)}}s(sx,"importFlexChangesOfTable");function lx(e,t){return e.facetId==="template"&&t}s(lx,"isStandardActionFlexChange");var mm=s((e,t,n=!1)=>{if(!n)return t.every(a=>e.includes(a));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,o=e.slice(i,r);return o.length===t.length&&t.every(a=>o.includes(a))},"idElementChecker");function cx(e,t,n,i,r,o){var I;let a=!1,l=!1;o?(a=l=n.test(t.controlId),r&&(a=l&&i.test(t.controlId))):r&&(a=i.test(t.controlId));let c=t.controlId.split("::"),f=t.controlType===_.ControlType.GroupElement&&l,u=((I=t.facetId)==null?void 0:I.includes(_.ActionTitlePrefix))&&!r&&a,p=r&&mm(c,r.split("::"))&&a,g=e.title&&mm(c,e.title.split("::"),!0),b=!t.facetId&&nx.includes(t.controlType),x=lx(t,l);return f||u||p||g||b||x}s(cx,"matchSelector");function fx(e,t,n,i,r,o){var c;let a=new RegExp(`.*${o}`),l=new RegExp(`.*${r}`);for(let f in n){let u=n[f];if(u.propertyId!==i||u.controlType!==((c=e.properties[u.propertyId])==null?void 0:c[_.SchemaTag.controlType]))continue;cx(e,u,a,l,r,o)&&(t[i]=u.newValue)}}s(fx,"importFlexChanges");function ux(e,t,n,i){if(e&&t)for(let r in e){let o=t[r];o&&(X(n.logger,{severity:_.LogSeverity.Warning,message:Yo(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}s(ux,"checkDeprecatedProperties");function px(e,t,n,i,r,o,a){let l=a!=null&&a.id?a.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,f;a!=null&&a.title?(c=e.manifest.path(t,{},a.title),f=ze(n.manifest,c),Object.values(f).length===0&&(c=e.manifest.path(t,{},l),f=ze(n.manifest,c))):(c=e.manifest.path(t,{},l),f=ze(n.manifest,c));let u=e.manifest.import;if(u&&typeof u=="function"){let p=u(f,a==null?void 0:a.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in f&&(i[r]=f[p])}return ux(f,o,n,c),f}s(px,"importManifestSetting");function ft(e,t,n,i,r,o){var l,c;if(!n)return;let a=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let f in n.properties||n){let u=St(t,f);if(f==="columns"||u!=null&&u.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSubSectionTableV2"))sx(i.flexChanges,f,t,e,r.title,r.id);else{let p=(r==null?void 0:r.title)||(r==null?void 0:r.id);fx(n,t,i.flexChanges,f,p,o)}else u!=null&&u.manifest&&px(u,i.pageKeys,e,t,f,a,r)}}s(ft,"transferSettingsAndFlexChanges");function hm(e,t,n,i){let r=mt(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${og}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${ta}${r}`;break}}return r.replace(/@/g,"")}s(hm,"getActionId");function dx(e,t,n,i){var r;for(let o in t){let a=t[o].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(a)){let l=(r=t[o].$ref.split("<"))==null?void 0:r[1].split(">")[0],c=hm(a,o,"","");e.actions[o]=i.factory.createInstance(_.PageTypeV2.ObjectPage,l,{}),ft(n,e[_.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},c)}}}s(dx,"fillStandardActions");function rs(e,t,n,i,r,o){var l;n[_.PropertyName.actions]={};let a=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};o&&(c.id=o);for(let f in t){let u=Mn(f),p=hm(a,u,r,o);p&&(n[_.PropertyName.actions][u]=i.factory.createInstance(_.PageTypeV2.ObjectPage,a),ft(e,n[_.PropertyName.actions][u],e.jsonSchema.definitions[a],i,c,p)),(l=n[_.PropertyName.actions])!=null&&l[u]&&Object.keys(n[_.PropertyName.actions][u]).length===0&&delete n[_.PropertyName.actions][u]}}dx(n,t,e,i),Object.keys(n[_.PropertyName.actions]).length===0&&delete n[_.PropertyName.actions]}s(rs,"fillActions");function gx(e,t,n,i,r){var a;let o;i[t.id].form.fields={};for(let l in n){o=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(_.PageTypeV2.ObjectPage,"Field");let c=(a=t.title)!=null&&a.includes(_.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${o}`:`${t.title}::${o}`;ft(e,i[t.id].form.fields[l],e.jsonSchema.definitions[_.DefinitionName.Field],r,{},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}s(gx,"fillFields");function mx(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}s(mx,"prepareTableSchema");function yx(e,t,n,i,r){var l,c;let o=t.title||t.id.replace("@com.sap","com.sap"),a=n&&n.sections&&n.sections[o];if(a||r.flexChanges){let f=((l=a==null?void 0:a.tableSettings)==null?void 0:l.type)||"ResponsiveTable",u=r.factory.createInstance(_.PageTypeV2.ObjectPage,`ObjectPage${f}`,{toolBar:{}});i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][_.PropertyName.table]=u;let p=e.jsonSchema.definitions,g=mx(f,t,p);ft(e,i[t.id],t.schema,r,{title:t.title}),ft(e,i[t.id][_.PropertyName.table],g,r,t);let b=JSON.parse(JSON.stringify(p))[`Actions<${t.id}>`];if(b!=null&&b.properties){let x=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");rs(e,b.properties,i[t.id][_.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",x)}Object.keys(i[t.id][_.PropertyName.table].toolBar).length===0&&delete i[t.id][_.PropertyName.table].toolBar}}s(yx,"fillTableInConfig");function hx(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?ea(r.$ref):void 0;if(o){let a={key:t.replace("@",""),target:o};zi(n[t],e.manifest,i,_.PageTypeV2.ObjectPage,e.fragments,a)}}s(hx,"fillCustomColumnsInConfig");function bx(e,t,n,i,r){let o=t.id.replace("@com.sap","com.sap"),a=n&&n.sections&&n.sections[o];i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][_.PropertyName.chart]=r.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageChart"),(a||r.flexChanges)&&(ft(e,i[t.id],t.schema,r,{title:t.title}),ft(e,i[t.id][_.PropertyName.chart],e.jsonSchema.definitions[_.DefinitionName.ObjectPageChart],r,t))}s(bx,"fillChartSection");function Tx(e,t,n,i){n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&ft(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}s(Tx,"fillHeaderSection");function vx(e,t,n,i){var c;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&ft(e,n[t.id],t.schema,i,{title:t.title});let o=e.jsonSchema.definitions[`SectionActions${r}`],a=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");o!=null&&o.properties&&rs(e,o.properties,n[t.id].form,i,"FormAction",a);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&gx(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]}s(vx,"fillFormSection");function ym(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&ft(e,i[t.id],t.schema,r,t);let o,a=t.schema.properties;(l=a==null?void 0:a.subsections)!=null&&l.properties?o=a.subsections.properties:o=a,qc(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}s(ym,"fillSubSection");function qc(e,t,n,i,r){var a;let o=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),f={id:c,type:ax(t[l]),schema:t[l],title:ol(t[l],e.jsonSchema)};if(f.schema.$ref&&f.type)switch(f.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{f.schema=o[`${f.type}<${l}>`],yx(e,f,n,i,r),hx(e,c,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{f.schema=o[`${f.type}<${l}>`],bx(e,f,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{f.schema=o[`${f.type}<${l}>`],vx(e,f,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{f.schema=o[`${f.type}<${l}>`],ym(e,f,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{f.schema=o[`${f.type}<${l}>`],Tx(e,f,i,r);break}}else(a=f.schema.properties)!=null&&a.subsections&&(f.schema=o[`${f.type}<${l}>`],ym(e,f,n,i,r))}}s(qc,"fillSectionsInConfig");function Cx(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let a="fragmentName"in e[o]?n.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];ft(r,a,l,n,{id:o}),t.sections.custom.push(a)}}}s(Cx,"fillCustomSectionsInConfig");function xx(e,t){var u,p;let n=t.factory.createPageInstance(_.PageTypeV2.ObjectPage);ft(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;ft(e,n.globalTableSettings,i[_.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.ObjectPageHeader);let r=i[_.DefinitionName.ObjectPageHeader]?i[_.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];ft(e,n.header,r,t);let o=i[_.DefinitionName.HeaderActions];o&&rs(e,o.properties,n.header,t,"HeaderAction"),n.footer={};let a=i[_.DefinitionName.FooterActions];a&&rs(e,a.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageLayout"),ft(e,n.layout,i[_.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[_.DefinitionName.HeaderSections];if(l){let g=(u=t.v2Page.component)==null?void 0:u.settings;qc(e,l.properties,g,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[_.DefinitionName.Sections];if(c){let g=(p=t.v2Page.component)==null?void 0:p.settings;qc(e,c.properties,g,n.sections,t)}let f=gm(e.manifest,e.entitySet);return Cx(f,n,t,i,e),n}s(xx,"fillConfig");function os(e){at();let t=Xi(e);if(!t)return;let n=e.entitySet,i=[],r=yi(t,e.entitySet,i);if(Yi(r,e.logger,n),!r)return;let o=ox(e.flex,n),a=new ct;return xx(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:a})}s(os,"createObjectPageConfigV2");function ss(e,t){var n,i;return(n=e.component)!=null&&n.name?zo(sn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}s(ss,"generateId");function Sx(e,t,n,i,r,o,a){e.navigation={};let l=bm(t.pages,n,i,r,o);for(let c in l){let f=l[c];a[c]=f}for(let c in t.pages){let f=ss(t.pages[c],c);e.entitySet?e.navigation[f]=l[f].navigationProperty?`${e.entitySet}.${l[f].navigationProperty}`:e.entitySet:e.navigation[f]=l[f].navigationProperty?l[f].navigationProperty:f}}s(Sx,"getPageConfigsAndNavigations");function bm(e,t,n,i,r,o){var l;let a={};for(let c in e){let f=e[c],u=ss(f,c);if(!u)continue;let p={pageType:sn((l=f.component)==null?void 0:l.name),entitySet:f.entitySet,...f.navigationProperty&&{navigationProperty:f.navigationProperty},...f.defaultLayoutType&&{defaultLayoutType:f.defaultLayoutType}};a[u]=p;let g=Object.keys(i).find(b=>b.includes(u))||Object.keys(i).find(b=>b.includes(u.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(g)if(p.pageType===ke.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:o};p.config=ns(b)}else if(p.pageType===ke.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:o};p.config=is(b)}else{let b={manifest:n,flex:t,jsonSchema:i[g],entitySet:p.entitySet,fragments:r,logger:o};p.config=os(b)}f.pages&&Sx(p,f,t,n,i,r,a)}return a}s(bm,"getPagesAndConfigs");var Xc=class Xc extends _i{constructor(t){at();let n;t.manifest[ke.ManifestSection.generic]?n=t.manifest[ke.ManifestSection.generic].pages:X(t.logger,{severity:ke.LogSeverity.Error,message:$.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}}),n||X(t.logger,{severity:ke.LogSeverity.Error,message:$.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ss(n[i],i),o=new An,a=Xe(ke.SchemaType.Application),l=t.appSchemas[a.filename];Ze(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,bm(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),ke.FioriElementsVersion.v2,o)}};s(Xc,"V2AppProvider");var as=Xc;function fo(e,t,n){var r,o;let i={};for(let a in e){let l=e[a];if((r=l.component)!=null&&r.name||X(n,{severity:ke.LogSeverity.Error,message:$.t("COMPONENTNOTDEFINED",{pageName:a}),location:{path:ke.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let c=ss(l,a);i[c]=l}if(t===ke.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=fo(l.pages,t,n);for(let f in c)i[f]=c[f]}}return i}s(fo,"getPages");var hn=B(W());var Bn=B(W());var Zc=B(Vs());var Fe=B(W());var Px=["colorPalette","tabs"];function Ax(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}s(Ax,"createCard");function Tm(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Tm(e,n.join("|"))}return t}s(Tm,"findAvailableId");function uo(e,t,n,i,r,o,a){i!=null&&i.properties&&Yc(e,t,n,i.properties,r,o,a)}s(uo,"transferManifestEntriesOVP");function hi(e,t,n,i){return e.createInstance(Fe.PageTypeV2.OverviewPage,i,n,t)}s(hi,"assignReflectMetadataRules");function Ex(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(j),r=e.appSchema.definitions[i[1]];t=hi(e.factory,i[1],t,"CustomCard"),uo(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}s(Ex,"processAnyOfDefinitionsOfOVP");function Ix(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!Px.includes(i)?t[i]=(0,Zc.default)(t[i]||{},r||{},{arrayMerge:il}):t[i]=r}s(Ix,"checkSyncRuleForExport");function Ox(e,t,n,i,r,o){let a=e.manifest.path([...t,n]),l=ze(i.manifest,a);if(n in Fe.v2.CardSettingsType||n==="settings")l.settings=(0,Zc.default)(l.settings||{},r||{},{arrayMerge:il});else if(r!==void 0){let c=e.manifest.export;Ix(c,l,o,n,r)}else l[n]!==void 0&&delete l[n]}s(Ox,"transferToManifest");function Fx(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,a;Object.values(Fe.v2.CardTemplateType).includes(o)?a=Object.keys(t.definitions).filter(l=>{var f;let c=(f=t.definitions[l].properties)==null?void 0:f.template;if(c!=null&&c.enum)return c.enum.indexOf(e[r].template)>-1;if(c!=null&&c.const)return c.const===e[r].template}):a=["CustomCard"],e[r]=hi(n,a[0],e[r],"CustomCard"),Ax(r,i.manifest[Fe.ManifestSection.ovp]),uo(e[r],i,t,t.definitions[a[0]],n,[r])}),Object.keys(i.manifest[Fe.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Fe.ManifestSection.ovp].cards[r]})}s(Fx,"transferCards");function Nx(e,t,n){if(t==="cards")Fx(e.currentObject,e.appSchema,n,e.exportResults);else{let i=vn(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Fe.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(j);e.currentObject=hi(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],uo(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Yc(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Yc(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}s(Nx,"exportOfObject");function Yc(e,t,n,i,r,o,a){for(let l in i){if(l==="description"||a&&o&&a[o.length]!==l&&!Xs(o,a))continue;let c=e[l],f=St(e,l),u={pathHierarchy:o,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:r,exportResults:t};o[o.length-1]==="anyOf"?(u.currentObject=e[o[o.length-2]],c=Ex(u)):c&&typeof c=="object"&&i[l]&&Nx(u,l,r),f!=null&&f.manifest&&Ox(f,o,l,t,c,e)}}s(Yc,"processProperties");function Lx(e,t,n,i,r,o,a){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),f=Yd(o,n,e.ui5Version,a,c),u=JSON.parse(JSON.stringify(e.exportResults.manifest));u["sap.app"].id=e.appId;let p=n.flex.createFlexChange(f,u);e.exportResults.flexChanges.find(b=>{let x=!1,I=JSON.parse(b);I={content:I.content,selector:I.selector};let L=JSON.parse(p);return L={content:L.content,selector:L.selector},JSON.stringify(I)===JSON.stringify(L)&&(x=!0),x})||e.exportResults.flexChanges.push(p)}s(Lx,"evaluateFlexRule");function Vx(e,t,n,i,r,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={},e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated);else{let a=t.manifest.export;a&&typeof a=="function"?a(n,i,r,o):a!==!1&&(n[o]=i[r]),e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated}}s(Vx,"exportConfigValueToManifest");function jx(e,t,n,i,r){let o=ze(e.exportResults.manifest,t),a=n.manifest.key||i;if(r[i]!==void 0)Vx(e,n,o,r,i,a);else{let l=n.manifest.delete;l&&typeof l=="function"?l(o,r,i,a):Object.prototype.hasOwnProperty.call(o,a)&&delete o[a],e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated,hr(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}s(jx,"evaluateManifestRule");function Dx(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Fe.FacetTitlePrefix)?r.split(Fe.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}s(Dx,"getManifestPathOfSections");function wx(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}s(wx,"getManifestPathOfTable");function $x(e,t,n,i,r){let o;return t[0]===Fe.PropertyName.sections?o=Dx(t,o,n,e,r):t[0]===Fe.PropertyName.table?o=wx(t,o,n,e,i):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}s($x,"getManifestPath");function Rx(e,t,n,i,r,o,a){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)Lx(e,i,t,r,o,n,a);else if(t.manifest){let c=$x(e,i,t,n,o);jx(e,c,t,a,n)}}s(Rx,"evaluateExportRule");function _x(e,t,n){var a;let i=e.split("|"),r=i[1],o=i[2];if(r===t.entitySet){let l=(a=t.config)==null?void 0:a.filter(c=>(c.tabKey===o||o===void 0&&c.tabKey===""||o&&t.sectionKey===o)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(ha(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Fe.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Fe.ViewTemplateType.ResponsiveTableColumnsExtension,Fe.ViewTemplateType.ResponsiveTableCellsExtension);ha(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}s(_x,"deleteObsoleteColumn");function Mx(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Ng(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated,_x(r,e,n))}s(Mx,"deleteObsoleteColumnsFromFragment");function kx(e,t,n,i,r){let o={};for(let a of e){if(!a.className||!a.fragmentName||!a.columnKey||!a.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(a.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=ba(n,i,a.tabKey||r,a.extensionType);o[l]||(o[l]={viewTemplateType:c,columns:[]}),o[l].columns.push(a)}return o}s(kx,"clusterConfigColumnsByPath");function vm(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,a=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Fe.v2.TableColumnExtensionTypeV2){let{path:c}=ba(e.v2Page,a,r,l);if(!c)continue;let f={path:c,exportResults:e.exportResults,entitySet:a,config:t,sectionKey:r,extensionType:l,appId:e.appId};Mx(f)}if(t){let l=kx(t,n,e.v2Page,a,r);for(let c in l)$l(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}s(vm,"transferColumnExtensions");function Bx(e,t,n,i,r,o){let a=[],l=n.split("|")[1];if(!t)return;for(let f of t){let u=Tm(a,[f.relativePosition,l,f.relatedFacet].join("|"));a.push(u)}for(let f=0;f<a.length;f++){let p=o.anyOf.find(b=>{var x;return(x=b.$ref)==null?void 0:x.includes(t[f].constructor.name)}).$ref.split(j),g=e.appSchema.definitions[p[p.length-1]];kn(e,t[f],i,[...r,a[f]],g)}let c=ze(e.exportResults.manifest,dl());for(let f in c)Kc(f,l)&&!a.includes(f)&&delete c[f]}s(Bx,"transferManifestExtensions");function Ux(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Fe.PropertyName.table){n=e[i-1];break}return Ye(n,t)}s(Ux,"getSectionId");function Hx(e,t,n,i,r,o){let a=t.propertyDefinition;!e||!(a!=null&&a.additionalProperties)||Object.keys(e).forEach(l=>{let c=vn(t.appSchema,n,e[l],a.additionalProperties,i,t.factory,t.pageType);kn(t,c.configObject,r,[...o,i],c.targetDefinition,l)})}s(Hx,"transferIndexTable");function Gx(e,t,n,i,r,o){let a,l=ea(e.$ref);l&&(a={target:l,key:Ux(t,n)}),vm(i,r==null?void 0:r.custom,o.targetDefinition,a)}s(Gx,"transferCustomColumns");function Kx(e,t,n,i,r,o,a){e.anyOf.forEach(l=>{let c=vn(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&kn(t,c.configObject,o,[...a,r],c.targetDefinition,c.title)})}s(Kx,"handleAnyOfDefinitions");function Wx(e,t,n,i,r,o,a){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")Bx(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){Gx(l,t,a,e,n,o);return}else o?kn(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&Kx(l,e,a,n==null?void 0:n[r],r,i,t)}s(Wx,"transferComplexProperty");function kn(e,t,n,i,r,o){let a;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Xs(i,e.entityPathArray))continue;a=t==null?void 0:t[l];let c=t&&Md(t,l),f=c?[...n,c]:n,u=St(t,l),p=e.propertyDefinition=r.properties[l],g=e.nextDefinition=vn(e.appSchema,o,a,p,l,e.factory,e.pageType);if(Rx(e,u,t,[...i],f,o,l),Hx(a,e,o,l,f,i),a===void 0||typeof a=="object")Wx(e,i,t,f,l,g,o);else if((p==null?void 0:p.$ref)===j+"TableCustomColumns"){vm(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}s(kn,"transferManifestEntriesAndFlexChange");function Cm(e,t,n,i,r,o,a){let l=t[t.length-1],c=e.definitions[l];n[i]=hi(r,i,n[i],l),o.push(i),ef(r,n[i],a,c.properties,e,o)}s(Cm,"transferSettingsOfRef");function Jx(e,t,n,i,r,o,a){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(j);Cm(i,l,e,t,r,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${j}${Bn.v2.cardTemplateSettingsMap[e.template]}`.split(j);Cm(i,c,e,t,r,o,a)}}s(Jx,"processPropertiesOfObject");function Qx(e,t,n,i,r,o,a){let l=St(e,t);if(l!=null&&l.manifest){let c=l.manifest.path([...n,t]),f=ze(i,c);Object.prototype.hasOwnProperty.call(f,t)&&Zo(l,f,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&Jx(e,t,r,o,a,n,i)}s(Qx,"processOvpProperty");function ef(e,t,n,i,r,o){for(let a in i)Qx(t,a,o,n,i,r,e)}s(ef,"processOvpProperties");function zx(e,t,n,i){ef(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Bn.ManifestSection.ovp].cards).forEach(r=>{let o=t[Bn.ManifestSection.ovp].cards[r].template,a=Bn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[r]=hi(i,a,{},"CustomCard"),e.cards=hi(i,a,e.cards,"CustomCard"),ef(i,e.cards[r],t,n.definitions[a].properties,n,[r])})}s(zx,"addSettings");function ls(e){let t=new ct,n=t.createPageInstance(Bn.PageTypeV2.OverviewPage);return e.jsonSchema&&zx(n,e.manifest,e.jsonSchema,t),n}s(ls,"createOverviewPageConfig");var tf=class tf extends _i{constructor(t){let n={},i=t.manifest[hn.ManifestSection.ovp],r=new An,o=Xe(hn.SchemaType.Application);Ze(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let a=Object.keys(t.appSchemas).find(u=>u.includes(hn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[a]},c={pageType:hn.PageTypeV2.OverviewPage,config:ls(l),entitySet:i.globalFilterEntitySet},f=zo(c.pageType,c.entitySet);n[f]=c,super(t.manifest,t.appSchemas,f,n,hn.FioriElementsVersion.v2,r,t.logger)}};s(tf,"V2OvpProvider");var cs=tf;var xm=require("fs"),bi=require("path"),nf=B(W());var Sm=s((e,t,n=__dirname)=>{let i=t===nf.SchemaType.Application?`${nf.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,bi.join)(n,"schemas",e,i);if(n.endsWith((0,bi.join)("specification","packages","specification")))return(0,bi.join)(n,"dist","schemas",e,i);if(n.endsWith((0,bi.join)("src","specification")))return(0,bi.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,bi.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),qx=s(async e=>new Promise((t,n)=>{(0,xm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),fs=s(async(e,t)=>{try{let n=Sm(e,t,__dirname);return await qx(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Xx(e,t){let n={},i=[];switch(i=[Z.SchemaType.Application],e){case Z.TemplateType.ListReportObjectPageV2:i.push(Z.SchemaType.ListReport,Z.SchemaType.ObjectPage);break;case Z.TemplateType.AnalyticalListPageV2:i.push(Z.SchemaType.AnalyticalListPage,Z.SchemaType.ObjectPage);break;case Z.TemplateType.OverviewPageV2:i.push(Z.SchemaType.OverviewPage);break;default:break}for(let r of i){let o=Xe(r);n[o.filename]=await fs(t,r)}return n}s(Xx,"getGenericSchemas");function Am(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Jt(Z.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:o,Facets:a}=r.annotations[i];o&&!o.qualifier&&t.LineItems.push(r.name),a&&!a.qualifier&&t.Facets.push(r.name)}return t}s(Am,"getAnnotationsForUi");function po(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}s(po,"getEntitySetByEntitySetName");function Yx(e,t,n){var r;let i=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in i){let a=i[o].entitySet;e.entitySet=po(a,e.serviceAVT);let l=Xe(Z.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||a),c=Xe(Z.SchemaType.ListReport);t[l.filename]=mo(e,n[c.filename])}}s(Yx,"generateAppSchemaV2LR");function Pm(e,t,n){let i=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let o=i[r].entitySet,a=po(o,e.serviceAVT);a||X(e.logger,{severity:Z.LogSeverity.Error,message:$.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=a;let l=Xe(Z.SchemaType.ObjectPage,(a==null?void 0:a.name)||o),c=Xe(Z.SchemaType.ObjectPage);n[l.filename]=go(e,t[c.filename])}}s(Pm,"generateObjectPageSchemasV2");function Zx(e,t,n,i){var o;let r={};if(i===Z.TemplateType.ListReportObjectPageV2&&n)Yx(e,r,t),Pm(e,t,r);else if(i===Z.TemplateType.AnalyticalListPageV2&&n){let a=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in a){let c=a[l].entitySet;e.entitySet=po(c,e.serviceAVT);let f=Xe(Z.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||c),u=Xe(Z.SchemaType.AnalyticalListPage);r[f.filename]=yo(e,t[u.filename])}Pm(e,t,r)}else if(i===Z.TemplateType.OverviewPageV2){let a=Xe(Z.SchemaType.OverviewPage),l=Xe(Z.SchemaType.OverviewPage);r[a.filename]=ho(t[l.filename],e.manifest)}return{...t,...r}}s(Zx,"generateAppSchemasV2");async function Em(e,t,n){if(e.fioriElementsVersion===Z.FioriElementsVersion.v2){let i=await Xx(n,e.fioriElementsVersion);return Zx(e,i,t,n)}else{let i=$.t("INVALIDSPECFORV4");X(e.logger,{severity:Z.LogSeverity.Info,message:i,location:{path:Z.PACKAGEJSON}})}}s(Em,"generateAppSchemas");function eS(e){let t,n=[];switch(e.templateType){case Z.TemplateType.ListReportObjectPageV2:case Z.TemplateType.AnalyticalListPageV2:t=new as(e);break;case Z.TemplateType.OverviewPageV2:t=new cs(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)});for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)})}return n}s(eS,"importConfigs");function Im(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===Z.SchemaType.Application?r=`${Z.DirName.Schemas}/${Z.FileName.App[0].toUpperCase()}${Z.FileName.App.slice(1)}`:r=`${Z.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}s(Im,"getFileList");async function rf(e){var x,I;at();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:a}=e;new xr().doesUi5VersionFitDistTags((I=(x=t["sap.ui5"])==null?void 0:x.dependencies)==null?void 0:I.minUI5Version,i);let c=tl(t),f=gr(n,i),u=Am(f),p=nl(t,c,i),b=await Em({templateType:p,manifest:t,serviceAVT:f,fragments:r,views:o,fioriElementsVersion:c,logger:i,featureToggles:a},u,p);if(b)return Im(b)}s(rf,"importProjectSchema");async function of(e){var U,te;at();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:a,featureToggles:l}=e;new xr().doesUi5VersionFitDistTags((te=(U=t["sap.ui5"])==null?void 0:U.dependencies)==null?void 0:te.minUI5Version,i);let f=tl(t),u=gr(n,i),p=nl(t,f,i),g={templateType:p,manifest:t,serviceAVT:u,fragments:r,views:o,fioriElementsVersion:f,logger:i,featureToggles:l},b=Am(u),x=await Em(g,b,p);if(!x)return;let L=eS({manifest:t,flexChanges:a,appSchemas:x,templateType:p,logger:i,serviceAVT:u,fragments:r,views:o});return Im(x,L)}s(of,"importProjectSchemaAndConfig");var tS=["header","sections","footer"];function nS(e,t,n,i){t.properties[n][N.SchemaTag.artifactType]=N.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=N.ControlType.Section;break;case"ObjectPageSubSectionV2":r=N.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=N.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=N.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=N.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=N.ControlType.ObjectPageHeaderSection;break}r&&(ye(e,t,n),t.properties[n][N.SchemaTag.controlType]=r)}s(nS,"addFlexChangeForSection");function iS(e,t,n,i,r){return(o,a)=>{if(!o.Determining&&o.$Type===Un.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:f}=ll(o,r);if(!c)return;let u=o.Label||l,p=`HeaderAction<${_e(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let g=n.fullyQualifiedName.replace(`@${Un.UIAnnotationTerms.Identification}`,`/@${Un.UIAnnotationTerms.Identification}`);t.definitions[p][N.SchemaTag.annotationPath]=`/${g}/${a}`,t.definitions[p][N.SchemaTag.actionType]=N.ActionType.Annotation,t.definitions[p].description=u,t.definitions[p][N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:l}],f&&(t.definitions[p][N.SchemaTag.target]=f),i.properties[c]={$ref:`${j}${p}`}}}}s(iS,"addHeaderActionCallBackV2");function rS(e,t,n,i,r,o,a,l){let c,f;if(o.ID&&o.Label?c=o.ID+o.Label.replace(/\s+/g,""):o.ID?c=o.ID:o.Label&&(c=o.Label.replace(/\s+/g,"")),c?f=`${N.DefinitionName.CustomColumns}<${n}><${a}><${c}>`:f=`${N.DefinitionName.CustomColumns}<${n}><${a}>`,e.definitions[f])return f;let u=`${N.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[u]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let p=[],g=r==null?void 0:r.entityTypes.find(x=>x.name===i),b=yi(t[N.ManifestSection.generic].pages,n,p);return wi(e,g,b,t,l,f,u,o.ID),f}s(rS,"ensureCustomColumnDefinitionExists");function bo(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&nS(e,t,"visible",n)}s(bo,"addAppSchemaDefinition");function oS(e,t,n){e.properties[t]={$ref:`${j}${n}`}}s(oS,"addSectionReference");function us(e,t,n,i){let r=_e(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=j+t,i.definitions[r].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[r][N.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=N.FacetTitlePrefix+n.ID,i.definitions[r][N.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=N.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${j}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=`${j}QuickVariant<${t}>`,oa(n.entityType,i,`QuickVariant<${t}>`)}s(us,"addTableDefinition");function aS(e,t,n,i,r,o){if(i.base!==N.FacetBase.LineItem||!t)return;let a=t.split("::")[0],l=`${o}<${t}>`;n.definitions[l]=zn(n,i,t);let c=n.definitions[l];bo(n,c,o,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[N.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],c[N.SchemaTag.annotationPath]=i.annotationPath,yr(i,c,t),us("ObjectPageResponsiveTable",t,i,n),us("ObjectPageGridTable",t,i,n),us("ObjectPageTreeTable",t,i,n),us("ObjectPageAnalyticalTable",t,i,n);let f,u=Cg(i,e.serviceAVT);u&&(f=rS(n,e.manifest,u.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r){let g=r[p];g.base===N.FacetBase.LineItem&&(g.ID===a||p.includes(a))&&Di(!0,n,g.target,g.entityType,g.ID||p,f)}}s(aS,"handleLineItem");function sS(e,t,n,i,r,o=!1){e.definitions[t]=zn(e,n,i);let a=e.definitions[t],l=o?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";bo(e,a,r,l),a.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},a.properties.subsections[N.SchemaTag.isViewNode]=!0}s(sS,"handleSubSection");function lS(e,t,n,i,r){e.definitions[t]=zn(e,n,i);let o=e.definitions[t];bo(e,o,r,"ObjectPageSectionChartV2")}s(lS,"handleSectionChart");function Om(e,t,n,i,r,o){e.definitions[t]=zn(e,n,i);let a=e.definitions[t];bo(e,a,r,o||"CommonHeaderFacetSettings"),a[N.SchemaTag.annotationPath]=n.annotationPath,a[N.SchemaTag.isViewNode]=!0,a[N.SchemaTag.dataType]=aa(n==null?void 0:n.target)}s(Om,"handleHeaderFacet");function cS(e,t,n){let i=e.definitions[t],r=i[N.SchemaTag.dataType]=aa(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}s(cS,"addDataPointHeaderFacetDataType");function fS(e,t,n,i,r){e.definitions[t]=zn(e,n,i);let o=e.definitions[t];return bo(e,o,r,"ObjectPageSectionFormV2"),o[N.SchemaTag.annotationPath]=n.annotationPath,o[N.SchemaTag.isViewNode]=!0,o}s(fS,"handleFormSection");function uS(e,t,n){let i=new Map([[N.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[N.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[N.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[N.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[N.FacetBase.Form,"ObjectPageHeaderSectionForm"],[N.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[N.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[N.FacetBase.LineItem,"ObjectPageSectionTableV2"],[N.FacetBase.Chart,"ObjectPageSectionChartV2"],[N.FacetBase.Address,"ObjectPageSectionAddressV2"],[N.FacetBase.Contact,"ObjectPageSectionContactV2"],[N.FacetBase.Form,"ObjectPageSectionFormV2"],[N.FacetBase.Identification,"ObjectPageSectionFormV2"]]),o=new Map([[N.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[N.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[N.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[N.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[N.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[N.FacetBase.Form,"ObjectPageSubSectionFormV2"],[N.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?o.get(e):r.get(e)}s(uS,"getSectionType");function pS(e,t,n){let i=e.ID||t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${Un.UIAnnotationTerms.Facets}`,e.base)),`${i}`}s(pS,"getReferenceKey");function Nm(e,t,n,i,r,o=!1,a=!1){let l=t[n],c=uS(l.base,o,a),f=pS(l,n,c),u=`${c}<${f}>`;switch(oS(i,f,u),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{o=!a,sS(r,u,l,n,c,a);let p=r.definitions[u].properties.subsections;for(let g in l.facets)Nm(e,l.facets,g,p,r,o,a);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{aS(e,f,r,l,t,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{lS(r,u,l,f,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let p=fS(r,u,l,f,c);yg(N.SectionType.Section,l,p,r,N.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cl(l,f,i,r,N.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cl(l,f,i,r,N.SectionType.Section,N.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Om(r,u,l,f,c);break}case"ObjectPageHeaderSectionDataPoint":{Om(r,u,l,f,c),cS(r,u,l);break}default:i.properties[n]=zn(r,l,f)}}s(Nm,"addSection");function Fm(e,t,n,i,r,o=!1){if(e)for(let a in t)Nm(i,t,a,n,r,!1,o)}s(Fm,"addSectionsFromFacets");function Lm(e,t,n){var u,p,g,b,x,I;let i=t.definitions[N.DefinitionName.Sections];i[N.SchemaTag.isViewNode]=!0,(u=e.entitySet)!=null&&u.entityType&&(i[N.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Un.UIAnnotationTerms.Facets}`);let r=t.definitions[N.DefinitionName.HeaderSections];if(r[N.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(p=e.entitySet)!=null&&p.entityType&&(r[N.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Un.UIAnnotationTerms.HeaderFacets}`),!n)return;let o=Fd((g=e.entitySet)==null?void 0:g.entityType,e.serviceAVT,N.FioriElementsVersion.v2,e.logger),a=Od((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,N.FioriElementsVersion.v2,e.logger),l=o&&!!Object.keys(o).length,c=a&&!!Object.keys(a).length;if(!l&&!c)return;for(let L in n){let U=n[L];(I=(x=e.entitySet)==null?void 0:x.name)!=null&&I.includes(U.entitySet)?(Fm(l,o,i,e,t),Fm(c,a,r,e,t,!0)):Lm(e,t,U.pages)}let f=t.definitions.CustomSections;for(let L in f.properties)i.properties[L]=f.properties[L]}s(Lm,"addSections");function dS(e,t,n){vg(e,t),Tg(e,t,n,iS,!0)}s(dS,"addHeader");function gS(e,t,n,i){let r=Nd(t,n,i,void 0,!0);r&&Ag(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}s(gS,"addRelatedFacetKeysType");function go(e,t){var a;at();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[N.PropertyName.sections]={$ref:j+"Sections"};let r=(a=e.entitySet)==null?void 0:a.entityType;e.entityType=r;let o=e.manifest[N.ManifestSection.generic].pages;return o?(dS(n,r,e.serviceAVT),n.definitions[N.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Lm(e,n,o),gS(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[N.SchemaTag.isViewNode]=!0):delete n.properties[N.PropertyName.sections]),bg(n,e,N.FioriElementsVersion.v2,o),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.ObjectPageResponsiveTable,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,Li(n,tS),n):(X(e.logger,{severity:N.LogSeverity.Error,message:$.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),n)}s(go,"generateObjectPageSchemaV2");var Et=B(W());var mS=["filterBar","table","footer"];function af(e,t,n,i){oa(e,n,"QuickVariant"),Sg(n,"QuickVariantX",t),Pg(i,n,"QuickVariantX")}s(af,"addEnumForVariantPaths");function mo(e,t){var u,p,g,b,x,I,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+ji,n.properties.table.anyOf[1].$ref=j+br,n.properties.table.anyOf[2].$ref=j+Tr,n.properties.table.anyOf[3].$ref=j+vr;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),r=JSON.parse(JSON.stringify(n.definitions.TreeTable)),o=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),a=JSON.parse(JSON.stringify(n.definitions.GridTable)),l={$ref:j+Et.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,o.properties.columns=l,a.properties.columns=l;let c=j+Et.DefinitionName.ToolBarLR;n.definitions[ji]=i,n.definitions[ji].properties.toolBar.$ref=c,n.definitions[br]=r,n.definitions[br].properties.toolBar.$ref=c,n.definitions[Tr]=o,n.definitions[Tr].properties.toolBar.$ref=c,n.definitions[vr]=a,n.definitions[vr].properties.toolBar.$ref=c;let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(p=e.entitySet)!=null&&p.name&&X(e.logger,{severity:Et.LogSeverity.Error,message:$.t("NOENTITYTYPE4SET",{entitySetName:(g=e.entitySet)==null?void 0:g.name})});else{$i(n);let U=(x=(b=f==null?void 0:f.annotations)==null?void 0:b.UI)==null?void 0:x.LineItem;U&&ig.forEach(J=>{n.definitions[J][Et.SchemaTag.annotationPath]=$t(f==null?void 0:f.fullyQualifiedName,U.term,U.qualifier)}),Di(!1,n,U,f);let te=(L=(I=f==null?void 0:f.annotations)==null?void 0:I.UI)==null?void 0:L.SelectionFields;ia(n,te,f);let re=[],oe=qi(e.manifest[Et.ManifestSection.generic].pages,re);if(!oe)return X(e.logger,{severity:Et.LogSeverity.Error,message:$.t("NOLR"),location:{path:Et.MANIFESTPATH,range:[Et.ManifestSection.generic]}}),n;wi(n,f,oe,e.manifest,e.fragments),af(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 Li(n,mS),n}s(mo,"generateListReportSchemaV2");var xe=B(W());var yS=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Vm(e,t){let n=t.value;return n.includes(xe.UIVOCABULARYALPHADOT+e)?n.replace(xe.UIVOCABULARYALPHADOT,""):""}s(Vm,"retrieveNameWithoutVocabulary");function hS(e,t,n){var b,x;let i=(x=(b=e==null?void 0:e.component)==null?void 0:b.settings)==null?void 0:x.qualifier,r=s(function(I){let L=I+(i?"#"+i:"");return t[L]},"getAnnotationWithQualifier"),o=r("SelectionPresentationVariant"),a=o?o.PresentationVariant:r("PresentationVariant");if(o&&!a){let I=i?$.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:i}):$.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return X(n,{severity:xe.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(a==null?void 0:a.Visualizations)||[],c="",f="";l.some(function(I){return c=c||Vm("LineItem",I),f=f||Vm("Chart",I),c&&f}),c=c||"LineItem",f=f||"Chart";let u=t[c],p=t[f],g=(u?0:1)+(p?0:2);if(g>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][g-1],L=$.t(I);X(n,{severity:xe.LogSeverity.Warning,message:L})}return{lineItemAnnotation:u,chartAnnotation:p}}s(hS,"getLineItemAndChartAnnotation");function bS(e,t){let n=e.definitions[xe.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[xe.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}s(bS,"addChart");function yo(e,t){var a,l,c,f,u;let n=JSON.parse(JSON.stringify(t));n.properties[xe.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[xe.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let p=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));p.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,p.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=p}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[xe.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,fg(n.definitions.TableColumnExtensionTypeV2.enum,[xe.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let o=(a=e.entitySet)==null?void 0:a.entityType;if(!o)X(e.logger,{severity:xe.LogSeverity.Error,message:$.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{$i(n);let p=[],g=Zi(e.manifest[xe.ManifestSection.generic].pages,p,e.logger),b=(c=o==null?void 0:o.annotations)==null?void 0:c.UI,{lineItemAnnotation:x,chartAnnotation:I}=hS(g,b,e.logger);x&&rg.forEach(U=>{n.definitions[U][xe.SchemaTag.annotationPath]=$t(o==null?void 0:o.fullyQualifiedName,x.term,x.qualifier)}),Di(!1,n,x,o),I&&bS(n,I);let L=(u=(f=o==null?void 0:o.annotations)==null?void 0:f.UI)==null?void 0:u.SelectionFields;if(ia(n,L,o),!g)return X(e.logger,{severity:xe.LogSeverity.Error,message:$.t("NOLR"),location:{path:xe.MANIFESTPATH,range:[xe.ManifestSection.generic]}}),n;wi(n,o,g,e.manifest,e.fragments),af(o,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 Li(n,yS),n}s(yo,"generateAnalyticalListReportSchemaV2");function TS(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}s(TS,"getCardDefinitionNames");function vS(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},o=[];o=o.concat(Object.keys(r).filter(c=>i.includes(r[c].dataSource)));let a=e.definitions;a.CardModel={type:"string"},Zn(o,a.CardModel);let l=TS(e);for(let c of l){let f=a[c].properties.model;delete f.type,f.$ref=j+"CardModel"}}s(vS,"addModelsEnum");function jm(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},vS(n,t),n}s(jm,"generateOverviewPageSchemaV2");var Hn=B(W());function sf(e,t,n,i,r,o){at();let a=gr(e,t),l={templateType:o,fioriElementsVersion:Hn.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:a,logger:t};return l.entitySet=po(r,l.serviceAVT),l.entitySet||X(l.logger,{severity:Hn.LogSeverity.Error,message:$.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}s(sf,"prepareGenerationV2");function lf(e,t,n,i,r,o){let a=sf(n,o,i,r,t,Hn.TemplateType.ListReportObjectPageV2);return go(a,e)}s(lf,"generateObjectPageInterfaceV2");function cf(e,t,n,i,r,o){let a=sf(n,o,i,r,t,Hn.TemplateType.ListReportObjectPageV2);return mo(a,e)}s(cf,"generateListReportInterfaceV2");function ff(e,t,n,i,r,o){let a=sf(n,o,i,r,t,Hn.TemplateType.AnalyticalListPageV2);return yo(a,e)}s(ff,"generateAnalyticalListPageInterfaceV2");function ho(e,t){return jm(e,t)}s(ho,"generateOVPInterfaceV2");var z=B(W());var To=s(e=>({flexChanges:[],manifest:{[z.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:z.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:z.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Dm(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===z.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(z.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(z.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}s(Dm,"getClassesForSingleSection");function wm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Dm(n,i,t),wm(n,t)}}s(wm,"getSubsectionClasses");function CS(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Dm(i,r,n),wm(i,n)}s(CS,"getExportClassesForSections");function xS(e,t){let n=qi(t.manifest[z.ManifestSection.generic].pages,e);if(!n){X(t.logger,{severity:z.LogSeverity.Error,message:$.t("NOLR"),location:{path:z.MANIFESTPATH,range:[z.ManifestSection.generic]}});return}if(!n.component){X(t.logger,{severity:z.LogSeverity.Error,message:$.t("COMPONENTNOTDEFINED",{pageName:z.PageTypeV2.ListReport}),location:{path:z.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}s(xS,"findV2Page");function uf(e,t){let n=kd(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}s(uf,"calculateBaseId");function $m(e,t,n=!1){let i=To(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let o=[],a=xS(o,e),l=new ct,c=l.createPageInstance(z.PageTypeV2.ListReport,r),f={v2Page:a,exportResults:i,appId:e.appId,baseId:uf(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:z.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(f,c,[],[],e.jsonSchema)}return i}s($m,"exportListReportPage");function Rm(e,t,n=!1){let i=e.page.config,r=To(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=[],a=Zi(e.manifest[z.ManifestSection.generic].pages,o,e.logger);if(!a)return r;if(a.component.settings||(a.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new ct,c=l.createPageInstance(z.PageTypeV2.AnalyticalListPage,i),f={v2Page:a,exportResults:r,appId:e.appId,baseId:uf(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:z.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(f,c,[],[],e.jsonSchema)}return r}s(Rm,"exportAnalyticalListPage");function _m(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,o=To(e.fragments);if(o.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let a=[],l=yi(e.manifest[z.ManifestSection.generic].pages,r,a);if(!l)return X(e.logger,{severity:z.LogSeverity.Error,message:$.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:z.MANIFESTPATH,range:[z.ManifestSection.generic]}}),o;let c=new ct,f=c.createPageInstance(z.PageTypeV2.ObjectPage,i);if(i.sections&&CS(i,f,c),Object.keys(i).length!==0){let u={v2Page:l,exportResults:o,appId:e.appId,baseId:uf(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:z.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(u,f,[],[],e.jsonSchema)}}return o}s(_m,"exportObjectPage");var Mm=s(e=>{let t=To();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ct,i=n.createPageInstance(z.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&uo(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),SS=s((e,t,n)=>{var a;let i=To();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new la,e);r.settings=Object.assign(new An,e.settings);for(let l in n.definitions.AppSettings.properties){let c=St(r.settings,l);if(c&&c.manifest){let f=c.manifest.path(),u=ze(i.manifest,f);e.settings&&e.settings[l]!==void 0?u[l]=e.settings[l]:(delete u[l],hr(i.manifest,f,!1))}}let o=(a=i.manifest[z.ManifestSection.generic])==null?void 0:a.pages;return o&&e.pages&&pl(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function km(e,t){if(e[z.SchemaType.ListReport])return $m(e[z.SchemaType.ListReport],t);if(e[z.SchemaType.ObjectPage])return _m(e[z.SchemaType.ObjectPage],t);if(e[z.SchemaType.OverviewPage])return Mm(e[z.SchemaType.OverviewPage]);if(e[z.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[z.SchemaType.Application];return SS(n,i,r)}else if(e[z.SchemaType.AnalyticalListPage])return Rm(e[z.SchemaType.AnalyticalListPage],t)}s(km,"exportPageV2");function pf(e,t,n=!1){if(e[z.SchemaType.ListReport])return $m(e[z.SchemaType.ListReport],t,n);if(e[z.SchemaType.ObjectPage])return _m(e[z.SchemaType.ObjectPage],t,n);if(e[z.SchemaType.OverviewPage])return Mm(e[z.SchemaType.OverviewPage]);if(e[z.SchemaType.AnalyticalListPage])return Rm(e[z.SchemaType.AnalyticalListPage],t,n)}s(pf,"exportConfigEntityByPathV2");function PS(e){let t;if(e[Ce.FioriElementsVersion.v2]){let n=e[Ce.FioriElementsVersion.v2];if(n[Ce.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,manifest:a,fragments:l,logger:c}=n[Ce.SchemaType.ListReport];t=cf(i,r,o,a,l,c)}else if(n[Ce.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:a,fragments:l,logger:c}=n[Ce.SchemaType.ObjectPage];t=lf(i,r,o,a,l,c)}else if(n[Ce.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Ce.SchemaType.OverviewPage];t=ho(i,r)}else if(n[Ce.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:a,fragments:l,logger:c}=n[Ce.SchemaType.AnalyticalListPage];t=ff(i,r,o,a,l,c)}}return t}s(PS,"generateSchema");function AS(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=km(i,n)}return t}s(AS,"exportConfig");function ES(e){let t=Ce.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=pf(i,n)}return t}s(ES,"exportConfigEntityByPath");function IS(e){let t=Ce.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=pf(i,n,!0)}return t}s(IS,"deleteConfigEntityByPath");function OS(e){let t;if(e[Ce.FioriElementsVersion.v2]){let n=e[Ce.FioriElementsVersion.v2];n[Ce.SchemaType.ListReport]?t=ns(n[Ce.SchemaType.ListReport]):n[Ce.SchemaType.ObjectPage]?t=os(n[Ce.SchemaType.ObjectPage]):n[Ce.SchemaType.OverviewPage]?t=ls(n[Ce.SchemaType.OverviewPage]):n[Ce.SchemaType.AnalyticalListPage]&&(t=is(n[Ce.SchemaType.AnalyticalListPage]))}return t}s(OS,"importConfig");async function FS(e){return of(e)}s(FS,"importProject");async function NS(e){return rf(e)}s(NS,"importProjectSchema");function LS(){return{version:"15"}}s(LS,"getApiVersion");var jt=require("path"),Gn=require("fs");var er=s(async e=>new Promise((t,n)=>{(0,Gn.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),VS=s(async e=>JSON.parse(await er(e)),"readJSON"),df=s(async e=>new Promise((t,n)=>{(0,Gn.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),jS=s(async e=>new Promise(t=>{(0,Gn.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),Bm=s(async e=>new Promise(t=>{(0,Gn.exists)(e,n=>{t(n)})}),"resourceExists"),DS=s(async e=>VS((0,jt.join)(e,"manifest.json")),"getManifest"),Um=s(async e=>{let t=[],n=(0,jt.join)(e,"changes");if(!await Bm(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await df(n);for(let o of r)i.some(a=>o.endsWith(a))&&t.push(await er((0,jt.join)(n,o)));return t},"getChanges"),wS=s(async e=>{let t=[],n=(0,jt.join)(e,"ext","fragments");if(!await Bm(n))return t;let i=await df(n);for(let r of i){let o=(0,jt.join)(n,r),a=await er(o);t.push({dataSourceUri:o,fileContent:a})}return t},"getFragments"),$S=s(async(e,t)=>{var r,o,a,l,c,f,u,p;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((a=(o=i==null?void 0:i.mainService)==null?void 0:o.settings)!=null&&a.localUri){let g=(0,jt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:g,fileContent:await er(g)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let g of i.mainService.settings.annotations)if((u=(f=i[g])==null?void 0:f.settings)!=null&&u.localUri){let b=(0,jt.join)(t,i[g].settings.localUri);n.push({dataSourceUri:b,fileContent:await er(b)})}}if(n.length===0)for(let g in i){let b=i[g];if((b==null?void 0:b.type)==="ODataAnnotation"&&((p=b==null?void 0:b.settings)!=null&&p.localUri)){let x=(0,jt.join)(t,b.settings.localUri);n.push({dataSourceUri:x,fileContent:await er(x)})}}return n},"getAnnotations"),RS=s(async e=>{let t=(0,jt.basename)(e),n=(0,jt.join)(e,"webapp"),i=await DS(n),r=await $S(i,n),o=await Um(n),a=await wS(n);return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:a}},"getProject");Jn(Kn,B(W()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
88
+ `}),gm($)}o(at,"initI18n");var Ee=U(W());function yi(e,t,n){var r;let i;for(let a in e){let s=e[a];if(sn((r=s.component)==null?void 0:r.name)===Ee.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=yi(s.pages,t,n),i))return n.unshift(a),i}}o(yi,"findObjectPageV2");function qi(e,t){var n;for(let i in e){let r=e[i];if(sn((n=r.component)==null?void 0:n.name)===Ee.PageTypeV2.ListReport)return t.push(i),r}}o(qi,"findListReportPageV2");function Xi(e){if(!e.manifest[Ee.ManifestSection.generic]){X(e.logger,{severity:Ee.LogSeverity.Error,message:$.t("NOFE"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}let t=e.manifest[Ee.ManifestSection.generic].pages;if(!t){X(e.logger,{severity:Ee.LogSeverity.Error,message:$.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}return t}o(Xi,"getV2Pages");function Yi(e,t,n){var i;if(!e){X(t,{severity:Ee.LogSeverity.Error,message:$.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;X(t,{severity:Ee.LogSeverity.Error,message:$.t("NOENTITYSET",{pageName:r}),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}})}}o(Yi,"checkV2Page");function Zi(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),sn((i=a.component)==null?void 0:i.name)===Ee.PageTypeV2.AnalyticalListPage)return a}X(n,{severity:Ee.LogSeverity.Error,message:$.t("NOALP"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}})}o(Zi,"findAnalyticalListPage");function Kc(e,t){let n=e.split("|");return Ee.v2.SectionPosition[n[0]]&&n[1]===t}o(Kc,"isAssociatedCustomSection");function ym(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Ee.v2.SAPUI5_VIEW_EXTENSION}/${Ee.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Kc(r,t)&&(i[r]=n[r]);return i}o(ym,"findCustomSectionExtensions");function GC(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(GC,"removeEmptySettingsOfFooter");function KC(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(KC,"removeEmptySettingsOfFilterBar");function WC(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(WC,"removeEmptySettingsOfToolBar");function Za(e){WC(e),KC(e),GC(e)}o(Za,"removeEmptySettings");var Jc={};So(Jc,{AnalyticalListPage:()=>Vt,ListReport:()=>kt,ObjectPage:()=>st,OverviewPage:()=>De});var es=U(W());var Vt=class{};o(Vt,"AnalyticalListPage"),m([y({flex:{controlId:Xo,controlType:o(()=>es.ControlType.DynamicPage,"controlType"),createFlexChange:w}})],Vt.prototype,"fitContent",2),m([Qe("table")],Vt.prototype,"table",2),m([Qe("template::SmartFilterBar")],Vt.prototype,"filterBar",2),m([Qe("analyticalListPageChart")],Vt.prototype,"chart",2),m([Qe("analyticalListFooter")],Vt.prototype,"footer",2),Vt=m([vn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:es.v2.FE_TEMPLATE_V2_ALP})],Vt);var lo=U(W());var kt=class{};o(kt,"ListReport"),m([y({flex:{controlId:Xo,controlType:o(()=>lo.ControlType.DynamicPage,"controlType"),createFlexChange:w}})],kt.prototype,"fitContent",2),m([Qe("listReportFilter")],kt.prototype,"filterBar",2),m([Qe("listReport")],kt.prototype,"table",2),m([Qe("listReportFooter")],kt.prototype,"footer",2),kt=m([vn({id:lo.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:lo.v2.FE_TEMPLATE_V2_LIST_REPORT})],kt);var Wc=U(W());var st=class{};o(st,"ObjectPage"),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.52.0"})],st.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.52.1"})],st.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.48.0"})],st.prototype,"allowDeepLinking",2),m([y({manifest:{path:o(t=>Ft(t),"path")}}),F({since:"1.52.0"})],st.prototype,"navToListOnSave",2),m([Qe("header")],st.prototype,"header",2),m([Qe("sections")],st.prototype,"sections",2),m([Qe("layout")],st.prototype,"layout",2),m([y({manifest:{path:o(t=>Ft(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Dd}}),F({since:"1.71.0"})],st.prototype,"globalTableSettings",2),st=m([vn({id:Wc.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Wc.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],st);var De=class{};o(De,"OverviewPage"),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"globalFilterModel",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"globalFilterEntityType",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"showBasicSearch",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"disableErrorPage",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"smartVariantRequired",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"bHeaderExpanded",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"containerLayout",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"enableLiveFilter",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"enableLazyRendering",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"useDateRangeType",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"dataLoadSettings",2),m([y({manifest:{path:o(()=>He(),"path")}})],De.prototype,"resizableLayout",2),De=m([vn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],De);var Qc=class Qc{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(Qc,"MetadataFactory");var ts=Qc;var lt=U(W());var JC={},QC={Table:ni,ResponsiveTableWithMultiSelect:ni,ResponsiveTableWithInlineDelete:ni},zC={[lt.v2.CardSettingsType.listCardSettings]:Fr,[lt.v2.CardSettingsType.analyticalCardSettings]:Nr,[lt.v2.CardSettingsType.stackCardSettings]:Lr,[lt.v2.CardSettingsType.linkListCardSettings]:Vr,[lt.v2.CardSettingsType.tableCardSettings]:jr},qC={[lt.SAPUI5_VIEW_CLASS]:no,[lt.SAPUI5_FRAGMENT_CLASS]:to,Table:mi,ObjectPageResponsiveTableWithMultiSelect:mi,ObjectPageResponsiveTableWithInlineDelete:mi},XC={[lt.PageTypeV2.AnalyticalListPage]:JC,[lt.PageTypeV2.ListReport]:QC,[lt.PageTypeV2.ObjectPage]:qC,[lt.PageTypeV2.OverviewPage]:zC},zc=class zc extends ts{constructor(){super(Bc,Jc,XC)}};o(zc,"MetadataInstanceFactoryV2");var ct=zc;function YC(e,t,n,i,r){e.filterBar=t.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ListReportFilterBar,e.filterBar),Ze(e.filterBar,n.manifest,i[we.DefinitionName.ListReportFilterBar],r,n.logger)}o(YC,"importFilterBar");function ZC(e,t,n,i,r){var s;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[ji],Ze(n.table,i.manifest,a,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&X(i.logger,{severity:we.LogSeverity.Error,message:$.t("NOLINEITEMS")})}o(ZC,"importTable");function ex(e,t,n,i){let r=e.jsonSchema.definitions,a=Xa(e.manifest,i);if(t.table=n.createInstance(we.PageTypeV2.ListReport,a,t.table),Ya(t,n,r),ZC(a,r,t,e,i),t.table.toolBar=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ToolBar,{actions:{}}),Ze(t.table.toolBar,e.manifest,r[we.DefinitionName.ToolBar],i,e.logger),r[we.DefinitionName.ActionsLR])for(let l in r[we.DefinitionName.ActionsLR].properties){let c=Mn(l);t.table.toolBar.actions[c]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.Action),Ze(t.table.toolBar.actions[c],e.manifest,r[we.DefinitionName.Action],i,e.logger)}YC(t,n,e,r,i),t.footer={actions:{}};let s=r[we.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=Mn(l);t.footer.actions[c]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.FooterAction),Ze(t.footer.actions[c],e.manifest,r[we.DefinitionName.Action],i,e.logger)}}o(ex,"addSettings");function ns(e){if(at(),!Xi(e))return;let n=new ct,i=n.createPageInstance(we.PageTypeV2.ListReport),r=[],a=qi(e.manifest[we.ManifestSection.generic].pages,r);if(Yi(a,e.logger,a==null?void 0:a.entitySet),!!a)return ex(e,i,n,r[0]),e.flex.forEach(s=>{Cn(s)&&qa(i,s,e.jsonSchema,e.logger)}),zi(i,e.manifest,a,we.PageTypeV2.ListReport,e.fragments),Za(i),i}o(ns,"createListReportConfig");var Ve=U(W());function tx(e,t,n,i){var c,f;let r=Xa(e.manifest,i),a=e.jsonSchema.definitions;if(Ya(t,n,a),t.table=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Ze(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.ToolBar,{actions:{}}),Ze(t.table.toolBar,e.manifest,a[Ve.DefinitionName.ToolBar],i,e.logger),a[Ve.DefinitionName.ActionsLR])for(let u in a[Ve.DefinitionName.ActionsLR].properties){let p=Mn(u);t.table.toolBar.actions[p]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.Action),Ze(t.table.toolBar.actions[p],e.manifest,a[Ve.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Ze(t.filterBar,e.manifest,a[Ve.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Ze(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let s=a[Ve.DefinitionName.FooterActionsLR];if(s)for(let u in s.properties){let p=Mn(u);t.footer.actions[p]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,Ve.DefinitionName.FooterAction),Ze(t.footer.actions[p],e.manifest,a[Ve.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(f=(c=e.manifest[Ve.ManifestSection.generic].pages[i].component)==null?void 0:c.settings)==null?void 0:f.keyPerformanceIndicators;l&&Object.keys(l).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ve.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Ze(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}o(tx,"addSettings");function is(e){if(at(),!Xi(e))return;let n=new ct,i=n.createPageInstance(Ve.PageTypeV2.AnalyticalListPage),r=[],a=Zi(e.manifest[Ve.ManifestSection.generic].pages,r,e.logger);if(Yi(a,e.logger,a==null?void 0:a.entitySet),!!a)return tx(e,i,n,r[0]),e.flex.forEach(s=>{Cn(s)&&qa(i,s,e.jsonSchema)}),zi(i,e.manifest,a,Ve.PageTypeV2.AnalyticalListPage,e.fragments),Za(i),i}o(is,"createAnalyticalListPageConfig");var _=U(W());var co=require("@sap-ux/vocabularies-types/vocabularies/UI");var ix=[_.ControlType.Avatar,_.ControlType.ObjectPageLayout,_.ControlType.DynamicPage];function rx(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(`${co.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${_.ActionTitlePrefix}${t}`;else if(e[0].indexOf(co.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(rx,"getSingleSelectorIdPart");function ox(e){let t,n=e.split(":::");if(n.length===1)t=rx(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(`::${co.UIAnnotationTerms.LineItem}`,`/@${co.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(ox,"getFacetID");function ax(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,f;try{let u=Cn(s),p=u&&((l=u.controlId)==null?void 0:l.split("--"))||[];if(u&&((c=p[0])!=null&&c.includes(_.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((f=p[0])!=null&&f.endsWith(t))){let g=p[1].replace(/:3a:3a/g,"::");r.exec(g)!==null&&(g=g.split("template:::TableColumn:::")[1]);let b=ox(g);g=Hc(g).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${g}::${u.content.property}`]={controlId:g,propertyId:u.content.property,facetId:b,newValue:u.content.newBinding!==void 0?u.content.newBinding:u.content.newValue,controlType:u.controlType,creation:u.creation}}}catch(u){X(n,{severity:_.LogSeverity.Error,message:$.t("FLEXERROR")},...u)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}o(ax,"prepareFlexChanges");var sx=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");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(j,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function lx(e,t,n,i,r,a){let s;r?s=[r.replace(/@/g,"")]:s=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,_.VOCWITHSLASH)];for(let l in e){let c=e[l],f=c.propertyId===t,u=t==="columns"&&c.controlType===_.ControlType.TableColumn;(f||u)&&s.indexOf(c==null?void 0:c.facetId)>-1&&sa(n,c,i.jsonSchema)}}o(lx,"importFlexChangesOfTable");function cx(e,t){return e.facetId==="template"&&t}o(cx,"isStandardActionFlexChange");var hm=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function fx(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let c=t.controlId.split("::"),f=t.controlType===_.ControlType.GroupElement&&l,u=((I=t.facetId)==null?void 0:I.includes(_.ActionTitlePrefix))&&!r&&s,p=r&&hm(c,r.split("::"))&&s,g=e.title&&hm(c,e.title.split("::"),!0),b=!t.facetId&&ix.includes(t.controlType),x=cx(t,l);return f||u||p||g||b||x}o(fx,"matchSelector");function ux(e,t,n,i,r,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let f in n){let u=n[f];if(u.propertyId!==i||u.controlType!==((c=e.properties[u.propertyId])==null?void 0:c[_.SchemaTag.controlType]))continue;fx(e,u,s,l,r,a)&&(t[i]=u.newValue)}}o(ux,"importFlexChanges");function px(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(X(n.logger,{severity:_.LogSeverity.Warning,message:Yo(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(px,"checkDeprecatedProperties");function dx(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,f;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),f=ze(n.manifest,c),Object.values(f).length===0&&(c=e.manifest.path(t,{},l),f=ze(n.manifest,c))):(c=e.manifest.path(t,{},l),f=ze(n.manifest,c));let u=e.manifest.import;if(u&&typeof u=="function"){let p=u(f,s==null?void 0:s.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in f&&(i[r]=f[p])}return px(f,a,n,c),f}o(dx,"importManifestSetting");function ft(e,t,n,i,r,a){var l,c;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let f in n.properties||n){let u=St(t,f);if(f==="columns"||u!=null&&u.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSubSectionTableV2"))lx(i.flexChanges,f,t,e,r.title,r.id);else{let p=(r==null?void 0:r.title)||(r==null?void 0:r.id);ux(n,t,i.flexChanges,f,p,a)}else u!=null&&u.manifest&&dx(u,i.pageKeys,e,t,f,s,r)}}o(ft,"transferSettingsAndFlexChanges");function Tm(e,t,n,i){let r=mt(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${og}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${ta}${r}`;break}}return r.replace(/@/g,"")}o(Tm,"getActionId");function gx(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],c=Tm(s,a,"","");e.actions[a]=i.factory.createInstance(_.PageTypeV2.ObjectPage,l,{}),ft(n,e[_.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}o(gx,"fillStandardActions");function rs(e,t,n,i,r,a){var l;n[_.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let f in t){let u=Mn(f),p=Tm(s,u,r,a);p&&(n[_.PropertyName.actions][u]=i.factory.createInstance(_.PageTypeV2.ObjectPage,s),ft(e,n[_.PropertyName.actions][u],e.jsonSchema.definitions[s],i,c,p)),(l=n[_.PropertyName.actions])!=null&&l[u]&&Object.keys(n[_.PropertyName.actions][u]).length===0&&delete n[_.PropertyName.actions][u]}}gx(n,t,e,i),Object.keys(n[_.PropertyName.actions]).length===0&&delete n[_.PropertyName.actions]}o(rs,"fillActions");function mx(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(_.PageTypeV2.ObjectPage,"Field");let c=(s=t.title)!=null&&s.includes(_.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;ft(e,i[t.id].form.fields[l],e.jsonSchema.definitions[_.DefinitionName.Field],r,{},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}o(mx,"fillFields");function yx(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}o(yx,"prepareTableSchema");function hx(e,t,n,i,r){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let f=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",u=r.factory.createInstance(_.PageTypeV2.ObjectPage,`ObjectPage${f}`,{toolBar:{}});i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][_.PropertyName.table]=u;let p=e.jsonSchema.definitions,g=yx(f,t,p);ft(e,i[t.id],t.schema,r,{title:t.title}),ft(e,i[t.id][_.PropertyName.table],g,r,t);let b=JSON.parse(JSON.stringify(p))[`Actions<${t.id}>`];if(b!=null&&b.properties){let x=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");rs(e,b.properties,i[t.id][_.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",x)}Object.keys(i[t.id][_.PropertyName.table].toolBar).length===0&&delete i[t.id][_.PropertyName.table].toolBar}}o(hx,"fillTableInConfig");function bx(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?ea(r.$ref):void 0;if(a){let s={key:t.replace("@",""),target:a};zi(n[t],e.manifest,i,_.PageTypeV2.ObjectPage,e.fragments,s)}}o(bx,"fillCustomColumnsInConfig");function Tx(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][_.PropertyName.chart]=r.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(ft(e,i[t.id],t.schema,r,{title:t.title}),ft(e,i[t.id][_.PropertyName.chart],e.jsonSchema.definitions[_.DefinitionName.ObjectPageChart],r,t))}o(Tx,"fillChartSection");function vx(e,t,n,i){n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&ft(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(vx,"fillHeaderSection");function Cx(e,t,n,i){var c;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&ft(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&rs(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&mx(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(Cx,"fillFormSection");function bm(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&ft(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,qc(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(bm,"fillSubSection");function qc(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),f={id:c,type:sx(t[l]),schema:t[l],title:ol(t[l],e.jsonSchema)};if(f.schema.$ref&&f.type)switch(f.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{f.schema=a[`${f.type}<${l}>`],hx(e,f,n,i,r),bx(e,c,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{f.schema=a[`${f.type}<${l}>`],Tx(e,f,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{f.schema=a[`${f.type}<${l}>`],Cx(e,f,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{f.schema=a[`${f.type}<${l}>`],bm(e,f,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{f.schema=a[`${f.type}<${l}>`],vx(e,f,i,r);break}}else(s=f.schema.properties)!=null&&s.subsections&&(f.schema=a[`${f.type}<${l}>`],bm(e,f,n,i,r))}}o(qc,"fillSectionsInConfig");function xx(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];ft(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(xx,"fillCustomSectionsInConfig");function Sx(e,t){var u,p;let n=t.factory.createPageInstance(_.PageTypeV2.ObjectPage);ft(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;ft(e,n.globalTableSettings,i[_.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.ObjectPageHeader);let r=i[_.DefinitionName.ObjectPageHeader]?i[_.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];ft(e,n.header,r,t);let a=i[_.DefinitionName.HeaderActions];a&&rs(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[_.DefinitionName.FooterActions];s&&rs(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageLayout"),ft(e,n.layout,i[_.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[_.DefinitionName.HeaderSections];if(l){let g=(u=t.v2Page.component)==null?void 0:u.settings;qc(e,l.properties,g,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[_.DefinitionName.Sections];if(c){let g=(p=t.v2Page.component)==null?void 0:p.settings;qc(e,c.properties,g,n.sections,t)}let f=ym(e.manifest,e.entitySet);return xx(f,n,t,i,e),n}o(Sx,"fillConfig");function os(e){at();let t=Xi(e);if(!t)return;let n=e.entitySet,i=[],r=yi(t,e.entitySet,i);if(Yi(r,e.logger,n),!r)return;let a=ax(e.flex,n),s=new ct;return Sx(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(os,"createObjectPageConfigV2");function ss(e,t){var n,i;return(n=e.component)!=null&&n.name?zo(sn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(ss,"generateId");function Px(e,t,n,i,r,a,s){e.navigation={};let l=vm(t.pages,n,i,r,a);for(let c in l){let f=l[c];s[c]=f}for(let c in t.pages){let f=ss(t.pages[c],c);e.entitySet?e.navigation[f]=l[f].navigationProperty?`${e.entitySet}.${l[f].navigationProperty}`:e.entitySet:e.navigation[f]=l[f].navigationProperty?l[f].navigationProperty:f}}o(Px,"getPageConfigsAndNavigations");function vm(e,t,n,i,r,a){var l;let s={};for(let c in e){let f=e[c],u=ss(f,c);if(!u)continue;let p={pageType:sn((l=f.component)==null?void 0:l.name),entitySet:f.entitySet,...f.navigationProperty&&{navigationProperty:f.navigationProperty},...f.defaultLayoutType&&{defaultLayoutType:f.defaultLayoutType}};s[u]=p;let g=Object.keys(i).find(b=>b.includes(u))||Object.keys(i).find(b=>b.includes(u.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(g)if(p.pageType===ke.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=ns(b)}else if(p.pageType===ke.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=is(b)}else{let b={manifest:n,flex:t,jsonSchema:i[g],entitySet:p.entitySet,fragments:r,logger:a};p.config=os(b)}f.pages&&Px(p,f,t,n,i,r,s)}return s}o(vm,"getPagesAndConfigs");var Xc=class Xc extends _i{constructor(t){at();let n;t.manifest[ke.ManifestSection.generic]?n=t.manifest[ke.ManifestSection.generic].pages:X(t.logger,{severity:ke.LogSeverity.Error,message:$.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}}),n||X(t.logger,{severity:ke.LogSeverity.Error,message:$.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ss(n[i],i),a=new Pn,s=Xe(ke.SchemaType.Application),l=t.appSchemas[s.filename];Ze(a,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,vm(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),ke.FioriElementsVersion.v2,a)}};o(Xc,"V2AppProvider");var as=Xc;function fo(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||X(n,{severity:ke.LogSeverity.Error,message:$.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:ke.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=ss(l,s);i[c]=l}if(t===ke.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=fo(l.pages,t,n);for(let f in c)i[f]=c[f]}}return i}o(fo,"getPages");var yn=U(W());var Un=U(W());var Zc=U(Vs());var Fe=U(W());var Ax=["colorPalette","tabs"];function Ex(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(Ex,"createCard");function Cm(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Cm(e,n.join("|"))}return t}o(Cm,"findAvailableId");function uo(e,t,n,i,r,a,s){i!=null&&i.properties&&Yc(e,t,n,i.properties,r,a,s)}o(uo,"transferManifestEntriesOVP");function hi(e,t,n,i){return e.createInstance(Fe.PageTypeV2.OverviewPage,i,n,t)}o(hi,"assignReflectMetadataRules");function Ix(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(j),r=e.appSchema.definitions[i[1]];t=hi(e.factory,i[1],t,"CustomCard"),uo(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(Ix,"processAnyOfDefinitionsOfOVP");function Ox(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!Ax.includes(i)?t[i]=(0,Zc.default)(t[i]||{},r||{},{arrayMerge:il}):t[i]=r}o(Ox,"checkSyncRuleForExport");function Fx(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=ze(i.manifest,s);if(n in Fe.v2.CardSettingsType||n==="settings")l.settings=(0,Zc.default)(l.settings||{},r||{},{arrayMerge:il});else if(r!==void 0){let c=e.manifest.export;Ox(c,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(Fx,"transferToManifest");function Nx(e,t,n,i){Object.keys(e).forEach(r=>{let a=e[r].template,s;Object.values(Fe.v2.CardTemplateType).includes(a)?s=Object.keys(t.definitions).filter(l=>{var f;let c=(f=t.definitions[l].properties)==null?void 0:f.template;if(c!=null&&c.enum)return c.enum.indexOf(e[r].template)>-1;if(c!=null&&c.const)return c.const===e[r].template}):s=["CustomCard"],e[r]=hi(n,s[0],e[r],"CustomCard"),Ex(r,i.manifest[Fe.ManifestSection.ovp]),uo(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[Fe.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Fe.ManifestSection.ovp].cards[r]})}o(Nx,"transferCards");function Lx(e,t,n){if(t==="cards")Nx(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Tn(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Fe.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(j);e.currentObject=hi(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],uo(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Yc(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Yc(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}o(Lx,"exportOfObject");function Yc(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Xs(a,s))continue;let c=e[l],f=St(e,l),u={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:r,exportResults:t};a[a.length-1]==="anyOf"?(u.currentObject=e[a[a.length-2]],c=Ix(u)):c&&typeof c=="object"&&i[l]&&Lx(u,l,r),f!=null&&f.manifest&&Fx(f,a,l,t,c,e)}}o(Yc,"processProperties");function Vx(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),f=Yd(a,n,e.ui5Version,s,c),u=JSON.parse(JSON.stringify(e.exportResults.manifest));u["sap.app"].id=e.appId;let p=n.flex.createFlexChange(f,u);e.exportResults.flexChanges.find(b=>{let x=!1,I=JSON.parse(b);I={content:I.content,selector:I.selector};let L=JSON.parse(p);return L={content:L.content,selector:L.selector},JSON.stringify(I)===JSON.stringify(L)&&(x=!0),x})||e.exportResults.flexChanges.push(p)}o(Vx,"evaluateFlexRule");function jx(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated}}o(jx,"exportConfigValueToManifest");function Dx(e,t,n,i,r){let a=ze(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)jx(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated,hr(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(Dx,"evaluateManifestRule");function wx(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Fe.FacetTitlePrefix)?r.split(Fe.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(wx,"getManifestPathOfSections");function $x(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o($x,"getManifestPathOfTable");function Rx(e,t,n,i,r){let a;return t[0]===Fe.PropertyName.sections?a=wx(t,a,n,e,r):t[0]===Fe.PropertyName.table?a=$x(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(Rx,"getManifestPath");function _x(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)Vx(e,i,t,r,a,n,s);else if(t.manifest){let c=Rx(e,i,t,n,a);Dx(e,c,t,s,n)}}o(_x,"evaluateExportRule");function Mx(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(ha(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Fe.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Fe.ViewTemplateType.ResponsiveTableColumnsExtension,Fe.ViewTemplateType.ResponsiveTableCellsExtension);ha(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}o(Mx,"deleteObsoleteColumn");function kx(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Vg(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Fe.ChangeIndicator.Updated,Mx(r,e,n))}o(kx,"deleteObsoleteColumnsFromFragment");function Ux(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=ba(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}o(Ux,"clusterConfigColumnsByPath");function xm(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Fe.v2.TableColumnExtensionTypeV2){let{path:c}=ba(e.v2Page,s,r,l);if(!c)continue;let f={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};kx(f)}if(t){let l=Ux(t,n,e.v2Page,s,r);for(let c in l)$l(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}o(xm,"transferColumnExtensions");function Bx(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let f of t){let u=Cm(s,[f.relativePosition,l,f.relatedFacet].join("|"));s.push(u)}for(let f=0;f<s.length;f++){let p=a.anyOf.find(b=>{var x;return(x=b.$ref)==null?void 0:x.includes(t[f].constructor.name)}).$ref.split(j),g=e.appSchema.definitions[p[p.length-1]];kn(e,t[f],i,[...r,s[f]],g)}let c=ze(e.exportResults.manifest,dl());for(let f in c)Kc(f,l)&&!s.includes(f)&&delete c[f]}o(Bx,"transferManifestExtensions");function Hx(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Fe.PropertyName.table){n=e[i-1];break}return Ye(n,t)}o(Hx,"getSectionId");function Gx(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=Tn(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);kn(t,c.configObject,r,[...a,i],c.targetDefinition,l)})}o(Gx,"transferIndexTable");function Kx(e,t,n,i,r,a){let s,l=ea(e.$ref);l&&(s={target:l,key:Hx(t,n)}),xm(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(Kx,"transferCustomColumns");function Wx(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let c=Tn(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&kn(t,c.configObject,a,[...s,r],c.targetDefinition,c.title)})}o(Wx,"handleAnyOfDefinitions");function Jx(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")Bx(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){Kx(l,t,s,e,n,a);return}else a?kn(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&Wx(l,e,s,n==null?void 0:n[r],r,i,t)}o(Jx,"transferComplexProperty");function kn(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Xs(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&Md(t,l),f=c?[...n,c]:n,u=St(t,l),p=e.propertyDefinition=r.properties[l],g=e.nextDefinition=Tn(e.appSchema,a,s,p,l,e.factory,e.pageType);if(_x(e,u,t,[...i],f,a,l),Gx(s,e,a,l,f,i),s===void 0||typeof s=="object")Jx(e,i,t,f,l,g,a);else if((p==null?void 0:p.$ref)===j+"TableCustomColumns"){xm(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(kn,"transferManifestEntriesAndFlexChange");function Sm(e,t,n,i,r,a,s){let l=t[t.length-1],c=e.definitions[l];n[i]=hi(r,i,n[i],l),a.push(i),ef(r,n[i],s,c.properties,e,a)}o(Sm,"transferSettingsOfRef");function Qx(e,t,n,i,r,a,s){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(j);Sm(i,l,e,t,r,a,s)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${j}${Un.v2.cardTemplateSettingsMap[e.template]}`.split(j);Sm(i,c,e,t,r,a,s)}}o(Qx,"processPropertiesOfObject");function zx(e,t,n,i,r,a,s){let l=St(e,t);if(l!=null&&l.manifest){let c=l.manifest.path([...n,t]),f=ze(i,c);Object.prototype.hasOwnProperty.call(f,t)&&Zo(l,f,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&Qx(e,t,r,a,s,n,i)}o(zx,"processOvpProperty");function ef(e,t,n,i,r,a){for(let s in i)zx(t,s,a,n,i,r,e)}o(ef,"processOvpProperties");function qx(e,t,n,i){ef(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Un.ManifestSection.ovp].cards).forEach(r=>{let a=t[Un.ManifestSection.ovp].cards[r].template,s=Un.v2.cardTemplateTypeMap[a]??"CustomCard";e.cards[r]=hi(i,s,{},"CustomCard"),e.cards=hi(i,s,e.cards,"CustomCard"),ef(i,e.cards[r],t,n.definitions[s].properties,n,[r])})}o(qx,"addSettings");function ls(e){let t=new ct,n=t.createPageInstance(Un.PageTypeV2.OverviewPage);return e.jsonSchema&&qx(n,e.manifest,e.jsonSchema,t),n}o(ls,"createOverviewPageConfig");var tf=class tf extends _i{constructor(t){let n={},i=t.manifest[yn.ManifestSection.ovp],r=new Pn,a=Xe(yn.SchemaType.Application);Ze(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(u=>u.includes(yn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},c={pageType:yn.PageTypeV2.OverviewPage,config:ls(l),entitySet:i.globalFilterEntitySet},f=zo(c.pageType,c.entitySet);n[f]=c,super(t.manifest,t.appSchemas,f,n,yn.FioriElementsVersion.v2,r,t.logger)}};o(tf,"V2OvpProvider");var cs=tf;var Pm=require("fs"),bi=require("path"),nf=U(W());var Am=o((e,t,n=__dirname)=>{let i=t===nf.SchemaType.Application?`${nf.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,bi.join)(n,"schemas",e,i);if(n.endsWith((0,bi.join)("specification","packages","specification")))return(0,bi.join)(n,"dist","schemas",e,i);if(n.endsWith((0,bi.join)("src","specification")))return(0,bi.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,bi.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Xx=o(async e=>new Promise((t,n)=>{(0,Pm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),fs=o(async(e,t)=>{try{let n=Am(e,t,__dirname);return await Xx(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Yx(e,t){let n={},i=[];switch(i=[Z.SchemaType.Application],e){case Z.TemplateType.ListReportObjectPageV2:i.push(Z.SchemaType.ListReport,Z.SchemaType.ObjectPage);break;case Z.TemplateType.AnalyticalListPageV2:i.push(Z.SchemaType.AnalyticalListPage,Z.SchemaType.ObjectPage);break;case Z.TemplateType.OverviewPageV2:i.push(Z.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Xe(r);n[a.filename]=await fs(t,r)}return n}o(Yx,"getGenericSchemas");function Im(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Jt(Z.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Im,"getAnnotationsForUi");function po(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(po,"getEntitySetByEntitySetName");function Zx(e,t,n){var r;let i=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=po(s,e.serviceAVT);let l=Xe(Z.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),c=Xe(Z.SchemaType.ListReport);t[l.filename]=mo(e,n[c.filename])}}o(Zx,"generateAppSchemaV2LR");function Em(e,t,n){let i=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=po(a,e.serviceAVT);s||X(e.logger,{severity:Z.LogSeverity.Error,message:$.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Xe(Z.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Xe(Z.SchemaType.ObjectPage);n[l.filename]=go(e,t[c.filename])}}o(Em,"generateObjectPageSchemasV2");function eS(e,t,n,i){var a;let r={};if(i===Z.TemplateType.ListReportObjectPageV2&&n)Zx(e,r,t),Em(e,t,r);else if(i===Z.TemplateType.AnalyticalListPageV2&&n){let s=fo(e.manifest[Z.ManifestSection.generic].pages,Z.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=po(c,e.serviceAVT);let f=Xe(Z.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),u=Xe(Z.SchemaType.AnalyticalListPage);r[f.filename]=yo(e,t[u.filename])}Em(e,t,r)}else if(i===Z.TemplateType.OverviewPageV2){let s=Xe(Z.SchemaType.OverviewPage),l=Xe(Z.SchemaType.OverviewPage);r[s.filename]=ho(t[l.filename],e.manifest)}return{...t,...r}}o(eS,"generateAppSchemasV2");async function Om(e,t,n){if(e.fioriElementsVersion===Z.FioriElementsVersion.v2){let i=await Yx(n,e.fioriElementsVersion);return eS(e,i,t,n)}else{let i=$.t("INVALIDSPECFORV4");X(e.logger,{severity:Z.LogSeverity.Info,message:i,location:{path:Z.PACKAGEJSON}})}}o(Om,"generateAppSchemas");function tS(e){let t,n=[];switch(e.templateType){case Z.TemplateType.ListReportObjectPageV2:case Z.TemplateType.AnalyticalListPageV2:t=new as(e);break;case Z.TemplateType.OverviewPageV2:t=new cs(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(tS,"importConfigs");function Fm(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===Z.SchemaType.Application?r=`${Z.DirName.Schemas}/${Z.FileName.App[0].toUpperCase()}${Z.FileName.App.slice(1)}`:r=`${Z.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Fm,"getFileList");async function rf(e){var x,I;at();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new xr().doesUi5VersionFitDistTags((I=(x=t["sap.ui5"])==null?void 0:x.dependencies)==null?void 0:I.minUI5Version,i);let c=tl(t),f=gr(n,i),u=Im(f),p=nl(t,c,i),b=await Om({templateType:p,manifest:t,serviceAVT:f,fragments:r,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},u,p);if(b)return Fm(b)}o(rf,"importProjectSchema");async function of(e){var B,te;at();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new xr().doesUi5VersionFitDistTags((te=(B=t["sap.ui5"])==null?void 0:B.dependencies)==null?void 0:te.minUI5Version,i);let f=tl(t),u=gr(n,i),p=nl(t,f,i),g={templateType:p,manifest:t,serviceAVT:u,fragments:r,views:a,fioriElementsVersion:f,logger:i,featureToggles:l},b=Im(u),x=await Om(g,b,p);if(!x)return;let L=tS({manifest:t,flexChanges:s,appSchemas:x,templateType:p,logger:i,serviceAVT:u,fragments:r,views:a});return Fm(x,L)}o(of,"importProjectSchemaAndConfig");var nS=["header","sections","footer"];function iS(e,t,n,i){t.properties[n][N.SchemaTag.artifactType]=N.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=N.ControlType.Section;break;case"ObjectPageSubSectionV2":r=N.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=N.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=N.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=N.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=N.ControlType.ObjectPageHeaderSection;break}r&&(ye(e,t,n),t.properties[n][N.SchemaTag.controlType]=r)}o(iS,"addFlexChangeForSection");function rS(e,t,n,i,r){return(a,s)=>{if(!a.Determining&&a.$Type===Bn.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:f}=ll(a,r);if(!c)return;let u=a.Label||l,p=`HeaderAction<${Re(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let g=n.fullyQualifiedName.replace(`@${Bn.UIAnnotationTerms.Identification}`,`/@${Bn.UIAnnotationTerms.Identification}`);t.definitions[p][N.SchemaTag.annotationPath]=`/${g}/${s}`,t.definitions[p][N.SchemaTag.actionType]=N.ActionType.Annotation,t.definitions[p].description=u,t.definitions[p][N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:l}],f&&(t.definitions[p][N.SchemaTag.target]=f),i.properties[c]={$ref:`${j}${p}`}}}}o(rS,"addHeaderActionCallBackV2");function oS(e,t,n,i,r,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=`${N.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:f=`${N.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[f])return f;let u=`${N.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[u]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let p=[],g=r==null?void 0:r.entityTypes.find(x=>x.name===i),b=yi(t[N.ManifestSection.generic].pages,n,p);return wi(e,g,b,t,l,f,u,a.ID),f}o(oS,"ensureCustomColumnDefinitionExists");function bo(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&iS(e,t,"visible",n)}o(bo,"addAppSchemaDefinition");function aS(e,t,n){e.properties[t]={$ref:`${j}${n}`}}o(aS,"addSectionReference");function us(e,t,n,i){let r=Re(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=j+t,i.definitions[r].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[r][N.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=N.FacetTitlePrefix+n.ID,i.definitions[r][N.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=N.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${j}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=`${j}QuickVariant<${t}>`,oa(n.entityType,i,`QuickVariant<${t}>`)}o(us,"addTableDefinition");function sS(e,t,n,i,r,a){if(i.base!==N.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=zn(n,i,t);let c=n.definitions[l];bo(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[N.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],c[N.SchemaTag.annotationPath]=i.annotationPath,yr(i,c,t),us("ObjectPageResponsiveTable",t,i,n),us("ObjectPageGridTable",t,i,n),us("ObjectPageTreeTable",t,i,n),us("ObjectPageAnalyticalTable",t,i,n);let f,u=Cg(i,e.serviceAVT);u&&(f=oS(n,e.manifest,u.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r){let g=r[p];g.base===N.FacetBase.LineItem&&(g.ID===s||p.includes(s))&&Di(!0,n,g.target,g.entityType,g.ID||p,f)}}o(sS,"handleLineItem");function lS(e,t,n,i,r,a=!1){e.definitions[t]=zn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";bo(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[N.SchemaTag.isViewNode]=!0}o(lS,"handleSubSection");function cS(e,t,n,i,r){e.definitions[t]=zn(e,n,i);let a=e.definitions[t];bo(e,a,r,"ObjectPageSectionChartV2")}o(cS,"handleSectionChart");function Nm(e,t,n,i,r,a){e.definitions[t]=zn(e,n,i);let s=e.definitions[t];bo(e,s,r,a||"CommonHeaderFacetSettings"),s[N.SchemaTag.annotationPath]=n.annotationPath,s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.dataType]=aa(n==null?void 0:n.target)}o(Nm,"handleHeaderFacet");function fS(e,t,n){let i=e.definitions[t],r=i[N.SchemaTag.dataType]=aa(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(fS,"addDataPointHeaderFacetDataType");function uS(e,t,n,i,r){e.definitions[t]=zn(e,n,i);let a=e.definitions[t];return bo(e,a,r,"ObjectPageSectionFormV2"),a[N.SchemaTag.annotationPath]=n.annotationPath,a[N.SchemaTag.isViewNode]=!0,a}o(uS,"handleFormSection");function pS(e,t,n){let i=new Map([[N.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[N.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[N.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[N.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[N.FacetBase.Form,"ObjectPageHeaderSectionForm"],[N.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[N.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[N.FacetBase.LineItem,"ObjectPageSectionTableV2"],[N.FacetBase.Chart,"ObjectPageSectionChartV2"],[N.FacetBase.Address,"ObjectPageSectionAddressV2"],[N.FacetBase.Contact,"ObjectPageSectionContactV2"],[N.FacetBase.Form,"ObjectPageSectionFormV2"],[N.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[N.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[N.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[N.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[N.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[N.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[N.FacetBase.Form,"ObjectPageSubSectionFormV2"],[N.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(pS,"getSectionType");function dS(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Bn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(dS,"getReferenceKey");function Vm(e,t,n,i,r,a=!1,s=!1){let l=t[n],c=pS(l.base,a,s),f=dS(l,n,c),u=`${c}<${f}>`;switch(aS(i,f,u),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,lS(r,u,l,n,c,s);let p=r.definitions[u].properties.subsections;for(let g in l.facets)Vm(e,l.facets,g,p,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{sS(e,f,r,l,t,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{cS(r,u,l,f,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let p=uS(r,u,l,f,c);yg(N.SectionType.Section,l,p,r,N.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cl(l,f,i,r,N.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cl(l,f,i,r,N.SectionType.Section,N.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Nm(r,u,l,f,c);break}case"ObjectPageHeaderSectionDataPoint":{Nm(r,u,l,f,c),fS(r,u,l);break}default:i.properties[n]=zn(r,l,f)}}o(Vm,"addSection");function Lm(e,t,n,i,r,a=!1){if(e)for(let s in t)Vm(i,t,s,n,r,!1,a)}o(Lm,"addSectionsFromFacets");function jm(e,t,n){var u,p,g,b,x,I;let i=t.definitions[N.DefinitionName.Sections];i[N.SchemaTag.isViewNode]=!0,(u=e.entitySet)!=null&&u.entityType&&(i[N.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Bn.UIAnnotationTerms.Facets}`);let r=t.definitions[N.DefinitionName.HeaderSections];if(r[N.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(p=e.entitySet)!=null&&p.entityType&&(r[N.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Bn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Fd((g=e.entitySet)==null?void 0:g.entityType,e.serviceAVT,N.FioriElementsVersion.v2,e.logger),s=Od((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,N.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,c=s&&!!Object.keys(s).length;if(!l&&!c)return;for(let L in n){let B=n[L];(I=(x=e.entitySet)==null?void 0:x.name)!=null&&I.includes(B.entitySet)?(Lm(l,a,i,e,t),Lm(c,s,r,e,t,!0)):jm(e,t,B.pages)}let f=t.definitions.CustomSections;for(let L in f.properties)i.properties[L]=f.properties[L]}o(jm,"addSections");function gS(e,t,n){vg(e,t),Tg(e,t,n,rS,!0)}o(gS,"addHeader");function mS(e,t,n,i){let r=Nd(t,n,i,void 0,!0);r&&Ag(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(mS,"addRelatedFacetKeysType");function go(e,t){var s;at();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[N.PropertyName.sections]={$ref:j+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[N.ManifestSection.generic].pages;return a?(gS(n,r,e.serviceAVT),n.definitions[N.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},jm(e,n,a),mS(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[N.SchemaTag.isViewNode]=!0):delete n.properties[N.PropertyName.sections]),bg(n,e,N.FioriElementsVersion.v2,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.ObjectPageResponsiveTable,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,Li(n,nS),n):(X(e.logger,{severity:N.LogSeverity.Error,message:$.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),n)}o(go,"generateObjectPageSchemaV2");var Et=U(W());var yS=["filterBar","table","footer"];function af(e,t,n,i){oa(e,n,"QuickVariant"),Sg(n,"QuickVariantX",t),Pg(i,n,"QuickVariantX")}o(af,"addEnumForVariantPaths");function mo(e,t){var u,p,g,b,x,I,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+ji,n.properties.table.anyOf[1].$ref=j+br,n.properties.table.anyOf[2].$ref=j+Tr,n.properties.table.anyOf[3].$ref=j+vr;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),r=JSON.parse(JSON.stringify(n.definitions.TreeTable)),a=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),s=JSON.parse(JSON.stringify(n.definitions.GridTable)),l={$ref:j+Et.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,a.properties.columns=l,s.properties.columns=l;let c=j+Et.DefinitionName.ToolBarLR;n.definitions[ji]=i,n.definitions[ji].properties.toolBar.$ref=c,n.definitions[br]=r,n.definitions[br].properties.toolBar.$ref=c,n.definitions[Tr]=a,n.definitions[Tr].properties.toolBar.$ref=c,n.definitions[vr]=s,n.definitions[vr].properties.toolBar.$ref=c;let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(p=e.entitySet)!=null&&p.name&&X(e.logger,{severity:Et.LogSeverity.Error,message:$.t("NOENTITYTYPE4SET",{entitySetName:(g=e.entitySet)==null?void 0:g.name})});else{$i(n);let B=(x=(b=f==null?void 0:f.annotations)==null?void 0:b.UI)==null?void 0:x.LineItem;B&&ig.forEach(J=>{n.definitions[J][Et.SchemaTag.annotationPath]=$t(f==null?void 0:f.fullyQualifiedName,B.term,B.qualifier)}),Di(!1,n,B,f);let te=(L=(I=f==null?void 0:f.annotations)==null?void 0:I.UI)==null?void 0:L.SelectionFields;ia(n,te,f);let re=[],oe=qi(e.manifest[Et.ManifestSection.generic].pages,re);if(!oe)return X(e.logger,{severity:Et.LogSeverity.Error,message:$.t("NOLR"),location:{path:Et.MANIFESTPATH,range:[Et.ManifestSection.generic]}}),n;wi(n,f,oe,e.manifest,e.fragments),af(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 Li(n,yS),n}o(mo,"generateListReportSchemaV2");var xe=U(W());var hS=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Dm(e,t){let n=t.value;return n.includes(xe.UIVOCABULARYALPHADOT+e)?n.replace(xe.UIVOCABULARYALPHADOT,""):""}o(Dm,"retrieveNameWithoutVocabulary");function bS(e,t,n){var x;let i=(x=e==null?void 0:e.component)==null?void 0:x.settings,r=i==null?void 0:i.qualifier,a=o(function(I){let L=I+(r?"#"+r:"");return t[L]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?$.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):$.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return X(n,{severity:xe.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],f="",u="";c.some(function(I){return f=f||Dm("LineItem",I),u=u||Dm("Chart",I),f&&u}),f=f||"LineItem",u=u||"Chart";let p=t[f],g=t[u],b=(p||i.quickVariantSelectionX?0:1)+(g?0:2);if(b>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],L=$.t(I);X(n,{severity:xe.LogSeverity.Warning,message:L})}return{lineItemAnnotation:p,chartAnnotation:g}}o(bS,"getLineItemAndChartAnnotation");function TS(e,t){let n=e.definitions[xe.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[xe.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(TS,"addChart");function yo(e,t){var s,l,c,f,u;let n=JSON.parse(JSON.stringify(t));n.properties[xe.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[xe.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let p=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));p.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,p.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=p}catch{throw new Error($.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[xe.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${j}${xe.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${j}${xe.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,fg(n.definitions.TableColumnExtensionTypeV2.enum,[xe.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)X(e.logger,{severity:xe.LogSeverity.Error,message:$.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{$i(n);let p=[],g=Zi(e.manifest[xe.ManifestSection.generic].pages,p,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:x,chartAnnotation:I}=bS(g,b,e.logger);x&&rg.forEach(B=>{n.definitions[B][xe.SchemaTag.annotationPath]=$t(a==null?void 0:a.fullyQualifiedName,x.term,x.qualifier)}),Di(!1,n,x,a),I&&TS(n,I);let L=(u=(f=a==null?void 0:a.annotations)==null?void 0:f.UI)==null?void 0:u.SelectionFields;if(ia(n,L,a),!g)return X(e.logger,{severity:xe.LogSeverity.Error,message:$.t("NOLR"),location:{path:xe.MANIFESTPATH,range:[xe.ManifestSection.generic]}}),n;wi(n,a,g,e.manifest,e.fragments),af(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 Li(n,hS),n}o(yo,"generateAnalyticalListReportSchemaV2");function vS(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(vS,"getCardDefinitionNames");function CS(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(c=>i.includes(r[c].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Zn(a,s.CardModel);let l=vS(e);for(let c of l){let f=s[c].properties.model;delete f.type,f.$ref=j+"CardModel"}}o(CS,"addModelsEnum");function wm(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},CS(n,t),n}o(wm,"generateOverviewPageSchemaV2");var Hn=U(W());function sf(e,t,n,i,r,a){at();let s=gr(e,t),l={templateType:a,fioriElementsVersion:Hn.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=po(r,l.serviceAVT),l.entitySet||X(l.logger,{severity:Hn.LogSeverity.Error,message:$.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(sf,"prepareGenerationV2");function lf(e,t,n,i,r,a){let s=sf(n,a,i,r,t,Hn.TemplateType.ListReportObjectPageV2);return go(s,e)}o(lf,"generateObjectPageInterfaceV2");function cf(e,t,n,i,r,a){let s=sf(n,a,i,r,t,Hn.TemplateType.ListReportObjectPageV2);return mo(s,e)}o(cf,"generateListReportInterfaceV2");function ff(e,t,n,i,r,a){let s=sf(n,a,i,r,t,Hn.TemplateType.AnalyticalListPageV2);return yo(s,e)}o(ff,"generateAnalyticalListPageInterfaceV2");function ho(e,t){return wm(e,t)}o(ho,"generateOVPInterfaceV2");var z=U(W());var To=o(e=>({flexChanges:[],manifest:{[z.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:z.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:z.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function $m(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===z.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(z.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(z.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o($m,"getClassesForSingleSection");function Rm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],$m(n,i,t),Rm(n,t)}}o(Rm,"getSubsectionClasses");function xS(e,t,n){let i;for(let r in e.sections)i=t.sections[r],$m(i,r,n),Rm(i,n)}o(xS,"getExportClassesForSections");function SS(e,t){let n=qi(t.manifest[z.ManifestSection.generic].pages,e);if(!n){X(t.logger,{severity:z.LogSeverity.Error,message:$.t("NOLR"),location:{path:z.MANIFESTPATH,range:[z.ManifestSection.generic]}});return}if(!n.component){X(t.logger,{severity:z.LogSeverity.Error,message:$.t("COMPONENTNOTDEFINED",{pageName:z.PageTypeV2.ListReport}),location:{path:z.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(SS,"findV2Page");function uf(e,t){let n=kd(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(uf,"calculateBaseId");function _m(e,t,n=!1){let i=To(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=SS(a,e),l=new ct,c=l.createPageInstance(z.PageTypeV2.ListReport,r),f={v2Page:s,exportResults:i,appId:e.appId,baseId:uf(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:z.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(f,c,[],[],e.jsonSchema)}return i}o(_m,"exportListReportPage");function Mm(e,t,n=!1){let i=e.page.config,r=To(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Zi(e.manifest[z.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new ct,c=l.createPageInstance(z.PageTypeV2.AnalyticalListPage,i),f={v2Page:s,exportResults:r,appId:e.appId,baseId:uf(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:z.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(f,c,[],[],e.jsonSchema)}return r}o(Mm,"exportAnalyticalListPage");function km(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=To(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=yi(e.manifest[z.ManifestSection.generic].pages,r,s);if(!l)return X(e.logger,{severity:z.LogSeverity.Error,message:$.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:z.MANIFESTPATH,range:[z.ManifestSection.generic]}}),a;let c=new ct,f=c.createPageInstance(z.PageTypeV2.ObjectPage,i);if(i.sections&&xS(i,f,c),Object.keys(i).length!==0){let u={v2Page:l,exportResults:a,appId:e.appId,baseId:uf(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:z.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};kn(u,f,[],[],e.jsonSchema)}}return a}o(km,"exportObjectPage");var Um=o(e=>{let t=To();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ct,i=n.createPageInstance(z.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&uo(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),PS=o((e,t,n)=>{var s;let i=To();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new la,e);r.settings=Object.assign(new Pn,e.settings);for(let l in n.definitions.AppSettings.properties){let c=St(r.settings,l);if(c&&c.manifest){let f=c.manifest.path(),u=ze(i.manifest,f);e.settings&&e.settings[l]!==void 0?u[l]=e.settings[l]:(delete u[l],hr(i.manifest,f,!1))}}let a=(s=i.manifest[z.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&pl(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Bm(e,t){if(e[z.SchemaType.ListReport])return _m(e[z.SchemaType.ListReport],t);if(e[z.SchemaType.ObjectPage])return km(e[z.SchemaType.ObjectPage],t);if(e[z.SchemaType.OverviewPage])return Um(e[z.SchemaType.OverviewPage]);if(e[z.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[z.SchemaType.Application];return PS(n,i,r)}else if(e[z.SchemaType.AnalyticalListPage])return Mm(e[z.SchemaType.AnalyticalListPage],t)}o(Bm,"exportPageV2");function pf(e,t,n=!1){if(e[z.SchemaType.ListReport])return _m(e[z.SchemaType.ListReport],t,n);if(e[z.SchemaType.ObjectPage])return km(e[z.SchemaType.ObjectPage],t,n);if(e[z.SchemaType.OverviewPage])return Um(e[z.SchemaType.OverviewPage]);if(e[z.SchemaType.AnalyticalListPage])return Mm(e[z.SchemaType.AnalyticalListPage],t,n)}o(pf,"exportConfigEntityByPathV2");function AS(e){let t;if(e[Ce.FioriElementsVersion.v2]){let n=e[Ce.FioriElementsVersion.v2];if(n[Ce.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Ce.SchemaType.ListReport];t=cf(i,r,a,s,l,c)}else if(n[Ce.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Ce.SchemaType.ObjectPage];t=lf(i,r,a,s,l,c)}else if(n[Ce.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Ce.SchemaType.OverviewPage];t=ho(i,r)}else if(n[Ce.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Ce.SchemaType.AnalyticalListPage];t=ff(i,r,a,s,l,c)}}return t}o(AS,"generateSchema");function ES(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=Bm(i,n)}return t}o(ES,"exportConfig");function IS(e){let t=Ce.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=pf(i,n)}return t}o(IS,"exportConfigEntityByPath");function OS(e){let t=Ce.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Ce.FioriElementsVersion.v2]){let i=e[Ce.FioriElementsVersion.v2];t=pf(i,n,!0)}return t}o(OS,"deleteConfigEntityByPath");function FS(e){let t;if(e[Ce.FioriElementsVersion.v2]){let n=e[Ce.FioriElementsVersion.v2];n[Ce.SchemaType.ListReport]?t=ns(n[Ce.SchemaType.ListReport]):n[Ce.SchemaType.ObjectPage]?t=os(n[Ce.SchemaType.ObjectPage]):n[Ce.SchemaType.OverviewPage]?t=ls(n[Ce.SchemaType.OverviewPage]):n[Ce.SchemaType.AnalyticalListPage]&&(t=is(n[Ce.SchemaType.AnalyticalListPage]))}return t}o(FS,"importConfig");async function NS(e){return of(e)}o(NS,"importProject");async function LS(e){return rf(e)}o(LS,"importProjectSchema");function VS(){return{version:"15",moduleVersion:Lg.version}}o(VS,"getApiVersion");var jt=require("path"),Gn=require("fs");var er=o(async e=>new Promise((t,n)=>{(0,Gn.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),jS=o(async e=>JSON.parse(await er(e)),"readJSON"),df=o(async e=>new Promise((t,n)=>{(0,Gn.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),DS=o(async e=>new Promise(t=>{(0,Gn.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),Hm=o(async e=>new Promise(t=>{(0,Gn.exists)(e,n=>{t(n)})}),"resourceExists"),wS=o(async e=>jS((0,jt.join)(e,"manifest.json")),"getManifest"),Gm=o(async e=>{let t=[],n=(0,jt.join)(e,"changes");if(!await Hm(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await df(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await er((0,jt.join)(n,a)));return t},"getChanges"),$S=o(async e=>{let t=[],n=(0,jt.join)(e,"ext","fragments");if(!await Hm(n))return t;let i=await df(n);for(let r of i){let a=(0,jt.join)(n,r),s=await er(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),RS=o(async(e,t)=>{var r,a,s,l,c,f,u,p;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let g=(0,jt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:g,fileContent:await er(g)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let g of i.mainService.settings.annotations)if((u=(f=i[g])==null?void 0:f.settings)!=null&&u.localUri){let b=(0,jt.join)(t,i[g].settings.localUri);n.push({dataSourceUri:b,fileContent:await er(b)})}}if(n.length===0)for(let g in i){let b=i[g];if((b==null?void 0:b.type)==="ODataAnnotation"&&((p=b==null?void 0:b.settings)!=null&&p.localUri)){let x=(0,jt.join)(t,b.settings.localUri);n.push({dataSourceUri:x,fileContent:await er(x)})}}return n},"getAnnotations"),_S=o(async e=>{let t=(0,jt.basename)(e),n=(0,jt.join)(e,"webapp"),i=await wS(n),r=await RS(i,n),a=await Gm(n),s=await $S(n);return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s}},"getProject");Jn(Kn,U(W()),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: