jamespot-user-api 1.0.180 → 1.0.182

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 (130) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +2 -2
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +17 -17
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +10 -8
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/StudioApplicationStatus.html +1 -1
  39. package/documentation/enums/WidgetsName.html +1 -1
  40. package/documentation/enums/_GroupModerateStatus.html +1 -0
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/jest.config.ts +1 -2
  58. package/lib/jamespot-user-api.js +1 -1
  59. package/lib/jamespot-user-api.js.map +1 -1
  60. package/lib/jest.config.d.ts +0 -1
  61. package/lib/jest.config.vm.d.ts +0 -1
  62. package/lib/src/apis/admin/utils.d.ts +1 -1
  63. package/lib/src/apis/article/article.d.ts +3 -1
  64. package/lib/src/apis/file/file.d.ts +2 -2
  65. package/lib/src/apis/filebank/filebank.d.ts +2 -2
  66. package/lib/src/apis/group/group.d.ts +218 -9
  67. package/lib/src/apis/group/group.mock.d.ts +6 -6
  68. package/lib/src/apis/jland/jland.d.ts +2 -31
  69. package/lib/src/apis/jland/jland.mock.d.ts +3 -2
  70. package/lib/src/apis/taxonomy/taxonomy.d.ts +2 -2
  71. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +962 -3
  72. package/lib/src/apis/user/user.d.ts +11 -103
  73. package/lib/src/apis/user/user.mock.d.ts +5 -1
  74. package/lib/src/apis/widget/widget.d.ts +2 -2
  75. package/lib/src/apis/widget/widget.mock.d.ts +2 -2
  76. package/lib/src/types/adminUtils.d.ts +10 -10
  77. package/lib/src/types/article.d.ts +3065 -4796
  78. package/lib/src/types/asei.d.ts +231 -413
  79. package/lib/src/types/assetReservation.d.ts +1051 -1768
  80. package/lib/src/types/autocomplete.d.ts +14 -14
  81. package/lib/src/types/businessContact.d.ts +136 -502
  82. package/lib/src/types/comment.d.ts +231 -413
  83. package/lib/src/types/diapazone.d.ts +4 -4
  84. package/lib/src/types/faq.d.ts +1365 -2277
  85. package/lib/src/types/global.d.ts +2 -2
  86. package/lib/src/types/group.d.ts +1881 -127
  87. package/lib/src/types/hook.d.ts +1 -2
  88. package/lib/src/types/index.d.ts +1 -0
  89. package/lib/src/types/jLand.d.ts +1175 -0
  90. package/lib/src/types/mediaLibrary.d.ts +241 -423
  91. package/lib/src/types/meeting.d.ts +723 -1269
  92. package/lib/src/types/model.d.ts +653 -89
  93. package/lib/src/types/object.d.ts +2 -2
  94. package/lib/src/types/pollSurvey.d.ts +856 -1402
  95. package/lib/src/types/quizz.d.ts +723 -1269
  96. package/lib/src/types/search.d.ts +8 -8
  97. package/lib/src/types/share.d.ts +8 -8
  98. package/lib/src/types/socialEvent.d.ts +723 -1269
  99. package/lib/src/types/support.d.ts +723 -1269
  100. package/lib/src/types/surveyDate.d.ts +726 -1308
  101. package/lib/src/types/tvDisplay.d.ts +18544 -49
  102. package/lib/src/types/uri.d.ts +44 -8
  103. package/lib/src/types/wedoc.d.ts +633 -27
  104. package/lib/src/types/widgets/common.d.ts +1 -18
  105. package/lib/src/types/widgets/default.d.ts +538 -1719
  106. package/lib/src/types/widgets/widgetApi.d.ts +0 -1
  107. package/lib/src/types/widgets/widgetArticleAttachment.d.ts +0 -1
  108. package/lib/src/types/widgets/widgetArticleButton.d.ts +0 -1
  109. package/lib/src/types/widgets/widgetArticleGallery.d.ts +0 -1
  110. package/lib/src/types/widgets/widgetArticleImage.d.ts +0 -1
  111. package/lib/src/types/widgets/widgetArticleSlider.d.ts +0 -1
  112. package/lib/src/types/widgets/widgetArticleText.d.ts +0 -1
  113. package/lib/src/types/widgets/widgetArticleTitle.d.ts +0 -1
  114. package/lib/src/types/widgets/widgetCheckList.d.ts +7 -4
  115. package/lib/src/types/widgets/widgetDatasourceTable.d.ts +0 -1
  116. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +2 -26
  117. package/lib/src/types/widgets.d.ts +3573 -4860
  118. package/lib/src/util/Test.d.ts +5 -498
  119. package/lib/src/util/group.d.ts +2 -2
  120. package/lib/src/util/index.d.ts +1 -0
  121. package/lib/src/util/widget.d.ts +83 -0
  122. package/package.json +1 -1
  123. package/phpunitMock/articleCreate-businessContact.json +23 -0
  124. package/phpunitMock/articleCreate-jLandMap.json +49 -0
  125. package/phpunitMock/articleDelete-businessContact.json +12 -0
  126. package/phpunitMock/articleUpdate-businessContact.json +50 -0
  127. package/phpunitMock/objectListJLandJLandList-success.json +14 -0
  128. package/phpunitMock/userSignIn-success.json +31 -0
  129. package/documentation/enums/GroupModerateStatus.html +0 -1
  130. package/documentation/interfaces/Category.html +0 -1
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>wl,ACCESS_REQUEST_DENY:()=>_l,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>ar,DateFormatSchema:()=>Ta,Format:()=>ci,GroupModerateStatus:()=>Ji,JApplicationApi:()=>o,JArticleApi:()=>Q,JAssetReservation:()=>X,JAudienceApi:()=>ee,JBaseApi:()=>n,JBbbApi:()=>te,JBookmarkApi:()=>ne,JBusinessNetworkingApi:()=>ie,JCommunityApi:()=>re,JDatasourceApi:()=>ae,JDiapazoneApi:()=>se,JFaqApi:()=>ce,JFileApi:()=>le,JFilebankApi:()=>ue,JGlobalApi:()=>de,JGroupApi:()=>pe,JIAApi:()=>Fe,JLandApi:()=>fe,JMessengerApi:()=>be,JObjectApi:()=>Ae,JSearchApi:()=>ye,JShareApi:()=>je,JSocialActionApi:()=>Le,JTaxonomyApi:()=>ke,JUserApi:()=>we,JWedocApi:()=>_e,JWidgetApi:()=>Ee,JamespotUserApi:()=>Pe,JamespotUserApiInstance:()=>Ml,Network:()=>Z,NumberFormatSchema:()=>Aa,StudioApplicationStatus:()=>i,TVDisplayApi:()=>Se,UserLevel:()=>Li,WidgetsName:()=>Rr,WindowBrowser:()=>Ne,actionVerbSchema:()=>Ps,addCommentParamsSchema:()=>cs,addFaqEntrySchema:()=>co,addRemoveActionParamsSchema:()=>hl,adminAppSchema:()=>vr,adminAppTabSchema:()=>yr,adminAppsSchema:()=>kr,adminLicenseStatsSchema:()=>cr,adminLicenseUserSchema:()=>gr,adminLicensesAssignedSchema:()=>pr,adminLicensesNotAssignedSchema:()=>dr,animationConfigurationTypeSchema:()=>_r,animationStatsRowSchema:()=>Sr,animationStatsSchema:()=>jr,animationVariantSchema:()=>wr,api:()=>Zl,articleCreationSchema:()=>ss,articleDisplayModeSchema:()=>Vr,articleGetConfigSchema:()=>as,articleListConfigSchema:()=>rs,aseiGroupsSchema:()=>fs,aseiInstitutionSchema:()=>gs,aseiRightsSchema:()=>bs,aseiTicketSchema:()=>hs,aseiTicketStatusSchema:()=>ms,assetReservationConfigurationSchema:()=>ys,audienceAutocompleteSchema:()=>Cs,audienceSchema:()=>er,baseArticleSchema:()=>os,baseAutocompleteSchema:()=>_s,bookableAssetListSchema:()=>vs,bookableAssetViewSchema:()=>ks,bookmarkCustomSchema:()=>lr,bookmarkLinkSchema:()=>sr,bookmarkTypesSchema:()=>or,businessContactSchema:()=>Wi,combineFormat:()=>W,combinedWidgetContentSchema:()=>Ka,combinedWidgetTypeSchema:()=>Va,communitySchema:()=>Ts,createFaqCategorySchema:()=>eo,createFaqEntrySchema:()=>lo,createFaqThemeSchema:()=>ao,cssBackgroundPositionSchema:()=>Dr,cssBackgroundSizeSchema:()=>Ur,cssTextAlignTypeSchema:()=>Zr,deepEqual:()=>B,default:()=>Nl,deleteFaqThemeSchema:()=>so,driveAccountSchema:()=>Vs,driveDocumentParamsSchema:()=>Gs,driveItemTypeSchema:()=>Js,editFaqCategorySchema:()=>to,editFaqEntrySchema:()=>uo,editFaqThemeSchema:()=>oo,ensureWidgetApiType:()=>ya,ensureWidgetArticleAttachmentType:()=>ga,ensureWidgetArticleButtonType:()=>ea,ensureWidgetArticleGalleryType:()=>ia,ensureWidgetArticleImageType:()=>pa,ensureWidgetArticleSliderType:()=>_a,ensureWidgetArticleTextType:()=>ca,ensureWidgetArticleTitleType:()=>sa,ensureWidgetCheckListType:()=>Ca,ensureWidgetDatasourceTableType:()=>Ba,ensureWidgetExcelDatasourceTableType:()=>za,ensureWidgetType:()=>Jr,ensureWidgetWrapperProps:()=>Ga,extensions:()=>S,extractTaxonomiesFromObject:()=>V,extractTaxonomiesFromObjectAndMapProperty:()=>J,extractTaxonomiesFromObjectAndMapUri:()=>G,facetModeSchema:()=>Jo,faqAccessSchema:()=>ro,faqHookPropertiesSchema:()=>io,faqItemListSchema:()=>Ys,faqItemViewSchema:()=>Xs,faqListSchema:()=>Ks,faqTaxonomySchema:()=>no,faqViewSchema:()=>Hs,fileCropConfigSchema:()=>Tr,filterSchema:()=>ai,filterValueSchema:()=>ni,filtersSchema:()=>oi,formatExtensionSchema:()=>pi,formatImgUrl:()=>w,formatListSchema:()=>di,getActionUsersParamsSchema:()=>ml,getArgs:()=>b,getCommentsParamsSchema:()=>ls,getExtensionFromName:()=>T,getFileExtensionFromMimetype:()=>C,getFileFamily:()=>R,getFileFamilyFromName:()=>F,getFormat:()=>v,getFrom:()=>g,getLicenseKindUsersParamsSchema:()=>Ao,getMimetypeFromExtension:()=>x,getMimetypeFromName:()=>A,getSize:()=>y,getTimestamp:()=>f,getUnclassifiedFilesParamsSchema:()=>Eo,getUri:()=>h,getUrl:()=>k,imageSizeSchema:()=>Cr,inferBookmarkListSchema:()=>rr,inferBookmarkRawListSchema:()=>ir,inferExtendedFaqCategory:()=>Qs,inferJInternalDraftView:()=>is,inferJLinkListSchema:()=>nr,inferMaybeWithToken:()=>li,inferSearchQueryResultSchema:()=>al,inferUserLicenseSchema:()=>Oo,inferWidgetWrapperPropsSchema:()=>Ja,jAdminLicenseUserListSchema:()=>hr,jArticleExtendViewSchema:()=>ns,jArticleListSchema:()=>es,jArticleLittleSchema:()=>Xa,jArticleViewSchema:()=>ts,jArticleWidgetLittle:()=>Sl,jArticleWidgetViewSchema:()=>Pl,jBusinessContactListSchema:()=>Rs,jBusinessContactLittleSchema:()=>Es,jCommentListSchema:()=>Ns,jCommentLittleSchema:()=>Ms,jDiapazoneListSchema:()=>Zs,jEnsure:()=>u,jFileLittleCropSchema:()=>Lr,jFileLittleSchema:()=>Ar,jFileRenditionSchema:()=>Fr,jFolderListSchema:()=>ps,jFolderLittleSchema:()=>Xi,jGroupLittleSchema:()=>Ki,jHrefSchema:()=>ei,jIACapabilitiesSchema:()=>Co,jLinkLittleSchema:()=>tr,jMeetingListSchema:()=>Do,jMeetingViewSchema:()=>Uo,jObjectAutocompleteSchema:()=>Ss,jObjectBaseSchema:()=>bi,jObjectListSchema:()=>Qi,jObjectLittleSchema:()=>yi,jPollSurveyListSchema:()=>Bo,jPollSurveyViewSchema:()=>$o,jQuizzListSchema:()=>Wo,jQuizzViewSchema:()=>zo,jSocialEventListSchema:()=>No,jSocialEventViewSchema:()=>Zo,jSpotAutocompleteSchema:()=>xs,jSupportListSchema:()=>gl,jSupportViewSchema:()=>fl,jSurveyDateListSchema:()=>bl,jSurveyDateViewSchema:()=>yl,jUserAutocompleteSchema:()=>js,jUserListSchema:()=>Ei,jUserLittleSchema:()=>Fi,jUserValuesSchema:()=>Di,jUserViewSchema:()=>Pi,legacyAngularJSTypeSchema:()=>Nr,licenseSchema:()=>mr,mediaLibraryFilesStatsSchema:()=>Ro,mediaLibraryFolderSchema:()=>Lo,mediaLibraryFolderStatsSchema:()=>Po,mediaLibraryListSchema:()=>Fo,mediaLibraryStatsSchema:()=>Io,mimetypeToExt:()=>j,mimetypes:()=>_,moveFaqEntrySchema:()=>po,moveFaqThemeSchema:()=>mo,moveMediaLibraryFileParamsSchema:()=>Mo,msBaseEntitySchema:()=>Us,msDocumentEntitySchema:()=>Ws,msGroupEntitySchema:()=>$s,msSiteEntitySchema:()=>Bs,msTenantEntitySchema:()=>qs,msTenantsSchema:()=>Ds,msUnifiedEntitySchema:()=>zs,network:()=>Il,networkTypeSchema:()=>qo,objectListPropsSchema:()=>mi,objectTimestamp:()=>O,objectWithoutLicenseFilterSchema:()=>ur,openingTypeAnchorSchema:()=>Kr,openingTypeLinkSchema:()=>Gr,openingTypePopupSchema:()=>Hr,openingTypeSchema:()=>$r,orderSchema:()=>ti,ordersSchema:()=>si,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>K,publicWebinarData:()=>Fs,publicWebinarFullnameRequestSchema:()=>As,publicWebinarGetDateRequestSchema:()=>Ls,publicWebinarUrlSchema:()=>Os,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>$,reservationListSchema:()=>ws,resolveFileFamily:()=>M,resolveFileMimetype:()=>I,resolveFilePath:()=>L,resolveFileUrl:()=>P,rightsSchema:()=>gi,searchCategoryModelSchema:()=>Ko,searchCategoryValueSchema:()=>Vo,searchConfigSchema:()=>tl,searchFacetModelSchema:()=>Go,searchFacetValueModelSchema:()=>Qo,searchFacetValuesSchema:()=>Ho,searchLastQuerySchema:()=>sl,searchQueryFilterModelSchema:()=>Yo,searchQueryOptionSchema:()=>el,searchQuerySchema:()=>rl,searchQuerySortModelSchema:()=>Xo,searchResultCatPropsSchema:()=>ll,searchResultPropsAppSchema:()=>nl,searchResultPropsObjectSchema:()=>il,searchResultPropsSchema:()=>ol,shareAccessObjectSchema:()=>pl,shareAccessPropsSchema:()=>dl,shareGeneralAccessRulesSchema:()=>cl,shareOptionObjectSchema:()=>ul,socialActionSchema:()=>Is,storeFinalizeSchema:()=>br,storeItemSchema:()=>fr,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>To,tinyMCECommonOptionsSchema:()=>kl,tinyMCEDynamicOptionsSchema:()=>vl,updateCommentParamsSchema:()=>us,uploadConfigSchema:()=>xr,userDefaultFieldsTypeSchema:()=>Zi,userDirectoryConfigurationSchema:()=>zi,userDownloadSchema:()=>Er,userFieldSchema:()=>qi,userFieldsConfigurationTypeSchema:()=>Ui,userFieldsSchema:()=>Bi,userMapModelSchema:()=>Mi,userReadSchema:()=>ds,userValuesSchema:()=>$i,userlevelSpotShema:()=>Gi,validateIsFormatFileLittle:()=>Or,validateIsFormatHookListType:()=>xo,validateIsFormatObjectList:()=>Yi,validateIsFormatObjectLittle:()=>vi,validateIsFormatRights:()=>fi,validateIsFormatUserDirectoryConfiguration:()=>Vi,validateIsFormatUserLevelSpot:()=>Hi,validateIsFormatUserList:()=>Ri,validateIsFormatUserMapModel:()=>Ni,validateIsFormatUserView:()=>Ii,variantSizeTypeSchema:()=>qr,variantTypeSchema:()=>Br,widgetActiveValueSchema:()=>Ci,widgetApiContentSchema:()=>fa,widgetApiTypeSchema:()=>ba,widgetArticleAttachmentContentSchema:()=>ma,widgetArticleAttachmentTypeSchema:()=>ha,widgetArticleButtonContentSchema:()=>Yr,widgetArticleButtonTypeSchema:()=>Xr,widgetArticleCheckListTypeForFrontSchema:()=>Ol,widgetArticleGalleryContentSchema:()=>ta,widgetArticleGalleryTypeSchema:()=>na,widgetArticleImageContentSchema:()=>ua,widgetArticleImageTypeSchema:()=>da,widgetArticleSliderContentSchema:()=>ka,widgetArticleSliderTypeSchema:()=>wa,widgetArticleTextContentSchema:()=>oa,widgetArticleTextTypeSchema:()=>la,widgetArticleTitleContentSchema:()=>ra,widgetArticleTitleTypeSchema:()=>aa,widgetBaseSchema:()=>Mr,widgetButtonPropsSchema:()=>Qr,widgetCheckListContentArrForFrontSchema:()=>Tl,widgetCheckListContentArrSchema:()=>Sa,widgetCheckListContentForFrontSchema:()=>Al,widgetCheckListContentSchema:()=>ja,widgetCheckListTypeSchema:()=>xa,widgetContentKeysSchema:()=>Qa,widgetDatasourceTableContentSchema:()=>Ua,widgetDatasourceTableTypeSchema:()=>qa,widgetDatePickerValueSchema:()=>xi,widgetDateValueSchema:()=>Si,widgetDatetimeValueSchema:()=>ji,widgetDefaultProps:()=>Cl,widgetDefinitionPropsSchema:()=>Ll,widgetDisplayModeSchema:()=>xl,widgetEmailValueSchema:()=>Ti,widgetExcelDatasourceTableContentSchema:()=>$a,widgetExcelDatasourceTableTypeSchema:()=>Wa,widgetExtendedTypeSchema:()=>zr,widgetKeysSchema:()=>Pr,widgetLayerSchema:()=>jl,widgetModalPropsSchema:()=>Fl,widgetNumberValueSchema:()=>_i,widgetSlideSchema:()=>va,widgetStatePropsSchema:()=>Ya,widgetTableColumnDataSchema:()=>Ia,widgetTableColumnSchema:()=>Za,widgetTableColumnTypesSchema:()=>Na,widgetTableColumnWidgetDateSchema:()=>Ra,widgetTableColumnWidgetDefaulSchema:()=>Oa,widgetTableColumnWidgetSelectOptionSchema:()=>Fa,widgetTableColumnWidgetSelectSchema:()=>Ea,widgetTableColumnWidgetTextSchema:()=>La,widgetTableColumnWidgetsSchema:()=>Pa,widgetTableColumnsData:()=>Ma,widgetTableContentSchema:()=>Da,widgetTextValueSchema:()=>ki,widgetTextareaValueSchema:()=>wi,widgetTypeKeysSchema:()=>Ha,widgetUrlValueSchema:()=>Ai,widgetVectorSchema:()=>Wr,widgetsRootStateSchema:()=>Rl,widgetsStateSchema:()=>El,widgetsValueSchema:()=>Oi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenceUsersByKind(e,t,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){if(n===i.saved||n===i.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n});throw"Invalid status value"}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}function h(e){return"uri"in e&&e.uri?e.uri:`${e.type}/${e.recordId}`}function g(e){return p(d(e.from,"/"),"/")||""}function f(e){return e.timestamp?`?_=${e.timestamp}`:""}function b(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function y(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function v(e){return e.format||"png"}function k(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function w(e,t=2){if("url"in e&&e.url){const t=k(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}return`/${g(e)}${y(e,t)}/${h(e)}.${v(e)}${b(e)}`}const _=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],S=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],j={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},x=e=>Object.keys(j).find((t=>j[t]===e)),C=e=>{var t;return null!==(t=j[e])&&void 0!==t?t:void 0};function T(e){const t=String(e).split(".").pop();return S.find((e=>e===t))}const A=e=>{var t;const n=T(e);return null!==(t=x(n))&&void 0!==t?t:"application/octet-stream"},O=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,L=(e,t="fitx80")=>{const n=M(e),i=O(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},F=e=>{const t=T(e);return void 0!==t?R(x(t)):"application"},E=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function R(e){return e&&e.startsWith("folder/")?"folder":null==e||E(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const P=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,I=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?A(e.title):e.mimetype,M=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?F(e.title):R(e.mimetype);var N=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Z{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return N(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return N(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return N(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},Z._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return N(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const D=Array.isArray,U=Object.keys,q=Object.prototype.hasOwnProperty;function B(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=D(e),a=D(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!B(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=U(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==U(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!q.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||B(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function $(e,t){if(Array.isArray(e))return e.map((e=>$(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:$(e[i],t)})})),n}return e}const W=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e;function z(e){return e.startsWith("tag_")||"tags"===e}function V(e){return Object.fromEntries(Object.entries(e).filter((([e])=>z(e))))}function J(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>z(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function G(e){return J(e,"uri")}const K=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=V(e);if(n=Object.assign(Object.assign({},n),i),H(e,n))return n;throw new Error},H=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};class Q extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:W(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:W(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e){return this.network.post(Object.assign(Object.assign({format:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var Y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class X extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class ee extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class te extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class ne extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class ie extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class re extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class ae extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class se extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}var oe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class le extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return oe(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t})}))}getParent(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t})}))}getWithHash(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n})}))}duplicate(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"})}))}deleteFile(e,t,n,i){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t})}))}getDownload(e){return this.network.post({o:"file",f:"getDownload",id:e})}generatePreview(e){return this.network.post({o:"file",f:"generatePreview",id:e})}copy(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}))}}class ce extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class ue extends n{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var n,i;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(n=e.mode)&&void 0!==n?n:"browse",format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}getParents(e,t){var n;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}}class de extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class pe extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}}class me extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class he extends n{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(e,t){return this.network.post({o:"drive",f:"getGroups",query:e,filter:t})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(e){return this.network.post({o:"drive",f:"listAccount",service:e})}isAccountLogged(e,t){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t})}checkAccountToken(e){return this.network.post({o:"drive",f:"checkAccountToken",service:e})}documents(e,t){return this.network.post({o:"drive",f:"getDocuments",service:e,documentParams:t})}}class ge extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class fe extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class be extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class ye extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:W(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var ve=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ke extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class we extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:W(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:W(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(n)}userUpdateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(n)}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t){return this.network.post({o:"user",f:"signIn",mail:e,password:t})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class _e extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class Se extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class je extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Ce extends n{SaveAnimationConfiguration(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}GetAnimationStats(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Te extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Ae extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Oe extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Le extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Fe extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Ee extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}checkListRespond({id:e,type:t,idUser:n,uniqid:i,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:i,idUser:n,index:r})}updateWidget({id:e,uniqid:t,content:n,title:i,type:r}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:n,title:i,type:r})}}class Re extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Pe{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new Te(this),this.application=new o(this),this.article=new Q(this),this.asei=new me(this),this.assetReservation=new X(this),this.audience=new ee(this),this.bbb=new te(this),this.bookmark=new ne(this),this.businessNetworking=new ie(this),this.community=new re(this),this.datasource=new ae(this),this.diapazone=new se(this),this.drive=new he(this),this.faq=new ce(this),this.file=new le(this),this.filebank=new ue(this),this.fileSync=new Oe(this),this.global=new de(this),this.group=new pe(this),this.jia=new Fe(this),this.jland=new fe(this),this.magicPad=new Re(this),this.mediaLibrary=new ge(this),this.messenger=new be(this),this.object=new Ae(this),this.search=new ye(this),this.share=new je(this),this.socialAction=new Le(this),this.taxonomy=new ke(this),this.tvDisplay=new Se(this),this.user=new we(this),this.wedoc=new _e(this),this.widget=new Ee(this),this.animations=new Ce(this)}}var Ie,Me;class Ne{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ie||(Ie={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Me||(Me={}));const Ze=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),De=e=>{switch(typeof e){case"undefined":return Ze.undefined;case"string":return Ze.string;case"number":return isNaN(e)?Ze.nan:Ze.number;case"boolean":return Ze.boolean;case"function":return Ze.function;case"bigint":return Ze.bigint;case"symbol":return Ze.symbol;case"object":return Array.isArray(e)?Ze.array:null===e?Ze.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ze.promise:"undefined"!=typeof Map&&e instanceof Map?Ze.map:"undefined"!=typeof Set&&e instanceof Set?Ze.set:"undefined"!=typeof Date&&e instanceof Date?Ze.date:Ze.object;default:return Ze.unknown}},Ue=Ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class qe extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}static assert(e){if(!(e instanceof qe))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}qe.create=e=>new qe(e);const Be=(e,t)=>{let n;switch(e.code){case Ue.invalid_type:n=e.received===Ze.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ie.jsonStringifyReplacer)}`;break;case Ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ie.joinValues(e.keys,", ")}`;break;case Ue.invalid_union:n="Invalid input";break;case Ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ie.joinValues(e.options)}`;break;case Ue.invalid_enum_value:n=`Invalid enum value. Expected ${Ie.joinValues(e.options)}, received '${e.received}'`;break;case Ue.invalid_arguments:n="Invalid function arguments";break;case Ue.invalid_return_type:n="Invalid function return type";break;case Ue.invalid_date:n="Invalid date";break;case Ue.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ie.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ue.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ue.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ue.custom:n="Invalid input";break;case Ue.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ie.assertNever(e)}return{message:n}};let $e=Be;function We(){return $e}const ze=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function Ve(e,t){const n=We(),i=ze({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Be?void 0:Be].filter((e=>!!e))});e.common.issues.push(i)}class Je{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return Ge;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i})}return Je.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return Ge;if("aborted"===r.status)return Ge;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const Ge=Object.freeze({status:"aborted"}),Ke=e=>({status:"dirty",value:e}),He=e=>({status:"valid",value:e}),Qe=e=>"aborted"===e.status,Ye=e=>"dirty"===e.status,Xe=e=>"valid"===e.status,et=e=>"undefined"!=typeof Promise&&e instanceof Promise;function tt(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function nt(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}var it,rt,at;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(it||(it={}));class st{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ot=(e,t)=>{if(Xe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new qe(e.common.issues);return this._error=t,this._error}}};function lt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:i)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:n)&&void 0!==s?s:r.defaultError}},description:r}}class ct{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return De(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Je,ctx:{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(et(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},r=this._parseSync({data:e,path:i.path,parent:i});return ot(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(et(i)?i:Promise.resolve(i));return ot(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:Ue.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new rn({schema:this,typeName:fn.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return an.create(this,this._def)}nullable(){return sn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zt.create(this,this._def)}promise(){return nn.create(this,this._def)}or(e){return qt.create([this,e],this._def)}and(e){return zt.create(this,e,this._def)}transform(e){return new rn({...lt(this._def),schema:this,typeName:fn.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new on({...lt(this._def),innerType:this,defaultValue:t,typeName:fn.ZodDefault})}brand(){return new dn({typeName:fn.ZodBranded,type:this,...lt(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ln({...lt(this._def),innerType:this,catchValue:t,typeName:fn.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return pn.create(this,e)}readonly(){return mn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ut=/^c[^\s-]{8,}$/i,dt=/^[0-9a-z]+$/,pt=/^[0-9A-HJKMNP-TV-Z]{26}$/,mt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ht=/^[a-z0-9_-]{21}$/i,gt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ft=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let bt;const yt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,kt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wt="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",_t=new RegExp(`^${wt}$`);function St(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function jt(e){let t=`${wt}T${St(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class xt extends ct{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ze.string){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.string,received:t.parsedType}),Ge}const t=new Je;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const i=e.data.length>a.value,r=e.data.length<a.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?Ve(n,{code:Ue.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&Ve(n,{code:Ue.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)ft.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"email",code:Ue.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)bt||(bt=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),bt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"emoji",code:Ue.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)mt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"uuid",code:Ue.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)ht.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"nanoid",code:Ue.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)ut.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid",code:Ue.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)dt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid2",code:Ue.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)pt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ulid",code:Ue.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),Ve(n,{validation:"url",code:Ue.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"regex",code:Ue.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?jt(a).test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?_t.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${St(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?gt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"duration",code:Ue.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(i=e.data,("v4"!==(r=a.version)&&r||!yt.test(i))&&("v6"!==r&&r||!vt.test(i))&&(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ip",code:Ue.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?kt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"base64",code:Ue.invalid_string,message:a.message}),t.dirty()):Ie.assertNever(a);var i,r;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:Ue.invalid_string,...it.errToObj(n)})}_addCheck(e){return new xt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...it.errToObj(e)})}url(e){return this._addCheck({kind:"url",...it.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...it.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...it.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...it.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...it.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...it.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...it.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...it.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...it.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...it.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...it.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...it.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...it.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...it.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...it.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...it.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...it.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...it.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...it.errToObj(t)})}nonempty(e){return this.min(1,it.errToObj(e))}trim(){return new xt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Ct(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}xt.create=e=>{var t;return new xt({checks:[],typeName:fn.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...lt(e)})};class Tt extends ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ze.number){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.number,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"int"===i.kind?Ie.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==Ct(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_finite,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,it.toString(t))}gt(e,t){return this.setLimit("min",e,!1,it.toString(t))}lte(e,t){return this.setLimit("max",e,!0,it.toString(t))}lt(e,t){return this.setLimit("max",e,!1,it.toString(t))}setLimit(e,t,n,i){return new Tt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:it.toString(i)}]})}_addCheck(e){return new Tt({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:it.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:it.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:it.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:it.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:it.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:it.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:it.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:it.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:it.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ie.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Tt.create=e=>new Tt({checks:[],typeName:fn.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...lt(e)});class At extends ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ze.bigint){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.bigint,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,it.toString(t))}gt(e,t){return this.setLimit("min",e,!1,it.toString(t))}lte(e,t){return this.setLimit("max",e,!0,it.toString(t))}lt(e,t){return this.setLimit("max",e,!1,it.toString(t))}setLimit(e,t,n,i){return new At({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:it.toString(i)}]})}_addCheck(e){return new At({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:it.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:it.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:it.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:it.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:it.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}At.create=e=>{var t;return new At({checks:[],typeName:fn.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...lt(e)})};class Ot extends ct{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==Ze.boolean){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.boolean,received:t.parsedType}),Ge}return He(e.data)}}Ot.create=e=>new Ot({typeName:fn.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...lt(e)});class Lt extends ct{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ze.date){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.date,received:t.parsedType}),Ge}if(isNaN(e.data.getTime()))return Ve(this._getOrReturnCtx(e),{code:Ue.invalid_date}),Ge;const t=new Je;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):Ie.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Lt({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:it.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:it.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Lt.create=e=>new Lt({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:fn.ZodDate,...lt(e)});class Ft extends ct{_parse(e){if(this._getType(e)!==Ze.symbol){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.symbol,received:t.parsedType}),Ge}return He(e.data)}}Ft.create=e=>new Ft({typeName:fn.ZodSymbol,...lt(e)});class Et extends ct{_parse(e){if(this._getType(e)!==Ze.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.undefined,received:t.parsedType}),Ge}return He(e.data)}}Et.create=e=>new Et({typeName:fn.ZodUndefined,...lt(e)});class Rt extends ct{_parse(e){if(this._getType(e)!==Ze.null){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.null,received:t.parsedType}),Ge}return He(e.data)}}Rt.create=e=>new Rt({typeName:fn.ZodNull,...lt(e)});class Pt extends ct{constructor(){super(...arguments),this._any=!0}_parse(e){return He(e.data)}}Pt.create=e=>new Pt({typeName:fn.ZodAny,...lt(e)});class It extends ct{constructor(){super(...arguments),this._unknown=!0}_parse(e){return He(e.data)}}It.create=e=>new It({typeName:fn.ZodUnknown,...lt(e)});class Mt extends ct{_parse(e){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.never,received:t.parsedType}),Ge}}Mt.create=e=>new Mt({typeName:fn.ZodNever,...lt(e)});class Nt extends ct{_parse(e){if(this._getType(e)!==Ze.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.void,received:t.parsedType}),Ge}return He(e.data)}}Nt.create=e=>new Nt({typeName:fn.ZodVoid,...lt(e)});class Zt extends ct{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==Ze.array)return Ve(t,{code:Ue.invalid_type,expected:Ze.array,received:t.parsedType}),Ge;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(Ve(t,{code:e?Ue.too_big:Ue.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(Ve(t,{code:Ue.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(Ve(t,{code:Ue.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new st(t,e,t.path,n))))).then((e=>Je.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new st(t,e,t.path,n))));return Je.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new Zt({...this._def,minLength:{value:e,message:it.toString(t)}})}max(e,t){return new Zt({...this._def,maxLength:{value:e,message:it.toString(t)}})}length(e,t){return new Zt({...this._def,exactLength:{value:e,message:it.toString(t)}})}nonempty(e){return this.min(1,e)}}function Dt(e){if(e instanceof Ut){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=an.create(Dt(i))}return new Ut({...e._def,shape:()=>t})}return e instanceof Zt?new Zt({...e._def,type:Dt(e.element)}):e instanceof an?an.create(Dt(e.unwrap())):e instanceof sn?sn.create(Dt(e.unwrap())):e instanceof Vt?Vt.create(e.items.map((e=>Dt(e)))):e}Zt.create=(e,t)=>new Zt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:fn.ZodArray,...lt(t)});class Ut extends ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ie.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ze.object){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.object,received:t.parsedType}),Ge}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof Mt&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new st(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Mt){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(Ve(n,{code:Ue.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new st(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key,i=await t.value;e.push({key:n,value:i,alwaysSet:t.alwaysSet})}return e})).then((e=>Je.mergeObjectSync(t,e))):Je.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return it.errToObj,new Ut({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=it.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new Ut({...this._def,unknownKeys:"strip"})}passthrough(){return new Ut({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ut({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ut({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:fn.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ut({...this._def,catchall:e})}pick(e){const t={};return Ie.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new Ut({...this._def,shape:()=>t})}omit(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new Ut({...this._def,shape:()=>t})}deepPartial(){return Dt(this)}partial(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new Ut({...this._def,shape:()=>t})}required(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof an;)e=e._def.innerType;t[n]=e}})),new Ut({...this._def,shape:()=>t})}keyof(){return Xt(Ie.objectKeys(this.shape))}}Ut.create=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strip",catchall:Mt.create(),typeName:fn.ZodObject,...lt(t)}),Ut.strictCreate=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strict",catchall:Mt.create(),typeName:fn.ZodObject,...lt(t)}),Ut.lazycreate=(e,t)=>new Ut({shape:e,unknownKeys:"strip",catchall:Mt.create(),typeName:fn.ZodObject,...lt(t)});class qt extends ct{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new qe(e.ctx.common.issues)));return Ve(t,{code:Ue.invalid_union,unionErrors:n}),Ge}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new qe(e)));return Ve(t,{code:Ue.invalid_union,unionErrors:r}),Ge}}get options(){return this._def.options}}qt.create=(e,t)=>new qt({options:e,typeName:fn.ZodUnion,...lt(t)});const Bt=e=>e instanceof Qt?Bt(e.schema):e instanceof rn?Bt(e.innerType()):e instanceof Yt?[e.value]:e instanceof en?e.options:e instanceof tn?Ie.objectValues(e.enum):e instanceof on?Bt(e._def.innerType):e instanceof Et?[void 0]:e instanceof Rt?[null]:e instanceof an?[void 0,...Bt(e.unwrap())]:e instanceof sn?[null,...Bt(e.unwrap())]:e instanceof dn||e instanceof mn?Bt(e.unwrap()):e instanceof ln?Bt(e._def.innerType):[];class $t extends ct{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.object)return Ve(t,{code:Ue.invalid_type,expected:Ze.object,received:t.parsedType}),Ge;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(Ve(t,{code:Ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ge)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=Bt(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new $t({typeName:fn.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...lt(n)})}}function Wt(e,t){const n=De(e),i=De(t);if(e===t)return{valid:!0,data:e};if(n===Ze.object&&i===Ze.object){const n=Ie.objectKeys(t),i=Ie.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=Wt(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===Ze.array&&i===Ze.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=Wt(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===Ze.date&&i===Ze.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class zt extends ct{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(Qe(e)||Qe(i))return Ge;const r=Wt(e.value,i.value);return r.valid?((Ye(e)||Ye(i))&&t.dirty(),{status:t.value,value:r.data}):(Ve(n,{code:Ue.invalid_intersection_types}),Ge)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}zt.create=(e,t,n)=>new zt({left:e,right:t,typeName:fn.ZodIntersection,...lt(n)});class Vt extends ct{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.array)return Ve(n,{code:Ue.invalid_type,expected:Ze.array,received:n.parsedType}),Ge;if(n.data.length<this._def.items.length)return Ve(n,{code:Ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&n.data.length>this._def.items.length&&(Ve(n,{code:Ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new st(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>Je.mergeArray(t,e))):Je.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new Vt({...this._def,rest:e})}}Vt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vt({items:e,typeName:fn.ZodTuple,rest:null,...lt(t)})};class Jt extends ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.object)return Ve(n,{code:Ue.invalid_type,expected:Ze.object,received:n.parsedType}),Ge;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new st(n,e,n.path,e)),value:a._parse(new st(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?Je.mergeObjectAsync(t,i):Je.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new Jt(t instanceof ct?{keyType:e,valueType:t,typeName:fn.ZodRecord,...lt(n)}:{keyType:xt.create(),valueType:e,typeName:fn.ZodRecord,...lt(t)})}}class Gt extends ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.map)return Ve(n,{code:Ue.invalid_type,expected:Ze.map,received:n.parsedType}),Ge;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new st(n,e,n.path,[a,"key"])),value:r._parse(new st(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Gt.create=(e,t,n)=>new Gt({valueType:t,keyType:e,typeName:fn.ZodMap,...lt(n)});class Kt extends ct{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.set)return Ve(n,{code:Ue.invalid_type,expected:Ze.set,received:n.parsedType}),Ge;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(Ve(n,{code:Ue.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(Ve(n,{code:Ue.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return Ge;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new st(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Kt({...this._def,minSize:{value:e,message:it.toString(t)}})}max(e,t){return new Kt({...this._def,maxSize:{value:e,message:it.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Kt.create=(e,t)=>new Kt({valueType:e,minSize:null,maxSize:null,typeName:fn.ZodSet,...lt(t)});class Ht extends ct{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.function)return Ve(t,{code:Ue.invalid_type,expected:Ze.function,received:t.parsedType}),Ge;function n(e,n){return ze({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,We(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_arguments,argumentsError:n}})}function i(e,n){return ze({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,We(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_return_type,returnTypeError:n}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof nn){const e=this;return He((async function(...t){const s=new qe([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return He((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new qe([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new qe([i(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ht({...this._def,args:Vt.create(e).rest(It.create())})}returns(e){return new Ht({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ht({args:e||Vt.create([]).rest(It.create()),returns:t||It.create(),typeName:fn.ZodFunction,...lt(n)})}}class Qt extends ct{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Qt.create=(e,t)=>new Qt({getter:e,typeName:fn.ZodLazy,...lt(t)});class Yt extends ct{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ve(t,{received:t.data,code:Ue.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Xt(e,t){return new en({values:e,typeName:fn.ZodEnum,...lt(t)})}Yt.create=(e,t)=>new Yt({value:e,typeName:fn.ZodLiteral,...lt(t)});class en extends ct{constructor(){super(...arguments),rt.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{expected:Ie.joinValues(n),received:t.parsedType,code:Ue.invalid_type}),Ge}if(tt(this,rt,"f")||nt(this,rt,new Set(this._def.values),"f"),!tt(this,rt,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{received:t.data,code:Ue.invalid_enum_value,options:n}),Ge}return He(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return en.create(e,{...this._def,...t})}exclude(e,t=this._def){return en.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}rt=new WeakMap,en.create=Xt;class tn extends ct{constructor(){super(...arguments),at.set(this,void 0)}_parse(e){const t=Ie.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ze.string&&n.parsedType!==Ze.number){const e=Ie.objectValues(t);return Ve(n,{expected:Ie.joinValues(e),received:n.parsedType,code:Ue.invalid_type}),Ge}if(tt(this,at,"f")||nt(this,at,new Set(Ie.getValidEnumValues(this._def.values)),"f"),!tt(this,at,"f").has(e.data)){const e=Ie.objectValues(t);return Ve(n,{received:n.data,code:Ue.invalid_enum_value,options:e}),Ge}return He(e.data)}get enum(){return this._def.values}}at=new WeakMap,tn.create=(e,t)=>new tn({values:e,typeName:fn.ZodNativeEnum,...lt(t)});class nn extends ct{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.promise&&!1===t.common.async)return Ve(t,{code:Ue.invalid_type,expected:Ze.promise,received:t.parsedType}),Ge;const n=t.parsedType===Ze.promise?t.data:Promise.resolve(t.data);return He(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}nn.create=(e,t)=>new nn({type:e,typeName:fn.ZodPromise,...lt(t)});class rn extends ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===fn.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{Ve(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return Ge;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===i.status?Ge:"dirty"===i.status||"dirty"===t.value?Ke(i.value):i}));{if("aborted"===t.value)return Ge;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===i.status?Ge:"dirty"===i.status||"dirty"===t.value?Ke(i.value):i}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?Ge:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?Ge:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Xe(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Xe(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}Ie.assertNever(i)}}rn.create=(e,t,n)=>new rn({schema:e,typeName:fn.ZodEffects,effect:t,...lt(n)}),rn.createWithPreprocess=(e,t,n)=>new rn({schema:t,effect:{type:"preprocess",transform:e},typeName:fn.ZodEffects,...lt(n)});class an extends ct{_parse(e){return this._getType(e)===Ze.undefined?He(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:fn.ZodOptional,...lt(t)});class sn extends ct{_parse(e){return this._getType(e)===Ze.null?He(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}sn.create=(e,t)=>new sn({innerType:e,typeName:fn.ZodNullable,...lt(t)});class on extends ct{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ze.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}on.create=(e,t)=>new on({innerType:e,typeName:fn.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...lt(t)});class ln extends ct{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return et(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ln.create=(e,t)=>new ln({innerType:e,typeName:fn.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...lt(t)});class cn extends ct{_parse(e){if(this._getType(e)!==Ze.nan){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.nan,received:t.parsedType}),Ge}return{status:"valid",value:e.data}}}cn.create=e=>new cn({typeName:fn.ZodNaN,...lt(e)});const un=Symbol("zod_brand");class dn extends ct{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class pn extends ct{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),Ke(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new pn({in:e,out:t,typeName:fn.ZodPipeline})}}class mn extends ct{_parse(e){const t=this._def.innerType._parse(e),n=e=>(Xe(e)&&(e.value=Object.freeze(e.value)),e);return et(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function hn(e,t={},n){return e?Pt.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):Pt.create()}mn.create=(e,t)=>new mn({innerType:e,typeName:fn.ZodReadonly,...lt(t)});const gn={object:Ut.lazycreate};var fn;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(fn||(fn={}));const bn=xt.create,yn=Tt.create,vn=cn.create,kn=At.create,wn=Ot.create,_n=Lt.create,Sn=Ft.create,jn=Et.create,xn=Rt.create,Cn=Pt.create,Tn=It.create,An=Mt.create,On=Nt.create,Ln=Zt.create,Fn=Ut.create,En=Ut.strictCreate,Rn=qt.create,Pn=$t.create,In=zt.create,Mn=Vt.create,Nn=Jt.create,Zn=Gt.create,Dn=Kt.create,Un=Ht.create,qn=Qt.create,Bn=Yt.create,$n=en.create,Wn=tn.create,zn=nn.create,Vn=rn.create,Jn=an.create,Gn=sn.create,Kn=rn.createWithPreprocess,Hn=pn.create,Qn={string:e=>xt.create({...e,coerce:!0}),number:e=>Tt.create({...e,coerce:!0}),boolean:e=>Ot.create({...e,coerce:!0}),bigint:e=>At.create({...e,coerce:!0}),date:e=>Lt.create({...e,coerce:!0})},Yn=Ge;var Xn=Object.freeze({__proto__:null,defaultErrorMap:Be,setErrorMap:function(e){$e=e},getErrorMap:We,makeIssue:ze,EMPTY_PATH:[],addIssueToContext:Ve,ParseStatus:Je,INVALID:Ge,DIRTY:Ke,OK:He,isAborted:Qe,isDirty:Ye,isValid:Xe,isAsync:et,get util(){return Ie},get objectUtil(){return Me},ZodParsedType:Ze,getParsedType:De,ZodType:ct,datetimeRegex:jt,ZodString:xt,ZodNumber:Tt,ZodBigInt:At,ZodBoolean:Ot,ZodDate:Lt,ZodSymbol:Ft,ZodUndefined:Et,ZodNull:Rt,ZodAny:Pt,ZodUnknown:It,ZodNever:Mt,ZodVoid:Nt,ZodArray:Zt,ZodObject:Ut,ZodUnion:qt,ZodDiscriminatedUnion:$t,ZodIntersection:zt,ZodTuple:Vt,ZodRecord:Jt,ZodMap:Gt,ZodSet:Kt,ZodFunction:Ht,ZodLazy:Qt,ZodLiteral:Yt,ZodEnum:en,ZodNativeEnum:tn,ZodPromise:nn,ZodEffects:rn,ZodTransformer:rn,ZodOptional:an,ZodNullable:sn,ZodDefault:on,ZodCatch:ln,ZodNaN:cn,BRAND:un,ZodBranded:dn,ZodPipeline:pn,ZodReadonly:mn,custom:hn,Schema:ct,ZodSchema:ct,late:gn,get ZodFirstPartyTypeKind(){return fn},coerce:Qn,any:Cn,array:Ln,bigint:kn,boolean:wn,date:_n,discriminatedUnion:Pn,effect:Vn,enum:$n,function:Un,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>hn((t=>t instanceof e),t),intersection:In,lazy:qn,literal:Bn,map:Zn,nan:vn,nativeEnum:Wn,never:An,null:xn,nullable:Gn,number:yn,object:Fn,oboolean:()=>wn().optional(),onumber:()=>yn().optional(),optional:Jn,ostring:()=>bn().optional(),pipeline:Hn,preprocess:Kn,promise:zn,record:Nn,set:Dn,strictObject:En,string:bn,symbol:Sn,transformer:Vn,tuple:Mn,undefined:jn,union:Rn,unknown:Tn,void:On,NEVER:Yn,ZodIssueCode:Ue,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:qe});const ei=Xn.object({href:Xn.string(),target:Xn.string()}),ti=Xn.object({name:Xn.string(),sort:Xn.union([Xn.literal("ASC"),Xn.literal("DESC")])}),ni=Xn.union([Xn.boolean(),Xn.string(),Xn.number(),Xn.array(Xn.string()),Xn.object({srcId:Xn.union([Xn.number(),Xn.string()]),srcType:Xn.string()}),Xn.object({targetId:Xn.union([Xn.number(),Xn.string()]),targetType:Xn.string()}),Xn.object({start:Xn.string(),end:Xn.string()})]),ii=Xn.union([Xn.literal("<"),Xn.literal(">"),Xn.literal("<="),Xn.literal(">="),Xn.literal("!="),Xn.literal("<>"),Xn.literal("like"),Xn.literal("between"),Xn.literal("is"),Xn.literal("is not"),Xn.literal("in"),Xn.literal("link"),Xn.literal("match"),Xn.literal("equal")]),ri=Xn.union([Xn.literal("<"),Xn.literal(">"),Xn.literal("<="),Xn.literal(">="),Xn.literal("!="),Xn.literal("<>"),Xn.literal("+"),Xn.literal("-"),Xn.literal("like"),Xn.literal("between"),Xn.literal("is"),Xn.literal("is not"),Xn.literal("in"),Xn.literal("link"),Xn.literal("match"),Xn.literal("equal")]),ai=Xn.object({name:Xn.string(),value:ni,operator:ii.optional(),method:ri.optional(),or:Xn.boolean().optional(),isNull:Xn.boolean().optional(),isNotNull:Xn.boolean().optional()}),si=ti.array(),oi=Xn.array(ai),li=e=>e.and(Xn.object({token:Xn.string().or(Xn.undefined()).optional()}));var ci;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(ci||(ci={}));const ui=Xn.nativeEnum(ci).transform((e=>`${e}`)),di=Xn.union([ui,Xn.undefined()]),pi=Xn.array(Xn.union([Xn.literal("bookmark"),Xn.literal("contact"),Xn.literal("licenses"),Xn.literal("quizFieldDefinitions"),Xn.literal("quizResponseRecord"),Xn.literal("search"),Xn.literal("socialEventRecord"),Xn.literal("surveyDateRecord")])),mi=Xn.object({additionalFilter:Xn.object({}).optional(),facets:Xn.array(Xn.object({})).optional(),filters:oi.optional(),query:Xn.string().optional(),limit:Xn.number().optional(),page:Xn.number().optional(),orders:si.optional(),format:di.optional()}),hi=e=>Xn.object(e),gi=hi({create:Xn.boolean(),read:Xn.boolean(),publish:Xn.boolean(),administrate:Xn.boolean(),update:Xn.boolean(),delete:Xn.boolean(),comment:Xn.boolean(),member:Xn.boolean()}),fi=e=>gi.safeParse(e).success,bi=hi({id:Xn.number(),mainType:Xn.string(),type:Xn.string(),uri:Xn.string(),dateCreation:Xn.string().optional(),dateModified:Xn.string().nullable().optional()}),yi=bi.extend({title:Xn.string(),_url:Xn.string()}),vi=e=>yi.safeParse(e).success,ki=Xn.string(),wi=Xn.string().nullable(),_i=Xn.number(),Si=Xn.string().nullable(),ji=Xn.string().nullable(),xi=Xn.string().nullable(),Ci=Xn.number(),Ti=Xn.string(),Ai=Xn.string(),Oi=Xn.union([Ci,xi,ji,Si,Ti,_i,wi,ki,Ai]),Li={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},Fi=bi.extend({title:Xn.string(),_url:Xn.string(),level:Xn.nativeEnum(Li),dateCreation:Xn.string(),dateModified:Xn.string()}).catchall(Oi),Ei=Fi.extend({active:Xn.number()}),Ri=e=>Ei.safeParse(e).success,Pi=Ei,Ii=e=>Pi.safeParse(e).success,Mi=Xn.object({idInType:Xn.number(),lat:Xn.number(),lng:Xn.number()}),Ni=e=>Mi.safeParse(e).success,Zi=Xn.object({title:Xn.string(),firstname:Xn.string(),lastname:Xn.string(),mail:Xn.union([Xn.string(),Xn.undefined()]).optional(),description:Xn.string().optional(),dateOfBirth:Xn.string().optional(),phoneNumber:Xn.string().optional(),language:Xn.string().optional(),timeZone:Xn.string().optional(),mobileNumber:Xn.string().optional(),company:Xn.string().optional(),country:Xn.string().optional(),department:Xn.string().optional(),function:Xn.string().optional(),webSite:Xn.string().optional(),image:Xn.union([Xn.string(),Xn.undefined()]).optional(),userBanner:Xn.union([Xn.string(),Xn.undefined()]).optional(),field1:Xn.string().optional(),field2:Xn.string().optional(),field3:Xn.string().optional(),field4:Xn.string().optional(),field5:Xn.string().optional()}),Di=Zi.required().extend({level:Xn.string(),image:Xn.string().optional(),businessManagementManager:Fi.array().optional(),businessNetworkingUserToCompanySrc:Fi.array().optional()}),Ui=Xn.object({user_field_edit_profil:Xn.record(Zi.keyof(),Xn.number()),user_field_editable:Xn.record(Zi.keyof(),Xn.number()),user_field_my_page:Xn.record(Zi.keyof(),Xn.number()),user_page_mandatory_fields:Xn.object({firstname:Xn.enum(["0","1"]),lastname:Xn.enum(["0","1"]),pseudo:Xn.enum(["0","1"])})}),qi=Xn.object({name:Xn.string(),value:Xn.union([Xn.string(),Xn.record(Xn.string(),Xn.any())])}),Bi=Xn.enum(["popover"]),$i=Xn.object({values:Di,mobileEditableFields:Di.keyof().array()}),Wi=Xn.object({mail:Xn.union([Xn.string(),Xn.undefined()]),title:Xn.string(),firstname:Xn.string(),lastname:Xn.string(),phoneNumber:Xn.union([Xn.string(),Xn.undefined()]).optional(),company:Xn.union([Xn.string(),Xn.undefined()]).optional(),function:Xn.union([Xn.string(),Xn.undefined()]).optional(),uri:Xn.union([Xn.string(),Xn.undefined()]).optional(),field1:Xn.union([Xn.string(),Xn.undefined()]).optional(),field2:Xn.union([Xn.string(),Xn.undefined()]).optional(),field3:Xn.union([Xn.string(),Xn.undefined()]).optional(),field4:Xn.union([Xn.string(),Xn.undefined()]).optional(),field5:Xn.union([Xn.string(),Xn.undefined()]).optional()}),zi=Xn.object({userDirectoryShow:Xn.union([Xn.literal(""),Xn.literal("1")]),contactDirectoryShow:Xn.union([Xn.literal("0"),Xn.literal("1")]),businessContactShow:Xn.boolean(),menu:Xn.union([Xn.literal("0"),Xn.literal("1")]),cardFields:Xn.string().array(),tableFields:Xn.string().array(),viewFields:Xn.string().array(),userGeoloc:Xn.boolean().optional(),sort:Xn.string(),cnt:Xn.number().optional(),filters:Xn.object({name:Xn.string(),type:Xn.string()}).array()}),Vi=e=>zi.safeParse(e).success;var Ji;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(Ji||(Ji={}));const Gi=Xn.object({RF_Constant_levelName:Xn.string(),RF_delete:Xn.boolean(),RF_editing:Xn.boolean(),RF_level:Xn.number(),RF_levelName:Xn.string(),RF_levelName_Trad:Xn.string(),RF_parameters:Xn.boolean(),RF_setAdmin:Xn.boolean(),RF_spotit:Xn.boolean(),RF_spotit_own:Xn.boolean()}),Ki=yi.extend({dateCreation:Xn.string(),dateModified:Xn.string(),category:Xn.number(),privacy:Xn.number()}),Hi=e=>Gi.safeParse(e).success,Qi=yi.extend({description:Xn.string().optional().nullable(),_user:Fi,_right:gi}),Yi=e=>Qi.safeParse(e).success,Xi=yi.extend({type:Xn.enum(["folder","rootFolder"]),folderColor:Xn.string().optional()}),er=Xn.union([Fi,Ki,Xi]),tr=bi.extend({srcId:Xn.number(),srcType:Xn.string(),targetId:Xn.number(),targetType:Xn.string().nullable()}),nr=e=>tr.extend({value:Xn.string().nullable(),_src:e.optional(),_target:e.optional().or(Xn.undefined())}),ir=e=>nr(null!=e?e:yi.or(Fi)).extend({bookmarkUrl:Xn.string().optional().nullable(),bookmarkOrder:Xn.number().optional(),bookmarkLabel:Xn.string().optional(),bookmarkMeta:Xn.string().optional().nullable(),url:Xn.string().optional().nullable(),type:Xn.literal("bookmarkLink")}),rr=e=>Xn.object({id:Xn.number(),mainType:Xn.string(),type:Xn.string(),uri:Xn.string(),_values:Xn.object({dateCreation:Xn.string(),dateModified:Xn.string()}).optional(),srcId:Xn.number(),srcType:Xn.string(),targetId:Xn.number(),targetType:Xn.string().nullable(),value:Xn.string().nullable(),_cssColor:Xn.string(),_cssClass:Xn.string(),_src:(null!=e?e:yi).optional(),_target:(null!=e?e:yi).optional(),bookmarkUrl:Xn.string().optional().nullable(),bookmarkOrder:Xn.string().optional(),bookmarkLabel:Xn.string().optional(),bookmarkMeta:Xn.string().optional().nullable(),url:Xn.string().optional().nullable()});var ar;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(ar||(ar={}));const sr=Xn.object({targetId:Xn.number(),targetType:Xn.string(),format:Xn.nativeEnum(ar).transform((e=>`${e}`)).optional()}),or=Xn.object({[ar.RAW_LIST]:ir(),[ar.LIST]:rr()}),lr=Xn.object({bookmarkLabel:ir(yi).shape.bookmarkLabel,bookmarkMeta:ir(yi).shape.bookmarkMeta,bookmarkUrl:ir(yi).shape.bookmarkUrl}),cr=Xn.object({countActiveUsersWithoutLicense:Xn.number().optional(),countLicensesAssigned:Xn.number(),countLicensesNotAssigned:Xn.number()}),ur=Xn.object({name:Xn.string(),operator:Xn.string(),value:Xn.number()}),dr=Xn.record(Xn.number()),pr=Xn.object({id:Xn.number(),kind:Xn.string(),dateCreation:Xn.string(),idFeature:Xn.number(),uri:Xn.string(),contentId:Xn.number(),contentType:Xn.string(),status:Xn.number()}),mr=Xn.object({id:Xn.number(),kind:Xn.string(),dateCreation:Xn.string(),idFeature:Xn.number(),uri:Xn.string(),contentId:Xn.number(),contentType:Xn.string(),status:Xn.number()}),hr=Ei.extend({_extend:Xn.object({licenses:Xn.array(mr)})}),gr=mi.extend({data:hr.array()}),fr=Xn.object({uri:Xn.string(),title:Xn.string(),price:Xn.number(),image:Xn.string(),license:Xn.boolean()}),br=Xn.object({url:Xn.string()}),yr=Xn.object({sref:Xn.string().optional(),href:Xn.string().optional(),idDiv:Xn.string(),label:Xn.string(),icon:Xn.string(),licenseMode:Xn.literal("classic").optional(),hook:Xn.string().optional()}),vr=Xn.object({name:Xn.string(),label:Xn.string(),icon:Xn.string(),color:Xn.tuple([Xn.string(),Xn.string(),Xn.string()]),state:Xn.string().optional(),access:Xn.boolean(),url:Xn.string().optional(),tabs:Xn.array(yr).optional()}),kr=Xn.array(vr),wr=Xn.union([Xn.literal("Celebration"),Xn.literal("Olympics"),Xn.literal("Maythefourth"),Xn.literal("Spring"),Xn.literal("MusicFestival"),Xn.literal("EasterEggs"),Xn.literal("CustomAnimation")]),_r=Xn.object({name:wr,activeClickEffect:Xn.number(),activeDecor:Xn.number(),auto:Xn.boolean(),audience:Xn.array(Xn.string())}),Sr=Xn.object({date:Xn.string(),number:Xn.number()}),jr=Xn.object({id:Xn.number(),mainType:Xn.string(),type:Xn.string(),uri:Xn.string(),dateCreation:Xn.string().nullable(),dateModified:Xn.string().nullable(),animationName:Xn.string(),dateStart:Xn.string(),dateEnd:Xn.string().nullable(),auto:Xn.boolean(),stats:Xn.array(Sr),animAudience:Xn.array(Xn.string())}),xr=Xn.object({attrName:Xn.string(),token:Xn.string(),file:Xn.instanceof(File).nullable().optional(),url:Xn.string().optional()}),Cr=Xn.object({width:Xn.number(),height:Xn.number()}),Tr=Xn.object({x:Xn.number(),y:Xn.number(),w:Xn.number(),h:Xn.number(),rotation:Xn.number(),killSize:Xn.boolean().optional()}),Ar=yi.extend({dateCreation:Xn.string(),dateModified:Xn.string().nullable(),mimetype:Xn.string(),path:Xn.string().optional(),size:Xn.number()}),Or=e=>Ar.parse(e),Lr=Ar.extend({_extend:Xn.object({crop:Tr})}),Fr=Xn.object({name:Xn.string(),filename:Xn.string(),dateModified:Xn.string(),mimetype:Xn.string()}),Er=Xn.object({idUser:Xn.string(),dateDownload:Xn.string(),Pseudo:Xn.string(),type:Xn.string()});var Rr;Xn.object({id:Xn.number(),token:Xn.string().optional(),attrName:Xn.string()}),function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.Api="widget-api",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table"}(Rr||(Rr={}));const Pr=Xn.nativeEnum(Rr),Ir=Xn.object({title:Xn.string(),widget:Xn.object({name:Pr,uniqid:Xn.string(),content:Xn.unknown()})}).catchall(Xn.unknown()),Mr=Ir,Nr=hi({css:Xn.record(Xn.string(),Xn.string()).optional(),widgets:Mr.array().optional()}),Zr=Xn.enum(["left","right","center","justify"]),Dr=Xn.enum(["top","bottom","center","left","right"]),Ur=Xn.enum(["auto","contain","cover"]),qr=Xn.enum(["sm","md","lg"]),Br=Xn.enum(["contained","outlined"]),$r=Xn.enum(["link","anchor","popup"]),Wr=Xn.object({x:Xn.number(),y:Xn.number()}),zr=Xn.object({layers:Xn.string().array().optional()}),Vr=Xn.enum(["default","vertical"]),Jr=(e,t)=>t.safeParse(e).success,Gr=Xn.object({url:Xn.string(),target:Xn.string()}),Kr=Xn.object({uniqid:Xn.string()}),Hr=Xn.object({title:Xn.string(),widgets:Mr.array()}),Qr=hi({text:Xn.string().optional(),color:Xn.string().optional(),backgroundColor:Xn.string().optional(),borderRadius:Xn.string().optional(),fontSize:Xn.string().optional(),buttonSize:qr.optional(),variant:Br.optional(),url:Xn.string().optional(),target:Xn.string().optional()}),Yr=Qr.extend({openingType:$r.optional(),openingTypeLink:Gr.optional(),openingTypeAnchor:Kr.optional(),openingTypePopup:Hr.optional()}),Xr=hi({name:Xn.literal(Rr.ArticleButton),uniqid:Xn.string(),content:Yr}),ea=e=>Jr(e,Xr),ta=hi({gap:Xn.string().optional(),column:Xn.string().optional(),files:Ar.array().optional()}),na=hi({name:Xn.literal(Rr.ArticleGallery),uniqid:Xn.string(),content:ta}),ia=e=>Jr(e,na),ra=hi({text:Xn.string().optional(),textAlign:Zr.optional(),heading:Xn.string().optional(),color:Xn.string().optional(),backgroundColor:Xn.string().optional()}),aa=hi({name:Xn.literal(Rr.ArticleTitle),uniqid:Xn.string(),content:ra}),sa=e=>Jr(e,aa),oa=hi({text:Xn.string().optional(),color:Xn.string().optional(),fontSize:Xn.string().optional(),lineHeight:Xn.string().optional(),linkColor:Xn.string().optional()}),la=hi({name:Xn.literal(Rr.ArticleText),uniqid:Xn.string(),content:oa}),ca=e=>Jr(e,la),ua=hi({file:Ar.optional(),useFilter:Xn.boolean().optional()}),da=hi({name:Xn.literal(Rr.ArticleImage),uniqid:Xn.string(),content:ua}),pa=e=>Jr(e,da),ma=hi({files:Ar.array().optional(),fileDisplay:Xn.enum(["list","gallery"]).optional()}),ha=hi({name:Xn.literal(Rr.ArticleAttachment),uniqid:Xn.string(),content:ma}),ga=e=>Jr(e,ha),fa=hi({url:Xn.string().optional(),keys:Xn.array(Xn.string()).optional(),order:Xn.string().optional(),orderBy:Xn.string().optional()}),ba=hi({name:Xn.literal(Rr.Api),uniqid:Xn.string(),content:fa}),ya=e=>Jr(e,ba),va=hi({title:Xn.string(),text:Xn.string(),titleHeading:Xn.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Xn.string().optional(),opacityFilter:Xn.number().optional(),opacityColor:Xn.string().optional(),file:Ar.optional()}),ka=hi({slides:va.array().optional(),maxWidth:Xn.number().optional(),loop:Xn.boolean().optional(),useDots:Xn.boolean().optional(),startAt:Xn.number().optional()}),wa=hi({name:Xn.literal(Rr.ArticleSlider),uniqid:Xn.string(),content:ka}),_a=e=>Jr(e,wa),Sa=hi({title:Xn.string(),value:Xn.boolean().optional(),links:ei.array().optional(),id:Xn.number().optional(),user:Xn.object({id:Xn.number(),type:Xn.literal("user"),mainType:Xn.literal("user")}).optional()}),ja=hi({arr:Sa.array().optional()}),xa=hi({name:Xn.literal(Rr.CheckList),uniqid:Xn.string(),content:ja.and(Nr)}),Ca=e=>Jr(e,xa),Ta=Xn.enum(["date","date-time","date-time-sec","time","time-sec"]),Aa=Xn.enum(["fr-FR","en-EN","filesize"]),Oa=Xn.object({}),La=Xn.object({type:Xn.literal("text")}),Fa=Xn.object({label:Xn.string(),value:Xn.string()}),Ea=Xn.object({type:Xn.literal("select"),options:Fa.array()}),Ra=Xn.object({type:Xn.literal("date")}),Pa=Xn.union([La,Ea,Ra,Oa]),Ia=Xn.object({name:Xn.string().optional(),isVisible:Xn.boolean().optional(),textEllipsis:Xn.boolean().optional(),label:Xn.string().optional(),dateFormat:Ta.optional(),numberFormat:Aa.optional()}),Ma=Ia.array(),Na=Xn.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Za=Xn.object({name:Xn.string(),label:Xn.string(),sortable:Xn.boolean().optional(),type:Na,widget:Pa}),Da=Xn.object({limit:Xn.number().optional(),tableColumnsData:Ia.array().optional(),tableHeadColor:Xn.string().optional(),tableHeadTextColor:Xn.string().optional(),tableHeadIconColor:Xn.string().optional(),tableRowColor:Xn.string().optional(),tableRowTextColor:Xn.string().optional(),tableBorderRadius:Xn.number().optional(),tableSizedColumns:Xn.boolean().optional(),tableSizedColumnsWidth:Xn.number().optional()}),Ua=Da.extend({uri:Xn.string().optional()}),qa=hi({name:Xn.literal(Rr.DatasourceTable),uniqid:Xn.string(),content:Ua}),Ba=e=>Jr(e,qa),$a=Ua.extend({uri:Xn.string().optional()}),Wa=Xn.lazy((()=>Xn.object({name:Xn.literal(Rr.ExcelDatasourceTable),uniqid:Xn.string(),content:$a}))),za=e=>Jr(e,Wa),Va=Xn.union([ba,ha,Xr,na,da,aa,la,wa,xa,qa,Wa]),Ja=e=>Xn.object({title:Xn.string(),widget:zr.and(null!=e?e:Va)}),Ga=e=>Ja().safeParse(e).success,Ka=Xn.object({widgets:Ja().array().optional()}).and(Xn.union([fa,ma,Yr,ta,ua,oa,ra,ka,ja,Ua])),Ha=Xn.object({[Rr.ArticleButton]:Xr,[Rr.ArticleGallery]:na,[Rr.ArticleTitle]:aa,[Rr.ArticleText]:la,[Rr.ArticleImage]:da,[Rr.ArticleAttachment]:ha,[Rr.Api]:ba,[Rr.ArticleSlider]:wa,[Rr.CheckList]:xa,[Rr.DatasourceTable]:qa,[Rr.ExcelDatasourceTable]:Wa}),Qa=Xn.object({[Rr.ArticleButton]:Yr,[Rr.ArticleGallery]:ta,[Rr.ArticleTitle]:ra,[Rr.ArticleText]:oa,[Rr.ArticleImage]:ua,[Rr.ArticleAttachment]:ma,[Rr.Api]:fa,[Rr.ArticleSlider]:ka,[Rr.CheckList]:ja,[Rr.DatasourceTable]:Ua,[Rr.ExcelDatasourceTable]:$a}),Ya=Xn.object({busy:Xn.union([Xn.boolean(),Xn.undefined()]).optional(),loading:Xn.union([Xn.boolean(),Xn.undefined()]).optional(),initialized:Xn.union([Xn.boolean(),Xn.undefined()]).optional(),mounted:Xn.union([Xn.boolean(),Xn.undefined()]).optional(),hover:Xn.union([Xn.boolean(),Xn.undefined()]).optional(),empty:Xn.boolean().optional()}),Xa=yi.extend({dateCreation:Xn.string(),dateModified:Xn.string()}),es=Xa.extend({description:Xn.string().nullable().optional(),_user:Fi,_right:gi,_audience:er.array(),image:Cr.optional(),articleWidgets:Ja().array().optional()}),ts=es.extend({_attachedFiles:Ar.array()}),ns=ts.extend({processContext:Xn.null(),uiObjectLink:yi.array().optional()}),is=e=>ts.extend({idDraft:Xn.number(),form:e}),rs=Xn.object({type:Xn.string().optional(),format:di.optional(),formatExtend:pi.optional(),query:Xn.string().optional(),limit:Xn.number().optional(),page:Xn.number().optional(),orders:si.optional(),filters:oi.optional()}),as=Xn.object({uri:Xn.string().optional(),idArticle:Xn.number().optional(),format:di.optional()}),ss=Xn.object({title:Xn.string().optional(),description:Xn.string().optional().nullable(),type:Xn.string().optional(),publishTo:Xn.string().optional(),idSpot:Xn.array(Xn.string()).optional()}),os=Xn.object({id:Xn.number(),type:Xn.string(),dateCreation:Xn.string(),dateModified:Xn.string(),title:Xn.string(),uri:Xn.string()}),ls=Xn.object({attachment:Xn.boolean().optional(),idArticle:Xn.number(),limits:Xn.object({max:Xn.number(),start:Xn.number()}).optional()}),cs=Xn.object({token:Xn.string(),content:Xn.string(),idArticle:Xn.number(),sendAlert:Xn.boolean(),alertAuthor:Xn.boolean(),widgets:Ja().array().optional()}),us=Xn.object({token:Xn.string().optional(),description:Xn.string().optional(),idComment:Xn.number(),widgets:Ja().array().optional()}),ds=Xn.object({idUser:Xn.string(),dateRead:Xn.string(),Pseudo:Xn.string(),type:Xn.string()}),ps=Xi.merge(es).extend({_nbItems:Xn.number(),parentURI:Xn.string().optional()}),ms=Xn.union([Xn.literal("created"),Xn.literal("validated"),Xn.literal("handled")]),hs=ts.extend({aseiClearanceTicketValidator:Fi.array(),aseiClearanceTicketHandler:yi.array(),aseiClearanceTicketApplicationManagers:yi.array(),aseiClearanceTicketInstitution:yi.array(),processContext:Xn.null(),aseiClearanceTicketNatureOfDemand:Xn.string(),aseiClearanceTicketInternetAccess:Xn.string(),aseiClearanceTicketInternetAccessSpecify:Xn.string(),aseiClearanceTicketMicrosoftTeams:Xn.string().nullable(),aseiClearanceTicketVariousNetworks:Xn.string().nullable(),aseiClearanceTicketFreeText:Xn.string(),aseiClearanceTicketOfficeAccess:Xn.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Xn.string(),aseiClearanceTicketBlueKanGo:Xn.string().nullable(),aseiClearanceTicketAccounting:Xn.string(),aseiClearanceTicketAccountingBudget:Xn.string(),aseiClearanceTicketTransfers:Xn.string().nullable(),aseiClearanceTicketBilling:Xn.string(),aseiClearanceTicketPayroll:Xn.string(),aseiClearanceTicketPayrollBudget:Xn.string(),aseiClearanceTicketAccommodationCosts:Xn.string(),aseiClearanceTicketCommercialManagement:Xn.string(),aseiClearanceTicketInventoryManagement:Xn.string(),aseiClearanceTicketTimeManagement:Xn.string(),aseiClearanceTicketBdes:Xn.string(),aseiClearanceTicketMandateStart:Xn.string().nullable(),aseiClearanceTicketMandateEnd:Xn.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Xn.string().nullable(),aseiClearanceTicketBudgetLetters:Xn.string(),aseiClearanceTicketComputerisedFile:Xn.string().nullable(),aseiClearanceTicketRecruiterAccess:Xn.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Xn.null(),aseiClearanceTicketTypeOfWorkContractTo:Xn.null(),aseiClearanceTicketLastName:Xn.string(),aseiClearanceTicketFirstName:Xn.string(),aseiClearanceTicketUser:Fi.array(),aseiClearanceTicketTypeOfWorkContract:Xn.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Xn.string(),aseiClearanceTicketPosition:Xn.string(),aseiClearanceTicketStatus:ms}),gs=Xa.extend({_right:gi,_user:Fi,aseiInstitutionValidator:yi.array(),processContext:Xn.null()}),fs=Xn.object({dsi:Xn.string(),gestionnaireApplicatif:Xn.string(),createurDemande:Xn.string()}),bs=Xn.object({accessWriter:Xn.boolean(),accessApp:Xn.boolean()}),ys=Xn.object({description:Xn.string(),right:Xn.object({manage:Xn.boolean()}),daysOff:Xn.array(Xn.string()).optional(),weekEnd:Xn.union([Xn.literal("0"),Xn.literal("1")]),bookingOpeningTime:Xn.string(),bookingClosingTime:Xn.string(),lastBookingSchedule:Xn.string()}),vs=es.extend({_isColorDark:Xn.boolean().nullable(),assetPlannerBackgroundColor:Xn.string().nullable()}),ks=vs.extend({assetBanner:Xn.record(Xn.object({id:Xn.string(),name:Xn.string(),size:Xn.string()}))}),ws=es.extend({dateStart:Xn.string(),dateEnd:Xn.string(),reservationCancelled:Xn.boolean(),_asset:vs}),_s=Xn.object({id:Xn.string(),uri:Xn.string(),shortUri:Xn.string(),title:Xn.string(),name:Xn.string(),mainType:Xn.string(),type:Xn.string(),label:Xn.string(),cssClass:Xn.string(),cssColor:Xn.string(),class:Xn.string()}),Ss=_s.extend({title:Xn.string()}),js=Ss.extend({Pseudo:Xn.string()}),xs=Ss.extend({idspot:Xn.string()}),Cs=Xn.union([Ss,js,xs]),Ts=yi.extend({isTechnical:Xn.number(),status:Xn.number(),image:Xn.string(),isMember:Xn.boolean(),stats:Xn.object({moderators:Xn.number(),members:Xn.string()}),_members:Xn.array(yi)}),As=Xn.object({token:Xn.string(),fullname:Xn.string()}),Os=Xn.object({redirectUrl:Xn.string()}),Ls=Xn.object({token:Xn.string()}),Fs=Xn.object({dateStart:Xn.string(),title:Xn.string()}),Es=Xa.extend({type:Xn.literal("businessContactCard")}),Rs=es.and(Es.and(Xn.object({mail:Xn.string().nullable(),pseudo:Xn.string().nullable(),firstName:Xn.string().nullable(),lastName:Xn.string().nullable(),phoneNumber:Xn.string().nullable(),company:Xn.string().nullable(),function:Xn.string().nullable(),champ1:Xn.string().nullable().optional(),champ2:Xn.string().nullable().optional(),champ3:Xn.string().nullable().optional(),champ4:Xn.string().nullable().optional(),champ5:Xn.string().nullable().optional()}))),Ps=Xn.literal("read"),Is=Xn.object({type:Xn.string(),class:Xn.string(),isActive:Xn.boolean(),label:Xn.string(),cssClass:Xn.string(),cssColor:Xn.string(),struct:Xn.object({action:Xn.string(),do:Xn.string(),type:Xn.string(),targetId:Xn.number(),targetType:Xn.string()}),stats:Xn.object({total:Xn.number()})}),Ms=bi.omit({dateModified:!0}).extend({dateCreation:Xn.string(),dateModified:Xn.string().nullable(),description:Xn.string().nullable(),_user:Fi}),Ns=Ms.extend({_right:gi,_attachedFiles:Xn.array(Ar).optional(),_actions:Xn.record(Is).optional(),_widgets:Xn.array(Ja()).optional()}),Zs=Qi.extend({dateStart:Xn.string(),animatedMeetingContent:Xn.record(Xn.unknown()),_extend:Xn.object({status:Xn.string(),statusValue:Xn.literal(1).or(Xn.literal(2)).or(Xn.literal(3)),date:Xn.string()}),_audience:er.array(),_audienceLeft:Xn.number()}),Ds=Xn.union([Xn.literal("groups"),Xn.literal("sites"),Xn.literal("onedrive"),Xn.literal("group"),Xn.literal("documents")]),Us=Xn.object({title:Xn.string(),id:Xn.string(),type:Xn.string()}),qs=Us.omit({id:!0}).extend({name:Ds.optional()}),Bs=Us.and(Xn.object({})),$s=Us.extend({visibility:Xn.union([Xn.literal("public"),Xn.literal("private")]).optional()}),Ws=Us.extend({mimetype:Xn.string().optional(),webUrl:Xn.string().optional()}),zs=$s.and(Ws),Vs=Xn.object({id:Xn.string(),title:Xn.string(),mail:Xn.string(),default:Xn.boolean()}),Js=Xn.object({title:Xn.string(),id:Xn.string(),type:Xn.string(),mimetype:Xn.string().optional(),webUrl:Xn.string().optional()}),Gs=Xn.object({msTenant:Xn.union([Ds,Xn.undefined()]),msId:Xn.union([Xn.string(),Xn.undefined()]),idFolder:Xn.union([Xn.string(),Xn.undefined()]),page:Xn.number(),limit:Xn.number(),query:Xn.string().optional().nullable()}),Ks=es.extend({faqColor:Xn.string().optional(),image:Cr.optional(),type:Xn.literal("faq")}),Hs=ts.and(Ks).and(Xn.object({_audience:Cs.array(),tags:Ss.array().optional(),isWeb:Xn.boolean(),faqContent:Xn.array(Xn.object({title:Xn.string(),id:Xn.string().optional(),items:Xn.array(Xn.string())})).optional()})),Qs=e=>e.and(Xn.object({_extend:Xn.object({itemsCount:Xn.number()})})),Ys=es.extend({type:Xn.literal("faqItem"),hierarchy:Xn.object({category:Xn.string().optional(),theme:Xn.string().optional()})}),Xs=Ys.omit({hierarchy:!0}).extend({faqResponse:Xn.string(),tags:Ss.array().optional(),uriCategory:Xa.array(),themeId:Xn.string(),_nbAttachedFiles:Xn.number().optional(),_attachedFiles:Ar.array(),uiObjectLink:Xn.unknown()}),eo=li(ss.omit({idSpot:!0})).and(Xn.object({image:Cr.nullable().optional(),tags:Xn.string().optional(),faqColor:Xn.string().optional(),isWeb:Xn.boolean().optional(),type:Xn.literal("faq")})),to=eo.and(Xn.object({uri:Xn.string(),format:di.optional()})),no=Xn.object({title:Xn.string(),id:Xn.string()}),io=Xn.object({_web:Xn.union([Xn.literal("0"),Xn.literal("1"),Xn.literal("")]).optional(),appImageText:Xn.string().optional(),appImage:Xn.union([Xn.string(),Xn.object({image:Xn.object({id:Xn.string(),type:Xn.string()})})]).optional(),_displayComment:Xn.union([Xn.literal("0"),Xn.literal("1"),Xn.literal("")]).optional()}),ro=Xn.object({createCategory:Xn.boolean()}),ao=Xn.object({idCategory:Xn.number(),title:Xn.string()}),so=Xn.object({idCategory:Xn.number(),indexTheme:Xn.number(),deleteEntries:Xn.boolean().optional()}),oo=Xn.object({idCategory:Xn.number(),indexTheme:Xn.number(),title:Xn.string()}),lo=li(ss).and(Xn.object({tags:Xn.string().optional(),faqResponse:Xn.string().optional(),type:Xn.literal("faqItem")})),co=Xn.object({idEntry:Xn.number(),idCategory:Xn.number(),theme:Xn.number()}),uo=lo.and(Xn.object({uri:Xn.string()})),po=Xn.object({entryURI:Xn.string(),sourceURI:Xn.string().optional(),targetURI:Xn.string(),theme:Xn.number()}),mo=Xn.object({sourceUri:Xn.string(),targetUri:Xn.string(),themeIndex:Xn.number()}),ho=e=>Xn.object({isActive:Xn.boolean()}).and(e),go=Xn.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),fo=ho(Xn.object({drives:Xn.record(go,Xn.boolean())})),bo=ho(Xn.object({label:Xn.string()})),yo=ho(Xn.object({orderBy:Xn.string(),order:Xn.enum(["ASC","DESC"])})),vo=ho(Xn.object({sendAlert:Xn.boolean()})),ko=ho(Xn.object({})),wo=ho(Xn.object({create:Xn.boolean(),autorize:Xn.array(Xn.enum(["message","comment","board","article"]).optional())})),_o=ho(Xn.object({label:Xn.string(),hasLicense:Xn.boolean()})),So=Xn.object({MagicPadHook:_o}).partial(),jo=Xn.object({DriveHook:fo,calendarHook:bo,FileBankHook:yo,spotRssFeed:ko,WidgetHook:wo,AdminAdvancedHook:vo}).partial().and(So),xo=e=>jo.and(Xn.record(Xn.string(),Xn.any())).parse(e),Co=Xn.union([Xn.literal("summarize"),Xn.literal("develop"),Xn.literal("reformulate"),Xn.literal("tldr"),Xn.literal("en"),Xn.literal("es"),Xn.literal("formal"),Xn.literal("funny")]),To=Xn.object({text:Xn.string()}),Ao=Xn.object({kind:Xn.string(),page:Xn.number(),limit:Xn.number(),filters:ai.array().optional(),orders:ti.array().optional()}),Oo=e=>Xn.object({license:Xn.union([Xn.literal("1"),Xn.literal("0")]),user:e}),Lo=Xa.extend({attachment:Ar,description:Xn.string()}),Fo=es.extend({description:Xn.string(),attachment:Ar,_audience:Cs.array()}),Eo=Xn.object({format:di,page:Xn.number().optional(),limit:Xn.number().optional(),nolimit:Xn.boolean().optional()}),Ro=Xn.object({id:Xn.number(),idFolder:Xn.number().optional(),fileName:Xn.string(),nbViews:Xn.number(),nbDistinctViews:Xn.number(),nbDownloads:Xn.number()}),Po=Xn.object({id:Xn.number(),folderName:Xn.string(),nb:Xn.number(),nbDistinct:Xn.number()}),Io=Xn.object({nbFolders:Xn.number(),nbFiles:Xn.number()}),Mo=Xn.object({uriFile:Xn.string(),uriFolder:Xn.string()}),No=es.extend({place:Xn.string(),address:Xn.string(),dateStart:Xn.string(),dateEnd:Xn.string(),noGestion:Xn.boolean()}),Zo=ts.and(No).and(Xn.object({allDay:Xn.null(),useQrcode:Xn.null(),textColor:Xn.string(),bgColor:Xn.string(),socialEventUseCeiling:Xn.null(),socialEventCeiling:Xn.null(),hideFromCalendar:Xn.null(),urlGestion:Xn.string().optional().nullable()})),Do=No.extend({}),Uo=ts.and(Do).and(Xn.object({allDay:Xn.null(),agenda:Xn.string(),useQrcode:Xn.null(),textColor:Xn.string(),bgColor:Xn.string(),report:Xn.string(),reportFile:Xn.array(Xn.never()),urlGestion:Xn.string().nullable().optional()})),qo=Xn.object({uri:Xn.string(),title:Xn.string(),type:Xn.string(),mainType:Xn.string()}),Bo=es.extend({anonymousResponse:Xn.null(),multipleResponse:Xn.number(),publicResults:Xn.null(),pollProgression:Xn.object({colors:Xn.record(Xn.string()),maxRespondentsValue:Xn.number(),countRespondentsValue:Xn.number()}),pollResponseShowProgression:Xn.number(),dateEnd:Xn.string(),status:Xn.object({name:Xn.string(),value:Xn.number()})}),$o=ts.and(Bo).and(Xn.object({pollContent:Xn.null(),pollLinks:Xn.null(),pollForceClose:Xn.null(),pollResponseUserVisibility:Xn.null(),pollResponseAuthorVisibility:Xn.null(),pollResponseShowRespondent:Xn.null(),pollBanner:Xn.tuple([]),pollMessage:Xn.string()})),Wo=es.extend({quizzDescription:Xn.string().nullable(),quizzClosingDate:Xn.string().nullable(),dateStart:Xn.string().nullable(),dateEnd:Xn.string().nullable()}),zo=ts.and(Wo).and(Xn.object({quizzInvitation:Xn.null(),quizzFormSpec:Xn.string(),quizzRandom:Xn.null(),quizzHideResponses:Xn.null(),quizzStatus:Xn.null(),quizzPublicationDate:Xn.string().nullable()})),Vo=Xn.object({count:Xn.number(),id:Xn.string()}),Jo=Xn.union([Xn.literal("AND"),Xn.literal("OR")]),Go=Xn.object({facetType:Xn.string(),facetOptions:Xn.union([Xn.record(Xn.union([Xn.object({}).passthrough(),Xn.number(),Xn.string()])),Xn.array(Xn.never())]),facetMode:Jo.optional(),field:Xn.string(),title:Xn.string(),description:Xn.string().optional(),category:Xn.string().optional()}),Ko=Xn.object({id:Xn.string(),mainType:Xn.string(),type:Xn.string().optional(),title:Xn.string(),cssclass:Xn.string().optional(),active:Xn.boolean().optional(),count:Xn.number().optional(),typesExcluded:Xn.array(Xn.string()),facets:Go.array()}),Ho=Xn.object({count:Xn.number(),value:Xn.string(),title:Xn.string()}),Qo=Xn.object({name:Xn.string(),count:Xn.number(),values:Ho.array(),title:Xn.string()}),Yo=Xn.object({field:Xn.string(),value:Xn.union([Xn.string(),Xn.array(Xn.string())]),exclude:Xn.boolean().optional(),or:Xn.boolean().optional()}),Xo=Xn.object({field:Xn.string(),order:Xn.union([Xn.literal("desc"),Xn.literal("asc")])}),el=Xn.object({facetLimit:Xn.number(),skipEmptyFacets:Xn.boolean()}),tl=Xn.object({home:Xn.object({mode:Xn.union([Xn.literal("result"),Xn.literal("category")]),facets:Go.array()}),categories:Ko.array(),viewcard:Xn.record(Xn.array(Xn.object({name:Xn.string(),title:Xn.string()}))),facetMode:Xn.boolean()}),nl=Xn.object({name:Xn.string(),title:Xn.string(),icon:Xn.string(),_url:Xn.string()}),il=Xn.object({id:Xn.number().optional(),title:Xn.string(),picture:Xn.string(),uri:Xn.string(),type:Xn.string().optional(),icon:Xn.string().optional(),_cssColor:Xn.string().optional(),_url:Xn.string().optional(),idArticle:Xn.number().optional(),_user:Xn.object({title:Xn.string()}).optional(),_values:Xn.object({dateModified:Xn.string()}).optional()}),rl=Xn.object({keywords:Xn.string().optional(),category:Xn.string().optional(),facetCategories:Xn.boolean().optional(),filters:Yo.array().optional(),facets:Go.array().optional(),page:Xn.number().optional(),limit:Xn.number().optional(),sort:Xo.optional(),options:el.optional(),format:di.optional()}),al=e=>Xn.object({start:Xn.number(),count:Xn.number(),results:Xn.array(null!=e?e:yi),facets:Qo.array(),categories:Vo.array()}),sl=Xn.object({keywords:Xn.string()}),ol=Xn.union([nl,il]),ll=Xn.object({title:Xn.string(),id:Xn.string(),showAll:Xn.boolean().optional(),results:ol.array()}),cl=Xn.union([Xn.literal("link"),Xn.literal("invitation")]),ul=Xn.object({id:Xn.number(),title:Xn.string(),uri:Xn.string(),idUser:Xn.number(),_right:gi}),dl=Xn.object({audience:Xn.array(er),read:Xn.array(Xn.string()),write:Xn.array(Xn.string())}),pl=Xn.object({id:Xn.number(),type:Xn.string(),uri:Xn.string(),title:Xn.string(),generalAccessRule:cl,generalAccessHash:Xn.string().nullable(),idUser:Xn.number(),_audience:Xn.array(er),_right:gi}),ml=Xn.object({targetId:Xn.number(),targetType:Xn.string(),type:Xn.string()}),hl=Xn.object({targetId:Xn.number(),targetType:Xn.string(),type:Xn.string()}),gl=es.extend({supportStatus:Xn.union([Xn.number(),Xn.string()]).nullable(),supportType:Xn.union([Xn.number(),Xn.string()]).nullable(),supportOwner:Xn.array(Fi)}),fl=ts.and(gl).and(Xn.object({})),bl=es.extend({dates:Xn.array(Xn.string()),dateStart:Xn.string().nullable(),dateEnd:Xn.string()}),yl=ts.and(bl).and(Xn.object({surveyObjectLink:Xn.array(Xa)})),vl=Xn.object({cache_suffix:Xn.string(),toolbar:Xn.string(),language:Xn.string(),content_css:Xn.string(),quickbars_selection_toolbar:Xn.string()}),kl=vl.extend({plugins:Xn.array(Xn.string()),text_patterns:Xn.array(Xn.object({start:Xn.string(),end:Xn.string().optional(),format:Xn.string().optional(),cmd:Xn.string().optional()})),height:Xn.number(),menubar:Xn.boolean(),branding:Xn.boolean(),skin:Xn.string(),convert_urls:Xn.boolean(),invalid_elements:Xn.string(),extended_valid_elements:Xn.string(),custom_elements:Xn.string(),inline_boundaries_selector:Xn.string(),toolbar_mode:Xn.union([Xn.literal("floating"),Xn.literal("sliding"),Xn.literal("scrolling"),Xn.literal("wrap")]),promotion:Xn.boolean(),font_size_formats:Xn.string(),contextmenu:Xn.union([Xn.string(),Xn.literal(!1)]),paste_data_images:Xn.boolean(),browser_spellcheck:Xn.boolean(),quickbars_insert_toolbar:Xn.boolean()}),wl="accept",_l="deny",Sl=Xa.extend({articleWidgets:Ja().array(),articleWidgetDisplayMode:Vr.nullable().or(Xn.undefined())}),jl=Xn.object({uniqid:Xn.string(),title:Xn.string(),locked:Xn.boolean(),visible:Xn.boolean(),widgets:Ja().array(),position:Wr.optional()}),xl=Xn.enum(["edit","view","preview"]),Cl=Xn.object({width:Xn.number().or(Xn.undefined()).optional(),inplace:Xn.boolean(),isComponentVisible:Xn.boolean().optional(),mode:xl,onClick:Xn.function().returns(Xn.void()).optional(),onChange:Xn.function().args(Ka,Xn.boolean()).returns(Xn.void()),onStateChange:Xn.function().args(Ya).returns(Xn.void())}),Tl=Xn.object({text:Xn.string(),value:Xn.boolean().optional(),links:ei.array().optional(),uri:Xn.string().optional(),mimetype:Xn.string().optional(),id:Xn.number().optional(),user:Fi.optional()}),Al=Xn.object({arr:Tl.array().optional()}),Ol=Xn.object({name:Xn.literal("widget-check-list"),uniqid:Xn.string(),content:Al,title:Xn.string()}),Ll=Xn.object({label:Xn.string(),description:Xn.string(),name:Pr,img:Xn.string(),available:Xn.boolean(),panel:Xn.object({useWrapper:Xn.boolean(),useEditor:Xn.boolean(),useWidgets:Xn.boolean()})}),Fl=Xn.object({title:Xn.string().optional(),view:Xn.any().optional()}),El=Xn.object({token:Xn.string().or(Xn.undefined()).optional(),ids:Xn.record(Xn.string(),Ja()),layers:Xn.record(Xn.string(),jl),states:Xn.record(Xn.string(),Ya),modal:Fl.or(Xn.undefined()),editableMap:Xn.record(Xn.string(),Xn.object({index:Xn.number(),uniqid:Xn.string()})),currentEditableIndex:Xn.number(),currentEditableWidgetId:Xn.string().or(Xn.undefined()),widgetObject:Xn.record(Xn.string(),yi.partial())}),Rl=Xn.object({widgets:El}),Pl=Sl.extend({articleWidgetsCover:Xn.number().or(Xn.undefined()),_audience:Cs.array()}),Il=new Z(new Ne),Ml=new Pe(Il);window.JamespotUserApi=Ml;const Nl=Ml,Zl=Pe;module.exports=t})();
1
+ (()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>Vl,ACCESS_REQUEST_DENY:()=>zl,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>gr,DateFormatSchema:()=>ja,Format:()=>Ti,JApplicationApi:()=>o,JArticleApi:()=>Cc,JAssetReservation:()=>Ac,JAudienceApi:()=>Oc,JBaseApi:()=>i,JBbbApi:()=>Lc,JBookmarkApi:()=>Fc,JBusinessNetworkingApi:()=>Rc,JCommunityApi:()=>Ec,JDatasourceApi:()=>Pc,JDiapazoneApi:()=>Ic,JFaqApi:()=>Dc,JFileApi:()=>Nc,JFilebankApi:()=>Zc,JGlobalApi:()=>Uc,JGroupApi:()=>qc,JIAApi:()=>su,JLandApi:()=>Vc,JLandMapCreationSchema:()=>To,JMessengerApi:()=>zc,JObjectApi:()=>nu,JSearchApi:()=>Gc,JShareApi:()=>Xc,JSocialActionApi:()=>au,JTaxonomyApi:()=>Kc,JUserApi:()=>Hc,JWedocApi:()=>Qc,JWidgetApi:()=>ou,JamespotUserApi:()=>cu,JamespotUserApiInstance:()=>pu,Network:()=>ai,NumberFormatSchema:()=>xa,StudioApplicationStatus:()=>n,TVDisplayApi:()=>Yc,UserLevel:()=>wn,WidgetsName:()=>Br,WindowBrowser:()=>uu,_GroupModerateStatus:()=>Bn,accessRequestStatusValuesSchema:()=>Gl,actionVerbSchema:()=>Os,addCommentParamsSchema:()=>rs,addFaqEntrySchema:()=>ro,addRemoveActionParamsSchema:()=>yl,adminAppSchema:()=>Ar,adminAppTabSchema:()=>Tr,adminAppsSchema:()=>Or,adminLicenseStatsSchema:()=>yr,adminLicenseUserSchema:()=>jr,adminLicensesAssignedSchema:()=>kr,adminLicensesNotAssignedSchema:()=>wr,animationConfigurationTypeSchema:()=>Fr,animationStatsRowSchema:()=>Rr,animationStatsSchema:()=>Er,animationVariantSchema:()=>Lr,api:()=>gu,articleCreationSchema:()=>ts,articleDisplayModeSchema:()=>Xr,articleGetConfigSchema:()=>es,articleListConfigSchema:()=>Xa,aseiGroupsSchema:()=>ds,aseiInstitutionSchema:()=>us,aseiRightsSchema:()=>ps,aseiTicketSchema:()=>cs,aseiTicketStatusSchema:()=>ls,assetReservationConfigurationSchema:()=>ms,audienceAutocompleteSchema:()=>ks,audienceSchema:()=>cr,baseArticleSchema:()=>is,baseAutocompleteSchema:()=>bs,bookableAssetListSchema:()=>gs,bookableAssetViewSchema:()=>hs,bookmarkCustomSchema:()=>br,bookmarkLinkSchema:()=>hr,bookmarkTypesSchema:()=>fr,businessContactSchema:()=>Pn,categorySchema:()=>Xn,combineFormat:()=>di,combinedWidgetContentSchema:()=>Wa,combinedWidgetTypeSchema:()=>qa,communitySchema:()=>_s,createFaqCategorySchema:()=>Ks,createFaqEntrySchema:()=>no,createFaqThemeSchema:()=>eo,createGroupSchema:()=>Nn,cssBackgroundPositionSchema:()=>Gr,cssBackgroundSizeSchema:()=>Jr,cssTextAlignTypeSchema:()=>zr,deepEqual:()=>ci,default:()=>mu,deleteFaqThemeSchema:()=>to,driveAccountSchema:()=>qs,driveDocumentParamsSchema:()=>Ws,driveItemTypeSchema:()=>Bs,editFaqCategorySchema:()=>Hs,editFaqEntrySchema:()=>ao,editFaqThemeSchema:()=>io,ensureTVGetConfigureDynamicChannelResponse:()=>Dl,ensureTVGetConfigureSlideshowChannelResponse:()=>Ul,ensureWidgetApiType:()=>hc,ensureWidgetArticleAttachmentType:()=>fc,ensureWidgetArticleButtonType:()=>bc,ensureWidgetArticleGalleryType:()=>yc,ensureWidgetArticleImageType:()=>vc,ensureWidgetArticleSliderType:()=>wc,ensureWidgetArticleTextType:()=>kc,ensureWidgetArticleTitleType:()=>_c,ensureWidgetCheckListType:()=>Sc,ensureWidgetDatasourceTableType:()=>jc,ensureWidgetExcelDatasourceTableType:()=>xc,ensureWidgetType:()=>mc,ensureWidgetWrapperProps:()=>gc,extensions:()=>$t,extractTaxonomiesFromObject:()=>mi,extractTaxonomiesFromObjectAndMapProperty:()=>gi,extractTaxonomiesFromObjectAndMapUri:()=>hi,facetModeSchema:()=>Qo,faqAccessSchema:()=>Xs,faqHookPropertiesSchema:()=>Ys,faqItemListSchema:()=>Gs,faqItemViewSchema:()=>Js,faqListSchema:()=>$s,faqTaxonomySchema:()=>Qs,faqViewSchema:()=>Vs,fileCropConfigSchema:()=>Mr,filterSchema:()=>Si,filterValueSchema:()=>wi,filtersSchema:()=>xi,formatExtensionSchema:()=>Li,formatImgUrl:()=>Bt,formatListSchema:()=>Oi,getActionUsersParamsSchema:()=>bl,getArgs:()=>Dt,getCommentsParamsSchema:()=>ns,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>ei,getFileFamilyFromName:()=>Yt,getFormat:()=>Ut,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>Ro,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Kt,getSize:()=>Zt,getTimestamp:()=>Nt,getUnclassifiedFilesParamsSchema:()=>Mo,getUri:()=>It,getUrl:()=>qt,groupCustomWidgetSchema:()=>Gn,groupListConfigSchema:()=>rr,groupMemberLevelSchema:()=>Un,groupMemberSchema:()=>$n,groupModerateStatusSchema:()=>Wn,groupPropertiesOptionsSchema:()=>Jn,groupPropertiesSchema:()=>Hn,groupUserLevelSchema:()=>Zn,groupWidgetLittleSchema:()=>zn,groupWidgetSchema:()=>Yn,hookListTypeSchema:()=>vo,imageSizeSchema:()=>Ir,inferBookmarkListSchema:()=>mr,inferBookmarkRawListSchema:()=>pr,inferExtendedFaqCategory:()=>zs,inferJInternalDraftView:()=>Ya,inferJLinkListSchema:()=>dr,inferMaybeWithToken:()=>Ci,inferSearchQueryResultSchema:()=>cl,inferTVChannelCustomSchema:()=>jl,inferUserLicenseSchema:()=>Eo,jAdminLicenseUserListSchema:()=>Sr,jArticleExtendViewSchema:()=>Qa,jArticleListSchema:()=>Ka,jArticleListShapeTmp:()=>Ja,jArticleLittleSchema:()=>Ga,jArticleViewSchema:()=>Ha,jArticleWidgetLittle:()=>tc,jArticleWidgetViewSchema:()=>pc,jBusinessContactListSchema:()=>As,jBusinessContactLittleSchema:()=>Ts,jCommentListSchema:()=>Rs,jCommentLittleSchema:()=>Fs,jDiapazoneListSchema:()=>Es,jEnsure:()=>u,jFileLittleCropSchema:()=>Zr,jFileLittleSchema:()=>Nr,jFileRenditionSchema:()=>Ur,jFolderListSchema:()=>os,jFolderLittleSchema:()=>lr,jGroupListSchema:()=>tr,jGroupLittleSchema:()=>er,jGroupViewSchema:()=>ir,jHrefSchema:()=>yi,jIACapabilitiesSchema:()=>wo,jLandAdditionalPropsSchema:()=>Ao,jLandLogSchema:()=>_o,jLandMapFlavorSchema:()=>jo,jLandMapKindSchema:()=>xo,jLandMapListSchema:()=>Lo,jLandMapLittleSchema:()=>Oo,jLandMapSchema:()=>Co,jLandMapViewSchema:()=>Fo,jLandStatSchema:()=>So,jLinkLittleSchema:()=>ur,jMeetingListSchema:()=>Wo,jMeetingViewSchema:()=>$o,jObjectAutocompleteSchema:()=>ys,jObjectBaseSchema:()=>Ii,jObjectListSchema:()=>sr,jObjectLittleSchema:()=>Mi,jPollSurveyListSchema:()=>zo,jPollSurveyViewSchema:()=>Go,jQuizzListSchema:()=>Jo,jQuizzViewSchema:()=>Ko,jSocialEventListSchema:()=>qo,jSocialEventViewSchema:()=>Bo,jSpotAutocompleteSchema:()=>ws,jSupportListSchema:()=>vl,jSupportViewSchema:()=>wl,jSurveyDateListSchema:()=>kl,jSurveyDateViewSchema:()=>_l,jUserAutocompleteSchema:()=>vs,jUserListSchema:()=>_n,jUserLittleSchema:()=>kn,jUserValuesSchema:()=>On,jUserViewSchema:()=>jn,licenseSchema:()=>_r,mediaLibraryFilesStatsSchema:()=>No,mediaLibraryFolderSchema:()=>Po,mediaLibraryFolderStatsSchema:()=>Do,mediaLibraryListSchema:()=>Io,mediaLibraryStatsSchema:()=>Zo,mimetypeToExt:()=>Vt,mimetypes:()=>Wt,moveFaqEntrySchema:()=>so,moveFaqThemeSchema:()=>oo,moveMediaLibraryFileParamsSchema:()=>Uo,msBaseEntitySchema:()=>Is,msDocumentEntitySchema:()=>Zs,msGroupEntitySchema:()=>Ds,msSiteEntitySchema:()=>Ns,msTenantEntitySchema:()=>Ms,msTenantsSchema:()=>Ps,msUnifiedEntitySchema:()=>Us,network:()=>du,networkTypeSchema:()=>Vo,objectListPropsSchema:()=>Fi,objectTimestamp:()=>Ht,objectWithoutLicenseFilterSchema:()=>vr,openingTypeAnchorSchema:()=>ta,openingTypeLinkSchema:()=>ea,openingTypePopupSchema:()=>ia,openingTypeSchema:()=>Qr,orderSchema:()=>vi,ordersSchema:()=>ji,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>fi,publicWebinarData:()=>Cs,publicWebinarFullnameRequestSchema:()=>Ss,publicWebinarGetDateRequestSchema:()=>xs,publicWebinarUrlSchema:()=>js,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>ui,reservationListSchema:()=>fs,resetNotificationConfigurationSchema:()=>nr,resolveFileFamily:()=>ni,resolveFileMimetype:()=>ii,resolveFilePath:()=>Qt,resolveFileUrl:()=>ti,rightsSchema:()=>Ei,rssTypeSchema:()=>Kn,searchCategoryModelSchema:()=>Xo,searchCategoryValueSchema:()=>Ho,searchConfigSchema:()=>al,searchFacetModelSchema:()=>Yo,searchFacetValueModelSchema:()=>tl,searchFacetValuesSchema:()=>el,searchLastQuerySchema:()=>ul,searchQueryFilterModelSchema:()=>il,searchQueryOptionSchema:()=>rl,searchQuerySchema:()=>ll,searchQuerySortModelSchema:()=>nl,searchResultCatPropsSchema:()=>pl,searchResultPropsAppSchema:()=>sl,searchResultPropsObjectSchema:()=>ol,searchResultPropsSchema:()=>dl,shareAccessObjectSchema:()=>fl,shareAccessPropsSchema:()=>hl,shareGeneralAccessRulesSchema:()=>ml,shareOptionObjectSchema:()=>gl,socialActionSchema:()=>Ls,spotBannerImageSchema:()=>Dn,storeFinalizeSchema:()=>Cr,storeItemSchema:()=>xr,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>ko,tinyMCECommonOptionsSchema:()=>$l,tinyMCEDynamicOptionsSchema:()=>Wl,tvChannelCreatePayloadSchema:()=>El,tvChannelCreationSchema:()=>Rl,tvChannelCustomListDynamicSchema:()=>xl,tvChannelCustomListSchema:()=>Ll,tvChannelCustomListSlideshowSchema:()=>Cl,tvChannelDynamicArticleSchema:()=>Il,tvChannelDynamicCommentSchema:()=>Pl,tvChannelDynamicListSchema:()=>Al,tvChannelListSchema:()=>Fl,tvChannelLittleSchema:()=>Tl,tvChannelSlideshowFileSchema:()=>Ml,tvChannelSlideshowListSchema:()=>Ol,tvChannelTypeSchema:()=>Sl,tvGetChannelResponseSchema:()=>Bl,tvGetConfigureChannelResponseSchema:()=>ql,tvGetConfigureDynamicChannelResponse:()=>Nl,tvGetConfigureSlideshowChannelResponse:()=>Zl,updateCommentParamsSchema:()=>as,updateGroupSchema:()=>Qn,uploadConfigSchema:()=>Pr,userDefaultFieldsTypeSchema:()=>An,userDirectoryConfigurationSchema:()=>In,userDownloadSchema:()=>qr,userFieldSchema:()=>Fn,userFieldsConfigurationTypeSchema:()=>Ln,userFieldsSchema:()=>Rn,userLevelSpotSchema:()=>qn,userMapModelSchema:()=>Cn,userReadSchema:()=>ss,userValuesSchema:()=>En,validateIsFormatFileLittle:()=>Dr,validateIsFormatObjectList:()=>or,validateIsFormatObjectLittle:()=>Ni,validateIsFormatRights:()=>Pi,validateIsFormatUserDirectoryConfiguration:()=>Mn,validateIsFormatUserLevelSpot:()=>ar,validateIsFormatUserList:()=>Sn,validateIsFormatUserMapModel:()=>Tn,validateIsFormatUserView:()=>xn,valueLabelSchema:()=>Vn,variantSizeTypeSchema:()=>Kr,variantTypeSchema:()=>Hr,wedocEmptyTypeSchema:()=>ec,wedocFileAudienceTypeSchema:()=>Hl,wedocFileInfoSchema:()=>Jl,wedocFileTypeSchema:()=>Kl,wedocQueryResultsSchema:()=>Yl,wedocQueryTypeSchema:()=>Xl,wedocTemplateSchema:()=>Ql,widgetActiveValueSchema:()=>Qi,widgetApiContentSchema:()=>fa,widgetApiTypeSchema:()=>ba,widgetArticleAttachmentContentSchema:()=>ga,widgetArticleAttachmentTypeSchema:()=>ha,widgetArticleButtonContentSchema:()=>ra,widgetArticleButtonTypeSchema:()=>aa,widgetArticleCheckListTypeForFrontSchema:()=>oc,widgetArticleGalleryContentSchema:()=>sa,widgetArticleGalleryTypeSchema:()=>oa,widgetArticleImageContentSchema:()=>pa,widgetArticleImageTypeSchema:()=>ma,widgetArticleSliderContentSchema:()=>va,widgetArticleSliderTypeSchema:()=>wa,widgetArticleTextContentSchema:()=>ua,widgetArticleTextTypeSchema:()=>da,widgetArticleTitleContentSchema:()=>la,widgetArticleTitleTypeSchema:()=>ca,widgetAudienceSchema:()=>Yi,widgetBaseSchema:()=>Vr,widgetButtonPropsSchema:()=>na,widgetCheckListContentArrForFrontSchema:()=>ac,widgetCheckListContentArrSchema:()=>ka,widgetCheckListContentForFrontSchema:()=>sc,widgetCheckListContentSchema:()=>_a,widgetCheckListTypeSchema:()=>Sa,widgetCheckboxSchema:()=>mn,widgetColorSchema:()=>$i,widgetContentKeysSchema:()=>Va,widgetDatasourceTableContentSchema:()=>Na,widgetDatasourceTableTypeSchema:()=>Da,widgetDatePickerSchema:()=>Ki,widgetDatePickerValueSchema:()=>Hi,widgetDateSchema:()=>Vi,widgetDateValueSchema:()=>zi,widgetDatetimeSchema:()=>Gi,widgetDatetimeValueSchema:()=>Ji,widgetDefaultProps:()=>rc,widgetDefinitionPropsSchema:()=>lc,widgetDisplayModeSchema:()=>nc,widgetEmailSchema:()=>an,widgetEmailValueSchema:()=>sn,widgetEmbedSchema:()=>rn,widgetExcelDatasourceTableContentSchema:()=>Za,widgetExcelDatasourceTableTypeSchema:()=>Ua,widgetFileSchema:()=>tn,widgetKeysSchema:()=>Wr,widgetLayerSchema:()=>ic,widgetLinkSchema:()=>Xi,widgetModalPropsSchema:()=>cc,widgetMultiattributeSchema:()=>en,widgetNumberSchema:()=>Bi,widgetNumberValueSchema:()=>Wi,widgetOrientedlinksSchema:()=>fn,widgetPlaceSchema:()=>cn,widgetRadioSchema:()=>pn,widgetRefUserSchema:()=>un,widgetSchema:()=>yn,widgetSelectSchema:()=>nn,widgetSlideSchema:()=>ya,widgetStatePropsSchema:()=>za,widgetTableColumnDataSchema:()=>Ra,widgetTableColumnSchema:()=>Ia,widgetTableColumnTypesSchema:()=>Pa,widgetTableColumnWidgetDateSchema:()=>La,widgetTableColumnWidgetDefaulSchema:()=>Ca,widgetTableColumnWidgetSelectOptionSchema:()=>Aa,widgetTableColumnWidgetSelectSchema:()=>Oa,widgetTableColumnWidgetTextSchema:()=>Ta,widgetTableColumnWidgetsSchema:()=>Fa,widgetTableColumnsData:()=>Ea,widgetTableContentSchema:()=>Ma,widgetTaxonomySchema:()=>gn,widgetTelSchema:()=>hn,widgetTextSchema:()=>Di,widgetTextValueSchema:()=>Zi,widgetTextareaSchema:()=>Ui,widgetTextareaValueSchema:()=>qi,widgetTransientSchema:()=>dn,widgetTypeKeysSchema:()=>$a,widgetUriSchema:()=>bn,widgetUrlSchema:()=>on,widgetUrlValueSchema:()=>ln,widgetVectorSchema:()=>Yr,widgetWrapperPropsSchema:()=>Ba,widgetsRootStateSchema:()=>dc,widgetsStateSchema:()=>uc,widgetsValueSchema:()=>vn});class i{constructor(e){this.jApi=e,this.network=e.network}}var n;class r extends i{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenceUsersByKind(e,t,i){var n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},n),{format:t}),i)}}class a extends i{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends i{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(n||(n={}));class o extends i{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,i){if(i===n.saved||i===n.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:i});throw"Invalid status value"}delete(e,t){return i=this,n=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(s,o)}l((a=a.apply(i,n||[])).next())}));var i,n,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}var g,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const i of e)t[i]=i;return t},e.getValidEnumValues=t=>{const i=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of i)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(const i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(g||(g={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const f=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),b=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(e)?f.array:null===e?f.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?f.promise:"undefined"!=typeof Map&&e instanceof Map?f.map:"undefined"!=typeof Set&&e instanceof Set?f.set:"undefined"!=typeof Date&&e instanceof Date?f.date:f.object;default:return f.unknown}},y=g.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class v extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},i={_errors:[]},n=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){const i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(this),i}static assert(e){if(!(e instanceof v))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},i=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let i;switch(e.code){case y.invalid_type:i=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:i=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:i="Invalid input";break;case y.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:i=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:i="Invalid function arguments";break;case y.invalid_return_type:i="Invalid function return type";break;case y.invalid_date:i="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:i="Invalid input";break;case y.invalid_intersection_types:i="Intersection results could not be merged";break;case y.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:i="Number must be finite";break;default:i=t.defaultError,g.assertNever(e)}return{message:i}};let k=w;function _(){return k}const S=e=>{const{data:t,path:i,errorMaps:n,issueData:r}=e,a=[...i,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const i=_(),n=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===w?void 0:w].filter((e=>!!e))});e.common.issues.push(n)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const n of t){if("aborted"===n.status)return C;"dirty"===n.status&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const e of t){const t=await e.key,n=await e.value;i.push({key:t,value:n})}return x.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const n of t){const{key:t,value:r}=n;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!n.alwaysSet||(i[t.value]=r.value)}return{status:e.value,value:i}}}const C=Object.freeze({status:"aborted"}),T=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),O=e=>"aborted"===e.status,L=e=>"dirty"===e.status,F=e=>"valid"===e.status,R=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function P(e,t,i,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i}var I,M,N;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(I||(I={}));class D{constructor(e,t,i,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z=(e,t)=>{if(F(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new v(e.common.issues);return this._error=t,this._error}}};function U(e){if(!e)return{};const{errorMap:t,invalid_type_error:i,required_error:n,description:r}=e;if(t&&(i||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:n)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:i)&&void 0!==s?s:r.defaultError}},description:r}}class q{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return b(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(R(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const n={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:n.path,parent:n});return Z(n,r)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},n=this._parse({data:e,path:i.path,parent:i}),r=await(R(n)?n:Promise.resolve(n));return Z(i,r)}refine(e,t){const i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const r=e(t),a=()=>n.addIssue({code:y.custom,...i(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((i,n)=>!!e(i)||(n.addIssue("function"==typeof t?t(i,n):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Me.create(this,this._def)}nullable(){return Ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this,this._def)}promise(){return Pe.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return Se.create(this,e,this._def)}transform(e){return new Ie({...U(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new De({...U(this._def),innerType:this,defaultValue:t,typeName:Ge.ZodDefault})}brand(){return new Be({typeName:Ge.ZodBranded,type:this,...U(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ze({...U(this._def),innerType:this,catchValue:t,typeName:Ge.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return We.create(this,e)}readonly(){return $e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const B=/^c[^\s-]{8,}$/i,W=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z=/^[a-z0-9_-]{21}$/i,G=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let K;const H=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Q=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Y=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ee=new RegExp(`^${X}$`);function te(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ie(e){let t=`${X}T${te(e)}`;const i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,new RegExp(`^${t}$`)}class ne extends q{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.string,received:t.parsedType}),C}const t=new x;let i;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,r=e.data.length<a.value;(n||r)&&(i=this._getOrReturnCtx(e,i),n?j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)J.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"email",code:y.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)K||(K=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),K.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)B.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)W.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){i=this._getOrReturnCtx(e,i),j(i,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"regex",code:y.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ie(a).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(n=e.data,("v4"!==(r=a.version)&&r||!H.test(n))&&("v6"!==r&&r||!Q.test(n))&&(i=this._getOrReturnCtx(e,i),j(i,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var n,r;return{status:t.value,value:e.data}}_regex(e,t,i){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(i)})}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}datetime(e){var t,i;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(i=null==e?void 0:e.local)&&void 0!==i&&i,...I.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new ne({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function re(e,t){const i=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=i>n?i:n;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ne.create=e=>{var t;return new ne({checks:[],typeName:Ge.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class ae extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.number,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"int"===n.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==re(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&g.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ae.create=e=>new ae({checks:[],typeName:Ge.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class se extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.bigint,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}se.create=e=>{var t;return new se({checks:[],typeName:Ge.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class oe extends q{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==f.boolean){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.boolean,received:t.parsedType}),C}return A(e.data)}}oe.create=e=>new oe({typeName:Ge.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class le extends q{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.date,received:t.parsedType}),C}if(isNaN(e.data.getTime()))return j(this._getOrReturnCtx(e),{code:y.invalid_date}),C;const t=new x;let i;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):g.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}le.create=e=>new le({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...U(e)});class ce extends q{_parse(e){if(this._getType(e)!==f.symbol){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.symbol,received:t.parsedType}),C}return A(e.data)}}ce.create=e=>new ce({typeName:Ge.ZodSymbol,...U(e)});class ue extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.undefined,received:t.parsedType}),C}return A(e.data)}}ue.create=e=>new ue({typeName:Ge.ZodUndefined,...U(e)});class de extends q{_parse(e){if(this._getType(e)!==f.null){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.null,received:t.parsedType}),C}return A(e.data)}}de.create=e=>new de({typeName:Ge.ZodNull,...U(e)});class pe extends q{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}pe.create=e=>new pe({typeName:Ge.ZodAny,...U(e)});class me extends q{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}me.create=e=>new me({typeName:Ge.ZodUnknown,...U(e)});class ge extends q{_parse(e){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.never,received:t.parsedType}),C}}ge.create=e=>new ge({typeName:Ge.ZodNever,...U(e)});class he extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.void,received:t.parsedType}),C}return A(e.data)}}he.create=e=>new he({typeName:Ge.ZodVoid,...U(e)});class fe extends q{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(j(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(j(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map(((e,i)=>n.type._parseAsync(new D(t,e,t.path,i))))).then((e=>x.mergeArray(i,e)));const r=[...t.data].map(((e,i)=>n.type._parseSync(new D(t,e,t.path,i))));return x.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function be(e){if(e instanceof ye){const t={};for(const i in e.shape){const n=e.shape[i];t[i]=Me.create(be(n))}return new ye({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:be(e.element)}):e instanceof Me?Me.create(be(e.unwrap())):e instanceof Ne?Ne.create(be(e.unwrap())):e instanceof je?je.create(e.items.map((e=>be(e)))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...U(t)});class ye extends q{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C}const{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in i.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=n[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new D(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof ge){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(j(i,{code:y.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const n=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new D(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const i=await t.key,n=await t.value;e.push({key:i,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var n,r,a,s;const o=null!==(a=null===(r=(n=this._def).errorMap)||void 0===r?void 0:r.call(n,t,i).message)&&void 0!==a?a:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=I.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ge.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};return g.objectKeys(e).forEach((i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((i=>{e[i]||(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((i=>{const n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof Me;)e=e._def.innerType;t[i]=e}})),new ye({...this._def,shape:()=>t})}keyof(){return Fe(g.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)});class ve extends q{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map((async e=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;const i=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:i}),C}));{let e;const n=[];for(const r of i){const i={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=n.map((e=>new v(e)));return j(t,{code:y.invalid_union,unionErrors:r}),C}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ge.ZodUnion,...U(t)});const we=e=>e instanceof Oe?we(e.schema):e instanceof Ie?we(e.innerType()):e instanceof Le?[e.value]:e instanceof Re?e.options:e instanceof Ee?g.objectValues(e.enum):e instanceof De?we(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Me?[void 0,...we(e.unwrap())]:e instanceof Ne?[null,...we(e.unwrap())]:e instanceof Be||e instanceof $e?we(e.unwrap()):e instanceof Ze?we(e._def.innerType):[];class ke extends q{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C;const i=this.discriminator,n=t.data[i],r=this.optionsMap.get(n);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const n=new Map;for(const i of t){const t=we(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...U(i)})}}function _e(e,t){const i=b(e),n=b(t);if(e===t)return{valid:!0,data:e};if(i===f.object&&n===f.object){const i=g.objectKeys(t),n=g.objectKeys(e).filter((e=>-1!==i.indexOf(e))),r={...e,...t};for(const i of n){const n=_e(e[i],t[i]);if(!n.valid)return{valid:!1};r[i]=n.data}return{valid:!0,data:r}}if(i===f.array&&n===f.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let n=0;n<e.length;n++){const r=_e(e[n],t[n]);if(!r.valid)return{valid:!1};i.push(r.data)}return{valid:!0,data:i}}return i===f.date&&n===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends q{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if(O(e)||O(n))return C;const r=_e(e.value,n.value);return r.valid?((L(e)||L(n))&&t.dirty(),{status:t.value,value:r.data}):(j(i,{code:y.invalid_intersection_types}),C)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Se.create=(e,t,i)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...U(i)});class je extends q{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.array)return j(i,{code:y.invalid_type,expected:f.array,received:i.parsedType}),C;if(i.data.length<this._def.items.length)return j(i,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&i.data.length>this._def.items.length&&(j(i,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...i.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new D(i,e,i.path,t)):null})).filter((e=>!!e));return i.common.async?Promise.all(n).then((e=>x.mergeArray(t,e))):x.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new je({...this._def,rest:e})}}je.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new je({items:e,typeName:Ge.ZodTuple,rest:null,...U(t)})};class xe extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.object)return j(i,{code:y.invalid_type,expected:f.object,received:i.parsedType}),C;const n=[],r=this._def.keyType,a=this._def.valueType;for(const e in i.data)n.push({key:r._parse(new D(i,e,i.path,e)),value:a._parse(new D(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?x.mergeObjectAsync(t,n):x.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new xe(t instanceof q?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...U(i)}:{keyType:ne.create(),valueType:e,typeName:Ge.ZodRecord,...U(t)})}}class Ce extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.map)return j(i,{code:y.invalid_type,expected:f.map,received:i.parsedType}),C;const n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map((([e,t],a)=>({key:n._parse(new D(i,e,i.path,[a,"key"])),value:r._parse(new D(i,t,i.path,[a,"value"]))})));if(i.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const i of a){const n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const i of a){const n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,i)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...U(i)});class Te extends q{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.set)return j(i,{code:y.invalid_type,expected:f.set,received:i.parsedType}),C;const n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(j(i,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(j(i,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const i=new Set;for(const n of e){if("aborted"===n.status)return C;"dirty"===n.status&&t.dirty(),i.add(n.value)}return{status:t.value,value:i}}const s=[...i.data.values()].map(((e,t)=>r._parse(new D(i,e,i.path,t))));return i.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Te({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new Te({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Te.create=(e,t)=>new Te({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...U(t)});class Ae extends q{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return j(t,{code:y.invalid_type,expected:f.function,received:t.parsedType}),C;function i(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:i}})}function n(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:i}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Pe){const e=this;return A((async function(...t){const s=new v([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(i(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(n(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([i(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([n(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:je.create(e).rest(me.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...U(i)})}}class Oe extends q{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:Ge.ZodLazy,...U(t)});class Le extends q{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return j(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Fe(e,t){return new Re({values:e,typeName:Ge.ZodEnum,...U(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...U(t)});class Re extends q{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{expected:g.joinValues(i),received:t.parsedType,code:y.invalid_type}),C}if(E(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!E(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:i}),C}return A(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Re.create(e,{...this._def,...t})}exclude(e,t=this._def){return Re.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Re.create=Fe;class Ee extends q{constructor(){super(...arguments),N.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==f.string&&i.parsedType!==f.number){const e=g.objectValues(t);return j(i,{expected:g.joinValues(e),received:i.parsedType,code:y.invalid_type}),C}if(E(this,N,"f")||P(this,N,new Set(g.getValidEnumValues(this._def.values)),"f"),!E(this,N,"f").has(e.data)){const e=g.objectValues(t);return j(i,{received:i.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}N=new WeakMap,Ee.create=(e,t)=>new Ee({values:e,typeName:Ge.ZodNativeEnum,...U(t)});class Pe extends q{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&!1===t.common.async)return j(t,{code:y.invalid_type,expected:f.promise,received:t.parsedType}),C;const i=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(i.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:Ge.ZodPromise,...U(t)});class Ie extends q{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{j(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){const e=n.transform(i.data,r);if(i.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}));{if("aborted"===t.value)return C;const n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,r);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===i.common.async){const n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((i=>"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value).then((()=>({status:t.value,value:i.value}))))))}if("transform"===n.type){if(!1===i.common.async){const e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!F(e))return e;const a=n.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((e=>F(e)?Promise.resolve(n.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(n)}}Ie.create=(e,t,i)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...U(i)}),Ie.createWithPreprocess=(e,t,i)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...U(i)});class Me extends q{_parse(e){return this._getType(e)===f.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:Ge.ZodOptional,...U(t)});class Ne extends q{_parse(e){return this._getType(e)===f.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ge.ZodNullable,...U(t)});class De extends q{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===f.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ge.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...U(t)});class Ze extends q{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return R(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Ge.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...U(t)});class Ue extends q{_parse(e){if(this._getType(e)!==f.nan){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}Ue.create=e=>new Ue({typeName:Ge.ZodNaN,...U(e)});const qe=Symbol("zod_brand");class Be extends q{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class We extends q{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{const e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new We({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends q{_parse(e){const t=this._def.innerType._parse(e),i=e=>(F(e)&&(e.value=Object.freeze(e.value)),e);return R(t)?t.then((e=>i(e))):i(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},i){return e?pe.create().superRefine(((n,r)=>{var a,s;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:i)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):pe.create()}$e.create=(e,t)=>new $e({innerType:e,typeName:Ge.ZodReadonly,...U(t)});const ze={object:ye.lazycreate};var Ge;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ge||(Ge={}));const Je=ne.create,Ke=ae.create,He=Ue.create,Qe=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,it=de.create,nt=pe.create,rt=me.create,at=ge.create,st=he.create,ot=fe.create,lt=ye.create,ct=ye.strictCreate,ut=ve.create,dt=ke.create,pt=Se.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Re.create,kt=Ee.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=Ne.create,Ct=Ie.createWithPreprocess,Tt=We.create,At={string:e=>ne.create({...e,coerce:!0}),number:e=>ae.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>se.create({...e,coerce:!0}),date:e=>le.create({...e,coerce:!0})},Ot=C;var Lt=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){k=e},getErrorMap:_,makeIssue:S,EMPTY_PATH:[],addIssueToContext:j,ParseStatus:x,INVALID:C,DIRTY:T,OK:A,isAborted:O,isDirty:L,isValid:F,isAsync:R,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:q,datetimeRegex:ie,ZodString:ne,ZodNumber:ae,ZodBigInt:se,ZodBoolean:oe,ZodDate:le,ZodSymbol:ce,ZodUndefined:ue,ZodNull:de,ZodAny:pe,ZodUnknown:me,ZodNever:ge,ZodVoid:he,ZodArray:fe,ZodObject:ye,ZodUnion:ve,ZodDiscriminatedUnion:ke,ZodIntersection:Se,ZodTuple:je,ZodRecord:xe,ZodMap:Ce,ZodSet:Te,ZodFunction:Ae,ZodLazy:Oe,ZodLiteral:Le,ZodEnum:Re,ZodNativeEnum:Ee,ZodPromise:Pe,ZodEffects:Ie,ZodTransformer:Ie,ZodOptional:Me,ZodNullable:Ne,ZodDefault:De,ZodCatch:Ze,ZodNaN:Ue,BRAND:qe,ZodBranded:Be,ZodPipeline:We,ZodReadonly:$e,custom:Ve,Schema:q,ZodSchema:q,late:ze,get ZodFirstPartyTypeKind(){return Ge},coerce:At,any:nt,array:ot,bigint:Qe,boolean:Ye,date:Xe,discriminatedUnion:dt,effect:St,enum:wt,function:bt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),intersection:pt,lazy:yt,literal:vt,map:ht,nan:He,nativeEnum:kt,never:at,null:it,nullable:xt,number:Ke,object:lt,oboolean:()=>Ye().optional(),onumber:()=>Ke().optional(),optional:jt,ostring:()=>Je().optional(),pipeline:Tt,preprocess:Ct,promise:_t,record:gt,set:ft,strictObject:ct,string:Je,symbol:et,transformer:St,tuple:mt,undefined:tt,union:ut,unknown:rt,void:st,NEVER:Ot,ZodIssueCode:y,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});const Ft=Lt.object({type:Lt.string(),recordId:Lt.union([Lt.string(),Lt.number()])}),Rt=e=>Ft.safeParse(e).success,Et=Lt.object({uri:Lt.string()}),Pt=e=>Et.safeParse(e).success;function It(e){if(Pt(e))return e.uri;if(Rt(e))return`${e.type}/${e.recordId}`;throw new Error("Invalid uri or typeId")}function Mt(e){return p(d(e.from,"/"),"/")||""}function Nt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Dt(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function Zt(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function Ut(e){return e.format||"png"}function qt(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function Bt(e,t=2){if("url"in e&&e.url){const t=qt(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}return`/${Mt(e)}${Zt(e,t)}/${It(e)}.${Ut(e)}${Dt(e)}`}Ft.partial().or(Et.partial());const Wt=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],$t=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],Vt={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},zt=e=>Object.keys(Vt).find((t=>Vt[t]===e)),Gt=e=>{var t;return null!==(t=Vt[e])&&void 0!==t?t:void 0};function Jt(e){const t=String(e).split(".").pop();return $t.find((e=>e===t))}const Kt=e=>{var t;const i=Jt(e);return null!==(t=zt(i))&&void 0!==t?t:"application/octet-stream"},Ht=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Qt=(e,t="fitx80")=>{const i=ni(e),n=Ht(e.dateModified);switch(i){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(n?`&_=${n}`:"");case"audio":return`/media/${e.id}.mp3`+(n?`?_=${n}`:"");case"gif":return Bt({timestamp:n,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Bt({timestamp:n,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?ei(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function ei(e){return e&&e.startsWith("folder/")?"folder":null==e||Xt(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const ti=(e,t,i="rr")=>"ng"===i?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,ii=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Kt(e.title):e.mimetype,ni=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):ei(e.mimetype);var ri=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class ai{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return ri(this,void 0,void 0,(function*(){const i=yield this.window.getBackendUrl();let n;try{n=new URL(`/${this.action}/${e}/${t}`,i).href}catch(r){n=`${i}/${this.action}/${e}/${t}`}return n}))}getHostname(){return ri(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:i,f:n}=e,r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["o","f"]);return ri(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(i,n);return this.window.fetch(e,Object.assign(Object.assign({},ai._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return ri(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const i=e.get("token");return i&&"string"==typeof i?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:i}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const si=Array.isArray,oi=Object.keys,li=Object.prototype.hasOwnProperty;function ci(e,t,i){const n=null==i?void 0:i.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=si(e),a=si(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!ci(e[s],t[s],i))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=oi(e).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==oi(t).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!li.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||ci(e[l],t[l],null==n?void 0:n.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function ui(e,t){if(Array.isArray(e))return e.map((e=>ui(e,t)));if("object"==typeof e&&null!==e){let i={};return Object.keys(e).forEach((n=>{i=Object.assign(Object.assign({},i),{[n]:n&&t.includes(n)?typeof e[n]:ui(e[n],t)})})),i}return e}const di=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e;function pi(e){return e.startsWith("tag_")||"tags"===e}function mi(e){return Object.fromEntries(Object.entries(e).filter((([e])=>pi(e))))}function gi(e,t,i){return Object.fromEntries(Object.entries(e).filter((([e])=>pi(e))).map((([e,n])=>{const r=Array.isArray(n)?n.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):n;return[e,i&&Array.isArray(r)?i(r):r]})))}function hi(e){return gi(e,"uri")}const fi=e=>{var t;let i={};"_errors"in e&&(i._errors=e._errors),"_options"in e&&(i._options=e._options),"title"in e&&(i.title=e.title),"description"in e&&(i.description=e.description),"activity"in e&&(i.activity=e.activity),"image"in e&&(i.image=e.image),"uri"in e&&(i.uri=e.uri),"type"in e&&(i.type=e.type),"edito"in e&&(i.edito=e.edito),"category"in e&&(i.category=e.category.toString()),"commentLevel"in e&&(i.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(i.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(i.displayType=e.displayType),"language"in e&&(i.language=e.language),"edit_access"in e&&(i.edit_access=e.edit_access),"lock_mail"in e&&(i.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(i.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(i.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(i.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(i.idCommunity=e.idCommunity),"lastRssExecution"in e&&(i.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(i.mail_comment=e.mail_comment),"mail_frequency"in e&&(i.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(i.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(i.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(i.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(i.nounsubscribe=e.nounsubscribe),"privacy"in e&&(i.privacy=e.privacy),"publishFolder"in e&&(i.publishFolder=e.publishFolder),"rss_access"in e&&(i.rss_access=e.rss_access),"rss_feed"in e&&(i.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,i=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["_user"]);return Object.assign(Object.assign({},i),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(i.rss_key=e.rss_key),"spot_right_user"in e&&(i.spot_right_user=e.spot_right_user),"spotBanner"in e&&(i.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(i.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(i.user_level_signup=e.user_level_signup),"useTeaser"in e&&(i.useTeaser=e.useTeaser),"widgets"in e&&(i.widgets=e.widgets);const n=mi(e);if(i=Object.assign(Object.assign({},i),n),bi(e,i))return i;throw new Error},bi=(e,t)=>{const i=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],n=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!i.includes(e))),o=a.filter((e=>!r.includes(e)&&!n.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0},yi=Lt.object({href:Lt.string(),target:Lt.string()}),vi=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),wi=Lt.union([Lt.boolean(),Lt.string(),Lt.number(),Lt.array(Lt.string()),Lt.object({srcId:Lt.union([Lt.number(),Lt.string()]),srcType:Lt.string()}),Lt.object({targetId:Lt.union([Lt.number(),Lt.string()]),targetType:Lt.string()}),Lt.object({start:Lt.string(),end:Lt.string()})]),ki=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),_i=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("+"),Lt.literal("-"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),Si=Lt.object({name:Lt.string(),value:wi,operator:ki.optional(),method:_i.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),ji=vi.array(),xi=Lt.array(Si),Ci=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var Ti;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Ti||(Ti={}));const Ai=Lt.nativeEnum(Ti).transform((e=>`${e}`)),Oi=Lt.union([Ai,Lt.undefined()]),Li=Lt.array(Lt.union([Lt.literal("bookmark"),Lt.literal("contact"),Lt.literal("licenses"),Lt.literal("quizFieldDefinitions"),Lt.literal("quizResponseRecord"),Lt.literal("search"),Lt.literal("socialEventRecord"),Lt.literal("surveyDateRecord")])),Fi=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:xi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),format:Oi.optional()}),Ri=e=>Lt.object(e),Ei=Ri({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Pi=e=>Ei.safeParse(e).success,Ii=Ri({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),Mi=Ii.extend({title:Lt.string(),_url:Lt.string()}),Ni=e=>Mi.safeParse(e).success,Di=Lt.object({type:Lt.literal("text")}),Zi=Lt.string(),Ui=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),qi=Lt.string().nullable(),Bi=Lt.object({type:Lt.literal("number")}),Wi=Lt.number(),$i=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),Vi=Lt.object({type:Lt.literal("date"),format:Lt.string()}),zi=Lt.string().nullable(),Gi=Lt.object({type:Lt.literal("datetime")}),Ji=Lt.string().nullable(),Ki=Lt.object({type:Lt.literal("datePicker")}),Hi=Lt.string().nullable(),Qi=Lt.number(),Yi=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Xi=Lt.object({type:Lt.literal("link")}),en=Lt.object({type:Lt.literal("multiattribute")}),tn=Lt.object({type:Lt.literal("file")}),nn=Lt.object({type:Lt.literal("select"),options:Lt.record(Lt.string()),params:Lt.object({data:Lt.string().optional(),defaultValue:Lt.string().optional(),explain:Lt.literal(1).optional()}).optional()}),rn=Lt.object({type:Lt.literal("embed")}),an=Lt.object({type:Lt.literal("email")}),sn=Lt.string(),on=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),ln=Lt.string(),cn=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),un=Lt.object({type:Lt.literal("refUser")}),dn=Lt.object({type:Lt.literal("transient")}),pn=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),mn=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),gn=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),hn=Lt.object({type:Lt.literal("tel")}),fn=Lt.object({type:Lt.literal("orientedlinks"),params:Lt.object({"jcomplete-multiple":Lt.union([Lt.literal("0"),Lt.literal("1")]),showAdd:Lt.union([Lt.literal("0"),Lt.literal("1")]),supportedTypes:Lt.array(Lt.string())})}),bn=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),yn=Lt.union([Di,Ui,Bi,Vi,Gi,Ki,nn,rn,an,on,un,pn,mn,fn,gn,bn,dn,en,hn,cn,$i,Xi,tn,Yi]),vn=Lt.union([Qi,Hi,Ji,zi,sn,Wi,qi,Zi,ln]),wn={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},kn=Ii.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(wn),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(vn),_n=kn.extend({active:Lt.number()}),Sn=e=>_n.safeParse(e).success,jn=_n,xn=e=>jn.safeParse(e).success,Cn=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Tn=e=>Cn.safeParse(e).success,An=Lt.object({title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),mail:Lt.union([Lt.string(),Lt.undefined()]).optional(),description:Lt.string().optional(),dateOfBirth:Lt.string().optional(),phoneNumber:Lt.string().optional(),language:Lt.string().optional(),timeZone:Lt.string().optional(),mobileNumber:Lt.string().optional(),company:Lt.string().optional(),country:Lt.string().optional(),department:Lt.string().optional(),function:Lt.string().optional(),webSite:Lt.string().optional(),image:Lt.union([Lt.string(),Lt.undefined()]).optional(),userBanner:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.string().optional(),field2:Lt.string().optional(),field3:Lt.string().optional(),field4:Lt.string().optional(),field5:Lt.string().optional()}),On=An.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:kn.array().optional(),businessNetworkingUserToCompanySrc:kn.array().optional()}),Ln=Lt.object({user_field_edit_profil:Lt.record(An.keyof(),Lt.number()),user_field_editable:Lt.record(An.keyof(),Lt.number()),user_field_my_page:Lt.record(An.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Fn=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Rn=Lt.enum(["popover"]),En=Lt.object({values:On,mobileEditableFields:On.keyof().array()}),Pn=Lt.object({mail:Lt.union([Lt.string(),Lt.undefined()]),title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),phoneNumber:Lt.union([Lt.string(),Lt.undefined()]).optional(),company:Lt.union([Lt.string(),Lt.undefined()]).optional(),function:Lt.union([Lt.string(),Lt.undefined()]).optional(),uri:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.union([Lt.string(),Lt.undefined()]).optional(),field2:Lt.union([Lt.string(),Lt.undefined()]).optional(),field3:Lt.union([Lt.string(),Lt.undefined()]).optional(),field4:Lt.union([Lt.string(),Lt.undefined()]).optional(),field5:Lt.union([Lt.string(),Lt.undefined()]).optional()}),In=Lt.object({userDirectoryShow:Lt.union([Lt.literal(""),Lt.literal("1")]),contactDirectoryShow:Lt.union([Lt.literal("0"),Lt.literal("1")]),businessContactShow:Lt.boolean(),menu:Lt.union([Lt.literal("0"),Lt.literal("1")]),cardFields:Lt.string().array(),tableFields:Lt.string().array(),viewFields:Lt.string().array(),userGeoloc:Lt.boolean().optional(),sort:Lt.string(),cnt:Lt.number().optional(),filters:Lt.object({name:Lt.string(),type:Lt.string()}).array()}),Mn=e=>In.safeParse(e).success,Nn=Lt.object({type:Lt.string(),title:Lt.string(),description:Lt.string(),privacy:Lt.union([Lt.string(),Lt.number()]),edito:Lt.string().nullable(),language:Lt.string(),category:Lt.string(),idCommunity:Lt.string().optional()}),Dn=Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}),Zn=Lt.union([Lt.literal(0),Lt.literal(1),Lt.literal(2),Lt.literal(3)]),Un=Lt.object({level:Zn,user:kn}),qn=Lt.object({RF_Constant_levelName:Lt.string(),RF_delete:Lt.boolean(),RF_editing:Lt.boolean(),RF_level:Lt.number(),RF_levelName:Lt.string(),RF_levelName_Trad:Lt.string(),RF_parameters:Lt.boolean(),RF_setAdmin:Lt.boolean(),RF_spotit:Lt.boolean(),RF_spotit_own:Lt.boolean()});var Bn;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(Bn||(Bn={}));const Wn=Lt.nativeEnum(Bn),$n=Lt.object({userLevelSpot:qn,spotMinLevelToInvit:Lt.number(),userRights:Ei,accessRequestStatus:Wn.optional()}),Vn=Lt.object({value:Lt.union([Lt.string(),Lt.number()]),label:Lt.string()}),zn=Lt.object({id:Lt.string(),title:Lt.string()}),Gn=Lt.object({idSpot:Lt.string(),idOrder:Lt.string(),idWidget:Lt.string(),type:Lt.string(),title:Lt.string(),url:Lt.string(),visible:Lt.string()}),Jn=Lt.object({edit_access:Lt.array(Vn.and(Lt.object({description:Lt.string()}))),commentLevel:Lt.array(Vn.and(Lt.object({selected:Lt.boolean().optional()}))),displayType:Lt.array(Vn),user_level_signup:Lt.array(Vn.and(Lt.object({selected:Lt.boolean().optional()}))),spot_right_user:Lt.array(Vn.and(Lt.object({selected:Lt.boolean().optional()}))),useTeaser:Lt.array(Vn),spotDefaultPublishType:Lt.array(Lt.string()),mail_frequency:Lt.array(Vn),widgets:Lt.array(zn),custom_widgets:Lt.record(Gn).or(Lt.array(Lt.never())),isArchive:Lt.number(),fileSyncVersioningType:Lt.array(Vn)}),Kn=Lt.object({url:Lt.string(),idUser:Lt.number(),send:Lt.boolean().optional(),_user:kn.optional(),date:Lt.string().optional(),error:Lt.string().optional()}),Hn=Lt.object({edit_access:Lt.union([Lt.literal(""),Lt.literal("author")]),commentLevel:Lt.union([Lt.literal("-1"),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),user_level_signup:Lt.union([Lt.literal(""),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),nounsubscribe:Lt.union([Lt.literal("0"),Lt.literal("1")]),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable(),displayType:Lt.string(),spot_right_user:Lt.string(),rss_feed:Lt.array(Kn).nullable(),spotDefaultPublishType:Lt.string(),mail_frequency:Lt.string(),mail_comment:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_spotit:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_subscriber:Lt.union([Lt.literal("1"),Lt.literal("")]),lock_mail:Lt.union([Lt.literal("1"),Lt.literal("")]),activity:Lt.union([Lt.literal("1"),Lt.literal("0")]),publishFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),notifyFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),widgets:Lt.array(Lt.string()),rss_access:Lt.union([Lt.literal("1"),Lt.literal("0")]),rss_key:Lt.string(),fileSyncEnabled:Lt.union([Lt.literal("1"),Lt.literal("0")]),fileBankQuota:Lt.string(),fileSyncVersioningType:Lt.union([Lt.literal("overwrite"),Lt.literal("author-change")]),_options:Jn,_errors:Lt.tuple([]),lastRssExecution:Lt.record(Lt.string()).optional()}),Qn=Nn.and(Hn.omit({rss_feed:!0}).partial()).and(Lt.object({uri:Lt.string(),image:Lt.string().nullable().optional(),spotBanner:Lt.record(Dn).or(Lt.array(Lt.never())).optional(),token:Lt.string().optional(),uriCommunity:Lt.string().optional(),custom_widgets:Lt.record(Gn).optional(),rss_feed:Lt.string()})),Yn=Lt.object({idWidget:Lt.string(),title:Lt.string(),url:Lt.string(),type:Lt.string(),icon:Lt.string(),description:Lt.string()}),Xn=Lt.object({id:Lt.string(),idorder:Lt.number(),label:Lt.string()}),er=Mi.extend({dateCreation:Lt.string(),dateModified:Lt.string(),category:Lt.number(),privacy:Lt.number()}),tr=er.extend({description:Lt.string(),edito:Lt.string().nullable(),language:Lt.string()}),ir=tr.extend({image:Lt.string().nullable().optional(),spotBanner:Lt.record(Dn).or(Lt.array(Lt.never())).optional(),idCommunity:Lt.string().optional(),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable().optional()}),nr=Lt.object({idSpot:Lt.union([Lt.string(),Lt.number()]),mailFrequency:Lt.union([Lt.string(),Lt.number()]),mailSpotit:Lt.boolean(),mailComment:Lt.boolean(),mailSubscriber:Lt.boolean()}),rr=Lt.object({type:Lt.string().optional(),format:Oi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.or(Lt.undefined()).optional()}),ar=e=>qn.safeParse(e).success,sr=Mi.extend({description:Lt.string().optional().nullable(),_user:kn,_right:Ei}),or=e=>sr.safeParse(e).success,lr=Mi.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),cr=Lt.union([kn,er,lr]),ur=Ii.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),dr=e=>ur.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),pr=e=>dr(null!=e?e:Mi.or(kn)).extend({bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.number().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable(),type:Lt.literal("bookmarkLink")}),mr=e=>Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),_values:Lt.object({dateCreation:Lt.string(),dateModified:Lt.string()}).optional(),srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable(),value:Lt.string().nullable(),_cssColor:Lt.string(),_cssClass:Lt.string(),_src:(null!=e?e:Mi).optional(),_target:(null!=e?e:Mi).optional(),bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.string().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable()});var gr;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(gr||(gr={}));const hr=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(gr).transform((e=>`${e}`)).optional()}),fr=Lt.object({[gr.RAW_LIST]:pr(),[gr.LIST]:mr()}),br=Lt.object({bookmarkLabel:pr(Mi).shape.bookmarkLabel,bookmarkMeta:pr(Mi).shape.bookmarkMeta,bookmarkUrl:pr(Mi).shape.bookmarkUrl}),yr=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),vr=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),wr=Lt.record(Lt.number()),kr=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),_r=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),Sr=_n.extend({_extend:Lt.object({licenses:Lt.array(_r)})}),jr=Fi.extend({data:Sr.array()}),xr=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),Cr=Lt.object({url:Lt.string()}),Tr=Lt.object({sref:Lt.string().optional(),href:Lt.string().optional(),idDiv:Lt.string(),label:Lt.string(),icon:Lt.string(),licenseMode:Lt.literal("classic").optional(),hook:Lt.string().optional()}),Ar=Lt.object({name:Lt.string(),label:Lt.string(),icon:Lt.string(),color:Lt.tuple([Lt.string(),Lt.string(),Lt.string()]),state:Lt.string().optional(),access:Lt.boolean(),url:Lt.string().optional(),tabs:Lt.array(Tr).optional()}),Or=Lt.array(Ar),Lr=Lt.union([Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),Fr=Lt.object({name:Lr,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),Rr=Lt.object({date:Lt.string(),number:Lt.number()}),Er=Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().nullable(),dateModified:Lt.string().nullable(),animationName:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string().nullable(),auto:Lt.boolean(),stats:Lt.array(Rr),animAudience:Lt.array(Lt.string())}),Pr=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Ir=Lt.object({width:Lt.number(),height:Lt.number()}),Mr=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),Nr=Mi.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Dr=e=>Nr.parse(e),Zr=Nr.extend({_extend:Lt.object({crop:Mr})}),Ur=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),qr=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var Br;Lt.object({id:Lt.number(),token:Lt.string().optional(),attrName:Lt.string()}),function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.Api="widget-api",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table"}(Br||(Br={}));const Wr=Lt.nativeEnum(Br),$r=Lt.object({title:Lt.string(),widget:Lt.object({name:Wr,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Vr=$r,zr=Lt.enum(["left","right","center","justify"]),Gr=Lt.enum(["top","bottom","center","left","right"]),Jr=Lt.enum(["auto","contain","cover"]),Kr=Lt.enum(["sm","md","lg"]),Hr=Lt.enum(["contained","outlined"]),Qr=Lt.enum(["link","anchor","popup"]),Yr=Lt.object({x:Lt.number(),y:Lt.number()}),Xr=Lt.enum(["default","vertical"]),ea=Lt.object({url:Lt.string(),target:Lt.string()}),ta=Lt.object({uniqid:Lt.string()}),ia=Lt.object({title:Lt.string(),widgets:Vr.array()}),na=Ri({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Kr.optional(),variant:Hr.optional(),url:Lt.string().optional(),target:Lt.string().optional()}),ra=na.extend({openingType:Qr.optional(),openingTypeLink:ea.optional(),openingTypeAnchor:ta.optional(),openingTypePopup:ia.optional()}),aa=Ri({name:Lt.literal(Br.ArticleButton),uniqid:Lt.string(),content:ra}),sa=Ri({gap:Lt.string().optional(),column:Lt.string().optional(),files:Nr.array().optional()}),oa=Ri({name:Lt.literal(Br.ArticleGallery),uniqid:Lt.string(),content:sa}),la=Ri({text:Lt.string().optional(),textAlign:zr.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),ca=Ri({name:Lt.literal(Br.ArticleTitle),uniqid:Lt.string(),content:la}),ua=Ri({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),da=Ri({name:Lt.literal(Br.ArticleText),uniqid:Lt.string(),content:ua}),pa=Ri({file:Nr.optional(),useFilter:Lt.boolean().optional()}),ma=Ri({name:Lt.literal(Br.ArticleImage),uniqid:Lt.string(),content:pa}),ga=Ri({files:Nr.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),ha=Ri({name:Lt.literal(Br.ArticleAttachment),uniqid:Lt.string(),content:ga}),fa=Ri({url:Lt.string().optional(),keys:Lt.array(Lt.string()).optional(),order:Lt.string().optional(),orderBy:Lt.string().optional()}),ba=Ri({name:Lt.literal(Br.Api),uniqid:Lt.string(),content:fa}),ya=Ri({title:Lt.string(),text:Lt.string(),titleHeading:Lt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Lt.string().optional(),opacityFilter:Lt.number().optional(),opacityColor:Lt.string().optional(),file:Nr.optional()}),va=Ri({slides:ya.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),wa=Ri({name:Lt.literal(Br.ArticleSlider),uniqid:Lt.string(),content:va}),ka=Ri({title:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),id:Lt.number().optional(),user:Lt.object({id:Lt.number(),type:Lt.literal("user"),mainType:Lt.literal("user")}).optional()}),_a=Ri({arr:ka.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Vr.array().optional()}),Sa=Ri({name:Lt.literal(Br.CheckList),uniqid:Lt.string(),content:_a}),ja=Lt.enum(["date","date-time","date-time-sec","time","time-sec"]),xa=Lt.enum(["fr-FR","en-EN","filesize"]),Ca=Lt.object({}),Ta=Lt.object({type:Lt.literal("text")}),Aa=Lt.object({label:Lt.string(),value:Lt.string()}),Oa=Lt.object({type:Lt.literal("select"),options:Aa.array()}),La=Lt.object({type:Lt.literal("date")}),Fa=Lt.union([Ta,Oa,La,Ca]),Ra=Lt.object({name:Lt.string().optional(),isVisible:Lt.boolean().optional(),textEllipsis:Lt.boolean().optional(),label:Lt.string().optional(),dateFormat:ja.optional(),numberFormat:xa.optional()}),Ea=Ra.array(),Pa=Lt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Ia=Lt.object({name:Lt.string(),label:Lt.string(),sortable:Lt.boolean().optional(),type:Pa,widget:Fa}),Ma=Lt.object({limit:Lt.number().optional(),tableColumnsData:Ra.array().optional(),tableHeadColor:Lt.string().optional(),tableHeadTextColor:Lt.string().optional(),tableHeadIconColor:Lt.string().optional(),tableRowColor:Lt.string().optional(),tableRowTextColor:Lt.string().optional(),tableBorderRadius:Lt.number().optional(),tableSizedColumns:Lt.boolean().optional(),tableSizedColumnsWidth:Lt.number().optional()}),Na=Ma.extend({uri:Lt.string().optional()}),Da=Ri({name:Lt.literal(Br.DatasourceTable),uniqid:Lt.string(),content:Na}),Za=Na.extend({uri:Lt.string().optional()}),Ua=Lt.object({name:Lt.literal(Br.ExcelDatasourceTable),uniqid:Lt.string(),content:Za}),qa=Lt.union([Lt.object({layers:Lt.string().array().optional()}).and(ba),Lt.object({layers:Lt.string().array().optional()}).and(ha),Lt.object({layers:Lt.string().array().optional()}).and(aa),Lt.object({layers:Lt.string().array().optional()}).and(oa),Lt.object({layers:Lt.string().array().optional()}).and(ma),Lt.object({layers:Lt.string().array().optional()}).and(ca),Lt.object({layers:Lt.string().array().optional()}).and(da),Lt.object({layers:Lt.string().array().optional()}).and(wa),Lt.object({layers:Lt.string().array().optional()}).and(Sa),Lt.object({layers:Lt.string().array().optional()}).and(Da),Lt.object({layers:Lt.string().array().optional()}).and(Ua)]),Ba=Ri({title:Lt.string(),widget:qa}),Wa=Lt.object({widgets:Ba.array().optional()}).and(Lt.union([fa,ga,ra,sa,pa,ua,la,va,_a,Na,Za])),$a=Lt.object({[Br.ArticleButton]:aa,[Br.ArticleGallery]:oa,[Br.ArticleTitle]:ca,[Br.ArticleText]:da,[Br.ArticleImage]:ma,[Br.ArticleAttachment]:ha,[Br.Api]:ba,[Br.ArticleSlider]:wa,[Br.CheckList]:Sa,[Br.DatasourceTable]:Da,[Br.ExcelDatasourceTable]:Ua}),Va=Lt.object({[Br.ArticleButton]:ra,[Br.ArticleGallery]:sa,[Br.ArticleTitle]:la,[Br.ArticleText]:ua,[Br.ArticleImage]:pa,[Br.ArticleAttachment]:ga,[Br.Api]:fa,[Br.ArticleSlider]:va,[Br.CheckList]:_a,[Br.DatasourceTable]:Na,[Br.ExcelDatasourceTable]:Za}),za=Lt.object({busy:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),loading:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),initialized:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),mounted:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),hover:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),empty:Lt.boolean().optional()}),Ga=Mi.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),Ja=Ga.extend({description:Lt.string().nullable().optional(),_user:kn,_right:Ei,_audience:cr.array(),image:Ir.optional(),articleWidgets:Ba.array().optional()}),Ka=Ja,Ha=Ka.extend({_attachedFiles:Nr.array()}),Qa=Ha.extend({processContext:Lt.null(),uiObjectLink:Mi.array().optional()}),Ya=e=>Ha.extend({idDraft:Lt.number(),form:e}),Xa=Lt.object({type:Lt.string().optional(),format:Oi.optional(),formatExtend:Li.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.optional()}),es=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Oi.optional()}),ts=Lt.object({title:Lt.string().optional(),description:Lt.string().optional().nullable(),type:Lt.string().optional(),publishTo:Lt.string().optional(),idSpot:Lt.array(Lt.string()).optional()}),is=Lt.object({id:Lt.number(),type:Lt.string(),dateCreation:Lt.string(),dateModified:Lt.string(),title:Lt.string(),uri:Lt.string()}),ns=Lt.object({attachment:Lt.boolean().optional(),idArticle:Lt.number(),limits:Lt.object({max:Lt.number(),start:Lt.number()}).optional()}),rs=Lt.object({token:Lt.string(),content:Lt.string(),idArticle:Lt.number(),sendAlert:Lt.boolean(),alertAuthor:Lt.boolean(),widgets:Ba.array().optional()}),as=Lt.object({token:Lt.string().optional(),description:Lt.string().optional(),idComment:Lt.number(),widgets:Ba.array().optional()}),ss=Lt.object({idUser:Lt.string(),dateRead:Lt.string(),Pseudo:Lt.string(),type:Lt.string()}),os=lr.merge(Ka).extend({_nbItems:Lt.number(),parentURI:Lt.string().optional()}),ls=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),cs=Ha.extend({aseiClearanceTicketValidator:kn.array(),aseiClearanceTicketHandler:Mi.array(),aseiClearanceTicketApplicationManagers:Mi.array(),aseiClearanceTicketInstitution:Mi.array(),processContext:Lt.null(),aseiClearanceTicketNatureOfDemand:Lt.string(),aseiClearanceTicketInternetAccess:Lt.string(),aseiClearanceTicketInternetAccessSpecify:Lt.string(),aseiClearanceTicketMicrosoftTeams:Lt.string().nullable(),aseiClearanceTicketVariousNetworks:Lt.string().nullable(),aseiClearanceTicketFreeText:Lt.string(),aseiClearanceTicketOfficeAccess:Lt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Lt.string(),aseiClearanceTicketBlueKanGo:Lt.string().nullable(),aseiClearanceTicketAccounting:Lt.string(),aseiClearanceTicketAccountingBudget:Lt.string(),aseiClearanceTicketTransfers:Lt.string().nullable(),aseiClearanceTicketBilling:Lt.string(),aseiClearanceTicketPayroll:Lt.string(),aseiClearanceTicketPayrollBudget:Lt.string(),aseiClearanceTicketAccommodationCosts:Lt.string(),aseiClearanceTicketCommercialManagement:Lt.string(),aseiClearanceTicketInventoryManagement:Lt.string(),aseiClearanceTicketTimeManagement:Lt.string(),aseiClearanceTicketBdes:Lt.string(),aseiClearanceTicketMandateStart:Lt.string().nullable(),aseiClearanceTicketMandateEnd:Lt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Lt.string().nullable(),aseiClearanceTicketBudgetLetters:Lt.string(),aseiClearanceTicketComputerisedFile:Lt.string().nullable(),aseiClearanceTicketRecruiterAccess:Lt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Lt.null(),aseiClearanceTicketTypeOfWorkContractTo:Lt.null(),aseiClearanceTicketLastName:Lt.string(),aseiClearanceTicketFirstName:Lt.string(),aseiClearanceTicketUser:kn.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:ls}),us=Ga.extend({_right:Ei,_user:kn,aseiInstitutionValidator:Mi.array(),processContext:Lt.null()}),ds=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),ps=Lt.object({accessWriter:Lt.boolean(),accessApp:Lt.boolean()}),ms=Lt.object({description:Lt.string(),right:Lt.object({manage:Lt.boolean()}),daysOff:Lt.array(Lt.string()).optional(),weekEnd:Lt.union([Lt.literal("0"),Lt.literal("1")]),bookingOpeningTime:Lt.string(),bookingClosingTime:Lt.string(),lastBookingSchedule:Lt.string()}),gs=Ka.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),hs=gs.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),fs=Ka.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:gs}),bs=Lt.object({id:Lt.string(),uri:Lt.string(),shortUri:Lt.string(),title:Lt.string(),name:Lt.string(),mainType:Lt.string(),type:Lt.string(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),class:Lt.string()}),ys=bs.extend({title:Lt.string()}),vs=ys.extend({Pseudo:Lt.string()}),ws=ys.extend({idspot:Lt.string()}),ks=Lt.union([ys,vs,ws]),_s=Mi.extend({isTechnical:Lt.number(),status:Lt.number(),image:Lt.string(),isMember:Lt.boolean(),stats:Lt.object({moderators:Lt.number(),members:Lt.string()}),_members:Lt.array(Mi)}),Ss=Lt.object({token:Lt.string(),fullname:Lt.string()}),js=Lt.object({redirectUrl:Lt.string()}),xs=Lt.object({token:Lt.string()}),Cs=Lt.object({dateStart:Lt.string(),title:Lt.string()}),Ts=Ga.extend({type:Lt.literal("businessContactCard")}),As=Ka.and(Ts.and(Lt.object({mail:Lt.string().nullable(),pseudo:Lt.string().nullable(),firstName:Lt.string().nullable(),lastName:Lt.string().nullable(),phoneNumber:Lt.string().nullable(),company:Lt.string().nullable(),function:Lt.string().nullable(),champ1:Lt.string().nullable().optional(),champ2:Lt.string().nullable().optional(),champ3:Lt.string().nullable().optional(),champ4:Lt.string().nullable().optional(),champ5:Lt.string().nullable().optional()}))),Os=Lt.literal("read"),Ls=Lt.object({type:Lt.string(),class:Lt.string(),isActive:Lt.boolean(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),struct:Lt.object({action:Lt.string(),do:Lt.string(),type:Lt.string(),targetId:Lt.number(),targetType:Lt.string()}),stats:Lt.object({total:Lt.number()})}),Fs=Ii.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:kn}),Rs=Fs.extend({_right:Ei,_attachedFiles:Lt.array(Nr).optional(),_actions:Lt.record(Ls).optional(),_widgets:Lt.array(Ba).optional()}),Es=sr.extend({dateStart:Lt.string(),animatedMeetingContent:Lt.record(Lt.unknown()),_extend:Lt.object({status:Lt.string(),statusValue:Lt.literal(1).or(Lt.literal(2)).or(Lt.literal(3)),date:Lt.string()}),_audience:cr.array(),_audienceLeft:Lt.number()}),Ps=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents")]),Is=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string()}),Ms=Is.omit({id:!0}).extend({name:Ps.optional()}),Ns=Is.and(Lt.object({})),Ds=Is.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),Zs=Is.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),Us=Ds.and(Zs),qs=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean()}),Bs=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),Ws=Lt.object({msTenant:Lt.union([Ps,Lt.undefined()]),msId:Lt.union([Lt.string(),Lt.undefined()]),idFolder:Lt.union([Lt.string(),Lt.undefined()]),page:Lt.number(),limit:Lt.number(),query:Lt.string().optional().nullable()}),$s=Ka.extend({faqColor:Lt.string().optional(),image:Ir.optional(),type:Lt.literal("faq")}),Vs=Ha.and($s).and(Lt.object({_audience:ks.array(),tags:ys.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),zs=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),Gs=Ka.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),Js=Gs.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:ys.array().optional(),uriCategory:Ga.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:Nr.array(),uiObjectLink:Lt.unknown()}),Ks=Ci(ts.omit({idSpot:!0})).and(Lt.object({image:Ir.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),Hs=Ks.and(Lt.object({uri:Lt.string(),format:Oi.optional()})),Qs=Lt.object({title:Lt.string(),id:Lt.string()}),Ys=Lt.object({_web:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional(),appImageText:Lt.string().optional(),appImage:Lt.union([Lt.string(),Lt.object({image:Lt.object({id:Lt.string(),type:Lt.string()})})]).optional(),_displayComment:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional()}),Xs=Lt.object({createCategory:Lt.boolean()}),eo=Lt.object({idCategory:Lt.number(),title:Lt.string()}),to=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),io=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),no=Ci(ts).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),ro=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),ao=no.and(Lt.object({uri:Lt.string()})),so=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),oo=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),lo=e=>Lt.object({isActive:Lt.boolean()}).and(e),co=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),uo=lo(Lt.object({drives:Lt.record(co,Lt.boolean())})),po=lo(Lt.object({label:Lt.string()})),mo=lo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),go=lo(Lt.object({sendAlert:Lt.boolean()})),ho=lo(Lt.object({})),fo=lo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),bo=lo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),yo=Lt.object({MagicPadHook:bo}).partial(),vo=Lt.object({DriveHook:uo,calendarHook:po,FileBankHook:mo,spotRssFeed:ho,WidgetHook:fo,AdminAdvancedHook:go}).partial().and(yo),wo=Lt.union([Lt.literal("summarize"),Lt.literal("develop"),Lt.literal("reformulate"),Lt.literal("tldr"),Lt.literal("en"),Lt.literal("es"),Lt.literal("formal"),Lt.literal("funny")]),ko=Lt.object({text:Lt.string()}),_o=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),So=Lt.object({mail:Lt.string(),cnt:Lt.string()}),jo=Lt.string(),xo=Lt.string(),Co=Ga.extend({jlandMapFlavor:jo,jlandMapKind:xo,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(_r)})}),To=ts.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),Ao=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),Oo=Ga.and(Ao),Lo=Ka.and(Ao),Fo=Ha.and(Ao),Ro=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:Si.array().optional(),orders:vi.array().optional()}),Eo=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),Po=Ga.extend({attachment:Nr,description:Lt.string()}),Io=Ka.extend({description:Lt.string(),attachment:Nr,_audience:ks.array()}),Mo=Lt.object({format:Oi,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),No=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),Do=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),Zo=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),Uo=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),qo=Ka.extend({place:Lt.string(),address:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string(),noGestion:Lt.boolean()}),Bo=Ha.and(qo).and(Lt.object({allDay:Lt.null(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),socialEventUseCeiling:Lt.null(),socialEventCeiling:Lt.null(),hideFromCalendar:Lt.null(),urlGestion:Lt.string().optional().nullable()})),Wo=qo.extend({}),$o=Ha.and(Wo).and(Lt.object({allDay:Lt.null(),agenda:Lt.string(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),report:Lt.string(),reportFile:Lt.array(Lt.never()),urlGestion:Lt.string().nullable().optional()})),Vo=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),zo=Ka.extend({anonymousResponse:Lt.null(),multipleResponse:Lt.number(),publicResults:Lt.null(),pollProgression:Lt.object({colors:Lt.record(Lt.string()),maxRespondentsValue:Lt.number(),countRespondentsValue:Lt.number()}),pollResponseShowProgression:Lt.number(),dateEnd:Lt.string(),status:Lt.object({name:Lt.string(),value:Lt.number()})}),Go=Ha.and(zo).and(Lt.object({pollContent:Lt.null(),pollLinks:Lt.null(),pollForceClose:Lt.null(),pollResponseUserVisibility:Lt.null(),pollResponseAuthorVisibility:Lt.null(),pollResponseShowRespondent:Lt.null(),pollBanner:Lt.tuple([]),pollMessage:Lt.string()})),Jo=Ka.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),Ko=Ha.and(Jo).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Ho=Lt.object({count:Lt.number(),id:Lt.string()}),Qo=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),Yo=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:Qo.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),Xo=Lt.object({id:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),title:Lt.string(),cssclass:Lt.string().optional(),active:Lt.boolean().optional(),count:Lt.number().optional(),typesExcluded:Lt.array(Lt.string()),facets:Yo.array()}),el=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),tl=Lt.object({name:Lt.string(),count:Lt.number(),values:el.array(),title:Lt.string()}),il=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),nl=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),rl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),al=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:Yo.array()}),categories:Xo.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),sl=Lt.object({name:Lt.string(),title:Lt.string(),icon:Lt.string(),_url:Lt.string()}),ol=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string(),uri:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({dateModified:Lt.string()}).optional()}),ll=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:il.array().optional(),facets:Yo.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:nl.optional(),options:rl.optional(),format:Oi.optional()}),cl=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:Mi),facets:tl.array(),categories:Ho.array()}),ul=Lt.object({keywords:Lt.string()}),dl=Lt.union([sl,ol]),pl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:dl.array()}),ml=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),gl=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Ei}),hl=Lt.object({audience:Lt.array(cr),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),fl=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:ml,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(cr),_right:Ei}),bl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),yl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),vl=Ka.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(kn)}),wl=Ha.and(vl).and(Lt.object({})),kl=Ka.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),_l=Ha.and(kl).and(Lt.object({surveyObjectLink:Lt.array(Ga)})),Sl=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),jl=e=>sr.extend({tvChannelType:e,tvChannelBackgroundColor:Lt.string().nullable(),tvChannelNumImages:Lt.number(),tvChannelGroupTarget:er.optional(),tvChannelConfig:Lt.object({backgroundType:Lt.union([Lt.literal("color"),Lt.literal("image")]).optional(),globalShowComment:Lt.boolean().optional(),scaleImg:Lt.boolean().optional(),key:Lt.string(),contents:Lt.array(Lt.object({uri:Lt.string(),dateEnd:Lt.string().optional(),showComments:Lt.boolean().optional(),order:Lt.number().optional()})).optional()})}),xl=jl(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),Cl=jl(Lt.literal("SLIDESHOW")),Tl=Ga.readonly(),Al=Ka.and(xl).readonly(),Ol=Ka.and(Cl).readonly(),Ll=Ka.and(xl).readonly().or(Cl),Fl=Al.or(Ol),Rl=ts.and(xl.partial().or(Cl.partial())).and(Lt.object({tvChannelType:Sl})).readonly(),El=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),Pl=Rs.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),Il=Ka.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(Pl)}).optional()}).readonly(),Ml=Nr.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),Nl=Al.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(Il).optional()})})),Dl=e=>Nl.safeParse(e).success,Zl=Ol.and(Lt.object({_extend:Lt.object({attachments:Lt.array(Ml).optional()})})),Ul=e=>Zl.safeParse(e).success,ql=Nl.or(Zl),Bl=Lt.object({interval:Lt.number(),channel:ql}),Wl=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),$l=Wl.extend({plugins:Lt.array(Lt.string()),text_patterns:Lt.array(Lt.object({start:Lt.string(),end:Lt.string().optional(),format:Lt.string().optional(),cmd:Lt.string().optional()})),height:Lt.number(),menubar:Lt.boolean(),branding:Lt.boolean(),skin:Lt.string(),convert_urls:Lt.boolean(),invalid_elements:Lt.string(),extended_valid_elements:Lt.string(),custom_elements:Lt.string(),inline_boundaries_selector:Lt.string(),toolbar_mode:Lt.union([Lt.literal("floating"),Lt.literal("sliding"),Lt.literal("scrolling"),Lt.literal("wrap")]),promotion:Lt.boolean(),font_size_formats:Lt.string(),contextmenu:Lt.union([Lt.string(),Lt.literal(!1)]),paste_data_images:Lt.boolean(),browser_spellcheck:Lt.boolean(),quickbars_insert_toolbar:Lt.boolean()}),Vl="accept",zl="deny",Gl=Lt.union([Lt.literal(Vl),Lt.literal(zl)]),Jl=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Kl=Ii.extend({title:Lt.string(),mimetype:Lt.string(),_extend:Lt.object({generalAccessRule:Lt.string(),generalAccessHash:Lt.union([Lt.string(),Lt.undefined()]),dateModified:Lt.string(),dateCreation:Lt.string(),fileInfo:Jl,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(Mi),_right:Ei,_user:kn}),Hl=Mi,Ql=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Yl=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Kl)}),Xl=Lt.object({query:Lt.string(),filters:xi,orders:ji,page:Lt.number(),limit:Lt.number()}),ec=Lt.object({}),tc=Ga.extend({articleWidgets:Ba.array(),articleWidgetDisplayMode:Xr.nullable().or(Lt.undefined())}),ic=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:Ba.array(),position:Yr.optional()}),nc=Lt.enum(["edit","view","preview"]),rc=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:nc,onClick:Lt.function().returns(Lt.void()).optional(),onChange:Lt.function().args(Wa,Lt.boolean()).returns(Lt.void()),onStateChange:Lt.function().args(za).returns(Lt.void())}),ac=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:kn.optional()}),sc=Lt.object({arr:ac.array().optional()}),oc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:sc,title:Lt.string()}),lc=Lt.object({label:Lt.string(),description:Lt.string(),name:Wr,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),cc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),uc=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),Ba),layers:Lt.record(Lt.string(),ic),states:Lt.record(Lt.string(),za),modal:cc.or(Lt.undefined()),editableMap:Lt.record(Lt.string(),Lt.object({index:Lt.number(),uniqid:Lt.string()})),currentEditableIndex:Lt.number(),currentEditableWidgetId:Lt.string().or(Lt.undefined()),widgetObject:Lt.record(Lt.string(),Mi.partial())}),dc=Lt.object({widgets:uc}),pc=tc.extend({articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:ks.array()}),mc=(e,t)=>t.safeParse(e).success,gc=e=>Ba.safeParse(e).success,hc=e=>mc(e,ba),fc=e=>mc(e,ha),bc=e=>mc(e,aa),yc=e=>mc(e,oa),vc=e=>mc(e,ma),wc=e=>mc(e,wa),kc=e=>mc(e,da),_c=e=>mc(e,ca),Sc=e=>mc(e,Sa),jc=e=>mc(e,Da),xc=e=>mc(e,Ua);class Cc extends i{list(e){var t,i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:di(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(i=e.formatExtend)&&void 0!==i?i:[])}))}get(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:di(null!==(i=e.format)&&void 0!==i?i:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e,t){var i;return this.network.post(Object.assign(Object.assign({format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,i){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:i})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,i){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:i})}getComments(e,t){var i,n;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(i=e.attachment)&&void 0!==i&&i,limits:null!==(n=e.limits)&&void 0!==n?n:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var Tc=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Ac extends i{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,i=Tc(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},i))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,i=Tc(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},i))}getList(e){var{format:t="raw-list"}=e,i=Tc(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},i))}}class Oc extends i{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class Lc extends i{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class Fc extends i{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,i){const n=null!=i?i:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:n})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,i){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:i})}move(e,t,i){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:i})}}class Rc extends i{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class Ec extends i{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class Pc extends i{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:i,token:n}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:i,token:n})}}class Ic extends i{create(e,t,i,n,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:i,dateStart:n,publishTo:r})}getList(e="",t=[],i=[],n=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:i,page:n,format:r})}}var Mc=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class Nc extends i{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return Mc(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t})}))}getParent(e,t){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t})}))}getWithHash(e,t,i){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:i})}))}duplicate(e,t,i){return Mc(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:i})}))}updateFile(e,t){return Mc(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,i){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},i),{rotateBeforeCrop:!0}),killSize:i.killSize,format:"raw-little"})}))}deleteFile(e,t,i,n){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:i},n)}))}deleteImage(e,t){return Mc(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t})}))}getDownload(e){return this.network.post({o:"file",f:"getDownload",id:e})}generatePreview(e){return this.network.post({o:"file",f:"generatePreview",id:e})}copy(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}))}}class Dc extends i{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,i){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=i?i:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class Zc extends i{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var i,n;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(i=e.mode)&&void 0!==i?i:"browse",format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}),null==t?void 0:t.signal)}getParents(e,t){var i;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}}class Uc extends i{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class qc extends i{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:i}=e,n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},n),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,i,n=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:i,page:n,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}}class Bc extends i{list(e,t,i,n=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:n,filters:i})}requestStatus(e,t,i){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:i})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class Wc extends i{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(e,t){return this.network.post({o:"drive",f:"getGroups",query:e,filter:t})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(e){return this.network.post({o:"drive",f:"listAccount",service:e})}isAccountLogged(e,t){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t})}checkAccountToken(e){return this.network.post({o:"drive",f:"checkAccountToken",service:e})}documents(e,t){return this.network.post({o:"drive",f:"getDocuments",service:e,documentParams:t})}}class $c extends i{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:i})}getFilesStatsList(e=[],t=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:i})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class Vc extends i{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:i}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:i})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class zc extends i{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const i=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:i,type:"messengerUser",idUserTo:t})}}class Gc extends i{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},i){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},i)}searchQuery(e,t){const{keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:di(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var Jc=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Kc extends i{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,i=Jc(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},i))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,i=Jc(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},i))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class Hc extends i{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",i){return this.network.post({o:"user",f:"get",uri:e,format:t},i)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:di(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:di(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e,t){var i;const n=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},n),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little")}userUpdateBusinessContact(e,t){var i;const n=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},n),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-list"})}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t,i){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=i?i:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class Qc extends i{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,i){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:i})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,i,n){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:i,requestResponseMessage:n})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,i){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:i})}}class Yc extends i{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class Xc extends i{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,i){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:i})}}var eu=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class tu extends i{SaveAnimationConfiguration(e){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}GetAnimationStats(e){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return eu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class iu extends i{GetStatus(){return e=this,t=void 0,n=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}}class nu extends i{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,i,n){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:i,generalAccessRule:n})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class ru extends i{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class au extends i{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class su extends i{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class ou extends i{responseUserList(e,t,i){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:i})}removeWidget({id:e,type:t,uniqid:i}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:i})}checkListRespond({id:e,type:t,idUser:i,uniqid:n,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:n,idUser:i,index:r})}updateWidget({id:e,uniqid:t,content:i,title:n,type:r}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:i,title:n,type:r})}}class lu extends i{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class cu{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new iu(this),this.application=new o(this),this.article=new Cc(this),this.asei=new Bc(this),this.assetReservation=new Ac(this),this.audience=new Oc(this),this.bbb=new Lc(this),this.bookmark=new Fc(this),this.businessNetworking=new Rc(this),this.community=new Ec(this),this.datasource=new Pc(this),this.diapazone=new Ic(this),this.drive=new Wc(this),this.faq=new Dc(this),this.file=new Nc(this),this.filebank=new Zc(this),this.fileSync=new ru(this),this.global=new Uc(this),this.group=new qc(this),this.jia=new su(this),this.jland=new Vc(this),this.magicPad=new lu(this),this.mediaLibrary=new $c(this),this.messenger=new zc(this),this.object=new nu(this),this.search=new Gc(this),this.share=new Xc(this),this.socialAction=new au(this),this.taxonomy=new Kc(this),this.tvDisplay=new Yc(this),this.user=new Hc(this),this.wedoc=new Qc(this),this.widget=new ou(this),this.animations=new tu(this)}}class uu{getBackendUrl(){return e=this,t=void 0,n=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}fetch(e,t){return window.fetch(e,t)}}const du=new ai(new uu),pu=new cu(du);window.JamespotUserApi=pu;const mu=pu,gu=cu;module.exports=t})();
2
2
  //# sourceMappingURL=jamespot-user-api.js.map