@sap/ux-specification 1.71.132 → 1.71.134

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 (46) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  6. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  7. package/dist/index-min.js +23 -23
  8. package/dist/index-min.js.map +3 -3
  9. package/dist/specification/package.json +2 -2
  10. package/dist/specification/scripts/extractDocu.js +5 -2
  11. package/dist/specification/scripts/extractDocu.js.map +1 -1
  12. package/dist/specification/src/sync/common/dist_tag.json +17 -2
  13. package/dist/specification/src/sync/common/generate/utils.d.ts +7 -0
  14. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  15. package/dist/specification/src/sync/common/generate/utils.js +17 -0
  16. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  17. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +72 -0
  18. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -0
  19. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +307 -0
  20. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -0
  21. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
  22. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
  23. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
  24. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
  25. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +2 -2
  26. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +6 -6
  27. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  28. package/dist/specification/src/sync/v2/generate/utils.d.ts +1 -14
  29. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  30. package/dist/specification/src/sync/v2/generate/utils.js +0 -43
  31. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  32. package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -3
  33. package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
  34. package/dist/specification/src/sync/v2/import/importPage.js +4 -13
  35. package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
  36. package/dist/specification/src/sync/v2/utils.d.ts +8 -0
  37. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  38. package/dist/specification/src/sync/v2/utils.js +11 -1
  39. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  40. package/dist/types/src/apiTypes.d.ts +13 -0
  41. package/dist/types/src/apiTypes.d.ts.map +1 -1
  42. package/dist/types/src/apiTypes.js +18 -1
  43. package/dist/types/src/apiTypes.js.map +1 -1
  44. package/dist/types/src/common/types.d.ts +4 -0
  45. package/dist/types/src/common/types.d.ts.map +1 -1
  46. package/package.json +2 -2
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var gy=Object.create;var Ei=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var my=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,hy=Object.prototype.hasOwnProperty;var o=(e,t)=>Ei(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Po=(e,t)=>{for(var n in t)Ei(e,n,{get:t[n],enumerable:!0})},Eo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of my(t))!hy.call(e,r)&&r!==n&&Ei(e,r,{get:()=>t[r],enumerable:!(i=xu(t,r))||i.enumerable});return e},Xn=(e,t,n)=>(Eo(e,t,"default"),n&&Eo(n,t,"default")),U=(e,t,n)=>(n=e!=null?gy(yy(e)):{},Eo(t||!e||!e.__esModule?Ei(n,"default",{value:e,enumerable:!0}):n,e)),by=e=>Eo(Ei({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?xu(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&&Ei(t,n,r),r};var Nf=Ie((nE,Ff)=>{var bs=Object.defineProperty,Ty=Object.getOwnPropertyDescriptor,vy=Object.getOwnPropertyNames,Cy=Object.prototype.hasOwnProperty,Eu=o((e,t)=>{for(var n in t)bs(e,n,{get:t[n],enumerable:!0})},"u"),Sy=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of vy(t))!Cy.call(e,r)&&r!==n&&bs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=Ty(t,r))||i.enumerable});return e},"Te"),xy=o(e=>Sy(bs({},"__esModule",{value:!0}),e),"Oe"),Pu={};Eu(Pu,{ACTIONTITLEPREFIX:o(()=>Iy,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>Vu,"ALPViewType"),ActionType:o(()=>$u,"ActionType"),ArtifactType:o(()=>Du,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>Fy,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>Uu,"ChangeIndicator"),CloudDevAdaptationStatus:o(()=>Yu,"CloudDevAdaptationStatus"),ControlType:o(()=>Ru,"ControlType"),DataSourceType:o(()=>Zu,"DataSourceType"),DefinitionName:o(()=>Gu,"DefinitionName"),DirName:o(()=>Mu,"DirName"),DraftDiscardEnabledSettings:o(()=>Qu,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>Lu,"ExportArtifacts"),ExportType:o(()=>_u,"ExportType"),FACETTITLEPREFIX:o(()=>Ay,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>By,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>Uy,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>My,"FRAGMENTNAMEPART"),FacetBase:o(()=>Bu,"FacetBase"),Features:o(()=>of,"Features"),FileName:o(()=>ku,"FileName"),FioriElementsVersion:o(()=>Au,"FioriElementsVersion"),FlexChangeLayer:o(()=>Fu,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>zu,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>Ou,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>ky,"GENERICAPPSETTINGS"),LogSeverity:o(()=>nf,"LogSeverity"),MANIFESTPATH:o(()=>Ny,"MANIFESTPATH"),ManifestSection:o(()=>ef,"ManifestSection"),OdataVersion:o(()=>Iu,"OdataVersion"),PACKAGEJSON:o(()=>Ly,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>Py,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>Ey,"PageType"),PageTypeV2:o(()=>Ts,"PageTypeV2"),PropertyName:o(()=>Wu,"PropertyName"),QUICKVARPATH:o(()=>wy,"QUICKVARPATH"),QUICKVARPATHX:o(()=>_y,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>Gy,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>Hy,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>Ju,"SchemaKeyName"),SchemaTag:o(()=>Ku,"SchemaTag"),SchemaType:o(()=>Nu,"SchemaType"),SectionType:o(()=>ju,"SectionType"),StatePreservationMode:o(()=>Xu,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>qu,"TableColumnVerticalAlignment"),TemplateType:o(()=>rf,"TemplateType"),UIVOCABULARY:o(()=>Dy,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>Ry,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>$y,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>jy,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>Vy,"VOCWITHSLASH"),ViewTemplateType:o(()=>Hu,"ViewTemplateType"),ViewTypes:o(()=>tf,"ViewTypes"),Visualization:o(()=>wu,"Visualization"),defaultExportResult:o(()=>Oy,"defaultExportResult"),logSeverityLabel:o(()=>Wy,"logSeverityLabel"),v2:o(()=>af,"v2")});Ff.exports=xy(Pu);var Ts=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ts||{}),Ey={...Ts},Py=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"]]),Au=(e=>(e.v2="v2",e.v4="v4",e))(Au||{}),Iu=(e=>(e.v2="v2",e.v4="v4",e))(Iu||{}),Ou=(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))(Ou||{}),Fu=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Fu||{}),Nu=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Nu||{}),Lu=(e=>(e.flex="flex",e.manifest="manifest",e))(Lu||{}),Vu=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Vu||{}),ju=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(ju||{}),Du=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Du||{}),$u=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))($u||{}),Ru=(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))(Ru||{}),wu=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(wu||{}),_u=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(_u||{}),Mu=(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))(Mu||{}),ku=(e=>(e.App="app.json",e))(ku||{}),Ay="Facet ID: ",Iy="Action ID: ",Uu=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(Uu||{}),Oy={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Bu=(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))(Bu||{}),Fy="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Hu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Hu||{}),Gu=(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))(Gu||{}),Wu=(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))(Wu||{}),Ku=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(Ku||{}),Ju=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Ju||{}),Ny="webapp/manifest.json",Ly="package.json",Vy="/@com.sap.vocabularies",jy="::@com.sap.vocabularies",Dy="com.sap.vocabularies.UI.v1",$y="com.sap.vocabularies.UI.v1.",Ry="@com.sap.vocabularies.UI.v1.",wy="/quickVariantSelection",_y="/quickVariantSelectionX",My=".fragment.",Qu=(e=>(e.restricted="restricted",e))(Qu||{}),qu=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(qu||{}),Xu=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Xu||{}),zu=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(zu||{}),Yu=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Yu||{}),Zu=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Zu||{}),ef=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(ef||{}),ky="sap.ui.generic.app/settings",Uy="sap.fe.templates.RootContainer.view.Fcl",By="appRootView",tf=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(tf||{}),Hy="sap.ui.core.mvc.View",Gy="sap.ui.core.Fragment",nf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(nf||{}),Wy={error:"Error",warning:"Warning",info:"Information"},rf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(rf||{}),of=(e=>(e.BuildingBlocks="BuildingBlocks",e))(of||{}),af={};Eu(af,{AvatarShape:o(()=>Ef,"AvatarShape"),ButtonType:o(()=>sf,"ButtonType"),CardSettingsType:o(()=>uf,"CardSettingsType"),CardTemplateType:o(()=>cf,"CardTemplateType"),ChartCardType:o(()=>lf,"ChartCardType"),ChartType:o(()=>xf,"ChartType"),ContainerLayoutType:o(()=>Of,"ContainerLayoutType"),CreateMode:o(()=>If,"CreateMode"),DefaultContentView:o(()=>Cf,"DefaultContentView"),DefaultFilterMode:o(()=>Sf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Af,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Qy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>zy,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>Xy,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>qy,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>mf,"HAlign"),LinkListFlavorType:o(()=>gf,"LinkListFlavorType"),ListFlavorType:o(()=>ff,"ListFlavorType"),ListTypeType:o(()=>pf,"ListTypeType"),PopinLayout:o(()=>Tf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>Zy,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>Yy,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>nh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>th,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>eh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>Pf,"SectionPosition"),SortOrderType:o(()=>df,"SortOrderType"),Strategy:o(()=>vf,"Strategy"),TableColumnExtensionTypeV2:o(()=>bf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>hf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>Jy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Ky,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>yf,"customColumnViewTypes")});var sf=(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))(sf||{}),lf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(lf||{}),cf=(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))(cf||{}),Ky={"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"},uf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(uf||{}),ff=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(ff||{}),pf=(e=>(e.extended="extended",e.condensed="condensed",e))(pf||{}),df=(e=>(e.ascending="ascending",e.descending="descending",e))(df||{}),gf=(e=>(e.standard="standard",e.carousel="carousel",e))(gf||{}),mf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(mf||{}),yf=(e=>(e.XML="XML",e))(yf||{}),hf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(hf||{}),bf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(bf||{}),Tf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Tf||{}),vf=(e=>(e.extension="extension",e))(vf||{}),Cf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Cf||{}),Sf=(e=>(e.visual="visual",e.compact="compact",e))(Sf||{}),xf=(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))(xf||{}),Ef=(e=>(e.Circle="Circle",e.Square="Square",e))(Ef||{}),Pf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Pf||{}),Af=(e=>(e.XML="XML",e))(Af||{}),If=(e=>(e.inline="inline",e))(If||{}),Qy="sap.suite.ui.generic.template",qy="sap.suite.ui.generic.template.ObjectPage",Xy="sap.suite.ui.generic.template.ListReport",zy="sap.suite.ui.generic.template.AnalyticalListPage",Yy="sap.ui.viewExtensions",Zy="sap.ui.controllerExtensions",eh="sap.suite.ui.generic.template.ObjectPage.view.Details",th="sap.suite.ui.generic.template.ListReport.view.ListReport",nh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Of=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Of||{})});var Df=Ie(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Features=Jt.TemplateType=Jt.logSeverityLabel=Jt.LogSeverity=void 0;var Lf;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Lf||(Jt.LogSeverity=Lf={}));Jt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var Vf;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Vf||(Jt.TemplateType=Vf={}));var jf;(function(e){e.BuildingBlocks="BuildingBlocks"})(jf||(Jt.Features=jf={}))});var op=Ie((oE,rp)=>{var vs=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,rh=Object.getOwnPropertyNames,oh=Object.prototype.hasOwnProperty,ah=o((e,t)=>{for(var n in t)vs(e,n,{get:t[n],enumerable:!0})},"R"),sh=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of rh(t))!oh.call(e,r)&&r!==n&&vs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=ih(t,r))||i.enumerable});return e},"h"),lh=o(e=>sh(vs({},"__esModule",{value:!0}),e),"N"),$f={};ah($f,{AvatarShape:o(()=>Zf,"AvatarShape"),ButtonType:o(()=>Rf,"ButtonType"),CardSettingsType:o(()=>Mf,"CardSettingsType"),CardTemplateType:o(()=>_f,"CardTemplateType"),ChartCardType:o(()=>wf,"ChartCardType"),ChartType:o(()=>Yf,"ChartType"),ContainerLayoutType:o(()=>ip,"ContainerLayoutType"),CreateMode:o(()=>np,"CreateMode"),DefaultContentView:o(()=>Xf,"DefaultContentView"),DefaultFilterMode:o(()=>zf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>tp,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>fh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>gh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>dh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>ph,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>Gf,"HAlign"),LinkListFlavorType:o(()=>Hf,"LinkListFlavorType"),ListFlavorType:o(()=>kf,"ListFlavorType"),ListTypeType:o(()=>Uf,"ListTypeType"),PopinLayout:o(()=>Qf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>yh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>mh,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>Th,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>bh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>hh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>ep,"SectionPosition"),SortOrderType:o(()=>Bf,"SortOrderType"),Strategy:o(()=>qf,"Strategy"),TableColumnExtensionTypeV2:o(()=>Jf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>Kf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>uh,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>ch,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>Wf,"customColumnViewTypes")});rp.exports=lh($f);var Rf=(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))(Rf||{}),wf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(wf||{}),_f=(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))(_f||{}),ch={"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"},uh={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Mf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Mf||{}),kf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(kf||{}),Uf=(e=>(e.extended="extended",e.condensed="condensed",e))(Uf||{}),Bf=(e=>(e.ascending="ascending",e.descending="descending",e))(Bf||{}),Hf=(e=>(e.standard="standard",e.carousel="carousel",e))(Hf||{}),Gf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Gf||{}),Wf=(e=>(e.XML="XML",e))(Wf||{}),Kf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Kf||{}),Jf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Jf||{}),Qf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Qf||{}),qf=(e=>(e.extension="extension",e))(qf||{}),Xf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Xf||{}),zf=(e=>(e.visual="visual",e.compact="compact",e))(zf||{}),Yf=(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))(Yf||{}),Zf=(e=>(e.Circle="Circle",e.Square="Square",e))(Zf||{}),ep=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(ep||{}),tp=(e=>(e.XML="XML",e))(tp||{}),np=(e=>(e.inline="inline",e))(np||{}),fh="sap.suite.ui.generic.template",ph="sap.suite.ui.generic.template.ObjectPage",dh="sap.suite.ui.generic.template.ListReport",gh="sap.suite.ui.generic.template.AnalyticalListPage",mh="sap.ui.viewExtensions",yh="sap.ui.controllerExtensions",hh="sap.suite.ui.generic.template.ObjectPage.view.Details",bh="sap.suite.ui.generic.template.ListReport.view.ListReport",Th="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",ip=(e=>(e.fixed="fixed",e.resizable="resizable",e))(ip||{})});var K=Ie(ht=>{"use strict";var ap=ht&&ht.__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]}),vh=ht&&ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),sp=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ap(t,e,n)},Ch=ht&&ht.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&ap(n,t,i[r]);return vh(n,t),n}}();Object.defineProperty(ht,"__esModule",{value:!0});ht.v2=void 0;sp(Nf(),ht);sp(Df(),ht);ht.v2=Ch(op())});var _s=Ie((PE,Cp)=>{"use strict";var kh=o(function(t){return Uh(t)&&!Bh(t)},"isMergeableObject");function Uh(e){return!!e&&typeof e=="object"}o(Uh,"isNonNullObject");function Bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Wh(e)}o(Bh,"isSpecial");var Hh=typeof Symbol=="function"&&Symbol.for,Gh=Hh?Symbol.for("react.element"):60103;function Wh(e){return e.$$typeof===Gh}o(Wh,"isReactElement");function Kh(e){return Array.isArray(e)?[]:{}}o(Kh,"emptyTarget");function ur(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oi(Kh(e),e,t):e}o(ur,"cloneUnlessOtherwiseSpecified");function Jh(e,t,n){return e.concat(t).map(function(i){return ur(i,n)})}o(Jh,"defaultArrayMerge");function Qh(e,t){if(!t.customMerge)return Oi;var n=t.customMerge(e);return typeof n=="function"?n:Oi}o(Qh,"getMergeFunction");function qh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(qh,"getEnumerableOwnPropertySymbols");function Tp(e){return Object.keys(e).concat(qh(e))}o(Tp,"getKeys");function vp(e,t){try{return t in e}catch{return!1}}o(vp,"propertyIsOnObject");function Xh(e,t){return vp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Xh,"propertyIsUnsafe");function zh(e,t,n){var i={};return n.isMergeableObject(e)&&Tp(e).forEach(function(r){i[r]=ur(e[r],n)}),Tp(t).forEach(function(r){Xh(e,r)||(vp(e,r)&&n.isMergeableObject(t[r])?i[r]=Qh(r,n)(e[r],t[r],n):i[r]=ur(t[r],n))}),i}o(zh,"mergeObject");function Oi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Jh,n.isMergeableObject=n.isMergeableObject||kh,n.cloneUnlessOtherwiseSpecified=ur;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):zh(e,t,n):ur(t,n)}o(Oi,"deepmerge");Oi.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 Oi(i,r,n)},{})},"deepmergeAll");var Yh=Oi;Cp.exports=Yh});var $o=Ie(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.Double=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var Zh=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:o(function(){return Zh.EnumIsFlag},"get")});var eb=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:o(function(){return eb.TermToTypes},"get")});var tb=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:o(function(){return tb.VocabularyReferences},"get")});function Sp(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(Sp,"splitAt");function xp(e,t){return t<0?e:e.substring(0,t)}o(xp,"substringAt");function Do(e,t){return Sp(e,e.indexOf(t))}o(Do,"splitAtFirst");be.splitAtFirst=Do;function Ep(e,t){return Sp(e,e.lastIndexOf(t))}o(Ep,"splitAtLast");be.splitAtLast=Ep;function nb(e,t){return xp(e,e.indexOf(t))}o(nb,"substringBeforeFirst");be.substringBeforeFirst=nb;function ib(e,t){return xp(e,e.lastIndexOf(t))}o(ib,"substringBeforeLast");be.substringBeforeLast=ib;function Pp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Ep(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Do(t,"@");return`${a}@${Pp(e,s)}`}else return t}o(Pp,"alias");be.alias=Pp;function Ms(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[s,l]=Do(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),u=c?s.substring(1):s,f=e.referenceMap[u];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=Do(s,"("),u=[r(l)];if(c){let f=c.slice(0,-1);u.push(`(${r(f)})`)}return a.push(u.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Ms,"unalias");be.unalias=Ms;function rb(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(rb,"isComplexTypeDefinition");be.isComplexTypeDefinition=rb;function ob(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ob,"Double");be.Double=ob;function ab(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ab,"Decimal");be.Decimal=ab;function sb(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(sb,"lazy");be.lazy=sb;function Ap(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(Ap,"createIndexedFind");be.createIndexedFind=Ap;function lb(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Ap(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(lb,"addGetByValue");be.addGetByValue=lb;function cb(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let c=(a=Ms(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ms(e,f.term))!==null&&p!==void 0?p:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(p=>p.term===f.term&&p.qualifier===f.qualifier));n[c].push(...u)}return n},{})}o(cb,"mergeAnnotations");be.mergeAnnotations=cb});var kp=Ie(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.convert=void 0;var Ro=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),M=$o(),_t=Symbol("Annotation Target");function cn(e,t){return e[e.length-1]!==t&&e.push(t),e}o(cn,"appendObjectPath");function Pt(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 u=n.split("/").reduce((p,g)=>{if(g.includes("@")){let[b,E]=(0,M.splitAtFirst)(g,"@");p.push(b),p.push(`@${E}`)}else p.push(g);return p},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(u[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${u[0]}()`),u.shift()):t=e.getConvertedEntityContainer();else if(t[_t]!==void 0)t=t[_t];else if(t._type==="Property"){let p=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let f=u.reduce((p,g)=>{var b,E,I,L,G;let oe=o(Y=>(p.messages.push({message:Y}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=cn(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[Y,re]=e.splitTerm(g),J=(b=p.target.annotations[Y.substring(1)])===null||b===void 0?void 0:b[re];return J!==void 0?(p.target=J,p):oe(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let Y;if(g==="$AnnotationPath"?Y=p.target.value:g==="$Path"&&(Y=p.target.path),Y!==void 0){let re=Pt(e,p.target[_t],Y);return re.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=cn(p.objectPath,J))}),p.target=re.target,p.objectPath=cn(p.objectPath,p.target),p}}switch((E=p.target)===null||E===void 0?void 0:E._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 Ee=J.navigationPropertyBinding;return p.target=Ee,p}let le=Pt(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(cn,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 Ee=J.navigationProperties.by_name(g);if(Ee)return p.target=Ee,p;let C=(0,M.substringBeforeFirst)(e.unalias(g),"("),an=J.actions[C];if(an)return p.target=an,p}break;case"ActionImport":{let J=Pt(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(cn,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=(G=J.parameters[g])!==null&&G!==void 0?G:J.parameters.find(Ee=>Ee.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Ee=le.properties.by_name(g);if(Ee)return p.target=Ee,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let Y=p.target.typeReference;if(Y!==void 0){let J=Pt(e,Y,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(cn,p.objectPath),p}break;case"NavigationProperty":let re=Pt(e,p.target.targetType,g);return p.target=re.target,p.objectPath=re.objectPath.reduce(cn,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=cn(p.objectPath,p.target),p}return oe(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(p=>e.logError(p.message)),!f.target)if(i){let p=Lp(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var yy=Object.create;var Ei=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var hy=Object.getOwnPropertyNames;var by=Object.getPrototypeOf,Ty=Object.prototype.hasOwnProperty;var o=(e,t)=>Ei(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Po=(e,t)=>{for(var n in t)Ei(e,n,{get:t[n],enumerable:!0})},Eo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hy(t))!Ty.call(e,r)&&r!==n&&Ei(e,r,{get:()=>t[r],enumerable:!(i=xu(t,r))||i.enumerable});return e},Xn=(e,t,n)=>(Eo(e,t,"default"),n&&Eo(n,t,"default")),U=(e,t,n)=>(n=e!=null?yy(by(e)):{},Eo(t||!e||!e.__esModule?Ei(n,"default",{value:e,enumerable:!0}):n,e)),vy=e=>Eo(Ei({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?xu(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&&Ei(t,n,r),r};var Lf=Ie((rE,Nf)=>{var bs=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,Sy=Object.getOwnPropertyNames,xy=Object.prototype.hasOwnProperty,Eu=o((e,t)=>{for(var n in t)bs(e,n,{get:t[n],enumerable:!0})},"u"),Ey=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Sy(t))!xy.call(e,r)&&r!==n&&bs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=Cy(t,r))||i.enumerable});return e},"Oe"),Py=o(e=>Ey(bs({},"__esModule",{value:!0}),e),"Ve"),Pu={};Eu(Pu,{ACTIONTITLEPREFIX:o(()=>Fy,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>Vu,"ALPViewType"),ActionType:o(()=>$u,"ActionType"),ArtifactType:o(()=>Du,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>Ly,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>Uu,"ChangeIndicator"),CloudDevAdaptationStatus:o(()=>Yu,"CloudDevAdaptationStatus"),ControlType:o(()=>wu,"ControlType"),DataSourceType:o(()=>Zu,"DataSourceType"),DefinitionName:o(()=>Gu,"DefinitionName"),DirName:o(()=>Mu,"DirName"),DraftDiscardEnabledSettings:o(()=>Qu,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>Lu,"ExportArtifacts"),ExportType:o(()=>_u,"ExportType"),FACETTITLEPREFIX:o(()=>Oy,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>Gy,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>Hy,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>Uy,"FRAGMENTNAMEPART"),FacetBase:o(()=>Bu,"FacetBase"),Features:o(()=>af,"Features"),FileName:o(()=>ku,"FileName"),FioriElementsVersion:o(()=>Au,"FioriElementsVersion"),FlexChangeLayer:o(()=>Fu,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>zu,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>Ou,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>By,"GENERICAPPSETTINGS"),LogSeverity:o(()=>nf,"LogSeverity"),MANIFESTPATH:o(()=>Vy,"MANIFESTPATH"),ManifestSection:o(()=>ef,"ManifestSection"),OdataVersion:o(()=>Iu,"OdataVersion"),PACKAGEJSON:o(()=>jy,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>Iy,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>Ay,"PageType"),PageTypeV2:o(()=>Ts,"PageTypeV2"),PropertyMessageType:o(()=>rf,"PropertyMessageType"),PropertyName:o(()=>Wu,"PropertyName"),QUICKVARPATH:o(()=>My,"QUICKVARPATH"),QUICKVARPATHX:o(()=>ky,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>Ky,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>Wy,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>Ju,"SchemaKeyName"),SchemaTag:o(()=>Ku,"SchemaTag"),SchemaType:o(()=>Nu,"SchemaType"),SectionType:o(()=>ju,"SectionType"),StatePreservationMode:o(()=>Xu,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>qu,"TableColumnVerticalAlignment"),TemplateType:o(()=>of,"TemplateType"),UIVOCABULARY:o(()=>wy,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>_y,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>Ry,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>$y,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>Dy,"VOCWITHSLASH"),ViewTemplateType:o(()=>Hu,"ViewTemplateType"),ViewTypes:o(()=>tf,"ViewTypes"),Visualization:o(()=>Ru,"Visualization"),defaultExportResult:o(()=>Ny,"defaultExportResult"),logSeverityLabel:o(()=>Jy,"logSeverityLabel"),v2:o(()=>sf,"v2")});Nf.exports=Py(Pu);var Ts=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ts||{}),Ay={...Ts},Iy=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"]]),Au=(e=>(e.v2="v2",e.v4="v4",e))(Au||{}),Iu=(e=>(e.v2="v2",e.v4="v4",e))(Iu||{}),Ou=(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))(Ou||{}),Fu=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Fu||{}),Nu=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Nu||{}),Lu=(e=>(e.flex="flex",e.manifest="manifest",e))(Lu||{}),Vu=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Vu||{}),ju=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(ju||{}),Du=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Du||{}),$u=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))($u||{}),wu=(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))(wu||{}),Ru=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Ru||{}),_u=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(_u||{}),Mu=(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))(Mu||{}),ku=(e=>(e.App="app.json",e))(ku||{}),Oy="Facet ID: ",Fy="Action ID: ",Uu=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(Uu||{}),Ny={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Bu=(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))(Bu||{}),Ly="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Hu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Hu||{}),Gu=(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))(Gu||{}),Wu=(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))(Wu||{}),Ku=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(Ku||{}),Ju=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Ju||{}),Vy="webapp/manifest.json",jy="package.json",Dy="/@com.sap.vocabularies",$y="::@com.sap.vocabularies",wy="com.sap.vocabularies.UI.v1",Ry="com.sap.vocabularies.UI.v1.",_y="@com.sap.vocabularies.UI.v1.",My="/quickVariantSelection",ky="/quickVariantSelectionX",Uy=".fragment.",Qu=(e=>(e.restricted="restricted",e))(Qu||{}),qu=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(qu||{}),Xu=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Xu||{}),zu=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(zu||{}),Yu=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Yu||{}),Zu=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Zu||{}),ef=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(ef||{}),By="sap.ui.generic.app/settings",Hy="sap.fe.templates.RootContainer.view.Fcl",Gy="appRootView",tf=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(tf||{}),Wy="sap.ui.core.mvc.View",Ky="sap.ui.core.Fragment",nf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(nf||{}),Jy={error:"Error",warning:"Warning",info:"Information"},rf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(rf||{}),of=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(of||{}),af=(e=>(e.BuildingBlocks="BuildingBlocks",e))(af||{}),sf={};Eu(sf,{AvatarShape:o(()=>Pf,"AvatarShape"),ButtonType:o(()=>lf,"ButtonType"),CardSettingsType:o(()=>ff,"CardSettingsType"),CardTemplateType:o(()=>uf,"CardTemplateType"),ChartCardType:o(()=>cf,"ChartCardType"),ChartType:o(()=>Ef,"ChartType"),ContainerLayoutType:o(()=>Ff,"ContainerLayoutType"),CreateMode:o(()=>Of,"CreateMode"),DefaultContentView:o(()=>Sf,"DefaultContentView"),DefaultFilterMode:o(()=>xf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>If,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Xy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>Zy,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>Yy,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>zy,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>yf,"HAlign"),LinkListFlavorType:o(()=>mf,"LinkListFlavorType"),ListFlavorType:o(()=>pf,"ListFlavorType"),ListTypeType:o(()=>df,"ListTypeType"),PopinLayout:o(()=>vf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>th,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>eh,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>rh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>ih,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>nh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>Af,"SectionPosition"),SortOrderType:o(()=>gf,"SortOrderType"),Strategy:o(()=>Cf,"Strategy"),TableColumnExtensionTypeV2:o(()=>Tf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>bf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>qy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Qy,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>hf,"customColumnViewTypes")});var lf=(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))(lf||{}),cf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(cf||{}),uf=(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))(uf||{}),Qy={"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"},ff=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(ff||{}),pf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(pf||{}),df=(e=>(e.extended="extended",e.condensed="condensed",e))(df||{}),gf=(e=>(e.ascending="ascending",e.descending="descending",e))(gf||{}),mf=(e=>(e.standard="standard",e.carousel="carousel",e))(mf||{}),yf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(yf||{}),hf=(e=>(e.XML="XML",e))(hf||{}),bf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(bf||{}),Tf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Tf||{}),vf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(vf||{}),Cf=(e=>(e.extension="extension",e))(Cf||{}),Sf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Sf||{}),xf=(e=>(e.visual="visual",e.compact="compact",e))(xf||{}),Ef=(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))(Ef||{}),Pf=(e=>(e.Circle="Circle",e.Square="Square",e))(Pf||{}),Af=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Af||{}),If=(e=>(e.XML="XML",e))(If||{}),Of=(e=>(e.inline="inline",e))(Of||{}),Xy="sap.suite.ui.generic.template",zy="sap.suite.ui.generic.template.ObjectPage",Yy="sap.suite.ui.generic.template.ListReport",Zy="sap.suite.ui.generic.template.AnalyticalListPage",eh="sap.ui.viewExtensions",th="sap.ui.controllerExtensions",nh="sap.suite.ui.generic.template.ObjectPage.view.Details",ih="sap.suite.ui.generic.template.ListReport.view.ListReport",rh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ff=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ff||{})});var wf=Ie(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Features=Vt.TemplateType=Vt.PropertyMessageType=Vt.logSeverityLabel=Vt.LogSeverity=void 0;var Vf;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Vf||(Vt.LogSeverity=Vf={}));Vt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var jf;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(jf||(Vt.PropertyMessageType=jf={}));var Df;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Df||(Vt.TemplateType=Df={}));var $f;(function(e){e.BuildingBlocks="BuildingBlocks"})($f||(Vt.Features=$f={}))});var sp=Ie((sE,ap)=>{var vs=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,ah=Object.getOwnPropertyNames,sh=Object.prototype.hasOwnProperty,lh=o((e,t)=>{for(var n in t)vs(e,n,{get:t[n],enumerable:!0})},"R"),ch=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ah(t))!sh.call(e,r)&&r!==n&&vs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=oh(t,r))||i.enumerable});return e},"h"),uh=o(e=>ch(vs({},"__esModule",{value:!0}),e),"N"),Rf={};lh(Rf,{AvatarShape:o(()=>tp,"AvatarShape"),ButtonType:o(()=>_f,"ButtonType"),CardSettingsType:o(()=>Uf,"CardSettingsType"),CardTemplateType:o(()=>kf,"CardTemplateType"),ChartCardType:o(()=>Mf,"ChartCardType"),ChartType:o(()=>ep,"ChartType"),ContainerLayoutType:o(()=>op,"ContainerLayoutType"),CreateMode:o(()=>rp,"CreateMode"),DefaultContentView:o(()=>Yf,"DefaultContentView"),DefaultFilterMode:o(()=>Zf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>ip,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>dh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>yh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>mh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>gh,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>Kf,"HAlign"),LinkListFlavorType:o(()=>Wf,"LinkListFlavorType"),ListFlavorType:o(()=>Bf,"ListFlavorType"),ListTypeType:o(()=>Hf,"ListTypeType"),PopinLayout:o(()=>Xf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>bh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>hh,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>Ch,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>vh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>Th,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>np,"SectionPosition"),SortOrderType:o(()=>Gf,"SortOrderType"),Strategy:o(()=>zf,"Strategy"),TableColumnExtensionTypeV2:o(()=>qf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>Qf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>ph,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>fh,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>Jf,"customColumnViewTypes")});ap.exports=uh(Rf);var _f=(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))(_f||{}),Mf=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Mf||{}),kf=(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))(kf||{}),fh={"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"},ph={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Uf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Uf||{}),Bf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Bf||{}),Hf=(e=>(e.extended="extended",e.condensed="condensed",e))(Hf||{}),Gf=(e=>(e.ascending="ascending",e.descending="descending",e))(Gf||{}),Wf=(e=>(e.standard="standard",e.carousel="carousel",e))(Wf||{}),Kf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Kf||{}),Jf=(e=>(e.XML="XML",e))(Jf||{}),Qf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Qf||{}),qf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(qf||{}),Xf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Xf||{}),zf=(e=>(e.extension="extension",e))(zf||{}),Yf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Yf||{}),Zf=(e=>(e.visual="visual",e.compact="compact",e))(Zf||{}),ep=(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))(ep||{}),tp=(e=>(e.Circle="Circle",e.Square="Square",e))(tp||{}),np=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(np||{}),ip=(e=>(e.XML="XML",e))(ip||{}),rp=(e=>(e.inline="inline",e))(rp||{}),dh="sap.suite.ui.generic.template",gh="sap.suite.ui.generic.template.ObjectPage",mh="sap.suite.ui.generic.template.ListReport",yh="sap.suite.ui.generic.template.AnalyticalListPage",hh="sap.ui.viewExtensions",bh="sap.ui.controllerExtensions",Th="sap.suite.ui.generic.template.ObjectPage.view.Details",vh="sap.suite.ui.generic.template.ListReport.view.ListReport",Ch="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",op=(e=>(e.fixed="fixed",e.resizable="resizable",e))(op||{})});var K=Ie(ht=>{"use strict";var lp=ht&&ht.__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]}),Sh=ht&&ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cp=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lp(t,e,n)},xh=ht&&ht.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&lp(n,t,i[r]);return Sh(n,t),n}}();Object.defineProperty(ht,"__esModule",{value:!0});ht.v2=void 0;cp(Lf(),ht);cp(wf(),ht);ht.v2=xh(sp())});var _s=Ie((IE,xp)=>{"use strict";var Bh=o(function(t){return Hh(t)&&!Gh(t)},"isMergeableObject");function Hh(e){return!!e&&typeof e=="object"}o(Hh,"isNonNullObject");function Gh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Jh(e)}o(Gh,"isSpecial");var Wh=typeof Symbol=="function"&&Symbol.for,Kh=Wh?Symbol.for("react.element"):60103;function Jh(e){return e.$$typeof===Kh}o(Jh,"isReactElement");function Qh(e){return Array.isArray(e)?[]:{}}o(Qh,"emptyTarget");function ur(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oi(Qh(e),e,t):e}o(ur,"cloneUnlessOtherwiseSpecified");function qh(e,t,n){return e.concat(t).map(function(i){return ur(i,n)})}o(qh,"defaultArrayMerge");function Xh(e,t){if(!t.customMerge)return Oi;var n=t.customMerge(e);return typeof n=="function"?n:Oi}o(Xh,"getMergeFunction");function zh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(zh,"getEnumerableOwnPropertySymbols");function Cp(e){return Object.keys(e).concat(zh(e))}o(Cp,"getKeys");function Sp(e,t){try{return t in e}catch{return!1}}o(Sp,"propertyIsOnObject");function Yh(e,t){return Sp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Yh,"propertyIsUnsafe");function Zh(e,t,n){var i={};return n.isMergeableObject(e)&&Cp(e).forEach(function(r){i[r]=ur(e[r],n)}),Cp(t).forEach(function(r){Yh(e,r)||(Sp(e,r)&&n.isMergeableObject(t[r])?i[r]=Xh(r,n)(e[r],t[r],n):i[r]=ur(t[r],n))}),i}o(Zh,"mergeObject");function Oi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||qh,n.isMergeableObject=n.isMergeableObject||Bh,n.cloneUnlessOtherwiseSpecified=ur;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Zh(e,t,n):ur(t,n)}o(Oi,"deepmerge");Oi.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 Oi(i,r,n)},{})},"deepmergeAll");var eb=Oi;xp.exports=eb});var $o=Ie(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.Double=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var tb=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:o(function(){return tb.EnumIsFlag},"get")});var nb=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:o(function(){return nb.TermToTypes},"get")});var ib=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:o(function(){return ib.VocabularyReferences},"get")});function Ep(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(Ep,"splitAt");function Pp(e,t){return t<0?e:e.substring(0,t)}o(Pp,"substringAt");function Do(e,t){return Ep(e,e.indexOf(t))}o(Do,"splitAtFirst");be.splitAtFirst=Do;function Ap(e,t){return Ep(e,e.lastIndexOf(t))}o(Ap,"splitAtLast");be.splitAtLast=Ap;function rb(e,t){return Pp(e,e.indexOf(t))}o(rb,"substringBeforeFirst");be.substringBeforeFirst=rb;function ob(e,t){return Pp(e,e.lastIndexOf(t))}o(ob,"substringBeforeLast");be.substringBeforeLast=ob;function Ip(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Ap(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Do(t,"@");return`${a}@${Ip(e,s)}`}else return t}o(Ip,"alias");be.alias=Ip;function Ms(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[s,l]=Do(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),u=c?s.substring(1):s,f=e.referenceMap[u];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=Do(s,"("),u=[r(l)];if(c){let f=c.slice(0,-1);u.push(`(${r(f)})`)}return a.push(u.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Ms,"unalias");be.unalias=Ms;function ab(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(ab,"isComplexTypeDefinition");be.isComplexTypeDefinition=ab;function sb(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(sb,"Double");be.Double=sb;function lb(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(lb,"Decimal");be.Decimal=lb;function cb(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(cb,"lazy");be.lazy=cb;function Op(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(Op,"createIndexedFind");be.createIndexedFind=Op;function ub(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Op(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(ub,"addGetByValue");be.addGetByValue=ub;function fb(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let c=(a=Ms(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ms(e,f.term))!==null&&p!==void 0?p:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(p=>p.term===f.term&&p.qualifier===f.qualifier));n[c].push(...u)}return n},{})}o(fb,"mergeAnnotations");be.mergeAnnotations=fb});var Bp=Ie(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.convert=void 0;var wo=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),M=$o(),Mt=Symbol("Annotation Target");function ln(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ln,"appendObjectPath");function Pt(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 u=n.split("/").reduce((p,g)=>{if(g.includes("@")){let[b,E]=(0,M.splitAtFirst)(g,"@");p.push(b),p.push(`@${E}`)}else p.push(g);return p},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(u[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${u[0]}()`),u.shift()):t=e.getConvertedEntityContainer();else if(t[Mt]!==void 0)t=t[Mt];else if(t._type==="Property"){let p=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let f=u.reduce((p,g)=>{var b,E,I,L,G;let oe=o(Y=>(p.messages.push({message:Y}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=ln(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[Y,re]=e.splitTerm(g),J=(b=p.target.annotations[Y.substring(1)])===null||b===void 0?void 0:b[re];return J!==void 0?(p.target=J,p):oe(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let Y;if(g==="$AnnotationPath"?Y=p.target.value:g==="$Path"&&(Y=p.target.path),Y!==void 0){let re=Pt(e,p.target[Mt],Y);return re.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=ln(p.objectPath,J))}),p.target=re.target,p.objectPath=ln(p.objectPath,p.target),p}}switch((E=p.target)===null||E===void 0?void 0:E._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 Ee=J.navigationPropertyBinding;return p.target=Ee,p}let le=Pt(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(ln,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 Ee=J.navigationProperties.by_name(g);if(Ee)return p.target=Ee,p;let C=(0,M.substringBeforeFirst)(e.unalias(g),"("),on=J.actions[C];if(on)return p.target=on,p}break;case"ActionImport":{let J=Pt(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,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=(G=J.parameters[g])!==null&&G!==void 0?G:J.parameters.find(Ee=>Ee.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Ee=le.properties.by_name(g);if(Ee)return p.target=Ee,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let Y=p.target.typeReference;if(Y!==void 0){let J=Pt(e,Y,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,p.objectPath),p}break;case"NavigationProperty":let re=Pt(e,p.target.targetType,g);return p.target=re.target,p.objectPath=re.objectPath.reduce(ln,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=ln(p.objectPath,p.target),p}return oe(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(p=>e.logError(p.message)),!f.target)if(i){let p=jp(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 = `+u[0]+`>
13
- <PropertyValue Path= `+u[1]+">");return f}o(Pt,"resolveTarget");function ub(e){return e.includes("@")}o(ub,"isAnnotationPath");function Ip(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[_t]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,t.PropertyPath,r).target),a}o(Ip,"mapPropertyPath");function Op(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[_t]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,a.value,r).target),a}o(Op,"mapAnnotationPath");function Fp(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[_t]:i};return(0,M.lazy)(s,"$target",()=>Pt(e,i,t.NavigationPropertyPath,r).target),s}o(Fp,"mapNavigationPropertyPath");function fb(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[_t]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,t.Path,r).target),a}o(fb,"mapPath");function Np(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"Double":return(0,M.Double)(a.Double);case"Decimal":return(0,M.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var u;let f=(u=e.unalias(c))!==null&&u!==void 0?u:"";return(0,M.alias)(Ro.VocabularyReferences,f)});return l[0]!==void 0&&M.EnumIsFlag[(0,M.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return Ip(e,a,s,t,n);case"NavigationPropertyPath":return Fp(e,a,s,t,n);case"AnnotationPath":return Op(e,a,s,t,n);case"Path":return ub(a.Path)?Pt(e,t,e.unalias(a.Path),n).target:fb(e,a,s,t,n);case"Record":return Bs(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(Np,"parseValue");function Lp(e,t,n,i){let r=M.TermToTypes[t];return i&&(t=`${(0,M.substringBeforeLast)(t,".")}.${i}`,r=M.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= `+u[1]+">");return f}o(Pt,"resolveTarget");function pb(e){return e.includes("@")}o(pb,"isAnnotationPath");function Fp(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[Mt]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,t.PropertyPath,r).target),a}o(Fp,"mapPropertyPath");function Np(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[Mt]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,a.value,r).target),a}o(Np,"mapAnnotationPath");function Lp(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[Mt]:i};return(0,M.lazy)(s,"$target",()=>Pt(e,i,t.NavigationPropertyPath,r).target),s}o(Lp,"mapNavigationPropertyPath");function db(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[Mt]:i};return(0,M.lazy)(a,"$target",()=>Pt(e,i,t.Path,r).target),a}o(db,"mapPath");function Vp(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"Double":return(0,M.Double)(a.Double);case"Decimal":return(0,M.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var u;let f=(u=e.unalias(c))!==null&&u!==void 0?u:"";return(0,M.alias)(wo.VocabularyReferences,f)});return l[0]!==void 0&&M.EnumIsFlag[(0,M.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return Fp(e,a,s,t,n);case"NavigationPropertyPath":return Lp(e,a,s,t,n);case"AnnotationPath":return Np(e,a,s,t,n);case"Path":return pb(a.Path)?Pt(e,t,e.unalias(a.Path),n).target:db(e,a,s,t,n);case"Record":return Bs(e,n,t,i,r,a.Record,s);case"Collection":return Dp(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(Vp,"parseValue");function jp(e,t,n,i){let r=M.TermToTypes[t];return i&&(t=`${(0,M.substringBeforeLast)(t,".")}.${i}`,r=M.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}o(Lp,"inferTypeFromTerm");function pb(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(pb,"isDataFieldWithForAction");function db(e,t,n,i,r){let a;return!r.type&&t?a=Lp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(db,"parseRecordType");function Bs(e,t,n,i,r,a,s){let l={$Type:db(e,t,n,i,a),fullyQualifiedName:s,[_t]:n,__source:r};for(let c of a.propertyValues)(0,M.lazy)(l,c.name,()=>Np(e,n,t,c.name,r,c.value,`${s}/${c.name}`));return(0,M.lazy)(l,"annotations",Dp(e,a,l)),pb(l)&&(0,M.lazy)(l,"ActionTarget",()=>{var c,u;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[f];return p||(p=(u=e.getConvertedActionImport(f))===null||u===void 0?void 0:u.action),p||(p=e.getConvertedAction(f),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),p}),l}o(Bs,"parseRecord");function gb(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(gb,"getOrInferCollectionType");function Vp(e,t,n,i,r,a,s){switch(gb(a)){case"PropertyPath":return a.map((c,u)=>Ip(e,c,`${s}/${u}`,t,n));case"Path":return a.map(c=>Pt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>Op(e,c,`${s}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>Fp(e,c,`${s}/${u}`,t,n));case"Record":return a.map((c,u)=>Bs(e,n,t,i,r,c,`${s}/${u}`));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 mb(e){return!!e.targetTypeName}o(mb,"isV4NavigationProperty");function yb(e,t,n){var i;let r;if(n.record)r=Bs(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=Np(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[_t]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Ro.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,M.lazy)(r,"annotations",Dp(e,n,r))}catch{}return r}o(yb,"convertAnnotation");var Hs=class Hs{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,M.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,$p)}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,M.addGetByValue)(i,"name"),(0,M.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,M.alias)(Ro.VocabularyReferences,t);return(0,M.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,M.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Hs,"Converter");var ks=Hs;function fr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(fr,"resolveEntityType");function jp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,M.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(jp,"resolveNavigationPropertyBindings");function un(e,t){let n=t.annotations;return()=>wo(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(un,"resolveAnnotations");function Dp(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[_t]=n[_t],a.fullyQualifiedName=`${i}@${a.term}`}),wo(e,n,r??[])}}o(Dp,"resolveAnnotationsOnAnnotation");function wo(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,M.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>yb(c,t,u))),i},{})}o(wo,"createAnnotationsObject");function $p(e,t){let n=t;return(0,M.lazy)(n,"annotations",un(e,t)),(0,M.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,wp)),(0,M.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Rp)),(0,M.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Mp)),n}o($p,"convertEntityContainer");function Rp(e,t){let n=t;(0,M.lazy)(n,"entityType",fr(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",un(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",jp(e,i)),n}o(Rp,"convertSingleton");function wp(e,t){let n=t;(0,M.lazy)(n,"entityType",fr(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",un(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",jp(e,i)),n}o(wp,"convertEntitySet");function hb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,M.lazy)(n,"annotations",un(e,t)),(0,M.lazy)(n,"keys",e.convert(t.keys,Us)),(0,M.lazy)(n,"entityProperties",e.convert(t.entityProperties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,_p)),(0,M.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=Pt(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(hb,"convertEntityType");function Us(e,t){let n=t;return(0,M.lazy)(n,"annotations",un(e,t)),(0,M.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(Us,"convertProperty");function _p(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!mb(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,M.lazy)(a,"targetType",fr(e,t.targetTypeName)),(0,M.lazy)(a,"annotations",un(e,t)),a}o(_p,"convertNavigationProperty");function Mp(e,t){let n=t;return(0,M.lazy)(n,"annotations",un(e,t)),(0,M.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(Mp,"convertActionImport");function bb(e,t){let n=t;return n.sourceType&&(0,M.lazy)(n,"sourceEntityType",fr(e,t.sourceType)),n.returnType&&(0,M.lazy)(n,"returnEntityType",fr(e,t.returnType)),(0,M.lazy)(n,"parameters",e.convert(t.parameters,Tb)),(0,M.lazy)(n,"annotations",()=>{let i=(0,M.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 wo(e,t,a)}),n}o(bb,"convertAction");function Tb(e,t){let n=t;return(0,M.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,M.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wo(e,t,a)}),n}o(Tb,"convertActionParameter");function vb(e,t){let n=t;return(0,M.lazy)(n,"properties",e.convert(t.properties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,_p)),(0,M.lazy)(n,"annotations",un(e,t)),n}o(vb,"convertComplexType");function Cb(e,t){let n=t;return(0,M.lazy)(n,"annotations",un(e,t)),n}o(Cb,"convertTypeDefinition");function Sb(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Ro.VocabularyReferences,diagnostics:[]},n=new ks(e,t);return(0,M.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,$p)),(0,M.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,wp)),(0,M.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Rp)),(0,M.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,hb)),(0,M.lazy)(t,"actions",n.convert(n.rawSchema.actions,bb)),(0,M.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,vb)),(0,M.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Mp)),(0,M.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,Cb)),t.resolvePath=o(function(r){let a=Pt(n,void 0,r);return a.target&&cn(a.objectPath,a.target),a},"resolvePath"),t}o(Sb,"convert");_o.convert=Sb});var Gp=Ie(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.revertTermToGenericType=void 0;var Gs=$o();function xb(e,t){var n,i,r,a,s,l,c;let u;if(Array.isArray(t)){let f=t[0],p=!1;if(f&&typeof f=="string"){let g=f.valueOf().split(".");g.length>1&&e.find(b=>b.alias===g[0])&&(p=Gs.EnumIsFlag[(0,Gs.substringBeforeFirst)(f,"/")])}p?u={type:"EnumMember",EnumMember:t.map(g=>g.valueOf()).join(" ")}:u={type:"Collection",Collection:t.map(g=>Mo(e,g))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))u={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(p=>p.alias===f[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?u={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?u={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?u={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:Mo(e,t)});return u}o(xb,"revertObjectToRawType");function Up(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=xb(e,t);break}return n}o(Up,"revertValueToRawType");var Eb=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Bp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=Hp(e,t[i][r]);if(!a.term){let s=(0,Gs.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(Bp,"revertAnnotationsToRawType");function Mo(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(Eb.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Up(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Bp(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Mo,"revertCollectionItemToRawType");function Hp(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=[],Bp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Mo(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Mo(e,t)}:{...n,value:Up(e,t)}}o(Hp,"revertTermToGenericType");ko.revertTermToGenericType=Hp});var Wp=Ie(fn=>{"use strict";var Pb=fn&&fn.__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]}),Ws=fn&&fn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Pb(t,e,n)};Object.defineProperty(fn,"__esModule",{value:!0});Ws(kp(),fn);Ws($o(),fn);Ws(Gp(),fn)});var Xs=Ie(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.MergedRawMetadata=Pn.RawMetadataInstance=Pn.ensureArray=void 0;function Ab(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Ab,"ensureArray");Pn.ensureArray=Ab;var Qs=class Qs{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Qs,"RawMetadataInstance");var Ks=Qs;Pn.RawMetadataInstance=Ks;var qs=class qs{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(qs,"MergedRawMetadata");var Js=qs;Pn.MergedRawMetadata=Js});var Kp=Ie(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.merge=void 0;var Ib=Xs();function Ob(...e){let t=new Ib.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(Ob,"merge");Uo.merge=Ob});var Jp=Ie(Bo=>{(function(e){e.parser=function(h,d){return new n(h,d)},e.SAXParser=n,e.SAXStream=u,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 A=this;r(A),A.q=A.c="",A.bufferCheckPosition=e.MAX_BUFFER_LENGTH,A.opt=d||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!h,A.noscript=!!(h||A.opt.noscript),A.state=C.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(E)),A.opt.unquotedAttributeValues===void 0&&(A.opt.unquotedAttributeValues=!h),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),Wt(A,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}o(d,"F"),d.prototype=h;var A=new d;return A}),Object.keys||(Object.keys=function(h){var d=[];for(var A in h)h.hasOwnProperty(A)&&d.push(A);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),A=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>d)switch(t[T]){case"textNode":En(h);break;case"cdata":Ae(h,"oncdata",h.cdata),h.cdata="";break;case"script":Ae(h,"onscript",h.script),h.script="";break;default:mt(h,"Max buffer length exceeded: "+t[T])}A=Math.max(A,ke)}var Le=e.MAX_BUFFER_LENGTH-A;h.bufferCheckPosition=Le+h.position}o(i,"checkBufferLength");function r(h){for(var d=0,A=t.length;d<A;d++)h[t[d]]=""}o(r,"clearBuffers");function a(h){En(h),h.cdata!==""&&(Ae(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Ae(h,"onscript",h.script),h.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:we,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 u(h,d)}o(c,"createStream");function u(h,d){if(!(this instanceof u))return new u(h,d);s.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var A=this;this._parser.onend=function(){A.emit("end")},this._parser.onerror=function(T){A.emit("error",T),A._parser.error=null},this._decoder=null,l.forEach(function(T){Object.defineProperty(A,"on"+T,{get:o(function(){return A._parser["on"+T]},"get"),set:o(function(se){if(!se)return A.removeAllListeners(T),A._parser["on"+T]=se,se;A.on(T,se)},"set"),enumerable:!0,configurable:!1})})}o(u,"SAXStream"),u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.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},u.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},u.prototype.on=function(h,d){var A=this;return!A._parser["on"+h]&&l.indexOf(h)!==-1&&(A._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),A.emit.apply(A,T)}),s.prototype.on.call(A,h,d)};var f="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",E={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-]/,G=/[#:_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]/,oe=/[#:_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 Y(h){return h===" "||h===`
20
- `||h==="\r"||h===" "}o(Y,"isWhitespace");function re(h){return h==='"'||h==="'"}o(re,"isQuote");function J(h){return h===">"||Y(h)}o(J,"isAttribEnd");function le(h,d){return h.test(d)}o(le,"isMatch");function Ee(h,d){return!le(h,d)}o(Ee,"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],A=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[h]=A});for(var an in e.STATE)e.STATE[e.STATE[an]]=an;C=e.STATE;function Wt(h,d,A){h[d]&&h[d](A)}o(Wt,"emit");function Ae(h,d,A){h.textNode&&En(h),Wt(h,d,A)}o(Ae,"emitNode");function En(h){h.textNode=Ci(h.opt,h.textNode),h.textNode&&Wt(h,"ontext",h.textNode),h.textNode=""}o(En,"closeText");function Ci(h,d){return h.trim&&(d=d.trim()),h.normalize&&(d=d.replace(/\s+/g," ")),d}o(Ci,"textopts");function mt(h,d){return En(h),h.trackPosition&&(d+=`
19
+ </Annotations>`),r}o(jp,"inferTypeFromTerm");function gb(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(gb,"isDataFieldWithForAction");function mb(e,t,n,i,r){let a;return!r.type&&t?a=jp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(mb,"parseRecordType");function Bs(e,t,n,i,r,a,s){let l={$Type:mb(e,t,n,i,a),fullyQualifiedName:s,[Mt]:n,__source:r};for(let c of a.propertyValues)(0,M.lazy)(l,c.name,()=>Vp(e,n,t,c.name,r,c.value,`${s}/${c.name}`));return(0,M.lazy)(l,"annotations",wp(e,a,l)),gb(l)&&(0,M.lazy)(l,"ActionTarget",()=>{var c,u;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[f];return p||(p=(u=e.getConvertedActionImport(f))===null||u===void 0?void 0:u.action),p||(p=e.getConvertedAction(f),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),p}),l}o(Bs,"parseRecord");function yb(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(yb,"getOrInferCollectionType");function Dp(e,t,n,i,r,a,s){switch(yb(a)){case"PropertyPath":return a.map((c,u)=>Fp(e,c,`${s}/${u}`,t,n));case"Path":return a.map(c=>Pt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>Np(e,c,`${s}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>Lp(e,c,`${s}/${u}`,t,n));case"Record":return a.map((c,u)=>Bs(e,n,t,i,r,c,`${s}/${u}`));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(Dp,"parseCollection");function hb(e){return!!e.targetTypeName}o(hb,"isV4NavigationProperty");function bb(e,t,n){var i;let r;if(n.record)r=Bs(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=Vp(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=Dp(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[Mt]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,wo.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,M.lazy)(r,"annotations",wp(e,n,r))}catch{}return r}o(bb,"convertAnnotation");var Hs=class Hs{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,M.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,Rp)}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,M.addGetByValue)(i,"name"),(0,M.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,M.alias)(wo.VocabularyReferences,t);return(0,M.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,M.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Hs,"Converter");var ks=Hs;function fr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(fr,"resolveEntityType");function $p(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,M.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o($p,"resolveNavigationPropertyBindings");function cn(e,t){let n=t.annotations;return()=>Ro(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(cn,"resolveAnnotations");function wp(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[Mt]=n[Mt],a.fullyQualifiedName=`${i}@${a.term}`}),Ro(e,n,r??[])}}o(wp,"resolveAnnotationsOnAnnotation");function Ro(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,M.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>bb(c,t,u))),i},{})}o(Ro,"createAnnotationsObject");function Rp(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Mp)),(0,M.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,_p)),(0,M.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Up)),n}o(Rp,"convertEntityContainer");function _p(e,t){let n=t;(0,M.lazy)(n,"entityType",fr(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",$p(e,i)),n}o(_p,"convertSingleton");function Mp(e,t){let n=t;(0,M.lazy)(n,"entityType",fr(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",$p(e,i)),n}o(Mp,"convertEntitySet");function Tb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"keys",e.convert(t.keys,Us)),(0,M.lazy)(n,"entityProperties",e.convert(t.entityProperties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,kp)),(0,M.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=Pt(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(Tb,"convertEntityType");function Us(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.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(Us,"convertProperty");function kp(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!hb(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,M.lazy)(a,"targetType",fr(e,t.targetTypeName)),(0,M.lazy)(a,"annotations",cn(e,t)),a}o(kp,"convertNavigationProperty");function Up(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.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(Up,"convertActionImport");function vb(e,t){let n=t;return n.sourceType&&(0,M.lazy)(n,"sourceEntityType",fr(e,t.sourceType)),n.returnType&&(0,M.lazy)(n,"returnEntityType",fr(e,t.returnType)),(0,M.lazy)(n,"parameters",e.convert(t.parameters,Cb)),(0,M.lazy)(n,"annotations",()=>{let i=(0,M.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 Ro(e,t,a)}),n}o(vb,"convertAction");function Cb(e,t){let n=t;return(0,M.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,M.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ro(e,t,a)}),n}o(Cb,"convertActionParameter");function Sb(e,t){let n=t;return(0,M.lazy)(n,"properties",e.convert(t.properties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,kp)),(0,M.lazy)(n,"annotations",cn(e,t)),n}o(Sb,"convertComplexType");function xb(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),n}o(xb,"convertTypeDefinition");function Eb(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:wo.VocabularyReferences,diagnostics:[]},n=new ks(e,t);return(0,M.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Rp)),(0,M.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Mp)),(0,M.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,_p)),(0,M.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,Tb)),(0,M.lazy)(t,"actions",n.convert(n.rawSchema.actions,vb)),(0,M.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,Sb)),(0,M.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Up)),(0,M.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,xb)),t.resolvePath=o(function(r){let a=Pt(n,void 0,r);return a.target&&ln(a.objectPath,a.target),a},"resolvePath"),t}o(Eb,"convert");_o.convert=Eb});var Kp=Ie(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.revertTermToGenericType=void 0;var Gs=$o();function Pb(e,t){var n,i,r,a,s,l,c;let u;if(Array.isArray(t)){let f=t[0],p=!1;if(f&&typeof f=="string"){let g=f.valueOf().split(".");g.length>1&&e.find(b=>b.alias===g[0])&&(p=Gs.EnumIsFlag[(0,Gs.substringBeforeFirst)(f,"/")])}p?u={type:"EnumMember",EnumMember:t.map(g=>g.valueOf()).join(" ")}:u={type:"Collection",Collection:t.map(g=>Mo(e,g))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))u={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(p=>p.alias===f[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?u={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?u={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?u={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:Mo(e,t)});return u}o(Pb,"revertObjectToRawType");function Hp(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=Pb(e,t);break}return n}o(Hp,"revertValueToRawType");var Ab=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Gp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=Wp(e,t[i][r]);if(!a.term){let s=(0,Gs.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(Gp,"revertAnnotationsToRawType");function Mo(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(Ab.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Hp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Gp(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Mo,"revertCollectionItemToRawType");function Wp(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=[],Gp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Mo(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Mo(e,t)}:{...n,value:Hp(e,t)}}o(Wp,"revertTermToGenericType");ko.revertTermToGenericType=Wp});var Jp=Ie(un=>{"use strict";var Ib=un&&un.__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]}),Ws=un&&un.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ib(t,e,n)};Object.defineProperty(un,"__esModule",{value:!0});Ws(Bp(),un);Ws($o(),un);Ws(Kp(),un)});var Xs=Ie(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.MergedRawMetadata=Pn.RawMetadataInstance=Pn.ensureArray=void 0;function Ob(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Ob,"ensureArray");Pn.ensureArray=Ob;var Qs=class Qs{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Qs,"RawMetadataInstance");var Ks=Qs;Pn.RawMetadataInstance=Ks;var qs=class qs{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(qs,"MergedRawMetadata");var Js=qs;Pn.MergedRawMetadata=Js});var Qp=Ie(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.merge=void 0;var Fb=Xs();function Nb(...e){let t=new Fb.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(Nb,"merge");Uo.merge=Nb});var qp=Ie(Bo=>{(function(e){e.parser=function(h,d){return new n(h,d)},e.SAXParser=n,e.SAXStream=u,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 A=this;r(A),A.q=A.c="",A.bufferCheckPosition=e.MAX_BUFFER_LENGTH,A.opt=d||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!h,A.noscript=!!(h||A.opt.noscript),A.state=C.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(E)),A.opt.unquotedAttributeValues===void 0&&(A.opt.unquotedAttributeValues=!h),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),Kt(A,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}o(d,"F"),d.prototype=h;var A=new d;return A}),Object.keys||(Object.keys=function(h){var d=[];for(var A in h)h.hasOwnProperty(A)&&d.push(A);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),A=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>d)switch(t[T]){case"textNode":En(h);break;case"cdata":Ae(h,"oncdata",h.cdata),h.cdata="";break;case"script":Ae(h,"onscript",h.script),h.script="";break;default:mt(h,"Max buffer length exceeded: "+t[T])}A=Math.max(A,ke)}var Le=e.MAX_BUFFER_LENGTH-A;h.bufferCheckPosition=Le+h.position}o(i,"checkBufferLength");function r(h){for(var d=0,A=t.length;d<A;d++)h[t[d]]=""}o(r,"clearBuffers");function a(h){En(h),h.cdata!==""&&(Ae(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Ae(h,"onscript",h.script),h.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:Re,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 u(h,d)}o(c,"createStream");function u(h,d){if(!(this instanceof u))return new u(h,d);s.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var A=this;this._parser.onend=function(){A.emit("end")},this._parser.onerror=function(T){A.emit("error",T),A._parser.error=null},this._decoder=null,l.forEach(function(T){Object.defineProperty(A,"on"+T,{get:o(function(){return A._parser["on"+T]},"get"),set:o(function(se){if(!se)return A.removeAllListeners(T),A._parser["on"+T]=se,se;A.on(T,se)},"set"),enumerable:!0,configurable:!1})})}o(u,"SAXStream"),u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.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},u.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},u.prototype.on=function(h,d){var A=this;return!A._parser["on"+h]&&l.indexOf(h)!==-1&&(A._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),A.emit.apply(A,T)}),s.prototype.on.call(A,h,d)};var f="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",E={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-]/,G=/[#:_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]/,oe=/[#:_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 Y(h){return h===" "||h===`
20
+ `||h==="\r"||h===" "}o(Y,"isWhitespace");function re(h){return h==='"'||h==="'"}o(re,"isQuote");function J(h){return h===">"||Y(h)}o(J,"isAttribEnd");function le(h,d){return h.test(d)}o(le,"isMatch");function Ee(h,d){return!le(h,d)}o(Ee,"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],A=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[h]=A});for(var on in e.STATE)e.STATE[e.STATE[on]]=on;C=e.STATE;function Kt(h,d,A){h[d]&&h[d](A)}o(Kt,"emit");function Ae(h,d,A){h.textNode&&En(h),Kt(h,d,A)}o(Ae,"emitNode");function En(h){h.textNode=Ci(h.opt,h.textNode),h.textNode&&Kt(h,"ontext",h.textNode),h.textNode=""}o(En,"closeText");function Ci(h,d){return h.trim&&(d=d.trim()),h.normalize&&(d=d.replace(/\s+/g," ")),d}o(Ci,"textopts");function mt(h,d){return En(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,Wt(h,"onerror",d),h}o(mt,"error");function Nt(h){return h.sawRoot&&!h.closedRoot&&ye(h,"Unclosed root tag"),h.state!==C.BEGIN&&h.state!==C.BEGIN_WHITESPACE&&h.state!==C.TEXT&&mt(h,"Unexpected end"),En(h),h.c="",h.closed=!0,Wt(h,"onend"),n.call(h,h.strict,h.opt),h}o(Nt,"end");function ye(h,d){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&mt(h,d)}o(ye,"strictFail");function qn(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var d=h.tags[h.tags.length-1]||h,A=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(A.ns=d.ns),h.attribList.length=0,Ae(h,"onopentagstart",A)}o(qn,"newTag");function Je(h,d){var A=h.indexOf(":"),T=A<0?["",h]:h.split(":"),se=T[0],ke=T[1];return d&&h==="xmlns"&&(se="xmlns",ke=""),{prefix:se,local:ke}}o(Je,"qname");function yt(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=Je(h.attribName,!0),A=d.prefix,T=d.local;if(A==="xmlns")if(T==="xml"&&h.attribValue!==g)ye(h,"xml: prefix must be bound to "+g+`
23
+ Char: `+h.c),d=new Error(d),h.error=d,Kt(h,"onerror",d),h}o(mt,"error");function Nt(h){return h.sawRoot&&!h.closedRoot&&ye(h,"Unclosed root tag"),h.state!==C.BEGIN&&h.state!==C.BEGIN_WHITESPACE&&h.state!==C.TEXT&&mt(h,"Unexpected end"),En(h),h.c="",h.closed=!0,Kt(h,"onend"),n.call(h,h.strict,h.opt),h}o(Nt,"end");function ye(h,d){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&mt(h,d)}o(ye,"strictFail");function qn(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var d=h.tags[h.tags.length-1]||h,A=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(A.ns=d.ns),h.attribList.length=0,Ae(h,"onopentagstart",A)}o(qn,"newTag");function Je(h,d){var A=h.indexOf(":"),T=A<0?["",h]:h.split(":"),se=T[0],ke=T[1];return d&&h==="xmlns"&&(se="xmlns",ke=""),{prefix:se,local:ke}}o(Je,"qname");function yt(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=Je(h.attribName,!0),A=d.prefix,T=d.local;if(A==="xmlns")if(T==="xml"&&h.attribValue!==g)ye(h,"xml: prefix must be bound to "+g+`
24
24
  Actual: `+h.attribValue);else if(T==="xmlns"&&h.attribValue!==b)ye(h,"xmlns: prefix must be bound to "+b+`
25
- Actual: `+h.attribValue);else{var se=h.tag,ke=h.tags[h.tags.length-1]||h;se.ns===ke.ns&&(se.ns=Object.create(ke.ns)),se.ns[T]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Ae(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}o(yt,"attrib");function it(h,d){if(h.opt.xmlns){var A=h.tag,T=Je(h.tagName);A.prefix=T.prefix,A.local=T.local,A.uri=A.ns[T.prefix]||"",A.prefix&&!A.uri&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),A.uri=T.prefix);var se=h.tags[h.tags.length-1]||h;A.ns&&se.ns!==A.ns&&Object.keys(A.ns).forEach(function(xi){Ae(h,"onopennamespace",{prefix:xi,uri:A.ns[xi]})});for(var ke=0,Le=h.attribList.length;ke<Le;ke++){var nt=h.attribList[ke],rt=nt[0],Kt=nt[1],Qe=Je(rt,!0),Lt=Qe.prefix,xo=Qe.local,rr=Lt===""?"":A.ns[Lt]||"",Si={name:rt,value:Kt,prefix:Lt,local:xo,uri:rr};Lt&&Lt!=="xmlns"&&!rr&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(Lt)),Si.uri=Lt),h.tag.attributes[rt]=Si,Ae(h,"onattribute",Si)}h.attribList.length=0}h.tag.isSelfClosing=!!d,h.sawRoot=!0,h.tags.push(h.tag),Ae(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(it,"openTag");function sn(h){if(!h.tagName){ye(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}Ae(h,"onscript",h.script),h.script=""}var d=h.tags.length,A=h.tagName;h.strict||(A=A[h.looseCase]());for(var T=A;d--;){var se=h.tags[d];if(se.name!==T)ye(h,"Unexpected close tag");else break}if(d<0){ye(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=C.TEXT;return}h.tagName=A;for(var ke=h.tags.length;ke-- >d;){var Le=h.tag=h.tags.pop();h.tagName=h.tag.name,Ae(h,"onclosetag",h.tagName);var nt={};for(var rt in Le.ns)nt[rt]=Le.ns[rt];var Kt=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Le.ns!==Kt.ns&&Object.keys(Le.ns).forEach(function(Qe){var Lt=Le.ns[Qe];Ae(h,"onclosenamespace",{prefix:Qe,uri:Lt})})}d===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=C.TEXT}o(sn,"closeTag");function Z(h){var d=h.entity,A=d.toLowerCase(),T,se="";return h.ENTITIES[d]?h.ENTITIES[d]:h.ENTITIES[A]?h.ENTITIES[A]:(d=A,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),T=parseInt(d,16),se=T.toString(16)):(d=d.slice(1),T=parseInt(d,10),se=T.toString(10))),d=d.replace(/^0+/,""),isNaN(T)||se.toLowerCase()!==d?(ye(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(T))}o(Z,"parseEntity");function ln(h,d){d==="<"?(h.state=C.OPEN_WAKA,h.startTagPosition=h.position):Y(d)||(ye(h,"Non-whitespace before first tag."),h.textNode=d,h.state=C.TEXT)}o(ln,"beginWhiteSpace");function So(h,d){var A="";return d<h.length&&(A=h.charAt(d)),A}o(So,"charAt");function we(h){var d=this;if(this.error)throw this.error;if(d.closed)return mt(d,"Cannot write after close. Assign an onready handler.");if(h===null)return Nt(d);typeof h=="object"&&(h=h.toString());for(var A=0,T="";T=So(h,A++),d.c=T,!!T;)switch(d.trackPosition&&(d.position++,T===`
26
- `?(d.line++,d.column=0):d.column++),d.state){case C.BEGIN:if(d.state=C.BEGIN_WHITESPACE,T==="\uFEFF")continue;ln(d,T);continue;case C.BEGIN_WHITESPACE:ln(d,T);continue;case C.TEXT:if(d.sawRoot&&!d.closedRoot){for(var se=A-1;T&&T!=="<"&&T!=="&";)T=So(h,A++),T&&d.trackPosition&&(d.position++,T===`
27
- `?(d.line++,d.column=0):d.column++);d.textNode+=h.substring(se,A-1)}T==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):(!Y(T)&&(!d.sawRoot||d.closedRoot)&&ye(d,"Text data outside of root node."),T==="&"?d.state=C.TEXT_ENTITY:d.textNode+=T);continue;case C.SCRIPT:T==="<"?d.state=C.SCRIPT_ENDING:d.script+=T;continue;case C.SCRIPT_ENDING:T==="/"?d.state=C.CLOSE_TAG:(d.script+="<"+T,d.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(T==="!")d.state=C.SGML_DECL,d.sgmlDecl="";else if(!Y(T))if(le(I,T))d.state=C.OPEN_TAG,d.tagName=T;else if(T==="/")d.state=C.CLOSE_TAG,d.tagName="";else if(T==="?")d.state=C.PROC_INST,d.procInstName=d.procInstBody="";else{if(ye(d,"Unencoded <"),d.startTagPosition+1<d.position){var ke=d.position-d.startTagPosition;T=new Array(ke).join(" ")+T}d.textNode+="<"+T,d.state=C.TEXT}continue;case C.SGML_DECL:if(d.sgmlDecl+T==="--"){d.state=C.COMMENT,d.comment="",d.sgmlDecl="";continue}d.doctype&&d.doctype!==!0&&d.sgmlDecl?(d.state=C.DOCTYPE_DTD,d.doctype+="<!"+d.sgmlDecl+T,d.sgmlDecl=""):(d.sgmlDecl+T).toUpperCase()===f?(Ae(d,"onopencdata"),d.state=C.CDATA,d.sgmlDecl="",d.cdata=""):(d.sgmlDecl+T).toUpperCase()===p?(d.state=C.DOCTYPE,(d.doctype||d.sawRoot)&&ye(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):T===">"?(Ae(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=C.TEXT):(re(T)&&(d.state=C.SGML_DECL_QUOTED),d.sgmlDecl+=T);continue;case C.SGML_DECL_QUOTED:T===d.q&&(d.state=C.SGML_DECL,d.q=""),d.sgmlDecl+=T;continue;case C.DOCTYPE:T===">"?(d.state=C.TEXT,Ae(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=T,T==="["?d.state=C.DOCTYPE_DTD:re(T)&&(d.state=C.DOCTYPE_QUOTED,d.q=T));continue;case C.DOCTYPE_QUOTED:d.doctype+=T,T===d.q&&(d.q="",d.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:T==="]"?(d.doctype+=T,d.state=C.DOCTYPE):T==="<"?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):re(T)?(d.doctype+=T,d.state=C.DOCTYPE_DTD_QUOTED,d.q=T):d.doctype+=T;continue;case C.DOCTYPE_DTD_QUOTED:d.doctype+=T,T===d.q&&(d.state=C.DOCTYPE_DTD,d.q="");continue;case C.COMMENT:T==="-"?d.state=C.COMMENT_ENDING:d.comment+=T;continue;case C.COMMENT_ENDING:T==="-"?(d.state=C.COMMENT_ENDED,d.comment=Ci(d.opt,d.comment),d.comment&&Ae(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+T,d.state=C.COMMENT);continue;case C.COMMENT_ENDED:T!==">"?(ye(d,"Malformed comment"),d.comment+="--"+T,d.state=C.COMMENT):d.doctype&&d.doctype!==!0?d.state=C.DOCTYPE_DTD:d.state=C.TEXT;continue;case C.CDATA:T==="]"?d.state=C.CDATA_ENDING:d.cdata+=T;continue;case C.CDATA_ENDING:T==="]"?d.state=C.CDATA_ENDING_2:(d.cdata+="]"+T,d.state=C.CDATA);continue;case C.CDATA_ENDING_2:T===">"?(d.cdata&&Ae(d,"oncdata",d.cdata),Ae(d,"onclosecdata"),d.cdata="",d.state=C.TEXT):T==="]"?d.cdata+="]":(d.cdata+="]]"+T,d.state=C.CDATA);continue;case C.PROC_INST:T==="?"?d.state=C.PROC_INST_ENDING:Y(T)?d.state=C.PROC_INST_BODY:d.procInstName+=T;continue;case C.PROC_INST_BODY:if(!d.procInstBody&&Y(T))continue;T==="?"?d.state=C.PROC_INST_ENDING:d.procInstBody+=T;continue;case C.PROC_INST_ENDING:T===">"?(Ae(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=C.TEXT):(d.procInstBody+="?"+T,d.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:le(L,T)?d.tagName+=T:(qn(d),T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:(Y(T)||ye(d,"Invalid character in tag name"),d.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:T===">"?(it(d,!0),sn(d)):(ye(d,"Forward-slash in opening tag not followed by >"),d.state=C.ATTRIB);continue;case C.ATTRIB:if(Y(T))continue;T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:le(I,T)?(d.attribName=T,d.attribValue="",d.state=C.ATTRIB_NAME):ye(d,"Invalid attribute name");continue;case C.ATTRIB_NAME:T==="="?d.state=C.ATTRIB_VALUE:T===">"?(ye(d,"Attribute without value"),d.attribValue=d.attribName,yt(d),it(d)):Y(T)?d.state=C.ATTRIB_NAME_SAW_WHITE:le(L,T)?d.attribName+=T:ye(d,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(T==="=")d.state=C.ATTRIB_VALUE;else{if(Y(T))continue;ye(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Ae(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",T===">"?it(d):le(I,T)?(d.attribName=T,d.state=C.ATTRIB_NAME):(ye(d,"Invalid attribute name"),d.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(Y(T))continue;re(T)?(d.q=T,d.state=C.ATTRIB_VALUE_QUOTED):(d.opt.unquotedAttributeValues||mt(d,"Unquoted attribute value"),d.state=C.ATTRIB_VALUE_UNQUOTED,d.attribValue=T);continue;case C.ATTRIB_VALUE_QUOTED:if(T!==d.q){T==="&"?d.state=C.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=T;continue}yt(d),d.q="",d.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:Y(T)?d.state=C.ATTRIB:T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:le(I,T)?(ye(d,"No whitespace between attributes"),d.attribName=T,d.attribValue="",d.state=C.ATTRIB_NAME):ye(d,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!J(T)){T==="&"?d.state=C.ATTRIB_VALUE_ENTITY_U:d.attribValue+=T;continue}yt(d),T===">"?it(d):d.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(d.tagName)T===">"?sn(d):le(L,T)?d.tagName+=T:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=C.SCRIPT):(Y(T)||ye(d,"Invalid tagname in closing tag"),d.state=C.CLOSE_TAG_SAW_WHITE);else{if(Y(T))continue;Ee(I,T)?d.script?(d.script+="</"+T,d.state=C.SCRIPT):ye(d,"Invalid tagname in closing tag."):d.tagName=T}continue;case C.CLOSE_TAG_SAW_WHITE:if(Y(T))continue;T===">"?sn(d):ye(d,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var Le,nt;switch(d.state){case C.TEXT_ENTITY:Le=C.TEXT,nt="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:Le=C.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:Le=C.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}if(T===";"){var rt=Z(d);d.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(rt)?(d.entity="",d.state=Le,d.write(rt)):(d[nt]+=rt,d.entity="",d.state=Le)}else le(d.entity.length?oe:G,T)?d.entity+=T:(ye(d,"Invalid character in entity name"),d[nt]+="&"+d.entity+T,d.entity="",d.state=Le);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}o(we,"write");String.fromCodePoint||function(){var h=String.fromCharCode,d=Math.floor,A=o(function(){var T=16384,se=[],ke,Le,nt=-1,rt=arguments.length;if(!rt)return"";for(var Kt="";++nt<rt;){var Qe=Number(arguments[nt]);if(!isFinite(Qe)||Qe<0||Qe>1114111||d(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?se.push(Qe):(Qe-=65536,ke=(Qe>>10)+55296,Le=Qe%1024+56320,se.push(ke,Le)),(nt+1===rt||se.length>T)&&(Kt+=h.apply(null,se),se.length=0)}return Kt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(typeof Bo>"u"?Bo.sax={}:Bo)});var Ho=Ie((UE,Qp)=>{Qp.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Go=Ie((HE,qp)=>{var Fb=Ho().isArray;qp.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"&&!Fb(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 Ys=Ie((WE,id)=>{var Nb=Jp(),Lb={on:o(function(){},"on"),parse:o(function(){},"parse")},ce=Go(),Fi=Ho().isArray,x,zs=!0,te;function Vb(e){return x=ce.copyOptions(e),ce.ensureFlagExists("ignoreDeclaration",x),ce.ensureFlagExists("ignoreInstruction",x),ce.ensureFlagExists("ignoreAttributes",x),ce.ensureFlagExists("ignoreText",x),ce.ensureFlagExists("ignoreComment",x),ce.ensureFlagExists("ignoreCdata",x),ce.ensureFlagExists("ignoreDoctype",x),ce.ensureFlagExists("compact",x),ce.ensureFlagExists("alwaysChildren",x),ce.ensureFlagExists("addParent",x),ce.ensureFlagExists("trim",x),ce.ensureFlagExists("nativeType",x),ce.ensureFlagExists("nativeTypeAttributes",x),ce.ensureFlagExists("sanitize",x),ce.ensureFlagExists("instructionHasAttributes",x),ce.ensureFlagExists("captureSpacesBetweenElements",x),ce.ensureAlwaysArrayExists(x),ce.ensureKeyExists("declaration",x),ce.ensureKeyExists("instruction",x),ce.ensureKeyExists("attributes",x),ce.ensureKeyExists("text",x),ce.ensureKeyExists("comment",x),ce.ensureKeyExists("cdata",x),ce.ensureKeyExists("doctype",x),ce.ensureKeyExists("type",x),ce.ensureKeyExists("name",x),ce.ensureKeyExists("elements",x),ce.ensureKeyExists("parent",x),ce.checkFnExists("doctype",x),ce.checkFnExists("instruction",x),ce.checkFnExists("cdata",x),ce.checkFnExists("comment",x),ce.checkFnExists("text",x),ce.checkFnExists("instructionName",x),ce.checkFnExists("elementName",x),ce.checkFnExists("attributeName",x),ce.checkFnExists("attributeValue",x),ce.checkFnExists("attributes",x),x}o(Vb,"validateOptions");function td(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(td,"nativeType");function pr(e,t){var n;if(x.compact){if(!te[x[e+"Key"]]&&(Fi(x.alwaysArray)?x.alwaysArray.indexOf(x[e+"Key"])!==-1:x.alwaysArray)&&(te[x[e+"Key"]]=[]),te[x[e+"Key"]]&&!Fi(te[x[e+"Key"]])&&(te[x[e+"Key"]]=[te[x[e+"Key"]]]),e+"Fn"in x&&typeof t=="string"&&(t=x[e+"Fn"](t,te)),e==="instruction"&&("instructionFn"in x||"instructionNameFn"in x)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in x)t[n]=x.instructionFn(t[n],n,te);else{var i=t[n];delete t[n],t[x.instructionNameFn(n,i,te)]=i}}Fi(te[x[e+"Key"]])?te[x[e+"Key"]].push(t):te[x[e+"Key"]]=t}else{te[x.elementsKey]||(te[x.elementsKey]=[]);var r={};if(r[x.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[x.nameKey]="instructionNameFn"in x?x.instructionNameFn(n,t,te):n,x.instructionHasAttributes?(r[x.attributesKey]=t[n][x.attributesKey],"instructionFn"in x&&(r[x.attributesKey]=x.instructionFn(r[x.attributesKey],n,te))):("instructionFn"in x&&(t[n]=x.instructionFn(t[n],n,te)),r[x.instructionKey]=t[n])}else e+"Fn"in x&&(t=x[e+"Fn"](t,te)),r[x[e+"Key"]]=t;x.addParent&&(r[x.parentKey]=te),te[x.elementsKey].push(r)}}o(pr,"addField");function nd(e){if("attributesFn"in x&&e&&(e=x.attributesFn(e,te)),(x.trim||"attributeValueFn"in x||"attributeNameFn"in x||x.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(x.trim&&(e[t]=e[t].trim()),x.nativeTypeAttributes&&(e[t]=td(e[t])),"attributeValueFn"in x&&(e[t]=x.attributeValueFn(e[t],t,te)),"attributeNameFn"in x)){var n=e[t];delete e[t],e[x.attributeNameFn(t,e[t],te)]=n}}return e}o(nd,"manipulateAttributes");function jb(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||x.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=nd(t)}if(e.name.toLowerCase()==="xml"){if(x.ignoreDeclaration)return;te[x.declarationKey]={},Object.keys(t).length&&(te[x.declarationKey][x.attributesKey]=t),x.addParent&&(te[x.declarationKey][x.parentKey]=te)}else{if(x.ignoreInstruction)return;x.trim&&(e.body=e.body.trim());var r={};x.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][x.attributesKey]=t):r[e.name]=e.body,pr("instruction",r)}}o(jb,"onInstruction");function Xp(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=nd(t),"elementNameFn"in x&&(e=x.elementNameFn(e,te)),x.compact){if(n={},!x.ignoreAttributes&&t&&Object.keys(t).length){n[x.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[x.attributesKey][i]=t[i])}!(e in te)&&(Fi(x.alwaysArray)?x.alwaysArray.indexOf(e)!==-1:x.alwaysArray)&&(te[e]=[]),te[e]&&!Fi(te[e])&&(te[e]=[te[e]]),Fi(te[e])?te[e].push(n):te[e]=n}else te[x.elementsKey]||(te[x.elementsKey]=[]),n={},n[x.typeKey]="element",n[x.nameKey]=e,!x.ignoreAttributes&&t&&Object.keys(t).length&&(n[x.attributesKey]=t),x.alwaysChildren&&(n[x.elementsKey]=[]),te[x.elementsKey].push(n);n[x.parentKey]=te,te=n}o(Xp,"onStartElement");function zp(e){x.ignoreText||!e.trim()&&!x.captureSpacesBetweenElements||(x.trim&&(e=e.trim()),x.nativeType&&(e=td(e)),x.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),pr("text",e))}o(zp,"onText");function Yp(e){x.ignoreComment||(x.trim&&(e=e.trim()),pr("comment",e))}o(Yp,"onComment");function Zp(e){var t=te[x.parentKey];x.addParent||delete te[x.parentKey],te=t}o(Zp,"onEndElement");function Db(e){x.ignoreCdata||(x.trim&&(e=e.trim()),pr("cdata",e))}o(Db,"onCdata");function $b(e){x.ignoreDoctype||(e=e.replace(/^ /,""),x.trim&&(e=e.trim()),pr("doctype",e))}o($b,"onDoctype");function ed(e){e.note=e}o(ed,"onError");id.exports=function(e,t){var n=zs?Nb.parser(!0,{}):n=new Lb.Parser("UTF-8"),i={};if(te=i,x=Vb(t),zs?(n.opt={strictEntities:!0},n.onopentag=Xp,n.ontext=zp,n.oncomment=Yp,n.onclosetag=Zp,n.onerror=ed,n.oncdata=Db,n.ondoctype=$b,n.onprocessinginstruction=jb):(n.on("startElement",Xp),n.on("text",zp),n.on("comment",Yp),n.on("endElement",Zp),n.on("error",ed)),zs)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[x.elementsKey]){var r=i[x.elementsKey];delete i[x.elementsKey],i[x.elementsKey]=r,delete i.text}return i}});var ad=Ie((JE,od)=>{var rd=Go(),Rb=Ys();function wb(e){var t=rd.copyOptions(e);return rd.ensureSpacesExists(t),t}o(wb,"validateOptions");od.exports=function(e,t){var n,i,r,a;return n=wb(t),i=Rb(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 el=Ie((qE,md)=>{var pe=Go(),_b=Ho().isArray,ot,at;function Mb(e){var t=pe.copyOptions(e);return pe.ensureFlagExists("ignoreDeclaration",t),pe.ensureFlagExists("ignoreInstruction",t),pe.ensureFlagExists("ignoreAttributes",t),pe.ensureFlagExists("ignoreText",t),pe.ensureFlagExists("ignoreComment",t),pe.ensureFlagExists("ignoreCdata",t),pe.ensureFlagExists("ignoreDoctype",t),pe.ensureFlagExists("compact",t),pe.ensureFlagExists("indentText",t),pe.ensureFlagExists("indentCdata",t),pe.ensureFlagExists("indentAttributes",t),pe.ensureFlagExists("indentInstruction",t),pe.ensureFlagExists("fullTagEmptyElement",t),pe.ensureFlagExists("noQuotesForNativeAttributes",t),pe.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),pe.ensureKeyExists("declaration",t),pe.ensureKeyExists("instruction",t),pe.ensureKeyExists("attributes",t),pe.ensureKeyExists("text",t),pe.ensureKeyExists("comment",t),pe.ensureKeyExists("cdata",t),pe.ensureKeyExists("doctype",t),pe.ensureKeyExists("type",t),pe.ensureKeyExists("name",t),pe.ensureKeyExists("elements",t),pe.checkFnExists("doctype",t),pe.checkFnExists("instruction",t),pe.checkFnExists("cdata",t),pe.checkFnExists("comment",t),pe.checkFnExists("text",t),pe.checkFnExists("instructionName",t),pe.checkFnExists("elementName",t),pe.checkFnExists("attributeName",t),pe.checkFnExists("attributeValue",t),pe.checkFnExists("attributes",t),pe.checkFnExists("fullTagEmptyElement",t),t}o(Mb,"validateOptions");function qt(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}o(qt,"writeIndentation");function Wo(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,at,ot));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,at,ot):i,l.push(t.spaces&&t.indentAttributes?qt(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,at,ot):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(qt(t,n,!1)),l.join("")}o(Wo,"writeAttributes");function sd(e,t,n){return ot=e,at="xml",t.ignoreDeclaration?"":"<?xml"+Wo(e[t.attributesKey],t,n)+"?>"}o(sd,"writeDeclaration");function ld(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],at,ot):i;if(typeof e[i]=="object")return ot=e,at=r,"<?"+r+Wo(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,at,ot)),"<?"+r+(a?" "+a:"")+"?>"}o(ld,"writeInstruction");function cd(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,at,ot):e)+"-->"}o(cd,"writeComment");function ud(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,at,ot):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(ud,"writeCdata");function fd(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,at,ot):e)+">"}o(fd,"writeDoctype");function Zs(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,at,ot):e)}o(Zs,"writeText");function kb(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(kb,"hasContent");function Ub(e,t,n){ot=e,at=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Wo(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(pd(e[t.elementsKey],t,n+1)),ot=e,at=e.name),i.push(t.spaces&&kb(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Ub,"writeElement");function pd(e,t,n,i){return e.reduce(function(r,a){var s=qt(t,n,i&&!r);switch(a.type){case"element":return r+s+Ub(a,t,n);case"comment":return r+s+cd(a[t.commentKey],t);case"doctype":return r+s+fd(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+ud(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Zs(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+ld(l,t,n)}},"")}o(pd,"writeElements");function dd(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(dd,"hasContentCompact");function Bb(e,t,n,i,r){ot=e,at=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Zs(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Wo(e[n.attributesKey],n,i));var l=dd(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(gd(e,n,i+1,!1)),ot=e,at=t,t&&s.push((r?qt(n,i,!1):"")+"</"+a+">"),s.join("")}o(Bb,"writeElementCompact");function gd(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=_b(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(sd(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?qt(t,n,i):"")+ld(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?qt(t,n,i):"")+Zs(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?qt(t,n,i):"")+ud(s[r],t));break;case t.doctypeKey:l.push(qt(t,n,i)+fd(s[r],t));break;case t.commentKey:l.push(qt(t,n,i)+cd(s[r],t));break;default:l.push(qt(t,n,i)+Bb(s[r],a,t,n,dd(s[r],t)))}i=i&&!l.length}return l.join("")}o(gd,"writeElementsCompact");md.exports=function(e,t){t=Mb(t);var n=[];return ot=e,at="_root_",t.compact?n.push(gd(e,t,0,!0)):(e[t.declarationKey]&&n.push(sd(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(pd(e[t.elementsKey],t,0,!n.length))),n.join("")}});var hd=Ie((zE,yd)=>{var Hb=el();yd.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 Hb(n,t)}});var dr=Ie((YE,bd)=>{var Gb=Ys(),Wb=ad(),Kb=el(),Jb=hd();bd.exports={xml2js:Gb,xml2json:Wb,js2xml:Kb,json2xml:Jb}});var Ed=Ie(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.convertEntityTypeAnnotations=bt.convertPropertyAnnotations=bt.convertNavigationPropertyAnnotations=bt.convertEntitySetAnnotations=bt.convertGenericAnnotations=bt.convertV2Annotations=void 0;function Qb(e,t,n){let i=[];switch(t){case"EntitySet":vd(e,i);break;case"EntityType":xd(e,i);break;case"NavigationProperty":Cd(e,n,i);break;case"Property":Sd(e,n,i);break;case"Singleton":break;default:break}return Td(e,n,i),i}o(Qb,"convertV2Annotations");bt.convertV2Annotations=Qb;function Td(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(Td,"convertGenericAnnotations");bt.convertGenericAnnotations=Td;function vd(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(vd,"convertEntitySetAnnotations");bt.convertEntitySetAnnotations=vd;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");bt.convertNavigationPropertyAnnotations=Cd;function Sd(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(Sd,"convertPropertyAnnotations");bt.convertPropertyAnnotations=Sd;function xd(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(xd,"convertEntityTypeAnnotations");bt.convertEntityTypeAnnotations=xd});var Nd=Ie(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.parse=void 0;var qb=dr(),ie=Xs(),gr=Ed(),Qo=/^Collection\((.+)\)$/;function Xb(e){return e.Type!==null&&e.Type!==void 0}o(Xb,"isV4NavProperty");function zb(e){return e.map(t=>t._attributes.Name)}o(zb,"getEntityTypeKeys");function Id(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Ni(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,gr.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(zn(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(Id,"parseProperties");function Yb(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(Yb,"parseReferentialConstraint");function Zb(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,ie.ensureArray)(i.Principal.PropertyRef),l=(0,ie.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,ie.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let u=s.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[u]._attributes.Name})}}return n},[])}o(Zb,"parseV2ReferentialConstraint");function Od(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(Xb(s)){let l=s.Type.match(Qo),c=l!==null,u=Xt(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:u,referentialConstraint:Yb((0,ie.ensureArray)(a.ReferentialConstraint),t._attributes.Name,u)})}else{let{Relationship:l,ToRole:c,FromRole:u}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:u});let f=(0,gr.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(zn(`${n}/${s.Name}`,f))}return r},[])}o(Od,"parseNavigationProperties");function eT(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,ie.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(eT,"parseAssociationSets");function tT(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,ie.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:Zb((0,ie.ensureArray)(n.ReferentialConstraint),r)}})}o(tT,"parseAssociations");function nT(e,t,n){return e.reduce((i,r)=>{let a=r.Key?zb((0,ie.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=Id((0,ie.ensureArray)(r.Property),a,s,t),u=Od((0,ie.ensureArray)(r.NavigationProperty),r,s,t),f={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:u},p=(0,gr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(zn(f.fullyQualifiedName,p)),i.push(f),i},[])}o(nT,"parseEntityTypes");function iT(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=Id((0,ie.ensureArray)(r.Property),[],a,t),l=Od((0,ie.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(iT,"parseComplexTypes");function rT(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(rT,"parseTypeDefinitions");function oT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ie.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Xt(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,gr.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(zn(l.fullyQualifiedName,c)),l})}o(oT,"parseEntitySets");function aT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ie.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Xt(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,gr.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(zn(l.fullyQualifiedName,c)),l})}o(aT,"parseSingletons");function Pd(e,t,n){return e.map(i=>{let r=(0,ie.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(c=>Ni(c._attributes.Type).type).join(","):s=a?Ni(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Ni(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:u,type:f}=Ni(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:u};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?Ni(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Qo)!==null:!1}})}o(Pd,"parseActions");function sT(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,ie.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Qo)!==null:!1}})}o(sT,"parseV2FunctionImport");function Ad(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:Xt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Xt(r)}})}o(Ad,"parseActionImports");function lT(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let u=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Jo(s,u,n,!1):c&&(l.value=Fd({[c]:a[c]},u,n)),i.Annotation){let f=Xo((0,ie.ensureArray)(i.Annotation),u,n);f&&f.length>0&&n.push(zn(u,f))}}return l})}o(lT,"parsePropertyValues");function qo(e,t,n){let i=Xo((0,ie.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Xt(e._attributes.Type):void 0,propertyValues:lT((0,ie.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(qo,"parseRecord");function pn(e,t){return e[t]!=null}o(pn,"isExpressionOfType");function Ko(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(Ko,"parseModelPath");function nl(e,t,n){if(pn(e,"Record")){let i=(0,ie.ensureArray)(e.Record).map((r,a)=>qo(r,t+"/"+a,n));return i.type="Record",i}else if(pn(e,"PropertyPath")){let i=(0,ie.ensureArray)(e.PropertyPath).map(r=>Ko(r,"PropertyPath"));return i.type="PropertyPath",i}else if(pn(e,"NavigationPropertyPath")){let i=(0,ie.ensureArray)(e.NavigationPropertyPath).map(r=>Ko(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(pn(e,"String")){let i=(0,ie.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(pn(e,"AnnotationPath")){let i=(0,ie.ensureArray)(e.AnnotationPath).map(r=>Ko(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(pn(e,"Path")){let i=(0,ie.ensureArray)(e.Path).map(r=>Ko(r,"Path"));return i.type="Path",i}else if(pn(e,"If")){let i=(0,ie.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(nl,"parseCollection");function Ue(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Jo({[i]:r},"",[],!0))):n.push(Jo({[i]:e[i]},"",[],!0))}),n}o(Ue,"parseChildren");function Fd(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:nl(e.Collection,t,n)};case"Record":return{type:"Record",Record:qo(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:Ue(e.Function)};case"And":return{type:"And",$And:Ue(e.And)};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};case"If":return{type:"If",$If:Ue(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(Fd,"parseInlineExpression");function Jo(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Ue(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:nl(e.Collection,t,n)};case"Record":return{type:"Record",Record:qo(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ue(e.And)};case"Ne":return{type:"Ne",$Ne:Ue(e.Ne)};case"Not":return{type:"Not",$Not:Ue(e.Not)[0]};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"If":return{type:"If",$If:Ue(e.If)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Jo,"parseExpression");function cT(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Xt(i),qualifier:r},l=`${t}@${Xt(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=Fd(a,l,n)),e.Annotation){let u=Xo((0,ie.ensureArray)(e.Annotation),l,n);u&&u.length>0&&(s.annotations=u)}let c=Object.keys(e).filter(u=>u!=="_attributes"&&u!=="Annotation");return pn(e,"Record")?s.record=qo(e.Record,l,n):pn(e,"Collection")?s.collection=nl(e.Collection,l,n):c.length===1?s.value=Jo({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(cT,"parseAnnotation");function Xo(e,t,n){return e.map(i=>cT(i,t,n))}o(Xo,"parseAnnotations");function zn(e,t){return{target:e,annotations:t}}o(zn,"createAnnotationList");function uT(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(zn(Xt(n._attributes.Target),Xo((0,ie.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(uT,"parseAnnotationLists");function fT(e,t,n){let i=e._attributes.Namespace,r=[],a=nT((0,ie.ensureArray)(e.EntityType),r,i),s=iT((0,ie.ensureArray)(e.ComplexType),r,i),l=rT((0,ie.ensureArray)(e.TypeDefinition),i),c=[],u=[],f=[],p={_type:"EntityContainer",fullyQualifiedName:""},g=[],b=[];if(e.EntityContainer)if(c=oT((0,ie.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),u=aT((0,ie.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),f=eT((0,ie.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(sT((0,ie.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(Ad((0,ie.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(Ad((0,ie.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(g=g.concat(Pd((0,ie.ensureArray)(e.Action),i,!1)),g=g.concat(Pd((0,ie.ensureArray)(e.Function),i,!0)));let E=tT((0,ie.ensureArray)(e.Association),i);uT((0,ie.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:E,associationSets:f,annotations:I,entityContainer:p,namespace:i,entitySets:c,singletons:u,complexTypes:s,typeDefinitions:l,actions:g,actionImports:b,entityTypes:a}}o(fT,"parseSchema");function pT(e){return e.reduce((t,n)=>((0,ie.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(pT,"parseReferences");var tl={};function Ni(e){let t=e.match(Qo),n=t?t[1]:e,i=Xt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Ni,"unaliasType");function Xt(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=tl[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(Xt,"unalias");function dT(e){let t=e.reduce((b,E)=>b.concat(E.associations),[]),n=e.reduce((b,E)=>b.concat(E.associationSets),[]),i=e.reduce((b,E)=>b.concat(E.entitySets),[]),r=e.reduce((b,E)=>b.concat(E.singletons),[]),a=e.reduce((b,E)=>b.concat(E.entityTypes),[]),s=e.reduce((b,E)=>b.concat(E.actions),[]),l=e.reduce((b,E)=>b.concat(E.actionImports),[]),c=e.reduce((b,E)=>b.concat(E.complexTypes),[]),u=e.reduce((b,E)=>b.concat(E.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,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 E=a.find(I=>I.fullyQualifiedName===b.entityTypeName);E==null||E.navigationProperties.forEach(I=>{let L=I,G=n.find(oe=>oe.association===L.relationship);if(G){let oe=G.associationEnd.find(Y=>Y.entitySet!==b.fullyQualifiedName);oe&&(b.navigationPropertyBinding[I.name]=oe.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(E=>{let I=E,L=t.find(G=>G.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(G=>({sourceTypeName:G.targetTypeName,sourceProperty:G.targetProperty,targetTypeName:G.sourceTypeName,targetProperty:G.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:p,namespace:g,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:u,actions:s,actionImports:l,entityTypes:a}}o(dT,"mergeSchemas");function gT(e,t){tl=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{tl[n._attributes.Alias]=n._attributes.Namespace})}o(gT,"createAliasMap");function mT(e,t="serviceFile"){let n=(0,qb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,ie.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=pT((0,ie.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));gT(a,r);let s=r.map(c=>fT(c,i,t));return new ie.RawMetadataInstance(t,i,dT(s),a)}o(mT,"parse");zo.parse=mT});var Ld=Ie(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.parse=Li.merge=void 0;var yT=Kp();Object.defineProperty(Li,"merge",{enumerable:!0,get:o(function(){return yT.merge},"get")});var hT=Nd();Object.defineProperty(Li,"parse",{enumerable:!0,get:o(function(){return hT.parse},"get")})});var Qd=Ie(()=>{var Jd;(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,u){return function(f,p){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:p}),u&&u(f,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,u=!l&&!c,f={create:l?function(){return hs(Object.create(null))}:c?function(){return hs({__proto__:null})}:function(){return hs({})},has:u?function(v,S){return i.call(v,S)}:function(v,S){return S in v},get:u?function(v,S){return i.call(v,S)?v[S]:void 0}:function(v,S){return v[S]}},p=Object.getPrototypeOf(Function),g=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:cy(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:uy(),E=typeof WeakMap=="function"?WeakMap:fy(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,L=ay(),G=sy(L);function oe(v,S,P,D){if(Z(P)){if(!ke(v))throw new TypeError;if(!nt(S))throw new TypeError;return En(v,S)}else{if(!ke(v))throw new TypeError;if(!we(S))throw new TypeError;if(!we(D)&&!Z(D)&&!ln(D))throw new TypeError;return ln(D)&&(D=void 0),P=se(P),Ci(v,S,P,D)}}o(oe,"decorate"),t("decorate",oe);function Y(v,S){function P(D,Q){if(!we(D))throw new TypeError;if(!Z(Q)&&!rt(Q))throw new TypeError;Je(v,S,D,Q)}return o(P,"decorator"),P}o(Y,"metadata"),t("metadata",Y);function re(v,S,P,D){if(!we(P))throw new TypeError;return Z(D)||(D=se(D)),Je(v,S,P,D)}o(re,"defineMetadata"),t("defineMetadata",re);function J(v,S,P){if(!we(S))throw new TypeError;return Z(P)||(P=se(P)),mt(v,S,P)}o(J,"hasMetadata"),t("hasMetadata",J);function le(v,S,P){if(!we(S))throw new TypeError;return Z(P)||(P=se(P)),Nt(v,S,P)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Ee(v,S,P){if(!we(S))throw new TypeError;return Z(P)||(P=se(P)),ye(v,S,P)}o(Ee,"getMetadata"),t("getMetadata",Ee);function C(v,S,P){if(!we(S))throw new TypeError;return Z(P)||(P=se(P)),qn(v,S,P)}o(C,"getOwnMetadata"),t("getOwnMetadata",C);function an(v,S){if(!we(v))throw new TypeError;return Z(S)||(S=se(S)),yt(v,S)}o(an,"getMetadataKeys"),t("getMetadataKeys",an);function Wt(v,S){if(!we(v))throw new TypeError;return Z(S)||(S=se(S)),it(v,S)}o(Wt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Wt);function Ae(v,S,P){if(!we(S))throw new TypeError;if(Z(P)||(P=se(P)),!we(S))throw new TypeError;Z(P)||(P=se(P));var D=or(S,P,!1);return Z(D)?!1:D.OrdinaryDeleteMetadata(v,S,P)}o(Ae,"deleteMetadata"),t("deleteMetadata",Ae);function En(v,S){for(var P=v.length-1;P>=0;--P){var D=v[P],Q=D(S);if(!Z(Q)&&!ln(Q)){if(!nt(Q))throw new TypeError;S=Q}}return S}o(En,"DecorateConstructor");function Ci(v,S,P,D){for(var Q=v.length-1;Q>=0;--Q){var He=v[Q],qe=He(S,P,D);if(!Z(qe)&&!ln(qe)){if(!we(qe))throw new TypeError;D=qe}}return D}o(Ci,"DecorateProperty");function mt(v,S,P){var D=Nt(v,S,P);if(D)return!0;var Q=xi(S);return ln(Q)?!1:mt(v,Q,P)}o(mt,"OrdinaryHasMetadata");function Nt(v,S,P){var D=or(S,P,!1);return Z(D)?!1:A(D.OrdinaryHasOwnMetadata(v,S,P))}o(Nt,"OrdinaryHasOwnMetadata");function ye(v,S,P){var D=Nt(v,S,P);if(D)return qn(v,S,P);var Q=xi(S);if(!ln(Q))return ye(v,Q,P)}o(ye,"OrdinaryGetMetadata");function qn(v,S,P){var D=or(S,P,!1);if(!Z(D))return D.OrdinaryGetOwnMetadata(v,S,P)}o(qn,"OrdinaryGetOwnMetadata");function Je(v,S,P,D){var Q=or(P,D,!0);Q.OrdinaryDefineOwnMetadata(v,S,P,D)}o(Je,"OrdinaryDefineOwnMetadata");function yt(v,S){var P=it(v,S),D=xi(v);if(D===null)return P;var Q=yt(D,S);if(Q.length<=0)return P;if(P.length<=0)return Q;for(var He=new b,qe=[],fe=0,w=P;fe<w.length;fe++){var k=w[fe],B=He.has(k);B||(He.add(k),qe.push(k))}for(var W=0,me=Q;W<me.length;W++){var k=me[W],B=He.has(k);B||(He.add(k),qe.push(k))}return qe}o(yt,"OrdinaryMetadataKeys");function it(v,S){var P=or(v,S,!1);return P?P.OrdinaryOwnMetadataKeys(v,S):[]}o(it,"OrdinaryOwnMetadataKeys");function sn(v){if(v===null)return 1;switch(typeof v){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return v===null?1:6;default:return 6}}o(sn,"Type");function Z(v){return v===void 0}o(Z,"IsUndefined");function ln(v){return v===null}o(ln,"IsNull");function So(v){return typeof v=="symbol"}o(So,"IsSymbol");function we(v){return typeof v=="object"?v!==null:typeof v=="function"}o(we,"IsObject");function h(v,S){switch(sn(v)){case 0:return v;case 1:return v;case 2:return v;case 3:return v;case 4:return v;case 5:return v}var P=S===3?"string":S===5?"number":"default",D=Qe(v,a);if(D!==void 0){var Q=D.call(v,P);if(we(Q))throw new TypeError;return Q}return d(v,P==="default"?"number":P)}o(h,"ToPrimitive");function d(v,S){if(S==="string"){var P=v.toString;if(Le(P)){var D=P.call(v);if(!we(D))return D}var Q=v.valueOf;if(Le(Q)){var D=Q.call(v);if(!we(D))return D}}else{var Q=v.valueOf;if(Le(Q)){var D=Q.call(v);if(!we(D))return D}var He=v.toString;if(Le(He)){var D=He.call(v);if(!we(D))return D}}throw new TypeError}o(d,"OrdinaryToPrimitive");function A(v){return!!v}o(A,"ToBoolean");function T(v){return""+v}o(T,"ToString");function se(v){var S=h(v,3);return So(S)?S:T(S)}o(se,"ToPropertyKey");function ke(v){return Array.isArray?Array.isArray(v):v instanceof Object?v instanceof Array:Object.prototype.toString.call(v)==="[object Array]"}o(ke,"IsArray");function Le(v){return typeof v=="function"}o(Le,"IsCallable");function nt(v){return typeof v=="function"}o(nt,"IsConstructor");function rt(v){switch(sn(v)){case 3:return!0;case 4:return!0;default:return!1}}o(rt,"IsPropertyKey");function Kt(v,S){return v===S||v!==v&&S!==S}o(Kt,"SameValueZero");function Qe(v,S){var P=v[S];if(P!=null){if(!Le(P))throw new TypeError;return P}}o(Qe,"GetMethod");function Lt(v){var S=Qe(v,s);if(!Le(S))throw new TypeError;var P=S.call(v);if(!we(P))throw new TypeError;return P}o(Lt,"GetIterator");function xo(v){return v.value}o(xo,"IteratorValue");function rr(v){var S=v.next();return S.done?!1:S}o(rr,"IteratorStep");function Si(v){var S=v.return;S&&S.call(v)}o(Si,"IteratorClose");function xi(v){var S=Object.getPrototypeOf(v);if(typeof v!="function"||v===p||S!==p)return S;var P=v.prototype,D=P&&Object.getPrototypeOf(P);if(D==null||D===Object.prototype)return S;var Q=D.constructor;return typeof Q!="function"||Q===v?S:Q}o(xi,"OrdinaryGetPrototypeOf");function oy(){var v;!Z(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(v=ly(n.Reflect));var S,P,D,Q=new E,He={registerProvider:qe,getProvider:w,setProvider:B};return He;function qe(W){if(!Object.isExtensible(He))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case v===W:break;case Z(S):S=W;break;case S===W:break;case Z(P):P=W;break;case P===W:break;default:D===void 0&&(D=new b),D.add(W);break}}function fe(W,me){if(!Z(S)){if(S.isProviderFor(W,me))return S;if(!Z(P)){if(P.isProviderFor(W,me))return S;if(!Z(D))for(var De=Lt(D);;){var Ge=rr(De);if(!Ge)return;var wt=xo(Ge);if(wt.isProviderFor(W,me))return Si(De),wt}}}if(!Z(v)&&v.isProviderFor(W,me))return v}function w(W,me){var De=Q.get(W),Ge;return Z(De)||(Ge=De.get(me)),Z(Ge)&&(Ge=fe(W,me),Z(Ge)||(Z(De)&&(De=new g,Q.set(W,De)),De.set(me,Ge))),Ge}function k(W){if(Z(W))throw new TypeError;return S===W||P===W||!Z(D)&&D.has(W)}function B(W,me,De){if(!k(De))throw new Error("Metadata provider not registered.");var Ge=w(W,me);if(Ge!==De){if(!Z(Ge))return!1;var wt=Q.get(W);Z(wt)&&(wt=new g,Q.set(W,wt)),wt.set(me,De)}return!0}}o(oy,"CreateMetadataRegistry");function ay(){var v;return!Z(I)&&we(n.Reflect)&&Object.isExtensible(n.Reflect)&&(v=n.Reflect[I]),Z(v)&&(v=oy()),!Z(I)&&we(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:v}),v}o(ay,"GetOrCreateMetadataRegistry");function sy(v){var S=new E,P={isProviderFor:o(function(k,B){var W=S.get(k);return Z(W)?!1:W.has(B)},"isProviderFor"),OrdinaryDefineOwnMetadata:qe,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:He,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:w};return L.registerProvider(P),P;function D(k,B,W){var me=S.get(k),De=!1;if(Z(me)){if(!W)return;me=new g,S.set(k,me),De=!0}var Ge=me.get(B);if(Z(Ge)){if(!W)return;if(Ge=new g,me.set(B,Ge),!v.setProvider(k,B,P))throw me.delete(B),De&&S.delete(k),new Error("Wrong provider for target.")}return Ge}o(D,"GetOrCreateMetadataMap");function Q(k,B,W){var me=D(B,W,!1);return Z(me)?!1:A(me.has(k))}o(Q,"OrdinaryHasOwnMetadata");function He(k,B,W){var me=D(B,W,!1);if(!Z(me))return me.get(k)}o(He,"OrdinaryGetOwnMetadata");function qe(k,B,W,me){var De=D(W,me,!0);De.set(k,B)}o(qe,"OrdinaryDefineOwnMetadata");function fe(k,B){var W=[],me=D(k,B,!1);if(Z(me))return W;for(var De=me.keys(),Ge=Lt(De),wt=0;;){var Su=rr(Ge);if(!Su)return W.length=wt,W;var py=xo(Su);try{W[wt]=py}catch(dy){try{Si(Ge)}finally{throw dy}}wt++}}o(fe,"OrdinaryOwnMetadataKeys");function w(k,B,W){var me=D(B,W,!1);if(Z(me)||!me.delete(k))return!1;if(me.size===0){var De=S.get(B);Z(De)||(De.delete(W),De.size===0&&S.delete(De))}return!0}o(w,"OrdinaryDeleteMetadata")}o(sy,"CreateMetadataProvider");function ly(v){var S=v.defineMetadata,P=v.hasOwnMetadata,D=v.getOwnMetadata,Q=v.getOwnMetadataKeys,He=v.deleteMetadata,qe=new E,fe={isProviderFor:o(function(w,k){var B=qe.get(w);return!Z(B)&&B.has(k)?!0:Q(w,k).length?(Z(B)&&(B=new b,qe.set(w,B)),B.add(k),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:D,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:He};return fe}o(ly,"CreateFallbackProvider");function or(v,S,P){var D=L.getProvider(v,S);if(!Z(D))return D;if(P){if(L.setProvider(v,S,G))return G;throw new Error("Illegal state.")}}o(or,"GetMetadataProvider");function cy(){var v={},S=[],P=function(){function fe(w,k,B){this._index=0,this._keys=w,this._values=k,this._selector=B}return o(fe,"MapIterator"),fe.prototype["@@iterator"]=function(){return this},fe.prototype[s]=function(){return this},fe.prototype.next=function(){var w=this._index;if(w>=0&&w<this._keys.length){var k=this._selector(this._keys[w],this._values[w]);return w+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:k,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(w){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),w},fe.prototype.return=function(w){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:w,done:!0}},fe}(),D=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=v,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(w){return this._find(w,!1)>=0},fe.prototype.get=function(w){var k=this._find(w,!1);return k>=0?this._values[k]:void 0},fe.prototype.set=function(w,k){var B=this._find(w,!0);return this._values[B]=k,this},fe.prototype.delete=function(w){var k=this._find(w,!1);if(k>=0){for(var B=this._keys.length,W=k+1;W<B;W++)this._keys[W-1]=this._keys[W],this._values[W-1]=this._values[W];return this._keys.length--,this._values.length--,Kt(w,this._cacheKey)&&(this._cacheKey=v,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=v,this._cacheIndex=-2},fe.prototype.keys=function(){return new P(this._keys,this._values,Q)},fe.prototype.values=function(){return new P(this._keys,this._values,He)},fe.prototype.entries=function(){return new P(this._keys,this._values,qe)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[s]=function(){return this.entries()},fe.prototype._find=function(w,k){if(!Kt(this._cacheKey,w)){this._cacheIndex=-1;for(var B=0;B<this._keys.length;B++)if(Kt(this._keys[B],w)){this._cacheIndex=B;break}}return this._cacheIndex<0&&k&&(this._cacheIndex=this._keys.length,this._keys.push(w),this._values.push(void 0)),this._cacheIndex},fe}();return D;function Q(fe,w){return fe}function He(fe,w){return w}function qe(fe,w){return[fe,w]}}o(cy,"CreateMapPolyfill");function uy(){var v=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(P){return this._map.has(P)},S.prototype.add=function(P){return this._map.set(P,P),this},S.prototype.delete=function(P){return this._map.delete(P)},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 v}o(uy,"CreateSetPolyfill");function fy(){var v=16,S=f.create(),P=D();return function(){function w(){this._key=D()}return o(w,"WeakMap"),w.prototype.has=function(k){var B=Q(k,!1);return B!==void 0?f.has(B,this._key):!1},w.prototype.get=function(k){var B=Q(k,!1);return B!==void 0?f.get(B,this._key):void 0},w.prototype.set=function(k,B){var W=Q(k,!0);return W[this._key]=B,this},w.prototype.delete=function(k){var B=Q(k,!1);return B!==void 0?delete B[this._key]:!1},w.prototype.clear=function(){this._key=D()},w}();function D(){var w;do w="@@WeakMap@@"+fe();while(f.has(S,w));return S[w]=!0,w}function Q(w,k){if(!i.call(w,P)){if(!k)return;Object.defineProperty(w,P,{value:f.create()})}return w[P]}function He(w,k){for(var B=0;B<k;++B)w[B]=Math.random()*255|0;return w}function qe(w){if(typeof Uint8Array=="function"){var k=new Uint8Array(w);return typeof crypto<"u"?crypto.getRandomValues(k):typeof msCrypto<"u"?msCrypto.getRandomValues(k):He(k,w),k}return He(new Array(w),w)}function fe(){var w=qe(v);w[6]=w[6]&79|64,w[8]=w[8]&191|128;for(var k="",B=0;B<v;++B){var W=w[B];(B===4||B===6||B===8)&&(k+="-"),W<16&&(k+="0"),k+=W.toString(16).toLowerCase()}return k}}o(fy,"CreateWeakMapPolyfill");function hs(v){return v.__=void 0,delete v.__,v}o(hs,"MakeDictionary")})})(Jd||(Jd={}))});var ng=Ie((vP,tg)=>{var _T=0,eg="changeUtils: ";function MT(){return"id-"+new Date().valueOf()+"-"+_T++}o(MT,"uid");function kT(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(kT,"appendComponentToReference");function UT(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return kT(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(UT,"getFlexReference");function BT(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(BT,"getAppVersion");function HT(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(HT,"getProjectId");function Zd(e){return JSON.stringify({fileName:e.id||MT().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:eg+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(Zd,"createString");tg.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(eg,""),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=UT(t),e.appVersion=BT(t),e.projectId=HT(t,e.reference),Zd(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 Zd(e)},"toString")}});var rg=Ie((SP,ig)=>{ig.exports={change:ng()}});var Xg=Ie(Dt=>{"use strict";var mv=/[|\\{}()[\]^$+*?.]/g,yv=Object.prototype.hasOwnProperty,$l=o(function(e,t){return yv.apply(e,[t])},"hasOwn");Dt.escapeRegExpChars=function(e){return e?String(e).replace(mv,"\\$&"):""};var hv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},bv=/[&<>'"]/g;function Tv(e){return hv[e]||e}o(Tv,"encode_char");var vv=`var _ENCODE_HTML_RULES = {
25
+ Actual: `+h.attribValue);else{var se=h.tag,ke=h.tags[h.tags.length-1]||h;se.ns===ke.ns&&(se.ns=Object.create(ke.ns)),se.ns[T]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Ae(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}o(yt,"attrib");function it(h,d){if(h.opt.xmlns){var A=h.tag,T=Je(h.tagName);A.prefix=T.prefix,A.local=T.local,A.uri=A.ns[T.prefix]||"",A.prefix&&!A.uri&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),A.uri=T.prefix);var se=h.tags[h.tags.length-1]||h;A.ns&&se.ns!==A.ns&&Object.keys(A.ns).forEach(function(xi){Ae(h,"onopennamespace",{prefix:xi,uri:A.ns[xi]})});for(var ke=0,Le=h.attribList.length;ke<Le;ke++){var nt=h.attribList[ke],rt=nt[0],Jt=nt[1],Qe=Je(rt,!0),Lt=Qe.prefix,xo=Qe.local,rr=Lt===""?"":A.ns[Lt]||"",Si={name:rt,value:Jt,prefix:Lt,local:xo,uri:rr};Lt&&Lt!=="xmlns"&&!rr&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(Lt)),Si.uri=Lt),h.tag.attributes[rt]=Si,Ae(h,"onattribute",Si)}h.attribList.length=0}h.tag.isSelfClosing=!!d,h.sawRoot=!0,h.tags.push(h.tag),Ae(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(it,"openTag");function an(h){if(!h.tagName){ye(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}Ae(h,"onscript",h.script),h.script=""}var d=h.tags.length,A=h.tagName;h.strict||(A=A[h.looseCase]());for(var T=A;d--;){var se=h.tags[d];if(se.name!==T)ye(h,"Unexpected close tag");else break}if(d<0){ye(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=C.TEXT;return}h.tagName=A;for(var ke=h.tags.length;ke-- >d;){var Le=h.tag=h.tags.pop();h.tagName=h.tag.name,Ae(h,"onclosetag",h.tagName);var nt={};for(var rt in Le.ns)nt[rt]=Le.ns[rt];var Jt=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Le.ns!==Jt.ns&&Object.keys(Le.ns).forEach(function(Qe){var Lt=Le.ns[Qe];Ae(h,"onclosenamespace",{prefix:Qe,uri:Lt})})}d===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=C.TEXT}o(an,"closeTag");function Z(h){var d=h.entity,A=d.toLowerCase(),T,se="";return h.ENTITIES[d]?h.ENTITIES[d]:h.ENTITIES[A]?h.ENTITIES[A]:(d=A,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),T=parseInt(d,16),se=T.toString(16)):(d=d.slice(1),T=parseInt(d,10),se=T.toString(10))),d=d.replace(/^0+/,""),isNaN(T)||se.toLowerCase()!==d?(ye(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(T))}o(Z,"parseEntity");function sn(h,d){d==="<"?(h.state=C.OPEN_WAKA,h.startTagPosition=h.position):Y(d)||(ye(h,"Non-whitespace before first tag."),h.textNode=d,h.state=C.TEXT)}o(sn,"beginWhiteSpace");function So(h,d){var A="";return d<h.length&&(A=h.charAt(d)),A}o(So,"charAt");function Re(h){var d=this;if(this.error)throw this.error;if(d.closed)return mt(d,"Cannot write after close. Assign an onready handler.");if(h===null)return Nt(d);typeof h=="object"&&(h=h.toString());for(var A=0,T="";T=So(h,A++),d.c=T,!!T;)switch(d.trackPosition&&(d.position++,T===`
26
+ `?(d.line++,d.column=0):d.column++),d.state){case C.BEGIN:if(d.state=C.BEGIN_WHITESPACE,T==="\uFEFF")continue;sn(d,T);continue;case C.BEGIN_WHITESPACE:sn(d,T);continue;case C.TEXT:if(d.sawRoot&&!d.closedRoot){for(var se=A-1;T&&T!=="<"&&T!=="&";)T=So(h,A++),T&&d.trackPosition&&(d.position++,T===`
27
+ `?(d.line++,d.column=0):d.column++);d.textNode+=h.substring(se,A-1)}T==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):(!Y(T)&&(!d.sawRoot||d.closedRoot)&&ye(d,"Text data outside of root node."),T==="&"?d.state=C.TEXT_ENTITY:d.textNode+=T);continue;case C.SCRIPT:T==="<"?d.state=C.SCRIPT_ENDING:d.script+=T;continue;case C.SCRIPT_ENDING:T==="/"?d.state=C.CLOSE_TAG:(d.script+="<"+T,d.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(T==="!")d.state=C.SGML_DECL,d.sgmlDecl="";else if(!Y(T))if(le(I,T))d.state=C.OPEN_TAG,d.tagName=T;else if(T==="/")d.state=C.CLOSE_TAG,d.tagName="";else if(T==="?")d.state=C.PROC_INST,d.procInstName=d.procInstBody="";else{if(ye(d,"Unencoded <"),d.startTagPosition+1<d.position){var ke=d.position-d.startTagPosition;T=new Array(ke).join(" ")+T}d.textNode+="<"+T,d.state=C.TEXT}continue;case C.SGML_DECL:if(d.sgmlDecl+T==="--"){d.state=C.COMMENT,d.comment="",d.sgmlDecl="";continue}d.doctype&&d.doctype!==!0&&d.sgmlDecl?(d.state=C.DOCTYPE_DTD,d.doctype+="<!"+d.sgmlDecl+T,d.sgmlDecl=""):(d.sgmlDecl+T).toUpperCase()===f?(Ae(d,"onopencdata"),d.state=C.CDATA,d.sgmlDecl="",d.cdata=""):(d.sgmlDecl+T).toUpperCase()===p?(d.state=C.DOCTYPE,(d.doctype||d.sawRoot)&&ye(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):T===">"?(Ae(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=C.TEXT):(re(T)&&(d.state=C.SGML_DECL_QUOTED),d.sgmlDecl+=T);continue;case C.SGML_DECL_QUOTED:T===d.q&&(d.state=C.SGML_DECL,d.q=""),d.sgmlDecl+=T;continue;case C.DOCTYPE:T===">"?(d.state=C.TEXT,Ae(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=T,T==="["?d.state=C.DOCTYPE_DTD:re(T)&&(d.state=C.DOCTYPE_QUOTED,d.q=T));continue;case C.DOCTYPE_QUOTED:d.doctype+=T,T===d.q&&(d.q="",d.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:T==="]"?(d.doctype+=T,d.state=C.DOCTYPE):T==="<"?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):re(T)?(d.doctype+=T,d.state=C.DOCTYPE_DTD_QUOTED,d.q=T):d.doctype+=T;continue;case C.DOCTYPE_DTD_QUOTED:d.doctype+=T,T===d.q&&(d.state=C.DOCTYPE_DTD,d.q="");continue;case C.COMMENT:T==="-"?d.state=C.COMMENT_ENDING:d.comment+=T;continue;case C.COMMENT_ENDING:T==="-"?(d.state=C.COMMENT_ENDED,d.comment=Ci(d.opt,d.comment),d.comment&&Ae(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+T,d.state=C.COMMENT);continue;case C.COMMENT_ENDED:T!==">"?(ye(d,"Malformed comment"),d.comment+="--"+T,d.state=C.COMMENT):d.doctype&&d.doctype!==!0?d.state=C.DOCTYPE_DTD:d.state=C.TEXT;continue;case C.CDATA:T==="]"?d.state=C.CDATA_ENDING:d.cdata+=T;continue;case C.CDATA_ENDING:T==="]"?d.state=C.CDATA_ENDING_2:(d.cdata+="]"+T,d.state=C.CDATA);continue;case C.CDATA_ENDING_2:T===">"?(d.cdata&&Ae(d,"oncdata",d.cdata),Ae(d,"onclosecdata"),d.cdata="",d.state=C.TEXT):T==="]"?d.cdata+="]":(d.cdata+="]]"+T,d.state=C.CDATA);continue;case C.PROC_INST:T==="?"?d.state=C.PROC_INST_ENDING:Y(T)?d.state=C.PROC_INST_BODY:d.procInstName+=T;continue;case C.PROC_INST_BODY:if(!d.procInstBody&&Y(T))continue;T==="?"?d.state=C.PROC_INST_ENDING:d.procInstBody+=T;continue;case C.PROC_INST_ENDING:T===">"?(Ae(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=C.TEXT):(d.procInstBody+="?"+T,d.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:le(L,T)?d.tagName+=T:(qn(d),T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:(Y(T)||ye(d,"Invalid character in tag name"),d.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:T===">"?(it(d,!0),an(d)):(ye(d,"Forward-slash in opening tag not followed by >"),d.state=C.ATTRIB);continue;case C.ATTRIB:if(Y(T))continue;T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:le(I,T)?(d.attribName=T,d.attribValue="",d.state=C.ATTRIB_NAME):ye(d,"Invalid attribute name");continue;case C.ATTRIB_NAME:T==="="?d.state=C.ATTRIB_VALUE:T===">"?(ye(d,"Attribute without value"),d.attribValue=d.attribName,yt(d),it(d)):Y(T)?d.state=C.ATTRIB_NAME_SAW_WHITE:le(L,T)?d.attribName+=T:ye(d,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(T==="=")d.state=C.ATTRIB_VALUE;else{if(Y(T))continue;ye(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Ae(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",T===">"?it(d):le(I,T)?(d.attribName=T,d.state=C.ATTRIB_NAME):(ye(d,"Invalid attribute name"),d.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(Y(T))continue;re(T)?(d.q=T,d.state=C.ATTRIB_VALUE_QUOTED):(d.opt.unquotedAttributeValues||mt(d,"Unquoted attribute value"),d.state=C.ATTRIB_VALUE_UNQUOTED,d.attribValue=T);continue;case C.ATTRIB_VALUE_QUOTED:if(T!==d.q){T==="&"?d.state=C.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=T;continue}yt(d),d.q="",d.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:Y(T)?d.state=C.ATTRIB:T===">"?it(d):T==="/"?d.state=C.OPEN_TAG_SLASH:le(I,T)?(ye(d,"No whitespace between attributes"),d.attribName=T,d.attribValue="",d.state=C.ATTRIB_NAME):ye(d,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!J(T)){T==="&"?d.state=C.ATTRIB_VALUE_ENTITY_U:d.attribValue+=T;continue}yt(d),T===">"?it(d):d.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(d.tagName)T===">"?an(d):le(L,T)?d.tagName+=T:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=C.SCRIPT):(Y(T)||ye(d,"Invalid tagname in closing tag"),d.state=C.CLOSE_TAG_SAW_WHITE);else{if(Y(T))continue;Ee(I,T)?d.script?(d.script+="</"+T,d.state=C.SCRIPT):ye(d,"Invalid tagname in closing tag."):d.tagName=T}continue;case C.CLOSE_TAG_SAW_WHITE:if(Y(T))continue;T===">"?an(d):ye(d,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var Le,nt;switch(d.state){case C.TEXT_ENTITY:Le=C.TEXT,nt="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:Le=C.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:Le=C.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}if(T===";"){var rt=Z(d);d.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(rt)?(d.entity="",d.state=Le,d.write(rt)):(d[nt]+=rt,d.entity="",d.state=Le)}else le(d.entity.length?oe:G,T)?d.entity+=T:(ye(d,"Invalid character in entity name"),d[nt]+="&"+d.entity+T,d.entity="",d.state=Le);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}o(Re,"write");String.fromCodePoint||function(){var h=String.fromCharCode,d=Math.floor,A=o(function(){var T=16384,se=[],ke,Le,nt=-1,rt=arguments.length;if(!rt)return"";for(var Jt="";++nt<rt;){var Qe=Number(arguments[nt]);if(!isFinite(Qe)||Qe<0||Qe>1114111||d(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?se.push(Qe):(Qe-=65536,ke=(Qe>>10)+55296,Le=Qe%1024+56320,se.push(ke,Le)),(nt+1===rt||se.length>T)&&(Jt+=h.apply(null,se),se.length=0)}return Jt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(typeof Bo>"u"?Bo.sax={}:Bo)});var Ho=Ie((HE,Xp)=>{Xp.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Go=Ie((WE,zp)=>{var Lb=Ho().isArray;zp.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"&&!Lb(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 Ys=Ie((JE,od)=>{var Vb=qp(),jb={on:o(function(){},"on"),parse:o(function(){},"parse")},ce=Go(),Fi=Ho().isArray,x,zs=!0,te;function Db(e){return x=ce.copyOptions(e),ce.ensureFlagExists("ignoreDeclaration",x),ce.ensureFlagExists("ignoreInstruction",x),ce.ensureFlagExists("ignoreAttributes",x),ce.ensureFlagExists("ignoreText",x),ce.ensureFlagExists("ignoreComment",x),ce.ensureFlagExists("ignoreCdata",x),ce.ensureFlagExists("ignoreDoctype",x),ce.ensureFlagExists("compact",x),ce.ensureFlagExists("alwaysChildren",x),ce.ensureFlagExists("addParent",x),ce.ensureFlagExists("trim",x),ce.ensureFlagExists("nativeType",x),ce.ensureFlagExists("nativeTypeAttributes",x),ce.ensureFlagExists("sanitize",x),ce.ensureFlagExists("instructionHasAttributes",x),ce.ensureFlagExists("captureSpacesBetweenElements",x),ce.ensureAlwaysArrayExists(x),ce.ensureKeyExists("declaration",x),ce.ensureKeyExists("instruction",x),ce.ensureKeyExists("attributes",x),ce.ensureKeyExists("text",x),ce.ensureKeyExists("comment",x),ce.ensureKeyExists("cdata",x),ce.ensureKeyExists("doctype",x),ce.ensureKeyExists("type",x),ce.ensureKeyExists("name",x),ce.ensureKeyExists("elements",x),ce.ensureKeyExists("parent",x),ce.checkFnExists("doctype",x),ce.checkFnExists("instruction",x),ce.checkFnExists("cdata",x),ce.checkFnExists("comment",x),ce.checkFnExists("text",x),ce.checkFnExists("instructionName",x),ce.checkFnExists("elementName",x),ce.checkFnExists("attributeName",x),ce.checkFnExists("attributeValue",x),ce.checkFnExists("attributes",x),x}o(Db,"validateOptions");function id(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(id,"nativeType");function pr(e,t){var n;if(x.compact){if(!te[x[e+"Key"]]&&(Fi(x.alwaysArray)?x.alwaysArray.indexOf(x[e+"Key"])!==-1:x.alwaysArray)&&(te[x[e+"Key"]]=[]),te[x[e+"Key"]]&&!Fi(te[x[e+"Key"]])&&(te[x[e+"Key"]]=[te[x[e+"Key"]]]),e+"Fn"in x&&typeof t=="string"&&(t=x[e+"Fn"](t,te)),e==="instruction"&&("instructionFn"in x||"instructionNameFn"in x)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in x)t[n]=x.instructionFn(t[n],n,te);else{var i=t[n];delete t[n],t[x.instructionNameFn(n,i,te)]=i}}Fi(te[x[e+"Key"]])?te[x[e+"Key"]].push(t):te[x[e+"Key"]]=t}else{te[x.elementsKey]||(te[x.elementsKey]=[]);var r={};if(r[x.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[x.nameKey]="instructionNameFn"in x?x.instructionNameFn(n,t,te):n,x.instructionHasAttributes?(r[x.attributesKey]=t[n][x.attributesKey],"instructionFn"in x&&(r[x.attributesKey]=x.instructionFn(r[x.attributesKey],n,te))):("instructionFn"in x&&(t[n]=x.instructionFn(t[n],n,te)),r[x.instructionKey]=t[n])}else e+"Fn"in x&&(t=x[e+"Fn"](t,te)),r[x[e+"Key"]]=t;x.addParent&&(r[x.parentKey]=te),te[x.elementsKey].push(r)}}o(pr,"addField");function rd(e){if("attributesFn"in x&&e&&(e=x.attributesFn(e,te)),(x.trim||"attributeValueFn"in x||"attributeNameFn"in x||x.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(x.trim&&(e[t]=e[t].trim()),x.nativeTypeAttributes&&(e[t]=id(e[t])),"attributeValueFn"in x&&(e[t]=x.attributeValueFn(e[t],t,te)),"attributeNameFn"in x)){var n=e[t];delete e[t],e[x.attributeNameFn(t,e[t],te)]=n}}return e}o(rd,"manipulateAttributes");function $b(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||x.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=rd(t)}if(e.name.toLowerCase()==="xml"){if(x.ignoreDeclaration)return;te[x.declarationKey]={},Object.keys(t).length&&(te[x.declarationKey][x.attributesKey]=t),x.addParent&&(te[x.declarationKey][x.parentKey]=te)}else{if(x.ignoreInstruction)return;x.trim&&(e.body=e.body.trim());var r={};x.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][x.attributesKey]=t):r[e.name]=e.body,pr("instruction",r)}}o($b,"onInstruction");function Yp(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=rd(t),"elementNameFn"in x&&(e=x.elementNameFn(e,te)),x.compact){if(n={},!x.ignoreAttributes&&t&&Object.keys(t).length){n[x.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[x.attributesKey][i]=t[i])}!(e in te)&&(Fi(x.alwaysArray)?x.alwaysArray.indexOf(e)!==-1:x.alwaysArray)&&(te[e]=[]),te[e]&&!Fi(te[e])&&(te[e]=[te[e]]),Fi(te[e])?te[e].push(n):te[e]=n}else te[x.elementsKey]||(te[x.elementsKey]=[]),n={},n[x.typeKey]="element",n[x.nameKey]=e,!x.ignoreAttributes&&t&&Object.keys(t).length&&(n[x.attributesKey]=t),x.alwaysChildren&&(n[x.elementsKey]=[]),te[x.elementsKey].push(n);n[x.parentKey]=te,te=n}o(Yp,"onStartElement");function Zp(e){x.ignoreText||!e.trim()&&!x.captureSpacesBetweenElements||(x.trim&&(e=e.trim()),x.nativeType&&(e=id(e)),x.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),pr("text",e))}o(Zp,"onText");function ed(e){x.ignoreComment||(x.trim&&(e=e.trim()),pr("comment",e))}o(ed,"onComment");function td(e){var t=te[x.parentKey];x.addParent||delete te[x.parentKey],te=t}o(td,"onEndElement");function wb(e){x.ignoreCdata||(x.trim&&(e=e.trim()),pr("cdata",e))}o(wb,"onCdata");function Rb(e){x.ignoreDoctype||(e=e.replace(/^ /,""),x.trim&&(e=e.trim()),pr("doctype",e))}o(Rb,"onDoctype");function nd(e){e.note=e}o(nd,"onError");od.exports=function(e,t){var n=zs?Vb.parser(!0,{}):n=new jb.Parser("UTF-8"),i={};if(te=i,x=Db(t),zs?(n.opt={strictEntities:!0},n.onopentag=Yp,n.ontext=Zp,n.oncomment=ed,n.onclosetag=td,n.onerror=nd,n.oncdata=wb,n.ondoctype=Rb,n.onprocessinginstruction=$b):(n.on("startElement",Yp),n.on("text",Zp),n.on("comment",ed),n.on("endElement",td),n.on("error",nd)),zs)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[x.elementsKey]){var r=i[x.elementsKey];delete i[x.elementsKey],i[x.elementsKey]=r,delete i.text}return i}});var ld=Ie((qE,sd)=>{var ad=Go(),_b=Ys();function Mb(e){var t=ad.copyOptions(e);return ad.ensureSpacesExists(t),t}o(Mb,"validateOptions");sd.exports=function(e,t){var n,i,r,a;return n=Mb(t),i=_b(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 el=Ie((zE,hd)=>{var pe=Go(),kb=Ho().isArray,ot,at;function Ub(e){var t=pe.copyOptions(e);return pe.ensureFlagExists("ignoreDeclaration",t),pe.ensureFlagExists("ignoreInstruction",t),pe.ensureFlagExists("ignoreAttributes",t),pe.ensureFlagExists("ignoreText",t),pe.ensureFlagExists("ignoreComment",t),pe.ensureFlagExists("ignoreCdata",t),pe.ensureFlagExists("ignoreDoctype",t),pe.ensureFlagExists("compact",t),pe.ensureFlagExists("indentText",t),pe.ensureFlagExists("indentCdata",t),pe.ensureFlagExists("indentAttributes",t),pe.ensureFlagExists("indentInstruction",t),pe.ensureFlagExists("fullTagEmptyElement",t),pe.ensureFlagExists("noQuotesForNativeAttributes",t),pe.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),pe.ensureKeyExists("declaration",t),pe.ensureKeyExists("instruction",t),pe.ensureKeyExists("attributes",t),pe.ensureKeyExists("text",t),pe.ensureKeyExists("comment",t),pe.ensureKeyExists("cdata",t),pe.ensureKeyExists("doctype",t),pe.ensureKeyExists("type",t),pe.ensureKeyExists("name",t),pe.ensureKeyExists("elements",t),pe.checkFnExists("doctype",t),pe.checkFnExists("instruction",t),pe.checkFnExists("cdata",t),pe.checkFnExists("comment",t),pe.checkFnExists("text",t),pe.checkFnExists("instructionName",t),pe.checkFnExists("elementName",t),pe.checkFnExists("attributeName",t),pe.checkFnExists("attributeValue",t),pe.checkFnExists("attributes",t),pe.checkFnExists("fullTagEmptyElement",t),t}o(Ub,"validateOptions");function qt(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}o(qt,"writeIndentation");function Wo(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,at,ot));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,at,ot):i,l.push(t.spaces&&t.indentAttributes?qt(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,at,ot):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(qt(t,n,!1)),l.join("")}o(Wo,"writeAttributes");function cd(e,t,n){return ot=e,at="xml",t.ignoreDeclaration?"":"<?xml"+Wo(e[t.attributesKey],t,n)+"?>"}o(cd,"writeDeclaration");function ud(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],at,ot):i;if(typeof e[i]=="object")return ot=e,at=r,"<?"+r+Wo(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,at,ot)),"<?"+r+(a?" "+a:"")+"?>"}o(ud,"writeInstruction");function fd(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,at,ot):e)+"-->"}o(fd,"writeComment");function pd(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,at,ot):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(pd,"writeCdata");function dd(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,at,ot):e)+">"}o(dd,"writeDoctype");function Zs(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,at,ot):e)}o(Zs,"writeText");function Bb(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(Bb,"hasContent");function Hb(e,t,n){ot=e,at=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Wo(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(gd(e[t.elementsKey],t,n+1)),ot=e,at=e.name),i.push(t.spaces&&Bb(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Hb,"writeElement");function gd(e,t,n,i){return e.reduce(function(r,a){var s=qt(t,n,i&&!r);switch(a.type){case"element":return r+s+Hb(a,t,n);case"comment":return r+s+fd(a[t.commentKey],t);case"doctype":return r+s+dd(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+pd(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Zs(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+ud(l,t,n)}},"")}o(gd,"writeElements");function md(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(md,"hasContentCompact");function Gb(e,t,n,i,r){ot=e,at=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Zs(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Wo(e[n.attributesKey],n,i));var l=md(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(yd(e,n,i+1,!1)),ot=e,at=t,t&&s.push((r?qt(n,i,!1):"")+"</"+a+">"),s.join("")}o(Gb,"writeElementCompact");function yd(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=kb(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(cd(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?qt(t,n,i):"")+ud(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?qt(t,n,i):"")+Zs(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?qt(t,n,i):"")+pd(s[r],t));break;case t.doctypeKey:l.push(qt(t,n,i)+dd(s[r],t));break;case t.commentKey:l.push(qt(t,n,i)+fd(s[r],t));break;default:l.push(qt(t,n,i)+Gb(s[r],a,t,n,md(s[r],t)))}i=i&&!l.length}return l.join("")}o(yd,"writeElementsCompact");hd.exports=function(e,t){t=Ub(t);var n=[];return ot=e,at="_root_",t.compact?n.push(yd(e,t,0,!0)):(e[t.declarationKey]&&n.push(cd(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(gd(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Td=Ie((ZE,bd)=>{var Wb=el();bd.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 Wb(n,t)}});var dr=Ie((eP,vd)=>{var Kb=Ys(),Jb=ld(),Qb=el(),qb=Td();vd.exports={xml2js:Kb,xml2json:Jb,js2xml:Qb,json2xml:qb}});var Ad=Ie(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.convertEntityTypeAnnotations=bt.convertPropertyAnnotations=bt.convertNavigationPropertyAnnotations=bt.convertEntitySetAnnotations=bt.convertGenericAnnotations=bt.convertV2Annotations=void 0;function Xb(e,t,n){let i=[];switch(t){case"EntitySet":Sd(e,i);break;case"EntityType":Pd(e,i);break;case"NavigationProperty":xd(e,n,i);break;case"Property":Ed(e,n,i);break;case"Singleton":break;default:break}return Cd(e,n,i),i}o(Xb,"convertV2Annotations");bt.convertV2Annotations=Xb;function Cd(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(Cd,"convertGenericAnnotations");bt.convertGenericAnnotations=Cd;function Sd(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(Sd,"convertEntitySetAnnotations");bt.convertEntitySetAnnotations=Sd;function xd(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(xd,"convertNavigationPropertyAnnotations");bt.convertNavigationPropertyAnnotations=xd;function Ed(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(Ed,"convertPropertyAnnotations");bt.convertPropertyAnnotations=Ed;function Pd(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(Pd,"convertEntityTypeAnnotations");bt.convertEntityTypeAnnotations=Pd});var Vd=Ie(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.parse=void 0;var zb=dr(),ie=Xs(),gr=Ad(),Qo=/^Collection\((.+)\)$/;function Yb(e){return e.Type!==null&&e.Type!==void 0}o(Yb,"isV4NavProperty");function Zb(e){return e.map(t=>t._attributes.Name)}o(Zb,"getEntityTypeKeys");function Fd(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Ni(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,gr.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(zn(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(Fd,"parseProperties");function eT(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(eT,"parseReferentialConstraint");function tT(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,ie.ensureArray)(i.Principal.PropertyRef),l=(0,ie.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,ie.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let u=s.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[u]._attributes.Name})}}return n},[])}o(tT,"parseV2ReferentialConstraint");function Nd(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(Yb(s)){let l=s.Type.match(Qo),c=l!==null,u=Xt(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:u,referentialConstraint:eT((0,ie.ensureArray)(a.ReferentialConstraint),t._attributes.Name,u)})}else{let{Relationship:l,ToRole:c,FromRole:u}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:u});let f=(0,gr.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(zn(`${n}/${s.Name}`,f))}return r},[])}o(Nd,"parseNavigationProperties");function nT(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,ie.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(nT,"parseAssociationSets");function iT(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,ie.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:tT((0,ie.ensureArray)(n.ReferentialConstraint),r)}})}o(iT,"parseAssociations");function rT(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Zb((0,ie.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=Fd((0,ie.ensureArray)(r.Property),a,s,t),u=Nd((0,ie.ensureArray)(r.NavigationProperty),r,s,t),f={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:u},p=(0,gr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(zn(f.fullyQualifiedName,p)),i.push(f),i},[])}o(rT,"parseEntityTypes");function oT(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=Fd((0,ie.ensureArray)(r.Property),[],a,t),l=Nd((0,ie.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(oT,"parseComplexTypes");function aT(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(aT,"parseTypeDefinitions");function sT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ie.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Xt(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,gr.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(zn(l.fullyQualifiedName,c)),l})}o(sT,"parseEntitySets");function lT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,ie.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Xt(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,gr.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(zn(l.fullyQualifiedName,c)),l})}o(lT,"parseSingletons");function Id(e,t,n){return e.map(i=>{let r=(0,ie.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(c=>Ni(c._attributes.Type).type).join(","):s=a?Ni(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Ni(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:u,type:f}=Ni(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:u};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?Ni(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Qo)!==null:!1}})}o(Id,"parseActions");function cT(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,ie.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Qo)!==null:!1}})}o(cT,"parseV2FunctionImport");function Od(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:Xt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Xt(r)}})}o(Od,"parseActionImports");function uT(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let u=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Jo(s,u,n,!1):c&&(l.value=Ld({[c]:a[c]},u,n)),i.Annotation){let f=Xo((0,ie.ensureArray)(i.Annotation),u,n);f&&f.length>0&&n.push(zn(u,f))}}return l})}o(uT,"parsePropertyValues");function qo(e,t,n){let i=Xo((0,ie.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Xt(e._attributes.Type):void 0,propertyValues:uT((0,ie.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(qo,"parseRecord");function fn(e,t){return e[t]!=null}o(fn,"isExpressionOfType");function Ko(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(Ko,"parseModelPath");function nl(e,t,n){if(fn(e,"Record")){let i=(0,ie.ensureArray)(e.Record).map((r,a)=>qo(r,t+"/"+a,n));return i.type="Record",i}else if(fn(e,"PropertyPath")){let i=(0,ie.ensureArray)(e.PropertyPath).map(r=>Ko(r,"PropertyPath"));return i.type="PropertyPath",i}else if(fn(e,"NavigationPropertyPath")){let i=(0,ie.ensureArray)(e.NavigationPropertyPath).map(r=>Ko(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(fn(e,"String")){let i=(0,ie.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(fn(e,"AnnotationPath")){let i=(0,ie.ensureArray)(e.AnnotationPath).map(r=>Ko(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(fn(e,"Path")){let i=(0,ie.ensureArray)(e.Path).map(r=>Ko(r,"Path"));return i.type="Path",i}else if(fn(e,"If")){let i=(0,ie.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(nl,"parseCollection");function Ue(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Jo({[i]:r},"",[],!0))):n.push(Jo({[i]:e[i]},"",[],!0))}),n}o(Ue,"parseChildren");function Ld(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:nl(e.Collection,t,n)};case"Record":return{type:"Record",Record:qo(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:Ue(e.Function)};case"And":return{type:"And",$And:Ue(e.And)};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};case"If":return{type:"If",$If:Ue(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(Ld,"parseInlineExpression");function Jo(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Ue(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:nl(e.Collection,t,n)};case"Record":return{type:"Record",Record:qo(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ue(e.And)};case"Ne":return{type:"Ne",$Ne:Ue(e.Ne)};case"Not":return{type:"Not",$Not:Ue(e.Not)[0]};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"If":return{type:"If",$If:Ue(e.If)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Jo,"parseExpression");function fT(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Xt(i),qualifier:r},l=`${t}@${Xt(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=Ld(a,l,n)),e.Annotation){let u=Xo((0,ie.ensureArray)(e.Annotation),l,n);u&&u.length>0&&(s.annotations=u)}let c=Object.keys(e).filter(u=>u!=="_attributes"&&u!=="Annotation");return fn(e,"Record")?s.record=qo(e.Record,l,n):fn(e,"Collection")?s.collection=nl(e.Collection,l,n):c.length===1?s.value=Jo({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(fT,"parseAnnotation");function Xo(e,t,n){return e.map(i=>fT(i,t,n))}o(Xo,"parseAnnotations");function zn(e,t){return{target:e,annotations:t}}o(zn,"createAnnotationList");function pT(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(zn(Xt(n._attributes.Target),Xo((0,ie.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(pT,"parseAnnotationLists");function dT(e,t,n){let i=e._attributes.Namespace,r=[],a=rT((0,ie.ensureArray)(e.EntityType),r,i),s=oT((0,ie.ensureArray)(e.ComplexType),r,i),l=aT((0,ie.ensureArray)(e.TypeDefinition),i),c=[],u=[],f=[],p={_type:"EntityContainer",fullyQualifiedName:""},g=[],b=[];if(e.EntityContainer)if(c=sT((0,ie.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),u=lT((0,ie.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),f=nT((0,ie.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(cT((0,ie.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(Od((0,ie.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(Od((0,ie.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(g=g.concat(Id((0,ie.ensureArray)(e.Action),i,!1)),g=g.concat(Id((0,ie.ensureArray)(e.Function),i,!0)));let E=iT((0,ie.ensureArray)(e.Association),i);pT((0,ie.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:E,associationSets:f,annotations:I,entityContainer:p,namespace:i,entitySets:c,singletons:u,complexTypes:s,typeDefinitions:l,actions:g,actionImports:b,entityTypes:a}}o(dT,"parseSchema");function gT(e){return e.reduce((t,n)=>((0,ie.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(gT,"parseReferences");var tl={};function Ni(e){let t=e.match(Qo),n=t?t[1]:e,i=Xt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Ni,"unaliasType");function Xt(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=tl[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(Xt,"unalias");function mT(e){let t=e.reduce((b,E)=>b.concat(E.associations),[]),n=e.reduce((b,E)=>b.concat(E.associationSets),[]),i=e.reduce((b,E)=>b.concat(E.entitySets),[]),r=e.reduce((b,E)=>b.concat(E.singletons),[]),a=e.reduce((b,E)=>b.concat(E.entityTypes),[]),s=e.reduce((b,E)=>b.concat(E.actions),[]),l=e.reduce((b,E)=>b.concat(E.actionImports),[]),c=e.reduce((b,E)=>b.concat(E.complexTypes),[]),u=e.reduce((b,E)=>b.concat(E.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,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 E=a.find(I=>I.fullyQualifiedName===b.entityTypeName);E==null||E.navigationProperties.forEach(I=>{let L=I,G=n.find(oe=>oe.association===L.relationship);if(G){let oe=G.associationEnd.find(Y=>Y.entitySet!==b.fullyQualifiedName);oe&&(b.navigationPropertyBinding[I.name]=oe.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(E=>{let I=E,L=t.find(G=>G.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(G=>({sourceTypeName:G.targetTypeName,sourceProperty:G.targetProperty,targetTypeName:G.sourceTypeName,targetProperty:G.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:p,namespace:g,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:u,actions:s,actionImports:l,entityTypes:a}}o(mT,"mergeSchemas");function yT(e,t){tl=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{tl[n._attributes.Alias]=n._attributes.Namespace})}o(yT,"createAliasMap");function hT(e,t="serviceFile"){let n=(0,zb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,ie.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=gT((0,ie.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));yT(a,r);let s=r.map(c=>dT(c,i,t));return new ie.RawMetadataInstance(t,i,mT(s),a)}o(hT,"parse");zo.parse=hT});var jd=Ie(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.parse=Li.merge=void 0;var bT=Qp();Object.defineProperty(Li,"merge",{enumerable:!0,get:o(function(){return bT.merge},"get")});var TT=Vd();Object.defineProperty(Li,"parse",{enumerable:!0,get:o(function(){return TT.parse},"get")})});var Xd=Ie(()=>{var qd;(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,u){return function(f,p){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:p}),u&&u(f,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,u=!l&&!c,f={create:l?function(){return hs(Object.create(null))}:c?function(){return hs({__proto__:null})}:function(){return hs({})},has:u?function(v,S){return i.call(v,S)}:function(v,S){return S in v},get:u?function(v,S){return i.call(v,S)?v[S]:void 0}:function(v,S){return v[S]}},p=Object.getPrototypeOf(Function),g=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:fy(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:py(),E=typeof WeakMap=="function"?WeakMap:dy(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,L=ly(),G=cy(L);function oe(v,S,P,D){if(Z(P)){if(!ke(v))throw new TypeError;if(!nt(S))throw new TypeError;return En(v,S)}else{if(!ke(v))throw new TypeError;if(!Re(S))throw new TypeError;if(!Re(D)&&!Z(D)&&!sn(D))throw new TypeError;return sn(D)&&(D=void 0),P=se(P),Ci(v,S,P,D)}}o(oe,"decorate"),t("decorate",oe);function Y(v,S){function P(D,Q){if(!Re(D))throw new TypeError;if(!Z(Q)&&!rt(Q))throw new TypeError;Je(v,S,D,Q)}return o(P,"decorator"),P}o(Y,"metadata"),t("metadata",Y);function re(v,S,P,D){if(!Re(P))throw new TypeError;return Z(D)||(D=se(D)),Je(v,S,P,D)}o(re,"defineMetadata"),t("defineMetadata",re);function J(v,S,P){if(!Re(S))throw new TypeError;return Z(P)||(P=se(P)),mt(v,S,P)}o(J,"hasMetadata"),t("hasMetadata",J);function le(v,S,P){if(!Re(S))throw new TypeError;return Z(P)||(P=se(P)),Nt(v,S,P)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Ee(v,S,P){if(!Re(S))throw new TypeError;return Z(P)||(P=se(P)),ye(v,S,P)}o(Ee,"getMetadata"),t("getMetadata",Ee);function C(v,S,P){if(!Re(S))throw new TypeError;return Z(P)||(P=se(P)),qn(v,S,P)}o(C,"getOwnMetadata"),t("getOwnMetadata",C);function on(v,S){if(!Re(v))throw new TypeError;return Z(S)||(S=se(S)),yt(v,S)}o(on,"getMetadataKeys"),t("getMetadataKeys",on);function Kt(v,S){if(!Re(v))throw new TypeError;return Z(S)||(S=se(S)),it(v,S)}o(Kt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Kt);function Ae(v,S,P){if(!Re(S))throw new TypeError;if(Z(P)||(P=se(P)),!Re(S))throw new TypeError;Z(P)||(P=se(P));var D=or(S,P,!1);return Z(D)?!1:D.OrdinaryDeleteMetadata(v,S,P)}o(Ae,"deleteMetadata"),t("deleteMetadata",Ae);function En(v,S){for(var P=v.length-1;P>=0;--P){var D=v[P],Q=D(S);if(!Z(Q)&&!sn(Q)){if(!nt(Q))throw new TypeError;S=Q}}return S}o(En,"DecorateConstructor");function Ci(v,S,P,D){for(var Q=v.length-1;Q>=0;--Q){var He=v[Q],qe=He(S,P,D);if(!Z(qe)&&!sn(qe)){if(!Re(qe))throw new TypeError;D=qe}}return D}o(Ci,"DecorateProperty");function mt(v,S,P){var D=Nt(v,S,P);if(D)return!0;var Q=xi(S);return sn(Q)?!1:mt(v,Q,P)}o(mt,"OrdinaryHasMetadata");function Nt(v,S,P){var D=or(S,P,!1);return Z(D)?!1:A(D.OrdinaryHasOwnMetadata(v,S,P))}o(Nt,"OrdinaryHasOwnMetadata");function ye(v,S,P){var D=Nt(v,S,P);if(D)return qn(v,S,P);var Q=xi(S);if(!sn(Q))return ye(v,Q,P)}o(ye,"OrdinaryGetMetadata");function qn(v,S,P){var D=or(S,P,!1);if(!Z(D))return D.OrdinaryGetOwnMetadata(v,S,P)}o(qn,"OrdinaryGetOwnMetadata");function Je(v,S,P,D){var Q=or(P,D,!0);Q.OrdinaryDefineOwnMetadata(v,S,P,D)}o(Je,"OrdinaryDefineOwnMetadata");function yt(v,S){var P=it(v,S),D=xi(v);if(D===null)return P;var Q=yt(D,S);if(Q.length<=0)return P;if(P.length<=0)return Q;for(var He=new b,qe=[],fe=0,R=P;fe<R.length;fe++){var k=R[fe],B=He.has(k);B||(He.add(k),qe.push(k))}for(var W=0,me=Q;W<me.length;W++){var k=me[W],B=He.has(k);B||(He.add(k),qe.push(k))}return qe}o(yt,"OrdinaryMetadataKeys");function it(v,S){var P=or(v,S,!1);return P?P.OrdinaryOwnMetadataKeys(v,S):[]}o(it,"OrdinaryOwnMetadataKeys");function an(v){if(v===null)return 1;switch(typeof v){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return v===null?1:6;default:return 6}}o(an,"Type");function Z(v){return v===void 0}o(Z,"IsUndefined");function sn(v){return v===null}o(sn,"IsNull");function So(v){return typeof v=="symbol"}o(So,"IsSymbol");function Re(v){return typeof v=="object"?v!==null:typeof v=="function"}o(Re,"IsObject");function h(v,S){switch(an(v)){case 0:return v;case 1:return v;case 2:return v;case 3:return v;case 4:return v;case 5:return v}var P=S===3?"string":S===5?"number":"default",D=Qe(v,a);if(D!==void 0){var Q=D.call(v,P);if(Re(Q))throw new TypeError;return Q}return d(v,P==="default"?"number":P)}o(h,"ToPrimitive");function d(v,S){if(S==="string"){var P=v.toString;if(Le(P)){var D=P.call(v);if(!Re(D))return D}var Q=v.valueOf;if(Le(Q)){var D=Q.call(v);if(!Re(D))return D}}else{var Q=v.valueOf;if(Le(Q)){var D=Q.call(v);if(!Re(D))return D}var He=v.toString;if(Le(He)){var D=He.call(v);if(!Re(D))return D}}throw new TypeError}o(d,"OrdinaryToPrimitive");function A(v){return!!v}o(A,"ToBoolean");function T(v){return""+v}o(T,"ToString");function se(v){var S=h(v,3);return So(S)?S:T(S)}o(se,"ToPropertyKey");function ke(v){return Array.isArray?Array.isArray(v):v instanceof Object?v instanceof Array:Object.prototype.toString.call(v)==="[object Array]"}o(ke,"IsArray");function Le(v){return typeof v=="function"}o(Le,"IsCallable");function nt(v){return typeof v=="function"}o(nt,"IsConstructor");function rt(v){switch(an(v)){case 3:return!0;case 4:return!0;default:return!1}}o(rt,"IsPropertyKey");function Jt(v,S){return v===S||v!==v&&S!==S}o(Jt,"SameValueZero");function Qe(v,S){var P=v[S];if(P!=null){if(!Le(P))throw new TypeError;return P}}o(Qe,"GetMethod");function Lt(v){var S=Qe(v,s);if(!Le(S))throw new TypeError;var P=S.call(v);if(!Re(P))throw new TypeError;return P}o(Lt,"GetIterator");function xo(v){return v.value}o(xo,"IteratorValue");function rr(v){var S=v.next();return S.done?!1:S}o(rr,"IteratorStep");function Si(v){var S=v.return;S&&S.call(v)}o(Si,"IteratorClose");function xi(v){var S=Object.getPrototypeOf(v);if(typeof v!="function"||v===p||S!==p)return S;var P=v.prototype,D=P&&Object.getPrototypeOf(P);if(D==null||D===Object.prototype)return S;var Q=D.constructor;return typeof Q!="function"||Q===v?S:Q}o(xi,"OrdinaryGetPrototypeOf");function sy(){var v;!Z(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(v=uy(n.Reflect));var S,P,D,Q=new E,He={registerProvider:qe,getProvider:R,setProvider:B};return He;function qe(W){if(!Object.isExtensible(He))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case v===W:break;case Z(S):S=W;break;case S===W:break;case Z(P):P=W;break;case P===W:break;default:D===void 0&&(D=new b),D.add(W);break}}function fe(W,me){if(!Z(S)){if(S.isProviderFor(W,me))return S;if(!Z(P)){if(P.isProviderFor(W,me))return S;if(!Z(D))for(var De=Lt(D);;){var Ge=rr(De);if(!Ge)return;var _t=xo(Ge);if(_t.isProviderFor(W,me))return Si(De),_t}}}if(!Z(v)&&v.isProviderFor(W,me))return v}function R(W,me){var De=Q.get(W),Ge;return Z(De)||(Ge=De.get(me)),Z(Ge)&&(Ge=fe(W,me),Z(Ge)||(Z(De)&&(De=new g,Q.set(W,De)),De.set(me,Ge))),Ge}function k(W){if(Z(W))throw new TypeError;return S===W||P===W||!Z(D)&&D.has(W)}function B(W,me,De){if(!k(De))throw new Error("Metadata provider not registered.");var Ge=R(W,me);if(Ge!==De){if(!Z(Ge))return!1;var _t=Q.get(W);Z(_t)&&(_t=new g,Q.set(W,_t)),_t.set(me,De)}return!0}}o(sy,"CreateMetadataRegistry");function ly(){var v;return!Z(I)&&Re(n.Reflect)&&Object.isExtensible(n.Reflect)&&(v=n.Reflect[I]),Z(v)&&(v=sy()),!Z(I)&&Re(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:v}),v}o(ly,"GetOrCreateMetadataRegistry");function cy(v){var S=new E,P={isProviderFor:o(function(k,B){var W=S.get(k);return Z(W)?!1:W.has(B)},"isProviderFor"),OrdinaryDefineOwnMetadata:qe,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:He,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:R};return L.registerProvider(P),P;function D(k,B,W){var me=S.get(k),De=!1;if(Z(me)){if(!W)return;me=new g,S.set(k,me),De=!0}var Ge=me.get(B);if(Z(Ge)){if(!W)return;if(Ge=new g,me.set(B,Ge),!v.setProvider(k,B,P))throw me.delete(B),De&&S.delete(k),new Error("Wrong provider for target.")}return Ge}o(D,"GetOrCreateMetadataMap");function Q(k,B,W){var me=D(B,W,!1);return Z(me)?!1:A(me.has(k))}o(Q,"OrdinaryHasOwnMetadata");function He(k,B,W){var me=D(B,W,!1);if(!Z(me))return me.get(k)}o(He,"OrdinaryGetOwnMetadata");function qe(k,B,W,me){var De=D(W,me,!0);De.set(k,B)}o(qe,"OrdinaryDefineOwnMetadata");function fe(k,B){var W=[],me=D(k,B,!1);if(Z(me))return W;for(var De=me.keys(),Ge=Lt(De),_t=0;;){var Su=rr(Ge);if(!Su)return W.length=_t,W;var gy=xo(Su);try{W[_t]=gy}catch(my){try{Si(Ge)}finally{throw my}}_t++}}o(fe,"OrdinaryOwnMetadataKeys");function R(k,B,W){var me=D(B,W,!1);if(Z(me)||!me.delete(k))return!1;if(me.size===0){var De=S.get(B);Z(De)||(De.delete(W),De.size===0&&S.delete(De))}return!0}o(R,"OrdinaryDeleteMetadata")}o(cy,"CreateMetadataProvider");function uy(v){var S=v.defineMetadata,P=v.hasOwnMetadata,D=v.getOwnMetadata,Q=v.getOwnMetadataKeys,He=v.deleteMetadata,qe=new E,fe={isProviderFor:o(function(R,k){var B=qe.get(R);return!Z(B)&&B.has(k)?!0:Q(R,k).length?(Z(B)&&(B=new b,qe.set(R,B)),B.add(k),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:D,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:He};return fe}o(uy,"CreateFallbackProvider");function or(v,S,P){var D=L.getProvider(v,S);if(!Z(D))return D;if(P){if(L.setProvider(v,S,G))return G;throw new Error("Illegal state.")}}o(or,"GetMetadataProvider");function fy(){var v={},S=[],P=function(){function fe(R,k,B){this._index=0,this._keys=R,this._values=k,this._selector=B}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 k=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:k,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}(),D=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=v,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 k=this._find(R,!1);return k>=0?this._values[k]:void 0},fe.prototype.set=function(R,k){var B=this._find(R,!0);return this._values[B]=k,this},fe.prototype.delete=function(R){var k=this._find(R,!1);if(k>=0){for(var B=this._keys.length,W=k+1;W<B;W++)this._keys[W-1]=this._keys[W],this._values[W-1]=this._values[W];return this._keys.length--,this._values.length--,Jt(R,this._cacheKey)&&(this._cacheKey=v,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=v,this._cacheIndex=-2},fe.prototype.keys=function(){return new P(this._keys,this._values,Q)},fe.prototype.values=function(){return new P(this._keys,this._values,He)},fe.prototype.entries=function(){return new P(this._keys,this._values,qe)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[s]=function(){return this.entries()},fe.prototype._find=function(R,k){if(!Jt(this._cacheKey,R)){this._cacheIndex=-1;for(var B=0;B<this._keys.length;B++)if(Jt(this._keys[B],R)){this._cacheIndex=B;break}}return this._cacheIndex<0&&k&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},fe}();return D;function Q(fe,R){return fe}function He(fe,R){return R}function qe(fe,R){return[fe,R]}}o(fy,"CreateMapPolyfill");function py(){var v=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(P){return this._map.has(P)},S.prototype.add=function(P){return this._map.set(P,P),this},S.prototype.delete=function(P){return this._map.delete(P)},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 v}o(py,"CreateSetPolyfill");function dy(){var v=16,S=f.create(),P=D();return function(){function R(){this._key=D()}return o(R,"WeakMap"),R.prototype.has=function(k){var B=Q(k,!1);return B!==void 0?f.has(B,this._key):!1},R.prototype.get=function(k){var B=Q(k,!1);return B!==void 0?f.get(B,this._key):void 0},R.prototype.set=function(k,B){var W=Q(k,!0);return W[this._key]=B,this},R.prototype.delete=function(k){var B=Q(k,!1);return B!==void 0?delete B[this._key]:!1},R.prototype.clear=function(){this._key=D()},R}();function D(){var R;do R="@@WeakMap@@"+fe();while(f.has(S,R));return S[R]=!0,R}function Q(R,k){if(!i.call(R,P)){if(!k)return;Object.defineProperty(R,P,{value:f.create()})}return R[P]}function He(R,k){for(var B=0;B<k;++B)R[B]=Math.random()*255|0;return R}function qe(R){if(typeof Uint8Array=="function"){var k=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(k):typeof msCrypto<"u"?msCrypto.getRandomValues(k):He(k,R),k}return He(new Array(R),R)}function fe(){var R=qe(v);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var k="",B=0;B<v;++B){var W=R[B];(B===4||B===6||B===8)&&(k+="-"),W<16&&(k+="0"),k+=W.toString(16).toLowerCase()}return k}}o(dy,"CreateWeakMapPolyfill");function hs(v){return v.__=void 0,delete v.__,v}o(hs,"MakeDictionary")})})(qd||(qd={}))});var rg=Ie((SP,ig)=>{var kT=0,ng="changeUtils: ";function UT(){return"id-"+new Date().valueOf()+"-"+kT++}o(UT,"uid");function BT(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(BT,"appendComponentToReference");function HT(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return BT(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(HT,"getFlexReference");function GT(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(GT,"getAppVersion");function WT(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(WT,"getProjectId");function tg(e){return JSON.stringify({fileName:e.id||UT().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:ng+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(tg,"createString");ig.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(ng,""),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=HT(t),e.appVersion=GT(t),e.projectId=WT(t,e.reference),tg(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 tg(e)},"toString")}});var ag=Ie((EP,og)=>{og.exports={change:rg()}});var Yg=Ie($t=>{"use strict";var hv=/[|\\{}()[\]^$+*?.]/g,bv=Object.prototype.hasOwnProperty,$l=o(function(e,t){return bv.apply(e,[t])},"hasOwn");$t.escapeRegExpChars=function(e){return e?String(e).replace(hv,"\\$&"):""};var Tv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},vv=/[&<>'"]/g;function Cv(e){return Tv[e]||e}o(Cv,"encode_char");var Sv=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,17 +37,17 @@ Actual: `+h.attribValue);else{var se=h.tag,ke=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
- `;Dt.escapeXML=function(e){return e==null?"":String(e).replace(bv,Tv)};function qg(){return Function.prototype.toString.call(this)+`;
41
- `+vv}o(qg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Dt.escapeXML,"toString",{value:qg}):Dt.escapeXML.toString=qg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Dt.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)$l(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Dt.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(!$l(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Dt.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")};Dt.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Dt.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Dt.hasOwnOnlyObject=function(e){var t=Dt.createNullProtoObjWherePossible();for(var n in e)$l(e,n)&&(t[n]=e[n]);return t}});var zg=Ie((kA,Cv)=>{Cv.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 am=Ie(Ce=>{"use strict";var wl=require("fs"),wr=require("path"),Ke=Xg(),Yg=!1,Sv=zg().version,xv="<",Ev=">",Pv="%",rm="locals",Av="ejs",Iv="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",om=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Ov=om.concat("cache"),Zg=/^\uFEFF/,Rl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ce.cache=Ke.cache;Ce.fileLoader=wl.readFileSync;Ce.localsName=rm;Ce.promiseImpl=new Function("return this;")().Promise;Ce.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 em(e,t){var n;if(t.some(function(i){return n=Ce.resolveInclude(e,i,!0),wl.existsSync(n)}))return n}o(em,"resolvePaths");function Fv(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=em(e,t.root):n=Ce.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Ce.resolveInclude(e,t.filename),wl.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=em(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(Fv,"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=Ce.cache.get(i),n)return n;r||(t=tm(i).toString().replace(Zg,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=tm(i).toString().replace(Zg,"")}return n=Ce.compile(t,e),e.cache&&Ce.cache.set(i,n),n}o(_r,"handleCache");function Nv(e,t,n){var i;if(n){try{i=_r(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Ce.promiseImpl=="function")return new Ce.promiseImpl(function(r,a){try{i=_r(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(Nv,"tryHandleCache");function tm(e){return Ce.fileLoader(e)}o(tm,"fileLoader");function Lv(e,t){var n=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),t);if(n.filename=Fv(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(Lv,"includeFile");function nm(e,t,n,i,r){var a=t.split(`
40
+ `;$t.escapeXML=function(e){return e==null?"":String(e).replace(vv,Cv)};function zg(){return Function.prototype.toString.call(this)+`;
41
+ `+Sv}o(zg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty($t.escapeXML,"toString",{value:zg}):$t.escapeXML.toString=zg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}$t.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)$l(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};$t.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(!$l(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};$t.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")};$t.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};$t.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();$t.hasOwnOnlyObject=function(e){var t=$t.createNullProtoObjWherePossible();for(var n in e)$l(e,n)&&(t[n]=e[n]);return t}});var Zg=Ie((kA,xv)=>{xv.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 lm=Ie(Ce=>{"use strict";var Rl=require("fs"),Rr=require("path"),Ke=Yg(),em=!1,Ev=Zg().version,Pv="<",Av=">",Iv="%",am="locals",Ov="ejs",Fv="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",sm=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Nv=sm.concat("cache"),tm=/^\uFEFF/,wl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ce.cache=Ke.cache;Ce.fileLoader=Rl.readFileSync;Ce.localsName=am;Ce.promiseImpl=new Function("return this;")().Promise;Ce.resolveInclude=function(e,t,n){var i=Rr.dirname,r=Rr.extname,a=Rr.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function nm(e,t){var n;if(t.some(function(i){return n=Ce.resolveInclude(e,i,!0),Rl.existsSync(n)}))return n}o(nm,"resolvePaths");function Lv(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=nm(e,t.root):n=Ce.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Ce.resolveInclude(e,t.filename),Rl.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=nm(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(Lv,"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=Ce.cache.get(i),n)return n;r||(t=im(i).toString().replace(tm,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=im(i).toString().replace(tm,"")}return n=Ce.compile(t,e),e.cache&&Ce.cache.set(i,n),n}o(_r,"handleCache");function Vv(e,t,n){var i;if(n){try{i=_r(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Ce.promiseImpl=="function")return new Ce.promiseImpl(function(r,a){try{i=_r(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(Vv,"tryHandleCache");function im(e){return Ce.fileLoader(e)}o(im,"fileLoader");function jv(e,t){var n=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),t);if(n.filename=Lv(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(jv,"includeFile");function rm(e,t,n,i,r){var a=t.split(`
42
42
  `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),c=r(n),u=a.slice(s,l).map(function(f,p){var g=p+s+1;return(g==i?" >> ":" ")+g+"| "+f}).join(`
43
43
  `);throw e.path=c,e.message=(c||"ejs")+":"+i+`
44
44
  `+u+`
45
45
 
46
- `+e.message,e}o(nm,"rethrow");function im(e){return e.replace(/;(\s*$)/,"$1")}o(im,"stripSemi");Ce.compile=o(function(t,n){var i;return n&&n.scope&&(Yg||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Yg=!0),n.context||(n.context=n.scope),delete n.scope),i=new Ye(t,n),i.compile()},"compile");Ce.render=function(e,t,n){var i=t||Ke.createNullProtoObjWherePossible(),r=n||Ke.createNullProtoObjWherePossible();return arguments.length==2&&Ke.shallowCopyFromList(r,i,om),_r(r,e)(i)};Ce.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?Ke.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&&Ke.shallowCopy(i,a)),Ke.shallowCopyFromList(i,r,Ov)),i.filename=t):r=Ke.createNullProtoObjWherePossible(),Nv(i,r,n)};Ce.Template=Ye;Ce.clearCache=function(){Ce.cache.reset()};function Ye(e,t){var n=Ke.hasOwnOnlyObject(t),i=Ke.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||Ke.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Ce.openDelimiter||xv,i.closeDelimiter=n.closeDelimiter||Ce.closeDelimiter||Ev,i.delimiter=n.delimiter||Ce.delimiter||Pv,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||Ce.localsName||rm,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(Ye,"Template");Ye.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Ye.prototype={createRegex:o(function(){var e=Iv,t=Ke.escapeRegExpChars(this.opts.delimiter),n=Ke.escapeRegExpChars(this.opts.openDelimiter),i=Ke.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 = "";
46
+ `+e.message,e}o(rm,"rethrow");function om(e){return e.replace(/;(\s*$)/,"$1")}o(om,"stripSemi");Ce.compile=o(function(t,n){var i;return n&&n.scope&&(em||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),em=!0),n.context||(n.context=n.scope),delete n.scope),i=new Ye(t,n),i.compile()},"compile");Ce.render=function(e,t,n){var i=t||Ke.createNullProtoObjWherePossible(),r=n||Ke.createNullProtoObjWherePossible();return arguments.length==2&&Ke.shallowCopyFromList(r,i,sm),_r(r,e)(i)};Ce.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?Ke.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&&Ke.shallowCopy(i,a)),Ke.shallowCopyFromList(i,r,Nv)),i.filename=t):r=Ke.createNullProtoObjWherePossible(),Vv(i,r,n)};Ce.Template=Ye;Ce.clearCache=function(){Ce.cache.reset()};function Ye(e,t){var n=Ke.hasOwnOnlyObject(t),i=Ke.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||Ke.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Ce.openDelimiter||Pv,i.closeDelimiter=n.closeDelimiter||Ce.closeDelimiter||Av,i.delimiter=n.delimiter||Ce.delimiter||Iv,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||Ce.localsName||am,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(Ye,"Template");Ye.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Ye.prototype={createRegex:o(function(){var e=Fv,t=Ke.escapeRegExpChars(this.opts.delimiter),n=Ke.escapeRegExpChars(this.opts.openDelimiter),i=Ke.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
- `,n.outputFunctionName){if(!Rl.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
- `}if(n.localsName&&!Rl.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
50
- `,u=0;u<n.destructuredLocals.length;u++){var f=n.destructuredLocals[u];if(!Rl.test(f))throw new Error("destructuredLocals["+u+"] is not a valid JS identifier.");u>0&&(c+=`,
48
+ `,n.outputFunctionName){if(!wl.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
+ `}if(n.localsName&&!wl.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
50
+ `,u=0;u<n.destructuredLocals.length;u++){var f=n.destructuredLocals[u];if(!wl.test(f))throw new Error("destructuredLocals["+u+"] is not a valid JS identifier.");u>0&&(c+=`,
51
51
  `),c+=f+" = __locals."+f}i+=c+`;
52
52
  `}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
53
53
  `,r+=` }
@@ -60,7 +60,7 @@ try {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
62
  `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+nm.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+rm.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+`
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,E.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,E.message+="https://github.com/RyanZim/EJS-Lint",n.async||(E.message+=`
71
- `,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var p=n.client?t:o(function(I){var L=o(function(G,oe){var Y=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),I);return oe&&(Y=Ke.shallowCopy(Y,oe)),Lv(G,n)(Y)},"include");return t.apply(n.context,[I||Ke.createNullProtoObjWherePossible(),a,L,nm])},"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,`
71
+ `,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var p=n.client?t:o(function(I){var L=o(function(G,oe){var Y=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),I);return oe&&(Y=Ke.shallowCopy(Y,oe)),jv(G,n)(Y)},"include");return t.apply(n.context,[I||Ke.createNullProtoObjWherePossible(),a,L,rm])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var g=n.filename,b=Rr.basename(g,Rr.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
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
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=Ye.modes.EVAL;break;case i+n+"=":this.mode=Ye.modes.ESCAPED;break;case i+n+"-":this.mode=Ye.modes.RAW;break;case i+n+"#":this.mode=Ye.modes.COMMENT;break;case i+n+n:this.mode=Ye.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -76,16 +76,16 @@ try {
76
76
  `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Ye.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 Ye.modes.EVAL:case Ye.modes.ESCAPED:case Ye.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case Ye.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case Ye.modes.ESCAPED:this.source+=" ; __append(escapeFn("+im(e)+`))
80
- `;break;case Ye.modes.RAW:this.source+=" ; __append("+im(e)+`)
79
+ `;break;case Ye.modes.ESCAPED:this.source+=" ; __append(escapeFn("+om(e)+`))
80
+ `;break;case Ye.modes.RAW:this.source+=" ; __append("+om(e)+`)
81
81
  `;break;case Ye.modes.COMMENT:break;case Ye.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Ce.escapeXML=Ke.escapeXML;Ce.__express=Ce.renderFile;Ce.VERSION=Sv;Ce.name=Av;typeof window<"u"&&(window.ejs=Ce)});var Yt={};Po(Yt,{deleteConfigEntityByPath:()=>Gx,exportConfig:()=>Bx,exportConfigEntityByPath:()=>Hx,generateSchema:()=>Ux,getApiVersion:()=>Qx,getChanges:()=>ry,getGenericSchema:()=>ms,getPathToGenericSchema:()=>_m,getProject:()=>eE,importConfig:()=>Wx,importProject:()=>Kx,importProjectSchema:()=>Jx,isDirectory:()=>Xx,log:()=>q,readDirectory:()=>Cu});module.exports=by(Yt);var Se=U(K());var N=U(K());var ne=o(e=>typeof e=="string","isString"),ar=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),lp=o(e=>e==null?"":""+e,"makeString"),Sh=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),xh=/###/g,cp=o(e=>e&&e.indexOf("###")>-1?e.replace(xh,"."):e,"cleanKey"),up=o(e=>!e||ne(e),"canNotTraverseDeeper"),sr=o((e,t,n)=>{let i=ne(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(up(e))return{};let a=cp(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return up(e)?{}:{obj:e,k:cp(i[r])}},"getLastOfPath"),fp=o((e,t,n)=>{let{obj:i,k:r}=sr(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=sr(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=sr(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),Eh=o((e,t,n,i)=>{let{obj:r,k:a}=sr(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Io=o((e,t)=>{let{obj:n,k:i}=sr(e,t);if(n)return n[i]},"getPath"),Ph=o((e,t,n)=>{let i=Io(e,n);return i!==void 0?i:Io(t,n)},"getPathWithDefaults"),hp=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ne(e[i])||e[i]instanceof String||ne(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):hp(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Pi=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),Ah={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Ih=o(e=>ne(e)?e.replace(/[&<>"'\/]/g,t=>Ah[t]):e,"escape"),Ns=class Ns{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(Ns,"RegExpCache");var xs=Ns,Oh=[" ",",","?","!",";"],Fh=new xs(20),Nh=o((e,t,n)=>{t=t||"",n=n||"";let i=Oh.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=Fh.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Es=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),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},"deepFind"),Oo=o(e=>e&&e.replace("_","-"),"getCleanedCode"),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)}},lr=class lr{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:(ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new lr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new lr(this.logger,t)}};o(lr,"Logger");var Ps=lr,Qt=new Ps,Ls=class Ls{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 u=0;u<c;u++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l.apply(l,[t,...i])})}};o(Ls,"EventEmitter");var Ii=Ls,Vs=class Vs extends Ii{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):ne(i)&&a?l.push(...i.split(a)):l.push(i)));let c=Io(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ne(i)?c:Es(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),fp(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)(ne(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){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=Io(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?hp(c,i,a):c={...c,...i},fp(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(Vs,"ResourceStore");var Fo=Vs,bp={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}},pp={},jo=class jo extends Ii{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=Qt.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&&!Nh(t,i,r);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ne(a)?[a]:a};let u=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(r)}return{key:t,namespaces:ne(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let 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],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||s,E=p&&p.exactUsedKey||s,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],G=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,oe=!this.i18nFormat||this.i18nFormat.handleAsObject,Y=!ne(g)&&typeof g!="boolean"&&typeof g!="number";if(oe&&g&&Y&&L.indexOf(I)<0&&!(ne(G)&&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 re=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=re,p.usedParams=this.getUsedParamsDetails(n),p):re}if(a){let re=Array.isArray(g),J=re?[]:{},le=re?E:b;for(let Ee in g)if(Object.prototype.hasOwnProperty.call(g,Ee)){let C=`${le}${a}${Ee}`;J[Ee]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Ee]===C&&(J[Ee]=g[Ee])}g=J}}else if(oe&&ne(G)&&Array.isArray(g))g=g.join(G),g&&(g=this.extendTranslation(g,t,n,i));else{let re=!1,J=!1,le=n.count!==void 0&&!ne(n.count),Ee=jo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(u,n.count,n):"",an=n.ordinal&&le?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",Wt=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ae=Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${an}`]||n.defaultValue;!this.isValidLookup(g)&&Ee&&(re=!0,g=Ae),this.isValidLookup(g)||(J=!0,g=s);let Ci=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,mt=Ee&&Ae!==g&&this.options.updateMissing;if(J||re||mt){if(this.logger.log(mt?"updateKey":"missingKey",u,c,s,mt?Ae:g),a){let Je=this.resolve(s,{...n,keySeparator:!1});Je&&Je.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 Nt=[],ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let Je=0;Je<ye.length;Je++)Nt.push(ye[Je]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let qn=o((Je,yt,it)=>{let sn=Ee&&it!==g?it:Ci;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,c,yt,sn,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,c,yt,sn,mt,n),this.emit("missingKey",Je,c,yt,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?Nt.forEach(Je=>{let yt=this.pluralResolver.getSuffixes(Je,n);Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&yt.indexOf(`${this.options.pluralSeparator}zero`)<0&&yt.push(`${this.options.pluralSeparator}zero`),yt.forEach(it=>{qn([Je],s+it,n[`defaultValue${it}`]||Ae)})}):qn(Nt,s,Ae))}g=this.extendTranslation(g,t,n,p,i),J&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${s}`),(J||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,re?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 u=ne(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(u){let g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=i.replace&&!ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language||r.usedLng,i),u){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),E=0;E<g;E++)b[E]=arguments[E];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=ne(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=bp.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 ne(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(c,n),f=u.key;r=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&!ne(n.count),b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(ne(n.context)||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,!pp[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(pp[`${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(G=>{if(this.isValidLookup(i))return;s=G;let oe=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(oe,f,G,L,n);else{let re;g&&(re=this.pluralResolver.getSuffix(G,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(oe.push(f+re),n.ordinal&&re.indexOf(le)===0&&oe.push(f+re.replace(le,this.options.pluralSeparator)),b&&oe.push(f+J)),E){let Ee=`${f}${this.options.contextSeparator}${n.context}`;oe.push(Ee),g&&(oe.push(Ee+re),n.ordinal&&re.indexOf(le)===0&&oe.push(Ee+re.replace(le,this.options.pluralSeparator)),b&&oe.push(Ee+J))}}let Y;for(;Y=oe.pop();)this.isValidLookup(i)||(a=Y,i=this.getResource(G,L,Y,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&&!ne(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(jo,"Translator");var No=jo,Cs=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),js=class js{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(t){if(t=Oo(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=Oo(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ne(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}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]=Cs(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]=Cs(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Cs(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)),ne(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ne(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(js,"LanguageUtil");var Lo=js,Vh=[{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}],jh={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},Dh=["v1","v2","v3"],$h=["v4"],dp={zero:0,one:1,two:2,few:3,many:4,other:5},Rh=o(()=>{let e={};return Vh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:jh[t.fc]}})}),e},"createRules"),Ds=class Ds{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Qt.create("pluralResolver"),(!this.options.compatibilityJSON||$h.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=Rh(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=Oo(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(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)=>dp[r]-dp[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!Dh.includes(this.options.compatibilityJSON)}};o(Ds,"PluralResolver");var As=Ds,gp=o(function(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&&ne(n)&&(a=Es(e,n,i),a===void 0&&(a=Es(t,n,i))),a},"deepFindWithDefaults"),Ss=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$s=class $s{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.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:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:E,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:G,alwaysFormat:oe}=t.interpolation;this.escape=n!==void 0?n:Ih,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Pi(a):s||"{{",this.suffix=l?Pi(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=g?Pi(g):b||Pi("$t("),this.nestingSuffix=E?Pi(E):I||Pi(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=G||1e3,this.alwaysFormat=oe!==void 0?oe:!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||{},u=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=gp(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let E=b.split(this.formatSeparator),I=E.shift().trim(),L=E.join(this.formatSeparator).trim();return this.format(gp(n,c,I,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...r,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ss(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ss(this.escape(b)):Ss(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let E=a[1].trim();if(s=u(E),s===void 0)if(typeof f=="function"){let L=f(t,a,r);s=ne(L)?L:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(p){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!ne(s)&&!this.useRawValueToEscape&&(s=lp(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),p?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((c,u)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let p=c.split(new RegExp(`${f}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,s);let b=g.match(/'/g),E=g.match(/"/g);(b&&b.length%2===0&&!E||E.length%2!==0)&&(g=g.replace(/'/g,'"'));try{s=JSON.parse(g),u&&(s={...u,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${f}${g}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ne(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let f=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=f.shift(),c=f,u=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!ne(a))return a;ne(a)||(a=lp(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((f,p)=>this.format(f,p,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($s,"Interpolator");var Is=$s,wh=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Ai=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Oo(i),r),t[s]=l),l(n)}},"createCachedFormatter"),Rs=class Rs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("formatter"),this.options=t,this.formats={number:Ai((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Ai((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Ai((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Ai((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Ai((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ai(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:u,formatOptions:f}=wh(c);if(this.formats[u]){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[u](l,b,{...f,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}};o(Rs,"Formatter");var Os=Rs,_h=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),ws=class ws extends Ii{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=Qt.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(u=>{let f=!0;n.forEach(p=>{let g=`${u}|${p}`;!i.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?s[g]===void 0&&(s[g]=!0):(this.state[g]=1,f=!1,s[g]===void 0&&(s[g]=!0),a[g]===void 0&&(a[g]=!0),c[p]===void 0&&(c[p]=!0)))}),f||(l[u]=!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),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(c=>{Eh(c.loaded,[a],s),_h(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});let f=c.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][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((u,f)=>{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(u&&f&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(u,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let u=c(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}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();ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ne(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,i,r,c):f=u(t,n,i,r),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(ws,"Connector");var Fs=ws,mp=o(()=>({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(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ne(e[1])&&(t.defaultValue=e[1]),ne(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),yp=o(e=>(ne(e.ns)&&(e.ns=[e.ns]),ne(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ne(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ao=o(()=>{},"noop"),Mh=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),cr=class cr extends Ii{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yp(t),this.services={},this.logger=Qt,this.modules={external:[]},Mh(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&&(ne(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=mp();this.options={...r,...this.options,...yp(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);let a=o(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Qt.init(a(this.modules.logger),this.options):Qt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Os);let p=new Lo(this.options);this.store=new Fo(this.options.resources,this.options);let g=this.services;g.logger=Qt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new As(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(f),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Is(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Fs(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;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 No(this.services,this.options),this.translator.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;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=Ao),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=ar(),u=o(()=>{let f=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 f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,r=ne(t)?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(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})},"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=ar();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ao),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"&&bp.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=ar();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,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=ne(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{s(f,u)})},"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 u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(E=>`${c.keyPrefix}${g}${E}`):b=c.keyPrefix?`${c.keyPrefix}${g}${s}`:s,r.t(b,c)},"fixedT");return ne(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],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 u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===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=ar();return this.options.ns?(ne(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=ar();ne(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){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 Lo(mp());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 cr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new cr(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 Fo(this.store.data,r),a.services.resourceStore=a.store),a.translator=new No(a.services,r),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),f=1;f<c;f++)u[f-1]=arguments[f];a.emit(l,...u)}),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(cr,"I18n");var Vo=cr,R=Vo.createInstance();R.createInstance=Vo.createInstance;var cE=R.createInstance,uE=R.dir,fE=R.init,pE=R.loadResources,dE=R.reloadResources,gE=R.use,mE=R.changeLanguage,yE=R.getFixedT,hE=R.t,bE=R.exists,TE=R.setDefaultNamespace,vE=R.hasLoadedNamespace,CE=R.loadNamespaces,SE=R.loadLanguages;var Dd=U(_s()),$d=U(Wp()),Zo=U(Ld()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),mr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var il=U(K());var q=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(`${il.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${il.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",rl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Mt=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function yr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Zo.parse)(r.fileContent,r.dataSourceUri))}catch(a){return q(t,{severity:N.LogSeverity.Error,message:R.t("ANNOERR"),location:{path:R.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,$d.convert)((0,Zo.merge)(...n))),i}o(yr,"parseAndMergeAndConvert");var Vi=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function ol(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(ol,"evaluateCommonLabel");function Rd(e,t){let n=e.value;return e.$target&&(n=ol(e.$target.annotations,t,n)),n}o(Rd,"getLabelForPropertyPath");function Yo(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=ol(i.annotations,t,n)),n}o(Yo,"getLabelForDataField");function bT(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 ol(a.annotations,t,s)}}}else return}o(bT,"getLabel");function Vd(e,t,n){let i=Yo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Vd,"getTitleForDataField");function hr(e,t){var s,l,c,u;let n="",i,r,a="";try{let f=bT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=Vd(e,t,f);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=Yo(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Yo(e,t),n=f||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:(u=r.Action)==null?void 0:u.path,f?n=typeof f=="string"?f:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Yo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Vd(r,t,f);break;default:break}return n}catch{return n}}o(hr,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}o(_e,"prepareRef");function dn(e){if(e){let t=`${N.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(dn,"getPageTypeV2");function TT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(TT,"getTargetAnnotationName");function zt(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(zt,"findAlias");function vT(e,t,n){var s,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=zt(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(vT,"determineTargetAnnotation");function CT(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?"":"@"}${N.UIVOCABULARY}`);return e}o(CT,"adjustKey");function ST(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var p,g;let s=!1,l,c=i.split("/"),u=c.length>1;u&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=CT(t,c,a);let f=vT(c,n,e);if(f){let b=r===N.FioriElementsVersion.v2?"::":"#";t=TT(f,a).replace("#",b),l=(g=f.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let b=r===N.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(ST,"getKeyAndEntityTypeOfReferenceFacet");function wd(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var f,p,g;let s=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Vi(e.Target);if(!b){q(i,{severity:N.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:I,stopProcessing:L,namespace:G}=ST(n,l,u,b,r,a);if(L)return;l=E,u=I,c=G}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:u,namespace:c}}o(wd,"getSectionFacet");function al(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${N.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=Vi(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=Vi(e.Value),n=Vi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(al,"getSchemaKeyOfLineItemRecord");function xT(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(xT,"getUIAnnotationTerm");function ET(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?mr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?mr.CommunicationAnnotationTerms.Address:void 0}o(ET,"getCommunicationAnnotationTerm");function PT(e,t,n){return xT(e,t,n)||ET(e,t)}o(PT,"getAnnotationTerm");function AT(e,t,n,i,r){var u,f,p,g,b,E,I,L,G;let a=zt(N.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(PT(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:N.FacetBase.Chart},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.Identification:{n[s]={base:N.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let oe=s.split("::");oe[oe.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=oe.join("::")}n[s]={base:N.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:N.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:N.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:N.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 mr.CommunicationAnnotationTerms.Contact:{n[s]={base:N.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 mr.CommunicationAnnotationTerms.Address:{n[s]={base:N.FacetBase.Address},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}default:n[s]={base:N.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",N.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(AT,"evaluateTargetAnnotation");function sl(e,t,n,i,r,a=N.FioriElementsVersion.v2,s){var c;let l=wd(e,i,t,s,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{AT(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:N.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{sl(p,t,n,i,f.facets,a,s)});break}}}o(sl,"addFacetToConfig");function _d(e,t,n=N.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let a=zt(N.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 u=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,u);s.forEach(p=>{sl(p,t,f,e,r,n,i)})}return r}o(_d,"getObjectPageHeaderFacets");function Md(e,t,n=N.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=zt(N.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("."),u=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{sl(f,t,u,e,r,n,i)})}return r}o(Md,"getObjectPageFacets");function ll(e){return e[N.ManifestSection.generic]||e[N.ManifestSection.ovp]?N.FioriElementsVersion.v2:N.FioriElementsVersion.v4}o(ll,"getFEVersionFromManifest");function IT(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[N.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[N.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[N.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[N.ManifestSection.ui5].models[t].dataSource:void 0}o(IT,"getMainService");function kd(e){var i,r;let t=IT(e);if(!t)return N.OdataVersion.v2;let n=(i=e[N.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?N.OdataVersion.v4:N.OdataVersion.v2}o(kd,"getODataVersionFromManifest");function OT(e,t){var i,r;let n;if(e[N.ManifestSection.generic]){let a=e[N.ManifestSection.generic].pages;if(!a){q(t,{severity:N.LogSeverity.Error,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(dn((i=l.component)==null?void 0:i.name)===N.PageTypeV2.AnalyticalListPage){n=N.TemplateType.AnalyticalListPageV2;break}else if(dn((r=l.component)==null?void 0:r.name)===N.PageTypeV2.ListReport){n=N.TemplateType.ListReportObjectPageV2;break}}}else n||q(t,{severity:N.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:N.ManifestSection.generic}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return n}o(OT,"determineV2Template");function cl(e,t,n){let i;return e[N.ManifestSection.ovp]?i=N.TemplateType.OverviewPageV2:t===N.FioriElementsVersion.v2&&(i=OT(e,n)),i}o(cl,"getTemplateTypeFromManifest");function br(e,t,n){e!=null&&e.ID?(t.title=N.FACETTITLEPREFIX+e.ID,t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:n.replace(N.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(br,"addSectionTitleAndDescription");function FT(e,t,n){var i,r;br(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(FT,"addTargetTitleAndSectionDescription");function Yn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[N.SchemaTag.isViewNode]=!0,i[N.SchemaTag.annotationPath]=t.annotationPath,FT(t,i,n),i}o(Yn,"createDefaultSection");function Ud(e,t,n,i=N.FioriElementsVersion.v2,r=!1){var l,c;let a=zt(N.UIVOCABULARY,t),s=[];if(e){let u=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return u&&(s=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let g=wd(p,e,t,n,i,!0);return g&&f.push(g),f},s)),s}}o(Ud,"getObjectPageFacetSection");var Tr=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let u=a&&a===c?r:c.replace("??","/");if(!(!s[u]&&(a===c&&(u=a),!s[u]))){if(Object.keys(s[u]).length===0||i&&i[i.length-1]===u&&n){Array.isArray(s)?s.splice(Number(u),1):delete s[u],l.pop(),Tr(e,l.join("/"),n,i,r,a);return}s=s&&s[u]}})},"deleteEmptyStructure"),jd=o(e=>`${e}`,"getGenericSchemaFileName"),Ze=o((e,t)=>{let n={filename:"",path:""};switch(e){case N.SchemaType.Application:{n.filename="App",n.path=`./${N.DirName.Schemas}/${n.filename}`;break}case N.SchemaType.ListReport:case N.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:jd(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}default:{n.filename=jd(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ea(e,t,n,i){if(e===N.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(ea,"generatePageId");function NT(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(NT,"fillArrayFromAnyOfReference");function LT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{NT(r,n,t,i)}),i.length===0))return;return i}o(LT,"fillArrayFromPropertyDefinition");function VT(e,t,n,i,r,a,s,l){var u,f,p,g;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(u=c==null?void 0:c.targetDefinition)!=null&&u.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=An(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 E=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=a.createInstance(s,E,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(VT,"determineNextDefinitionFromDefinitionArray");function An(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=An(e,t,n,i.items,r,a,s),l;let c=LT(i,n,e);if(c)return l=VT(c,e,t,n,r,a,s,i),l}o(An,"getNextTargetDefinition");var ul=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,Dd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Tt(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Tt,"convertActionKeyToStableId");function ji(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ji,"updatePropertyIndices");function Bd(e){return e=e.replace(N.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(Bd,"removeNamespaces");function ta(e){return e=e.replace(N.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ta,"replaceNamespaces");function Hd(e){return e instanceof Error?e.message:String(e)}o(Hd,"getErrorMessage");var Kn=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=U(K());var vt=U(K());var Fe=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),na=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=o((e,t)=>{let n,i=vt.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 jT(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(jT,"escapeId");var Gd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Gd||{});function DT(e,t,n){let i;return e=e.map(function(r){if(r===vt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===vt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(DT,"mapBreadcrumbs");var fl=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=DT(t,s,r)),s[0]===vt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH):t[0]===vt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),u,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),u=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),u=`${e}${t.join("::")}-${c}`),jT(u)},"buildColumnControlId"),Ct=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 $T(e){let t=vt.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o($T,"determinePattern");var Wd=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,u=$T(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Di=o((e,t,n)=>{Wd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=o((e,t,n)=>{let i=Object.values(Gd);Wd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Kd(){}o(Kd,"doNotDelete");var hP=U(Qd());var qd=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(qd,e),"syncRule");function At(e,t){let n;return e&&(n=Reflect.getMetadata(qd,e,t)),n}o(At,"getReflectMetadata");var In=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Xd=Symbol("childId"),Xe=o(e=>Reflect.metadata(Xd,e),"childId"),zd=o((e,t)=>Reflect.getMetadata(Xd,e,t),"getChildId"),Yd=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),RT=Symbol("descriptionSrcURL"),gn=o(e=>Reflect.metadata(RT,e),"descriptionSrcURL");var wT=Symbol("validityMetadataKey"),F=o(e=>Reflect.metadata(wT,e),"validity");function $i(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($i,"getTextForDeprecated");var ag=U(rg()),sg=U(K());var lg=ag.default.change,og={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function cg(e,t){let n="";try{for(let i in og)e[i]===void 0&&(e[i]=og[i]);n=lg.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(cg,"createChangeString");function kt(e){try{return lg.parse(e)}catch{return!1}}o(kt,"parseChangeString");function ug(e,t,n,i,r){let a=n.layer?n.layer===sg.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(ug,"fillFlexChangeContent");function $(e,t){return cg(e,t)}o($,"exportToFlexChange");var Zn=U(K());function ia(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(ia,"importProperty");function fg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(q(i,{severity:Zn.LogSeverity.Warning,message:$i(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(fg,"checkDeprecatedProperties");function pl(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return pl(n,t)}else return e.title?e.title.startsWith(Zn.FACETTITLEPREFIX)?e.title.split(Zn.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(pl,"getSectionTitle");function ra(e){let t=e.split(`${Zn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(ra,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var mn=require("@sap-ux/vocabularies-types/vocabularies/UI");function dg(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(dg,"replaceSpecialChars");var ei=o(function(e){return dg(Bd(e))},"prepareId");function GT(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(GT,"evaluateConcat");function ti(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return GT(e);if(e&&typeof e=="string")return dg(e.replace(/ /g,"_"))}o(ti,"getStableIdPartFromValue");var pg=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"),gg=o(function(e){let t="";if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ei(t);if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=pg(e),t;if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ei(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ti(e.Value)+"::"),t+=e.Action,ei(t);if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataField)return t="DataField::",t+=ti(e.Value),ei(t);if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ti(e.Value)+"::",t+=pg(e),ei(t);if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ti(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ei(t);if(e.$Type&&e.$Type===mn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ti(e.Value),ei(t)},"getStableIdPartFromDataField");var O=U(K());var z=U(K());var St=require("@sap-ux/vocabularies-types/vocabularies/UI"),Tg=require("path"),vg=U(dr());var Ri="ResponsiveTable<LineItems>",vr="TreeTable<LineItems>",Cr="AnalyticalTable<LineItems>",Sr="GridTable<LineItems>",mg=[vr,Cr,Sr],yg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],hg="template::",oa="template:::ObjectPageAction:::";function WT(e,t,n){e.definitions[z.DefinitionName.LineItems]&&(e.definitions[z.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][z.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[z.SchemaTag.artifactType]=z.ArtifactType.Manifest)}o(WT,"addCustomColumnDefinition");function KT(e,t){let n;return e==="TableColumnActionIntentBased"?n=al(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===St.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(KT,"getActionId");function dl(e,t,n,i,r){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",l=KT(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}>`,u=hr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][z.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=xr(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:u,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][z.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:f}],p&&(e.definitions[c][z.SchemaTag.target]=p),e.definitions[c][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(dl,"handleActionRecord");function JT(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===St.UIAnnotationTypes.DataFieldForAction||t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(JT,"getColumnActionType");function QT(e,t){let n=[];if(!(e.$Type!==St.UIAnnotationTypes.DataFieldForAction&&e.$Type!==St.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),JT(t,e,n),n}o(QT,"getActionType");function Cg(e,t,n){let i=al(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:hr(e.lineItemRecord,e.entityType)},r.properties[i][z.SchemaTag.propertyIndex]=n,r.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,la(r.properties[i],e.lineItemRecord),Ag(e.lineItemRecord,r.properties,i)}}o(Cg,"generateGenericColumn");function qT(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{dl(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&dl(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{dl(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":Cg(i,t,r)}}o(qT,"handleAnyAction");function wi(e,t,n,i,r,a){r=r||z.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=Pg(e,t,n,i,r);if(n){let u=0;n.forEach(f=>{let p={lineItemPath:c,lineItemRecord:f,lineItemId:r,entityType:i},g=QT(f,r);g?g.forEach(b=>{qT(b,t,s,p,u,l,r)}):Cg(p,t,u),u++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(wi,"addLineItemsType");function XT(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(XT,"addListReportLeadingProperties");function zT(e,t,n,i){var s,l,c,u,f,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=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let g=[];for(let b in a){let E=(p=a[b])==null?void 0:p.key;E!==void 0&&!g.includes(E)&&g.push(E)}ni(g,r)}}o(zT,"addTabkeyEnum");function aa(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let u=c.dataSourceUri.split("webapp")[1];if(u&&u.indexOf(".fragment.xml")>0){let f=JSON.parse((0,vg.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){u=u.replace(new RegExp("\\"+Tg.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ni(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(aa,"addFragmentEnum");function _i(e,t,n,i,r,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,l){WT(e,a,s),XT(e,t,s),zT(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;aa(e,r,c,"fragmentName",s),aa(e,r,c,"fragmentName",z.DefinitionName.CustomColumn),aa(e,r,c,"cellsFragmentName",s),aa(e,r,c,"cellsFragmentName",z.DefinitionName.CustomColumn)}o(_i,"addTableColumnExtensions");function Sg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(Sg,"removeElementsFromEnum");function sa(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Mt(n==null?void 0:n.fullyQualifiedName,St.UIAnnotationTerms.SelectionFields);if(r&&(i[z.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${_e(s.value)}>`,u=gl(s);s.type==="PropertyPath"&&(l=Rd(s,n)),i.properties[s.value]={$ref:j+c},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][z.SchemaTag.dataType]=u,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}o(sa,"addSelectionFields");function xg(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}o(xg,"isDraftEnabled");function Mi(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,r=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,r=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[r];l[z.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([u,f])=>{let p=f.$ref.split(j)[1],g=`${a}<${p}>`;l.properties[u]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][z.SchemaTag.actionType]=z.ActionType.Standard})}o(Mi,"addStandardHeaderActions");function Eg(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][z.SchemaTag.actionType]=z.ActionType.Standard}}o(Eg,"addStandardFooterActionsOP");function YT(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithNavigationPath:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(YT,"copyFieldProperties");function ZT(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(ZT,"determineFieldDefinitionName");function ev(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(ev,"addKeysTagForDataField");function tv(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)ev(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:ta(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ve.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===Ve.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(tv,"addKeysTagToField");function Ig(e,t,n,i,r,a,s,l=!0){var p;let c=gg(n),u=s===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=ZT(s,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=_e(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[u]={$ref:`${j}${f}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=_e(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[u]={$ref:`${j}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:hr(n,a.entityType),additionalProperties:!1},tv(n,t,f),t.definitions[f][O.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][O.SchemaTag.annotationType]=n.$Type,t.definitions[f][O.SchemaTag.isViewNode]=!0,la(t.definitions[f],n),YT(s,t,n,f),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[O.DefinitionName.FormAction].properties)}}o(Ig,"addField");function nv(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(nv,"determineTargetIdOfForm");function iv(e,t,n,i,r,a=!0){var u;if(!e.target)return;let s=_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}${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,(u=e.entityType)!=null&&u.name&&(n.definitions[s][O.SchemaTag.annotationPath]=Mt(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 f in e.target){let p=e.target[f];p&&Ig(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];Ig(t,n,p,i,f,e,r)}}o(iv,"addFieldsToFormDefinition");function rv(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]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(rv,"addTagsToFormDefinition");function Og(e,t,n,i,r,a){if(!t.target)return;let s=nv(t),l=_e(`${e}${O.DefinitionName.Form}<${s}>`),c=_e(`${e}${O.DefinitionName.Fields}<${s}>`),u=_e(`${e}${O.DefinitionName.Actions}<${s}>`),f=!(t.base===O.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${u}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},rv(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,iv(t,e,i,s,r,f),s}o(Og,"handleForm");function ov(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(ov,"replaceAlias");function ml(e,t){let n=ov(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(ml,"getActionNameAndId");function Fg(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:Fg(a.pages,t)}}o(Fg,"isFirstObjectPage");function Ng(e,t,n,i){var c,u,f;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=zt(O.UIVOCABULARY,t.serviceAVT),s=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=s==null?void 0:s.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:E,actionId:I}=ml(g,t.serviceAVT),L=g.Label||E,G=_e(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[G]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[G]={type:"object",properties:{},description:L},e.definitions[G][O.SchemaTag.isViewNode]=!0,e.definitions[G][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${G}`}}})}else s&&(r[O.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&Fg(i,t)&&!xg(s)&&Eg(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}o(Ng,"addFooterActions");function Lg(e,t,n,i,r=!1){var f,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=zt(O.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[O.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),r&&Mi(e,!0,s),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}o(Lg,"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}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}o(Vg,"addCommonHeaderSchema");function jg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(jg,"determineEntitySetOfFacet");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=U(K());function ni(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ni,"addEnumToSchema");function Dg(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)}}ni(r,n)}o(Dg,"addEnumForValidAnnotations");function ca(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Dg(e,r,i)}o(ca,"addEnumForSingleTabVariant");function $g(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Dg(n.entityType,r,i)}o($g,"addEnumForMultiTabVariant");function Rg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ni(r,i)}o(Rg,"addEnumForVariantEntitySet");function wg(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(wg,"addDefinitionForRelatedFacetKeys");function av(e){return e.replace("#","::")}o(av,"getFacetKeyInSchema");function _g(e,t){return`${e}<${av(t)}>`}o(_g,"getFacetDefinitionKey");function sv(e,t,n,i=!0,r){let a=t;if(i&&(a=_g(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(sv,"parseSchemaDefinition");function Pg(e,t,n,i,r){let a;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,l=`${s}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let c=`Actions<${_e(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let u=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,f;try{f=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[u])),f.properties={},f.additionalProperties=!1}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let p,g;if(r===Te.DefinitionName.LineItems&&t.properties.footer){g=`${Te.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.GenericFooter}))}let b=`${Te.DefinitionName.FooterActions}<${_e(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(a=Mt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[r][Te.SchemaTag.annotationPath]=t.definitions[l][Te.SchemaTag.annotationPath]=a,p&&(t.definitions[g][Te.SchemaTag.annotationPath]=a))),{actions:f,footerActions:p,lineItemPath:a}}o(Pg,"addCommonLineItemDefinitions");function Mg(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(Mg,"getDataTypeFromAnnotation");function ua(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=Mg(e.$Type)),t}o(ua,"determineDataTypeOfTarget");function gl(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=ua((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=Mg(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(gl,"determineDataType");function la(e,t){let n=gl(t);n&&(e[Te.SchemaTag.dataType]=n)}o(la,"addDataTypeToDefinition");function lv(e,t){return`${j}${_g(e,t)}`}o(lv,"getFacetDefinitionLink");function yl(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:lv(a?c:l,t)};let u=sv(a?c:l,t,i,!0,a?c:void 0);br(e,u,t),u[Te.SchemaTag.annotationPath]=e.annotationPath,u[Te.SchemaTag.isViewNode]=!0}o(yl,"handleAddressContact");function xr(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(xr,"getActionKey");function Ag(e,t,n){var i,r,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:ti(e.Value)}];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=xr(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],l&&(t[n][Te.SchemaTag.target]=l)}else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=xr(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:ta(s)}],t[n][Te.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===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ut.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=xr(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][Te.SchemaTag.target]=c)}}catch{return}}o(Ag,"addKeyToDefinition");var ki=U(K());var kg=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var Bg="1.71.132";var Hg={name:"@sap/ux-specification",version:Bg,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/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",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.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.132","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.9.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var On=class On{constructor(){On.distTagsOfSpec.length===0&&(On.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){On.distTagsOfSpec=[]}getSpecVersion(){return Bg}getDistTagsOfVersion(){let t=[],n=kg,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=R.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});q(n,{severity:ki.LogSeverity.Info,message:r,location:{path:ki.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(On.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=R.t("WRONGMINUI5VERSION",{minUI5Version:t});q(n,{severity:ki.LogSeverity.Warning,message:r,location:{path:ki.MANIFESTPATH}})}}};o(On,"DistTagEvaluator"),On.distTagsOfSpec=[];var Er=On;var ee=U(K());var Be=U(K());var It=U(K());var hl=class hl{constructor(t,n,i,r,a,s,l){this.unhandledControllers=[];let c=Ze(It.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===It.FioriElementsVersion.v2?It.OdataVersion.v2:It.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!==It.PageType.CustomPage){let l=Ze(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Ze(i.pageType);s.$schema=c.path}t[`${It.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[It.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(hl,"AppProvider");var Ui=hl;var ge=U(K());var Bi=U(K());var ze=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Gg=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 Wg=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 bl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(bl,"getNewPageTemplate");function fv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(fv,"findPageInManifest");function pv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=bl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:bl(e[t].pageType)}),!Array.isArray(n.pages))){let i=fv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=bl(e[t].pageType)),Tl(t,e,i)}}o(pv,"transformPageFromAssociation");function dv(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)===Bi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Bi.PageTypeV2.ListReport||n.pageType===Bi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(dv,"deletePage");function Tl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Bi.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)pv(t,r,n);Array.isArray(n.pages)||dv(n,t,i)}}o(Tl,"transformPageToNewManifestV2");var Pm=U(dr());var qc={};Po(qc,{ALPAnalyticalTable:()=>zl,ALPGridTable:()=>Xl,ALPResponsiveTable:()=>ql,Action:()=>tc,AnalyticalCard:()=>Vr,AnalyticalCardSettings:()=>Pl,AnalyticalListPageFilterBar:()=>Ll,AnalyticalTable:()=>Ql,BaseCustomSection:()=>no,ChartSettings:()=>Tc,ChartSettingsType:()=>Cl,CommonCardSettings:()=>jn,CommonHeaderFacetSettings:()=>ui,CommonTableSettings:()=>wn,CommonTableSettingsForSections:()=>yi,CreateWithFilters:()=>Gl,CustomCard:()=>xl,DefaultSpanObject:()=>Sl,FRAGMENT_DEFINITION:()=>rn,Field:()=>Fl,FieldForAction:()=>Dl,FooterAction:()=>ic,FormAction:()=>jl,GlobalTableSettings:()=>Jc,GridTable:()=>Yl,HeaderAction:()=>Sc,HeaderActionStandard:()=>lc,HeaderSections:()=>Ic,KPISettings:()=>vc,LinkListCardSettings:()=>Il,LinklistCard:()=>Dr,ListCard:()=>Lr,ListCardSettings:()=>El,ListReportFilterBar:()=>ya,ObjectPageAnalyticalTable:()=>Gc,ObjectPageCustomSectionFragment:()=>io,ObjectPageCustomSectionView:()=>ro,ObjectPageFooterAction:()=>Fc,ObjectPageFooterActionStandard:()=>uc,ObjectPageGridTable:()=>Wc,ObjectPageHeader:()=>Cc,ObjectPageHeaderActionStandard:()=>cc,ObjectPageHeaderSectionAddress:()=>Ac,ObjectPageHeaderSectionChart:()=>Ec,ObjectPageHeaderSectionDataPoint:()=>Pc,ObjectPageHeaderSectionForm:()=>xc,ObjectPageLayout:()=>Lc,ObjectPageResponsiveTable:()=>hi,ObjectPageSectionAddressV2:()=>Rc,ObjectPageSectionChartV2:()=>Dc,ObjectPageSectionContactV2:()=>wc,ObjectPageSectionFormV2:()=>jc,ObjectPageSectionTableV2:()=>$c,ObjectPageSectionV2:()=>Vc,ObjectPageSubSectionChartV2:()=>kc,ObjectPageSubSectionContactV2:()=>Uc,ObjectPageSubSectionFormV2:()=>Mc,ObjectPageSubSectionTableV2:()=>Bc,ObjectPageSubSectionV2:()=>_c,ObjectPageToolBarAction:()=>Qc,ObjectPageTreeTable:()=>Kc,QuickVariantSelection:()=>Wl,QuickVariantSelectionOP:()=>Hc,QuickVariantSelectionX:()=>Kl,ResponsiveTable:()=>ri,SAP_UI_TABLE:()=>ha,SaveAndEditOP:()=>sc,Share:()=>rc,ShareOP:()=>oc,StackCard:()=>jr,StackCardSettings:()=>Al,TableALP:()=>qi,TableCard:()=>$r,TableCardSettings:()=>Ol,TableColumn:()=>dc,TableColumnAction:()=>ja,TableColumnActionIntentBased:()=>gc,TableCustomColumn:()=>mc,ToolBar:()=>hc,ToolBarAction:()=>nc,TreeTable:()=>Jl,UpAndDownNavigationOP:()=>ac,buildIntentBasedActionId:()=>fc,deleteColumnFromFragment:()=>va,deleteType:()=>zi,exportCustomColumnsToFragment:()=>Hl,exportDefaultSpan:()=>Jg,exportType:()=>Xi,getChartSectionControlId:()=>vm,getContactSubSectionControlId:()=>Sm,getCustomColumnPath:()=>Ca,getFormSectionControlId:()=>Tm,getRootCustomColumnFromFragmentJSON:()=>Mr,getSectionControlId:()=>di,getSmartChartControlId:()=>Qr,getSmartTableControlId:()=>Rn,getSubSectionControlId:()=>Cm,getTableSectionControlId:()=>bm});var st=U(K());var de=o(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),da=o(e=>de(e)+"/tableSettings","getTableSettingPathV2");var We=o(()=>st.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[st.ManifestSection.ovp];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ii=o((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Kg=o(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Vt=o(e=>{let t=[];return t.push(Kg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Hi=o(e=>Vt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Zt=o((e,t,n)=>{let i=[];i.push(Kg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Nn=o((e,t,n)=>Zt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var vl=o(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),hn=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),`${vl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),pa=class pa{};o(pa,"ApplicationV2"),m([Xe("settings")],pa.prototype,"settings",2);var fa=pa,yn=class yn{};o(yn,"AppSettings"),m([y({manifest:{path:o(()=>"sap.app","path")}})],yn.prototype,"title",2),m([y({manifest:{path:o(()=>"sap.app","path")}})],yn.prototype,"description",2),m([y({manifest:{path:o(()=>"sap.fiori","path")}})],yn.prototype,"cloudDevAdaptationStatus",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.50.0"})],yn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.46.0"})],yn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:o(()=>"sap.ui5","path")}}),F({since:"1.56.0"}),gn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],yn.prototype,"flexEnabled",2);var Fn=yn;function Jg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(Jg,"exportDefaultSpan");var ga=class ga{};o(ga,"ChartSettingsType"),m([y({manifest:{path:o(()=>We()+"/chartSettings","path")}})],ga.prototype,"showDataLabel",2);var Cl=ga,Ln=class Ln{};o(Ln,"DefaultSpanObject"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"cols",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"rows",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"showOnlyHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumTitleRow",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumSubTitleRow",2);var Sl=Ln,Ne=class Ne{};o(Ne,"CommonCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:o(t=>H(t),"path"),export:Jg}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"customParams",2);var jn=Ne,Gi=class Gi{};o(Gi,"CustomCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"template",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"settings",2);var xl=Gi,Vn=class Vn extends jn{};o(Vn,"ListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"imageSupported",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listType",2);var El=Vn,Pr=class Pr{};o(Pr,"ListCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"template",2);var Lr=Pr,en=class en extends jn{};o(en,"AnalyticalCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"chartAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"ignoreSapText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"navigation",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"chartProperties",2),m([y({manifest:{path:o(t=>H(t),"path")}})],en.prototype,"colorPalette",2);var Pl=en,Ar=class Ar{};o(Ar,"AnalyticalCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"template",2);var Vr=Ar,Wi=class Wi extends jn{};o(Wi,"StackCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"itemText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"objectStreamCardsSettings",2);var Al=Wi,Ir=class Ir{};o(Ir,"StackCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"template",2);var jr=Ir,Ki=class Ki extends jn{};o(Ki,"LinkListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"headerAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"staticContent",2);var Il=Ki,Or=class Or{};o(Or,"LinklistCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"template",2);var Dr=Or,Fr=class Fr extends jn{};o(Fr,"TableCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"enableAddToInsights",2);var Ol=Fr,Nr=class Nr{};o(Nr,"TableCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Nr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Nr.prototype,"template",2);var $r=Nr;var Qg=U(K());var gv=o((e,t,n,i,r)=>{let a=et(n[1],r),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ma=class ma{};o(ma,"Field"),m([y({flex:{controlId:gv,controlType:o(()=>Qg.ControlType.GroupElement,"controlType"),createFlexChange:$},generate:he})],ma.prototype,"visible",2);var Fl=ma;var Vl=U(K());var Nl={controlId:Fe,controlType:o(()=>Vl.ControlType.SmartFilterBar,"controlType"),createFlexChange:$},tn=class tn{};o(tn,"ListReportFilterBar"),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.38.0"})],tn.prototype,"smartVariantManagement",2),m([y({flex:Nl}),F({since:"1.40.0"})],tn.prototype,"liveMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],tn.prototype,"variantManagementHidden",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.52.0"})],tn.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:o(()=>Vl.ControlType.SmartFilterBar,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],tn.prototype,"showClearOnFB",2),m([y({flex:Nl}),F({since:"1.38.0"})],tn.prototype,"showFilterConfiguration",2),m([y({flex:Nl}),F({since:"1.28.0"})],tn.prototype,"showRestoreOnFB",2);var ya=tn,Rr=class Rr extends ya{};o(Rr,"AnalyticalListPageFilterBar"),m([y({manifest:{path:o(t=>de(t),"path")}})],Rr.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],Rr.prototype,"filterDefaultsFromSelectionVariant",2);var Ll=Rr;var jt=U(K());var nn=o((e,t,n,i,r)=>{if(i()===jt.ControlType.Button){let a=n[n.length-1],s=et(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Dn=class Dn{};o(Dn,"FormAction"),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],Dn.prototype,"visible",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"tooltip",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"icon",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"activeIcon",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"type",2);var jl=Dn,$n=class $n{};o($n,"FieldForAction"),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],$n.prototype,"visible",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"tooltip",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"icon",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"activeIcon",2),m([y({flex:{controlId:nn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"type",2);var Dl=$n;var ve=U(K()),Bt=U(dr());var _l=require("path"),Vv=U(K()),sm=U(am()),lm=require("fs");var jv=(0,_l.join)(__dirname,"templates");var Dv=o((e,t)=>{let n=(0,lm.readFileSync)(e,"utf8");return(0,sm.render)(n,t)},"renderTemplate");var Ml=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 Dv((0,_l.join)(jv,t+".xml"),n)},"getSingleColumnContent"),kl=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=Ml(i,t);n=n+`
82
+ `)},"scanLine")};Ce.escapeXML=Ke.escapeXML;Ce.__express=Ce.renderFile;Ce.VERSION=Ev;Ce.name=Ov;typeof window<"u"&&(window.ejs=Ce)});var Sn={};Po(Sn,{deleteConfigEntityByPath:()=>Kx,exportConfig:()=>Gx,exportConfigEntityByPath:()=>Wx,generateSchema:()=>Hx,getApiVersion:()=>Xx,getChanges:()=>ay,getGenericSchema:()=>ms,getPathToGenericSchema:()=>km,getProject:()=>nE,importConfig:()=>Jx,importProject:()=>Qx,importProjectSchema:()=>qx,isDirectory:()=>Yx,log:()=>q,readDirectory:()=>Cu});module.exports=vy(Sn);var Se=U(K());var N=U(K());var ne=o(e=>typeof e=="string","isString"),ar=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),up=o(e=>e==null?"":""+e,"makeString"),Eh=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),Ph=/###/g,fp=o(e=>e&&e.indexOf("###")>-1?e.replace(Ph,"."):e,"cleanKey"),pp=o(e=>!e||ne(e),"canNotTraverseDeeper"),sr=o((e,t,n)=>{let i=ne(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(pp(e))return{};let a=fp(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return pp(e)?{}:{obj:e,k:fp(i[r])}},"getLastOfPath"),dp=o((e,t,n)=>{let{obj:i,k:r}=sr(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=sr(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=sr(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),Ah=o((e,t,n,i)=>{let{obj:r,k:a}=sr(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Io=o((e,t)=>{let{obj:n,k:i}=sr(e,t);if(n)return n[i]},"getPath"),Ih=o((e,t,n)=>{let i=Io(e,n);return i!==void 0?i:Io(t,n)},"getPathWithDefaults"),Tp=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ne(e[i])||e[i]instanceof String||ne(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):Tp(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Pi=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),Oh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Fh=o(e=>ne(e)?e.replace(/[&<>"'\/]/g,t=>Oh[t]):e,"escape"),Ns=class Ns{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(Ns,"RegExpCache");var xs=Ns,Nh=[" ",",","?","!",";"],Lh=new xs(20),Vh=o((e,t,n)=>{t=t||"",n=n||"";let i=Nh.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=Lh.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Es=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),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},"deepFind"),Oo=o(e=>e&&e.replace("_","-"),"getCleanedCode"),jh={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)}},lr=class lr{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||jh,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:(ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new lr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new lr(this.logger,t)}};o(lr,"Logger");var Ps=lr,Qt=new Ps,Ls=class Ls{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 u=0;u<c;u++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l.apply(l,[t,...i])})}};o(Ls,"EventEmitter");var Ii=Ls,Vs=class Vs extends Ii{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):ne(i)&&a?l.push(...i.split(a)):l.push(i)));let c=Io(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ne(i)?c:Es(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),dp(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)(ne(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){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=Io(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?Tp(c,i,a):c={...c,...i},dp(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(Vs,"ResourceStore");var Fo=Vs,vp={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}},gp={},jo=class jo extends Ii{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Eh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.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&&!Vh(t,i,r);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ne(a)?[a]:a};let u=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(r)}return{key:t,namespaces:ne(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let 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],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||s,E=p&&p.exactUsedKey||s,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],G=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,oe=!this.i18nFormat||this.i18nFormat.handleAsObject,Y=!ne(g)&&typeof g!="boolean"&&typeof g!="number";if(oe&&g&&Y&&L.indexOf(I)<0&&!(ne(G)&&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 re=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=re,p.usedParams=this.getUsedParamsDetails(n),p):re}if(a){let re=Array.isArray(g),J=re?[]:{},le=re?E:b;for(let Ee in g)if(Object.prototype.hasOwnProperty.call(g,Ee)){let C=`${le}${a}${Ee}`;J[Ee]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Ee]===C&&(J[Ee]=g[Ee])}g=J}}else if(oe&&ne(G)&&Array.isArray(g))g=g.join(G),g&&(g=this.extendTranslation(g,t,n,i));else{let re=!1,J=!1,le=n.count!==void 0&&!ne(n.count),Ee=jo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(u,n.count,n):"",on=n.ordinal&&le?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",Kt=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ae=Kt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${on}`]||n.defaultValue;!this.isValidLookup(g)&&Ee&&(re=!0,g=Ae),this.isValidLookup(g)||(J=!0,g=s);let Ci=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,mt=Ee&&Ae!==g&&this.options.updateMissing;if(J||re||mt){if(this.logger.log(mt?"updateKey":"missingKey",u,c,s,mt?Ae:g),a){let Je=this.resolve(s,{...n,keySeparator:!1});Je&&Je.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 Nt=[],ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let Je=0;Je<ye.length;Je++)Nt.push(ye[Je]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let qn=o((Je,yt,it)=>{let an=Ee&&it!==g?it:Ci;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,c,yt,an,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,c,yt,an,mt,n),this.emit("missingKey",Je,c,yt,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?Nt.forEach(Je=>{let yt=this.pluralResolver.getSuffixes(Je,n);Kt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&yt.indexOf(`${this.options.pluralSeparator}zero`)<0&&yt.push(`${this.options.pluralSeparator}zero`),yt.forEach(it=>{qn([Je],s+it,n[`defaultValue${it}`]||Ae)})}):qn(Nt,s,Ae))}g=this.extendTranslation(g,t,n,p,i),J&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${s}`),(J||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,re?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 u=ne(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(u){let g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=i.replace&&!ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language||r.usedLng,i),u){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),E=0;E<g;E++)b[E]=arguments[E];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=ne(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=vp.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 ne(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(c,n),f=u.key;r=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&!ne(n.count),b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(ne(n.context)||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,!gp[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(gp[`${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(G=>{if(this.isValidLookup(i))return;s=G;let oe=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(oe,f,G,L,n);else{let re;g&&(re=this.pluralResolver.getSuffix(G,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(oe.push(f+re),n.ordinal&&re.indexOf(le)===0&&oe.push(f+re.replace(le,this.options.pluralSeparator)),b&&oe.push(f+J)),E){let Ee=`${f}${this.options.contextSeparator}${n.context}`;oe.push(Ee),g&&(oe.push(Ee+re),n.ordinal&&re.indexOf(le)===0&&oe.push(Ee+re.replace(le,this.options.pluralSeparator)),b&&oe.push(Ee+J))}}let Y;for(;Y=oe.pop();)this.isValidLookup(i)||(a=Y,i=this.getResource(G,L,Y,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&&!ne(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(jo,"Translator");var No=jo,Cs=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),js=class js{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(t){if(t=Oo(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=Oo(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ne(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}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]=Cs(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]=Cs(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Cs(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)),ne(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ne(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(js,"LanguageUtil");var Lo=js,Dh=[{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}],$h={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},wh=["v1","v2","v3"],Rh=["v4"],mp={zero:0,one:1,two:2,few:3,many:4,other:5},_h=o(()=>{let e={};return Dh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$h[t.fc]}})}),e},"createRules"),Ds=class Ds{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Qt.create("pluralResolver"),(!this.options.compatibilityJSON||Rh.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=_h(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=Oo(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(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)=>mp[r]-mp[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!wh.includes(this.options.compatibilityJSON)}};o(Ds,"PluralResolver");var As=Ds,yp=o(function(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=Ih(e,t,n);return!a&&r&&ne(n)&&(a=Es(e,n,i),a===void 0&&(a=Es(t,n,i))),a},"deepFindWithDefaults"),Ss=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$s=class $s{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.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:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:E,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:G,alwaysFormat:oe}=t.interpolation;this.escape=n!==void 0?n:Fh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Pi(a):s||"{{",this.suffix=l?Pi(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=g?Pi(g):b||Pi("$t("),this.nestingSuffix=E?Pi(E):I||Pi(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=G||1e3,this.alwaysFormat=oe!==void 0?oe:!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||{},u=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=yp(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let E=b.split(this.formatSeparator),I=E.shift().trim(),L=E.join(this.formatSeparator).trim();return this.format(yp(n,c,I,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...r,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ss(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ss(this.escape(b)):Ss(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let E=a[1].trim();if(s=u(E),s===void 0)if(typeof f=="function"){let L=f(t,a,r);s=ne(L)?L:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(p){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!ne(s)&&!this.useRawValueToEscape&&(s=up(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),p?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((c,u)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let p=c.split(new RegExp(`${f}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,s);let b=g.match(/'/g),E=g.match(/"/g);(b&&b.length%2===0&&!E||E.length%2!==0)&&(g=g.replace(/'/g,'"'));try{s=JSON.parse(g),u&&(s={...u,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${f}${g}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ne(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let f=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=f.shift(),c=f,u=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!ne(a))return a;ne(a)||(a=up(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((f,p)=>this.format(f,p,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($s,"Interpolator");var Is=$s,Mh=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Ai=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Oo(i),r),t[s]=l),l(n)}},"createCachedFormatter"),ws=class ws{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("formatter"),this.options=t,this.formats={number:Ai((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Ai((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Ai((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Ai((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Ai((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ai(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:u,formatOptions:f}=Mh(c);if(this.formats[u]){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[u](l,b,{...f,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}};o(ws,"Formatter");var Os=ws,kh=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Rs=class Rs extends Ii{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=Qt.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(u=>{let f=!0;n.forEach(p=>{let g=`${u}|${p}`;!i.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?s[g]===void 0&&(s[g]=!0):(this.state[g]=1,f=!1,s[g]===void 0&&(s[g]=!0),a[g]===void 0&&(a[g]=!0),c[p]===void 0&&(c[p]=!0)))}),f||(l[u]=!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),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(c=>{Ah(c.loaded,[a],s),kh(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});let f=c.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][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((u,f)=>{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(u&&f&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(u,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let u=c(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}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();ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ne(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,i,r,c):f=u(t,n,i,r),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Rs,"Connector");var Fs=Rs,hp=o(()=>({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(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ne(e[1])&&(t.defaultValue=e[1]),ne(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),bp=o(e=>(ne(e.ns)&&(e.ns=[e.ns]),ne(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ne(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ao=o(()=>{},"noop"),Uh=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),cr=class cr extends Ii{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bp(t),this.services={},this.logger=Qt,this.modules={external:[]},Uh(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&&(ne(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=hp();this.options={...r,...this.options,...bp(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);let a=o(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Qt.init(a(this.modules.logger),this.options):Qt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Os);let p=new Lo(this.options);this.store=new Fo(this.options.resources,this.options);let g=this.services;g.logger=Qt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new As(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(f),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Is(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Fs(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;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 No(this.services,this.options),this.translator.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;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=Ao),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=ar(),u=o(()=>{let f=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 f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,r=ne(t)?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(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})},"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=ar();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ao),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"&&vp.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=ar();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,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=ne(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{s(f,u)})},"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 u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(E=>`${c.keyPrefix}${g}${E}`):b=c.keyPrefix?`${c.keyPrefix}${g}${s}`:s,r.t(b,c)},"fixedT");return ne(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],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 u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===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=ar();return this.options.ns?(ne(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=ar();ne(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){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 Lo(hp());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 cr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new cr(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 Fo(this.store.data,r),a.services.resourceStore=a.store),a.translator=new No(a.services,r),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),f=1;f<c;f++)u[f-1]=arguments[f];a.emit(l,...u)}),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(cr,"I18n");var Vo=cr,w=Vo.createInstance();w.createInstance=Vo.createInstance;var fE=w.createInstance,pE=w.dir,dE=w.init,gE=w.loadResources,mE=w.reloadResources,yE=w.use,hE=w.changeLanguage,bE=w.getFixedT,TE=w.t,vE=w.exists,CE=w.setDefaultNamespace,SE=w.hasLoadedNamespace,xE=w.loadNamespaces,EE=w.loadLanguages;var wd=U(_s()),Rd=U(Jp()),Zo=U(jd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),mr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var il=U(K());var q=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(`${il.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${il.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",rl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),kt=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function yr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Zo.parse)(r.fileContent,r.dataSourceUri))}catch(a){return q(t,{severity:N.LogSeverity.Error,message:w.t("ANNOERR"),location:{path:w.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,Rd.convert)((0,Zo.merge)(...n))),i}o(yr,"parseAndMergeAndConvert");var Vi=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function ol(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(ol,"evaluateCommonLabel");function _d(e,t){let n=e.value;return e.$target&&(n=ol(e.$target.annotations,t,n)),n}o(_d,"getLabelForPropertyPath");function Yo(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=ol(i.annotations,t,n)),n}o(Yo,"getLabelForDataField");function vT(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 ol(a.annotations,t,s)}}}else return}o(vT,"getLabel");function Dd(e,t,n){let i=Yo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Dd,"getTitleForDataField");function hr(e,t){var s,l,c,u;let n="",i,r,a="";try{let f=vT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=Dd(e,t,f);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=Yo(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Yo(e,t),n=f||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:(u=r.Action)==null?void 0:u.path,f?n=typeof f=="string"?f:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Yo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Dd(r,t,f);break;default:break}return n}catch{return n}}o(hr,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}o(_e,"prepareRef");function pn(e){if(e){let t=`${N.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(pn,"getPageTypeV2");function CT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(CT,"getTargetAnnotationName");function zt(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(zt,"findAlias");function ST(e,t,n){var s,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=zt(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(ST,"determineTargetAnnotation");function xT(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?"":"@"}${N.UIVOCABULARY}`);return e}o(xT,"adjustKey");function ET(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var p,g;let s=!1,l,c=i.split("/"),u=c.length>1;u&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=xT(t,c,a);let f=ST(c,n,e);if(f){let b=r===N.FioriElementsVersion.v2?"::":"#";t=CT(f,a).replace("#",b),l=(g=f.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let b=r===N.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(ET,"getKeyAndEntityTypeOfReferenceFacet");function Md(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var f,p,g;let s=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Vi(e.Target);if(!b){q(i,{severity:N.LogSeverity.Error,message:w.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:I,stopProcessing:L,namespace:G}=ET(n,l,u,b,r,a);if(L)return;l=E,u=I,c=G}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:u,namespace:c}}o(Md,"getSectionFacet");function al(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${N.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=Vi(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=Vi(e.Value),n=Vi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(al,"getSchemaKeyOfLineItemRecord");function PT(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(PT,"getUIAnnotationTerm");function AT(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?mr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?mr.CommunicationAnnotationTerms.Address:void 0}o(AT,"getCommunicationAnnotationTerm");function IT(e,t,n){return PT(e,t,n)||AT(e,t)}o(IT,"getAnnotationTerm");function OT(e,t,n,i,r){var u,f,p,g,b,E,I,L,G;let a=zt(N.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(IT(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:N.FacetBase.Chart},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.Identification:{n[s]={base:N.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let oe=s.split("::");oe[oe.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=oe.join("::")}n[s]={base:N.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:N.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:N.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:N.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 mr.CommunicationAnnotationTerms.Contact:{n[s]={base:N.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 mr.CommunicationAnnotationTerms.Address:{n[s]={base:N.FacetBase.Address},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}default:n[s]={base:N.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",N.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(OT,"evaluateTargetAnnotation");function sl(e,t,n,i,r,a=N.FioriElementsVersion.v2,s){var c;let l=Md(e,i,t,s,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{OT(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:N.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{sl(p,t,n,i,f.facets,a,s)});break}}}o(sl,"addFacetToConfig");function kd(e,t,n=N.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let a=zt(N.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 u=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,u);s.forEach(p=>{sl(p,t,f,e,r,n,i)})}return r}o(kd,"getObjectPageHeaderFacets");function Ud(e,t,n=N.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=zt(N.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("."),u=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{sl(f,t,u,e,r,n,i)})}return r}o(Ud,"getObjectPageFacets");function ll(e){return e[N.ManifestSection.generic]||e[N.ManifestSection.ovp]?N.FioriElementsVersion.v2:N.FioriElementsVersion.v4}o(ll,"getFEVersionFromManifest");function FT(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[N.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[N.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[N.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[N.ManifestSection.ui5].models[t].dataSource:void 0}o(FT,"getMainService");function Bd(e){var i,r;let t=FT(e);if(!t)return N.OdataVersion.v2;let n=(i=e[N.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?N.OdataVersion.v4:N.OdataVersion.v2}o(Bd,"getODataVersionFromManifest");function NT(e,t){var i,r;let n;if(e[N.ManifestSection.generic]){let a=e[N.ManifestSection.generic].pages;if(!a){q(t,{severity:N.LogSeverity.Error,message:w.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(pn((i=l.component)==null?void 0:i.name)===N.PageTypeV2.AnalyticalListPage){n=N.TemplateType.AnalyticalListPageV2;break}else if(pn((r=l.component)==null?void 0:r.name)===N.PageTypeV2.ListReport){n=N.TemplateType.ListReportObjectPageV2;break}}}else n||q(t,{severity:N.LogSeverity.Error,message:w.t("NOTEMPLATE",{section:N.ManifestSection.generic}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return n}o(NT,"determineV2Template");function cl(e,t,n){let i;return e[N.ManifestSection.ovp]?i=N.TemplateType.OverviewPageV2:t===N.FioriElementsVersion.v2&&(i=NT(e,n)),i}o(cl,"getTemplateTypeFromManifest");function br(e,t,n){e!=null&&e.ID?(t.title=N.FACETTITLEPREFIX+e.ID,t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:n.replace(N.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(br,"addSectionTitleAndDescription");function LT(e,t,n){var i,r;br(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(LT,"addTargetTitleAndSectionDescription");function Yn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[N.SchemaTag.isViewNode]=!0,i[N.SchemaTag.annotationPath]=t.annotationPath,LT(t,i,n),i}o(Yn,"createDefaultSection");function Hd(e,t,n,i=N.FioriElementsVersion.v2,r=!1){var l,c;let a=zt(N.UIVOCABULARY,t),s=[];if(e){let u=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return u&&(s=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let g=Md(p,e,t,n,i,!0);return g&&f.push(g),f},s)),s}}o(Hd,"getObjectPageFacetSection");var Tr=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let u=a&&a===c?r:c.replace("??","/");if(!(!s[u]&&(a===c&&(u=a),!s[u]))){if(Object.keys(s[u]).length===0||i&&i[i.length-1]===u&&n){Array.isArray(s)?s.splice(Number(u),1):delete s[u],l.pop(),Tr(e,l.join("/"),n,i,r,a);return}s=s&&s[u]}})},"deleteEmptyStructure"),$d=o(e=>`${e}`,"getGenericSchemaFileName"),Ze=o((e,t)=>{let n={filename:"",path:""};switch(e){case N.SchemaType.Application:{n.filename="App",n.path=`./${N.DirName.Schemas}/${n.filename}`;break}case N.SchemaType.ListReport:case N.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:$d(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}default:{n.filename=$d(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ea(e,t,n,i){if(e===N.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(ea,"generatePageId");function VT(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(VT,"fillArrayFromAnyOfReference");function jT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{VT(r,n,t,i)}),i.length===0))return;return i}o(jT,"fillArrayFromPropertyDefinition");function DT(e,t,n,i,r,a,s,l){var u,f,p,g;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(u=c==null?void 0:c.targetDefinition)!=null&&u.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=An(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 E=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=a.createInstance(s,E,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(DT,"determineNextDefinitionFromDefinitionArray");function An(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=An(e,t,n,i.items,r,a,s),l;let c=jT(i,n,e);if(c)return l=DT(c,e,t,n,r,a,s,i),l}o(An,"getNextTargetDefinition");var ul=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,wd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Tt(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Tt,"convertActionKeyToStableId");function ji(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ji,"updatePropertyIndices");function Gd(e){return e=e.replace(N.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(Gd,"removeNamespaces");function ta(e){return e=e.replace(N.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ta,"replaceNamespaces");function Wd(e){return e instanceof Error?e.message:String(e)}o(Wd,"getErrorMessage");var Kn=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=U(K());var vt=U(K());var Fe=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),na=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=o((e,t)=>{let n,i=vt.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 $T(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($T,"escapeId");var Kd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Kd||{});function wT(e,t,n){let i;return e=e.map(function(r){if(r===vt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===vt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(wT,"mapBreadcrumbs");var fl=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=wT(t,s,r)),s[0]===vt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH):t[0]===vt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),u,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),u=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),u=`${e}${t.join("::")}-${c}`),$T(u)},"buildColumnControlId"),Ct=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 RT(e){let t=vt.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(RT,"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,u=RT(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Di=o((e,t,n)=>{Jd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=o((e,t,n)=>{let i=Object.values(Kd);Jd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Qd(){}o(Qd,"doNotDelete");var TP=U(Xd());var zd=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(zd,e),"syncRule");function At(e,t){let n;return e&&(n=Reflect.getMetadata(zd,e,t)),n}o(At,"getReflectMetadata");var In=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Yd=Symbol("childId"),Xe=o(e=>Reflect.metadata(Yd,e),"childId"),Zd=o((e,t)=>Reflect.getMetadata(Yd,e,t),"getChildId"),eg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),_T=Symbol("descriptionSrcURL"),dn=o(e=>Reflect.metadata(_T,e),"descriptionSrcURL");var MT=Symbol("validityMetadataKey"),F=o(e=>Reflect.metadata(MT,e),"validity");function $i(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($i,"getTextForDeprecated");var lg=U(ag()),cg=U(K());var ug=lg.default.change,sg={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function fg(e,t){let n="";try{for(let i in sg)e[i]===void 0&&(e[i]=sg[i]);n=ug.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(fg,"createChangeString");function Ut(e){try{return ug.parse(e)}catch{return!1}}o(Ut,"parseChangeString");function pg(e,t,n,i,r){let a=n.layer?n.layer===cg.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(pg,"fillFlexChangeContent");function $(e,t){return fg(e,t)}o($,"exportToFlexChange");var Zn=U(K());function ia(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(ia,"importProperty");function dg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(q(i,{severity:Zn.LogSeverity.Warning,message:$i(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(dg,"checkDeprecatedProperties");function pl(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return pl(n,t)}else return e.title?e.title.startsWith(Zn.FACETTITLEPREFIX)?e.title.split(Zn.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(pl,"getSectionTitle");function ra(e){let t=e.split(`${Zn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(ra,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var gn=require("@sap-ux/vocabularies-types/vocabularies/UI");function mg(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(mg,"replaceSpecialChars");var ei=o(function(e){return mg(Gd(e))},"prepareId");function KT(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(KT,"evaluateConcat");function ti(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return KT(e);if(e&&typeof e=="string")return mg(e.replace(/ /g,"_"))}o(ti,"getStableIdPartFromValue");var gg=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"),yg=o(function(e){let t="";if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=gg(e),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ei(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ti(e.Value)+"::"),t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataField)return t="DataField::",t+=ti(e.Value),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ti(e.Value)+"::",t+=gg(e),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ti(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ti(e.Value),ei(t)},"getStableIdPartFromDataField");var O=U(K());var z=U(K());var St=require("@sap-ux/vocabularies-types/vocabularies/UI"),Cg=require("path"),Sg=U(dr());var wi="ResponsiveTable<LineItems>",vr="TreeTable<LineItems>",Cr="AnalyticalTable<LineItems>",Sr="GridTable<LineItems>",hg=[vr,Cr,Sr],bg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],Tg="template::",oa="template:::ObjectPageAction:::";function JT(e,t,n){e.definitions[z.DefinitionName.LineItems]&&(e.definitions[z.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][z.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[z.SchemaTag.artifactType]=z.ArtifactType.Manifest)}o(JT,"addCustomColumnDefinition");function QT(e,t){let n;return e==="TableColumnActionIntentBased"?n=al(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===St.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(QT,"getActionId");function dl(e,t,n,i,r){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",l=QT(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}>`,u=hr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][z.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=xr(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:u,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][z.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:f}],p&&(e.definitions[c][z.SchemaTag.target]=p),e.definitions[c][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(dl,"handleActionRecord");function qT(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===St.UIAnnotationTypes.DataFieldForAction||t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(qT,"getColumnActionType");function XT(e,t){let n=[];if(!(e.$Type!==St.UIAnnotationTypes.DataFieldForAction&&e.$Type!==St.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),qT(t,e,n),n}o(XT,"getActionType");function xg(e,t,n){let i=al(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:hr(e.lineItemRecord,e.entityType)},r.properties[i][z.SchemaTag.propertyIndex]=n,r.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,la(r.properties[i],e.lineItemRecord),Og(e.lineItemRecord,r.properties,i)}}o(xg,"generateGenericColumn");function zT(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{dl(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&dl(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{dl(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":xg(i,t,r)}}o(zT,"handleAnyAction");function Ri(e,t,n,i,r,a){r=r||z.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=Ig(e,t,n,i,r);if(n){let u=0;n.forEach(f=>{let p={lineItemPath:c,lineItemRecord:f,lineItemId:r,entityType:i},g=XT(f,r);g?g.forEach(b=>{zT(b,t,s,p,u,l,r)}):xg(p,t,u),u++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(Ri,"addLineItemsType");function YT(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(YT,"addListReportLeadingProperties");function ZT(e,t,n,i){var s,l,c,u,f,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=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let g=[];for(let b in a){let E=(p=a[b])==null?void 0:p.key;E!==void 0&&!g.includes(E)&&g.push(E)}ni(g,r)}}o(ZT,"addTabkeyEnum");function aa(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let u=c.dataSourceUri.split("webapp")[1];if(u&&u.indexOf(".fragment.xml")>0){let f=JSON.parse((0,Sg.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){u=u.replace(new RegExp("\\"+Cg.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ni(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(aa,"addFragmentEnum");function _i(e,t,n,i,r,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,l){JT(e,a,s),YT(e,t,s),ZT(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;aa(e,r,c,"fragmentName",s),aa(e,r,c,"fragmentName",z.DefinitionName.CustomColumn),aa(e,r,c,"cellsFragmentName",s),aa(e,r,c,"cellsFragmentName",z.DefinitionName.CustomColumn)}o(_i,"addTableColumnExtensions");function Eg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(Eg,"removeElementsFromEnum");function sa(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=kt(n==null?void 0:n.fullyQualifiedName,St.UIAnnotationTerms.SelectionFields);if(r&&(i[z.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${_e(s.value)}>`,u=gl(s);s.type==="PropertyPath"&&(l=_d(s,n)),i.properties[s.value]={$ref:j+c},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][z.SchemaTag.dataType]=u,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}o(sa,"addSelectionFields");function Pg(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}o(Pg,"isDraftEnabled");function Mi(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,r=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,r=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[r];l[z.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([u,f])=>{let p=f.$ref.split(j)[1],g=`${a}<${p}>`;l.properties[u]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][z.SchemaTag.actionType]=z.ActionType.Standard})}o(Mi,"addStandardHeaderActions");function Ag(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][z.SchemaTag.actionType]=z.ActionType.Standard}}o(Ag,"addStandardFooterActionsOP");function ev(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithNavigationPath:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(ev,"copyFieldProperties");function tv(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(tv,"determineFieldDefinitionName");function nv(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(nv,"addKeysTagForDataField");function iv(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)nv(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:ta(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ve.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===Ve.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(iv,"addKeysTagToField");function Fg(e,t,n,i,r,a,s,l=!0){var p;let c=yg(n),u=s===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=tv(s,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=_e(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[u]={$ref:`${j}${f}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=_e(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[u]={$ref:`${j}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:hr(n,a.entityType),additionalProperties:!1},iv(n,t,f),t.definitions[f][O.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][O.SchemaTag.annotationType]=n.$Type,t.definitions[f][O.SchemaTag.isViewNode]=!0,la(t.definitions[f],n),ev(s,t,n,f),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[O.DefinitionName.FormAction].properties)}}o(Fg,"addField");function rv(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(rv,"determineTargetIdOfForm");function ov(e,t,n,i,r,a=!0){var u;if(!e.target)return;let s=_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}${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,(u=e.entityType)!=null&&u.name&&(n.definitions[s][O.SchemaTag.annotationPath]=kt(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 f in e.target){let p=e.target[f];p&&Fg(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];Fg(t,n,p,i,f,e,r)}}o(ov,"addFieldsToFormDefinition");function av(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]=kt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(av,"addTagsToFormDefinition");function Ng(e,t,n,i,r,a){if(!t.target)return;let s=rv(t),l=_e(`${e}${O.DefinitionName.Form}<${s}>`),c=_e(`${e}${O.DefinitionName.Fields}<${s}>`),u=_e(`${e}${O.DefinitionName.Actions}<${s}>`),f=!(t.base===O.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${u}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},av(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,ov(t,e,i,s,r,f),s}o(Ng,"handleForm");function sv(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(sv,"replaceAlias");function ml(e,t){let n=sv(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(ml,"getActionNameAndId");function Lg(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:Lg(a.pages,t)}}o(Lg,"isFirstObjectPage");function Vg(e,t,n,i){var c,u,f;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=zt(O.UIVOCABULARY,t.serviceAVT),s=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=s==null?void 0:s.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:E,actionId:I}=ml(g,t.serviceAVT),L=g.Label||E,G=_e(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[G]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[G]={type:"object",properties:{},description:L},e.definitions[G][O.SchemaTag.isViewNode]=!0,e.definitions[G][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${G}`}}})}else s&&(r[O.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&Lg(i,t)&&!Pg(s)&&Ag(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}o(Vg,"addFooterActions");function jg(e,t,n,i,r=!1){var f,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=zt(O.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[O.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),r&&Mi(e,!0,s),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}o(jg,"addHeaderActions");function Dg(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}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}o(Dg,"addCommonHeaderSchema");function $g(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o($g,"determineEntitySetOfFacet");var Bt=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=U(K());function ni(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ni,"addEnumToSchema");function wg(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)}}ni(r,n)}o(wg,"addEnumForValidAnnotations");function ca(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Bt.UIAnnotationTerms.SelectionVariant,Bt.UIAnnotationTerms.SelectionPresentationVariant];wg(e,r,i)}o(ca,"addEnumForSingleTabVariant");function Rg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Bt.UIAnnotationTerms.SelectionVariant,Bt.UIAnnotationTerms.SelectionPresentationVariant];wg(n.entityType,r,i)}o(Rg,"addEnumForMultiTabVariant");function _g(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ni(r,i)}o(_g,"addEnumForVariantEntitySet");function Mg(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(Mg,"addDefinitionForRelatedFacetKeys");function lv(e){return e.replace("#","::")}o(lv,"getFacetKeyInSchema");function kg(e,t){return`${e}<${lv(t)}>`}o(kg,"getFacetDefinitionKey");function cv(e,t,n,i=!0,r){let a=t;if(i&&(a=kg(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(cv,"parseSchemaDefinition");function Ig(e,t,n,i,r){let a;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,l=`${s}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let c=`Actions<${_e(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let u=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,f;try{f=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[u])),f.properties={},f.additionalProperties=!1}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let p,g;if(r===Te.DefinitionName.LineItems&&t.properties.footer){g=`${Te.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.GenericFooter]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.GenericFooter}))}let b=`${Te.DefinitionName.FooterActions}<${_e(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.Actions]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(a=kt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[r][Te.SchemaTag.annotationPath]=t.definitions[l][Te.SchemaTag.annotationPath]=a,p&&(t.definitions[g][Te.SchemaTag.annotationPath]=a))),{actions:f,footerActions:p,lineItemPath:a}}o(Ig,"addCommonLineItemDefinitions");function Ug(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(Ug,"getDataTypeFromAnnotation");function ua(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=Ug(e.$Type)),t}o(ua,"determineDataTypeOfTarget");function gl(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=ua((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=Ug(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(gl,"determineDataType");function la(e,t){let n=gl(t);n&&(e[Te.SchemaTag.dataType]=n)}o(la,"addDataTypeToDefinition");function uv(e,t){return`${j}${kg(e,t)}`}o(uv,"getFacetDefinitionLink");function yl(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:uv(a?c:l,t)};let u=cv(a?c:l,t,i,!0,a?c:void 0);br(e,u,t),u[Te.SchemaTag.annotationPath]=e.annotationPath,u[Te.SchemaTag.isViewNode]=!0}o(yl,"handleAddressContact");function xr(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(xr,"getActionKey");function Og(e,t,n){var i,r,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:ti(e.Value)}];else if(e.$Type===Bt.UIAnnotationTypes.DataFieldWithAction||e.$Type===Bt.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=xr(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],l&&(t[n][Te.SchemaTag.target]=l)}else if(e.$Type===Bt.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=xr(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:ta(s)}],t[n][Te.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===Bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Bt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=xr(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][Te.SchemaTag.target]=c)}}catch{return}}o(Og,"addKeyToDefinition");var ki=U(K());var Bg=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var Gg="1.71.134";var Wg={name:"@sap/ux-specification",version:Gg,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/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",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.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.134","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.9.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var On=class On{constructor(){On.distTagsOfSpec.length===0&&(On.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){On.distTagsOfSpec=[]}getSpecVersion(){return Gg}getDistTagsOfVersion(){let t=[],n=Bg,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=w.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});q(n,{severity:ki.LogSeverity.Info,message:r,location:{path:ki.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(On.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=w.t("WRONGMINUI5VERSION",{minUI5Version:t});q(n,{severity:ki.LogSeverity.Warning,message:r,location:{path:ki.MANIFESTPATH}})}}};o(On,"DistTagEvaluator"),On.distTagsOfSpec=[];var Er=On;var ee=U(K());var Be=U(K());var It=U(K());var hl=class hl{constructor(t,n,i,r,a,s,l){this.unhandledControllers=[];let c=Ze(It.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===It.FioriElementsVersion.v2?It.OdataVersion.v2:It.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!==It.PageType.CustomPage){let l=Ze(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Ze(i.pageType);s.$schema=c.path}t[`${It.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[It.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(hl,"AppProvider");var Ui=hl;var ge=U(K());var Bi=U(K());var ze=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Kg=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 bl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(bl,"getNewPageTemplate");function dv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(dv,"findPageInManifest");function gv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=bl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:bl(e[t].pageType)}),!Array.isArray(n.pages))){let i=dv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=bl(e[t].pageType)),Tl(t,e,i)}}o(gv,"transformPageFromAssociation");function mv(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)===Bi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Bi.PageTypeV2.ListReport||n.pageType===Bi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(mv,"deletePage");function Tl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Bi.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)gv(t,r,n);Array.isArray(n.pages)||mv(n,t,i)}}o(Tl,"transformPageToNewManifestV2");var Im=U(dr());var qc={};Po(qc,{ALPAnalyticalTable:()=>zl,ALPGridTable:()=>Xl,ALPResponsiveTable:()=>ql,Action:()=>tc,AnalyticalCard:()=>Vr,AnalyticalCardSettings:()=>Pl,AnalyticalListPageFilterBar:()=>Ll,AnalyticalTable:()=>Ql,BaseCustomSection:()=>no,ChartSettings:()=>Tc,ChartSettingsType:()=>Cl,CommonCardSettings:()=>jn,CommonHeaderFacetSettings:()=>ui,CommonTableSettings:()=>Rn,CommonTableSettingsForSections:()=>yi,CreateWithFilters:()=>Gl,CustomCard:()=>xl,DefaultSpanObject:()=>Sl,FRAGMENT_DEFINITION:()=>nn,Field:()=>Fl,FieldForAction:()=>Dl,FooterAction:()=>ic,FormAction:()=>jl,GlobalTableSettings:()=>Jc,GridTable:()=>Yl,HeaderAction:()=>Sc,HeaderActionStandard:()=>lc,HeaderSections:()=>Ic,KPISettings:()=>vc,LinkListCardSettings:()=>Il,LinklistCard:()=>Dr,ListCard:()=>Lr,ListCardSettings:()=>El,ListReportFilterBar:()=>ya,ObjectPageAnalyticalTable:()=>Gc,ObjectPageCustomSectionFragment:()=>io,ObjectPageCustomSectionView:()=>ro,ObjectPageFooterAction:()=>Fc,ObjectPageFooterActionStandard:()=>uc,ObjectPageGridTable:()=>Wc,ObjectPageHeader:()=>Cc,ObjectPageHeaderActionStandard:()=>cc,ObjectPageHeaderSectionAddress:()=>Ac,ObjectPageHeaderSectionChart:()=>Ec,ObjectPageHeaderSectionDataPoint:()=>Pc,ObjectPageHeaderSectionForm:()=>xc,ObjectPageLayout:()=>Lc,ObjectPageResponsiveTable:()=>hi,ObjectPageSectionAddressV2:()=>wc,ObjectPageSectionChartV2:()=>Dc,ObjectPageSectionContactV2:()=>Rc,ObjectPageSectionFormV2:()=>jc,ObjectPageSectionTableV2:()=>$c,ObjectPageSectionV2:()=>Vc,ObjectPageSubSectionChartV2:()=>kc,ObjectPageSubSectionContactV2:()=>Uc,ObjectPageSubSectionFormV2:()=>Mc,ObjectPageSubSectionTableV2:()=>Bc,ObjectPageSubSectionV2:()=>_c,ObjectPageToolBarAction:()=>Qc,ObjectPageTreeTable:()=>Kc,QuickVariantSelection:()=>Wl,QuickVariantSelectionOP:()=>Hc,QuickVariantSelectionX:()=>Kl,ResponsiveTable:()=>ri,SAP_UI_TABLE:()=>ha,SaveAndEditOP:()=>sc,Share:()=>rc,ShareOP:()=>oc,StackCard:()=>jr,StackCardSettings:()=>Al,TableALP:()=>qi,TableCard:()=>$r,TableCardSettings:()=>Ol,TableColumn:()=>dc,TableColumnAction:()=>ja,TableColumnActionIntentBased:()=>gc,TableCustomColumn:()=>mc,ToolBar:()=>hc,ToolBarAction:()=>nc,TreeTable:()=>Jl,UpAndDownNavigationOP:()=>ac,buildIntentBasedActionId:()=>fc,deleteColumnFromFragment:()=>va,deleteType:()=>zi,exportCustomColumnsToFragment:()=>Hl,exportDefaultSpan:()=>qg,exportType:()=>Xi,getChartSectionControlId:()=>Sm,getContactSubSectionControlId:()=>Em,getCustomColumnPath:()=>Ca,getFormSectionControlId:()=>Cm,getRootCustomColumnFromFragmentJSON:()=>Mr,getSectionControlId:()=>di,getSmartChartControlId:()=>Qr,getSmartTableControlId:()=>wn,getSubSectionControlId:()=>xm,getTableSectionControlId:()=>vm});var st=U(K());var de=o(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),da=o(e=>de(e)+"/tableSettings","getTableSettingPathV2");var We=o(()=>st.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[st.ManifestSection.ovp];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ii=o((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Qg=o(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),jt=o(e=>{let t=[];return t.push(Qg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Hi=o(e=>jt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Yt=o((e,t,n)=>{let i=[];i.push(Qg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Nn=o((e,t,n)=>Yt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var vl=o(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),yn=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),`${vl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),pa=class pa{};o(pa,"ApplicationV2"),m([Xe("settings")],pa.prototype,"settings",2);var fa=pa,mn=class mn{};o(mn,"AppSettings"),m([y({manifest:{path:o(()=>"sap.app","path")}})],mn.prototype,"title",2),m([y({manifest:{path:o(()=>"sap.app","path")}})],mn.prototype,"description",2),m([y({manifest:{path:o(()=>"sap.fiori","path")}})],mn.prototype,"cloudDevAdaptationStatus",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.50.0"})],mn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.46.0"})],mn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:o(()=>"sap.ui5","path")}}),F({since:"1.56.0"}),dn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],mn.prototype,"flexEnabled",2);var Fn=mn;function qg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(qg,"exportDefaultSpan");var ga=class ga{};o(ga,"ChartSettingsType"),m([y({manifest:{path:o(()=>We()+"/chartSettings","path")}})],ga.prototype,"showDataLabel",2);var Cl=ga,Ln=class Ln{};o(Ln,"DefaultSpanObject"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"cols",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"rows",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"showOnlyHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumTitleRow",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumSubTitleRow",2);var Sl=Ln,Ne=class Ne{};o(Ne,"CommonCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:o(t=>H(t),"path"),export:qg}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"customParams",2);var jn=Ne,Gi=class Gi{};o(Gi,"CustomCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"template",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"settings",2);var xl=Gi,Vn=class Vn extends jn{};o(Vn,"ListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"imageSupported",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listType",2);var El=Vn,Pr=class Pr{};o(Pr,"ListCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"template",2);var Lr=Pr,Zt=class Zt extends jn{};o(Zt,"AnalyticalCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"ignoreSapText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"navigation",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartProperties",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"colorPalette",2);var Pl=Zt,Ar=class Ar{};o(Ar,"AnalyticalCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"template",2);var Vr=Ar,Wi=class Wi extends jn{};o(Wi,"StackCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"itemText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"objectStreamCardsSettings",2);var Al=Wi,Ir=class Ir{};o(Ir,"StackCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"template",2);var jr=Ir,Ki=class Ki extends jn{};o(Ki,"LinkListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"headerAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ki.prototype,"staticContent",2);var Il=Ki,Or=class Or{};o(Or,"LinklistCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"template",2);var Dr=Or,Fr=class Fr extends jn{};o(Fr,"TableCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"enableAddToInsights",2);var Ol=Fr,Nr=class Nr{};o(Nr,"TableCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Nr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Nr.prototype,"template",2);var $r=Nr;var Xg=U(K());var yv=o((e,t,n,i,r)=>{let a=et(n[1],r),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ma=class ma{};o(ma,"Field"),m([y({flex:{controlId:yv,controlType:o(()=>Xg.ControlType.GroupElement,"controlType"),createFlexChange:$},generate:he})],ma.prototype,"visible",2);var Fl=ma;var Vl=U(K());var Nl={controlId:Fe,controlType:o(()=>Vl.ControlType.SmartFilterBar,"controlType"),createFlexChange:$},en=class en{};o(en,"ListReportFilterBar"),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.38.0"})],en.prototype,"smartVariantManagement",2),m([y({flex:Nl}),F({since:"1.40.0"})],en.prototype,"liveMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],en.prototype,"variantManagementHidden",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.52.0"})],en.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:o(()=>Vl.ControlType.SmartFilterBar,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],en.prototype,"showClearOnFB",2),m([y({flex:Nl}),F({since:"1.38.0"})],en.prototype,"showFilterConfiguration",2),m([y({flex:Nl}),F({since:"1.28.0"})],en.prototype,"showRestoreOnFB",2);var ya=en,wr=class wr extends ya{};o(wr,"AnalyticalListPageFilterBar"),m([y({manifest:{path:o(t=>de(t),"path")}})],wr.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],wr.prototype,"filterDefaultsFromSelectionVariant",2);var Ll=wr;var Dt=U(K());var tn=o((e,t,n,i,r)=>{if(i()===Dt.ControlType.Button){let a=n[n.length-1],s=et(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Dn=class Dn{};o(Dn,"FormAction"),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],Dn.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"type",2);var jl=Dn,$n=class $n{};o($n,"FieldForAction"),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],$n.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>Dt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"type",2);var Dl=$n;var ve=U(K()),Ht=U(dr());var _l=require("path"),Dv=U(K()),cm=U(lm()),um=require("fs");var $v=(0,_l.join)(__dirname,"templates");var wv=o((e,t)=>{let n=(0,um.readFileSync)(e,"utf8");return(0,cm.render)(n,t)},"renderTemplate");var Ml=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 wv((0,_l.join)($v,t+".xml"),n)},"getSingleColumnContent"),kl=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=Ml(i,t);n=n+`
83
83
  `+r}return n+`
84
84
  </core:FragmentDefinition>`},"getColumnFragmentContent"),Ul=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 ba=require("path");var rn="core:FragmentDefinition",ha="sap.ui.table",Bl=new Map([[ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:ha,name:"Column"}],[ve.ViewTemplateType.GridTableColumnsExtension,{namespace:ha,name:"Column"}],[ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ha,name:"AnalyticalColumn"}]]),$v=new Map([[ve.v2.FE_TEMPLATE_V2_LIST_REPORT,ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ve.v2.FE_TEMPLATE_V2_ALP,ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),um={type:"element",name:"Text",attributes:{text:"Placeholder"}},Rv=JSON.stringify(um);function wv(e,t){var i;let n=t?(i=e==null?void 0:e[rn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(wv,"getFragmentNamespaces");function cm(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(cm,"getTagName");function Ta(e,t,n=e){let i=wv(n,!!(t||n!==e));if(t){let r=Bl.get(t);return cm(r,i.get(r.namespace))}else{let r=Bl.keys();for(let a of r){let s=Bl.get(a),l=i?cm(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Ta,"getTagNameFromFragmentJSON");function Mr(e,t=e){let n=Ta(e,void 0,t);return e[n]}o(Mr,"getRootCustomColumnFromFragmentJSON");function _v(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(_v,"addP13nData");function fm(e,t){var l,c,u;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(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,r=_v(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=(u=t[s])==null?void 0:u.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(fm,"handleFragmentColumn");function Mv(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]+ve.FRAGMENTNAMEPART+a;for(let c of t){let u=c.dataSourceUri.split(ba.sep);if(u[u.length-1]===l){let f=JSON.parse((0,Bt.xml2json)(c.fileContent,{compact:!0}));try{let p=Ta(f[rn]);p&&(delete f[rn][p],c.fileContent=(0,Bt.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}o(Mv,"deleteColumnsFromFragment");function pm(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Rv&&(e.splice(n,1),t-=1,t===0));n++);}o(pm,"deleteNumberOfCells");function kv(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Bt.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(u=>u.type==="element");c&&pm(l.elements[0].elements,c.length),s.fileContent=(0,Bt.json2xml)(JSON.stringify(l),{spaces:4});break}}o(kv,"deleteCellsFromFragment");function va(e,t,n,i){if(i){Mv(e,i,t,n);let r=t.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&kv(a,i,n)}}o(va,"deleteColumnFromFragment");function Uv(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(um)}o(Uv,"addNewColumnsInFragment");function Bv(e,t){let n=JSON.parse((0,Bt.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)Uv(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;pm(a,r)}e.fileContent=(0,Bt.json2xml)(JSON.stringify(n),{spaces:4})}}o(Bv,"updateNonEmptyCellsFragment");function Hv(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(ba.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=ve.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Ul(n):Bv(r,n);break}}return i}o(Hv,"updateCellsFragment");function Gv(e,t,n,i,r){var f;let a,s,l=t.manifest,c=ze(l,e),u=c.type?c.type.toLowerCase():"xml";c.type=u.toUpperCase();for(let p of n){if(!p.fragmentName){q(r,{severity:ve.LogSeverity.Error,message:R.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}t.manifestChangeIndicator=ve.ChangeIndicator.Updated,c.fragmentName=p.fragmentName,c.className=p.className,a=((f=p.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,ba.sep))+ve.FRAGMENTNAMEPART+u}if(e.indexOf(ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=ve.ChangeIndicator.Updated;let p=e.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),g=ze(l,p),b=n.reduce((E,I)=>I.cellsFragmentName?I:E);b&&b.cellsFragmentName?(g.fragmentName=s=b.cellsFragmentName,g.className=n[0].className,g.type=u.toUpperCase()):Wg(l,p)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:u}}o(Gv,"exportCustomColumnsToManifest");function Wv(e,t,n,i,r){let a=Ml(e,t);if(a){let s=JSON.parse((0,Bt.xml2json)(a,{compact:!0})),l=Mr(s,i);if(Array.isArray(n))n.some(u=>JSON.stringify(u)===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(Wv,"insertNewColumnInFragment");function Kv(e,t){let n=[];for(let i=0;i<e.length;i++)fm(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(Kv,"processCustomColumnInArray");function Jv(e,t,n){if(e){if(Array.isArray(e))Kv(e,t);else if(!fm(e,t)){let r=Ta(n[rn]);r&&(delete n[rn][r],e=void 0)}}return e}o(Jv,"maintainExistingColumnInFragment");function Qv(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Wv(a,i,n,r,s)}return n}o(Qv,"insertNewColumnsInFragment");function qv(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=ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=kl(i,r);else{let c=JSON.parse((0,Bt.xml2json)(s.fileContent,{compact:!0})),u=JSON.stringify(c);l=Mr(c[rn]),l=Jv(l,i,c),l=Qv(i,n,l,r,c);let f=Ta(c,r);c[rn][f]=l;let p=JSON.stringify(c);p!==u&&(s.fileContent=(0,Bt.json2xml)(p,{compact:!0,spaces:4}))}break}return a}o(qv,"updateColumnsInFragment");function Hl(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:u,fragmentType:f}=Gv(t,e,n,i,a),p=JSON.parse(JSON.stringify(n)),g=l.fragmentName,b=g.substr(i.length+1),E=b.split(".");g=E[E.length-1]+ve.FRAGMENTNAMEPART+f;let L=u==null?void 0:u.split("."),G=L?L[L.length-1]:null,oe=G?G+ve.FRAGMENTNAMEPART+f:null,Y=qv(s,g,b,p,r),re=!1;if(u?re=Hv(s,oe,n):re=!0,!Y){let J={fileContent:kl(p,r),dataSourceUri:c,changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}if(!re){let J={fileContent:Ul(n),dataSourceUri:c.replace(g,oe),changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}}o(Hl,"exportCustomColumnsToFragment");var Ca=o((e,t,n,i)=>{var c,u,f,p;if(!e)return;let r=$v.get((c=e.component)==null?void 0:c.name);if(!i){let g=(p=(f=(u=e.component)==null?void 0:u.settings)==null?void 0:f.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 Me=U(K());var Rn=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Me.PropertyName.table:Fe(e,t),"getSmartTableControlId");function Xv(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let c in s)l.indexOf(c)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[c]=s[c],delete s[c]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(Xv,"exportVariants");function zv(e,t){t.variants&&(Object.keys(t.variants).length>0?Xv(e,t):delete e.variants)}o(zv,"exportQuickVariantSelectionX");var Sa=class Sa{};o(Sa,"CreateWithFilters"),m([y({manifest:{path:o(t=>de(t)+"/createWithFilters","path")}})],Sa.prototype,"strategy",2);var Gl=Sa;function Br(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(Br,"importType");function Xi(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Xi,"exportType");function zi(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(zi,"deleteType");var kr=class kr{};o(kr,"QuickVariantSelection"),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],kr.prototype,"showCounts",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],kr.prototype,"variants",2);var Wl=kr,Ji=class Ji{};o(Ji,"QuickVariantSelectionX"),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Ji.prototype,"showCounts",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Ji.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path"),export:zv}}),F({since:"1.48.0"})],Ji.prototype,"variants",2);var Kl=Ji,lt=class lt{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(lt,"CommonTableSettings"),m([y({flex:{controlId:Fe,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.38.0"})],lt.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.26.0"})],lt.prototype,"useExportToExcel",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.50.0"})],lt.prototype,"exportType",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],lt.prototype,"quickVariantSelection",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],lt.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.38.0"})],lt.prototype,"multiSelect",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.70.0"})],lt.prototype,"selectAll",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.70.0"})],lt.prototype,"selectionLimit",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.40.0"})],lt.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.42.0"})],lt.prototype,"condensedTableLayout",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.56.0"}),gn("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],lt.prototype,"enableTableFilterInPageVariant",2),m([Xe("toolBar")],lt.prototype,"toolBar",2);var wn=lt,bn=class bn extends wn{};o(bn,"ResponsiveTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],bn.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],bn.prototype,"createWithFilters",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$},generate:Di}),F({since:"1.52.0"})],bn.prototype,"popinLayout",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}})],bn.prototype,"includeItemInSelection",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],bn.prototype,"showDraftToggle",2),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],bn.prototype,"growingThreshold",2);var ri=bn,Ur=class Ur extends wn{};o(Ur,"TreeTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Ur.prototype,"type",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Ur.prototype,"showDraftToggle",2);var Jl=Ur,Ht=class Ht extends wn{};o(Ht,"AnalyticalTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Ht.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Ht.prototype,"qualifier",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Ht.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Ht.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],Ht.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Ht.prototype,"autoHide",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],Ht.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Ht.prototype,"showDraftToggle",2);var Ql=Ht,Tn=class Tn extends wn{};o(Tn,"TableALP"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Tn.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Tn.prototype,"qualifier",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.38.0"}),y({manifest:{path:o(t=>de(t),"path")}})],Tn.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Tn.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],Tn.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Tn.prototype,"autoHide",2);var qi=Tn,xa=class xa extends qi{};o(xa,"ALPResponsiveTable"),m([y({flex:{controlId:Rn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],xa.prototype,"growingThreshold",2);var ql=xa,Zl=class Zl extends qi{};o(Zl,"ALPGridTable");var Xl=Zl,ec=class ec extends qi{};o(ec,"ALPAnalyticalTable");var zl=ec,Qi=class Qi extends wn{};o(Qi,"GridTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Qi.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],Qi.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Qi.prototype,"showDraftToggle",2);var Yl=Qi;var Hr=U(K());var Yv=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${Tt(i).replace(":2f","::")}`},"getActionButtonId"),Zv=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}template::${i}`},"getStandardActionButtonId"),eC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}${oa}${i}`},"getStandardFooterActionOPButtonId"),fc=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ct(n);return`${e}action::${i}::${Tt(r)}`},"buildIntentBasedActionId"),tC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${Tt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),_n={controlId:Yv,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},Gr={controlId:Zv,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},dm={controlId:eC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},Ea={controlId:tC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},oi=class oi{};o(oi,"Action"),m([y({flex:_n})],oi.prototype,"tooltip",2),m([y({flex:_n})],oi.prototype,"icon",2),m([y({flex:_n})],oi.prototype,"activeIcon",2),m([y({flex:_n})],oi.prototype,"type",2);var tc=oi,ai=class ai{};o(ai,"ToolBarAction"),m([y({flex:_n})],ai.prototype,"tooltip",2),m([y({flex:_n})],ai.prototype,"icon",2),m([y({flex:_n})],ai.prototype,"activeIcon",2),m([y({flex:_n})],ai.prototype,"type",2);var nc=ai,si=class si{};o(si,"FooterAction"),m([y({flex:Ea})],si.prototype,"tooltip",2),m([y({flex:Ea})],si.prototype,"icon",2),m([y({flex:Ea})],si.prototype,"activeIcon",2),m([y({flex:Ea})],si.prototype,"type",2);var ic=si,Pa=class Pa{};o(Pa,"Share"),m([y({flex:Gr})],Pa.prototype,"visible",2);var rc=Pa,Aa=class Aa{};o(Aa,"ShareOP"),m([y({flex:Gr})],Aa.prototype,"visible",2);var oc=Aa,Ia=class Ia{};o(Ia,"UpAndDownNavigationOP"),m([y({flex:Gr})],Ia.prototype,"visible",2);var ac=Ia,Oa=class Oa{};o(Oa,"SaveAndEditOP"),m([y({flex:dm,generate:he})],Oa.prototype,"visible",2);var sc=Oa,Fa=class Fa{};o(Fa,"HeaderActionStandard"),m([y({flex:Gr})],Fa.prototype,"visible",2);var lc=Fa,Na=class Na{};o(Na,"ObjectPageHeaderActionStandard"),m([y({flex:Gr})],Na.prototype,"visible",2);var cc=Na,La=class La{};o(La,"ObjectPageFooterActionStandard"),m([y({flex:dm})],La.prototype,"visible",2);var uc=La;var Jr=U(K());var nC=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ct(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),iC=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ct(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),rC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),pc={controlId:nC,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$},Wr={controlId:rC,controlType:o(()=>Jr.ControlType.Button,"controlType"),createFlexChange:$},gm={...pc,controlId:iC},Va={...Wr,controlId:fc},Kr=class Kr{};o(Kr,"TableColumn"),m([y({flex:{controlId:fl,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$}})],Kr.prototype,"width",2),m([y({flex:{controlId:fl,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$},generate:Di})],Kr.prototype,"hAlign",2);var dc=Kr,vn=class vn{};o(vn,"TableColumnAction"),m([y({flex:pc})],vn.prototype,"width",2),m([y({flex:pc,generate:Di})],vn.prototype,"hAlign",2),m([y({flex:Wr})],vn.prototype,"tooltip",2),m([y({flex:Wr})],vn.prototype,"icon",2),m([y({flex:Wr})],vn.prototype,"activeIcon",2),m([y({flex:Wr})],vn.prototype,"type",2);var ja=vn,Cn=class Cn extends ja{};o(Cn,"TableColumnActionIntentBased"),m([y({flex:gm})],Cn.prototype,"width",2),m([y({flex:gm,generate:Di})],Cn.prototype,"hAlign",2),m([y({flex:Va})],Cn.prototype,"tooltip",2),m([y({flex:Va})],Cn.prototype,"icon",2),m([y({flex:Va})],Cn.prototype,"activeIcon",2),m([y({flex:Va})],Cn.prototype,"type",2);var gc=Cn,yc=class yc{};o(yc,"TableCustomColumn");var mc=yc;var bc=class bc{};o(bc,"ToolBar");var hc=bc;var ci=U(K());var Qr=o(e=>e+ci.PropertyName.chart,"getSmartChartControlId"),li=class li{};o(li,"ChartSettings"),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showLegendButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showDownloadButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.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:$}})],li.prototype,"ignoredChartTypes",2);var Tc=li;var Sn=class Sn{};o(Sn,"KPISettings"),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"model",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"entitySet",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"qualifier",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"filterable",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"detailNavigation",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Sn.prototype,"groupId",2);var vc=Sn;var mm=U(K());var oC=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Fe(e,n)},"getAvatarControlId"),Mn=class Mn{};o(Mn,"ObjectPageHeader"),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.46.0"})],Mn.prototype,"showRelatedApps",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.46.0"})],Mn.prototype,"editableHeaderContent",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.48.0"})],Mn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.48.0"}),gn("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Mn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:oC,controlType:o(()=>mm.ControlType.Avatar,"controlType"),createFlexChange:$},generate:he})],Mn.prototype,"displayShape",2);var Cc=Mn;var Da=U(K());var aC=o((e,t,n,i)=>{if(i()===Da.ControlType.Button||i()===Da.ControlType.HeaderAction){let r=n[2];return`${e}action::${Tt(r)}`}return Fe(e,t)},"getActionButtonId"),qr={controlId:aC,controlType:o(()=>Da.ControlType.HeaderAction,"controlType"),createFlexChange:$},kn=class kn{};o(kn,"HeaderAction"),m([y({flex:qr,generate:he})],kn.prototype,"visible",2),m([y({flex:qr})],kn.prototype,"tooltip",2),m([y({flex:qr})],kn.prototype,"icon",2),m([y({flex:qr})],kn.prototype,"activeIcon",2),m([y({flex:qr})],kn.prototype,"type",2);var Sc=kn;var Xr=U(K());var ka="header::headerEditable::",sC=o((e,t,n,i,r)=>`${e}${ka}${r}`,"getDataPointHeaderSectionId"),lC=o((e,t,n,i,r)=>`${e}${ka}${r}::ContactAddress`,"getAddressHeaderSectionId"),cC=o((e,t,n,i,r)=>`${e}${ka}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),ym=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Xr.FACETTITLEPREFIX)?r.split(Xr.FACETTITLEPREFIX)[1]:a;return`${e}${ka}${s}::Form`},"getFormHeaderSectionId"),zr={controlType:o(()=>Xr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:$},$a=class $a{};o($a,"CommonHeaderFacetSettings"),m([y({flex:{...zr,controlId:ym},generate:he})],$a.prototype,"visible",2);var ui=$a,Ra=class Ra extends ui{};o(Ra,"ObjectPageHeaderSectionForm"),m([y({flex:{...zr,controlId:ym}})],Ra.prototype,"visible",2);var xc=Ra,wa=class wa extends ui{};o(wa,"ObjectPageHeaderSectionChart"),m([y({flex:{...zr,controlId:cC}})],wa.prototype,"visible",2);var Ec=wa,_a=class _a extends ui{};o(_a,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...zr,controlId:sC}})],_a.prototype,"visible",2);var Pc=_a,Ma=class Ma extends ui{};o(Ma,"ObjectPageHeaderSectionAddress"),m([y({flex:{...zr,controlId:lC}})],Ma.prototype,"visible",2);var Ac=Ma,Oc=class Oc{};o(Oc,"HeaderSections");var Ic=Oc;var Nc=U(K());var uC=o((e,t,n,i)=>{if(i()===Nc.ControlType.Button){let{actionId:r}=Ct(n);return`${e}action::${Tt(r)}::Determining`}return Fe(e,t)},"getFooterActionButtonId"),Yr={controlId:uC,controlType:o(()=>Nc.ControlType.Button,"controlType"),createFlexChange:$},Un=class Un{};o(Un,"ObjectPageFooterAction"),m([y({flex:Yr,generate:he})],Un.prototype,"visible",2),m([y({flex:Yr})],Un.prototype,"tooltip",2),m([y({flex:Yr})],Un.prototype,"icon",2),m([y({flex:Yr})],Un.prototype,"activeIcon",2),m([y({flex:Yr})],Un.prototype,"type",2);var Fc=Un;var Zr=U(K());var Ua=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Fe(e,n)},"getControlId"),fi=class fi{};o(fi,"ObjectPageLayout"),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$},generate:he})],fi.prototype,"showHeaderContent",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}})],fi.prototype,"showAnchorBar",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}})],fi.prototype,"useIconTabBar",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}}),F({since:"1.34.0"})],fi.prototype,"alwaysShowContentHeader",2);var Lc=fi;var hm=U(K());var pi=class pi{};o(pi,"BaseCustomSection"),m([y({manifest:{path:hn,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),F({since:"1.52.0"})],pi.prototype,"relatedFacet",2),m([y({manifest:{path:hn,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),F({since:"1.52.0"})],pi.prototype,"relativePosition",2),m([y({manifest:{path:o((t,n,i)=>hn(t,{},i,hm.ManifestSection.generic),"path")}}),F({since:"1.52.0"})],pi.prototype,"title",2),m([y({manifest:{path:hn}}),F({since:"1.52.0"})],pi.prototype,"className",2);var no=pi,eo=class eo extends no{};o(eo,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:hn}}),F({since:"1.52.0"})],eo.prototype,"fragmentName",2),m([y({manifest:{path:hn}}),F({since:"1.52.0"})],eo.prototype,"type",2);var io=eo,to=class to extends no{};o(to,"ObjectPageCustomSectionView"),m([y({manifest:{path:hn}}),F({since:"1.52.0"})],to.prototype,"viewName",2),m([y({manifest:{path:hn}}),F({since:"1.52.0"})],to.prototype,"type",2);var ro=to;var xt=U(K());var bm=o((e,t,n,i,r)=>{let s=[et(n[1],r),xt.DefinitionName.Table];return Fe(e,s)},"getTableSectionControlId"),Tm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"FormGroup"];return Fe(e,s)},"getFormSectionControlId"),vm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"Chart"];return Fe(e,s)},"getChartSectionControlId"),di=o((e,t,n,i,r)=>{let s=[et(n[1],r),"Section"];return Fe(e,s)},"getSectionControlId"),Cm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"SubSection"];return Fe(e,s)},"getSubSectionControlId"),Sm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"ContactsList"];return Fe(e,s)},"getContactSubSectionControlId"),Ba=class Ba{};o(Ba,"ObjectPageSectionV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ba.prototype,"visible",2);var Vc=Ba,Ha=class Ha{};o(Ha,"ObjectPageSectionFormV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ha.prototype,"visible",2);var jc=Ha,Ga=class Ga{};o(Ga,"ObjectPageSectionChartV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ga.prototype,"visible",2);var Dc=Ga,Wa=class Wa{};o(Wa,"ObjectPageSectionTableV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Wa.prototype,"visible",2);var $c=Wa,Ka=class Ka{};o(Ka,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ka.prototype,"visible",2);var Rc=Ka,Ja=class Ja{};o(Ja,"ObjectPageSectionContactV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ja.prototype,"visible",2);var wc=Ja,Qa=class Qa{};o(Qa,"ObjectPageSubSectionV2"),m([y({flex:{controlId:Cm,controlType:o(()=>xt.ControlType.SubSection,"controlType"),createFlexChange:$},generate:he})],Qa.prototype,"visible",2);var _c=Qa,qa=class qa{};o(qa,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:Tm,controlType:o(()=>xt.ControlType.Group,"controlType"),createFlexChange:$},generate:he})],qa.prototype,"visible",2);var Mc=qa,Xa=class Xa{};o(Xa,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:vm,controlType:o(()=>xt.ControlType.SmartChart,"controlType"),createFlexChange:$},generate:he})],Xa.prototype,"visible",2);var kc=Xa,za=class za{};o(za,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:Sm,controlType:o(()=>xt.ControlType.SubSection,"controlType"),createFlexChange:$},generate:he})],za.prototype,"visible",2);var Uc=za,Ya=class Ya{};o(Ya,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:bm,controlType:o(()=>xt.ControlType.SmartTable,"controlType"),createFlexChange:$},generate:he})],Ya.prototype,"visible",2);var Bc=Ya;var Ot=U(K());var mi=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Ot.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=et(a[0],r),Fe(e,a)},"getSmartTableControlId"),oo=class oo{};o(oo,"QuickVariantSelectionOP"),m([y({manifest:{path:o((t,n,i)=>Zt(t,n,i)+Ot.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],oo.prototype,"showCounts",2),m([y({manifest:{path:o((t,n,i)=>Zt(t,n,i)+Ot.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],oo.prototype,"variants",2);var Hc=oo,Et=class Et{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Et,"CommonTableSettingsForSections"),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],Et.prototype,"editable",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.95.0"}),gn("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Et.prototype,"showPasteButton",2),m([y({manifest:{path:Nn}}),F({since:"1.54.0"})],Et.prototype,"multiSelect",2),m([y({manifest:{path:Nn}}),F({since:"1.70.0"})],Et.prototype,"selectAll",2),m([y({manifest:{path:Nn}}),F({since:"1.70.0"})],Et.prototype,"selectionLimit",2),m([y({manifest:{path:Zt}}),F({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.50.0"})],Et.prototype,"exportType",2),m([y({manifest:{path:Zt}}),F({since:"1.48.5"}),gn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Et.prototype,"createMode",2),m([y({manifest:{path:Zt}}),F({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),m([Xe("toolBar")],Et.prototype,"toolBar",2);var yi=Et,gi=class gi extends yi{};o(gi,"ObjectPageResponsiveTable"),m([y({manifest:{path:Nn}})],gi.prototype,"type",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$}})],gi.prototype,"includeItemInSelection",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$},generate:he}),F({since:"1.52.0"})],gi.prototype,"popinLayout",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],gi.prototype,"growingThreshold",2);var hi=gi,ao=class ao extends yi{};o(ao,"ObjectPageAnalyticalTable"),m([y({manifest:{path:Nn}})],ao.prototype,"type",2),m([y({manifest:{path:Zt}}),F({since:"1.67.0"})],ao.prototype,"condensedTableLayout",2);var Gc=ao,so=class so extends yi{};o(so,"ObjectPageGridTable"),m([y({manifest:{path:Nn}})],so.prototype,"type",2),m([y({manifest:{path:Zt}}),F({since:"1.67.0"})],so.prototype,"condensedTableLayout",2);var Wc=so,lo=class lo extends yi{};o(lo,"ObjectPageTreeTable"),m([y({manifest:{path:Nn}})],lo.prototype,"type",2),m([y({manifest:{path:Zt}}),F({since:"1.67.0"})],lo.prototype,"condensedTableLayout",2);var Kc=lo,Bn=class Bn{};o(Bn,"GlobalTableSettings"),m([y({manifest:{path:Hi}}),F({since:"1.70.0"})],Bn.prototype,"selectAll",2),m([y({manifest:{path:Hi}}),F({since:"1.78.0"})],Bn.prototype,"variantManagement",2),m([y({manifest:{path:Hi}})],Bn.prototype,"type",2),m([y({manifest:{path:Hi}}),F({since:"1.54.0"})],Bn.prototype,"multiSelect",2),m([y({manifest:{path:Hi}}),F({since:"1.67.0"})],Bn.prototype,"condensedTableLayout",2);var Jc=Bn;var xm=U(K());var fC=o((e,t,n,i,r)=>{let{actionId:a}=Ct(n),s=et(n[1],r);return`${e}${s}::action::${Tt(a).replace(":2f","::")}`},"getActionButtonId"),co={controlId:fC,controlType:o(()=>xm.ControlType.Button,"controlType"),createFlexChange:$},Hn=class Hn{};o(Hn,"ObjectPageToolBarAction"),m([y({flex:co,generate:he})],Hn.prototype,"visible",2),m([y({flex:co})],Hn.prototype,"tooltip",2),m([y({flex:co})],Hn.prototype,"icon",2),m([y({flex:co})],Hn.prototype,"activeIcon",2),m([y({flex:co})],Hn.prototype,"type",2);var Qc=Hn;var ct=U(K());function Xc(e,t,n,i){if(t.controlType===ct.ControlType.TableColumn||t.controlType===ct.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===ct.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ct.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(Xc,"addFlexChangeToConfigTableColumn");function Za(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(ct.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Za,"addFlexChangeToConfigTable");function es(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var u,f,p,g,b;let s=kt(a),l={controlId:s.controlId,propertyId:(u=s.content)==null?void 0:u.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(p=s.content)==null?void 0:p.newValue,controlType:s.controlType,creation:s.creation},c;if(s.controlType===ct.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let E=(!t.table.type||t.table.type===ct.v2.TableTypeV2.ResponsiveTable)&&!((g=l.controlId)!=null&&g.includes(ct.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ct.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${E}<${r}>`])==null?void 0:b.properties[l.propertyId]}c&&Xc(t.table,l,n,i)})}o(es,"importFlexChangesOfColumn");function Gn(e){return e.replace("/","::")}o(Gn,"convertActionKey");function zc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(zc,"convertSelector");function pC(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(pC,"addSmartFilterBarFlex");function dC(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=Tt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),u=c.find(g=>g.startsWith("sSemanticObject")),f=c.find(g=>g.startsWith("sAction")),p=f.split("sAction::")[1].replace(":2f","::");if(u){let g=`${u.split("::")[1]}::${p}`,b=`${c[0]}:::${u}:::${f}`;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(dC,"filterActions");function gC(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(gC,"addColumnActionConfigPart");function mC(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(mC,"getActionId");function yC(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,u;let l=dC(s.name,i);if(l.has(s.id)){let f=l.get(s.id),p=(c=f.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&gC(s,e,p);let g=s.configPart[p];((u=i.definitions[f])==null?void 0:u.properties[t])&&g&&(g[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(yC,"addActionFlex");function hC(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=At(e[ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ge.PropertyName.chart],t):e[ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(hC,"addSmartChartFlex");function ts(e,t,n,i){var r,a;try{let s=kt(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=zc(s.controlId),s.controlType){case ge.ControlType.SmartFilterBar:{pC(e,l,s,n);break}case ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ge.ControlType.Button:{let c=mC(s);c&&yC(e,l,s,n,c);break}case ge.ControlType.SmartChart:{hC(e,l,s,n);break}default:break}}catch(s){q(i,{severity:ge.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}o(ts,"addFlex");function tt(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 u=At(e,c);if(u!=null&&u.manifest){let f=u.manifest.path([i],t,a);s=ze(t,f),ia(u,s,c,e),fg(l,s,f,r)}}}o(tt,"transferSettingsOfObject");function ns(e,t){var r,a,s,l,c,u,f,p,g;let n=e[ge.ManifestSection.generic].pages[t],i=ge.v2.TableTypeV2.ResponsiveTable;return(r=e[ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ge.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.tableSettings)==null?void 0:f.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=ge.v2.TableTypeV2.AnalyticalTable),i}o(ns,"determineTableType");function Em(e,t,n,i,r,a,s){var l,c;if(e.customData||e["table:customData"]){let u=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(u.substr(1,u.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}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(g.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(g)}}o(Em,"evaluateFragmentColumn");function bC(e,t,n,i){let r;if(e===ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[a].fragmentName)}return r}o(bC,"determineCellsFragmentName");function TC(e,t,n,i,r,a,s){var l;if(e[0]){let u=JSON.parse((0,Pm.xml2json)(e[0].fileContent,{compact:!0}))[rn];try{let f=Mr(u);if(f)if((l=t[ge.PropertyName.table])!=null&&l.columns||(t[ge.PropertyName.table].columns={}),Array.isArray(f))for(let p of f)Em(p,n,i,r,t,a,s);else Em(f,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(TC,"analyzeFilteredFragments");function vC(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,u]=l,f=l[2];if(c&&u===t){let p=e[s].type?e[s].type.toLowerCase():"xml",g=e[s].fragmentName;if(!g)continue;let b=bC(c,e,u,f),E=g.split(".");g=E[E.length-1]+ge.FRAGMENTNAMEPART+p;let I=i.fragments.filter(L=>L.dataSourceUri.endsWith(g));try{TC(I,n,e,s,f,c,b)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{es(i,n,L.id,L,r)})}}}o(vC,"processViewExtensions");function Yi(e,t,n,i,r,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[ge.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let u=ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][u];if(!f)return;let p=r&&r.target?r.target:n.entitySet;vC(f,p,e,t,a)}}o(Yi,"addFragments");function is(e,t,n){if(e.header={actions:{}},n[ge.DefinitionName.HeaderActionsStandard]){let i=n[ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ge.PageTypeV2.ListReport,r,{})}}o(is,"importHeaderActions");var Re=U(K());var Im=U(K());var Yc={};Po(Yc,{ANNOERR:()=>MC,ANNOTATIONFILE:()=>kC,COMPONENTNOTDEFINED:()=>UC,CONTEXTPATHCOULDNOTBERESOLVED:()=>$C,ENTITYSETNOTFOUND:()=>DC,FLEXERROR:()=>XC,INCONSISTENTSCHEMA:()=>nS,INVALIDANCHOR:()=>zC,INVALIDSPECFORV4:()=>xC,INVALIDTARGETDEFINITION:()=>ZC,NOALP:()=>wC,NOBASEPATH:()=>EC,NOCHARTS:()=>GC,NOENTITYSET:()=>FC,NOENTITYTYPE4SET:()=>NC,NOFE:()=>AC,NOFRAGMENT:()=>YC,NOGENERICSCHEMA:()=>IC,NOID4SECTION:()=>eS,NOLINEITEMANDCHARTS:()=>WC,NOLINEITEMS:()=>HC,NOLR:()=>RC,NOPAGEFORENTITYSET:()=>OC,NOPAGES:()=>PC,NOPRESENTATIONVARIANT:()=>LC,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>VC,NOPRESENTATIONVARIANTFORSPV:()=>jC,NOROUTING:()=>BC,NOROUTINGID:()=>qC,NOTARGET:()=>QC,NOTARGETS:()=>JC,NOTEMPLATE:()=>_C,NOVISUALIZATIONS:()=>KC,TYPEERROR:()=>iS,UNKNOWNMINUI5VERSION:()=>SC,WRONGMINUI5VERSION:()=>CC,XMLPARSEFAILURE:()=>tS,default:()=>rS});var CC="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}}",xC="The given specification version cannot be used for this app, you would need to upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",EC="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",PC="No pages found in manifest for app with id '{{- appId}}'",AC="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",IC="No generic schema found while generating page schema for {{- pageType}}",OC="No page found in manifest for entitySet '{{- entitySet}}'",FC="No entitySet defined for page '{{- pageName}}'",NC="No entityType could be found for the given entity set '{{- entitySetName}}'",LC="No PresentationVariant defined for '{{- key}}'",VC="No PresentationVariant found for default SelectionPresentationVariant",jC="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",DC="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",$C="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",RC="No page found in manifest for list report",wC="No page found in manifest for analytical list page",_C="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",MC="Error while parsing annotation files",kC="Annotation file: '{{- file}}'",UC="Component name is not defined for page '{{- pageName}}'",BC="Incomplete manifest definition: no routing defined",HC="UI.LineItem annotation has not been defined",GC="UI.Chart annotation has not been defined",WC="Neither UI.LineItem nor UI.Chart annotation has been defined",KC="Empty Collection for Visualizations",JC="Incomplete manifest definition: no targets defined",QC="Invalid reference: annotation target '{{- target}}' not found",qC="No page found in manifest for routingId '{{- routingId}}'",XC="Error while parsing flex change",zC="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",YC="fragmentName is undefined for columnKey '{{- columnKey}}'",ZC="Invalid routing target definition in manifest: '{{- target}}'",eS="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",tS="Parsing of XML file failed with error - {{- error}}",nS="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",iS="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",rS={WRONGMINUI5VERSION:CC,UNKNOWNMINUI5VERSION:SC,INVALIDSPECFORV4:xC,NOBASEPATH:EC,NOPAGES:PC,NOFE:AC,NOGENERICSCHEMA:IC,NOPAGEFORENTITYSET:OC,NOENTITYSET:FC,NOENTITYTYPE4SET:NC,NOPRESENTATIONVARIANT:LC,NOPRESENTATIONVARIANTFORDEFAULTSPV:VC,NOPRESENTATIONVARIANTFORSPV:jC,ENTITYSETNOTFOUND:DC,CONTEXTPATHCOULDNOTBERESOLVED:$C,NOLR:RC,NOALP:wC,NOTEMPLATE:_C,ANNOERR:MC,ANNOTATIONFILE:kC,COMPONENTNOTDEFINED:UC,NOROUTING:BC,NOLINEITEMS:HC,NOCHARTS:GC,NOLINEITEMANDCHARTS:WC,NOVISUALIZATIONS:KC,NOTARGETS:JC,NOTARGET:QC,NOROUTINGID:qC,FLEXERROR:XC,INVALIDANCHOR:zC,NOFRAGMENT:YC,INVALIDTARGETDEFINITION:ZC,NOID4SECTION:eS,XMLPARSEFAILURE:tS,INCONSISTENTSCHEMA:nS,TYPEERROR:iS};function Am(e){e.addResourceBundle(e.language,"translation",Yc)}o(Am,"initI18n");function ut(e="en"){R.init({resources:{en:{translation:Im.default}},lng:e,fallbackLng:"en",joinArrays:`
86
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var ba=require("path");var nn="core:FragmentDefinition",ha="sap.ui.table",Bl=new Map([[ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:ha,name:"Column"}],[ve.ViewTemplateType.GridTableColumnsExtension,{namespace:ha,name:"Column"}],[ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ha,name:"AnalyticalColumn"}]]),Rv=new Map([[ve.v2.FE_TEMPLATE_V2_LIST_REPORT,ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ve.v2.FE_TEMPLATE_V2_ALP,ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),pm={type:"element",name:"Text",attributes:{text:"Placeholder"}},_v=JSON.stringify(pm);function Mv(e,t){var i;let n=t?(i=e==null?void 0:e[nn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(Mv,"getFragmentNamespaces");function fm(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(fm,"getTagName");function Ta(e,t,n=e){let i=Mv(n,!!(t||n!==e));if(t){let r=Bl.get(t);return fm(r,i.get(r.namespace))}else{let r=Bl.keys();for(let a of r){let s=Bl.get(a),l=i?fm(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Ta,"getTagNameFromFragmentJSON");function Mr(e,t=e){let n=Ta(e,void 0,t);return e[n]}o(Mr,"getRootCustomColumnFromFragmentJSON");function kv(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(kv,"addP13nData");function dm(e,t){var l,c,u;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(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,r=kv(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=(u=t[s])==null?void 0:u.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(dm,"handleFragmentColumn");function Uv(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]+ve.FRAGMENTNAMEPART+a;for(let c of t){let u=c.dataSourceUri.split(ba.sep);if(u[u.length-1]===l){let f=JSON.parse((0,Ht.xml2json)(c.fileContent,{compact:!0}));try{let p=Ta(f[nn]);p&&(delete f[nn][p],c.fileContent=(0,Ht.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}o(Uv,"deleteColumnsFromFragment");function gm(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===_v&&(e.splice(n,1),t-=1,t===0));n++);}o(gm,"deleteNumberOfCells");function Bv(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Ht.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(u=>u.type==="element");c&&gm(l.elements[0].elements,c.length),s.fileContent=(0,Ht.json2xml)(JSON.stringify(l),{spaces:4});break}}o(Bv,"deleteCellsFromFragment");function va(e,t,n,i){if(i){Uv(e,i,t,n);let r=t.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&Bv(a,i,n)}}o(va,"deleteColumnFromFragment");function Hv(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(pm)}o(Hv,"addNewColumnsInFragment");function Gv(e,t){let n=JSON.parse((0,Ht.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)Hv(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;gm(a,r)}e.fileContent=(0,Ht.json2xml)(JSON.stringify(n),{spaces:4})}}o(Gv,"updateNonEmptyCellsFragment");function Wv(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(ba.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=ve.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Ul(n):Gv(r,n);break}}return i}o(Wv,"updateCellsFragment");function Kv(e,t,n,i,r){var f;let a,s,l=t.manifest,c=ze(l,e),u=c.type?c.type.toLowerCase():"xml";c.type=u.toUpperCase();for(let p of n){if(!p.fragmentName){q(r,{severity:ve.LogSeverity.Error,message:w.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}t.manifestChangeIndicator=ve.ChangeIndicator.Updated,c.fragmentName=p.fragmentName,c.className=p.className,a=((f=p.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,ba.sep))+ve.FRAGMENTNAMEPART+u}if(e.indexOf(ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=ve.ChangeIndicator.Updated;let p=e.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),g=ze(l,p),b=n.reduce((E,I)=>I.cellsFragmentName?I:E);b&&b.cellsFragmentName?(g.fragmentName=s=b.cellsFragmentName,g.className=n[0].className,g.type=u.toUpperCase()):Jg(l,p)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:u}}o(Kv,"exportCustomColumnsToManifest");function Jv(e,t,n,i,r){let a=Ml(e,t);if(a){let s=JSON.parse((0,Ht.xml2json)(a,{compact:!0})),l=Mr(s,i);if(Array.isArray(n))n.some(u=>JSON.stringify(u)===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(Jv,"insertNewColumnInFragment");function Qv(e,t){let n=[];for(let i=0;i<e.length;i++)dm(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(Qv,"processCustomColumnInArray");function qv(e,t,n){if(e){if(Array.isArray(e))Qv(e,t);else if(!dm(e,t)){let r=Ta(n[nn]);r&&(delete n[nn][r],e=void 0)}}return e}o(qv,"maintainExistingColumnInFragment");function Xv(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Jv(a,i,n,r,s)}return n}o(Xv,"insertNewColumnsInFragment");function zv(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=ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=kl(i,r);else{let c=JSON.parse((0,Ht.xml2json)(s.fileContent,{compact:!0})),u=JSON.stringify(c);l=Mr(c[nn]),l=qv(l,i,c),l=Xv(i,n,l,r,c);let f=Ta(c,r);c[nn][f]=l;let p=JSON.stringify(c);p!==u&&(s.fileContent=(0,Ht.json2xml)(p,{compact:!0,spaces:4}))}break}return a}o(zv,"updateColumnsInFragment");function Hl(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:u,fragmentType:f}=Kv(t,e,n,i,a),p=JSON.parse(JSON.stringify(n)),g=l.fragmentName,b=g.substr(i.length+1),E=b.split(".");g=E[E.length-1]+ve.FRAGMENTNAMEPART+f;let L=u==null?void 0:u.split("."),G=L?L[L.length-1]:null,oe=G?G+ve.FRAGMENTNAMEPART+f:null,Y=zv(s,g,b,p,r),re=!1;if(u?re=Wv(s,oe,n):re=!0,!Y){let J={fileContent:kl(p,r),dataSourceUri:c,changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}if(!re){let J={fileContent:Ul(n),dataSourceUri:c.replace(g,oe),changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}}o(Hl,"exportCustomColumnsToFragment");var Ca=o((e,t,n,i)=>{var c,u,f,p;if(!e)return;let r=Rv.get((c=e.component)==null?void 0:c.name);if(!i){let g=(p=(f=(u=e.component)==null?void 0:u.settings)==null?void 0:f.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 Me=U(K());var wn=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Me.PropertyName.table:Fe(e,t),"getSmartTableControlId");function Yv(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let c in s)l.indexOf(c)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[c]=s[c],delete s[c]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(Yv,"exportVariants");function Zv(e,t){t.variants&&(Object.keys(t.variants).length>0?Yv(e,t):delete e.variants)}o(Zv,"exportQuickVariantSelectionX");var Sa=class Sa{};o(Sa,"CreateWithFilters"),m([y({manifest:{path:o(t=>de(t)+"/createWithFilters","path")}})],Sa.prototype,"strategy",2);var Gl=Sa;function Br(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(Br,"importType");function Xi(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Xi,"exportType");function zi(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(zi,"deleteType");var kr=class kr{};o(kr,"QuickVariantSelection"),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],kr.prototype,"showCounts",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],kr.prototype,"variants",2);var Wl=kr,Ji=class Ji{};o(Ji,"QuickVariantSelectionX"),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Ji.prototype,"showCounts",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path")}}),F({since:"1.48.0"})],Ji.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>de(t)+Me.QUICKVARPATHX,"path"),export:Zv}}),F({since:"1.48.0"})],Ji.prototype,"variants",2);var Kl=Ji,lt=class lt{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(lt,"CommonTableSettings"),m([y({flex:{controlId:Fe,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.38.0"})],lt.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.26.0"})],lt.prototype,"useExportToExcel",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.50.0"})],lt.prototype,"exportType",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],lt.prototype,"quickVariantSelection",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.48.0"})],lt.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.38.0"})],lt.prototype,"multiSelect",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.70.0"})],lt.prototype,"selectAll",2),m([y({manifest:{path:o(t=>da(t),"path")}}),F({since:"1.70.0"})],lt.prototype,"selectionLimit",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.40.0"})],lt.prototype,"enableAutoBinding",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.42.0"})],lt.prototype,"condensedTableLayout",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.56.0"}),dn("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],lt.prototype,"enableTableFilterInPageVariant",2),m([Xe("toolBar")],lt.prototype,"toolBar",2);var Rn=lt,hn=class hn extends Rn{};o(hn,"ResponsiveTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],hn.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],hn.prototype,"createWithFilters",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$},generate:Di}),F({since:"1.52.0"})],hn.prototype,"popinLayout",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}})],hn.prototype,"includeItemInSelection",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],hn.prototype,"showDraftToggle",2),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],hn.prototype,"growingThreshold",2);var ri=hn,Ur=class Ur extends Rn{};o(Ur,"TreeTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Ur.prototype,"type",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Ur.prototype,"showDraftToggle",2);var Jl=Ur,Gt=class Gt extends Rn{};o(Gt,"AnalyticalTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Gt.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Gt.prototype,"qualifier",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Gt.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Gt.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],Gt.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>de(t),"path")}})],Gt.prototype,"autoHide",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],Gt.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Gt.prototype,"showDraftToggle",2);var Ql=Gt,bn=class bn extends Rn{};o(bn,"TableALP"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],bn.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}})],bn.prototype,"qualifier",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.38.0"}),y({manifest:{path:o(t=>de(t),"path")}})],bn.prototype,"defaultContentView",2),m([y({manifest:{path:o(t=>de(t),"path")}})],bn.prototype,"defaultFilterMode",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.60.0"})],bn.prototype,"contentTitle",2),m([y({manifest:{path:o(t=>de(t),"path")}})],bn.prototype,"autoHide",2);var qi=bn,xa=class xa extends qi{};o(xa,"ALPResponsiveTable"),m([y({flex:{controlId:wn,controlType:o(()=>Me.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],xa.prototype,"growingThreshold",2);var ql=xa,Zl=class Zl extends qi{};o(Zl,"ALPGridTable");var Xl=Zl,ec=class ec extends qi{};o(ec,"ALPAnalyticalTable");var zl=ec,Qi=class Qi extends Rn{};o(Qi,"GridTable"),m([y({manifest:{path:o(t=>de(t),"path"),import:Br,export:Xi,delete:zi}}),F({since:"1.50.0"})],Qi.prototype,"type",2),m([y({manifest:{path:o(t=>de(t),"path")}}),F({since:"1.54.0"})],Qi.prototype,"createWithFilters",2),m([y({manifest:{path:o(()=>Me.GENERICAPPSETTINGS,"path")}}),F({since:"1.63.0"})],Qi.prototype,"showDraftToggle",2);var Yl=Qi;var Hr=U(K());var eC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${Tt(i).replace(":2f","::")}`},"getActionButtonId"),tC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}template::${i}`},"getStandardActionButtonId"),nC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}${oa}${i}`},"getStandardFooterActionOPButtonId"),fc=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ct(n);return`${e}action::${i}::${Tt(r)}`},"buildIntentBasedActionId"),iC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${Tt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),_n={controlId:eC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},Gr={controlId:tC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},mm={controlId:nC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},Ea={controlId:iC,controlType:o(()=>Hr.ControlType.Button,"controlType"),createFlexChange:$},oi=class oi{};o(oi,"Action"),m([y({flex:_n})],oi.prototype,"tooltip",2),m([y({flex:_n})],oi.prototype,"icon",2),m([y({flex:_n})],oi.prototype,"activeIcon",2),m([y({flex:_n})],oi.prototype,"type",2);var tc=oi,ai=class ai{};o(ai,"ToolBarAction"),m([y({flex:_n})],ai.prototype,"tooltip",2),m([y({flex:_n})],ai.prototype,"icon",2),m([y({flex:_n})],ai.prototype,"activeIcon",2),m([y({flex:_n})],ai.prototype,"type",2);var nc=ai,si=class si{};o(si,"FooterAction"),m([y({flex:Ea})],si.prototype,"tooltip",2),m([y({flex:Ea})],si.prototype,"icon",2),m([y({flex:Ea})],si.prototype,"activeIcon",2),m([y({flex:Ea})],si.prototype,"type",2);var ic=si,Pa=class Pa{};o(Pa,"Share"),m([y({flex:Gr})],Pa.prototype,"visible",2);var rc=Pa,Aa=class Aa{};o(Aa,"ShareOP"),m([y({flex:Gr})],Aa.prototype,"visible",2);var oc=Aa,Ia=class Ia{};o(Ia,"UpAndDownNavigationOP"),m([y({flex:Gr})],Ia.prototype,"visible",2);var ac=Ia,Oa=class Oa{};o(Oa,"SaveAndEditOP"),m([y({flex:mm,generate:he})],Oa.prototype,"visible",2);var sc=Oa,Fa=class Fa{};o(Fa,"HeaderActionStandard"),m([y({flex:Gr})],Fa.prototype,"visible",2);var lc=Fa,Na=class Na{};o(Na,"ObjectPageHeaderActionStandard"),m([y({flex:Gr})],Na.prototype,"visible",2);var cc=Na,La=class La{};o(La,"ObjectPageFooterActionStandard"),m([y({flex:mm})],La.prototype,"visible",2);var uc=La;var Jr=U(K());var rC=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ct(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),oC=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ct(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),aC=o((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),pc={controlId:rC,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$},Wr={controlId:aC,controlType:o(()=>Jr.ControlType.Button,"controlType"),createFlexChange:$},ym={...pc,controlId:oC},Va={...Wr,controlId:fc},Kr=class Kr{};o(Kr,"TableColumn"),m([y({flex:{controlId:fl,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$}})],Kr.prototype,"width",2),m([y({flex:{controlId:fl,controlType:o(()=>Jr.ControlType.TableColumn,"controlType"),createFlexChange:$},generate:Di})],Kr.prototype,"hAlign",2);var dc=Kr,Tn=class Tn{};o(Tn,"TableColumnAction"),m([y({flex:pc})],Tn.prototype,"width",2),m([y({flex:pc,generate:Di})],Tn.prototype,"hAlign",2),m([y({flex:Wr})],Tn.prototype,"tooltip",2),m([y({flex:Wr})],Tn.prototype,"icon",2),m([y({flex:Wr})],Tn.prototype,"activeIcon",2),m([y({flex:Wr})],Tn.prototype,"type",2);var ja=Tn,vn=class vn extends ja{};o(vn,"TableColumnActionIntentBased"),m([y({flex:ym})],vn.prototype,"width",2),m([y({flex:ym,generate:Di})],vn.prototype,"hAlign",2),m([y({flex:Va})],vn.prototype,"tooltip",2),m([y({flex:Va})],vn.prototype,"icon",2),m([y({flex:Va})],vn.prototype,"activeIcon",2),m([y({flex:Va})],vn.prototype,"type",2);var gc=vn,yc=class yc{};o(yc,"TableCustomColumn");var mc=yc;var bc=class bc{};o(bc,"ToolBar");var hc=bc;var ci=U(K());var Qr=o(e=>e+ci.PropertyName.chart,"getSmartChartControlId"),li=class li{};o(li,"ChartSettings"),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showLegendButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showDownloadButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.ControlType.SmartChart,"controlType"),createFlexChange:$}})],li.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:Qr,controlType:o(()=>ci.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:$}})],li.prototype,"ignoredChartTypes",2);var Tc=li;var Cn=class Cn{};o(Cn,"KPISettings"),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"model",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"entitySet",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"qualifier",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"filterable",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"detailNavigation",2),m([y({manifest:{path:o((t,n,i)=>ii(t,i),"path")}})],Cn.prototype,"groupId",2);var vc=Cn;var hm=U(K());var sC=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Fe(e,n)},"getAvatarControlId"),Mn=class Mn{};o(Mn,"ObjectPageHeader"),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.46.0"})],Mn.prototype,"showRelatedApps",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.46.0"})],Mn.prototype,"editableHeaderContent",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.48.0"})],Mn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.48.0"}),dn("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Mn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:sC,controlType:o(()=>hm.ControlType.Avatar,"controlType"),createFlexChange:$},generate:he})],Mn.prototype,"displayShape",2);var Cc=Mn;var Da=U(K());var lC=o((e,t,n,i)=>{if(i()===Da.ControlType.Button||i()===Da.ControlType.HeaderAction){let r=n[2];return`${e}action::${Tt(r)}`}return Fe(e,t)},"getActionButtonId"),qr={controlId:lC,controlType:o(()=>Da.ControlType.HeaderAction,"controlType"),createFlexChange:$},kn=class kn{};o(kn,"HeaderAction"),m([y({flex:qr,generate:he})],kn.prototype,"visible",2),m([y({flex:qr})],kn.prototype,"tooltip",2),m([y({flex:qr})],kn.prototype,"icon",2),m([y({flex:qr})],kn.prototype,"activeIcon",2),m([y({flex:qr})],kn.prototype,"type",2);var Sc=kn;var Xr=U(K());var ka="header::headerEditable::",cC=o((e,t,n,i,r)=>`${e}${ka}${r}`,"getDataPointHeaderSectionId"),uC=o((e,t,n,i,r)=>`${e}${ka}${r}::ContactAddress`,"getAddressHeaderSectionId"),fC=o((e,t,n,i,r)=>`${e}${ka}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),bm=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Xr.FACETTITLEPREFIX)?r.split(Xr.FACETTITLEPREFIX)[1]:a;return`${e}${ka}${s}::Form`},"getFormHeaderSectionId"),zr={controlType:o(()=>Xr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:$},$a=class $a{};o($a,"CommonHeaderFacetSettings"),m([y({flex:{...zr,controlId:bm},generate:he})],$a.prototype,"visible",2);var ui=$a,wa=class wa extends ui{};o(wa,"ObjectPageHeaderSectionForm"),m([y({flex:{...zr,controlId:bm}})],wa.prototype,"visible",2);var xc=wa,Ra=class Ra extends ui{};o(Ra,"ObjectPageHeaderSectionChart"),m([y({flex:{...zr,controlId:fC}})],Ra.prototype,"visible",2);var Ec=Ra,_a=class _a extends ui{};o(_a,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...zr,controlId:cC}})],_a.prototype,"visible",2);var Pc=_a,Ma=class Ma extends ui{};o(Ma,"ObjectPageHeaderSectionAddress"),m([y({flex:{...zr,controlId:uC}})],Ma.prototype,"visible",2);var Ac=Ma,Oc=class Oc{};o(Oc,"HeaderSections");var Ic=Oc;var Nc=U(K());var pC=o((e,t,n,i)=>{if(i()===Nc.ControlType.Button){let{actionId:r}=Ct(n);return`${e}action::${Tt(r)}::Determining`}return Fe(e,t)},"getFooterActionButtonId"),Yr={controlId:pC,controlType:o(()=>Nc.ControlType.Button,"controlType"),createFlexChange:$},Un=class Un{};o(Un,"ObjectPageFooterAction"),m([y({flex:Yr,generate:he})],Un.prototype,"visible",2),m([y({flex:Yr})],Un.prototype,"tooltip",2),m([y({flex:Yr})],Un.prototype,"icon",2),m([y({flex:Yr})],Un.prototype,"activeIcon",2),m([y({flex:Yr})],Un.prototype,"type",2);var Fc=Un;var Zr=U(K());var Ua=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Fe(e,n)},"getControlId"),fi=class fi{};o(fi,"ObjectPageLayout"),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$},generate:he})],fi.prototype,"showHeaderContent",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}})],fi.prototype,"showAnchorBar",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}})],fi.prototype,"useIconTabBar",2),m([y({flex:{controlId:Ua,controlType:o(()=>Zr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:$}}),F({since:"1.34.0"})],fi.prototype,"alwaysShowContentHeader",2);var Lc=fi;var Tm=U(K());var pi=class pi{};o(pi,"BaseCustomSection"),m([y({manifest:{path:yn,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),F({since:"1.52.0"})],pi.prototype,"relatedFacet",2),m([y({manifest:{path:yn,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),F({since:"1.52.0"})],pi.prototype,"relativePosition",2),m([y({manifest:{path:o((t,n,i)=>yn(t,{},i,Tm.ManifestSection.generic),"path")}}),F({since:"1.52.0"})],pi.prototype,"title",2),m([y({manifest:{path:yn}}),F({since:"1.52.0"})],pi.prototype,"className",2);var no=pi,eo=class eo extends no{};o(eo,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:yn}}),F({since:"1.52.0"})],eo.prototype,"fragmentName",2),m([y({manifest:{path:yn}}),F({since:"1.52.0"})],eo.prototype,"type",2);var io=eo,to=class to extends no{};o(to,"ObjectPageCustomSectionView"),m([y({manifest:{path:yn}}),F({since:"1.52.0"})],to.prototype,"viewName",2),m([y({manifest:{path:yn}}),F({since:"1.52.0"})],to.prototype,"type",2);var ro=to;var xt=U(K());var vm=o((e,t,n,i,r)=>{let s=[et(n[1],r),xt.DefinitionName.Table];return Fe(e,s)},"getTableSectionControlId"),Cm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"FormGroup"];return Fe(e,s)},"getFormSectionControlId"),Sm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"Chart"];return Fe(e,s)},"getChartSectionControlId"),di=o((e,t,n,i,r)=>{let s=[et(n[1],r),"Section"];return Fe(e,s)},"getSectionControlId"),xm=o((e,t,n,i,r)=>{let s=[et(n[1],r),"SubSection"];return Fe(e,s)},"getSubSectionControlId"),Em=o((e,t,n,i,r)=>{let s=[et(n[1],r),"ContactsList"];return Fe(e,s)},"getContactSubSectionControlId"),Ba=class Ba{};o(Ba,"ObjectPageSectionV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ba.prototype,"visible",2);var Vc=Ba,Ha=class Ha{};o(Ha,"ObjectPageSectionFormV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ha.prototype,"visible",2);var jc=Ha,Ga=class Ga{};o(Ga,"ObjectPageSectionChartV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ga.prototype,"visible",2);var Dc=Ga,Wa=class Wa{};o(Wa,"ObjectPageSectionTableV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Wa.prototype,"visible",2);var $c=Wa,Ka=class Ka{};o(Ka,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ka.prototype,"visible",2);var wc=Ka,Ja=class Ja{};o(Ja,"ObjectPageSectionContactV2"),m([y({flex:{controlId:di,controlType:o(()=>xt.ControlType.Section,"controlType"),createFlexChange:$},generate:he})],Ja.prototype,"visible",2);var Rc=Ja,Qa=class Qa{};o(Qa,"ObjectPageSubSectionV2"),m([y({flex:{controlId:xm,controlType:o(()=>xt.ControlType.SubSection,"controlType"),createFlexChange:$},generate:he})],Qa.prototype,"visible",2);var _c=Qa,qa=class qa{};o(qa,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:Cm,controlType:o(()=>xt.ControlType.Group,"controlType"),createFlexChange:$},generate:he})],qa.prototype,"visible",2);var Mc=qa,Xa=class Xa{};o(Xa,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:Sm,controlType:o(()=>xt.ControlType.SmartChart,"controlType"),createFlexChange:$},generate:he})],Xa.prototype,"visible",2);var kc=Xa,za=class za{};o(za,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:Em,controlType:o(()=>xt.ControlType.SubSection,"controlType"),createFlexChange:$},generate:he})],za.prototype,"visible",2);var Uc=za,Ya=class Ya{};o(Ya,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:vm,controlType:o(()=>xt.ControlType.SmartTable,"controlType"),createFlexChange:$},generate:he})],Ya.prototype,"visible",2);var Bc=Ya;var Ot=U(K());var mi=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Ot.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=et(a[0],r),Fe(e,a)},"getSmartTableControlId"),oo=class oo{};o(oo,"QuickVariantSelectionOP"),m([y({manifest:{path:o((t,n,i)=>Yt(t,n,i)+Ot.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],oo.prototype,"showCounts",2),m([y({manifest:{path:o((t,n,i)=>Yt(t,n,i)+Ot.QUICKVARPATH,"path")}}),F({since:"1.48.0"})],oo.prototype,"variants",2);var Hc=oo,Et=class Et{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Et,"CommonTableSettingsForSections"),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],Et.prototype,"editable",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.95.0"}),dn("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Et.prototype,"showPasteButton",2),m([y({manifest:{path:Nn}}),F({since:"1.54.0"})],Et.prototype,"multiSelect",2),m([y({manifest:{path:Nn}}),F({since:"1.70.0"})],Et.prototype,"selectAll",2),m([y({manifest:{path:Nn}}),F({since:"1.70.0"})],Et.prototype,"selectionLimit",2),m([y({manifest:{path:Yt}}),F({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.SmartTable,"controlType"),createFlexChange:$}}),F({since:"1.50.0"})],Et.prototype,"exportType",2),m([y({manifest:{path:Yt}}),F({since:"1.48.5"}),dn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Et.prototype,"createMode",2),m([y({manifest:{path:Yt}}),F({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),m([Xe("toolBar")],Et.prototype,"toolBar",2);var yi=Et,gi=class gi extends yi{};o(gi,"ObjectPageResponsiveTable"),m([y({manifest:{path:Nn}})],gi.prototype,"type",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$}})],gi.prototype,"includeItemInSelection",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$},generate:he}),F({since:"1.52.0"})],gi.prototype,"popinLayout",2),m([y({flex:{controlId:mi,controlType:o(()=>Ot.ControlType.Table,"controlType"),createFlexChange:$}}),F({since:"1.16.0"})],gi.prototype,"growingThreshold",2);var hi=gi,ao=class ao extends yi{};o(ao,"ObjectPageAnalyticalTable"),m([y({manifest:{path:Nn}})],ao.prototype,"type",2),m([y({manifest:{path:Yt}}),F({since:"1.67.0"})],ao.prototype,"condensedTableLayout",2);var Gc=ao,so=class so extends yi{};o(so,"ObjectPageGridTable"),m([y({manifest:{path:Nn}})],so.prototype,"type",2),m([y({manifest:{path:Yt}}),F({since:"1.67.0"})],so.prototype,"condensedTableLayout",2);var Wc=so,lo=class lo extends yi{};o(lo,"ObjectPageTreeTable"),m([y({manifest:{path:Nn}})],lo.prototype,"type",2),m([y({manifest:{path:Yt}}),F({since:"1.67.0"})],lo.prototype,"condensedTableLayout",2);var Kc=lo,Bn=class Bn{};o(Bn,"GlobalTableSettings"),m([y({manifest:{path:Hi}}),F({since:"1.70.0"})],Bn.prototype,"selectAll",2),m([y({manifest:{path:Hi}}),F({since:"1.78.0"})],Bn.prototype,"variantManagement",2),m([y({manifest:{path:Hi}})],Bn.prototype,"type",2),m([y({manifest:{path:Hi}}),F({since:"1.54.0"})],Bn.prototype,"multiSelect",2),m([y({manifest:{path:Hi}}),F({since:"1.67.0"})],Bn.prototype,"condensedTableLayout",2);var Jc=Bn;var Pm=U(K());var dC=o((e,t,n,i,r)=>{let{actionId:a}=Ct(n),s=et(n[1],r);return`${e}${s}::action::${Tt(a).replace(":2f","::")}`},"getActionButtonId"),co={controlId:dC,controlType:o(()=>Pm.ControlType.Button,"controlType"),createFlexChange:$},Hn=class Hn{};o(Hn,"ObjectPageToolBarAction"),m([y({flex:co,generate:he})],Hn.prototype,"visible",2),m([y({flex:co})],Hn.prototype,"tooltip",2),m([y({flex:co})],Hn.prototype,"icon",2),m([y({flex:co})],Hn.prototype,"activeIcon",2),m([y({flex:co})],Hn.prototype,"type",2);var Qc=Hn;var ct=U(K());function Xc(e,t,n,i){if(t.controlType===ct.ControlType.TableColumn||t.controlType===ct.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===ct.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ct.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(Xc,"addFlexChangeToConfigTableColumn");function Za(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(ct.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Za,"addFlexChangeToConfigTable");function es(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var u,f,p,g,b;let s=Ut(a),l={controlId:s.controlId,propertyId:(u=s.content)==null?void 0:u.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(p=s.content)==null?void 0:p.newValue,controlType:s.controlType,creation:s.creation},c;if(s.controlType===ct.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let E=(!t.table.type||t.table.type===ct.v2.TableTypeV2.ResponsiveTable)&&!((g=l.controlId)!=null&&g.includes(ct.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ct.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${E}<${r}>`])==null?void 0:b.properties[l.propertyId]}c&&Xc(t.table,l,n,i)})}o(es,"importFlexChangesOfColumn");function Gn(e){return e.replace("/","::")}o(Gn,"convertActionKey");function zc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(zc,"convertSelector");function gC(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(gC,"addSmartFilterBarFlex");function mC(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=Tt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),u=c.find(g=>g.startsWith("sSemanticObject")),f=c.find(g=>g.startsWith("sAction")),p=f.split("sAction::")[1].replace(":2f","::");if(u){let g=`${u.split("::")[1]}::${p}`,b=`${c[0]}:::${u}:::${f}`;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(mC,"filterActions");function yC(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(yC,"addColumnActionConfigPart");function hC(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(hC,"getActionId");function bC(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,u;let l=mC(s.name,i);if(l.has(s.id)){let f=l.get(s.id),p=(c=f.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&yC(s,e,p);let g=s.configPart[p];((u=i.definitions[f])==null?void 0:u.properties[t])&&g&&(g[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(bC,"addActionFlex");function TC(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=At(e[ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ge.PropertyName.chart],t):e[ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(TC,"addSmartChartFlex");function ts(e,t,n,i){var r,a;try{let s=Ut(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=zc(s.controlId),s.controlType){case ge.ControlType.SmartFilterBar:{gC(e,l,s,n);break}case ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ge.ControlType.Button:{let c=hC(s);c&&bC(e,l,s,n,c);break}case ge.ControlType.SmartChart:{TC(e,l,s,n);break}default:break}}catch(s){q(i,{severity:ge.LogSeverity.Error,message:w.t("FLEXERROR")},...s)}}o(ts,"addFlex");function tt(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 u=At(e,c);if(u!=null&&u.manifest){let f=u.manifest.path([i],t,a);s=ze(t,f),ia(u,s,c,e),dg(l,s,f,r)}}}o(tt,"transferSettingsOfObject");function ns(e,t){var r,a,s,l,c,u,f,p,g;let n=e[ge.ManifestSection.generic].pages[t],i=ge.v2.TableTypeV2.ResponsiveTable;return(r=e[ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ge.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.tableSettings)==null?void 0:f.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=ge.v2.TableTypeV2.AnalyticalTable),i}o(ns,"determineTableType");function Am(e,t,n,i,r,a,s){var l,c;if(e.customData||e["table:customData"]){let u=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(u.substr(1,u.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}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(g.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(g)}}o(Am,"evaluateFragmentColumn");function vC(e,t,n,i){let r;if(e===ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[a].fragmentName)}return r}o(vC,"determineCellsFragmentName");function CC(e,t,n,i,r,a,s){var l;if(e[0]){let u=JSON.parse((0,Im.xml2json)(e[0].fileContent,{compact:!0}))[nn];try{let f=Mr(u);if(f)if((l=t[ge.PropertyName.table])!=null&&l.columns||(t[ge.PropertyName.table].columns={}),Array.isArray(f))for(let p of f)Am(p,n,i,r,t,a,s);else Am(f,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(CC,"analyzeFilteredFragments");function SC(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,u]=l,f=l[2];if(c&&u===t){let p=e[s].type?e[s].type.toLowerCase():"xml",g=e[s].fragmentName;if(!g)continue;let b=vC(c,e,u,f),E=g.split(".");g=E[E.length-1]+ge.FRAGMENTNAMEPART+p;let I=i.fragments.filter(L=>L.dataSourceUri.endsWith(g));try{CC(I,n,e,s,f,c,b)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{es(i,n,L.id,L,r)})}}}o(SC,"processViewExtensions");function Yi(e,t,n,i,r,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[ge.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let u=ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][u];if(!f)return;let p=r&&r.target?r.target:n.entitySet;SC(f,p,e,t,a)}}o(Yi,"addFragments");function is(e,t,n){if(e.header={actions:{}},n[ge.DefinitionName.HeaderActionsStandard]){let i=n[ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ge.PageTypeV2.ListReport,r,{})}}o(is,"importHeaderActions");var we=U(K());var Fm=U(K());var Yc={};Po(Yc,{ANNOERR:()=>UC,ANNOTATIONFILE:()=>BC,COMPONENTNOTDEFINED:()=>HC,CONTEXTPATHCOULDNOTBERESOLVED:()=>RC,ENTITYSETNOTFOUND:()=>wC,FLEXERROR:()=>YC,INCONSISTENTSCHEMA:()=>rS,INVALIDANCHOR:()=>ZC,INVALIDSPECFORV4:()=>PC,INVALIDTARGETDEFINITION:()=>tS,NOALP:()=>MC,NOBASEPATH:()=>AC,NOCHARTS:()=>KC,NOENTITYSET:()=>LC,NOENTITYTYPE4SET:()=>VC,NOFE:()=>OC,NOFRAGMENT:()=>eS,NOGENERICSCHEMA:()=>FC,NOID4SECTION:()=>nS,NOLINEITEMANDCHARTS:()=>JC,NOLINEITEMS:()=>WC,NOLR:()=>_C,NOPAGEFORENTITYSET:()=>NC,NOPAGES:()=>IC,NOPRESENTATIONVARIANT:()=>jC,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>DC,NOPRESENTATIONVARIANTFORSPV:()=>$C,NOROUTING:()=>GC,NOROUTINGID:()=>zC,NOTARGET:()=>XC,NOTARGETS:()=>qC,NOTEMPLATE:()=>kC,NOVISUALIZATIONS:()=>QC,TYPEERROR:()=>oS,UNKNOWNMINUI5VERSION:()=>EC,WRONGMINUI5VERSION:()=>xC,XMLPARSEFAILURE:()=>iS,default:()=>aS});var xC="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",EC="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",PC="The given specification version cannot be used for this app, you would need to upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",AC="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",IC="No pages found in manifest for app with id '{{- appId}}'",OC="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",FC="No generic schema found while generating page schema for {{- pageType}}",NC="No page found in manifest for entitySet '{{- entitySet}}'",LC="No entitySet defined for page '{{- pageName}}'",VC="No entityType could be found for the given entity set '{{- entitySetName}}'",jC="No PresentationVariant defined for '{{- key}}'",DC="No PresentationVariant found for default SelectionPresentationVariant",$C="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",wC="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",RC="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",_C="No page found in manifest for list report",MC="No page found in manifest for analytical list page",kC="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",UC="Error while parsing annotation files",BC="Annotation file: '{{- file}}'",HC="Component name is not defined for page '{{- pageName}}'",GC="Incomplete manifest definition: no routing defined",WC="UI.LineItem annotation has not been defined",KC="UI.Chart annotation has not been defined",JC="Neither UI.LineItem nor UI.Chart annotation has been defined",QC="Empty Collection for Visualizations",qC="Incomplete manifest definition: no targets defined",XC="Invalid reference: annotation target '{{- target}}' not found",zC="No page found in manifest for routingId '{{- routingId}}'",YC="Error while parsing flex change",ZC="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",eS="fragmentName is undefined for columnKey '{{- columnKey}}'",tS="Invalid routing target definition in manifest: '{{- target}}'",nS="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",iS="Parsing of XML file failed with error - {{- error}}",rS="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",oS="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",aS={WRONGMINUI5VERSION:xC,UNKNOWNMINUI5VERSION:EC,INVALIDSPECFORV4:PC,NOBASEPATH:AC,NOPAGES:IC,NOFE:OC,NOGENERICSCHEMA:FC,NOPAGEFORENTITYSET:NC,NOENTITYSET:LC,NOENTITYTYPE4SET:VC,NOPRESENTATIONVARIANT:jC,NOPRESENTATIONVARIANTFORDEFAULTSPV:DC,NOPRESENTATIONVARIANTFORSPV:$C,ENTITYSETNOTFOUND:wC,CONTEXTPATHCOULDNOTBERESOLVED:RC,NOLR:_C,NOALP:MC,NOTEMPLATE:kC,ANNOERR:UC,ANNOTATIONFILE:BC,COMPONENTNOTDEFINED:HC,NOROUTING:GC,NOLINEITEMS:WC,NOCHARTS:KC,NOLINEITEMANDCHARTS:JC,NOVISUALIZATIONS:QC,NOTARGETS:qC,NOTARGET:XC,NOROUTINGID:zC,FLEXERROR:YC,INVALIDANCHOR:ZC,NOFRAGMENT:eS,INVALIDTARGETDEFINITION:tS,NOID4SECTION:nS,XMLPARSEFAILURE:iS,INCONSISTENTSCHEMA:rS,TYPEERROR:oS};function Om(e){e.addResourceBundle(e.language,"translation",Yc)}o(Om,"initI18n");function ut(e="en"){w.init({resources:{en:{translation:Fm.default}},lng:e,fallbackLng:"en",joinArrays:`
87
87
 
88
- `}),Am(R)}o(ut,"initI18n");var Oe=U(K());function bi(e,t,n){var r;let i;for(let a in e){let s=e[a];if(dn((r=s.component)==null?void 0:r.name)===Oe.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=bi(s.pages,t,n),i))return n.unshift(a),i}}o(bi,"findObjectPageV2");function Zi(e,t){var n;for(let i in e){let r=e[i];if(dn((n=r.component)==null?void 0:n.name)===Oe.PageTypeV2.ListReport)return t.push(i),r}}o(Zi,"findListReportPageV2");function er(e){if(!e.manifest[Oe.ManifestSection.generic]){q(e.logger,{severity:Oe.LogSeverity.Error,message:R.t("NOFE"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}let t=e.manifest[Oe.ManifestSection.generic].pages;if(!t){q(e.logger,{severity:Oe.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}return t}o(er,"getV2Pages");function tr(e,t,n){var i;if(!e){q(t,{severity:Oe.LogSeverity.Error,message:R.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;q(t,{severity:Oe.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:r}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}}o(tr,"checkV2Page");function nr(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),dn((i=a.component)==null?void 0:i.name)===Oe.PageTypeV2.AnalyticalListPage)return a}q(n,{severity:Oe.LogSeverity.Error,message:R.t("NOALP"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}o(nr,"findAnalyticalListPage");function Zc(e,t){let n=e.split("|");return Oe.v2.SectionPosition[n[0]]&&n[1]===t}o(Zc,"isAssociatedCustomSection");function Om(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Oe.v2.SAPUI5_VIEW_EXTENSION}/${Oe.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Zc(r,t)&&(i[r]=n[r]);return i}o(Om,"findCustomSectionExtensions");function oS(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(oS,"removeEmptySettingsOfFooter");function aS(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(aS,"removeEmptySettingsOfFilterBar");function sS(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(sS,"removeEmptySettingsOfToolBar");function rs(e){sS(e),aS(e),oS(e)}o(rs,"removeEmptySettings");var tu={};Po(tu,{AnalyticalListPage:()=>$t,ListReport:()=>Gt,ObjectPage:()=>ft,OverviewPage:()=>$e});var os=U(K());var $t=class{};o($t,"AnalyticalListPage"),m([y({flex:{controlId:na,controlType:o(()=>os.ControlType.DynamicPage,"controlType"),createFlexChange:$}})],$t.prototype,"fitContent",2),m([Xe("table")],$t.prototype,"table",2),m([Xe("template::SmartFilterBar")],$t.prototype,"filterBar",2),m([Xe("analyticalListPageChart")],$t.prototype,"chart",2),m([Xe("analyticalListFooter")],$t.prototype,"footer",2),$t=m([In({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:os.v2.FE_TEMPLATE_V2_ALP})],$t);var uo=U(K());var Gt=class{};o(Gt,"ListReport"),m([y({flex:{controlId:na,controlType:o(()=>uo.ControlType.DynamicPage,"controlType"),createFlexChange:$}})],Gt.prototype,"fitContent",2),m([Xe("listReportFilter")],Gt.prototype,"filterBar",2),m([Xe("listReport")],Gt.prototype,"table",2),m([Xe("listReportFooter")],Gt.prototype,"footer",2),Gt=m([In({id:uo.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:uo.v2.FE_TEMPLATE_V2_LIST_REPORT})],Gt);var eu=U(K());var ft=class{};o(ft,"ObjectPage"),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.52.0"})],ft.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.52.1"})],ft.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.48.0"})],ft.prototype,"allowDeepLinking",2),m([y({manifest:{path:o(t=>Vt(t),"path")}}),F({since:"1.52.0"})],ft.prototype,"navToListOnSave",2),m([Xe("header")],ft.prototype,"header",2),m([Xe("sections")],ft.prototype,"sections",2),m([Xe("layout")],ft.prototype,"layout",2),m([y({manifest:{path:o(t=>Vt(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Kd}}),F({since:"1.71.0"})],ft.prototype,"globalTableSettings",2),ft=m([In({id:eu.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:eu.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ft);var $e=class{};o($e,"OverviewPage"),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterModel",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterEntityType",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"showBasicSearch",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"disableErrorPage",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"smartVariantRequired",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"bHeaderExpanded",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"containerLayout",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"enableLiveFilter",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"enableLazyRendering",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"useDateRangeType",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"dataLoadSettings",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"resizableLayout",2),$e=m([In({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],$e);var nu=class nu{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(nu,"MetadataFactory");var as=nu;var pt=U(K());var lS={},cS={Table:ri,ResponsiveTableWithMultiSelect:ri,ResponsiveTableWithInlineDelete:ri},uS={[pt.v2.CardSettingsType.listCardSettings]:Lr,[pt.v2.CardSettingsType.analyticalCardSettings]:Vr,[pt.v2.CardSettingsType.stackCardSettings]:jr,[pt.v2.CardSettingsType.linkListCardSettings]:Dr,[pt.v2.CardSettingsType.tableCardSettings]:$r},fS={[pt.SAPUI5_VIEW_CLASS]:ro,[pt.SAPUI5_FRAGMENT_CLASS]:io,Table:hi,ObjectPageResponsiveTableWithMultiSelect:hi,ObjectPageResponsiveTableWithInlineDelete:hi},pS={[pt.PageTypeV2.AnalyticalListPage]:lS,[pt.PageTypeV2.ListReport]:cS,[pt.PageTypeV2.ObjectPage]:fS,[pt.PageTypeV2.OverviewPage]:uS},iu=class iu extends as{constructor(){super(qc,tu,pS)}};o(iu,"MetadataInstanceFactoryV2");var dt=iu;function dS(e,t,n,i,r){e.filterBar=t.createInstance(Re.PageTypeV2.ListReport,Re.DefinitionName.ListReportFilterBar,e.filterBar),tt(e.filterBar,n.manifest,i[Re.DefinitionName.ListReportFilterBar],r,n.logger)}o(dS,"importFilterBar");function ru(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var u,f,p;let l=kt(s),c={controlId:l.controlId,propertyId:(u=l.content)==null?void 0:u.property,newValue:(f=l.content)!=null&&f.newBinding?l.content.newBinding:(p=l.content)==null?void 0:p.newValue,controlType:l.controlType,creation:l.creation};Za(n.table,c,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&es(e,n,s)}o(ru,"importFlexChangesOfTableAndColumns");function gS(e,t,n,i,r){var s;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[Ri],tt(n.table,i.manifest,a,r,i.logger),ru(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&q(i.logger,{severity:Re.LogSeverity.Error,message:R.t("NOLINEITEMS")})}o(gS,"importTable");function mS(e,t,n,i){let r=e.jsonSchema.definitions,a=ns(e.manifest,i);if(t.table=n.createInstance(Re.PageTypeV2.ListReport,a,t.table),is(t,n,r),gS(a,r,t,e,i),t.table.toolBar=n.createInstance(Re.PageTypeV2.ListReport,Re.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,r[Re.DefinitionName.ToolBar],i,e.logger),r[Re.DefinitionName.ActionsLR])for(let l in r[Re.DefinitionName.ActionsLR].properties){let c=Gn(l);t.table.toolBar.actions[c]=n.createInstance(Re.PageTypeV2.ListReport,Re.DefinitionName.Action),tt(t.table.toolBar.actions[c],e.manifest,r[Re.DefinitionName.Action],i,e.logger)}dS(t,n,e,r,i),t.footer={actions:{}};let s=r[Re.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=Gn(l);t.footer.actions[c]=n.createInstance(Re.PageTypeV2.ListReport,Re.DefinitionName.FooterAction),tt(t.footer.actions[c],e.manifest,r[Re.DefinitionName.Action],i,e.logger)}}o(mS,"addSettings");function ss(e){if(ut(),!er(e))return;let n=new dt,i=n.createPageInstance(Re.PageTypeV2.ListReport),r=[],a=Zi(e.manifest[Re.ManifestSection.generic].pages,r);if(tr(a,e.logger,a==null?void 0:a.entitySet),!!a)return mS(e,i,n,r[0]),e.flex.forEach(s=>{kt(s)&&ts(i,s,e.jsonSchema,e.logger)}),Yi(i,e,a,Re.PageTypeV2.ListReport),rs(i),i}o(ss,"createListReportConfig");var je=U(K());function yS(e,t,n,i){var u,f;let r=ns(e.manifest,i),a=e.jsonSchema.definitions;is(t,n,a),t.table=n.createInstance(je.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(tt(t.table,e.manifest,s,i,e.logger),ru(e,s,t),t.table.toolBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,a[je.DefinitionName.ToolBar],i,e.logger),a[je.DefinitionName.ActionsLR])for(let p in a[je.DefinitionName.ActionsLR].properties){let g=Gn(p);t.table.toolBar.actions[g]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.Action),tt(t.table.toolBar.actions[g],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),tt(t.filterBar,e.manifest,a[je.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(je.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),tt(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[je.DefinitionName.FooterActionsLR];if(l)for(let p in l.properties){let g=Gn(p);t.footer.actions[g]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.FooterAction),tt(t.footer.actions[g],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(f=(u=e.manifest[je.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:f.keyPerformanceIndicators;c&&Object.keys(c).forEach(p=>{t.keyPerformanceIndicators[p]=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),tt(t.keyPerformanceIndicators[p],e.manifest,a.KPISettings,i,e.logger,p)})}o(yS,"addSettings");function ls(e){if(ut(),!er(e))return;let n=new dt,i=n.createPageInstance(je.PageTypeV2.AnalyticalListPage),r=[],a=nr(e.manifest[je.ManifestSection.generic].pages,r,e.logger);if(tr(a,e.logger,a==null?void 0:a.entitySet),!!a)return yS(e,i,n,r[0]),e.flex.forEach(s=>{kt(s)&&ts(i,s,e.jsonSchema,e.logger)}),Yi(i,e,a,je.PageTypeV2.AnalyticalListPage),rs(i),i}o(ls,"createAnalyticalListPageConfig");var _=U(K());var fo=require("@sap-ux/vocabularies-types/vocabularies/UI");var bS=[_.ControlType.Avatar,_.ControlType.ObjectPageLayout,_.ControlType.DynamicPage];function TS(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(`${fo.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${_.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(fo.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(TS,"getSingleSelectorIdPart");function vS(e){let t,n=e.split(":::");if(n.length===1)t=TS(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(`::${fo.UIAnnotationTerms.LineItem}`,`/@${fo.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(vS,"getFacetID");function CS(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,u;try{let f=kt(s),p=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=p[0])!=null&&c.includes(_.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((u=p[0])!=null&&u.endsWith(t))){let g=p[1].replace(/:3a:3a/g,"::");r.exec(g)!==null&&(g=g.split("template:::TableColumn:::")[1]);let b=vS(g);g=zc(g).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${g}::${f.content.property}`]={controlId:g,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){q(n,{severity:_.LogSeverity.Error,message:R.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}o(CS,"prepareFlexChanges");var SS=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 xS(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&Xc(i,t,r)}o(xS,"addFlexChangeToColumns");function Fm(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,_.VOCWITHSLASH)];for(let c in e){let u=e[c],f=u.propertyId===t,p=t==="columns"&&u.controlType===_.ControlType.TableColumn;(f||p)&&s.indexOf(u==null?void 0:u.facetId)>-1&&(a?xS(a,u,r.properties,n):Za(n,u,r))}}o(Fm,"importFlexChangesOfTable");function ES(e,t){return e.facetId==="template"&&t}o(ES,"isStandardActionFlexChange");var Nm=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 PS(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("::"),u=t.controlType===_.ControlType.GroupElement&&l,f=((I=t.facetId)==null?void 0:I.includes(_.ACTIONTITLEPREFIX))&&!r&&s,p=r&&Nm(c,r.split("::"))&&s,g=e.title&&Nm(c,e.title.split("::"),!0),b=!t.facetId&&bS.includes(t.controlType),E=ES(t,l);return u||f||p||g||b||E}o(PS,"matchSelector");function AS(e,t,n,i,r,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let u in n){let f=n[u];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[_.SchemaTag.controlType]))continue;PS(e,f,s,l,r,a)&&(t[i]=f.newValue)}}o(AS,"importFlexChanges");function IS(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(q(n.logger,{severity:_.LogSeverity.Warning,message:$i(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(IS,"checkDeprecatedProperties");function OS(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,u;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),u=ze(n.manifest,c),Object.values(u).length===0&&(c=e.manifest.path(t,{},l),u=ze(n.manifest,c))):(c=e.manifest.path(t,{},l),u=ze(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let p=f(u,s==null?void 0:s.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in u&&(i[r]=u[p])}return IS(u,a,n,c),u}o(OS,"importManifestSetting");function gt(e,t,n,i,r,a){var c,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let p=At(t,f);if(f==="columns"||p!=null&&p.flex)if((c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let g=n.properties[f].$ref.split(j)[1],b=e.jsonSchema.definitions[g];Fm(i.flexChanges,f,t,r,b,l)}else Fm(i.flexChanges,f,t,r,n);else{let g=(r==null?void 0:r.title)||(r==null?void 0:r.id);AS(n,t,i.flexChanges,f,g,a)}else p!=null&&p.manifest&&OS(p,i.pageKeys,e,t,f,s,r)}}o(gt,"transferSettingsAndFlexChanges");function Vm(e,t,n,i){let r=Tt(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=`${hg}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${oa}${r}`;break}}return r.replace(/@/g,"")}o(Vm,"getActionId");function FS(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=Vm(s,a,"","");e.actions[a]=i.factory.createInstance(_.PageTypeV2.ObjectPage,l,{}),gt(n,e[_.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}o(FS,"fillStandardActions");function cs(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 u in t){let f=Gn(u),p=Vm(s,f,r,a);p&&(n[_.PropertyName.actions][f]=i.factory.createInstance(_.PageTypeV2.ObjectPage,s),gt(e,n[_.PropertyName.actions][f],e.jsonSchema.definitions[s],i,c,p)),(l=n[_.PropertyName.actions])!=null&&l[f]&&Object.keys(n[_.PropertyName.actions][f]).length===0&&delete n[_.PropertyName.actions][f]}}FS(n,t,e,i),Object.keys(n[_.PropertyName.actions]).length===0&&delete n[_.PropertyName.actions]}o(cs,"fillActions");function NS(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}`;gt(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(NS,"fillFields");function LS(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(LS,"prepareTableSchema");function VS(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 u=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=r.factory.createInstance(_.PageTypeV2.ObjectPage,`ObjectPage${u}`,{toolBar:{}});i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][_.PropertyName.table]=f;let p=e.jsonSchema.definitions,g=LS(u,t,p);gt(e,i[t.id],t.schema,r,{title:t.title}),gt(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 E=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");cs(e,b.properties,i[t.id][_.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][_.PropertyName.table].toolBar).length===0&&delete i[t.id][_.PropertyName.table].toolBar}}o(VS,"fillTableInConfig");function jS(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?ra(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Yi(n[t],e,i,_.PageTypeV2.ObjectPage,l,r)}}o(jS,"fillCustomColumnsInConfig");function DS(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)&&(gt(e,i[t.id],t.schema,r,{title:t.title}),gt(e,i[t.id][_.PropertyName.chart],e.jsonSchema.definitions[_.DefinitionName.ObjectPageChart],r,t))}o(DS,"fillChartSection");function $S(e,t,n,i){n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&gt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o($S,"fillHeaderSection");function RS(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&&gt(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&&cs(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&NS(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(RS,"fillFormSection");function Lm(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&gt(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,ou(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(Lm,"fillSubSection");function ou(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),u={id:c,type:SS(t[l]),schema:t[l],title:pl(t[l],e.jsonSchema)};if(u.schema.$ref&&u.type)switch(u.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{u.schema=a[`${u.type}<${l}>`],VS(e,u,n,i,r),jS(e,c,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u.schema=a[`${u.type}<${l}>`],DS(e,u,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{u.schema=a[`${u.type}<${l}>`],RS(e,u,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{u.schema=a[`${u.type}<${l}>`],Lm(e,u,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{u.schema=a[`${u.type}<${l}>`],$S(e,u,i,r);break}}else(s=u.schema.properties)!=null&&s.subsections&&(u.schema=a[`${u.type}<${l}>`],Lm(e,u,n,i,r))}}o(ou,"fillSectionsInConfig");function wS(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"];gt(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(wS,"fillCustomSectionsInConfig");function _S(e,t){var f,p;let n=t.factory.createPageInstance(_.PageTypeV2.ObjectPage);gt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;gt(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>"];gt(e,n.header,r,t);let a=i[_.DefinitionName.HeaderActions];a&&cs(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[_.DefinitionName.FooterActions];s&&cs(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageLayout"),gt(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=(f=t.v2Page.component)==null?void 0:f.settings;ou(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;ou(e,c.properties,g,n.sections,t)}let u=Om(e.manifest,e.entitySet);return wS(u,n,t,i,e),n}o(_S,"fillConfig");function us(e){ut();let t=er(e);if(!t)return;let n=e.entitySet,i=[],r=bi(t,e.entitySet,i);if(tr(r,e.logger,n),!r)return;let a=CS(e.flex,n),s=new dt;return _S(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(us,"createObjectPageConfigV2");function ps(e,t){var n,i;return(n=e.component)!=null&&n.name?ea(dn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(ps,"generateId");function MS(e,t,n,i,r,a,s){e.navigation={};let l=jm(t.pages,n,i,r,a);for(let c in l){let u=l[c];s[c]=u}for(let c in t.pages){let u=ps(t.pages[c],c);e.entitySet?e.navigation[u]=l[u].navigationProperty?`${e.entitySet}.${l[u].navigationProperty}`:e.entitySet:e.navigation[u]=l[u].navigationProperty?l[u].navigationProperty:u}}o(MS,"getPageConfigsAndNavigations");function jm(e,t,n,i,r,a){var l;let s={};for(let c in e){let u=e[c],f=ps(u,c);if(!f)continue;let p={pageType:dn((l=u.component)==null?void 0:l.name),entitySet:u.entitySet,...u.navigationProperty&&{navigationProperty:u.navigationProperty},...u.defaultLayoutType&&{defaultLayoutType:u.defaultLayoutType}};s[f]=p;let g=Object.keys(i).find(b=>b.includes(f))||Object.keys(i).find(b=>b.includes(f.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(g)if(p.pageType===Be.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=ss(b)}else if(p.pageType===Be.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=ls(b)}else{let b={manifest:n,flex:t,jsonSchema:i[g],entitySet:p.entitySet,fragments:r,logger:a};p.config=us(b)}u.pages&&MS(p,u,t,n,i,r,s)}return s}o(jm,"getPagesAndConfigs");var au=class au extends Ui{constructor(t){ut();let n;t.manifest[Be.ManifestSection.generic]?n=t.manifest[Be.ManifestSection.generic].pages:q(t.logger,{severity:Be.LogSeverity.Error,message:R.t("NOFE"),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}}),n||q(t.logger,{severity:Be.LogSeverity.Error,message:R.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ps(n[i],i),a=new Fn,s=Ze(Be.SchemaType.Application),l=t.appSchemas[s.filename];tt(a,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,jm(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),Be.FioriElementsVersion.v2,a)}};o(au,"V2AppProvider");var fs=au;function po(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||q(n,{severity:Be.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Be.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=ps(l,s);i[c]=l}if(t===Be.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=po(l.pages,t,n);for(let u in c)i[u]=c[u]}}return i}o(po,"getPages");var xn=U(K());var on=U(K());var lu=U(_s());var Pe=U(K());var kS=["colorPalette","tabs"];function US(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(US,"createCard");function Dm(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Dm(e,n.join("|"))}return t}o(Dm,"findAvailableId");function go(e,t,n,i,r,a,s){i!=null&&i.properties&&su(e,t,n,i.properties,r,a,s)}o(go,"transferManifestEntriesOVP");function Ti(e,t,n,i){return e.createInstance(Pe.PageTypeV2.OverviewPage,i,n,t)}o(Ti,"assignReflectMetadataRules");function BS(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=Ti(e.factory,i[1],t,"CustomCard"),go(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(BS,"processAnyOfDefinitionsOfOVP");function HS(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!kS.includes(i)?t[i]=(0,lu.default)(t[i]||{},r||{},{arrayMerge:ul}):t[i]=r}o(HS,"checkSyncRuleForExport");function GS(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=ze(i.manifest,s);if(n in Pe.v2.CardSettingsType||n==="settings")l.settings=(0,lu.default)(l.settings||{},r||{},{arrayMerge:ul});else if(r!==void 0){let c=e.manifest.export;HS(c,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(GS,"transferToManifest");function WS(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Pe.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ti(e.factory,i[0],e.currentObject[t],"CustomCard"),US(t,e.exportResults.manifest[Pe.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated,go(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Pe.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Pe.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated)})}o(WS,"transferCards");function KS(e,t){if(t==="cards")WS(e);else{let n=An(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Pe.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=Ti(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],go(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],su(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],su(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(KS,"exportOfObject");function su(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!rl(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],u=At(e,l),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],c=BS(f)):c&&typeof c=="object"&&i[l]&&KS(f,l),u!=null&&u.manifest&&GS(u,a,l,t,c,e)}}o(su,"processProperties");function JS(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),u=ug(a,n,e.ui5Version,s,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let p=n.flex.createFlexChange(u,f);e.exportResults.flexChanges.find(b=>{let E=!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)&&(E=!0),E})||e.exportResults.flexChanges.push(p)}o(JS,"evaluateFlexRule");function QS(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=Pe.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=Pe.ChangeIndicator.Updated}}o(QS,"exportConfigValueToManifest");function qS(e,t,n,i,r){let a=ze(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)QS(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=Pe.ChangeIndicator.Updated,Tr(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(qS,"evaluateManifestRule");function XS(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(Pe.FACETTITLEPREFIX)?r.split(Pe.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(XS,"getManifestPathOfSections");function zS(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(zS,"getManifestPathOfTable");function YS(e,t,n,i,r){let a;return t[0]===Pe.PropertyName.sections?a=XS(t,a,n,e,r):t[0]===Pe.PropertyName.table?a=zS(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(YS,"getManifestPath");function ZS(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)JS(e,i,t,r,a,n,s);else if(t.manifest){let c=YS(e,i,t,n,a);qS(e,c,t,s,n)}}o(ZS,"evaluateExportRule");function ex(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)&&(va(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Pe.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Pe.ViewTemplateType.ResponsiveTableColumnsExtension,Pe.ViewTemplateType.ResponsiveTableCellsExtension);va(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}o(ex,"deleteObsoleteColumn");function tx(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Gg(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated,ex(r,e,n))}o(tx,"deleteObsoleteColumnsFromFragment");function nx(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}=Ca(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}o(nx,"clusterConfigColumnsByPath");function $m(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 Pe.v2.TableColumnExtensionTypeV2){let{path:c}=Ca(e.v2Page,s,r,l);if(!c)continue;let u={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{tx(u)}catch(f){e.logger.error(f.message)}}if(t){let l=nx(t,n,e.v2Page,s,r);for(let c in l)Hl(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}o($m,"transferColumnExtensions");function ix(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let u of t){let f=Dm(s,[u.relativePosition,l,u.relatedFacet].join("|"));s.push(f)}for(let u=0;u<s.length;u++){let p=a.anyOf.find(b=>{var E;return(E=b.$ref)==null?void 0:E.includes(t[u].constructor.name)}).$ref.split(j),g=e.appSchema.definitions[p[p.length-1]];Wn(e,t[u],i,[...r,s[u]],g)}let c=ze(e.exportResults.manifest,vl());for(let u in c)Zc(u,l)&&!s.includes(u)&&delete c[u]}o(ix,"transferManifestExtensions");function rx(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Pe.PropertyName.table){n=e[i-1];break}return et(n,t)}o(rx,"getSectionId");function ox(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=An(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Wn(t,c.configObject,r,[...a,i],c.targetDefinition,l)})}o(ox,"transferIndexTable");function ax(e,t,n,i,r,a){let s,l=ra(e.$ref);l&&(s={target:l,key:rx(t,n)}),$m(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(ax,"transferCustomColumns");function sx(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let c=An(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&Wn(t,c.configObject,a,[...s,r],c.targetDefinition,c.title)})}o(sx,"handleAnyOfDefinitions");function lx(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")ix(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){ax(l,t,s,e,n,a);return}else a?Wn(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&sx(l,e,s,n==null?void 0:n[r],r,i,t)}o(lx,"transferComplexProperty");function Wn(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&&!rl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&zd(t,l),u=c?[...n,c]:n,f=At(t,l),p=e.propertyDefinition=r.properties[l],g=e.nextDefinition=An(e.appSchema,a,s,p,l,e.factory,e.pageType);if(ZS(e,f,t,[...i],u,a,l),ox(s,e,a,l,u,i),s===void 0||typeof s=="object")lx(e,i,t,u,l,g,a);else if((p==null?void 0:p.$ref)===j+"TableCustomColumns"){$m(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Wn,"transferManifestEntriesAndFlexChange");function Rm(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ti(r,i,n[i],s),a.push(i),cu(r,n[i],e,l.properties,a)}o(Rm,"transferSettingsOfRef");function cx(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);Rm(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${j}${on.v2.cardTemplateSettingsMap[e.template]}`.split(j);Rm(i,l,e,t,r,a)}}o(cx,"processPropertiesOfObject");function ux(e,t,n,i,r,a){let s=At(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=ze(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{ia(s,c,t,e)}catch(u){q(i.logger,{severity:on.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:Hd(u)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&cx(e,t,r,i,a,n)}o(ux,"processOvpProperty");function cu(e,t,n,i,r){for(let a in i)ux(t,a,r,n,i,e)}o(cu,"processOvpProperties");function fx(e,t,n){cu(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[on.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[on.ManifestSection.ovp].cards[i].template,a=on.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ti(n,a,{},"CustomCard"),e.cards=Ti(n,a,e.cards,"CustomCard"),cu(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(fx,"addSettings");function ds(e){let t=new dt,n=t.createPageInstance(on.PageTypeV2.OverviewPage);return e.jsonSchema&&fx(n,e,t),n}o(ds,"createOverviewPageConfig");var uu=class uu extends Ui{constructor(t){let n={},i=t.manifest[xn.ManifestSection.ovp],r=new Fn,a=Ze(xn.SchemaType.Application);tt(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(xn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},c={pageType:xn.PageTypeV2.OverviewPage,config:ds(l),entitySet:i.globalFilterEntitySet},u=ea(c.pageType,c.entitySet);n[u]=c,super(t.manifest,t.appSchemas,u,n,xn.FioriElementsVersion.v2,r,t.logger)}};o(uu,"V2OvpProvider");var gs=uu;var wm=require("fs"),vi=require("path"),fu=U(K());var _m=o((e,t,n=__dirname)=>{let i=t===fu.SchemaType.Application?`${fu.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,vi.join)(n,"schemas",e,i);if(n.endsWith((0,vi.join)("specification","packages","specification")))return(0,vi.join)(n,"dist","schemas",e,i);if(n.endsWith((0,vi.join)("src","specification")))return(0,vi.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,vi.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),px=o(async e=>new Promise((t,n)=>{(0,wm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ms=o(async(e,t)=>{try{let n=_m(e,t,__dirname);return await px(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function dx(e,t){let n={},i=[];switch(i=[ee.SchemaType.Application],e){case ee.TemplateType.ListReportObjectPageV2:i.push(ee.SchemaType.ListReport,ee.SchemaType.ObjectPage);break;case ee.TemplateType.AnalyticalListPageV2:i.push(ee.SchemaType.AnalyticalListPage,ee.SchemaType.ObjectPage);break;case ee.TemplateType.OverviewPageV2:i.push(ee.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Ze(r);n[a.filename]=await ms(t,r)}return n}o(dx,"getGenericSchemas");function km(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=zt(ee.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(km,"getAnnotationsForUi");function mo(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(mo,"getEntitySetByEntitySetName");function gx(e,t,n){var r;let i=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=mo(s,e.serviceAVT);let l=Ze(ee.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),c=Ze(ee.SchemaType.ListReport);t[l.filename]=ho(e,n[c.filename])}}o(gx,"generateAppSchemaV2LR");function Mm(e,t,n){let i=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=mo(a,e.serviceAVT);s||q(e.logger,{severity:ee.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Ze(ee.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Ze(ee.SchemaType.ObjectPage);n[l.filename]=yo(e,t[c.filename])}}o(Mm,"generateObjectPageSchemasV2");function mx(e,t,n,i){var a;let r={};if(i===ee.TemplateType.ListReportObjectPageV2&&n)gx(e,r,t),Mm(e,t,r);else if(i===ee.TemplateType.AnalyticalListPageV2&&n){let s=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=mo(c,e.serviceAVT);let u=Ze(ee.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=Ze(ee.SchemaType.AnalyticalListPage);r[u.filename]=bo(e,t[f.filename])}Mm(e,t,r)}else if(i===ee.TemplateType.OverviewPageV2){let s=Ze(ee.SchemaType.OverviewPage),l=Ze(ee.SchemaType.OverviewPage);r[s.filename]=To(t[l.filename],e.manifest)}return{...t,...r}}o(mx,"generateAppSchemasV2");async function Um(e,t,n){if(e.fioriElementsVersion===ee.FioriElementsVersion.v2){let i=await dx(n,e.fioriElementsVersion);return mx(e,i,t,n)}else{let i=R.t("INVALIDSPECFORV4");q(e.logger,{severity:ee.LogSeverity.Info,message:i})}}o(Um,"generateAppSchemas");function yx(e){let t,n=[];switch(e.templateType){case ee.TemplateType.ListReportObjectPageV2:case ee.TemplateType.AnalyticalListPageV2:t=new fs(e);break;case ee.TemplateType.OverviewPageV2:t=new gs(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(yx,"importConfigs");function Bm(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ee.SchemaType.Application?r=`${ee.DirName.Schemas}/${ee.FileName.App[0].toUpperCase()}${ee.FileName.App.slice(1)}`:r=`${ee.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Bm,"getFileList");async function pu(e){var E,I;ut();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Er().doesUi5VersionFitDistTags((I=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:I.minUI5Version,i);let c=ll(t),u=yr(n,i),f=km(u),p=cl(t,c,i),b=await Um({templateType:p,manifest:t,serviceAVT:u,fragments:r,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},f,p);if(b)return Bm(b)}o(pu,"importProjectSchema");async function du(e){var oe,Y;ut();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Er().doesUi5VersionFitDistTags((Y=(oe=t["sap.ui5"])==null?void 0:oe.dependencies)==null?void 0:Y.minUI5Version,i);let u=ll(t),f=kd(t),p=yr(n,i),g=cl(t,u,i),b={templateType:g,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:l},E=km(p),I=await Um(b,E,g);if(!I)return;let G=yx({manifest:t,flexChanges:s,appSchemas:I,templateType:g,logger:i,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,oDataVersion:f});return Bm(I,G)}o(du,"importProjectSchemaAndConfig");var hx=["header","sections","footer"];function bx(e,t,n,i){t.properties[n][V.SchemaTag.artifactType]=V.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=V.ControlType.Section;break;case"ObjectPageSubSectionV2":r=V.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=V.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=V.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=V.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=V.ControlType.ObjectPageHeaderSection;break}r&&(he(e,t,n),t.properties[n][V.SchemaTag.controlType]=r)}o(bx,"addFlexChangeForSection");function Tx(e,t,n,i,r){return(a,s)=>{if(!a.Determining&&a.$Type===Kn.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:u}=ml(a,r);if(!c)return;let f=a.Label||l,p=`HeaderAction<${_e(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let g=n.fullyQualifiedName.replace(`@${Kn.UIAnnotationTerms.Identification}`,`/@${Kn.UIAnnotationTerms.Identification}`);t.definitions[p][V.SchemaTag.annotationPath]=`/${g}/${s}`,t.definitions[p][V.SchemaTag.actionType]=V.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][V.SchemaTag.keys]=[{name:V.SchemaKeyName.action,value:l}],u&&(t.definitions[p][V.SchemaTag.target]=u),i.properties[c]={$ref:`${j}${p}`}}}}o(Tx,"addHeaderActionCallBackV2");function vx(e,t,n,i,r,a,s,l){let c,u;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?u=`${V.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:u=`${V.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[u])return u;let f=`${V.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let p=[],g=r==null?void 0:r.entityTypes.find(E=>E.name===i),b=bi(t[V.ManifestSection.generic].pages,n,p);return _i(e,g,b,t,l,u,f,a.ID),u}o(vx,"ensureCustomColumnDefinitionExists");function vo(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&bx(e,t,"visible",n)}o(vo,"addAppSchemaDefinition");function Cx(e,t,n){e.properties[t]={$ref:`${j}${n}`}}o(Cx,"addSectionReference");function ys(e,t,n,i){let r=_e(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(R.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][V.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=V.FACETTITLEPREFIX+n.ID,i.definitions[r][V.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=V.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}>`,ca(n.entityType,i,`QuickVariant<${t}>`)}o(ys,"addTableDefinition");function Sx(e,t,n,i,r,a){if(i.base!==V.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Yn(n,i,t);let c=n.definitions[l];vo(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[V.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],c[V.SchemaTag.annotationPath]=i.annotationPath,br(i,c,t),ys("ObjectPageResponsiveTable",t,i,n),ys("ObjectPageGridTable",t,i,n),ys("ObjectPageTreeTable",t,i,n),ys("ObjectPageAnalyticalTable",t,i,n);let u,f=jg(i,e.serviceAVT);f&&(u=vx(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r){let g=r[p];g.base===V.FacetBase.LineItem&&(g.ID===s||p.includes(s))&&wi(!0,n,g.target,g.entityType,g.ID||p,u)}}o(Sx,"handleLineItem");function xx(e,t,n,i,r,a=!1){e.definitions[t]=Yn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";vo(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[V.SchemaTag.isViewNode]=!0}o(xx,"handleSubSection");function Ex(e,t,n,i,r){e.definitions[t]=Yn(e,n,i);let a=e.definitions[t];vo(e,a,r,"ObjectPageSectionChartV2")}o(Ex,"handleSectionChart");function Hm(e,t,n,i,r,a){e.definitions[t]=Yn(e,n,i);let s=e.definitions[t];vo(e,s,r,a||"CommonHeaderFacetSettings"),s[V.SchemaTag.annotationPath]=n.annotationPath,s[V.SchemaTag.isViewNode]=!0,s[V.SchemaTag.dataType]=ua(n==null?void 0:n.target)}o(Hm,"handleHeaderFacet");function Px(e,t,n){let i=e.definitions[t],r=i[V.SchemaTag.dataType]=ua(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(Px,"addDataPointHeaderFacetDataType");function Ax(e,t,n,i,r){e.definitions[t]=Yn(e,n,i);let a=e.definitions[t];return vo(e,a,r,"ObjectPageSectionFormV2"),a[V.SchemaTag.annotationPath]=n.annotationPath,a[V.SchemaTag.isViewNode]=!0,a}o(Ax,"handleFormSection");function Ix(e,t,n){let i=new Map([[V.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[V.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[V.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[V.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[V.FacetBase.Form,"ObjectPageHeaderSectionForm"],[V.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[V.FacetBase.LineItem,"ObjectPageSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSectionChartV2"],[V.FacetBase.Address,"ObjectPageSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSectionContactV2"],[V.FacetBase.Form,"ObjectPageSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[V.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[V.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[V.FacetBase.Form,"ObjectPageSubSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Ix,"getSectionType");function Ox(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Kn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(Ox,"getReferenceKey");function Wm(e,t,n,i,r,a=!1,s=!1){let l=t[n],c=Ix(l.base,a,s),u=Ox(l,n,c),f=`${c}<${u}>`;switch(Cx(i,u,f),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,xx(r,f,l,n,c,s);let p=r.definitions[f].properties.subsections;for(let g in l.facets)Wm(e,l.facets,g,p,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Sx(e,u,r,l,t,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Ex(r,f,l,u,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let p=Ax(r,f,l,u,c);Og(V.SectionType.Section,l,p,r,V.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{yl(l,u,i,r,V.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{yl(l,u,i,r,V.SectionType.Section,V.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Hm(r,f,l,u,c);break}case"ObjectPageHeaderSectionDataPoint":{Hm(r,f,l,u,c),Px(r,f,l);break}default:i.properties[n]=Yn(r,l,u)}}o(Wm,"addSection");function Gm(e,t,n,i,r,a=!1){if(e)for(let s in t)Wm(i,t,s,n,r,!1,a)}o(Gm,"addSectionsFromFacets");function Km(e,t,n){var f,p,g,b,E,I;let i=t.definitions[V.DefinitionName.Sections];i[V.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Kn.UIAnnotationTerms.Facets}`);let r=t.definitions[V.DefinitionName.HeaderSections];if(r[V.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(p=e.entitySet)!=null&&p.entityType&&(r[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Kn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Md((g=e.entitySet)==null?void 0:g.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),s=_d((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,V.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 G=n[L];(I=(E=e.entitySet)==null?void 0:E.name)!=null&&I.includes(G.entitySet)?(Gm(l,a,i,e,t),Gm(c,s,r,e,t,!0)):Km(e,t,G.pages)}let u=t.definitions.CustomSections;for(let L in u.properties)i.properties[L]=u.properties[L]}o(Km,"addSections");function Fx(e,t,n){Vg(e,t),Lg(e,t,n,Tx,!0)}o(Fx,"addHeader");function Nx(e,t,n,i){let r=Ud(t,n,i,void 0,!0);r&&wg(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Nx,"addRelatedFacetKeysType");function yo(e,t){var s;ut();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[V.PropertyName.sections]={$ref:j+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[V.ManifestSection.generic].pages;return a?(Fx(n,r,e.serviceAVT),n.definitions[V.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Km(e,n,a),Nx(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[V.SchemaTag.isViewNode]=!0):delete n.properties[V.PropertyName.sections]),Ng(n,e,V.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,ji(n,hx),n):(q(e.logger,{severity:V.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}}),n)}o(yo,"generateObjectPageSchemaV2");var Ft=U(K());var Lx=["filterBar","table","footer"];function gu(e,t,n,i){ca(e,n,"QuickVariant"),$g(n,"QuickVariantX",t),Rg(i,n,"QuickVariantX")}o(gu,"addEnumForVariantPaths");function ho(e,t){var f,p,g,b,E,I,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+Ri,n.properties.table.anyOf[1].$ref=j+vr,n.properties.table.anyOf[2].$ref=j+Cr,n.properties.table.anyOf[3].$ref=j+Sr;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+Ft.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,a.properties.columns=l,s.properties.columns=l;let c=j+Ft.DefinitionName.ToolBarLR;n.definitions[Ri]=i,n.definitions[Ri].properties.toolBar.$ref=c,n.definitions[vr]=r,n.definitions[vr].properties.toolBar.$ref=c,n.definitions[Cr]=a,n.definitions[Cr].properties.toolBar.$ref=c,n.definitions[Sr]=s,n.definitions[Sr].properties.toolBar.$ref=c;let u=(f=e.entitySet)==null?void 0:f.entityType;if(!u)(p=e.entitySet)!=null&&p.name&&q(e.logger,{severity:Ft.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(g=e.entitySet)==null?void 0:g.name})});else{Mi(n);let G=(E=(b=u==null?void 0:u.annotations)==null?void 0:b.UI)==null?void 0:E.LineItem;G&&mg.forEach(J=>{n.definitions[J][Ft.SchemaTag.annotationPath]=Mt(u==null?void 0:u.fullyQualifiedName,G.term,G.qualifier)}),wi(!1,n,G,u);let oe=(L=(I=u==null?void 0:u.annotations)==null?void 0:I.UI)==null?void 0:L.SelectionFields;sa(n,oe,u);let Y=[],re=Zi(e.manifest[Ft.ManifestSection.generic].pages,Y);if(!re)return q(e.logger,{severity:Ft.LogSeverity.Error,message:R.t("NOLR"),location:{path:Ft.MANIFESTPATH,range:[Ft.ManifestSection.generic]}}),n;_i(n,u,re,e.manifest,e.fragments),gu(u,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 ji(n,Lx),n}o(ho,"generateListReportSchemaV2");var xe=U(K());var Vx=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Jm(e,t){let n=t.value;return n.includes(xe.UIVOCABULARYALPHADOT+e)?n.replace(xe.UIVOCABULARYALPHADOT,""):""}o(Jm,"retrieveNameWithoutVocabulary");function jx(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.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?R.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):R.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return q(n,{severity:xe.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],u="",f="";c.some(function(I){return u=u||Jm("LineItem",I),f=f||Jm("Chart",I),u&&f}),u=u||"LineItem",f=f||"Chart";let p=t[u],g=t[f],b=(p||i.quickVariantSelectionX?0:1)+(g?0:2);if(b>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],L=R.t(I);q(n,{severity:xe.LogSeverity.Warning,message:L})}return{lineItemAnnotation:p,chartAnnotation:g}}o(jx,"getLineItemAndChartAnnotation");function Dx(e,t){let n=e.definitions[xe.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[xe.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Dx,"addChart");function bo(e,t){var s,l,c,u,f;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(R.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,Sg(n.definitions.TableColumnExtensionTypeV2.enum,[xe.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)q(e.logger,{severity:xe.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{Mi(n);let p=[],g=nr(e.manifest[xe.ManifestSection.generic].pages,p,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:E,chartAnnotation:I}=jx(g,b,e.logger);E&&yg.forEach(G=>{n.definitions[G][xe.SchemaTag.annotationPath]=Mt(a==null?void 0:a.fullyQualifiedName,E.term,E.qualifier)}),wi(!1,n,E,a),I&&Dx(n,I);let L=(f=(u=a==null?void 0:a.annotations)==null?void 0:u.UI)==null?void 0:f.SelectionFields;if(sa(n,L,a),!g)return q(e.logger,{severity:xe.LogSeverity.Error,message:R.t("NOLR"),location:{path:xe.MANIFESTPATH,range:[xe.ManifestSection.generic]}}),n;_i(n,a,g,e.manifest,e.fragments),gu(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 ji(n,Vx),n}o(bo,"generateAnalyticalListReportSchemaV2");var Qm=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function $x(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($x,"getCardDefinitionNames");function Rx(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"},ni(a,s.CardModel);let l=$x(e);for(let c of l){let u=s[c].properties.model;delete u.type,u.$ref=j+"CardModel"}}o(Rx,"addModelsEnum");function wx(e,t){let n=e.properties;for(let i in Qm){let r=Qm[i],a=r.key;n[a]&&(n[a].messages=[{text:$i(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(wx,"markDeprecatedProperties");function qm(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},wx(n,t),Rx(n,t),n}o(qm,"generateOverviewPageSchemaV2");var Jn=U(K());function mu(e,t,n,i,r,a){ut();let s=yr(e,t),l={templateType:a,fioriElementsVersion:Jn.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=mo(r,l.serviceAVT),l.entitySet||q(l.logger,{severity:Jn.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(mu,"prepareGenerationV2");function yu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.ListReportObjectPageV2);return yo(s,e)}o(yu,"generateObjectPageInterfaceV2");function hu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.ListReportObjectPageV2);return ho(s,e)}o(hu,"generateListReportInterfaceV2");function bu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.AnalyticalListPageV2);return bo(s,e)}o(bu,"generateAnalyticalListPageInterfaceV2");function To(e,t){return qm(e,t)}o(To,"generateOVPInterfaceV2");var X=U(K());var Co=o(e=>({flexChanges:[],manifest:{[X.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:X.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:X.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Xm(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===X.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(X.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(X.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(Xm,"getClassesForSingleSection");function zm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Xm(n,i,t),zm(n,t)}}o(zm,"getSubsectionClasses");function _x(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Xm(i,r,n),zm(i,n)}o(_x,"getExportClassesForSections");function Mx(e,t){let n=Zi(t.manifest[X.ManifestSection.generic].pages,e);if(!n){q(t.logger,{severity:X.LogSeverity.Error,message:R.t("NOLR"),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return}if(!n.component){q(t.logger,{severity:X.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:X.PageTypeV2.ListReport}),location:{path:X.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(Mx,"findV2Page");function Tu(e,t){let n=Yd(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(Tu,"calculateBaseId");function Ym(e,t,n=!1){let i=Co(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=Mx(a,e),l=new dt,c=l.createPageInstance(X.PageTypeV2.ListReport,r),u={v2Page:s,exportResults:i,appId:e.appId,baseId:Tu(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:X.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(u,c,[],[],e.jsonSchema)}return i}o(Ym,"exportListReportPage");function Zm(e,t,n=!1){let i=e.page.config,r=Co(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=nr(e.manifest[X.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 dt,c=l.createPageInstance(X.PageTypeV2.AnalyticalListPage,i),u={v2Page:s,exportResults:r,appId:e.appId,baseId:Tu(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:X.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(u,c,[],[],e.jsonSchema)}return r}o(Zm,"exportAnalyticalListPage");function ey(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Co(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=bi(e.manifest[X.ManifestSection.generic].pages,r,s);if(!l)return q(e.logger,{severity:X.LogSeverity.Error,message:R.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}}),a;let c=new dt,u=c.createPageInstance(X.PageTypeV2.ObjectPage,i);if(i.sections&&_x(i,u,c),Object.keys(i).length!==0){let f={v2Page:l,exportResults:a,appId:e.appId,baseId:Tu(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:X.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(f,u,[],[],e.jsonSchema)}}return a}o(ey,"exportObjectPage");var ty=o(e=>{let t=Co();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new dt,i=n.createPageInstance(X.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&go(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),kx=o((e,t,n)=>{var s;let i=Co();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new fa,e);r.settings=Object.assign(new Fn,e.settings);for(let l in n.definitions.AppSettings.properties){let c=At(r.settings,l);if(c&&c.manifest){let u=c.manifest.path(),f=ze(i.manifest,u);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:(delete f[l],Tr(i.manifest,u,!1))}}let a=(s=i.manifest[X.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Tl(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function ny(e,t){if(e[X.SchemaType.ListReport])return Ym(e[X.SchemaType.ListReport],t);if(e[X.SchemaType.ObjectPage])return ey(e[X.SchemaType.ObjectPage],t);if(e[X.SchemaType.OverviewPage])return ty(e[X.SchemaType.OverviewPage]);if(e[X.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[X.SchemaType.Application];return kx(n,i,r)}else if(e[X.SchemaType.AnalyticalListPage])return Zm(e[X.SchemaType.AnalyticalListPage],t)}o(ny,"exportPageV2");function vu(e,t,n=!1){if(e[X.SchemaType.ListReport])return Ym(e[X.SchemaType.ListReport],t,n);if(e[X.SchemaType.ObjectPage])return ey(e[X.SchemaType.ObjectPage],t,n);if(e[X.SchemaType.OverviewPage])return ty(e[X.SchemaType.OverviewPage]);if(e[X.SchemaType.AnalyticalListPage])return Zm(e[X.SchemaType.AnalyticalListPage],t,n)}o(vu,"exportConfigEntityByPathV2");function Ux(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.ListReport];t=hu(i,r,a,s,l,c)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.ObjectPage];t=yu(i,r,a,s,l,c)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=To(i,r)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.AnalyticalListPage];t=bu(i,r,a,s,l,c)}}return t}o(Ux,"generateSchema");function Bx(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=ny(i,n)}return t}o(Bx,"exportConfig");function Hx(e){let t=Se.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=vu(i,n)}return t}o(Hx,"exportConfigEntityByPath");function Gx(e){let t=Se.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=vu(i,n,!0)}return t}o(Gx,"deleteConfigEntityByPath");function Wx(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=ss(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=us(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=ds(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=ls(n[Se.SchemaType.AnalyticalListPage]))}return t}o(Wx,"importConfig");async function Kx(e){return du(e)}o(Kx,"importProject");async function Jx(e){return pu(e)}o(Jx,"importProjectSchema");function Qx(){return{version:"20",moduleVersion:Hg.version}}o(Qx,"getApiVersion");var Rt=require("path"),Qn=require("fs");var ir=o(async e=>new Promise((t,n)=>{(0,Qn.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),qx=o(async e=>JSON.parse(await ir(e)),"readJSON"),Cu=o(async e=>new Promise((t,n)=>{(0,Qn.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),Xx=o(async e=>new Promise(t=>{(0,Qn.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),iy=o(async e=>new Promise(t=>{(0,Qn.exists)(e,n=>{t(n)})}),"resourceExists"),zx=o(async e=>qx((0,Rt.join)(e,"manifest.json")),"getManifest"),ry=o(async e=>{let t=[],n=(0,Rt.join)(e,"changes");if(!await iy(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Cu(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await ir((0,Rt.join)(n,a)));return t},"getChanges"),Yx=o(async e=>{let t=[],n=(0,Rt.join)(e,"ext","fragments");if(!await iy(n))return t;let i=await Cu(n);for(let r of i){let a=(0,Rt.join)(n,r),s=await ir(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),Zx=o(async(e,t)=>{var r,a,s,l,c,u,f,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,Rt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:g,fileContent:await ir(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((f=(u=i[g])==null?void 0:u.settings)!=null&&f.localUri){let b=(0,Rt.join)(t,i[g].settings.localUri);n.push({dataSourceUri:b,fileContent:await ir(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 E=(0,Rt.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await ir(E)})}}return n},"getAnnotations"),eE=o(async e=>{let t=(0,Rt.basename)(e),n=(0,Rt.join)(e,"webapp"),i=await zx(n),r=await Zx(i,n),a=await ry(n),s=await Yx(n);return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s}},"getProject");Xn(Yt,U(K()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
88
+ `}),Om(w)}o(ut,"initI18n");var Oe=U(K());function bi(e,t,n){var r;let i;for(let a in e){let s=e[a];if(pn((r=s.component)==null?void 0:r.name)===Oe.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=bi(s.pages,t,n),i))return n.unshift(a),i}}o(bi,"findObjectPageV2");function Zi(e,t){var n;for(let i in e){let r=e[i];if(pn((n=r.component)==null?void 0:n.name)===Oe.PageTypeV2.ListReport)return t.push(i),r}}o(Zi,"findListReportPageV2");function er(e){if(!e.manifest[Oe.ManifestSection.generic]){q(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOFE"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}let t=e.manifest[Oe.ManifestSection.generic].pages;if(!t){q(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}return t}o(er,"getV2Pages");function tr(e,t,n){var i;if(!e){q(t,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;q(t,{severity:Oe.LogSeverity.Error,message:w.t("NOENTITYSET",{pageName:r}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}}o(tr,"checkV2Page");function nr(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),pn((i=a.component)==null?void 0:i.name)===Oe.PageTypeV2.AnalyticalListPage)return a}q(n,{severity:Oe.LogSeverity.Error,message:w.t("NOALP"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}o(nr,"findAnalyticalListPage");function Zc(e,t){let n=e.split("|");return Oe.v2.SectionPosition[n[0]]&&n[1]===t}o(Zc,"isAssociatedCustomSection");function Nm(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Oe.v2.SAPUI5_VIEW_EXTENSION}/${Oe.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Zc(r,t)&&(i[r]=n[r]);return i}o(Nm,"findCustomSectionExtensions");function sS(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(sS,"removeEmptySettingsOfFooter");function lS(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(lS,"removeEmptySettingsOfFilterBar");function cS(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(cS,"removeEmptySettingsOfToolBar");function rs(e){cS(e),lS(e),sS(e)}o(rs,"removeEmptySettings");var tu={};Po(tu,{AnalyticalListPage:()=>wt,ListReport:()=>Wt,ObjectPage:()=>ft,OverviewPage:()=>$e});var os=U(K());var wt=class{};o(wt,"AnalyticalListPage"),m([y({flex:{controlId:na,controlType:o(()=>os.ControlType.DynamicPage,"controlType"),createFlexChange:$}})],wt.prototype,"fitContent",2),m([Xe("table")],wt.prototype,"table",2),m([Xe("template::SmartFilterBar")],wt.prototype,"filterBar",2),m([Xe("analyticalListPageChart")],wt.prototype,"chart",2),m([Xe("analyticalListFooter")],wt.prototype,"footer",2),wt=m([In({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:os.v2.FE_TEMPLATE_V2_ALP})],wt);var uo=U(K());var Wt=class{};o(Wt,"ListReport"),m([y({flex:{controlId:na,controlType:o(()=>uo.ControlType.DynamicPage,"controlType"),createFlexChange:$}})],Wt.prototype,"fitContent",2),m([Xe("listReportFilter")],Wt.prototype,"filterBar",2),m([Xe("listReport")],Wt.prototype,"table",2),m([Xe("listReportFooter")],Wt.prototype,"footer",2),Wt=m([In({id:uo.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:uo.v2.FE_TEMPLATE_V2_LIST_REPORT})],Wt);var eu=U(K());var ft=class{};o(ft,"ObjectPage"),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.52.0"})],ft.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.52.1"})],ft.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.48.0"})],ft.prototype,"allowDeepLinking",2),m([y({manifest:{path:o(t=>jt(t),"path")}}),F({since:"1.52.0"})],ft.prototype,"navToListOnSave",2),m([Xe("header")],ft.prototype,"header",2),m([Xe("sections")],ft.prototype,"sections",2),m([Xe("layout")],ft.prototype,"layout",2),m([y({manifest:{path:o(t=>jt(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Qd}}),F({since:"1.71.0"})],ft.prototype,"globalTableSettings",2),ft=m([In({id:eu.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:eu.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ft);var $e=class{};o($e,"OverviewPage"),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterModel",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterEntityType",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"showBasicSearch",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"disableErrorPage",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"smartVariantRequired",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"bHeaderExpanded",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"containerLayout",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"enableLiveFilter",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"enableLazyRendering",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"useDateRangeType",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"dataLoadSettings",2),m([y({manifest:{path:o(()=>We(),"path")}})],$e.prototype,"resizableLayout",2),$e=m([In({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],$e);var nu=class nu{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(nu,"MetadataFactory");var as=nu;var pt=U(K());var uS={},fS={Table:ri,ResponsiveTableWithMultiSelect:ri,ResponsiveTableWithInlineDelete:ri},pS={[pt.v2.CardSettingsType.listCardSettings]:Lr,[pt.v2.CardSettingsType.analyticalCardSettings]:Vr,[pt.v2.CardSettingsType.stackCardSettings]:jr,[pt.v2.CardSettingsType.linkListCardSettings]:Dr,[pt.v2.CardSettingsType.tableCardSettings]:$r},dS={[pt.SAPUI5_VIEW_CLASS]:ro,[pt.SAPUI5_FRAGMENT_CLASS]:io,Table:hi,ObjectPageResponsiveTableWithMultiSelect:hi,ObjectPageResponsiveTableWithInlineDelete:hi},gS={[pt.PageTypeV2.AnalyticalListPage]:uS,[pt.PageTypeV2.ListReport]:fS,[pt.PageTypeV2.ObjectPage]:dS,[pt.PageTypeV2.OverviewPage]:pS},iu=class iu extends as{constructor(){super(qc,tu,gS)}};o(iu,"MetadataInstanceFactoryV2");var dt=iu;function mS(e,t,n,i,r){e.filterBar=t.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ListReportFilterBar,e.filterBar),tt(e.filterBar,n.manifest,i[we.DefinitionName.ListReportFilterBar],r,n.logger)}o(mS,"importFilterBar");function ru(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var u,f,p;let l=Ut(s),c={controlId:l.controlId,propertyId:(u=l.content)==null?void 0:u.property,newValue:(f=l.content)!=null&&f.newBinding?l.content.newBinding:(p=l.content)==null?void 0:p.newValue,controlType:l.controlType,creation:l.creation};Za(n.table,c,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&es(e,n,s)}o(ru,"importFlexChangesOfTableAndColumns");function yS(e,t,n,i,r){var s;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[wi],tt(n.table,i.manifest,a,r,i.logger),ru(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&q(i.logger,{severity:we.LogSeverity.Error,message:w.t("NOLINEITEMS")})}o(yS,"importTable");function hS(e,t,n,i){let r=e.jsonSchema.definitions,a=ns(e.manifest,i);if(t.table=n.createInstance(we.PageTypeV2.ListReport,a,t.table),is(t,n,r),yS(a,r,t,e,i),t.table.toolBar=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ToolBar,{actions:{}}),tt(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=Gn(l);t.table.toolBar.actions[c]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.Action),tt(t.table.toolBar.actions[c],e.manifest,r[we.DefinitionName.Action],i,e.logger)}mS(t,n,e,r,i),t.footer={actions:{}};let s=r[we.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=Gn(l);t.footer.actions[c]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.FooterAction),tt(t.footer.actions[c],e.manifest,r[we.DefinitionName.Action],i,e.logger)}}o(hS,"addSettings");function ss(e){if(ut(),!er(e))return;let n=new dt,i=n.createPageInstance(we.PageTypeV2.ListReport),r=[],a=Zi(e.manifest[we.ManifestSection.generic].pages,r);if(tr(a,e.logger,a==null?void 0:a.entitySet),!!a)return hS(e,i,n,r[0]),e.flex.forEach(s=>{Ut(s)&&ts(i,s,e.jsonSchema,e.logger)}),Yi(i,e,a,we.PageTypeV2.ListReport),rs(i),i}o(ss,"createListReportConfig");var je=U(K());function bS(e,t,n,i){var u,f;let r=ns(e.manifest,i),a=e.jsonSchema.definitions;is(t,n,a),t.table=n.createInstance(je.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(tt(t.table,e.manifest,s,i,e.logger),ru(e,s,t),t.table.toolBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,a[je.DefinitionName.ToolBar],i,e.logger),a[je.DefinitionName.ActionsLR])for(let p in a[je.DefinitionName.ActionsLR].properties){let g=Gn(p);t.table.toolBar.actions[g]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.Action),tt(t.table.toolBar.actions[g],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),tt(t.filterBar,e.manifest,a[je.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(je.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),tt(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[je.DefinitionName.FooterActionsLR];if(l)for(let p in l.properties){let g=Gn(p);t.footer.actions[g]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.FooterAction),tt(t.footer.actions[g],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(f=(u=e.manifest[je.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:f.keyPerformanceIndicators;c&&Object.keys(c).forEach(p=>{t.keyPerformanceIndicators[p]=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),tt(t.keyPerformanceIndicators[p],e.manifest,a.KPISettings,i,e.logger,p)})}o(bS,"addSettings");function ls(e){if(ut(),!er(e))return;let n=new dt,i=n.createPageInstance(je.PageTypeV2.AnalyticalListPage),r=[],a=nr(e.manifest[je.ManifestSection.generic].pages,r,e.logger);if(tr(a,e.logger,a==null?void 0:a.entitySet),!!a)return bS(e,i,n,r[0]),e.flex.forEach(s=>{Ut(s)&&ts(i,s,e.jsonSchema,e.logger)}),Yi(i,e,a,je.PageTypeV2.AnalyticalListPage),rs(i),i}o(ls,"createAnalyticalListPageConfig");var _=U(K());var fo=require("@sap-ux/vocabularies-types/vocabularies/UI");var vS=[_.ControlType.Avatar,_.ControlType.ObjectPageLayout,_.ControlType.DynamicPage];function CS(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(`${fo.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${_.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(fo.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(CS,"getSingleSelectorIdPart");function SS(e){let t,n=e.split(":::");if(n.length===1)t=CS(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(`::${fo.UIAnnotationTerms.LineItem}`,`/@${fo.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(SS,"getFacetID");function xS(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,u;try{let f=Ut(s),p=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=p[0])!=null&&c.includes(_.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((u=p[0])!=null&&u.endsWith(t))){let g=p[1].replace(/:3a:3a/g,"::");r.exec(g)!==null&&(g=g.split("template:::TableColumn:::")[1]);let b=SS(g);g=zc(g).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${g}::${f.content.property}`]={controlId:g,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){q(n,{severity:_.LogSeverity.Error,message:w.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}o(xS,"prepareFlexChanges");var ES=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 PS(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&Xc(i,t,r)}o(PS,"addFlexChangeToColumns");function Lm(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,_.VOCWITHSLASH)];for(let c in e){let u=e[c],f=u.propertyId===t,p=t==="columns"&&u.controlType===_.ControlType.TableColumn;(f||p)&&s.indexOf(u==null?void 0:u.facetId)>-1&&(a?PS(a,u,r.properties,n):Za(n,u,r))}}o(Lm,"importFlexChangesOfTable");function AS(e,t){return e.facetId==="template"&&t}o(AS,"isStandardActionFlexChange");var Vm=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 IS(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("::"),u=t.controlType===_.ControlType.GroupElement&&l,f=((I=t.facetId)==null?void 0:I.includes(_.ACTIONTITLEPREFIX))&&!r&&s,p=r&&Vm(c,r.split("::"))&&s,g=e.title&&Vm(c,e.title.split("::"),!0),b=!t.facetId&&vS.includes(t.controlType),E=AS(t,l);return u||f||p||g||b||E}o(IS,"matchSelector");function OS(e,t,n,i,r,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let u in n){let f=n[u];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[_.SchemaTag.controlType]))continue;IS(e,f,s,l,r,a)&&(t[i]=f.newValue)}}o(OS,"importFlexChanges");function FS(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(q(n.logger,{severity:_.LogSeverity.Warning,message:$i(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(FS,"checkDeprecatedProperties");function NS(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,u;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),u=ze(n.manifest,c),Object.values(u).length===0&&(c=e.manifest.path(t,{},l),u=ze(n.manifest,c))):(c=e.manifest.path(t,{},l),u=ze(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let p=f(u,s==null?void 0:s.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in u&&(i[r]=u[p])}return FS(u,a,n,c),u}o(NS,"importManifestSetting");function gt(e,t,n,i,r,a){var c,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let p=At(t,f);if(f==="columns"||p!=null&&p.flex)if((c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let g=n.properties[f].$ref.split(j)[1],b=e.jsonSchema.definitions[g];Lm(i.flexChanges,f,t,r,b,l)}else Lm(i.flexChanges,f,t,r,n);else{let g=(r==null?void 0:r.title)||(r==null?void 0:r.id);OS(n,t,i.flexChanges,f,g,a)}else p!=null&&p.manifest&&NS(p,i.pageKeys,e,t,f,s,r)}}o(gt,"transferSettingsAndFlexChanges");function Dm(e,t,n,i){let r=Tt(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=`${Tg}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${oa}${r}`;break}}return r.replace(/@/g,"")}o(Dm,"getActionId");function LS(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=Dm(s,a,"","");e.actions[a]=i.factory.createInstance(_.PageTypeV2.ObjectPage,l,{}),gt(n,e[_.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}o(LS,"fillStandardActions");function cs(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 u in t){let f=Gn(u),p=Dm(s,f,r,a);p&&(n[_.PropertyName.actions][f]=i.factory.createInstance(_.PageTypeV2.ObjectPage,s),gt(e,n[_.PropertyName.actions][f],e.jsonSchema.definitions[s],i,c,p)),(l=n[_.PropertyName.actions])!=null&&l[f]&&Object.keys(n[_.PropertyName.actions][f]).length===0&&delete n[_.PropertyName.actions][f]}}LS(n,t,e,i),Object.keys(n[_.PropertyName.actions]).length===0&&delete n[_.PropertyName.actions]}o(cs,"fillActions");function VS(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}`;gt(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(VS,"fillFields");function jS(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(jS,"prepareTableSchema");function DS(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 u=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=r.factory.createInstance(_.PageTypeV2.ObjectPage,`ObjectPage${u}`,{toolBar:{}});i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][_.PropertyName.table]=f;let p=e.jsonSchema.definitions,g=jS(u,t,p);gt(e,i[t.id],t.schema,r,{title:t.title}),gt(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 E=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");cs(e,b.properties,i[t.id][_.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][_.PropertyName.table].toolBar).length===0&&delete i[t.id][_.PropertyName.table].toolBar}}o(DS,"fillTableInConfig");function $S(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?ra(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Yi(n[t],e,i,_.PageTypeV2.ObjectPage,l,r)}}o($S,"fillCustomColumnsInConfig");function wS(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)&&(gt(e,i[t.id],t.schema,r,{title:t.title}),gt(e,i[t.id][_.PropertyName.chart],e.jsonSchema.definitions[_.DefinitionName.ObjectPageChart],r,t))}o(wS,"fillChartSection");function RS(e,t,n,i){n[t.id]=i.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&gt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(RS,"fillHeaderSection");function _S(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&&gt(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&&cs(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&VS(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(_S,"fillFormSection");function jm(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(_.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&gt(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,ou(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(jm,"fillSubSection");function ou(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),u={id:c,type:ES(t[l]),schema:t[l],title:pl(t[l],e.jsonSchema)};if(u.schema.$ref&&u.type)switch(u.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{u.schema=a[`${u.type}<${l}>`],DS(e,u,n,i,r),$S(e,c,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u.schema=a[`${u.type}<${l}>`],wS(e,u,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{u.schema=a[`${u.type}<${l}>`],_S(e,u,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{u.schema=a[`${u.type}<${l}>`],jm(e,u,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{u.schema=a[`${u.type}<${l}>`],RS(e,u,i,r);break}}else(s=u.schema.properties)!=null&&s.subsections&&(u.schema=a[`${u.type}<${l}>`],jm(e,u,n,i,r))}}o(ou,"fillSectionsInConfig");function MS(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"];gt(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(MS,"fillCustomSectionsInConfig");function kS(e,t){var f,p;let n=t.factory.createPageInstance(_.PageTypeV2.ObjectPage);gt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(_.PageTypeV2.ObjectPage,_.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;gt(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>"];gt(e,n.header,r,t);let a=i[_.DefinitionName.HeaderActions];a&&cs(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[_.DefinitionName.FooterActions];s&&cs(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(_.PageTypeV2.ObjectPage,"ObjectPageLayout"),gt(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=(f=t.v2Page.component)==null?void 0:f.settings;ou(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;ou(e,c.properties,g,n.sections,t)}let u=Nm(e.manifest,e.entitySet);return MS(u,n,t,i,e),n}o(kS,"fillConfig");function us(e){ut();let t=er(e);if(!t)return;let n=e.entitySet,i=[],r=bi(t,e.entitySet,i);if(tr(r,e.logger,n),!r)return;let a=xS(e.flex,n),s=new dt;return kS(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(us,"createObjectPageConfigV2");function ps(e,t){var n,i;return(n=e.component)!=null&&n.name?ea(pn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(ps,"generateId");function US(e,t,n,i,r,a,s){e.navigation={};let l=$m(t.pages,n,i,r,a);for(let c in l){let u=l[c];s[c]=u}for(let c in t.pages){let u=ps(t.pages[c],c);e.entitySet?e.navigation[u]=l[u].navigationProperty?`${e.entitySet}.${l[u].navigationProperty}`:e.entitySet:e.navigation[u]=l[u].navigationProperty?l[u].navigationProperty:u}}o(US,"getPageConfigsAndNavigations");function $m(e,t,n,i,r,a){var l;let s={};for(let c in e){let u=e[c],f=ps(u,c);if(!f)continue;let p={pageType:pn((l=u.component)==null?void 0:l.name),entitySet:u.entitySet,...u.navigationProperty&&{navigationProperty:u.navigationProperty},...u.defaultLayoutType&&{defaultLayoutType:u.defaultLayoutType}};s[f]=p;let g=Object.keys(i).find(b=>b.includes(f))||Object.keys(i).find(b=>b.includes(f.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(g)if(p.pageType===Be.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=ss(b)}else if(p.pageType===Be.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[g],fragments:r,logger:a};p.config=ls(b)}else{let b={manifest:n,flex:t,jsonSchema:i[g],entitySet:p.entitySet,fragments:r,logger:a};p.config=us(b)}u.pages&&US(p,u,t,n,i,r,s)}return s}o($m,"getPagesAndConfigs");var au=class au extends Ui{constructor(t){ut();let n;t.manifest[Be.ManifestSection.generic]?n=t.manifest[Be.ManifestSection.generic].pages:q(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOFE"),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}}),n||q(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ps(n[i],i),a=new Fn,s=Ze(Be.SchemaType.Application),l=t.appSchemas[s.filename];tt(a,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,$m(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),Be.FioriElementsVersion.v2,a)}};o(au,"V2AppProvider");var fs=au;function po(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||q(n,{severity:Be.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Be.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=ps(l,s);i[c]=l}if(t===Be.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=po(l.pages,t,n);for(let u in c)i[u]=c[u]}}return i}o(po,"getPages");var xn=U(K());var rn=U(K());var lu=U(_s());var Pe=U(K());var BS=["colorPalette","tabs"];function HS(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(HS,"createCard");function wm(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),wm(e,n.join("|"))}return t}o(wm,"findAvailableId");function go(e,t,n,i,r,a,s){i!=null&&i.properties&&su(e,t,n,i.properties,r,a,s)}o(go,"transferManifestEntriesOVP");function Ti(e,t,n,i){return e.createInstance(Pe.PageTypeV2.OverviewPage,i,n,t)}o(Ti,"assignReflectMetadataRules");function GS(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=Ti(e.factory,i[1],t,"CustomCard"),go(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(GS,"processAnyOfDefinitionsOfOVP");function WS(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!BS.includes(i)?t[i]=(0,lu.default)(t[i]||{},r||{},{arrayMerge:ul}):t[i]=r}o(WS,"checkSyncRuleForExport");function KS(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=ze(i.manifest,s);if(n in Pe.v2.CardSettingsType||n==="settings")l.settings=(0,lu.default)(l.settings||{},r||{},{arrayMerge:ul});else if(r!==void 0){let c=e.manifest.export;WS(c,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(KS,"transferToManifest");function JS(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Pe.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ti(e.factory,i[0],e.currentObject[t],"CustomCard"),HS(t,e.exportResults.manifest[Pe.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated,go(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Pe.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Pe.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated)})}o(JS,"transferCards");function QS(e,t){if(t==="cards")JS(e);else{let n=An(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Pe.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=Ti(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],go(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],su(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],su(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(QS,"exportOfObject");function su(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!rl(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],u=At(e,l),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],c=GS(f)):c&&typeof c=="object"&&i[l]&&QS(f,l),u!=null&&u.manifest&&KS(u,a,l,t,c,e)}}o(su,"processProperties");function qS(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),u=pg(a,n,e.ui5Version,s,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let p=n.flex.createFlexChange(u,f);e.exportResults.flexChanges.find(b=>{let E=!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)&&(E=!0),E})||e.exportResults.flexChanges.push(p)}o(qS,"evaluateFlexRule");function XS(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=Pe.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=Pe.ChangeIndicator.Updated}}o(XS,"exportConfigValueToManifest");function zS(e,t,n,i,r){let a=ze(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)XS(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=Pe.ChangeIndicator.Updated,Tr(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(zS,"evaluateManifestRule");function YS(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(Pe.FACETTITLEPREFIX)?r.split(Pe.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(YS,"getManifestPathOfSections");function ZS(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(ZS,"getManifestPathOfTable");function ex(e,t,n,i,r){let a;return t[0]===Pe.PropertyName.sections?a=YS(t,a,n,e,r):t[0]===Pe.PropertyName.table?a=ZS(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(ex,"getManifestPath");function tx(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)qS(e,i,t,r,a,n,s);else if(t.manifest){let c=ex(e,i,t,n,a);zS(e,c,t,s,n)}}o(tx,"evaluateExportRule");function nx(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)&&(va(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Pe.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Pe.ViewTemplateType.ResponsiveTableColumnsExtension,Pe.ViewTemplateType.ResponsiveTableCellsExtension);va(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}o(nx,"deleteObsoleteColumn");function ix(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Kg(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Pe.ChangeIndicator.Updated,nx(r,e,n))}o(ix,"deleteObsoleteColumnsFromFragment");function rx(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}=Ca(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}o(rx,"clusterConfigColumnsByPath");function Rm(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 Pe.v2.TableColumnExtensionTypeV2){let{path:c}=Ca(e.v2Page,s,r,l);if(!c)continue;let u={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{ix(u)}catch(f){e.logger.error(f.message)}}if(t){let l=rx(t,n,e.v2Page,s,r);for(let c in l)Hl(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}o(Rm,"transferColumnExtensions");function ox(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let u of t){let f=wm(s,[u.relativePosition,l,u.relatedFacet].join("|"));s.push(f)}for(let u=0;u<s.length;u++){let p=a.anyOf.find(b=>{var E;return(E=b.$ref)==null?void 0:E.includes(t[u].constructor.name)}).$ref.split(j),g=e.appSchema.definitions[p[p.length-1]];Wn(e,t[u],i,[...r,s[u]],g)}let c=ze(e.exportResults.manifest,vl());for(let u in c)Zc(u,l)&&!s.includes(u)&&delete c[u]}o(ox,"transferManifestExtensions");function ax(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Pe.PropertyName.table){n=e[i-1];break}return et(n,t)}o(ax,"getSectionId");function sx(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=An(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Wn(t,c.configObject,r,[...a,i],c.targetDefinition,l)})}o(sx,"transferIndexTable");function lx(e,t,n,i,r,a){let s,l=ra(e.$ref);l&&(s={target:l,key:ax(t,n)}),Rm(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(lx,"transferCustomColumns");function cx(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let c=An(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&Wn(t,c.configObject,a,[...s,r],c.targetDefinition,c.title)})}o(cx,"handleAnyOfDefinitions");function ux(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")ox(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){lx(l,t,s,e,n,a);return}else a?Wn(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&cx(l,e,s,n==null?void 0:n[r],r,i,t)}o(ux,"transferComplexProperty");function Wn(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&&!rl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&Zd(t,l),u=c?[...n,c]:n,f=At(t,l),p=e.propertyDefinition=r.properties[l],g=e.nextDefinition=An(e.appSchema,a,s,p,l,e.factory,e.pageType);if(tx(e,f,t,[...i],u,a,l),sx(s,e,a,l,u,i),s===void 0||typeof s=="object")ux(e,i,t,u,l,g,a);else if((p==null?void 0:p.$ref)===j+"TableCustomColumns"){Rm(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Wn,"transferManifestEntriesAndFlexChange");function _m(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ti(r,i,n[i],s),a.push(i),cu(r,n[i],e,l.properties,a)}o(_m,"transferSettingsOfRef");function fx(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);_m(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${j}${rn.v2.cardTemplateSettingsMap[e.template]}`.split(j);_m(i,l,e,t,r,a)}}o(fx,"processPropertiesOfObject");function px(e,t,n,i,r,a){let s=At(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=ze(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{ia(s,c,t,e)}catch(u){q(i.logger,{severity:rn.LogSeverity.Error,message:w.t("XMLPARSEFAILURE",{error:Wd(u)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&fx(e,t,r,i,a,n)}o(px,"processOvpProperty");function cu(e,t,n,i,r){for(let a in i)px(t,a,r,n,i,e)}o(cu,"processOvpProperties");function dx(e,t,n){cu(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[rn.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[rn.ManifestSection.ovp].cards[i].template,a=rn.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ti(n,a,{},"CustomCard"),e.cards=Ti(n,a,e.cards,"CustomCard"),cu(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(dx,"addSettings");function ds(e){let t=new dt,n=t.createPageInstance(rn.PageTypeV2.OverviewPage);return e.jsonSchema&&dx(n,e,t),n}o(ds,"createOverviewPageConfig");var uu=class uu extends Ui{constructor(t){let n={},i=t.manifest[xn.ManifestSection.ovp],r=new Fn,a=Ze(xn.SchemaType.Application);tt(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(xn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},c={pageType:xn.PageTypeV2.OverviewPage,config:ds(l),entitySet:i.globalFilterEntitySet},u=ea(c.pageType,c.entitySet);n[u]=c,super(t.manifest,t.appSchemas,u,n,xn.FioriElementsVersion.v2,r,t.logger)}};o(uu,"V2OvpProvider");var gs=uu;var Mm=require("fs"),vi=require("path"),fu=U(K());var km=o((e,t,n=__dirname)=>{let i=t===fu.SchemaType.Application?`${fu.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,vi.join)(n,"schemas",e,i);if(n.endsWith((0,vi.join)("specification","packages","specification")))return(0,vi.join)(n,"dist","schemas",e,i);if(n.endsWith((0,vi.join)("src","specification")))return(0,vi.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,vi.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),gx=o(async e=>new Promise((t,n)=>{(0,Mm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ms=o(async(e,t)=>{try{let n=km(e,t,__dirname);return await gx(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function mx(e,t){let n={},i=[];switch(i=[ee.SchemaType.Application],e){case ee.TemplateType.ListReportObjectPageV2:i.push(ee.SchemaType.ListReport,ee.SchemaType.ObjectPage);break;case ee.TemplateType.AnalyticalListPageV2:i.push(ee.SchemaType.AnalyticalListPage,ee.SchemaType.ObjectPage);break;case ee.TemplateType.OverviewPageV2:i.push(ee.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Ze(r);n[a.filename]=await ms(t,r)}return n}o(mx,"getGenericSchemas");function Bm(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=zt(ee.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(Bm,"getAnnotationsForUi");function mo(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(mo,"getEntitySetByEntitySetName");function yx(e,t,n){var r;let i=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=mo(s,e.serviceAVT);let l=Ze(ee.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),c=Ze(ee.SchemaType.ListReport);t[l.filename]=ho(e,n[c.filename])}}o(yx,"generateAppSchemaV2LR");function Um(e,t,n){let i=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=mo(a,e.serviceAVT);s||q(e.logger,{severity:ee.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Ze(ee.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Ze(ee.SchemaType.ObjectPage);n[l.filename]=yo(e,t[c.filename])}}o(Um,"generateObjectPageSchemasV2");function hx(e,t,n,i){var a;let r={};if(i===ee.TemplateType.ListReportObjectPageV2&&n)yx(e,r,t),Um(e,t,r);else if(i===ee.TemplateType.AnalyticalListPageV2&&n){let s=po(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=mo(c,e.serviceAVT);let u=Ze(ee.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=Ze(ee.SchemaType.AnalyticalListPage);r[u.filename]=bo(e,t[f.filename])}Um(e,t,r)}else if(i===ee.TemplateType.OverviewPageV2){let s=Ze(ee.SchemaType.OverviewPage),l=Ze(ee.SchemaType.OverviewPage);r[s.filename]=To(t[l.filename],e.manifest)}return{...t,...r}}o(hx,"generateAppSchemasV2");async function Hm(e,t,n){if(e.fioriElementsVersion===ee.FioriElementsVersion.v2){let i=await mx(n,e.fioriElementsVersion);return hx(e,i,t,n)}else{let i=w.t("INVALIDSPECFORV4");q(e.logger,{severity:ee.LogSeverity.Info,message:i})}}o(Hm,"generateAppSchemas");function bx(e){let t,n=[];switch(e.templateType){case ee.TemplateType.ListReportObjectPageV2:case ee.TemplateType.AnalyticalListPageV2:t=new fs(e);break;case ee.TemplateType.OverviewPageV2:t=new gs(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(bx,"importConfigs");function Gm(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ee.SchemaType.Application?r=`${ee.DirName.Schemas}/${ee.FileName.App[0].toUpperCase()}${ee.FileName.App.slice(1)}`:r=`${ee.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Gm,"getFileList");async function pu(e){var E,I;ut();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Er().doesUi5VersionFitDistTags((I=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:I.minUI5Version,i);let c=ll(t),u=yr(n,i),f=Bm(u),p=cl(t,c,i),b=await Hm({templateType:p,manifest:t,serviceAVT:u,fragments:r,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},f,p);if(b)return Gm(b)}o(pu,"importProjectSchema");async function du(e){var oe,Y;ut();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Er().doesUi5VersionFitDistTags((Y=(oe=t["sap.ui5"])==null?void 0:oe.dependencies)==null?void 0:Y.minUI5Version,i);let u=ll(t),f=Bd(t),p=yr(n,i),g=cl(t,u,i),b={templateType:g,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:l},E=Bm(p),I=await Hm(b,E,g);if(!I)return;let G=bx({manifest:t,flexChanges:s,appSchemas:I,templateType:g,logger:i,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,oDataVersion:f});return Gm(I,G)}o(du,"importProjectSchemaAndConfig");var Tx=["header","sections","footer"];function vx(e,t,n,i){t.properties[n][V.SchemaTag.artifactType]=V.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=V.ControlType.Section;break;case"ObjectPageSubSectionV2":r=V.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=V.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=V.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=V.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=V.ControlType.ObjectPageHeaderSection;break}r&&(he(e,t,n),t.properties[n][V.SchemaTag.controlType]=r)}o(vx,"addFlexChangeForSection");function Cx(e,t,n,i,r){return(a,s)=>{if(!a.Determining&&a.$Type===Kn.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:u}=ml(a,r);if(!c)return;let f=a.Label||l,p=`HeaderAction<${_e(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let g=n.fullyQualifiedName.replace(`@${Kn.UIAnnotationTerms.Identification}`,`/@${Kn.UIAnnotationTerms.Identification}`);t.definitions[p][V.SchemaTag.annotationPath]=`/${g}/${s}`,t.definitions[p][V.SchemaTag.actionType]=V.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][V.SchemaTag.keys]=[{name:V.SchemaKeyName.action,value:l}],u&&(t.definitions[p][V.SchemaTag.target]=u),i.properties[c]={$ref:`${j}${p}`}}}}o(Cx,"addHeaderActionCallBackV2");function Sx(e,t,n,i,r,a,s,l){let c,u;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?u=`${V.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:u=`${V.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[u])return u;let f=`${V.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let p=[],g=r==null?void 0:r.entityTypes.find(E=>E.name===i),b=bi(t[V.ManifestSection.generic].pages,n,p);return _i(e,g,b,t,l,u,f,a.ID),u}o(Sx,"ensureCustomColumnDefinitionExists");function vo(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&vx(e,t,"visible",n)}o(vo,"addAppSchemaDefinition");function xx(e,t,n){e.properties[t]={$ref:`${j}${n}`}}o(xx,"addSectionReference");function ys(e,t,n,i){let r=_e(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(w.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][V.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=V.FACETTITLEPREFIX+n.ID,i.definitions[r][V.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=V.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}>`,ca(n.entityType,i,`QuickVariant<${t}>`)}o(ys,"addTableDefinition");function Ex(e,t,n,i,r,a){if(i.base!==V.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Yn(n,i,t);let c=n.definitions[l];vo(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[V.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],c[V.SchemaTag.annotationPath]=i.annotationPath,br(i,c,t),ys("ObjectPageResponsiveTable",t,i,n),ys("ObjectPageGridTable",t,i,n),ys("ObjectPageTreeTable",t,i,n),ys("ObjectPageAnalyticalTable",t,i,n);let u,f=$g(i,e.serviceAVT);f&&(u=Sx(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r){let g=r[p];g.base===V.FacetBase.LineItem&&(g.ID===s||p.includes(s))&&Ri(!0,n,g.target,g.entityType,g.ID||p,u)}}o(Ex,"handleLineItem");function Px(e,t,n,i,r,a=!1){e.definitions[t]=Yn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";vo(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[V.SchemaTag.isViewNode]=!0}o(Px,"handleSubSection");function Ax(e,t,n,i,r){e.definitions[t]=Yn(e,n,i);let a=e.definitions[t];vo(e,a,r,"ObjectPageSectionChartV2")}o(Ax,"handleSectionChart");function Wm(e,t,n,i,r,a){e.definitions[t]=Yn(e,n,i);let s=e.definitions[t];vo(e,s,r,a||"CommonHeaderFacetSettings"),s[V.SchemaTag.annotationPath]=n.annotationPath,s[V.SchemaTag.isViewNode]=!0,s[V.SchemaTag.dataType]=ua(n==null?void 0:n.target)}o(Wm,"handleHeaderFacet");function Ix(e,t,n){let i=e.definitions[t],r=i[V.SchemaTag.dataType]=ua(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(Ix,"addDataPointHeaderFacetDataType");function Ox(e,t,n,i,r){e.definitions[t]=Yn(e,n,i);let a=e.definitions[t];return vo(e,a,r,"ObjectPageSectionFormV2"),a[V.SchemaTag.annotationPath]=n.annotationPath,a[V.SchemaTag.isViewNode]=!0,a}o(Ox,"handleFormSection");function Fx(e,t,n){let i=new Map([[V.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[V.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[V.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[V.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[V.FacetBase.Form,"ObjectPageHeaderSectionForm"],[V.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[V.FacetBase.LineItem,"ObjectPageSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSectionChartV2"],[V.FacetBase.Address,"ObjectPageSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSectionContactV2"],[V.FacetBase.Form,"ObjectPageSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[V.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[V.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[V.FacetBase.Form,"ObjectPageSubSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Fx,"getSectionType");function Nx(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Kn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(Nx,"getReferenceKey");function Jm(e,t,n,i,r,a=!1,s=!1){let l=t[n],c=Fx(l.base,a,s),u=Nx(l,n,c),f=`${c}<${u}>`;switch(xx(i,u,f),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Px(r,f,l,n,c,s);let p=r.definitions[f].properties.subsections;for(let g in l.facets)Jm(e,l.facets,g,p,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Ex(e,u,r,l,t,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Ax(r,f,l,u,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let p=Ox(r,f,l,u,c);Ng(V.SectionType.Section,l,p,r,V.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{yl(l,u,i,r,V.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{yl(l,u,i,r,V.SectionType.Section,V.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Wm(r,f,l,u,c);break}case"ObjectPageHeaderSectionDataPoint":{Wm(r,f,l,u,c),Ix(r,f,l);break}default:i.properties[n]=Yn(r,l,u)}}o(Jm,"addSection");function Km(e,t,n,i,r,a=!1){if(e)for(let s in t)Jm(i,t,s,n,r,!1,a)}o(Km,"addSectionsFromFacets");function Qm(e,t,n){var f,p,g,b,E,I;let i=t.definitions[V.DefinitionName.Sections];i[V.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Kn.UIAnnotationTerms.Facets}`);let r=t.definitions[V.DefinitionName.HeaderSections];if(r[V.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(p=e.entitySet)!=null&&p.entityType&&(r[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Kn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ud((g=e.entitySet)==null?void 0:g.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),s=kd((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,V.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 G=n[L];(I=(E=e.entitySet)==null?void 0:E.name)!=null&&I.includes(G.entitySet)?(Km(l,a,i,e,t),Km(c,s,r,e,t,!0)):Qm(e,t,G.pages)}let u=t.definitions.CustomSections;for(let L in u.properties)i.properties[L]=u.properties[L]}o(Qm,"addSections");function Lx(e,t,n){Dg(e,t),jg(e,t,n,Cx,!0)}o(Lx,"addHeader");function Vx(e,t,n,i){let r=Hd(t,n,i,void 0,!0);r&&Mg(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Vx,"addRelatedFacetKeysType");function yo(e,t){var s;ut();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[V.PropertyName.sections]={$ref:j+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[V.ManifestSection.generic].pages;return a?(Lx(n,r,e.serviceAVT),n.definitions[V.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Qm(e,n,a),Vx(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[V.SchemaTag.isViewNode]=!0):delete n.properties[V.PropertyName.sections]),Vg(n,e,V.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,ji(n,Tx),n):(q(e.logger,{severity:V.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}}),n)}o(yo,"generateObjectPageSchemaV2");var Ft=U(K());var jx=["filterBar","table","footer"];function gu(e,t,n,i){ca(e,n,"QuickVariant"),Rg(n,"QuickVariantX",t),_g(i,n,"QuickVariantX")}o(gu,"addEnumForVariantPaths");function ho(e,t){var f,p,g,b,E,I,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+wi,n.properties.table.anyOf[1].$ref=j+vr,n.properties.table.anyOf[2].$ref=j+Cr,n.properties.table.anyOf[3].$ref=j+Sr;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+Ft.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,a.properties.columns=l,s.properties.columns=l;let c=j+Ft.DefinitionName.ToolBarLR;n.definitions[wi]=i,n.definitions[wi].properties.toolBar.$ref=c,n.definitions[vr]=r,n.definitions[vr].properties.toolBar.$ref=c,n.definitions[Cr]=a,n.definitions[Cr].properties.toolBar.$ref=c,n.definitions[Sr]=s,n.definitions[Sr].properties.toolBar.$ref=c;let u=(f=e.entitySet)==null?void 0:f.entityType;if(!u)(p=e.entitySet)!=null&&p.name&&q(e.logger,{severity:Ft.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(g=e.entitySet)==null?void 0:g.name})});else{Mi(n);let G=(E=(b=u==null?void 0:u.annotations)==null?void 0:b.UI)==null?void 0:E.LineItem;G&&hg.forEach(J=>{n.definitions[J][Ft.SchemaTag.annotationPath]=kt(u==null?void 0:u.fullyQualifiedName,G.term,G.qualifier)}),Ri(!1,n,G,u);let oe=(L=(I=u==null?void 0:u.annotations)==null?void 0:I.UI)==null?void 0:L.SelectionFields;sa(n,oe,u);let Y=[],re=Zi(e.manifest[Ft.ManifestSection.generic].pages,Y);if(!re)return q(e.logger,{severity:Ft.LogSeverity.Error,message:w.t("NOLR"),location:{path:Ft.MANIFESTPATH,range:[Ft.ManifestSection.generic]}}),n;_i(n,u,re,e.manifest,e.fragments),gu(u,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 ji(n,jx),n}o(ho,"generateListReportSchemaV2");var xe=U(K());var Dx=["filterBar","keyPerformanceIndicators","chart","table","footer"];function qm(e,t){let n=t.value;return n.includes(xe.UIVOCABULARYALPHADOT+e)?n.replace(xe.UIVOCABULARYALPHADOT,""):""}o(qm,"retrieveNameWithoutVocabulary");function $x(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.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?w.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):w.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return q(n,{severity:xe.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],u="",f="";c.some(function(I){return u=u||qm("LineItem",I),f=f||qm("Chart",I),u&&f}),u=u||"LineItem",f=f||"Chart";let p=t[u],g=t[f],b=(p||i.quickVariantSelectionX?0:1)+(g?0:2);if(b>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],L=w.t(I);q(n,{severity:xe.LogSeverity.Warning,message:L})}return{lineItemAnnotation:p,chartAnnotation:g}}o($x,"getLineItemAndChartAnnotation");function wx(e,t){let n=e.definitions[xe.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[xe.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(wx,"addChart");function bo(e,t){var s,l,c,u,f;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(w.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,Eg(n.definitions.TableColumnExtensionTypeV2.enum,[xe.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)q(e.logger,{severity:xe.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{Mi(n);let p=[],g=nr(e.manifest[xe.ManifestSection.generic].pages,p,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:E,chartAnnotation:I}=$x(g,b,e.logger);E&&bg.forEach(G=>{n.definitions[G][xe.SchemaTag.annotationPath]=kt(a==null?void 0:a.fullyQualifiedName,E.term,E.qualifier)}),Ri(!1,n,E,a),I&&wx(n,I);let L=(f=(u=a==null?void 0:a.annotations)==null?void 0:u.UI)==null?void 0:f.SelectionFields;if(sa(n,L,a),!g)return q(e.logger,{severity:xe.LogSeverity.Error,message:w.t("NOLR"),location:{path:xe.MANIFESTPATH,range:[xe.ManifestSection.generic]}}),n;_i(n,a,g,e.manifest,e.fragments),gu(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 ji(n,Dx),n}o(bo,"generateAnalyticalListReportSchemaV2");var Xm=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function Rx(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(Rx,"getCardDefinitionNames");function _x(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"},ni(a,s.CardModel);let l=Rx(e);for(let c of l){let u=s[c].properties.model;delete u.type,u.$ref=j+"CardModel"}}o(_x,"addModelsEnum");function Mx(e,t){let n=e.properties;for(let i in Xm){let r=Xm[i],a=r.key;n[a]&&(n[a].messages=[{text:$i(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(Mx,"markDeprecatedProperties");function zm(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},Mx(n,t),_x(n,t),n}o(zm,"generateOverviewPageSchemaV2");var Jn=U(K());function mu(e,t,n,i,r,a){ut();let s=yr(e,t),l={templateType:a,fioriElementsVersion:Jn.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=mo(r,l.serviceAVT),l.entitySet||q(l.logger,{severity:Jn.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(mu,"prepareGenerationV2");function yu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.ListReportObjectPageV2);return yo(s,e)}o(yu,"generateObjectPageInterfaceV2");function hu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.ListReportObjectPageV2);return ho(s,e)}o(hu,"generateListReportInterfaceV2");function bu(e,t,n,i,r,a){let s=mu(n,a,i,r,t,Jn.TemplateType.AnalyticalListPageV2);return bo(s,e)}o(bu,"generateAnalyticalListPageInterfaceV2");function To(e,t){return zm(e,t)}o(To,"generateOVPInterfaceV2");var X=U(K());var Co=o(e=>({flexChanges:[],manifest:{[X.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:X.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:X.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Ym(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===X.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(X.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(X.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(Ym,"getClassesForSingleSection");function Zm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Ym(n,i,t),Zm(n,t)}}o(Zm,"getSubsectionClasses");function kx(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Ym(i,r,n),Zm(i,n)}o(kx,"getExportClassesForSections");function Ux(e,t){let n=Zi(t.manifest[X.ManifestSection.generic].pages,e);if(!n){q(t.logger,{severity:X.LogSeverity.Error,message:w.t("NOLR"),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return}if(!n.component){q(t.logger,{severity:X.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:X.PageTypeV2.ListReport}),location:{path:X.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(Ux,"findV2Page");function Tu(e,t){let n=eg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(Tu,"calculateBaseId");function ey(e,t,n=!1){let i=Co(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=Ux(a,e),l=new dt,c=l.createPageInstance(X.PageTypeV2.ListReport,r),u={v2Page:s,exportResults:i,appId:e.appId,baseId:Tu(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:X.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(u,c,[],[],e.jsonSchema)}return i}o(ey,"exportListReportPage");function ty(e,t,n=!1){let i=e.page.config,r=Co(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=nr(e.manifest[X.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 dt,c=l.createPageInstance(X.PageTypeV2.AnalyticalListPage,i),u={v2Page:s,exportResults:r,appId:e.appId,baseId:Tu(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:X.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(u,c,[],[],e.jsonSchema)}return r}o(ty,"exportAnalyticalListPage");function ny(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Co(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=bi(e.manifest[X.ManifestSection.generic].pages,r,s);if(!l)return q(e.logger,{severity:X.LogSeverity.Error,message:w.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}}),a;let c=new dt,u=c.createPageInstance(X.PageTypeV2.ObjectPage,i);if(i.sections&&kx(i,u,c),Object.keys(i).length!==0){let f={v2Page:l,exportResults:a,appId:e.appId,baseId:Tu(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:X.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Wn(f,u,[],[],e.jsonSchema)}}return a}o(ny,"exportObjectPage");var iy=o(e=>{let t=Co();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new dt,i=n.createPageInstance(X.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&go(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Bx=o((e,t,n)=>{var s;let i=Co();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new fa,e);r.settings=Object.assign(new Fn,e.settings);for(let l in n.definitions.AppSettings.properties){let c=At(r.settings,l);if(c&&c.manifest){let u=c.manifest.path(),f=ze(i.manifest,u);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:(delete f[l],Tr(i.manifest,u,!1))}}let a=(s=i.manifest[X.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Tl(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function ry(e,t){if(e[X.SchemaType.ListReport])return ey(e[X.SchemaType.ListReport],t);if(e[X.SchemaType.ObjectPage])return ny(e[X.SchemaType.ObjectPage],t);if(e[X.SchemaType.OverviewPage])return iy(e[X.SchemaType.OverviewPage]);if(e[X.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[X.SchemaType.Application];return Bx(n,i,r)}else if(e[X.SchemaType.AnalyticalListPage])return ty(e[X.SchemaType.AnalyticalListPage],t)}o(ry,"exportPageV2");function vu(e,t,n=!1){if(e[X.SchemaType.ListReport])return ey(e[X.SchemaType.ListReport],t,n);if(e[X.SchemaType.ObjectPage])return ny(e[X.SchemaType.ObjectPage],t,n);if(e[X.SchemaType.OverviewPage])return iy(e[X.SchemaType.OverviewPage]);if(e[X.SchemaType.AnalyticalListPage])return ty(e[X.SchemaType.AnalyticalListPage],t,n)}o(vu,"exportConfigEntityByPathV2");function Hx(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.ListReport];t=hu(i,r,a,s,l,c)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.ObjectPage];t=yu(i,r,a,s,l,c)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=To(i,r)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:c}=n[Se.SchemaType.AnalyticalListPage];t=bu(i,r,a,s,l,c)}}return t}o(Hx,"generateSchema");function Gx(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=ry(i,n)}return t}o(Gx,"exportConfig");function Wx(e){let t=Se.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=vu(i,n)}return t}o(Wx,"exportConfigEntityByPath");function Kx(e){let t=Se.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=vu(i,n,!0)}return t}o(Kx,"deleteConfigEntityByPath");function Jx(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=ss(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=us(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=ds(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=ls(n[Se.SchemaType.AnalyticalListPage]))}return t}o(Jx,"importConfig");async function Qx(e){return du(e)}o(Qx,"importProject");async function qx(e){return pu(e)}o(qx,"importProjectSchema");function Xx(){return{version:"20",moduleVersion:Wg.version}}o(Xx,"getApiVersion");var Rt=require("path"),Qn=require("fs");var ir=o(async e=>new Promise((t,n)=>{(0,Qn.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),zx=o(async e=>JSON.parse(await ir(e)),"readJSON"),Cu=o(async e=>new Promise((t,n)=>{(0,Qn.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),Yx=o(async e=>new Promise(t=>{(0,Qn.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),oy=o(async e=>new Promise(t=>{(0,Qn.exists)(e,n=>{t(n)})}),"resourceExists"),Zx=o(async e=>zx((0,Rt.join)(e,"manifest.json")),"getManifest"),ay=o(async e=>{let t=[],n=(0,Rt.join)(e,"changes");if(!await oy(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Cu(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await ir((0,Rt.join)(n,a)));return t},"getChanges"),eE=o(async e=>{let t=[],n=(0,Rt.join)(e,"ext","fragments");if(!await oy(n))return t;let i=await Cu(n);for(let r of i){let a=(0,Rt.join)(n,r),s=await ir(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),tE=o(async(e,t)=>{var r,a,s,l,c,u,f,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,Rt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:g,fileContent:await ir(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((f=(u=i[g])==null?void 0:u.settings)!=null&&f.localUri){let b=(0,Rt.join)(t,i[g].settings.localUri);n.push({dataSourceUri:b,fileContent:await ir(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 E=(0,Rt.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await ir(E)})}}return n},"getAnnotations"),nE=o(async e=>{let t=(0,Rt.basename)(e),n=(0,Rt.join)(e,"webapp"),i=await Zx(n),r=await tE(i,n),a=await ay(n),s=await eE(n);return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s}},"getProject");Xn(Sn,U(K()),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: