@kedem/okdb 1.0.0 → 1.0.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/README.md +1 -1
- package/bin/okdb.js +1 -1
- package/okdb-data/default/data.mdb +0 -0
- package/okdb-data/default/lock.mdb +0 -0
- package/okdb-data/~log/data.mdb +0 -0
- package/okdb-data/~log/lock.mdb +0 -0
- package/okdb-data/~system/data.mdb +0 -0
- package/okdb-data/~system/lock.mdb +0 -0
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/admin-app.js +1 -1
- package/public/components/admin-route-host.ok.js +1 -1
- package/public/components/env-picker.ok.js +1 -1
- package/public/components/field-path-input.ok.js +1 -1
- package/public/components/geo-map.ok.js +1 -1
- package/public/components/ok-cron-input.ok.js +1 -1
- package/public/components/ok-dropzone.ok.js +1 -1
- package/public/components/ok-js-input.ok.js +1 -1
- package/public/components/ok-json-input.ok.js +1 -1
- package/public/components/ok-text-monaco-input.ok.js +1 -1
- package/public/components/theme-toggle.ok.js +1 -1
- package/public/login-app.js +1 -1
- package/public/modules/ok.js +1 -1
- package/public/sections/api/parts/api-endpoint.ok.js +1 -1
- package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
- package/public/sections/auth/parts/token-detail.ok.js +1 -1
- package/public/sections/auth/parts/token-list.ok.js +1 -1
- package/public/sections/db/modals/add-item-modal.ok.js +1 -1
- package/public/sections/db/modals/create-env-modal.ok.js +1 -1
- package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
- package/public/sections/db/modals/create-index-modal.ok.js +1 -1
- package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
- package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
- package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
- package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
- package/public/sections/db/parts/db-overview.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
- package/public/sections/db/parts/edit-row.ok.js +1 -1
- package/public/sections/db/parts/tm-timeline.ok.js +1 -1
- package/public/sections/db/parts/type-changelog.ok.js +1 -1
- package/public/sections/db/parts/type-list.ok.js +1 -1
- package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
- package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
- package/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
- package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
- package/public/sections/engines/engine-panel-shared-style.js +1 -1
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/modals/engine-modal.ok.js +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
- package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
- package/public/sections/files/parts/files-blob-status.ok.js +1 -1
- package/public/sections/files/parts/files-collection-list.ok.js +1 -1
- package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
- package/public/sections/files/parts/files-file-list.ok.js +1 -1
- package/public/sections/files/parts/files-overview.ok.js +1 -1
- package/public/sections/files/parts/files-path-browser.ok.js +1 -1
- package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
- package/public/sections/functions/modals/function-modal.ok.js +1 -1
- package/public/sections/functions/parts/function-detail.ok.js +1 -1
- package/public/sections/functions/parts/function-logs.ok.js +1 -1
- package/public/sections/functions/parts/function-runner.ok.js +1 -1
- package/public/sections/functions/parts/functions-list.ok.js +1 -1
- package/public/sections/license/parts/license-panel.ok.js +1 -1
- package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
- package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
- package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
- package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/queue/parts/queue-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-workers.ok.js +1 -1
- package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
- package/public/sections/sync/parts/sync-retention.ok.js +1 -1
- package/public/sections/sync/parts/sync-topology.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/public/sections/system/parts/system-api-panel.ok.js +1 -1
- package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
- package/public/sections/system/parts/system-log-history.ok.js +1 -1
- package/public/sections/system/parts/system-log.ok.js +1 -1
- package/public/sections/system/parts/system-status.ok.js +1 -1
- package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
- package/public/sections/views/modals/create-view-modal.ok.js +1 -1
- package/public/sections/views/parts/view-detail.ok.js +1 -1
- package/public/sections/views/parts/views-list.ok.js +1 -1
- package/public/sections/views/parts/views-overview.ok.js +1 -1
- package/public/setup-app.js +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/stores/functions-store.js +1 -1
- package/public/stores/okdb-store.js +1 -1
- package/public/stores/theme-store.js +1 -1
- package/public/util/permissions.js +1 -1
- package/public/util/sift-schema.js +1 -1
- package/public/view-models/type-query-vm.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2effc4=_0x3667;function _0x479a(){const _0x13f167=['stopped','$watch','length','halted','$dispatch','views-overview','/meta','Failed\x20to\x20load\x20views','type','/views/','952362LothwU','129240vJaLcv','all','load','data','2593232EDamJQ','json','clock','resetting','filter','unknown','755380JNubYl','selectedEnv','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','select','message','error','ready','apiBase','views','1050964QvhHCq','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','result','filterState','3oiSEiv','/definition','state','creating','okdb','$ok','var(--okdb-danger)','714483deozdi','/views','refs','10614Qwyrlh','stores','loading','var(--okdb-warning)'];_0x479a=function(){return _0x13f167;};return _0x479a();}function _0x3667(_0x2d7b75,_0x2cbfdb){_0x2d7b75=_0x2d7b75-0x156;const _0x479af7=_0x479a();let _0x3667ba=_0x479af7[_0x2d7b75];return _0x3667ba;}(function(_0x1d5894,_0x369f62){const _0x23ba4d=_0x3667,_0x586bac=_0x1d5894();while(!![]){try{const _0x337173=-parseInt(_0x23ba4d(0x174))/0x1+parseInt(_0x23ba4d(0x182))/0x2+-parseInt(_0x23ba4d(0x16a))/0x3*(-parseInt(_0x23ba4d(0x166))/0x4)+-parseInt(_0x23ba4d(0x15d))/0x5+-parseInt(_0x23ba4d(0x183))/0x6+parseInt(_0x23ba4d(0x171))/0x7+-parseInt(_0x23ba4d(0x157))/0x8;if(_0x337173===_0x369f62)break;else _0x586bac['push'](_0x586bac['shift']());}catch(_0x2656e7){_0x586bac['push'](_0x586bac['shift']());}}}(_0x479a,0x51727));export default{'tag':_0x2effc4(0x17d),'context':_0xce92f4=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x5409a4=_0x2effc4;this[_0x5409a4(0x176)]=!0x0,this['error']=null;try{const _0x25b95d=_0xce92f4[_0x5409a4(0x16f)][_0x5409a4(0x175)][_0x5409a4(0x16e)][_0x5409a4(0x164)],_0x421a15=await fetch(_0x25b95d+_0x5409a4(0x172));if(!_0x421a15['ok'])throw new Error(_0x5409a4(0x17f));const _0x513430=await _0x421a15[_0x5409a4(0x158)](),_0xe9b6aa=_0x513430[_0x5409a4(0x156)]??_0x513430[_0x5409a4(0x168)]??[],_0x144ccd=await Promise['all'](_0xe9b6aa['map'](async _0x3ceca3=>{const _0x9d4500=_0x5409a4,[_0x43209e,_0x5bdcb4]=await Promise[_0x9d4500(0x184)]([fetch(_0x25b95d+_0x9d4500(0x181)+_0x3ceca3+_0x9d4500(0x17e)),fetch(_0x25b95d+_0x9d4500(0x181)+_0x3ceca3+_0x9d4500(0x16b))]),_0x3d3948=_0x43209e['ok']?await _0x43209e[_0x9d4500(0x158)]():{},_0x4237b8=_0x5bdcb4['ok']?await _0x5bdcb4['json']():{},_0x21d849=_0x3d3948[_0x9d4500(0x156)]??_0x3d3948['result']??{},_0x591cb4=_0x4237b8[_0x9d4500(0x156)]??_0x4237b8[_0x9d4500(0x168)]??{};return{'name':_0x3ceca3,'state':_0x21d849?.['state']??_0x9d4500(0x15c),'type':_0x591cb4?.[_0x9d4500(0x180)]??'?','clock':_0x21d849?.[_0x9d4500(0x159)]??null,'error':_0x21d849?.[_0x9d4500(0x162)]??null,'refs':_0x21d849?.[_0x9d4500(0x173)]??null};}));this[_0x5409a4(0x165)]=_0x144ccd;}catch(_0x140b6a){this[_0x5409a4(0x162)]=_0x140b6a[_0x5409a4(0x161)];}finally{this[_0x5409a4(0x176)]=!0x1;}},get 'totalCount'(){const _0x4644d1=_0x2effc4;return this['views'][_0x4644d1(0x17a)];},get 'readyCount'(){const _0x5641e5=_0x2effc4;return this[_0x5641e5(0x165)][_0x5641e5(0x15b)](_0x2729b9=>_0x5641e5(0x163)===_0x2729b9[_0x5641e5(0x16c)])['length'];},get 'haltedCount'(){const _0x230b6d=_0x2effc4;return this['views'][_0x230b6d(0x15b)](_0x5b53b8=>_0x230b6d(0x17b)===_0x5b53b8[_0x230b6d(0x16c)])[_0x230b6d(0x17a)];},get 'stoppedCount'(){const _0x3db6dd=_0x2effc4;return this[_0x3db6dd(0x165)]['filter'](_0xa0a4ac=>_0x3db6dd(0x178)===_0xa0a4ac[_0x3db6dd(0x16c)])[_0x3db6dd(0x17a)];},get 'inProgressCount'(){const _0x5b696e=_0x2effc4;return this['views'][_0x5b696e(0x15b)](_0x211173=>_0x5b696e(0x16d)===_0x211173[_0x5b696e(0x16c)]||_0x5b696e(0x15a)===_0x211173[_0x5b696e(0x16c)])['length'];},get 'filteredViews'(){const _0x136ec3=_0x2effc4;return this[_0x136ec3(0x169)]?this[_0x136ec3(0x165)][_0x136ec3(0x15b)](_0x5c8ef8=>_0x5c8ef8[_0x136ec3(0x16c)]===this[_0x136ec3(0x169)]):this['views'];},get 'haltedWithErrors'(){const _0x2062ee=_0x2effc4;return this['views'][_0x2062ee(0x15b)](_0x4a9747=>_0x2062ee(0x17b)===_0x4a9747[_0x2062ee(0x16c)]&&_0x4a9747[_0x2062ee(0x162)]);},'toggleFilter'(_0x4b33e0){const _0x309f80=_0x2effc4;this[_0x309f80(0x169)]=this[_0x309f80(0x169)]===_0x4b33e0?null:_0x4b33e0;},'stateColor'(_0x42f230){const _0x56f608=_0x2effc4;switch(_0x42f230){case _0x56f608(0x163):return'var(--okdb-success)';case _0x56f608(0x16d):case _0x56f608(0x15a):return'var(--okdb-sky)';case _0x56f608(0x17b):return _0x56f608(0x170);case _0x56f608(0x178):return _0x56f608(0x177);default:return'var(--okdb-app-fg-muted)';}},'fmt':_0x5dcee4=>null==_0x5dcee4?'—':Number(_0x5dcee4)['toLocaleString'](),'selectView'(_0x23ae4b){const _0x4e9f47=_0x2effc4;_0xce92f4[_0x4e9f47(0x17c)](_0x4e9f47(0x160),_0x23ae4b['name']);}}),'mount'(_0x1aaa54){const _0x49cfbe=_0x2effc4;_0x1aaa54[_0x49cfbe(0x179)](()=>_0x1aaa54[_0x49cfbe(0x16f)][_0x49cfbe(0x175)]['okdb'][_0x49cfbe(0x15e)],()=>{const _0x1ee8fb=_0x49cfbe;this[_0x1ee8fb(0x169)]=null,this[_0x1ee8fb(0x185)]();}),this['load']();},'style':_0x2effc4(0x167),'template':_0x2effc4(0x15f)};
|
|
1
|
+
const _0x77c9b1=_0x57e0;(function(_0x277834,_0x8aa7ed){const _0x15c6d2=_0x57e0,_0x2fa91d=_0x277834();while(!![]){try{const _0xf0e8a=-parseInt(_0x15c6d2(0xbb))/0x1+parseInt(_0x15c6d2(0xbd))/0x2*(-parseInt(_0x15c6d2(0xcb))/0x3)+-parseInt(_0x15c6d2(0xda))/0x4+parseInt(_0x15c6d2(0xb7))/0x5*(-parseInt(_0x15c6d2(0xd9))/0x6)+parseInt(_0x15c6d2(0xe4))/0x7*(-parseInt(_0x15c6d2(0xb4))/0x8)+parseInt(_0x15c6d2(0xc2))/0x9+parseInt(_0x15c6d2(0xb3))/0xa;if(_0xf0e8a===_0x8aa7ed)break;else _0x2fa91d['push'](_0x2fa91d['shift']());}catch(_0x4959e0){_0x2fa91d['push'](_0x2fa91d['shift']());}}}(_0x3a77,0xdfda3));export default{'tag':_0x77c9b1(0xdf),'context':_0x3dbace=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x523b52=_0x77c9b1;this[_0x523b52(0xd5)]=!0x0,this[_0x523b52(0xb5)]=null;try{const _0x255ca4=_0x3dbace[_0x523b52(0xd4)][_0x523b52(0xc7)][_0x523b52(0xb9)][_0x523b52(0xbe)],_0xd2405c=await fetch(_0x255ca4+_0x523b52(0xca));if(!_0xd2405c['ok'])throw new Error(_0x523b52(0xcd));const _0x35a70d=await _0xd2405c[_0x523b52(0xe5)](),_0x47e298=_0x35a70d[_0x523b52(0xd6)]??_0x35a70d['result']??[],_0x35f170=await Promise[_0x523b52(0xd0)](_0x47e298[_0x523b52(0xd8)](async _0x5d33a5=>{const _0x4e2a95=_0x523b52,[_0x2f6761,_0x1f2b58]=await Promise['all']([fetch(_0x255ca4+_0x4e2a95(0xd1)+_0x5d33a5+_0x4e2a95(0xc8)),fetch(_0x255ca4+_0x4e2a95(0xd1)+_0x5d33a5+'/definition')]),_0x4cc59f=_0x2f6761['ok']?await _0x2f6761[_0x4e2a95(0xe5)]():{},_0x5163eb=_0x1f2b58['ok']?await _0x1f2b58[_0x4e2a95(0xe5)]():{},_0x562bd2=_0x4cc59f['data']??_0x4cc59f[_0x4e2a95(0xcf)]??{},_0x2936a8=_0x5163eb[_0x4e2a95(0xd6)]??_0x5163eb['result']??{};return{'name':_0x5d33a5,'state':_0x562bd2?.['state']??_0x4e2a95(0xc0),'type':_0x2936a8?.[_0x4e2a95(0xc6)]??'?','clock':_0x562bd2?.[_0x4e2a95(0xe2)]??null,'error':_0x562bd2?.['error']??null,'refs':_0x562bd2?.[_0x4e2a95(0xd3)]??null};}));this['views']=_0x35f170;}catch(_0x1dcb0c){this['error']=_0x1dcb0c[_0x523b52(0xde)];}finally{this[_0x523b52(0xd5)]=!0x1;}},get 'totalCount'(){const _0x28fa36=_0x77c9b1;return this[_0x28fa36(0xc5)][_0x28fa36(0xe0)];},get 'readyCount'(){const _0x56839b=_0x77c9b1;return this['views'][_0x56839b(0xbf)](_0x3fdbeb=>_0x56839b(0xd2)===_0x3fdbeb[_0x56839b(0xbc)])[_0x56839b(0xe0)];},get 'haltedCount'(){const _0xe36c87=_0x77c9b1;return this[_0xe36c87(0xc5)][_0xe36c87(0xbf)](_0x478ebc=>_0xe36c87(0xdc)===_0x478ebc[_0xe36c87(0xbc)])['length'];},get 'stoppedCount'(){const _0x409fab=_0x77c9b1;return this[_0x409fab(0xc5)][_0x409fab(0xbf)](_0x4cd052=>_0x409fab(0xba)===_0x4cd052[_0x409fab(0xbc)])['length'];},get 'inProgressCount'(){const _0x3fed1e=_0x77c9b1;return this[_0x3fed1e(0xc5)][_0x3fed1e(0xbf)](_0x5db789=>_0x3fed1e(0xc1)===_0x5db789[_0x3fed1e(0xbc)]||_0x3fed1e(0xdd)===_0x5db789['state'])[_0x3fed1e(0xe0)];},get 'filteredViews'(){const _0x1d523e=_0x77c9b1;return this[_0x1d523e(0xe3)]?this[_0x1d523e(0xc5)]['filter'](_0x1b52e1=>_0x1b52e1['state']===this[_0x1d523e(0xe3)]):this[_0x1d523e(0xc5)];},get 'haltedWithErrors'(){const _0x1605b8=_0x77c9b1;return this[_0x1605b8(0xc5)][_0x1605b8(0xbf)](_0x47c352=>'halted'===_0x47c352[_0x1605b8(0xbc)]&&_0x47c352[_0x1605b8(0xb5)]);},'toggleFilter'(_0x509a41){const _0x384ebd=_0x77c9b1;this[_0x384ebd(0xe3)]=this['filterState']===_0x509a41?null:_0x509a41;},'stateColor'(_0x49dfa0){const _0x48ac19=_0x77c9b1;switch(_0x49dfa0){case _0x48ac19(0xd2):return'var(--okdb-success)';case _0x48ac19(0xc1):case _0x48ac19(0xdd):return _0x48ac19(0xcc);case _0x48ac19(0xdc):return'var(--okdb-danger)';case'stopped':return'var(--okdb-warning)';default:return _0x48ac19(0xc4);}},'fmt':_0x5cf0f7=>null==_0x5cf0f7?'—':Number(_0x5cf0f7)[_0x77c9b1(0xb8)](),'selectView'(_0x55027a){const _0x46d6d3=_0x77c9b1;_0x3dbace[_0x46d6d3(0xce)]('select',_0x55027a[_0x46d6d3(0xdb)]);}}),'mount'(_0x53f936){const _0xfd9ecf=_0x77c9b1;_0x53f936[_0xfd9ecf(0xe1)](()=>_0x53f936[_0xfd9ecf(0xd4)][_0xfd9ecf(0xc7)][_0xfd9ecf(0xb9)][_0xfd9ecf(0xd7)],()=>{const _0x3931e1=_0xfd9ecf;this['filterState']=null,this[_0x3931e1(0xb6)]();}),this[_0xfd9ecf(0xb6)]();},'style':_0x77c9b1(0xc9),'template':_0x77c9b1(0xc3)};function _0x57e0(_0x287a71,_0xbef7d1){_0x287a71=_0x287a71-0xb3;const _0x3a77d3=_0x3a77();let _0x57e068=_0x3a77d3[_0x287a71];return _0x57e068;}function _0x3a77(){const _0x1cf48b=['ready','refs','$ok','loading','data','selectedEnv','map','12HnsXKF','18384ahodiL','name','halted','resetting','message','views-overview','length','$watch','clock','filterState','42CyKzHw','json','52746540jEcejC','716696tTLxKI','error','load','4415585LckJDU','toLocaleString','okdb','stopped','1552053grrLPo','state','115156fpOeNB','apiBase','filter','unknown','creating','705870avWKSr','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','var(--okdb-app-fg-muted)','views','type','stores','/meta','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','/views','30pijykH','var(--okdb-sky)','Failed\x20to\x20load\x20views','$dispatch','result','all','/views/'];_0x3a77=function(){return _0x1cf48b;};return _0x3a77();}
|
package/public/setup-app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1c308c=_0x3c9b;function _0x3c9b(_0x5c7aeb,_0x586686){_0x5c7aeb=_0x5c7aeb-0xb6;const _0x1a6c32=_0x1a6c();let _0x3c9b4c=_0x1a6c32[_0x5c7aeb];return _0x3c9b4c;}function _0x1a6c(){const _0x137733=['Passwords\x20do\x20not\x20match','108150wMALfv','Initial\x20admin','joinForm','2454ViXMtz','9330ZRKTUy','submit','createError','catch','location','createConfirm','application/json','Failed\x20to\x20create\x20admin\x20token','1791idPztc','joinAddress','445238wSfgBU','value','172WUdLkh','trim','Failed\x20to\x20join\x20cluster','data','addEventListener','18378HtYnRx','preventDefault','textContent','4501NzUYsw','same-origin','getElementById','joinToken','createName','json','createForm','/admin/login','replace','Username\x20is\x20required','message','11672uWeUHH','hidden','error','451cqijlq','Remote\x20node\x20address\x20is\x20required','Cluster\x20sync\x20token\x20is\x20required','createLabel','/api/auth/tokens','stringify','/admin/setup/join','272207INZhxi'];_0x1a6c=function(){return _0x137733;};return _0x1a6c();}(function(_0x1864f0,_0x33b9d0){const _0x736550=_0x3c9b,_0x735f1c=_0x1864f0();while(!![]){try{const _0x2f2566=-parseInt(_0x736550(0xba))/0x1+parseInt(_0x736550(0xca))/0x2+parseInt(_0x736550(0xd1))/0x3+-parseInt(_0x736550(0xcc))/0x4*(-parseInt(_0x736550(0xc0))/0x5)+-parseInt(_0x736550(0xbf))/0x6*(-parseInt(_0x736550(0xd4))/0x7)+parseInt(_0x736550(0xdf))/0x8*(parseInt(_0x736550(0xc8))/0x9)+-parseInt(_0x736550(0xbc))/0xa*(parseInt(_0x736550(0xe2))/0xb);if(_0x2f2566===_0x33b9d0)break;else _0x735f1c['push'](_0x735f1c['shift']());}catch(_0x85d95f){_0x735f1c['push'](_0x735f1c['shift']());}}}(_0x1a6c,0x23d01),(document[_0x1c308c(0xd6)](_0x1c308c(0xda))[_0x1c308c(0xd0)](_0x1c308c(0xc1),async _0x542402=>{const _0x251d8c=_0x1c308c;_0x542402[_0x251d8c(0xd2)]();const _0x31e68a=document['getElementById'](_0x251d8c(0xc2));_0x31e68a[_0x251d8c(0xe0)]=!0x0;const _0x5791d1=document[_0x251d8c(0xd6)](_0x251d8c(0xd8))[_0x251d8c(0xcb)][_0x251d8c(0xcd)](),_0x51b073=document[_0x251d8c(0xd6)]('createPassword')[_0x251d8c(0xcb)],_0x3cdd35=document[_0x251d8c(0xd6)](_0x251d8c(0xc5))['value'],_0x2a309c=document['getElementById'](_0x251d8c(0xb6))[_0x251d8c(0xcb)][_0x251d8c(0xcd)]()||_0x251d8c(0xbd);if(!_0x5791d1)return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x251d8c(0xdd));if(!_0x51b073)return _0x31e68a['hidden']=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]='Password\x20is\x20required');if(_0x51b073!==_0x3cdd35)return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x251d8c(0xbb));const _0x6f90db=await fetch(_0x251d8c(0xb7),{'method':'POST','headers':{'content-type':_0x251d8c(0xc6)},'credentials':_0x251d8c(0xd5),'body':JSON[_0x251d8c(0xb8)]({'name':_0x5791d1,'password':_0x51b073,'label':_0x2a309c,'permissions':['*']})}),_0x565458=await _0x6f90db[_0x251d8c(0xd9)]()['catch'](()=>({}));if(!_0x6f90db['ok'])return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x565458?.[_0x251d8c(0xe1)]?.[_0x251d8c(0xde)]||_0x565458?.[_0x251d8c(0xe1)]||_0x565458?.[_0x251d8c(0xcf)]?.[_0x251d8c(0xe1)]||_0x251d8c(0xc7));window[_0x251d8c(0xc4)][_0x251d8c(0xdc)](_0x251d8c(0xdb));}),document['getElementById'](_0x1c308c(0xbe))[_0x1c308c(0xd0)](_0x1c308c(0xc1),async _0x225534=>{const _0x55d52a=_0x1c308c;_0x225534['preventDefault']();const _0x4cc2fb=document[_0x55d52a(0xd6)]('joinError');_0x4cc2fb[_0x55d52a(0xe0)]=!0x0;const _0x5b2ab0=document[_0x55d52a(0xd6)](_0x55d52a(0xc9))[_0x55d52a(0xcb)]['trim'](),_0x5eb1b4=document[_0x55d52a(0xd6)](_0x55d52a(0xd7))[_0x55d52a(0xcb)]['trim']();if(!_0x5b2ab0)return _0x4cc2fb[_0x55d52a(0xe0)]=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x55d52a(0xe3));if(!_0x5eb1b4)return _0x4cc2fb['hidden']=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x55d52a(0xe4));const _0xd1e417=await fetch(_0x55d52a(0xb9),{'method':'POST','headers':{'content-type':'application/json'},'credentials':_0x55d52a(0xd5),'body':JSON[_0x55d52a(0xb8)]({'address':_0x5b2ab0,'token':_0x5eb1b4})}),_0x5e6cc5=await _0xd1e417[_0x55d52a(0xd9)]()[_0x55d52a(0xc3)](()=>({}));if(!_0xd1e417['ok'])return _0x4cc2fb['hidden']=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x5e6cc5?.[_0x55d52a(0xe1)]?.[_0x55d52a(0xde)]||_0x5e6cc5?.[_0x55d52a(0xe1)]||_0x5e6cc5?.[_0x55d52a(0xcf)]?.['error']||_0x55d52a(0xce));window[_0x55d52a(0xc4)][_0x55d52a(0xdc)](_0x55d52a(0xdb));})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x503f2c=_0x50fa;function _0x2b32(){const _0x5f3a3b=['files:*','6881DBAIvc','_grantsMatchAny','functions','./api/auth/permissions','44070fGOlAY','/admin/index.html','result','roles','length','config','catalog','771501yUwCGn','openAccess','Open\x20access','loading','join','application/json','can','admin','isArray','data:*','/auth/logout','notices','noticesDismissed','functions:read','queue','getItem','message','location','system:read','schema:read','1008756vZwHce','okdb_notices_dismissed','sync:read','implies','POST','Requires\x20','values','sync','loadNotices','Secure','data','catch','search:query','mode','791100kKLrio','files','system','auth','./api/notices','some','same-origin','\x20permission','2004NIMZvB','proxy','replace','user','files:read','loadConfig','646304ApfETB','queue:read','grants','loadSession','queue:work','./login/config','search:*','engines','canAny','functions:run','json','1727112NFjZmJ','./session','username','session'];_0x2b32=function(){return _0x5f3a3b;};return _0x2b32();}(function(_0x19b16b,_0xcfc4ce){const _0x4e9969=_0x50fa,_0x3c392d=_0x19b16b();while(!![]){try{const _0x51d70c=parseInt(_0x4e9969(0x155))/0x1+-parseInt(_0x4e9969(0x141))/0x2+parseInt(_0x4e9969(0x111))/0x3+parseInt(_0x4e9969(0x125))/0x4+-parseInt(_0x4e9969(0x133))/0x5+-parseInt(_0x4e9969(0x13b))/0x6*(-parseInt(_0x4e9969(0x151))/0x7)+-parseInt(_0x4e9969(0x14c))/0x8;if(_0x51d70c===_0xcfc4ce)break;else _0x3c392d['push'](_0x3c392d['shift']());}catch(_0xbab405){_0x3c392d['push'](_0x3c392d['shift']());}}}(_0x2b32,0x2d0a7));function _0x50fa(_0x43aebc,_0x2edddd){_0x43aebc=_0x43aebc-0x111;const _0x2b3226=_0x2b32();let _0x50faee=_0x2b3226[_0x43aebc];return _0x50faee;}import{ok as _0x2cf251}from'../modules/ok.js';import{hasPermission as _0x87329e,setImpliedBy as _0x4c6b57}from'../util/permissions.js';export default _0x2cf251[_0x503f2c(0x13c)]({'config':null,'session':null,'catalog':null,'loading':!0x1,'error':null,'notices':[],'noticesDismissed':!0x1,get 'mode'(){return this['config']?.['mode']??'open';},get 'openAccess'(){const _0x43d987=_0x503f2c;return!!this[_0x43d987(0x15a)]?.['openAccess'];},get 'isAuthenticated'(){const _0x9b8776=_0x503f2c;return!!this[_0x9b8776(0x14f)]?.['authenticated'];},get 'user'(){const _0x5577bf=_0x503f2c;return this[_0x5577bf(0x14f)]?.['user']??null;},get 'grants'(){const _0x3c9a49=_0x503f2c;return this['session']?.[_0x3c9a49(0x143)]??{};},get 'username'(){const _0x45e42c=_0x503f2c;return this[_0x45e42c(0x13e)]?.[_0x45e42c(0x14e)]??(this['openAccess']?'system':null);},get 'rolesLabel'(){const _0x5a2479=_0x503f2c,_0x45f9e2=this['user']?.['roles'];return Array['isArray'](_0x45f9e2)&&_0x45f9e2['length']?_0x45f9e2[_0x5a2479(0x115)](',\x20'):'';},'can'(_0xfa4e1b){const _0x3347bc=_0x503f2c;if(this[_0x3347bc(0x112)])return!0x0;const _0x28fa3f=this[_0x3347bc(0x13e)]?.[_0x3347bc(0x158)];return!!_0x28fa3f&&_0x87329e(_0x28fa3f,_0xfa4e1b);},'canForEnv'(_0xd97717,_0x553062){const _0x201923=_0x503f2c;if(this[_0x201923(0x112)])return!0x0;if(this[_0x201923(0x117)](_0x553062))return!0x0;const _0xdeab2b=this[_0x201923(0x143)][_0xd97717];return!(!Array[_0x201923(0x119)](_0xdeab2b)||0x0===_0xdeab2b[_0x201923(0x159)])&&_0x87329e(_0xdeab2b,_0x553062);},'_grantsMatchAny'(_0x1cd53d){const _0x25f114=_0x503f2c;for(const _0x46437e of Object[_0x25f114(0x12b)](this[_0x25f114(0x143)]))if(Array[_0x25f114(0x119)](_0x46437e)){for(const _0x438b02 of _0x1cd53d)if(_0x87329e(_0x46437e,_0x438b02))return!0x0;}return!0x1;},'canAny'(_0x572758){const _0x333dc0=_0x503f2c;return Array[_0x333dc0(0x119)](_0x572758)&&_0x572758[_0x333dc0(0x138)](_0x24cc1c=>this[_0x333dc0(0x117)](_0x24cc1c));},'canSection'(_0x36e37f){const _0x388641=_0x503f2c;if(this['openAccess'])return!0x0;switch(_0x36e37f){case'db':return this[_0x388641(0x149)](['data:read',_0x388641(0x124),_0x388641(0x131)])||this[_0x388641(0x152)](['data:read',_0x388641(0x124),'search:query',_0x388641(0x11a),'schema:*',_0x388641(0x147),'*']);case _0x388641(0x148):case _0x388641(0x135):return this['can'](_0x388641(0x123));case _0x388641(0x134):return this[_0x388641(0x117)](_0x388641(0x13f))||this['_grantsMatchAny']([_0x388641(0x13f),_0x388641(0x150),'*']);case _0x388641(0x11f):return this[_0x388641(0x149)]([_0x388641(0x142),_0x388641(0x145)])||this['_grantsMatchAny'](['queue:read',_0x388641(0x145),'queue:*','*']);case _0x388641(0x153):return this['canAny']([_0x388641(0x11e),_0x388641(0x14a)])||this[_0x388641(0x152)](['functions:read',_0x388641(0x14a),'functions:*','*']);case _0x388641(0x136):return this[_0x388641(0x117)]('auth:read');case _0x388641(0x12c):return this[_0x388641(0x117)](_0x388641(0x127));default:return!0x1;}},'permTooltip'(_0x19e6cb){const _0x1be06c=_0x503f2c;return this[_0x1be06c(0x117)](_0x19e6cb)?'':_0x1be06c(0x12a)+_0x19e6cb+_0x1be06c(0x13a);},get 'modeLabel'(){const _0x15bd6b=_0x503f2c;return this[_0x15bd6b(0x112)]?_0x15bd6b(0x113):'secure'===this[_0x15bd6b(0x132)]?_0x15bd6b(0x12e):String(this[_0x15bd6b(0x132)]||'auth');},get 'visibleNotices'(){const _0x42fe25=_0x503f2c;return this[_0x42fe25(0x11d)]?[]:this[_0x42fe25(0x11c)]||[];},'dismissNotices'(){const _0x7805b2=_0x503f2c;this[_0x7805b2(0x11d)]=!0x0;try{sessionStorage['setItem']('okdb_notices_dismissed','1');}catch{}},async 'loadConfig'(){const _0x38836b=_0x503f2c,_0x446b94=await fetch(_0x38836b(0x146),{'credentials':_0x38836b(0x139)}),_0x2c4cf6=await _0x446b94[_0x38836b(0x14b)]()[_0x38836b(0x130)](()=>({}));return this[_0x38836b(0x15a)]=_0x2c4cf6?.[_0x38836b(0x12f)]||{},this['config'];},async 'loadSession'(){const _0x459465=_0x503f2c;if(this[_0x459465(0x112)])return this[_0x459465(0x14f)]={'authenticated':!0x0,'user':{'username':_0x459465(0x135),'roles':[_0x459465(0x118)]},'grants':{}},this[_0x459465(0x14f)];const _0x976df3=await fetch(_0x459465(0x14d),{'credentials':_0x459465(0x139)});if(!_0x976df3['ok'])return this[_0x459465(0x14f)]={'authenticated':!0x1,'user':null,'grants':{}},this[_0x459465(0x14f)];const _0x5af0e5=await _0x976df3[_0x459465(0x14b)]()['catch'](()=>({})),_0x304659=_0x5af0e5?.[_0x459465(0x12f)]||_0x5af0e5?.[_0x459465(0x157)]||{'authenticated':!0x1,'user':null};return this[_0x459465(0x14f)]={'grants':{},..._0x304659},this[_0x459465(0x14f)];},async 'loadCatalog'(){const _0x4db682=_0x503f2c,_0xf0d258=await fetch(_0x4db682(0x154),{'credentials':_0x4db682(0x139)});if(!_0xf0d258['ok'])return null;const _0x1f62a9=await _0xf0d258[_0x4db682(0x14b)]()[_0x4db682(0x130)](()=>({})),_0x244d01=_0x1f62a9?.[_0x4db682(0x12f)]||_0x1f62a9?.[_0x4db682(0x157)]||null;return _0x244d01?.['implies']&&_0x4c6b57(_0x244d01[_0x4db682(0x128)]),this[_0x4db682(0x15b)]=_0x244d01,_0x244d01;},async 'loadNotices'(){const _0x3beebd=_0x503f2c;try{if('1'===sessionStorage[_0x3beebd(0x120)](_0x3beebd(0x126)))return void(this['noticesDismissed']=!0x0);const _0x274803=await fetch(_0x3beebd(0x137),{'credentials':_0x3beebd(0x139)});if(_0x274803['ok']){const _0x19bc36=await _0x274803['json']()[_0x3beebd(0x130)](()=>({}));this['notices']=_0x19bc36?.[_0x3beebd(0x12f)]?.[_0x3beebd(0x11c)]??_0x19bc36?.[_0x3beebd(0x157)]?.[_0x3beebd(0x11c)]??[];}}catch{}},async 'init'(){const _0x566106=_0x503f2c;this[_0x566106(0x114)]=!0x0,this['error']=null;try{await this[_0x566106(0x140)](),await this[_0x566106(0x144)](),await this['loadCatalog'](),await this[_0x566106(0x12d)]();}catch(_0x58db29){throw this['error']=_0x58db29?.[_0x566106(0x121)]||String(_0x58db29),_0x58db29;}finally{this[_0x566106(0x114)]=!0x1;}},async 'logout'(){const _0x2b65e5=_0x503f2c;await fetch(_0x2b65e5(0x11b),{'method':_0x2b65e5(0x129),'credentials':_0x2b65e5(0x139),'headers':{'content-type':_0x2b65e5(0x116)}})['catch'](()=>{}),this[_0x2b65e5(0x14f)]={'authenticated':!0x1,'user':null};const _0x426ca3=encodeURIComponent(_0x2b65e5(0x156));window[_0x2b65e5(0x122)][_0x2b65e5(0x13d)]('/admin/login?redirect='+_0x426ca3);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe47019=_0x53bc;(function(_0xb0e04,_0x2edfb5){const _0x22452e=_0x53bc,_0x1bbfa9=_0xb0e04();while(!![]){try{const _0x54defc=-parseInt(_0x22452e(0x9a))/0x1*(parseInt(_0x22452e(0xa1))/0x2)+-parseInt(_0x22452e(0x87))/0x3+parseInt(_0x22452e(0x98))/0x4+parseInt(_0x22452e(0xb9))/0x5*(-parseInt(_0x22452e(0x94))/0x6)+-parseInt(_0x22452e(0xab))/0x7+-parseInt(_0x22452e(0xb7))/0x8*(parseInt(_0x22452e(0x82))/0x9)+-parseInt(_0x22452e(0x8f))/0xa*(-parseInt(_0x22452e(0x9c))/0xb);if(_0x54defc===_0x2edfb5)break;else _0x1bbfa9['push'](_0x1bbfa9['shift']());}catch(_0x595f4e){_0x1bbfa9['push'](_0x1bbfa9['shift']());}}}(_0x85d9,0x18de3));import{ok as _0x321a4e}from'../modules/ok.js';const t=[_0xe47019(0x9e),_0xe47019(0x8a),_0xe47019(0xb4),'system:poke',_0xe47019(0xad),'system:bus_state_change',_0xe47019(0xb2),_0xe47019(0x91),'item:remove','index:reset','index:ready',_0xe47019(0xbd),'index:drop',_0xe47019(0x9b),'fts:registered','fts:drop',_0xe47019(0xa2),_0xe47019(0x8c),_0xe47019(0x7f),'txn:end',_0xe47019(0x84),_0xe47019(0xb6),_0xe47019(0x85),'env:opened',_0xe47019(0xbf),_0xe47019(0xa8),_0xe47019(0x9d),_0xe47019(0x83),'engine:installed','engine:uninstalled',_0xe47019(0xc4),_0xe47019(0x8e),_0xe47019(0xbe),_0xe47019(0x86),_0xe47019(0x8b),_0xe47019(0xb5),_0xe47019(0x92),_0xe47019(0xc6),_0xe47019(0x89),_0xe47019(0xa3),_0xe47019(0xc0),_0xe47019(0xc1),_0xe47019(0xc5),_0xe47019(0xac),_0xe47019(0x99),_0xe47019(0xbc),_0xe47019(0xa5),'processor:resumed',_0xe47019(0xaf),_0xe47019(0x96)];function _0x53bc(_0xfe1a07,_0x43849f){_0xfe1a07=_0xfe1a07-0x7e;const _0x85d994=_0x85d9();let _0x53bcc0=_0x85d994[_0xfe1a07];return _0x53bcc0;}export{t as ALL_EVENTS};let n=null;const r={};function s(_0x30b15b){const _0x15068f=_0xe47019;try{return JSON[_0x15068f(0xbb)](_0x30b15b);}catch{return null;}}function o(_0x21a324,_0xa05fbf){const _0x4cea4c=_0xe47019,_0x283bc6=r[_0x21a324];if(_0x283bc6){for(const _0x1799a8 of _0x283bc6)try{_0x1799a8(_0xa05fbf);}catch(_0x399686){console[_0x4cea4c(0xc3)](_0x4cea4c(0xa0),_0x399686);}}}function i(_0x50d141,_0x5934ae){const _0x234eb3=_0xe47019;return[..._0x50d141[_0x234eb3(0x88)]>=0x1f4?_0x50d141[_0x234eb3(0x81)](-0x1f3):_0x50d141,_0x5934ae];}const d=_0x321a4e['proxy']({'connected':!0x1,'connecting':!0x1,'error':null,'activity':[],get 'logs'(){const _0x5cf704=_0xe47019;return this[_0x5cf704(0xa4)][_0x5cf704(0x80)](_0x36f013=>_0x5cf704(0x8d)===_0x36f013[_0x5cf704(0xb0)]);},'connect'(_0x54bbcf=null){const _0x50f7d8=_0xe47019;if(n||this[_0x50f7d8(0xba)])return;this['connecting']=!0x0,this['error']=null;let _0x4010c4=__ENV__[_0x50f7d8(0xa9)]+_0x50f7d8(0xc2);_0x54bbcf?.[_0x50f7d8(0x88)]&&(_0x4010c4+=_0x50f7d8(0x90)+encodeURIComponent(_0x54bbcf[_0x50f7d8(0xaa)](',')));const _0x5e7391=new EventSource(_0x4010c4);n=_0x5e7391,_0x5e7391['addEventListener'](_0x50f7d8(0xa6),()=>{const _0x11906d=_0x50f7d8;this[_0x11906d(0xb1)]=!0x0,this[_0x11906d(0xba)]=!0x1,this[_0x11906d(0xc3)]=null;}),_0x5e7391[_0x50f7d8(0x93)](_0x50f7d8(0xc3),()=>{const _0x461464=_0x50f7d8;this[_0x461464(0xb1)]=!0x1,this[_0x461464(0xba)]=!0x1,this[_0x461464(0xc3)]=_0x461464(0xb3);});const _0x48a1b3=_0x2286e7=>{const _0x1fadcc=_0x50f7d8,_0x5ab450=s(_0x2286e7[_0x1fadcc(0xb8)]);if(!_0x5ab450)return;const _0x33fbff={'_kind':_0x1fadcc(0x8d),'_ts':_0x5ab450['_ts']??_0x5ab450['ts']??Date[_0x1fadcc(0x95)](),..._0x5ab450};this[_0x1fadcc(0xa4)]=i(this[_0x1fadcc(0xa4)],_0x33fbff),o(_0x1fadcc(0x8d),_0x5ab450);};_0x5e7391['addEventListener']('log',_0x48a1b3);for(const _0x30823b of t)_0x5e7391[_0x50f7d8(0x93)](_0x30823b,_0xbf2338=>{const _0x5c9348=_0x50f7d8;try{const _0x43a728=s(_0xbf2338[_0x5c9348(0xb8)]);if(!_0x43a728)return;const _0x16db11={'_kind':'event','_event':_0x30823b,'_ts':_0x43a728[_0x5c9348(0x7e)]??Date[_0x5c9348(0x95)](),..._0x43a728};this['activity']=i(this[_0x5c9348(0xa4)],_0x16db11),o(_0x30823b,_0x43a728);}catch{}});_0x5e7391[_0x50f7d8(0xae)]=_0x48a1b3;},'disconnect'(){const _0x3fd1e5=_0xe47019;n?.[_0x3fd1e5(0xa7)](),n=null,this[_0x3fd1e5(0xb1)]=!0x1,this[_0x3fd1e5(0xba)]=!0x1;},'on':(_0x393ccd,_0x464731)=>(r[_0x393ccd]||(r[_0x393ccd]=new Set()),r[_0x393ccd][_0xe47019(0x97)](_0x464731),()=>r[_0x393ccd]?.['delete'](_0x464731)),'clearActivity'(){const _0xbc35c7=_0xe47019;this[_0xbc35c7(0xa4)]=[];},'clearLogs'(){const _0x18d755=_0xe47019;this[_0x18d755(0x9f)]();}});function _0x85d9(){const _0x35073c=['processor:progress','447BeFBog','index:registered','11tCfQPH','engine:stopped','system:ready','clearActivity','events-store\x20handler\x20error','822PMtKdR','fts:reset','queue:failed','activity','processor:paused','open','close','engine:started','API','join','280497QCHPLx','processor:ready','system:drain','onmessage','processor:retry','_kind','connected','item:create','Stream\x20disconnected\x20—\x20reconnecting…','system:clock_change','embeddings:doc:status_change','type:registered','4024cGgAhm','data','4910MVNaNI','connecting','parse','processor:error','index:progress','embeddings:indexer:doc:done','env:removed','queue:retry','queue:removed','/events','error','embeddings:indexer:ready','queue:reconciled','queue:enqueued','_ts','txn:start','filter','slice','1773vpQqdM','engine:error','txn:rollback','type:drop','embeddings:indexer:doc:failed','323769bzeunv','length','queue:done','system:stopped','embeddings:indexer:doc:queued','sync:apply','log','embeddings:indexer:flushed','5628890hqeSFg','?types=','item:update','embeddings:pipeline:ready','addEventListener','1098iFqgMw','now','relay:error','add','597912indoXx'];_0x85d9=function(){return _0x35073c;};return _0x85d9();}export default d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d520f=_0x9c1d;(function(_0x42284f,_0x126689){const _0x2c94e0=_0x9c1d,_0x319e68=_0x42284f();while(!![]){try{const _0x5c95e3=-parseInt(_0x2c94e0(0x1d7))/0x1+-parseInt(_0x2c94e0(0x1d3))/0x2*(parseInt(_0x2c94e0(0x20e))/0x3)+-parseInt(_0x2c94e0(0x202))/0x4*(-parseInt(_0x2c94e0(0x201))/0x5)+-parseInt(_0x2c94e0(0x233))/0x6+parseInt(_0x2c94e0(0x226))/0x7+-parseInt(_0x2c94e0(0x1a6))/0x8+parseInt(_0x2c94e0(0x229))/0x9;if(_0x5c95e3===_0x126689)break;else _0x319e68['push'](_0x319e68['shift']());}catch(_0xe9d32e){_0x319e68['push'](_0x319e68['shift']());}}}(_0x3c1b,0xefb8b));import{ok as _0x40cf2c}from'../modules/ok.js';function _0x3c1b(){const _0x7a0680=['Function\x20script\x20may\x20not\x20reference\x20','setModalSourceDraft','38598147AQWMnk','meta','code','selectedRun','detail','modalDescriptionDraft','dryRunMode','status','functionName','timeoutMs','6503544bMGNsm','parsePayloadDraft','/functions','Function\x20script\x20failed\x20to\x20compile','modalDryRunMode','allowFetch','json','running','unsafe','modalPayloadDraft','set','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','modalPreviewLogs','Failed\x20to\x20create\x20function','resetSelection','loadRuns','persisted','select','9002616EMpOzI','{\x0a\x20\x20\x0a}','modalProcessorContextDraft','get','items','\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','runId','Failed\x20to\x20delete\x20function','modalSourceDraft','edit','execution','runs','isArray','modalMaterializerContextDraft','setModalPreviewContext','modalJobContextDraft','parse','~system','string','application/json','create','modalNameDraft','reloadList','logsForRun','proxy','saving','buildModalDefinition','has','POST','modalMemoryMbDraft','sort','beginCreateDraft','latestRun','source','process','modalRunning','console','requestedAt','worker_threads','Payload\x20JSON\x20is\x20invalid','/run','Failed\x20to\x20run\x20draft','overview','selected','stringify','2977886OAHqcR','hasEnv','selectedEnv','Failed\x20to\x20load\x20functions','1581302VhvyNw','envName','info','\x20\x20return\x20{\x20ok:\x20true\x20};','sourceDraft','modalTimeoutMsDraft','overviewRuns','length','join','PUT','loadList','runtime','finishedAt','msg','FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','loadOverviewRuns','import','functionsBase','FUNCTION_SCRIPT_REQUIRED','filter','payloadError','test','catch','enabled','data','modalPreviewRun','Failed\x20to\x20save\x20function','/runs','modalEnabledDraft','add','metadata','value','script','_ts','selectedName','modalUnsafeDraft','module','setModalPayloadDraft','require','exports','selectRun','modalValidation','1916105QxyndV','4ulnqrN','push','request','replace','live','map','FUNCTION_SCRIPT_TOO_LARGE','description','Function\x20script\x20exceeds\x2065536\x20bytes','/runs/','/preview','loading','3XSKcBm','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','name','error','memoryMb','trim','currentView','hydrateOverview','modalPayloadError','key','Failed\x20to\x20run\x20function','getLogsForRun','/env/','payloadDraft','isFinite','Function\x20script\x20source\x20is\x20required','logs','find','Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}','FUNCTION_SCRIPT_COMPILE_FAILED','modalMode','message','level','return\x20(','11126437jOruOO'];_0x3c1b=function(){return _0x7a0680;};return _0x3c1b();}import _0x50a982 from'./okdb-store.js';import _0x19a3c0 from'./events-store.js';function _0x9c1d(_0x5df19d,_0x41a3b0){_0x5df19d=_0x5df19d-0x19e;const _0x3c1bab=_0x3c1b();let _0x9c1d37=_0x3c1bab[_0x5df19d];return _0x9c1d37;}const a=['async\x20(ctx)\x20=>\x20{','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input',_0x3d520f(0x20f),_0x3d520f(0x1ab),_0x3d520f(0x19f),'',_0x3d520f(0x1da),'}'][_0x3d520f(0x1df)]('\x0a'),r=_0x3d520f(0x1a7),i=[{'symbol':_0x3d520f(0x1fd),'pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x3d520f(0x1e7),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x3d520f(0x1ca),'pattern':/(^|[^\w$.])console\b/},{'symbol':_0x3d520f(0x1fb),'pattern':/(^|[^\w$.])module\b/},{'symbol':_0x3d520f(0x1fe),'pattern':/(^|[^\w$.])exports\b/},{'symbol':_0x3d520f(0x1c8),'pattern':/(^|[^\w$.])process\b/},{'symbol':'child_process','pattern':/child_process/},{'symbol':_0x3d520f(0x1cc),'pattern':/worker_threads/}];function n(_0x3adae7){const _0xaf2f0=_0x3d520f;return null==_0x3adae7?_0x3adae7:JSON[_0xaf2f0(0x1b6)](JSON['stringify'](_0x3adae7));}function o(_0x887861={},_0x116953=_0x3d520f(0x1a4)){const _0x2ed0f1=_0x3d520f,_0x473a78=_0x887861?.[_0x2ed0f1(0x22a)]??null,_0x22659=_0x887861?.[_0x2ed0f1(0x1e4)]??_0x887861?.[_0x2ed0f1(0x223)]??_0x887861?.['content']??_0x887861?.['title']??'';return{'runId':_0x887861?.['runId']??_0x473a78?.[_0x2ed0f1(0x1ac)]??null,'ts':_0x887861?.['ts']??_0x887861?.[_0x2ed0f1(0x1f8)]??Date['now'](),'level':_0x887861?.['level']??_0x2ed0f1(0x1d9),'msg':_0x2ed0f1(0x1b8)==typeof _0x22659?_0x22659:JSON[_0x2ed0f1(0x1d2)](_0x22659??''),'meta':_0x473a78,'source':_0x116953};}export default _0x40cf2c[_0x3d520f(0x1be)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':_0x3d520f(0x1d0),'modalMode':'create','modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':_0x3d520f(0x1e9),'message':_0x3d520f(0x21d)},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){const _0x30d628=_0x3d520f;return _0x50a982[_0x30d628(0x1d5)]||null;},get 'isGlobalScope'(){const _0x158d64=_0x3d520f;return _0x158d64(0x1b7)===this[_0x158d64(0x1d8)];},get 'hasEnv'(){const _0x3092db=_0x3d520f;return!!this[_0x3092db(0x1d8)];},get 'functionsBase'(){const _0x931f03=_0x3d520f;return this['envName']?__ENV__['API']+_0x931f03(0x21a)+encodeURIComponent(this[_0x931f03(0x1d8)])+_0x931f03(0x235):null;},get 'canOpenModal'(){const _0x55cc77=_0x3d520f;return!!this[_0x55cc77(0x1e8)];},get 'hasSelected'(){const _0x3a1ab8=_0x3d520f;return!!this[_0x3a1ab8(0x1f9)]&&!!this[_0x3a1ab8(0x1d1)];},get 'latestRun'(){const _0x1bd247=_0x3d520f;return this[_0x1bd247(0x1b1)]?.[0x0]?.[_0x1bd247(0x1f6)]||this[_0x1bd247(0x1b1)]?.[0x0]||null;},get 'activeRun'(){const _0x38fe1a=_0x3d520f;return this[_0x38fe1a(0x22c)]||this[_0x38fe1a(0x1c6)]||null;},get 'functionsOverview'(){const _0x362009=_0x3d520f,_0x26f55a=new Map();for(const _0x3e9f73 of this[_0x362009(0x1dd)]||[]){const _0x2fc06a=_0x3e9f73?.[_0x362009(0x1f6)]||_0x3e9f73,_0x56361d=_0x2fc06a?.[_0x362009(0x231)];_0x56361d&&!_0x26f55a[_0x362009(0x1c1)](_0x56361d)&&_0x26f55a[_0x362009(0x19e)](_0x56361d,_0x2fc06a);}return(this[_0x362009(0x1aa)]||[])[_0x362009(0x207)](_0x4a8ba4=>({..._0x4a8ba4,'latestRun':_0x26f55a[_0x362009(0x1a9)](_0x4a8ba4?.[_0x362009(0x217)])||null}));},get 'selectedFunctionTitle'(){const _0xbdbb51=_0x3d520f;return this[_0xbdbb51(0x1d1)]?.[_0xbdbb51(0x210)]||this[_0xbdbb51(0x1f9)]||null;},get 'selectedLogEntries'(){const _0x4526c4=_0x3d520f,_0x44e603=this[_0x4526c4(0x22c)]?.['id']||this[_0x4526c4(0x22c)]?.['runId'];if(_0x44e603)return this[_0x4526c4(0x1bd)](_0x44e603);const _0x5d0f92=this[_0x4526c4(0x1c6)]?.['id']||this[_0x4526c4(0x1c6)]?.[_0x4526c4(0x1ac)];return _0x5d0f92?this[_0x4526c4(0x1bd)](_0x5d0f92):[];},'logsForRun'(_0x21da25){const _0x33134e=_0x3d520f;if(!_0x21da25)return[];const _0x204da9=[this[_0x33134e(0x22c)],this['latestRun'],...(this[_0x33134e(0x1b1)]||[])[_0x33134e(0x207)](_0x58b907=>_0x58b907?.[_0x33134e(0x1f6)]||_0x58b907)][_0x33134e(0x21f)](_0x5565c9=>(_0x5565c9?.['id']||_0x5565c9?.[_0x33134e(0x1ac)])===_0x21da25)?.[_0x33134e(0x21e)],_0x52da24=[...Array[_0x33134e(0x1b2)](_0x204da9)?_0x204da9[_0x33134e(0x207)](_0x154d62=>o(_0x154d62,_0x33134e(0x1a4))):[],...(_0x19a3c0[_0x33134e(0x21e)]||[])[_0x33134e(0x1ea)](_0x4fedcb=>(_0x4fedcb?.[_0x33134e(0x1ac)]||_0x4fedcb?.[_0x33134e(0x22a)]?.[_0x33134e(0x1ac)])===_0x21da25)[_0x33134e(0x207)](_0x28b197=>o(_0x28b197,_0x33134e(0x206)))],_0x17a153=new Set(),_0x5aabfe=[];for(const _0x56380d of _0x52da24){const _0x4204f8=_0x56380d[_0x33134e(0x1ac)]+'|'+_0x56380d['ts']+'|'+_0x56380d[_0x33134e(0x224)]+'|'+_0x56380d[_0x33134e(0x1e4)]+'|'+JSON[_0x33134e(0x1d2)](_0x56380d[_0x33134e(0x22a)]??null);_0x17a153[_0x33134e(0x1c1)](_0x4204f8)||(_0x17a153[_0x33134e(0x1f4)](_0x4204f8),_0x5aabfe['push'](_0x56380d));}return _0x5aabfe[_0x33134e(0x1c4)]((_0x1ee7cd,_0x334cf6)=>(_0x1ee7cd['ts']??0x0)-(_0x334cf6['ts']??0x0)),_0x5aabfe;},'resetSelection'(){const _0x18704f=_0x3d520f;this[_0x18704f(0x1f9)]=null,this[_0x18704f(0x1d1)]=null,this['runs']=[],this[_0x18704f(0x1dd)]=[],this[_0x18704f(0x22c)]=null,this[_0x18704f(0x1db)]='',this['payloadDraft']=r,this[_0x18704f(0x1eb)]=null,this[_0x18704f(0x211)]=null;},'validateSource'(_0xf2bae6){const _0xbd858b=_0x3d520f,_0x2d75fd=_0xbd858b(0x1b8)==typeof _0xf2bae6?_0xf2bae6[_0xbd858b(0x205)](/\r\n/g,'\x0a')[_0xbd858b(0x213)]():'';if(!_0x2d75fd)return{'ok':!0x1,'code':_0xbd858b(0x1e9),'message':'Function\x20script\x20source\x20is\x20required'};const _0x51d21e=new TextEncoder()['encode'](_0x2d75fd)[_0xbd858b(0x1de)];if(_0x51d21e>0x10000)return{'ok':!0x1,'code':_0xbd858b(0x208),'message':_0xbd858b(0x20a)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/['test'](_0x2d75fd))return{'ok':!0x1,'code':'FUNCTION_SCRIPT_INVALID_SHAPE','message':_0xbd858b(0x220)};for(const {symbol:_0x2972b9,pattern:_0x130de9}of i)if(_0x130de9[_0xbd858b(0x1ec)](_0x2d75fd))return{'ok':!0x1,'code':_0xbd858b(0x1e5),'message':_0xbd858b(0x227)+_0x2972b9};try{new Function(_0xbd858b(0x225)+_0x2d75fd+');')();}catch(_0x19ef30){return{'ok':!0x1,'code':_0xbd858b(0x221),'message':_0x19ef30?.[_0xbd858b(0x223)]||_0xbd858b(0x236)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x2d75fd,'bytes':_0x51d21e};},'parsePayloadDraft'(_0x239d44=this['payloadDraft']){const _0x43d4d3=_0x3d520f,_0x11a726=String(_0x239d44??'')[_0x43d4d3(0x213)]();return _0x11a726?JSON[_0x43d4d3(0x1b6)](_0x11a726):null;},'setModalSourceDraft'(_0x38f1a4){const _0x5381a0=_0x3d520f;this[_0x5381a0(0x1ae)]=_0x38f1a4??'',this[_0x5381a0(0x200)]=this['validateSource'](this[_0x5381a0(0x1ae)]);},'setModalPayloadDraft'(_0x5bc9cc){const _0x26a1ac=_0x3d520f;this[_0x26a1ac(0x23c)]=_0x5bc9cc??r;try{this[_0x26a1ac(0x234)](this[_0x26a1ac(0x23c)]),this['modalPayloadError']=null;}catch(_0x523582){this[_0x26a1ac(0x216)]=_0x523582?.[_0x26a1ac(0x223)]||_0x26a1ac(0x1cd);}},'setModalPreviewContext'({jobContext:_0x4c6f87=null,processorContext:_0x22b006=null,materializerContext:_0x2fc9cf=null}={}){const _0x28ef04=_0x3d520f;this[_0x28ef04(0x1b5)]=n(_0x4c6f87),this[_0x28ef04(0x1a8)]=n(_0x22b006),this['modalMaterializerContextDraft']=n(_0x2fc9cf);},'beginCreateDraft'(){const _0x46386e=_0x3d520f;this['modalMode']=_0x46386e(0x1ba),this['modalNameDraft']='',this[_0x46386e(0x22e)]='',this[_0x46386e(0x1f3)]=!0x0,this[_0x46386e(0x1fa)]=!0x1,this[_0x46386e(0x1dc)]=null,this[_0x46386e(0x1c3)]=null,this['modalAllowFetchDraft']=!0x0,this[_0x46386e(0x1f0)]=null,this['modalPreviewLogs']=[],this[_0x46386e(0x1b4)]({}),this[_0x46386e(0x1fc)](this[_0x46386e(0x21b)]||r),this[_0x46386e(0x228)](a);},'beginEditDraft'(){const _0x53afc1=_0x3d520f,_0x1ec1e4=this[_0x53afc1(0x1d1)];this[_0x53afc1(0x222)]=_0x53afc1(0x1af),this[_0x53afc1(0x1bb)]=_0x1ec1e4?.[_0x53afc1(0x210)]||this['selectedName']||'',this[_0x53afc1(0x22e)]=_0x1ec1e4?.[_0x53afc1(0x1f5)]?.[_0x53afc1(0x209)]||'',this[_0x53afc1(0x1f3)]=!0x1!==_0x1ec1e4?.[_0x53afc1(0x1ee)],this[_0x53afc1(0x1fa)]=!0x0===_0x1ec1e4?.[_0x53afc1(0x23b)],this['modalTimeoutMsDraft']=_0x1ec1e4?.[_0x53afc1(0x1e2)]?.[_0x53afc1(0x232)]??null,this[_0x53afc1(0x1c3)]=_0x1ec1e4?.[_0x53afc1(0x1e2)]?.[_0x53afc1(0x212)]??null,this['modalAllowFetchDraft']=!0x1!==_0x1ec1e4?.['runtime']?.['allowFetch'],this['modalPreviewRun']=null,this[_0x53afc1(0x1a0)]=[],this[_0x53afc1(0x1b4)]({}),this[_0x53afc1(0x1fc)](this[_0x53afc1(0x21b)]||r),this[_0x53afc1(0x228)](_0x1ec1e4?.['script']?.[_0x53afc1(0x1c7)]||this['sourceDraft']||a);},'buildModalDefinition'(){const _0x306569=_0x3d520f,_0x11779f={};return Number[_0x306569(0x21c)](this[_0x306569(0x1dc)])&&this[_0x306569(0x1dc)]>0x0&&(_0x11779f[_0x306569(0x232)]=this[_0x306569(0x1dc)]),Number[_0x306569(0x21c)](this[_0x306569(0x1c3)])&&this['modalMemoryMbDraft']>0x0&&(_0x11779f[_0x306569(0x212)]=this[_0x306569(0x1c3)]),_0x11779f[_0x306569(0x238)]=!0x1!==this['modalAllowFetchDraft'],{'name':String(this[_0x306569(0x1bb)]||'')[_0x306569(0x213)](),'source':this[_0x306569(0x200)]?.['normalizedSource']||String(this[_0x306569(0x1ae)]||'')[_0x306569(0x213)](),'metadata':{'description':String(this[_0x306569(0x22e)]||'')['trim']()},'enabled':!0x1!==this[_0x306569(0x1f3)],'unsafe':!0x0===this[_0x306569(0x1fa)],'runtime':_0x11779f};},get 'canSaveModal'(){const _0x47e50d=_0x3d520f;return!(!String(this[_0x47e50d(0x1bb)]||'')[_0x47e50d(0x213)]()||!this[_0x47e50d(0x200)]?.['ok']||this['modalPayloadError']||this[_0x47e50d(0x1bf)]);},async 'loadList'(){const _0x108abc=_0x3d520f;if(!this['functionsBase'])return[];this[_0x108abc(0x20d)]=!0x0,this[_0x108abc(0x211)]=null;try{const _0xbf3bb6=await fetch(this[_0x108abc(0x1e8)]),_0x3b45bb=await _0xbf3bb6[_0x108abc(0x239)]();return this[_0x108abc(0x1aa)]=_0x3b45bb?.[_0x108abc(0x1ef)]||[],this[_0x108abc(0x1f9)]&&(this[_0x108abc(0x1aa)][_0x108abc(0x21f)](_0x2a7f6a=>_0x2a7f6a[_0x108abc(0x217)]===this['selectedName'])||this[_0x108abc(0x1a2)]()),this[_0x108abc(0x1aa)];}catch(_0x877852){throw this[_0x108abc(0x211)]=_0x877852?.[_0x108abc(0x223)]||_0x108abc(0x1d6),_0x877852;}finally{this[_0x108abc(0x20d)]=!0x1;}},async 'reloadList'(){const _0x169f5f=_0x3d520f;return this[_0x169f5f(0x1aa)]=[],this[_0x169f5f(0x1e1)]();},'setView'(_0x2658b6=_0x3d520f(0x1d0)){const _0xf148d5=_0x3d520f;this[_0xf148d5(0x214)]=_0xf148d5(0x22d)===_0x2658b6?'detail':_0xf148d5(0x1d0);},async 'loadOverviewRuns'(_0x7944f0=0x18){const _0xae0d5a=_0x3d520f;if(!this[_0xae0d5a(0x1e8)])return[];const _0x2f0f67=(this[_0xae0d5a(0x1aa)]||[])[_0xae0d5a(0x207)](_0x384fb7=>_0x384fb7?.['key'])[_0xae0d5a(0x1ea)](Boolean),_0x4e94a0=[];for(const _0x54c837 of _0x2f0f67){const _0xfbf68=await fetch(this[_0xae0d5a(0x1e8)]+'/'+encodeURIComponent(_0x54c837)+_0xae0d5a(0x1f2)),_0x866a70=await _0xfbf68[_0xae0d5a(0x239)](),_0x3af589=(_0x866a70?.[_0xae0d5a(0x1ef)]||[])[_0xae0d5a(0x207)](_0x34591d=>_0x34591d?.[_0xae0d5a(0x1f6)]?_0x34591d:{'key':_0x34591d?.['id']||_0x34591d?.['runId'],'value':_0x34591d});_0x4e94a0[_0xae0d5a(0x203)](..._0x3af589);}return _0x4e94a0[_0xae0d5a(0x1c4)]((_0x33d5db,_0x5a76ce)=>{const _0xc1d18d=_0xae0d5a,_0x32df17=_0x33d5db?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x1b0)]?.['finishedAt']??_0x33d5db?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x204)]?.['requestedAt']??0x0;return(_0x5a76ce?.['value']?.[_0xc1d18d(0x1b0)]?.[_0xc1d18d(0x1e3)]??_0x5a76ce?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x204)]?.[_0xc1d18d(0x1cb)]??0x0)-_0x32df17;}),this['overviewRuns']=_0x4e94a0['slice'](0x0,_0x7944f0),this[_0xae0d5a(0x1dd)];},async 'hydrateOverview'(){await this['loadList'](),await this['loadOverviewRuns']();},async 'select'(_0x362333){const _0x5ecd3c=_0x3d520f;if(this[_0x5ecd3c(0x1f9)]=_0x362333||null,this[_0x5ecd3c(0x22c)]=null,this[_0x5ecd3c(0x214)]=_0x362333?_0x5ecd3c(0x22d):_0x5ecd3c(0x1d0),!_0x362333)return this[_0x5ecd3c(0x1d1)]=null,this['sourceDraft']='',this[_0x5ecd3c(0x1b1)]=[],null;const _0x43fd59=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x362333)),_0x349ac9=await _0x43fd59[_0x5ecd3c(0x239)]();if(this[_0x5ecd3c(0x1d1)]=_0x349ac9?.['data']||null,this['sourceDraft']=this[_0x5ecd3c(0x1d1)]?.[_0x5ecd3c(0x1f7)]?.['source']||'',this['payloadError']=null,await this['loadRuns'](_0x362333),!this[_0x5ecd3c(0x22c)]&&this[_0x5ecd3c(0x1b1)]?.[_0x5ecd3c(0x1de)]){const _0x3226bc=this[_0x5ecd3c(0x1b1)][0x0];this['selectedRun']=_0x3226bc?.['value']||_0x3226bc||null;}return this[_0x5ecd3c(0x1d1)];},async 'loadRuns'(_0x856320=this[_0x3d520f(0x1f9)]){const _0x54a201=_0x3d520f;if(!_0x856320)return this[_0x54a201(0x1b1)]=[],[];const _0x460a0f=await fetch(this[_0x54a201(0x1e8)]+'/'+encodeURIComponent(_0x856320)+_0x54a201(0x1f2)),_0x107117=await _0x460a0f[_0x54a201(0x239)]();if(this[_0x54a201(0x1b1)]=_0x107117?.['data']||[],this[_0x54a201(0x22c)]){const _0x523399=this['selectedRun']?.['id']||this['selectedRun']?.[_0x54a201(0x1ac)],_0x24256e=this[_0x54a201(0x1b1)]['map'](_0x2a56dd=>_0x2a56dd?.[_0x54a201(0x1f6)]||_0x2a56dd)[_0x54a201(0x21f)](_0x349af5=>(_0x349af5?.['id']||_0x349af5?.['runId'])===_0x523399);this[_0x54a201(0x22c)]=_0x24256e||null;}return this[_0x54a201(0x1b1)];},async 'refreshSelected'(){const _0x481282=_0x3d520f;if(!this['selectedName'])return null;const _0x4e2231=this[_0x481282(0x22c)]?.['id']||this[_0x481282(0x22c)]?.[_0x481282(0x1ac)];if(await this[_0x481282(0x1a5)](this[_0x481282(0x1f9)]),_0x4e2231){const _0x54c1df=this['runs'][_0x481282(0x207)](_0x2f20b9=>_0x2f20b9?.[_0x481282(0x1f6)]||_0x2f20b9)[_0x481282(0x21f)](_0x3fa900=>(_0x3fa900?.['id']||_0x3fa900?.[_0x481282(0x1ac)])===_0x4e2231);this[_0x481282(0x22c)]=_0x54c1df||this[_0x481282(0x22c)];}return await this[_0x481282(0x1e6)](),this['selected'];},'setSourceDraft'(_0x3c6ac4){const _0xc6a00a=_0x3d520f;this[_0xc6a00a(0x1db)]=_0x3c6ac4??'';},'setPayloadDraft'(_0xe956bf){const _0x3b4dc9=_0x3d520f;this[_0x3b4dc9(0x21b)]=_0xe956bf??r;try{this[_0x3b4dc9(0x234)](this[_0x3b4dc9(0x21b)]),this[_0x3b4dc9(0x1eb)]=null;}catch(_0x166e30){this[_0x3b4dc9(0x1eb)]=_0x166e30?.['message']||_0x3b4dc9(0x1cd);}},async 'create'(_0x4cae9d={}){const _0x369030=_0x3d520f;this['saving']=!0x0,this[_0x369030(0x211)]=null;try{const _0x531c63={..._0x4cae9d},_0x34420a=await fetch(this[_0x369030(0x1e8)],{'method':_0x369030(0x1c2),'headers':{'content-type':_0x369030(0x1b9)},'body':JSON['stringify'](_0x531c63)}),_0x298326=await _0x34420a[_0x369030(0x239)]();if(!_0x34420a['ok'])throw new Error(_0x298326?.[_0x369030(0x211)]?.['message']||_0x298326?.[_0x369030(0x1ef)]?.[_0x369030(0x211)]||_0x369030(0x1a1));return await this[_0x369030(0x1bc)](),await this[_0x369030(0x1a5)](_0x298326?.[_0x369030(0x1ef)]?.[_0x369030(0x210)]||_0x4cae9d[_0x369030(0x210)]),_0x298326?.['data'];}finally{this[_0x369030(0x1bf)]=!0x1;}},async 'saveSelected'(_0x331bfc={}){const _0x385358=_0x3d520f;if(!this[_0x385358(0x1f9)])return null;this[_0x385358(0x1bf)]=!0x0,this[_0x385358(0x211)]=null;try{const _0xdc828f={..._0x331bfc,'source':_0x331bfc?.[_0x385358(0x1c7)]??this['sourceDraft']},_0xf14270=await fetch(this[_0x385358(0x1e8)]+'/'+encodeURIComponent(this[_0x385358(0x1f9)]),{'method':_0x385358(0x1e0),'headers':{'content-type':_0x385358(0x1b9)},'body':JSON['stringify'](_0xdc828f)}),_0xb45bbd=await _0xf14270[_0x385358(0x239)]();if(!_0xf14270['ok'])throw new Error(_0xb45bbd?.[_0x385358(0x211)]?.[_0x385358(0x223)]||_0xb45bbd?.[_0x385358(0x1ef)]?.[_0x385358(0x211)]||_0x385358(0x1f1));return await this[_0x385358(0x1bc)](),await this[_0x385358(0x1a5)](this['selectedName']),_0xb45bbd?.['data'];}finally{this[_0x385358(0x1bf)]=!0x1;}},async 'saveModalDefinition'(){const _0x3b9a1b=_0x3d520f,_0x98c313=this[_0x3b9a1b(0x1c0)]();return _0x3b9a1b(0x1af)===this['modalMode']&&this['selectedName']?await this['saveSelected'](_0x98c313):this['create'](_0x98c313);},async 'remove'(_0x3d98f0=this[_0x3d520f(0x1f9)]){const _0x2a92d8=_0x3d520f;if(!_0x3d98f0)return!0x1;this[_0x2a92d8(0x1bf)]=!0x0,this['error']=null;try{const _0x25d205=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x3d98f0),{'method':'DELETE'});if(!_0x25d205['ok']&&0xcc!==_0x25d205[_0x2a92d8(0x230)]){const _0x4cae7e=await _0x25d205[_0x2a92d8(0x239)]()[_0x2a92d8(0x1ed)](()=>({}));throw new Error(_0x4cae7e?.[_0x2a92d8(0x211)]?.[_0x2a92d8(0x223)]||_0x4cae7e?.['data']?.[_0x2a92d8(0x211)]||_0x2a92d8(0x1ad));}return await this[_0x2a92d8(0x1bc)](),await this[_0x2a92d8(0x1e6)](),this[_0x2a92d8(0x1f9)]===_0x3d98f0&&this[_0x2a92d8(0x1a2)](),!0x0;}finally{this[_0x2a92d8(0x1bf)]=!0x1;}},async 'runSelected'(){const _0x5f307d=_0x3d520f;if(!this['selectedName'])return null;this[_0x5f307d(0x23a)]=!0x0,this[_0x5f307d(0x211)]=null;try{let _0x5195b1=null;try{_0x5195b1=this['parsePayloadDraft'](this[_0x5f307d(0x21b)]),this[_0x5f307d(0x1eb)]=null;}catch(_0x22b6e1){throw this['payloadError']=_0x22b6e1?.[_0x5f307d(0x223)]||_0x5f307d(0x1cd),_0x22b6e1;}const _0x4298d1=await fetch(this[_0x5f307d(0x1e8)]+'/'+encodeURIComponent(this[_0x5f307d(0x1f9)])+_0x5f307d(0x1ce),{'method':_0x5f307d(0x1c2),'headers':{'content-type':_0x5f307d(0x1b9)},'body':JSON[_0x5f307d(0x1d2)]({'payload':_0x5195b1,...this[_0x5f307d(0x22f)]&&{'dryRun':!0x0}})}),_0x1ebea1=await _0x4298d1[_0x5f307d(0x239)]();if(!_0x4298d1['ok']){const _0xa46f86=new Error(_0x1ebea1?.['error']?.[_0x5f307d(0x223)]||_0x1ebea1?.[_0x5f307d(0x1ef)]?.[_0x5f307d(0x211)]||'Failed\x20to\x20run\x20function');throw _0xa46f86[_0x5f307d(0x22b)]=_0x1ebea1?.['error']?.['code']||null,_0xa46f86;}return await this[_0x5f307d(0x1a3)](this[_0x5f307d(0x1f9)]),this['selectedRun']=n(_0x1ebea1?.[_0x5f307d(0x1ef)]||null),this[_0x5f307d(0x22f)]||!this[_0x5f307d(0x22c)]?.['id']&&!this[_0x5f307d(0x22c)]?.['runId']||await this[_0x5f307d(0x1ff)](this[_0x5f307d(0x22c)]['id']||this['selectedRun']['runId']),await this['loadOverviewRuns'](),this[_0x5f307d(0x22c)];}catch(_0x45f9d2){throw this[_0x5f307d(0x211)]=_0x45f9d2?.['code']?_0x45f9d2['code']+':\x20'+_0x45f9d2[_0x5f307d(0x223)]:_0x45f9d2?.[_0x5f307d(0x223)]||_0x5f307d(0x218),_0x45f9d2;}finally{this[_0x5f307d(0x23a)]=!0x1;}},async 'runModalDraft'(){const _0x4ed069=_0x3d520f,_0x5e263a=this[_0x4ed069(0x1c0)]();this['modalRunning']=!0x0,this[_0x4ed069(0x211)]=null;try{const _0x131b64=this[_0x4ed069(0x234)](this[_0x4ed069(0x23c)]);this[_0x4ed069(0x216)]=null,this[_0x4ed069(0x1f0)]=null,this[_0x4ed069(0x1a0)]=[];const _0x2d7f18=await fetch(this[_0x4ed069(0x1e8)]+_0x4ed069(0x20c),{'method':_0x4ed069(0x1c2),'headers':{'content-type':_0x4ed069(0x1b9)},'body':JSON[_0x4ed069(0x1d2)]({..._0x5e263a,'payload':_0x131b64,...this[_0x4ed069(0x237)]&&{'dryRun':!0x0},...this[_0x4ed069(0x1b5)]?{'jobContext':n(this[_0x4ed069(0x1b5)])}:{},...this[_0x4ed069(0x1a8)]?{'processorContext':n(this[_0x4ed069(0x1a8)])}:{},...this[_0x4ed069(0x1b3)]?{'materializerContext':n(this['modalMaterializerContextDraft'])}:{}})}),_0x1cadac=await _0x2d7f18['json']();if(!_0x2d7f18['ok'])throw new Error(_0x1cadac?.['error']?.[_0x4ed069(0x223)]||_0x1cadac?.[_0x4ed069(0x1ef)]?.[_0x4ed069(0x211)]||_0x4ed069(0x1cf));return this[_0x4ed069(0x1f0)]=n(_0x1cadac?.[_0x4ed069(0x1ef)]||null),this['modalPreviewLogs']=this['getLogsForRun'](this['modalPreviewRun']?.['id']||this[_0x4ed069(0x1f0)]?.['runId']),this[_0x4ed069(0x1f0)];}catch(_0x2967f4){throw _0x2967f4 instanceof SyntaxError&&(this['modalPayloadError']=_0x2967f4?.[_0x4ed069(0x223)]||_0x4ed069(0x1cd)),_0x2967f4;}finally{this[_0x4ed069(0x1c9)]=!0x1;}},'getLogsForRun':_0x1b8242=>_0x1b8242?(_0x19a3c0[_0x3d520f(0x21e)]||[])[_0x3d520f(0x1ea)](_0x515c26=>(_0x515c26?.[_0x3d520f(0x1ac)]||_0x515c26?.['meta']?.[_0x3d520f(0x1ac)])===_0x1b8242):[],'refreshModalPreviewLogs'(){const _0x5ad21d=_0x3d520f,_0xfdf618=this[_0x5ad21d(0x1f0)]?.['id']||this['modalPreviewRun']?.[_0x5ad21d(0x1ac)];return _0xfdf618?(this[_0x5ad21d(0x1a0)]=this[_0x5ad21d(0x219)](_0xfdf618),this['modalPreviewLogs']):(this['modalPreviewLogs']=[],[]);},async 'selectRun'(_0x32b80e){const _0x3b512a=_0x3d520f;if(!this[_0x3b512a(0x1f9)]||!_0x32b80e)return this[_0x3b512a(0x22c)]=null,null;const _0x531d3b=await fetch(this[_0x3b512a(0x1e8)]+'/'+encodeURIComponent(this['selectedName'])+_0x3b512a(0x20b)+encodeURIComponent(_0x32b80e)),_0x23708f=await _0x531d3b[_0x3b512a(0x239)]();return this[_0x3b512a(0x22c)]=_0x23708f?.['data']||null,this[_0x3b512a(0x22c)];},async 'onEnvChanged'(){const _0x442eb7=_0x3d520f;this[_0x442eb7(0x1a2)](),this[_0x442eb7(0x1c5)](),this[_0x442eb7(0x214)]='overview',this[_0x442eb7(0x1d4)]&&await this[_0x442eb7(0x215)]();}});
|
|
1
|
+
const _0x59b7f0=_0x3260;(function(_0x16fb8b,_0xddc102){const _0x19b2b4=_0x3260,_0x35e740=_0x16fb8b();while(!![]){try{const _0x2ca665=parseInt(_0x19b2b4(0x10b))/0x1*(parseInt(_0x19b2b4(0x13e))/0x2)+parseInt(_0x19b2b4(0x12e))/0x3+parseInt(_0x19b2b4(0x120))/0x4+-parseInt(_0x19b2b4(0xe8))/0x5+parseInt(_0x19b2b4(0x14b))/0x6+-parseInt(_0x19b2b4(0x101))/0x7+-parseInt(_0x19b2b4(0xea))/0x8*(parseInt(_0x19b2b4(0xf1))/0x9);if(_0x2ca665===_0xddc102)break;else _0x35e740['push'](_0x35e740['shift']());}catch(_0x562b42){_0x35e740['push'](_0x35e740['shift']());}}}(_0x41c8,0xce38f));import{ok as _0x338a26}from'../modules/ok.js';import _0xbaeb74 from'./okdb-store.js';import _0x44b670 from'./events-store.js';function _0x41c8(){const _0x4fd748=['functionsBase','POST','setModalPayloadDraft','3342078UzWgYX','trim','overview','modalPayloadError','\x20\x20return\x20{\x20ok:\x20true\x20};','Payload\x20JSON\x20is\x20invalid','data','stringify','beginCreateDraft','modalNameDraft','logs','envName','level','import','loading','console','70chkZvF','payloadError','/runs/','now','modalRunning','loadList','modalDescriptionDraft','/functions','create','selectedName','items','modalUnsafeDraft','sourceDraft','6495420vpRcTL','Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}','join','modalSourceDraft','dryRunMode','modalPreviewRun','has','modalValidation','encode','detail','FUNCTION_SCRIPT_TOO_LARGE','getLogsForRun','FUNCTION_SCRIPT_REQUIRED','filter','find','finishedAt','code','modalMaterializerContextDraft','/env/','source','resetSelection','reloadList','edit','length','memoryMb','isFinite','worker_threads','sort','selected','return\x20(','select','loadRuns','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','Failed\x20to\x20save\x20function','/preview','runs','requestedAt','logsForRun','name','currentView','message','replace','timeoutMs','\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','/runs','catch','_ts','7424845sGYTTT','modalAllowFetchDraft','8zvulxc','Function\x20script\x20failed\x20to\x20compile','Function\x20script\x20exceeds\x2065536\x20bytes','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','info','DELETE','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input','17144154xSQjEw','meta','loadOverviewRuns','runId','modalJobContextDraft','{\x0a\x20\x20\x0a}','PUT','hydrateOverview','Function\x20script\x20source\x20is\x20required','latestRun','setModalSourceDraft','test','request','parsePayloadDraft','msg','execution','7179438UjgoXB','proxy','buildModalDefinition','hasEnv','Failed\x20to\x20run\x20function','map','selectedRun','live','setModalPreviewContext','overviewRuns','39747gKujWs','running','saving','isArray','FUNCTION_SCRIPT_INVALID_SHAPE','modalEnabledDraft','title','string','add','runtime','enabled','key','modalMode','value','modalProcessorContextDraft','payloadDraft','modalMemoryMbDraft','json','FUNCTION_SCRIPT_COMPILE_FAILED','/run','application/json','6689820Ffduzy','modalTimeoutMsDraft','modalPayloadDraft','slice','validateSource','error','parse','modalPreviewLogs','push','set','script'];_0x41c8=function(){return _0x4fd748;};return _0x41c8();}const a=['async\x20(ctx)\x20=>\x20{',_0x59b7f0(0xf0),_0x59b7f0(0xd9),_0x59b7f0(0xe4),_0x59b7f0(0xed),'',_0x59b7f0(0x132),'}'][_0x59b7f0(0xbb)]('\x0a'),r=_0x59b7f0(0xf6),i=[{'symbol':'require','pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x59b7f0(0x13b),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x59b7f0(0x13d),'pattern':/(^|[^\w$.])console\b/},{'symbol':'module','pattern':/(^|[^\w$.])module\b/},{'symbol':'exports','pattern':/(^|[^\w$.])exports\b/},{'symbol':'process','pattern':/(^|[^\w$.])process\b/},{'symbol':'child_process','pattern':/child_process/},{'symbol':_0x59b7f0(0xd3),'pattern':/worker_threads/}];function _0x3260(_0x4445f9,_0x2ec482){_0x4445f9=_0x4445f9-0xba;const _0x41c8c2=_0x41c8();let _0x3260f2=_0x41c8c2[_0x4445f9];return _0x3260f2;}function n(_0x33f525){const _0x85f6f5=_0x59b7f0;return null==_0x33f525?_0x33f525:JSON[_0x85f6f5(0x126)](JSON[_0x85f6f5(0x135)](_0x33f525));}function o(_0xa1cb62={},_0x432e04='persisted'){const _0x1ab23b=_0x59b7f0,_0x72aa6c=_0xa1cb62?.['meta']??null,_0xe5bf82=_0xa1cb62?.['msg']??_0xa1cb62?.[_0x1ab23b(0xe1)]??_0xa1cb62?.['content']??_0xa1cb62?.[_0x1ab23b(0x111)]??'';return{'runId':_0xa1cb62?.[_0x1ab23b(0xf4)]??_0x72aa6c?.[_0x1ab23b(0xf4)]??null,'ts':_0xa1cb62?.['ts']??_0xa1cb62?.[_0x1ab23b(0xe7)]??Date[_0x1ab23b(0x141)](),'level':_0xa1cb62?.[_0x1ab23b(0x13a)]??_0x1ab23b(0xee),'msg':'string'==typeof _0xe5bf82?_0xe5bf82:JSON[_0x1ab23b(0x135)](_0xe5bf82??''),'meta':_0x72aa6c,'source':_0x432e04};}export default _0x338a26[_0x59b7f0(0x102)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':_0x59b7f0(0x130),'modalMode':_0x59b7f0(0x146),'modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':'FUNCTION_SCRIPT_REQUIRED','message':_0x59b7f0(0xf9)},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){return _0xbaeb74['selectedEnv']||null;},get 'isGlobalScope'(){const _0x1d7dbf=_0x59b7f0;return'~system'===this[_0x1d7dbf(0x139)];},get 'hasEnv'(){const _0x2048c8=_0x59b7f0;return!!this[_0x2048c8(0x139)];},get 'functionsBase'(){const _0x5c1ea=_0x59b7f0;return this['envName']?__ENV__['API']+_0x5c1ea(0xcb)+encodeURIComponent(this[_0x5c1ea(0x139)])+_0x5c1ea(0x145):null;},get 'canOpenModal'(){return!!this['functionsBase'];},get 'hasSelected'(){const _0x128e45=_0x59b7f0;return!!this[_0x128e45(0x147)]&&!!this[_0x128e45(0xd5)];},get 'latestRun'(){const _0x24dd9c=_0x59b7f0;return this[_0x24dd9c(0xdc)]?.[0x0]?.[_0x24dd9c(0x118)]||this[_0x24dd9c(0xdc)]?.[0x0]||null;},get 'activeRun'(){return this['selectedRun']||this['latestRun']||null;},get 'functionsOverview'(){const _0xa80b98=_0x59b7f0,_0x53c661=new Map();for(const _0x39bf56 of this[_0xa80b98(0x10a)]||[]){const _0x482b60=_0x39bf56?.['value']||_0x39bf56,_0x51e457=_0x482b60?.['functionName'];_0x51e457&&!_0x53c661[_0xa80b98(0xbf)](_0x51e457)&&_0x53c661[_0xa80b98(0x129)](_0x51e457,_0x482b60);}return(this[_0xa80b98(0x148)]||[])[_0xa80b98(0x106)](_0x50ffea=>({..._0x50ffea,'latestRun':_0x53c661['get'](_0x50ffea?.[_0xa80b98(0x116)])||null}));},get 'selectedFunctionTitle'(){const _0x7a6881=_0x59b7f0;return this['selected']?.[_0x7a6881(0xdf)]||this['selectedName']||null;},get 'selectedLogEntries'(){const _0x43bd95=_0x59b7f0,_0x38a46f=this['selectedRun']?.['id']||this[_0x43bd95(0x107)]?.['runId'];if(_0x38a46f)return this[_0x43bd95(0xde)](_0x38a46f);const _0x14e9d8=this[_0x43bd95(0xfa)]?.['id']||this['latestRun']?.['runId'];return _0x14e9d8?this[_0x43bd95(0xde)](_0x14e9d8):[];},'logsForRun'(_0x57b743){const _0x1f3b36=_0x59b7f0;if(!_0x57b743)return[];const _0x1ee132=[this['selectedRun'],this['latestRun'],...(this[_0x1f3b36(0xdc)]||[])[_0x1f3b36(0x106)](_0x3b79c7=>_0x3b79c7?.[_0x1f3b36(0x118)]||_0x3b79c7)]['find'](_0x27bf25=>(_0x27bf25?.['id']||_0x27bf25?.[_0x1f3b36(0xf4)])===_0x57b743)?.['logs'],_0x1d1323=[...Array[_0x1f3b36(0x10e)](_0x1ee132)?_0x1ee132[_0x1f3b36(0x106)](_0x4847d2=>o(_0x4847d2,'persisted')):[],...(_0x44b670['logs']||[])[_0x1f3b36(0xc6)](_0x3e905c=>(_0x3e905c?.[_0x1f3b36(0xf4)]||_0x3e905c?.[_0x1f3b36(0xf2)]?.[_0x1f3b36(0xf4)])===_0x57b743)[_0x1f3b36(0x106)](_0x3d1600=>o(_0x3d1600,_0x1f3b36(0x108)))],_0x1a7c85=new Set(),_0x11a92f=[];for(const _0x34d004 of _0x1d1323){const _0x4147d6=_0x34d004[_0x1f3b36(0xf4)]+'|'+_0x34d004['ts']+'|'+_0x34d004[_0x1f3b36(0x13a)]+'|'+_0x34d004[_0x1f3b36(0xff)]+'|'+JSON[_0x1f3b36(0x135)](_0x34d004['meta']??null);_0x1a7c85[_0x1f3b36(0xbf)](_0x4147d6)||(_0x1a7c85[_0x1f3b36(0x113)](_0x4147d6),_0x11a92f[_0x1f3b36(0x128)](_0x34d004));}return _0x11a92f['sort']((_0xbdf427,_0x51cdcd)=>(_0xbdf427['ts']??0x0)-(_0x51cdcd['ts']??0x0)),_0x11a92f;},'resetSelection'(){const _0x5848bc=_0x59b7f0;this[_0x5848bc(0x147)]=null,this[_0x5848bc(0xd5)]=null,this[_0x5848bc(0xdc)]=[],this[_0x5848bc(0x10a)]=[],this[_0x5848bc(0x107)]=null,this['sourceDraft']='',this[_0x5848bc(0x11a)]=r,this[_0x5848bc(0x13f)]=null,this['error']=null;},'validateSource'(_0x33f7ed){const _0xf78cf0=_0x59b7f0,_0x5defdf=_0xf78cf0(0x112)==typeof _0x33f7ed?_0x33f7ed[_0xf78cf0(0xe2)](/\r\n/g,'\x0a')[_0xf78cf0(0x12f)]():'';if(!_0x5defdf)return{'ok':!0x1,'code':_0xf78cf0(0xc5),'message':_0xf78cf0(0xf9)};const _0x38c916=new TextEncoder()[_0xf78cf0(0xc1)](_0x5defdf)[_0xf78cf0(0xd0)];if(_0x38c916>0x10000)return{'ok':!0x1,'code':_0xf78cf0(0xc3),'message':_0xf78cf0(0xec)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/[_0xf78cf0(0xfc)](_0x5defdf))return{'ok':!0x1,'code':_0xf78cf0(0x10f),'message':_0xf78cf0(0xba)};for(const {symbol:_0x26988e,pattern:_0x2fea01}of i)if(_0x2fea01[_0xf78cf0(0xfc)](_0x5defdf))return{'ok':!0x1,'code':'FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','message':'Function\x20script\x20may\x20not\x20reference\x20'+_0x26988e};try{new Function(_0xf78cf0(0xd6)+_0x5defdf+');')();}catch(_0x2e45e9){return{'ok':!0x1,'code':_0xf78cf0(0x11d),'message':_0x2e45e9?.['message']||_0xf78cf0(0xeb)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x5defdf,'bytes':_0x38c916};},'parsePayloadDraft'(_0x241404=this[_0x59b7f0(0x11a)]){const _0x3a25e9=_0x59b7f0,_0x5f6bae=String(_0x241404??'')[_0x3a25e9(0x12f)]();return _0x5f6bae?JSON[_0x3a25e9(0x126)](_0x5f6bae):null;},'setModalSourceDraft'(_0x4f2386){const _0x1e5382=_0x59b7f0;this[_0x1e5382(0xbc)]=_0x4f2386??'',this[_0x1e5382(0xc0)]=this[_0x1e5382(0x124)](this[_0x1e5382(0xbc)]);},'setModalPayloadDraft'(_0x147747){const _0xcf0472=_0x59b7f0;this[_0xcf0472(0x122)]=_0x147747??r;try{this[_0xcf0472(0xfe)](this[_0xcf0472(0x122)]),this[_0xcf0472(0x131)]=null;}catch(_0x38696c){this[_0xcf0472(0x131)]=_0x38696c?.[_0xcf0472(0xe1)]||'Payload\x20JSON\x20is\x20invalid';}},'setModalPreviewContext'({jobContext:_0x319dfa=null,processorContext:_0x529483=null,materializerContext:_0x37f1d4=null}={}){const _0x39bd2e=_0x59b7f0;this[_0x39bd2e(0xf5)]=n(_0x319dfa),this[_0x39bd2e(0x119)]=n(_0x529483),this[_0x39bd2e(0xca)]=n(_0x37f1d4);},'beginCreateDraft'(){const _0x4ce683=_0x59b7f0;this[_0x4ce683(0x117)]=_0x4ce683(0x146),this['modalNameDraft']='',this[_0x4ce683(0x144)]='',this[_0x4ce683(0x110)]=!0x0,this['modalUnsafeDraft']=!0x1,this[_0x4ce683(0x121)]=null,this['modalMemoryMbDraft']=null,this['modalAllowFetchDraft']=!0x0,this[_0x4ce683(0xbe)]=null,this[_0x4ce683(0x127)]=[],this[_0x4ce683(0x109)]({}),this[_0x4ce683(0x12d)](this[_0x4ce683(0x11a)]||r),this[_0x4ce683(0xfb)](a);},'beginEditDraft'(){const _0x307111=_0x59b7f0,_0x41734d=this['selected'];this[_0x307111(0x117)]=_0x307111(0xcf),this[_0x307111(0x137)]=_0x41734d?.[_0x307111(0xdf)]||this['selectedName']||'',this['modalDescriptionDraft']=_0x41734d?.['metadata']?.['description']||'',this[_0x307111(0x110)]=!0x1!==_0x41734d?.[_0x307111(0x115)],this[_0x307111(0x149)]=!0x0===_0x41734d?.['unsafe'],this[_0x307111(0x121)]=_0x41734d?.[_0x307111(0x114)]?.[_0x307111(0xe3)]??null,this['modalMemoryMbDraft']=_0x41734d?.[_0x307111(0x114)]?.[_0x307111(0xd1)]??null,this[_0x307111(0xe9)]=!0x1!==_0x41734d?.['runtime']?.['allowFetch'],this[_0x307111(0xbe)]=null,this['modalPreviewLogs']=[],this[_0x307111(0x109)]({}),this[_0x307111(0x12d)](this[_0x307111(0x11a)]||r),this[_0x307111(0xfb)](_0x41734d?.[_0x307111(0x12a)]?.['source']||this[_0x307111(0x14a)]||a);},'buildModalDefinition'(){const _0x1d2eac=_0x59b7f0,_0x5282ca={};return Number[_0x1d2eac(0xd2)](this[_0x1d2eac(0x121)])&&this[_0x1d2eac(0x121)]>0x0&&(_0x5282ca[_0x1d2eac(0xe3)]=this[_0x1d2eac(0x121)]),Number['isFinite'](this['modalMemoryMbDraft'])&&this[_0x1d2eac(0x11b)]>0x0&&(_0x5282ca['memoryMb']=this['modalMemoryMbDraft']),_0x5282ca['allowFetch']=!0x1!==this[_0x1d2eac(0xe9)],{'name':String(this[_0x1d2eac(0x137)]||'')[_0x1d2eac(0x12f)](),'source':this[_0x1d2eac(0xc0)]?.['normalizedSource']||String(this[_0x1d2eac(0xbc)]||'')[_0x1d2eac(0x12f)](),'metadata':{'description':String(this['modalDescriptionDraft']||'')[_0x1d2eac(0x12f)]()},'enabled':!0x1!==this['modalEnabledDraft'],'unsafe':!0x0===this[_0x1d2eac(0x149)],'runtime':_0x5282ca};},get 'canSaveModal'(){const _0x43da0d=_0x59b7f0;return!(!String(this[_0x43da0d(0x137)]||'')[_0x43da0d(0x12f)]()||!this[_0x43da0d(0xc0)]?.['ok']||this[_0x43da0d(0x131)]||this[_0x43da0d(0x10d)]);},async 'loadList'(){const _0x2fceca=_0x59b7f0;if(!this['functionsBase'])return[];this[_0x2fceca(0x13c)]=!0x0,this['error']=null;try{const _0x700b33=await fetch(this[_0x2fceca(0x12b)]),_0x59d330=await _0x700b33[_0x2fceca(0x11c)]();return this[_0x2fceca(0x148)]=_0x59d330?.[_0x2fceca(0x134)]||[],this['selectedName']&&(this[_0x2fceca(0x148)]['find'](_0x24f3d7=>_0x24f3d7['key']===this[_0x2fceca(0x147)])||this[_0x2fceca(0xcd)]()),this[_0x2fceca(0x148)];}catch(_0x2a28c4){throw this[_0x2fceca(0x125)]=_0x2a28c4?.[_0x2fceca(0xe1)]||'Failed\x20to\x20load\x20functions',_0x2a28c4;}finally{this[_0x2fceca(0x13c)]=!0x1;}},async 'reloadList'(){const _0x501696=_0x59b7f0;return this[_0x501696(0x148)]=[],this[_0x501696(0x143)]();},'setView'(_0x17c4d9='overview'){const _0x398e67=_0x59b7f0;this[_0x398e67(0xe0)]='detail'===_0x17c4d9?_0x398e67(0xc2):_0x398e67(0x130);},async 'loadOverviewRuns'(_0x1208eb=0x18){const _0x38829c=_0x59b7f0;if(!this[_0x38829c(0x12b)])return[];const _0x3185cd=(this[_0x38829c(0x148)]||[])[_0x38829c(0x106)](_0x531e9f=>_0x531e9f?.[_0x38829c(0x116)])['filter'](Boolean),_0x2b1adf=[];for(const _0x140c04 of _0x3185cd){const _0x1d1c37=await fetch(this[_0x38829c(0x12b)]+'/'+encodeURIComponent(_0x140c04)+_0x38829c(0xe5)),_0x2e8ff4=await _0x1d1c37['json'](),_0x2a2655=(_0x2e8ff4?.['data']||[])[_0x38829c(0x106)](_0x30bef7=>_0x30bef7?.[_0x38829c(0x118)]?_0x30bef7:{'key':_0x30bef7?.['id']||_0x30bef7?.[_0x38829c(0xf4)],'value':_0x30bef7});_0x2b1adf[_0x38829c(0x128)](..._0x2a2655);}return _0x2b1adf[_0x38829c(0xd4)]((_0xfed26,_0x47dc89)=>{const _0x1fe66c=_0x38829c,_0x7a3faf=_0xfed26?.['value']?.[_0x1fe66c(0x100)]?.['finishedAt']??_0xfed26?.[_0x1fe66c(0x118)]?.[_0x1fe66c(0xfd)]?.[_0x1fe66c(0xdd)]??0x0;return(_0x47dc89?.['value']?.[_0x1fe66c(0x100)]?.[_0x1fe66c(0xc8)]??_0x47dc89?.[_0x1fe66c(0x118)]?.[_0x1fe66c(0xfd)]?.[_0x1fe66c(0xdd)]??0x0)-_0x7a3faf;}),this[_0x38829c(0x10a)]=_0x2b1adf[_0x38829c(0x123)](0x0,_0x1208eb),this[_0x38829c(0x10a)];},async 'hydrateOverview'(){const _0x41ae5d=_0x59b7f0;await this[_0x41ae5d(0x143)](),await this[_0x41ae5d(0xf3)]();},async 'select'(_0x4ac3e1){const _0x48adfc=_0x59b7f0;if(this[_0x48adfc(0x147)]=_0x4ac3e1||null,this[_0x48adfc(0x107)]=null,this[_0x48adfc(0xe0)]=_0x4ac3e1?_0x48adfc(0xc2):'overview',!_0x4ac3e1)return this[_0x48adfc(0xd5)]=null,this[_0x48adfc(0x14a)]='',this['runs']=[],null;const _0x5e33e0=await fetch(this[_0x48adfc(0x12b)]+'/'+encodeURIComponent(_0x4ac3e1)),_0x25ae78=await _0x5e33e0[_0x48adfc(0x11c)]();if(this[_0x48adfc(0xd5)]=_0x25ae78?.[_0x48adfc(0x134)]||null,this['sourceDraft']=this[_0x48adfc(0xd5)]?.[_0x48adfc(0x12a)]?.[_0x48adfc(0xcc)]||'',this[_0x48adfc(0x13f)]=null,await this[_0x48adfc(0xd8)](_0x4ac3e1),!this[_0x48adfc(0x107)]&&this[_0x48adfc(0xdc)]?.[_0x48adfc(0xd0)]){const _0x1da36a=this['runs'][0x0];this['selectedRun']=_0x1da36a?.[_0x48adfc(0x118)]||_0x1da36a||null;}return this[_0x48adfc(0xd5)];},async 'loadRuns'(_0x53fa1c=this[_0x59b7f0(0x147)]){const _0x485d1c=_0x59b7f0;if(!_0x53fa1c)return this[_0x485d1c(0xdc)]=[],[];const _0x24736f=await fetch(this[_0x485d1c(0x12b)]+'/'+encodeURIComponent(_0x53fa1c)+'/runs'),_0x3e8499=await _0x24736f[_0x485d1c(0x11c)]();if(this[_0x485d1c(0xdc)]=_0x3e8499?.[_0x485d1c(0x134)]||[],this[_0x485d1c(0x107)]){const _0x2d3fe9=this[_0x485d1c(0x107)]?.['id']||this[_0x485d1c(0x107)]?.[_0x485d1c(0xf4)],_0x23089c=this['runs'][_0x485d1c(0x106)](_0x19a3c1=>_0x19a3c1?.[_0x485d1c(0x118)]||_0x19a3c1)[_0x485d1c(0xc7)](_0x211d52=>(_0x211d52?.['id']||_0x211d52?.[_0x485d1c(0xf4)])===_0x2d3fe9);this['selectedRun']=_0x23089c||null;}return this['runs'];},async 'refreshSelected'(){const _0x65a9ec=_0x59b7f0;if(!this['selectedName'])return null;const _0x47e21a=this['selectedRun']?.['id']||this['selectedRun']?.[_0x65a9ec(0xf4)];if(await this[_0x65a9ec(0xd7)](this[_0x65a9ec(0x147)]),_0x47e21a){const _0x91b72d=this['runs'][_0x65a9ec(0x106)](_0x2d71b5=>_0x2d71b5?.['value']||_0x2d71b5)[_0x65a9ec(0xc7)](_0x134489=>(_0x134489?.['id']||_0x134489?.[_0x65a9ec(0xf4)])===_0x47e21a);this[_0x65a9ec(0x107)]=_0x91b72d||this[_0x65a9ec(0x107)];}return await this['loadOverviewRuns'](),this[_0x65a9ec(0xd5)];},'setSourceDraft'(_0x53c97d){const _0x24c64c=_0x59b7f0;this[_0x24c64c(0x14a)]=_0x53c97d??'';},'setPayloadDraft'(_0x55cfd6){const _0x564947=_0x59b7f0;this[_0x564947(0x11a)]=_0x55cfd6??r;try{this['parsePayloadDraft'](this[_0x564947(0x11a)]),this[_0x564947(0x13f)]=null;}catch(_0x9bee41){this[_0x564947(0x13f)]=_0x9bee41?.[_0x564947(0xe1)]||_0x564947(0x133);}},async 'create'(_0x29cf47={}){const _0x399570=_0x59b7f0;this[_0x399570(0x10d)]=!0x0,this[_0x399570(0x125)]=null;try{const _0x48f978={..._0x29cf47},_0x832d01=await fetch(this[_0x399570(0x12b)],{'method':_0x399570(0x12c),'headers':{'content-type':'application/json'},'body':JSON[_0x399570(0x135)](_0x48f978)}),_0x6ada89=await _0x832d01[_0x399570(0x11c)]();if(!_0x832d01['ok'])throw new Error(_0x6ada89?.[_0x399570(0x125)]?.['message']||_0x6ada89?.[_0x399570(0x134)]?.['error']||'Failed\x20to\x20create\x20function');return await this[_0x399570(0xce)](),await this['select'](_0x6ada89?.[_0x399570(0x134)]?.[_0x399570(0xdf)]||_0x29cf47['name']),_0x6ada89?.[_0x399570(0x134)];}finally{this[_0x399570(0x10d)]=!0x1;}},async 'saveSelected'(_0x405189={}){const _0x1faf69=_0x59b7f0;if(!this[_0x1faf69(0x147)])return null;this[_0x1faf69(0x10d)]=!0x0,this[_0x1faf69(0x125)]=null;try{const _0x26d65f={..._0x405189,'source':_0x405189?.[_0x1faf69(0xcc)]??this[_0x1faf69(0x14a)]},_0xe233af=await fetch(this[_0x1faf69(0x12b)]+'/'+encodeURIComponent(this[_0x1faf69(0x147)]),{'method':_0x1faf69(0xf7),'headers':{'content-type':'application/json'},'body':JSON[_0x1faf69(0x135)](_0x26d65f)}),_0xacf1ee=await _0xe233af[_0x1faf69(0x11c)]();if(!_0xe233af['ok'])throw new Error(_0xacf1ee?.['error']?.['message']||_0xacf1ee?.['data']?.[_0x1faf69(0x125)]||_0x1faf69(0xda));return await this['reloadList'](),await this[_0x1faf69(0xd7)](this[_0x1faf69(0x147)]),_0xacf1ee?.[_0x1faf69(0x134)];}finally{this['saving']=!0x1;}},async 'saveModalDefinition'(){const _0x487367=_0x59b7f0,_0x141e17=this[_0x487367(0x103)]();return _0x487367(0xcf)===this[_0x487367(0x117)]&&this['selectedName']?await this['saveSelected'](_0x141e17):this[_0x487367(0x146)](_0x141e17);},async 'remove'(_0x271b10=this[_0x59b7f0(0x147)]){const _0x5236e7=_0x59b7f0;if(!_0x271b10)return!0x1;this[_0x5236e7(0x10d)]=!0x0,this[_0x5236e7(0x125)]=null;try{const _0x45a8d4=await fetch(this[_0x5236e7(0x12b)]+'/'+encodeURIComponent(_0x271b10),{'method':_0x5236e7(0xef)});if(!_0x45a8d4['ok']&&0xcc!==_0x45a8d4['status']){const _0x11e6f0=await _0x45a8d4[_0x5236e7(0x11c)]()[_0x5236e7(0xe6)](()=>({}));throw new Error(_0x11e6f0?.[_0x5236e7(0x125)]?.[_0x5236e7(0xe1)]||_0x11e6f0?.['data']?.[_0x5236e7(0x125)]||'Failed\x20to\x20delete\x20function');}return await this[_0x5236e7(0xce)](),await this['loadOverviewRuns'](),this['selectedName']===_0x271b10&&this['resetSelection'](),!0x0;}finally{this['saving']=!0x1;}},async 'runSelected'(){const _0x15d4cd=_0x59b7f0;if(!this[_0x15d4cd(0x147)])return null;this[_0x15d4cd(0x10c)]=!0x0,this[_0x15d4cd(0x125)]=null;try{let _0x26e9de=null;try{_0x26e9de=this[_0x15d4cd(0xfe)](this[_0x15d4cd(0x11a)]),this['payloadError']=null;}catch(_0x1763b4){throw this[_0x15d4cd(0x13f)]=_0x1763b4?.['message']||'Payload\x20JSON\x20is\x20invalid',_0x1763b4;}const _0x2bb02a=await fetch(this['functionsBase']+'/'+encodeURIComponent(this[_0x15d4cd(0x147)])+_0x15d4cd(0x11e),{'method':_0x15d4cd(0x12c),'headers':{'content-type':_0x15d4cd(0x11f)},'body':JSON[_0x15d4cd(0x135)]({'payload':_0x26e9de,...this['dryRunMode']&&{'dryRun':!0x0}})}),_0x3f9622=await _0x2bb02a[_0x15d4cd(0x11c)]();if(!_0x2bb02a['ok']){const _0x5a9a2d=new Error(_0x3f9622?.[_0x15d4cd(0x125)]?.[_0x15d4cd(0xe1)]||_0x3f9622?.[_0x15d4cd(0x134)]?.[_0x15d4cd(0x125)]||_0x15d4cd(0x105));throw _0x5a9a2d[_0x15d4cd(0xc9)]=_0x3f9622?.[_0x15d4cd(0x125)]?.['code']||null,_0x5a9a2d;}return await this[_0x15d4cd(0xd8)](this[_0x15d4cd(0x147)]),this[_0x15d4cd(0x107)]=n(_0x3f9622?.[_0x15d4cd(0x134)]||null),this[_0x15d4cd(0xbd)]||!this[_0x15d4cd(0x107)]?.['id']&&!this[_0x15d4cd(0x107)]?.[_0x15d4cd(0xf4)]||await this['selectRun'](this[_0x15d4cd(0x107)]['id']||this['selectedRun'][_0x15d4cd(0xf4)]),await this[_0x15d4cd(0xf3)](),this[_0x15d4cd(0x107)];}catch(_0x46579c){throw this[_0x15d4cd(0x125)]=_0x46579c?.['code']?_0x46579c[_0x15d4cd(0xc9)]+':\x20'+_0x46579c[_0x15d4cd(0xe1)]:_0x46579c?.[_0x15d4cd(0xe1)]||'Failed\x20to\x20run\x20function',_0x46579c;}finally{this['running']=!0x1;}},async 'runModalDraft'(){const _0x40f551=_0x59b7f0,_0x455f51=this['buildModalDefinition']();this['modalRunning']=!0x0,this[_0x40f551(0x125)]=null;try{const _0x3bd21a=this[_0x40f551(0xfe)](this[_0x40f551(0x122)]);this[_0x40f551(0x131)]=null,this[_0x40f551(0xbe)]=null,this[_0x40f551(0x127)]=[];const _0xee106d=await fetch(this[_0x40f551(0x12b)]+_0x40f551(0xdb),{'method':'POST','headers':{'content-type':_0x40f551(0x11f)},'body':JSON[_0x40f551(0x135)]({..._0x455f51,'payload':_0x3bd21a,...this['modalDryRunMode']&&{'dryRun':!0x0},...this[_0x40f551(0xf5)]?{'jobContext':n(this[_0x40f551(0xf5)])}:{},...this[_0x40f551(0x119)]?{'processorContext':n(this[_0x40f551(0x119)])}:{},...this[_0x40f551(0xca)]?{'materializerContext':n(this[_0x40f551(0xca)])}:{}})}),_0x17d951=await _0xee106d[_0x40f551(0x11c)]();if(!_0xee106d['ok'])throw new Error(_0x17d951?.[_0x40f551(0x125)]?.[_0x40f551(0xe1)]||_0x17d951?.[_0x40f551(0x134)]?.[_0x40f551(0x125)]||'Failed\x20to\x20run\x20draft');return this[_0x40f551(0xbe)]=n(_0x17d951?.['data']||null),this[_0x40f551(0x127)]=this['getLogsForRun'](this[_0x40f551(0xbe)]?.['id']||this['modalPreviewRun']?.[_0x40f551(0xf4)]),this[_0x40f551(0xbe)];}catch(_0x26d25e){throw _0x26d25e instanceof SyntaxError&&(this[_0x40f551(0x131)]=_0x26d25e?.[_0x40f551(0xe1)]||'Payload\x20JSON\x20is\x20invalid'),_0x26d25e;}finally{this[_0x40f551(0x142)]=!0x1;}},'getLogsForRun':_0x23fb71=>_0x23fb71?(_0x44b670[_0x59b7f0(0x138)]||[])['filter'](_0x472f57=>(_0x472f57?.[_0x59b7f0(0xf4)]||_0x472f57?.[_0x59b7f0(0xf2)]?.['runId'])===_0x23fb71):[],'refreshModalPreviewLogs'(){const _0x20d4b1=_0x59b7f0,_0x456a6d=this[_0x20d4b1(0xbe)]?.['id']||this[_0x20d4b1(0xbe)]?.[_0x20d4b1(0xf4)];return _0x456a6d?(this['modalPreviewLogs']=this[_0x20d4b1(0xc4)](_0x456a6d),this[_0x20d4b1(0x127)]):(this[_0x20d4b1(0x127)]=[],[]);},async 'selectRun'(_0x22ebe1){const _0x583b58=_0x59b7f0;if(!this[_0x583b58(0x147)]||!_0x22ebe1)return this[_0x583b58(0x107)]=null,null;const _0x52ce3c=await fetch(this['functionsBase']+'/'+encodeURIComponent(this[_0x583b58(0x147)])+_0x583b58(0x140)+encodeURIComponent(_0x22ebe1)),_0x53b2b3=await _0x52ce3c[_0x583b58(0x11c)]();return this['selectedRun']=_0x53b2b3?.[_0x583b58(0x134)]||null,this[_0x583b58(0x107)];},async 'onEnvChanged'(){const _0x33fefe=_0x59b7f0;this[_0x33fefe(0xcd)](),this[_0x33fefe(0x136)](),this['currentView']=_0x33fefe(0x130),this[_0x33fefe(0x104)]&&await this[_0x33fefe(0xf8)]();}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x9b96db=_0x1539;function _0x1539(_0xef15bd,_0x13c675){_0xef15bd=_0xef15bd-0x8a;const _0x2e6138=_0x2e61();let _0x1539b0=_0x2e6138[_0xef15bd];return _0x1539b0;}(function(_0x100e33,_0x498ab7){const _0x4eba5c=_0x1539,_0x5a925=_0x100e33();while(!![]){try{const _0x52b9d8=parseInt(_0x4eba5c(0x8a))/0x1+-parseInt(_0x4eba5c(0xb1))/0x2*(parseInt(_0x4eba5c(0x94))/0x3)+parseInt(_0x4eba5c(0xab))/0x4*(parseInt(_0x4eba5c(0x8b))/0x5)+parseInt(_0x4eba5c(0xa6))/0x6*(parseInt(_0x4eba5c(0x9f))/0x7)+parseInt(_0x4eba5c(0x8d))/0x8+-parseInt(_0x4eba5c(0xb3))/0x9+-parseInt(_0x4eba5c(0x9b))/0xa;if(_0x52b9d8===_0x498ab7)break;else _0x5a925['push'](_0x5a925['shift']());}catch(_0x9fb353){_0x5a925['push'](_0x5a925['shift']());}}}(_0x2e61,0x8e85c));import{ok as _0x2db749}from'../modules/ok.js';export default _0x2db749['proxy']({'selectedEnv':_0x9b96db(0x90),get 'apiBase'(){const _0xd2424d=_0x9b96db,_0x5ee50b=this[_0xd2424d(0xa5)];return _0x5ee50b?__ENV__['API']+_0xd2424d(0xa3)+encodeURIComponent(_0x5ee50b):__ENV__[_0xd2424d(0x9c)]+_0xd2424d(0xac);},'selectEnv'(_0x380916){const _0x34c707=_0x9b96db;this[_0x34c707(0xa5)]!==_0x380916&&(this['selectedEnv']=_0x380916,this[_0x34c707(0xb2)]=null,this[_0x34c707(0x8e)]=null,this[_0x34c707(0xa9)]=null,this[_0x34c707(0xb0)]=null);},'info':null,'_infoPromise':null,async 'loadInfo'(){const _0x88aa1e=_0x9b96db;if(!this[_0x88aa1e(0xa5)])return null;if(null!==this['info'])return this[_0x88aa1e(0xa9)];if(!this[_0x88aa1e(0xb0)]){this[_0x88aa1e(0xb0)]=this['_fetchInfo']();try{this[_0x88aa1e(0xa9)]=await this[_0x88aa1e(0xb0)];}catch(_0x2dc4e9){throw this[_0x88aa1e(0xb0)]=null,_0x2dc4e9;}}return await this[_0x88aa1e(0xb0)],this['info'];},async 'reloadInfo'(){const _0x2f5a16=_0x9b96db;return this[_0x2f5a16(0xa9)]=null,this[_0x2f5a16(0xb0)]=null,this[_0x2f5a16(0x93)]();},async '_fetchInfo'(){const _0x44d84b=_0x9b96db;if(!this[_0x44d84b(0xa5)])return null;const _0x584ab7=await fetch(this[_0x44d84b(0x8f)]+'/info');if(_0x584ab7['ok'])return(await _0x584ab7[_0x44d84b(0x98)]())['data'];if(0x191===_0x584ab7[_0x44d84b(0x9e)]||0x193===_0x584ab7[_0x44d84b(0x9e)])return null;if(0x194===_0x584ab7[_0x44d84b(0x9e)])return null;throw new Error(_0x44d84b(0xa0));},'hasPlugin'(_0x589bca){const _0x1ea40b=_0x9b96db;return this[_0x1ea40b(0xa9)]?.[_0x1ea40b(0x97)]?.[_0x1ea40b(0xa4)](_0x589bca);},'types':null,'_typesPromise':null,async 'loadTypes'(){const _0x7d5065=_0x9b96db;if(!this[_0x7d5065(0xa5)])return[];if(this[_0x7d5065(0xb2)])return this[_0x7d5065(0xb2)];if(!this['_typesPromise']){const _0x47e88d=this[_0x7d5065(0x8f)];this[_0x7d5065(0x8e)]=fetch(_0x47e88d+'/types')['then'](async _0x3317cd=>{const _0x593f3d=_0x7d5065;if(!_0x3317cd['ok']){const _0x27d44d=await _0x3317cd[_0x593f3d(0x98)]()[_0x593f3d(0x9d)](()=>({})),_0x27b6b2=_0x27d44d?.[_0x593f3d(0x9a)],_0x4ce26e=_0x593f3d(0x95)==typeof _0x27b6b2?_0x27b6b2:_0x27b6b2?.['message']||_0x593f3d(0xa8)+_0x3317cd[_0x593f3d(0x9e)]+')',_0xb25bae=new Error(_0x4ce26e);throw _0xb25bae['status']=_0x3317cd[_0x593f3d(0x9e)],_0xb25bae;}const _0x2140fc=await _0x3317cd[_0x593f3d(0x98)]();return this['types']=_0x2140fc?.['data']??_0x2140fc?.[_0x593f3d(0xa2)]??[];})[_0x7d5065(0x9d)](_0x2cd067=>{const _0x40ee03=_0x7d5065;throw this[_0x40ee03(0x8e)]=null,_0x2cd067;});}return this['_typesPromise'];},async 'reloadTypes'(){const _0x4eccd2=_0x9b96db;return this[_0x4eccd2(0xb2)]=null,this['_typesPromise']=null,this[_0x4eccd2(0xae)]();},async 'registerType'(_0x223c72){const _0x41bf8e=_0x9b96db;await fetch(this[_0x41bf8e(0x8f)]+'/type/'+encodeURIComponent(_0x223c72),{'method':_0x41bf8e(0x96)}),await this[_0x41bf8e(0x99)]();},'envs':null,'_envsPromise':null,async 'loadEnvs'(){const _0x54a870=_0x9b96db;return this[_0x54a870(0x92)]?this[_0x54a870(0x92)]:(this[_0x54a870(0xaf)]||(this['_envsPromise']=fetch(__ENV__[_0x54a870(0x9c)]+_0x54a870(0xa7))[_0x54a870(0xad)](async _0x15ccef=>{const _0x271cfc=_0x54a870;if(0x191===_0x15ccef[_0x271cfc(0x9e)]||0x193===_0x15ccef[_0x271cfc(0x9e)])return this[_0x271cfc(0x92)]=[],this[_0x271cfc(0xa5)]=null,[];const {data:_0x1de5c8}=await _0x15ccef['json']();return this[_0x271cfc(0x92)]=_0x1de5c8||[];})['catch'](_0x4c301f=>{throw this['_envsPromise']=null,_0x4c301f;})),this[_0x54a870(0xaf)]);},async 'reloadEnvs'(){const _0x3fe38e=_0x9b96db;return this[_0x3fe38e(0x92)]=null,this['_envsPromise']=null,this[_0x3fe38e(0xb5)]();},'_pickBestEnv'(){const _0x1b3384=_0x9b96db,_0x144b96=(this[_0x1b3384(0x92)]||[])[_0x1b3384(0xa1)](_0x3cbfd3=>!_0x3cbfd3[_0x1b3384(0xb4)]['startsWith']('~')&&!_0x3cbfd3[_0x1b3384(0xaa)]);return _0x144b96['find'](_0x218b60=>_0x218b60[_0x1b3384(0xb4)]===this['selectedEnv'])?this[_0x1b3384(0xa5)]:_0x144b96[0x0]?.['name']??null;},async 'init'(){const _0x4350bb=_0x9b96db;await this['loadEnvs']();const _0x16b956=this[_0x4350bb(0x8c)]();_0x16b956!==this[_0x4350bb(0xa5)]&&this[_0x4350bb(0x91)](_0x16b956),this['selectedEnv']&&await this[_0x4350bb(0x93)]()[_0x4350bb(0x9d)](()=>{const _0x11ff13=_0x4350bb;this[_0x11ff13(0xa9)]=null;});}});function _0x2e61(){const _0x381a85=['reloadTypes','error','11892230ihgzvF','API','catch','status','412279PTzIuJ','Failed\x20to\x20fetch\x20info','filter','result','/env/','includes','selectedEnv','84IxqmHU','/envs','Failed\x20to\x20load\x20types\x20(HTTP\x20','info','orphaned','201388tFGDwM','/env','then','loadTypes','_envsPromise','_infoPromise','152hbQhQA','types','2089908QvOuaH','name','loadEnvs','529190HIUUkh','45BQDhbP','_pickBestEnv','3408864INPNIJ','_typesPromise','apiBase','default','selectEnv','envs','loadInfo','8991gUlalQ','string','POST','plugins','json'];_0x2e61=function(){return _0x381a85;};return _0x2e61();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56e083=_0x1831;function _0x1831(_0x400cf1,_0x56901f){_0x400cf1=_0x400cf1-0x16a;const _0x46dfa2=_0x46df();let _0x1831f4=_0x46dfa2[_0x400cf1];return _0x1831f4;}(function(_0x2494da,_0x16b62e){const _0x367026=_0x1831,_0x3299c1=_0x2494da();while(!![]){try{const _0x523acc=parseInt(_0x367026(0x16e))/0x1*(parseInt(_0x367026(0x179))/0x2)+parseInt(_0x367026(0x185))/0x3+-parseInt(_0x367026(0x16a))/0x4+-parseInt(_0x367026(0x17b))/0x5*(-parseInt(_0x367026(0x17d))/0x6)+-parseInt(_0x367026(0x183))/0x7*(parseInt(_0x367026(0x16c))/0x8)+-parseInt(_0x367026(0x175))/0x9*(-parseInt(_0x367026(0x17c))/0xa)+-parseInt(_0x367026(0x17a))/0xb;if(_0x523acc===_0x16b62e)break;else _0x3299c1['push'](_0x3299c1['shift']());}catch(_0x50e002){_0x3299c1['push'](_0x3299c1['shift']());}}}(_0x46df,0xc6744));function _0x46df(){const _0x2b2a19=['677500dXoXMq','change','matches','(prefers-color-scheme:\x20light)','okdbTheme','light','dark','36BEmuBI','setItem','matchMedia','set','4ZiLHuF','27840406cXYNKL','5iaNVIC','2625670JMAVnz','8316834uoIZCr','addEventListener','getItem','current','isExplicit','undefined','2874235sBjSrT','has','1108635xPJLuk','1626132qEulEs','add','8GlyWhG','data-theme'];_0x46df=function(){return _0x2b2a19;};return _0x46df();}const STORAGE_KEY=_0x56e083(0x172),VALID=new Set([_0x56e083(0x174),_0x56e083(0x173)]);function readSaved(){const _0x128b14=_0x56e083;try{const _0x4f1641=localStorage[_0x128b14(0x17f)]('okdbTheme');return VALID[_0x128b14(0x184)](_0x4f1641)?_0x4f1641:null;}catch{return null;}}function detectPreferred(){const _0x13b8a6=_0x56e083;return _0x13b8a6(0x182)!=typeof window&&window[_0x13b8a6(0x177)]&&window[_0x13b8a6(0x177)]('(prefers-color-scheme:\x20light)')[_0x13b8a6(0x170)]?'light':_0x13b8a6(0x174);}function apply(_0x18672e){const _0x45c7cd=_0x56e083,_0x585ac3=document['documentElement'];'light'===_0x18672e?_0x585ac3['setAttribute']('data-theme',_0x45c7cd(0x173)):_0x585ac3['removeAttribute'](_0x45c7cd(0x16d));}const subscribers=new Set(),themeStore={'current':readSaved()||detectPreferred(),'isExplicit':null!==readSaved(),'set'(_0x951ec5){const _0x4dbd2b=_0x56e083;if(VALID['has'](_0x951ec5)){this[_0x4dbd2b(0x180)]=_0x951ec5,this[_0x4dbd2b(0x181)]=!0x0;try{localStorage[_0x4dbd2b(0x176)](_0x4dbd2b(0x172),_0x951ec5);}catch{}apply(_0x951ec5);for(const _0x3f9c14 of subscribers)_0x3f9c14(_0x951ec5);}},'toggle'(){const _0x4bc8c4=_0x56e083;this[_0x4bc8c4(0x178)](_0x4bc8c4(0x174)===this[_0x4bc8c4(0x180)]?_0x4bc8c4(0x173):_0x4bc8c4(0x174));},'subscribe':_0x35bf3d=>(subscribers[_0x56e083(0x16b)](_0x35bf3d),()=>subscribers['delete'](_0x35bf3d))};if(apply(themeStore[_0x56e083(0x180)]),_0x56e083(0x182)!=typeof window&&window[_0x56e083(0x177)]){const e=window[_0x56e083(0x177)](_0x56e083(0x171)),t=_0xb44100=>{const _0x25be8e=_0x56e083;if(!themeStore[_0x25be8e(0x181)]){themeStore[_0x25be8e(0x180)]=_0xb44100[_0x25be8e(0x170)]?_0x25be8e(0x173):_0x25be8e(0x174),apply(themeStore[_0x25be8e(0x180)]);for(const _0x423c29 of subscribers)_0x423c29(themeStore[_0x25be8e(0x180)]);}};e[_0x56e083(0x17e)]?.(_0x56e083(0x16f),t);}export default themeStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c4f53,_0x1e0126){const _0x570aab=_0x1564,_0x42d8ab=_0x1c4f53();while(!![]){try{const _0x2a50f6=parseInt(_0x570aab(0x139))/0x1*(-parseInt(_0x570aab(0x134))/0x2)+-parseInt(_0x570aab(0x133))/0x3+-parseInt(_0x570aab(0x132))/0x4+parseInt(_0x570aab(0x13a))/0x5+parseInt(_0x570aab(0x135))/0x6+-parseInt(_0x570aab(0x130))/0x7*(-parseInt(_0x570aab(0x137))/0x8)+parseInt(_0x570aab(0x131))/0x9;if(_0x2a50f6===_0x1e0126)break;else _0x42d8ab['push'](_0x42d8ab['shift']());}catch(_0x3a0b57){_0x42d8ab['push'](_0x42d8ab['shift']());}}}(_0x139a,0x7dd47));let IMPLIED_BY={};export function setImpliedBy(_0x187e7b){IMPLIED_BY=_0x187e7b||{};}function _0x1564(_0x5355f9,_0x271e3e){_0x5355f9=_0x5355f9-0x12f;const _0x139a87=_0x139a();let _0x156455=_0x139a87[_0x5355f9];return _0x156455;}export function hasPermission(_0x55bd15,_0x1b02b7){const _0x19e58e=_0x1564;if(!Array[_0x19e58e(0x12f)](_0x55bd15)||0x0===_0x55bd15['length'])return!0x1;for(const _0x20931c of _0x55bd15){if(_0x19e58e(0x138)!=typeof _0x20931c||!_0x20931c['includes'](':')){if('*'===_0x20931c)return!0x0;continue;}const [_0x4b71d7,_0x28b5c0]=_0x20931c['split'](':'),[_0x2ea456,_0x1a11ad]=_0x1b02b7[_0x19e58e(0x136)](':');if(!('*'!==_0x4b71d7&&_0x4b71d7!==_0x2ea456||'*'!==_0x28b5c0&&_0x28b5c0!==_0x1a11ad))return!0x0;}const _0x40e60b=IMPLIED_BY[_0x1b02b7];if(_0x40e60b){for(const _0x56a2b1 of _0x40e60b)if(hasPermission(_0x55bd15,_0x56a2b1))return!0x0;}return!0x1;}export function permLabel(_0xa36430){return _0xa36430;}function _0x139a(){const _0x56cc22=['2542028jTzmjS','5649nycCGH','1058882ofFXCD','2659872aORupo','split','144776JQsRKr','string','1jMtwcq','4143805YOfSPg','isArray','119onOxkH','922572uuBxhW'];_0x139a=function(){return _0x56cc22;};return _0x139a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x160a0c=_0x2f57;(function(_0x175722,_0x52f3b2){const _0x100871=_0x2f57,_0x5aa9f7=_0x175722();while(!![]){try{const _0x22f6fc=parseInt(_0x100871(0x17c))/0x1+parseInt(_0x100871(0x163))/0x2+-parseInt(_0x100871(0x16c))/0x3+parseInt(_0x100871(0x177))/0x4*(parseInt(_0x100871(0x16b))/0x5)+parseInt(_0x100871(0x162))/0x6+parseInt(_0x100871(0x157))/0x7+-parseInt(_0x100871(0x15f))/0x8;if(_0x22f6fc===_0x52f3b2)break;else _0x5aa9f7['push'](_0x5aa9f7['shift']());}catch(_0x594939){_0x5aa9f7['push'](_0x5aa9f7['shift']());}}}(_0x421a,0x512b4));const COMPARISON_OPS={'$eq':{'description':'Equals\x20this\x20value\x20exactly'},'$ne':{'description':_0x160a0c(0x178)},'$gt':{'description':'Greater\x20than'},'$gte':{'description':_0x160a0c(0x168)},'$lt':{'description':_0x160a0c(0x16e)},'$lte':{'description':_0x160a0c(0x159)}},SET_OPS={'$in':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x16f)},'$nin':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x16a)}},ELEMENT_OPS={'$exists':{'type':_0x160a0c(0x164),'enum':[!0x0,!0x1],'description':_0x160a0c(0x17a)},'$type':{'type':_0x160a0c(0x153),'enum':['string',_0x160a0c(0x150),_0x160a0c(0x164),_0x160a0c(0x152),_0x160a0c(0x151),_0x160a0c(0x171),_0x160a0c(0x170)],'description':_0x160a0c(0x175)}},STRING_OPS={'$regex':{'type':_0x160a0c(0x153),'description':'Regular-expression\x20pattern\x20\x20e.g.\x20{\x22$regex\x22:\x20\x22^foo\x22}'},'$options':{'type':_0x160a0c(0x153),'description':_0x160a0c(0x158)}},NUMERIC_OPS={'$mod':{'type':_0x160a0c(0x151),'items':{'type':_0x160a0c(0x150)},'minItems':0x2,'maxItems':0x2,'description':_0x160a0c(0x166)}},ARRAY_OPS={'$size':{'type':_0x160a0c(0x150),'description':'Array\x20length\x20equals\x20this\x20number'},'$all':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x15e)},'$elemMatch':{'type':_0x160a0c(0x152),'description':_0x160a0c(0x160)}};function buildOperatorProperties(_0x123a2d=[]){const _0x5b9924=_0x160a0c,_0x4d938b=_0x123a2d[_0x5b9924(0x179)]('number'),_0x5e4189=_0x123a2d[_0x5b9924(0x179)](_0x5b9924(0x153)),_0x1d9f93=_0x123a2d[_0x5b9924(0x179)](_0x5b9924(0x151)),_0x29dd1c=0x0===_0x123a2d[_0x5b9924(0x174)],_0x3b9f9d={...COMPARISON_OPS,...SET_OPS,...ELEMENT_OPS};return(_0x4d938b||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,NUMERIC_OPS),(_0x5e4189||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,STRING_OPS),(_0x1d9f93||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,ARRAY_OPS),_0x3b9f9d[_0x5b9924(0x172)]={'type':_0x5b9924(0x152),'description':_0x5b9924(0x165),'properties':{..._0x3b9f9d},'additionalProperties':!0x1},_0x3b9f9d;}function _0x421a(){const _0x223123=['Modulo\x20[divisor,\x20remainder]\x20\x20e.g.\x20{\x22$mod\x22:[2,0]}\x20matches\x20even\x20numbers','$and','Greater\x20than\x20or\x20equal','any','Value\x20is\x20NOT\x20one\x20of\x20these\x20\x20e.g.\x20{\x22$nin\x22:\x20[1,2]}','59935Nechxw','1212501YcYQsa','OR\x20\x20—\x20at\x20least\x20one\x20sub-condition\x20must\x20match','Less\x20than','Value\x20is\x20one\x20of\x20these\x20(OR\x20match)\x20\x20e.g.\x20{\x22$in\x22:\x20[\x22a\x22,\x22b\x22]}','undefined','null','$not','join','length','Match\x20by\x20JavaScript\x20type\x20name','Direct\x20equality\x20match\x20\x20e.g.\x20\x22value\x22\x20or\x2042','52wSgPiB','Not\x20equal\x20to\x20this\x20value','includes','true\x20→\x20field\x20must\x20be\x20present,\x20\x20false\x20→\x20field\x20must\x20be\x20absent','isArray','334384xvHSJV','Sift\x20filter','number','array','object','string','AND\x20—\x20all\x20sub-conditions\x20must\x20match','assign','\x20|\x20','2964472kXwhJC','Regex\x20flags\x20used\x20with\x20$regex\x20\x20e.g.\x20\x22i\x22\x20for\x20case-insensitive','Less\x20than\x20or\x20equal','MongoDB-style\x20sift\x20filter.\x20\x20Field\x20names\x20are\x20keys;\x20use\x20$and/$or/$nor\x20for\x20logic.','$or','$nor','\x22\x20\x20(','Array\x20contains\x20ALL\x20of\x20these\x20values','3964656iyEYEY','At\x20least\x20one\x20array\x20element\x20matches\x20this\x20sub-query','http://json-schema.org/draft-07/schema#','1609806STFNrb','100410TKlpHP','boolean','Negate\x20the\x20nested\x20operator\x20conditions\x20\x20e.g.\x20{\x22$not\x22:{\x22$gt\x22:5}}'];_0x421a=function(){return _0x223123;};return _0x421a();}function _0x2f57(_0x30d086,_0x2286f1){_0x30d086=_0x30d086-0x14f;const _0x421abf=_0x421a();let _0x2f575c=_0x421abf[_0x30d086];return _0x2f575c;}function buildFieldSchema(_0x1c3af0,_0x4e35cd=[]){const _0x4f543f=_0x160a0c;return{'description':'\x22'+_0x1c3af0+_0x4f543f(0x15d)+(_0x4e35cd[_0x4f543f(0x174)]?_0x4e35cd[_0x4f543f(0x173)](_0x4f543f(0x156)):_0x4f543f(0x169))+')','oneOf':[{'description':_0x4f543f(0x176),'not':{'type':_0x4f543f(0x152)}},{'type':'object','description':'Operator\x20conditions','properties':buildOperatorProperties(_0x4e35cd),'additionalProperties':!0x1}]};}export function buildSiftSchema(_0x31f34a={}){const _0x233a6f=_0x160a0c,_0x13e9c0={};for(const [_0x4bd877,_0x33c8fa]of Object['entries'](_0x31f34a))_0x13e9c0[_0x4bd877]=buildFieldSchema(_0x4bd877,Array[_0x233a6f(0x17b)](_0x33c8fa)?_0x33c8fa:[String(_0x33c8fa)]);const _0x18c053={'$ref':'#'};return _0x13e9c0[_0x233a6f(0x167)]={'type':_0x233a6f(0x151),'items':_0x18c053,'description':_0x233a6f(0x154)},_0x13e9c0[_0x233a6f(0x15b)]={'type':_0x233a6f(0x151),'items':_0x18c053,'description':_0x233a6f(0x16d)},_0x13e9c0[_0x233a6f(0x15c)]={'type':'array','items':_0x18c053,'description':'NOR\x20—\x20no\x20sub-condition\x20may\x20match'},{'$schema':_0x233a6f(0x161),'title':_0x233a6f(0x14f),'description':_0x233a6f(0x15a),'type':_0x233a6f(0x152),'properties':_0x13e9c0,'additionalProperties':buildFieldSchema('(field)',[])};}
|