@supernovaio/cli 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/publish-documentation.js +25 -3
- package/dist/utils/figma-tokens-data-loader.js +51 -49
- package/node_modules/@supernova-studio/pulsar-core/build/main/pulsar-core.js +2 -2
- package/node_modules/@supernova-studio/pulsar-core/package.json +8 -26
- package/node_modules/@supernova-studio/pulsar-language/build/main/language/src/extensions/dsm/DSMBridge.d.ts +4 -0
- package/node_modules/@supernova-studio/pulsar-language/build/main/pulsar-language.js +1 -1
- package/node_modules/@supernova-studio/pulsar-language/package.json +7 -22
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDocumentation.d.ts +4 -4
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataCore.d.ts +2 -2
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/exports.d.ts +1 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageBlock.d.ts +11 -4
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssetGroup.d.ts +25 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuideline.d.ts +11 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelineProps.d.ts +17 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelines.d.ts +8 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +2 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockSwatch.d.ts +9 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockType.d.ts +3 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +6 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/tsconfig.tsbuildinfo +6395 -0
- package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js +1 -1
- package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js.map +1 -1
- package/node_modules/@supernovaio/supernova-sdk/package.json +7 -8
- package/node_modules/axios/CHANGELOG.md +895 -746
- package/node_modules/axios/README.md +37 -42
- package/node_modules/axios/dist/axios.js +1168 -299
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +810 -315
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +810 -315
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +824 -396
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +229 -0
- package/node_modules/axios/lib/adapters/http.js +27 -17
- package/node_modules/axios/lib/adapters/xhr.js +36 -99
- package/node_modules/axios/lib/cancel/CancelToken.js +14 -0
- package/node_modules/axios/lib/core/Axios.js +9 -6
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/defaults/index.js +7 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +3 -51
- package/node_modules/axios/lib/helpers/composeSignals.js +48 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +30 -19
- package/node_modules/axios/lib/helpers/trackStream.js +87 -0
- package/node_modules/axios/lib/platform/common/utils.js +9 -5
- package/node_modules/axios/lib/utils.js +40 -3
- package/node_modules/axios/package.json +4 -3
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +1 -1
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +2 -2
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/package.json +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +108 -108
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/README.md +0 -95
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts +0 -38
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js +0 -112
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/package.json +0 -49
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/README.md +0 -97
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts +0 -46
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js +0 -174
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/package.json +0 -50
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts +0 -15
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js +0 -66
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js +0 -175
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/package.json +0 -50
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/README.md +0 -69
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts +0 -15
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js +0 -66
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts +0 -41
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js +0 -175
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/package.json +0 -49
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/browser-bundle.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrand.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrandWriter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersion.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersionWriter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKSupernova.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKWorkspace.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataBridge.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/errors/SDKSupernovaError.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKAssetGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKComponentResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDocumentationItemResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/index.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKRenderedAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKComponent.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKDesignComponent.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPage.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichText.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataView.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataViewColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementPropertyOption.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/values/SDKElementPropertyValue.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAlignment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetFormat.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScale.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScaleType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBlurType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBorderPosition.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationCalloutType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationEnvironment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationGroupBehavior.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationHeadingType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationItemType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageAssetType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockThemeType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameAlignment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameLayout.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKGradientType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKRichTextSpanAttributeType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKShadowType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKSourceType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextCase.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextDecoration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTokenType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKUnit.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/SDKExporter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKAssetGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKDesignComponentGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKTokenGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKDesignComponentOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKFrameOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSize.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSource.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKTokenOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKThemeUtilities.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenTheme.d.ts +5 -5
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenThemeOverride.d.ts +5 -5
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBlurToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBorderToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKColorToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKFontToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGenericToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGradientToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKMeasureToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKRadiusToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKShadowToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTextToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenCompator.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenValue.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTypographyToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenData.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/users/SDKUser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Brand.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Components.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystem.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystemVersion.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Documentation.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Supernova.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Theme.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Workspace.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolDocSearch.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/helpers.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformCustomBlock.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/search-index/SDKToolsDocSearch.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/token-transform/SDKToolsTokenTransform.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/FlowUtils.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/StringUtils.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/LICENSE +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/README.md +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/package.json +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/pulsar-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.21",
|
|
4
4
|
"description": "Export Engine for Supernova DSM",
|
|
5
5
|
"main": "build/main/pulsar-core.js",
|
|
6
6
|
"types": "build/main/core/src/index.d.ts",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"keywords": [],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"describe": "npm-scripts-info",
|
|
12
11
|
"build": "run-s clean && run-p build:*",
|
|
13
12
|
"build:main": "npm run clean && webpack --mode production --config ./webpack.config.main.js",
|
|
14
13
|
"tsversion": "tsc -v",
|
|
@@ -18,17 +17,8 @@
|
|
|
18
17
|
"test-skipped:lint": "tslint --project .",
|
|
19
18
|
"test:unit": "nyc --silent ava --verbose --timeout=60s",
|
|
20
19
|
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
|
|
21
|
-
"cov": "run-s build test:unit cov:html && open-cli coverage/index.html",
|
|
22
|
-
"cov:html": "nyc report --reporter=html",
|
|
23
|
-
"cov:send": "nyc report --reporter=lcov && codecov",
|
|
24
|
-
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
|
|
25
|
-
"doc": "run-s doc:html && open-cli build/docs/index.html",
|
|
26
|
-
"doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
|
|
27
|
-
"doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
|
|
28
|
-
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
|
|
29
20
|
"reset": "git clean -dfx && git reset --hard && npm i",
|
|
30
21
|
"clean": "trash build test",
|
|
31
|
-
"prepare-release": "run-s reset test cov:check doc:html version doc:publish",
|
|
32
22
|
"publish-package": "npm run clean && npm run build:main && npm publish --access public"
|
|
33
23
|
},
|
|
34
24
|
"scripts-info": {
|
|
@@ -37,12 +27,8 @@
|
|
|
37
27
|
"fix": "Try to automatically fix any linting problems",
|
|
38
28
|
"test": "Lint and unit test the project",
|
|
39
29
|
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
|
|
40
|
-
"cov": "Rebuild, run tests, then create and open the coverage report",
|
|
41
|
-
"doc": "Generate HTML API documentation and open it in a browser",
|
|
42
|
-
"doc:json": "Generate API documentation in typedoc JSON format",
|
|
43
30
|
"version": "Bump package.json version, update CHANGELOG.md, tag release",
|
|
44
|
-
"reset": "Delete all untracked files and reset the repo to the last commit"
|
|
45
|
-
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release"
|
|
31
|
+
"reset": "Delete all untracked files and reset the repo to the last commit"
|
|
46
32
|
},
|
|
47
33
|
"engines": {
|
|
48
34
|
"node": ">=8.9"
|
|
@@ -51,12 +37,12 @@
|
|
|
51
37
|
"@jsep-plugin/object": "1.2.1",
|
|
52
38
|
"@jsep-plugin/ternary": "1.1.3",
|
|
53
39
|
"@supercharge/promise-pool": "^2.3.2",
|
|
54
|
-
"@supernova-studio/pulsar-language": "^2.
|
|
40
|
+
"@supernova-studio/pulsar-language": "^2.3.21",
|
|
55
41
|
"@supernova-studio/simple-parse-github-url": "^1.0.0",
|
|
56
42
|
"@supernovaio/sdk": "2.0.15",
|
|
57
|
-
"@supernovaio/supernova-sdk": "1.9.
|
|
43
|
+
"@supernovaio/supernova-sdk": "1.9.28",
|
|
58
44
|
"async-mutex": "^0.4.0",
|
|
59
|
-
"axios": "1.
|
|
45
|
+
"axios": "1.7.7",
|
|
60
46
|
"dot-prop": "^5.2.0",
|
|
61
47
|
"encoding": "0.1.13",
|
|
62
48
|
"fs": "0.0.1-security",
|
|
@@ -74,23 +60,20 @@
|
|
|
74
60
|
"uuid": "^8.3.0"
|
|
75
61
|
},
|
|
76
62
|
"devDependencies": {
|
|
77
|
-
"@bitjson/npm-scripts-info": "^1.0.0",
|
|
78
|
-
"@bitjson/typedoc": "^0.15.0-0",
|
|
79
63
|
"@istanbuljs/nyc-config-typescript": "^0.1.3",
|
|
80
64
|
"@types/adm-zip": "^0.4.33",
|
|
81
65
|
"@types/jszip": "^3.4.1",
|
|
82
66
|
"@types/lodash": "^4.14.159",
|
|
83
67
|
"@types/request": "^2.48.5",
|
|
84
68
|
"@types/uuid": "^8.3.0",
|
|
85
|
-
"ava": "
|
|
69
|
+
"ava": "^6.1.3",
|
|
86
70
|
"codecov": "^3.5.0",
|
|
87
71
|
"gh-pages": "^5.0.0",
|
|
88
72
|
"npm-run-all": "^4.1.5",
|
|
89
73
|
"nyc": "^14.1.1",
|
|
90
|
-
"open-cli": "^6.0.1",
|
|
91
74
|
"prettier": "^1.18.2",
|
|
92
75
|
"source-map-support": "^0.5.19",
|
|
93
|
-
"trash-cli": "^
|
|
76
|
+
"trash-cli": "^5.0.0",
|
|
94
77
|
"ts-loader": "^8.0.17",
|
|
95
78
|
"ts-node": "10.9.1",
|
|
96
79
|
"tsconfig-paths": "^3.9.0",
|
|
@@ -114,8 +97,7 @@
|
|
|
114
97
|
"ts"
|
|
115
98
|
],
|
|
116
99
|
"require": [
|
|
117
|
-
"ts-node/register"
|
|
118
|
-
"tsconfig-paths/register"
|
|
100
|
+
"ts-node/register"
|
|
119
101
|
]
|
|
120
102
|
},
|
|
121
103
|
"files": [
|
|
@@ -9,10 +9,12 @@ export interface DSMBridgeConfiguration {
|
|
|
9
9
|
designSystemVersionId: string;
|
|
10
10
|
brandId?: string;
|
|
11
11
|
themeId?: string;
|
|
12
|
+
themeIds?: string[];
|
|
12
13
|
exportPath?: string;
|
|
13
14
|
dsmRequestHook?: any;
|
|
14
15
|
proxyUrl?: string;
|
|
15
16
|
debugMode?: boolean;
|
|
17
|
+
exportJobId?: string;
|
|
16
18
|
logger: PLLogger;
|
|
17
19
|
}
|
|
18
20
|
export declare class DSMBridge {
|
|
@@ -21,6 +23,7 @@ export declare class DSMBridge {
|
|
|
21
23
|
dsmId: string;
|
|
22
24
|
dsmBrand: string | null;
|
|
23
25
|
dsmTheme: string | null;
|
|
26
|
+
dsmThemes: string[] | null;
|
|
24
27
|
dsmDataRequestURL: string;
|
|
25
28
|
dataCore: DSMDataCore;
|
|
26
29
|
apiUrl: string;
|
|
@@ -29,6 +32,7 @@ export declare class DSMBridge {
|
|
|
29
32
|
proxyUrl?: string | null;
|
|
30
33
|
proxyAgent: HttpsProxyAgent<string> | null;
|
|
31
34
|
debugMode: boolean;
|
|
35
|
+
exportJobId: string | null;
|
|
32
36
|
logger: PLLogger | null;
|
|
33
37
|
constructor(conf: DSMBridgeConfiguration);
|
|
34
38
|
/** Retrieve DSM bridge that is only the shell object - in some situations, we don't need the network data, such as static analysis, autocomplete and so on */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";var e={5773:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprint=void 0,t.PLBlueprint=class{constructor(e,t,r,n){this.id=n,this.declaration=e,this.syntax=t,this.configuration=r}}},6703:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintConfiguration=void 0;class r{constructor(){this.openingWrapperIdentifier="{",this.closingWrapperIdentifier="}",this.openingSubstitutionIdentifier="{",this.closingSubstitutionIdentifier="}",this.openingFlowIdentifier="[",this.closingFlowIdentifier="]",this.flowEnd="/",this.openingCommentIdentifier="*",this.closingCommentIdentifier="*",this.openingEditorPlaceholderIdentifier="#",this.closingEditorPlaceholderIdentifier="#",this.openingCodeSyncBlock="// <",this.closingCodeSyncBlock="// >"}static default(){return new r}}t.PLBlueprintConfiguration=r},6179:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintFactory=void 0;const n=r(6709),o=r(6703),i=r(5773),s=r(5977),a=r(3877),u=r(4911),l=r(8375),d=r(8843),c=r(7560);t.PLBlueprintFactory=class{constructor(e=!1){this.cache=new Map,this.cacheBlueprints=e}blueprint(e,t,r,p){if((t=t.trim()).endsWith(".pr")&&(t=t.substring(0,t.length-3)),this.cacheBlueprints&&this.cache.get(t))return this.cache.get(t);let y=null!=p?p:o.PLBlueprintConfiguration.default(),f=null!=r?r:new u.PLExecutionContext;f.setExecutedBlueprint(t);try{f.debugger.symbolTable.setExecutedSource(t);let r=new n.LexicalParser(e,y,f.debugger).parse(),o=new s.ConcreteParser(r,y,f.debugger).parse(),u=new a.SyntaxParser(o,f).parse(),l=new i.PLBlueprint(e,u,p,t);return this.cacheBlueprints&&this.cache.set(t,l),l}catch(e){new d.PLLoggerErrorUtility(f).reportErrorToActiveLogger(e);let t=c.PLLogger.makeTrace(r,void 0,e.message);throw f.logger.logSystem(l.PLLoggerDefaultMessages.compilerBuildFailure,t),e}}}},33:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsFlows=void 0;class r{}t.PLKeywordsFlows=r,r.codeMerge="code",r.log="log",r.emit="emit",r.import="import",r.return="return",r.if="if",r.else="else",r.elseIf="elseif",r.inject="inject",r.for="for",r.map="map",r.traverse="traverse",r.traverseChildren="traverseChildren",r.case="case",r.default="default",r.switch="switch",r.global="global",r.const="const",r.set="set",r.let="let",r.equal="="},2141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsFunctions=void 0;class r{}t.PLKeywordsFunctions=r,r.blueprintsCall="call",r.supportArraysToZippedMap="zippedMap",r.varDefined="isDefined",r.varMutable="isMutable",r.varGlobal="isGlobal",r.networkGetNetworkData="getNetworkData",r.networkGetBasicAuth="getAuth",r.networkGetBearerAuth="getBearer",r.randomString="randomString",r.randomInt="randomInt"},9865:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsTransformers=void 0;class r{}t.PLKeywordsTransformers=r,r.absolute="absolute",r.addedBy="addedBy",r.ceiled="ceiled",r.dividedBy="dividedBy",r.floored="floored",r.multipliedBy="multipliedBy",r.negative="negative",r.positive="positive",r.rounded="rounded",r.subtractedBy="subtractedBy",r.camelcased="camelcased",r.capizalited="capitalized",r.contains="contains",r.default="default",r.equals="equals",r.extended="extended",r.lowercased="lowercased",r.prefixed="prefixed",r.replacing="replacing",r.slashDoubleQuotes="slashDoubleQuotes",r.slashNewlines="slashNewlines",r.slashSingleQuotes="slashSingleQuotes",r.snakecased="snakecased",r.split="split",r.splitNewlines="splitNewlines",r.splitExpr="splitExpr",r.substring="substring",r.suffixed="suffixed",r.trimming="trimming",r.trimmingSpaces="trimmingSpaces",r.uppercased="uppercased",r.startsWith="startsWith",r.endsWith="endsWith",r.count="count",r.formatDate="formatDate",r.isArray="isArray",r.isBool="isBool",r.isObject="isObject",r.isNumber="isNumber",r.isString="isString",r.toString="toString",r.join="join",r.append="append",r.at="at",r.concat="concat",r.enumerated="enumerated",r.first="first",r.last="last",r.from="from",r.random="random",r.range="range",r.reversed="reversed",r.shuffled="shuffled",r.sorted="sorted",r.until="until",r.add="add",r.keys="keys",r.value="value",r.alwaysRootValue="alwaysRootValue",r.values="values",r.jsExecutionPrefix=""},538:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebugger=void 0;const n=r(4067),o=r(7603),i=r(5743);t.PLDebugger=class{constructor(){this.symbolTable=new i.PLSymbolTable(""),this.errorBuilder=new o.PLDebuggerErrorBuilder(this.symbolTable)}reportError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,null,[],this.executedFile,t,r)}reportAnalysisError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[],this.executedFile,t,r)}reportRuntimeError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[],this.executedFile,t,r)}reportAnalysisErrorFromLexicalToken(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromLexicalTokens(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromLexicalTokens(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportAnalysisErrorFromConcreteToken(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromConcreteTokens(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromConcreteTokens(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportAnalysisErrorFromSyntaxNode(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromSyntaxNodes(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromSyntaxNodes(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportRuntimeErrorFromSyntaxNode(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.runtime,[t.debugSymbol],this.executedFile,r,o)}reportRuntimeErrorFromSyntaxNodes(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromSyntaxNodes(t);return this.errorBuilder.error(e,n.PLErrorSourceType.runtime,i,this.executedFile,r,o)}nonEmptyDebugSymbolsFromLexicalTokens(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}nonEmptyDebugSymbolsFromConcreteTokens(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}nonEmptyDebugSymbolsFromSyntaxNodes(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}}},7603:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebuggerErrorBuilder=void 0;const n=r(6937),o=r(4067),i=r(9225);t.PLDebuggerErrorBuilder=class{constructor(e){this.symbolTable=e,this.errors=new i.PLDebuggerErrors}error(e,t,r,n,i=void 0,s=void 0){return this.errorOfType(o.PLErrorSeverityType.error,e,t,n,r,i,s)}warning(e,t,r,n,i=void 0,s=void 0){return this.errorOfType(o.PLErrorSeverityType.warning,e,t,n,r,i,s)}errorOfType(e,t,r,i,s,a=void 0,u=void 0){let l=!1,d=s.map((e=>{let t=this.symbolTable.symbolById(e);return t||(l=!0,console.log(`Unknown symbol ${s} in symbolication table requested. This is an engine error, not syntax error.`)),t})),c=new o.PLErrorAnalysis(e,r,i,l?{startLine:0,startChar:0,endLine:0,endChar:0}:this.symbolsToRange(d)),p=this.errors.errorTypeToMessage(t,a,u);return new n.PLError(p,c)}symbolsToRange(e){if(0===e.length)return null;let t=-1,r=-1,n=-1,o=-1;return e.forEach((e=>{(t>e.startLine||-1===t)&&(t=e.startLine,r=e.startChar),(n<e.endLine||-1===n)&&(n=e.endLine,e.endChar),e.startLine===t&&r>e.startChar&&(r=e.startChar),e.endLine===n&&o<e.endChar&&(o=e.endChar)})),{startLine:t,endLine:n,startChar:r,endChar:o}}}},9225:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebuggerErrors=t.PLParserSyntaxError=t.PLParserConcreteError=t.PLParserLexicalError=void 0,t.PLParserLexicalError||(t.PLParserLexicalError={}),(n=t.PLParserConcreteError||(t.PLParserConcreteError={})).unclosedCommentTag="unclosedCommentTag",n.unclosedFlowTag="unclosedFlowTag",n.enclosingFlowTagPrecedingFlowDefinition="enclosingFlowTagPrecedingFlowDefinition",n.missingOpeningSubstitutionTag="missingOpeningSubstitutionTag",n.missingOpeningCommentTag="missingOpeningCommentTag",n.missingOpeningFlowTag="missingOpeningFlowTag",n.editorPlaceholderFound="editorPlaceholderFound",n.unclosedSubstitutionTag="unclosedSubstitutionTag",n.invalidSubstitutionStructure="invalidSubstitutionStructure",n.invalidFlowStructure="invalidFlowStructure",n.textTokenRequired="textTokenRequired",(r=t.PLParserSyntaxError||(t.PLParserSyntaxError={})).missingEnclosingFlowTag="missingEnclosingFlowTag",r.flowKeywordMissing="flowKeywordMissing",r.flowKeywordMismatch="flowKeywordMismatch",r.flowArgumentEmpty="flowArgumentEmpty",r.flowKeywordUnknown="flowKeywordUnknown",r.flowRequiredPartMustPrecedeOptional="flowRequiredPartMustPrecedeOptional",r.functionMustBeCalled="functionMustBeCalled",r.unknownFunction="unknownFunction",r.dotAfterFunctionInvocationExpected="dotAfterFunctionInvocationExpected",r.missingSubstitutionValue="missingSubstitutionValue",r.expectedDifferentNumberOfFunctionArguments="expectedDifferentNumberOfFunctionArguments",r.invalidFunctionArgument="invalidFunctionArgument",r.unknownTransformer="unknownTransformer",r.substitutionMustNotStartWithTransformer="substitutionMustNotStartWithTransformer",r.substitutionOutputNotString="substitutionOutputNotString",r.transformerSourceDataTypeMismatch="transformerSourceDataTypeMismatch",r.transformerSelfNotRoot="transformerSelfNotRoot",r.expectedDifferentNumberOfTransformerArguments="expectedDifferentNumberOfTransformerArguments",t.PLDebuggerErrors=class{constructor(){this.messageTable=this.generateMessageTable()}errorTypeToMessage(e,t,r){let n=this.messageTable[e.toString()];return n?(t&&(n=n.replace("{0}",t)),r&&(n=n.replace("{1}",r)),n):e.toString()}generateMessageTable(){return{missingOpeningSubstitutionTag:"Substitution closure }} found, but opening tag {{ is missing before it",missingOpeningCommentTag:"Comment closure *} found, but opening tag {* is missing before it",missingOpeningFlowTag:"Flow closuse ]} found, but opening tag {[ is missing before it",editorPlaceholderFound:"Editor placeholder must be replaced with real value before running the blueprint",flowTextNotAllowedAfterDefinition:"Flow definition must not have any other definition following it",unclosedFlowTag:"Found opening flow tag {[, but its closure ]} is missing",enclosingFlowTagPrecedingFlowDefinition:"Enclosing flow tag ]} can not precede its opening tag. Correct flow definition is {[ ]} or {[ /]}",unclosedSubstitutionTag:"Found opening substitution tag {{, but tag }} to close it is missing",invalidSubstitutionStructure:"Substitution tag missing its definition. Substitution must be defined in format of {{ [definition] }}",unclosedCommentTag:"Found opening comment tag {*, but tag *} to close it is missing",invalidFlowStructure:"Flow tag missing its definition. Flow must be defined in format of {[ [definition] ]}",textTokenRequired:"Text definition required in-between tags",missingEnclosingFlowTag:"Each opened flow must be closed with {[/]}",flowKeywordMismatch:"This flow does not define all its required parts",flowKeywordMissing:"Each flow must start with a keyword",flowKeywordUnknown:"Provided keyword does not represent any known flow",flowArgumentEmpty:"Flow is missing a required argument",flowRequiredPartMustPrecedeOptional:"All required arguments of a flow must be defined before optional arguments can be provided",functionMustBeCalled:"Each defined function must be called with round brackets ()",invalidFunctionArgument:"Invalid function argument provided when calling {0}: {1}",expectedDifferentNumberOfFunctionArguments:"Expected different number of arguments in function call ({0}), but got {1} instead",unknownFunction:"Unknown function {0}",dotAfterFunctionInvocationExpected:"Each function call must either end, or continue with dot to chain commands on top of the retrieved function data",missingSubstitutionValue:"Substitution must not be empty",unknownTransformer:"Unknown transformer {0}",substitutionMustNotStartWithTransformer:"Substitution must start with either value or function call generating the data, but not transformer",substitutionOutputNotString:"Substitution did not resolve to either string or number (resolved to {0}). If you need to represent the value anyway, use .toString() transformer to convert it to readable form",transformerSourceDataTypeMismatch:"Transformer {0} can not be used on value of type {1}, which is what was provided",transformerSelfNotRoot:"this. can only be used at the beginning of call chain, not in the middle. Self gives access to the current context and can be used to access all context variables",expectedDifferentNumberOfTransformerArguments:"Expected different number of arguments in transformer call ({0}), but got {1} instead"}}}},1510:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DSMBridge=void 0;const o=n(r(8938)),i=r(704),s=r(3688);class a{constructor(e){var t,r,n,o;this.authToken=e.accessToken,this.dsmId=e.designSystemId,this.dsmVersion=e.designSystemVersionId,this.dsmBrand=null!==(t=e.brandId)&&void 0!==t?t:null,this.dsmTheme=null!==(r=e.themeId)&&void 0!==r?r:null,this.domain=null!==(n=e.exportPath)&&void 0!==n?n:null,this.apiUrl=e.apiUrl,this.dsmRequestHook=e.dsmRequestHook,this.proxyUrl=e.proxyUrl,this.proxyAgent=e.proxyUrl?new s.HttpsProxyAgent(e.proxyUrl):null,this.logger=e.logger,this.debugMode=null!==(o=e.debugMode)&&void 0!==o&&o,this.dsmDataRequestURL=`${e.apiUrl}/design-systems/${this.dsmId}/versions/${this.dsmVersion}`,this.dataCore=new i.DSMDataCore(this)}static analysisOnlyBridge(){return new a({accessToken:"",apiUrl:"",designSystemId:"",designSystemVersionId:"",brandId:null,apiVersion:"0.2",exportPath:void 0,dsmRequestHook:null,logger:null})}async getToken(){return this.authToken}async getDSMDataFromEndpoint(e,t){let r=`${this.dsmDataRequestURL}/${e}`;return this.getDataForAuthenticatedEndpoint(r,t)}async buildRequestConfig(e,t){const r={url:e,method:t,headers:{},httpsAgent:this.proxyAgent};let n=!1;if(this.dsmRequestHook){const e=await this.dsmRequestHook(r);e&&e.skipDefaultAuth&&(n=!0)}if(!n){const e=await this.getToken();r.headers.Authorization=`Bearer ${e}`}return r}async getDataForAuthenticatedEndpoint(e,t){const r=await this.buildRequestConfig(e,"GET");return new Promise(((e,n)=>{try{o.default.request(r).then((r=>{let n=r.data.result;t&&(n=t(n)),e(n)})).catch((e=>{n(e)}))}catch(e){n(e)}}))}static async getAccessToken(e,t){const r={email:e,password:t};return new Promise(((e,t)=>{o.default.post("https://api.dev.supernova.io/api/user-dev/login",r).then((t=>{e(t.data.result.access_token)})).catch((e=>{t(e)}))}))}}t.DSMBridge=a},704:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMDataCore=void 0;const n=r(4354),o=r(8042),i=r(7560);t.DSMDataCore=class{constructor(e){var t;const r=e.debugMode?e=>{let t=`Network: Invoked [${e.requestMethod}] ${e.requestUrl}`;this.bridge.logger&&this.bridge.logger.logInfo(t,i.PLLogger.makeEmptyTrace())}:null;let s=e.debugMode?e=>{var t,r;let n;n=e.error?`Network: Failure at ${e.requestUrl} (${e.executionTime}ms) \nRequest headers: ${JSON.stringify(e.response.config.headers)} \nError: ${e.error}`:`Network: Success at ${e.requestUrl} (${e.executionTime}ms) \nRequest headers: ${JSON.stringify(e.response.config.headers)} \nResponse headers: ${JSON.stringify(e.response.headers)} \nStatus: ${e.response.status} \nData: ${null===(r=JSON.stringify(null===(t=e.response)||void 0===t?void 0:t.data))||void 0===r?void 0:r.length}b`,this.bridge.logger&&this.bridge.logger.logInfo(n,i.PLLogger.makeEmptyTrace())}:null;this.sdk=new o.Supernova(e.authToken,e.apiUrl,null!==(t=e.dsmRequestHook)&&void 0!==t?t:null,r,s,e.proxyUrl),this.kvsData=new Map,this.bridge=e,this.versionMutex=new n.Mutex,this.versionsMutex=new n.Mutex,this.designSystemsMutex=new n.Mutex,this.documentationMutex=new n.Mutex,this.documentationItemMutex=new n.Mutex,this.tokenMutex=new n.Mutex,this.tokenGroupMutex=new n.Mutex,this.componentMutex=new n.Mutex,this.designComponentMutex=new n.Mutex,this.designComponentGroupMutex=new n.Mutex,this.brandsMutex=new n.Mutex,this.themesMutex=new n.Mutex,this.assetMutex=new n.Mutex,this.assetGroupMutex=new n.Mutex,this.exporterCustomBlockMutex=new n.Mutex,this.kvsMutex=new n.Mutex}async preloadData(){}async currentDomain(){return this.bridge.domain}async designSystems(e){if(!this.rawDesignSystems){await this.designSystemsMutex.waitForUnlock();const t=await this.designSystemsMutex.acquire();this.rawDesignSystems=await this.sdk.designSystems(e),t()}return this.rawDesignSystems}async version(){if(!this.executedVersion){await this.versionMutex.waitForUnlock();const e=await this.versionMutex.acquire();this.executedVersion=await this.sdk.designSystemVersion(this.bridge.dsmId,this.bridge.dsmVersion),e()}return this.executedVersion}async versions(){if(!this.rawVersions){await this.versionsMutex.waitForUnlock();const e=await this.versionsMutex.acquire();this.rawVersions=await this.sdk.designSystemVersions(this.bridge.dsmId),e()}return this.rawVersions}async documentation(){if(!this.rawDocumentation){await this.documentationMutex.waitForUnlock();const e=await this.documentationMutex.acquire();await this.version(),this.rawDocumentation=await this.executedVersion.documentation(),e()}return this.rawDocumentation}async brands(){if(!this.rawBrands){await this.brandsMutex.waitForUnlock();const e=await this.brandsMutex.acquire();await this.version(),this.rawBrands=await this.executedVersion.brands(),this.mappedBrands=new Map;for(let e of this.rawBrands)this.mappedBrands.set(e.persistentId,e),this.mappedBrands.set(e.id,e);e()}return this.rawBrands}async brandById(e){var t;return this.mappedBrands||await this.brands(),null!==(t=this.mappedBrands.get(e))&&void 0!==t?t:null}async themes(){if(!this.rawThemes){await this.themesMutex.waitForUnlock();const e=await this.themesMutex.acquire();await this.version(),this.rawThemes=await this.executedVersion.themes(),this.mappedThemes=new Map;for(let e of this.rawThemes)this.mappedThemes.set(e.id,e),this.mappedThemes.set(e.versionedId,e);e()}return this.rawThemes}async themeById(e){var t;return this.mappedThemes||await this.themes(),null!==(t=this.mappedThemes.get(e))&&void 0!==t?t:null}async themesByBrandId(e){this.mappedThemes||await this.themes();let t=await this.brandById(e);return this.rawThemes.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async components(){if(!this.rawComponents){await this.componentMutex.waitForUnlock();const e=await this.componentMutex.acquire();await this.version(),this.rawComponents=await this.executedVersion.components(),this.mappedComponents=new Map;for(let e of this.rawComponents)this.mappedComponents.set(e.persistentId,e),this.mappedComponents.set(e.id,e);e()}return this.rawComponents}async componentById(e){var t;return this.mappedComponents||await this.components(),null!==(t=this.mappedComponents.get(e))&&void 0!==t?t:null}async componentsByBrandId(e){this.mappedComponents||await this.components();let t=await this.brandById(e);return this.rawComponents.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async designComponents(){if(!this.rawDesignComponents){await this.designComponentMutex.waitForUnlock();const e=await this.designComponentMutex.acquire();await this.version(),this.rawDesignComponents=await this.executedVersion.designComponents(),this.mappedDesignComponents=new Map;for(let e of this.rawDesignComponents)this.mappedDesignComponents.set(e.id,e);e()}return this.rawDesignComponents}async designComponentById(e){var t;return this.mappedDesignComponents||await this.designComponents(),null!==(t=this.mappedDesignComponents.get(e))&&void 0!==t?t:null}async designComponentsByBrandId(e){this.mappedDesignComponents||await this.designComponents();let t=await this.brandById(e);return this.rawDesignComponents.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async designComponentGroups(){if(!this.rawDesignComponentGroups){await this.designComponentGroupMutex.waitForUnlock();const e=await this.designComponentGroupMutex.acquire();await this.version(),this.rawDesignComponentGroups=await this.executedVersion.designComponentGroups(),this.mappedDesignComponentsGroups=new Map;for(let e of this.rawDesignComponentGroups)this.mappedDesignComponentsGroups.set(e.id,e);e()}return this.rawDesignComponentGroups}async designComponentGroupById(e){var t;return this.mappedDesignComponentsGroups||await this.designComponentGroups(),null!==(t=this.mappedDesignComponentsGroups.get(e))&&void 0!==t?t:null}async designComponentGroupByBrandId(e){this.mappedDesignComponentsGroups||await this.designComponentGroups();let t=await this.brandById(e);return this.rawDesignComponentGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async tokens(){if(!this.rawTokens){await this.tokenMutex.waitForUnlock();const e=await this.tokenMutex.acquire();await this.version(),this.rawTokens=await this.executedVersion.tokens(),this.mappedTokens=new Map;for(let e of this.rawTokens)this.mappedTokens.set(e.versionedId,e),this.mappedTokens.set(e.id,e);e()}return this.rawTokens}async tokenById(e){var t;return this.mappedTokens||await this.tokens(),null!==(t=this.mappedTokens.get(e))&&void 0!==t?t:null}async tokensByBrandId(e){this.mappedTokens||await this.tokens();let t=await this.brandById(e);return this.rawTokens.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async tokenGroups(){if(!this.rawTokenGroups){await this.tokenGroupMutex.waitForUnlock();const e=await this.tokenGroupMutex.acquire();await this.version(),this.rawTokenGroups=await this.executedVersion.tokenGroups(),this.mappedTokenGroup=new Map;for(let e of this.rawTokenGroups)this.mappedTokenGroup.set(e.versionedId,e),this.mappedTokenGroup.set(e.id,e);e()}return this.rawTokenGroups}async tokenGroupById(e){var t;return this.mappedTokenGroup||await this.tokenGroups(),null!==(t=this.mappedTokenGroup.get(e))&&void 0!==t?t:null}async tokenGroupsByBrandId(e){this.mappedTokenGroup||await this.tokenGroups();let t=await this.brandById(e);return this.rawTokenGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async assets(){if(!this.rawAssets){await this.assetMutex.waitForUnlock();const e=await this.assetMutex.acquire();await this.version(),this.rawAssets=await this.executedVersion.assets(),this.mappedAssets=new Map;for(let e of this.rawAssets)this.mappedAssets.set(e.id,e);e()}return this.rawAssets}async assetById(e){var t;return this.mappedAssets||await this.assets(),null!==(t=this.mappedAssets.get(e))&&void 0!==t?t:null}async assetsByBrandId(e){this.mappedAssets||await this.assets();let t=await this.brandById(e);return this.rawAssets.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async assetGroups(){if(!this.rawAssetGroups){await this.assetGroupMutex.waitForUnlock();const e=await this.assetGroupMutex.acquire();await this.version(),this.rawAssetGroups=await this.executedVersion.assetGroups(),this.mappedAssetGroups=new Map;for(let e of this.rawAssetGroups)this.mappedAssetGroups.set(e.id,e);e()}return this.rawAssetGroups}async assetGroupById(e){var t;return this.mappedAssetGroups||await this.assetGroups(),null!==(t=this.mappedAssetGroups.get(e))&&void 0!==t?t:null}async assetGroupsByBrandId(e){this.mappedAssetGroups||await this.assetGroups();let t=await this.brandById(e);return this.rawAssetGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async documentationItems(){if(!this.rawDocumentationItems){await this.documentationItemMutex.waitForUnlock();const e=await this.documentationItemMutex.acquire();await this.documentation(),this.rawDocumentationItems=await this.rawDocumentation.items(),this.rawDocumentationPages=new Array,this.rawDocumentationGroups=new Array,this.mappedDocumentationPages=new Map,this.mappedDocumentationGroups=new Map;for(let e of this.rawDocumentationItems)e.type===o.DocumentationItemType.page?(this.mappedDocumentationPages.set(e.persistentId,e),this.mappedDocumentationPages.set(e.id,e),this.rawDocumentationPages.push(e)):(this.mappedDocumentationGroups.set(e.persistentId,e),this.mappedDocumentationGroups.set(e.id,e),this.rawDocumentationGroups.push(e),e.isRoot&&(this.rawDocumentationRoot=e));e()}return this.rawDocumentationItems}async documentationPages(){return this.rawDocumentationPages||await this.documentationItems(),this.rawDocumentationPages}async documentationPageById(e){var t;return this.mappedDocumentationPages||await this.documentationItems(),null!==(t=this.mappedDocumentationPages.get(e))&&void 0!==t?t:null}async documentationGroups(){return this.rawDocumentationGroups||await this.documentationItems(),this.rawDocumentationGroups}async documentationRoot(){return this.rawDocumentationGroups||await this.documentationItems(),this.rawDocumentationRoot}async documentationGroupById(e){var t;return this.mappedDocumentationGroups||await this.documentationItems(),null!==(t=this.mappedDocumentationGroups.get(e))&&void 0!==t?t:null}async currentExporterCustomBlocks(){if(!this.rawExporterCustomBlocks){await this.exporterCustomBlockMutex.waitForUnlock();const e=await this.exporterCustomBlockMutex.acquire();await this.documentation(),this.rawExporterCustomBlocks=await this.rawDocumentation.customBlocks(),e()}return this.rawExporterCustomBlocks}async kvsDataByKey(e){var t;if(!this.kvsData.has(e)){await this.kvsMutex.waitForUnlock();const t=await this.kvsMutex.acquire(),r=await this.sdk.designSystem(this.bridge.dsmId),n=await r.readKeyValueStorageData(e);this.kvsData.set(e,null!=n?n:null),t()}return null!==(t=this.kvsData.get(e))&&void 0!==t?t:null}}},694:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMExecutionContext=void 0;const n=r(4911),o=r(7560),i=r(23),s=r(987),a=r(6883),u=r(7683),l=r(8697),d=r(6345),c=r(1693),p=r(1616),y=r(3104),f=r(5613),m=r(2582),h=r(4405),g=r(6509),w=r(8262),b=r(249),P=r(2125),T=r(5020),x=r(1892),v=r(8918),L=r(7720),F=r(6172),S=r(7156),k=r(8188),D=r(252),E=r(3021),C=r(6179),A=r(7547),M=r(4389),I=r(3197),B=r(2029),O=r(4955),_=r(2537),j=r(9365),V=r(533),$=r(5168),N=r(7763),q=r(3763),R=r(7154),G=r(399),U=r(5855),K=r(606),W=r(2232),z=r(1676),H=r(7107),J=r(7315),Q=r(6955),Z=r(3117),Y=r(9852),X=r(1182),ee=r(8903),te=r(6127),re=r(4200),ne=r(6701);class oe extends n.PLExecutionContext{constructor(e=new i.PLBlueprintLoader,t=new s.PLBlueprintEmitter,r=new o.PLLogger,n=new C.PLBlueprintFactory,a,u,l,d){super(e,t,r,void 0,n),this.bridge=a,this.sandboxData=u,this.configurationData=l,this.exporterData=d,this.jsContext=new x.JSContext(this,l)}provideCustomFunctions(){return[new a.DSMFunctionAllTokens,new u.DSMFunctionTokensByType,new l.DSMFunctionTokensByGroupId,new A.DSMFunctionTokenById,new Z.DSMFunctionTokensByApplyingThemes,new Y.DSMFunctionAllTokensByApplyingThemes,new d.DSMFunctionAllTokenGroups,new I.DSMFunctionAllTokenGroupTrees,new c.DSMFunctionTokenGroupsByType,new p.DSMFunctionTokenGroupTreeByType,new P.DSMFunctionTokenGroupContainingTokenId,new M.DSMFunctionTokenGroupById,new B.DSMFunctionAllAssets,new O.DSMFunctionAssetById,new _.DSMFunctionAssetsByGroupId,new N.DSMFunctionAllAssetGroups,new j.DSMFunctionAssetGroupById,new $.DSMFunctionAssetGroupContainingAssetId,new V.DSMFunctionAssetGroupTree,new G.DSMFunctionAllComponents,new U.DSMFunctionComponentById,new W.DSMFunctionAllDesignComponents,new z.DSMFunctionDesignComponentById,new y.DSMFunctionCurrentDesignSystem,new te.DSMFunctionCurrentDesignSystemSwitcher,new ee.DSMFunctionDesignSystemById,new f.DSMFunctionCurrentDesignSystemVersion,new m.DSMFunctionAllDesignSystemVersions,new h.DSMFunctionFontIsItalic,new w.DSMFunctionFontIsBold,new b.DSMFunctionFontIsRegular,new g.DSMFunctionFontWeight,new T.DSMFunctionConfiguration,new K.DSMFunctionPackageConfiguration,new v.DSMFunctionDocsAllPages,new L.DSMFunctionDocsPageById,new S.DSMFunctionDocsAllGroups,new D.DSMFunctionDocsGroupById,new F.DSMFunctionDocsRootGroup,new E.DSMFunctionDocsConfiguration,new q.DSMFunctionDocsDomain,new k.DSMFunctionDocsPageToMarkdown,new J.DSMFunctionAllThemes,new Q.DSMFunctionThemeById,new X.DSMFunctionCurrentTheme,new H.DSMFunctionAllBrands,new R.DSMFunctionCurrentBrand,new re.DSMFunctionKVSData,new ne.DSMFunctionKVSLocalizationPiece]}provideCustomTransformers(){return[]}provideCustomFlows(){return[]}}t.DSMExecutionContext=oe},2589:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMKeywordsFunctions=void 0;class r{}t.DSMKeywordsFunctions=r,r.allComponents="allComponents",r.componentById="componentById",r.allDesignComponents="allDesignComponents",r.designComponentById="designComponentById",r.allTokens="allTokens",r.tokensByType="tokensByType",r.tokensByGroupId="tokensByGroupId",r.tokenById="tokenById",r.tokensByApplyingThemes="tokensByApplyingThemes",r.allTokensByApplyingThemes="allTokensByApplyingThemes",r.allAssets="allAssets",r.assetsByGroupId="assetsByGroupId",r.assetById="assetById",r.allTokenGroups="allTokenGroups",r.allTokenGroupTrees="allTokenGroupTrees",r.tokenGroupsOfType="tokenGroupsOfType",r.tokenGroupTreeByType="tokenGroupTreeByType",r.tokenGroupContainingTokenId="tokenGroupContainingTokenId",r.tokenGroupById="tokenGroupById",r.allAssetGroups="allAssetGroups",r.assetGroupTree="assetGroupTree",r.assetGroupById="assetGroupById",r.assetGroupContainingAssetId="assetGroupContainingAssetId",r.currentWorkspace="currentWorkspace",r.currentDesignSystem="currentDesignSystem",r.currentDesignSystemSwitcher="currentDesignSystemSwitcher",r.designSystemById="designSystemById",r.currentDesignSystemVersion="currentDesignSystemVersion",r.allDesignSystemVersions="allDesignSystemVersions",r.allBrands="allBrands",r.currentBrand="currentBrand",r.brandById="brandById",r.allThemes="allThemes",r.themeById="themeById",r.currentTheme="currentTheme",r.fontsIsBold="isFontBold",r.fontsIsRegular="isFontRegular",r.fontsIsItalic="isFontItalic",r.fontsWeight="fontWeight",r.configuration="exportConfiguration",r.packageConfiguration="exportPackageConfiguration",r.docsAllPages="allDocumentationPages",r.docsPageById="documentationPageById",r.docsPageToMarkdown="documentationPageToMarkdown",r.docsAllGroups="allDocumentationGroups",r.docsGroupById="documentationGroupById",r.docsRootGroup="rootDocumentationGroup",r.docsConfiguration="documentationConfiguration",r.docsDomain="documentationDomain",r.kvsData="kvsData",r.kvsLocalizationPiece="kvsLocalizationPiece"},2029:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllAssets=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allAssets}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetById(assetId, brandId): Brand ID must be provided");return await r.bridge.dataCore.assetsByBrandId(n)}}t.DSMFunctionAllAssets=i},4955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetById(assetId, brandId): Asset ID must be provided");return await r.bridge.dataCore.assetById(n)}}t.DSMFunctionAssetById=i},2537:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetsByGroupId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetsByGroupId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetsByGroupId(groupId): Group ID must be provided");let o=await r.bridge.dataCore.assetGroupById(n);if(!o)throw Error("Unable to retrieve tokens of ds.assetsByGroupId(groupId): Provided Group ID doesn't correspond to any group");let i=new Array;for(let e of o.assetIds){let t=await r.bridge.dataCore.assetById(e);i.push(null!=t?t:null)}return i}}t.DSMFunctionAssetsByGroupId=i},7107:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllBrands=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.allBrands}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.brands()}}t.DSMFunctionAllBrands=i},7154:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentBrand=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentBrand}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(!r.bridge.dsmBrand)throw new Error("Function ds.currentBrand() can't be used in exporters that don't define the option to select brand when exporting");return await r.bridge.dataCore.brandById(r.bridge.dsmBrand)}}t.DSMFunctionCurrentBrand=i},399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllComponents=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allComponents}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allComponents(brandId): Brand ID must be provided");return await r.bridge.dataCore.componentsByBrandId(n)}}t.DSMFunctionAllComponents=i},5855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionComponentById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.componentById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.componentById(componentId): Component ID must be provided");return await r.bridge.dataCore.componentById(n)}}t.DSMFunctionComponentById=i},5020:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.configuration}type(){return n.PLFunctionType.topLevel}isAsync(){return!1}provideValueUsingArgumentsSync(e,t,r){return r.configurationData}}t.DSMFunctionConfiguration=i},606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionPackageConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.packageConfiguration}type(){return n.PLFunctionType.topLevel}isAsync(){return!1}provideValueUsingArgumentsSync(e,t,r){var n;return null!==(n=r.exporterData)&&void 0!==n?n:null}}t.DSMFunctionPackageConfiguration=i},2232:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllDesignComponents=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allDesignComponents}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allDesignComponents(brandId): Brand ID must be provided");return await r.bridge.dataCore.designComponentsByBrandId(n)}}t.DSMFunctionAllDesignComponents=i},1676:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDesignComponentById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.designComponentById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.designComponentBy(componentId): Design component ID must be provided");return await r.bridge.dataCore.designComponentById(n)}}t.DSMFunctionDesignComponentById=i},3104:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystem=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystem=null}numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystem}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(this.currentDesignSystem)return this.currentDesignSystem;{let e=(await r.bridge.dataCore.version()).designSystem,t=i.designSystemToLightweightObject(e);return this.currentDesignSystem=t,this.currentDesignSystem}}static designSystemToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,isPublic:e.isPublic,isMultiBrand:e.isMultiBrand,designSystemSwitcher:e.designSystemSwitcher,workspaceId:e.workspaceId}}}t.DSMFunctionCurrentDesignSystem=i},6127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystemSwitcher=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystemSwitcher=null}numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystemSwitcher}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(this.currentDesignSystemSwitcher)return this.currentDesignSystemSwitcher;{let e=await r.bridge.dataCore.version();if(e.designSystem.designSystemSwitcher.isEnabled){let t=await r.bridge.dataCore.designSystems(e.designSystem.workspaceId),n=new Set(e.designSystem.designSystemSwitcher.designSystemIds),o=t.filter((e=>n.has(e.id)));o.push(e.designSystem),o.sort(((e,t)=>e.name.localeCompare(t.name))),this.currentDesignSystemSwitcher={isEnabled:e.designSystem.designSystemSwitcher.isEnabled,designSystems:o.map((t=>({id:t.id,name:t.name,isCurrent:t.id===e.designSystem.id})))}}else this.currentDesignSystemSwitcher={isEnabled:!1,designSystems:[]};return this.currentDesignSystemSwitcher}}}t.DSMFunctionCurrentDesignSystemSwitcher=i},8903:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDesignSystemById=void 0;const n=r(8820),o=r(2589),i=r(3104);class s extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystems=null}numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.designSystemById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.designSystemId(designSystemId): Design System ID must be provided");const o=new i.DSMFunctionCurrentDesignSystem;let s=await o.provideValueUsingArguments([],t,r),a=(await r.bridge.dataCore.designSystems(s.workspaceId)).map((e=>i.DSMFunctionCurrentDesignSystem.designSystemToLightweightObject(e)));for(let e of a)if(e.id===n)return e;return null}static designSystemToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,isPublic:e.isPublic,isMultiBrand:e.isMultiBrand,designSystemSwitcher:e.designSystemSwitcher,workspaceId:e.workspaceId}}}t.DSMFunctionDesignSystemById=s},2582:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllDesignSystemVersions=void 0;const n=r(8820),o=r(2589),i=r(5613);class s extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.allDesignSystemVersions}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return(await r.bridge.dataCore.versions()).map((e=>i.DSMFunctionCurrentDesignSystemVersion.versionToLightweightObject(e)))}}t.DSMFunctionAllDesignSystemVersions=s},5613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystemVersion=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystemVersion}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await r.bridge.dataCore.version();return i.versionToLightweightObject(n)}static versionToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,version:e.version,changeLog:e.changeLog,isReadOnly:e.isReadOnly,isSharedDraft:!e.isReadOnly}}}t.DSMFunctionCurrentDesignSystemVersion=i},7156:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsAllGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsAllGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationGroups()}}t.DSMFunctionDocsAllGroups=i},8918:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsAllPages=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsAllPages}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationPages()}}t.DSMFunctionDocsAllPages=i},3021:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsConfiguration}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentation()}}t.DSMFunctionDocsConfiguration=i},3763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsDomain=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsDomain}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.currentDomain()}}t.DSMFunctionDocsDomain=i},252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);return await r.bridge.dataCore.documentationGroupById(n)}}t.DSMFunctionDocsGroupById=i},7720:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsPageById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsPageById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);return await r.bridge.dataCore.documentationPageById(n)}}t.DSMFunctionDocsPageById=i},8188:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsPageToMarkdown=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsPageToMarkdown}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r);if(!(n instanceof i.DocumentationPage))throw new Error("Invalid object type to documentaionPageToMarkdown: Only documentation pages can be transformed to markdown");let o=await r.bridge.dataCore.version();return new i.MarkdownTransform(i.MarkdownTransformType.commonmark,o).convertPageToMarkdown(n)}}t.DSMFunctionDocsPageToMarkdown=s},6172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsRootGroup=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsRootGroup}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationRoot()}}t.DSMFunctionDocsRootGroup=i},8262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsBold=void 0;const n=r(8820),o=r(2589),i=r(6509);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsBold}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=new i.DSMFunctionFontWeight;return 700===await n.provideValueUsingArguments(e,t,r)}}t.DSMFunctionFontIsBold=s},4405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsItalic=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsItalic}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r),o="";if(n instanceof Object)o=n.subfamily;else{if(!(n instanceof Map))throw new Error("Font weight can only be obtained from proper font definition");o=n.get("subfamily")}return o=o.toLowerCase(),!!o.includes("italic")}}t.DSMFunctionFontIsItalic=i},249:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsRegular=void 0;const n=r(8820),o=r(2589),i=r(6509);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsRegular}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=new i.DSMFunctionFontWeight;return 400===await n.provideValueUsingArguments(e,t,r)}}t.DSMFunctionFontIsRegular=s},6509:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontWeight=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsWeight}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r),o="";if(n instanceof Object)o=n.subfamily;else{if(!(n instanceof Map))throw new Error("Font weight can only be obtained from proper font definition");o=n.get("subfamily")}if(o=o.toLowerCase(),o.startsWith("thin"))return 100;if(o.startsWith("extralight"))return 200;if(o.startsWith("light"))return 300;if(o.startsWith("medium"))return 500;if(o.startsWith("semibold"))return 600;if(o.startsWith("bold"))return 700;if(o.startsWith("extrabold"))return 800;if(o.startsWith("black"))return 900;let i=Number(o);return o&&!Number.isNaN(i)?i:400}}t.DSMFunctionFontWeight=i},7763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllAssetGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allAssetGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allAssetGroups(brandId): Brand ID must be provided");return await r.bridge.dataCore.assetGroupsByBrandId(n)}}t.DSMFunctionAllAssetGroups=i},9365:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupById(groupId)? Group ID must be provided");let o=await r.bridge.dataCore.assetGroupById(n);if(!o)throw Error(`Unable to retrieve data of ds.assetGroupById(groupId): Asset group ID ${n} doesn't exist in the current design system`);return o}}t.DSMFunctionAssetGroupById=i},5168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupContainingAssetId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupContainingAssetId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupContainingAssetId(assetId): Asset ID must be provided");let o=await r.bridge.dataCore.assetGroups();for(let e of o)if(-1!==e.assetIds.indexOf(n))return e;return null}}t.DSMFunctionAssetGroupContainingAssetId=i},533:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupTree=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupTree}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupTree(brandId): Brand ID must be provided");let o=(await r.bridge.dataCore.assetGroupsByBrandId(n)).filter((e=>e.isRoot));if(0===o.length)throw Error("Internal error: No root asset group defined");return o[0]}}t.DSMFunctionAssetGroupTree=i},3197:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokenGroupTrees=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokenGroupTrees}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokenGroupTrees(brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokenGroupsByBrandId(n)).filter((e=>e.isRoot))}}t.DSMFunctionAllTokenGroupTrees=i},6345:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokenGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokenGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokenGroups(brandId): Brand ID must be provided");return await r.bridge.dataCore.tokenGroupsByBrandId(n)}}t.DSMFunctionAllTokenGroups=i},4389:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupById(groupId): Group ID must be provided");let o=(await r.bridge.dataCore.tokenGroups()).filter((e=>e.id===n));if(0===o.length)throw Error(`Unable to retrieve data of ds.tokenGroupById(groupId): Token group ID ${n} doesn't exist in the current design system`);return o[0]}}t.DSMFunctionTokenGroupById=i},2125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupContainingTokenId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenGroupContainingTokenId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupContainingTokenId(tokenId): Token ID must be provided");let o=await r.bridge.dataCore.tokenGroups();for(let e of o)if(-1!==e.tokenIds.indexOf(n))return e;return null}}t.DSMFunctionTokenGroupContainingTokenId=i},1616:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupTreeByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokenGroupTreeByType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Brand ID must be provided");let s=(await r.bridge.dataCore.tokenGroupsByBrandId(o)).filter((e=>e.tokenType===n&&e.isRoot));if(0===s.length)throw Error(`Internal Error: No root group defined for type ${n}`);return s[0]}}t.DSMFunctionTokenGroupTreeByType=s},1693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupsByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokenGroupsOfType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokenGroupsByBrandId(o)).filter((e=>e.tokenType===n))}}t.DSMFunctionTokenGroupsByType=s},4200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionKVSData=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.kvsData}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.kvsData(key): Data key must be provided");return await r.bridge.dataCore.kvsDataByKey(n)}}t.DSMFunctionKVSData=i},6701:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionKVSLocalizationPiece=void 0;const n=r(8820),o=r(2589),i=new Map;class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.kvsLocalizationPiece}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){var n,o,s,a,u,l;let d=await this.expectString(0,e,t,r),c=await this.expectString(1,e,t,r);if(0==d.length||0===c.length)throw Error("Invalid attribute of ds.kvsLocalizationData(languageKey, pieceId): Language key and piece id must be provided");if(i.has(d))return null!==(s=null===(o=null===(n=i.get(d))||void 0===n?void 0:n.get(c))||void 0===o?void 0:o.t)&&void 0!==s?s:null;{const e=await r.bridge.dataCore.kvsDataByKey("localization"),t=null==e?void 0:e[d];if(!t)return i.set(d,new Map),null;const n=t.encodedData;if(!n)return i.set(d,new Map),null;try{const e=JSON.parse(n),t=new Map;return e&&e.forEach((e=>{t.set(e.id,e)})),i.set(d,t),null!==(l=null===(u=null===(a=i.get(d))||void 0===a?void 0:a.get(c))||void 0===u?void 0:u.t)&&void 0!==l?l:null}catch(e){return i.set(d,new Map),null}}}}t.DSMFunctionKVSLocalizationPiece=s},7315:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allThemes(brandId): Brand ID must be provided");return await r.bridge.dataCore.themesByBrandId(n)}}t.DSMFunctionAllThemes=i},1182:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentTheme=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentTheme}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return r.bridge.dsmTheme?await r.bridge.dataCore.themeById(r.bridge.dsmTheme):null}}t.DSMFunctionCurrentTheme=i},6955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionThemeById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.themeById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.themeId(themeId): Theme ID must be provided");return await r.bridge.dataCore.themeById(n)}}t.DSMFunctionThemeById=i},6883:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokens=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokens}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokens(brandId): Brand ID must be provided");return await r.bridge.dataCore.tokensByBrandId(n)}}t.DSMFunctionAllTokens=i},9852:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokensByApplyingThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.allTokensByApplyingThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokensByApplyingThemes(brandId, themeIds): Brand ID must be provided");let o=await this.expectArray(1,e,t,r);for(let e of o)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.allTokensByApplyingThemes(brandId, themeIds): Theme id must be a string");return(await r.bridge.dataCore.brandById(n)).tokensByApplyingThemes(o)}}t.DSMFunctionAllTokensByApplyingThemes=i},7547:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenById(tokenId): Token ID must be provided");return await r.bridge.dataCore.tokenById(n)}}t.DSMFunctionTokenById=i},3117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByApplyingThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokensByApplyingThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectArray(0,e,t,r);for(let e of n)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.tokensByApplyingThemes(tokenIds, themeIds): tokenId must be a string");let o=await this.expectArray(1,e,t,r);for(let e of o)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.tokensByApplyingThemes(tokenIds, themeIds): themeId must be a string");return(await r.bridge.dataCore.version()).tokensByApplyingThemes(n,o)}}t.DSMFunctionTokensByApplyingThemes=i},8697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByGroupId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokensByGroupId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokensByGroupId(groupId): Group ID must be provided");let o=await r.bridge.dataCore.tokenGroupById(n);if(!o)throw Error("Unable to retrieve tokens of ds.tokensByGroupId(groupId): Provided Group ID doesn't correspond to any group");let i=new Array;for(let e of o.tokenIds){let t=await r.bridge.dataCore.tokenById(e);i.push(null!=t?t:null)}return i}}t.DSMFunctionTokensByGroupId=i},7683:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokensByType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokensByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokensByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokensByType(tokenType, brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokensByBrandId(o)).filter((e=>e.tokenType===n))}}t.DSMFunctionTokensByType=s},4911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLExecutionContext=void 0;const n=r(987),o=r(23),i=r(3069),s=r(7560),a=r(2077),u=r(9741),l=r(512),d=r(1912),c=r(1870),p=r(2337),y=r(6788),f=r(6454),m=r(4990),h=r(4918),g=r(8690),w=r(7349),b=r(5024),P=r(8065),T=r(3912),x=r(5103),v=r(9651),L=r(5914),F=r(4372),S=r(9318),k=r(5526),D=r(36),E=r(5753),C=r(5069),A=r(9035),M=r(2239),I=r(3193),B=r(6589),O=r(7222),_=r(469),j=r(9893),V=r(3745),$=r(5577),N=r(7655),q=r(3758),R=r(5634),G=r(5584),U=r(8168),K=r(8735),W=r(6087),z=r(953),H=r(213),J=r(7152),Q=r(1436),Z=r(5418),Y=r(9490),X=r(7172),ee=r(6103),te=r(2559),re=r(7952),ne=r(5633),oe=r(4810),ie=r(9097),se=r(8644),ae=r(554),ue=r(849),le=r(4793),de=r(6436),ce=r(3015),pe=r(8526),ye=r(1230),fe=r(7706),me=r(8284),he=r(8044),ge=r(3832),we=r(1164),be=r(6021),Pe=r(4798),Te=r(5669),xe=r(4374),ve=r(3402),Le=r(3973),Fe=r(7514),Se=r(3489),ke=r(5140),De=r(7),Ee=r(5052),Ce=r(538);r(2129);const Ae=r(1892),Me=r(6324),Ie=r(7259),Be=r(6179),Oe=r(5203),_e=r(7525);t.PLExecutionContext=class{constructor(e=new o.PLBlueprintLoader,t=new n.PLBlueprintEmitter,r=new s.PLLogger,i=new Ce.PLDebugger,je=new Be.PLBlueprintFactory,Ve){this.functions=new Map,this.transformers=new Map,this.flows=new Map,this.defaultTransformers=[new W.PLTransformerCamelcased,new K.PLTransformerCapitalized,new U.PLTransformerDefault,new Q.PLTransformerExtended,new R.PLTransformerLowercased,new J.PLTransformerPrefixed,new q.PLTransformerReplacing,new N.PLTransformerSlashDoubleQuotes,new $.PLTransformerSlashNewlines,new V.PLTransformerSlashSingleQuotes,new j.PLTransformerSnakecased,new _.PLTransformerSplit,new re.PLTransformerSplitNewlines,new Z.PLTransformerSplitExpr,new O.PLTransformerSubstring,new H.PLTransformerSuffixed,new ee.PLTransformerTrimmingSpaces,new B.PLTransformerTrimmingCharacter,new I.PLTransformerUppercased,new Ee.PLTransformerContains,new Me.PLTransformerStartsWith,new Ie.PLTransformerEndsWith,new M.PLTransformerAppend,new De.PLTransformerJoin,new A.PLTransformerConcat,new C.PLTransformerEnumerated,new z.PLTransformerFirst,new te.PLTransformerLast,new x.PLTransformerFrom,new D.PLTransformerRandom,new k.PLTransformerRange,new S.PLTransformerReversed,new F.PLTransformerShuffled,new L.PLTransformerSorted,new v.PLTransformerUntil,new E.PLTransformerAdd,new T.PLTransformerKeys,new P.PLTransformerValues,new b.PLTransformerAbsolute,new w.PLTransformerCeiled,new Y.PLTransformerFloored,new g.PLTransformerNegative,new h.PLTransformerPositive,new X.PLTransformerRounded,new m.PLTransformerCount,new f.PLTransformerFormatDate,new y.PLTransformerIsArray,new p.PLTransformerIsBool,new c.PLTransformerIsObject,new d.PLTransformerIsNumber,new l.PLTransformerIsString,new u.PLTransformerToString,new G.PLTransformerEquals],this.defaultFlows=[new ke.PLFlowFor,new Se.PLFlowMap,new Le.PLFlowTraverse,new Fe.PLFlowTraverseChildren,new ve.PLFlowSwitch,new xe.PLFlowCase,new Te.PLFlowDefault,new we.PLFlowIf,new be.PLFlowElseIf,new Pe.PLFlowElse,new ge.PLFlowInject,new he.PLFlowEmit,new me.PLFlowLet,new fe.PLFlowConst,new ue.PLFlowSet,new ye.PLFlowGlobal,new pe.PLFlowCodeMerge,new ce.PLFlowImport,new de.PLFlowReturn,new le.PLFlowLog],this.defaultFunctions=[new ae.PLFunctionCall,new se.PLFunctionArraysToZippedMap,new ie.PLFunctionVarDefined,new oe.PLFunctionVarMutable,new ne.PLFunctionNetworkGetAnonymous,new Oe.PLFunctionRandomInt,new _e.PLFunctionRandomString],this.blueprintLoader=e,this.blueprintEmitter=t,this.blueprintFactory=je,this.logger=r,this.debugger=i,this.proxyUrl=Ve,this.variableContext=new a.PLVariableContext,this.jsContext=new Ae.JSContext(this,{}),this.executedScope=[],this.executedBlueprint="",this.executedNode=null;try{this.registerDefaultTransformers(),this.registerDefaultFlows(),this.registerDefaultFunctions()}catch(e){throw Error(`Internal error registering default language functionality: ${e}`)}try{this.provideCustomFunctions().forEach((e=>{this.registerFunction(e)})),this.provideCustomTransformers().forEach((e=>{this.registerTransformer(e)})),this.provideCustomFlows().forEach((e=>{this.registerFlow(e)}))}catch(e){throw Error(`Internal error registering default language functionality: ${e}`)}}provideCustomFunctions(){return[]}provideCustomTransformers(){return[]}provideCustomFlows(){return[]}registerDefaultFunctions(){try{this.defaultFunctions.forEach((e=>{this.registerFunction(e)}))}catch(e){throw e}}registerDefaultTransformers(){try{this.defaultTransformers.forEach((e=>{this.registerTransformer(e)}))}catch(e){throw e}}registerDefaultFlows(){try{this.defaultFlows.forEach((e=>{this.registerFlow(e)}))}catch(e){throw e}}provideTestFunction(){}registerFunction(e){let t=e.keyword();if(!i.StringUtils.isLettersCanIncludeDot(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("functionKeywordInvalid");this.functions.set(e.keyword(),e)}registerTransformer(e){let t=e.keyword();if(!i.StringUtils.isLetters(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("transformerKeywordInvalid");this.transformers.set(e.keyword(),e)}registerFlow(e){let t=e.keyword();if(!i.StringUtils.isLetters(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("flowKeyworldInvalid");this.flows.set(e.keyword(),e)}flow(e){var t;return null!==(t=this.flows.get(e))&&void 0!==t?t:null}valueTransformer(){return this.transformers.get("value")}valueAlwaysRootTransformer(){return this.transformers.get("alwaysRootValue")}transformer(e){var t;return null!==(t=this.transformers.get(e))&&void 0!==t?t:null}function(e){var t;return null!==(t=this.functions.get(e))&&void 0!==t?t:null}availableFlows(){return this.flows}availableTransformers(){return this.transformers}availableFunctions(){return this.functions}setExecutedScopeForNode(e){let t=e.flowStackIdentifier();this.executedScope=t}setExecutedScopeUsingScope(e){this.executedScope=e}setExecutedBlueprint(e){this.executedBlueprint=e,this.debugger.executedFile=e}setExecutedNode(e){this.executedNode=e}getFunctionReturnStack(){return this.variableContext.functionReturnStack}registerUsingJSHelper(e){e&&e.length>0&&this.jsContext.registerHelper(e)}}},5530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLInterpreter=void 0;const n=r(9139),o=r(6703),i=r(8688),s=r(6350),a=r(8375),u=r(5412),l=r(3903),d=r(4109),c=r(7560);t.PLInterpreter=class{constructor(e=null){this.blueprintConfiguration=null!=e?e:new o.PLBlueprintConfiguration,this.currentlyInterpretingScope=[]}async interpret(e,t,r,o=!1){try{let i;if(this.currentlyInterpretingBlueprint=e,this.createNewExecutingScope(r),r.setExecutedBlueprint(e.id),t.data instanceof Map){let e={};for(let[r,n]of t.data)e[r]=n;i=new n.PLInterpreterContext(e)}else i=t;let s=await this.interpretGroupNode(e.syntax.rootNode,i,r);if(!o){let t=c.PLLogger.makeTrace(r,e);r.logger.logSystem(a.PLLoggerDefaultMessages.interpreterRenderingSuccessful,t)}return s}catch(t){if(r.executedNode&&r.executedNode.debugSymbol&&r.debugger.symbolTable.symbolById(r.executedNode.debugSymbol)){let n=r.debugger.symbolTable.symbolById(r.executedNode.debugSymbol),o=c.PLLogger.makeTrace(r,e,void 0,n);r.logger.logError("Failed processing template node: "+t,o)}else r.logger.logError("Failed processing template node: "+t,c.PLLogger.makeEmptyTrace());throw t}}async interpretGroupNode(e,t,r){var n;this.setExecutingNode(r,e);let o=!1,a={},u="";try{for(let l of e.nodes)if(l.nodeType===i.NodeType.text)u+=this.interpretTextNodeSync(l,t,r);else if(l.nodeType===i.NodeType.substitution)l.preferredExecutionMode===d.SyntaxNodeSubstitutionExecutionMode.sync?u+=this.interpretSubstitutionNodeSync(l,t,r):u+=await this.interpretSubstitutionNodeAsync(l,t,r);else{if(l.nodeType!==i.NodeType.flow)throw l.nodeType===i.NodeType.group?Error("Iterating through SyntaxNodeGroup is not possible as it can't be part of .nodes as it is exclusively used in flows or syntax tree root"):Error("Unsupported node type");{let e=l;if(!e.previousChainFlow&&!e.flow.canFormChainRoot())throw Error("flowCantFormChainRoot");if(null!==e.previousChainFlow&&!o)continue;let i=t.recreateContextWithAdjustments(a),d=await this.interpretFlowNode(e,i,t,r);if(null!==d.result)u+=d.result,o=!1,a={};else{if(d.iterator.type!==s.FlowIteratorType.followthrough)throw Error("Other than using .followThrough, all nodes must generate content");a=null!==(n=d.iterator.followingContextEnhancement)&&void 0!==n?n:{},o=!0}}}return u}catch(e){throw e}}interpretTextNodeSync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),e.interpretSync(t,r)}interpretSubstitutionNodeSync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),e.interpreter.interpretSync(t,r)}async interpretSubstitutionNodeAsync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),await e.interpreter.interpretAsync(t,r)}async interpretFlowNode(e,t,r,n){this.setExecutingNode(n,e);try{let o;switch(e.flow.executionType()){case u.PLFlowExecutionType.defaultBody:o=await this.processFlowBody(e,t,n);break;case u.PLFlowExecutionType.customBody:{let r=await this.processFlowBody(e,t,n);o=await this.processCustomExecutor(e,r,t,n);break}case u.PLFlowExecutionType.customWithoutBody:{let r={result:null,iterator:await e.flow.createBodyIterator(t,n,e.outputs,e.sources,e.keywords),skippedBody:!0};o=await this.processCustomExecutor(e,r,t,n);break}}return this.processContextAdjustmentIfNeeded(e,o,r,n),await this.processVariableAdjustmentIfNeeded(e,this.currentlyInterpretingScope,o,r,n),o}catch(e){throw e}}async processFlowBody(e,t,r){try{let n=await e.flow.createBodyIterator(t,r,e.outputs,e.sources,e.keywords),o="";switch(n.type){case s.FlowIteratorType.skip:return{result:o,iterator:n,skippedBody:!1};case s.FlowIteratorType.singular:case s.FlowIteratorType.iterative:this.modifyExecutingScopeWithIncoming(e,r);for(let i of n){this.modifyExecutingScopeWithIncomingIteratorOf(e,r);let n=t.recreateContextWithAdjustments(i);o+=await this.interpretGroupNode(e.flowGroup,n,r),this.modifyExecutingScopeWithLeavingIteratorOf(e,r)}return this.modifyExecutingScopeWithLeaving(e,r),{result:o,iterator:n,skippedBody:!1};case s.FlowIteratorType.followthrough:return{result:null,iterator:n,skippedBody:!0}}}catch(e){throw e}}async processCustomExecutor(e,t,r,n){try{return{result:await e.flow.createFlowExecutor(r,t,n,this.blueprintConfiguration,e.outputs,e.sources,e.keywords,e.lineOffset,e.firstLineDirective),iterator:t.iterator,skippedBody:t.skippedBody}}catch(e){throw e}}processContextAdjustmentIfNeeded(e,t,r,n){try{let o=e.flow.adjustInterpretingContext(r,t,n,e.outputs,e.sources,e.keywords);return null===o?r:r.modifyContextWithAdjustments(o)}catch(e){throw e}}async processVariableAdjustmentIfNeeded(e,t,r,n,o){try{return await e.flow.adjustExecutingContext(n,r,o,t,e.outputs,e.sources,e.keywords),o}catch(e){throw e}}createNewExecutingScope(e){let t=(0,l.v4)();return this.currentlyInterpretingScope=new Array,this.currentlyInterpretingScope.push(t),this.currentlyInterpretingScope}setExecutingScope(e,t){e.setExecutedScopeUsingScope(this.currentlyInterpretingScope),e.setExecutedBlueprint(t.id)}modifyExecutingScopeWithIncoming(e,t){let r=e.flowIdentifier;return this.currentlyInterpretingScope.push(r),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithLeaving(e,t){if(0===this.currentlyInterpretingScope.length||this.currentlyInterpretingScope[this.currentlyInterpretingScope.length-1]!==e.flowIdentifier)throw Error("Imbalanced scope calls detected, trying to remove incorrect node");return this.currentlyInterpretingScope.pop(),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithIncomingIteratorOf(e,t){let r=(0,l.v4)();return this.currentlyInterpretingScope.push(r),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithLeavingIteratorOf(e,t){if(this.currentlyInterpretingScope.pop(),0===this.currentlyInterpretingScope.length||this.currentlyInterpretingScope[this.currentlyInterpretingScope.length-1]!==e.flowIdentifier)throw Error("Imbalanced scope calls detected, trying to remove incorrect node");return this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}setExecutingNode(e,t){e.setExecutedNode(t)}}},9139:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLInterpreterContext=void 0,t.PLInterpreterContext=class{constructor(e,t=null){if(this.data=null!=e?e:{},t&&t)for(let[e,r]of Object.entries(t))this.data[e]=r}anyValueForKey(e,t){return(null!=t?t:this.data)[e]||null}recreateContextWithAdjustments(e){if(this.isEmpty(e))return this;for(let[t,r]of Object.entries(e))this.data[t]=r;return this}modifyContextWithAdjustments(e){if(this.isEmpty(e))return this;for(let[t,r]of Object.entries(e))this.data[t]=r;return this}isEmpty(e){for(var t in e)return!1;return!0}}},987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintEmitter=void 0,t.PLBlueprintEmitter=class{constructor(){}emit(e){throw Error("Blueprint emitter must provide its own emitting routine")}}},465:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLEmittedContent=void 0,t.PLEmittedContent=class{constructor(e,t){this.filename=e,this.content=t}equals(e){return this.filename===e.filename&&this.content===e.content}}},4724:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLMemoryBlueprintEmitter=void 0;const n=r(987);class o extends n.PLBlueprintEmitter{constructor(e=!1){super(),this.isOverrideAllowed=!1,this.isOverrideAllowed=e,this.storage=new Map}emittedContentForFilename(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}allEmittedContent(){return Array.from(this.storage.values())}clearEmittedFiles(){this.storage=new Map}emit(e){if(!this.isOverrideAllowed&&this.storage.get(e.filename))throw Error("emittedContentExists");this.storage.set(e.filename,e)}}t.PLMemoryBlueprintEmitter=o},5412:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlow=t.PLFlowFormatRequirement=t.PLFlowFormatType=t.PLFlowExecutionType=void 0,function(e){e[e.defaultBody=0]="defaultBody",e[e.customBody=1]="customBody",e[e.customWithoutBody=2]="customWithoutBody"}(r=t.PLFlowExecutionType||(t.PLFlowExecutionType={})),function(e){e[e.keyword=0]="keyword",e[e.source=1]="source",e[e.output=2]="output"}(n=t.PLFlowFormatType||(t.PLFlowFormatType={})),(o=t.PLFlowFormatRequirement||(t.PLFlowFormatRequirement={}))[o.required=0]="required",o[o.optional=1]="optional",t.PLFlow=class{flowFormat(){throw Error("Flow format must be registered")}keyword(){let e=this.flowFormat();if(0===e.length)throw Error("Flow must specify at least one keyword");let t=e[0];if(t.type===n.keyword)return t.definition;throw Error("Flow must start with keyword")}chainableFlows(){return null}canFormChainRoot(){return!0}executionType(){return r.defaultBody}constructor(){}async createBodyIterator(e,t,r,n,o){return new Promise((function(e,t){t("Flow context must be provided")}))}async createFlowExecutor(e,t,r,n,o,i,s,a,u){return new Promise((function(e,t){e("")}))}adjustInterpretingContext(e,t,r,n,o,i){return null}async adjustExecutingContext(e,t,r,n,o,i,s){return new Promise((function(e,t){t("unsupportedTransformSource, expected string")}))}}},6350:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowIterator=t.FlowIteratorType=void 0,function(e){e[e.skip=0]="skip",e[e.singular=1]="singular",e[e.iterative=2]="iterative",e[e.followthrough=3]="followthrough"}(r=t.FlowIteratorType||(t.FlowIteratorType={}));class n{constructor(e,t,r){this.counter=0,this.type=t,this.adjustments=e,this.followingContextEnhancement=r}static followThroughExecution(e){return new n([],r.followthrough,e)}static noExecution(){return new n([],r.skip,null)}static singleExecution(e){return new n([e],r.singular,null)}static iterativeExecution(e){return new n(e,r.iterative,null)}next(){return this.counter++,{done:this.adjustments.length<this.counter,value:this.adjustments[this.counter-1]}}[Symbol.iterator](){return this}}t.FlowIterator=n},5453:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowOutput=void 0;const n=r(3069);t.PLFlowOutput=class{constructor(e){this.originalBackingProperty=e,this.containedQuotes=n.StringUtils.isSurroundedWithDoubleQuotes(e),this.backingProperty=n.StringUtils.withoutDoubleQuotesSingleOccurance(e)}asString(){return this.backingProperty}asNumber(){let e=Number(this.backingProperty);return null===e||Number.isNaN(e)?null:e.valueOf()}asBool(){return"true"===this.backingProperty||"false"!==this.backingProperty&&null}}},65:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowSource=void 0;const n=r(4109);t.PLFlowSource=class{constructor(e){this.backingProperty=e}async asValue(e,t){return this.backingProperty.preferredExecutionMode===n.SyntaxNodeSubstitutionExecutionMode.sync?this.backingProperty.interpreter.interpretSync(e,t):await this.backingProperty.interpreter.interpretAsync(e,t)}asString(){return this.backingProperty.directive}directive(){return this.backingProperty.directive}}},8526:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowCodeMerge=void 0;const n=r(6350),o=r(5412),i=r(33),s=r(9458);class a extends o.PLFlow{flowFormat(){return[{type:o.PLFlowFormatType.keyword,requirement:o.PLFlowFormatRequirement.required,definition:i.PLKeywordsFlows.codeMerge}]}executionType(){return o.PLFlowExecutionType.customWithoutBody}async createBodyIterator(e,t,r,o,i){return n.FlowIterator.singleExecution({})}async createFlowExecutor(e,t,r,n,o,i,a,u,l){return new Promise((function(e,t){let r=" ".repeat(u);e(s.dedent`
|
|
1
|
+
(()=>{"use strict";var e={5773:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprint=void 0,t.PLBlueprint=class{constructor(e,t,r,n){this.id=n,this.declaration=e,this.syntax=t,this.configuration=r}}},6703:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintConfiguration=void 0;class r{constructor(){this.openingWrapperIdentifier="{",this.closingWrapperIdentifier="}",this.openingSubstitutionIdentifier="{",this.closingSubstitutionIdentifier="}",this.openingFlowIdentifier="[",this.closingFlowIdentifier="]",this.flowEnd="/",this.openingCommentIdentifier="*",this.closingCommentIdentifier="*",this.openingEditorPlaceholderIdentifier="#",this.closingEditorPlaceholderIdentifier="#",this.openingCodeSyncBlock="// <",this.closingCodeSyncBlock="// >"}static default(){return new r}}t.PLBlueprintConfiguration=r},6179:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintFactory=void 0;const n=r(6709),o=r(6703),i=r(5773),s=r(5977),a=r(3877),u=r(4911),l=r(8375),d=r(8843),c=r(7560);t.PLBlueprintFactory=class{constructor(e=!1){this.cache=new Map,this.cacheBlueprints=e}blueprint(e,t,r,p){if((t=t.trim()).endsWith(".pr")&&(t=t.substring(0,t.length-3)),this.cacheBlueprints&&this.cache.get(t))return this.cache.get(t);let y=null!=p?p:o.PLBlueprintConfiguration.default(),f=null!=r?r:new u.PLExecutionContext;f.setExecutedBlueprint(t);try{f.debugger.symbolTable.setExecutedSource(t);let r=new n.LexicalParser(e,y,f.debugger).parse(),o=new s.ConcreteParser(r,y,f.debugger).parse(),u=new a.SyntaxParser(o,f).parse(),l=new i.PLBlueprint(e,u,p,t);return this.cacheBlueprints&&this.cache.set(t,l),l}catch(e){new d.PLLoggerErrorUtility(f).reportErrorToActiveLogger(e);let t=c.PLLogger.makeTrace(r,void 0,e.message);throw f.logger.logSystem(l.PLLoggerDefaultMessages.compilerBuildFailure,t),e}}}},33:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsFlows=void 0;class r{}t.PLKeywordsFlows=r,r.codeMerge="code",r.log="log",r.emit="emit",r.import="import",r.return="return",r.if="if",r.else="else",r.elseIf="elseif",r.inject="inject",r.for="for",r.map="map",r.traverse="traverse",r.traverseChildren="traverseChildren",r.case="case",r.default="default",r.switch="switch",r.global="global",r.const="const",r.set="set",r.let="let",r.equal="="},2141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsFunctions=void 0;class r{}t.PLKeywordsFunctions=r,r.blueprintsCall="call",r.supportArraysToZippedMap="zippedMap",r.varDefined="isDefined",r.varMutable="isMutable",r.varGlobal="isGlobal",r.networkGetNetworkData="getNetworkData",r.networkGetBasicAuth="getAuth",r.networkGetBearerAuth="getBearer",r.randomString="randomString",r.randomInt="randomInt"},9865:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLKeywordsTransformers=void 0;class r{}t.PLKeywordsTransformers=r,r.absolute="absolute",r.addedBy="addedBy",r.ceiled="ceiled",r.dividedBy="dividedBy",r.floored="floored",r.multipliedBy="multipliedBy",r.negative="negative",r.positive="positive",r.rounded="rounded",r.subtractedBy="subtractedBy",r.camelcased="camelcased",r.capizalited="capitalized",r.contains="contains",r.default="default",r.equals="equals",r.extended="extended",r.lowercased="lowercased",r.prefixed="prefixed",r.replacing="replacing",r.slashDoubleQuotes="slashDoubleQuotes",r.slashNewlines="slashNewlines",r.slashSingleQuotes="slashSingleQuotes",r.snakecased="snakecased",r.split="split",r.splitNewlines="splitNewlines",r.splitExpr="splitExpr",r.substring="substring",r.suffixed="suffixed",r.trimming="trimming",r.trimmingSpaces="trimmingSpaces",r.uppercased="uppercased",r.startsWith="startsWith",r.endsWith="endsWith",r.count="count",r.formatDate="formatDate",r.isArray="isArray",r.isBool="isBool",r.isObject="isObject",r.isNumber="isNumber",r.isString="isString",r.toString="toString",r.join="join",r.append="append",r.at="at",r.concat="concat",r.enumerated="enumerated",r.first="first",r.last="last",r.from="from",r.random="random",r.range="range",r.reversed="reversed",r.shuffled="shuffled",r.sorted="sorted",r.until="until",r.add="add",r.keys="keys",r.value="value",r.alwaysRootValue="alwaysRootValue",r.values="values",r.jsExecutionPrefix=""},538:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebugger=void 0;const n=r(4067),o=r(7603),i=r(5743);t.PLDebugger=class{constructor(){this.symbolTable=new i.PLSymbolTable(""),this.errorBuilder=new o.PLDebuggerErrorBuilder(this.symbolTable)}reportError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,null,[],this.executedFile,t,r)}reportAnalysisError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[],this.executedFile,t,r)}reportRuntimeError(e,t=void 0,r=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[],this.executedFile,t,r)}reportAnalysisErrorFromLexicalToken(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromLexicalTokens(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromLexicalTokens(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportAnalysisErrorFromConcreteToken(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromConcreteTokens(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromConcreteTokens(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportAnalysisErrorFromSyntaxNode(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,[t.debugSymbol],this.executedFile,r,o)}reportAnalysisErrorFromSyntaxNodes(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromSyntaxNodes(t);return this.errorBuilder.error(e,n.PLErrorSourceType.analyzer,i,this.executedFile,r,o)}reportRuntimeErrorFromSyntaxNode(e,t,r=void 0,o=void 0){return this.errorBuilder.error(e,n.PLErrorSourceType.runtime,[t.debugSymbol],this.executedFile,r,o)}reportRuntimeErrorFromSyntaxNodes(e,t,r=void 0,o=void 0){let i=this.nonEmptyDebugSymbolsFromSyntaxNodes(t);return this.errorBuilder.error(e,n.PLErrorSourceType.runtime,i,this.executedFile,r,o)}nonEmptyDebugSymbolsFromLexicalTokens(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}nonEmptyDebugSymbolsFromConcreteTokens(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}nonEmptyDebugSymbolsFromSyntaxNodes(e){return e.filter((e=>null!==e.debugSymbol)).map((e=>e.debugSymbol))}}},7603:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebuggerErrorBuilder=void 0;const n=r(6937),o=r(4067),i=r(9225);t.PLDebuggerErrorBuilder=class{constructor(e){this.symbolTable=e,this.errors=new i.PLDebuggerErrors}error(e,t,r,n,i=void 0,s=void 0){return this.errorOfType(o.PLErrorSeverityType.error,e,t,n,r,i,s)}warning(e,t,r,n,i=void 0,s=void 0){return this.errorOfType(o.PLErrorSeverityType.warning,e,t,n,r,i,s)}errorOfType(e,t,r,i,s,a=void 0,u=void 0){let l=!1,d=s.map((e=>{let t=this.symbolTable.symbolById(e);return t||(l=!0,console.log(`Unknown symbol ${s} in symbolication table requested. This is an engine error, not syntax error.`)),t})),c=new o.PLErrorAnalysis(e,r,i,l?{startLine:0,startChar:0,endLine:0,endChar:0}:this.symbolsToRange(d)),p=this.errors.errorTypeToMessage(t,a,u);return new n.PLError(p,c)}symbolsToRange(e){if(0===e.length)return null;let t=-1,r=-1,n=-1,o=-1;return e.forEach((e=>{(t>e.startLine||-1===t)&&(t=e.startLine,r=e.startChar),(n<e.endLine||-1===n)&&(n=e.endLine,e.endChar),e.startLine===t&&r>e.startChar&&(r=e.startChar),e.endLine===n&&o<e.endChar&&(o=e.endChar)})),{startLine:t,endLine:n,startChar:r,endChar:o}}}},9225:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLDebuggerErrors=t.PLParserSyntaxError=t.PLParserConcreteError=t.PLParserLexicalError=void 0,t.PLParserLexicalError||(t.PLParserLexicalError={}),(n=t.PLParserConcreteError||(t.PLParserConcreteError={})).unclosedCommentTag="unclosedCommentTag",n.unclosedFlowTag="unclosedFlowTag",n.enclosingFlowTagPrecedingFlowDefinition="enclosingFlowTagPrecedingFlowDefinition",n.missingOpeningSubstitutionTag="missingOpeningSubstitutionTag",n.missingOpeningCommentTag="missingOpeningCommentTag",n.missingOpeningFlowTag="missingOpeningFlowTag",n.editorPlaceholderFound="editorPlaceholderFound",n.unclosedSubstitutionTag="unclosedSubstitutionTag",n.invalidSubstitutionStructure="invalidSubstitutionStructure",n.invalidFlowStructure="invalidFlowStructure",n.textTokenRequired="textTokenRequired",(r=t.PLParserSyntaxError||(t.PLParserSyntaxError={})).missingEnclosingFlowTag="missingEnclosingFlowTag",r.flowKeywordMissing="flowKeywordMissing",r.flowKeywordMismatch="flowKeywordMismatch",r.flowArgumentEmpty="flowArgumentEmpty",r.flowKeywordUnknown="flowKeywordUnknown",r.flowRequiredPartMustPrecedeOptional="flowRequiredPartMustPrecedeOptional",r.functionMustBeCalled="functionMustBeCalled",r.unknownFunction="unknownFunction",r.dotAfterFunctionInvocationExpected="dotAfterFunctionInvocationExpected",r.missingSubstitutionValue="missingSubstitutionValue",r.expectedDifferentNumberOfFunctionArguments="expectedDifferentNumberOfFunctionArguments",r.invalidFunctionArgument="invalidFunctionArgument",r.unknownTransformer="unknownTransformer",r.substitutionMustNotStartWithTransformer="substitutionMustNotStartWithTransformer",r.substitutionOutputNotString="substitutionOutputNotString",r.transformerSourceDataTypeMismatch="transformerSourceDataTypeMismatch",r.transformerSelfNotRoot="transformerSelfNotRoot",r.expectedDifferentNumberOfTransformerArguments="expectedDifferentNumberOfTransformerArguments",t.PLDebuggerErrors=class{constructor(){this.messageTable=this.generateMessageTable()}errorTypeToMessage(e,t,r){let n=this.messageTable[e.toString()];return n?(t&&(n=n.replace("{0}",t)),r&&(n=n.replace("{1}",r)),n):e.toString()}generateMessageTable(){return{missingOpeningSubstitutionTag:"Substitution closure }} found, but opening tag {{ is missing before it",missingOpeningCommentTag:"Comment closure *} found, but opening tag {* is missing before it",missingOpeningFlowTag:"Flow closuse ]} found, but opening tag {[ is missing before it",editorPlaceholderFound:"Editor placeholder must be replaced with real value before running the blueprint",flowTextNotAllowedAfterDefinition:"Flow definition must not have any other definition following it",unclosedFlowTag:"Found opening flow tag {[, but its closure ]} is missing",enclosingFlowTagPrecedingFlowDefinition:"Enclosing flow tag ]} can not precede its opening tag. Correct flow definition is {[ ]} or {[ /]}",unclosedSubstitutionTag:"Found opening substitution tag {{, but tag }} to close it is missing",invalidSubstitutionStructure:"Substitution tag missing its definition. Substitution must be defined in format of {{ [definition] }}",unclosedCommentTag:"Found opening comment tag {*, but tag *} to close it is missing",invalidFlowStructure:"Flow tag missing its definition. Flow must be defined in format of {[ [definition] ]}",textTokenRequired:"Text definition required in-between tags",missingEnclosingFlowTag:"Each opened flow must be closed with {[/]}",flowKeywordMismatch:"This flow does not define all its required parts",flowKeywordMissing:"Each flow must start with a keyword",flowKeywordUnknown:"Provided keyword does not represent any known flow",flowArgumentEmpty:"Flow is missing a required argument",flowRequiredPartMustPrecedeOptional:"All required arguments of a flow must be defined before optional arguments can be provided",functionMustBeCalled:"Each defined function must be called with round brackets ()",invalidFunctionArgument:"Invalid function argument provided when calling {0}: {1}",expectedDifferentNumberOfFunctionArguments:"Expected different number of arguments in function call ({0}), but got {1} instead",unknownFunction:"Unknown function {0}",dotAfterFunctionInvocationExpected:"Each function call must either end, or continue with dot to chain commands on top of the retrieved function data",missingSubstitutionValue:"Substitution must not be empty",unknownTransformer:"Unknown transformer {0}",substitutionMustNotStartWithTransformer:"Substitution must start with either value or function call generating the data, but not transformer",substitutionOutputNotString:"Substitution did not resolve to either string or number (resolved to {0}). If you need to represent the value anyway, use .toString() transformer to convert it to readable form",transformerSourceDataTypeMismatch:"Transformer {0} can not be used on value of type {1}, which is what was provided",transformerSelfNotRoot:"this. can only be used at the beginning of call chain, not in the middle. Self gives access to the current context and can be used to access all context variables",expectedDifferentNumberOfTransformerArguments:"Expected different number of arguments in transformer call ({0}), but got {1} instead"}}}},1510:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DSMBridge=void 0;const o=n(r(8938)),i=r(704),s=r(3688);class a{constructor(e){var t,r,n,o,a,u;this.authToken=e.accessToken,this.dsmId=e.designSystemId,this.dsmVersion=e.designSystemVersionId,this.dsmBrand=null!==(t=e.brandId)&&void 0!==t?t:null,this.dsmTheme=null!==(r=e.themeId)&&void 0!==r?r:null,this.dsmThemes=null!==(n=e.themeIds)&&void 0!==n?n:null,this.domain=null!==(o=e.exportPath)&&void 0!==o?o:null,this.apiUrl=e.apiUrl,this.dsmRequestHook=e.dsmRequestHook,this.proxyUrl=e.proxyUrl,this.proxyAgent=e.proxyUrl?new s.HttpsProxyAgent(e.proxyUrl):null,this.logger=e.logger,this.debugMode=null!==(a=e.debugMode)&&void 0!==a&&a,this.exportJobId=null!==(u=e.exportJobId)&&void 0!==u?u:null,this.dsmDataRequestURL=`${e.apiUrl}/design-systems/${this.dsmId}/versions/${this.dsmVersion}`,this.dataCore=new i.DSMDataCore(this)}static analysisOnlyBridge(){return new a({accessToken:"",apiUrl:"",designSystemId:"",designSystemVersionId:"",brandId:null,apiVersion:"0.2",exportPath:void 0,dsmRequestHook:null,logger:null})}async getToken(){return this.authToken}async getDSMDataFromEndpoint(e,t){let r=`${this.dsmDataRequestURL}/${e}`;return this.getDataForAuthenticatedEndpoint(r,t)}async buildRequestConfig(e,t){const r={url:e,method:t,headers:{},httpsAgent:this.proxyAgent};let n=!1;if(this.dsmRequestHook){const e=await this.dsmRequestHook(r);e&&e.skipDefaultAuth&&(n=!0)}if(!n){const e=await this.getToken();r.headers.Authorization=`Bearer ${e}`}return r}async getDataForAuthenticatedEndpoint(e,t){const r=await this.buildRequestConfig(e,"GET");return new Promise(((e,n)=>{try{o.default.request(r).then((r=>{let n=r.data.result;t&&(n=t(n)),e(n)})).catch((e=>{n(e)}))}catch(e){n(e)}}))}static async getAccessToken(e,t){const r={email:e,password:t};return new Promise(((e,t)=>{o.default.post("https://api.dev.supernova.io/api/user-dev/login",r).then((t=>{e(t.data.result.access_token)})).catch((e=>{t(e)}))}))}}t.DSMBridge=a},704:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMDataCore=void 0;const n=r(4354),o=r(8042),i=r(7560);t.DSMDataCore=class{constructor(e){var t;const r=e.debugMode?e=>{let t=`Network: Invoked [${e.requestMethod}] ${e.requestUrl}`;this.bridge.logger&&this.bridge.logger.logInfo(t,i.PLLogger.makeEmptyTrace())}:null;let s=e.debugMode?e=>{var t,r;let n;n=e.error?`Network: Failure at ${e.requestUrl} (${e.executionTime}ms) \nRequest headers: ${JSON.stringify(e.response.config.headers)} \nError: ${e.error}`:`Network: Success at ${e.requestUrl} (${e.executionTime}ms) \nRequest headers: ${JSON.stringify(e.response.config.headers)} \nResponse headers: ${JSON.stringify(e.response.headers)} \nStatus: ${e.response.status} \nData: ${null===(r=JSON.stringify(null===(t=e.response)||void 0===t?void 0:t.data))||void 0===r?void 0:r.length}b`,this.bridge.logger&&this.bridge.logger.logInfo(n,i.PLLogger.makeEmptyTrace())}:null;this.sdk=new o.Supernova(e.authToken,e.apiUrl,null!==(t=e.dsmRequestHook)&&void 0!==t?t:null,r,s,e.proxyUrl),this.kvsData=new Map,this.bridge=e,this.versionMutex=new n.Mutex,this.versionsMutex=new n.Mutex,this.designSystemsMutex=new n.Mutex,this.documentationMutex=new n.Mutex,this.documentationItemMutex=new n.Mutex,this.tokenMutex=new n.Mutex,this.tokenGroupMutex=new n.Mutex,this.componentMutex=new n.Mutex,this.designComponentMutex=new n.Mutex,this.designComponentGroupMutex=new n.Mutex,this.brandsMutex=new n.Mutex,this.themesMutex=new n.Mutex,this.assetMutex=new n.Mutex,this.assetGroupMutex=new n.Mutex,this.exporterCustomBlockMutex=new n.Mutex,this.kvsMutex=new n.Mutex}async preloadData(){}async currentDomain(){return this.bridge.domain}async designSystems(e){if(!this.rawDesignSystems){await this.designSystemsMutex.waitForUnlock();const t=await this.designSystemsMutex.acquire();this.rawDesignSystems=await this.sdk.designSystems(e),t()}return this.rawDesignSystems}async version(){if(!this.executedVersion){await this.versionMutex.waitForUnlock();const e=await this.versionMutex.acquire();this.executedVersion=await this.sdk.designSystemVersion(this.bridge.dsmId,this.bridge.dsmVersion),e()}return this.executedVersion}async versions(){if(!this.rawVersions){await this.versionsMutex.waitForUnlock();const e=await this.versionsMutex.acquire();this.rawVersions=await this.sdk.designSystemVersions(this.bridge.dsmId),e()}return this.rawVersions}async documentation(){if(!this.rawDocumentation){await this.documentationMutex.waitForUnlock();const e=await this.documentationMutex.acquire();await this.version(),this.rawDocumentation=await this.executedVersion.documentation(),e()}return this.rawDocumentation}async brands(){if(!this.rawBrands){await this.brandsMutex.waitForUnlock();const e=await this.brandsMutex.acquire();await this.version(),this.rawBrands=await this.executedVersion.brands(),this.mappedBrands=new Map;for(let e of this.rawBrands)this.mappedBrands.set(e.persistentId,e),this.mappedBrands.set(e.id,e);e()}return this.rawBrands}async brandById(e){var t;return this.mappedBrands||await this.brands(),null!==(t=this.mappedBrands.get(e))&&void 0!==t?t:null}async themes(){if(!this.rawThemes){await this.themesMutex.waitForUnlock();const e=await this.themesMutex.acquire();await this.version(),this.rawThemes=await this.executedVersion.themes(),this.mappedThemes=new Map;for(let e of this.rawThemes)this.mappedThemes.set(e.id,e),this.mappedThemes.set(e.versionedId,e);e()}return this.rawThemes}async themeById(e){var t;return this.mappedThemes||await this.themes(),null!==(t=this.mappedThemes.get(e))&&void 0!==t?t:null}async themesByBrandId(e){this.mappedThemes||await this.themes();let t=await this.brandById(e);return this.rawThemes.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async components(){if(!this.rawComponents){await this.componentMutex.waitForUnlock();const e=await this.componentMutex.acquire();await this.version(),this.rawComponents=await this.executedVersion.components(),this.mappedComponents=new Map;for(let e of this.rawComponents)this.mappedComponents.set(e.persistentId,e),this.mappedComponents.set(e.id,e);e()}return this.rawComponents}async componentById(e){var t;return this.mappedComponents||await this.components(),null!==(t=this.mappedComponents.get(e))&&void 0!==t?t:null}async componentsByBrandId(e){this.mappedComponents||await this.components();let t=await this.brandById(e);return this.rawComponents.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async designComponents(){if(!this.rawDesignComponents){await this.designComponentMutex.waitForUnlock();const e=await this.designComponentMutex.acquire();await this.version(),this.rawDesignComponents=await this.executedVersion.designComponents(),this.mappedDesignComponents=new Map;for(let e of this.rawDesignComponents)this.mappedDesignComponents.set(e.id,e);e()}return this.rawDesignComponents}async designComponentById(e){var t;return this.mappedDesignComponents||await this.designComponents(),null!==(t=this.mappedDesignComponents.get(e))&&void 0!==t?t:null}async designComponentsByBrandId(e){this.mappedDesignComponents||await this.designComponents();let t=await this.brandById(e);return this.rawDesignComponents.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async designComponentGroups(){if(!this.rawDesignComponentGroups){await this.designComponentGroupMutex.waitForUnlock();const e=await this.designComponentGroupMutex.acquire();await this.version(),this.rawDesignComponentGroups=await this.executedVersion.designComponentGroups(),this.mappedDesignComponentsGroups=new Map;for(let e of this.rawDesignComponentGroups)this.mappedDesignComponentsGroups.set(e.id,e);e()}return this.rawDesignComponentGroups}async designComponentGroupById(e){var t;return this.mappedDesignComponentsGroups||await this.designComponentGroups(),null!==(t=this.mappedDesignComponentsGroups.get(e))&&void 0!==t?t:null}async designComponentGroupByBrandId(e){this.mappedDesignComponentsGroups||await this.designComponentGroups();let t=await this.brandById(e);return this.rawDesignComponentGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async tokens(){if(!this.rawTokens){await this.tokenMutex.waitForUnlock();const e=await this.tokenMutex.acquire();await this.version(),this.rawTokens=await this.executedVersion.tokens(),this.mappedTokens=new Map;for(let e of this.rawTokens)this.mappedTokens.set(e.versionedId,e),this.mappedTokens.set(e.id,e);e()}return this.rawTokens}async tokenById(e){var t;return this.mappedTokens||await this.tokens(),null!==(t=this.mappedTokens.get(e))&&void 0!==t?t:null}async tokensByBrandId(e){this.mappedTokens||await this.tokens();let t=await this.brandById(e);return this.rawTokens.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async tokenGroups(){if(!this.rawTokenGroups){await this.tokenGroupMutex.waitForUnlock();const e=await this.tokenGroupMutex.acquire();await this.version(),this.rawTokenGroups=await this.executedVersion.tokenGroups(),this.mappedTokenGroup=new Map;for(let e of this.rawTokenGroups)this.mappedTokenGroup.set(e.versionedId,e),this.mappedTokenGroup.set(e.id,e);e()}return this.rawTokenGroups}async tokenGroupById(e){var t;return this.mappedTokenGroup||await this.tokenGroups(),null!==(t=this.mappedTokenGroup.get(e))&&void 0!==t?t:null}async tokenGroupsByBrandId(e){this.mappedTokenGroup||await this.tokenGroups();let t=await this.brandById(e);return this.rawTokenGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async assets(){if(!this.rawAssets){await this.assetMutex.waitForUnlock();const e=await this.assetMutex.acquire();await this.version(),this.rawAssets=await this.executedVersion.assets(),this.mappedAssets=new Map;for(let e of this.rawAssets)this.mappedAssets.set(e.id,e);e()}return this.rawAssets}async assetById(e){var t;return this.mappedAssets||await this.assets(),null!==(t=this.mappedAssets.get(e))&&void 0!==t?t:null}async assetsByBrandId(e){this.mappedAssets||await this.assets();let t=await this.brandById(e);return this.rawAssets.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async assetGroups(){if(!this.rawAssetGroups){await this.assetGroupMutex.waitForUnlock();const e=await this.assetGroupMutex.acquire();await this.version(),this.rawAssetGroups=await this.executedVersion.assetGroups(),this.mappedAssetGroups=new Map;for(let e of this.rawAssetGroups)this.mappedAssetGroups.set(e.id,e);e()}return this.rawAssetGroups}async assetGroupById(e){var t;return this.mappedAssetGroups||await this.assetGroups(),null!==(t=this.mappedAssetGroups.get(e))&&void 0!==t?t:null}async assetGroupsByBrandId(e){this.mappedAssetGroups||await this.assetGroups();let t=await this.brandById(e);return this.rawAssetGroups.filter((e=>e.brandId===t.persistentId||e.brandId===t.id))}async documentationItems(){if(!this.rawDocumentationItems){await this.documentationItemMutex.waitForUnlock();const e=await this.documentationItemMutex.acquire();await this.documentation(),this.rawDocumentationItems=await this.rawDocumentation.items(this.bridge.exportJobId),this.rawDocumentationPages=new Array,this.rawDocumentationGroups=new Array,this.mappedDocumentationPages=new Map,this.mappedDocumentationGroups=new Map;for(let e of this.rawDocumentationItems)e.type===o.DocumentationItemType.page?(this.mappedDocumentationPages.set(e.persistentId,e),this.mappedDocumentationPages.set(e.id,e),this.rawDocumentationPages.push(e)):(this.mappedDocumentationGroups.set(e.persistentId,e),this.mappedDocumentationGroups.set(e.id,e),this.rawDocumentationGroups.push(e),e.isRoot&&(this.rawDocumentationRoot=e));e()}return this.rawDocumentationItems}async documentationPages(){return this.rawDocumentationPages||await this.documentationItems(),this.rawDocumentationPages}async documentationPageById(e){var t;return this.mappedDocumentationPages||await this.documentationItems(),null!==(t=this.mappedDocumentationPages.get(e))&&void 0!==t?t:null}async documentationGroups(){return this.rawDocumentationGroups||await this.documentationItems(),this.rawDocumentationGroups}async documentationRoot(){return this.rawDocumentationGroups||await this.documentationItems(),this.rawDocumentationRoot}async documentationGroupById(e){var t;return this.mappedDocumentationGroups||await this.documentationItems(),null!==(t=this.mappedDocumentationGroups.get(e))&&void 0!==t?t:null}async currentExporterCustomBlocks(){if(!this.rawExporterCustomBlocks){await this.exporterCustomBlockMutex.waitForUnlock();const e=await this.exporterCustomBlockMutex.acquire();await this.documentation(),this.rawExporterCustomBlocks=await this.rawDocumentation.customBlocks(),e()}return this.rawExporterCustomBlocks}async kvsDataByKey(e){var t;if(!this.kvsData.has(e)){await this.kvsMutex.waitForUnlock();const t=await this.kvsMutex.acquire(),r=await this.sdk.designSystem(this.bridge.dsmId),n=await r.readKeyValueStorageData(e);this.kvsData.set(e,null!=n?n:null),t()}return null!==(t=this.kvsData.get(e))&&void 0!==t?t:null}}},694:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMExecutionContext=void 0;const n=r(4911),o=r(7560),i=r(23),s=r(987),a=r(6883),u=r(7683),l=r(8697),d=r(6345),c=r(1693),p=r(1616),y=r(3104),f=r(5613),m=r(2582),h=r(4405),g=r(6509),w=r(8262),b=r(249),P=r(2125),T=r(5020),x=r(1892),v=r(8918),L=r(7720),F=r(6172),S=r(7156),k=r(8188),D=r(252),E=r(3021),C=r(6179),A=r(7547),M=r(4389),I=r(3197),B=r(2029),O=r(4955),_=r(2537),j=r(9365),V=r(533),$=r(5168),N=r(7763),q=r(3763),R=r(7154),G=r(399),U=r(5855),K=r(606),W=r(2232),z=r(1676),H=r(7107),J=r(7315),Q=r(6955),Z=r(3117),Y=r(9852),X=r(1182),ee=r(8903),te=r(6127),re=r(4200),ne=r(6701);class oe extends n.PLExecutionContext{constructor(e=new i.PLBlueprintLoader,t=new s.PLBlueprintEmitter,r=new o.PLLogger,n=new C.PLBlueprintFactory,a,u,l,d){super(e,t,r,void 0,n),this.bridge=a,this.sandboxData=u,this.configurationData=l,this.exporterData=d,this.jsContext=new x.JSContext(this,l)}provideCustomFunctions(){return[new a.DSMFunctionAllTokens,new u.DSMFunctionTokensByType,new l.DSMFunctionTokensByGroupId,new A.DSMFunctionTokenById,new Z.DSMFunctionTokensByApplyingThemes,new Y.DSMFunctionAllTokensByApplyingThemes,new d.DSMFunctionAllTokenGroups,new I.DSMFunctionAllTokenGroupTrees,new c.DSMFunctionTokenGroupsByType,new p.DSMFunctionTokenGroupTreeByType,new P.DSMFunctionTokenGroupContainingTokenId,new M.DSMFunctionTokenGroupById,new B.DSMFunctionAllAssets,new O.DSMFunctionAssetById,new _.DSMFunctionAssetsByGroupId,new N.DSMFunctionAllAssetGroups,new j.DSMFunctionAssetGroupById,new $.DSMFunctionAssetGroupContainingAssetId,new V.DSMFunctionAssetGroupTree,new G.DSMFunctionAllComponents,new U.DSMFunctionComponentById,new W.DSMFunctionAllDesignComponents,new z.DSMFunctionDesignComponentById,new y.DSMFunctionCurrentDesignSystem,new te.DSMFunctionCurrentDesignSystemSwitcher,new ee.DSMFunctionDesignSystemById,new f.DSMFunctionCurrentDesignSystemVersion,new m.DSMFunctionAllDesignSystemVersions,new h.DSMFunctionFontIsItalic,new w.DSMFunctionFontIsBold,new b.DSMFunctionFontIsRegular,new g.DSMFunctionFontWeight,new T.DSMFunctionConfiguration,new K.DSMFunctionPackageConfiguration,new v.DSMFunctionDocsAllPages,new L.DSMFunctionDocsPageById,new S.DSMFunctionDocsAllGroups,new D.DSMFunctionDocsGroupById,new F.DSMFunctionDocsRootGroup,new E.DSMFunctionDocsConfiguration,new q.DSMFunctionDocsDomain,new k.DSMFunctionDocsPageToMarkdown,new J.DSMFunctionAllThemes,new Q.DSMFunctionThemeById,new X.DSMFunctionCurrentTheme,new H.DSMFunctionAllBrands,new R.DSMFunctionCurrentBrand,new re.DSMFunctionKVSData,new ne.DSMFunctionKVSLocalizationPiece]}provideCustomTransformers(){return[]}provideCustomFlows(){return[]}}t.DSMExecutionContext=oe},2589:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMKeywordsFunctions=void 0;class r{}t.DSMKeywordsFunctions=r,r.allComponents="allComponents",r.componentById="componentById",r.allDesignComponents="allDesignComponents",r.designComponentById="designComponentById",r.allTokens="allTokens",r.tokensByType="tokensByType",r.tokensByGroupId="tokensByGroupId",r.tokenById="tokenById",r.tokensByApplyingThemes="tokensByApplyingThemes",r.allTokensByApplyingThemes="allTokensByApplyingThemes",r.allAssets="allAssets",r.assetsByGroupId="assetsByGroupId",r.assetById="assetById",r.allTokenGroups="allTokenGroups",r.allTokenGroupTrees="allTokenGroupTrees",r.tokenGroupsOfType="tokenGroupsOfType",r.tokenGroupTreeByType="tokenGroupTreeByType",r.tokenGroupContainingTokenId="tokenGroupContainingTokenId",r.tokenGroupById="tokenGroupById",r.allAssetGroups="allAssetGroups",r.assetGroupTree="assetGroupTree",r.assetGroupById="assetGroupById",r.assetGroupContainingAssetId="assetGroupContainingAssetId",r.currentWorkspace="currentWorkspace",r.currentDesignSystem="currentDesignSystem",r.currentDesignSystemSwitcher="currentDesignSystemSwitcher",r.designSystemById="designSystemById",r.currentDesignSystemVersion="currentDesignSystemVersion",r.allDesignSystemVersions="allDesignSystemVersions",r.allBrands="allBrands",r.currentBrand="currentBrand",r.brandById="brandById",r.allThemes="allThemes",r.themeById="themeById",r.currentTheme="currentTheme",r.fontsIsBold="isFontBold",r.fontsIsRegular="isFontRegular",r.fontsIsItalic="isFontItalic",r.fontsWeight="fontWeight",r.configuration="exportConfiguration",r.packageConfiguration="exportPackageConfiguration",r.docsAllPages="allDocumentationPages",r.docsPageById="documentationPageById",r.docsPageToMarkdown="documentationPageToMarkdown",r.docsAllGroups="allDocumentationGroups",r.docsGroupById="documentationGroupById",r.docsRootGroup="rootDocumentationGroup",r.docsConfiguration="documentationConfiguration",r.docsDomain="documentationDomain",r.kvsData="kvsData",r.kvsLocalizationPiece="kvsLocalizationPiece"},2029:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllAssets=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allAssets}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetById(assetId, brandId): Brand ID must be provided");return await r.bridge.dataCore.assetsByBrandId(n)}}t.DSMFunctionAllAssets=i},4955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetById(assetId, brandId): Asset ID must be provided");return await r.bridge.dataCore.assetById(n)}}t.DSMFunctionAssetById=i},2537:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetsByGroupId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetsByGroupId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetsByGroupId(groupId): Group ID must be provided");let o=await r.bridge.dataCore.assetGroupById(n);if(!o)throw Error("Unable to retrieve tokens of ds.assetsByGroupId(groupId): Provided Group ID doesn't correspond to any group");let i=new Array;for(let e of o.assetIds){let t=await r.bridge.dataCore.assetById(e);i.push(null!=t?t:null)}return i}}t.DSMFunctionAssetsByGroupId=i},7107:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllBrands=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.allBrands}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.brands()}}t.DSMFunctionAllBrands=i},7154:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentBrand=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentBrand}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(!r.bridge.dsmBrand)throw new Error("Function ds.currentBrand() can't be used in exporters that don't define the option to select brand when exporting");return await r.bridge.dataCore.brandById(r.bridge.dsmBrand)}}t.DSMFunctionCurrentBrand=i},399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllComponents=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allComponents}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allComponents(brandId): Brand ID must be provided");return await r.bridge.dataCore.componentsByBrandId(n)}}t.DSMFunctionAllComponents=i},5855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionComponentById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.componentById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.componentById(componentId): Component ID must be provided");return await r.bridge.dataCore.componentById(n)}}t.DSMFunctionComponentById=i},5020:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.configuration}type(){return n.PLFunctionType.topLevel}isAsync(){return!1}provideValueUsingArgumentsSync(e,t,r){return r.configurationData}}t.DSMFunctionConfiguration=i},606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionPackageConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.packageConfiguration}type(){return n.PLFunctionType.topLevel}isAsync(){return!1}provideValueUsingArgumentsSync(e,t,r){var n;return null!==(n=r.exporterData)&&void 0!==n?n:null}}t.DSMFunctionPackageConfiguration=i},2232:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllDesignComponents=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allDesignComponents}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allDesignComponents(brandId): Brand ID must be provided");return await r.bridge.dataCore.designComponentsByBrandId(n)}}t.DSMFunctionAllDesignComponents=i},1676:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDesignComponentById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.designComponentById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.designComponentBy(componentId): Design component ID must be provided");return await r.bridge.dataCore.designComponentById(n)}}t.DSMFunctionDesignComponentById=i},3104:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystem=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystem=null}numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystem}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(this.currentDesignSystem)return this.currentDesignSystem;{let e=(await r.bridge.dataCore.version()).designSystem,t=i.designSystemToLightweightObject(e);return this.currentDesignSystem=t,this.currentDesignSystem}}static designSystemToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,isPublic:e.isPublic,isMultiBrand:e.isMultiBrand,designSystemSwitcher:e.designSystemSwitcher,workspaceId:e.workspaceId}}}t.DSMFunctionCurrentDesignSystem=i},6127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystemSwitcher=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystemSwitcher=null}numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystemSwitcher}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){if(this.currentDesignSystemSwitcher)return this.currentDesignSystemSwitcher;{let e=await r.bridge.dataCore.version();if(e.designSystem.designSystemSwitcher.isEnabled){let t=await r.bridge.dataCore.designSystems(e.designSystem.workspaceId),n=new Set(e.designSystem.designSystemSwitcher.designSystemIds),o=t.filter((e=>n.has(e.id)));o.push(e.designSystem),o.sort(((e,t)=>e.name.localeCompare(t.name))),this.currentDesignSystemSwitcher={isEnabled:e.designSystem.designSystemSwitcher.isEnabled,designSystems:o.map((t=>({id:t.id,name:t.name,isCurrent:t.id===e.designSystem.id})))}}else this.currentDesignSystemSwitcher={isEnabled:!1,designSystems:[]};return this.currentDesignSystemSwitcher}}}t.DSMFunctionCurrentDesignSystemSwitcher=i},8903:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDesignSystemById=void 0;const n=r(8820),o=r(2589),i=r(3104);class s extends n.PLFunction{constructor(){super(...arguments),this.currentDesignSystems=null}numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.designSystemById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.designSystemId(designSystemId): Design System ID must be provided");const o=new i.DSMFunctionCurrentDesignSystem;let s=await o.provideValueUsingArguments([],t,r),a=(await r.bridge.dataCore.designSystems(s.workspaceId)).map((e=>i.DSMFunctionCurrentDesignSystem.designSystemToLightweightObject(e)));for(let e of a)if(e.id===n)return e;return null}static designSystemToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,isPublic:e.isPublic,isMultiBrand:e.isMultiBrand,designSystemSwitcher:e.designSystemSwitcher,workspaceId:e.workspaceId}}}t.DSMFunctionDesignSystemById=s},2582:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllDesignSystemVersions=void 0;const n=r(8820),o=r(2589),i=r(5613);class s extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.allDesignSystemVersions}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return(await r.bridge.dataCore.versions()).map((e=>i.DSMFunctionCurrentDesignSystemVersion.versionToLightweightObject(e)))}}t.DSMFunctionAllDesignSystemVersions=s},5613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentDesignSystemVersion=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentDesignSystemVersion}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await r.bridge.dataCore.version();return i.versionToLightweightObject(n)}static versionToLightweightObject(e){return{id:e.id,name:e.name,description:e.description,version:e.version,changeLog:e.changeLog,isReadOnly:e.isReadOnly,isSharedDraft:!e.isReadOnly}}}t.DSMFunctionCurrentDesignSystemVersion=i},7156:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsAllGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsAllGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationGroups()}}t.DSMFunctionDocsAllGroups=i},8918:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsAllPages=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsAllPages}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationPages()}}t.DSMFunctionDocsAllPages=i},3021:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsConfiguration=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsConfiguration}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentation()}}t.DSMFunctionDocsConfiguration=i},3763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsDomain=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsDomain}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.currentDomain()}}t.DSMFunctionDocsDomain=i},252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);return await r.bridge.dataCore.documentationGroupById(n)}}t.DSMFunctionDocsGroupById=i},7720:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsPageById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsPageById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);return await r.bridge.dataCore.documentationPageById(n)}}t.DSMFunctionDocsPageById=i},8188:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsPageToMarkdown=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.docsPageToMarkdown}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r);if(!(n instanceof i.DocumentationPage))throw new Error("Invalid object type to documentaionPageToMarkdown: Only documentation pages can be transformed to markdown");let o=await r.bridge.dataCore.version();return new i.MarkdownTransform(i.MarkdownTransformType.commonmark,o).convertPageToMarkdown(n)}}t.DSMFunctionDocsPageToMarkdown=s},6172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionDocsRootGroup=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.docsRootGroup}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return await r.bridge.dataCore.documentationRoot()}}t.DSMFunctionDocsRootGroup=i},8262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsBold=void 0;const n=r(8820),o=r(2589),i=r(6509);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsBold}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=new i.DSMFunctionFontWeight;return 700===await n.provideValueUsingArguments(e,t,r)}}t.DSMFunctionFontIsBold=s},4405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsItalic=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsItalic}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r),o="";if(n instanceof Object)o=n.subfamily;else{if(!(n instanceof Map))throw new Error("Font weight can only be obtained from proper font definition");o=n.get("subfamily")}return o=o.toLowerCase(),!!o.includes("italic")}}t.DSMFunctionFontIsItalic=i},249:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontIsRegular=void 0;const n=r(8820),o=r(2589),i=r(6509);class s extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsIsRegular}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=new i.DSMFunctionFontWeight;return 400===await n.provideValueUsingArguments(e,t,r)}}t.DSMFunctionFontIsRegular=s},6509:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionFontWeight=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.fontsWeight}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectAny(0,e,t,r),o="";if(n instanceof Object)o=n.subfamily;else{if(!(n instanceof Map))throw new Error("Font weight can only be obtained from proper font definition");o=n.get("subfamily")}if(o=o.toLowerCase(),o.startsWith("thin"))return 100;if(o.startsWith("extralight"))return 200;if(o.startsWith("light"))return 300;if(o.startsWith("medium"))return 500;if(o.startsWith("semibold"))return 600;if(o.startsWith("bold"))return 700;if(o.startsWith("extrabold"))return 800;if(o.startsWith("black"))return 900;let i=Number(o);return o&&!Number.isNaN(i)?i:400}}t.DSMFunctionFontWeight=i},7763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllAssetGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allAssetGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allAssetGroups(brandId): Brand ID must be provided");return await r.bridge.dataCore.assetGroupsByBrandId(n)}}t.DSMFunctionAllAssetGroups=i},9365:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupById(groupId)? Group ID must be provided");let o=await r.bridge.dataCore.assetGroupById(n);if(!o)throw Error(`Unable to retrieve data of ds.assetGroupById(groupId): Asset group ID ${n} doesn't exist in the current design system`);return o}}t.DSMFunctionAssetGroupById=i},5168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupContainingAssetId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupContainingAssetId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupContainingAssetId(assetId): Asset ID must be provided");let o=await r.bridge.dataCore.assetGroups();for(let e of o)if(-1!==e.assetIds.indexOf(n))return e;return null}}t.DSMFunctionAssetGroupContainingAssetId=i},533:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAssetGroupTree=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.assetGroupTree}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.assetGroupTree(brandId): Brand ID must be provided");let o=(await r.bridge.dataCore.assetGroupsByBrandId(n)).filter((e=>e.isRoot));if(0===o.length)throw Error("Internal error: No root asset group defined");return o[0]}}t.DSMFunctionAssetGroupTree=i},3197:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokenGroupTrees=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokenGroupTrees}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokenGroupTrees(brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokenGroupsByBrandId(n)).filter((e=>e.isRoot))}}t.DSMFunctionAllTokenGroupTrees=i},6345:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokenGroups=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokenGroups}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokenGroups(brandId): Brand ID must be provided");return await r.bridge.dataCore.tokenGroupsByBrandId(n)}}t.DSMFunctionAllTokenGroups=i},4389:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenGroupById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupById(groupId): Group ID must be provided");let o=(await r.bridge.dataCore.tokenGroups()).filter((e=>e.id===n));if(0===o.length)throw Error(`Unable to retrieve data of ds.tokenGroupById(groupId): Token group ID ${n} doesn't exist in the current design system`);return o[0]}}t.DSMFunctionTokenGroupById=i},2125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupContainingTokenId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenGroupContainingTokenId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupContainingTokenId(tokenId): Token ID must be provided");let o=await r.bridge.dataCore.tokenGroups();for(let e of o)if(-1!==e.tokenIds.indexOf(n))return e;return null}}t.DSMFunctionTokenGroupContainingTokenId=i},1616:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupTreeByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokenGroupTreeByType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokenGroupTreeByType(tokenType, brandId): Brand ID must be provided");let s=(await r.bridge.dataCore.tokenGroupsByBrandId(o)).filter((e=>e.tokenType===n&&e.isRoot));if(0===s.length)throw Error(`Internal Error: No root group defined for type ${n}`);return s[0]}}t.DSMFunctionTokenGroupTreeByType=s},1693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenGroupsByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokenGroupsOfType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokenGroupsByType(tokenType, brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokenGroupsByBrandId(o)).filter((e=>e.tokenType===n))}}t.DSMFunctionTokenGroupsByType=s},4200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionKVSData=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.kvsData}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.kvsData(key): Data key must be provided");return await r.bridge.dataCore.kvsDataByKey(n)}}t.DSMFunctionKVSData=i},6701:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionKVSLocalizationPiece=void 0;const n=r(8820),o=r(2589),i=new Map;class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.kvsLocalizationPiece}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){var n,o,s,a,u,l;let d=await this.expectString(0,e,t,r),c=await this.expectString(1,e,t,r);if(0==d.length||0===c.length)throw Error("Invalid attribute of ds.kvsLocalizationData(languageKey, pieceId): Language key and piece id must be provided");if(i.has(d))return null!==(s=null===(o=null===(n=i.get(d))||void 0===n?void 0:n.get(c))||void 0===o?void 0:o.t)&&void 0!==s?s:null;{const e=await r.bridge.dataCore.kvsDataByKey("localization"),t=null==e?void 0:e[d];if(!t)return i.set(d,new Map),null;const n=t.encodedData;if(!n)return i.set(d,new Map),null;try{const e=JSON.parse(n),t=new Map;return e&&e.forEach((e=>{t.set(e.id,e)})),i.set(d,t),null!==(l=null===(u=null===(a=i.get(d))||void 0===a?void 0:a.get(c))||void 0===u?void 0:u.t)&&void 0!==l?l:null}catch(e){return i.set(d,new Map),null}}}}t.DSMFunctionKVSLocalizationPiece=s},7315:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allThemes(brandId): Brand ID must be provided");return await r.bridge.dataCore.themesByBrandId(n)}}t.DSMFunctionAllThemes=i},1182:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionCurrentTheme=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 0}keyword(){return o.DSMKeywordsFunctions.currentTheme}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){return r.bridge.dsmTheme?await r.bridge.dataCore.themeById(r.bridge.dsmTheme):null}}t.DSMFunctionCurrentTheme=i},6955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionThemeById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.themeById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.themeId(themeId): Theme ID must be provided");return await r.bridge.dataCore.themeById(n)}}t.DSMFunctionThemeById=i},6883:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokens=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.allTokens}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokens(brandId): Brand ID must be provided");return await r.bridge.dataCore.tokensByBrandId(n)}}t.DSMFunctionAllTokens=i},9852:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionAllTokensByApplyingThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.allTokensByApplyingThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.allTokensByApplyingThemes(brandId, themeIds): Brand ID must be provided");let o=await this.expectArray(1,e,t,r);for(let e of o)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.allTokensByApplyingThemes(brandId, themeIds): Theme id must be a string");return(await r.bridge.dataCore.brandById(n)).tokensByApplyingThemes(o)}}t.DSMFunctionAllTokensByApplyingThemes=i},7547:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokenById=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokenById}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokenById(tokenId): Token ID must be provided");return await r.bridge.dataCore.tokenById(n)}}t.DSMFunctionTokenById=i},3117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByApplyingThemes=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokensByApplyingThemes}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectArray(0,e,t,r);for(let e of n)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.tokensByApplyingThemes(tokenIds, themeIds): tokenId must be a string");let o=await this.expectArray(1,e,t,r);for(let e of o)if("string"!=typeof e||0===e.length)throw Error("Invalid attribute of ds.tokensByApplyingThemes(tokenIds, themeIds): themeId must be a string");return(await r.bridge.dataCore.version()).tokensByApplyingThemes(n,o)}}t.DSMFunctionTokensByApplyingThemes=i},8697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByGroupId=void 0;const n=r(8820),o=r(2589);class i extends n.PLFunction{numberOfArguments(){return 1}keyword(){return o.DSMKeywordsFunctions.tokensByGroupId}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokensByGroupId(groupId): Group ID must be provided");let o=await r.bridge.dataCore.tokenGroupById(n);if(!o)throw Error("Unable to retrieve tokens of ds.tokensByGroupId(groupId): Provided Group ID doesn't correspond to any group");let i=new Array;for(let e of o.tokenIds){let t=await r.bridge.dataCore.tokenById(e);i.push(null!=t?t:null)}return i}}t.DSMFunctionTokensByGroupId=i},7683:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DSMFunctionTokensByType=void 0;const n=r(8820),o=r(2589),i=r(8042);class s extends n.PLFunction{numberOfArguments(){return 2}keyword(){return o.DSMKeywordsFunctions.tokensByType}type(){return n.PLFunctionType.ds}isAsync(){return!0}async provideValueUsingArguments(e,t,r){let n=await this.expectString(0,e,t,r);if(0==n.length)throw Error("Invalid attribute of ds.tokensByType(tokenType, brandId): Token Type must be provided");if(!Object.values(i.TokenType).includes(n))throw Error(`Invalid attribute of ds.tokensByType(tokenType, brandId): Unknown token type ${n}`);let o=await this.expectString(1,e,t,r);if(0==o.length)throw Error("Invalid attribute of ds.tokensByType(tokenType, brandId): Brand ID must be provided");return(await r.bridge.dataCore.tokensByBrandId(o)).filter((e=>e.tokenType===n))}}t.DSMFunctionTokensByType=s},4911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLExecutionContext=void 0;const n=r(987),o=r(23),i=r(3069),s=r(7560),a=r(2077),u=r(9741),l=r(512),d=r(1912),c=r(1870),p=r(2337),y=r(6788),f=r(6454),m=r(4990),h=r(4918),g=r(8690),w=r(7349),b=r(5024),P=r(8065),T=r(3912),x=r(5103),v=r(9651),L=r(5914),F=r(4372),S=r(9318),k=r(5526),D=r(36),E=r(5753),C=r(5069),A=r(9035),M=r(2239),I=r(3193),B=r(6589),O=r(7222),_=r(469),j=r(9893),V=r(3745),$=r(5577),N=r(7655),q=r(3758),R=r(5634),G=r(5584),U=r(8168),K=r(8735),W=r(6087),z=r(953),H=r(213),J=r(7152),Q=r(1436),Z=r(5418),Y=r(9490),X=r(7172),ee=r(6103),te=r(2559),re=r(7952),ne=r(5633),oe=r(4810),ie=r(9097),se=r(8644),ae=r(554),ue=r(849),le=r(4793),de=r(6436),ce=r(3015),pe=r(8526),ye=r(1230),fe=r(7706),me=r(8284),he=r(8044),ge=r(3832),we=r(1164),be=r(6021),Pe=r(4798),Te=r(5669),xe=r(4374),ve=r(3402),Le=r(3973),Fe=r(7514),Se=r(3489),ke=r(5140),De=r(7),Ee=r(5052),Ce=r(538);r(2129);const Ae=r(1892),Me=r(6324),Ie=r(7259),Be=r(6179),Oe=r(5203),_e=r(7525);t.PLExecutionContext=class{constructor(e=new o.PLBlueprintLoader,t=new n.PLBlueprintEmitter,r=new s.PLLogger,i=new Ce.PLDebugger,je=new Be.PLBlueprintFactory,Ve){this.functions=new Map,this.transformers=new Map,this.flows=new Map,this.defaultTransformers=[new W.PLTransformerCamelcased,new K.PLTransformerCapitalized,new U.PLTransformerDefault,new Q.PLTransformerExtended,new R.PLTransformerLowercased,new J.PLTransformerPrefixed,new q.PLTransformerReplacing,new N.PLTransformerSlashDoubleQuotes,new $.PLTransformerSlashNewlines,new V.PLTransformerSlashSingleQuotes,new j.PLTransformerSnakecased,new _.PLTransformerSplit,new re.PLTransformerSplitNewlines,new Z.PLTransformerSplitExpr,new O.PLTransformerSubstring,new H.PLTransformerSuffixed,new ee.PLTransformerTrimmingSpaces,new B.PLTransformerTrimmingCharacter,new I.PLTransformerUppercased,new Ee.PLTransformerContains,new Me.PLTransformerStartsWith,new Ie.PLTransformerEndsWith,new M.PLTransformerAppend,new De.PLTransformerJoin,new A.PLTransformerConcat,new C.PLTransformerEnumerated,new z.PLTransformerFirst,new te.PLTransformerLast,new x.PLTransformerFrom,new D.PLTransformerRandom,new k.PLTransformerRange,new S.PLTransformerReversed,new F.PLTransformerShuffled,new L.PLTransformerSorted,new v.PLTransformerUntil,new E.PLTransformerAdd,new T.PLTransformerKeys,new P.PLTransformerValues,new b.PLTransformerAbsolute,new w.PLTransformerCeiled,new Y.PLTransformerFloored,new g.PLTransformerNegative,new h.PLTransformerPositive,new X.PLTransformerRounded,new m.PLTransformerCount,new f.PLTransformerFormatDate,new y.PLTransformerIsArray,new p.PLTransformerIsBool,new c.PLTransformerIsObject,new d.PLTransformerIsNumber,new l.PLTransformerIsString,new u.PLTransformerToString,new G.PLTransformerEquals],this.defaultFlows=[new ke.PLFlowFor,new Se.PLFlowMap,new Le.PLFlowTraverse,new Fe.PLFlowTraverseChildren,new ve.PLFlowSwitch,new xe.PLFlowCase,new Te.PLFlowDefault,new we.PLFlowIf,new be.PLFlowElseIf,new Pe.PLFlowElse,new ge.PLFlowInject,new he.PLFlowEmit,new me.PLFlowLet,new fe.PLFlowConst,new ue.PLFlowSet,new ye.PLFlowGlobal,new pe.PLFlowCodeMerge,new ce.PLFlowImport,new de.PLFlowReturn,new le.PLFlowLog],this.defaultFunctions=[new ae.PLFunctionCall,new se.PLFunctionArraysToZippedMap,new ie.PLFunctionVarDefined,new oe.PLFunctionVarMutable,new ne.PLFunctionNetworkGetAnonymous,new Oe.PLFunctionRandomInt,new _e.PLFunctionRandomString],this.blueprintLoader=e,this.blueprintEmitter=t,this.blueprintFactory=je,this.logger=r,this.debugger=i,this.proxyUrl=Ve,this.variableContext=new a.PLVariableContext,this.jsContext=new Ae.JSContext(this,{}),this.executedScope=[],this.executedBlueprint="",this.executedNode=null;try{this.registerDefaultTransformers(),this.registerDefaultFlows(),this.registerDefaultFunctions()}catch(e){throw Error(`Internal error registering default language functionality: ${e}`)}try{this.provideCustomFunctions().forEach((e=>{this.registerFunction(e)})),this.provideCustomTransformers().forEach((e=>{this.registerTransformer(e)})),this.provideCustomFlows().forEach((e=>{this.registerFlow(e)}))}catch(e){throw Error(`Internal error registering default language functionality: ${e}`)}}provideCustomFunctions(){return[]}provideCustomTransformers(){return[]}provideCustomFlows(){return[]}registerDefaultFunctions(){try{this.defaultFunctions.forEach((e=>{this.registerFunction(e)}))}catch(e){throw e}}registerDefaultTransformers(){try{this.defaultTransformers.forEach((e=>{this.registerTransformer(e)}))}catch(e){throw e}}registerDefaultFlows(){try{this.defaultFlows.forEach((e=>{this.registerFlow(e)}))}catch(e){throw e}}provideTestFunction(){}registerFunction(e){let t=e.keyword();if(!i.StringUtils.isLettersCanIncludeDot(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("functionKeywordInvalid");this.functions.set(e.keyword(),e)}registerTransformer(e){let t=e.keyword();if(!i.StringUtils.isLetters(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("transformerKeywordInvalid");this.transformers.set(e.keyword(),e)}registerFlow(e){let t=e.keyword();if(!i.StringUtils.isLetters(t)||!i.StringUtils.isFirstCharacterLetterLowercase(t))throw Error("flowKeyworldInvalid");this.flows.set(e.keyword(),e)}flow(e){var t;return null!==(t=this.flows.get(e))&&void 0!==t?t:null}valueTransformer(){return this.transformers.get("value")}valueAlwaysRootTransformer(){return this.transformers.get("alwaysRootValue")}transformer(e){var t;return null!==(t=this.transformers.get(e))&&void 0!==t?t:null}function(e){var t;return null!==(t=this.functions.get(e))&&void 0!==t?t:null}availableFlows(){return this.flows}availableTransformers(){return this.transformers}availableFunctions(){return this.functions}setExecutedScopeForNode(e){let t=e.flowStackIdentifier();this.executedScope=t}setExecutedScopeUsingScope(e){this.executedScope=e}setExecutedBlueprint(e){this.executedBlueprint=e,this.debugger.executedFile=e}setExecutedNode(e){this.executedNode=e}getFunctionReturnStack(){return this.variableContext.functionReturnStack}registerUsingJSHelper(e){e&&e.length>0&&this.jsContext.registerHelper(e)}}},5530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLInterpreter=void 0;const n=r(9139),o=r(6703),i=r(8688),s=r(6350),a=r(8375),u=r(5412),l=r(3903),d=r(4109),c=r(7560);t.PLInterpreter=class{constructor(e=null){this.blueprintConfiguration=null!=e?e:new o.PLBlueprintConfiguration,this.currentlyInterpretingScope=[]}async interpret(e,t,r,o=!1){try{let i;if(this.currentlyInterpretingBlueprint=e,this.createNewExecutingScope(r),r.setExecutedBlueprint(e.id),t.data instanceof Map){let e={};for(let[r,n]of t.data)e[r]=n;i=new n.PLInterpreterContext(e)}else i=t;let s=await this.interpretGroupNode(e.syntax.rootNode,i,r);if(!o){let t=c.PLLogger.makeTrace(r,e);r.logger.logSystem(a.PLLoggerDefaultMessages.interpreterRenderingSuccessful,t)}return s}catch(t){if(r.executedNode&&r.executedNode.debugSymbol&&r.debugger.symbolTable.symbolById(r.executedNode.debugSymbol)){let n=r.debugger.symbolTable.symbolById(r.executedNode.debugSymbol),o=c.PLLogger.makeTrace(r,e,void 0,n);r.logger.logError("Failed processing template node: "+t,o)}else r.logger.logError("Failed processing template node: "+t,c.PLLogger.makeEmptyTrace());throw t}}async interpretGroupNode(e,t,r){var n;this.setExecutingNode(r,e);let o=!1,a={},u="";try{for(let l of e.nodes)if(l.nodeType===i.NodeType.text)u+=this.interpretTextNodeSync(l,t,r);else if(l.nodeType===i.NodeType.substitution)l.preferredExecutionMode===d.SyntaxNodeSubstitutionExecutionMode.sync?u+=this.interpretSubstitutionNodeSync(l,t,r):u+=await this.interpretSubstitutionNodeAsync(l,t,r);else{if(l.nodeType!==i.NodeType.flow)throw l.nodeType===i.NodeType.group?Error("Iterating through SyntaxNodeGroup is not possible as it can't be part of .nodes as it is exclusively used in flows or syntax tree root"):Error("Unsupported node type");{let e=l;if(!e.previousChainFlow&&!e.flow.canFormChainRoot())throw Error("flowCantFormChainRoot");if(null!==e.previousChainFlow&&!o)continue;let i=t.recreateContextWithAdjustments(a),d=await this.interpretFlowNode(e,i,t,r);if(null!==d.result)u+=d.result,o=!1,a={};else{if(d.iterator.type!==s.FlowIteratorType.followthrough)throw Error("Other than using .followThrough, all nodes must generate content");a=null!==(n=d.iterator.followingContextEnhancement)&&void 0!==n?n:{},o=!0}}}return u}catch(e){throw e}}interpretTextNodeSync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),e.interpretSync(t,r)}interpretSubstitutionNodeSync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),e.interpreter.interpretSync(t,r)}async interpretSubstitutionNodeAsync(e,t,r){return this.setExecutingNode(r,e),this.setExecutingScope(r,this.currentlyInterpretingBlueprint),await e.interpreter.interpretAsync(t,r)}async interpretFlowNode(e,t,r,n){this.setExecutingNode(n,e);try{let o;switch(e.flow.executionType()){case u.PLFlowExecutionType.defaultBody:o=await this.processFlowBody(e,t,n);break;case u.PLFlowExecutionType.customBody:{let r=await this.processFlowBody(e,t,n);o=await this.processCustomExecutor(e,r,t,n);break}case u.PLFlowExecutionType.customWithoutBody:{let r={result:null,iterator:await e.flow.createBodyIterator(t,n,e.outputs,e.sources,e.keywords),skippedBody:!0};o=await this.processCustomExecutor(e,r,t,n);break}}return this.processContextAdjustmentIfNeeded(e,o,r,n),await this.processVariableAdjustmentIfNeeded(e,this.currentlyInterpretingScope,o,r,n),o}catch(e){throw e}}async processFlowBody(e,t,r){try{let n=await e.flow.createBodyIterator(t,r,e.outputs,e.sources,e.keywords),o="";switch(n.type){case s.FlowIteratorType.skip:return{result:o,iterator:n,skippedBody:!1};case s.FlowIteratorType.singular:case s.FlowIteratorType.iterative:this.modifyExecutingScopeWithIncoming(e,r);for(let i of n){this.modifyExecutingScopeWithIncomingIteratorOf(e,r);let n=t.recreateContextWithAdjustments(i);o+=await this.interpretGroupNode(e.flowGroup,n,r),this.modifyExecutingScopeWithLeavingIteratorOf(e,r)}return this.modifyExecutingScopeWithLeaving(e,r),{result:o,iterator:n,skippedBody:!1};case s.FlowIteratorType.followthrough:return{result:null,iterator:n,skippedBody:!0}}}catch(e){throw e}}async processCustomExecutor(e,t,r,n){try{return{result:await e.flow.createFlowExecutor(r,t,n,this.blueprintConfiguration,e.outputs,e.sources,e.keywords,e.lineOffset,e.firstLineDirective),iterator:t.iterator,skippedBody:t.skippedBody}}catch(e){throw e}}processContextAdjustmentIfNeeded(e,t,r,n){try{let o=e.flow.adjustInterpretingContext(r,t,n,e.outputs,e.sources,e.keywords);return null===o?r:r.modifyContextWithAdjustments(o)}catch(e){throw e}}async processVariableAdjustmentIfNeeded(e,t,r,n,o){try{return await e.flow.adjustExecutingContext(n,r,o,t,e.outputs,e.sources,e.keywords),o}catch(e){throw e}}createNewExecutingScope(e){let t=(0,l.v4)();return this.currentlyInterpretingScope=new Array,this.currentlyInterpretingScope.push(t),this.currentlyInterpretingScope}setExecutingScope(e,t){e.setExecutedScopeUsingScope(this.currentlyInterpretingScope),e.setExecutedBlueprint(t.id)}modifyExecutingScopeWithIncoming(e,t){let r=e.flowIdentifier;return this.currentlyInterpretingScope.push(r),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithLeaving(e,t){if(0===this.currentlyInterpretingScope.length||this.currentlyInterpretingScope[this.currentlyInterpretingScope.length-1]!==e.flowIdentifier)throw Error("Imbalanced scope calls detected, trying to remove incorrect node");return this.currentlyInterpretingScope.pop(),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithIncomingIteratorOf(e,t){let r=(0,l.v4)();return this.currentlyInterpretingScope.push(r),this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}modifyExecutingScopeWithLeavingIteratorOf(e,t){if(this.currentlyInterpretingScope.pop(),0===this.currentlyInterpretingScope.length||this.currentlyInterpretingScope[this.currentlyInterpretingScope.length-1]!==e.flowIdentifier)throw Error("Imbalanced scope calls detected, trying to remove incorrect node");return this.setExecutingScope(t,this.currentlyInterpretingBlueprint),this.currentlyInterpretingScope}setExecutingNode(e,t){e.setExecutedNode(t)}}},9139:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLInterpreterContext=void 0,t.PLInterpreterContext=class{constructor(e,t=null){if(this.data=null!=e?e:{},t&&t)for(let[e,r]of Object.entries(t))this.data[e]=r}anyValueForKey(e,t){return(null!=t?t:this.data)[e]||null}recreateContextWithAdjustments(e){if(this.isEmpty(e))return this;for(let[t,r]of Object.entries(e))this.data[t]=r;return this}modifyContextWithAdjustments(e){if(this.isEmpty(e))return this;for(let[t,r]of Object.entries(e))this.data[t]=r;return this}isEmpty(e){for(var t in e)return!1;return!0}}},987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLBlueprintEmitter=void 0,t.PLBlueprintEmitter=class{constructor(){}emit(e){throw Error("Blueprint emitter must provide its own emitting routine")}}},465:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLEmittedContent=void 0,t.PLEmittedContent=class{constructor(e,t){this.filename=e,this.content=t}equals(e){return this.filename===e.filename&&this.content===e.content}}},4724:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLMemoryBlueprintEmitter=void 0;const n=r(987);class o extends n.PLBlueprintEmitter{constructor(e=!1){super(),this.isOverrideAllowed=!1,this.isOverrideAllowed=e,this.storage=new Map}emittedContentForFilename(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}allEmittedContent(){return Array.from(this.storage.values())}clearEmittedFiles(){this.storage=new Map}emit(e){if(!this.isOverrideAllowed&&this.storage.get(e.filename))throw Error("emittedContentExists");this.storage.set(e.filename,e)}}t.PLMemoryBlueprintEmitter=o},5412:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlow=t.PLFlowFormatRequirement=t.PLFlowFormatType=t.PLFlowExecutionType=void 0,function(e){e[e.defaultBody=0]="defaultBody",e[e.customBody=1]="customBody",e[e.customWithoutBody=2]="customWithoutBody"}(r=t.PLFlowExecutionType||(t.PLFlowExecutionType={})),function(e){e[e.keyword=0]="keyword",e[e.source=1]="source",e[e.output=2]="output"}(n=t.PLFlowFormatType||(t.PLFlowFormatType={})),(o=t.PLFlowFormatRequirement||(t.PLFlowFormatRequirement={}))[o.required=0]="required",o[o.optional=1]="optional",t.PLFlow=class{flowFormat(){throw Error("Flow format must be registered")}keyword(){let e=this.flowFormat();if(0===e.length)throw Error("Flow must specify at least one keyword");let t=e[0];if(t.type===n.keyword)return t.definition;throw Error("Flow must start with keyword")}chainableFlows(){return null}canFormChainRoot(){return!0}executionType(){return r.defaultBody}constructor(){}async createBodyIterator(e,t,r,n,o){return new Promise((function(e,t){t("Flow context must be provided")}))}async createFlowExecutor(e,t,r,n,o,i,s,a,u){return new Promise((function(e,t){e("")}))}adjustInterpretingContext(e,t,r,n,o,i){return null}async adjustExecutingContext(e,t,r,n,o,i,s){return new Promise((function(e,t){t("unsupportedTransformSource, expected string")}))}}},6350:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowIterator=t.FlowIteratorType=void 0,function(e){e[e.skip=0]="skip",e[e.singular=1]="singular",e[e.iterative=2]="iterative",e[e.followthrough=3]="followthrough"}(r=t.FlowIteratorType||(t.FlowIteratorType={}));class n{constructor(e,t,r){this.counter=0,this.type=t,this.adjustments=e,this.followingContextEnhancement=r}static followThroughExecution(e){return new n([],r.followthrough,e)}static noExecution(){return new n([],r.skip,null)}static singleExecution(e){return new n([e],r.singular,null)}static iterativeExecution(e){return new n(e,r.iterative,null)}next(){return this.counter++,{done:this.adjustments.length<this.counter,value:this.adjustments[this.counter-1]}}[Symbol.iterator](){return this}}t.FlowIterator=n},5453:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowOutput=void 0;const n=r(3069);t.PLFlowOutput=class{constructor(e){this.originalBackingProperty=e,this.containedQuotes=n.StringUtils.isSurroundedWithDoubleQuotes(e),this.backingProperty=n.StringUtils.withoutDoubleQuotesSingleOccurance(e)}asString(){return this.backingProperty}asNumber(){let e=Number(this.backingProperty);return null===e||Number.isNaN(e)?null:e.valueOf()}asBool(){return"true"===this.backingProperty||"false"!==this.backingProperty&&null}}},65:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowSource=void 0;const n=r(4109);t.PLFlowSource=class{constructor(e){this.backingProperty=e}async asValue(e,t){return this.backingProperty.preferredExecutionMode===n.SyntaxNodeSubstitutionExecutionMode.sync?this.backingProperty.interpreter.interpretSync(e,t):await this.backingProperty.interpreter.interpretAsync(e,t)}asString(){return this.backingProperty.directive}directive(){return this.backingProperty.directive}}},8526:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLFlowCodeMerge=void 0;const n=r(6350),o=r(5412),i=r(33),s=r(9458);class a extends o.PLFlow{flowFormat(){return[{type:o.PLFlowFormatType.keyword,requirement:o.PLFlowFormatRequirement.required,definition:i.PLKeywordsFlows.codeMerge}]}executionType(){return o.PLFlowExecutionType.customWithoutBody}async createBodyIterator(e,t,r,o,i){return n.FlowIterator.singleExecution({})}async createFlowExecutor(e,t,r,n,o,i,a,u,l){return new Promise((function(e,t){let r=" ".repeat(u);e(s.dedent`
|
|
2
2
|
${r}// < Static code follows
|
|
3
3
|
${r}
|
|
4
4
|
${r}// >
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/pulsar-language",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.21",
|
|
4
4
|
"description": "Templating language for Supernova DSM",
|
|
5
5
|
"main": "build/main/pulsar-language.js",
|
|
6
6
|
"types": "build/main/language/src/index.d.ts",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"keywords": [],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"describe": "npm-scripts-info",
|
|
12
11
|
"build": "run-s clean && run-p build:*",
|
|
13
12
|
"build:main": "npm run clean && webpack --mode production --config ./webpack.config.main.js",
|
|
14
13
|
"fix": "run-s fix:*",
|
|
@@ -19,17 +18,9 @@
|
|
|
19
18
|
"test-skipped:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different",
|
|
20
19
|
"test:unit": "nyc --silent ava --verbose --timeout=60s",
|
|
21
20
|
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
|
|
22
|
-
"cov": "run-s build test:unit cov:html && open-cli coverage/index.html",
|
|
23
|
-
"cov:html": "nyc report --reporter=html",
|
|
24
|
-
"cov:send": "nyc report --reporter=lcov && codecov",
|
|
25
|
-
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
|
|
26
|
-
"doc": "run-s doc:html && open-cli build/docs/index.html",
|
|
27
|
-
"doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
|
|
28
|
-
"doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
|
|
29
21
|
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
|
|
30
22
|
"reset": "git clean -dfx && git reset --hard && npm i",
|
|
31
23
|
"clean": "trash build test",
|
|
32
|
-
"prepare-release": "run-s reset test cov:check doc:html version doc:publish",
|
|
33
24
|
"publish-package": "npm run clean && npm run build:main && npm publish --access public"
|
|
34
25
|
},
|
|
35
26
|
"scripts-info": {
|
|
@@ -38,12 +29,10 @@
|
|
|
38
29
|
"fix": "Try to automatically fix any linting problems",
|
|
39
30
|
"test": "Lint and unit test the project",
|
|
40
31
|
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
|
|
41
|
-
"cov": "Rebuild, run tests, then create and open the coverage report",
|
|
42
32
|
"doc": "Generate HTML API documentation and open it in a browser",
|
|
43
33
|
"doc:json": "Generate API documentation in typedoc JSON format",
|
|
44
34
|
"version": "Bump package.json version, update CHANGELOG.md, tag release",
|
|
45
|
-
"reset": "Delete all untracked files and reset the repo to the last commit"
|
|
46
|
-
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release"
|
|
35
|
+
"reset": "Delete all untracked files and reset the repo to the last commit"
|
|
47
36
|
},
|
|
48
37
|
"engines": {
|
|
49
38
|
"node": ">=8.9"
|
|
@@ -51,10 +40,10 @@
|
|
|
51
40
|
"dependencies": {
|
|
52
41
|
"@jsep-plugin/object": "1.2.1",
|
|
53
42
|
"@jsep-plugin/ternary": "1.1.3",
|
|
54
|
-
"@supernovaio/supernova-sdk": "1.9.
|
|
43
|
+
"@supernovaio/supernova-sdk": "1.9.28",
|
|
55
44
|
"abab": "^2.0.5",
|
|
56
45
|
"async-mutex": "^0.4.0",
|
|
57
|
-
"axios": "1.
|
|
46
|
+
"axios": "1.7.7",
|
|
58
47
|
"dot-prop": "^5.2.0",
|
|
59
48
|
"https-proxy-agent": "^7.0.2",
|
|
60
49
|
"jsep": "1.3.8",
|
|
@@ -65,22 +54,19 @@
|
|
|
65
54
|
"uuid": "^8.3.0"
|
|
66
55
|
},
|
|
67
56
|
"devDependencies": {
|
|
68
|
-
"@bitjson/npm-scripts-info": "^1.0.0",
|
|
69
|
-
"@bitjson/typedoc": "^0.15.0-0",
|
|
70
57
|
"@istanbuljs/nyc-config-typescript": "^0.1.3",
|
|
71
58
|
"@types/lodash": "^4.14.159",
|
|
72
59
|
"@types/node": "^14.18.63",
|
|
73
60
|
"@types/uuid": "^8.3.0",
|
|
74
|
-
"ava": "
|
|
61
|
+
"ava": "^6.1.3",
|
|
75
62
|
"codecov": "^3.5.0",
|
|
76
63
|
"gh-pages": "^5.0.0",
|
|
77
64
|
"globalthis": "^1.0.2",
|
|
78
65
|
"npm-run-all": "^4.1.5",
|
|
79
66
|
"nyc": "^14.1.1",
|
|
80
|
-
"open-cli": "^6.0.1",
|
|
81
67
|
"prettier": "^1.18.2",
|
|
82
68
|
"source-map-support": "^0.5.19",
|
|
83
|
-
"trash-cli": "^
|
|
69
|
+
"trash-cli": "^5.0.0",
|
|
84
70
|
"ts-loader": "^8.0.17",
|
|
85
71
|
"ts-node": "10.9.1",
|
|
86
72
|
"tsconfig-paths": "^3.9.0",
|
|
@@ -104,8 +90,7 @@
|
|
|
104
90
|
"ts"
|
|
105
91
|
],
|
|
106
92
|
"require": [
|
|
107
|
-
"ts-node/register"
|
|
108
|
-
"tsconfig-paths/register"
|
|
93
|
+
"ts-node/register"
|
|
109
94
|
]
|
|
110
95
|
},
|
|
111
96
|
"files": [
|