From 3f1c1778e044a8739e01f66a57c5e7a685f9f186 Mon Sep 17 00:00:00 2001 From: Paul Lan Date: Mon, 22 Dec 2025 22:47:18 -0600 Subject: [PATCH 1/2] Upgrade react router version to prevent CVE scanning warning --- .npmrc | 2 ++ src/providers/copilot-webview.ts | 4 ++- src/utils.ts | 2 +- src/webview-shared-lib.ts | 33 ++++++++++++++++++- webview/index.html | 2 +- ...65d34.js => index.fbee0a9e7bb54ef7b5d0.js} | 6 ++-- ...index.fbee0a9e7bb54ef7b5d0.js.LICENSE.txt} | 15 ++------- webview/js/main.c503ed20880785365d34.js | 6 ---- webview/js/main.fbee0a9e7bb54ef7b5d0.js | 6 ++++ ...d34.js => runtime.fbee0a9e7bb54ef7b5d0.js} | 2 +- webview/styles/main.c503ed20880785365d34.css | 3 -- webview/styles/main.fbee0a9e7bb54ef7b5d0.css | 3 ++ 12 files changed, 54 insertions(+), 30 deletions(-) create mode 100644 .npmrc rename webview/js/libs/{index.c503ed20880785365d34.js => index.fbee0a9e7bb54ef7b5d0.js} (61%) rename webview/js/libs/{index.c503ed20880785365d34.js.LICENSE.txt => index.fbee0a9e7bb54ef7b5d0.js.LICENSE.txt} (96%) delete mode 100644 webview/js/main.c503ed20880785365d34.js create mode 100644 webview/js/main.fbee0a9e7bb54ef7b5d0.js rename webview/js/{runtime.c503ed20880785365d34.js => runtime.fbee0a9e7bb54ef7b5d0.js} (96%) delete mode 100644 webview/styles/main.c503ed20880785365d34.css create mode 100644 webview/styles/main.fbee0a9e7bb54ef7b5d0.css diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..d3401d2 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +# registry="https://artifacthub-iad.oci.oraclecorp.com/artifactory/api/npm/npmjs-registry" +registry="https://registry.npmjs.org" \ No newline at end of file diff --git a/src/providers/copilot-webview.ts b/src/providers/copilot-webview.ts index a695fd0..450a78b 100644 --- a/src/providers/copilot-webview.ts +++ b/src/providers/copilot-webview.ts @@ -238,7 +238,9 @@ function handleWebviewLifecycle() { } const notifyPostmanWebview = (file: vscode.Uri, entryType: SharedNs.VscodeCommandPayload["updateEntryType"]) => { - UtilsNs.notifyWebview(SharedNs.ExtensionCommandEnum.updatePostmanRawData, JSON.parse(readFileSync(file.fsPath, 'utf8')) as PostmanNs.Root); + UtilsNs.notifyWebview(SharedNs.ExtensionCommandEnum.updatePostmanRawData, { + postman: JSON.parse(readFileSync(file.fsPath, 'utf8')) as PostmanNs.Root + }); UtilsNs.notifyWebview(SharedNs.ExtensionCommandEnum.updateEntryType, entryType); }; diff --git a/src/utils.ts b/src/utils.ts index c933a7c..fefa57d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -139,7 +139,7 @@ export namespace workspace { const specFile = JSON.parse(doc.getText()) as OpenAPINS.Root; return !!specFile && !!specFile.openapi && !!specFile.info?.version && !!specFile.paths; }, - (file) => from(showErrorMessage(`The offered file is not a valid postman collection. File: ['${fs.parseFilename(file)}']`)) + (file) => from(showErrorMessage(`The offered file is not a valid OpenAPI spec json. File: ['${fs.parseFilename(file)}']`)) ) .pipe( switchMap( diff --git a/src/webview-shared-lib.ts b/src/webview-shared-lib.ts index 2688506..45184ef 100644 --- a/src/webview-shared-lib.ts +++ b/src/webview-shared-lib.ts @@ -8,6 +8,7 @@ export namespace SharedNs { export const WebviewCommandEnum = { webviewRouterReady: 'webviewRouterReady' as 'webviewRouterReady', webviewLifecycle: 'webviewLifecycle' as 'webviewLifecycle', + webviewMessagePreflight: 'webviewMessagePreflight' as 'webviewMessagePreflight', postmanSelectRequests: 'postmanSelectRequests' as 'postmanSelectRequests', postmanDoneConvertDocument: 'postmanDoneConvertDocument' as 'postmanDoneConvertDocument', @@ -22,9 +23,14 @@ export namespace SharedNs { rabAddSave: 'rabAddSave' as 'rabAddSave', } + + export type WebviewCommandEnumKey = keyof typeof WebviewCommandEnum; + export const ExtensionCommandEnum = { + openCopilotPostmanConvert: 'orab.webview.copilot.open.postman.convert' as 'openCopilotPostmanConvert', openPostmanConvertConverDocument: 'orab.convert.postman.document' as 'openPostmanConvertConverDocument', + openADDCompress: 'orab.add.compress' as 'openADDCompress', openOpenAPIConvertNewDocument: 'orab.add.convert' as 'openOpenAPIConvertNewDocument', openOpenAPIConvertAppendDocument: 'orab.add.convert.append' as 'openOpenAPIConvertAppendDocument', openCopilotAssistant: 'orab.webview.copilot.open.assistant' as 'openCopilotAssistant', @@ -35,6 +41,9 @@ export namespace SharedNs { routerNavigateTo: 'routerNavigateTo' as 'routerNavigateTo', } + export type ExtensionCommandEnumKey = keyof typeof ExtensionCommandEnum; + + export enum WebviewRouteEnum { Root = `/`, PostmanAdd = `postman/add`, @@ -51,18 +60,32 @@ export namespace SharedNs { items: string[]; selectedItemForTestConnection?: string; } + export enum WebviewCommandPayloadADDCompressRequestEnum { + remove_dangling = 'remove_dangling' + } + export type WebviewCommandPayloadADDCompressRequests = { + [WebviewCommandPayloadADDCompressRequestEnum.remove_dangling]?: boolean + } + export type WebviewCommandPayloadOpenAPISelectRequests = OpenAPINS.UIStateForBackend export interface WebviewCommandPayloadRabAddSave { addToSave: RabAddNs.Root; vsCodeEditorConfig?: VsCoderEditorConfig; } + export type MessagePreflightPayload = { + ack?: (typeof ExtensionCommandEnum)[ExtensionCommandEnumKey] | (typeof WebviewCommandEnum)[WebviewCommandEnumKey] + isUnlisten?: boolean + }; + export type WebviewCommandPayload = { webviewRouterReady: WebviewCommandPayloadWebviewRouterReady; webviewLifecycle: { type: 'close' }; + webviewMessagePreflight: MessagePreflightPayload; + postmanSelectRequests: Omit; postmanDoneConvertDocument: WebviewCommandPayloadPostmanSelectRequests; postmanSelectReady: any; @@ -84,10 +107,14 @@ export namespace SharedNs { } export type VscodeCommandPayload = { + openCopilotPostmanConvert: any; openCopilotAssistant: any; - updatePostmanRawData: PostmanNs.Root; + updatePostmanRawData: { + postman: PostmanNs.Root, + add?: RabAddNs.Root, + }; updateOpenAPIRawData: { openapi: OpenAPINS.Root, add?: RabAddNs.Root, @@ -96,6 +123,7 @@ export namespace SharedNs { updateEntryType: VscodeCommandPayloadEntryType; openPostmanConvertConverDocument: any; + openADDCompress: any; openOpenAPIConvertNewDocument: any; openOpenAPIConvertAppendDocument: any; @@ -115,6 +143,9 @@ export namespace SharedNs { endOffset?: number } + + export const delayInSeconds = async (timeInSeconds: number) => new Promise(resolve => setTimeout(() => resolve(true), timeInSeconds * 1000)); + } export namespace RabAddUtilNs { diff --git a/webview/index.html b/webview/index.html index e082e8d..acf3fc8 100644 --- a/webview/index.html +++ b/webview/index.html @@ -5,4 +5,4 @@ Oracle JET VDOM Starter Template - Basic - \ No newline at end of file + \ No newline at end of file diff --git a/webview/js/libs/index.c503ed20880785365d34.js b/webview/js/libs/index.fbee0a9e7bb54ef7b5d0.js similarity index 61% rename from webview/js/libs/index.c503ed20880785365d34.js rename to webview/js/libs/index.fbee0a9e7bb54ef7b5d0.js index c2fa471..796e0a0 100644 --- a/webview/js/libs/index.c503ed20880785365d34.js +++ b/webview/js/libs/index.fbee0a9e7bb54ef7b5d0.js @@ -2,6 +2,6 @@ * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ - /*! For license information please see index.c503ed20880785365d34.js.LICENSE.txt */ -(self.webpackChunkweb_jetui=self.webpackChunkweb_jetui||[]).push([[412],{322:(e,t,n)=>{"use strict";n(5047),n(3720),n(7265)},5047:(e,t,n)=>{"use strict";n(3720),n(7265)},3720:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(7265);const i={name:"redwood",base:r.zX,colorScheme:r.Sl,scale:r.DS}},7265:(e,t,n)=>{"use strict";n.d(t,{DS:()=>o,Sl:()=>i,zX:()=>r});var r={cursor:{clickable:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-cursor-clickable)"},boxShadow:{xs:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-xs)",sm:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-sm)",md:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-md)",lg:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-lg)",xl:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-xl)"},borderRadius:{sm:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-sm)",md:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-md)",lg:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-lg)",xl:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-xl)"}},i={palette:{neutral:{0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-0)",10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-190)",200:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-200)"},danger:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-190)"},success:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-190)"},warning:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-190)"},info:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-190)"},brand:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-190)"}},overlay:{hover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-hover)",active:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-active)",dangerHover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-danger-hover)",dangerActive:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-danger-active)",scrim:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-scrim)",inverseHover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-inverse-hover)",inverseActive:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-inverse-active)"},pageBackground:{neutral0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral0)",neutral10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral10)",neutral20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral20)",neutral30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral30)",neutral40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral40)"},surface:{neutral0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral0)",neutral10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral10)",neutral20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral20)",neutral30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral30)",selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-selected)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-disabled)",neutral:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-strong)"},success:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-strong)"},info:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-strong)"},warning:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-strong)"},danger:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-strong)"}},border:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-disabled)",divider:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-divider)",selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-selected)",dropLine:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-drop-line)",selectedNeutral:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-selected-neutral)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-danger)",keyboardFocus:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-keyboard-focus)"},boxshadow:{shadowcolor:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-boxshadow-shadowcolor)"},textIcon:{primary:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-primary)",secondary:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-secondary)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-disabled)",inverse:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-inverse)",onColor:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-on-color)",link:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-link)",success:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-success)",info:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-info)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-danger)",successLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-success-low)",infoLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-info-low)",warningLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-warning-low)",dangerLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-danger-low)"},collection:{header:{text:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-text)",surface:{selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-surface-selected)",partialSelected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-surface-partial-selected)"}}},collectionGrid:{cell:{surfaceEdit:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-grid-cell-surface-edit)"}},measure:{track:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-track-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-track-disabled)"},fill:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-fill-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-fill-disabled)"},thumb:{surface:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-thumb-surface)"},reference:{line:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-line)",lineContrast:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-line-contrast)",area:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-area)"}},dvt:{contrastLine:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-contrast-line)",paletteQualitative:{1:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-1)",2:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-2)",3:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-3)",4:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-4)",5:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-5)",6:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-6)",7:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-7)",8:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-8)",9:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-9)",10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-10)",11:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-11)",12:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-12)"},threshold:{success:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-success)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-danger)"},marquee:{border:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-marquee-border)",surface:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-marquee-surface)"},referenceObject:{area:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-reference-object-area)",line:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-reference-object-line)"},overview:{background:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-background)",windowBackground:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-window-background)",windowBorder:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-window-border)"}}},o={size:{units:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-size-units)"}}},4580:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EnvironmentContext:()=>r.E,EnvironmentProvider:()=>r.a,RootEnvironmentProvider:()=>r.R});var r=n(297);n(6400),n(322),n(5047),n(3720),n(7265),n(6584),n(396),n(8661)},9557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CalendarUtils:()=>l,DateTimeUtils:()=>B,NativeDateTimeConstants:()=>p,NativeParserImpl:()=>F,formatWithYearFormat:()=>W,getFormatParse:()=>ne,getISODateOffset:()=>c,normalizeIsoString:()=>z});var r=n(2024),i=n(2918),o=n(1192);const s=(0,o._)((function(e,t){for(var n={},r=0;r"dayPeriod"===e.type));return t?t.value:""}const i=l.getFormatterLocale(e,t),o=new Intl.DateTimeFormat(i,{hour:"numeric",hour12:!0}),s=r(o);return n.setHours(20),{format:{wide:{am:s,pm:r(o)}}}}static getFormatterLocale(e,t){return e+"-u-ca-"+t}static _getEras(e,t){const n=[{era:"0",start:"2000-02-11T00:00:00"}],r={eraNarrow:{0:"",1:""},eraAbbr:{0:"",1:""},eraName:{0:"",1:""}};function i(e,t){const n=e.formatToParts(t).find((e=>"era"===e.type));return n?n.value:""}const o=["narrow","short","long"],s=l.getFormatterLocale(e,t),a={narrow:"eraNarrow",short:"eraAbbr",long:"eraName"};for(let e=0;e"month"===e.type));return t?t.value:null}function a(e){const t=e.find((e=>"weekday"===e.type));return t?t.value:null}const u=l.getFormatterLocale(e,t),c=new Intl.DateTimeFormat(u,r),d={},h={};for(let e=0;e0?n+=1440:i<0&&(r+=1440),r-n}(e,d(n,t));let i=0;return n.setTime(n.getTime()-6e4*r),h(d(n,t),e)||(i=-60,n.setTime(n.getTime()+36e5),h(d(n,t),e)||(i=60,n.setTime(n.getTime()-72e5))),r+i}function d(e,t){const n=function(e){let t=u.get(e);return t||(t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZone:e}),u.set(e,t)),t}(t).format(e),[r,i]=n.split(","),[o,s,a]=r.split("/"),[l,c]=i.trim().split(":");return{year:parseInt(a),month:parseInt(o),date:parseInt(s),hours:parseInt(l),minutes:parseInt(c)}}function h(e,t){return e.year===t.year&&e.month===t.month&&e.hours===t.hours&&e.minutes===t.minutes}class p{}p._YEAR_AND_DATE_REGEXP=/(\d{1,4})\D+?(\d{1,4})/g,p._YMD_REGEXP=/(\d{1,4})\D+?(\d{1,4})\D+?(\d{1,4})/g,p._TIME_REGEXP=/(\d{1,2})(?:\D(\d{1,2}))?(?:\D(\d{1,2}))?(?:\D(\d{1,3}))?/g,p._TIME_FORMAT_REGEXP=/h|H|K|k/g,p._YEAR_REGEXP=/y{1,4}/,p._MONTH_REGEXP=/M{1,5}/,p._DAY_REGEXP=/d{1,2}/,p._WEEK_DAY_REGEXP=/E{1,5}/,p._HOUR_REGEXP=/h{1,2}|k{1,2}/i,p._MINUTE_REGEXP=/m{1,2}/,p._SECOND_REGEXP=/s{1,2}/,p._FRACTIONAL_SECOND_REGEXP=/S{1,3}/,p._AMPM_REGEXP=/a{1,2}/,p._WORD_REGEXP="(\\D+?\\s*)",p._ESCAPE_REGEXP=/([\^$.*+?|\[\](){}])/g,p._TOKEN_REGEXP=/ccccc|cccc|ccc|cc|c|EEEEE|EEEE|EEE|EE|E|dd|d|MMMMM|MMMM|MMM|MM|M|LLLLL|LLLL|LLL|LL|L|yyyy|yy|y|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|aa|a|SSS|SS|S|zzzz|zzz|zz|z|v|ZZZ|ZZ|Z|XXX|XX|X|VV|GGGGG|GGGG|GGG|GG|G/g,p._ZULU="zulu",p._LOCAL="local",p._AUTO="auto",p._INVARIANT="invariant",p._OFFSET="offset",p._ALNUM_REGEXP="(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)",p._NON_DIGIT_REGEXP="(\\D+|\\D+\\d\\d?)",p._NON_DIGIT_OPT_REGEXP="(\\D*)",p._STR_REGEXP="(.+?)",p._TWO_DIGITS_REGEXP="(\\d\\d?)",p._THREE_DIGITS_REGEXP="(\\d{1,3})",p._FOUR_DIGITS_REGEXP="(\\d{1,4})",p._SLASH_REGEXP="(\\/)",p._PROPERTIES_MAP={MMM:{token:"months",style:"format",mLen:"abbreviated",matchIndex:0,key:"month",value:"short",regExp:p._ALNUM_REGEXP},MMMM:{token:"months",style:"format",mLen:"wide",matchIndex:0,key:"month",value:"long",regExp:p._ALNUM_REGEXP},MMMMM:{token:"months",style:"format",mLen:"narrow",matchIndex:0,key:"month",value:"narrow",regExp:p._ALNUM_REGEXP},LLL:{token:"months",style:"stand-alone",mLen:"abbreviated",matchIndex:1,key:"month",value:"short",regExp:p._ALNUM_REGEXP},LLLL:{token:"months",style:"stand-alone",mLen:"wide",matchIndex:1,key:"month",value:"long",regExp:p._ALNUM_REGEXP},LLLLL:{token:"months",style:"stand-alone",mLen:"narrow",matchIndex:1,key:"month",value:"narrow",regExp:p._ALNUM_REGEXP},E:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EEE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EEEE:{token:"days",style:"format",dLen:"wide",matchIndex:0,key:"weekday",value:"long",regExp:p._NON_DIGIT_REGEXP},EEEEE:{token:"days",style:"format",dLen:"narrow",matchIndex:0,key:"weekday",value:"narrow",regExp:p._NON_DIGIT_REGEXP},c:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},cc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},ccc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},cccc:{token:"days",style:"stand-alone",dLen:"wide",matchIndex:1,key:"weekday",value:"long",regExp:p._NON_DIGIT_REGEXP},ccccc:{token:"days",style:"stand-alone",dLen:"narrow",matchIndex:1,key:"weekday",value:"narrow",regExp:p._NON_DIGIT_REGEXP},h:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},hh:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},K:{token:"time",timePart:"hour",start1:0,end1:12,start2:0,end2:12,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},KK:{token:"time",timePart:"hour",start1:0,end1:12,start2:0,end2:12,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},H:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},HH:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},k:{token:"time",timePart:"hour",start1:0,end1:24,start2:0,end2:24,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},kk:{token:"time",timePart:"hour",start1:0,end1:24,start2:0,end2:24,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},m:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},mm:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},s:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},ss:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},S:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},SS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},SSS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},d:{token:"dayOfMonth",key:"day",value:"numeric",getPartIdx:2,regExp:p._TWO_DIGITS_REGEXP},dd:{token:"dayOfMonth",key:"day",value:"2-digit",getPartIdx:2,regExp:p._TWO_DIGITS_REGEXP},M:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},MM:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},L:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},LL:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},y:{token:"year",key:"year",value:"numeric",regExp:p._FOUR_DIGITS_REGEXP},yy:{token:"year",key:"year",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},yyyy:{token:"year",key:"year",value:"numeric",regExp:p._FOUR_DIGITS_REGEXP},a:{token:"ampm",key:"dayPeriod",value:void 0,regExp:p._WORD_REGEXP},z:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},v:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zz:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zzz:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zzzz:{token:"tzFull",key:"timeZoneName",value:"long",regExp:p._STR_REGEXP},Z:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},ZZ:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},ZZZ:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},X:{token:"tzh",key:"tzh",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},XX:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},XXX:{token:"tzhsepm",key:"tzhsepm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},VV:{token:"tzid",key:"tzid",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},G:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GG:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GGG:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GGGG:{token:"era",key:"era",value:"eraName",regExp:p._NON_DIGIT_REGEXP},GGGGG:{token:"era",key:"era",value:"eraNarrow",regExp:p._NON_DIGIT_REGEXP},"/":{token:"slash",regExp:p._SLASH_REGEXP}},p.FRACTIONAL_SECOND_MAP={a:{key:"dayPeriod",token:"dayPeriod",value:"narrow"},SSS:{key:"fractionalSecondDigits",token:"fractionalSecond",value:3},SS:{key:"fractionalSecondDigits",token:"fractionalSecond",value:2},S:{key:"fractionalSecondDigits",token:"fractionalSecond",value:1}},p._tokenMap={era:{short:"GGG",long:"GGGG",narrow:"GGGGG"},month:{short:"MMM",long:"MMMM",narrow:"MMMMM",numeric:"M","2-digit":"MM"},weekday:{short:"EEE",long:"EEEE",narrow:"EEEEE"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},fractionalSecond:{1:"S",2:"SS",3:"SSS"},timeZoneName:{short:"z",long:"zzzz"}},p._dateTimeFormats={dateStyle:{full:{year:"y",month_s:"MM",month_m:"MMMM",weekday:"EEEE",day:"d"},long:{year:"y",month_s:"MM",month_m:"MMMM",day:"d"},medium:{year:"y",month_s:"MM",month_m:"MMM",day:"d"},short:{year:"y",month_s:"M",month_m:"MMM",day:"d"}},timeStyle:{full:{hour:"h",minute:"mm",second:"ss",timeZoneName:"zzzz"},long:{hour:"h",minute:"mm",second:"ss",timeZoneName:"z"},medium:{hour:"h",minute:"mm",second:"ss"},short:{hour:"h",minute:"mm"}}},p._ALPHA_REGEXP=/([a-zA-Z]+)/,p._HOUR12_REGEXP=/h/g,p._hourCycleMap={h12:"h",h23:"H",h11:"K",h24:"k"},p._zh_tw_locales=["zh-TW","zh-Hant","zh-Hant-TW"],p._zh_tw_pm_symbols=["中午","下午","晚上"];const f=/^\s+|\s+$|\u200f|\u200e/g,m=/\s+|\u200f|\u200e/g,_=/0+$/g,g=["0","00","000"],v=/^[+-]?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?)?$|^T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?$/,y=/^[+-]?\d{4}-\d{2}-\d{2}$/;function E(e,t){return 0===e.indexOf(t)}function b(e){return(e+"").replace(f,"")}function S(e){return(e+"").replace(_,"")}function C(e){return(e+"").replace(m,"")}function O(e){return e.split(" ").join(" ").toUpperCase()}function T(e,t){let n=e+"",r=!1;return e<0&&(n=n.substr(1),r=!0),t>1&&n.length0&&(n+="."+S(T(t.getMilliseconds(),3))),n}function N(e){return e%400==0||e%100!=0&&e%4==0}function R(e,t){switch(t){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return N(e)?29:28;default:return 30}}function x(e){!1===v.test(e)&&I(e);const t=e.split("T"),n=e.indexOf("T"),r=new Date;let i,o=!1;const s=[r.getFullYear(),r.getMonth()+1,r.getDate(),0,0,0,0];if(""!==t[0]){E(t[0],"-")&&(t[0]=t[0].slice(1),o=!0);const n=t[0].split("-");for(i=0;i12)&&w(e,"month",t,1,12),2===i){const n=R(s[0],s[1]-1);(t<1||t>n)&&w(e,"day",t,1,n)}s[i]=t}o&&(s[0]=-s[0])}if(-1!==n){const n=t[1].split("."),r=n[0].split(":");for(i=0;i24)&&w(e,"hour",t,0,24),1===i&&(t<0||t>59)&&w(e,"minute",t,0,59),2===i&&(t<0||t>59)&&w(e,"second",t,0,59),s[3+i]=t}2===n.length&&n[1]&&(s[6]=parseInt(A(n[1],3,!1),10))}return s}function D(e,t){if(void 0===e)throw new Error("Internal "+t+" error. Default options missing.");return function(n,r,i,o){if(void 0!==e[n]){let o=e[n];switch(r){case"boolean":o=function(e){if("string"==typeof e)switch(e.toLowerCase().trim()){case"true":case"1":return!0;case"false":case"0":return!1;default:return e}return e}(o);break;case"string":o=String(o);break;case"number":o=Number(o);break;default:throw new Error("Internal error. Wrong value type.")}if(void 0!==i&&-1===i.indexOf(o)){const r=[];for(let e=0;e0&&(t+="."+S(T(e[6],3))),t}function j(e){return e&&"string"==typeof e?function(e){const t=x(e),n=new Date(t[0],t[1]-1,t[2],t[3],t[4],t[5],t[6]);return n.setFullYear(t[0]),n}(e):null}function M(e){const t={format:null,dateTime:null,timeZone:"",isoStrParts:null},n=v.exec(e);if(null===n&&I(e),n&&void 0===n[1]&&void 0===n[2])return t.format="local",t.dateTime=e,t.isoStrParts=x(t.dateTime),t;t.timeZone=void 0!==n[1]?n[1]:n[2],"Z"===t.timeZone?t.format="zulu":t.format="offset";const r=e.length,i=t.timeZone.length;return t.dateTime=e.substring(0,r-i),t.isoStrParts=x(t.dateTime),t}function k(e,t,n,r){const i=n?t>0:t<0,o=Math.abs(t);let s=Math.floor(o/60);const a=o%60,l=i?"-":"+";r&&(s=A(s,2,!0));let u=e+l+s;return(a>0||r)&&(u+=":"+A(a,2,!0)),u}var B={__proto__:null,_ISO_DATE_REGEXP:v,isDateOnlyIsoString:function(e){return null==e||e.trim().length>0&&y.test(e.trim())},startsWith:E,trim:b,trimRightZeros:S,trimNumber:C,toUpper:O,padZeros:T,zeroPad:A,dateToLocalIso:P,isLeapYear:N,getDaysInMonth:R,IsoStrParts:x,getGetOption:D,partsToIsoString:L,isoToLocalDate:j,getISOStrFormatInfo:M,getTimeStringFromOffset:k};let U=null;class F{static parseImpl(e,t,n,r){let i,o=0,s="",a=null;return!0===v.test(e)?(s=e,o=this._isoStrDateTimeStyle(e)):(o=this._dateTimeStyle(n),i=this._parseExact(e,t,n,r),s=i.value),a=M(s),void 0!==n.timeZone&&a.format!==p._LOCAL&&this._adjustHours(a,n),s=this._createParseISOStringFromDate(o,a,n),void 0===i?i={value:s,warning:null}:(i.value=s,i.warning=null),2===o&&(n.isoStrFormat,p._LOCAL),i}static _appendPreOrPostMatch(e,t){let n=0,r=!1;for(let i=0,o=e.length;ie.high){const t=e.displayValue+" is out of range. Enter a value between "+e.displayLow+" and "+e.displayHigh+" for "+e.name,n={cause:{code:"datetimeOutOfRange",parameterMap:{value:e.displayValue,minValue:e.displayLow,maxValue:e.displayHigh,propertyName:e.name}}};throw new RangeError(t,n)}}static _throwInvalidDateFormat(e,t,n){const r=void 0!==t.year||void 0!==t.month||void 0!==t.weekday||void 0!==t.day,i=void 0!==t.hour||void 0!==t.minute||void 0!==t.second;let o="";throw o=r&&i?"MM/dd/yy hh:mm:ss a":r?"MM/dd/yy":"hh:mm:ss a",new SyntaxError("Unexpected character(s) "+n+' encountered in the pattern "'+e+' An example of a valid pattern is "'+o+'".',{cause:{code:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:e}}})}static _throwWeekdayMismatch(e,t){const n="The weekday "+e+" does not match the date "+t,i={cause:{code:"dateToWeekdayMismatch",parameterMap:{weekday:e,date:t}}};throw new r.FormatParseError(n,i)}static _throwDateFormatMismatch(e,t,n){let i="",o="";2===n?(i='The value "'+e+'" does not match the expected date-time format "'+t+'"',o="datetimeFormatMismatch"):0===n?(i='The value "'+e+'" does not match the expected date format "'+t+'"',o="dateFormatMismatch"):(i='The value "'+e+'" does not match the expected time format "'+t+'"',o="timeFormatMismatch");const s={cause:{code:o,parameterMap:{value:e,format:t}}};throw new r.FormatParseError(i,s)}static _parseTimezoneOffset(e){const t=e.split(":"),n=new Array(2);return 2===t.length?(n[0]=parseInt(t[0],10),n[1]=parseInt(t[1],10)):2===e.length||3===e.length?(n[0]=parseInt(e,10),n[1]=0):(n[0]=parseInt(e.substr(0,3),10),n[1]=parseInt(e.substr(3),10)),n}static _expandYear(e,t){if((t=Number(t))<100){const n=e%100;t+=100*Math.floor(e/100)+(t2||t>31)&&(l=t,_=!0,d=f-1)}for(_||(d=this._getTokenIndex(a,"y"),l=o[this._getTokenIndex(a,"y")+1]),f=0;f<3;f++)if(f!==d&&o[f+1]>12){c=o[f+1],g=!0,h=f;break}if(g){for(f=0;f<3;f++)if(f!==h&&f!==d){u=o[f+1];break}void 0===u&&(u=o[this._getTokenIndex(a,"M")+1])}else d===this._getTokenIndex(a,"d")?(c=o[this._getTokenIndex(a,"y")+1],u=o[this._getTokenIndex(a,"M")+1]):d===this._getTokenIndex(a,"M")?(c=o[this._getTokenIndex(a,"d")+1],u=o[this._getTokenIndex(a,"y")+1]):(c=o[this._getTokenIndex(a,"d")+1],u=o[this._getTokenIndex(a,"M")+1]);u-=1;const v=R(l,u);let y;g&&m!==h&&u>12&&(y={name:"month",value:c,low:0,high:11,displayValue:c,displayLow:1,displayHigh:12},this._validateRange(y)),y={name:"month",value:u,low:0,high:11,displayValue:u+1,displayLow:1,displayHigh:12},this._validateRange(y),y={name:"day",value:c,low:1,high:v,displayValue:c,displayLow:1,displayHigh:v},this._validateRange(y);const E=n.twoDigitYearStart||1950;l=this._expandYear(E,l),y={name:"year",value:l,low:0,high:9999,displayValue:l,displayLow:0,displayHigh:9999},this._validateRange(y);const b=new Date(l,u,c),S=this._getWeekdayName(e,r);if(null!==S){const e=this._getDayIndex(r,S);b.getDay()!==e&&this._throwWeekdayMismatch(S,b.getDate())}if(i){const n=e.substr(p._YMD_REGEXP.lastIndex);0===n.length?b.setHours(0,0,0,0):this._parseLenienthms(b,n,t,2,r)}return{value:P(b),warning:"lenient parsing was used"}}static _parseLenientyMMMEd(e,t,n,r,i){const o=e;e=O(e);const s=r.months.format,a=r.months["stand-alone"],l=[s.wide,s.abbreviated,a.wide,a.abbreviated];let u=!1,c=[],d=0,h="";for(d=0;d2||t>31)&&(E=t,C=!0,S=d-1)}C||(S=this._getTokenIndex(y,"y"),E=parseInt(v[this._getTokenIndex(y,"y")+1],10)),b=S===this._getTokenIndex(y,"d")?parseInt(v[this._getTokenIndex(y,"y")+1],10):parseInt(v[this._getTokenIndex(y,"d")+1],10);const T=n.twoDigitYearStart||1950;E=this._expandYear(T,E),m={name:"year",value:E,low:0,high:9999,displayValue:E,displayLow:0,displayHigh:9999},this._validateRange(m);const A=new Date(E,f,b);if(null!==_){const e=this._getDayIndex(r,_);A.getDay()!==e&&this._throwWeekdayMismatch(_,A.getDate())}const w=R(E,f);if(m={name:"day",value:b,low:1,high:w,displayValue:b,displayLow:1,displayHigh:w},this._validateRange(m),i){const n=e.substr(p._YEAR_AND_DATE_REGEXP.lastIndex);0===n.length?A.setHours(0,0,0,0):this._parseLenienthms(A,n,t,2,r)}return{value:P(A),warning:"lenient parsing was used"}}static _parseLenient(e,t,n,r){let i;switch(this._dateTimeStyle(n)){case 0:i=this._parseLenientyMMMEd(e,t,n,r,!1);break;case 1:const o=new Date;this._parseLenienthms(o,e,t,1,r),i={value:P(o),warning:"lenient parsing was used"};break;case 2:i=this._parseLenientyMMMEd(e,t,n,r,!0);break;default:i={value:"",warning:"lenient parsing was used"}}const o=x(i.value),s=[o[0],o[1],o[2]],a=i.value.split("T");return i.value=T(s[0],4)+"-"+T(s[1],2)+"-"+T(s[2],2)+"T"+a[1],i}static _getNameIndex(e,t,n,r,i,o,s,a,l,u,c){let d=0;const h=e[t][i];d="months"===t?this._getMonthIndex(e,n):this._getDayIndex(e,n);const p=h[r][l],f=h[r][u],m={name:c,value:d,low:s,high:a,displayValue:parseInt(n),displayLow:p,displayHigh:f};return this._validateRange(m),d}static _validateTimePart(e,t,n,r){const i=t;i[n.timePart]=e,"h"===r||"hh"===r?12===e&&(i[n.timePart]=0):"k"===r||"kk"===r?(i.htoken=r,24===e&&(i[n.timePart]=0)):"K"!==r&&"KK"!==r||12===e&&(i[n.timePart]=0);const o={name:n.timePart,value:i[n.timePart],low:n.start1,high:n.end1,displayValue:e,displayLow:n.start2,displayHigh:n.end2};this._validateRange(o)}static _dateTimeStyle(e){const t=void 0!==e.hour||void 0!==e.minute||void 0!==e.second||void 0!==e.fractionalSecondDigits,n=void 0!==e.year||void 0!==e.month||void 0!==e.day||void 0!==e.weekday;return n&&t?2:t?1:n?0:void 0!==e.dateStyle&&void 0!==e.timeStyle?2:void 0!==e.timeStyle?1:0}static _matchPMSymbol(e,t){const n=e.locale;let r=!1,i=0;if(p._zh_tw_locales.includes(n)){const e=p._zh_tw_pm_symbols;for(i=0;i11&&"full"===s)try{return this._parseLenient(e,t,n,r)}catch(e){h={name:"month",value:m,low:0,high:11,displayValue:m+1,displayLow:1,displayHigh:12},this._validateRange(h)}break;case"year":f=this._expandYear(S,l);break;case"ampm":d=this._matchPMSymbol(r,o);break;case"tzhm":v=o.substr(-2),v=o.substr(0,3)+":"+v;break;case"tzhsepm":v=o;break;case"tzh":v=o+":00";break;case"tzid":y=o}}}const O=new Date;null===f&&(f=O.getFullYear()),null===m&&null===_?(m=O.getMonth(),_=O.getDate()):null===_&&(_=1),O.setFullYear(f,m,_);const T=R(f,m);h={name:"day",value:_,low:1,high:T,displayValue:_,displayLow:1,displayHigh:T},this._validateRange(h),1==d&&b.hour<12&&(b.hour+=12),0!=d||12!=b.hour||"k"!=b.htoken&&"kk"!=b.htoken||(b.hour=0);const A=[f,m+1,_];A[3]=b.hour,A[4]=b.minute,A[5]=b.second,A[6]=b.millisec;let w=L(A);null!==y&&(v=k("",this._getTimeZoneOffset(A,y),!1,!0)),""!==v&&(w+=v),h={name:"year",value:f,low:0,high:9999,displayValue:f,displayLow:0,displayHigh:9999},this._validateRange(h),h={name:"month",value:m,low:0,high:11,displayValue:m+1,displayLow:1,displayHigh:12},this._validateRange(h);const I=R(A[0],A[1]-1);if(h={name:"day",value:A[2],low:1,high:I,displayValue:A[2],displayLow:1,displayHigh:I},this._validateRange(h),null!==g){const e=j(w);e&&e.getDay()!==g&&this._throwWeekdayMismatch(E,e.getDate())}return{value:w}}static _isoStrDateTimeStyle(e){const t=e.indexOf("T");return-1===t?0:t>0?2:1}static _getTimeZoneOffset(e,t){return this.getLocalSystemTimeZone()===t?-new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5]).getTimezoneOffset():c({year:e[0],month:e[1],date:e[2],hours:e[3],minutes:e[4]},t)}static _getAdjustedOffset(e,t){const n=t.isoStrParts;return this._getTimeZoneOffset(n,e)}static _adjustHours(e,t){const n=e.isoStrParts;let r=0;switch(e.format){case p._OFFSET:const t=this._parseTimezoneOffset(e.timeZone),n=t[0],i=t[1];r=60*n+(n<0?-i:i);break;case p._ZULU:r=0}let i=this._getAdjustedOffset(t.timeZone,e);i-=r;const o=new Date(n[0],n[1]-1,n[2],n[3],n[4],n[4]);o.setHours(n[3]+(i/60<<0),i%60);const s=M(P(o));i=this._getAdjustedOffset(t.timeZone,s),i-=r;const a=new Date(Date.UTC(n[0],n[1]-1,n[2],n[3],n[4],n[5])),l=a.getUTCMinutes()+i;a.setUTCHours(a.getUTCHours()+(l/60<<0),l%60),n[0]=a.getUTCFullYear(),n[1]=a.getUTCMonth()+1,n[2]=a.getUTCDate(),n[3]=a.getUTCHours(),n[4]=a.getUTCMinutes(),n[5]=a.getUTCSeconds()}static _createISOStrParts(e,t){let n=0,r="";switch(e){case 0:r=T(t[0],4)+"-"+T(t[1],2)+"-"+T(t[2],2);break;case 1:r="T"+T(t[3],2)+":"+T(t[4],2)+":"+T(t[5],2),n=t[6],n>0&&(r+="."+S(n));break;default:r=T(t[0],4)+"-"+T(t[1],2)+"-"+T(t[2],2)+"T"+T(t[3],2)+":"+T(t[4],2)+":"+T(t[5],2),n=t[6],n>0&&(r+="."+S(n))}return r}static _getParseISOStringOffset(e,t){return k("",this._getTimeZoneOffset(t,e),!1,!0)}static _createParseISOStringFromDate(e,t,n){const r=D(n,"NativeDateTimeConverter.parse")("isoStrFormat","string",[p._ZULU,p._OFFSET,p._INVARIANT,p._LOCAL,p._AUTO],p._AUTO),i=t.isoStrParts,o=n.timeZone;let s=this._createISOStrParts(e,i);if(0===e)return s;switch(r){case p._OFFSET:case p._AUTO:s+=this._getParseISOStringOffset(o,i);break;case p._LOCAL:2===e&&(s+=this._getParseISOStringOffset(o,i));break;case p._ZULU:let t=0;if(t=-this._getTimeZoneOffset(i,o),0!==t){const n=new Date(Date.UTC(i[0],i[1]-1,i[2],i[3],i[4],i[5],i[6]));t=n.getUTCMinutes()+t,n.setUTCHours(n.getUTCHours()+(t/60<<0),t%60),i[0]=n.getUTCFullYear(),i[1]=n.getUTCMonth()+1,i[2]=n.getUTCDate(),i[3]=n.getUTCHours(),i[4]=n.getUTCMinutes(),i[5]=n.getUTCSeconds(),s=this._createISOStrParts(e,i)}s+="Z"}return s}static getTimeZoneCurrentDate(e){const t={year:"numeric",day:"2-digit",month:"2-digit"};e&&(t.timeZone=e);const n=Intl.DateTimeFormat("en-US",t).format(new Date).split("/");return n[2]+"-"+n[0]+"-"+n[1]}static getTimeZoneCurrentOffset(e){const t=M(P(new Date));return this._getAdjustedOffset(e,t)}static getLocalSystemTimeZone(){if(!U){const e=new Intl.DateTimeFormat("en-US");U=e.resolvedOptions().timeZone}return U}}const H=e=>new Intl.DateTimeFormat(e.locale,e),V=(e,t)=>{const n=e.resolvedOptions(),r=t.isoStrFormat??"auto",i=t.twoDigitYearStart??1950,o=t.lenientParse??"full",s=Y(e,n);return{...n,isoStrFormat:r,twoDigitYearStart:i,lenientParse:o,patternFromOptions:s}},G=(e,t)=>{let n=null;return"short"===e.dateStyle&&e.dateStyleShortYear&&(n=new Intl.DateTimeFormat(e.locale,{year:e.dateStyleShortYear,numberingSystem:t.numberingSystem,calendar:t.calendar})),n},W=(e,t,n)=>{const r=t.formatToParts(n),i=r.find((e=>"year"===e.type))?.value;return e.formatToParts(n).reduce(((e,t)=>"year"===t.type?e+(i??t.value):e+t.value),"")},K=(e,t,n,r)=>{const i=z(n,r),o=new Date(i);return t?W(e,t,o):e.format(o)},$=(e,t,n,i)=>{if(null==i||""===i)throw new r.FormatParseError("The parse value cannot be empty.",{cause:{code:"emptyParseValue"}});const o=l.getCalendar(e,n.calendar),a=Y(t,n),u=F.parseImpl(i,a,n,o),c=u.value;return c&&u.warning&&s.warn("The value "+i+" was leniently parsed to represent a date "+c),c},z=(e,t)=>{if(null==t||""===t)throw new r.FormatParseError("The format value cannot be empty.",{cause:{code:"emptyFormatValue"}});if(t.startsWith("T")){let n="";n=e?F.getTimeZoneCurrentDate(e):P(new Date).split("T")[0],t=n+t}else-1===t.indexOf("T")&&(t+="T00:00:00");if(!v.exec(t))throw new r.FormatParseError("The format value must be a valid iso string.",{cause:{code:"invalidISOString",parameterMap:{isoStr:t}}});if(e){let n=!1;F.getLocalSystemTimeZone()===e&&(n=!0);const r=t.substring(t.indexOf("T"));if(-1===r.indexOf("Z")&&-1===r.indexOf("+")&&-1===r.indexOf("-")&&!n){const n=x(t);t+=k("",c({year:n[0],month:n[1],date:n[2],hours:n[3],minutes:n[4]},e),!1,!0)}}return t.replace(/(T.*?[+-]..$)/,"$1:00")},Y=(e,t)=>{const n=new Date("2000-01-02T00:00:00");let r="",i="",o=null,s=null,a=null,l=!1,u=!1;void 0!==t.dateStyle&&(s=p._dateTimeFormats.dateStyle,s=s[t.dateStyle],l=!0),void 0!==t.timeStyle&&(a=p._dateTimeFormats.timeStyle,a=a[t.timeStyle],u=!0);const c=p._tokenMap;return e.formatToParts(n).map((({type:e,value:n})=>{switch(e){case"literal":o=n.replace(p._ALPHA_REGEXP,"'$1'");break;case"dayPeriod":o="a";break;case"hour":u?o=a[e]:(i=t[e],o=c[e][i]);let r=t.hour12;void 0===r&&(r=!1),t.hourCycle&&(o=o.replace(p._HOUR12_REGEXP,p._hourCycleMap[t.hourCycle])),!0===r&&(o=o.replace(p._HOUR12_REGEXP,"h"));break;case"month":l?o=isNaN(+n)?s.month_m:s.month_s:(i=t[e],o=c[e][i]);break;case"year":case"day":case"weekday":l?o=s[e]:(i=t[e],o=c[e][i]);break;case"minute":case"second":case"timeZoneName":u?o=a[e]:(i=t[e],o=c[e][i]);break;case"era":i=t[e]||"short",o=c[e][i];break;case"fractionalSecond":o=t.fractionalSecondDigits,o=c[e][o]}r+=o})),r};var q=a,X=i.a,J=a,Z=i._,Q=o._,ee=function e(t,n,r){return function(){for(var i=[],o=0,s=t,a=0;a=arguments.length)?l=n[a]:(l=arguments[o],o+=1),i[a]=l,X(l)||(s-=1),a+=1}return s<=0?r.apply(this,i):q(s,e(t,i,r))}},te=Q((function(e,t){return 1===e?Z(t):J(e,ee(e,[],t))}));function ne(e){const t=H(e),n=V(t,e),r=G(e,n);return{format:te(4,K)(t,r,n.timeZone),parse:te(4,$)(e.locale,t,n),resolvedOptions:n,formatter:t}}},2024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormatParseError:()=>r});class r extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,r.prototype),this.cause=t?.cause}}},9331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Layer:()=>y,LayerContext:()=>i.L,LayerManager:()=>i.b});var r=n(8661),i=n(297),o=n(396);n(6400),n(322),n(5047),n(3720),n(7265),n(6584);const s={colorScheme:({colorScheme:e})=>void 0===e?{}:{class:("dark"===e?"oj-c-colorscheme-dark oj-color-invert":"oj-c-colorscheme-light")+" oj-c-colorscheme-dependent"},scale:({scale:e})=>void 0===e?{}:{class:("sm"===e?"oj-scale-sm":"md"===e?"oj-scale-md":"oj-scale-lg")+" oj-scale-dependent"}};var a=n(2918),l=n(1192),u=a._,c=l._,d=a.a,h=function(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return d(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return d(n)&&d(r)?t:d(n)?c((function(t,n){return e(t,r,n)})):d(r)?c((function(t,r){return e(n,t,r)})):u((function(t){return e(n,r,t)}));default:return d(n)&&d(r)&&d(i)?t:d(n)&&d(r)?c((function(t,n){return e(t,n,i)})):d(n)&&d(i)?c((function(t,n){return e(t,r,n)})):d(r)&&d(i)?c((function(t,r){return e(n,t,r)})):d(n)?u((function(t){return e(t,r,i)})):d(r)?u((function(t){return e(n,t,i)})):d(i)?u((function(t){return e(n,r,t)})):e(n,r,i)}}},p=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)},f=function(e){return"[object Object]"===Object.prototype.toString.call(e)},m=h((function(e,t,n){var r,i={};for(r in t)p(r,t)&&(i[r]=p(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)p(r,n)&&!p(r,i)&&(i[r]=n[r]);return i})),_=h((function e(t,n,r){return m((function(n,r,i){return f(r)&&f(i)?e(t,r,i):t(n,r,i)}),n,r)}));const g=(e,t,n)=>"class"===e?[t,n].filter(Boolean).join(" "):n;const v="__oj_logical_parent",y=e=>{const t=(0,r.useContext)(i.L),n=t.getHost?.(),a=(0,r.useMemo)((()=>n),[n]),[l,u]=(0,r.useState)(null),c=function(){const e=(0,o.useContext)(i.E).colorScheme,t=(0,o.useContext)(i.E).scale,n=t!==i.D.scale?t:void 0,r=(e=>t=>e.reduce(((e,n)=>_(g,e,n(t))),{}))([...Object.values(s)]),{class:a}=r({colorScheme:e,scale:n});return a}();return(0,r.useLayoutEffect)((()=>{if(!a)return;const t=(a.ownerDocument??document).createElement("div");return e.logicalParentRef&&(t[v]=e.logicalParentRef.current),a.appendChild(t),u(t),()=>{a&&t&&a.contains(t)&&(delete t[v],a.removeChild(t)),u(null)}}),[a]),l&&(l.className=c),l&&(0,r.createPortal)(e.children,l)}},2918:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,a:()=>r}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var r=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]},i=r,o=function(e){return function t(n){return 0===arguments.length||i(n)?t:e.apply(this,arguments)}}},1192:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(2918),i=r._,o=r.a,s=function(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?i((function(t){return e(t,r)})):o(r)?i((function(t){return e(n,t)})):e(n,r)}}}},7038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TabbableModeContext:()=>o,useTabbableMode:()=>s});var r=n(6400),i=n(396);const o=(0,r.createContext)({isTabbable:!0});function s(){const{isTabbable:e}=(0,i.useContext)(o);return{isTabbable:e,tabbableModeProps:{tabIndex:!1===e?-1:0}}}},297:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,E:()=>u,L:()=>c,R:()=>f,a:()=>m,b:()=>h});var r=n(6400),i=(n(322),n(3720)),o=n(6584),s=n(396),a=n(8661);const l={user:{locale:document.documentElement.getAttribute("lang")||"en",direction:"rtl"===document.documentElement.getAttribute("dir")?.toLowerCase()?"rtl":"ltr",forcedColors:window.matchMedia?.("(forced-colors: active)")?.matches?"active":"none"},theme:i.V,colorScheme:"light",scale:"lg",currentBgColor:void 0},u=(0,r.createContext)(l),c=(0,r.createContext)({}),d=(0,a.forwardRef)(((e,t)=>(0,o.jsx)("div",{id:"__oj_layerhost_container",ref:t})));function h({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useCallback)((e=>{null!==e&&n(e)}),[]);return(0,o.jsx)(c.Consumer,{children:n=>{const i=t?{getHost:()=>t}:{},s=n.getHost?n:i;return(0,o.jsxs)(c.Provider,{value:s,children:[e,!n.getHost&&(0,o.jsx)(d,{ref:r})]})}})}function p(e,t){const n=Object.assign({},e.user,t?.user),r=Object.assign({},e.theme,t?.theme),i=Object.assign({},e.translations),o=t?.translations||{};return Object.keys(o).forEach((e=>{let t=o[e];i[e]&&(t=Object.assign({},i[e],t)),i[e]=t})),{user:n,theme:r,translations:i,colorScheme:t?.colorScheme??e.colorScheme,scale:t?.scale??e.scale,currentBgColor:t?.currentBgColor??e.currentBgColor}}function f({children:e,environment:t}){const n=(0,s.useMemo)((()=>p(l,t)),[t]);return(0,o.jsx)(u.Provider,{value:n,children:(0,o.jsx)(h,{children:e})})}function m({children:e,environment:t}){const n=(0,s.useContext)(u),r=(0,s.useMemo)((()=>p(n,t)),[n,t]);return(0,o.jsx)(u.Provider,{value:r,children:e})}d.displayName="Forwarded"},3959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var r=["ar","ar-XB","bg","bs","bs-Cyrl","cs","da","de","el","en","en-XA","en-XC","es","et","fi","fr","fr-CA","he","hr","hu","is","it","ja","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sk","sl","sr","sr-Latn","sv","th","tr","uk","vi","zh-Hans","zh-Hant"]},26:(e,t,n)=>{"use strict";function r(e,t){let n=null;for(let r=0;null===n&&r1;){r.pop();const e=r.join("-");t.has(e)&&(n=e)}return n}n.r(t),n.d(t,{matchTranslationBundle:()=>r})},4250:()=>{var e,t,n;t=(e=function(){"use strict";var e={};function t(e){return 0===e.indexOf("./")?e.substr(2):e}function n(){if(!this._resolvedModule){var e=r(this.deps),t=this.module;this._resolvedModule="function"==typeof t?t.apply(null,e):t}return this._resolvedModule}function r(t){return t.map((function(t){return e[t].resolve()}))}return{define:function(r,i,o){e[r]={deps:i.map(t),module:o,resolve:n}},require:function(e,t){var n=r(e);t.apply(null,n)}}}()).define,n=e.require,t("dataTransfer",[],(function(){"use strict";return function(e,t){var n={},r="none",i="uninitialized",o=t||function(){return"readwrite"},s=["none","copy","link","move"],a=["uninitialized","none","copy","copylink","copymove","link","linkmove","move","all"];function l(e){return e?e.toString().toLowerCase():null}this.files={},this.items={},this.getData=function(e){if("protected"!==o()){var t=l(e);return t&&n.hasOwnProperty(t)?n[t]:null}return""},this.setData=function(e,t){if("readwrite"===o()){var r=l(e);r&&(n[r]=t.toString())}},this.clearData=function(e){if("readwrite"===o()){var t=l(e);t?n.hasOwnProperty(t)&&delete n[t]:n={}}},this.setDragImage=function(t,n,r){e&&e(t,n,r)},Object.defineProperty(this,"types",{get:function(){var e=Object.keys(n);return e.item=function(t){return t>=0&&t=0},e}}),Object.defineProperty(this,"dropEffect",{get:function(){return r},set:function(e){e=e.toLowerCase(),s.indexOf(e)>=0&&(r=e)}}),Object.defineProperty(this,"effectAllowed",{get:function(){return i},set:function(e){e=e.toLowerCase(),a.indexOf(e)>=0&&(i=e)}})}})),t("dragImage",[],(function(){"use strict";return function(e,t,n){var r=function(e){var t=null!=e.parentNode,n=e.style.position,r=e.style.top;t||(e.style.position="fixed",e.style.top="10000px",document.body.appendChild(e));var i=e.cloneNode(!0);return i.id=e.id+"_dragimage",i.style.opacity=.7,i.style.position="fixed",i.style.width=e.offsetWidth+"px",i.style.height=e.offsetHeight+"px",i.style.zIndex=l(document.body)+1,i.style.visibility="hidden",t||(document.body.removeChild(e),e.style.position=n,e.style.top=r),i}(e),i=t,o=n,s=e.scrollLeft,a=e.scrollTop;function l(e){var t=0;if(e.children)for(var n=0;ne.clientWidth||e.scrollHeight>e.clientHeight)}return!1}(e))return!1;var i,o,s,a,l,u=e.scrollLeft,c=e.scrollTop;if(e===document.documentElement)u=u||document.body.scrollLeft,c=c||document.body.scrollTop;else{var d=e.getBoundingClientRect();n-=Math.round(d.left),r-=Math.round(d.top)}return i=t(e.clientWidth,e.scrollWidth,n,u),o=t(e.clientHeight,e.scrollHeight,r,c),!(!i&&!o||(a=u+i,l=c+o,(s=e).scrollLeft=a,s.scrollTop=l,s===document.documentElement&&(document.body.scrollLeft=a,document.body.scrollTop=l),0))}function t(e,t,n,r){if(n>e-12&&n=0&&n<12&&r>0)return-Math.min(r,15);return 0}return{checkAutoScroll:function(t,n,r){for(var i=t;null!=i&&!e(i,n,r);)i=i.parentNode;return i}}})),t("dragController",["./dataTransfer","./dragImage","./eventDispatcher","./autoScroller"],(function(e,t,n,r){"use strict";return function(){var i,o,s,a,l,u,c,d=-1,h=-1,p="none";function f(){return u}function m(e,t,r,i,o){return u=function(e){return"dragstart"===e?"readwrite":"drop"===e?"readonly":"protected"}(e),"dragstart"!==e&&(i.dropEffect=function(e,t){return"drag"===e||"dragleave"===e?"none":"dragenter"===e||"dragover"===e?"none"===t?"none":"move"===t?"move":0===t.indexOf("link")?"link":"copy":p}(e,i.effectAllowed)),r||(r={}),r.target=t,r.relatedTarget=o,n.dispatch(e,r,i)}function _(e,n,r){o&&(o.end(),o=null),e&&e.cloneNode&&(c={x:n,y:r},(o=new t(e,n,r)).start())}function g(){return null!=i}function v(e){var t=e.clientX,n=e.clientY;return t===d&&n===h?a:document.elementFromPoint(t,n)}function y(e){if(e){var t=i.effectAllowed;p="uninitialized"===t||"all"===t||t.indexOf(i.dropEffect)>=0?i.dropEffect:"none"}else p=E(a)?"copy":"none"}function E(e){return e&&("TEXTAREA"===e.nodeName||"INPUT"===e.nodeName&&"text"===e.type)}function b(e){void 0!==e._dndSavedCursor&&(e.style.cursor=e._dndSavedCursor,delete e._dndSavedCursor)}function S(e){C(e,!0)}function C(e,t){if(g()){o.show(!1);var n=v(e);n&&(b(n),function(e,t,n){T(n)||m("dragleave",e,t,i)}(n,e,t),O(n,e,t)),m("dragend",s,e,i),A()}}function O(e,t,n){if(T(n)){var r=m("drop",e,t,i);return r?p=i.dropEffect:E(e)?function(e){var t=i.getData("text");if(t&&""!==t){var n=e.value,r=e.selectionEnd;e.value=n.substring(0,r)+t+n.substring(r)}}(e):p="none",r}return!0}function T(e){return!e&&"none"!==p}function A(){_(null,0,0),i=null,s=null,a=null,p="none",document.body.style.cursor=l,l=null}this.start=function(t,n,r){var a=new e(_,f);return m("dragstart",t,r,a)?{dragState:"canceled"}:function(e,t){return 0!==e.types.length&&(!t||t(e,o))}(a,n)?function(e,t,n){return i=e,s=t,l=document.body.style.cursor,function(e,t){if(null==o){var n=e.getBoundingClientRect(),r=t?t.clientX:n.left,i=t?t.clientY:n.top;_(e,r-n.left,i-n.top)}}(t,n),{dragState:"started",dataTransfer:e}}(a,t,r):{dataTransfer:a}},this.drag=function(e){if(e&&g()){if(o.show(!1),function(e){return m("drag",s,e,i)}(e))return S(e),!0;try{var t=v(e);!function(e,t){e!==a&&(e&&m("dragenter",e,t,i,a),a&&(b(a),m("dragleave",a,t,i,e)))}(t,e),function(e,t){e&&y(m("dragover",e,t,i))}(t,e),function(e,t){(function(e){o.move(e.clientX,e.clientY)})(t),function(e){var t;(t="none"===p?"not-allowed":"copy"===p?"copy":"link"===p?"alias":"default")!==document.body.style.cursor&&(document.body.style.cursor=t),function(e,t){e&&e.style.cursor!==t&&(void 0===e._dndSavedCursor&&(e._dndSavedCursor=e.style.cursor),e.style.cursor=t)}(e,t)}(e),function(e,t){r.checkAutoScroll(e,t.clientX,t.clientY)&&(d=-1,h=-1)}(e,t)}(t,e),function(e,t){a=e,d=t.clientX,h=t.clientY}(t,e)}finally{o.show(!0)}}return!1},this.end=function(e){C(e,!1)},this.cancel=S,this.handleDndEvent=function(e){var t=e.target,r=e.relatedTarget,s=n.getMouseEventProps(e);switch(e.type){case"drag":o&&o.show(!0),m("drag",t,s,i);break;case"dragenter":m("dragenter",t,s,i,r);break;case"dragleave":m("dragleave",t,s,i,r);break;case"dragover":var a=c.x>0?s.clientX-50:s.clientX+10,l=s.clientY;o.move(a,l);var u=m("dragover",t,s,i);y(u),u&&e.preventDefault();break;case"dragend":o&&o.show(!1),m("dragend",t,s,i,r),A(),e.dataTransfer.clearData();break;case"drop":o&&o.show(!1),(u=O(t,s,!1))&&e.preventDefault()}}}})),t("args",[],(function(){"use strict";function e(e,t){if(!t)throw new Error("required argument '"+e+"' not specified")}return{requiredString:function(t,n){if(e(t,n),"string"!=typeof n)throw new Error("argument '"+t+"' must be a string")},required:e}})),t("glassPane",["./eventDispatcher"],(function(e){"use strict";return function(t,n){var r,i,o;function s(){try{t(i)}finally{}}function a(t){t.target===document.body&&t.buttons!==o&&(i=e.getMouseEventProps(t),n(i,!0))}function l(t){void 0===o&&(o=t.buttons),t.stopPropagation(),t.preventDefault(),i=e.getMouseEventProps(t),s()}function u(t){t.stopPropagation(),t.preventDefault(),i=e.getMouseEventProps(t),n(i,!1)}this.start=function(e){i=e,document.body.addEventListener("mouseenter",a,!0),document.body.addEventListener("mousemove",l,!0),document.body.addEventListener("mouseup",u,!0),r=window.setInterval(s,200)},this.end=function(){r&&(window.clearInterval(r),r=null),document.body.removeEventListener("mouseenter",a,!0),document.body.removeEventListener("mousemove",l,!0),document.body.removeEventListener("mouseup",u,!0)},this.getLastInputProps=function(){return i}}})),t("desktopDragDriver",["./args","./glassPane","./eventDispatcher"],(function(e,t,n){"use strict";return function(r,i){var o,s,a;function l(){var e=navigator.userAgent.toLowerCase();(e.indexOf("trident")>0||e.indexOf("edge")>0||e.indexOf("phantomjs")>0)&&(i.addEventListener("dragstart",d,!0),i.addEventListener("drag",v,!0),i.addEventListener("dragover",v,!0),i.addEventListener("dragend",v,!0),i.addEventListener("dragenter",v,!0),i.addEventListener("dragleave",v,!0),i.addEventListener("drop",v,!0),i.addEventListener("pointerdown",c,!0))}function u(){i.removeEventListener("dragstart",d,!0),i.removeEventListener("drag",v,!0),i.removeEventListener("dragover",v,!0),i.removeEventListener("dragend",v,!0),i.removeEventListener("dragenter",v,!0),i.removeEventListener("dragleave",v,!0),i.removeEventListener("drop",v,!0),i.removeEventListener("pointerdown",c,!0)}function c(e){s=e.pointerType}function d(e){if("touch"===s){var i=e.target;i.style.visibility="hidden",function(e){if(!e.__isPseudo){e.stopPropagation();for(var t=e.target;t&&!t.draggable;)t=t.parentNode;if(t){a=t;var i=n.getMouseEventProps(e);"started"!==r.start(a,null,i).dragState&&(e.preventDefault(),a=null)}}}(e),setTimeout((function(){i.style.visibility="visible"}),0)}else!function(e){var i,s,a,c=n.getMouseEventProps(e);e.stopPropagation(),u();try{i=r.start(e.target,h,c)}finally{l()}"canceled"===i.dragState?e.preventDefault():"started"===i.dragState?function(e,n,r){e.preventDefault(),function(e){(o=new t(m,_)).start(e),document.body.addEventListener("keydown",g,!0)}(r)}(e,0,c):(p(s=i.dataTransfer,a=e,"text"),p(s,a,"url"))}(e)}function h(e,t){return null!=t||function(e){var t=e.types;if(0===t.length)return!1;for(var n=0;n0||function(e,t){for(var n=document.documentElement,i=0;i{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.ui.focusable=function(t,n){var r,i,o,s,a,l=t.nodeName.toLowerCase();return"area"===l?(i=(r=t.parentNode).name,!(!t.href||!i||"map"!==r.nodeName.toLowerCase())&&(o=e("img[usemap='#"+i+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(s=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(s=!a.disabled):s="a"===l&&t.href||n,s&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable})?r.apply(t,i):r)||(e.exports=o)}()},5637:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,i):r)||(e.exports=o)}()},5955:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],r=function(e){return function(){var t,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,u=e.fn.position;function c(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function d(t,n){return parseInt(e.css(t,n),10)||0}function h(e){return null!=e&&e===e.window}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,r,i=e("
"),o=i.children()[0];return e("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),t=n-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===n||"auto"===n&&t.width0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};pn(r(l),r(c))?d.important="horizontal":d.important="vertical",t.using.call(this,e,d)}),s.offset(e.extend(T,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,u=a+t.collisionWidth-s-o;t.collisionWidth>s?l>0&&u<=0?(r=e.left+l+t.collisionWidth-s-o,e.left+=l-r):e.left=u>0&&l<=0?o:l>u?o+s-t.collisionWidth:o:l>0?e.left+=l:u>0?e.left-=u:e.left=n(e.left-a,e.left)},top:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollTop:i.offset.top,s=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,u=a+t.collisionHeight-s-o;t.collisionHeight>s?l>0&&u<=0?(r=e.top+l+t.collisionHeight-s-o,e.top+=l-r):e.top=u>0&&l<=0?o:l>u?o+s-t.collisionHeight:o:l>0?e.top+=l:u>0?e.top-=u:e.top=n(e.top-a,e.top)}},flip:{left:function(e,t){var n,i,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,d=u+t.collisionWidth-a-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];c<0?((n=e.left+h+p+f+t.collisionWidth-a-s)<0||n0&&((i=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||r(i)0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||r(n){var r,i,o;!function(s){"use strict";i=[n(9755),n(8615),n(2487)],void 0===(o="function"==typeof(r=function(e){return e.extend(e.expr.pseudos,{tabbable:function(t){var n=e.attr(t,"tabindex"),r=null!=n;return(!r||n>=0)&&e.ui.focusable(t,r)}})})?r.apply(t,i):r)||(e.exports=o)}()},3822:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({uniqueId:(t=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}});var t})?r.apply(t,i):r)||(e.exports=o)}()},8615:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.13.2"})?r.apply(t,i):r)||(e.exports=o)}()},347:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],r=function(e){var t,n=0,r=Array.prototype.hasOwnProperty,i=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove");t(n)}),e.widget=function(t,n,r){var i,o,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),Array.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr.pseudos[u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},i=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(r,(function(e,t){a[e]="function"==typeof t?function(){function r(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=r,this._superApply=i,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(s,{widgetEventPrefix:i&&s.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:u}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,o,s=i.call(arguments,1),a=0,l=s.length;a",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},r=t.split("."),t=r.shift(),r.length){for(i=s[t]=e.widget.extend({},this.options[t]),o=0;o{var r,i;r=[t,n(7006),n(9755),n(3215),n(9279),n(9831)],i=function(e,t,n,r,i,o){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;const s="translate(",a=") translateZ(0)",l={};t._registerLegacyNamespaceProp("AnimationUtils",l),l._getName=function(e,t){if(!l._nameMap){l._nameMap={};var n=l._nameMap,r=e.style;n.backfaceVisibility=void 0!==r.webkitBackfaceVisibility?"webkitBackfaceVisibility":"backfaceVisibility",n.transform=void 0!==r.webkitTransform?"webkitTransform":"transform",n.transformOrigin=void 0!==r.webkitTransformOrigin?"webkitTransformOrigin":"transformOrigin",n.transition=void 0!==r.webkitTransition?"webkitTransition":"transition",n.transitionend=void 0!==r.webkitTransition?"webkitTransitionEnd":"transitionend"}return l._nameMap[t]||t},l._getElementStyle=function(e,t){return e.style[l._getName(e,t)]},l._setElementStyle=function(e,t,n){e.style[l._getName(e,t)]=n},l._animate=function(e,t,r,i,o,s){var a=[].concat(o),u=function(n,u){var c=function(e){var t=0===e.propertyName.indexOf("-webkit-")?e.propertyName.substr(8):e.propertyName;t=l._getCamelCasePropName(t);var n=a.indexOf(t);n>-1&&(a.length>1?a.splice(n,1):p())},d=0,h=!1;function p(){h||(d&&(window.cancelAnimationFrame(d),d=0),e.removeEventListener(l._getName(e,"transitionend"),c),n&&n(!0),h=!0)}null==r&&(r={}),null==r.css&&(r.css={}),r.css.transition=l._createTransitionValue(e,o,i);var f=l._saveStyle(e,t,r,i,s||o);l._applyState(e,t,f>1),e.addEventListener(l._getName(e,"transitionend"),c);var m=i.duration,_=i.delay,g=i._skipPromise;function v(){d=0,l._applyState(e,r,f>1)}null==t?v():(i._noReflow||(l._x=e.offsetWidth),d=window.requestAnimationFrame(v));var y=l._getTotalTiming(m,_);g||setTimeout(p,y+100)};return i._skipPromise?(u(null),null):new Promise(u).then((function(){t&&t.addClass&&n(e).removeClass(t.addClass),r&&r.addClass&&n(e).removeClass(r.addClass),l._restoreStyle(e)}))},l._saveCssValues=function(e,t,n,r){for(var i=Object.keys(t),o=Object.prototype.hasOwnProperty,s=0;s1)t._ojEffectCount=n-1;else{var r=t._ojSavedStyle;if(r){for(var i=Object.keys(r),o=0;o=0){for(var t="",n=e.split("-"),r=0;r0;){var i=n.substr(0,r+1);t.push(i.trim()),r=(n=n.slice(r+1)).indexOf(")")}return t},l._getTransformFuncName=function(e){var t=e.indexOf("(");return t>=1?e.substr(0,t):e},l._applyTransform=function(e,t){for(var n=l._getElementStyle(e,"transform"),r=l._splitTransform(n),i=l._splitTransform(t),o=[],s=0;s-1?t:1e3*t},l._getTotalTiming=function(e,t){var n=l._getTimingValue(e);return n>0?n+(t?l._getTimingValue(t):0):0},l._calcCssTime=function(e,t,n){for(var r=e.split(","),i=t.split(","),o=n.split(","),s=r.length,a=i.length,u=o.length,c=0,d=0;d0?setTimeout(m,t+100):m()}));setTimeout((function(){O&&(window.cancelAnimationFrame(O),O=0,m())}),1e3)}))},l._mergeOptions=function(e,t){return null==l._defaultOptions&&(l._defaultOptions=i.parseJSONFromFontFamily("oj-animation-effect-default-options")),n.extend({duration:"400ms"},l._defaultOptions?l._defaultOptions[e]:null,t)},l._createTransitionValue=function(e,t,n){var r="";if(t)for(var i=0;i0?", ":"")+l._getHyphenatedPropName(o)+" "+n.duration,n.timingFunction&&(r+=" "+n.timingFunction),n.delay&&(r+=" "+n.delay)}return r},l._fade=function(e,t,n,r,i){var o=l._mergeOptions(n,t),s={css:{opacity:r}},a={css:{opacity:i}};return o&&(o.startOpacity&&(s.css.opacity=o.startOpacity),o.endOpacity&&(a.css.opacity=o.endOpacity)),l._animate(e,s,a,o,["opacity"])},l.fadeIn=function(e,t){return l._fade(e,t,"fadeIn",0,1)},l.fadeOut=function(e,t){return l._fade(e,t,"fadeOut",1,0)},l.expand=function(e,t){return l._expandCollapse(e,t,!0)},l.collapse=function(e,t){return l._expandCollapse(e,t,!1)},l._wrapRowContent=function(e,t){var n,r,i=[],o=e.children,s=[],a=[];for(e._ojSavedHeight=e.style.height,r=0;r").css({position:"absolute",overflow:"hidden"}),c=n("
"),d="static"===window.getComputedStyle(e).position?{left:e.offsetLeft,top:e.offsetTop}:{left:0,top:0};e.insertBefore(u[0],e.firstChild),u.css({left:d.left+"px",top:d.top+"px",width:s+"px",height:a+"px"}),u.prepend(c);var h=i.css,p=o.css,f="transform";return l._setRippleOptions(h,c,u,r),h[f]="scale(0) translateZ(0)",h.opacity=r.startOpacity||c.css("opacity"),p[f]="scale(1) translateZ(0)",p.opacity=r.endOpacity||0,r.persist="all",l._animate(c[0],i,o,r,[f,"opacity"]).then((function(){u.remove()}))},l._setRippleOptions=function(e,t,n,r){var i=e,o=t.width(),s=n.width(),a=n.height();if(r.diameter){var u=r.diameter,c=parseInt(u,10);isNaN(c)||(o="%"===u.charAt(u.length-1)?Math.floor(Math.min(s,a)*(c/100)):c,i.width=o+"px",i.height=o+"px")}var d,h="static"===n.css("position")?n.position():{left:0,top:0};null!=(d=l._calcRippleOffset(r.offsetX,o,s,h.left))&&(i.left=d+"px"),null!=(d=l._calcRippleOffset(r.offsetY,o,a,h.top))&&(i.top=d+"px"),r.color&&(i.backgroundColor=r.color)},l._calcRippleOffset=function(e,t,n,r){var i,o=e||"50%",s=parseInt(o,10);return isNaN(s)||(i="%"===o.charAt(o.length-1)?n*(s/100)-t/2:s-t/2,i=Math.floor(i+r)),i},l._removeRipple=function(e,t){var r=t||{},i=r.removeEffect||"fadeOut",s=n(".oj-animation-rippler",e);if(0!==s.length)return i in{fadeOut:1,collapse:1,zoomOut:1,slideOut:1}?l[i](s,r).then((function(){s.remove()})):s.remove();o.warn("No rippler so returning")},l._calcBackfaceAngle=function(e){var t,n=e.match(/^([+-]?\d*\.?\d*)(.*)$/),r=parseFloat(n[1]),i=n[2];switch(i){case"deg":t=r-180+i;break;case"grad":t=r-200+i;break;case"rad":t=r-3.1416+i;break;case"turn":t=r-.5+i;break;default:o.error("Unknown angle unit in flip animation: "+i)}return t},l._flip=function(e,t,r,i,o){if(t&&"children"===t.flipTarget){var s,a=[],u=n(e).children(),c=n.extend({},t);delete c.flipTarget;var d=n.extend({},c);d.startAngle=l._calcBackfaceAngle(t.startAngle||i),d.endAngle=l._calcBackfaceAngle(t.endAngle||o);for(var h=0;hn.toElementWaitTime?o("toElement not found in DOM after toElementWaitTime has expired"):setTimeout((function(){l._doAnimateHero(e,t,n,r+100,i,o)}),100);function v(){n.showToElement(f),l._removeHeroParent(_)}},l.animateHero=function(e,t){var n=e,r={toElementWaitTime:5e3,createClonedElement:l._defaultHeroCreateClonedElement,hideFromAndToElements:l._defaultHeroHideFromAndToElements,animateClonedElement:l._defaultHeroAnimateClonedElement,showToElement:l._defaultHeroShowToElement,delay:"0s",duration:"400ms",timingFunction:"ease"};return Object.assign(r,t),new Promise((function(e,i){n?t.toElementSelector?l._doAnimateHero(n,t.toElementSelector,r,0,e,i):i("No options.toElementSelector specified"):i("No element specified")}))};const u=l.startAnimation,c=l.fadeIn,d=l.fadeOut,h=l.expand,p=l.collapse,f=l.zoomIn,m=l.zoomOut,_=l.slideIn,g=l.slideOut,v=l.ripple,y=l.flipIn,E=l.flipOut,b=l.addTransition,S=l.animateHero;e.addTransition=b,e.animateHero=S,e.collapse=p,e.expand=h,e.fadeIn=c,e.fadeOut=d,e.flipIn=y,e.flipOut=E,e.ripple=v,e.slideIn=_,e.slideOut=g,e.startAnimation=u,e.zoomIn=f,e.zoomOut=m,Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,r),void 0===i||(e.exports=i)},370:(e,t,n)=>{var r,i;r=[n(7006),n(334),n(1734),n(998),n(7399),n(9831)],void 0===(i=function(e,t,n,r,i,o){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;class s{constructor(e,t){var n;this.data=e,this.options=t,this.Item=class{constructor(e,t){this.metadata=e,this.data=t,this[s._METADATA]=e,this[s._DATA]=t}},this.ItemMetadata=class{constructor(e){this.key=e,this[s._KEY]=e}},this.FetchByKeysResults=class{constructor(e,t){this.fetchParameters=e,this.results=t,this[s._FETCHPARAMETERS]=e,this[s._RESULTS]=t}},this.ContainsKeysResults=class{constructor(e,t){this.containsParameters=e,this.results=t,this[s._CONTAINSPARAMETERS]=e,this[s._RESULTS]=t}},this.FetchByOffsetResults=class{constructor(e,t,n,r){this.fetchParameters=e,this.results=t,this.done=n,this.totalFilteredRowCount=r,this[s._FETCHPARAMETERS]=e,this[s._RESULTS]=t,this[s._DONE]=n,"enabled"===e?.includeFilteredRowCount&&(this[s._TOTALFILTEREDROWCOUNR]=r)}},this.FetchListParameters=class{constructor(e,t,n,r){this.size=e,this.sortCriteria=t,this.filterCriterion=n,this.attributes=r,this[s._SIZE]=e,this[s._SORTCRITERIA]=t,this[s._FILTERCRITERION]=n,this[s._ATTRIBUTES]=r}},this.FetchListResult=class{constructor(e,t,n){this.fetchParameters=e,this.data=t,this.metadata=n,this[s._FETCHPARAMETERS]=e,this[s._DATA]=t,this[s._METADATA]=n}},this.AsyncIterable=(n=class{constructor(e){this._asyncIterator=e,this[Symbol.asyncIterator]=()=>this._asyncIterator}},Symbol.asyncIterator,n),this.AsyncIterator=class{constructor(e,t,n,r,i){this._parent=e,this._nextFunc=t,this._params=n,this._offset=r,this._signal=i,this._clientId=n&&n.clientId||Symbol(),e._mapClientIdToIteratorInfo.set(this._clientId,{offset:r,rowKey:null,data:null,filterCriterion:n?.filterCriterion,sortCriteria:n?.sortCriteria,fetchedRowKeys:[]}),this._cacheObj={},this._cacheObj[s._MUTATIONSEQUENCENUM]=e._mutationSequenceNum}next(){const e=this._signal;if(this._signal){const e=this._signal.reason;if(this._signal.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((t,n)=>{if(e){const t=e.reason;e.addEventListener("abort",(e=>n(new DOMException(t,"AbortError"))))}const r=this._parent._mapClientIdToIteratorInfo.get(this._clientId),i=r?r.offset:null,o=this._nextFunc(this._params,i,!1,this._cacheObj);Object.defineProperty(o.result.value,"totalFilteredRowCount",{get:()=>{if("enabled"===this._params?.includeFilteredRowCount)return(void 0===this._totalFilteredRowCount||this._parent._resetTotalFilteredRowCount)&&(this._totalFilteredRowCount=this._parent._getTotalFilteredRowCount(this._params),this._parent._resetTotalFilteredRowCount=!1),this._totalFilteredRowCount},enumerable:!0});const s=o.result.value.metadata?.length>0?o.result.value.metadata[o.result.value.metadata.length-1]?.key:null,a=o.result.value.data?.length>0?o.result.value.data[o.result.value.data.length-1]:null,l=o.result.value.metadata?.map((e=>e.key));return this._parent._mapClientIdToIteratorInfo.set(this._clientId,{offset:o.offset,rowKey:s,data:a,filterCriterion:this._params?.filterCriterion,sortCriteria:this._params?.sortCriteria,fetchedRowKeys:l?r?.fetchedRowKeys?r.fetchedRowKeys.concat(l):l:[]}),t(o.result)}))}},this.AsyncIteratorYieldResult=class{constructor(e){this.value=e,this[s._VALUE]=e,this[s._DONE]=!1}},this.AsyncIteratorReturnResult=class{constructor(e){this.value=e,this[s._VALUE]=e,this[s._DONE]=!0}},this.DataProviderMutationEventDetail=class{constructor(e,t,n,r){this._parent=e,this.add=t,this.remove=n,this.update=r,this[s._ADD]=t,this[s._REMOVE]=n,this[s._UPDATE]=r,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this.DataProviderOperationEventDetail=class{constructor(e,t,n,r,i){this._parent=e,this.keys=t,this.metadata=n,this.data=r,this.indexes=i,this[s._KEYS]=t,this[s._METADATA]=n,this[s._DATA]=r,this[s._INDEXES]=i,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this.DataProviderAddOperationEventDetail=class{constructor(e,t,n,r,i,o,a){this._parent=e,this.keys=t,this.afterKeys=n,this.addBeforeKeys=r,this.metadata=i,this.data=o,this.indexes=a,this[s._KEYS]=t,this[s._AFTERKEYS]=n,this[s._ADDBEFOREKEYS]=r,this[s._METADATA]=i,this[s._DATA]=o,this[s._INDEXES]=a,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this._sequenceNum=0,this._mutationSequenceNum=0,this._mapClientIdToIteratorInfo=new Map,this._subscribeObservableArray(e),null!=t&&null!=t[s._KEYS]&&(this._keysSpecified=!0,this._keys=t[s._KEYS])}containsKeys(e){return this.fetchByKeys(e).then((t=>{const r=new n;return e[s._KEYS].forEach((e=>{null!=t[s._RESULTS].get(e)&&r.add(e)})),Promise.resolve(new this.ContainsKeysResults(e,r))}))}fetchByKeys(n){const r=n?n.signal:void 0;if(r){const e=r.reason;if(r.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((i,o)=>{if(r){const e=r.reason;r.addEventListener("abort",(t=>o(new DOMException(e,"AbortError"))))}this._generateKeysIfNeeded();const a=new t,l=this._getKeys(),u=null!=n?n[s._ATTRIBUTES]:null;let c,d=0;if(n){const t=this._getRowData();return n[s._KEYS].forEach((n=>{for(c=null,d=0;d=0){let e=t[c];if(u&&u.length>0){const t={};this._filterRowAttributes(u,e,t),e=t}a.set(n,new this.Item(new this.ItemMetadata(n),e))}})),i(new this.FetchByKeysResults(n,a))}return o("Keys are a required parameter")}))}fetchByOffset(e){const t=e?e.signal:void 0;if(t){const e=t.reason;if(t.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((n,r)=>{if(t){const e=t.reason;t.addEventListener("abort",(t=>r(new DOMException(e,"AbortError"))))}const i=null!=e?e[s._SIZE]:-1,o=null!=e?e[s._SORTCRITERIA]:null,a=null!=e&&e[s._OFFSET]>0?e[s._OFFSET]:0,l=null!=e?e[s._ATTRIBUTES]:null,u=null!=e?e[s._FILTERCRITERION]:null;this._generateKeysIfNeeded();let c,d=[],h=!0;if(e){const t=new this.FetchListParameters(i,o,u,l),r=this._fetchFrom(t,a,!0).result;t[s._SORTCRITERIA]&&(e[s._SORTCRITERIA]=t[s._SORTCRITERIA]);const p=r[s._VALUE];h=r[s._DONE];const f=p[s._DATA],m=p[s._METADATA].map((e=>e[s._KEY]));return d=f.map(((e,t)=>new this.Item(new this.ItemMetadata(m[t]),e))),"enabled"===e.includeFilteredRowCount&&(c=this._getTotalFilteredRowCount(e)),n(new this.FetchByOffsetResults(e,d,h,c))}return r("Offset is a required parameter")}))}_getTotalFilteredRowCount(e){const t=this._getRowData(),n=e?e[s._FILTERCRITERION]:null;let i=-1;if(n){i=0;let e=r.FilterFactory.getFilter({filterDef:n,filterOptions:this.options});for(let n=0;n0?"no":"yes"}createOptimizedKeySet(e){return new n(e)}createOptimizedKeyMap(e){if(e){const n=new t;return e.forEach(((e,t)=>{n.set(t,e)})),n}return new t}_getRowData(){return this[s._DATA]instanceof Array?this[s._DATA]:this[s._DATA]()}_getKeys(){return null==this._keys||this._keys instanceof Array?this._keys:this._keys()}_indexOfKey(t,n){let r,i=-1;for(r=0;r{if(i.offset>0){const s=i.filterCriterion,a=i.sortCriteria,l=a?this._getSortComparator(a):null;n&&n.forEach(((t,n)=>{const r=Array.from(e.keys)[n],o=this._indexOfKey(r,i.fetchedRowKeys);o>-1&&(--i.offset,i.fetchedRowKeys.splice(o,1))})),r&&r.forEach(((e,n)=>{const r=t.data[n],o=Array.from(t.keys)[n];(!s||!s.filter||r&&s.filter(r))&&(l?r&&i.data&&l({value:i.data},{value:r})>0&&(++i.offset,this._indexOfKey(o,i.fetchedRowKeys)<0&&i.fetchedRowKeys.splice(e,0,o)):e{let r,i,s,a,l,u=[],c=[],d=[],h=[];const p=[];this._mutationSequenceNum++;let f=!0,m=!0;this._resetTotalFilteredRowCount=!0,t.forEach((e=>{"deleted"===e.status?f=!1:"added"===e.status&&(m=!1)}));const _=[],g=[];let v=null,y=null,E=null;const b=this._generateKeysIfNeeded();if(!f&&!m){for(r=0;r=0){const e=this._getKeys()[t[r].index];c.push(e),u.push(t[r].value),d.push(t[r].index)}if(c.length>0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)})),v=new this.DataProviderOperationEventDetail(this,e,h,u,d)}}if(u=[],c=[],d=[],!f){for(r=0;r0&&c.forEach((e=>{const t=this._indexOfKey(e,this._getKeys());t>=0&&this._keys.splice(t,1)})),c.length>0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)})),E=new this.DataProviderOperationEventDetail(this,e,h,u,d)}}if(u=[],c=[],d=[],!m){const e=null==this._getKeys()||!(this._getKeys().length>0);for(r=0;r0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)}));const t=new n;p.forEach((e=>{t.add(e)})),y=new this.DataProviderAddOperationEventDetail(this,e,t,p,h,u,d)}}this._fireMutationEvent(y,E,v)}),null,"arrayChange"),t.subscribe((e=>{if(this._mutationEvent){const e=this._mutationEvent.detail;this._adjustIteratorOffset(e.remove,e.add),this.dispatchEvent(this._mutationEvent)}else if(this._mutationRemoveEvent||this._mutationAddEvent||this._mutationUpdateEvent){if(this._mutationRemoveEvent){const e=this._mutationRemoveEvent.detail;this._adjustIteratorOffset(e.remove,null),this.dispatchEvent(this._mutationRemoveEvent)}if(this._mutationAddEvent){const e=this._mutationAddEvent.detail;this._adjustIteratorOffset(null,e.add),this.dispatchEvent(this._mutationAddEvent)}this._mutationUpdateEvent&&this.dispatchEvent(this._mutationUpdateEvent)}else this.dispatchEvent(new r.DataProviderRefreshEvent);this._mutationEvent=null,this._mutationRemoveEvent=null,this._mutationAddEvent=null,this._mutationUpdateEvent=null}),null,"change")}}_fireMutationEvent(e,t,n){const i=new this.DataProviderMutationEventDetail(this,e,t,n);this._mutationEvent=new r.DataProviderMutationEvent(i)}_hasSamePropValue(t,n,r){const i="_hasSamePropValue is true";try{t&&t[r]&&t[r].forEach((t=>{n&&n[r]&&n[r].forEach((n=>{if(e.Object.compareValues(t,n))throw i}))}))}catch(e){if(e===i)return!0;throw e}return!1}_isObservableArray(e){return"function"==typeof e&&e.subscribe&&!(void 0===e.destroyAll)}_generateKeysIfNeeded(){if(null==this._keys){const e=null!=this.options?this.options[s._KEYATTRIBUTES]||this.options[s._IDATTRIBUTE]:null;this._keys=[];const t=this._getRowData();let n,r=0;for(r=0;r0){const r=t.substring(0,n),i=t.substring(n+1),o=e[r];if(o)return this._getVal(o,i)}}return"function"==typeof e[t]?e[t]():e[t]}_getAllVals(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Object.keys(e).map((t=>this._getVal(e,t)))}_fetchFrom(e,t,n,i){const o=null!=e?e[s._ATTRIBUTES]:null;this._generateKeysIfNeeded();const a=null!=e?e[s._SORTCRITERIA]:null,l=this._getCachedIndexMap(a,i),u=this._getRowData(),c=l.map((e=>u[e])),d=l.map((e=>this._getKeys()[e])),h=null!=e?e[s._SIZE]>0?e[s._SIZE]:e[s._SIZE]<0?this._getKeys().length:25:25;let p=t+h=t&&(_.push(c[i]),g.push(d[i])),v++),i++;p=i{if(o&&o.length>0){const t={};this._filterRowAttributes(o,e,t),e=t}return e}));let y=g.map((e=>new this.ItemMetadata(e))),E=new this.FetchListResult(e,m,y);return(n?p:E.data.length>0)?{result:new this.AsyncIteratorYieldResult(E),offset:v}:{result:new this.AsyncIteratorReturnResult(E),offset:v}}_getCachedIndexMap(e,t){if(t&&t.indexMap&&t[s._MUTATIONSEQUENCENUM]===this._mutationSequenceNum)return t.indexMap;const n=this._getRowData().map(((e,t)=>t)),r=this._sortData(n,e);return t&&(t.indexMap=r,t[s._MUTATIONSEQUENCENUM]=this._mutationSequenceNum),r}_sortData(e,t){const n=this._getRowData(),r=e.map((e=>({index:e,value:n[e]})));return null!=t&&r.sort(this._getSortComparator(t)),r.map((e=>e.index))}_getSortComparator(e){return(t,n)=>{const i=null!=this.options?this.options[s._SORTCOMPARATORS]:null;let o,a,l,u,c,d;for(o=0;o{e!==s._ATDEFAULT&&e.name!==s._ATDEFAULT||(i=!0)})),Object.keys(t).forEach((o=>{if(i){let i,s=!1,a=o;for(r=0;r{let r;r=e instanceof Object?e.name:e,r.startsWith("!")||r!==o||this._filterRowAttributes(e,t,n)}))}))}else if(e instanceof Object){const r=e.name,i=e.attributes;if(r&&!r.startsWith("!"))if(t[r]instanceof Object&&!Array.isArray(t[r])&&i){const e={};this._filterRowAttributes(i,t[r],e),n[r]=e}else if(Array.isArray(t[r])&&i){let e;n[r]=[],t[r].forEach(((t,o)=>{e={},this._filterRowAttributes(i,t,e),n[r][o]=e}))}else this._proxyAttribute(n,t,r)}else this._proxyAttribute(n,t,e)}_proxyAttribute(e,t,n){e&&t&&Object.defineProperty(e,n,{get:()=>t[n],set(e){t[n]=e},enumerable:!0})}}return s._KEY="key",s._KEYS="keys",s._AFTERKEYS="afterKeys",s._ADDBEFOREKEYS="addBeforeKeys",s._DIRECTION="direction",s._ATTRIBUTE="attribute",s._ATTRIBUTES="attributes",s._SORT="sort",s._SORTCRITERIA="sortCriteria",s._FILTERCRITERION="filterCriterion",s._DATA="data",s._METADATA="metadata",s._INDEXES="indexes",s._OFFSET="offset",s._SIZE="size",s._IDATTRIBUTE="idAttribute",s._IMPLICITSORT="implicitSort",s._KEYATTRIBUTES="keyAttributes",s._SORTCOMPARATORS="sortComparators",s._COMPARATORS="comparators",s._COMPARATOR="comparator",s._RESULTS="results",s._CONTAINS="contains",s._FETCHPARAMETERS="fetchParameters",s._CONTAINSPARAMETERS="containsParameters",s._VALUE="value",s._DONE="done",s._ADD="add",s._REMOVE="remove",s._UPDATE="update",s._DETAIL="detail",s._FETCHLISTRESULT="fetchListResult",s._ATDEFAULT="@default",s._MUTATIONSEQUENCENUM="mutationSequenceNum",s._PARENT="_parent",s._TOTALFILTEREDROWCOUNR="totalFilteredRowCount",i.EventTargetMixin.applyMixin(s),e._registerLegacyNamespaceProp("ArrayDataProvider",s),s}.apply(t,r))||(e.exports=i)},1597:(e,t,n)=>{var r,i;r=[n(7006),n(9755),n(370),n(7399),n(9831)],void 0===(i=function(e,t,n,r,i){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;class o{constructor(e,t,r){var i;this.treeData=e,this.options=t,this._rootDataProvider=r,this.TreeAsyncIterator=class{constructor(e,t){this._parent=e,this._baseIterable=t}next(){return this._baseIterable[Symbol.asyncIterator]().next().then((e=>{const t=e.value.metadata;for(let n=0;nthis._asyncIterator}},Symbol.asyncIterator,i),this._baseDataProvider=new n(e,t),this._mapKeyToNode=new Map,this._mapNodeToKey=new Map,this._mapArrayToSequenceNum=new Map,this._mapKoArrayToSubscriptions=new Map,this._mapKeyToParentNodePath=new Map,this._parentNodeKeys=new Set,this._childrenAttr=this.options&&this.options.childrenAttribute?this.options.childrenAttribute:"children",null==r?(this._parentNodePath=[],this._processTreeArray(e,[])):this._getTreeKeys(this.treeData)}containsKeys(e){return this.fetchByKeys(e).then((t=>{const n=new Set;return e.keys.forEach((e=>{null!=t.results.get(e)&&n.add(e)})),Promise.resolve({containsParameters:e,results:n})}))}getCapability(e){return this._baseDataProvider.getCapability(e)}getTotalSize(){return this._baseDataProvider.getTotalSize()}isEmpty(){return this._baseDataProvider.isEmpty()}createOptimizedKeySet(e){return this._baseDataProvider.createOptimizedKeySet(e)}createOptimizedKeyMap(e){return this._baseDataProvider.createOptimizedKeyMap(e)}getChildDataProvider(e,t){const n=this._getRootDataProvider(),r=this._getNodeForKey(e);if(r){const t=this._getChildren(r);if(t){const r=new o(t,this.options,n);return null!=r&&(r._parentNodePath=n._mapKeyToParentNodePath.get(JSON.stringify(e)),n.addEventListener("refresh",(e=>{r._getTreeKeys(t)})),n.addEventListener("mutate",(e=>{r._getTreeKeys(t)}))),r}}return null}fetchFirst(e){e=this._applyLeafNodeFilter(e);const t=this._baseDataProvider.fetchFirst(e);return new this.TreeAsyncIterable(this,new this.TreeAsyncIterator(this,t))}fetchByOffset(e){return e=this._applyLeafNodeFilter(e),this._baseDataProvider.fetchByOffset(e).then((t=>{const n=t.results,r=[];for(const e of n){let t=e.metadata;const n=e.data;t=this._getTreeMetadata(t,n),r.push({data:n,metadata:t})}const i={done:t.done,fetchParameters:t.fetchParameters,results:r};return"enabled"===e.includeFilteredRowCount&&(i.totalFilteredRowCount=t.totalFilteredRowCount),i}))}fetchByKeys(e){const t=new Map;return e.keys.forEach((e=>{if(0===this._parentNodePath.length||this._parentNodeKeys.has(e)){const n=this._getNodeForKey(e);n&&t.set(e,{metadata:{key:e},data:n})}})),Promise.resolve({fetchParameters:e,results:t})}_getTreeKeys(e){const t=e instanceof Array?e:e();for(const e of t){const t=this._getKeyForNode(e);this._parentNodeKeys.add(t),e[this._childrenAttr]&&this._getTreeKeys(e[this._childrenAttr])}}_getChildren(e){return this._getVal(e,this._childrenAttr,!0)}_getRootDataProvider(){return this._rootDataProvider?this._rootDataProvider:this}_subscribeObservableArray(t,n){if("function"!=typeof t||!t.subscribe||void 0===t.destroyAll)throw new Error("Invalid data type. ArrayTreeDataProvider only supports Array or observableArray.");let r=null,i=null;const o=new Array(2);o[0]=t.subscribe((o=>{let s,a,l,u=[],c=[],d=[],h=[];const p=[];let f=null,m=null,_=null;const g=new Set,v=[],y=[];for(let e=0;et&&y[e].index--;else if("added"===n)for(let e=0;et&&y[e].index++}for(s=0;s0){h=c.map((e=>({key:e})));const e=new Set;c.forEach((t=>{e.add(t)})),_={data:u,indexes:d,keys:e,metadata:h}}u=[],c=[],d=[],h=[];const E=t(),b=[],S=[],C=[],O=[];for(s=0;s0){const e=new Set;c.forEach((t=>{e.add(t)}));const t=new Set,r=[],i=[];let o;o=this.options&&this.options.keyAttributes&&"siblings"!==this.options.keyAttributesScope?n.length>0?n[n.length-1]:null:n.length>0?n:null,d.forEach((e=>{let n;n=e>=E.length-1?null:this._getKeyForNode(E[e+1]),t.add(n),r.push(n),i.push(o)})),m={afterKeys:t,addBeforeKeys:r,parentKeys:i,data:u,indexes:d,keys:e,metadata:h}}if(b.length>0){const e=new Set;b.forEach((t=>{e.add(t)})),f={data:S,indexes:C,keys:e,metadata:O}}(m||_||f)&&(r=new e.DataProviderMutationEvent({add:m,remove:_,update:f})),g.size&&(i=new e.DataProviderRefreshEvent({keys:g}))}),null,"arrayChange"),o[1]=t.subscribe((t=>{r||i?(r&&this.dispatchEvent(r),i&&this.dispatchEvent(i)):(this._flushMaps(),this._processTreeArray(this.treeData,[]),this.dispatchEvent(new e.DataProviderRefreshEvent)),r=null,i=null}),null,"change"),this._mapKoArrayToSubscriptions.set(t,o)}_flushMaps(){const e=this._getRootDataProvider();e._mapKeyToNode.clear(),e._mapNodeToKey.clear(),e._mapArrayToSequenceNum.clear(),e._mapKoArrayToSubscriptions.forEach(((e,t)=>{this._unsubscribeObservableArray(t)}))}_unsubscribeObservableArray(e){if("function"==typeof e&&e.subscribe&&void 0!==e.destroyAll){const t=this._mapKoArrayToSubscriptions.get(e);t&&(t[0].dispose(),t[1].dispose(),this._mapKoArrayToSubscriptions.delete(e))}}_processTreeArray(e,t){let n;e instanceof Array?n=e:(this._subscribeObservableArray(e,t),n=e()),n.forEach(((n,r)=>{this._processNode(n,t,e)}))}_releaseTreeArray(e){let t;e instanceof Array?t=e:(this._unsubscribeObservableArray(e),t=e()),t.forEach(((e,t)=>{this._releaseNode(e)}))}_processNode(e,t,n){const r=this._createKeyObj(e,t,n);this._setMapEntry(r.key,e),this._getRootDataProvider()._mapKeyToParentNodePath.set(JSON.stringify(r.key),r.keyPath);const i=this._getChildren(e);return i&&this._processTreeArray(i,r.keyPath),r}_releaseNode(e){const t=this._getKeyForNode(e);this._deleteMapEntry(t,e);const n=this._getChildren(e);n&&this._releaseTreeArray(n)}_createKeyObj(e,t,n){let r=this._getId(e);const i=t?t.slice():[];return null==r?(this._setUseIndexAsKey(!0),i.push(this._incrementSequenceNum(n)),r=i):(i.push(r),this.options&&"siblings"===this.options.keyAttributesScope&&(r=i)),{key:r,keyPath:i}}_getId(e){let t;const n=null!=this.options?this.options.keyAttributes:null;if(null!=n){if(Array.isArray(n)){t=[];for(let r=0;r0){const r=t.substring(0,n),i=t.substring(n+1),o=e[r];if(o)return this._getVal(o,i)}}return!0!==n&&"function"==typeof e[t]?e[t]():e[t]}_getAllVals(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Object.keys(e).map((t=>this._getVal(e,t)))}_getNodeMetadata(e){return{key:this._getKeyForNode(e)}}_getNodeForKey(e){return this._getRootDataProvider()._mapKeyToNode.get(JSON.stringify(e))}_getKeyForNode(e){return this._getRootDataProvider()._mapNodeToKey.get(e)}_setMapEntry(e,t){const n=this._getRootDataProvider(),r=JSON.stringify(e);n._mapKeyToNode.has(r)&&i.warn(`Duplicate key ${r} found in ArrayTreeDataProvider. Keys must be unique when keyAttributes ${this.options.keyAttributes} is specified`),n._mapKeyToNode.set(r,t),n._mapNodeToKey.set(t,e)}_deleteMapEntry(e,t){const n=this._getRootDataProvider();n._mapKeyToNode.delete(JSON.stringify(e)),n._mapNodeToKey.delete(t)}_incrementSequenceNum(e){const t=this._getRootDataProvider(),n=t._mapArrayToSequenceNum.get(e)||0;return t._mapArrayToSequenceNum.set(e,n+1),n}_getUseIndexAsKey(){return this._getRootDataProvider()._useIndexAsKey}_setUseIndexAsKey(e){return this._getRootDataProvider()._useIndexAsKey=e}_getLeafNodeFilter(e){return{op:"$or",criteria:[e,{op:"$and",criteria:[{op:"$ne",attribute:this._childrenAttr,value:null},{op:"$ne",attribute:this._childrenAttr,value:void 0}]}]}}_applyLeafNodeFilter(e){if(e&&e.filterCriterion){const n=t.extend({},e);n.filterCriterion=this._getLeafNodeFilter(n.filterCriterion),n.filterCriterion.filter=e.filterCriterion.filter,e=n}return e}_getTreeMetadata(e,t){let n=!1,r=e.key;return(null==this.options||null==this.options.keyAttributes||"siblings"==this.options.keyAttributesScope||"@index"==this.options.keyAttributes||this._getUseIndexAsKey())&&(n=!0),n&&(r=this._parentNodePath?this._parentNodePath.slice():[],r.push(e.key)),this._getNodeMetadata(this._getNodeForKey(r))}_compareChildren(t,n){let r=!0;const i=t[this._childrenAttr],o=n[this._childrenAttr],s="function"==typeof i?i():i,a="function"==typeof o?o():o;if(!s&&a||s&&!a)r=!1;else if(s&&a)if(s.length!==a.length)r=!1;else for(let t=0;t{var r,i;r=[t,n(2027),n(5275),n(8819),n(9999)],i=function(e,t,n,r,i){"use strict";const o=n.OraI18nUtils,s="UTC";let a={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"};const l=["Africa/Abidjan","Africa/Addis_Ababa","Africa/Algiers","Africa/Bangui","Africa/Blantyre","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Johannesburg","Africa/Khartoum","Africa/Tripoli","Africa/Tunis","America/Adak","America/Anchorage","America/Anguilla","America/Argentina/Buenos_Aires","America/Atikokan","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Caracas","America/Chicago","America/Chihuahua","America/Creston","America/Detroit","America/Ensenada","America/Fort_Wayne","America/Glace_Bay","America/Godthab","America/Guatemala","America/Guyana","America/Havana","America/Los_Angeles","America/Managua","America/Merida","America/Miquelon","America/Montevideo","America/Noronha","America/Santiago","America/Sao_Paulo","America/Scoresbysund","America/St_Johns","America/Winnipeg","Antarctica/DumontDUrville","Antarctica/McMurdo","Antarctica/Syowa","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Brunei","Asia/Calcutta","Asia/Chongqing","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dubai","Asia/Gaza","Asia/Hong_Kong","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jerusalem","Asia/Kabul","Asia/Karachi","Asia/Kathmandu","Asia/Krasnoyarsk","Asia/Magadan","Asia/Manila","Asia/Nicosia","Asia/Novosibirsk","Asia/Omsk","Asia/Rangoon","Asia/Seoul","Asia/Tehran","Asia/Tokyo","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/South_Georgia","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Currie","Australia/Darwin","Australia/LHI","Australia/Perth","Chile/EasterIsland","Eire","Europe/Belfast","Europe/Kaliningrad","Europe/Moscow","Europe/Riga","Europe/Samara","Europe/Tallinn","Europe/Vilnius","HST","Pacific/Fiji","Pacific/Guam","Pacific/Marquesas","Pacific/Midway","Pacific/Norfolk","Pacific/Tongatapu","Africa/Djibouti","Africa/Harare","Africa/Lagos","Africa/Maputo","Africa/Mogadishu","Africa/Nairobi","Africa/Nouakchott","America/Buenos_Aires","America/Costa_Rica","America/Denver","America/Edmonton","America/El_Salvador","America/Guayaquil","America/Halifax","America/Indiana/Indianapolis","America/Indianapolis","America/Lima","America/Manaus","America/Mazatlan","America/Mexico_City","America/Montreal","America/New_York","America/Panama","America/Phoenix","America/Puerto_Rico","America/Regina","America/Tijuana","America/Toronto","America/Vancouver","Asia/Aden","Asia/Bahrain","Asia/Dhaka","Asia/Kamchatka","Asia/Katmandu","Asia/Kolkata","Asia/Kuala_Lumpur","Asia/Kuwait","Asia/Muscat","Asia/Qatar","Asia/Riyadh","Asia/Saigon","Asia/Shanghai","Asia/Singapore","Asia/Taipei","Asia/Tashkent","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Reykjavik","Australia/Hobart","Australia/Lord_Howe","Australia/Sydney","Europe/Amsterdam","Europe/Athens","Europe/Belgrade","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Copenhagen","Europe/Dublin","Europe/Helsinki","Europe/Istanbul","Europe/Kiev","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Rome","Europe/Sofia","Europe/Stockholm","Europe/Tirane","Europe/Vienna","Europe/Warsaw","Europe/Zurich","Indian/Chagos","Indian/Cocos","Pacific/Auckland","Pacific/Easter","Pacific/Gambier","Pacific/Honolulu","Pacific/Kwajalein","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Pitcairn","US/Aleutian","US/Hawaii","UTC"];function u(e,t,n,r){const i=t.split("/"),l=i[0],u=i[1];let c,d;const h=e.split("-")[0],p=new Date,f={offsetLocName:null,locName:null},m=r[l];if("en"===h?void 0!==i[1]&&(c=" "+i[1],c=c.replace(/_/g," "),c=c.replace("Saigon","Ho Chi Minh City")):void 0!==m&&(c=m[u],void 0!==c&&(c=c.exemplarCity,void 0!==c&&(c=" "+c))),void 0===c)return null;a.timeZone=t,d=new Intl.DateTimeFormat(e,a).formatToParts(p).find((e=>"timeZoneName"===e.type)).value;let _=`(${s})`;return 0!==n&&(_=o.getTimeStringFromOffset(s,n,!0,!0),_=`(${_})`),d=" - "+d,f.offsetLocName=_+c+d,f.locName=c+d,f}class c{static getAvailableTimeZonesImpl(){const e=t.__getBundle(),n=o.getLocaleElementsMainNodeKey(e),r=c?._timeZoneDataCache[n]?.availableTimeZones;return r||c._availableTimeZonesImpl(e)}static _availableTimeZonesImpl(e){const n={sensitivity:"variant"},s=[];let a={};const d=o.getLocaleElementsMainNodeKey(e),h=o.getLocaleElementsMainNodeKey(e);(function(e,n){const s=t.__getBundle(),a=(o.getLocaleElementsMainNode(s),o.getLocaleElementsMainNodeKey(s)),c=function(e){function t(t){let n=null;const r=e.main[t];return r&&(n=r.dates),n}let n=r.getLocale(),i=t(n);if(i)return i;let o=n.split("-");for(o.pop();o.length>0;){if(n=o.join("-"),i=t(n),i)return i;o.pop()}return e.main["en-US"].dates}(s),d=c.timeZoneNames.zone,h=new Date,p={year:h.getFullYear(),month:h.getMonth()+1,date:h.getDate(),hours:h.getHours(),minutes:h.getMinutes()};for(let t=0;t{var r,i;r=[t,n(1600)],i=function(e,t){"use strict";const n=Symbol("StaticContextPropagation"),r=Symbol("ConsumedContext"),i=new Map;e.CONSUMED_CONTEXT=r,e.STATIC_PROPAGATION=n,e.getPropagationMetadataViaCache=function(e,o){let s=i.get(e);if(void 0!==s)return s;s=null;const a=o.properties??{};Object.keys(a).forEach((e=>{const t=a[e],n=t?.binding?.provide,r=t?.binding?.consume;if(n||r){if(t.properties)throw new Error("Propagating complex properties is not supported!");s=s??new Map,s.set(e,[n,r])}}));const l=o.extension?._BINDING?.provide;if(l){s=s??new Map;const e=new Map;l.forEach(((t,n)=>{e.set(n,{name:n,default:t})})),s.set(n,[e,void 0])}const u=t.getElementRegistration(e)?.cache?.contexts;return u&&s.set(r,[void 0,u]),i.set(e,s),s},Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,r),void 0===i||(e.exports=i)},6325:(e,t)=>{var n;n=function(e){"use strict";var t;const n=function(){return t||(t="loading"===document.readyState?new Promise((function(e){var t=function(){document.removeEventListener("DOMContentLoaded",t),e()};document.addEventListener("DOMContentLoaded",t)})):Promise.resolve()),t};e.whenDocumentReady=n,Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,[t]),void 0===n||(e.exports=n)},537:(e,t,n)=>{var r,i;r=[n(4670),n(7006),n(9755),n(3215),n(9279),n(857),n(8126),n(602),n(7509),n(2265)],void 0===(i=function(e,t,n,r,i,o,s,a,l,u){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,s=s&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var c={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},label:{type:"string"},translations:{type:"object",value:{}}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAction:{}},extension:{}};c.extension._WIDGET_NAME="ojButton",c.extension._TRACK_CHILDREN="nearestCustomElement",c.extension._GLOBAL_TRANSFER_ATTRS=["href","aria-label","aria-labelledby","aria-describedby"],t.CustomElementBridge.register("oj-menu-button",{metadata:c,innerDomFunction:function(e){return e.getAttribute("href")?"a":"button"}});var d={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},focusManagement:{type:"string",enumValues:["none","oneTabstop"],value:"oneTabstop"},labelledBy:{type:"string"},translations:{type:"object",value:{}},value:{type:"any",writeback:!0}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},extension:{}};d.extension._WIDGET_NAME="ojButtonset",d.extension._ALIASED_PROPS={value:"checked"},t.CustomElementBridge.register("oj-buttonset-one",{metadata:d});var h={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},focusManagement:{type:"string",enumValues:["none","oneTabstop"],value:"oneTabstop"},labelledBy:{type:"string"},translations:{type:"object",value:{}},value:{type:"Array",writeback:!0}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},extension:{}};if(h.extension._WIDGET_NAME="ojButtonset",h.extension._ALIASED_PROPS={value:"checked"},t.CustomElementBridge.register("oj-buttonset-many",{metadata:h}),t.ButtonLegacy){var p={properties:{chroming:{type:"string",enumValues:["borderless","callToAction","danger","full","half","outlined","solid"]},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},translations:{type:"object",value:{}}},methods:{refresh:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAction:{}},extension:{}};p.extension._WIDGET_NAME="ojButton",p.extension._TRACK_CHILDREN="nearestCustomElement",p.extension._GLOBAL_TRANSFER_ATTRS=["href","aria-label","aria-labelledby","aria-describedby"],t.CustomElementBridge.register("oj-button",{metadata:p,innerDomFunction:function(e){return e.getAttribute("href")?"a":"button"}})}!function(){var e,u,c="oj-button oj-component oj-enabled oj-default",d="oj-button-icons-only oj-button-icon-only oj-button-text-icons oj-button-text-icon-start oj-button-text-icon-end oj-button-text-only",h="oj-button-full-chrome oj-button-half-chrome oj-button-outlined-chrome oj-button-cta-chrome oj-button-danger-chrome",p={solid:"oj-button-full-chrome",outlined:"oj-button-outlined-chrome",borderless:"oj-button-half-chrome",full:"oj-button-full-chrome",half:"oj-button-half-chrome",callToAction:"oj-button-cta-chrome",danger:"oj-button-danger-chrome oj-button-full-chrome"},f={button:["ojButtonset","ojToolbar"],buttonset:["ojToolbar"]};function m(e,t){y(e,h),e.classList.add(p[t])}function _(e,t){var r,i=e.name,o=e.form;if(i){var s=":radio[name='"+(i=i.replace(/'/g,"\\'"))+"']:oj-button";r=t?t.filter(s):o?n(o).find(s):n(s,e.ownerDocument).filter((function(){return!this.form}))}else r=(t?t.filter(e):n(e)).filter(":oj-button");return r}function g(e,t,n){var r=function(e,t,n){for(var r=0;r=0)for(;;e=e.parentNode){var s=o.__GetWidgetConstructor(e,i);if(s)return s}}return null}(t,n,f[e]);return r?r("option","chroming"):i.getCachedCSSVarValues(["--oj-private-"+e+"-global-chroming-default"])[0]}function v(e,t){var n=e.className;if(n){for(var r=n.split(" "),i=t.split(" "),o=i.length;o>=0;o--)r.indexOf(i[o])>=0&&i.splice(o,1);i.length>0&&(e.className=n+" "+i.join(" "))}else e.className=t}function y(e,t){var n=e.className;if(n){for(var r=n.split(" "),i=t.split(" "),o=!1,s=0;s=0&&(r.splice(a,1),o=!0)}o&&(e.className=r.join(" "))}}t.__registerWidget("oj.ojButton",n.oj.baseComponent,{defaultElement:"